1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for panoglview 0.2.2.
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='panoglview'
728PACKAGE_TARNAME='panoglview'
729PACKAGE_VERSION='0.2.2'
730PACKAGE_STRING='panoglview 0.2.2'
731PACKAGE_BUGREPORT=''
732
733# Factoring default headers for most tests.
734ac_includes_default="\
735#include <stdio.h>
736#ifdef HAVE_SYS_TYPES_H
737# include <sys/types.h>
738#endif
739#ifdef HAVE_SYS_STAT_H
740# include <sys/stat.h>
741#endif
742#ifdef STDC_HEADERS
743# include <stdlib.h>
744# include <stddef.h>
745#else
746# ifdef HAVE_STDLIB_H
747#  include <stdlib.h>
748# endif
749#endif
750#ifdef HAVE_STRING_H
751# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752#  include <memory.h>
753# endif
754# include <string.h>
755#endif
756#ifdef HAVE_STRINGS_H
757# include <strings.h>
758#endif
759#ifdef HAVE_INTTYPES_H
760# include <inttypes.h>
761#endif
762#ifdef HAVE_STDINT_H
763# include <stdint.h>
764#endif
765#ifdef HAVE_UNISTD_H
766# include <unistd.h>
767#endif"
768
769ac_subst_vars='SHELL
770PATH_SEPARATOR
771PACKAGE_NAME
772PACKAGE_TARNAME
773PACKAGE_VERSION
774PACKAGE_STRING
775PACKAGE_BUGREPORT
776exec_prefix
777prefix
778program_transform_name
779bindir
780sbindir
781libexecdir
782datarootdir
783datadir
784sysconfdir
785sharedstatedir
786localstatedir
787includedir
788oldincludedir
789docdir
790infodir
791htmldir
792dvidir
793pdfdir
794psdir
795libdir
796localedir
797mandir
798DEFS
799ECHO_C
800ECHO_N
801ECHO_T
802LIBS
803build_alias
804host_alias
805target_alias
806build
807build_cpu
808build_vendor
809build_os
810host
811host_cpu
812host_vendor
813host_os
814target
815target_cpu
816target_vendor
817target_os
818INSTALL_PROGRAM
819INSTALL_SCRIPT
820INSTALL_DATA
821am__isrc
822CYGPATH_W
823PACKAGE
824VERSION
825ACLOCAL
826AUTOCONF
827AUTOMAKE
828AUTOHEADER
829MAKEINFO
830install_sh
831STRIP
832INSTALL_STRIP_PROGRAM
833mkdir_p
834AWK
835SET_MAKE
836am__leading_dot
837AMTAR
838am__tar
839am__untar
840CXX
841CXXFLAGS
842LDFLAGS
843CPPFLAGS
844ac_ct_CXX
845EXEEXT
846OBJEXT
847DEPDIR
848am__include
849am__quote
850AMDEP_TRUE
851AMDEP_FALSE
852AMDEPBACKSLASH
853CXXDEPMODE
854am__fastdepCXX_TRUE
855am__fastdepCXX_FALSE
856USE_PLUGIN_TRUE
857USE_PLUGIN_FALSE
858HAVE_TUVISTA
859WX_CONFIG_PATH
860WX_CPPFLAGS
861WX_CFLAGS
862WX_CXXFLAGS
863WX_CFLAGS_ONLY
864WX_CXXFLAGS_ONLY
865WX_LIBS
866WX_LIBS_STATIC
867WX_VERSION
868WX_RESCOMP
869WX_GL_LIBS
870WIN32_BUILD_TRUE
871WIN32_BUILD_FALSE
872PLUGIN_LDFLAGS
873PLUGIN_CXXFLAGS
874PLUGIN_DIR
875CC
876CFLAGS
877ac_ct_CC
878CCDEPMODE
879am__fastdepCC_TRUE
880am__fastdepCC_FALSE
881SED
882GREP
883EGREP
884LN_S
885ECHO
886AR
887RANLIB
888CPP
889CXXCPP
890F77
891FFLAGS
892ac_ct_F77
893LIBTOOL
894LIBOBJS
895LTLIBOBJS'
896ac_subst_files=''
897      ac_precious_vars='build_alias
898host_alias
899target_alias
900CXX
901CXXFLAGS
902LDFLAGS
903LIBS
904CPPFLAGS
905CCC
906CC
907CFLAGS
908CPP
909CXXCPP
910F77
911FFLAGS'
912
913
914# Initialize some variables set by options.
915ac_init_help=
916ac_init_version=false
917# The variables have the same names as the options, with
918# dashes changed to underlines.
919cache_file=/dev/null
920exec_prefix=NONE
921no_create=
922no_recursion=
923prefix=NONE
924program_prefix=NONE
925program_suffix=NONE
926program_transform_name=s,x,x,
927silent=
928site=
929srcdir=
930verbose=
931x_includes=NONE
932x_libraries=NONE
933
934# Installation directory options.
935# These are left unexpanded so users can "make install exec_prefix=/foo"
936# and all the variables that are supposed to be based on exec_prefix
937# by default will actually change.
938# Use braces instead of parens because sh, perl, etc. also accept them.
939# (The list follows the same order as the GNU Coding Standards.)
940bindir='${exec_prefix}/bin'
941sbindir='${exec_prefix}/sbin'
942libexecdir='${exec_prefix}/libexec'
943datarootdir='${prefix}/share'
944datadir='${datarootdir}'
945sysconfdir='${prefix}/etc'
946sharedstatedir='${prefix}/com'
947localstatedir='${prefix}/var'
948includedir='${prefix}/include'
949oldincludedir='/usr/include'
950docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
951infodir='${datarootdir}/info'
952htmldir='${docdir}'
953dvidir='${docdir}'
954pdfdir='${docdir}'
955psdir='${docdir}'
956libdir='${exec_prefix}/lib'
957localedir='${datarootdir}/locale'
958mandir='${datarootdir}/man'
959
960ac_prev=
961ac_dashdash=
962for ac_option
963do
964  # If the previous option needs an argument, assign it.
965  if test -n "$ac_prev"; then
966    eval $ac_prev=\$ac_option
967    ac_prev=
968    continue
969  fi
970
971  case $ac_option in
972  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973  *)	ac_optarg=yes ;;
974  esac
975
976  # Accept the important Cygnus configure options, so we can diagnose typos.
977
978  case $ac_dashdash$ac_option in
979  --)
980    ac_dashdash=yes ;;
981
982  -bindir | --bindir | --bindi | --bind | --bin | --bi)
983    ac_prev=bindir ;;
984  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985    bindir=$ac_optarg ;;
986
987  -build | --build | --buil | --bui | --bu)
988    ac_prev=build_alias ;;
989  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990    build_alias=$ac_optarg ;;
991
992  -cache-file | --cache-file | --cache-fil | --cache-fi \
993  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994    ac_prev=cache_file ;;
995  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997    cache_file=$ac_optarg ;;
998
999  --config-cache | -C)
1000    cache_file=config.cache ;;
1001
1002  -datadir | --datadir | --datadi | --datad)
1003    ac_prev=datadir ;;
1004  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005    datadir=$ac_optarg ;;
1006
1007  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008  | --dataroo | --dataro | --datar)
1009    ac_prev=datarootdir ;;
1010  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012    datarootdir=$ac_optarg ;;
1013
1014  -disable-* | --disable-*)
1015    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019   { (exit 1); exit 1; }; }
1020    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021    eval enable_$ac_feature=no ;;
1022
1023  -docdir | --docdir | --docdi | --doc | --do)
1024    ac_prev=docdir ;;
1025  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026    docdir=$ac_optarg ;;
1027
1028  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029    ac_prev=dvidir ;;
1030  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031    dvidir=$ac_optarg ;;
1032
1033  -enable-* | --enable-*)
1034    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035    # Reject names that are not valid shell variable names.
1036    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038   { (exit 1); exit 1; }; }
1039    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040    eval enable_$ac_feature=\$ac_optarg ;;
1041
1042  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044  | --exec | --exe | --ex)
1045    ac_prev=exec_prefix ;;
1046  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048  | --exec=* | --exe=* | --ex=*)
1049    exec_prefix=$ac_optarg ;;
1050
1051  -gas | --gas | --ga | --g)
1052    # Obsolete; use --with-gas.
1053    with_gas=yes ;;
1054
1055  -help | --help | --hel | --he | -h)
1056    ac_init_help=long ;;
1057  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058    ac_init_help=recursive ;;
1059  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060    ac_init_help=short ;;
1061
1062  -host | --host | --hos | --ho)
1063    ac_prev=host_alias ;;
1064  -host=* | --host=* | --hos=* | --ho=*)
1065    host_alias=$ac_optarg ;;
1066
1067  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068    ac_prev=htmldir ;;
1069  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070  | --ht=*)
1071    htmldir=$ac_optarg ;;
1072
1073  -includedir | --includedir | --includedi | --included | --include \
1074  | --includ | --inclu | --incl | --inc)
1075    ac_prev=includedir ;;
1076  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077  | --includ=* | --inclu=* | --incl=* | --inc=*)
1078    includedir=$ac_optarg ;;
1079
1080  -infodir | --infodir | --infodi | --infod | --info | --inf)
1081    ac_prev=infodir ;;
1082  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083    infodir=$ac_optarg ;;
1084
1085  -libdir | --libdir | --libdi | --libd)
1086    ac_prev=libdir ;;
1087  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088    libdir=$ac_optarg ;;
1089
1090  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091  | --libexe | --libex | --libe)
1092    ac_prev=libexecdir ;;
1093  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094  | --libexe=* | --libex=* | --libe=*)
1095    libexecdir=$ac_optarg ;;
1096
1097  -localedir | --localedir | --localedi | --localed | --locale)
1098    ac_prev=localedir ;;
1099  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100    localedir=$ac_optarg ;;
1101
1102  -localstatedir | --localstatedir | --localstatedi | --localstated \
1103  | --localstate | --localstat | --localsta | --localst | --locals)
1104    ac_prev=localstatedir ;;
1105  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107    localstatedir=$ac_optarg ;;
1108
1109  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110    ac_prev=mandir ;;
1111  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112    mandir=$ac_optarg ;;
1113
1114  -nfp | --nfp | --nf)
1115    # Obsolete; use --without-fp.
1116    with_fp=no ;;
1117
1118  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119  | --no-cr | --no-c | -n)
1120    no_create=yes ;;
1121
1122  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124    no_recursion=yes ;;
1125
1126  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128  | --oldin | --oldi | --old | --ol | --o)
1129    ac_prev=oldincludedir ;;
1130  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133    oldincludedir=$ac_optarg ;;
1134
1135  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136    ac_prev=prefix ;;
1137  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138    prefix=$ac_optarg ;;
1139
1140  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141  | --program-pre | --program-pr | --program-p)
1142    ac_prev=program_prefix ;;
1143  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145    program_prefix=$ac_optarg ;;
1146
1147  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148  | --program-suf | --program-su | --program-s)
1149    ac_prev=program_suffix ;;
1150  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152    program_suffix=$ac_optarg ;;
1153
1154  -program-transform-name | --program-transform-name \
1155  | --program-transform-nam | --program-transform-na \
1156  | --program-transform-n | --program-transform- \
1157  | --program-transform | --program-transfor \
1158  | --program-transfo | --program-transf \
1159  | --program-trans | --program-tran \
1160  | --progr-tra | --program-tr | --program-t)
1161    ac_prev=program_transform_name ;;
1162  -program-transform-name=* | --program-transform-name=* \
1163  | --program-transform-nam=* | --program-transform-na=* \
1164  | --program-transform-n=* | --program-transform-=* \
1165  | --program-transform=* | --program-transfor=* \
1166  | --program-transfo=* | --program-transf=* \
1167  | --program-trans=* | --program-tran=* \
1168  | --progr-tra=* | --program-tr=* | --program-t=*)
1169    program_transform_name=$ac_optarg ;;
1170
1171  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172    ac_prev=pdfdir ;;
1173  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174    pdfdir=$ac_optarg ;;
1175
1176  -psdir | --psdir | --psdi | --psd | --ps)
1177    ac_prev=psdir ;;
1178  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179    psdir=$ac_optarg ;;
1180
1181  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182  | -silent | --silent | --silen | --sile | --sil)
1183    silent=yes ;;
1184
1185  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186    ac_prev=sbindir ;;
1187  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188  | --sbi=* | --sb=*)
1189    sbindir=$ac_optarg ;;
1190
1191  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193  | --sharedst | --shareds | --shared | --share | --shar \
1194  | --sha | --sh)
1195    ac_prev=sharedstatedir ;;
1196  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199  | --sha=* | --sh=*)
1200    sharedstatedir=$ac_optarg ;;
1201
1202  -site | --site | --sit)
1203    ac_prev=site ;;
1204  -site=* | --site=* | --sit=*)
1205    site=$ac_optarg ;;
1206
1207  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208    ac_prev=srcdir ;;
1209  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210    srcdir=$ac_optarg ;;
1211
1212  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213  | --syscon | --sysco | --sysc | --sys | --sy)
1214    ac_prev=sysconfdir ;;
1215  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217    sysconfdir=$ac_optarg ;;
1218
1219  -target | --target | --targe | --targ | --tar | --ta | --t)
1220    ac_prev=target_alias ;;
1221  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222    target_alias=$ac_optarg ;;
1223
1224  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225    verbose=yes ;;
1226
1227  -version | --version | --versio | --versi | --vers | -V)
1228    ac_init_version=: ;;
1229
1230  -with-* | --with-*)
1231    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232    # Reject names that are not valid shell variable names.
1233    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234      { echo "$as_me: error: invalid package name: $ac_package" >&2
1235   { (exit 1); exit 1; }; }
1236    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237    eval with_$ac_package=\$ac_optarg ;;
1238
1239  -without-* | --without-*)
1240    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241    # Reject names that are not valid shell variable names.
1242    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243      { echo "$as_me: error: invalid package name: $ac_package" >&2
1244   { (exit 1); exit 1; }; }
1245    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1246    eval with_$ac_package=no ;;
1247
1248  --x)
1249    # Obsolete; use --with-x.
1250    with_x=yes ;;
1251
1252  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253  | --x-incl | --x-inc | --x-in | --x-i)
1254    ac_prev=x_includes ;;
1255  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257    x_includes=$ac_optarg ;;
1258
1259  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261    ac_prev=x_libraries ;;
1262  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264    x_libraries=$ac_optarg ;;
1265
1266  -*) { echo "$as_me: error: unrecognized option: $ac_option
1267Try \`$0 --help' for more information." >&2
1268   { (exit 1); exit 1; }; }
1269    ;;
1270
1271  *=*)
1272    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273    # Reject names that are not valid shell variable names.
1274    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1275      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276   { (exit 1); exit 1; }; }
1277    eval $ac_envvar=\$ac_optarg
1278    export $ac_envvar ;;
1279
1280  *)
1281    # FIXME: should be removed in autoconf 3.0.
1282    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286    ;;
1287
1288  esac
1289done
1290
1291if test -n "$ac_prev"; then
1292  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293  { echo "$as_me: error: missing argument to $ac_option" >&2
1294   { (exit 1); exit 1; }; }
1295fi
1296
1297# Be sure to have absolute directory names.
1298for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299		datadir sysconfdir sharedstatedir localstatedir includedir \
1300		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301		libdir localedir mandir
1302do
1303  eval ac_val=\$$ac_var
1304  case $ac_val in
1305    [\\/$]* | ?:[\\/]* )  continue;;
1306    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307  esac
1308  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309   { (exit 1); exit 1; }; }
1310done
1311
1312# There might be people who depend on the old broken behavior: `$host'
1313# used to hold the argument of --host etc.
1314# FIXME: To remove some day.
1315build=$build_alias
1316host=$host_alias
1317target=$target_alias
1318
1319# FIXME: To remove some day.
1320if test "x$host_alias" != x; then
1321  if test "x$build_alias" = x; then
1322    cross_compiling=maybe
1323    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324    If a cross compiler is detected then cross compile mode will be used." >&2
1325  elif test "x$build_alias" != "x$host_alias"; then
1326    cross_compiling=yes
1327  fi
1328fi
1329
1330ac_tool_prefix=
1331test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333test "$silent" = yes && exec 6>/dev/null
1334
1335
1336ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337ac_ls_di=`ls -di .` &&
1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339  { echo "$as_me: error: Working directory cannot be determined" >&2
1340   { (exit 1); exit 1; }; }
1341test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342  { echo "$as_me: error: pwd does not report name of working directory" >&2
1343   { (exit 1); exit 1; }; }
1344
1345
1346# Find the source files, if location was not specified.
1347if test -z "$srcdir"; then
1348  ac_srcdir_defaulted=yes
1349  # Try the directory containing this script, then the parent directory.
1350  ac_confdir=`$as_dirname -- "$0" ||
1351$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352	 X"$0" : 'X\(//\)[^/]' \| \
1353	 X"$0" : 'X\(//\)$' \| \
1354	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1355echo X"$0" |
1356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\/\)[^/].*/{
1361	    s//\1/
1362	    q
1363	  }
1364	  /^X\(\/\/\)$/{
1365	    s//\1/
1366	    q
1367	  }
1368	  /^X\(\/\).*/{
1369	    s//\1/
1370	    q
1371	  }
1372	  s/.*/./; q'`
1373  srcdir=$ac_confdir
1374  if test ! -r "$srcdir/$ac_unique_file"; then
1375    srcdir=..
1376  fi
1377else
1378  ac_srcdir_defaulted=no
1379fi
1380if test ! -r "$srcdir/$ac_unique_file"; then
1381  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383   { (exit 1); exit 1; }; }
1384fi
1385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386ac_abs_confdir=`(
1387	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1388   { (exit 1); exit 1; }; }
1389	pwd)`
1390# When building in place, set srcdir=.
1391if test "$ac_abs_confdir" = "$ac_pwd"; then
1392  srcdir=.
1393fi
1394# Remove unnecessary trailing slashes from srcdir.
1395# Double slashes in file names in object file debugging info
1396# mess up M-x gdb in Emacs.
1397case $srcdir in
1398*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399esac
1400for ac_var in $ac_precious_vars; do
1401  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402  eval ac_env_${ac_var}_value=\$${ac_var}
1403  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405done
1406
1407#
1408# Report the --help message.
1409#
1410if test "$ac_init_help" = "long"; then
1411  # Omit some internal or obsolete options to make the list less imposing.
1412  # This message is too long to be a string in the A/UX 3.1 sh.
1413  cat <<_ACEOF
1414\`configure' configures panoglview 0.2.2 to adapt to many kinds of systems.
1415
1416Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419VAR=VALUE.  See below for descriptions of some of the useful variables.
1420
1421Defaults for the options are specified in brackets.
1422
1423Configuration:
1424  -h, --help              display this help and exit
1425      --help=short        display options specific to this package
1426      --help=recursive    display the short help of all the included packages
1427  -V, --version           display version information and exit
1428  -q, --quiet, --silent   do not print \`checking...' messages
1429      --cache-file=FILE   cache test results in FILE [disabled]
1430  -C, --config-cache      alias for \`--cache-file=config.cache'
1431  -n, --no-create         do not create output files
1432      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1433
1434Installation directories:
1435  --prefix=PREFIX         install architecture-independent files in PREFIX
1436			  [$ac_default_prefix]
1437  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1438			  [PREFIX]
1439
1440By default, \`make install' will install all the files in
1441\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1442an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443for instance \`--prefix=\$HOME'.
1444
1445For better control, use the options below.
1446
1447Fine tuning of the installation directories:
1448  --bindir=DIR           user executables [EPREFIX/bin]
1449  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1450  --libexecdir=DIR       program executables [EPREFIX/libexec]
1451  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1452  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1453  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1454  --libdir=DIR           object code libraries [EPREFIX/lib]
1455  --includedir=DIR       C header files [PREFIX/include]
1456  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1457  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1458  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1459  --infodir=DIR          info documentation [DATAROOTDIR/info]
1460  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1461  --mandir=DIR           man documentation [DATAROOTDIR/man]
1462  --docdir=DIR           documentation root [DATAROOTDIR/doc/panoglview]
1463  --htmldir=DIR          html documentation [DOCDIR]
1464  --dvidir=DIR           dvi documentation [DOCDIR]
1465  --pdfdir=DIR           pdf documentation [DOCDIR]
1466  --psdir=DIR            ps documentation [DOCDIR]
1467_ACEOF
1468
1469  cat <<\_ACEOF
1470
1471Program names:
1472  --program-prefix=PREFIX            prepend PREFIX to installed program names
1473  --program-suffix=SUFFIX            append SUFFIX to installed program names
1474  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1475
1476System types:
1477  --build=BUILD     configure for building on BUILD [guessed]
1478  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1479  --target=TARGET   configure for building compilers for TARGET [HOST]
1480_ACEOF
1481fi
1482
1483if test -n "$ac_init_help"; then
1484  case $ac_init_help in
1485     short | recursive ) echo "Configuration of panoglview 0.2.2:";;
1486   esac
1487  cat <<\_ACEOF
1488
1489Optional Features:
1490  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1491  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1492  --disable-dependency-tracking  speeds up one-time build
1493  --enable-dependency-tracking   do not reject slow dependency extractors
1494  --enable-plugin         enable the plugin for tuvista (default=no).
1495
1496  --enable-shared[=PKGS]  build shared libraries [default=yes]
1497  --enable-static[=PKGS]  build static libraries [default=yes]
1498  --enable-fast-install[=PKGS]
1499                          optimize for fast installation [default=yes]
1500  --disable-libtool-lock  avoid locking (might break parallel builds)
1501
1502Optional Packages:
1503  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1504  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1505  --with-unicode=yes/no   set to 'yes' if you are using unicode wxWidgets
1506                          library. (default=no)
1507  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1508  --with-pic              try to use only PIC/non-PIC objects [default=use
1509                          both]
1510  --with-tags[=TAGS]      include additional configurations [automatic]
1511
1512Some influential environment variables:
1513  CXX         C++ compiler command
1514  CXXFLAGS    C++ compiler flags
1515  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516              nonstandard directory <lib dir>
1517  LIBS        libraries to pass to the linker, e.g. -l<library>
1518  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519              you have headers in a nonstandard directory <include dir>
1520  CC          C compiler command
1521  CFLAGS      C compiler flags
1522  CPP         C preprocessor
1523  CXXCPP      C++ preprocessor
1524  F77         Fortran 77 compiler command
1525  FFLAGS      Fortran 77 compiler flags
1526
1527Use these variables to override the choices made by `configure' or to help
1528it to find libraries and programs with nonstandard names/locations.
1529
1530_ACEOF
1531ac_status=$?
1532fi
1533
1534if test "$ac_init_help" = "recursive"; then
1535  # If there are subdirs, report their specific --help.
1536  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537    test -d "$ac_dir" || continue
1538    ac_builddir=.
1539
1540case "$ac_dir" in
1541.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542*)
1543  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1544  # A ".." for each directory in $ac_dir_suffix.
1545  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1546  case $ac_top_builddir_sub in
1547  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549  esac ;;
1550esac
1551ac_abs_top_builddir=$ac_pwd
1552ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553# for backward compatibility:
1554ac_top_builddir=$ac_top_build_prefix
1555
1556case $srcdir in
1557  .)  # We are building in place.
1558    ac_srcdir=.
1559    ac_top_srcdir=$ac_top_builddir_sub
1560    ac_abs_top_srcdir=$ac_pwd ;;
1561  [\\/]* | ?:[\\/]* )  # Absolute name.
1562    ac_srcdir=$srcdir$ac_dir_suffix;
1563    ac_top_srcdir=$srcdir
1564    ac_abs_top_srcdir=$srcdir ;;
1565  *) # Relative name.
1566    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567    ac_top_srcdir=$ac_top_build_prefix$srcdir
1568    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569esac
1570ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572    cd "$ac_dir" || { ac_status=$?; continue; }
1573    # Check for guested configure.
1574    if test -f "$ac_srcdir/configure.gnu"; then
1575      echo &&
1576      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577    elif test -f "$ac_srcdir/configure"; then
1578      echo &&
1579      $SHELL "$ac_srcdir/configure" --help=recursive
1580    else
1581      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582    fi || ac_status=$?
1583    cd "$ac_pwd" || { ac_status=$?; break; }
1584  done
1585fi
1586
1587test -n "$ac_init_help" && exit $ac_status
1588if $ac_init_version; then
1589  cat <<\_ACEOF
1590panoglview configure 0.2.2
1591generated by GNU Autoconf 2.61
1592
1593Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15942002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1595This configure script is free software; the Free Software Foundation
1596gives unlimited permission to copy, distribute and modify it.
1597_ACEOF
1598  exit
1599fi
1600cat >config.log <<_ACEOF
1601This file contains any messages produced by compilers while
1602running configure, to aid debugging if configure makes a mistake.
1603
1604It was created by panoglview $as_me 0.2.2, which was
1605generated by GNU Autoconf 2.61.  Invocation command line was
1606
1607  $ $0 $@
1608
1609_ACEOF
1610exec 5>>config.log
1611{
1612cat <<_ASUNAME
1613## --------- ##
1614## Platform. ##
1615## --------- ##
1616
1617hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1618uname -m = `(uname -m) 2>/dev/null || echo unknown`
1619uname -r = `(uname -r) 2>/dev/null || echo unknown`
1620uname -s = `(uname -s) 2>/dev/null || echo unknown`
1621uname -v = `(uname -v) 2>/dev/null || echo unknown`
1622
1623/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1624/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1625
1626/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1627/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1628/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1629/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1630/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1631/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1632/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1633
1634_ASUNAME
1635
1636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637for as_dir in $PATH
1638do
1639  IFS=$as_save_IFS
1640  test -z "$as_dir" && as_dir=.
1641  echo "PATH: $as_dir"
1642done
1643IFS=$as_save_IFS
1644
1645} >&5
1646
1647cat >&5 <<_ACEOF
1648
1649
1650## ----------- ##
1651## Core tests. ##
1652## ----------- ##
1653
1654_ACEOF
1655
1656
1657# Keep a trace of the command line.
1658# Strip out --no-create and --no-recursion so they do not pile up.
1659# Strip out --silent because we don't want to record it for future runs.
1660# Also quote any args containing shell meta-characters.
1661# Make two passes to allow for proper duplicate-argument suppression.
1662ac_configure_args=
1663ac_configure_args0=
1664ac_configure_args1=
1665ac_must_keep_next=false
1666for ac_pass in 1 2
1667do
1668  for ac_arg
1669  do
1670    case $ac_arg in
1671    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1672    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1673    | -silent | --silent | --silen | --sile | --sil)
1674      continue ;;
1675    *\'*)
1676      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677    esac
1678    case $ac_pass in
1679    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1680    2)
1681      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1682      if test $ac_must_keep_next = true; then
1683	ac_must_keep_next=false # Got value, back to normal.
1684      else
1685	case $ac_arg in
1686	  *=* | --config-cache | -C | -disable-* | --disable-* \
1687	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1688	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1689	  | -with-* | --with-* | -without-* | --without-* | --x)
1690	    case "$ac_configure_args0 " in
1691	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692	    esac
1693	    ;;
1694	  -* ) ac_must_keep_next=true ;;
1695	esac
1696      fi
1697      ac_configure_args="$ac_configure_args '$ac_arg'"
1698      ;;
1699    esac
1700  done
1701done
1702$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1703$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1704
1705# When interrupted or exit'd, cleanup temporary files, and complete
1706# config.log.  We remove comments because anyway the quotes in there
1707# would cause problems or look ugly.
1708# WARNING: Use '\'' to represent an apostrophe within the trap.
1709# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1710trap 'exit_status=$?
1711  # Save into config.log some information that might help in debugging.
1712  {
1713    echo
1714
1715    cat <<\_ASBOX
1716## ---------------- ##
1717## Cache variables. ##
1718## ---------------- ##
1719_ASBOX
1720    echo
1721    # The following way of writing the cache mishandles newlines in values,
1722(
1723  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1724    eval ac_val=\$$ac_var
1725    case $ac_val in #(
1726    *${as_nl}*)
1727      case $ac_var in #(
1728      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1729echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730      esac
1731      case $ac_var in #(
1732      _ | IFS | as_nl) ;; #(
1733      *) $as_unset $ac_var ;;
1734      esac ;;
1735    esac
1736  done
1737  (set) 2>&1 |
1738    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1739    *${as_nl}ac_space=\ *)
1740      sed -n \
1741	"s/'\''/'\''\\\\'\'''\''/g;
1742	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743      ;; #(
1744    *)
1745      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746      ;;
1747    esac |
1748    sort
1749)
1750    echo
1751
1752    cat <<\_ASBOX
1753## ----------------- ##
1754## Output variables. ##
1755## ----------------- ##
1756_ASBOX
1757    echo
1758    for ac_var in $ac_subst_vars
1759    do
1760      eval ac_val=\$$ac_var
1761      case $ac_val in
1762      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763      esac
1764      echo "$ac_var='\''$ac_val'\''"
1765    done | sort
1766    echo
1767
1768    if test -n "$ac_subst_files"; then
1769      cat <<\_ASBOX
1770## ------------------- ##
1771## File substitutions. ##
1772## ------------------- ##
1773_ASBOX
1774      echo
1775      for ac_var in $ac_subst_files
1776      do
1777	eval ac_val=\$$ac_var
1778	case $ac_val in
1779	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780	esac
1781	echo "$ac_var='\''$ac_val'\''"
1782      done | sort
1783      echo
1784    fi
1785
1786    if test -s confdefs.h; then
1787      cat <<\_ASBOX
1788## ----------- ##
1789## confdefs.h. ##
1790## ----------- ##
1791_ASBOX
1792      echo
1793      cat confdefs.h
1794      echo
1795    fi
1796    test "$ac_signal" != 0 &&
1797      echo "$as_me: caught signal $ac_signal"
1798    echo "$as_me: exit $exit_status"
1799  } >&5
1800  rm -f core *.core core.conftest.* &&
1801    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802    exit $exit_status
1803' 0
1804for ac_signal in 1 2 13 15; do
1805  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1806done
1807ac_signal=0
1808
1809# confdefs.h avoids OS command line length limits that DEFS can exceed.
1810rm -f -r conftest* confdefs.h
1811
1812# Predefined preprocessor variables.
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_NAME "$PACKAGE_NAME"
1816_ACEOF
1817
1818
1819cat >>confdefs.h <<_ACEOF
1820#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1821_ACEOF
1822
1823
1824cat >>confdefs.h <<_ACEOF
1825#define PACKAGE_VERSION "$PACKAGE_VERSION"
1826_ACEOF
1827
1828
1829cat >>confdefs.h <<_ACEOF
1830#define PACKAGE_STRING "$PACKAGE_STRING"
1831_ACEOF
1832
1833
1834cat >>confdefs.h <<_ACEOF
1835#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1836_ACEOF
1837
1838
1839# Let the site file select an alternate cache file if it wants to.
1840# Prefer explicitly selected file to automatically selected ones.
1841if test -n "$CONFIG_SITE"; then
1842  set x "$CONFIG_SITE"
1843elif test "x$prefix" != xNONE; then
1844  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1845else
1846  set x "$ac_default_prefix/share/config.site" \
1847	"$ac_default_prefix/etc/config.site"
1848fi
1849shift
1850for ac_site_file
1851do
1852  if test -r "$ac_site_file"; then
1853    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1854echo "$as_me: loading site script $ac_site_file" >&6;}
1855    sed 's/^/| /' "$ac_site_file" >&5
1856    . "$ac_site_file"
1857  fi
1858done
1859
1860if test -r "$cache_file"; then
1861  # Some versions of bash will fail to source /dev/null (special
1862  # files actually), so we avoid doing that.
1863  if test -f "$cache_file"; then
1864    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1865echo "$as_me: loading cache $cache_file" >&6;}
1866    case $cache_file in
1867      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1868      *)                      . "./$cache_file";;
1869    esac
1870  fi
1871else
1872  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1873echo "$as_me: creating cache $cache_file" >&6;}
1874  >$cache_file
1875fi
1876
1877# Check that the precious variables saved in the cache have kept the same
1878# value.
1879ac_cache_corrupted=false
1880for ac_var in $ac_precious_vars; do
1881  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1882  eval ac_new_set=\$ac_env_${ac_var}_set
1883  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1884  eval ac_new_val=\$ac_env_${ac_var}_value
1885  case $ac_old_set,$ac_new_set in
1886    set,)
1887      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889      ac_cache_corrupted=: ;;
1890    ,set)
1891      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893      ac_cache_corrupted=: ;;
1894    ,);;
1895    *)
1896      if test "x$ac_old_val" != "x$ac_new_val"; then
1897	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1898echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1899	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1900echo "$as_me:   former value:  $ac_old_val" >&2;}
1901	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1902echo "$as_me:   current value: $ac_new_val" >&2;}
1903	ac_cache_corrupted=:
1904      fi;;
1905  esac
1906  # Pass precious variables to config.status.
1907  if test "$ac_new_set" = set; then
1908    case $ac_new_val in
1909    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1910    *) ac_arg=$ac_var=$ac_new_val ;;
1911    esac
1912    case " $ac_configure_args " in
1913      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1914      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1915    esac
1916  fi
1917done
1918if $ac_cache_corrupted; then
1919  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1920echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1921  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1922echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1923   { (exit 1); exit 1; }; }
1924fi
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950ac_ext=c
1951ac_cpp='$CPP $CPPFLAGS'
1952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955
1956
1957ac_aux_dir=
1958for ac_dir in config "$srcdir"/config; do
1959  if test -f "$ac_dir/install-sh"; then
1960    ac_aux_dir=$ac_dir
1961    ac_install_sh="$ac_aux_dir/install-sh -c"
1962    break
1963  elif test -f "$ac_dir/install.sh"; then
1964    ac_aux_dir=$ac_dir
1965    ac_install_sh="$ac_aux_dir/install.sh -c"
1966    break
1967  elif test -f "$ac_dir/shtool"; then
1968    ac_aux_dir=$ac_dir
1969    ac_install_sh="$ac_aux_dir/shtool install -c"
1970    break
1971  fi
1972done
1973if test -z "$ac_aux_dir"; then
1974  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1975echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1976   { (exit 1); exit 1; }; }
1977fi
1978
1979# These three variables are undocumented and unsupported,
1980# and are intended to be withdrawn in a future Autoconf release.
1981# They can cause serious problems if a builder's source tree is in a directory
1982# whose full name contains unusual characters.
1983ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1984ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1985ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1986
1987
1988# Make sure we can run config.sub.
1989$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1990  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1991echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1992   { (exit 1); exit 1; }; }
1993
1994{ echo "$as_me:$LINENO: checking build system type" >&5
1995echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1996if test "${ac_cv_build+set}" = set; then
1997  echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999  ac_build_alias=$build_alias
2000test "x$ac_build_alias" = x &&
2001  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2002test "x$ac_build_alias" = x &&
2003  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2004echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2005   { (exit 1); exit 1; }; }
2006ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2007  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2008echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2009   { (exit 1); exit 1; }; }
2010
2011fi
2012{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2013echo "${ECHO_T}$ac_cv_build" >&6; }
2014case $ac_cv_build in
2015*-*-*) ;;
2016*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2017echo "$as_me: error: invalid value of canonical build" >&2;}
2018   { (exit 1); exit 1; }; };;
2019esac
2020build=$ac_cv_build
2021ac_save_IFS=$IFS; IFS='-'
2022set x $ac_cv_build
2023shift
2024build_cpu=$1
2025build_vendor=$2
2026shift; shift
2027# Remember, the first character of IFS is used to create $*,
2028# except with old shells:
2029build_os=$*
2030IFS=$ac_save_IFS
2031case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2032
2033
2034{ echo "$as_me:$LINENO: checking host system type" >&5
2035echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2036if test "${ac_cv_host+set}" = set; then
2037  echo $ECHO_N "(cached) $ECHO_C" >&6
2038else
2039  if test "x$host_alias" = x; then
2040  ac_cv_host=$ac_cv_build
2041else
2042  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2043    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2044echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2045   { (exit 1); exit 1; }; }
2046fi
2047
2048fi
2049{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2050echo "${ECHO_T}$ac_cv_host" >&6; }
2051case $ac_cv_host in
2052*-*-*) ;;
2053*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2054echo "$as_me: error: invalid value of canonical host" >&2;}
2055   { (exit 1); exit 1; }; };;
2056esac
2057host=$ac_cv_host
2058ac_save_IFS=$IFS; IFS='-'
2059set x $ac_cv_host
2060shift
2061host_cpu=$1
2062host_vendor=$2
2063shift; shift
2064# Remember, the first character of IFS is used to create $*,
2065# except with old shells:
2066host_os=$*
2067IFS=$ac_save_IFS
2068case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2069
2070
2071{ echo "$as_me:$LINENO: checking target system type" >&5
2072echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2073if test "${ac_cv_target+set}" = set; then
2074  echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076  if test "x$target_alias" = x; then
2077  ac_cv_target=$ac_cv_host
2078else
2079  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2080    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2081echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2082   { (exit 1); exit 1; }; }
2083fi
2084
2085fi
2086{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2087echo "${ECHO_T}$ac_cv_target" >&6; }
2088case $ac_cv_target in
2089*-*-*) ;;
2090*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2091echo "$as_me: error: invalid value of canonical target" >&2;}
2092   { (exit 1); exit 1; }; };;
2093esac
2094target=$ac_cv_target
2095ac_save_IFS=$IFS; IFS='-'
2096set x $ac_cv_target
2097shift
2098target_cpu=$1
2099target_vendor=$2
2100shift; shift
2101# Remember, the first character of IFS is used to create $*,
2102# except with old shells:
2103target_os=$*
2104IFS=$ac_save_IFS
2105case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2106
2107
2108# The aliases save the names the user supplied, while $host etc.
2109# will get canonicalized.
2110test -n "$target_alias" &&
2111  test "$program_prefix$program_suffix$program_transform_name" = \
2112    NONENONEs,x,x, &&
2113  program_prefix=${target_alias}-
2114am__api_version='1.10'
2115
2116# Find a good install program.  We prefer a C program (faster),
2117# so one script is as good as another.  But avoid the broken or
2118# incompatible versions:
2119# SysV /etc/install, /usr/sbin/install
2120# SunOS /usr/etc/install
2121# IRIX /sbin/install
2122# AIX /bin/install
2123# AmigaOS /C/install, which installs bootblocks on floppy discs
2124# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2125# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2126# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2127# OS/2's system install, which has a completely different semantic
2128# ./install, which can be erroneously created by make from ./install.sh.
2129{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2130echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2131if test -z "$INSTALL"; then
2132if test "${ac_cv_path_install+set}" = set; then
2133  echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
2135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138  IFS=$as_save_IFS
2139  test -z "$as_dir" && as_dir=.
2140  # Account for people who put trailing slashes in PATH elements.
2141case $as_dir/ in
2142  ./ | .// | /cC/* | \
2143  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2144  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2145  /usr/ucb/* ) ;;
2146  *)
2147    # OSF1 and SCO ODT 3.0 have their own names for install.
2148    # Don't use installbsd from OSF since it installs stuff as root
2149    # by default.
2150    for ac_prog in ginstall scoinst install; do
2151      for ac_exec_ext in '' $ac_executable_extensions; do
2152	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2153	  if test $ac_prog = install &&
2154	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2155	    # AIX install.  It has an incompatible calling convention.
2156	    :
2157	  elif test $ac_prog = install &&
2158	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2159	    # program-specific install script used by HP pwplus--don't use.
2160	    :
2161	  else
2162	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2163	    break 3
2164	  fi
2165	fi
2166      done
2167    done
2168    ;;
2169esac
2170done
2171IFS=$as_save_IFS
2172
2173
2174fi
2175  if test "${ac_cv_path_install+set}" = set; then
2176    INSTALL=$ac_cv_path_install
2177  else
2178    # As a last resort, use the slow shell script.  Don't cache a
2179    # value for INSTALL within a source directory, because that will
2180    # break other packages using the cache if that directory is
2181    # removed, or if the value is a relative name.
2182    INSTALL=$ac_install_sh
2183  fi
2184fi
2185{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2186echo "${ECHO_T}$INSTALL" >&6; }
2187
2188# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2189# It thinks the first close brace ends the variable substitution.
2190test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2191
2192test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2193
2194test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2195
2196{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2197echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2198# Just in case
2199sleep 1
2200echo timestamp > conftest.file
2201# Do `set' in a subshell so we don't clobber the current shell's
2202# arguments.  Must try -L first in case configure is actually a
2203# symlink; some systems play weird games with the mod time of symlinks
2204# (eg FreeBSD returns the mod time of the symlink's containing
2205# directory).
2206if (
2207   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2208   if test "$*" = "X"; then
2209      # -L didn't work.
2210      set X `ls -t $srcdir/configure conftest.file`
2211   fi
2212   rm -f conftest.file
2213   if test "$*" != "X $srcdir/configure conftest.file" \
2214      && test "$*" != "X conftest.file $srcdir/configure"; then
2215
2216      # If neither matched, then we have a broken ls.  This can happen
2217      # if, for instance, CONFIG_SHELL is bash and it inherits a
2218      # broken ls alias from the environment.  This has actually
2219      # happened.  Such a system could not be considered "sane".
2220      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2221alias in your environment" >&5
2222echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2223alias in your environment" >&2;}
2224   { (exit 1); exit 1; }; }
2225   fi
2226
2227   test "$2" = conftest.file
2228   )
2229then
2230   # Ok.
2231   :
2232else
2233   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2234Check your system clock" >&5
2235echo "$as_me: error: newly created file is older than distributed files!
2236Check your system clock" >&2;}
2237   { (exit 1); exit 1; }; }
2238fi
2239{ echo "$as_me:$LINENO: result: yes" >&5
2240echo "${ECHO_T}yes" >&6; }
2241test "$program_prefix" != NONE &&
2242  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2243# Use a double $ so make ignores it.
2244test "$program_suffix" != NONE &&
2245  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2246# Double any \ or $.  echo might interpret backslashes.
2247# By default was `s,x,x', remove it if useless.
2248cat <<\_ACEOF >conftest.sed
2249s/[\\$]/&&/g;s/;s,x,x,$//
2250_ACEOF
2251program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2252rm -f conftest.sed
2253
2254# expand $ac_aux_dir to an absolute path
2255am_aux_dir=`cd $ac_aux_dir && pwd`
2256
2257test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2258# Use eval to expand $SHELL
2259if eval "$MISSING --run true"; then
2260  am_missing_run="$MISSING --run "
2261else
2262  am_missing_run=
2263  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2264echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2265fi
2266
2267{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2268echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2269if test -z "$MKDIR_P"; then
2270  if test "${ac_cv_path_mkdir+set}" = set; then
2271  echo $ECHO_N "(cached) $ECHO_C" >&6
2272else
2273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2275do
2276  IFS=$as_save_IFS
2277  test -z "$as_dir" && as_dir=.
2278  for ac_prog in mkdir gmkdir; do
2279	 for ac_exec_ext in '' $ac_executable_extensions; do
2280	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2281	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2282	     'mkdir (GNU coreutils) '* | \
2283	     'mkdir (coreutils) '* | \
2284	     'mkdir (fileutils) '4.1*)
2285	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2286	       break 3;;
2287	   esac
2288	 done
2289       done
2290done
2291IFS=$as_save_IFS
2292
2293fi
2294
2295  if test "${ac_cv_path_mkdir+set}" = set; then
2296    MKDIR_P="$ac_cv_path_mkdir -p"
2297  else
2298    # As a last resort, use the slow shell script.  Don't cache a
2299    # value for MKDIR_P within a source directory, because that will
2300    # break other packages using the cache if that directory is
2301    # removed, or if the value is a relative name.
2302    test -d ./--version && rmdir ./--version
2303    MKDIR_P="$ac_install_sh -d"
2304  fi
2305fi
2306{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2307echo "${ECHO_T}$MKDIR_P" >&6; }
2308
2309mkdir_p="$MKDIR_P"
2310case $mkdir_p in
2311  [\\/$]* | ?:[\\/]*) ;;
2312  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2313esac
2314
2315for ac_prog in gawk mawk nawk awk
2316do
2317  # Extract the first word of "$ac_prog", so it can be a program name with args.
2318set dummy $ac_prog; ac_word=$2
2319{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321if test "${ac_cv_prog_AWK+set}" = set; then
2322  echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324  if test -n "$AWK"; then
2325  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2326else
2327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328for as_dir in $PATH
2329do
2330  IFS=$as_save_IFS
2331  test -z "$as_dir" && as_dir=.
2332  for ac_exec_ext in '' $ac_executable_extensions; do
2333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334    ac_cv_prog_AWK="$ac_prog"
2335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336    break 2
2337  fi
2338done
2339done
2340IFS=$as_save_IFS
2341
2342fi
2343fi
2344AWK=$ac_cv_prog_AWK
2345if test -n "$AWK"; then
2346  { echo "$as_me:$LINENO: result: $AWK" >&5
2347echo "${ECHO_T}$AWK" >&6; }
2348else
2349  { echo "$as_me:$LINENO: result: no" >&5
2350echo "${ECHO_T}no" >&6; }
2351fi
2352
2353
2354  test -n "$AWK" && break
2355done
2356
2357{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2358echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2359set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2360if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2361  echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
2363  cat >conftest.make <<\_ACEOF
2364SHELL = /bin/sh
2365all:
2366	@echo '@@@%%%=$(MAKE)=@@@%%%'
2367_ACEOF
2368# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2369case `${MAKE-make} -f conftest.make 2>/dev/null` in
2370  *@@@%%%=?*=@@@%%%*)
2371    eval ac_cv_prog_make_${ac_make}_set=yes;;
2372  *)
2373    eval ac_cv_prog_make_${ac_make}_set=no;;
2374esac
2375rm -f conftest.make
2376fi
2377if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2378  { echo "$as_me:$LINENO: result: yes" >&5
2379echo "${ECHO_T}yes" >&6; }
2380  SET_MAKE=
2381else
2382  { echo "$as_me:$LINENO: result: no" >&5
2383echo "${ECHO_T}no" >&6; }
2384  SET_MAKE="MAKE=${MAKE-make}"
2385fi
2386
2387rm -rf .tst 2>/dev/null
2388mkdir .tst 2>/dev/null
2389if test -d .tst; then
2390  am__leading_dot=.
2391else
2392  am__leading_dot=_
2393fi
2394rmdir .tst 2>/dev/null
2395
2396if test "`cd $srcdir && pwd`" != "`pwd`"; then
2397  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2398  # is not polluted with repeated "-I."
2399  am__isrc=' -I$(srcdir)'
2400  # test to see if srcdir already configured
2401  if test -f $srcdir/config.status; then
2402    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2403echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2404   { (exit 1); exit 1; }; }
2405  fi
2406fi
2407
2408# test whether we have cygpath
2409if test -z "$CYGPATH_W"; then
2410  if (cygpath --version) >/dev/null 2>/dev/null; then
2411    CYGPATH_W='cygpath -w'
2412  else
2413    CYGPATH_W=echo
2414  fi
2415fi
2416
2417
2418# Define the identity of the package.
2419 PACKAGE='panoglview'
2420 VERSION='0.2.2'
2421
2422
2423# Some tools Automake needs.
2424
2425ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2426
2427
2428AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2429
2430
2431AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2432
2433
2434AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2435
2436
2437MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2438
2439install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2440
2441# Installed binaries are usually stripped using `strip' when the user
2442# run `make install-strip'.  However `strip' might not be the right
2443# tool to use in cross-compilation environments, therefore Automake
2444# will honor the `STRIP' environment variable to overrule this program.
2445if test "$cross_compiling" != no; then
2446  if test -n "$ac_tool_prefix"; then
2447  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2448set dummy ${ac_tool_prefix}strip; ac_word=$2
2449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2451if test "${ac_cv_prog_STRIP+set}" = set; then
2452  echo $ECHO_N "(cached) $ECHO_C" >&6
2453else
2454  if test -n "$STRIP"; then
2455  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2456else
2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460  IFS=$as_save_IFS
2461  test -z "$as_dir" && as_dir=.
2462  for ac_exec_ext in '' $ac_executable_extensions; do
2463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2465    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466    break 2
2467  fi
2468done
2469done
2470IFS=$as_save_IFS
2471
2472fi
2473fi
2474STRIP=$ac_cv_prog_STRIP
2475if test -n "$STRIP"; then
2476  { echo "$as_me:$LINENO: result: $STRIP" >&5
2477echo "${ECHO_T}$STRIP" >&6; }
2478else
2479  { echo "$as_me:$LINENO: result: no" >&5
2480echo "${ECHO_T}no" >&6; }
2481fi
2482
2483
2484fi
2485if test -z "$ac_cv_prog_STRIP"; then
2486  ac_ct_STRIP=$STRIP
2487  # Extract the first word of "strip", so it can be a program name with args.
2488set dummy strip; ac_word=$2
2489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2491if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2492  echo $ECHO_N "(cached) $ECHO_C" >&6
2493else
2494  if test -n "$ac_ct_STRIP"; then
2495  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2496else
2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498for as_dir in $PATH
2499do
2500  IFS=$as_save_IFS
2501  test -z "$as_dir" && as_dir=.
2502  for ac_exec_ext in '' $ac_executable_extensions; do
2503  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504    ac_cv_prog_ac_ct_STRIP="strip"
2505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506    break 2
2507  fi
2508done
2509done
2510IFS=$as_save_IFS
2511
2512fi
2513fi
2514ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2515if test -n "$ac_ct_STRIP"; then
2516  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2517echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2518else
2519  { echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6; }
2521fi
2522
2523  if test "x$ac_ct_STRIP" = x; then
2524    STRIP=":"
2525  else
2526    case $cross_compiling:$ac_tool_warned in
2527yes:)
2528{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2529whose name does not start with the host triplet.  If you think this
2530configuration is useful to you, please write to autoconf@gnu.org." >&5
2531echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2532whose name does not start with the host triplet.  If you think this
2533configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2534ac_tool_warned=yes ;;
2535esac
2536    STRIP=$ac_ct_STRIP
2537  fi
2538else
2539  STRIP="$ac_cv_prog_STRIP"
2540fi
2541
2542fi
2543INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2544
2545# We need awk for the "check" target.  The system "awk" is bad on
2546# some platforms.
2547# Always define AMTAR for backward compatibility.
2548
2549AMTAR=${AMTAR-"${am_missing_run}tar"}
2550
2551am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2552
2553
2554
2555
2556
2557ac_ext=cpp
2558ac_cpp='$CXXCPP $CPPFLAGS'
2559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2562if test -z "$CXX"; then
2563  if test -n "$CCC"; then
2564    CXX=$CCC
2565  else
2566    if test -n "$ac_tool_prefix"; then
2567  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2568  do
2569    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2570set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573if test "${ac_cv_prog_CXX+set}" = set; then
2574  echo $ECHO_N "(cached) $ECHO_C" >&6
2575else
2576  if test -n "$CXX"; then
2577  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582  IFS=$as_save_IFS
2583  test -z "$as_dir" && as_dir=.
2584  for ac_exec_ext in '' $ac_executable_extensions; do
2585  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588    break 2
2589  fi
2590done
2591done
2592IFS=$as_save_IFS
2593
2594fi
2595fi
2596CXX=$ac_cv_prog_CXX
2597if test -n "$CXX"; then
2598  { echo "$as_me:$LINENO: result: $CXX" >&5
2599echo "${ECHO_T}$CXX" >&6; }
2600else
2601  { echo "$as_me:$LINENO: result: no" >&5
2602echo "${ECHO_T}no" >&6; }
2603fi
2604
2605
2606    test -n "$CXX" && break
2607  done
2608fi
2609if test -z "$CXX"; then
2610  ac_ct_CXX=$CXX
2611  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2612do
2613  # Extract the first word of "$ac_prog", so it can be a program name with args.
2614set dummy $ac_prog; ac_word=$2
2615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2617if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2618  echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620  if test -n "$ac_ct_CXX"; then
2621  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626  IFS=$as_save_IFS
2627  test -z "$as_dir" && as_dir=.
2628  for ac_exec_ext in '' $ac_executable_extensions; do
2629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630    ac_cv_prog_ac_ct_CXX="$ac_prog"
2631    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632    break 2
2633  fi
2634done
2635done
2636IFS=$as_save_IFS
2637
2638fi
2639fi
2640ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2641if test -n "$ac_ct_CXX"; then
2642  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2643echo "${ECHO_T}$ac_ct_CXX" >&6; }
2644else
2645  { echo "$as_me:$LINENO: result: no" >&5
2646echo "${ECHO_T}no" >&6; }
2647fi
2648
2649
2650  test -n "$ac_ct_CXX" && break
2651done
2652
2653  if test "x$ac_ct_CXX" = x; then
2654    CXX="g++"
2655  else
2656    case $cross_compiling:$ac_tool_warned in
2657yes:)
2658{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2659whose name does not start with the host triplet.  If you think this
2660configuration is useful to you, please write to autoconf@gnu.org." >&5
2661echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2662whose name does not start with the host triplet.  If you think this
2663configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2664ac_tool_warned=yes ;;
2665esac
2666    CXX=$ac_ct_CXX
2667  fi
2668fi
2669
2670  fi
2671fi
2672# Provide some information about the compiler.
2673echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2674ac_compiler=`set X $ac_compile; echo $2`
2675{ (ac_try="$ac_compiler --version >&5"
2676case "(($ac_try" in
2677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678  *) ac_try_echo=$ac_try;;
2679esac
2680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681  (eval "$ac_compiler --version >&5") 2>&5
2682  ac_status=$?
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); }
2685{ (ac_try="$ac_compiler -v >&5"
2686case "(($ac_try" in
2687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688  *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691  (eval "$ac_compiler -v >&5") 2>&5
2692  ac_status=$?
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); }
2695{ (ac_try="$ac_compiler -V >&5"
2696case "(($ac_try" in
2697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698  *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701  (eval "$ac_compiler -V >&5") 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }
2705
2706cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h.  */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h.  */
2712
2713int
2714main ()
2715{
2716
2717  ;
2718  return 0;
2719}
2720_ACEOF
2721ac_clean_files_save=$ac_clean_files
2722ac_clean_files="$ac_clean_files a.out a.exe b.out"
2723# Try to create an executable without -o first, disregard a.out.
2724# It will help us diagnose broken compilers, and finding out an intuition
2725# of exeext.
2726{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2727echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2728ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2729#
2730# List of possible output files, starting from the most likely.
2731# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2732# only as a last resort.  b.out is created by i960 compilers.
2733ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2734#
2735# The IRIX 6 linker writes into existing files which may not be
2736# executable, retaining their permissions.  Remove them first so a
2737# subsequent execution test works.
2738ac_rmfiles=
2739for ac_file in $ac_files
2740do
2741  case $ac_file in
2742    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2743    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2744  esac
2745done
2746rm -f $ac_rmfiles
2747
2748if { (ac_try="$ac_link_default"
2749case "(($ac_try" in
2750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751  *) ac_try_echo=$ac_try;;
2752esac
2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754  (eval "$ac_link_default") 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }; then
2758  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2759# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2760# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2761# so that the user can short-circuit this test for compilers unknown to
2762# Autoconf.
2763for ac_file in $ac_files ''
2764do
2765  test -f "$ac_file" || continue
2766  case $ac_file in
2767    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2768	;;
2769    [ab].out )
2770	# We found the default executable, but exeext='' is most
2771	# certainly right.
2772	break;;
2773    *.* )
2774        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2775	then :; else
2776	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2777	fi
2778	# We set ac_cv_exeext here because the later test for it is not
2779	# safe: cross compilers may not add the suffix if given an `-o'
2780	# argument, so we may need to know it at that point already.
2781	# Even if this section looks crufty: it has the advantage of
2782	# actually working.
2783	break;;
2784    * )
2785	break;;
2786  esac
2787done
2788test "$ac_cv_exeext" = no && ac_cv_exeext=
2789
2790else
2791  ac_file=''
2792fi
2793
2794{ echo "$as_me:$LINENO: result: $ac_file" >&5
2795echo "${ECHO_T}$ac_file" >&6; }
2796if test -z "$ac_file"; then
2797  echo "$as_me: failed program was:" >&5
2798sed 's/^/| /' conftest.$ac_ext >&5
2799
2800{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2801See \`config.log' for more details." >&5
2802echo "$as_me: error: C++ compiler cannot create executables
2803See \`config.log' for more details." >&2;}
2804   { (exit 77); exit 77; }; }
2805fi
2806
2807ac_exeext=$ac_cv_exeext
2808
2809# Check that the compiler produces executables we can run.  If not, either
2810# the compiler is broken, or we cross compile.
2811{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2812echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2813# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2814# If not cross compiling, check that we can run a simple program.
2815if test "$cross_compiling" != yes; then
2816  if { ac_try='./$ac_file'
2817  { (case "(($ac_try" in
2818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819  *) ac_try_echo=$ac_try;;
2820esac
2821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822  (eval "$ac_try") 2>&5
2823  ac_status=$?
2824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825  (exit $ac_status); }; }; then
2826    cross_compiling=no
2827  else
2828    if test "$cross_compiling" = maybe; then
2829	cross_compiling=yes
2830    else
2831	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2832If you meant to cross compile, use \`--host'.
2833See \`config.log' for more details." >&5
2834echo "$as_me: error: cannot run C++ compiled programs.
2835If you meant to cross compile, use \`--host'.
2836See \`config.log' for more details." >&2;}
2837   { (exit 1); exit 1; }; }
2838    fi
2839  fi
2840fi
2841{ echo "$as_me:$LINENO: result: yes" >&5
2842echo "${ECHO_T}yes" >&6; }
2843
2844rm -f a.out a.exe conftest$ac_cv_exeext b.out
2845ac_clean_files=$ac_clean_files_save
2846# Check that the compiler produces executables we can run.  If not, either
2847# the compiler is broken, or we cross compile.
2848{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2849echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2850{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2851echo "${ECHO_T}$cross_compiling" >&6; }
2852
2853{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2854echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2855if { (ac_try="$ac_link"
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") 2>&5
2862  ac_status=$?
2863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864  (exit $ac_status); }; then
2865  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2866# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2867# work properly (i.e., refer to `conftest.exe'), while it won't with
2868# `rm'.
2869for ac_file in conftest.exe conftest conftest.*; do
2870  test -f "$ac_file" || continue
2871  case $ac_file in
2872    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2873    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2874	  break;;
2875    * ) break;;
2876  esac
2877done
2878else
2879  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2880See \`config.log' for more details." >&5
2881echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2882See \`config.log' for more details." >&2;}
2883   { (exit 1); exit 1; }; }
2884fi
2885
2886rm -f conftest$ac_cv_exeext
2887{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2888echo "${ECHO_T}$ac_cv_exeext" >&6; }
2889
2890rm -f conftest.$ac_ext
2891EXEEXT=$ac_cv_exeext
2892ac_exeext=$EXEEXT
2893{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2894echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2895if test "${ac_cv_objext+set}" = set; then
2896  echo $ECHO_N "(cached) $ECHO_C" >&6
2897else
2898  cat >conftest.$ac_ext <<_ACEOF
2899/* confdefs.h.  */
2900_ACEOF
2901cat confdefs.h >>conftest.$ac_ext
2902cat >>conftest.$ac_ext <<_ACEOF
2903/* end confdefs.h.  */
2904
2905int
2906main ()
2907{
2908
2909  ;
2910  return 0;
2911}
2912_ACEOF
2913rm -f conftest.o conftest.obj
2914if { (ac_try="$ac_compile"
2915case "(($ac_try" in
2916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917  *) ac_try_echo=$ac_try;;
2918esac
2919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920  (eval "$ac_compile") 2>&5
2921  ac_status=$?
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); }; then
2924  for ac_file in conftest.o conftest.obj conftest.*; do
2925  test -f "$ac_file" || continue;
2926  case $ac_file in
2927    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2928    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2929       break;;
2930  esac
2931done
2932else
2933  echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2937See \`config.log' for more details." >&5
2938echo "$as_me: error: cannot compute suffix of object files: cannot compile
2939See \`config.log' for more details." >&2;}
2940   { (exit 1); exit 1; }; }
2941fi
2942
2943rm -f conftest.$ac_cv_objext conftest.$ac_ext
2944fi
2945{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2946echo "${ECHO_T}$ac_cv_objext" >&6; }
2947OBJEXT=$ac_cv_objext
2948ac_objext=$OBJEXT
2949{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2950echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2951if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2952  echo $ECHO_N "(cached) $ECHO_C" >&6
2953else
2954  cat >conftest.$ac_ext <<_ACEOF
2955/* confdefs.h.  */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964#ifndef __GNUC__
2965       choke me
2966#endif
2967
2968  ;
2969  return 0;
2970}
2971_ACEOF
2972rm -f conftest.$ac_objext
2973if { (ac_try="$ac_compile"
2974case "(($ac_try" in
2975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976  *) ac_try_echo=$ac_try;;
2977esac
2978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979  (eval "$ac_compile") 2>conftest.er1
2980  ac_status=$?
2981  grep -v '^ *+' conftest.er1 >conftest.err
2982  rm -f conftest.er1
2983  cat conftest.err >&5
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); } && {
2986	 test -z "$ac_cxx_werror_flag" ||
2987	 test ! -s conftest.err
2988       } && test -s conftest.$ac_objext; then
2989  ac_compiler_gnu=yes
2990else
2991  echo "$as_me: failed program was:" >&5
2992sed 's/^/| /' conftest.$ac_ext >&5
2993
2994	ac_compiler_gnu=no
2995fi
2996
2997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2999
3000fi
3001{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3002echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3003GXX=`test $ac_compiler_gnu = yes && echo yes`
3004ac_test_CXXFLAGS=${CXXFLAGS+set}
3005ac_save_CXXFLAGS=$CXXFLAGS
3006{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3007echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3008if test "${ac_cv_prog_cxx_g+set}" = set; then
3009  echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3012   ac_cxx_werror_flag=yes
3013   ac_cv_prog_cxx_g=no
3014   CXXFLAGS="-g"
3015   cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h.  */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h.  */
3021
3022int
3023main ()
3024{
3025
3026  ;
3027  return 0;
3028}
3029_ACEOF
3030rm -f conftest.$ac_objext
3031if { (ac_try="$ac_compile"
3032case "(($ac_try" in
3033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034  *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037  (eval "$ac_compile") 2>conftest.er1
3038  ac_status=$?
3039  grep -v '^ *+' conftest.er1 >conftest.err
3040  rm -f conftest.er1
3041  cat conftest.err >&5
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); } && {
3044	 test -z "$ac_cxx_werror_flag" ||
3045	 test ! -s conftest.err
3046       } && test -s conftest.$ac_objext; then
3047  ac_cv_prog_cxx_g=yes
3048else
3049  echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052	CXXFLAGS=""
3053      cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h.  */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext
3069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072  *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075  (eval "$ac_compile") 2>conftest.er1
3076  ac_status=$?
3077  grep -v '^ *+' conftest.er1 >conftest.err
3078  rm -f conftest.er1
3079  cat conftest.err >&5
3080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081  (exit $ac_status); } && {
3082	 test -z "$ac_cxx_werror_flag" ||
3083	 test ! -s conftest.err
3084       } && test -s conftest.$ac_objext; then
3085  :
3086else
3087  echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3091	 CXXFLAGS="-g"
3092	 cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h.  */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h.  */
3098
3099int
3100main ()
3101{
3102
3103  ;
3104  return 0;
3105}
3106_ACEOF
3107rm -f conftest.$ac_objext
3108if { (ac_try="$ac_compile"
3109case "(($ac_try" in
3110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111  *) ac_try_echo=$ac_try;;
3112esac
3113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114  (eval "$ac_compile") 2>conftest.er1
3115  ac_status=$?
3116  grep -v '^ *+' conftest.er1 >conftest.err
3117  rm -f conftest.er1
3118  cat conftest.err >&5
3119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120  (exit $ac_status); } && {
3121	 test -z "$ac_cxx_werror_flag" ||
3122	 test ! -s conftest.err
3123       } && test -s conftest.$ac_objext; then
3124  ac_cv_prog_cxx_g=yes
3125else
3126  echo "$as_me: failed program was:" >&5
3127sed 's/^/| /' conftest.$ac_ext >&5
3128
3129
3130fi
3131
3132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133fi
3134
3135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136fi
3137
3138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3140fi
3141{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3142echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3143if test "$ac_test_CXXFLAGS" = set; then
3144  CXXFLAGS=$ac_save_CXXFLAGS
3145elif test $ac_cv_prog_cxx_g = yes; then
3146  if test "$GXX" = yes; then
3147    CXXFLAGS="-g -O2"
3148  else
3149    CXXFLAGS="-g"
3150  fi
3151else
3152  if test "$GXX" = yes; then
3153    CXXFLAGS="-O2"
3154  else
3155    CXXFLAGS=
3156  fi
3157fi
3158ac_ext=c
3159ac_cpp='$CPP $CPPFLAGS'
3160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163DEPDIR="${am__leading_dot}deps"
3164
3165ac_config_commands="$ac_config_commands depfiles"
3166
3167
3168am_make=${MAKE-make}
3169cat > confinc << 'END'
3170am__doit:
3171	@echo done
3172.PHONY: am__doit
3173END
3174# If we don't find an include directive, just comment out the code.
3175{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3176echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3177am__include="#"
3178am__quote=
3179_am_result=none
3180# First try GNU make style include.
3181echo "include confinc" > confmf
3182# We grep out `Entering directory' and `Leaving directory'
3183# messages which can occur if `w' ends up in MAKEFLAGS.
3184# In particular we don't look at `^make:' because GNU make might
3185# be invoked under some other name (usually "gmake"), in which
3186# case it prints its new name instead of `make'.
3187if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3188   am__include=include
3189   am__quote=
3190   _am_result=GNU
3191fi
3192# Now try BSD make style include.
3193if test "$am__include" = "#"; then
3194   echo '.include "confinc"' > confmf
3195   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3196      am__include=.include
3197      am__quote="\""
3198      _am_result=BSD
3199   fi
3200fi
3201
3202
3203{ echo "$as_me:$LINENO: result: $_am_result" >&5
3204echo "${ECHO_T}$_am_result" >&6; }
3205rm -f confinc confmf
3206
3207# Check whether --enable-dependency-tracking was given.
3208if test "${enable_dependency_tracking+set}" = set; then
3209  enableval=$enable_dependency_tracking;
3210fi
3211
3212if test "x$enable_dependency_tracking" != xno; then
3213  am_depcomp="$ac_aux_dir/depcomp"
3214  AMDEPBACKSLASH='\'
3215fi
3216 if test "x$enable_dependency_tracking" != xno; then
3217  AMDEP_TRUE=
3218  AMDEP_FALSE='#'
3219else
3220  AMDEP_TRUE='#'
3221  AMDEP_FALSE=
3222fi
3223
3224
3225
3226depcc="$CXX"  am_compiler_list=
3227
3228{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3229echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3230if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3231  echo $ECHO_N "(cached) $ECHO_C" >&6
3232else
3233  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3234  # We make a subdir and do the tests there.  Otherwise we can end up
3235  # making bogus files that we don't know about and never remove.  For
3236  # instance it was reported that on HP-UX the gcc test will end up
3237  # making a dummy file named `D' -- because `-MD' means `put the output
3238  # in D'.
3239  mkdir conftest.dir
3240  # Copy depcomp to subdir because otherwise we won't find it if we're
3241  # using a relative directory.
3242  cp "$am_depcomp" conftest.dir
3243  cd conftest.dir
3244  # We will build objects and dependencies in a subdirectory because
3245  # it helps to detect inapplicable dependency modes.  For instance
3246  # both Tru64's cc and ICC support -MD to output dependencies as a
3247  # side effect of compilation, but ICC will put the dependencies in
3248  # the current directory while Tru64 will put them in the object
3249  # directory.
3250  mkdir sub
3251
3252  am_cv_CXX_dependencies_compiler_type=none
3253  if test "$am_compiler_list" = ""; then
3254     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3255  fi
3256  for depmode in $am_compiler_list; do
3257    # Setup a source with many dependencies, because some compilers
3258    # like to wrap large dependency lists on column 80 (with \), and
3259    # we should not choose a depcomp mode which is confused by this.
3260    #
3261    # We need to recreate these files for each test, as the compiler may
3262    # overwrite some of them when testing with obscure command lines.
3263    # This happens at least with the AIX C compiler.
3264    : > sub/conftest.c
3265    for i in 1 2 3 4 5 6; do
3266      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3267      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3268      # Solaris 8's {/usr,}/bin/sh.
3269      touch sub/conftst$i.h
3270    done
3271    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3272
3273    case $depmode in
3274    nosideeffect)
3275      # after this tag, mechanisms are not by side-effect, so they'll
3276      # only be used when explicitly requested
3277      if test "x$enable_dependency_tracking" = xyes; then
3278	continue
3279      else
3280	break
3281      fi
3282      ;;
3283    none) break ;;
3284    esac
3285    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3286    # mode.  It turns out that the SunPro C++ compiler does not properly
3287    # handle `-M -o', and we need to detect this.
3288    if depmode=$depmode \
3289       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3290       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3291       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3292         >/dev/null 2>conftest.err &&
3293       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3294       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3295       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3296       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3297      # icc doesn't choke on unknown options, it will just issue warnings
3298      # or remarks (even with -Werror).  So we grep stderr for any message
3299      # that says an option was ignored or not supported.
3300      # When given -MP, icc 7.0 and 7.1 complain thusly:
3301      #   icc: Command line warning: ignoring option '-M'; no argument required
3302      # The diagnosis changed in icc 8.0:
3303      #   icc: Command line remark: option '-MP' not supported
3304      if (grep 'ignoring option' conftest.err ||
3305          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3306        am_cv_CXX_dependencies_compiler_type=$depmode
3307        break
3308      fi
3309    fi
3310  done
3311
3312  cd ..
3313  rm -rf conftest.dir
3314else
3315  am_cv_CXX_dependencies_compiler_type=none
3316fi
3317
3318fi
3319{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3320echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3321CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3322
3323 if
3324  test "x$enable_dependency_tracking" != xno \
3325  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3326  am__fastdepCXX_TRUE=
3327  am__fastdepCXX_FALSE='#'
3328else
3329  am__fastdepCXX_TRUE='#'
3330  am__fastdepCXX_FALSE=
3331fi
3332
3333
3334
3335# Check whether --enable-plugin was given.
3336if test "${enable_plugin+set}" = set; then
3337  enableval=$enable_plugin;
3338else
3339  enable_plugin=no
3340fi
3341
3342
3343 if test "x$enable_plugin" = 'xyes'; then
3344  USE_PLUGIN_TRUE=
3345  USE_PLUGIN_FALSE='#'
3346else
3347  USE_PLUGIN_TRUE='#'
3348  USE_PLUGIN_FALSE=
3349fi
3350
3351
3352
3353if test "x$enable_plugin" = "xyes"; then
3354  # Extract the first word of "tuvista-config", so it can be a program name with args.
3355set dummy tuvista-config; ac_word=$2
3356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3358if test "${ac_cv_path_HAVE_TUVISTA+set}" = set; then
3359  echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361  case $HAVE_TUVISTA in
3362  [\\/]* | ?:[\\/]*)
3363  ac_cv_path_HAVE_TUVISTA="$HAVE_TUVISTA" # Let the user override the test with a path.
3364  ;;
3365  *)
3366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369  IFS=$as_save_IFS
3370  test -z "$as_dir" && as_dir=.
3371  for ac_exec_ext in '' $ac_executable_extensions; do
3372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3373    ac_cv_path_HAVE_TUVISTA="$as_dir/$ac_word$ac_exec_ext"
3374    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375    break 2
3376  fi
3377done
3378done
3379IFS=$as_save_IFS
3380
3381  ;;
3382esac
3383fi
3384HAVE_TUVISTA=$ac_cv_path_HAVE_TUVISTA
3385if test -n "$HAVE_TUVISTA"; then
3386  { echo "$as_me:$LINENO: result: $HAVE_TUVISTA" >&5
3387echo "${ECHO_T}$HAVE_TUVISTA" >&6; }
3388else
3389  { echo "$as_me:$LINENO: result: no" >&5
3390echo "${ECHO_T}no" >&6; }
3391fi
3392
3393
3394  if test -z "$HAVE_TUVISTA" && test "x$enable_plugin" = "xyes"; then
3395	{ { echo "$as_me:$LINENO: error: ** Coudn't find tuvista-config. You will need it to build the tuvista plugin" >&5
3396echo "$as_me: error: ** Coudn't find tuvista-config. You will need it to build the tuvista plugin" >&2;}
3397   { (exit 1); exit 1; }; }
3398  else
3399	PLUGIN_CXXFLAGS="$PLUGIN_CXXFLAGS `$HAVE_TUVISTA --cxxflags`"
3400	PLUGIN_LDFLAGS="$PLUGIN_LDFLAGS `$HAVE_TUVISTA --libs`"
3401		  	if test "$INSTALL_FLAG" == 1; then
3402	  PLUGIN_DIR="`$HAVE_TUVISTA --plugindir`"
3403	  LOCALE_DIR="`$HAVE_TUVISTA --localedir`"
3404	else
3405	  PLUGIN_DIR="`$HAVE_TUVISTA --noinst-plugindir`"
3406	  LOCALE_DIR="`$HAVE_TUVISTA --noinst-localedir`"
3407fi
3408
3409  fi
3410else
3411  PLUGIN_CXXFLAGS=""
3412  PLUGIN_LDFLAGS=""
3413  PLUGIN_DIR=""
3414  LOCALE_DIR=""
3415fi
3416
3417
3418# Check whether --with-unicode was given.
3419if test "${with_unicode+set}" = set; then
3420  withval=$with_unicode; with_unicode=$withval
3421else
3422  with_unicode='yes'
3423fi
3424
3425
3426if test "x$with_unicode" = 'xyes' ; then
3427
3428    if test x${WX_CONFIG_NAME+set} != xset ; then
3429     WX_CONFIG_NAME=wx-config
3430  fi
3431
3432  if test "x$wx_config_name" != x ; then
3433     WX_CONFIG_NAME="$wx_config_name"
3434  fi
3435
3436    if test x$wx_config_exec_prefix != x ; then
3437     wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
3438     WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
3439  fi
3440  if test x$wx_config_prefix != x ; then
3441     wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
3442     WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
3443  fi
3444  if test "$cross_compiling" = "yes"; then
3445     wx_config_args="$wx_config_args --host=$host_alias"
3446  fi
3447
3448    if test -x "$WX_CONFIG_NAME" ; then
3449     { echo "$as_me:$LINENO: checking for wx-config" >&5
3450echo $ECHO_N "checking for wx-config... $ECHO_C" >&6; }
3451     WX_CONFIG_PATH="$WX_CONFIG_NAME"
3452     { echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
3453echo "${ECHO_T}$WX_CONFIG_PATH" >&6; }
3454  else
3455     # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
3456set dummy $WX_CONFIG_NAME; ac_word=$2
3457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3459if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
3460  echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462  case $WX_CONFIG_PATH in
3463  [\\/]* | ?:[\\/]*)
3464  ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
3465  ;;
3466  *)
3467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468as_dummy=""$WX_LOOKUP_PATH:$PATH""
3469for as_dir in $as_dummy
3470do
3471  IFS=$as_save_IFS
3472  test -z "$as_dir" && as_dir=.
3473  for ac_exec_ext in '' $ac_executable_extensions; do
3474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475    ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
3476    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477    break 2
3478  fi
3479done
3480done
3481IFS=$as_save_IFS
3482
3483  test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
3484  ;;
3485esac
3486fi
3487WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
3488if test -n "$WX_CONFIG_PATH"; then
3489  { echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
3490echo "${ECHO_T}$WX_CONFIG_PATH" >&6; }
3491else
3492  { echo "$as_me:$LINENO: result: no" >&5
3493echo "${ECHO_T}no" >&6; }
3494fi
3495
3496
3497  fi
3498
3499  if test "$WX_CONFIG_PATH" != "no" ; then
3500    WX_VERSION=""
3501
3502    min_wx_version=2.4.2
3503    if test -z "--unicode=yes" ; then
3504      { echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
3505echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6; }
3506    else
3507      { echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version (--unicode=yes)" >&5
3508echo $ECHO_N "checking for wxWidgets version >= $min_wx_version (--unicode=yes)... $ECHO_C" >&6; }
3509    fi
3510
3511    WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args --unicode=yes "
3512
3513    WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
3514    wx_config_major_version=`echo $WX_VERSION | \
3515           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3516    wx_config_minor_version=`echo $WX_VERSION | \
3517           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3518    wx_config_micro_version=`echo $WX_VERSION | \
3519           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3520
3521    wx_requested_major_version=`echo $min_wx_version | \
3522           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3523    wx_requested_minor_version=`echo $min_wx_version | \
3524           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3525    wx_requested_micro_version=`echo $min_wx_version | \
3526           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3527
3528
3529    wx_ver_ok=""
3530    if test "x$WX_VERSION" != x ; then
3531      if test $wx_config_major_version -gt $wx_requested_major_version; then
3532        wx_ver_ok=yes
3533      else
3534        if test $wx_config_major_version -eq $wx_requested_major_version; then
3535           if test $wx_config_minor_version -gt $wx_requested_minor_version; then
3536              wx_ver_ok=yes
3537           else
3538              if test $wx_config_minor_version -eq $wx_requested_minor_version; then
3539                 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
3540                    wx_ver_ok=yes
3541                 fi
3542              fi
3543           fi
3544        fi
3545      fi
3546    fi
3547
3548
3549    if test -n "$wx_ver_ok"; then
3550
3551      { echo "$as_me:$LINENO: result: yes (version $WX_VERSION)" >&5
3552echo "${ECHO_T}yes (version $WX_VERSION)" >&6; }
3553      WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
3554
3555                              { echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
3556echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6; }
3557      WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
3558      if test "x$WX_LIBS_STATIC" = "x"; then
3559        { echo "$as_me:$LINENO: result: no" >&5
3560echo "${ECHO_T}no" >&6; }
3561      else
3562        { echo "$as_me:$LINENO: result: yes" >&5
3563echo "${ECHO_T}yes" >&6; }
3564      fi
3565
3566            wx_has_cppflags=""
3567      if test $wx_config_major_version -gt 2; then
3568        wx_has_cppflags=yes
3569      else
3570        if test $wx_config_major_version -eq 2; then
3571           if test $wx_config_minor_version -gt 2; then
3572              wx_has_cppflags=yes
3573           else
3574              if test $wx_config_minor_version -eq 2; then
3575                 if test $wx_config_micro_version -ge 6; then
3576                    wx_has_cppflags=yes
3577                 fi
3578              fi
3579           fi
3580        fi
3581      fi
3582
3583            wx_has_rescomp=""
3584      if test $wx_config_major_version -gt 2; then
3585        wx_has_rescomp=yes
3586      else
3587        if test $wx_config_major_version -eq 2; then
3588           if test $wx_config_minor_version -ge 7; then
3589              wx_has_rescomp=yes
3590           fi
3591        fi
3592      fi
3593      if test "x$wx_has_rescomp" = x ; then
3594                  WX_RESCOMP=
3595      else
3596         WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
3597      fi
3598
3599      if test "x$wx_has_cppflags" = x ; then
3600                  WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
3601         WX_CPPFLAGS=$WX_CFLAGS
3602         WX_CXXFLAGS=$WX_CFLAGS
3603
3604         WX_CFLAGS_ONLY=$WX_CFLAGS
3605         WX_CXXFLAGS_ONLY=$WX_CFLAGS
3606      else
3607                  WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
3608         WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
3609         WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
3610
3611         WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
3612         WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
3613      fi
3614
3615      wxWin=1
3616
3617    else
3618
3619       if test "x$WX_VERSION" = x; then
3620                    { echo "$as_me:$LINENO: result: no" >&5
3621echo "${ECHO_T}no" >&6; }
3622       else
3623          { echo "$as_me:$LINENO: result: no (version $WX_VERSION is not new enough)" >&5
3624echo "${ECHO_T}no (version $WX_VERSION is not new enough)" >&6; }
3625       fi
3626
3627       WX_CFLAGS=""
3628       WX_CPPFLAGS=""
3629       WX_CXXFLAGS=""
3630       WX_LIBS=""
3631       WX_LIBS_STATIC=""
3632       WX_RESCOMP=""
3633       :
3634
3635    fi
3636  else
3637
3638    WX_CFLAGS=""
3639    WX_CPPFLAGS=""
3640    WX_CXXFLAGS=""
3641    WX_LIBS=""
3642    WX_LIBS_STATIC=""
3643    WX_RESCOMP=""
3644
3645    :
3646
3647  fi
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659else
3660
3661    if test x${WX_CONFIG_NAME+set} != xset ; then
3662     WX_CONFIG_NAME=wx-config
3663  fi
3664
3665  if test "x$wx_config_name" != x ; then
3666     WX_CONFIG_NAME="$wx_config_name"
3667  fi
3668
3669    if test x$wx_config_exec_prefix != x ; then
3670     wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
3671     WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
3672  fi
3673  if test x$wx_config_prefix != x ; then
3674     wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
3675     WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
3676  fi
3677  if test "$cross_compiling" = "yes"; then
3678     wx_config_args="$wx_config_args --host=$host_alias"
3679  fi
3680
3681    if test -x "$WX_CONFIG_NAME" ; then
3682     { echo "$as_me:$LINENO: checking for wx-config" >&5
3683echo $ECHO_N "checking for wx-config... $ECHO_C" >&6; }
3684     WX_CONFIG_PATH="$WX_CONFIG_NAME"
3685     { echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
3686echo "${ECHO_T}$WX_CONFIG_PATH" >&6; }
3687  else
3688     # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
3689set dummy $WX_CONFIG_NAME; ac_word=$2
3690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3692if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
3693  echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695  case $WX_CONFIG_PATH in
3696  [\\/]* | ?:[\\/]*)
3697  ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
3698  ;;
3699  *)
3700  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701as_dummy=""$WX_LOOKUP_PATH:$PATH""
3702for as_dir in $as_dummy
3703do
3704  IFS=$as_save_IFS
3705  test -z "$as_dir" && as_dir=.
3706  for ac_exec_ext in '' $ac_executable_extensions; do
3707  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708    ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
3709    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710    break 2
3711  fi
3712done
3713done
3714IFS=$as_save_IFS
3715
3716  test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
3717  ;;
3718esac
3719fi
3720WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
3721if test -n "$WX_CONFIG_PATH"; then
3722  { echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
3723echo "${ECHO_T}$WX_CONFIG_PATH" >&6; }
3724else
3725  { echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6; }
3727fi
3728
3729
3730  fi
3731
3732  if test "$WX_CONFIG_PATH" != "no" ; then
3733    WX_VERSION=""
3734
3735    min_wx_version=2.4.2
3736    if test -z "--unicode=no" ; then
3737      { echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
3738echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6; }
3739    else
3740      { echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version (--unicode=no)" >&5
3741echo $ECHO_N "checking for wxWidgets version >= $min_wx_version (--unicode=no)... $ECHO_C" >&6; }
3742    fi
3743
3744    WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args --unicode=no "
3745
3746    WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
3747    wx_config_major_version=`echo $WX_VERSION | \
3748           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3749    wx_config_minor_version=`echo $WX_VERSION | \
3750           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3751    wx_config_micro_version=`echo $WX_VERSION | \
3752           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3753
3754    wx_requested_major_version=`echo $min_wx_version | \
3755           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3756    wx_requested_minor_version=`echo $min_wx_version | \
3757           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3758    wx_requested_micro_version=`echo $min_wx_version | \
3759           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3760
3761
3762    wx_ver_ok=""
3763    if test "x$WX_VERSION" != x ; then
3764      if test $wx_config_major_version -gt $wx_requested_major_version; then
3765        wx_ver_ok=yes
3766      else
3767        if test $wx_config_major_version -eq $wx_requested_major_version; then
3768           if test $wx_config_minor_version -gt $wx_requested_minor_version; then
3769              wx_ver_ok=yes
3770           else
3771              if test $wx_config_minor_version -eq $wx_requested_minor_version; then
3772                 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
3773                    wx_ver_ok=yes
3774                 fi
3775              fi
3776           fi
3777        fi
3778      fi
3779    fi
3780
3781
3782    if test -n "$wx_ver_ok"; then
3783
3784      { echo "$as_me:$LINENO: result: yes (version $WX_VERSION)" >&5
3785echo "${ECHO_T}yes (version $WX_VERSION)" >&6; }
3786      WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
3787
3788                              { echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
3789echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6; }
3790      WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
3791      if test "x$WX_LIBS_STATIC" = "x"; then
3792        { echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6; }
3794      else
3795        { echo "$as_me:$LINENO: result: yes" >&5
3796echo "${ECHO_T}yes" >&6; }
3797      fi
3798
3799            wx_has_cppflags=""
3800      if test $wx_config_major_version -gt 2; then
3801        wx_has_cppflags=yes
3802      else
3803        if test $wx_config_major_version -eq 2; then
3804           if test $wx_config_minor_version -gt 2; then
3805              wx_has_cppflags=yes
3806           else
3807              if test $wx_config_minor_version -eq 2; then
3808                 if test $wx_config_micro_version -ge 6; then
3809                    wx_has_cppflags=yes
3810                 fi
3811              fi
3812           fi
3813        fi
3814      fi
3815
3816            wx_has_rescomp=""
3817      if test $wx_config_major_version -gt 2; then
3818        wx_has_rescomp=yes
3819      else
3820        if test $wx_config_major_version -eq 2; then
3821           if test $wx_config_minor_version -ge 7; then
3822              wx_has_rescomp=yes
3823           fi
3824        fi
3825      fi
3826      if test "x$wx_has_rescomp" = x ; then
3827                  WX_RESCOMP=
3828      else
3829         WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
3830      fi
3831
3832      if test "x$wx_has_cppflags" = x ; then
3833                  WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
3834         WX_CPPFLAGS=$WX_CFLAGS
3835         WX_CXXFLAGS=$WX_CFLAGS
3836
3837         WX_CFLAGS_ONLY=$WX_CFLAGS
3838         WX_CXXFLAGS_ONLY=$WX_CFLAGS
3839      else
3840                  WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
3841         WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
3842         WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
3843
3844         WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
3845         WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
3846      fi
3847
3848      wxWin=1
3849
3850    else
3851
3852       if test "x$WX_VERSION" = x; then
3853                    { echo "$as_me:$LINENO: result: no" >&5
3854echo "${ECHO_T}no" >&6; }
3855       else
3856          { echo "$as_me:$LINENO: result: no (version $WX_VERSION is not new enough)" >&5
3857echo "${ECHO_T}no (version $WX_VERSION is not new enough)" >&6; }
3858       fi
3859
3860       WX_CFLAGS=""
3861       WX_CPPFLAGS=""
3862       WX_CXXFLAGS=""
3863       WX_LIBS=""
3864       WX_LIBS_STATIC=""
3865       WX_RESCOMP=""
3866       :
3867
3868    fi
3869  else
3870
3871    WX_CFLAGS=""
3872    WX_CPPFLAGS=""
3873    WX_CXXFLAGS=""
3874    WX_LIBS=""
3875    WX_LIBS_STATIC=""
3876    WX_RESCOMP=""
3877
3878    :
3879
3880  fi
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892fi
3893if test "x$wxWin" != x1; then
3894    { { echo "$as_me:$LINENO: error:
3895	wxWidgets must be installed on your system
3896	but wx-config script couldn't be found.
3897
3898	Please check that wx-config is in path, the directory
3899	where wxWidgets libraries are installed (returned by
3900	'wx-config --libs' command) is in LD_LIBRARY_PATH or
3901	equivalent variable and wxWidgets version is 2.4.2 or above.
3902	" >&5
3903echo "$as_me: error:
3904	wxWidgets must be installed on your system
3905	but wx-config script couldn't be found.
3906
3907	Please check that wx-config is in path, the directory
3908	where wxWidgets libraries are installed (returned by
3909	'wx-config --libs' command) is in LD_LIBRARY_PATH or
3910	equivalent variable and wxWidgets version is 2.4.2 or above.
3911	" >&2;}
3912   { (exit 1); exit 1; }; }
3913else
3914  WX_GL_LIBS="`$WX_CONFIG_WITH_ARGS --gl-libs`"
3915
3916fi
3917
3918case "$host" in
3919*-*-cygwin* | *-*-mingw*)
3920WINBUILD="1"
3921;;
3922*linux*)
3923WINBUILD="0"
3924;;
3925esac
3926
3927 if test x$WINBUILD = "x1"; then
3928  WIN32_BUILD_TRUE=
3929  WIN32_BUILD_FALSE='#'
3930else
3931  WIN32_BUILD_TRUE='#'
3932  WIN32_BUILD_FALSE=
3933fi
3934
3935
3936
3937
3938
3939
3940# Check whether --enable-shared was given.
3941if test "${enable_shared+set}" = set; then
3942  enableval=$enable_shared; p=${PACKAGE-default}
3943    case $enableval in
3944    yes) enable_shared=yes ;;
3945    no) enable_shared=no ;;
3946    *)
3947      enable_shared=no
3948      # Look at the argument we got.  We use all the common list separators.
3949      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3950      for pkg in $enableval; do
3951	IFS="$lt_save_ifs"
3952	if test "X$pkg" = "X$p"; then
3953	  enable_shared=yes
3954	fi
3955      done
3956      IFS="$lt_save_ifs"
3957      ;;
3958    esac
3959else
3960  enable_shared=yes
3961fi
3962
3963
3964# Check whether --enable-static was given.
3965if test "${enable_static+set}" = set; then
3966  enableval=$enable_static; p=${PACKAGE-default}
3967    case $enableval in
3968    yes) enable_static=yes ;;
3969    no) enable_static=no ;;
3970    *)
3971     enable_static=no
3972      # Look at the argument we got.  We use all the common list separators.
3973      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3974      for pkg in $enableval; do
3975	IFS="$lt_save_ifs"
3976	if test "X$pkg" = "X$p"; then
3977	  enable_static=yes
3978	fi
3979      done
3980      IFS="$lt_save_ifs"
3981      ;;
3982    esac
3983else
3984  enable_static=yes
3985fi
3986
3987
3988# Check whether --enable-fast-install was given.
3989if test "${enable_fast_install+set}" = set; then
3990  enableval=$enable_fast_install; p=${PACKAGE-default}
3991    case $enableval in
3992    yes) enable_fast_install=yes ;;
3993    no) enable_fast_install=no ;;
3994    *)
3995      enable_fast_install=no
3996      # Look at the argument we got.  We use all the common list separators.
3997      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3998      for pkg in $enableval; do
3999	IFS="$lt_save_ifs"
4000	if test "X$pkg" = "X$p"; then
4001	  enable_fast_install=yes
4002	fi
4003      done
4004      IFS="$lt_save_ifs"
4005      ;;
4006    esac
4007else
4008  enable_fast_install=yes
4009fi
4010
4011
4012ac_ext=c
4013ac_cpp='$CPP $CPPFLAGS'
4014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017if test -n "$ac_tool_prefix"; then
4018  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4019set dummy ${ac_tool_prefix}gcc; ac_word=$2
4020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4022if test "${ac_cv_prog_CC+set}" = set; then
4023  echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025  if test -n "$CC"; then
4026  ac_cv_prog_CC="$CC" # Let the user override the test.
4027else
4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH
4030do
4031  IFS=$as_save_IFS
4032  test -z "$as_dir" && as_dir=.
4033  for ac_exec_ext in '' $ac_executable_extensions; do
4034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4036    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037    break 2
4038  fi
4039done
4040done
4041IFS=$as_save_IFS
4042
4043fi
4044fi
4045CC=$ac_cv_prog_CC
4046if test -n "$CC"; then
4047  { echo "$as_me:$LINENO: result: $CC" >&5
4048echo "${ECHO_T}$CC" >&6; }
4049else
4050  { echo "$as_me:$LINENO: result: no" >&5
4051echo "${ECHO_T}no" >&6; }
4052fi
4053
4054
4055fi
4056if test -z "$ac_cv_prog_CC"; then
4057  ac_ct_CC=$CC
4058  # Extract the first word of "gcc", so it can be a program name with args.
4059set dummy gcc; ac_word=$2
4060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4062if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4063  echo $ECHO_N "(cached) $ECHO_C" >&6
4064else
4065  if test -n "$ac_ct_CC"; then
4066  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4067else
4068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071  IFS=$as_save_IFS
4072  test -z "$as_dir" && as_dir=.
4073  for ac_exec_ext in '' $ac_executable_extensions; do
4074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075    ac_cv_prog_ac_ct_CC="gcc"
4076    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077    break 2
4078  fi
4079done
4080done
4081IFS=$as_save_IFS
4082
4083fi
4084fi
4085ac_ct_CC=$ac_cv_prog_ac_ct_CC
4086if test -n "$ac_ct_CC"; then
4087  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4088echo "${ECHO_T}$ac_ct_CC" >&6; }
4089else
4090  { echo "$as_me:$LINENO: result: no" >&5
4091echo "${ECHO_T}no" >&6; }
4092fi
4093
4094  if test "x$ac_ct_CC" = x; then
4095    CC=""
4096  else
4097    case $cross_compiling:$ac_tool_warned in
4098yes:)
4099{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4100whose name does not start with the host triplet.  If you think this
4101configuration is useful to you, please write to autoconf@gnu.org." >&5
4102echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4103whose name does not start with the host triplet.  If you think this
4104configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4105ac_tool_warned=yes ;;
4106esac
4107    CC=$ac_ct_CC
4108  fi
4109else
4110  CC="$ac_cv_prog_CC"
4111fi
4112
4113if test -z "$CC"; then
4114          if test -n "$ac_tool_prefix"; then
4115    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4116set dummy ${ac_tool_prefix}cc; ac_word=$2
4117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4119if test "${ac_cv_prog_CC+set}" = set; then
4120  echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122  if test -n "$CC"; then
4123  ac_cv_prog_CC="$CC" # Let the user override the test.
4124else
4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128  IFS=$as_save_IFS
4129  test -z "$as_dir" && as_dir=.
4130  for ac_exec_ext in '' $ac_executable_extensions; do
4131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4132    ac_cv_prog_CC="${ac_tool_prefix}cc"
4133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134    break 2
4135  fi
4136done
4137done
4138IFS=$as_save_IFS
4139
4140fi
4141fi
4142CC=$ac_cv_prog_CC
4143if test -n "$CC"; then
4144  { echo "$as_me:$LINENO: result: $CC" >&5
4145echo "${ECHO_T}$CC" >&6; }
4146else
4147  { echo "$as_me:$LINENO: result: no" >&5
4148echo "${ECHO_T}no" >&6; }
4149fi
4150
4151
4152  fi
4153fi
4154if test -z "$CC"; then
4155  # Extract the first word of "cc", so it can be a program name with args.
4156set dummy cc; ac_word=$2
4157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4159if test "${ac_cv_prog_CC+set}" = set; then
4160  echo $ECHO_N "(cached) $ECHO_C" >&6
4161else
4162  if test -n "$CC"; then
4163  ac_cv_prog_CC="$CC" # Let the user override the test.
4164else
4165  ac_prog_rejected=no
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169  IFS=$as_save_IFS
4170  test -z "$as_dir" && as_dir=.
4171  for ac_exec_ext in '' $ac_executable_extensions; do
4172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4174       ac_prog_rejected=yes
4175       continue
4176     fi
4177    ac_cv_prog_CC="cc"
4178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179    break 2
4180  fi
4181done
4182done
4183IFS=$as_save_IFS
4184
4185if test $ac_prog_rejected = yes; then
4186  # We found a bogon in the path, so make sure we never use it.
4187  set dummy $ac_cv_prog_CC
4188  shift
4189  if test $# != 0; then
4190    # We chose a different compiler from the bogus one.
4191    # However, it has the same basename, so the bogon will be chosen
4192    # first if we set CC to just the basename; use the full file name.
4193    shift
4194    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4195  fi
4196fi
4197fi
4198fi
4199CC=$ac_cv_prog_CC
4200if test -n "$CC"; then
4201  { echo "$as_me:$LINENO: result: $CC" >&5
4202echo "${ECHO_T}$CC" >&6; }
4203else
4204  { echo "$as_me:$LINENO: result: no" >&5
4205echo "${ECHO_T}no" >&6; }
4206fi
4207
4208
4209fi
4210if test -z "$CC"; then
4211  if test -n "$ac_tool_prefix"; then
4212  for ac_prog in cl.exe
4213  do
4214    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4218if test "${ac_cv_prog_CC+set}" = set; then
4219  echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221  if test -n "$CC"; then
4222  ac_cv_prog_CC="$CC" # Let the user override the test.
4223else
4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
4227  IFS=$as_save_IFS
4228  test -z "$as_dir" && as_dir=.
4229  for ac_exec_ext in '' $ac_executable_extensions; do
4230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4232    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233    break 2
4234  fi
4235done
4236done
4237IFS=$as_save_IFS
4238
4239fi
4240fi
4241CC=$ac_cv_prog_CC
4242if test -n "$CC"; then
4243  { echo "$as_me:$LINENO: result: $CC" >&5
4244echo "${ECHO_T}$CC" >&6; }
4245else
4246  { echo "$as_me:$LINENO: result: no" >&5
4247echo "${ECHO_T}no" >&6; }
4248fi
4249
4250
4251    test -n "$CC" && break
4252  done
4253fi
4254if test -z "$CC"; then
4255  ac_ct_CC=$CC
4256  for ac_prog in cl.exe
4257do
4258  # Extract the first word of "$ac_prog", so it can be a program name with args.
4259set dummy $ac_prog; ac_word=$2
4260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4262if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4263  echo $ECHO_N "(cached) $ECHO_C" >&6
4264else
4265  if test -n "$ac_ct_CC"; then
4266  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4267else
4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269for as_dir in $PATH
4270do
4271  IFS=$as_save_IFS
4272  test -z "$as_dir" && as_dir=.
4273  for ac_exec_ext in '' $ac_executable_extensions; do
4274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275    ac_cv_prog_ac_ct_CC="$ac_prog"
4276    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277    break 2
4278  fi
4279done
4280done
4281IFS=$as_save_IFS
4282
4283fi
4284fi
4285ac_ct_CC=$ac_cv_prog_ac_ct_CC
4286if test -n "$ac_ct_CC"; then
4287  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4288echo "${ECHO_T}$ac_ct_CC" >&6; }
4289else
4290  { echo "$as_me:$LINENO: result: no" >&5
4291echo "${ECHO_T}no" >&6; }
4292fi
4293
4294
4295  test -n "$ac_ct_CC" && break
4296done
4297
4298  if test "x$ac_ct_CC" = x; then
4299    CC=""
4300  else
4301    case $cross_compiling:$ac_tool_warned in
4302yes:)
4303{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4304whose name does not start with the host triplet.  If you think this
4305configuration is useful to you, please write to autoconf@gnu.org." >&5
4306echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4307whose name does not start with the host triplet.  If you think this
4308configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4309ac_tool_warned=yes ;;
4310esac
4311    CC=$ac_ct_CC
4312  fi
4313fi
4314
4315fi
4316
4317
4318test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4319See \`config.log' for more details." >&5
4320echo "$as_me: error: no acceptable C compiler found in \$PATH
4321See \`config.log' for more details." >&2;}
4322   { (exit 1); exit 1; }; }
4323
4324# Provide some information about the compiler.
4325echo "$as_me:$LINENO: checking for C compiler version" >&5
4326ac_compiler=`set X $ac_compile; echo $2`
4327{ (ac_try="$ac_compiler --version >&5"
4328case "(($ac_try" in
4329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330  *) ac_try_echo=$ac_try;;
4331esac
4332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333  (eval "$ac_compiler --version >&5") 2>&5
4334  ac_status=$?
4335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336  (exit $ac_status); }
4337{ (ac_try="$ac_compiler -v >&5"
4338case "(($ac_try" in
4339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340  *) ac_try_echo=$ac_try;;
4341esac
4342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343  (eval "$ac_compiler -v >&5") 2>&5
4344  ac_status=$?
4345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346  (exit $ac_status); }
4347{ (ac_try="$ac_compiler -V >&5"
4348case "(($ac_try" in
4349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350  *) ac_try_echo=$ac_try;;
4351esac
4352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353  (eval "$ac_compiler -V >&5") 2>&5
4354  ac_status=$?
4355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356  (exit $ac_status); }
4357
4358{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4359echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4360if test "${ac_cv_c_compiler_gnu+set}" = set; then
4361  echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363  cat >conftest.$ac_ext <<_ACEOF
4364/* confdefs.h.  */
4365_ACEOF
4366cat confdefs.h >>conftest.$ac_ext
4367cat >>conftest.$ac_ext <<_ACEOF
4368/* end confdefs.h.  */
4369
4370int
4371main ()
4372{
4373#ifndef __GNUC__
4374       choke me
4375#endif
4376
4377  ;
4378  return 0;
4379}
4380_ACEOF
4381rm -f conftest.$ac_objext
4382if { (ac_try="$ac_compile"
4383case "(($ac_try" in
4384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385  *) ac_try_echo=$ac_try;;
4386esac
4387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388  (eval "$ac_compile") 2>conftest.er1
4389  ac_status=$?
4390  grep -v '^ *+' conftest.er1 >conftest.err
4391  rm -f conftest.er1
4392  cat conftest.err >&5
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); } && {
4395	 test -z "$ac_c_werror_flag" ||
4396	 test ! -s conftest.err
4397       } && test -s conftest.$ac_objext; then
4398  ac_compiler_gnu=yes
4399else
4400  echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
4403	ac_compiler_gnu=no
4404fi
4405
4406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407ac_cv_c_compiler_gnu=$ac_compiler_gnu
4408
4409fi
4410{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4411echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4412GCC=`test $ac_compiler_gnu = yes && echo yes`
4413ac_test_CFLAGS=${CFLAGS+set}
4414ac_save_CFLAGS=$CFLAGS
4415{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4416echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4417if test "${ac_cv_prog_cc_g+set}" = set; then
4418  echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420  ac_save_c_werror_flag=$ac_c_werror_flag
4421   ac_c_werror_flag=yes
4422   ac_cv_prog_cc_g=no
4423   CFLAGS="-g"
4424   cat >conftest.$ac_ext <<_ACEOF
4425/* confdefs.h.  */
4426_ACEOF
4427cat confdefs.h >>conftest.$ac_ext
4428cat >>conftest.$ac_ext <<_ACEOF
4429/* end confdefs.h.  */
4430
4431int
4432main ()
4433{
4434
4435  ;
4436  return 0;
4437}
4438_ACEOF
4439rm -f conftest.$ac_objext
4440if { (ac_try="$ac_compile"
4441case "(($ac_try" in
4442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443  *) ac_try_echo=$ac_try;;
4444esac
4445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446  (eval "$ac_compile") 2>conftest.er1
4447  ac_status=$?
4448  grep -v '^ *+' conftest.er1 >conftest.err
4449  rm -f conftest.er1
4450  cat conftest.err >&5
4451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452  (exit $ac_status); } && {
4453	 test -z "$ac_c_werror_flag" ||
4454	 test ! -s conftest.err
4455       } && test -s conftest.$ac_objext; then
4456  ac_cv_prog_cc_g=yes
4457else
4458  echo "$as_me: failed program was:" >&5
4459sed 's/^/| /' conftest.$ac_ext >&5
4460
4461	CFLAGS=""
4462      cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h.  */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h.  */
4468
4469int
4470main ()
4471{
4472
4473  ;
4474  return 0;
4475}
4476_ACEOF
4477rm -f conftest.$ac_objext
4478if { (ac_try="$ac_compile"
4479case "(($ac_try" in
4480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481  *) ac_try_echo=$ac_try;;
4482esac
4483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484  (eval "$ac_compile") 2>conftest.er1
4485  ac_status=$?
4486  grep -v '^ *+' conftest.er1 >conftest.err
4487  rm -f conftest.er1
4488  cat conftest.err >&5
4489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490  (exit $ac_status); } && {
4491	 test -z "$ac_c_werror_flag" ||
4492	 test ! -s conftest.err
4493       } && test -s conftest.$ac_objext; then
4494  :
4495else
4496  echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499	ac_c_werror_flag=$ac_save_c_werror_flag
4500	 CFLAGS="-g"
4501	 cat >conftest.$ac_ext <<_ACEOF
4502/* confdefs.h.  */
4503_ACEOF
4504cat confdefs.h >>conftest.$ac_ext
4505cat >>conftest.$ac_ext <<_ACEOF
4506/* end confdefs.h.  */
4507
4508int
4509main ()
4510{
4511
4512  ;
4513  return 0;
4514}
4515_ACEOF
4516rm -f conftest.$ac_objext
4517if { (ac_try="$ac_compile"
4518case "(($ac_try" in
4519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520  *) ac_try_echo=$ac_try;;
4521esac
4522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523  (eval "$ac_compile") 2>conftest.er1
4524  ac_status=$?
4525  grep -v '^ *+' conftest.er1 >conftest.err
4526  rm -f conftest.er1
4527  cat conftest.err >&5
4528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529  (exit $ac_status); } && {
4530	 test -z "$ac_c_werror_flag" ||
4531	 test ! -s conftest.err
4532       } && test -s conftest.$ac_objext; then
4533  ac_cv_prog_cc_g=yes
4534else
4535  echo "$as_me: failed program was:" >&5
4536sed 's/^/| /' conftest.$ac_ext >&5
4537
4538
4539fi
4540
4541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542fi
4543
4544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545fi
4546
4547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548   ac_c_werror_flag=$ac_save_c_werror_flag
4549fi
4550{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4551echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4552if test "$ac_test_CFLAGS" = set; then
4553  CFLAGS=$ac_save_CFLAGS
4554elif test $ac_cv_prog_cc_g = yes; then
4555  if test "$GCC" = yes; then
4556    CFLAGS="-g -O2"
4557  else
4558    CFLAGS="-g"
4559  fi
4560else
4561  if test "$GCC" = yes; then
4562    CFLAGS="-O2"
4563  else
4564    CFLAGS=
4565  fi
4566fi
4567{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4568echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4569if test "${ac_cv_prog_cc_c89+set}" = set; then
4570  echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572  ac_cv_prog_cc_c89=no
4573ac_save_CC=$CC
4574cat >conftest.$ac_ext <<_ACEOF
4575/* confdefs.h.  */
4576_ACEOF
4577cat confdefs.h >>conftest.$ac_ext
4578cat >>conftest.$ac_ext <<_ACEOF
4579/* end confdefs.h.  */
4580#include <stdarg.h>
4581#include <stdio.h>
4582#include <sys/types.h>
4583#include <sys/stat.h>
4584/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4585struct buf { int x; };
4586FILE * (*rcsopen) (struct buf *, struct stat *, int);
4587static char *e (p, i)
4588     char **p;
4589     int i;
4590{
4591  return p[i];
4592}
4593static char *f (char * (*g) (char **, int), char **p, ...)
4594{
4595  char *s;
4596  va_list v;
4597  va_start (v,p);
4598  s = g (p, va_arg (v,int));
4599  va_end (v);
4600  return s;
4601}
4602
4603/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4604   function prototypes and stuff, but not '\xHH' hex character constants.
4605   These don't provoke an error unfortunately, instead are silently treated
4606   as 'x'.  The following induces an error, until -std is added to get
4607   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4608   array size at least.  It's necessary to write '\x00'==0 to get something
4609   that's true only with -std.  */
4610int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4611
4612/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4613   inside strings and character constants.  */
4614#define FOO(x) 'x'
4615int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4616
4617int test (int i, double x);
4618struct s1 {int (*f) (int a);};
4619struct s2 {int (*f) (double a);};
4620int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4621int argc;
4622char **argv;
4623int
4624main ()
4625{
4626return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4627  ;
4628  return 0;
4629}
4630_ACEOF
4631for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4632	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4633do
4634  CC="$ac_save_CC $ac_arg"
4635  rm -f conftest.$ac_objext
4636if { (ac_try="$ac_compile"
4637case "(($ac_try" in
4638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639  *) ac_try_echo=$ac_try;;
4640esac
4641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642  (eval "$ac_compile") 2>conftest.er1
4643  ac_status=$?
4644  grep -v '^ *+' conftest.er1 >conftest.err
4645  rm -f conftest.er1
4646  cat conftest.err >&5
4647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648  (exit $ac_status); } && {
4649	 test -z "$ac_c_werror_flag" ||
4650	 test ! -s conftest.err
4651       } && test -s conftest.$ac_objext; then
4652  ac_cv_prog_cc_c89=$ac_arg
4653else
4654  echo "$as_me: failed program was:" >&5
4655sed 's/^/| /' conftest.$ac_ext >&5
4656
4657
4658fi
4659
4660rm -f core conftest.err conftest.$ac_objext
4661  test "x$ac_cv_prog_cc_c89" != "xno" && break
4662done
4663rm -f conftest.$ac_ext
4664CC=$ac_save_CC
4665
4666fi
4667# AC_CACHE_VAL
4668case "x$ac_cv_prog_cc_c89" in
4669  x)
4670    { echo "$as_me:$LINENO: result: none needed" >&5
4671echo "${ECHO_T}none needed" >&6; } ;;
4672  xno)
4673    { echo "$as_me:$LINENO: result: unsupported" >&5
4674echo "${ECHO_T}unsupported" >&6; } ;;
4675  *)
4676    CC="$CC $ac_cv_prog_cc_c89"
4677    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4678echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4679esac
4680
4681
4682ac_ext=c
4683ac_cpp='$CPP $CPPFLAGS'
4684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687
4688depcc="$CC"   am_compiler_list=
4689
4690{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4691echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4692if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4693  echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4696  # We make a subdir and do the tests there.  Otherwise we can end up
4697  # making bogus files that we don't know about and never remove.  For
4698  # instance it was reported that on HP-UX the gcc test will end up
4699  # making a dummy file named `D' -- because `-MD' means `put the output
4700  # in D'.
4701  mkdir conftest.dir
4702  # Copy depcomp to subdir because otherwise we won't find it if we're
4703  # using a relative directory.
4704  cp "$am_depcomp" conftest.dir
4705  cd conftest.dir
4706  # We will build objects and dependencies in a subdirectory because
4707  # it helps to detect inapplicable dependency modes.  For instance
4708  # both Tru64's cc and ICC support -MD to output dependencies as a
4709  # side effect of compilation, but ICC will put the dependencies in
4710  # the current directory while Tru64 will put them in the object
4711  # directory.
4712  mkdir sub
4713
4714  am_cv_CC_dependencies_compiler_type=none
4715  if test "$am_compiler_list" = ""; then
4716     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4717  fi
4718  for depmode in $am_compiler_list; do
4719    # Setup a source with many dependencies, because some compilers
4720    # like to wrap large dependency lists on column 80 (with \), and
4721    # we should not choose a depcomp mode which is confused by this.
4722    #
4723    # We need to recreate these files for each test, as the compiler may
4724    # overwrite some of them when testing with obscure command lines.
4725    # This happens at least with the AIX C compiler.
4726    : > sub/conftest.c
4727    for i in 1 2 3 4 5 6; do
4728      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4729      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4730      # Solaris 8's {/usr,}/bin/sh.
4731      touch sub/conftst$i.h
4732    done
4733    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4734
4735    case $depmode in
4736    nosideeffect)
4737      # after this tag, mechanisms are not by side-effect, so they'll
4738      # only be used when explicitly requested
4739      if test "x$enable_dependency_tracking" = xyes; then
4740	continue
4741      else
4742	break
4743      fi
4744      ;;
4745    none) break ;;
4746    esac
4747    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4748    # mode.  It turns out that the SunPro C++ compiler does not properly
4749    # handle `-M -o', and we need to detect this.
4750    if depmode=$depmode \
4751       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4752       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4753       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4754         >/dev/null 2>conftest.err &&
4755       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4756       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4757       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4758       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4759      # icc doesn't choke on unknown options, it will just issue warnings
4760      # or remarks (even with -Werror).  So we grep stderr for any message
4761      # that says an option was ignored or not supported.
4762      # When given -MP, icc 7.0 and 7.1 complain thusly:
4763      #   icc: Command line warning: ignoring option '-M'; no argument required
4764      # The diagnosis changed in icc 8.0:
4765      #   icc: Command line remark: option '-MP' not supported
4766      if (grep 'ignoring option' conftest.err ||
4767          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4768        am_cv_CC_dependencies_compiler_type=$depmode
4769        break
4770      fi
4771    fi
4772  done
4773
4774  cd ..
4775  rm -rf conftest.dir
4776else
4777  am_cv_CC_dependencies_compiler_type=none
4778fi
4779
4780fi
4781{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4782echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4783CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4784
4785 if
4786  test "x$enable_dependency_tracking" != xno \
4787  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4788  am__fastdepCC_TRUE=
4789  am__fastdepCC_FALSE='#'
4790else
4791  am__fastdepCC_TRUE='#'
4792  am__fastdepCC_FALSE=
4793fi
4794
4795
4796{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4797echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4798if test "${lt_cv_path_SED+set}" = set; then
4799  echo $ECHO_N "(cached) $ECHO_C" >&6
4800else
4801  # Loop through the user's path and test for sed and gsed.
4802# Then use that list of sed's as ones to test for truncation.
4803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804for as_dir in $PATH
4805do
4806  IFS=$as_save_IFS
4807  test -z "$as_dir" && as_dir=.
4808  for lt_ac_prog in sed gsed; do
4809    for ac_exec_ext in '' $ac_executable_extensions; do
4810      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4811        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4812      fi
4813    done
4814  done
4815done
4816IFS=$as_save_IFS
4817lt_ac_max=0
4818lt_ac_count=0
4819# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4820# along with /bin/sed that truncates output.
4821for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4822  test ! -f $lt_ac_sed && continue
4823  cat /dev/null > conftest.in
4824  lt_ac_count=0
4825  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4826  # Check for GNU sed and select it if it is found.
4827  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4828    lt_cv_path_SED=$lt_ac_sed
4829    break
4830  fi
4831  while true; do
4832    cat conftest.in conftest.in >conftest.tmp
4833    mv conftest.tmp conftest.in
4834    cp conftest.in conftest.nl
4835    echo >>conftest.nl
4836    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4837    cmp -s conftest.out conftest.nl || break
4838    # 10000 chars as input seems more than enough
4839    test $lt_ac_count -gt 10 && break
4840    lt_ac_count=`expr $lt_ac_count + 1`
4841    if test $lt_ac_count -gt $lt_ac_max; then
4842      lt_ac_max=$lt_ac_count
4843      lt_cv_path_SED=$lt_ac_sed
4844    fi
4845  done
4846done
4847
4848fi
4849
4850SED=$lt_cv_path_SED
4851
4852{ echo "$as_me:$LINENO: result: $SED" >&5
4853echo "${ECHO_T}$SED" >&6; }
4854
4855{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4856echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4857if test "${ac_cv_path_GREP+set}" = set; then
4858  echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860  # Extract the first word of "grep ggrep" to use in msg output
4861if test -z "$GREP"; then
4862set dummy grep ggrep; ac_prog_name=$2
4863if test "${ac_cv_path_GREP+set}" = set; then
4864  echo $ECHO_N "(cached) $ECHO_C" >&6
4865else
4866  ac_path_GREP_found=false
4867# Loop through the user's path and test for each of PROGNAME-LIST
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4870do
4871  IFS=$as_save_IFS
4872  test -z "$as_dir" && as_dir=.
4873  for ac_prog in grep ggrep; do
4874  for ac_exec_ext in '' $ac_executable_extensions; do
4875    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4876    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4877    # Check for GNU ac_path_GREP and select it if it is found.
4878  # Check for GNU $ac_path_GREP
4879case `"$ac_path_GREP" --version 2>&1` in
4880*GNU*)
4881  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4882*)
4883  ac_count=0
4884  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4885  while :
4886  do
4887    cat "conftest.in" "conftest.in" >"conftest.tmp"
4888    mv "conftest.tmp" "conftest.in"
4889    cp "conftest.in" "conftest.nl"
4890    echo 'GREP' >> "conftest.nl"
4891    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4892    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4893    ac_count=`expr $ac_count + 1`
4894    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4895      # Best one so far, save it but keep looking for a better one
4896      ac_cv_path_GREP="$ac_path_GREP"
4897      ac_path_GREP_max=$ac_count
4898    fi
4899    # 10*(2^10) chars as input seems more than enough
4900    test $ac_count -gt 10 && break
4901  done
4902  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4903esac
4904
4905
4906    $ac_path_GREP_found && break 3
4907  done
4908done
4909
4910done
4911IFS=$as_save_IFS
4912
4913
4914fi
4915
4916GREP="$ac_cv_path_GREP"
4917if test -z "$GREP"; then
4918  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4919echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4920   { (exit 1); exit 1; }; }
4921fi
4922
4923else
4924  ac_cv_path_GREP=$GREP
4925fi
4926
4927
4928fi
4929{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4930echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4931 GREP="$ac_cv_path_GREP"
4932
4933
4934{ echo "$as_me:$LINENO: checking for egrep" >&5
4935echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4936if test "${ac_cv_path_EGREP+set}" = set; then
4937  echo $ECHO_N "(cached) $ECHO_C" >&6
4938else
4939  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4940   then ac_cv_path_EGREP="$GREP -E"
4941   else
4942     # Extract the first word of "egrep" to use in msg output
4943if test -z "$EGREP"; then
4944set dummy egrep; ac_prog_name=$2
4945if test "${ac_cv_path_EGREP+set}" = set; then
4946  echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948  ac_path_EGREP_found=false
4949# Loop through the user's path and test for each of PROGNAME-LIST
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4952do
4953  IFS=$as_save_IFS
4954  test -z "$as_dir" && as_dir=.
4955  for ac_prog in egrep; do
4956  for ac_exec_ext in '' $ac_executable_extensions; do
4957    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4958    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4959    # Check for GNU ac_path_EGREP and select it if it is found.
4960  # Check for GNU $ac_path_EGREP
4961case `"$ac_path_EGREP" --version 2>&1` in
4962*GNU*)
4963  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4964*)
4965  ac_count=0
4966  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4967  while :
4968  do
4969    cat "conftest.in" "conftest.in" >"conftest.tmp"
4970    mv "conftest.tmp" "conftest.in"
4971    cp "conftest.in" "conftest.nl"
4972    echo 'EGREP' >> "conftest.nl"
4973    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4974    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4975    ac_count=`expr $ac_count + 1`
4976    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4977      # Best one so far, save it but keep looking for a better one
4978      ac_cv_path_EGREP="$ac_path_EGREP"
4979      ac_path_EGREP_max=$ac_count
4980    fi
4981    # 10*(2^10) chars as input seems more than enough
4982    test $ac_count -gt 10 && break
4983  done
4984  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985esac
4986
4987
4988    $ac_path_EGREP_found && break 3
4989  done
4990done
4991
4992done
4993IFS=$as_save_IFS
4994
4995
4996fi
4997
4998EGREP="$ac_cv_path_EGREP"
4999if test -z "$EGREP"; then
5000  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5001echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5002   { (exit 1); exit 1; }; }
5003fi
5004
5005else
5006  ac_cv_path_EGREP=$EGREP
5007fi
5008
5009
5010   fi
5011fi
5012{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5013echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5014 EGREP="$ac_cv_path_EGREP"
5015
5016
5017
5018# Check whether --with-gnu-ld was given.
5019if test "${with_gnu_ld+set}" = set; then
5020  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5021else
5022  with_gnu_ld=no
5023fi
5024
5025ac_prog=ld
5026if test "$GCC" = yes; then
5027  # Check if gcc -print-prog-name=ld gives a path.
5028  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5029echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5030  case $host in
5031  *-*-mingw*)
5032    # gcc leaves a trailing carriage return which upsets mingw
5033    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5034  *)
5035    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5036  esac
5037  case $ac_prog in
5038    # Accept absolute paths.
5039    [\\/]* | ?:[\\/]*)
5040      re_direlt='/[^/][^/]*/\.\./'
5041      # Canonicalize the pathname of ld
5042      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5043      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5044	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5045      done
5046      test -z "$LD" && LD="$ac_prog"
5047      ;;
5048  "")
5049    # If it fails, then pretend we aren't using GCC.
5050    ac_prog=ld
5051    ;;
5052  *)
5053    # If it is relative, then search for the first ld in PATH.
5054    with_gnu_ld=unknown
5055    ;;
5056  esac
5057elif test "$with_gnu_ld" = yes; then
5058  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5059echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5060else
5061  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5062echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5063fi
5064if test "${lt_cv_path_LD+set}" = set; then
5065  echo $ECHO_N "(cached) $ECHO_C" >&6
5066else
5067  if test -z "$LD"; then
5068  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5069  for ac_dir in $PATH; do
5070    IFS="$lt_save_ifs"
5071    test -z "$ac_dir" && ac_dir=.
5072    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5073      lt_cv_path_LD="$ac_dir/$ac_prog"
5074      # Check to see if the program is GNU ld.  I'd rather use --version,
5075      # but apparently some variants of GNU ld only accept -v.
5076      # Break only if it was the GNU/non-GNU ld that we prefer.
5077      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5078      *GNU* | *'with BFD'*)
5079	test "$with_gnu_ld" != no && break
5080	;;
5081      *)
5082	test "$with_gnu_ld" != yes && break
5083	;;
5084      esac
5085    fi
5086  done
5087  IFS="$lt_save_ifs"
5088else
5089  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5090fi
5091fi
5092
5093LD="$lt_cv_path_LD"
5094if test -n "$LD"; then
5095  { echo "$as_me:$LINENO: result: $LD" >&5
5096echo "${ECHO_T}$LD" >&6; }
5097else
5098  { echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6; }
5100fi
5101test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5102echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5103   { (exit 1); exit 1; }; }
5104{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5105echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5106if test "${lt_cv_prog_gnu_ld+set}" = set; then
5107  echo $ECHO_N "(cached) $ECHO_C" >&6
5108else
5109  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5110case `$LD -v 2>&1 </dev/null` in
5111*GNU* | *'with BFD'*)
5112  lt_cv_prog_gnu_ld=yes
5113  ;;
5114*)
5115  lt_cv_prog_gnu_ld=no
5116  ;;
5117esac
5118fi
5119{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5120echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5121with_gnu_ld=$lt_cv_prog_gnu_ld
5122
5123
5124{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5125echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5126if test "${lt_cv_ld_reload_flag+set}" = set; then
5127  echo $ECHO_N "(cached) $ECHO_C" >&6
5128else
5129  lt_cv_ld_reload_flag='-r'
5130fi
5131{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5132echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5133reload_flag=$lt_cv_ld_reload_flag
5134case $reload_flag in
5135"" | " "*) ;;
5136*) reload_flag=" $reload_flag" ;;
5137esac
5138reload_cmds='$LD$reload_flag -o $output$reload_objs'
5139case $host_os in
5140  darwin*)
5141    if test "$GCC" = yes; then
5142      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5143    else
5144      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5145    fi
5146    ;;
5147esac
5148
5149{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5150echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5151if test "${lt_cv_path_NM+set}" = set; then
5152  echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154  if test -n "$NM"; then
5155  # Let the user override the test.
5156  lt_cv_path_NM="$NM"
5157else
5158  lt_nm_to_check="${ac_tool_prefix}nm"
5159  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5160    lt_nm_to_check="$lt_nm_to_check nm"
5161  fi
5162  for lt_tmp_nm in $lt_nm_to_check; do
5163    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5164    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5165      IFS="$lt_save_ifs"
5166      test -z "$ac_dir" && ac_dir=.
5167      tmp_nm="$ac_dir/$lt_tmp_nm"
5168      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5169	# Check to see if the nm accepts a BSD-compat flag.
5170	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5171	#   nm: unknown option "B" ignored
5172	# Tru64's nm complains that /dev/null is an invalid object file
5173	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5174	*/dev/null* | *'Invalid file or object type'*)
5175	  lt_cv_path_NM="$tmp_nm -B"
5176	  break
5177	  ;;
5178	*)
5179	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5180	  */dev/null*)
5181	    lt_cv_path_NM="$tmp_nm -p"
5182	    break
5183	    ;;
5184	  *)
5185	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5186	    continue # so that we can try to find one that supports BSD flags
5187	    ;;
5188	  esac
5189	  ;;
5190	esac
5191      fi
5192    done
5193    IFS="$lt_save_ifs"
5194  done
5195  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5196fi
5197fi
5198{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5199echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5200NM="$lt_cv_path_NM"
5201
5202{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5203echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5204LN_S=$as_ln_s
5205if test "$LN_S" = "ln -s"; then
5206  { echo "$as_me:$LINENO: result: yes" >&5
5207echo "${ECHO_T}yes" >&6; }
5208else
5209  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5210echo "${ECHO_T}no, using $LN_S" >&6; }
5211fi
5212
5213{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5214echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5215if test "${lt_cv_deplibs_check_method+set}" = set; then
5216  echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218  lt_cv_file_magic_cmd='$MAGIC_CMD'
5219lt_cv_file_magic_test_file=
5220lt_cv_deplibs_check_method='unknown'
5221# Need to set the preceding variable on all platforms that support
5222# interlibrary dependencies.
5223# 'none' -- dependencies not supported.
5224# `unknown' -- same as none, but documents that we really don't know.
5225# 'pass_all' -- all dependencies passed with no checks.
5226# 'test_compile' -- check by making test program.
5227# 'file_magic [[regex]]' -- check by looking for files in library path
5228# which responds to the $file_magic_cmd with a given extended regex.
5229# If you have `file' or equivalent on your system and you're not sure
5230# whether `pass_all' will *always* work, you probably want this one.
5231
5232case $host_os in
5233aix4* | aix5*)
5234  lt_cv_deplibs_check_method=pass_all
5235  ;;
5236
5237beos*)
5238  lt_cv_deplibs_check_method=pass_all
5239  ;;
5240
5241bsdi[45]*)
5242  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5243  lt_cv_file_magic_cmd='/usr/bin/file -L'
5244  lt_cv_file_magic_test_file=/shlib/libc.so
5245  ;;
5246
5247cygwin*)
5248  # func_win32_libid is a shell function defined in ltmain.sh
5249  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5250  lt_cv_file_magic_cmd='func_win32_libid'
5251  ;;
5252
5253mingw* | pw32*)
5254  # Base MSYS/MinGW do not provide the 'file' command needed by
5255  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5256  # unless we find 'file', for example because we are cross-compiling.
5257  if ( file / ) >/dev/null 2>&1; then
5258    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5259    lt_cv_file_magic_cmd='func_win32_libid'
5260  else
5261    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5262    lt_cv_file_magic_cmd='$OBJDUMP -f'
5263  fi
5264  ;;
5265
5266darwin* | rhapsody*)
5267  lt_cv_deplibs_check_method=pass_all
5268  ;;
5269
5270freebsd* | dragonfly*)
5271  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5272    case $host_cpu in
5273    i*86 )
5274      # Not sure whether the presence of OpenBSD here was a mistake.
5275      # Let's accept both of them until this is cleared up.
5276      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5277      lt_cv_file_magic_cmd=/usr/bin/file
5278      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5279      ;;
5280    esac
5281  else
5282    lt_cv_deplibs_check_method=pass_all
5283  fi
5284  ;;
5285
5286gnu*)
5287  lt_cv_deplibs_check_method=pass_all
5288  ;;
5289
5290hpux10.20* | hpux11*)
5291  lt_cv_file_magic_cmd=/usr/bin/file
5292  case $host_cpu in
5293  ia64*)
5294    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5295    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5296    ;;
5297  hppa*64*)
5298    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]'
5299    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5300    ;;
5301  *)
5302    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5303    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5304    ;;
5305  esac
5306  ;;
5307
5308interix[3-9]*)
5309  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5310  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5311  ;;
5312
5313irix5* | irix6* | nonstopux*)
5314  case $LD in
5315  *-32|*"-32 ") libmagic=32-bit;;
5316  *-n32|*"-n32 ") libmagic=N32;;
5317  *-64|*"-64 ") libmagic=64-bit;;
5318  *) libmagic=never-match;;
5319  esac
5320  lt_cv_deplibs_check_method=pass_all
5321  ;;
5322
5323# This must be Linux ELF.
5324linux* | k*bsd*-gnu)
5325  lt_cv_deplibs_check_method=pass_all
5326  ;;
5327
5328netbsd*)
5329  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5330    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5331  else
5332    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5333  fi
5334  ;;
5335
5336newos6*)
5337  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5338  lt_cv_file_magic_cmd=/usr/bin/file
5339  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5340  ;;
5341
5342nto-qnx*)
5343  lt_cv_deplibs_check_method=unknown
5344  ;;
5345
5346openbsd*)
5347  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5348    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5349  else
5350    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5351  fi
5352  ;;
5353
5354osf3* | osf4* | osf5*)
5355  lt_cv_deplibs_check_method=pass_all
5356  ;;
5357
5358rdos*)
5359  lt_cv_deplibs_check_method=pass_all
5360  ;;
5361
5362solaris*)
5363  lt_cv_deplibs_check_method=pass_all
5364  ;;
5365
5366sysv4 | sysv4.3*)
5367  case $host_vendor in
5368  motorola)
5369    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]'
5370    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5371    ;;
5372  ncr)
5373    lt_cv_deplibs_check_method=pass_all
5374    ;;
5375  sequent)
5376    lt_cv_file_magic_cmd='/bin/file'
5377    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5378    ;;
5379  sni)
5380    lt_cv_file_magic_cmd='/bin/file'
5381    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5382    lt_cv_file_magic_test_file=/lib/libc.so
5383    ;;
5384  siemens)
5385    lt_cv_deplibs_check_method=pass_all
5386    ;;
5387  pc)
5388    lt_cv_deplibs_check_method=pass_all
5389    ;;
5390  esac
5391  ;;
5392
5393sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5394  lt_cv_deplibs_check_method=pass_all
5395  ;;
5396esac
5397
5398fi
5399{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5400echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5401file_magic_cmd=$lt_cv_file_magic_cmd
5402deplibs_check_method=$lt_cv_deplibs_check_method
5403test -z "$deplibs_check_method" && deplibs_check_method=unknown
5404
5405
5406
5407
5408# If no C compiler was specified, use CC.
5409LTCC=${LTCC-"$CC"}
5410
5411# If no C compiler flags were specified, use CFLAGS.
5412LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5413
5414# Allow CC to be a program name with arguments.
5415compiler=$CC
5416
5417
5418# Check whether --enable-libtool-lock was given.
5419if test "${enable_libtool_lock+set}" = set; then
5420  enableval=$enable_libtool_lock;
5421fi
5422
5423test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5424
5425# Some flags need to be propagated to the compiler or linker for good
5426# libtool support.
5427case $host in
5428ia64-*-hpux*)
5429  # Find out which ABI we are using.
5430  echo 'int i;' > conftest.$ac_ext
5431  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432  (eval $ac_compile) 2>&5
5433  ac_status=$?
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); }; then
5436    case `/usr/bin/file conftest.$ac_objext` in
5437    *ELF-32*)
5438      HPUX_IA64_MODE="32"
5439      ;;
5440    *ELF-64*)
5441      HPUX_IA64_MODE="64"
5442      ;;
5443    esac
5444  fi
5445  rm -rf conftest*
5446  ;;
5447*-*-irix6*)
5448  # Find out which ABI we are using.
5449  echo '#line 5453 "configure"' > conftest.$ac_ext
5450  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451  (eval $ac_compile) 2>&5
5452  ac_status=$?
5453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454  (exit $ac_status); }; then
5455   if test "$lt_cv_prog_gnu_ld" = yes; then
5456    case `/usr/bin/file conftest.$ac_objext` in
5457    *32-bit*)
5458      LD="${LD-ld} -melf32bsmip"
5459      ;;
5460    *N32*)
5461      LD="${LD-ld} -melf32bmipn32"
5462      ;;
5463    *64-bit*)
5464      LD="${LD-ld} -melf64bmip"
5465      ;;
5466    esac
5467   else
5468    case `/usr/bin/file conftest.$ac_objext` in
5469    *32-bit*)
5470      LD="${LD-ld} -32"
5471      ;;
5472    *N32*)
5473      LD="${LD-ld} -n32"
5474      ;;
5475    *64-bit*)
5476      LD="${LD-ld} -64"
5477      ;;
5478    esac
5479   fi
5480  fi
5481  rm -rf conftest*
5482  ;;
5483
5484x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5485s390*-*linux*|sparc*-*linux*)
5486  # Find out which ABI we are using.
5487  echo 'int i;' > conftest.$ac_ext
5488  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489  (eval $ac_compile) 2>&5
5490  ac_status=$?
5491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492  (exit $ac_status); }; then
5493    case `/usr/bin/file conftest.o` in
5494    *32-bit*)
5495      case $host in
5496        x86_64-*kfreebsd*-gnu)
5497          LD="${LD-ld} -m elf_i386_fbsd"
5498          ;;
5499        x86_64-*linux*)
5500          LD="${LD-ld} -m elf_i386"
5501          ;;
5502        ppc64-*linux*|powerpc64-*linux*)
5503          LD="${LD-ld} -m elf32ppclinux"
5504          ;;
5505        s390x-*linux*)
5506          LD="${LD-ld} -m elf_s390"
5507          ;;
5508        sparc64-*linux*)
5509          LD="${LD-ld} -m elf32_sparc"
5510          ;;
5511      esac
5512      ;;
5513    *64-bit*)
5514      libsuff=64
5515      case $host in
5516        x86_64-*kfreebsd*-gnu)
5517          LD="${LD-ld} -m elf_x86_64_fbsd"
5518          ;;
5519        x86_64-*linux*)
5520          LD="${LD-ld} -m elf_x86_64"
5521          ;;
5522        ppc*-*linux*|powerpc*-*linux*)
5523          LD="${LD-ld} -m elf64ppc"
5524          ;;
5525        s390*-*linux*)
5526          LD="${LD-ld} -m elf64_s390"
5527          ;;
5528        sparc*-*linux*)
5529          LD="${LD-ld} -m elf64_sparc"
5530          ;;
5531      esac
5532      ;;
5533    esac
5534  fi
5535  rm -rf conftest*
5536  ;;
5537
5538*-*-sco3.2v5*)
5539  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5540  SAVE_CFLAGS="$CFLAGS"
5541  CFLAGS="$CFLAGS -belf"
5542  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5543echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5544if test "${lt_cv_cc_needs_belf+set}" = set; then
5545  echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547  ac_ext=c
5548ac_cpp='$CPP $CPPFLAGS'
5549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552
5553     cat >conftest.$ac_ext <<_ACEOF
5554/* confdefs.h.  */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
5558/* end confdefs.h.  */
5559
5560int
5561main ()
5562{
5563
5564  ;
5565  return 0;
5566}
5567_ACEOF
5568rm -f conftest.$ac_objext conftest$ac_exeext
5569if { (ac_try="$ac_link"
5570case "(($ac_try" in
5571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572  *) ac_try_echo=$ac_try;;
5573esac
5574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575  (eval "$ac_link") 2>conftest.er1
5576  ac_status=$?
5577  grep -v '^ *+' conftest.er1 >conftest.err
5578  rm -f conftest.er1
5579  cat conftest.err >&5
5580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581  (exit $ac_status); } && {
5582	 test -z "$ac_c_werror_flag" ||
5583	 test ! -s conftest.err
5584       } && test -s conftest$ac_exeext &&
5585       $as_test_x conftest$ac_exeext; then
5586  lt_cv_cc_needs_belf=yes
5587else
5588  echo "$as_me: failed program was:" >&5
5589sed 's/^/| /' conftest.$ac_ext >&5
5590
5591	lt_cv_cc_needs_belf=no
5592fi
5593
5594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5595      conftest$ac_exeext conftest.$ac_ext
5596     ac_ext=c
5597ac_cpp='$CPP $CPPFLAGS'
5598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600ac_compiler_gnu=$ac_cv_c_compiler_gnu
5601
5602fi
5603{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5604echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5605  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5606    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5607    CFLAGS="$SAVE_CFLAGS"
5608  fi
5609  ;;
5610sparc*-*solaris*)
5611  # Find out which ABI we are using.
5612  echo 'int i;' > conftest.$ac_ext
5613  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5614  (eval $ac_compile) 2>&5
5615  ac_status=$?
5616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617  (exit $ac_status); }; then
5618    case `/usr/bin/file conftest.o` in
5619    *64-bit*)
5620      case $lt_cv_prog_gnu_ld in
5621      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5622      *)    LD="${LD-ld} -64" ;;
5623      esac
5624      ;;
5625    esac
5626  fi
5627  rm -rf conftest*
5628  ;;
5629
5630
5631esac
5632
5633need_locks="$enable_libtool_lock"
5634
5635
5636ac_ext=c
5637ac_cpp='$CPP $CPPFLAGS'
5638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5642echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5643# On Suns, sometimes $CPP names a directory.
5644if test -n "$CPP" && test -d "$CPP"; then
5645  CPP=
5646fi
5647if test -z "$CPP"; then
5648  if test "${ac_cv_prog_CPP+set}" = set; then
5649  echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651      # Double quotes because CPP needs to be expanded
5652    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5653    do
5654      ac_preproc_ok=false
5655for ac_c_preproc_warn_flag in '' yes
5656do
5657  # Use a header file that comes with gcc, so configuring glibc
5658  # with a fresh cross-compiler works.
5659  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5660  # <limits.h> exists even on freestanding compilers.
5661  # On the NeXT, cc -E runs the code through the compiler's parser,
5662  # not just through cpp. "Syntax error" is here to catch this case.
5663  cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h.  */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h.  */
5669#ifdef __STDC__
5670# include <limits.h>
5671#else
5672# include <assert.h>
5673#endif
5674		     Syntax error
5675_ACEOF
5676if { (ac_try="$ac_cpp conftest.$ac_ext"
5677case "(($ac_try" in
5678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679  *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5683  ac_status=$?
5684  grep -v '^ *+' conftest.er1 >conftest.err
5685  rm -f conftest.er1
5686  cat conftest.err >&5
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); } >/dev/null && {
5689	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5690	 test ! -s conftest.err
5691       }; then
5692  :
5693else
5694  echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697  # Broken: fails on valid input.
5698continue
5699fi
5700
5701rm -f conftest.err conftest.$ac_ext
5702
5703  # OK, works on sane cases.  Now check whether nonexistent headers
5704  # can be detected and how.
5705  cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h.  */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h.  */
5711#include <ac_nonexistent.h>
5712_ACEOF
5713if { (ac_try="$ac_cpp conftest.$ac_ext"
5714case "(($ac_try" in
5715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716  *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5720  ac_status=$?
5721  grep -v '^ *+' conftest.er1 >conftest.err
5722  rm -f conftest.er1
5723  cat conftest.err >&5
5724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725  (exit $ac_status); } >/dev/null && {
5726	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5727	 test ! -s conftest.err
5728       }; then
5729  # Broken: success on invalid input.
5730continue
5731else
5732  echo "$as_me: failed program was:" >&5
5733sed 's/^/| /' conftest.$ac_ext >&5
5734
5735  # Passes both tests.
5736ac_preproc_ok=:
5737break
5738fi
5739
5740rm -f conftest.err conftest.$ac_ext
5741
5742done
5743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5744rm -f conftest.err conftest.$ac_ext
5745if $ac_preproc_ok; then
5746  break
5747fi
5748
5749    done
5750    ac_cv_prog_CPP=$CPP
5751
5752fi
5753  CPP=$ac_cv_prog_CPP
5754else
5755  ac_cv_prog_CPP=$CPP
5756fi
5757{ echo "$as_me:$LINENO: result: $CPP" >&5
5758echo "${ECHO_T}$CPP" >&6; }
5759ac_preproc_ok=false
5760for ac_c_preproc_warn_flag in '' yes
5761do
5762  # Use a header file that comes with gcc, so configuring glibc
5763  # with a fresh cross-compiler works.
5764  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5765  # <limits.h> exists even on freestanding compilers.
5766  # On the NeXT, cc -E runs the code through the compiler's parser,
5767  # not just through cpp. "Syntax error" is here to catch this case.
5768  cat >conftest.$ac_ext <<_ACEOF
5769/* confdefs.h.  */
5770_ACEOF
5771cat confdefs.h >>conftest.$ac_ext
5772cat >>conftest.$ac_ext <<_ACEOF
5773/* end confdefs.h.  */
5774#ifdef __STDC__
5775# include <limits.h>
5776#else
5777# include <assert.h>
5778#endif
5779		     Syntax error
5780_ACEOF
5781if { (ac_try="$ac_cpp conftest.$ac_ext"
5782case "(($ac_try" in
5783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784  *) ac_try_echo=$ac_try;;
5785esac
5786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5788  ac_status=$?
5789  grep -v '^ *+' conftest.er1 >conftest.err
5790  rm -f conftest.er1
5791  cat conftest.err >&5
5792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793  (exit $ac_status); } >/dev/null && {
5794	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5795	 test ! -s conftest.err
5796       }; then
5797  :
5798else
5799  echo "$as_me: failed program was:" >&5
5800sed 's/^/| /' conftest.$ac_ext >&5
5801
5802  # Broken: fails on valid input.
5803continue
5804fi
5805
5806rm -f conftest.err conftest.$ac_ext
5807
5808  # OK, works on sane cases.  Now check whether nonexistent headers
5809  # can be detected and how.
5810  cat >conftest.$ac_ext <<_ACEOF
5811/* confdefs.h.  */
5812_ACEOF
5813cat confdefs.h >>conftest.$ac_ext
5814cat >>conftest.$ac_ext <<_ACEOF
5815/* end confdefs.h.  */
5816#include <ac_nonexistent.h>
5817_ACEOF
5818if { (ac_try="$ac_cpp conftest.$ac_ext"
5819case "(($ac_try" in
5820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821  *) ac_try_echo=$ac_try;;
5822esac
5823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5825  ac_status=$?
5826  grep -v '^ *+' conftest.er1 >conftest.err
5827  rm -f conftest.er1
5828  cat conftest.err >&5
5829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830  (exit $ac_status); } >/dev/null && {
5831	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5832	 test ! -s conftest.err
5833       }; then
5834  # Broken: success on invalid input.
5835continue
5836else
5837  echo "$as_me: failed program was:" >&5
5838sed 's/^/| /' conftest.$ac_ext >&5
5839
5840  # Passes both tests.
5841ac_preproc_ok=:
5842break
5843fi
5844
5845rm -f conftest.err conftest.$ac_ext
5846
5847done
5848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5849rm -f conftest.err conftest.$ac_ext
5850if $ac_preproc_ok; then
5851  :
5852else
5853  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5854See \`config.log' for more details." >&5
5855echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5856See \`config.log' for more details." >&2;}
5857   { (exit 1); exit 1; }; }
5858fi
5859
5860ac_ext=c
5861ac_cpp='$CPP $CPPFLAGS'
5862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864ac_compiler_gnu=$ac_cv_c_compiler_gnu
5865
5866
5867{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5868echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5869if test "${ac_cv_header_stdc+set}" = set; then
5870  echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872  cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h.  */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h.  */
5878#include <stdlib.h>
5879#include <stdarg.h>
5880#include <string.h>
5881#include <float.h>
5882
5883int
5884main ()
5885{
5886
5887  ;
5888  return 0;
5889}
5890_ACEOF
5891rm -f conftest.$ac_objext
5892if { (ac_try="$ac_compile"
5893case "(($ac_try" in
5894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895  *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898  (eval "$ac_compile") 2>conftest.er1
5899  ac_status=$?
5900  grep -v '^ *+' conftest.er1 >conftest.err
5901  rm -f conftest.er1
5902  cat conftest.err >&5
5903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904  (exit $ac_status); } && {
5905	 test -z "$ac_c_werror_flag" ||
5906	 test ! -s conftest.err
5907       } && test -s conftest.$ac_objext; then
5908  ac_cv_header_stdc=yes
5909else
5910  echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913	ac_cv_header_stdc=no
5914fi
5915
5916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917
5918if test $ac_cv_header_stdc = yes; then
5919  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5920  cat >conftest.$ac_ext <<_ACEOF
5921/* confdefs.h.  */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h.  */
5926#include <string.h>
5927
5928_ACEOF
5929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930  $EGREP "memchr" >/dev/null 2>&1; then
5931  :
5932else
5933  ac_cv_header_stdc=no
5934fi
5935rm -f conftest*
5936
5937fi
5938
5939if test $ac_cv_header_stdc = yes; then
5940  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5941  cat >conftest.$ac_ext <<_ACEOF
5942/* confdefs.h.  */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h.  */
5947#include <stdlib.h>
5948
5949_ACEOF
5950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5951  $EGREP "free" >/dev/null 2>&1; then
5952  :
5953else
5954  ac_cv_header_stdc=no
5955fi
5956rm -f conftest*
5957
5958fi
5959
5960if test $ac_cv_header_stdc = yes; then
5961  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5962  if test "$cross_compiling" = yes; then
5963  :
5964else
5965  cat >conftest.$ac_ext <<_ACEOF
5966/* confdefs.h.  */
5967_ACEOF
5968cat confdefs.h >>conftest.$ac_ext
5969cat >>conftest.$ac_ext <<_ACEOF
5970/* end confdefs.h.  */
5971#include <ctype.h>
5972#include <stdlib.h>
5973#if ((' ' & 0x0FF) == 0x020)
5974# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5975# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5976#else
5977# define ISLOWER(c) \
5978		   (('a' <= (c) && (c) <= 'i') \
5979		     || ('j' <= (c) && (c) <= 'r') \
5980		     || ('s' <= (c) && (c) <= 'z'))
5981# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5982#endif
5983
5984#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5985int
5986main ()
5987{
5988  int i;
5989  for (i = 0; i < 256; i++)
5990    if (XOR (islower (i), ISLOWER (i))
5991	|| toupper (i) != TOUPPER (i))
5992      return 2;
5993  return 0;
5994}
5995_ACEOF
5996rm -f conftest$ac_exeext
5997if { (ac_try="$ac_link"
5998case "(($ac_try" in
5999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000  *) ac_try_echo=$ac_try;;
6001esac
6002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003  (eval "$ac_link") 2>&5
6004  ac_status=$?
6005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6007  { (case "(($ac_try" in
6008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009  *) ac_try_echo=$ac_try;;
6010esac
6011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012  (eval "$ac_try") 2>&5
6013  ac_status=$?
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); }; }; then
6016  :
6017else
6018  echo "$as_me: program exited with status $ac_status" >&5
6019echo "$as_me: failed program was:" >&5
6020sed 's/^/| /' conftest.$ac_ext >&5
6021
6022( exit $ac_status )
6023ac_cv_header_stdc=no
6024fi
6025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6026fi
6027
6028
6029fi
6030fi
6031{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6032echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6033if test $ac_cv_header_stdc = yes; then
6034
6035cat >>confdefs.h <<\_ACEOF
6036#define STDC_HEADERS 1
6037_ACEOF
6038
6039fi
6040
6041# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6052		  inttypes.h stdint.h unistd.h
6053do
6054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6055{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6058  echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060  cat >conftest.$ac_ext <<_ACEOF
6061/* confdefs.h.  */
6062_ACEOF
6063cat confdefs.h >>conftest.$ac_ext
6064cat >>conftest.$ac_ext <<_ACEOF
6065/* end confdefs.h.  */
6066$ac_includes_default
6067
6068#include <$ac_header>
6069_ACEOF
6070rm -f conftest.$ac_objext
6071if { (ac_try="$ac_compile"
6072case "(($ac_try" in
6073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074  *) ac_try_echo=$ac_try;;
6075esac
6076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077  (eval "$ac_compile") 2>conftest.er1
6078  ac_status=$?
6079  grep -v '^ *+' conftest.er1 >conftest.err
6080  rm -f conftest.er1
6081  cat conftest.err >&5
6082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083  (exit $ac_status); } && {
6084	 test -z "$ac_c_werror_flag" ||
6085	 test ! -s conftest.err
6086       } && test -s conftest.$ac_objext; then
6087  eval "$as_ac_Header=yes"
6088else
6089  echo "$as_me: failed program was:" >&5
6090sed 's/^/| /' conftest.$ac_ext >&5
6091
6092	eval "$as_ac_Header=no"
6093fi
6094
6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096fi
6097ac_res=`eval echo '${'$as_ac_Header'}'`
6098	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6099echo "${ECHO_T}$ac_res" >&6; }
6100if test `eval echo '${'$as_ac_Header'}'` = yes; then
6101  cat >>confdefs.h <<_ACEOF
6102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6103_ACEOF
6104
6105fi
6106
6107done
6108
6109
6110
6111for ac_header in dlfcn.h
6112do
6113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6115  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6118  echo $ECHO_N "(cached) $ECHO_C" >&6
6119fi
6120ac_res=`eval echo '${'$as_ac_Header'}'`
6121	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6122echo "${ECHO_T}$ac_res" >&6; }
6123else
6124  # Is the header compilable?
6125{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6126echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6127cat >conftest.$ac_ext <<_ACEOF
6128/* confdefs.h.  */
6129_ACEOF
6130cat confdefs.h >>conftest.$ac_ext
6131cat >>conftest.$ac_ext <<_ACEOF
6132/* end confdefs.h.  */
6133$ac_includes_default
6134#include <$ac_header>
6135_ACEOF
6136rm -f conftest.$ac_objext
6137if { (ac_try="$ac_compile"
6138case "(($ac_try" in
6139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140  *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143  (eval "$ac_compile") 2>conftest.er1
6144  ac_status=$?
6145  grep -v '^ *+' conftest.er1 >conftest.err
6146  rm -f conftest.er1
6147  cat conftest.err >&5
6148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149  (exit $ac_status); } && {
6150	 test -z "$ac_c_werror_flag" ||
6151	 test ! -s conftest.err
6152       } && test -s conftest.$ac_objext; then
6153  ac_header_compiler=yes
6154else
6155  echo "$as_me: failed program was:" >&5
6156sed 's/^/| /' conftest.$ac_ext >&5
6157
6158	ac_header_compiler=no
6159fi
6160
6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6163echo "${ECHO_T}$ac_header_compiler" >&6; }
6164
6165# Is the header present?
6166{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6167echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6168cat >conftest.$ac_ext <<_ACEOF
6169/* confdefs.h.  */
6170_ACEOF
6171cat confdefs.h >>conftest.$ac_ext
6172cat >>conftest.$ac_ext <<_ACEOF
6173/* end confdefs.h.  */
6174#include <$ac_header>
6175_ACEOF
6176if { (ac_try="$ac_cpp conftest.$ac_ext"
6177case "(($ac_try" in
6178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179  *) ac_try_echo=$ac_try;;
6180esac
6181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6183  ac_status=$?
6184  grep -v '^ *+' conftest.er1 >conftest.err
6185  rm -f conftest.er1
6186  cat conftest.err >&5
6187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188  (exit $ac_status); } >/dev/null && {
6189	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6190	 test ! -s conftest.err
6191       }; then
6192  ac_header_preproc=yes
6193else
6194  echo "$as_me: failed program was:" >&5
6195sed 's/^/| /' conftest.$ac_ext >&5
6196
6197  ac_header_preproc=no
6198fi
6199
6200rm -f conftest.err conftest.$ac_ext
6201{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6202echo "${ECHO_T}$ac_header_preproc" >&6; }
6203
6204# So?  What about this header?
6205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6206  yes:no: )
6207    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6208echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6209    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6210echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6211    ac_header_preproc=yes
6212    ;;
6213  no:yes:* )
6214    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6215echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6216    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6217echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6218    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6219echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6220    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6221echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6222    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6223echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6224    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6225echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6226
6227    ;;
6228esac
6229{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6232  echo $ECHO_N "(cached) $ECHO_C" >&6
6233else
6234  eval "$as_ac_Header=\$ac_header_preproc"
6235fi
6236ac_res=`eval echo '${'$as_ac_Header'}'`
6237	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6238echo "${ECHO_T}$ac_res" >&6; }
6239
6240fi
6241if test `eval echo '${'$as_ac_Header'}'` = yes; then
6242  cat >>confdefs.h <<_ACEOF
6243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6244_ACEOF
6245
6246fi
6247
6248done
6249
6250
6251
6252if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6253    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6254    (test "X$CXX" != "Xg++"))) ; then
6255  ac_ext=cpp
6256ac_cpp='$CXXCPP $CPPFLAGS'
6257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6260{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6261echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6262if test -z "$CXXCPP"; then
6263  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6264  echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266      # Double quotes because CXXCPP needs to be expanded
6267    for CXXCPP in "$CXX -E" "/lib/cpp"
6268    do
6269      ac_preproc_ok=false
6270for ac_cxx_preproc_warn_flag in '' yes
6271do
6272  # Use a header file that comes with gcc, so configuring glibc
6273  # with a fresh cross-compiler works.
6274  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6275  # <limits.h> exists even on freestanding compilers.
6276  # On the NeXT, cc -E runs the code through the compiler's parser,
6277  # not just through cpp. "Syntax error" is here to catch this case.
6278  cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h.  */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h.  */
6284#ifdef __STDC__
6285# include <limits.h>
6286#else
6287# include <assert.h>
6288#endif
6289		     Syntax error
6290_ACEOF
6291if { (ac_try="$ac_cpp conftest.$ac_ext"
6292case "(($ac_try" in
6293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294  *) ac_try_echo=$ac_try;;
6295esac
6296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6298  ac_status=$?
6299  grep -v '^ *+' conftest.er1 >conftest.err
6300  rm -f conftest.er1
6301  cat conftest.err >&5
6302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303  (exit $ac_status); } >/dev/null && {
6304	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6305	 test ! -s conftest.err
6306       }; then
6307  :
6308else
6309  echo "$as_me: failed program was:" >&5
6310sed 's/^/| /' conftest.$ac_ext >&5
6311
6312  # Broken: fails on valid input.
6313continue
6314fi
6315
6316rm -f conftest.err conftest.$ac_ext
6317
6318  # OK, works on sane cases.  Now check whether nonexistent headers
6319  # can be detected and how.
6320  cat >conftest.$ac_ext <<_ACEOF
6321/* confdefs.h.  */
6322_ACEOF
6323cat confdefs.h >>conftest.$ac_ext
6324cat >>conftest.$ac_ext <<_ACEOF
6325/* end confdefs.h.  */
6326#include <ac_nonexistent.h>
6327_ACEOF
6328if { (ac_try="$ac_cpp conftest.$ac_ext"
6329case "(($ac_try" in
6330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331  *) ac_try_echo=$ac_try;;
6332esac
6333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6335  ac_status=$?
6336  grep -v '^ *+' conftest.er1 >conftest.err
6337  rm -f conftest.er1
6338  cat conftest.err >&5
6339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340  (exit $ac_status); } >/dev/null && {
6341	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6342	 test ! -s conftest.err
6343       }; then
6344  # Broken: success on invalid input.
6345continue
6346else
6347  echo "$as_me: failed program was:" >&5
6348sed 's/^/| /' conftest.$ac_ext >&5
6349
6350  # Passes both tests.
6351ac_preproc_ok=:
6352break
6353fi
6354
6355rm -f conftest.err conftest.$ac_ext
6356
6357done
6358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6359rm -f conftest.err conftest.$ac_ext
6360if $ac_preproc_ok; then
6361  break
6362fi
6363
6364    done
6365    ac_cv_prog_CXXCPP=$CXXCPP
6366
6367fi
6368  CXXCPP=$ac_cv_prog_CXXCPP
6369else
6370  ac_cv_prog_CXXCPP=$CXXCPP
6371fi
6372{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6373echo "${ECHO_T}$CXXCPP" >&6; }
6374ac_preproc_ok=false
6375for ac_cxx_preproc_warn_flag in '' yes
6376do
6377  # Use a header file that comes with gcc, so configuring glibc
6378  # with a fresh cross-compiler works.
6379  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6380  # <limits.h> exists even on freestanding compilers.
6381  # On the NeXT, cc -E runs the code through the compiler's parser,
6382  # not just through cpp. "Syntax error" is here to catch this case.
6383  cat >conftest.$ac_ext <<_ACEOF
6384/* confdefs.h.  */
6385_ACEOF
6386cat confdefs.h >>conftest.$ac_ext
6387cat >>conftest.$ac_ext <<_ACEOF
6388/* end confdefs.h.  */
6389#ifdef __STDC__
6390# include <limits.h>
6391#else
6392# include <assert.h>
6393#endif
6394		     Syntax error
6395_ACEOF
6396if { (ac_try="$ac_cpp conftest.$ac_ext"
6397case "(($ac_try" in
6398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399  *) ac_try_echo=$ac_try;;
6400esac
6401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6403  ac_status=$?
6404  grep -v '^ *+' conftest.er1 >conftest.err
6405  rm -f conftest.er1
6406  cat conftest.err >&5
6407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); } >/dev/null && {
6409	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6410	 test ! -s conftest.err
6411       }; then
6412  :
6413else
6414  echo "$as_me: failed program was:" >&5
6415sed 's/^/| /' conftest.$ac_ext >&5
6416
6417  # Broken: fails on valid input.
6418continue
6419fi
6420
6421rm -f conftest.err conftest.$ac_ext
6422
6423  # OK, works on sane cases.  Now check whether nonexistent headers
6424  # can be detected and how.
6425  cat >conftest.$ac_ext <<_ACEOF
6426/* confdefs.h.  */
6427_ACEOF
6428cat confdefs.h >>conftest.$ac_ext
6429cat >>conftest.$ac_ext <<_ACEOF
6430/* end confdefs.h.  */
6431#include <ac_nonexistent.h>
6432_ACEOF
6433if { (ac_try="$ac_cpp conftest.$ac_ext"
6434case "(($ac_try" in
6435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436  *) ac_try_echo=$ac_try;;
6437esac
6438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6440  ac_status=$?
6441  grep -v '^ *+' conftest.er1 >conftest.err
6442  rm -f conftest.er1
6443  cat conftest.err >&5
6444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445  (exit $ac_status); } >/dev/null && {
6446	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6447	 test ! -s conftest.err
6448       }; then
6449  # Broken: success on invalid input.
6450continue
6451else
6452  echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
6454
6455  # Passes both tests.
6456ac_preproc_ok=:
6457break
6458fi
6459
6460rm -f conftest.err conftest.$ac_ext
6461
6462done
6463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6464rm -f conftest.err conftest.$ac_ext
6465if $ac_preproc_ok; then
6466  :
6467else
6468  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6469See \`config.log' for more details." >&5
6470echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6471See \`config.log' for more details." >&2;}
6472   { (exit 1); exit 1; }; }
6473fi
6474
6475ac_ext=cpp
6476ac_cpp='$CXXCPP $CPPFLAGS'
6477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6480
6481fi
6482
6483
6484ac_ext=f
6485ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6486ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6487ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6488if test -n "$ac_tool_prefix"; then
6489  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
6490  do
6491    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6492set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6495if test "${ac_cv_prog_F77+set}" = set; then
6496  echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498  if test -n "$F77"; then
6499  ac_cv_prog_F77="$F77" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504  IFS=$as_save_IFS
6505  test -z "$as_dir" && as_dir=.
6506  for ac_exec_ext in '' $ac_executable_extensions; do
6507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6508    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6509    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510    break 2
6511  fi
6512done
6513done
6514IFS=$as_save_IFS
6515
6516fi
6517fi
6518F77=$ac_cv_prog_F77
6519if test -n "$F77"; then
6520  { echo "$as_me:$LINENO: result: $F77" >&5
6521echo "${ECHO_T}$F77" >&6; }
6522else
6523  { echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6; }
6525fi
6526
6527
6528    test -n "$F77" && break
6529  done
6530fi
6531if test -z "$F77"; then
6532  ac_ct_F77=$F77
6533  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
6534do
6535  # Extract the first word of "$ac_prog", so it can be a program name with args.
6536set dummy $ac_prog; ac_word=$2
6537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6539if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6540  echo $ECHO_N "(cached) $ECHO_C" >&6
6541else
6542  if test -n "$ac_ct_F77"; then
6543  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6544else
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548  IFS=$as_save_IFS
6549  test -z "$as_dir" && as_dir=.
6550  for ac_exec_ext in '' $ac_executable_extensions; do
6551  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552    ac_cv_prog_ac_ct_F77="$ac_prog"
6553    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554    break 2
6555  fi
6556done
6557done
6558IFS=$as_save_IFS
6559
6560fi
6561fi
6562ac_ct_F77=$ac_cv_prog_ac_ct_F77
6563if test -n "$ac_ct_F77"; then
6564  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6565echo "${ECHO_T}$ac_ct_F77" >&6; }
6566else
6567  { echo "$as_me:$LINENO: result: no" >&5
6568echo "${ECHO_T}no" >&6; }
6569fi
6570
6571
6572  test -n "$ac_ct_F77" && break
6573done
6574
6575  if test "x$ac_ct_F77" = x; then
6576    F77=""
6577  else
6578    case $cross_compiling:$ac_tool_warned in
6579yes:)
6580{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6581whose name does not start with the host triplet.  If you think this
6582configuration is useful to you, please write to autoconf@gnu.org." >&5
6583echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6584whose name does not start with the host triplet.  If you think this
6585configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6586ac_tool_warned=yes ;;
6587esac
6588    F77=$ac_ct_F77
6589  fi
6590fi
6591
6592
6593# Provide some information about the compiler.
6594echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6595ac_compiler=`set X $ac_compile; echo $2`
6596{ (ac_try="$ac_compiler --version >&5"
6597case "(($ac_try" in
6598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599  *) ac_try_echo=$ac_try;;
6600esac
6601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602  (eval "$ac_compiler --version >&5") 2>&5
6603  ac_status=$?
6604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605  (exit $ac_status); }
6606{ (ac_try="$ac_compiler -v >&5"
6607case "(($ac_try" in
6608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609  *) ac_try_echo=$ac_try;;
6610esac
6611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612  (eval "$ac_compiler -v >&5") 2>&5
6613  ac_status=$?
6614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); }
6616{ (ac_try="$ac_compiler -V >&5"
6617case "(($ac_try" in
6618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619  *) ac_try_echo=$ac_try;;
6620esac
6621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622  (eval "$ac_compiler -V >&5") 2>&5
6623  ac_status=$?
6624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625  (exit $ac_status); }
6626rm -f a.out
6627
6628# If we don't use `.F' as extension, the preprocessor is not run on the
6629# input file.  (Note that this only needs to work for GNU compilers.)
6630ac_save_ext=$ac_ext
6631ac_ext=F
6632{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6633echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6634if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6635  echo $ECHO_N "(cached) $ECHO_C" >&6
6636else
6637  cat >conftest.$ac_ext <<_ACEOF
6638      program main
6639#ifndef __GNUC__
6640       choke me
6641#endif
6642
6643      end
6644_ACEOF
6645rm -f conftest.$ac_objext
6646if { (ac_try="$ac_compile"
6647case "(($ac_try" in
6648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649  *) ac_try_echo=$ac_try;;
6650esac
6651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652  (eval "$ac_compile") 2>conftest.er1
6653  ac_status=$?
6654  grep -v '^ *+' conftest.er1 >conftest.err
6655  rm -f conftest.er1
6656  cat conftest.err >&5
6657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658  (exit $ac_status); } && {
6659	 test -z "$ac_f77_werror_flag" ||
6660	 test ! -s conftest.err
6661       } && test -s conftest.$ac_objext; then
6662  ac_compiler_gnu=yes
6663else
6664  echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667	ac_compiler_gnu=no
6668fi
6669
6670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6672
6673fi
6674{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6675echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6676ac_ext=$ac_save_ext
6677ac_test_FFLAGS=${FFLAGS+set}
6678ac_save_FFLAGS=$FFLAGS
6679FFLAGS=
6680{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6681echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6682if test "${ac_cv_prog_f77_g+set}" = set; then
6683  echo $ECHO_N "(cached) $ECHO_C" >&6
6684else
6685  FFLAGS=-g
6686cat >conftest.$ac_ext <<_ACEOF
6687      program main
6688
6689      end
6690_ACEOF
6691rm -f conftest.$ac_objext
6692if { (ac_try="$ac_compile"
6693case "(($ac_try" in
6694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695  *) ac_try_echo=$ac_try;;
6696esac
6697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698  (eval "$ac_compile") 2>conftest.er1
6699  ac_status=$?
6700  grep -v '^ *+' conftest.er1 >conftest.err
6701  rm -f conftest.er1
6702  cat conftest.err >&5
6703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704  (exit $ac_status); } && {
6705	 test -z "$ac_f77_werror_flag" ||
6706	 test ! -s conftest.err
6707       } && test -s conftest.$ac_objext; then
6708  ac_cv_prog_f77_g=yes
6709else
6710  echo "$as_me: failed program was:" >&5
6711sed 's/^/| /' conftest.$ac_ext >&5
6712
6713	ac_cv_prog_f77_g=no
6714fi
6715
6716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717
6718fi
6719{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6720echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6721if test "$ac_test_FFLAGS" = set; then
6722  FFLAGS=$ac_save_FFLAGS
6723elif test $ac_cv_prog_f77_g = yes; then
6724  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6725    FFLAGS="-g -O2"
6726  else
6727    FFLAGS="-g"
6728  fi
6729else
6730  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6731    FFLAGS="-O2"
6732  else
6733    FFLAGS=
6734  fi
6735fi
6736
6737G77=`test $ac_compiler_gnu = yes && echo yes`
6738ac_ext=c
6739ac_cpp='$CPP $CPPFLAGS'
6740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742ac_compiler_gnu=$ac_cv_c_compiler_gnu
6743
6744
6745
6746# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6747
6748# find the maximum length of command line arguments
6749{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6750echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6751if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6752  echo $ECHO_N "(cached) $ECHO_C" >&6
6753else
6754    i=0
6755  teststring="ABCD"
6756
6757  case $build_os in
6758  msdosdjgpp*)
6759    # On DJGPP, this test can blow up pretty badly due to problems in libc
6760    # (any single argument exceeding 2000 bytes causes a buffer overrun
6761    # during glob expansion).  Even if it were fixed, the result of this
6762    # check would be larger than it should be.
6763    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6764    ;;
6765
6766  gnu*)
6767    # Under GNU Hurd, this test is not required because there is
6768    # no limit to the length of command line arguments.
6769    # Libtool will interpret -1 as no limit whatsoever
6770    lt_cv_sys_max_cmd_len=-1;
6771    ;;
6772
6773  cygwin* | mingw*)
6774    # On Win9x/ME, this test blows up -- it succeeds, but takes
6775    # about 5 minutes as the teststring grows exponentially.
6776    # Worse, since 9x/ME are not pre-emptively multitasking,
6777    # you end up with a "frozen" computer, even though with patience
6778    # the test eventually succeeds (with a max line length of 256k).
6779    # Instead, let's just punt: use the minimum linelength reported by
6780    # all of the supported platforms: 8192 (on NT/2K/XP).
6781    lt_cv_sys_max_cmd_len=8192;
6782    ;;
6783
6784  amigaos*)
6785    # On AmigaOS with pdksh, this test takes hours, literally.
6786    # So we just punt and use a minimum line length of 8192.
6787    lt_cv_sys_max_cmd_len=8192;
6788    ;;
6789
6790  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6791    # This has been around since 386BSD, at least.  Likely further.
6792    if test -x /sbin/sysctl; then
6793      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6794    elif test -x /usr/sbin/sysctl; then
6795      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6796    else
6797      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6798    fi
6799    # And add a safety zone
6800    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6801    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6802    ;;
6803
6804  interix*)
6805    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6806    lt_cv_sys_max_cmd_len=196608
6807    ;;
6808
6809  osf*)
6810    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6811    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6812    # nice to cause kernel panics so lets avoid the loop below.
6813    # First set a reasonable default.
6814    lt_cv_sys_max_cmd_len=16384
6815    #
6816    if test -x /sbin/sysconfig; then
6817      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6818        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6819      esac
6820    fi
6821    ;;
6822  sco3.2v5*)
6823    lt_cv_sys_max_cmd_len=102400
6824    ;;
6825  sysv5* | sco5v6* | sysv4.2uw2*)
6826    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6827    if test -n "$kargmax"; then
6828      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6829    else
6830      lt_cv_sys_max_cmd_len=32768
6831    fi
6832    ;;
6833  *)
6834    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6835    if test -n "$lt_cv_sys_max_cmd_len"; then
6836      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6837      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6838    else
6839      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6840      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6841	       = "XX$teststring") >/dev/null 2>&1 &&
6842	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6843	      lt_cv_sys_max_cmd_len=$new_result &&
6844	      test $i != 17 # 1/2 MB should be enough
6845      do
6846        i=`expr $i + 1`
6847        teststring=$teststring$teststring
6848      done
6849      teststring=
6850      # Add a significant safety factor because C++ compilers can tack on massive
6851      # amounts of additional arguments before passing them to the linker.
6852      # It appears as though 1/2 is a usable value.
6853      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6854    fi
6855    ;;
6856  esac
6857
6858fi
6859
6860if test -n $lt_cv_sys_max_cmd_len ; then
6861  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6862echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6863else
6864  { echo "$as_me:$LINENO: result: none" >&5
6865echo "${ECHO_T}none" >&6; }
6866fi
6867
6868
6869
6870
6871
6872# Check for command to grab the raw symbol name followed by C symbol from nm.
6873{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6874echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6875if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6876  echo $ECHO_N "(cached) $ECHO_C" >&6
6877else
6878
6879# These are sane defaults that work on at least a few old systems.
6880# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6881
6882# Character class describing NM global symbol codes.
6883symcode='[BCDEGRST]'
6884
6885# Regexp to match symbols that can be accessed directly from C.
6886sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6887
6888# Transform an extracted symbol line into a proper C declaration
6889lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6890
6891# Transform an extracted symbol line into symbol name and symbol address
6892lt_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'"
6893
6894# Define system-specific variables.
6895case $host_os in
6896aix*)
6897  symcode='[BCDT]'
6898  ;;
6899cygwin* | mingw* | pw32*)
6900  symcode='[ABCDGISTW]'
6901  ;;
6902hpux*) # Its linker distinguishes data from code symbols
6903  if test "$host_cpu" = ia64; then
6904    symcode='[ABCDEGRST]'
6905  fi
6906  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6907  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'"
6908  ;;
6909linux* | k*bsd*-gnu)
6910  if test "$host_cpu" = ia64; then
6911    symcode='[ABCDGIRSTW]'
6912    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6913    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'"
6914  fi
6915  ;;
6916irix* | nonstopux*)
6917  symcode='[BCDEGRST]'
6918  ;;
6919osf*)
6920  symcode='[BCDEGQRST]'
6921  ;;
6922solaris*)
6923  symcode='[BDRT]'
6924  ;;
6925sco3.2v5*)
6926  symcode='[DT]'
6927  ;;
6928sysv4.2uw2*)
6929  symcode='[DT]'
6930  ;;
6931sysv5* | sco5v6* | unixware* | OpenUNIX*)
6932  symcode='[ABDT]'
6933  ;;
6934sysv4)
6935  symcode='[DFNSTU]'
6936  ;;
6937esac
6938
6939# Handle CRLF in mingw tool chain
6940opt_cr=
6941case $build_os in
6942mingw*)
6943  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6944  ;;
6945esac
6946
6947# If we're using GNU nm, then use its standard symbol codes.
6948case `$NM -V 2>&1` in
6949*GNU* | *'with BFD'*)
6950  symcode='[ABCDGIRSTW]' ;;
6951esac
6952
6953# Try without a prefix undercore, then with it.
6954for ac_symprfx in "" "_"; do
6955
6956  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6957  symxfrm="\\1 $ac_symprfx\\2 \\2"
6958
6959  # Write the raw and C identifiers.
6960  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6961
6962  # Check to see that the pipe works correctly.
6963  pipe_works=no
6964
6965  rm -f conftest*
6966  cat > conftest.$ac_ext <<EOF
6967#ifdef __cplusplus
6968extern "C" {
6969#endif
6970char nm_test_var;
6971void nm_test_func(){}
6972#ifdef __cplusplus
6973}
6974#endif
6975int main(){nm_test_var='a';nm_test_func();return(0);}
6976EOF
6977
6978  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979  (eval $ac_compile) 2>&5
6980  ac_status=$?
6981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982  (exit $ac_status); }; then
6983    # Now try to grab the symbols.
6984    nlist=conftest.nm
6985    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6986  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6987  ac_status=$?
6988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989  (exit $ac_status); } && test -s "$nlist"; then
6990      # Try sorting and uniquifying the output.
6991      if sort "$nlist" | uniq > "$nlist"T; then
6992	mv -f "$nlist"T "$nlist"
6993      else
6994	rm -f "$nlist"T
6995      fi
6996
6997      # Make sure that we snagged all the symbols we need.
6998      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6999	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7000	  cat <<EOF > conftest.$ac_ext
7001#ifdef __cplusplus
7002extern "C" {
7003#endif
7004
7005EOF
7006	  # Now generate the symbol file.
7007	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7008
7009	  cat <<EOF >> conftest.$ac_ext
7010#if defined (__STDC__) && __STDC__
7011# define lt_ptr_t void *
7012#else
7013# define lt_ptr_t char *
7014# define const
7015#endif
7016
7017/* The mapping between symbol names and symbols. */
7018const struct {
7019  const char *name;
7020  lt_ptr_t address;
7021}
7022lt_preloaded_symbols[] =
7023{
7024EOF
7025	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7026	  cat <<\EOF >> conftest.$ac_ext
7027  {0, (lt_ptr_t) 0}
7028};
7029
7030#ifdef __cplusplus
7031}
7032#endif
7033EOF
7034	  # Now try linking the two files.
7035	  mv conftest.$ac_objext conftstm.$ac_objext
7036	  lt_save_LIBS="$LIBS"
7037	  lt_save_CFLAGS="$CFLAGS"
7038	  LIBS="conftstm.$ac_objext"
7039	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7040	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041  (eval $ac_link) 2>&5
7042  ac_status=$?
7043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7045	    pipe_works=yes
7046	  fi
7047	  LIBS="$lt_save_LIBS"
7048	  CFLAGS="$lt_save_CFLAGS"
7049	else
7050	  echo "cannot find nm_test_func in $nlist" >&5
7051	fi
7052      else
7053	echo "cannot find nm_test_var in $nlist" >&5
7054      fi
7055    else
7056      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7057    fi
7058  else
7059    echo "$progname: failed program was:" >&5
7060    cat conftest.$ac_ext >&5
7061  fi
7062  rm -f conftest* conftst*
7063
7064  # Do not use the global_symbol_pipe unless it works.
7065  if test "$pipe_works" = yes; then
7066    break
7067  else
7068    lt_cv_sys_global_symbol_pipe=
7069  fi
7070done
7071
7072fi
7073
7074if test -z "$lt_cv_sys_global_symbol_pipe"; then
7075  lt_cv_sys_global_symbol_to_cdecl=
7076fi
7077if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7078  { echo "$as_me:$LINENO: result: failed" >&5
7079echo "${ECHO_T}failed" >&6; }
7080else
7081  { echo "$as_me:$LINENO: result: ok" >&5
7082echo "${ECHO_T}ok" >&6; }
7083fi
7084
7085{ echo "$as_me:$LINENO: checking for objdir" >&5
7086echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7087if test "${lt_cv_objdir+set}" = set; then
7088  echo $ECHO_N "(cached) $ECHO_C" >&6
7089else
7090  rm -f .libs 2>/dev/null
7091mkdir .libs 2>/dev/null
7092if test -d .libs; then
7093  lt_cv_objdir=.libs
7094else
7095  # MS-DOS does not allow filenames that begin with a dot.
7096  lt_cv_objdir=_libs
7097fi
7098rmdir .libs 2>/dev/null
7099fi
7100{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7101echo "${ECHO_T}$lt_cv_objdir" >&6; }
7102objdir=$lt_cv_objdir
7103
7104
7105
7106
7107
7108case $host_os in
7109aix3*)
7110  # AIX sometimes has problems with the GCC collect2 program.  For some
7111  # reason, if we set the COLLECT_NAMES environment variable, the problems
7112  # vanish in a puff of smoke.
7113  if test "X${COLLECT_NAMES+set}" != Xset; then
7114    COLLECT_NAMES=
7115    export COLLECT_NAMES
7116  fi
7117  ;;
7118esac
7119
7120# Sed substitution that helps us do robust quoting.  It backslashifies
7121# metacharacters that are still active within double-quoted strings.
7122Xsed='sed -e 1s/^X//'
7123sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7124
7125# Same as above, but do not quote variable references.
7126double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7127
7128# Sed substitution to delay expansion of an escaped shell variable in a
7129# double_quote_subst'ed string.
7130delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7131
7132# Sed substitution to avoid accidental globbing in evaled expressions
7133no_glob_subst='s/\*/\\\*/g'
7134
7135# Constants:
7136rm="rm -f"
7137
7138# Global variables:
7139default_ofile=libtool
7140can_build_shared=yes
7141
7142# All known linkers require a `.a' archive for static linking (except MSVC,
7143# which needs '.lib').
7144libext=a
7145ltmain="$ac_aux_dir/ltmain.sh"
7146ofile="$default_ofile"
7147with_gnu_ld="$lt_cv_prog_gnu_ld"
7148
7149if test -n "$ac_tool_prefix"; then
7150  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7151set dummy ${ac_tool_prefix}ar; ac_word=$2
7152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154if test "${ac_cv_prog_AR+set}" = set; then
7155  echo $ECHO_N "(cached) $ECHO_C" >&6
7156else
7157  if test -n "$AR"; then
7158  ac_cv_prog_AR="$AR" # Let the user override the test.
7159else
7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163  IFS=$as_save_IFS
7164  test -z "$as_dir" && as_dir=.
7165  for ac_exec_ext in '' $ac_executable_extensions; do
7166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167    ac_cv_prog_AR="${ac_tool_prefix}ar"
7168    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169    break 2
7170  fi
7171done
7172done
7173IFS=$as_save_IFS
7174
7175fi
7176fi
7177AR=$ac_cv_prog_AR
7178if test -n "$AR"; then
7179  { echo "$as_me:$LINENO: result: $AR" >&5
7180echo "${ECHO_T}$AR" >&6; }
7181else
7182  { echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6; }
7184fi
7185
7186
7187fi
7188if test -z "$ac_cv_prog_AR"; then
7189  ac_ct_AR=$AR
7190  # Extract the first word of "ar", so it can be a program name with args.
7191set dummy ar; ac_word=$2
7192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7195  echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197  if test -n "$ac_ct_AR"; then
7198  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7199else
7200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203  IFS=$as_save_IFS
7204  test -z "$as_dir" && as_dir=.
7205  for ac_exec_ext in '' $ac_executable_extensions; do
7206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207    ac_cv_prog_ac_ct_AR="ar"
7208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209    break 2
7210  fi
7211done
7212done
7213IFS=$as_save_IFS
7214
7215fi
7216fi
7217ac_ct_AR=$ac_cv_prog_ac_ct_AR
7218if test -n "$ac_ct_AR"; then
7219  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7220echo "${ECHO_T}$ac_ct_AR" >&6; }
7221else
7222  { echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6; }
7224fi
7225
7226  if test "x$ac_ct_AR" = x; then
7227    AR="false"
7228  else
7229    case $cross_compiling:$ac_tool_warned in
7230yes:)
7231{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7232whose name does not start with the host triplet.  If you think this
7233configuration is useful to you, please write to autoconf@gnu.org." >&5
7234echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7235whose name does not start with the host triplet.  If you think this
7236configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7237ac_tool_warned=yes ;;
7238esac
7239    AR=$ac_ct_AR
7240  fi
7241else
7242  AR="$ac_cv_prog_AR"
7243fi
7244
7245if test -n "$ac_tool_prefix"; then
7246  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7247set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7248{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250if test "${ac_cv_prog_RANLIB+set}" = set; then
7251  echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253  if test -n "$RANLIB"; then
7254  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7255else
7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259  IFS=$as_save_IFS
7260  test -z "$as_dir" && as_dir=.
7261  for ac_exec_ext in '' $ac_executable_extensions; do
7262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7264    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265    break 2
7266  fi
7267done
7268done
7269IFS=$as_save_IFS
7270
7271fi
7272fi
7273RANLIB=$ac_cv_prog_RANLIB
7274if test -n "$RANLIB"; then
7275  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7276echo "${ECHO_T}$RANLIB" >&6; }
7277else
7278  { echo "$as_me:$LINENO: result: no" >&5
7279echo "${ECHO_T}no" >&6; }
7280fi
7281
7282
7283fi
7284if test -z "$ac_cv_prog_RANLIB"; then
7285  ac_ct_RANLIB=$RANLIB
7286  # Extract the first word of "ranlib", so it can be a program name with args.
7287set dummy ranlib; ac_word=$2
7288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7291  echo $ECHO_N "(cached) $ECHO_C" >&6
7292else
7293  if test -n "$ac_ct_RANLIB"; then
7294  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7295else
7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299  IFS=$as_save_IFS
7300  test -z "$as_dir" && as_dir=.
7301  for ac_exec_ext in '' $ac_executable_extensions; do
7302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303    ac_cv_prog_ac_ct_RANLIB="ranlib"
7304    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305    break 2
7306  fi
7307done
7308done
7309IFS=$as_save_IFS
7310
7311fi
7312fi
7313ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7314if test -n "$ac_ct_RANLIB"; then
7315  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7316echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7317else
7318  { echo "$as_me:$LINENO: result: no" >&5
7319echo "${ECHO_T}no" >&6; }
7320fi
7321
7322  if test "x$ac_ct_RANLIB" = x; then
7323    RANLIB=":"
7324  else
7325    case $cross_compiling:$ac_tool_warned in
7326yes:)
7327{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7328whose name does not start with the host triplet.  If you think this
7329configuration is useful to you, please write to autoconf@gnu.org." >&5
7330echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7331whose name does not start with the host triplet.  If you think this
7332configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7333ac_tool_warned=yes ;;
7334esac
7335    RANLIB=$ac_ct_RANLIB
7336  fi
7337else
7338  RANLIB="$ac_cv_prog_RANLIB"
7339fi
7340
7341if test -n "$ac_tool_prefix"; then
7342  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7343set dummy ${ac_tool_prefix}strip; ac_word=$2
7344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346if test "${ac_cv_prog_STRIP+set}" = set; then
7347  echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349  if test -n "$STRIP"; then
7350  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7351else
7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355  IFS=$as_save_IFS
7356  test -z "$as_dir" && as_dir=.
7357  for ac_exec_ext in '' $ac_executable_extensions; do
7358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361    break 2
7362  fi
7363done
7364done
7365IFS=$as_save_IFS
7366
7367fi
7368fi
7369STRIP=$ac_cv_prog_STRIP
7370if test -n "$STRIP"; then
7371  { echo "$as_me:$LINENO: result: $STRIP" >&5
7372echo "${ECHO_T}$STRIP" >&6; }
7373else
7374  { echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6; }
7376fi
7377
7378
7379fi
7380if test -z "$ac_cv_prog_STRIP"; then
7381  ac_ct_STRIP=$STRIP
7382  # Extract the first word of "strip", so it can be a program name with args.
7383set dummy strip; ac_word=$2
7384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7387  echo $ECHO_N "(cached) $ECHO_C" >&6
7388else
7389  if test -n "$ac_ct_STRIP"; then
7390  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7391else
7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395  IFS=$as_save_IFS
7396  test -z "$as_dir" && as_dir=.
7397  for ac_exec_ext in '' $ac_executable_extensions; do
7398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399    ac_cv_prog_ac_ct_STRIP="strip"
7400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401    break 2
7402  fi
7403done
7404done
7405IFS=$as_save_IFS
7406
7407fi
7408fi
7409ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7410if test -n "$ac_ct_STRIP"; then
7411  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7412echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7413else
7414  { echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6; }
7416fi
7417
7418  if test "x$ac_ct_STRIP" = x; then
7419    STRIP=":"
7420  else
7421    case $cross_compiling:$ac_tool_warned in
7422yes:)
7423{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7424whose name does not start with the host triplet.  If you think this
7425configuration is useful to you, please write to autoconf@gnu.org." >&5
7426echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7427whose name does not start with the host triplet.  If you think this
7428configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7429ac_tool_warned=yes ;;
7430esac
7431    STRIP=$ac_ct_STRIP
7432  fi
7433else
7434  STRIP="$ac_cv_prog_STRIP"
7435fi
7436
7437
7438old_CC="$CC"
7439old_CFLAGS="$CFLAGS"
7440
7441# Set sane defaults for various variables
7442test -z "$AR" && AR=ar
7443test -z "$AR_FLAGS" && AR_FLAGS=cru
7444test -z "$AS" && AS=as
7445test -z "$CC" && CC=cc
7446test -z "$LTCC" && LTCC=$CC
7447test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7448test -z "$DLLTOOL" && DLLTOOL=dlltool
7449test -z "$LD" && LD=ld
7450test -z "$LN_S" && LN_S="ln -s"
7451test -z "$MAGIC_CMD" && MAGIC_CMD=file
7452test -z "$NM" && NM=nm
7453test -z "$SED" && SED=sed
7454test -z "$OBJDUMP" && OBJDUMP=objdump
7455test -z "$RANLIB" && RANLIB=:
7456test -z "$STRIP" && STRIP=:
7457test -z "$ac_objext" && ac_objext=o
7458
7459# Determine commands to create old-style static archives.
7460old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7461old_postinstall_cmds='chmod 644 $oldlib'
7462old_postuninstall_cmds=
7463
7464if test -n "$RANLIB"; then
7465  case $host_os in
7466  openbsd*)
7467    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7468    ;;
7469  *)
7470    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7471    ;;
7472  esac
7473  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7474fi
7475
7476for cc_temp in $compiler""; do
7477  case $cc_temp in
7478    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7479    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7480    \-*) ;;
7481    *) break;;
7482  esac
7483done
7484cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7485
7486
7487# Only perform the check for file, if the check method requires it
7488case $deplibs_check_method in
7489file_magic*)
7490  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7491    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7492echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7493if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7494  echo $ECHO_N "(cached) $ECHO_C" >&6
7495else
7496  case $MAGIC_CMD in
7497[\\/*] |  ?:[\\/]*)
7498  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7499  ;;
7500*)
7501  lt_save_MAGIC_CMD="$MAGIC_CMD"
7502  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7503  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7504  for ac_dir in $ac_dummy; do
7505    IFS="$lt_save_ifs"
7506    test -z "$ac_dir" && ac_dir=.
7507    if test -f $ac_dir/${ac_tool_prefix}file; then
7508      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7509      if test -n "$file_magic_test_file"; then
7510	case $deplibs_check_method in
7511	"file_magic "*)
7512	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7513	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7514	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7515	    $EGREP "$file_magic_regex" > /dev/null; then
7516	    :
7517	  else
7518	    cat <<EOF 1>&2
7519
7520*** Warning: the command libtool uses to detect shared libraries,
7521*** $file_magic_cmd, produces output that libtool cannot recognize.
7522*** The result is that libtool may fail to recognize shared libraries
7523*** as such.  This will affect the creation of libtool libraries that
7524*** depend on shared libraries, but programs linked with such libtool
7525*** libraries will work regardless of this problem.  Nevertheless, you
7526*** may want to report the problem to your system manager and/or to
7527*** bug-libtool@gnu.org
7528
7529EOF
7530	  fi ;;
7531	esac
7532      fi
7533      break
7534    fi
7535  done
7536  IFS="$lt_save_ifs"
7537  MAGIC_CMD="$lt_save_MAGIC_CMD"
7538  ;;
7539esac
7540fi
7541
7542MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7543if test -n "$MAGIC_CMD"; then
7544  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7545echo "${ECHO_T}$MAGIC_CMD" >&6; }
7546else
7547  { echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6; }
7549fi
7550
7551if test -z "$lt_cv_path_MAGIC_CMD"; then
7552  if test -n "$ac_tool_prefix"; then
7553    { echo "$as_me:$LINENO: checking for file" >&5
7554echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7555if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7556  echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558  case $MAGIC_CMD in
7559[\\/*] |  ?:[\\/]*)
7560  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7561  ;;
7562*)
7563  lt_save_MAGIC_CMD="$MAGIC_CMD"
7564  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7565  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7566  for ac_dir in $ac_dummy; do
7567    IFS="$lt_save_ifs"
7568    test -z "$ac_dir" && ac_dir=.
7569    if test -f $ac_dir/file; then
7570      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7571      if test -n "$file_magic_test_file"; then
7572	case $deplibs_check_method in
7573	"file_magic "*)
7574	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7575	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7576	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7577	    $EGREP "$file_magic_regex" > /dev/null; then
7578	    :
7579	  else
7580	    cat <<EOF 1>&2
7581
7582*** Warning: the command libtool uses to detect shared libraries,
7583*** $file_magic_cmd, produces output that libtool cannot recognize.
7584*** The result is that libtool may fail to recognize shared libraries
7585*** as such.  This will affect the creation of libtool libraries that
7586*** depend on shared libraries, but programs linked with such libtool
7587*** libraries will work regardless of this problem.  Nevertheless, you
7588*** may want to report the problem to your system manager and/or to
7589*** bug-libtool@gnu.org
7590
7591EOF
7592	  fi ;;
7593	esac
7594      fi
7595      break
7596    fi
7597  done
7598  IFS="$lt_save_ifs"
7599  MAGIC_CMD="$lt_save_MAGIC_CMD"
7600  ;;
7601esac
7602fi
7603
7604MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7605if test -n "$MAGIC_CMD"; then
7606  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7607echo "${ECHO_T}$MAGIC_CMD" >&6; }
7608else
7609  { echo "$as_me:$LINENO: result: no" >&5
7610echo "${ECHO_T}no" >&6; }
7611fi
7612
7613  else
7614    MAGIC_CMD=:
7615  fi
7616fi
7617
7618  fi
7619  ;;
7620esac
7621
7622enable_dlopen=no
7623enable_win32_dll=no
7624
7625# Check whether --enable-libtool-lock was given.
7626if test "${enable_libtool_lock+set}" = set; then
7627  enableval=$enable_libtool_lock;
7628fi
7629
7630test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7631
7632
7633# Check whether --with-pic was given.
7634if test "${with_pic+set}" = set; then
7635  withval=$with_pic; pic_mode="$withval"
7636else
7637  pic_mode=default
7638fi
7639
7640test -z "$pic_mode" && pic_mode=default
7641
7642# Use C for the default configuration in the libtool script
7643tagname=
7644lt_save_CC="$CC"
7645ac_ext=c
7646ac_cpp='$CPP $CPPFLAGS'
7647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650
7651
7652# Source file extension for C test sources.
7653ac_ext=c
7654
7655# Object file extension for compiled C test sources.
7656objext=o
7657objext=$objext
7658
7659# Code to be used in simple compile tests
7660lt_simple_compile_test_code="int some_variable = 0;"
7661
7662# Code to be used in simple link tests
7663lt_simple_link_test_code='int main(){return(0);}'
7664
7665
7666# If no C compiler was specified, use CC.
7667LTCC=${LTCC-"$CC"}
7668
7669# If no C compiler flags were specified, use CFLAGS.
7670LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7671
7672# Allow CC to be a program name with arguments.
7673compiler=$CC
7674
7675
7676# save warnings/boilerplate of simple test code
7677ac_outfile=conftest.$ac_objext
7678echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7679eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7680_lt_compiler_boilerplate=`cat conftest.err`
7681$rm conftest*
7682
7683ac_outfile=conftest.$ac_objext
7684echo "$lt_simple_link_test_code" >conftest.$ac_ext
7685eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7686_lt_linker_boilerplate=`cat conftest.err`
7687$rm conftest*
7688
7689
7690
7691lt_prog_compiler_no_builtin_flag=
7692
7693if test "$GCC" = yes; then
7694  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7695
7696
7697{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7698echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7699if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7700  echo $ECHO_N "(cached) $ECHO_C" >&6
7701else
7702  lt_cv_prog_compiler_rtti_exceptions=no
7703  ac_outfile=conftest.$ac_objext
7704   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7705   lt_compiler_flag="-fno-rtti -fno-exceptions"
7706   # Insert the option either (1) after the last *FLAGS variable, or
7707   # (2) before a word containing "conftest.", or (3) at the end.
7708   # Note that $ac_compile itself does not contain backslashes and begins
7709   # with a dollar sign (not a hyphen), so the echo should work correctly.
7710   # The option is referenced via a variable to avoid confusing sed.
7711   lt_compile=`echo "$ac_compile" | $SED \
7712   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7713   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7714   -e 's:$: $lt_compiler_flag:'`
7715   (eval echo "\"\$as_me:7719: $lt_compile\"" >&5)
7716   (eval "$lt_compile" 2>conftest.err)
7717   ac_status=$?
7718   cat conftest.err >&5
7719   echo "$as_me:7723: \$? = $ac_status" >&5
7720   if (exit $ac_status) && test -s "$ac_outfile"; then
7721     # The compiler can only warn and ignore the option if not recognized
7722     # So say no if there are warnings other than the usual output.
7723     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7724     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7725     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7726       lt_cv_prog_compiler_rtti_exceptions=yes
7727     fi
7728   fi
7729   $rm conftest*
7730
7731fi
7732{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7733echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7734
7735if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7736    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7737else
7738    :
7739fi
7740
7741fi
7742
7743lt_prog_compiler_wl=
7744lt_prog_compiler_pic=
7745lt_prog_compiler_static=
7746
7747{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7748echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7749
7750  if test "$GCC" = yes; then
7751    lt_prog_compiler_wl='-Wl,'
7752    lt_prog_compiler_static='-static'
7753
7754    case $host_os in
7755      aix*)
7756      # All AIX code is PIC.
7757      if test "$host_cpu" = ia64; then
7758	# AIX 5 now supports IA64 processor
7759	lt_prog_compiler_static='-Bstatic'
7760      fi
7761      ;;
7762
7763    amigaos*)
7764      # FIXME: we need at least 68020 code to build shared libraries, but
7765      # adding the `-m68020' flag to GCC prevents building anything better,
7766      # like `-m68040'.
7767      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7768      ;;
7769
7770    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7771      # PIC is the default for these OSes.
7772      ;;
7773
7774    mingw* | cygwin* | pw32* | os2*)
7775      # This hack is so that the source file can tell whether it is being
7776      # built for inclusion in a dll (and should export symbols for example).
7777      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7778      # (--disable-auto-import) libraries
7779      lt_prog_compiler_pic='-DDLL_EXPORT'
7780      ;;
7781
7782    darwin* | rhapsody*)
7783      # PIC is the default on this platform
7784      # Common symbols not allowed in MH_DYLIB files
7785      lt_prog_compiler_pic='-fno-common'
7786      ;;
7787
7788    interix[3-9]*)
7789      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7790      # Instead, we relocate shared libraries at runtime.
7791      ;;
7792
7793    msdosdjgpp*)
7794      # Just because we use GCC doesn't mean we suddenly get shared libraries
7795      # on systems that don't support them.
7796      lt_prog_compiler_can_build_shared=no
7797      enable_shared=no
7798      ;;
7799
7800    sysv4*MP*)
7801      if test -d /usr/nec; then
7802	lt_prog_compiler_pic=-Kconform_pic
7803      fi
7804      ;;
7805
7806    hpux*)
7807      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7808      # not for PA HP-UX.
7809      case $host_cpu in
7810      hppa*64*|ia64*)
7811	# +Z the default
7812	;;
7813      *)
7814	lt_prog_compiler_pic='-fPIC'
7815	;;
7816      esac
7817      ;;
7818
7819    *)
7820      lt_prog_compiler_pic='-fPIC'
7821      ;;
7822    esac
7823  else
7824    # PORTME Check for flag to pass linker flags through the system compiler.
7825    case $host_os in
7826    aix*)
7827      lt_prog_compiler_wl='-Wl,'
7828      if test "$host_cpu" = ia64; then
7829	# AIX 5 now supports IA64 processor
7830	lt_prog_compiler_static='-Bstatic'
7831      else
7832	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7833      fi
7834      ;;
7835      darwin*)
7836        # PIC is the default on this platform
7837        # Common symbols not allowed in MH_DYLIB files
7838       case $cc_basename in
7839         xlc*)
7840         lt_prog_compiler_pic='-qnocommon'
7841         lt_prog_compiler_wl='-Wl,'
7842         ;;
7843       esac
7844       ;;
7845
7846    mingw* | cygwin* | pw32* | os2*)
7847      # This hack is so that the source file can tell whether it is being
7848      # built for inclusion in a dll (and should export symbols for example).
7849      lt_prog_compiler_pic='-DDLL_EXPORT'
7850      ;;
7851
7852    hpux9* | hpux10* | hpux11*)
7853      lt_prog_compiler_wl='-Wl,'
7854      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7855      # not for PA HP-UX.
7856      case $host_cpu in
7857      hppa*64*|ia64*)
7858	# +Z the default
7859	;;
7860      *)
7861	lt_prog_compiler_pic='+Z'
7862	;;
7863      esac
7864      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7865      lt_prog_compiler_static='${wl}-a ${wl}archive'
7866      ;;
7867
7868    irix5* | irix6* | nonstopux*)
7869      lt_prog_compiler_wl='-Wl,'
7870      # PIC (with -KPIC) is the default.
7871      lt_prog_compiler_static='-non_shared'
7872      ;;
7873
7874    newsos6)
7875      lt_prog_compiler_pic='-KPIC'
7876      lt_prog_compiler_static='-Bstatic'
7877      ;;
7878
7879    linux* | k*bsd*-gnu)
7880      case $cc_basename in
7881      icc* | ecc*)
7882	lt_prog_compiler_wl='-Wl,'
7883	lt_prog_compiler_pic='-KPIC'
7884	lt_prog_compiler_static='-static'
7885        ;;
7886      pgcc* | pgf77* | pgf90* | pgf95*)
7887        # Portland Group compilers (*not* the Pentium gcc compiler,
7888	# which looks to be a dead project)
7889	lt_prog_compiler_wl='-Wl,'
7890	lt_prog_compiler_pic='-fpic'
7891	lt_prog_compiler_static='-Bstatic'
7892        ;;
7893      ccc*)
7894        lt_prog_compiler_wl='-Wl,'
7895        # All Alpha code is PIC.
7896        lt_prog_compiler_static='-non_shared'
7897        ;;
7898      *)
7899        case `$CC -V 2>&1 | sed 5q` in
7900	*Sun\ C*)
7901	  # Sun C 5.9
7902	  lt_prog_compiler_pic='-KPIC'
7903	  lt_prog_compiler_static='-Bstatic'
7904	  lt_prog_compiler_wl='-Wl,'
7905	  ;;
7906	*Sun\ F*)
7907	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7908	  lt_prog_compiler_pic='-KPIC'
7909	  lt_prog_compiler_static='-Bstatic'
7910	  lt_prog_compiler_wl=''
7911	  ;;
7912	esac
7913	;;
7914      esac
7915      ;;
7916
7917    osf3* | osf4* | osf5*)
7918      lt_prog_compiler_wl='-Wl,'
7919      # All OSF/1 code is PIC.
7920      lt_prog_compiler_static='-non_shared'
7921      ;;
7922
7923    rdos*)
7924      lt_prog_compiler_static='-non_shared'
7925      ;;
7926
7927    solaris*)
7928      lt_prog_compiler_pic='-KPIC'
7929      lt_prog_compiler_static='-Bstatic'
7930      case $cc_basename in
7931      f77* | f90* | f95*)
7932	lt_prog_compiler_wl='-Qoption ld ';;
7933      *)
7934	lt_prog_compiler_wl='-Wl,';;
7935      esac
7936      ;;
7937
7938    sunos4*)
7939      lt_prog_compiler_wl='-Qoption ld '
7940      lt_prog_compiler_pic='-PIC'
7941      lt_prog_compiler_static='-Bstatic'
7942      ;;
7943
7944    sysv4 | sysv4.2uw2* | sysv4.3*)
7945      lt_prog_compiler_wl='-Wl,'
7946      lt_prog_compiler_pic='-KPIC'
7947      lt_prog_compiler_static='-Bstatic'
7948      ;;
7949
7950    sysv4*MP*)
7951      if test -d /usr/nec ;then
7952	lt_prog_compiler_pic='-Kconform_pic'
7953	lt_prog_compiler_static='-Bstatic'
7954      fi
7955      ;;
7956
7957    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7958      lt_prog_compiler_wl='-Wl,'
7959      lt_prog_compiler_pic='-KPIC'
7960      lt_prog_compiler_static='-Bstatic'
7961      ;;
7962
7963    unicos*)
7964      lt_prog_compiler_wl='-Wl,'
7965      lt_prog_compiler_can_build_shared=no
7966      ;;
7967
7968    uts4*)
7969      lt_prog_compiler_pic='-pic'
7970      lt_prog_compiler_static='-Bstatic'
7971      ;;
7972
7973    *)
7974      lt_prog_compiler_can_build_shared=no
7975      ;;
7976    esac
7977  fi
7978
7979{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7980echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7981
7982#
7983# Check to make sure the PIC flag actually works.
7984#
7985if test -n "$lt_prog_compiler_pic"; then
7986
7987{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7988echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7989if test "${lt_prog_compiler_pic_works+set}" = set; then
7990  echo $ECHO_N "(cached) $ECHO_C" >&6
7991else
7992  lt_prog_compiler_pic_works=no
7993  ac_outfile=conftest.$ac_objext
7994   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7995   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7996   # Insert the option either (1) after the last *FLAGS variable, or
7997   # (2) before a word containing "conftest.", or (3) at the end.
7998   # Note that $ac_compile itself does not contain backslashes and begins
7999   # with a dollar sign (not a hyphen), so the echo should work correctly.
8000   # The option is referenced via a variable to avoid confusing sed.
8001   lt_compile=`echo "$ac_compile" | $SED \
8002   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8003   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8004   -e 's:$: $lt_compiler_flag:'`
8005   (eval echo "\"\$as_me:8009: $lt_compile\"" >&5)
8006   (eval "$lt_compile" 2>conftest.err)
8007   ac_status=$?
8008   cat conftest.err >&5
8009   echo "$as_me:8013: \$? = $ac_status" >&5
8010   if (exit $ac_status) && test -s "$ac_outfile"; then
8011     # The compiler can only warn and ignore the option if not recognized
8012     # So say no if there are warnings other than the usual output.
8013     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8014     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8015     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8016       lt_prog_compiler_pic_works=yes
8017     fi
8018   fi
8019   $rm conftest*
8020
8021fi
8022{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8023echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8024
8025if test x"$lt_prog_compiler_pic_works" = xyes; then
8026    case $lt_prog_compiler_pic in
8027     "" | " "*) ;;
8028     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8029     esac
8030else
8031    lt_prog_compiler_pic=
8032     lt_prog_compiler_can_build_shared=no
8033fi
8034
8035fi
8036case $host_os in
8037  # For platforms which do not support PIC, -DPIC is meaningless:
8038  *djgpp*)
8039    lt_prog_compiler_pic=
8040    ;;
8041  *)
8042    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8043    ;;
8044esac
8045
8046#
8047# Check to make sure the static flag actually works.
8048#
8049wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8050{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8051echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8052if test "${lt_prog_compiler_static_works+set}" = set; then
8053  echo $ECHO_N "(cached) $ECHO_C" >&6
8054else
8055  lt_prog_compiler_static_works=no
8056   save_LDFLAGS="$LDFLAGS"
8057   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8058   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8059   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8060     # The linker can only warn and ignore the option if not recognized
8061     # So say no if there are warnings
8062     if test -s conftest.err; then
8063       # Append any errors to the config.log.
8064       cat conftest.err 1>&5
8065       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8066       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8067       if diff conftest.exp conftest.er2 >/dev/null; then
8068         lt_prog_compiler_static_works=yes
8069       fi
8070     else
8071       lt_prog_compiler_static_works=yes
8072     fi
8073   fi
8074   $rm conftest*
8075   LDFLAGS="$save_LDFLAGS"
8076
8077fi
8078{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8079echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8080
8081if test x"$lt_prog_compiler_static_works" = xyes; then
8082    :
8083else
8084    lt_prog_compiler_static=
8085fi
8086
8087
8088{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8089echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8090if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8091  echo $ECHO_N "(cached) $ECHO_C" >&6
8092else
8093  lt_cv_prog_compiler_c_o=no
8094   $rm -r conftest 2>/dev/null
8095   mkdir conftest
8096   cd conftest
8097   mkdir out
8098   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8099
8100   lt_compiler_flag="-o out/conftest2.$ac_objext"
8101   # Insert the option either (1) after the last *FLAGS variable, or
8102   # (2) before a word containing "conftest.", or (3) at the end.
8103   # Note that $ac_compile itself does not contain backslashes and begins
8104   # with a dollar sign (not a hyphen), so the echo should work correctly.
8105   lt_compile=`echo "$ac_compile" | $SED \
8106   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8107   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8108   -e 's:$: $lt_compiler_flag:'`
8109   (eval echo "\"\$as_me:8113: $lt_compile\"" >&5)
8110   (eval "$lt_compile" 2>out/conftest.err)
8111   ac_status=$?
8112   cat out/conftest.err >&5
8113   echo "$as_me:8117: \$? = $ac_status" >&5
8114   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8115   then
8116     # The compiler can only warn and ignore the option if not recognized
8117     # So say no if there are warnings
8118     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8119     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8120     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8121       lt_cv_prog_compiler_c_o=yes
8122     fi
8123   fi
8124   chmod u+w . 2>&5
8125   $rm conftest*
8126   # SGI C++ compiler will create directory out/ii_files/ for
8127   # template instantiation
8128   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8129   $rm out/* && rmdir out
8130   cd ..
8131   rmdir conftest
8132   $rm conftest*
8133
8134fi
8135{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8136echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8137
8138
8139hard_links="nottested"
8140if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8141  # do not overwrite the value of need_locks provided by the user
8142  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8143echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8144  hard_links=yes
8145  $rm conftest*
8146  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8147  touch conftest.a
8148  ln conftest.a conftest.b 2>&5 || hard_links=no
8149  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8150  { echo "$as_me:$LINENO: result: $hard_links" >&5
8151echo "${ECHO_T}$hard_links" >&6; }
8152  if test "$hard_links" = no; then
8153    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8154echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8155    need_locks=warn
8156  fi
8157else
8158  need_locks=no
8159fi
8160
8161{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8162echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8163
8164  runpath_var=
8165  allow_undefined_flag=
8166  enable_shared_with_static_runtimes=no
8167  archive_cmds=
8168  archive_expsym_cmds=
8169  old_archive_From_new_cmds=
8170  old_archive_from_expsyms_cmds=
8171  export_dynamic_flag_spec=
8172  whole_archive_flag_spec=
8173  thread_safe_flag_spec=
8174  hardcode_libdir_flag_spec=
8175  hardcode_libdir_flag_spec_ld=
8176  hardcode_libdir_separator=
8177  hardcode_direct=no
8178  hardcode_minus_L=no
8179  hardcode_shlibpath_var=unsupported
8180  link_all_deplibs=unknown
8181  hardcode_automatic=no
8182  module_cmds=
8183  module_expsym_cmds=
8184  always_export_symbols=no
8185  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8186  # include_expsyms should be a list of space-separated symbols to be *always*
8187  # included in the symbol list
8188  include_expsyms=
8189  # exclude_expsyms can be an extended regexp of symbols to exclude
8190  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8191  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8192  # as well as any symbol that contains `d'.
8193  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8194  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8195  # platforms (ab)use it in PIC code, but their linkers get confused if
8196  # the symbol is explicitly referenced.  Since portable code cannot
8197  # rely on this symbol name, it's probably fine to never include it in
8198  # preloaded symbol tables.
8199  extract_expsyms_cmds=
8200  # Just being paranoid about ensuring that cc_basename is set.
8201  for cc_temp in $compiler""; do
8202  case $cc_temp in
8203    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8204    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8205    \-*) ;;
8206    *) break;;
8207  esac
8208done
8209cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8210
8211  case $host_os in
8212  cygwin* | mingw* | pw32*)
8213    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8214    # When not using gcc, we currently assume that we are using
8215    # Microsoft Visual C++.
8216    if test "$GCC" != yes; then
8217      with_gnu_ld=no
8218    fi
8219    ;;
8220  interix*)
8221    # we just hope/assume this is gcc and not c89 (= MSVC++)
8222    with_gnu_ld=yes
8223    ;;
8224  openbsd*)
8225    with_gnu_ld=no
8226    ;;
8227  esac
8228
8229  ld_shlibs=yes
8230  if test "$with_gnu_ld" = yes; then
8231    # If archive_cmds runs LD, not CC, wlarc should be empty
8232    wlarc='${wl}'
8233
8234    # Set some defaults for GNU ld with shared library support. These
8235    # are reset later if shared libraries are not supported. Putting them
8236    # here allows them to be overridden if necessary.
8237    runpath_var=LD_RUN_PATH
8238    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8239    export_dynamic_flag_spec='${wl}--export-dynamic'
8240    # ancient GNU ld didn't support --whole-archive et. al.
8241    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8242	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8243      else
8244  	whole_archive_flag_spec=
8245    fi
8246    supports_anon_versioning=no
8247    case `$LD -v 2>/dev/null` in
8248      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8249      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8250      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8251      *\ 2.11.*) ;; # other 2.11 versions
8252      *) supports_anon_versioning=yes ;;
8253    esac
8254
8255    # See if GNU ld supports shared libraries.
8256    case $host_os in
8257    aix3* | aix4* | aix5*)
8258      # On AIX/PPC, the GNU linker is very broken
8259      if test "$host_cpu" != ia64; then
8260	ld_shlibs=no
8261	cat <<EOF 1>&2
8262
8263*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8264*** to be unable to reliably create shared libraries on AIX.
8265*** Therefore, libtool is disabling shared libraries support.  If you
8266*** really care for shared libraries, you may want to modify your PATH
8267*** so that a non-GNU linker is found, and then restart.
8268
8269EOF
8270      fi
8271      ;;
8272
8273    amigaos*)
8274      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)'
8275      hardcode_libdir_flag_spec='-L$libdir'
8276      hardcode_minus_L=yes
8277
8278      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8279      # that the semantics of dynamic libraries on AmigaOS, at least up
8280      # to version 4, is to share data among multiple programs linked
8281      # with the same dynamic library.  Since this doesn't match the
8282      # behavior of shared libraries on other platforms, we can't use
8283      # them.
8284      ld_shlibs=no
8285      ;;
8286
8287    beos*)
8288      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8289	allow_undefined_flag=unsupported
8290	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8291	# support --undefined.  This deserves some investigation.  FIXME
8292	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8293      else
8294	ld_shlibs=no
8295      fi
8296      ;;
8297
8298    cygwin* | mingw* | pw32*)
8299      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8300      # as there is no search path for DLLs.
8301      hardcode_libdir_flag_spec='-L$libdir'
8302      allow_undefined_flag=unsupported
8303      always_export_symbols=no
8304      enable_shared_with_static_runtimes=yes
8305      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8306
8307      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8308        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8309	# If the export-symbols file already is a .def file (1st line
8310	# is EXPORTS), use it as is; otherwise, prepend...
8311	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8312	  cp $export_symbols $output_objdir/$soname.def;
8313	else
8314	  echo EXPORTS > $output_objdir/$soname.def;
8315	  cat $export_symbols >> $output_objdir/$soname.def;
8316	fi~
8317	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8318      else
8319	ld_shlibs=no
8320      fi
8321      ;;
8322
8323    interix[3-9]*)
8324      hardcode_direct=no
8325      hardcode_shlibpath_var=no
8326      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8327      export_dynamic_flag_spec='${wl}-E'
8328      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8329      # Instead, shared libraries are loaded at an image base (0x10000000 by
8330      # default) and relocated if they conflict, which is a slow very memory
8331      # consuming and fragmenting process.  To avoid this, we pick a random,
8332      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8333      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8334      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8335      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'
8336      ;;
8337
8338    gnu* | linux* | k*bsd*-gnu)
8339      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8340	tmp_addflag=
8341	case $cc_basename,$host_cpu in
8342	pgcc*)				# Portland Group C compiler
8343	  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'
8344	  tmp_addflag=' $pic_flag'
8345	  ;;
8346	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8347	  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'
8348	  tmp_addflag=' $pic_flag -Mnomain' ;;
8349	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8350	  tmp_addflag=' -i_dynamic' ;;
8351	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8352	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8353	ifc* | ifort*)			# Intel Fortran compiler
8354	  tmp_addflag=' -nofor_main' ;;
8355	esac
8356	case `$CC -V 2>&1 | sed 5q` in
8357	*Sun\ C*)			# Sun C 5.9
8358	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8359	  tmp_sharedflag='-G' ;;
8360	*Sun\ F*)			# Sun Fortran 8.3
8361	  tmp_sharedflag='-G' ;;
8362	*)
8363	  tmp_sharedflag='-shared' ;;
8364	esac
8365	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8366
8367	if test $supports_anon_versioning = yes; then
8368	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8369  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8370  $echo "local: *; };" >> $output_objdir/$libname.ver~
8371	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8372	fi
8373      else
8374	ld_shlibs=no
8375      fi
8376      ;;
8377
8378    netbsd*)
8379      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8380	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8381	wlarc=
8382      else
8383	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8384	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8385      fi
8386      ;;
8387
8388    solaris*)
8389      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8390	ld_shlibs=no
8391	cat <<EOF 1>&2
8392
8393*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8394*** create shared libraries on Solaris systems.  Therefore, libtool
8395*** is disabling shared libraries support.  We urge you to upgrade GNU
8396*** binutils to release 2.9.1 or newer.  Another option is to modify
8397*** your PATH or compiler configuration so that the native linker is
8398*** used, and then restart.
8399
8400EOF
8401      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8402	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8403	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8404      else
8405	ld_shlibs=no
8406      fi
8407      ;;
8408
8409    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8410      case `$LD -v 2>&1` in
8411        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8412	ld_shlibs=no
8413	cat <<_LT_EOF 1>&2
8414
8415*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8416*** reliably create shared libraries on SCO systems.  Therefore, libtool
8417*** is disabling shared libraries support.  We urge you to upgrade GNU
8418*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8419*** your PATH or compiler configuration so that the native linker is
8420*** used, and then restart.
8421
8422_LT_EOF
8423	;;
8424	*)
8425	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8426	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8427	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8428	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8429	  else
8430	    ld_shlibs=no
8431	  fi
8432	;;
8433      esac
8434      ;;
8435
8436    sunos4*)
8437      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8438      wlarc=
8439      hardcode_direct=yes
8440      hardcode_shlibpath_var=no
8441      ;;
8442
8443    *)
8444      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8445	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8446	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8447      else
8448	ld_shlibs=no
8449      fi
8450      ;;
8451    esac
8452
8453    if test "$ld_shlibs" = no; then
8454      runpath_var=
8455      hardcode_libdir_flag_spec=
8456      export_dynamic_flag_spec=
8457      whole_archive_flag_spec=
8458    fi
8459  else
8460    # PORTME fill in a description of your system's linker (not GNU ld)
8461    case $host_os in
8462    aix3*)
8463      allow_undefined_flag=unsupported
8464      always_export_symbols=yes
8465      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'
8466      # Note: this linker hardcodes the directories in LIBPATH if there
8467      # are no directories specified by -L.
8468      hardcode_minus_L=yes
8469      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8470	# Neither direct hardcoding nor static linking is supported with a
8471	# broken collect2.
8472	hardcode_direct=unsupported
8473      fi
8474      ;;
8475
8476    aix4* | aix5*)
8477      if test "$host_cpu" = ia64; then
8478	# On IA64, the linker does run time linking by default, so we don't
8479	# have to do anything special.
8480	aix_use_runtimelinking=no
8481	exp_sym_flag='-Bexport'
8482	no_entry_flag=""
8483      else
8484	# If we're using GNU nm, then we don't want the "-C" option.
8485	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8486	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8487	  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'
8488	else
8489	  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'
8490	fi
8491	aix_use_runtimelinking=no
8492
8493	# Test if we are trying to use run time linking or normal
8494	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8495	# need to do runtime linking.
8496	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8497	  for ld_flag in $LDFLAGS; do
8498  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8499  	    aix_use_runtimelinking=yes
8500  	    break
8501  	  fi
8502	  done
8503	  ;;
8504	esac
8505
8506	exp_sym_flag='-bexport'
8507	no_entry_flag='-bnoentry'
8508      fi
8509
8510      # When large executables or shared objects are built, AIX ld can
8511      # have problems creating the table of contents.  If linking a library
8512      # or program results in "error TOC overflow" add -mminimal-toc to
8513      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8514      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8515
8516      archive_cmds=''
8517      hardcode_direct=yes
8518      hardcode_libdir_separator=':'
8519      link_all_deplibs=yes
8520
8521      if test "$GCC" = yes; then
8522	case $host_os in aix4.[012]|aix4.[012].*)
8523	# We only want to do this on AIX 4.2 and lower, the check
8524	# below for broken collect2 doesn't work under 4.3+
8525	  collect2name=`${CC} -print-prog-name=collect2`
8526	  if test -f "$collect2name" && \
8527  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8528	  then
8529  	  # We have reworked collect2
8530  	  :
8531	  else
8532  	  # We have old collect2
8533  	  hardcode_direct=unsupported
8534  	  # It fails to find uninstalled libraries when the uninstalled
8535  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8536  	  # to unsupported forces relinking
8537  	  hardcode_minus_L=yes
8538  	  hardcode_libdir_flag_spec='-L$libdir'
8539  	  hardcode_libdir_separator=
8540	  fi
8541	  ;;
8542	esac
8543	shared_flag='-shared'
8544	if test "$aix_use_runtimelinking" = yes; then
8545	  shared_flag="$shared_flag "'${wl}-G'
8546	fi
8547      else
8548	# not using gcc
8549	if test "$host_cpu" = ia64; then
8550  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8551  	# chokes on -Wl,-G. The following line is correct:
8552	  shared_flag='-G'
8553	else
8554	  if test "$aix_use_runtimelinking" = yes; then
8555	    shared_flag='${wl}-G'
8556	  else
8557	    shared_flag='${wl}-bM:SRE'
8558	  fi
8559	fi
8560      fi
8561
8562      # It seems that -bexpall does not export symbols beginning with
8563      # underscore (_), so it is better to generate a list of symbols to export.
8564      always_export_symbols=yes
8565      if test "$aix_use_runtimelinking" = yes; then
8566	# Warning - without using the other runtime loading flags (-brtl),
8567	# -berok will link without error, but may produce a broken library.
8568	allow_undefined_flag='-berok'
8569       # Determine the default libpath from the value encoded in an empty executable.
8570       cat >conftest.$ac_ext <<_ACEOF
8571/* confdefs.h.  */
8572_ACEOF
8573cat confdefs.h >>conftest.$ac_ext
8574cat >>conftest.$ac_ext <<_ACEOF
8575/* end confdefs.h.  */
8576
8577int
8578main ()
8579{
8580
8581  ;
8582  return 0;
8583}
8584_ACEOF
8585rm -f conftest.$ac_objext conftest$ac_exeext
8586if { (ac_try="$ac_link"
8587case "(($ac_try" in
8588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589  *) ac_try_echo=$ac_try;;
8590esac
8591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592  (eval "$ac_link") 2>conftest.er1
8593  ac_status=$?
8594  grep -v '^ *+' conftest.er1 >conftest.err
8595  rm -f conftest.er1
8596  cat conftest.err >&5
8597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598  (exit $ac_status); } && {
8599	 test -z "$ac_c_werror_flag" ||
8600	 test ! -s conftest.err
8601       } && test -s conftest$ac_exeext &&
8602       $as_test_x conftest$ac_exeext; then
8603
8604lt_aix_libpath_sed='
8605    /Import File Strings/,/^$/ {
8606	/^0/ {
8607	    s/^0  *\(.*\)$/\1/
8608	    p
8609	}
8610    }'
8611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8612# Check for a 64-bit object if we didn't find anything.
8613if test -z "$aix_libpath"; then
8614  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8615fi
8616else
8617  echo "$as_me: failed program was:" >&5
8618sed 's/^/| /' conftest.$ac_ext >&5
8619
8620
8621fi
8622
8623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8624      conftest$ac_exeext conftest.$ac_ext
8625if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8626
8627       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8628	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"
8629       else
8630	if test "$host_cpu" = ia64; then
8631	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8632	  allow_undefined_flag="-z nodefs"
8633	  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"
8634	else
8635	 # Determine the default libpath from the value encoded in an empty executable.
8636	 cat >conftest.$ac_ext <<_ACEOF
8637/* confdefs.h.  */
8638_ACEOF
8639cat confdefs.h >>conftest.$ac_ext
8640cat >>conftest.$ac_ext <<_ACEOF
8641/* end confdefs.h.  */
8642
8643int
8644main ()
8645{
8646
8647  ;
8648  return 0;
8649}
8650_ACEOF
8651rm -f conftest.$ac_objext conftest$ac_exeext
8652if { (ac_try="$ac_link"
8653case "(($ac_try" in
8654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655  *) ac_try_echo=$ac_try;;
8656esac
8657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658  (eval "$ac_link") 2>conftest.er1
8659  ac_status=$?
8660  grep -v '^ *+' conftest.er1 >conftest.err
8661  rm -f conftest.er1
8662  cat conftest.err >&5
8663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664  (exit $ac_status); } && {
8665	 test -z "$ac_c_werror_flag" ||
8666	 test ! -s conftest.err
8667       } && test -s conftest$ac_exeext &&
8668       $as_test_x conftest$ac_exeext; then
8669
8670lt_aix_libpath_sed='
8671    /Import File Strings/,/^$/ {
8672	/^0/ {
8673	    s/^0  *\(.*\)$/\1/
8674	    p
8675	}
8676    }'
8677aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8678# Check for a 64-bit object if we didn't find anything.
8679if test -z "$aix_libpath"; then
8680  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8681fi
8682else
8683  echo "$as_me: failed program was:" >&5
8684sed 's/^/| /' conftest.$ac_ext >&5
8685
8686
8687fi
8688
8689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8690      conftest$ac_exeext conftest.$ac_ext
8691if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8692
8693	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8694	  # Warning - without using the other run time loading flags,
8695	  # -berok will link without error, but may produce a broken library.
8696	  no_undefined_flag=' ${wl}-bernotok'
8697	  allow_undefined_flag=' ${wl}-berok'
8698	  # Exported symbols can be pulled into shared objects from archives
8699	  whole_archive_flag_spec='$convenience'
8700	  archive_cmds_need_lc=yes
8701	  # This is similar to how AIX traditionally builds its shared libraries.
8702	  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'
8703	fi
8704      fi
8705      ;;
8706
8707    amigaos*)
8708      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)'
8709      hardcode_libdir_flag_spec='-L$libdir'
8710      hardcode_minus_L=yes
8711      # see comment about different semantics on the GNU ld section
8712      ld_shlibs=no
8713      ;;
8714
8715    bsdi[45]*)
8716      export_dynamic_flag_spec=-rdynamic
8717      ;;
8718
8719    cygwin* | mingw* | pw32*)
8720      # When not using gcc, we currently assume that we are using
8721      # Microsoft Visual C++.
8722      # hardcode_libdir_flag_spec is actually meaningless, as there is
8723      # no search path for DLLs.
8724      hardcode_libdir_flag_spec=' '
8725      allow_undefined_flag=unsupported
8726      # Tell ltmain to make .lib files, not .a files.
8727      libext=lib
8728      # Tell ltmain to make .dll files, not .so files.
8729      shrext_cmds=".dll"
8730      # FIXME: Setting linknames here is a bad hack.
8731      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8732      # The linker will automatically build a .lib file if we build a DLL.
8733      old_archive_From_new_cmds='true'
8734      # FIXME: Should let the user specify the lib program.
8735      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8736      fix_srcfile_path='`cygpath -w "$srcfile"`'
8737      enable_shared_with_static_runtimes=yes
8738      ;;
8739
8740    darwin* | rhapsody*)
8741      case $host_os in
8742        rhapsody* | darwin1.[012])
8743         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8744         ;;
8745       *) # Darwin 1.3 on
8746         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8747           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8748         else
8749           case ${MACOSX_DEPLOYMENT_TARGET} in
8750             10.[012])
8751               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8752               ;;
8753             10.*)
8754               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8755               ;;
8756           esac
8757         fi
8758         ;;
8759      esac
8760      archive_cmds_need_lc=no
8761      hardcode_direct=no
8762      hardcode_automatic=yes
8763      hardcode_shlibpath_var=unsupported
8764      whole_archive_flag_spec=''
8765      link_all_deplibs=yes
8766    if test "$GCC" = yes ; then
8767    	output_verbose_link_cmd='echo'
8768        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8769      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8770      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8771      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}'
8772      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}'
8773    else
8774      case $cc_basename in
8775        xlc*)
8776         output_verbose_link_cmd='echo'
8777         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8778         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8779          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8780         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8781          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}'
8782          ;;
8783       *)
8784         ld_shlibs=no
8785          ;;
8786      esac
8787    fi
8788      ;;
8789
8790    dgux*)
8791      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792      hardcode_libdir_flag_spec='-L$libdir'
8793      hardcode_shlibpath_var=no
8794      ;;
8795
8796    freebsd1*)
8797      ld_shlibs=no
8798      ;;
8799
8800    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8801    # support.  Future versions do this automatically, but an explicit c++rt0.o
8802    # does not break anything, and helps significantly (at the cost of a little
8803    # extra space).
8804    freebsd2.2*)
8805      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8806      hardcode_libdir_flag_spec='-R$libdir'
8807      hardcode_direct=yes
8808      hardcode_shlibpath_var=no
8809      ;;
8810
8811    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8812    freebsd2*)
8813      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8814      hardcode_direct=yes
8815      hardcode_minus_L=yes
8816      hardcode_shlibpath_var=no
8817      ;;
8818
8819    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8820    freebsd* | dragonfly*)
8821      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8822      hardcode_libdir_flag_spec='-R$libdir'
8823      hardcode_direct=yes
8824      hardcode_shlibpath_var=no
8825      ;;
8826
8827    hpux9*)
8828      if test "$GCC" = yes; then
8829	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'
8830      else
8831	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'
8832      fi
8833      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8834      hardcode_libdir_separator=:
8835      hardcode_direct=yes
8836
8837      # hardcode_minus_L: Not really in the search PATH,
8838      # but as the default location of the library.
8839      hardcode_minus_L=yes
8840      export_dynamic_flag_spec='${wl}-E'
8841      ;;
8842
8843    hpux10*)
8844      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8845	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8846      else
8847	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8848      fi
8849      if test "$with_gnu_ld" = no; then
8850	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8851	hardcode_libdir_separator=:
8852
8853	hardcode_direct=yes
8854	export_dynamic_flag_spec='${wl}-E'
8855
8856	# hardcode_minus_L: Not really in the search PATH,
8857	# but as the default location of the library.
8858	hardcode_minus_L=yes
8859      fi
8860      ;;
8861
8862    hpux11*)
8863      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8864	case $host_cpu in
8865	hppa*64*)
8866	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8867	  ;;
8868	ia64*)
8869	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8870	  ;;
8871	*)
8872	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8873	  ;;
8874	esac
8875      else
8876	case $host_cpu in
8877	hppa*64*)
8878	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8879	  ;;
8880	ia64*)
8881	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8882	  ;;
8883	*)
8884	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8885	  ;;
8886	esac
8887      fi
8888      if test "$with_gnu_ld" = no; then
8889	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8890	hardcode_libdir_separator=:
8891
8892	case $host_cpu in
8893	hppa*64*|ia64*)
8894	  hardcode_libdir_flag_spec_ld='+b $libdir'
8895	  hardcode_direct=no
8896	  hardcode_shlibpath_var=no
8897	  ;;
8898	*)
8899	  hardcode_direct=yes
8900	  export_dynamic_flag_spec='${wl}-E'
8901
8902	  # hardcode_minus_L: Not really in the search PATH,
8903	  # but as the default location of the library.
8904	  hardcode_minus_L=yes
8905	  ;;
8906	esac
8907      fi
8908      ;;
8909
8910    irix5* | irix6* | nonstopux*)
8911      if test "$GCC" = yes; then
8912	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'
8913      else
8914	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'
8915	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8916      fi
8917      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8918      hardcode_libdir_separator=:
8919      link_all_deplibs=yes
8920      ;;
8921
8922    netbsd*)
8923      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8924	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8925      else
8926	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8927      fi
8928      hardcode_libdir_flag_spec='-R$libdir'
8929      hardcode_direct=yes
8930      hardcode_shlibpath_var=no
8931      ;;
8932
8933    newsos6)
8934      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8935      hardcode_direct=yes
8936      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8937      hardcode_libdir_separator=:
8938      hardcode_shlibpath_var=no
8939      ;;
8940
8941    openbsd*)
8942      if test -f /usr/libexec/ld.so; then
8943	hardcode_direct=yes
8944	hardcode_shlibpath_var=no
8945	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8946	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8947	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8948	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8949	  export_dynamic_flag_spec='${wl}-E'
8950	else
8951	  case $host_os in
8952	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8953	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8954	     hardcode_libdir_flag_spec='-R$libdir'
8955	     ;;
8956	   *)
8957	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8958	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8959	     ;;
8960	  esac
8961        fi
8962      else
8963	ld_shlibs=no
8964      fi
8965      ;;
8966
8967    os2*)
8968      hardcode_libdir_flag_spec='-L$libdir'
8969      hardcode_minus_L=yes
8970      allow_undefined_flag=unsupported
8971      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'
8972      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8973      ;;
8974
8975    osf3*)
8976      if test "$GCC" = yes; then
8977	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8978	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'
8979      else
8980	allow_undefined_flag=' -expect_unresolved \*'
8981	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'
8982      fi
8983      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8984      hardcode_libdir_separator=:
8985      ;;
8986
8987    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8988      if test "$GCC" = yes; then
8989	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8990	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'
8991	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8992      else
8993	allow_undefined_flag=' -expect_unresolved \*'
8994	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'
8995	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8996	$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'
8997
8998	# Both c and cxx compiler support -rpath directly
8999	hardcode_libdir_flag_spec='-rpath $libdir'
9000      fi
9001      hardcode_libdir_separator=:
9002      ;;
9003
9004    solaris*)
9005      no_undefined_flag=' -z text'
9006      if test "$GCC" = yes; then
9007	wlarc='${wl}'
9008	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9009	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9010	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9011      else
9012	wlarc=''
9013	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9014	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9015  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9016      fi
9017      hardcode_libdir_flag_spec='-R$libdir'
9018      hardcode_shlibpath_var=no
9019      case $host_os in
9020      solaris2.[0-5] | solaris2.[0-5].*) ;;
9021      *)
9022	# The compiler driver will combine and reorder linker options,
9023	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9024	# but is careful enough not to reorder.
9025 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9026	if test "$GCC" = yes; then
9027	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9028	else
9029	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9030	fi
9031	;;
9032      esac
9033      link_all_deplibs=yes
9034      ;;
9035
9036    sunos4*)
9037      if test "x$host_vendor" = xsequent; then
9038	# Use $CC to link under sequent, because it throws in some extra .o
9039	# files that make .init and .fini sections work.
9040	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9041      else
9042	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9043      fi
9044      hardcode_libdir_flag_spec='-L$libdir'
9045      hardcode_direct=yes
9046      hardcode_minus_L=yes
9047      hardcode_shlibpath_var=no
9048      ;;
9049
9050    sysv4)
9051      case $host_vendor in
9052	sni)
9053	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9054	  hardcode_direct=yes # is this really true???
9055	;;
9056	siemens)
9057	  ## LD is ld it makes a PLAMLIB
9058	  ## CC just makes a GrossModule.
9059	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9060	  reload_cmds='$CC -r -o $output$reload_objs'
9061	  hardcode_direct=no
9062        ;;
9063	motorola)
9064	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9065	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9066	;;
9067      esac
9068      runpath_var='LD_RUN_PATH'
9069      hardcode_shlibpath_var=no
9070      ;;
9071
9072    sysv4.3*)
9073      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9074      hardcode_shlibpath_var=no
9075      export_dynamic_flag_spec='-Bexport'
9076      ;;
9077
9078    sysv4*MP*)
9079      if test -d /usr/nec; then
9080	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9081	hardcode_shlibpath_var=no
9082	runpath_var=LD_RUN_PATH
9083	hardcode_runpath_var=yes
9084	ld_shlibs=yes
9085      fi
9086      ;;
9087
9088    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9089      no_undefined_flag='${wl}-z,text'
9090      archive_cmds_need_lc=no
9091      hardcode_shlibpath_var=no
9092      runpath_var='LD_RUN_PATH'
9093
9094      if test "$GCC" = yes; then
9095	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9096	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9097      else
9098	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9099	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9100      fi
9101      ;;
9102
9103    sysv5* | sco3.2v5* | sco5v6*)
9104      # Note: We can NOT use -z defs as we might desire, because we do not
9105      # link with -lc, and that would cause any symbols used from libc to
9106      # always be unresolved, which means just about no library would
9107      # ever link correctly.  If we're not using GNU ld we use -z text
9108      # though, which does catch some bad symbols but isn't as heavy-handed
9109      # as -z defs.
9110      no_undefined_flag='${wl}-z,text'
9111      allow_undefined_flag='${wl}-z,nodefs'
9112      archive_cmds_need_lc=no
9113      hardcode_shlibpath_var=no
9114      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9115      hardcode_libdir_separator=':'
9116      link_all_deplibs=yes
9117      export_dynamic_flag_spec='${wl}-Bexport'
9118      runpath_var='LD_RUN_PATH'
9119
9120      if test "$GCC" = yes; then
9121	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9122	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9123      else
9124	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9125	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9126      fi
9127      ;;
9128
9129    uts4*)
9130      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9131      hardcode_libdir_flag_spec='-L$libdir'
9132      hardcode_shlibpath_var=no
9133      ;;
9134
9135    *)
9136      ld_shlibs=no
9137      ;;
9138    esac
9139  fi
9140
9141{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9142echo "${ECHO_T}$ld_shlibs" >&6; }
9143test "$ld_shlibs" = no && can_build_shared=no
9144
9145#
9146# Do we need to explicitly link libc?
9147#
9148case "x$archive_cmds_need_lc" in
9149x|xyes)
9150  # Assume -lc should be added
9151  archive_cmds_need_lc=yes
9152
9153  if test "$enable_shared" = yes && test "$GCC" = yes; then
9154    case $archive_cmds in
9155    *'~'*)
9156      # FIXME: we may have to deal with multi-command sequences.
9157      ;;
9158    '$CC '*)
9159      # Test whether the compiler implicitly links with -lc since on some
9160      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9161      # to ld, don't add -lc before -lgcc.
9162      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9163echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9164      $rm conftest*
9165      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9166
9167      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9168  (eval $ac_compile) 2>&5
9169  ac_status=$?
9170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171  (exit $ac_status); } 2>conftest.err; then
9172        soname=conftest
9173        lib=conftest
9174        libobjs=conftest.$ac_objext
9175        deplibs=
9176        wl=$lt_prog_compiler_wl
9177	pic_flag=$lt_prog_compiler_pic
9178        compiler_flags=-v
9179        linker_flags=-v
9180        verstring=
9181        output_objdir=.
9182        libname=conftest
9183        lt_save_allow_undefined_flag=$allow_undefined_flag
9184        allow_undefined_flag=
9185        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9186  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9187  ac_status=$?
9188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189  (exit $ac_status); }
9190        then
9191	  archive_cmds_need_lc=no
9192        else
9193	  archive_cmds_need_lc=yes
9194        fi
9195        allow_undefined_flag=$lt_save_allow_undefined_flag
9196      else
9197        cat conftest.err 1>&5
9198      fi
9199      $rm conftest*
9200      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9201echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9202      ;;
9203    esac
9204  fi
9205  ;;
9206esac
9207
9208{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9209echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9210library_names_spec=
9211libname_spec='lib$name'
9212soname_spec=
9213shrext_cmds=".so"
9214postinstall_cmds=
9215postuninstall_cmds=
9216finish_cmds=
9217finish_eval=
9218shlibpath_var=
9219shlibpath_overrides_runpath=unknown
9220version_type=none
9221dynamic_linker="$host_os ld.so"
9222sys_lib_dlsearch_path_spec="/lib /usr/lib"
9223
9224if test "$GCC" = yes; then
9225  case $host_os in
9226    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9227    *) lt_awk_arg="/^libraries:/" ;;
9228  esac
9229  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9230  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9231    # if the path contains ";" then we assume it to be the separator
9232    # otherwise default to the standard path separator (i.e. ":") - it is
9233    # assumed that no part of a normal pathname contains ";" but that should
9234    # okay in the real world where ";" in dirpaths is itself problematic.
9235    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9236  else
9237    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9238  fi
9239  # Ok, now we have the path, separated by spaces, we can step through it
9240  # and add multilib dir if necessary.
9241  lt_tmp_lt_search_path_spec=
9242  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9243  for lt_sys_path in $lt_search_path_spec; do
9244    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9245      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9246    else
9247      test -d "$lt_sys_path" && \
9248	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9249    fi
9250  done
9251  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9252BEGIN {RS=" "; FS="/|\n";} {
9253  lt_foo="";
9254  lt_count=0;
9255  for (lt_i = NF; lt_i > 0; lt_i--) {
9256    if ($lt_i != "" && $lt_i != ".") {
9257      if ($lt_i == "..") {
9258        lt_count++;
9259      } else {
9260        if (lt_count == 0) {
9261          lt_foo="/" $lt_i lt_foo;
9262        } else {
9263          lt_count--;
9264        }
9265      }
9266    }
9267  }
9268  if (lt_foo != "") { lt_freq[lt_foo]++; }
9269  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9270}'`
9271  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9272else
9273  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9274fi
9275need_lib_prefix=unknown
9276hardcode_into_libs=no
9277
9278# when you set need_version to no, make sure it does not cause -set_version
9279# flags to be left without arguments
9280need_version=unknown
9281
9282case $host_os in
9283aix3*)
9284  version_type=linux
9285  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9286  shlibpath_var=LIBPATH
9287
9288  # AIX 3 has no versioning support, so we append a major version to the name.
9289  soname_spec='${libname}${release}${shared_ext}$major'
9290  ;;
9291
9292aix4* | aix5*)
9293  version_type=linux
9294  need_lib_prefix=no
9295  need_version=no
9296  hardcode_into_libs=yes
9297  if test "$host_cpu" = ia64; then
9298    # AIX 5 supports IA64
9299    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9300    shlibpath_var=LD_LIBRARY_PATH
9301  else
9302    # With GCC up to 2.95.x, collect2 would create an import file
9303    # for dependence libraries.  The import file would start with
9304    # the line `#! .'.  This would cause the generated library to
9305    # depend on `.', always an invalid library.  This was fixed in
9306    # development snapshots of GCC prior to 3.0.
9307    case $host_os in
9308      aix4 | aix4.[01] | aix4.[01].*)
9309      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9310	   echo ' yes '
9311	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9312	:
9313      else
9314	can_build_shared=no
9315      fi
9316      ;;
9317    esac
9318    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9319    # soname into executable. Probably we can add versioning support to
9320    # collect2, so additional links can be useful in future.
9321    if test "$aix_use_runtimelinking" = yes; then
9322      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9323      # instead of lib<name>.a to let people know that these are not
9324      # typical AIX shared libraries.
9325      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326    else
9327      # We preserve .a as extension for shared libraries through AIX4.2
9328      # and later when we are not doing run time linking.
9329      library_names_spec='${libname}${release}.a $libname.a'
9330      soname_spec='${libname}${release}${shared_ext}$major'
9331    fi
9332    shlibpath_var=LIBPATH
9333  fi
9334  ;;
9335
9336amigaos*)
9337  library_names_spec='$libname.ixlibrary $libname.a'
9338  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9339  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'
9340  ;;
9341
9342beos*)
9343  library_names_spec='${libname}${shared_ext}'
9344  dynamic_linker="$host_os ld.so"
9345  shlibpath_var=LIBRARY_PATH
9346  ;;
9347
9348bsdi[45]*)
9349  version_type=linux
9350  need_version=no
9351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352  soname_spec='${libname}${release}${shared_ext}$major'
9353  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9354  shlibpath_var=LD_LIBRARY_PATH
9355  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9356  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9357  # the default ld.so.conf also contains /usr/contrib/lib and
9358  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9359  # libtool to hard-code these into programs
9360  ;;
9361
9362cygwin* | mingw* | pw32*)
9363  version_type=windows
9364  shrext_cmds=".dll"
9365  need_version=no
9366  need_lib_prefix=no
9367
9368  case $GCC,$host_os in
9369  yes,cygwin* | yes,mingw* | yes,pw32*)
9370    library_names_spec='$libname.dll.a'
9371    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9372    postinstall_cmds='base_file=`basename \${file}`~
9373      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9374      dldir=$destdir/`dirname \$dlpath`~
9375      test -d \$dldir || mkdir -p \$dldir~
9376      $install_prog $dir/$dlname \$dldir/$dlname~
9377      chmod a+x \$dldir/$dlname'
9378    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9379      dlpath=$dir/\$dldll~
9380       $rm \$dlpath'
9381    shlibpath_overrides_runpath=yes
9382
9383    case $host_os in
9384    cygwin*)
9385      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9386      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9387      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9388      ;;
9389    mingw*)
9390      # MinGW DLLs use traditional 'lib' prefix
9391      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9392      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9393      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9394        # It is most probably a Windows format PATH printed by
9395        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9396        # path with ; separators, and with drive letters. We can handle the
9397        # drive letters (cygwin fileutils understands them), so leave them,
9398        # especially as we might pass files found there to a mingw objdump,
9399        # which wouldn't understand a cygwinified path. Ahh.
9400        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9401      else
9402        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9403      fi
9404      ;;
9405    pw32*)
9406      # pw32 DLLs use 'pw' prefix rather than 'lib'
9407      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9408      ;;
9409    esac
9410    ;;
9411
9412  *)
9413    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9414    ;;
9415  esac
9416  dynamic_linker='Win32 ld.exe'
9417  # FIXME: first we should search . and the directory the executable is in
9418  shlibpath_var=PATH
9419  ;;
9420
9421darwin* | rhapsody*)
9422  dynamic_linker="$host_os dyld"
9423  version_type=darwin
9424  need_lib_prefix=no
9425  need_version=no
9426  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9427  soname_spec='${libname}${release}${major}$shared_ext'
9428  shlibpath_overrides_runpath=yes
9429  shlibpath_var=DYLD_LIBRARY_PATH
9430  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9431
9432  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9433  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9434  ;;
9435
9436dgux*)
9437  version_type=linux
9438  need_lib_prefix=no
9439  need_version=no
9440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9441  soname_spec='${libname}${release}${shared_ext}$major'
9442  shlibpath_var=LD_LIBRARY_PATH
9443  ;;
9444
9445freebsd1*)
9446  dynamic_linker=no
9447  ;;
9448
9449freebsd* | dragonfly*)
9450  # DragonFly does not have aout.  When/if they implement a new
9451  # versioning mechanism, adjust this.
9452  if test -x /usr/bin/objformat; then
9453    objformat=`/usr/bin/objformat`
9454  else
9455    case $host_os in
9456    freebsd[123]*) objformat=aout ;;
9457    *) objformat=elf ;;
9458    esac
9459  fi
9460  version_type=freebsd-$objformat
9461  case $version_type in
9462    freebsd-elf*)
9463      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9464      need_version=no
9465      need_lib_prefix=no
9466      ;;
9467    freebsd-*)
9468      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9469      need_version=yes
9470      ;;
9471  esac
9472  shlibpath_var=LD_LIBRARY_PATH
9473  case $host_os in
9474  freebsd2*)
9475    shlibpath_overrides_runpath=yes
9476    ;;
9477  freebsd3.[01]* | freebsdelf3.[01]*)
9478    shlibpath_overrides_runpath=yes
9479    hardcode_into_libs=yes
9480    ;;
9481  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9482  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9483    shlibpath_overrides_runpath=no
9484    hardcode_into_libs=yes
9485    ;;
9486  *) # from 4.6 on, and DragonFly
9487    shlibpath_overrides_runpath=yes
9488    hardcode_into_libs=yes
9489    ;;
9490  esac
9491  ;;
9492
9493gnu*)
9494  version_type=linux
9495  need_lib_prefix=no
9496  need_version=no
9497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9498  soname_spec='${libname}${release}${shared_ext}$major'
9499  shlibpath_var=LD_LIBRARY_PATH
9500  hardcode_into_libs=yes
9501  ;;
9502
9503hpux9* | hpux10* | hpux11*)
9504  # Give a soname corresponding to the major version so that dld.sl refuses to
9505  # link against other versions.
9506  version_type=sunos
9507  need_lib_prefix=no
9508  need_version=no
9509  case $host_cpu in
9510  ia64*)
9511    shrext_cmds='.so'
9512    hardcode_into_libs=yes
9513    dynamic_linker="$host_os dld.so"
9514    shlibpath_var=LD_LIBRARY_PATH
9515    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9516    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517    soname_spec='${libname}${release}${shared_ext}$major'
9518    if test "X$HPUX_IA64_MODE" = X32; then
9519      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9520    else
9521      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9522    fi
9523    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9524    ;;
9525   hppa*64*)
9526     shrext_cmds='.sl'
9527     hardcode_into_libs=yes
9528     dynamic_linker="$host_os dld.sl"
9529     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9530     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532     soname_spec='${libname}${release}${shared_ext}$major'
9533     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9534     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9535     ;;
9536   *)
9537    shrext_cmds='.sl'
9538    dynamic_linker="$host_os dld.sl"
9539    shlibpath_var=SHLIB_PATH
9540    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9541    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542    soname_spec='${libname}${release}${shared_ext}$major'
9543    ;;
9544  esac
9545  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9546  postinstall_cmds='chmod 555 $lib'
9547  ;;
9548
9549interix[3-9]*)
9550  version_type=linux
9551  need_lib_prefix=no
9552  need_version=no
9553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9554  soname_spec='${libname}${release}${shared_ext}$major'
9555  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9556  shlibpath_var=LD_LIBRARY_PATH
9557  shlibpath_overrides_runpath=no
9558  hardcode_into_libs=yes
9559  ;;
9560
9561irix5* | irix6* | nonstopux*)
9562  case $host_os in
9563    nonstopux*) version_type=nonstopux ;;
9564    *)
9565	if test "$lt_cv_prog_gnu_ld" = yes; then
9566		version_type=linux
9567	else
9568		version_type=irix
9569	fi ;;
9570  esac
9571  need_lib_prefix=no
9572  need_version=no
9573  soname_spec='${libname}${release}${shared_ext}$major'
9574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9575  case $host_os in
9576  irix5* | nonstopux*)
9577    libsuff= shlibsuff=
9578    ;;
9579  *)
9580    case $LD in # libtool.m4 will add one of these switches to LD
9581    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9582      libsuff= shlibsuff= libmagic=32-bit;;
9583    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9584      libsuff=32 shlibsuff=N32 libmagic=N32;;
9585    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9586      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9587    *) libsuff= shlibsuff= libmagic=never-match;;
9588    esac
9589    ;;
9590  esac
9591  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9592  shlibpath_overrides_runpath=no
9593  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9594  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9595  hardcode_into_libs=yes
9596  ;;
9597
9598# No shared lib support for Linux oldld, aout, or coff.
9599linux*oldld* | linux*aout* | linux*coff*)
9600  dynamic_linker=no
9601  ;;
9602
9603# This must be Linux ELF.
9604linux* | k*bsd*-gnu)
9605  version_type=linux
9606  need_lib_prefix=no
9607  need_version=no
9608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609  soname_spec='${libname}${release}${shared_ext}$major'
9610  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9611  shlibpath_var=LD_LIBRARY_PATH
9612  shlibpath_overrides_runpath=no
9613  # This implies no fast_install, which is unacceptable.
9614  # Some rework will be needed to allow for fast_install
9615  # before this can be enabled.
9616  hardcode_into_libs=yes
9617  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9618  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9619
9620  # Append ld.so.conf contents to the search path
9621  if test -f /etc/ld.so.conf; then
9622    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9623    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9624  fi
9625
9626  # We used to test for /lib/ld.so.1 and disable shared libraries on
9627  # powerpc, because MkLinux only supported shared libraries with the
9628  # GNU dynamic linker.  Since this was broken with cross compilers,
9629  # most powerpc-linux boxes support dynamic linking these days and
9630  # people can always --disable-shared, the test was removed, and we
9631  # assume the GNU/Linux dynamic linker is in use.
9632  dynamic_linker='GNU/Linux ld.so'
9633  ;;
9634
9635netbsd*)
9636  version_type=sunos
9637  need_lib_prefix=no
9638  need_version=no
9639  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9640    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9641    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9642    dynamic_linker='NetBSD (a.out) ld.so'
9643  else
9644    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9645    soname_spec='${libname}${release}${shared_ext}$major'
9646    dynamic_linker='NetBSD ld.elf_so'
9647  fi
9648  shlibpath_var=LD_LIBRARY_PATH
9649  shlibpath_overrides_runpath=yes
9650  hardcode_into_libs=yes
9651  ;;
9652
9653newsos6)
9654  version_type=linux
9655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9656  shlibpath_var=LD_LIBRARY_PATH
9657  shlibpath_overrides_runpath=yes
9658  ;;
9659
9660nto-qnx*)
9661  version_type=linux
9662  need_lib_prefix=no
9663  need_version=no
9664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665  soname_spec='${libname}${release}${shared_ext}$major'
9666  shlibpath_var=LD_LIBRARY_PATH
9667  shlibpath_overrides_runpath=yes
9668  ;;
9669
9670openbsd*)
9671  version_type=sunos
9672  sys_lib_dlsearch_path_spec="/usr/lib"
9673  need_lib_prefix=no
9674  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9675  case $host_os in
9676    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9677    *)                         need_version=no  ;;
9678  esac
9679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9680  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9681  shlibpath_var=LD_LIBRARY_PATH
9682  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9683    case $host_os in
9684      openbsd2.[89] | openbsd2.[89].*)
9685	shlibpath_overrides_runpath=no
9686	;;
9687      *)
9688	shlibpath_overrides_runpath=yes
9689	;;
9690      esac
9691  else
9692    shlibpath_overrides_runpath=yes
9693  fi
9694  ;;
9695
9696os2*)
9697  libname_spec='$name'
9698  shrext_cmds=".dll"
9699  need_lib_prefix=no
9700  library_names_spec='$libname${shared_ext} $libname.a'
9701  dynamic_linker='OS/2 ld.exe'
9702  shlibpath_var=LIBPATH
9703  ;;
9704
9705osf3* | osf4* | osf5*)
9706  version_type=osf
9707  need_lib_prefix=no
9708  need_version=no
9709  soname_spec='${libname}${release}${shared_ext}$major'
9710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9711  shlibpath_var=LD_LIBRARY_PATH
9712  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9713  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9714  ;;
9715
9716rdos*)
9717  dynamic_linker=no
9718  ;;
9719
9720solaris*)
9721  version_type=linux
9722  need_lib_prefix=no
9723  need_version=no
9724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725  soname_spec='${libname}${release}${shared_ext}$major'
9726  shlibpath_var=LD_LIBRARY_PATH
9727  shlibpath_overrides_runpath=yes
9728  hardcode_into_libs=yes
9729  # ldd complains unless libraries are executable
9730  postinstall_cmds='chmod +x $lib'
9731  ;;
9732
9733sunos4*)
9734  version_type=sunos
9735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9736  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9737  shlibpath_var=LD_LIBRARY_PATH
9738  shlibpath_overrides_runpath=yes
9739  if test "$with_gnu_ld" = yes; then
9740    need_lib_prefix=no
9741  fi
9742  need_version=yes
9743  ;;
9744
9745sysv4 | sysv4.3*)
9746  version_type=linux
9747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9748  soname_spec='${libname}${release}${shared_ext}$major'
9749  shlibpath_var=LD_LIBRARY_PATH
9750  case $host_vendor in
9751    sni)
9752      shlibpath_overrides_runpath=no
9753      need_lib_prefix=no
9754      export_dynamic_flag_spec='${wl}-Blargedynsym'
9755      runpath_var=LD_RUN_PATH
9756      ;;
9757    siemens)
9758      need_lib_prefix=no
9759      ;;
9760    motorola)
9761      need_lib_prefix=no
9762      need_version=no
9763      shlibpath_overrides_runpath=no
9764      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9765      ;;
9766  esac
9767  ;;
9768
9769sysv4*MP*)
9770  if test -d /usr/nec ;then
9771    version_type=linux
9772    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9773    soname_spec='$libname${shared_ext}.$major'
9774    shlibpath_var=LD_LIBRARY_PATH
9775  fi
9776  ;;
9777
9778sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9779  version_type=freebsd-elf
9780  need_lib_prefix=no
9781  need_version=no
9782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9783  soname_spec='${libname}${release}${shared_ext}$major'
9784  shlibpath_var=LD_LIBRARY_PATH
9785  hardcode_into_libs=yes
9786  if test "$with_gnu_ld" = yes; then
9787    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9788    shlibpath_overrides_runpath=no
9789  else
9790    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9791    shlibpath_overrides_runpath=yes
9792    case $host_os in
9793      sco3.2v5*)
9794        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9795	;;
9796    esac
9797  fi
9798  sys_lib_dlsearch_path_spec='/usr/lib'
9799  ;;
9800
9801uts4*)
9802  version_type=linux
9803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804  soname_spec='${libname}${release}${shared_ext}$major'
9805  shlibpath_var=LD_LIBRARY_PATH
9806  ;;
9807
9808*)
9809  dynamic_linker=no
9810  ;;
9811esac
9812{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9813echo "${ECHO_T}$dynamic_linker" >&6; }
9814test "$dynamic_linker" = no && can_build_shared=no
9815
9816variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9817if test "$GCC" = yes; then
9818  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9819fi
9820
9821{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9822echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9823hardcode_action=
9824if test -n "$hardcode_libdir_flag_spec" || \
9825   test -n "$runpath_var" || \
9826   test "X$hardcode_automatic" = "Xyes" ; then
9827
9828  # We can hardcode non-existant directories.
9829  if test "$hardcode_direct" != no &&
9830     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9831     # have to relink, otherwise we might link with an installed library
9832     # when we should be linking with a yet-to-be-installed one
9833     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9834     test "$hardcode_minus_L" != no; then
9835    # Linking always hardcodes the temporary library directory.
9836    hardcode_action=relink
9837  else
9838    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9839    hardcode_action=immediate
9840  fi
9841else
9842  # We cannot hardcode anything, or else we can only hardcode existing
9843  # directories.
9844  hardcode_action=unsupported
9845fi
9846{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9847echo "${ECHO_T}$hardcode_action" >&6; }
9848
9849if test "$hardcode_action" = relink; then
9850  # Fast installation is not supported
9851  enable_fast_install=no
9852elif test "$shlibpath_overrides_runpath" = yes ||
9853     test "$enable_shared" = no; then
9854  # Fast installation is not necessary
9855  enable_fast_install=needless
9856fi
9857
9858striplib=
9859old_striplib=
9860{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9861echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9862if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9863  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9864  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9865  { echo "$as_me:$LINENO: result: yes" >&5
9866echo "${ECHO_T}yes" >&6; }
9867else
9868# FIXME - insert some real tests, host_os isn't really good enough
9869  case $host_os in
9870   darwin*)
9871       if test -n "$STRIP" ; then
9872         striplib="$STRIP -x"
9873         old_striplib="$STRIP -S"
9874         { echo "$as_me:$LINENO: result: yes" >&5
9875echo "${ECHO_T}yes" >&6; }
9876       else
9877  { echo "$as_me:$LINENO: result: no" >&5
9878echo "${ECHO_T}no" >&6; }
9879fi
9880       ;;
9881   *)
9882  { echo "$as_me:$LINENO: result: no" >&5
9883echo "${ECHO_T}no" >&6; }
9884    ;;
9885  esac
9886fi
9887
9888if test "x$enable_dlopen" != xyes; then
9889  enable_dlopen=unknown
9890  enable_dlopen_self=unknown
9891  enable_dlopen_self_static=unknown
9892else
9893  lt_cv_dlopen=no
9894  lt_cv_dlopen_libs=
9895
9896  case $host_os in
9897  beos*)
9898    lt_cv_dlopen="load_add_on"
9899    lt_cv_dlopen_libs=
9900    lt_cv_dlopen_self=yes
9901    ;;
9902
9903  mingw* | pw32*)
9904    lt_cv_dlopen="LoadLibrary"
9905    lt_cv_dlopen_libs=
9906   ;;
9907
9908  cygwin*)
9909    lt_cv_dlopen="dlopen"
9910    lt_cv_dlopen_libs=
9911   ;;
9912
9913  darwin*)
9914  # if libdl is installed we need to link against it
9915    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9916echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9917if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9918  echo $ECHO_N "(cached) $ECHO_C" >&6
9919else
9920  ac_check_lib_save_LIBS=$LIBS
9921LIBS="-ldl  $LIBS"
9922cat >conftest.$ac_ext <<_ACEOF
9923/* confdefs.h.  */
9924_ACEOF
9925cat confdefs.h >>conftest.$ac_ext
9926cat >>conftest.$ac_ext <<_ACEOF
9927/* end confdefs.h.  */
9928
9929/* Override any GCC internal prototype to avoid an error.
9930   Use char because int might match the return type of a GCC
9931   builtin and then its argument prototype would still apply.  */
9932#ifdef __cplusplus
9933extern "C"
9934#endif
9935char dlopen ();
9936int
9937main ()
9938{
9939return dlopen ();
9940  ;
9941  return 0;
9942}
9943_ACEOF
9944rm -f conftest.$ac_objext conftest$ac_exeext
9945if { (ac_try="$ac_link"
9946case "(($ac_try" in
9947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948  *) ac_try_echo=$ac_try;;
9949esac
9950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951  (eval "$ac_link") 2>conftest.er1
9952  ac_status=$?
9953  grep -v '^ *+' conftest.er1 >conftest.err
9954  rm -f conftest.er1
9955  cat conftest.err >&5
9956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957  (exit $ac_status); } && {
9958	 test -z "$ac_c_werror_flag" ||
9959	 test ! -s conftest.err
9960       } && test -s conftest$ac_exeext &&
9961       $as_test_x conftest$ac_exeext; then
9962  ac_cv_lib_dl_dlopen=yes
9963else
9964  echo "$as_me: failed program was:" >&5
9965sed 's/^/| /' conftest.$ac_ext >&5
9966
9967	ac_cv_lib_dl_dlopen=no
9968fi
9969
9970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9971      conftest$ac_exeext conftest.$ac_ext
9972LIBS=$ac_check_lib_save_LIBS
9973fi
9974{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9975echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9976if test $ac_cv_lib_dl_dlopen = yes; then
9977  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9978else
9979
9980    lt_cv_dlopen="dyld"
9981    lt_cv_dlopen_libs=
9982    lt_cv_dlopen_self=yes
9983
9984fi
9985
9986   ;;
9987
9988  *)
9989    { echo "$as_me:$LINENO: checking for shl_load" >&5
9990echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9991if test "${ac_cv_func_shl_load+set}" = set; then
9992  echo $ECHO_N "(cached) $ECHO_C" >&6
9993else
9994  cat >conftest.$ac_ext <<_ACEOF
9995/* confdefs.h.  */
9996_ACEOF
9997cat confdefs.h >>conftest.$ac_ext
9998cat >>conftest.$ac_ext <<_ACEOF
9999/* end confdefs.h.  */
10000/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10001   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10002#define shl_load innocuous_shl_load
10003
10004/* System header to define __stub macros and hopefully few prototypes,
10005    which can conflict with char shl_load (); below.
10006    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007    <limits.h> exists even on freestanding compilers.  */
10008
10009#ifdef __STDC__
10010# include <limits.h>
10011#else
10012# include <assert.h>
10013#endif
10014
10015#undef shl_load
10016
10017/* Override any GCC internal prototype to avoid an error.
10018   Use char because int might match the return type of a GCC
10019   builtin and then its argument prototype would still apply.  */
10020#ifdef __cplusplus
10021extern "C"
10022#endif
10023char shl_load ();
10024/* The GNU C library defines this for functions which it implements
10025    to always fail with ENOSYS.  Some functions are actually named
10026    something starting with __ and the normal name is an alias.  */
10027#if defined __stub_shl_load || defined __stub___shl_load
10028choke me
10029#endif
10030
10031int
10032main ()
10033{
10034return shl_load ();
10035  ;
10036  return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext conftest$ac_exeext
10040if { (ac_try="$ac_link"
10041case "(($ac_try" in
10042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043  *) ac_try_echo=$ac_try;;
10044esac
10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046  (eval "$ac_link") 2>conftest.er1
10047  ac_status=$?
10048  grep -v '^ *+' conftest.er1 >conftest.err
10049  rm -f conftest.er1
10050  cat conftest.err >&5
10051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052  (exit $ac_status); } && {
10053	 test -z "$ac_c_werror_flag" ||
10054	 test ! -s conftest.err
10055       } && test -s conftest$ac_exeext &&
10056       $as_test_x conftest$ac_exeext; then
10057  ac_cv_func_shl_load=yes
10058else
10059  echo "$as_me: failed program was:" >&5
10060sed 's/^/| /' conftest.$ac_ext >&5
10061
10062	ac_cv_func_shl_load=no
10063fi
10064
10065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10066      conftest$ac_exeext conftest.$ac_ext
10067fi
10068{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10069echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10070if test $ac_cv_func_shl_load = yes; then
10071  lt_cv_dlopen="shl_load"
10072else
10073  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10074echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10075if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10076  echo $ECHO_N "(cached) $ECHO_C" >&6
10077else
10078  ac_check_lib_save_LIBS=$LIBS
10079LIBS="-ldld  $LIBS"
10080cat >conftest.$ac_ext <<_ACEOF
10081/* confdefs.h.  */
10082_ACEOF
10083cat confdefs.h >>conftest.$ac_ext
10084cat >>conftest.$ac_ext <<_ACEOF
10085/* end confdefs.h.  */
10086
10087/* Override any GCC internal prototype to avoid an error.
10088   Use char because int might match the return type of a GCC
10089   builtin and then its argument prototype would still apply.  */
10090#ifdef __cplusplus
10091extern "C"
10092#endif
10093char shl_load ();
10094int
10095main ()
10096{
10097return shl_load ();
10098  ;
10099  return 0;
10100}
10101_ACEOF
10102rm -f conftest.$ac_objext conftest$ac_exeext
10103if { (ac_try="$ac_link"
10104case "(($ac_try" in
10105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106  *) ac_try_echo=$ac_try;;
10107esac
10108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109  (eval "$ac_link") 2>conftest.er1
10110  ac_status=$?
10111  grep -v '^ *+' conftest.er1 >conftest.err
10112  rm -f conftest.er1
10113  cat conftest.err >&5
10114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115  (exit $ac_status); } && {
10116	 test -z "$ac_c_werror_flag" ||
10117	 test ! -s conftest.err
10118       } && test -s conftest$ac_exeext &&
10119       $as_test_x conftest$ac_exeext; then
10120  ac_cv_lib_dld_shl_load=yes
10121else
10122  echo "$as_me: failed program was:" >&5
10123sed 's/^/| /' conftest.$ac_ext >&5
10124
10125	ac_cv_lib_dld_shl_load=no
10126fi
10127
10128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10129      conftest$ac_exeext conftest.$ac_ext
10130LIBS=$ac_check_lib_save_LIBS
10131fi
10132{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10133echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10134if test $ac_cv_lib_dld_shl_load = yes; then
10135  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10136else
10137  { echo "$as_me:$LINENO: checking for dlopen" >&5
10138echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10139if test "${ac_cv_func_dlopen+set}" = set; then
10140  echo $ECHO_N "(cached) $ECHO_C" >&6
10141else
10142  cat >conftest.$ac_ext <<_ACEOF
10143/* confdefs.h.  */
10144_ACEOF
10145cat confdefs.h >>conftest.$ac_ext
10146cat >>conftest.$ac_ext <<_ACEOF
10147/* end confdefs.h.  */
10148/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10149   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10150#define dlopen innocuous_dlopen
10151
10152/* System header to define __stub macros and hopefully few prototypes,
10153    which can conflict with char dlopen (); below.
10154    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10155    <limits.h> exists even on freestanding compilers.  */
10156
10157#ifdef __STDC__
10158# include <limits.h>
10159#else
10160# include <assert.h>
10161#endif
10162
10163#undef dlopen
10164
10165/* Override any GCC internal prototype to avoid an error.
10166   Use char because int might match the return type of a GCC
10167   builtin and then its argument prototype would still apply.  */
10168#ifdef __cplusplus
10169extern "C"
10170#endif
10171char dlopen ();
10172/* The GNU C library defines this for functions which it implements
10173    to always fail with ENOSYS.  Some functions are actually named
10174    something starting with __ and the normal name is an alias.  */
10175#if defined __stub_dlopen || defined __stub___dlopen
10176choke me
10177#endif
10178
10179int
10180main ()
10181{
10182return dlopen ();
10183  ;
10184  return 0;
10185}
10186_ACEOF
10187rm -f conftest.$ac_objext conftest$ac_exeext
10188if { (ac_try="$ac_link"
10189case "(($ac_try" in
10190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191  *) ac_try_echo=$ac_try;;
10192esac
10193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194  (eval "$ac_link") 2>conftest.er1
10195  ac_status=$?
10196  grep -v '^ *+' conftest.er1 >conftest.err
10197  rm -f conftest.er1
10198  cat conftest.err >&5
10199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200  (exit $ac_status); } && {
10201	 test -z "$ac_c_werror_flag" ||
10202	 test ! -s conftest.err
10203       } && test -s conftest$ac_exeext &&
10204       $as_test_x conftest$ac_exeext; then
10205  ac_cv_func_dlopen=yes
10206else
10207  echo "$as_me: failed program was:" >&5
10208sed 's/^/| /' conftest.$ac_ext >&5
10209
10210	ac_cv_func_dlopen=no
10211fi
10212
10213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10214      conftest$ac_exeext conftest.$ac_ext
10215fi
10216{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10217echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10218if test $ac_cv_func_dlopen = yes; then
10219  lt_cv_dlopen="dlopen"
10220else
10221  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10222echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10223if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10224  echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226  ac_check_lib_save_LIBS=$LIBS
10227LIBS="-ldl  $LIBS"
10228cat >conftest.$ac_ext <<_ACEOF
10229/* confdefs.h.  */
10230_ACEOF
10231cat confdefs.h >>conftest.$ac_ext
10232cat >>conftest.$ac_ext <<_ACEOF
10233/* end confdefs.h.  */
10234
10235/* Override any GCC internal prototype to avoid an error.
10236   Use char because int might match the return type of a GCC
10237   builtin and then its argument prototype would still apply.  */
10238#ifdef __cplusplus
10239extern "C"
10240#endif
10241char dlopen ();
10242int
10243main ()
10244{
10245return dlopen ();
10246  ;
10247  return 0;
10248}
10249_ACEOF
10250rm -f conftest.$ac_objext conftest$ac_exeext
10251if { (ac_try="$ac_link"
10252case "(($ac_try" in
10253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254  *) ac_try_echo=$ac_try;;
10255esac
10256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257  (eval "$ac_link") 2>conftest.er1
10258  ac_status=$?
10259  grep -v '^ *+' conftest.er1 >conftest.err
10260  rm -f conftest.er1
10261  cat conftest.err >&5
10262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263  (exit $ac_status); } && {
10264	 test -z "$ac_c_werror_flag" ||
10265	 test ! -s conftest.err
10266       } && test -s conftest$ac_exeext &&
10267       $as_test_x conftest$ac_exeext; then
10268  ac_cv_lib_dl_dlopen=yes
10269else
10270  echo "$as_me: failed program was:" >&5
10271sed 's/^/| /' conftest.$ac_ext >&5
10272
10273	ac_cv_lib_dl_dlopen=no
10274fi
10275
10276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10277      conftest$ac_exeext conftest.$ac_ext
10278LIBS=$ac_check_lib_save_LIBS
10279fi
10280{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10281echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10282if test $ac_cv_lib_dl_dlopen = yes; then
10283  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10284else
10285  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10286echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10287if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10288  echo $ECHO_N "(cached) $ECHO_C" >&6
10289else
10290  ac_check_lib_save_LIBS=$LIBS
10291LIBS="-lsvld  $LIBS"
10292cat >conftest.$ac_ext <<_ACEOF
10293/* confdefs.h.  */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h.  */
10298
10299/* Override any GCC internal prototype to avoid an error.
10300   Use char because int might match the return type of a GCC
10301   builtin and then its argument prototype would still apply.  */
10302#ifdef __cplusplus
10303extern "C"
10304#endif
10305char dlopen ();
10306int
10307main ()
10308{
10309return dlopen ();
10310  ;
10311  return 0;
10312}
10313_ACEOF
10314rm -f conftest.$ac_objext conftest$ac_exeext
10315if { (ac_try="$ac_link"
10316case "(($ac_try" in
10317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318  *) ac_try_echo=$ac_try;;
10319esac
10320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321  (eval "$ac_link") 2>conftest.er1
10322  ac_status=$?
10323  grep -v '^ *+' conftest.er1 >conftest.err
10324  rm -f conftest.er1
10325  cat conftest.err >&5
10326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327  (exit $ac_status); } && {
10328	 test -z "$ac_c_werror_flag" ||
10329	 test ! -s conftest.err
10330       } && test -s conftest$ac_exeext &&
10331       $as_test_x conftest$ac_exeext; then
10332  ac_cv_lib_svld_dlopen=yes
10333else
10334  echo "$as_me: failed program was:" >&5
10335sed 's/^/| /' conftest.$ac_ext >&5
10336
10337	ac_cv_lib_svld_dlopen=no
10338fi
10339
10340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10341      conftest$ac_exeext conftest.$ac_ext
10342LIBS=$ac_check_lib_save_LIBS
10343fi
10344{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10345echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10346if test $ac_cv_lib_svld_dlopen = yes; then
10347  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10348else
10349  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10350echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10351if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10352  echo $ECHO_N "(cached) $ECHO_C" >&6
10353else
10354  ac_check_lib_save_LIBS=$LIBS
10355LIBS="-ldld  $LIBS"
10356cat >conftest.$ac_ext <<_ACEOF
10357/* confdefs.h.  */
10358_ACEOF
10359cat confdefs.h >>conftest.$ac_ext
10360cat >>conftest.$ac_ext <<_ACEOF
10361/* end confdefs.h.  */
10362
10363/* Override any GCC internal prototype to avoid an error.
10364   Use char because int might match the return type of a GCC
10365   builtin and then its argument prototype would still apply.  */
10366#ifdef __cplusplus
10367extern "C"
10368#endif
10369char dld_link ();
10370int
10371main ()
10372{
10373return dld_link ();
10374  ;
10375  return 0;
10376}
10377_ACEOF
10378rm -f conftest.$ac_objext conftest$ac_exeext
10379if { (ac_try="$ac_link"
10380case "(($ac_try" in
10381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382  *) ac_try_echo=$ac_try;;
10383esac
10384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385  (eval "$ac_link") 2>conftest.er1
10386  ac_status=$?
10387  grep -v '^ *+' conftest.er1 >conftest.err
10388  rm -f conftest.er1
10389  cat conftest.err >&5
10390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391  (exit $ac_status); } && {
10392	 test -z "$ac_c_werror_flag" ||
10393	 test ! -s conftest.err
10394       } && test -s conftest$ac_exeext &&
10395       $as_test_x conftest$ac_exeext; then
10396  ac_cv_lib_dld_dld_link=yes
10397else
10398  echo "$as_me: failed program was:" >&5
10399sed 's/^/| /' conftest.$ac_ext >&5
10400
10401	ac_cv_lib_dld_dld_link=no
10402fi
10403
10404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10405      conftest$ac_exeext conftest.$ac_ext
10406LIBS=$ac_check_lib_save_LIBS
10407fi
10408{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10409echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10410if test $ac_cv_lib_dld_dld_link = yes; then
10411  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10412fi
10413
10414
10415fi
10416
10417
10418fi
10419
10420
10421fi
10422
10423
10424fi
10425
10426
10427fi
10428
10429    ;;
10430  esac
10431
10432  if test "x$lt_cv_dlopen" != xno; then
10433    enable_dlopen=yes
10434  else
10435    enable_dlopen=no
10436  fi
10437
10438  case $lt_cv_dlopen in
10439  dlopen)
10440    save_CPPFLAGS="$CPPFLAGS"
10441    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10442
10443    save_LDFLAGS="$LDFLAGS"
10444    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10445
10446    save_LIBS="$LIBS"
10447    LIBS="$lt_cv_dlopen_libs $LIBS"
10448
10449    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10450echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10451if test "${lt_cv_dlopen_self+set}" = set; then
10452  echo $ECHO_N "(cached) $ECHO_C" >&6
10453else
10454  	  if test "$cross_compiling" = yes; then :
10455  lt_cv_dlopen_self=cross
10456else
10457  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10458  lt_status=$lt_dlunknown
10459  cat > conftest.$ac_ext <<EOF
10460#line 10464 "configure"
10461#include "confdefs.h"
10462
10463#if HAVE_DLFCN_H
10464#include <dlfcn.h>
10465#endif
10466
10467#include <stdio.h>
10468
10469#ifdef RTLD_GLOBAL
10470#  define LT_DLGLOBAL		RTLD_GLOBAL
10471#else
10472#  ifdef DL_GLOBAL
10473#    define LT_DLGLOBAL		DL_GLOBAL
10474#  else
10475#    define LT_DLGLOBAL		0
10476#  endif
10477#endif
10478
10479/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10480   find out it does not work in some platform. */
10481#ifndef LT_DLLAZY_OR_NOW
10482#  ifdef RTLD_LAZY
10483#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10484#  else
10485#    ifdef DL_LAZY
10486#      define LT_DLLAZY_OR_NOW		DL_LAZY
10487#    else
10488#      ifdef RTLD_NOW
10489#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10490#      else
10491#        ifdef DL_NOW
10492#          define LT_DLLAZY_OR_NOW	DL_NOW
10493#        else
10494#          define LT_DLLAZY_OR_NOW	0
10495#        endif
10496#      endif
10497#    endif
10498#  endif
10499#endif
10500
10501#ifdef __cplusplus
10502extern "C" void exit (int);
10503#endif
10504
10505void fnord() { int i=42;}
10506int main ()
10507{
10508  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10509  int status = $lt_dlunknown;
10510
10511  if (self)
10512    {
10513      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10514      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10515      /* dlclose (self); */
10516    }
10517  else
10518    puts (dlerror ());
10519
10520    exit (status);
10521}
10522EOF
10523  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10524  (eval $ac_link) 2>&5
10525  ac_status=$?
10526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10528    (./conftest; exit; ) >&5 2>/dev/null
10529    lt_status=$?
10530    case x$lt_status in
10531      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10532      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10533      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10534    esac
10535  else :
10536    # compilation failed
10537    lt_cv_dlopen_self=no
10538  fi
10539fi
10540rm -fr conftest*
10541
10542
10543fi
10544{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10545echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10546
10547    if test "x$lt_cv_dlopen_self" = xyes; then
10548      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10549      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10550echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10551if test "${lt_cv_dlopen_self_static+set}" = set; then
10552  echo $ECHO_N "(cached) $ECHO_C" >&6
10553else
10554  	  if test "$cross_compiling" = yes; then :
10555  lt_cv_dlopen_self_static=cross
10556else
10557  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10558  lt_status=$lt_dlunknown
10559  cat > conftest.$ac_ext <<EOF
10560#line 10564 "configure"
10561#include "confdefs.h"
10562
10563#if HAVE_DLFCN_H
10564#include <dlfcn.h>
10565#endif
10566
10567#include <stdio.h>
10568
10569#ifdef RTLD_GLOBAL
10570#  define LT_DLGLOBAL		RTLD_GLOBAL
10571#else
10572#  ifdef DL_GLOBAL
10573#    define LT_DLGLOBAL		DL_GLOBAL
10574#  else
10575#    define LT_DLGLOBAL		0
10576#  endif
10577#endif
10578
10579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10580   find out it does not work in some platform. */
10581#ifndef LT_DLLAZY_OR_NOW
10582#  ifdef RTLD_LAZY
10583#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10584#  else
10585#    ifdef DL_LAZY
10586#      define LT_DLLAZY_OR_NOW		DL_LAZY
10587#    else
10588#      ifdef RTLD_NOW
10589#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10590#      else
10591#        ifdef DL_NOW
10592#          define LT_DLLAZY_OR_NOW	DL_NOW
10593#        else
10594#          define LT_DLLAZY_OR_NOW	0
10595#        endif
10596#      endif
10597#    endif
10598#  endif
10599#endif
10600
10601#ifdef __cplusplus
10602extern "C" void exit (int);
10603#endif
10604
10605void fnord() { int i=42;}
10606int main ()
10607{
10608  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10609  int status = $lt_dlunknown;
10610
10611  if (self)
10612    {
10613      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10614      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10615      /* dlclose (self); */
10616    }
10617  else
10618    puts (dlerror ());
10619
10620    exit (status);
10621}
10622EOF
10623  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10624  (eval $ac_link) 2>&5
10625  ac_status=$?
10626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10628    (./conftest; exit; ) >&5 2>/dev/null
10629    lt_status=$?
10630    case x$lt_status in
10631      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10632      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10633      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10634    esac
10635  else :
10636    # compilation failed
10637    lt_cv_dlopen_self_static=no
10638  fi
10639fi
10640rm -fr conftest*
10641
10642
10643fi
10644{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10645echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10646    fi
10647
10648    CPPFLAGS="$save_CPPFLAGS"
10649    LDFLAGS="$save_LDFLAGS"
10650    LIBS="$save_LIBS"
10651    ;;
10652  esac
10653
10654  case $lt_cv_dlopen_self in
10655  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10656  *) enable_dlopen_self=unknown ;;
10657  esac
10658
10659  case $lt_cv_dlopen_self_static in
10660  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10661  *) enable_dlopen_self_static=unknown ;;
10662  esac
10663fi
10664
10665
10666# Report which library types will actually be built
10667{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10668echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10669{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10670echo "${ECHO_T}$can_build_shared" >&6; }
10671
10672{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10673echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10674test "$can_build_shared" = "no" && enable_shared=no
10675
10676# On AIX, shared libraries and static libraries use the same namespace, and
10677# are all built from PIC.
10678case $host_os in
10679aix3*)
10680  test "$enable_shared" = yes && enable_static=no
10681  if test -n "$RANLIB"; then
10682    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10683    postinstall_cmds='$RANLIB $lib'
10684  fi
10685  ;;
10686
10687aix4* | aix5*)
10688  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10689    test "$enable_shared" = yes && enable_static=no
10690  fi
10691    ;;
10692esac
10693{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10694echo "${ECHO_T}$enable_shared" >&6; }
10695
10696{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10697echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10698# Make sure either enable_shared or enable_static is yes.
10699test "$enable_shared" = yes || enable_static=yes
10700{ echo "$as_me:$LINENO: result: $enable_static" >&5
10701echo "${ECHO_T}$enable_static" >&6; }
10702
10703# The else clause should only fire when bootstrapping the
10704# libtool distribution, otherwise you forgot to ship ltmain.sh
10705# with your package, and you will get complaints that there are
10706# no rules to generate ltmain.sh.
10707if test -f "$ltmain"; then
10708  # See if we are running on zsh, and set the options which allow our commands through
10709  # without removal of \ escapes.
10710  if test -n "${ZSH_VERSION+set}" ; then
10711    setopt NO_GLOB_SUBST
10712  fi
10713  # Now quote all the things that may contain metacharacters while being
10714  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10715  # variables and quote the copies for generation of the libtool script.
10716  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10717    SED SHELL STRIP \
10718    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10719    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10720    deplibs_check_method reload_flag reload_cmds need_locks \
10721    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10722    lt_cv_sys_global_symbol_to_c_name_address \
10723    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10724    old_postinstall_cmds old_postuninstall_cmds \
10725    compiler \
10726    CC \
10727    LD \
10728    lt_prog_compiler_wl \
10729    lt_prog_compiler_pic \
10730    lt_prog_compiler_static \
10731    lt_prog_compiler_no_builtin_flag \
10732    export_dynamic_flag_spec \
10733    thread_safe_flag_spec \
10734    whole_archive_flag_spec \
10735    enable_shared_with_static_runtimes \
10736    old_archive_cmds \
10737    old_archive_from_new_cmds \
10738    predep_objects \
10739    postdep_objects \
10740    predeps \
10741    postdeps \
10742    compiler_lib_search_path \
10743    archive_cmds \
10744    archive_expsym_cmds \
10745    postinstall_cmds \
10746    postuninstall_cmds \
10747    old_archive_from_expsyms_cmds \
10748    allow_undefined_flag \
10749    no_undefined_flag \
10750    export_symbols_cmds \
10751    hardcode_libdir_flag_spec \
10752    hardcode_libdir_flag_spec_ld \
10753    hardcode_libdir_separator \
10754    hardcode_automatic \
10755    module_cmds \
10756    module_expsym_cmds \
10757    lt_cv_prog_compiler_c_o \
10758    fix_srcfile_path \
10759    exclude_expsyms \
10760    include_expsyms; do
10761
10762    case $var in
10763    old_archive_cmds | \
10764    old_archive_from_new_cmds | \
10765    archive_cmds | \
10766    archive_expsym_cmds | \
10767    module_cmds | \
10768    module_expsym_cmds | \
10769    old_archive_from_expsyms_cmds | \
10770    export_symbols_cmds | \
10771    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10772    postinstall_cmds | postuninstall_cmds | \
10773    old_postinstall_cmds | old_postuninstall_cmds | \
10774    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10775      # Double-quote double-evaled strings.
10776      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10777      ;;
10778    *)
10779      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10780      ;;
10781    esac
10782  done
10783
10784  case $lt_echo in
10785  *'\$0 --fallback-echo"')
10786    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10787    ;;
10788  esac
10789
10790cfgfile="${ofile}T"
10791  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10792  $rm -f "$cfgfile"
10793  { echo "$as_me:$LINENO: creating $ofile" >&5
10794echo "$as_me: creating $ofile" >&6;}
10795
10796  cat <<__EOF__ >> "$cfgfile"
10797#! $SHELL
10798
10799# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10800# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10801# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10802#
10803# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10804# Free Software Foundation, Inc.
10805#
10806# This file is part of GNU Libtool:
10807# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10808#
10809# This program is free software; you can redistribute it and/or modify
10810# it under the terms of the GNU General Public License as published by
10811# the Free Software Foundation; either version 2 of the License, or
10812# (at your option) any later version.
10813#
10814# This program is distributed in the hope that it will be useful, but
10815# WITHOUT ANY WARRANTY; without even the implied warranty of
10816# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10817# General Public License for more details.
10818#
10819# You should have received a copy of the GNU General Public License
10820# along with this program; if not, write to the Free Software
10821# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10822#
10823# As a special exception to the GNU General Public License, if you
10824# distribute this file as part of a program that contains a
10825# configuration script generated by Autoconf, you may include it under
10826# the same distribution terms that you use for the rest of that program.
10827
10828# A sed program that does not truncate output.
10829SED=$lt_SED
10830
10831# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10832Xsed="$SED -e 1s/^X//"
10833
10834# The HP-UX ksh and POSIX shell print the target directory to stdout
10835# if CDPATH is set.
10836(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10837
10838# The names of the tagged configurations supported by this script.
10839available_tags=
10840
10841# ### BEGIN LIBTOOL CONFIG
10842
10843# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10844
10845# Shell to use when invoking shell scripts.
10846SHELL=$lt_SHELL
10847
10848# Whether or not to build shared libraries.
10849build_libtool_libs=$enable_shared
10850
10851# Whether or not to build static libraries.
10852build_old_libs=$enable_static
10853
10854# Whether or not to add -lc for building shared libraries.
10855build_libtool_need_lc=$archive_cmds_need_lc
10856
10857# Whether or not to disallow shared libs when runtime libs are static
10858allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10859
10860# Whether or not to optimize for fast installation.
10861fast_install=$enable_fast_install
10862
10863# The host system.
10864host_alias=$host_alias
10865host=$host
10866host_os=$host_os
10867
10868# The build system.
10869build_alias=$build_alias
10870build=$build
10871build_os=$build_os
10872
10873# An echo program that does not interpret backslashes.
10874echo=$lt_echo
10875
10876# The archiver.
10877AR=$lt_AR
10878AR_FLAGS=$lt_AR_FLAGS
10879
10880# A C compiler.
10881LTCC=$lt_LTCC
10882
10883# LTCC compiler flags.
10884LTCFLAGS=$lt_LTCFLAGS
10885
10886# A language-specific compiler.
10887CC=$lt_compiler
10888
10889# Is the compiler the GNU C compiler?
10890with_gcc=$GCC
10891
10892# An ERE matcher.
10893EGREP=$lt_EGREP
10894
10895# The linker used to build libraries.
10896LD=$lt_LD
10897
10898# Whether we need hard or soft links.
10899LN_S=$lt_LN_S
10900
10901# A BSD-compatible nm program.
10902NM=$lt_NM
10903
10904# A symbol stripping program
10905STRIP=$lt_STRIP
10906
10907# Used to examine libraries when file_magic_cmd begins "file"
10908MAGIC_CMD=$MAGIC_CMD
10909
10910# Used on cygwin: DLL creation program.
10911DLLTOOL="$DLLTOOL"
10912
10913# Used on cygwin: object dumper.
10914OBJDUMP="$OBJDUMP"
10915
10916# Used on cygwin: assembler.
10917AS="$AS"
10918
10919# The name of the directory that contains temporary libtool files.
10920objdir=$objdir
10921
10922# How to create reloadable object files.
10923reload_flag=$lt_reload_flag
10924reload_cmds=$lt_reload_cmds
10925
10926# How to pass a linker flag through the compiler.
10927wl=$lt_lt_prog_compiler_wl
10928
10929# Object file suffix (normally "o").
10930objext="$ac_objext"
10931
10932# Old archive suffix (normally "a").
10933libext="$libext"
10934
10935# Shared library suffix (normally ".so").
10936shrext_cmds='$shrext_cmds'
10937
10938# Executable file suffix (normally "").
10939exeext="$exeext"
10940
10941# Additional compiler flags for building library objects.
10942pic_flag=$lt_lt_prog_compiler_pic
10943pic_mode=$pic_mode
10944
10945# What is the maximum length of a command?
10946max_cmd_len=$lt_cv_sys_max_cmd_len
10947
10948# Does compiler simultaneously support -c and -o options?
10949compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10950
10951# Must we lock files when doing compilation?
10952need_locks=$lt_need_locks
10953
10954# Do we need the lib prefix for modules?
10955need_lib_prefix=$need_lib_prefix
10956
10957# Do we need a version for libraries?
10958need_version=$need_version
10959
10960# Whether dlopen is supported.
10961dlopen_support=$enable_dlopen
10962
10963# Whether dlopen of programs is supported.
10964dlopen_self=$enable_dlopen_self
10965
10966# Whether dlopen of statically linked programs is supported.
10967dlopen_self_static=$enable_dlopen_self_static
10968
10969# Compiler flag to prevent dynamic linking.
10970link_static_flag=$lt_lt_prog_compiler_static
10971
10972# Compiler flag to turn off builtin functions.
10973no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10974
10975# Compiler flag to allow reflexive dlopens.
10976export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10977
10978# Compiler flag to generate shared objects directly from archives.
10979whole_archive_flag_spec=$lt_whole_archive_flag_spec
10980
10981# Compiler flag to generate thread-safe objects.
10982thread_safe_flag_spec=$lt_thread_safe_flag_spec
10983
10984# Library versioning type.
10985version_type=$version_type
10986
10987# Format of library name prefix.
10988libname_spec=$lt_libname_spec
10989
10990# List of archive names.  First name is the real one, the rest are links.
10991# The last name is the one that the linker finds with -lNAME.
10992library_names_spec=$lt_library_names_spec
10993
10994# The coded name of the library, if different from the real name.
10995soname_spec=$lt_soname_spec
10996
10997# Commands used to build and install an old-style archive.
10998RANLIB=$lt_RANLIB
10999old_archive_cmds=$lt_old_archive_cmds
11000old_postinstall_cmds=$lt_old_postinstall_cmds
11001old_postuninstall_cmds=$lt_old_postuninstall_cmds
11002
11003# Create an old-style archive from a shared archive.
11004old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11005
11006# Create a temporary old-style archive to link instead of a shared archive.
11007old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11008
11009# Commands used to build and install a shared archive.
11010archive_cmds=$lt_archive_cmds
11011archive_expsym_cmds=$lt_archive_expsym_cmds
11012postinstall_cmds=$lt_postinstall_cmds
11013postuninstall_cmds=$lt_postuninstall_cmds
11014
11015# Commands used to build a loadable module (assumed same as above if empty)
11016module_cmds=$lt_module_cmds
11017module_expsym_cmds=$lt_module_expsym_cmds
11018
11019# Commands to strip libraries.
11020old_striplib=$lt_old_striplib
11021striplib=$lt_striplib
11022
11023# Dependencies to place before the objects being linked to create a
11024# shared library.
11025predep_objects=$lt_predep_objects
11026
11027# Dependencies to place after the objects being linked to create a
11028# shared library.
11029postdep_objects=$lt_postdep_objects
11030
11031# Dependencies to place before the objects being linked to create a
11032# shared library.
11033predeps=$lt_predeps
11034
11035# Dependencies to place after the objects being linked to create a
11036# shared library.
11037postdeps=$lt_postdeps
11038
11039# The library search path used internally by the compiler when linking
11040# a shared library.
11041compiler_lib_search_path=$lt_compiler_lib_search_path
11042
11043# Method to check whether dependent libraries are shared objects.
11044deplibs_check_method=$lt_deplibs_check_method
11045
11046# Command to use when deplibs_check_method == file_magic.
11047file_magic_cmd=$lt_file_magic_cmd
11048
11049# Flag that allows shared libraries with undefined symbols to be built.
11050allow_undefined_flag=$lt_allow_undefined_flag
11051
11052# Flag that forces no undefined symbols.
11053no_undefined_flag=$lt_no_undefined_flag
11054
11055# Commands used to finish a libtool library installation in a directory.
11056finish_cmds=$lt_finish_cmds
11057
11058# Same as above, but a single script fragment to be evaled but not shown.
11059finish_eval=$lt_finish_eval
11060
11061# Take the output of nm and produce a listing of raw symbols and C names.
11062global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11063
11064# Transform the output of nm in a proper C declaration
11065global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11066
11067# Transform the output of nm in a C name address pair
11068global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11069
11070# This is the shared library runtime path variable.
11071runpath_var=$runpath_var
11072
11073# This is the shared library path variable.
11074shlibpath_var=$shlibpath_var
11075
11076# Is shlibpath searched before the hard-coded library search path?
11077shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11078
11079# How to hardcode a shared library path into an executable.
11080hardcode_action=$hardcode_action
11081
11082# Whether we should hardcode library paths into libraries.
11083hardcode_into_libs=$hardcode_into_libs
11084
11085# Flag to hardcode \$libdir into a binary during linking.
11086# This must work even if \$libdir does not exist.
11087hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11088
11089# If ld is used when linking, flag to hardcode \$libdir into
11090# a binary during linking. This must work even if \$libdir does
11091# not exist.
11092hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11093
11094# Whether we need a single -rpath flag with a separated argument.
11095hardcode_libdir_separator=$lt_hardcode_libdir_separator
11096
11097# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11098# resulting binary.
11099hardcode_direct=$hardcode_direct
11100
11101# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11102# resulting binary.
11103hardcode_minus_L=$hardcode_minus_L
11104
11105# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11106# the resulting binary.
11107hardcode_shlibpath_var=$hardcode_shlibpath_var
11108
11109# Set to yes if building a shared library automatically hardcodes DIR into the library
11110# and all subsequent libraries and executables linked against it.
11111hardcode_automatic=$hardcode_automatic
11112
11113# Variables whose values should be saved in libtool wrapper scripts and
11114# restored at relink time.
11115variables_saved_for_relink="$variables_saved_for_relink"
11116
11117# Whether libtool must link a program against all its dependency libraries.
11118link_all_deplibs=$link_all_deplibs
11119
11120# Compile-time system search path for libraries
11121sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11122
11123# Run-time system search path for libraries
11124sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11125
11126# Fix the shell variable \$srcfile for the compiler.
11127fix_srcfile_path=$lt_fix_srcfile_path
11128
11129# Set to yes if exported symbols are required.
11130always_export_symbols=$always_export_symbols
11131
11132# The commands to list exported symbols.
11133export_symbols_cmds=$lt_export_symbols_cmds
11134
11135# The commands to extract the exported symbol list from a shared archive.
11136extract_expsyms_cmds=$lt_extract_expsyms_cmds
11137
11138# Symbols that should not be listed in the preloaded symbols.
11139exclude_expsyms=$lt_exclude_expsyms
11140
11141# Symbols that must always be exported.
11142include_expsyms=$lt_include_expsyms
11143
11144# ### END LIBTOOL CONFIG
11145
11146__EOF__
11147
11148
11149  case $host_os in
11150  aix3*)
11151    cat <<\EOF >> "$cfgfile"
11152
11153# AIX sometimes has problems with the GCC collect2 program.  For some
11154# reason, if we set the COLLECT_NAMES environment variable, the problems
11155# vanish in a puff of smoke.
11156if test "X${COLLECT_NAMES+set}" != Xset; then
11157  COLLECT_NAMES=
11158  export COLLECT_NAMES
11159fi
11160EOF
11161    ;;
11162  esac
11163
11164  # We use sed instead of cat because bash on DJGPP gets confused if
11165  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11166  # text mode, it properly converts lines to CR/LF.  This bash problem
11167  # is reportedly fixed, but why not run on old versions too?
11168  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11169
11170  mv -f "$cfgfile" "$ofile" || \
11171    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11172  chmod +x "$ofile"
11173
11174else
11175  # If there is no Makefile yet, we rely on a make rule to execute
11176  # `config.status --recheck' to rerun these tests and create the
11177  # libtool script then.
11178  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11179  if test -f "$ltmain_in"; then
11180    test -f Makefile && make "$ltmain"
11181  fi
11182fi
11183
11184
11185ac_ext=c
11186ac_cpp='$CPP $CPPFLAGS'
11187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11189ac_compiler_gnu=$ac_cv_c_compiler_gnu
11190
11191CC="$lt_save_CC"
11192
11193
11194# Check whether --with-tags was given.
11195if test "${with_tags+set}" = set; then
11196  withval=$with_tags; tagnames="$withval"
11197fi
11198
11199
11200if test -f "$ltmain" && test -n "$tagnames"; then
11201  if test ! -f "${ofile}"; then
11202    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11203echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11204  fi
11205
11206  if test -z "$LTCC"; then
11207    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11208    if test -z "$LTCC"; then
11209      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11210echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11211    else
11212      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11213echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11214    fi
11215  fi
11216  if test -z "$LTCFLAGS"; then
11217    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11218  fi
11219
11220  # Extract list of available tagged configurations in $ofile.
11221  # Note that this assumes the entire list is on one line.
11222  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11223
11224  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11225  for tagname in $tagnames; do
11226    IFS="$lt_save_ifs"
11227    # Check whether tagname contains only valid characters
11228    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11229    "") ;;
11230    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11231echo "$as_me: error: invalid tag name: $tagname" >&2;}
11232   { (exit 1); exit 1; }; }
11233	;;
11234    esac
11235
11236    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11237    then
11238      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11239echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11240   { (exit 1); exit 1; }; }
11241    fi
11242
11243    # Update the list of available tags.
11244    if test -n "$tagname"; then
11245      echo appending configuration tag \"$tagname\" to $ofile
11246
11247      case $tagname in
11248      CXX)
11249	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11250	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11251	    (test "X$CXX" != "Xg++"))) ; then
11252	  ac_ext=cpp
11253ac_cpp='$CXXCPP $CPPFLAGS'
11254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11257
11258
11259
11260
11261archive_cmds_need_lc_CXX=no
11262allow_undefined_flag_CXX=
11263always_export_symbols_CXX=no
11264archive_expsym_cmds_CXX=
11265export_dynamic_flag_spec_CXX=
11266hardcode_direct_CXX=no
11267hardcode_libdir_flag_spec_CXX=
11268hardcode_libdir_flag_spec_ld_CXX=
11269hardcode_libdir_separator_CXX=
11270hardcode_minus_L_CXX=no
11271hardcode_shlibpath_var_CXX=unsupported
11272hardcode_automatic_CXX=no
11273module_cmds_CXX=
11274module_expsym_cmds_CXX=
11275link_all_deplibs_CXX=unknown
11276old_archive_cmds_CXX=$old_archive_cmds
11277no_undefined_flag_CXX=
11278whole_archive_flag_spec_CXX=
11279enable_shared_with_static_runtimes_CXX=no
11280
11281# Dependencies to place before and after the object being linked:
11282predep_objects_CXX=
11283postdep_objects_CXX=
11284predeps_CXX=
11285postdeps_CXX=
11286compiler_lib_search_path_CXX=
11287
11288# Source file extension for C++ test sources.
11289ac_ext=cpp
11290
11291# Object file extension for compiled C++ test sources.
11292objext=o
11293objext_CXX=$objext
11294
11295# Code to be used in simple compile tests
11296lt_simple_compile_test_code="int some_variable = 0;"
11297
11298# Code to be used in simple link tests
11299lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11300
11301# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11302
11303# If no C compiler was specified, use CC.
11304LTCC=${LTCC-"$CC"}
11305
11306# If no C compiler flags were specified, use CFLAGS.
11307LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11308
11309# Allow CC to be a program name with arguments.
11310compiler=$CC
11311
11312
11313# save warnings/boilerplate of simple test code
11314ac_outfile=conftest.$ac_objext
11315echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11316eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11317_lt_compiler_boilerplate=`cat conftest.err`
11318$rm conftest*
11319
11320ac_outfile=conftest.$ac_objext
11321echo "$lt_simple_link_test_code" >conftest.$ac_ext
11322eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11323_lt_linker_boilerplate=`cat conftest.err`
11324$rm conftest*
11325
11326
11327# Allow CC to be a program name with arguments.
11328lt_save_CC=$CC
11329lt_save_LD=$LD
11330lt_save_GCC=$GCC
11331GCC=$GXX
11332lt_save_with_gnu_ld=$with_gnu_ld
11333lt_save_path_LD=$lt_cv_path_LD
11334if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11335  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11336else
11337  $as_unset lt_cv_prog_gnu_ld
11338fi
11339if test -n "${lt_cv_path_LDCXX+set}"; then
11340  lt_cv_path_LD=$lt_cv_path_LDCXX
11341else
11342  $as_unset lt_cv_path_LD
11343fi
11344test -z "${LDCXX+set}" || LD=$LDCXX
11345CC=${CXX-"c++"}
11346compiler=$CC
11347compiler_CXX=$CC
11348for cc_temp in $compiler""; do
11349  case $cc_temp in
11350    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11351    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11352    \-*) ;;
11353    *) break;;
11354  esac
11355done
11356cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11357
11358
11359# We don't want -fno-exception wen compiling C++ code, so set the
11360# no_builtin_flag separately
11361if test "$GXX" = yes; then
11362  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11363else
11364  lt_prog_compiler_no_builtin_flag_CXX=
11365fi
11366
11367if test "$GXX" = yes; then
11368  # Set up default GNU C++ configuration
11369
11370
11371# Check whether --with-gnu-ld was given.
11372if test "${with_gnu_ld+set}" = set; then
11373  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11374else
11375  with_gnu_ld=no
11376fi
11377
11378ac_prog=ld
11379if test "$GCC" = yes; then
11380  # Check if gcc -print-prog-name=ld gives a path.
11381  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11382echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11383  case $host in
11384  *-*-mingw*)
11385    # gcc leaves a trailing carriage return which upsets mingw
11386    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11387  *)
11388    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11389  esac
11390  case $ac_prog in
11391    # Accept absolute paths.
11392    [\\/]* | ?:[\\/]*)
11393      re_direlt='/[^/][^/]*/\.\./'
11394      # Canonicalize the pathname of ld
11395      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11396      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11397	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11398      done
11399      test -z "$LD" && LD="$ac_prog"
11400      ;;
11401  "")
11402    # If it fails, then pretend we aren't using GCC.
11403    ac_prog=ld
11404    ;;
11405  *)
11406    # If it is relative, then search for the first ld in PATH.
11407    with_gnu_ld=unknown
11408    ;;
11409  esac
11410elif test "$with_gnu_ld" = yes; then
11411  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11412echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11413else
11414  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11415echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11416fi
11417if test "${lt_cv_path_LD+set}" = set; then
11418  echo $ECHO_N "(cached) $ECHO_C" >&6
11419else
11420  if test -z "$LD"; then
11421  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11422  for ac_dir in $PATH; do
11423    IFS="$lt_save_ifs"
11424    test -z "$ac_dir" && ac_dir=.
11425    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11426      lt_cv_path_LD="$ac_dir/$ac_prog"
11427      # Check to see if the program is GNU ld.  I'd rather use --version,
11428      # but apparently some variants of GNU ld only accept -v.
11429      # Break only if it was the GNU/non-GNU ld that we prefer.
11430      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11431      *GNU* | *'with BFD'*)
11432	test "$with_gnu_ld" != no && break
11433	;;
11434      *)
11435	test "$with_gnu_ld" != yes && break
11436	;;
11437      esac
11438    fi
11439  done
11440  IFS="$lt_save_ifs"
11441else
11442  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11443fi
11444fi
11445
11446LD="$lt_cv_path_LD"
11447if test -n "$LD"; then
11448  { echo "$as_me:$LINENO: result: $LD" >&5
11449echo "${ECHO_T}$LD" >&6; }
11450else
11451  { echo "$as_me:$LINENO: result: no" >&5
11452echo "${ECHO_T}no" >&6; }
11453fi
11454test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11455echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11456   { (exit 1); exit 1; }; }
11457{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11458echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11459if test "${lt_cv_prog_gnu_ld+set}" = set; then
11460  echo $ECHO_N "(cached) $ECHO_C" >&6
11461else
11462  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11463case `$LD -v 2>&1 </dev/null` in
11464*GNU* | *'with BFD'*)
11465  lt_cv_prog_gnu_ld=yes
11466  ;;
11467*)
11468  lt_cv_prog_gnu_ld=no
11469  ;;
11470esac
11471fi
11472{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11473echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11474with_gnu_ld=$lt_cv_prog_gnu_ld
11475
11476
11477
11478  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11479  # archiving commands below assume that GNU ld is being used.
11480  if test "$with_gnu_ld" = yes; then
11481    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11482    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'
11483
11484    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11485    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11486
11487    # If archive_cmds runs LD, not CC, wlarc should be empty
11488    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11489    #     investigate it a little bit more. (MM)
11490    wlarc='${wl}'
11491
11492    # ancient GNU ld didn't support --whole-archive et. al.
11493    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11494	grep 'no-whole-archive' > /dev/null; then
11495      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11496    else
11497      whole_archive_flag_spec_CXX=
11498    fi
11499  else
11500    with_gnu_ld=no
11501    wlarc=
11502
11503    # A generic and very simple default shared library creation
11504    # command for GNU C++ for the case where it uses the native
11505    # linker, instead of GNU ld.  If possible, this setting should
11506    # overridden to take advantage of the native linker features on
11507    # the platform it is being used on.
11508    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11509  fi
11510
11511  # Commands to make compiler produce verbose output that lists
11512  # what "hidden" libraries, object files and flags are used when
11513  # linking a shared library.
11514  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11515
11516else
11517  GXX=no
11518  with_gnu_ld=no
11519  wlarc=
11520fi
11521
11522# PORTME: fill in a description of your system's C++ link characteristics
11523{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11524echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11525ld_shlibs_CXX=yes
11526case $host_os in
11527  aix3*)
11528    # FIXME: insert proper C++ library support
11529    ld_shlibs_CXX=no
11530    ;;
11531  aix4* | aix5*)
11532    if test "$host_cpu" = ia64; then
11533      # On IA64, the linker does run time linking by default, so we don't
11534      # have to do anything special.
11535      aix_use_runtimelinking=no
11536      exp_sym_flag='-Bexport'
11537      no_entry_flag=""
11538    else
11539      aix_use_runtimelinking=no
11540
11541      # Test if we are trying to use run time linking or normal
11542      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11543      # need to do runtime linking.
11544      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11545	for ld_flag in $LDFLAGS; do
11546	  case $ld_flag in
11547	  *-brtl*)
11548	    aix_use_runtimelinking=yes
11549	    break
11550	    ;;
11551	  esac
11552	done
11553	;;
11554      esac
11555
11556      exp_sym_flag='-bexport'
11557      no_entry_flag='-bnoentry'
11558    fi
11559
11560    # When large executables or shared objects are built, AIX ld can
11561    # have problems creating the table of contents.  If linking a library
11562    # or program results in "error TOC overflow" add -mminimal-toc to
11563    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11564    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11565
11566    archive_cmds_CXX=''
11567    hardcode_direct_CXX=yes
11568    hardcode_libdir_separator_CXX=':'
11569    link_all_deplibs_CXX=yes
11570
11571    if test "$GXX" = yes; then
11572      case $host_os in aix4.[012]|aix4.[012].*)
11573      # We only want to do this on AIX 4.2 and lower, the check
11574      # below for broken collect2 doesn't work under 4.3+
11575	collect2name=`${CC} -print-prog-name=collect2`
11576	if test -f "$collect2name" && \
11577	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11578	then
11579	  # We have reworked collect2
11580	  :
11581	else
11582	  # We have old collect2
11583	  hardcode_direct_CXX=unsupported
11584	  # It fails to find uninstalled libraries when the uninstalled
11585	  # path is not listed in the libpath.  Setting hardcode_minus_L
11586	  # to unsupported forces relinking
11587	  hardcode_minus_L_CXX=yes
11588	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11589	  hardcode_libdir_separator_CXX=
11590	fi
11591	;;
11592      esac
11593      shared_flag='-shared'
11594      if test "$aix_use_runtimelinking" = yes; then
11595	shared_flag="$shared_flag "'${wl}-G'
11596      fi
11597    else
11598      # not using gcc
11599      if test "$host_cpu" = ia64; then
11600	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11601	# chokes on -Wl,-G. The following line is correct:
11602	shared_flag='-G'
11603      else
11604	if test "$aix_use_runtimelinking" = yes; then
11605	  shared_flag='${wl}-G'
11606	else
11607	  shared_flag='${wl}-bM:SRE'
11608	fi
11609      fi
11610    fi
11611
11612    # It seems that -bexpall does not export symbols beginning with
11613    # underscore (_), so it is better to generate a list of symbols to export.
11614    always_export_symbols_CXX=yes
11615    if test "$aix_use_runtimelinking" = yes; then
11616      # Warning - without using the other runtime loading flags (-brtl),
11617      # -berok will link without error, but may produce a broken library.
11618      allow_undefined_flag_CXX='-berok'
11619      # Determine the default libpath from the value encoded in an empty executable.
11620      cat >conftest.$ac_ext <<_ACEOF
11621/* confdefs.h.  */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h.  */
11626
11627int
11628main ()
11629{
11630
11631  ;
11632  return 0;
11633}
11634_ACEOF
11635rm -f conftest.$ac_objext conftest$ac_exeext
11636if { (ac_try="$ac_link"
11637case "(($ac_try" in
11638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11639  *) ac_try_echo=$ac_try;;
11640esac
11641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11642  (eval "$ac_link") 2>conftest.er1
11643  ac_status=$?
11644  grep -v '^ *+' conftest.er1 >conftest.err
11645  rm -f conftest.er1
11646  cat conftest.err >&5
11647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648  (exit $ac_status); } && {
11649	 test -z "$ac_cxx_werror_flag" ||
11650	 test ! -s conftest.err
11651       } && test -s conftest$ac_exeext &&
11652       $as_test_x conftest$ac_exeext; then
11653
11654lt_aix_libpath_sed='
11655    /Import File Strings/,/^$/ {
11656	/^0/ {
11657	    s/^0  *\(.*\)$/\1/
11658	    p
11659	}
11660    }'
11661aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11662# Check for a 64-bit object if we didn't find anything.
11663if test -z "$aix_libpath"; then
11664  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11665fi
11666else
11667  echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670
11671fi
11672
11673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11674      conftest$ac_exeext conftest.$ac_ext
11675if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11676
11677      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11678
11679      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"
11680     else
11681      if test "$host_cpu" = ia64; then
11682	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11683	allow_undefined_flag_CXX="-z nodefs"
11684	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"
11685      else
11686	# Determine the default libpath from the value encoded in an empty executable.
11687	cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h.  */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h.  */
11693
11694int
11695main ()
11696{
11697
11698  ;
11699  return 0;
11700}
11701_ACEOF
11702rm -f conftest.$ac_objext conftest$ac_exeext
11703if { (ac_try="$ac_link"
11704case "(($ac_try" in
11705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706  *) ac_try_echo=$ac_try;;
11707esac
11708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709  (eval "$ac_link") 2>conftest.er1
11710  ac_status=$?
11711  grep -v '^ *+' conftest.er1 >conftest.err
11712  rm -f conftest.er1
11713  cat conftest.err >&5
11714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715  (exit $ac_status); } && {
11716	 test -z "$ac_cxx_werror_flag" ||
11717	 test ! -s conftest.err
11718       } && test -s conftest$ac_exeext &&
11719       $as_test_x conftest$ac_exeext; then
11720
11721lt_aix_libpath_sed='
11722    /Import File Strings/,/^$/ {
11723	/^0/ {
11724	    s/^0  *\(.*\)$/\1/
11725	    p
11726	}
11727    }'
11728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11729# Check for a 64-bit object if we didn't find anything.
11730if test -z "$aix_libpath"; then
11731  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11732fi
11733else
11734  echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
11737
11738fi
11739
11740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11741      conftest$ac_exeext conftest.$ac_ext
11742if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11743
11744	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11745	# Warning - without using the other run time loading flags,
11746	# -berok will link without error, but may produce a broken library.
11747	no_undefined_flag_CXX=' ${wl}-bernotok'
11748	allow_undefined_flag_CXX=' ${wl}-berok'
11749	# Exported symbols can be pulled into shared objects from archives
11750	whole_archive_flag_spec_CXX='$convenience'
11751	archive_cmds_need_lc_CXX=yes
11752	# This is similar to how AIX traditionally builds its shared libraries.
11753	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'
11754      fi
11755    fi
11756    ;;
11757
11758  beos*)
11759    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11760      allow_undefined_flag_CXX=unsupported
11761      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11762      # support --undefined.  This deserves some investigation.  FIXME
11763      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11764    else
11765      ld_shlibs_CXX=no
11766    fi
11767    ;;
11768
11769  chorus*)
11770    case $cc_basename in
11771      *)
11772	# FIXME: insert proper C++ library support
11773	ld_shlibs_CXX=no
11774	;;
11775    esac
11776    ;;
11777
11778  cygwin* | mingw* | pw32*)
11779    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11780    # as there is no search path for DLLs.
11781    hardcode_libdir_flag_spec_CXX='-L$libdir'
11782    allow_undefined_flag_CXX=unsupported
11783    always_export_symbols_CXX=no
11784    enable_shared_with_static_runtimes_CXX=yes
11785
11786    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11787      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'
11788      # If the export-symbols file already is a .def file (1st line
11789      # is EXPORTS), use it as is; otherwise, prepend...
11790      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11791	cp $export_symbols $output_objdir/$soname.def;
11792      else
11793	echo EXPORTS > $output_objdir/$soname.def;
11794	cat $export_symbols >> $output_objdir/$soname.def;
11795      fi~
11796      $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'
11797    else
11798      ld_shlibs_CXX=no
11799    fi
11800  ;;
11801      darwin* | rhapsody*)
11802        case $host_os in
11803        rhapsody* | darwin1.[012])
11804         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11805         ;;
11806       *) # Darwin 1.3 on
11807         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11808           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11809         else
11810           case ${MACOSX_DEPLOYMENT_TARGET} in
11811             10.[012])
11812               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11813               ;;
11814             10.*)
11815               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11816               ;;
11817           esac
11818         fi
11819         ;;
11820        esac
11821      archive_cmds_need_lc_CXX=no
11822      hardcode_direct_CXX=no
11823      hardcode_automatic_CXX=yes
11824      hardcode_shlibpath_var_CXX=unsupported
11825      whole_archive_flag_spec_CXX=''
11826      link_all_deplibs_CXX=yes
11827
11828    if test "$GXX" = yes ; then
11829      lt_int_apple_cc_single_mod=no
11830      output_verbose_link_cmd='echo'
11831      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11832       lt_int_apple_cc_single_mod=yes
11833      fi
11834      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11835       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11836      else
11837          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'
11838        fi
11839        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11840        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11841          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11842            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}'
11843          else
11844            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}'
11845          fi
11846            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}'
11847      else
11848      case $cc_basename in
11849        xlc*)
11850         output_verbose_link_cmd='echo'
11851          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11852          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11853          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11854          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11855          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}'
11856          ;;
11857       *)
11858         ld_shlibs_CXX=no
11859          ;;
11860      esac
11861      fi
11862        ;;
11863
11864  dgux*)
11865    case $cc_basename in
11866      ec++*)
11867	# FIXME: insert proper C++ library support
11868	ld_shlibs_CXX=no
11869	;;
11870      ghcx*)
11871	# Green Hills C++ Compiler
11872	# FIXME: insert proper C++ library support
11873	ld_shlibs_CXX=no
11874	;;
11875      *)
11876	# FIXME: insert proper C++ library support
11877	ld_shlibs_CXX=no
11878	;;
11879    esac
11880    ;;
11881  freebsd[12]*)
11882    # C++ shared libraries reported to be fairly broken before switch to ELF
11883    ld_shlibs_CXX=no
11884    ;;
11885  freebsd-elf*)
11886    archive_cmds_need_lc_CXX=no
11887    ;;
11888  freebsd* | dragonfly*)
11889    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11890    # conventions
11891    ld_shlibs_CXX=yes
11892    ;;
11893  gnu*)
11894    ;;
11895  hpux9*)
11896    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11897    hardcode_libdir_separator_CXX=:
11898    export_dynamic_flag_spec_CXX='${wl}-E'
11899    hardcode_direct_CXX=yes
11900    hardcode_minus_L_CXX=yes # Not in the search PATH,
11901				# but as the default
11902				# location of the library.
11903
11904    case $cc_basename in
11905    CC*)
11906      # FIXME: insert proper C++ library support
11907      ld_shlibs_CXX=no
11908      ;;
11909    aCC*)
11910      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'
11911      # Commands to make compiler produce verbose output that lists
11912      # what "hidden" libraries, object files and flags are used when
11913      # linking a shared library.
11914      #
11915      # There doesn't appear to be a way to prevent this compiler from
11916      # explicitly linking system object files so we need to strip them
11917      # from the output so that they don't get included in the library
11918      # dependencies.
11919      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'
11920      ;;
11921    *)
11922      if test "$GXX" = yes; then
11923        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'
11924      else
11925        # FIXME: insert proper C++ library support
11926        ld_shlibs_CXX=no
11927      fi
11928      ;;
11929    esac
11930    ;;
11931  hpux10*|hpux11*)
11932    if test $with_gnu_ld = no; then
11933      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11934      hardcode_libdir_separator_CXX=:
11935
11936      case $host_cpu in
11937      hppa*64*|ia64*) ;;
11938      *)
11939	export_dynamic_flag_spec_CXX='${wl}-E'
11940        ;;
11941      esac
11942    fi
11943    case $host_cpu in
11944    hppa*64*|ia64*)
11945      hardcode_direct_CXX=no
11946      hardcode_shlibpath_var_CXX=no
11947      ;;
11948    *)
11949      hardcode_direct_CXX=yes
11950      hardcode_minus_L_CXX=yes # Not in the search PATH,
11951					      # but as the default
11952					      # location of the library.
11953      ;;
11954    esac
11955
11956    case $cc_basename in
11957      CC*)
11958	# FIXME: insert proper C++ library support
11959	ld_shlibs_CXX=no
11960	;;
11961      aCC*)
11962	case $host_cpu in
11963	hppa*64*)
11964	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11965	  ;;
11966	ia64*)
11967	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11968	  ;;
11969	*)
11970	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11971	  ;;
11972	esac
11973	# Commands to make compiler produce verbose output that lists
11974	# what "hidden" libraries, object files and flags are used when
11975	# linking a shared library.
11976	#
11977	# There doesn't appear to be a way to prevent this compiler from
11978	# explicitly linking system object files so we need to strip them
11979	# from the output so that they don't get included in the library
11980	# dependencies.
11981	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'
11982	;;
11983      *)
11984	if test "$GXX" = yes; then
11985	  if test $with_gnu_ld = no; then
11986	    case $host_cpu in
11987	    hppa*64*)
11988	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11989	      ;;
11990	    ia64*)
11991	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11992	      ;;
11993	    *)
11994	      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'
11995	      ;;
11996	    esac
11997	  fi
11998	else
11999	  # FIXME: insert proper C++ library support
12000	  ld_shlibs_CXX=no
12001	fi
12002	;;
12003    esac
12004    ;;
12005  interix[3-9]*)
12006    hardcode_direct_CXX=no
12007    hardcode_shlibpath_var_CXX=no
12008    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12009    export_dynamic_flag_spec_CXX='${wl}-E'
12010    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12011    # Instead, shared libraries are loaded at an image base (0x10000000 by
12012    # default) and relocated if they conflict, which is a slow very memory
12013    # consuming and fragmenting process.  To avoid this, we pick a random,
12014    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12015    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12016    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'
12017    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'
12018    ;;
12019  irix5* | irix6*)
12020    case $cc_basename in
12021      CC*)
12022	# SGI C++
12023	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'
12024
12025	# Archives containing C++ object files must be created using
12026	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12027	# necessary to make sure instantiated templates are included
12028	# in the archive.
12029	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12030	;;
12031      *)
12032	if test "$GXX" = yes; then
12033	  if test "$with_gnu_ld" = no; then
12034	    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'
12035	  else
12036	    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'
12037	  fi
12038	fi
12039	link_all_deplibs_CXX=yes
12040	;;
12041    esac
12042    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12043    hardcode_libdir_separator_CXX=:
12044    ;;
12045  linux* | k*bsd*-gnu)
12046    case $cc_basename in
12047      KCC*)
12048	# Kuck and Associates, Inc. (KAI) C++ Compiler
12049
12050	# KCC will only create a shared library if the output file
12051	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12052	# to its proper name (with version) after linking.
12053	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'
12054	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'
12055	# Commands to make compiler produce verbose output that lists
12056	# what "hidden" libraries, object files and flags are used when
12057	# linking a shared library.
12058	#
12059	# There doesn't appear to be a way to prevent this compiler from
12060	# explicitly linking system object files so we need to strip them
12061	# from the output so that they don't get included in the library
12062	# dependencies.
12063	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'
12064
12065	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12066	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12067
12068	# Archives containing C++ object files must be created using
12069	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12070	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12071	;;
12072      icpc*)
12073	# Intel C++
12074	with_gnu_ld=yes
12075	# version 8.0 and above of icpc choke on multiply defined symbols
12076	# if we add $predep_objects and $postdep_objects, however 7.1 and
12077	# earlier do not add the objects themselves.
12078	case `$CC -V 2>&1` in
12079	*"Version 7."*)
12080  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12081  	  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'
12082	  ;;
12083	*)  # Version 8.0 or newer
12084	  tmp_idyn=
12085	  case $host_cpu in
12086	    ia64*) tmp_idyn=' -i_dynamic';;
12087	  esac
12088  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12089	  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'
12090	  ;;
12091	esac
12092	archive_cmds_need_lc_CXX=no
12093	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12094	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12095	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12096	;;
12097      pgCC*)
12098        # Portland Group C++ compiler
12099	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12100  	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'
12101
12102	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12103	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12104	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'
12105        ;;
12106      cxx*)
12107	# Compaq C++
12108	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12109	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'
12110
12111	runpath_var=LD_RUN_PATH
12112	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12113	hardcode_libdir_separator_CXX=:
12114
12115	# Commands to make compiler produce verbose output that lists
12116	# what "hidden" libraries, object files and flags are used when
12117	# linking a shared library.
12118	#
12119	# There doesn't appear to be a way to prevent this compiler from
12120	# explicitly linking system object files so we need to strip them
12121	# from the output so that they don't get included in the library
12122	# dependencies.
12123	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'
12124	;;
12125      *)
12126	case `$CC -V 2>&1 | sed 5q` in
12127	*Sun\ C*)
12128	  # Sun C++ 5.9
12129	  no_undefined_flag_CXX=' -zdefs'
12130	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12131	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12132	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12133	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12134
12135	  # Not sure whether something based on
12136	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12137	  # would be better.
12138	  output_verbose_link_cmd='echo'
12139
12140	  # Archives containing C++ object files must be created using
12141	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12142	  # necessary to make sure instantiated templates are included
12143	  # in the archive.
12144	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12145	  ;;
12146	esac
12147	;;
12148    esac
12149    ;;
12150  lynxos*)
12151    # FIXME: insert proper C++ library support
12152    ld_shlibs_CXX=no
12153    ;;
12154  m88k*)
12155    # FIXME: insert proper C++ library support
12156    ld_shlibs_CXX=no
12157    ;;
12158  mvs*)
12159    case $cc_basename in
12160      cxx*)
12161	# FIXME: insert proper C++ library support
12162	ld_shlibs_CXX=no
12163	;;
12164      *)
12165	# FIXME: insert proper C++ library support
12166	ld_shlibs_CXX=no
12167	;;
12168    esac
12169    ;;
12170  netbsd*)
12171    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12172      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12173      wlarc=
12174      hardcode_libdir_flag_spec_CXX='-R$libdir'
12175      hardcode_direct_CXX=yes
12176      hardcode_shlibpath_var_CXX=no
12177    fi
12178    # Workaround some broken pre-1.5 toolchains
12179    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12180    ;;
12181  openbsd2*)
12182    # C++ shared libraries are fairly broken
12183    ld_shlibs_CXX=no
12184    ;;
12185  openbsd*)
12186    if test -f /usr/libexec/ld.so; then
12187      hardcode_direct_CXX=yes
12188      hardcode_shlibpath_var_CXX=no
12189      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12190      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12191      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12192	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12193	export_dynamic_flag_spec_CXX='${wl}-E'
12194	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12195      fi
12196      output_verbose_link_cmd='echo'
12197    else
12198      ld_shlibs_CXX=no
12199    fi
12200    ;;
12201  osf3*)
12202    case $cc_basename in
12203      KCC*)
12204	# Kuck and Associates, Inc. (KAI) C++ Compiler
12205
12206	# KCC will only create a shared library if the output file
12207	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12208	# to its proper name (with version) after linking.
12209	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'
12210
12211	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12212	hardcode_libdir_separator_CXX=:
12213
12214	# Archives containing C++ object files must be created using
12215	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12216	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12217
12218	;;
12219      RCC*)
12220	# Rational C++ 2.4.1
12221	# FIXME: insert proper C++ library support
12222	ld_shlibs_CXX=no
12223	;;
12224      cxx*)
12225	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12226	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'
12227
12228	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12229	hardcode_libdir_separator_CXX=:
12230
12231	# Commands to make compiler produce verbose output that lists
12232	# what "hidden" libraries, object files and flags are used when
12233	# linking a shared library.
12234	#
12235	# There doesn't appear to be a way to prevent this compiler from
12236	# explicitly linking system object files so we need to strip them
12237	# from the output so that they don't get included in the library
12238	# dependencies.
12239	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'
12240	;;
12241      *)
12242	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12243	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12244	  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'
12245
12246	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12247	  hardcode_libdir_separator_CXX=:
12248
12249	  # Commands to make compiler produce verbose output that lists
12250	  # what "hidden" libraries, object files and flags are used when
12251	  # linking a shared library.
12252	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12253
12254	else
12255	  # FIXME: insert proper C++ library support
12256	  ld_shlibs_CXX=no
12257	fi
12258	;;
12259    esac
12260    ;;
12261  osf4* | osf5*)
12262    case $cc_basename in
12263      KCC*)
12264	# Kuck and Associates, Inc. (KAI) C++ Compiler
12265
12266	# KCC will only create a shared library if the output file
12267	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12268	# to its proper name (with version) after linking.
12269	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'
12270
12271	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12272	hardcode_libdir_separator_CXX=:
12273
12274	# Archives containing C++ object files must be created using
12275	# the KAI C++ compiler.
12276	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12277	;;
12278      RCC*)
12279	# Rational C++ 2.4.1
12280	# FIXME: insert proper C++ library support
12281	ld_shlibs_CXX=no
12282	;;
12283      cxx*)
12284	allow_undefined_flag_CXX=' -expect_unresolved \*'
12285	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'
12286	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12287	  echo "-hidden">> $lib.exp~
12288	  $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~
12289	  $rm $lib.exp'
12290
12291	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12292	hardcode_libdir_separator_CXX=:
12293
12294	# Commands to make compiler produce verbose output that lists
12295	# what "hidden" libraries, object files and flags are used when
12296	# linking a shared library.
12297	#
12298	# There doesn't appear to be a way to prevent this compiler from
12299	# explicitly linking system object files so we need to strip them
12300	# from the output so that they don't get included in the library
12301	# dependencies.
12302	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'
12303	;;
12304      *)
12305	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12306	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12307	 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'
12308
12309	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12310	  hardcode_libdir_separator_CXX=:
12311
12312	  # Commands to make compiler produce verbose output that lists
12313	  # what "hidden" libraries, object files and flags are used when
12314	  # linking a shared library.
12315	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12316
12317	else
12318	  # FIXME: insert proper C++ library support
12319	  ld_shlibs_CXX=no
12320	fi
12321	;;
12322    esac
12323    ;;
12324  psos*)
12325    # FIXME: insert proper C++ library support
12326    ld_shlibs_CXX=no
12327    ;;
12328  sunos4*)
12329    case $cc_basename in
12330      CC*)
12331	# Sun C++ 4.x
12332	# FIXME: insert proper C++ library support
12333	ld_shlibs_CXX=no
12334	;;
12335      lcc*)
12336	# Lucid
12337	# FIXME: insert proper C++ library support
12338	ld_shlibs_CXX=no
12339	;;
12340      *)
12341	# FIXME: insert proper C++ library support
12342	ld_shlibs_CXX=no
12343	;;
12344    esac
12345    ;;
12346  solaris*)
12347    case $cc_basename in
12348      CC*)
12349	# Sun C++ 4.2, 5.x and Centerline C++
12350        archive_cmds_need_lc_CXX=yes
12351	no_undefined_flag_CXX=' -zdefs'
12352	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12353	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12354	$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'
12355
12356	hardcode_libdir_flag_spec_CXX='-R$libdir'
12357	hardcode_shlibpath_var_CXX=no
12358	case $host_os in
12359	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12360	  *)
12361	    # The compiler driver will combine and reorder linker options,
12362	    # but understands `-z linker_flag'.
12363	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12364	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12365	    ;;
12366	esac
12367	link_all_deplibs_CXX=yes
12368
12369	output_verbose_link_cmd='echo'
12370
12371	# Archives containing C++ object files must be created using
12372	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12373	# necessary to make sure instantiated templates are included
12374	# in the archive.
12375	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12376	;;
12377      gcx*)
12378	# Green Hills C++ Compiler
12379	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12380
12381	# The C++ compiler must be used to create the archive.
12382	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12383	;;
12384      *)
12385	# GNU C++ compiler with Solaris linker
12386	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12387	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12388	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12389	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12390	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12391		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12392
12393	    # Commands to make compiler produce verbose output that lists
12394	    # what "hidden" libraries, object files and flags are used when
12395	    # linking a shared library.
12396	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12397	  else
12398	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12399	    # platform.
12400	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12401	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12402		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12403
12404	    # Commands to make compiler produce verbose output that lists
12405	    # what "hidden" libraries, object files and flags are used when
12406	    # linking a shared library.
12407	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12408	  fi
12409
12410	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12411	  case $host_os in
12412	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12413	  *)
12414	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12415	    ;;
12416	  esac
12417	fi
12418	;;
12419    esac
12420    ;;
12421  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12422    no_undefined_flag_CXX='${wl}-z,text'
12423    archive_cmds_need_lc_CXX=no
12424    hardcode_shlibpath_var_CXX=no
12425    runpath_var='LD_RUN_PATH'
12426
12427    case $cc_basename in
12428      CC*)
12429	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12430	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12431	;;
12432      *)
12433	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12434	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12435	;;
12436    esac
12437    ;;
12438  sysv5* | sco3.2v5* | sco5v6*)
12439    # Note: We can NOT use -z defs as we might desire, because we do not
12440    # link with -lc, and that would cause any symbols used from libc to
12441    # always be unresolved, which means just about no library would
12442    # ever link correctly.  If we're not using GNU ld we use -z text
12443    # though, which does catch some bad symbols but isn't as heavy-handed
12444    # as -z defs.
12445    # For security reasons, it is highly recommended that you always
12446    # use absolute paths for naming shared libraries, and exclude the
12447    # DT_RUNPATH tag from executables and libraries.  But doing so
12448    # requires that you compile everything twice, which is a pain.
12449    # So that behaviour is only enabled if SCOABSPATH is set to a
12450    # non-empty value in the environment.  Most likely only useful for
12451    # creating official distributions of packages.
12452    # This is a hack until libtool officially supports absolute path
12453    # names for shared libraries.
12454    no_undefined_flag_CXX='${wl}-z,text'
12455    allow_undefined_flag_CXX='${wl}-z,nodefs'
12456    archive_cmds_need_lc_CXX=no
12457    hardcode_shlibpath_var_CXX=no
12458    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12459    hardcode_libdir_separator_CXX=':'
12460    link_all_deplibs_CXX=yes
12461    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12462    runpath_var='LD_RUN_PATH'
12463
12464    case $cc_basename in
12465      CC*)
12466	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12467	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12468	;;
12469      *)
12470	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12471	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12472	;;
12473    esac
12474    ;;
12475  tandem*)
12476    case $cc_basename in
12477      NCC*)
12478	# NonStop-UX NCC 3.20
12479	# FIXME: insert proper C++ library support
12480	ld_shlibs_CXX=no
12481	;;
12482      *)
12483	# FIXME: insert proper C++ library support
12484	ld_shlibs_CXX=no
12485	;;
12486    esac
12487    ;;
12488  vxworks*)
12489    # FIXME: insert proper C++ library support
12490    ld_shlibs_CXX=no
12491    ;;
12492  *)
12493    # FIXME: insert proper C++ library support
12494    ld_shlibs_CXX=no
12495    ;;
12496esac
12497{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12498echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12499test "$ld_shlibs_CXX" = no && can_build_shared=no
12500
12501GCC_CXX="$GXX"
12502LD_CXX="$LD"
12503
12504
12505cat > conftest.$ac_ext <<EOF
12506class Foo
12507{
12508public:
12509  Foo (void) { a = 0; }
12510private:
12511  int a;
12512};
12513EOF
12514
12515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516  (eval $ac_compile) 2>&5
12517  ac_status=$?
12518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519  (exit $ac_status); }; then
12520  # Parse the compiler output and extract the necessary
12521  # objects, libraries and library flags.
12522
12523  # Sentinel used to keep track of whether or not we are before
12524  # the conftest object file.
12525  pre_test_object_deps_done=no
12526
12527  # The `*' in the case matches for architectures that use `case' in
12528  # $output_verbose_cmd can trigger glob expansion during the loop
12529  # eval without this substitution.
12530  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12531
12532  for p in `eval $output_verbose_link_cmd`; do
12533    case $p in
12534
12535    -L* | -R* | -l*)
12536       # Some compilers place space between "-{L,R}" and the path.
12537       # Remove the space.
12538       if test $p = "-L" \
12539	  || test $p = "-R"; then
12540	 prev=$p
12541	 continue
12542       else
12543	 prev=
12544       fi
12545
12546       if test "$pre_test_object_deps_done" = no; then
12547	 case $p in
12548	 -L* | -R*)
12549	   # Internal compiler library paths should come after those
12550	   # provided the user.  The postdeps already come after the
12551	   # user supplied libs so there is no need to process them.
12552	   if test -z "$compiler_lib_search_path_CXX"; then
12553	     compiler_lib_search_path_CXX="${prev}${p}"
12554	   else
12555	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12556	   fi
12557	   ;;
12558	 # The "-l" case would never come before the object being
12559	 # linked, so don't bother handling this case.
12560	 esac
12561       else
12562	 if test -z "$postdeps_CXX"; then
12563	   postdeps_CXX="${prev}${p}"
12564	 else
12565	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12566	 fi
12567       fi
12568       ;;
12569
12570    *.$objext)
12571       # This assumes that the test object file only shows up
12572       # once in the compiler output.
12573       if test "$p" = "conftest.$objext"; then
12574	 pre_test_object_deps_done=yes
12575	 continue
12576       fi
12577
12578       if test "$pre_test_object_deps_done" = no; then
12579	 if test -z "$predep_objects_CXX"; then
12580	   predep_objects_CXX="$p"
12581	 else
12582	   predep_objects_CXX="$predep_objects_CXX $p"
12583	 fi
12584       else
12585	 if test -z "$postdep_objects_CXX"; then
12586	   postdep_objects_CXX="$p"
12587	 else
12588	   postdep_objects_CXX="$postdep_objects_CXX $p"
12589	 fi
12590       fi
12591       ;;
12592
12593    *) ;; # Ignore the rest.
12594
12595    esac
12596  done
12597
12598  # Clean up.
12599  rm -f a.out a.exe
12600else
12601  echo "libtool.m4: error: problem compiling CXX test program"
12602fi
12603
12604$rm -f confest.$objext
12605
12606# PORTME: override above test on systems where it is broken
12607case $host_os in
12608interix[3-9]*)
12609  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12610  # hack all around it, let's just trust "g++" to DTRT.
12611  predep_objects_CXX=
12612  postdep_objects_CXX=
12613  postdeps_CXX=
12614  ;;
12615
12616linux*)
12617  case `$CC -V 2>&1 | sed 5q` in
12618  *Sun\ C*)
12619    # Sun C++ 5.9
12620    #
12621    # The more standards-conforming stlport4 library is
12622    # incompatible with the Cstd library. Avoid specifying
12623    # it if it's in CXXFLAGS. Ignore libCrun as
12624    # -library=stlport4 depends on it.
12625    case " $CXX $CXXFLAGS " in
12626    *" -library=stlport4 "*)
12627      solaris_use_stlport4=yes
12628      ;;
12629    esac
12630    if test "$solaris_use_stlport4" != yes; then
12631      postdeps_CXX='-library=Cstd -library=Crun'
12632    fi
12633    ;;
12634  esac
12635  ;;
12636
12637solaris*)
12638  case $cc_basename in
12639  CC*)
12640    # The more standards-conforming stlport4 library is
12641    # incompatible with the Cstd library. Avoid specifying
12642    # it if it's in CXXFLAGS. Ignore libCrun as
12643    # -library=stlport4 depends on it.
12644    case " $CXX $CXXFLAGS " in
12645    *" -library=stlport4 "*)
12646      solaris_use_stlport4=yes
12647      ;;
12648    esac
12649
12650    # Adding this requires a known-good setup of shared libraries for
12651    # Sun compiler versions before 5.6, else PIC objects from an old
12652    # archive will be linked into the output, leading to subtle bugs.
12653    if test "$solaris_use_stlport4" != yes; then
12654      postdeps_CXX='-library=Cstd -library=Crun'
12655    fi
12656    ;;
12657  esac
12658  ;;
12659esac
12660
12661
12662case " $postdeps_CXX " in
12663*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12664esac
12665
12666lt_prog_compiler_wl_CXX=
12667lt_prog_compiler_pic_CXX=
12668lt_prog_compiler_static_CXX=
12669
12670{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12671echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12672
12673  # C++ specific cases for pic, static, wl, etc.
12674  if test "$GXX" = yes; then
12675    lt_prog_compiler_wl_CXX='-Wl,'
12676    lt_prog_compiler_static_CXX='-static'
12677
12678    case $host_os in
12679    aix*)
12680      # All AIX code is PIC.
12681      if test "$host_cpu" = ia64; then
12682	# AIX 5 now supports IA64 processor
12683	lt_prog_compiler_static_CXX='-Bstatic'
12684      fi
12685      ;;
12686    amigaos*)
12687      # FIXME: we need at least 68020 code to build shared libraries, but
12688      # adding the `-m68020' flag to GCC prevents building anything better,
12689      # like `-m68040'.
12690      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12691      ;;
12692    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12693      # PIC is the default for these OSes.
12694      ;;
12695    mingw* | cygwin* | os2* | pw32*)
12696      # This hack is so that the source file can tell whether it is being
12697      # built for inclusion in a dll (and should export symbols for example).
12698      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12699      # (--disable-auto-import) libraries
12700      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12701      ;;
12702    darwin* | rhapsody*)
12703      # PIC is the default on this platform
12704      # Common symbols not allowed in MH_DYLIB files
12705      lt_prog_compiler_pic_CXX='-fno-common'
12706      ;;
12707    *djgpp*)
12708      # DJGPP does not support shared libraries at all
12709      lt_prog_compiler_pic_CXX=
12710      ;;
12711    interix[3-9]*)
12712      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12713      # Instead, we relocate shared libraries at runtime.
12714      ;;
12715    sysv4*MP*)
12716      if test -d /usr/nec; then
12717	lt_prog_compiler_pic_CXX=-Kconform_pic
12718      fi
12719      ;;
12720    hpux*)
12721      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12722      # not for PA HP-UX.
12723      case $host_cpu in
12724      hppa*64*|ia64*)
12725	;;
12726      *)
12727	lt_prog_compiler_pic_CXX='-fPIC'
12728	;;
12729      esac
12730      ;;
12731    *)
12732      lt_prog_compiler_pic_CXX='-fPIC'
12733      ;;
12734    esac
12735  else
12736    case $host_os in
12737      aix4* | aix5*)
12738	# All AIX code is PIC.
12739	if test "$host_cpu" = ia64; then
12740	  # AIX 5 now supports IA64 processor
12741	  lt_prog_compiler_static_CXX='-Bstatic'
12742	else
12743	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12744	fi
12745	;;
12746      chorus*)
12747	case $cc_basename in
12748	cxch68*)
12749	  # Green Hills C++ Compiler
12750	  # _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"
12751	  ;;
12752	esac
12753	;;
12754       darwin*)
12755         # PIC is the default on this platform
12756         # Common symbols not allowed in MH_DYLIB files
12757         case $cc_basename in
12758           xlc*)
12759           lt_prog_compiler_pic_CXX='-qnocommon'
12760           lt_prog_compiler_wl_CXX='-Wl,'
12761           ;;
12762         esac
12763       ;;
12764      dgux*)
12765	case $cc_basename in
12766	  ec++*)
12767	    lt_prog_compiler_pic_CXX='-KPIC'
12768	    ;;
12769	  ghcx*)
12770	    # Green Hills C++ Compiler
12771	    lt_prog_compiler_pic_CXX='-pic'
12772	    ;;
12773	  *)
12774	    ;;
12775	esac
12776	;;
12777      freebsd* | dragonfly*)
12778	# FreeBSD uses GNU C++
12779	;;
12780      hpux9* | hpux10* | hpux11*)
12781	case $cc_basename in
12782	  CC*)
12783	    lt_prog_compiler_wl_CXX='-Wl,'
12784	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12785	    if test "$host_cpu" != ia64; then
12786	      lt_prog_compiler_pic_CXX='+Z'
12787	    fi
12788	    ;;
12789	  aCC*)
12790	    lt_prog_compiler_wl_CXX='-Wl,'
12791	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12792	    case $host_cpu in
12793	    hppa*64*|ia64*)
12794	      # +Z the default
12795	      ;;
12796	    *)
12797	      lt_prog_compiler_pic_CXX='+Z'
12798	      ;;
12799	    esac
12800	    ;;
12801	  *)
12802	    ;;
12803	esac
12804	;;
12805      interix*)
12806	# This is c89, which is MS Visual C++ (no shared libs)
12807	# Anyone wants to do a port?
12808	;;
12809      irix5* | irix6* | nonstopux*)
12810	case $cc_basename in
12811	  CC*)
12812	    lt_prog_compiler_wl_CXX='-Wl,'
12813	    lt_prog_compiler_static_CXX='-non_shared'
12814	    # CC pic flag -KPIC is the default.
12815	    ;;
12816	  *)
12817	    ;;
12818	esac
12819	;;
12820      linux* | k*bsd*-gnu)
12821	case $cc_basename in
12822	  KCC*)
12823	    # KAI C++ Compiler
12824	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12825	    lt_prog_compiler_pic_CXX='-fPIC'
12826	    ;;
12827	  icpc* | ecpc*)
12828	    # Intel C++
12829	    lt_prog_compiler_wl_CXX='-Wl,'
12830	    lt_prog_compiler_pic_CXX='-KPIC'
12831	    lt_prog_compiler_static_CXX='-static'
12832	    ;;
12833	  pgCC*)
12834	    # Portland Group C++ compiler.
12835	    lt_prog_compiler_wl_CXX='-Wl,'
12836	    lt_prog_compiler_pic_CXX='-fpic'
12837	    lt_prog_compiler_static_CXX='-Bstatic'
12838	    ;;
12839	  cxx*)
12840	    # Compaq C++
12841	    # Make sure the PIC flag is empty.  It appears that all Alpha
12842	    # Linux and Compaq Tru64 Unix objects are PIC.
12843	    lt_prog_compiler_pic_CXX=
12844	    lt_prog_compiler_static_CXX='-non_shared'
12845	    ;;
12846	  *)
12847	    case `$CC -V 2>&1 | sed 5q` in
12848	    *Sun\ C*)
12849	      # Sun C++ 5.9
12850	      lt_prog_compiler_pic_CXX='-KPIC'
12851	      lt_prog_compiler_static_CXX='-Bstatic'
12852	      lt_prog_compiler_wl_CXX='-Qoption ld '
12853	      ;;
12854	    esac
12855	    ;;
12856	esac
12857	;;
12858      lynxos*)
12859	;;
12860      m88k*)
12861	;;
12862      mvs*)
12863	case $cc_basename in
12864	  cxx*)
12865	    lt_prog_compiler_pic_CXX='-W c,exportall'
12866	    ;;
12867	  *)
12868	    ;;
12869	esac
12870	;;
12871      netbsd*)
12872	;;
12873      osf3* | osf4* | osf5*)
12874	case $cc_basename in
12875	  KCC*)
12876	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12877	    ;;
12878	  RCC*)
12879	    # Rational C++ 2.4.1
12880	    lt_prog_compiler_pic_CXX='-pic'
12881	    ;;
12882	  cxx*)
12883	    # Digital/Compaq C++
12884	    lt_prog_compiler_wl_CXX='-Wl,'
12885	    # Make sure the PIC flag is empty.  It appears that all Alpha
12886	    # Linux and Compaq Tru64 Unix objects are PIC.
12887	    lt_prog_compiler_pic_CXX=
12888	    lt_prog_compiler_static_CXX='-non_shared'
12889	    ;;
12890	  *)
12891	    ;;
12892	esac
12893	;;
12894      psos*)
12895	;;
12896      solaris*)
12897	case $cc_basename in
12898	  CC*)
12899	    # Sun C++ 4.2, 5.x and Centerline C++
12900	    lt_prog_compiler_pic_CXX='-KPIC'
12901	    lt_prog_compiler_static_CXX='-Bstatic'
12902	    lt_prog_compiler_wl_CXX='-Qoption ld '
12903	    ;;
12904	  gcx*)
12905	    # Green Hills C++ Compiler
12906	    lt_prog_compiler_pic_CXX='-PIC'
12907	    ;;
12908	  *)
12909	    ;;
12910	esac
12911	;;
12912      sunos4*)
12913	case $cc_basename in
12914	  CC*)
12915	    # Sun C++ 4.x
12916	    lt_prog_compiler_pic_CXX='-pic'
12917	    lt_prog_compiler_static_CXX='-Bstatic'
12918	    ;;
12919	  lcc*)
12920	    # Lucid
12921	    lt_prog_compiler_pic_CXX='-pic'
12922	    ;;
12923	  *)
12924	    ;;
12925	esac
12926	;;
12927      tandem*)
12928	case $cc_basename in
12929	  NCC*)
12930	    # NonStop-UX NCC 3.20
12931	    lt_prog_compiler_pic_CXX='-KPIC'
12932	    ;;
12933	  *)
12934	    ;;
12935	esac
12936	;;
12937      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12938	case $cc_basename in
12939	  CC*)
12940	    lt_prog_compiler_wl_CXX='-Wl,'
12941	    lt_prog_compiler_pic_CXX='-KPIC'
12942	    lt_prog_compiler_static_CXX='-Bstatic'
12943	    ;;
12944	esac
12945	;;
12946      vxworks*)
12947	;;
12948      *)
12949	lt_prog_compiler_can_build_shared_CXX=no
12950	;;
12951    esac
12952  fi
12953
12954{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12955echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12956
12957#
12958# Check to make sure the PIC flag actually works.
12959#
12960if test -n "$lt_prog_compiler_pic_CXX"; then
12961
12962{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12963echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12964if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12965  echo $ECHO_N "(cached) $ECHO_C" >&6
12966else
12967  lt_prog_compiler_pic_works_CXX=no
12968  ac_outfile=conftest.$ac_objext
12969   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12970   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12971   # Insert the option either (1) after the last *FLAGS variable, or
12972   # (2) before a word containing "conftest.", or (3) at the end.
12973   # Note that $ac_compile itself does not contain backslashes and begins
12974   # with a dollar sign (not a hyphen), so the echo should work correctly.
12975   # The option is referenced via a variable to avoid confusing sed.
12976   lt_compile=`echo "$ac_compile" | $SED \
12977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12979   -e 's:$: $lt_compiler_flag:'`
12980   (eval echo "\"\$as_me:12984: $lt_compile\"" >&5)
12981   (eval "$lt_compile" 2>conftest.err)
12982   ac_status=$?
12983   cat conftest.err >&5
12984   echo "$as_me:12988: \$? = $ac_status" >&5
12985   if (exit $ac_status) && test -s "$ac_outfile"; then
12986     # The compiler can only warn and ignore the option if not recognized
12987     # So say no if there are warnings other than the usual output.
12988     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12989     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12990     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12991       lt_prog_compiler_pic_works_CXX=yes
12992     fi
12993   fi
12994   $rm conftest*
12995
12996fi
12997{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12998echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12999
13000if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13001    case $lt_prog_compiler_pic_CXX in
13002     "" | " "*) ;;
13003     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13004     esac
13005else
13006    lt_prog_compiler_pic_CXX=
13007     lt_prog_compiler_can_build_shared_CXX=no
13008fi
13009
13010fi
13011case $host_os in
13012  # For platforms which do not support PIC, -DPIC is meaningless:
13013  *djgpp*)
13014    lt_prog_compiler_pic_CXX=
13015    ;;
13016  *)
13017    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13018    ;;
13019esac
13020
13021#
13022# Check to make sure the static flag actually works.
13023#
13024wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13025{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13026echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13027if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13028  echo $ECHO_N "(cached) $ECHO_C" >&6
13029else
13030  lt_prog_compiler_static_works_CXX=no
13031   save_LDFLAGS="$LDFLAGS"
13032   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13033   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13034   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13035     # The linker can only warn and ignore the option if not recognized
13036     # So say no if there are warnings
13037     if test -s conftest.err; then
13038       # Append any errors to the config.log.
13039       cat conftest.err 1>&5
13040       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13041       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13042       if diff conftest.exp conftest.er2 >/dev/null; then
13043         lt_prog_compiler_static_works_CXX=yes
13044       fi
13045     else
13046       lt_prog_compiler_static_works_CXX=yes
13047     fi
13048   fi
13049   $rm conftest*
13050   LDFLAGS="$save_LDFLAGS"
13051
13052fi
13053{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13054echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13055
13056if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13057    :
13058else
13059    lt_prog_compiler_static_CXX=
13060fi
13061
13062
13063{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13064echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13065if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13066  echo $ECHO_N "(cached) $ECHO_C" >&6
13067else
13068  lt_cv_prog_compiler_c_o_CXX=no
13069   $rm -r conftest 2>/dev/null
13070   mkdir conftest
13071   cd conftest
13072   mkdir out
13073   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13074
13075   lt_compiler_flag="-o out/conftest2.$ac_objext"
13076   # Insert the option either (1) after the last *FLAGS variable, or
13077   # (2) before a word containing "conftest.", or (3) at the end.
13078   # Note that $ac_compile itself does not contain backslashes and begins
13079   # with a dollar sign (not a hyphen), so the echo should work correctly.
13080   lt_compile=`echo "$ac_compile" | $SED \
13081   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13082   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13083   -e 's:$: $lt_compiler_flag:'`
13084   (eval echo "\"\$as_me:13088: $lt_compile\"" >&5)
13085   (eval "$lt_compile" 2>out/conftest.err)
13086   ac_status=$?
13087   cat out/conftest.err >&5
13088   echo "$as_me:13092: \$? = $ac_status" >&5
13089   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13090   then
13091     # The compiler can only warn and ignore the option if not recognized
13092     # So say no if there are warnings
13093     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13094     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13095     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13096       lt_cv_prog_compiler_c_o_CXX=yes
13097     fi
13098   fi
13099   chmod u+w . 2>&5
13100   $rm conftest*
13101   # SGI C++ compiler will create directory out/ii_files/ for
13102   # template instantiation
13103   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13104   $rm out/* && rmdir out
13105   cd ..
13106   rmdir conftest
13107   $rm conftest*
13108
13109fi
13110{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13111echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13112
13113
13114hard_links="nottested"
13115if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13116  # do not overwrite the value of need_locks provided by the user
13117  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13118echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13119  hard_links=yes
13120  $rm conftest*
13121  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13122  touch conftest.a
13123  ln conftest.a conftest.b 2>&5 || hard_links=no
13124  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13125  { echo "$as_me:$LINENO: result: $hard_links" >&5
13126echo "${ECHO_T}$hard_links" >&6; }
13127  if test "$hard_links" = no; then
13128    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13129echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13130    need_locks=warn
13131  fi
13132else
13133  need_locks=no
13134fi
13135
13136{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13137echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13138
13139  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13140  case $host_os in
13141  aix4* | aix5*)
13142    # If we're using GNU nm, then we don't want the "-C" option.
13143    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13144    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13145      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'
13146    else
13147      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'
13148    fi
13149    ;;
13150  pw32*)
13151    export_symbols_cmds_CXX="$ltdll_cmds"
13152  ;;
13153  cygwin* | mingw*)
13154    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'
13155  ;;
13156  *)
13157    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13158  ;;
13159  esac
13160
13161{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13162echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13163test "$ld_shlibs_CXX" = no && can_build_shared=no
13164
13165#
13166# Do we need to explicitly link libc?
13167#
13168case "x$archive_cmds_need_lc_CXX" in
13169x|xyes)
13170  # Assume -lc should be added
13171  archive_cmds_need_lc_CXX=yes
13172
13173  if test "$enable_shared" = yes && test "$GCC" = yes; then
13174    case $archive_cmds_CXX in
13175    *'~'*)
13176      # FIXME: we may have to deal with multi-command sequences.
13177      ;;
13178    '$CC '*)
13179      # Test whether the compiler implicitly links with -lc since on some
13180      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13181      # to ld, don't add -lc before -lgcc.
13182      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13183echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13184      $rm conftest*
13185      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13186
13187      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188  (eval $ac_compile) 2>&5
13189  ac_status=$?
13190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191  (exit $ac_status); } 2>conftest.err; then
13192        soname=conftest
13193        lib=conftest
13194        libobjs=conftest.$ac_objext
13195        deplibs=
13196        wl=$lt_prog_compiler_wl_CXX
13197	pic_flag=$lt_prog_compiler_pic_CXX
13198        compiler_flags=-v
13199        linker_flags=-v
13200        verstring=
13201        output_objdir=.
13202        libname=conftest
13203        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13204        allow_undefined_flag_CXX=
13205        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13206  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13207  ac_status=$?
13208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209  (exit $ac_status); }
13210        then
13211	  archive_cmds_need_lc_CXX=no
13212        else
13213	  archive_cmds_need_lc_CXX=yes
13214        fi
13215        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13216      else
13217        cat conftest.err 1>&5
13218      fi
13219      $rm conftest*
13220      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13221echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13222      ;;
13223    esac
13224  fi
13225  ;;
13226esac
13227
13228{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13229echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13230library_names_spec=
13231libname_spec='lib$name'
13232soname_spec=
13233shrext_cmds=".so"
13234postinstall_cmds=
13235postuninstall_cmds=
13236finish_cmds=
13237finish_eval=
13238shlibpath_var=
13239shlibpath_overrides_runpath=unknown
13240version_type=none
13241dynamic_linker="$host_os ld.so"
13242sys_lib_dlsearch_path_spec="/lib /usr/lib"
13243
13244need_lib_prefix=unknown
13245hardcode_into_libs=no
13246
13247# when you set need_version to no, make sure it does not cause -set_version
13248# flags to be left without arguments
13249need_version=unknown
13250
13251case $host_os in
13252aix3*)
13253  version_type=linux
13254  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13255  shlibpath_var=LIBPATH
13256
13257  # AIX 3 has no versioning support, so we append a major version to the name.
13258  soname_spec='${libname}${release}${shared_ext}$major'
13259  ;;
13260
13261aix4* | aix5*)
13262  version_type=linux
13263  need_lib_prefix=no
13264  need_version=no
13265  hardcode_into_libs=yes
13266  if test "$host_cpu" = ia64; then
13267    # AIX 5 supports IA64
13268    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13269    shlibpath_var=LD_LIBRARY_PATH
13270  else
13271    # With GCC up to 2.95.x, collect2 would create an import file
13272    # for dependence libraries.  The import file would start with
13273    # the line `#! .'.  This would cause the generated library to
13274    # depend on `.', always an invalid library.  This was fixed in
13275    # development snapshots of GCC prior to 3.0.
13276    case $host_os in
13277      aix4 | aix4.[01] | aix4.[01].*)
13278      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13279	   echo ' yes '
13280	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13281	:
13282      else
13283	can_build_shared=no
13284      fi
13285      ;;
13286    esac
13287    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13288    # soname into executable. Probably we can add versioning support to
13289    # collect2, so additional links can be useful in future.
13290    if test "$aix_use_runtimelinking" = yes; then
13291      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13292      # instead of lib<name>.a to let people know that these are not
13293      # typical AIX shared libraries.
13294      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295    else
13296      # We preserve .a as extension for shared libraries through AIX4.2
13297      # and later when we are not doing run time linking.
13298      library_names_spec='${libname}${release}.a $libname.a'
13299      soname_spec='${libname}${release}${shared_ext}$major'
13300    fi
13301    shlibpath_var=LIBPATH
13302  fi
13303  ;;
13304
13305amigaos*)
13306  library_names_spec='$libname.ixlibrary $libname.a'
13307  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13308  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'
13309  ;;
13310
13311beos*)
13312  library_names_spec='${libname}${shared_ext}'
13313  dynamic_linker="$host_os ld.so"
13314  shlibpath_var=LIBRARY_PATH
13315  ;;
13316
13317bsdi[45]*)
13318  version_type=linux
13319  need_version=no
13320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13321  soname_spec='${libname}${release}${shared_ext}$major'
13322  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13323  shlibpath_var=LD_LIBRARY_PATH
13324  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13325  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13326  # the default ld.so.conf also contains /usr/contrib/lib and
13327  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13328  # libtool to hard-code these into programs
13329  ;;
13330
13331cygwin* | mingw* | pw32*)
13332  version_type=windows
13333  shrext_cmds=".dll"
13334  need_version=no
13335  need_lib_prefix=no
13336
13337  case $GCC,$host_os in
13338  yes,cygwin* | yes,mingw* | yes,pw32*)
13339    library_names_spec='$libname.dll.a'
13340    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13341    postinstall_cmds='base_file=`basename \${file}`~
13342      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13343      dldir=$destdir/`dirname \$dlpath`~
13344      test -d \$dldir || mkdir -p \$dldir~
13345      $install_prog $dir/$dlname \$dldir/$dlname~
13346      chmod a+x \$dldir/$dlname'
13347    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13348      dlpath=$dir/\$dldll~
13349       $rm \$dlpath'
13350    shlibpath_overrides_runpath=yes
13351
13352    case $host_os in
13353    cygwin*)
13354      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13355      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13356      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13357      ;;
13358    mingw*)
13359      # MinGW DLLs use traditional 'lib' prefix
13360      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13361      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13362      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13363        # It is most probably a Windows format PATH printed by
13364        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13365        # path with ; separators, and with drive letters. We can handle the
13366        # drive letters (cygwin fileutils understands them), so leave them,
13367        # especially as we might pass files found there to a mingw objdump,
13368        # which wouldn't understand a cygwinified path. Ahh.
13369        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13370      else
13371        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13372      fi
13373      ;;
13374    pw32*)
13375      # pw32 DLLs use 'pw' prefix rather than 'lib'
13376      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13377      ;;
13378    esac
13379    ;;
13380
13381  *)
13382    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13383    ;;
13384  esac
13385  dynamic_linker='Win32 ld.exe'
13386  # FIXME: first we should search . and the directory the executable is in
13387  shlibpath_var=PATH
13388  ;;
13389
13390darwin* | rhapsody*)
13391  dynamic_linker="$host_os dyld"
13392  version_type=darwin
13393  need_lib_prefix=no
13394  need_version=no
13395  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13396  soname_spec='${libname}${release}${major}$shared_ext'
13397  shlibpath_overrides_runpath=yes
13398  shlibpath_var=DYLD_LIBRARY_PATH
13399  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13400
13401  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13402  ;;
13403
13404dgux*)
13405  version_type=linux
13406  need_lib_prefix=no
13407  need_version=no
13408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13409  soname_spec='${libname}${release}${shared_ext}$major'
13410  shlibpath_var=LD_LIBRARY_PATH
13411  ;;
13412
13413freebsd1*)
13414  dynamic_linker=no
13415  ;;
13416
13417freebsd* | dragonfly*)
13418  # DragonFly does not have aout.  When/if they implement a new
13419  # versioning mechanism, adjust this.
13420  if test -x /usr/bin/objformat; then
13421    objformat=`/usr/bin/objformat`
13422  else
13423    case $host_os in
13424    freebsd[123]*) objformat=aout ;;
13425    *) objformat=elf ;;
13426    esac
13427  fi
13428  version_type=freebsd-$objformat
13429  case $version_type in
13430    freebsd-elf*)
13431      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13432      need_version=no
13433      need_lib_prefix=no
13434      ;;
13435    freebsd-*)
13436      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13437      need_version=yes
13438      ;;
13439  esac
13440  shlibpath_var=LD_LIBRARY_PATH
13441  case $host_os in
13442  freebsd2*)
13443    shlibpath_overrides_runpath=yes
13444    ;;
13445  freebsd3.[01]* | freebsdelf3.[01]*)
13446    shlibpath_overrides_runpath=yes
13447    hardcode_into_libs=yes
13448    ;;
13449  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13450  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13451    shlibpath_overrides_runpath=no
13452    hardcode_into_libs=yes
13453    ;;
13454  *) # from 4.6 on, and DragonFly
13455    shlibpath_overrides_runpath=yes
13456    hardcode_into_libs=yes
13457    ;;
13458  esac
13459  ;;
13460
13461gnu*)
13462  version_type=linux
13463  need_lib_prefix=no
13464  need_version=no
13465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13466  soname_spec='${libname}${release}${shared_ext}$major'
13467  shlibpath_var=LD_LIBRARY_PATH
13468  hardcode_into_libs=yes
13469  ;;
13470
13471hpux9* | hpux10* | hpux11*)
13472  # Give a soname corresponding to the major version so that dld.sl refuses to
13473  # link against other versions.
13474  version_type=sunos
13475  need_lib_prefix=no
13476  need_version=no
13477  case $host_cpu in
13478  ia64*)
13479    shrext_cmds='.so'
13480    hardcode_into_libs=yes
13481    dynamic_linker="$host_os dld.so"
13482    shlibpath_var=LD_LIBRARY_PATH
13483    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13484    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485    soname_spec='${libname}${release}${shared_ext}$major'
13486    if test "X$HPUX_IA64_MODE" = X32; then
13487      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13488    else
13489      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13490    fi
13491    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13492    ;;
13493   hppa*64*)
13494     shrext_cmds='.sl'
13495     hardcode_into_libs=yes
13496     dynamic_linker="$host_os dld.sl"
13497     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13498     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500     soname_spec='${libname}${release}${shared_ext}$major'
13501     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13502     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13503     ;;
13504   *)
13505    shrext_cmds='.sl'
13506    dynamic_linker="$host_os dld.sl"
13507    shlibpath_var=SHLIB_PATH
13508    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13509    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510    soname_spec='${libname}${release}${shared_ext}$major'
13511    ;;
13512  esac
13513  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13514  postinstall_cmds='chmod 555 $lib'
13515  ;;
13516
13517interix[3-9]*)
13518  version_type=linux
13519  need_lib_prefix=no
13520  need_version=no
13521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13522  soname_spec='${libname}${release}${shared_ext}$major'
13523  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13524  shlibpath_var=LD_LIBRARY_PATH
13525  shlibpath_overrides_runpath=no
13526  hardcode_into_libs=yes
13527  ;;
13528
13529irix5* | irix6* | nonstopux*)
13530  case $host_os in
13531    nonstopux*) version_type=nonstopux ;;
13532    *)
13533	if test "$lt_cv_prog_gnu_ld" = yes; then
13534		version_type=linux
13535	else
13536		version_type=irix
13537	fi ;;
13538  esac
13539  need_lib_prefix=no
13540  need_version=no
13541  soname_spec='${libname}${release}${shared_ext}$major'
13542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13543  case $host_os in
13544  irix5* | nonstopux*)
13545    libsuff= shlibsuff=
13546    ;;
13547  *)
13548    case $LD in # libtool.m4 will add one of these switches to LD
13549    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13550      libsuff= shlibsuff= libmagic=32-bit;;
13551    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13552      libsuff=32 shlibsuff=N32 libmagic=N32;;
13553    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13554      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13555    *) libsuff= shlibsuff= libmagic=never-match;;
13556    esac
13557    ;;
13558  esac
13559  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13560  shlibpath_overrides_runpath=no
13561  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13562  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13563  hardcode_into_libs=yes
13564  ;;
13565
13566# No shared lib support for Linux oldld, aout, or coff.
13567linux*oldld* | linux*aout* | linux*coff*)
13568  dynamic_linker=no
13569  ;;
13570
13571# This must be Linux ELF.
13572linux* | k*bsd*-gnu)
13573  version_type=linux
13574  need_lib_prefix=no
13575  need_version=no
13576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577  soname_spec='${libname}${release}${shared_ext}$major'
13578  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13579  shlibpath_var=LD_LIBRARY_PATH
13580  shlibpath_overrides_runpath=no
13581  # This implies no fast_install, which is unacceptable.
13582  # Some rework will be needed to allow for fast_install
13583  # before this can be enabled.
13584  hardcode_into_libs=yes
13585  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13586  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13587
13588  # Append ld.so.conf contents to the search path
13589  if test -f /etc/ld.so.conf; then
13590    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13591    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13592  fi
13593
13594  # We used to test for /lib/ld.so.1 and disable shared libraries on
13595  # powerpc, because MkLinux only supported shared libraries with the
13596  # GNU dynamic linker.  Since this was broken with cross compilers,
13597  # most powerpc-linux boxes support dynamic linking these days and
13598  # people can always --disable-shared, the test was removed, and we
13599  # assume the GNU/Linux dynamic linker is in use.
13600  dynamic_linker='GNU/Linux ld.so'
13601  ;;
13602
13603netbsd*)
13604  version_type=sunos
13605  need_lib_prefix=no
13606  need_version=no
13607  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13608    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13609    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13610    dynamic_linker='NetBSD (a.out) ld.so'
13611  else
13612    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13613    soname_spec='${libname}${release}${shared_ext}$major'
13614    dynamic_linker='NetBSD ld.elf_so'
13615  fi
13616  shlibpath_var=LD_LIBRARY_PATH
13617  shlibpath_overrides_runpath=yes
13618  hardcode_into_libs=yes
13619  ;;
13620
13621newsos6)
13622  version_type=linux
13623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624  shlibpath_var=LD_LIBRARY_PATH
13625  shlibpath_overrides_runpath=yes
13626  ;;
13627
13628nto-qnx*)
13629  version_type=linux
13630  need_lib_prefix=no
13631  need_version=no
13632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633  soname_spec='${libname}${release}${shared_ext}$major'
13634  shlibpath_var=LD_LIBRARY_PATH
13635  shlibpath_overrides_runpath=yes
13636  ;;
13637
13638openbsd*)
13639  version_type=sunos
13640  sys_lib_dlsearch_path_spec="/usr/lib"
13641  need_lib_prefix=no
13642  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13643  case $host_os in
13644    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13645    *)                         need_version=no  ;;
13646  esac
13647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13648  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13649  shlibpath_var=LD_LIBRARY_PATH
13650  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13651    case $host_os in
13652      openbsd2.[89] | openbsd2.[89].*)
13653	shlibpath_overrides_runpath=no
13654	;;
13655      *)
13656	shlibpath_overrides_runpath=yes
13657	;;
13658      esac
13659  else
13660    shlibpath_overrides_runpath=yes
13661  fi
13662  ;;
13663
13664os2*)
13665  libname_spec='$name'
13666  shrext_cmds=".dll"
13667  need_lib_prefix=no
13668  library_names_spec='$libname${shared_ext} $libname.a'
13669  dynamic_linker='OS/2 ld.exe'
13670  shlibpath_var=LIBPATH
13671  ;;
13672
13673osf3* | osf4* | osf5*)
13674  version_type=osf
13675  need_lib_prefix=no
13676  need_version=no
13677  soname_spec='${libname}${release}${shared_ext}$major'
13678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13679  shlibpath_var=LD_LIBRARY_PATH
13680  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13681  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13682  ;;
13683
13684rdos*)
13685  dynamic_linker=no
13686  ;;
13687
13688solaris*)
13689  version_type=linux
13690  need_lib_prefix=no
13691  need_version=no
13692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13693  soname_spec='${libname}${release}${shared_ext}$major'
13694  shlibpath_var=LD_LIBRARY_PATH
13695  shlibpath_overrides_runpath=yes
13696  hardcode_into_libs=yes
13697  # ldd complains unless libraries are executable
13698  postinstall_cmds='chmod +x $lib'
13699  ;;
13700
13701sunos4*)
13702  version_type=sunos
13703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13704  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13705  shlibpath_var=LD_LIBRARY_PATH
13706  shlibpath_overrides_runpath=yes
13707  if test "$with_gnu_ld" = yes; then
13708    need_lib_prefix=no
13709  fi
13710  need_version=yes
13711  ;;
13712
13713sysv4 | sysv4.3*)
13714  version_type=linux
13715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716  soname_spec='${libname}${release}${shared_ext}$major'
13717  shlibpath_var=LD_LIBRARY_PATH
13718  case $host_vendor in
13719    sni)
13720      shlibpath_overrides_runpath=no
13721      need_lib_prefix=no
13722      export_dynamic_flag_spec='${wl}-Blargedynsym'
13723      runpath_var=LD_RUN_PATH
13724      ;;
13725    siemens)
13726      need_lib_prefix=no
13727      ;;
13728    motorola)
13729      need_lib_prefix=no
13730      need_version=no
13731      shlibpath_overrides_runpath=no
13732      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13733      ;;
13734  esac
13735  ;;
13736
13737sysv4*MP*)
13738  if test -d /usr/nec ;then
13739    version_type=linux
13740    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13741    soname_spec='$libname${shared_ext}.$major'
13742    shlibpath_var=LD_LIBRARY_PATH
13743  fi
13744  ;;
13745
13746sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13747  version_type=freebsd-elf
13748  need_lib_prefix=no
13749  need_version=no
13750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13751  soname_spec='${libname}${release}${shared_ext}$major'
13752  shlibpath_var=LD_LIBRARY_PATH
13753  hardcode_into_libs=yes
13754  if test "$with_gnu_ld" = yes; then
13755    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13756    shlibpath_overrides_runpath=no
13757  else
13758    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13759    shlibpath_overrides_runpath=yes
13760    case $host_os in
13761      sco3.2v5*)
13762        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13763	;;
13764    esac
13765  fi
13766  sys_lib_dlsearch_path_spec='/usr/lib'
13767  ;;
13768
13769uts4*)
13770  version_type=linux
13771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13772  soname_spec='${libname}${release}${shared_ext}$major'
13773  shlibpath_var=LD_LIBRARY_PATH
13774  ;;
13775
13776*)
13777  dynamic_linker=no
13778  ;;
13779esac
13780{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13781echo "${ECHO_T}$dynamic_linker" >&6; }
13782test "$dynamic_linker" = no && can_build_shared=no
13783
13784variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13785if test "$GCC" = yes; then
13786  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13787fi
13788
13789{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13790echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13791hardcode_action_CXX=
13792if test -n "$hardcode_libdir_flag_spec_CXX" || \
13793   test -n "$runpath_var_CXX" || \
13794   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13795
13796  # We can hardcode non-existant directories.
13797  if test "$hardcode_direct_CXX" != no &&
13798     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13799     # have to relink, otherwise we might link with an installed library
13800     # when we should be linking with a yet-to-be-installed one
13801     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13802     test "$hardcode_minus_L_CXX" != no; then
13803    # Linking always hardcodes the temporary library directory.
13804    hardcode_action_CXX=relink
13805  else
13806    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13807    hardcode_action_CXX=immediate
13808  fi
13809else
13810  # We cannot hardcode anything, or else we can only hardcode existing
13811  # directories.
13812  hardcode_action_CXX=unsupported
13813fi
13814{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13815echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13816
13817if test "$hardcode_action_CXX" = relink; then
13818  # Fast installation is not supported
13819  enable_fast_install=no
13820elif test "$shlibpath_overrides_runpath" = yes ||
13821     test "$enable_shared" = no; then
13822  # Fast installation is not necessary
13823  enable_fast_install=needless
13824fi
13825
13826
13827# The else clause should only fire when bootstrapping the
13828# libtool distribution, otherwise you forgot to ship ltmain.sh
13829# with your package, and you will get complaints that there are
13830# no rules to generate ltmain.sh.
13831if test -f "$ltmain"; then
13832  # See if we are running on zsh, and set the options which allow our commands through
13833  # without removal of \ escapes.
13834  if test -n "${ZSH_VERSION+set}" ; then
13835    setopt NO_GLOB_SUBST
13836  fi
13837  # Now quote all the things that may contain metacharacters while being
13838  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13839  # variables and quote the copies for generation of the libtool script.
13840  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13841    SED SHELL STRIP \
13842    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13843    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13844    deplibs_check_method reload_flag reload_cmds need_locks \
13845    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13846    lt_cv_sys_global_symbol_to_c_name_address \
13847    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13848    old_postinstall_cmds old_postuninstall_cmds \
13849    compiler_CXX \
13850    CC_CXX \
13851    LD_CXX \
13852    lt_prog_compiler_wl_CXX \
13853    lt_prog_compiler_pic_CXX \
13854    lt_prog_compiler_static_CXX \
13855    lt_prog_compiler_no_builtin_flag_CXX \
13856    export_dynamic_flag_spec_CXX \
13857    thread_safe_flag_spec_CXX \
13858    whole_archive_flag_spec_CXX \
13859    enable_shared_with_static_runtimes_CXX \
13860    old_archive_cmds_CXX \
13861    old_archive_from_new_cmds_CXX \
13862    predep_objects_CXX \
13863    postdep_objects_CXX \
13864    predeps_CXX \
13865    postdeps_CXX \
13866    compiler_lib_search_path_CXX \
13867    archive_cmds_CXX \
13868    archive_expsym_cmds_CXX \
13869    postinstall_cmds_CXX \
13870    postuninstall_cmds_CXX \
13871    old_archive_from_expsyms_cmds_CXX \
13872    allow_undefined_flag_CXX \
13873    no_undefined_flag_CXX \
13874    export_symbols_cmds_CXX \
13875    hardcode_libdir_flag_spec_CXX \
13876    hardcode_libdir_flag_spec_ld_CXX \
13877    hardcode_libdir_separator_CXX \
13878    hardcode_automatic_CXX \
13879    module_cmds_CXX \
13880    module_expsym_cmds_CXX \
13881    lt_cv_prog_compiler_c_o_CXX \
13882    fix_srcfile_path_CXX \
13883    exclude_expsyms_CXX \
13884    include_expsyms_CXX; do
13885
13886    case $var in
13887    old_archive_cmds_CXX | \
13888    old_archive_from_new_cmds_CXX | \
13889    archive_cmds_CXX | \
13890    archive_expsym_cmds_CXX | \
13891    module_cmds_CXX | \
13892    module_expsym_cmds_CXX | \
13893    old_archive_from_expsyms_cmds_CXX | \
13894    export_symbols_cmds_CXX | \
13895    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13896    postinstall_cmds | postuninstall_cmds | \
13897    old_postinstall_cmds | old_postuninstall_cmds | \
13898    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13899      # Double-quote double-evaled strings.
13900      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13901      ;;
13902    *)
13903      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13904      ;;
13905    esac
13906  done
13907
13908  case $lt_echo in
13909  *'\$0 --fallback-echo"')
13910    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13911    ;;
13912  esac
13913
13914cfgfile="$ofile"
13915
13916  cat <<__EOF__ >> "$cfgfile"
13917# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13918
13919# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13920
13921# Shell to use when invoking shell scripts.
13922SHELL=$lt_SHELL
13923
13924# Whether or not to build shared libraries.
13925build_libtool_libs=$enable_shared
13926
13927# Whether or not to build static libraries.
13928build_old_libs=$enable_static
13929
13930# Whether or not to add -lc for building shared libraries.
13931build_libtool_need_lc=$archive_cmds_need_lc_CXX
13932
13933# Whether or not to disallow shared libs when runtime libs are static
13934allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13935
13936# Whether or not to optimize for fast installation.
13937fast_install=$enable_fast_install
13938
13939# The host system.
13940host_alias=$host_alias
13941host=$host
13942host_os=$host_os
13943
13944# The build system.
13945build_alias=$build_alias
13946build=$build
13947build_os=$build_os
13948
13949# An echo program that does not interpret backslashes.
13950echo=$lt_echo
13951
13952# The archiver.
13953AR=$lt_AR
13954AR_FLAGS=$lt_AR_FLAGS
13955
13956# A C compiler.
13957LTCC=$lt_LTCC
13958
13959# LTCC compiler flags.
13960LTCFLAGS=$lt_LTCFLAGS
13961
13962# A language-specific compiler.
13963CC=$lt_compiler_CXX
13964
13965# Is the compiler the GNU C compiler?
13966with_gcc=$GCC_CXX
13967
13968# An ERE matcher.
13969EGREP=$lt_EGREP
13970
13971# The linker used to build libraries.
13972LD=$lt_LD_CXX
13973
13974# Whether we need hard or soft links.
13975LN_S=$lt_LN_S
13976
13977# A BSD-compatible nm program.
13978NM=$lt_NM
13979
13980# A symbol stripping program
13981STRIP=$lt_STRIP
13982
13983# Used to examine libraries when file_magic_cmd begins "file"
13984MAGIC_CMD=$MAGIC_CMD
13985
13986# Used on cygwin: DLL creation program.
13987DLLTOOL="$DLLTOOL"
13988
13989# Used on cygwin: object dumper.
13990OBJDUMP="$OBJDUMP"
13991
13992# Used on cygwin: assembler.
13993AS="$AS"
13994
13995# The name of the directory that contains temporary libtool files.
13996objdir=$objdir
13997
13998# How to create reloadable object files.
13999reload_flag=$lt_reload_flag
14000reload_cmds=$lt_reload_cmds
14001
14002# How to pass a linker flag through the compiler.
14003wl=$lt_lt_prog_compiler_wl_CXX
14004
14005# Object file suffix (normally "o").
14006objext="$ac_objext"
14007
14008# Old archive suffix (normally "a").
14009libext="$libext"
14010
14011# Shared library suffix (normally ".so").
14012shrext_cmds='$shrext_cmds'
14013
14014# Executable file suffix (normally "").
14015exeext="$exeext"
14016
14017# Additional compiler flags for building library objects.
14018pic_flag=$lt_lt_prog_compiler_pic_CXX
14019pic_mode=$pic_mode
14020
14021# What is the maximum length of a command?
14022max_cmd_len=$lt_cv_sys_max_cmd_len
14023
14024# Does compiler simultaneously support -c and -o options?
14025compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14026
14027# Must we lock files when doing compilation?
14028need_locks=$lt_need_locks
14029
14030# Do we need the lib prefix for modules?
14031need_lib_prefix=$need_lib_prefix
14032
14033# Do we need a version for libraries?
14034need_version=$need_version
14035
14036# Whether dlopen is supported.
14037dlopen_support=$enable_dlopen
14038
14039# Whether dlopen of programs is supported.
14040dlopen_self=$enable_dlopen_self
14041
14042# Whether dlopen of statically linked programs is supported.
14043dlopen_self_static=$enable_dlopen_self_static
14044
14045# Compiler flag to prevent dynamic linking.
14046link_static_flag=$lt_lt_prog_compiler_static_CXX
14047
14048# Compiler flag to turn off builtin functions.
14049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14050
14051# Compiler flag to allow reflexive dlopens.
14052export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14053
14054# Compiler flag to generate shared objects directly from archives.
14055whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14056
14057# Compiler flag to generate thread-safe objects.
14058thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14059
14060# Library versioning type.
14061version_type=$version_type
14062
14063# Format of library name prefix.
14064libname_spec=$lt_libname_spec
14065
14066# List of archive names.  First name is the real one, the rest are links.
14067# The last name is the one that the linker finds with -lNAME.
14068library_names_spec=$lt_library_names_spec
14069
14070# The coded name of the library, if different from the real name.
14071soname_spec=$lt_soname_spec
14072
14073# Commands used to build and install an old-style archive.
14074RANLIB=$lt_RANLIB
14075old_archive_cmds=$lt_old_archive_cmds_CXX
14076old_postinstall_cmds=$lt_old_postinstall_cmds
14077old_postuninstall_cmds=$lt_old_postuninstall_cmds
14078
14079# Create an old-style archive from a shared archive.
14080old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14081
14082# Create a temporary old-style archive to link instead of a shared archive.
14083old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14084
14085# Commands used to build and install a shared archive.
14086archive_cmds=$lt_archive_cmds_CXX
14087archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14088postinstall_cmds=$lt_postinstall_cmds
14089postuninstall_cmds=$lt_postuninstall_cmds
14090
14091# Commands used to build a loadable module (assumed same as above if empty)
14092module_cmds=$lt_module_cmds_CXX
14093module_expsym_cmds=$lt_module_expsym_cmds_CXX
14094
14095# Commands to strip libraries.
14096old_striplib=$lt_old_striplib
14097striplib=$lt_striplib
14098
14099# Dependencies to place before the objects being linked to create a
14100# shared library.
14101predep_objects=$lt_predep_objects_CXX
14102
14103# Dependencies to place after the objects being linked to create a
14104# shared library.
14105postdep_objects=$lt_postdep_objects_CXX
14106
14107# Dependencies to place before the objects being linked to create a
14108# shared library.
14109predeps=$lt_predeps_CXX
14110
14111# Dependencies to place after the objects being linked to create a
14112# shared library.
14113postdeps=$lt_postdeps_CXX
14114
14115# The library search path used internally by the compiler when linking
14116# a shared library.
14117compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14118
14119# Method to check whether dependent libraries are shared objects.
14120deplibs_check_method=$lt_deplibs_check_method
14121
14122# Command to use when deplibs_check_method == file_magic.
14123file_magic_cmd=$lt_file_magic_cmd
14124
14125# Flag that allows shared libraries with undefined symbols to be built.
14126allow_undefined_flag=$lt_allow_undefined_flag_CXX
14127
14128# Flag that forces no undefined symbols.
14129no_undefined_flag=$lt_no_undefined_flag_CXX
14130
14131# Commands used to finish a libtool library installation in a directory.
14132finish_cmds=$lt_finish_cmds
14133
14134# Same as above, but a single script fragment to be evaled but not shown.
14135finish_eval=$lt_finish_eval
14136
14137# Take the output of nm and produce a listing of raw symbols and C names.
14138global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14139
14140# Transform the output of nm in a proper C declaration
14141global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14142
14143# Transform the output of nm in a C name address pair
14144global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14145
14146# This is the shared library runtime path variable.
14147runpath_var=$runpath_var
14148
14149# This is the shared library path variable.
14150shlibpath_var=$shlibpath_var
14151
14152# Is shlibpath searched before the hard-coded library search path?
14153shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14154
14155# How to hardcode a shared library path into an executable.
14156hardcode_action=$hardcode_action_CXX
14157
14158# Whether we should hardcode library paths into libraries.
14159hardcode_into_libs=$hardcode_into_libs
14160
14161# Flag to hardcode \$libdir into a binary during linking.
14162# This must work even if \$libdir does not exist.
14163hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14164
14165# If ld is used when linking, flag to hardcode \$libdir into
14166# a binary during linking. This must work even if \$libdir does
14167# not exist.
14168hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14169
14170# Whether we need a single -rpath flag with a separated argument.
14171hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14172
14173# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14174# resulting binary.
14175hardcode_direct=$hardcode_direct_CXX
14176
14177# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14178# resulting binary.
14179hardcode_minus_L=$hardcode_minus_L_CXX
14180
14181# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14182# the resulting binary.
14183hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14184
14185# Set to yes if building a shared library automatically hardcodes DIR into the library
14186# and all subsequent libraries and executables linked against it.
14187hardcode_automatic=$hardcode_automatic_CXX
14188
14189# Variables whose values should be saved in libtool wrapper scripts and
14190# restored at relink time.
14191variables_saved_for_relink="$variables_saved_for_relink"
14192
14193# Whether libtool must link a program against all its dependency libraries.
14194link_all_deplibs=$link_all_deplibs_CXX
14195
14196# Compile-time system search path for libraries
14197sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14198
14199# Run-time system search path for libraries
14200sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14201
14202# Fix the shell variable \$srcfile for the compiler.
14203fix_srcfile_path=$lt_fix_srcfile_path
14204
14205# Set to yes if exported symbols are required.
14206always_export_symbols=$always_export_symbols_CXX
14207
14208# The commands to list exported symbols.
14209export_symbols_cmds=$lt_export_symbols_cmds_CXX
14210
14211# The commands to extract the exported symbol list from a shared archive.
14212extract_expsyms_cmds=$lt_extract_expsyms_cmds
14213
14214# Symbols that should not be listed in the preloaded symbols.
14215exclude_expsyms=$lt_exclude_expsyms_CXX
14216
14217# Symbols that must always be exported.
14218include_expsyms=$lt_include_expsyms_CXX
14219
14220# ### END LIBTOOL TAG CONFIG: $tagname
14221
14222__EOF__
14223
14224
14225else
14226  # If there is no Makefile yet, we rely on a make rule to execute
14227  # `config.status --recheck' to rerun these tests and create the
14228  # libtool script then.
14229  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14230  if test -f "$ltmain_in"; then
14231    test -f Makefile && make "$ltmain"
14232  fi
14233fi
14234
14235
14236ac_ext=c
14237ac_cpp='$CPP $CPPFLAGS'
14238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14240ac_compiler_gnu=$ac_cv_c_compiler_gnu
14241
14242CC=$lt_save_CC
14243LDCXX=$LD
14244LD=$lt_save_LD
14245GCC=$lt_save_GCC
14246with_gnu_ldcxx=$with_gnu_ld
14247with_gnu_ld=$lt_save_with_gnu_ld
14248lt_cv_path_LDCXX=$lt_cv_path_LD
14249lt_cv_path_LD=$lt_save_path_LD
14250lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14251lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14252
14253	else
14254	  tagname=""
14255	fi
14256	;;
14257
14258      F77)
14259	if test -n "$F77" && test "X$F77" != "Xno"; then
14260
14261ac_ext=f
14262ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14263ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14265
14266
14267archive_cmds_need_lc_F77=no
14268allow_undefined_flag_F77=
14269always_export_symbols_F77=no
14270archive_expsym_cmds_F77=
14271export_dynamic_flag_spec_F77=
14272hardcode_direct_F77=no
14273hardcode_libdir_flag_spec_F77=
14274hardcode_libdir_flag_spec_ld_F77=
14275hardcode_libdir_separator_F77=
14276hardcode_minus_L_F77=no
14277hardcode_automatic_F77=no
14278module_cmds_F77=
14279module_expsym_cmds_F77=
14280link_all_deplibs_F77=unknown
14281old_archive_cmds_F77=$old_archive_cmds
14282no_undefined_flag_F77=
14283whole_archive_flag_spec_F77=
14284enable_shared_with_static_runtimes_F77=no
14285
14286# Source file extension for f77 test sources.
14287ac_ext=f
14288
14289# Object file extension for compiled f77 test sources.
14290objext=o
14291objext_F77=$objext
14292
14293# Code to be used in simple compile tests
14294lt_simple_compile_test_code="\
14295      subroutine t
14296      return
14297      end
14298"
14299
14300# Code to be used in simple link tests
14301lt_simple_link_test_code="\
14302      program t
14303      end
14304"
14305
14306# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14307
14308# If no C compiler was specified, use CC.
14309LTCC=${LTCC-"$CC"}
14310
14311# If no C compiler flags were specified, use CFLAGS.
14312LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14313
14314# Allow CC to be a program name with arguments.
14315compiler=$CC
14316
14317
14318# save warnings/boilerplate of simple test code
14319ac_outfile=conftest.$ac_objext
14320echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14321eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14322_lt_compiler_boilerplate=`cat conftest.err`
14323$rm conftest*
14324
14325ac_outfile=conftest.$ac_objext
14326echo "$lt_simple_link_test_code" >conftest.$ac_ext
14327eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14328_lt_linker_boilerplate=`cat conftest.err`
14329$rm conftest*
14330
14331
14332# Allow CC to be a program name with arguments.
14333lt_save_CC="$CC"
14334CC=${F77-"f77"}
14335compiler=$CC
14336compiler_F77=$CC
14337for cc_temp in $compiler""; do
14338  case $cc_temp in
14339    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14340    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14341    \-*) ;;
14342    *) break;;
14343  esac
14344done
14345cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14346
14347
14348{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14349echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14350{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14351echo "${ECHO_T}$can_build_shared" >&6; }
14352
14353{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14354echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14355test "$can_build_shared" = "no" && enable_shared=no
14356
14357# On AIX, shared libraries and static libraries use the same namespace, and
14358# are all built from PIC.
14359case $host_os in
14360aix3*)
14361  test "$enable_shared" = yes && enable_static=no
14362  if test -n "$RANLIB"; then
14363    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14364    postinstall_cmds='$RANLIB $lib'
14365  fi
14366  ;;
14367aix4* | aix5*)
14368  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14369    test "$enable_shared" = yes && enable_static=no
14370  fi
14371  ;;
14372esac
14373{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14374echo "${ECHO_T}$enable_shared" >&6; }
14375
14376{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14377echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14378# Make sure either enable_shared or enable_static is yes.
14379test "$enable_shared" = yes || enable_static=yes
14380{ echo "$as_me:$LINENO: result: $enable_static" >&5
14381echo "${ECHO_T}$enable_static" >&6; }
14382
14383GCC_F77="$G77"
14384LD_F77="$LD"
14385
14386lt_prog_compiler_wl_F77=
14387lt_prog_compiler_pic_F77=
14388lt_prog_compiler_static_F77=
14389
14390{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14391echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14392
14393  if test "$GCC" = yes; then
14394    lt_prog_compiler_wl_F77='-Wl,'
14395    lt_prog_compiler_static_F77='-static'
14396
14397    case $host_os in
14398      aix*)
14399      # All AIX code is PIC.
14400      if test "$host_cpu" = ia64; then
14401	# AIX 5 now supports IA64 processor
14402	lt_prog_compiler_static_F77='-Bstatic'
14403      fi
14404      ;;
14405
14406    amigaos*)
14407      # FIXME: we need at least 68020 code to build shared libraries, but
14408      # adding the `-m68020' flag to GCC prevents building anything better,
14409      # like `-m68040'.
14410      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14411      ;;
14412
14413    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14414      # PIC is the default for these OSes.
14415      ;;
14416
14417    mingw* | cygwin* | pw32* | os2*)
14418      # This hack is so that the source file can tell whether it is being
14419      # built for inclusion in a dll (and should export symbols for example).
14420      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14421      # (--disable-auto-import) libraries
14422      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14423      ;;
14424
14425    darwin* | rhapsody*)
14426      # PIC is the default on this platform
14427      # Common symbols not allowed in MH_DYLIB files
14428      lt_prog_compiler_pic_F77='-fno-common'
14429      ;;
14430
14431    interix[3-9]*)
14432      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14433      # Instead, we relocate shared libraries at runtime.
14434      ;;
14435
14436    msdosdjgpp*)
14437      # Just because we use GCC doesn't mean we suddenly get shared libraries
14438      # on systems that don't support them.
14439      lt_prog_compiler_can_build_shared_F77=no
14440      enable_shared=no
14441      ;;
14442
14443    sysv4*MP*)
14444      if test -d /usr/nec; then
14445	lt_prog_compiler_pic_F77=-Kconform_pic
14446      fi
14447      ;;
14448
14449    hpux*)
14450      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14451      # not for PA HP-UX.
14452      case $host_cpu in
14453      hppa*64*|ia64*)
14454	# +Z the default
14455	;;
14456      *)
14457	lt_prog_compiler_pic_F77='-fPIC'
14458	;;
14459      esac
14460      ;;
14461
14462    *)
14463      lt_prog_compiler_pic_F77='-fPIC'
14464      ;;
14465    esac
14466  else
14467    # PORTME Check for flag to pass linker flags through the system compiler.
14468    case $host_os in
14469    aix*)
14470      lt_prog_compiler_wl_F77='-Wl,'
14471      if test "$host_cpu" = ia64; then
14472	# AIX 5 now supports IA64 processor
14473	lt_prog_compiler_static_F77='-Bstatic'
14474      else
14475	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14476      fi
14477      ;;
14478      darwin*)
14479        # PIC is the default on this platform
14480        # Common symbols not allowed in MH_DYLIB files
14481       case $cc_basename in
14482         xlc*)
14483         lt_prog_compiler_pic_F77='-qnocommon'
14484         lt_prog_compiler_wl_F77='-Wl,'
14485         ;;
14486       esac
14487       ;;
14488
14489    mingw* | cygwin* | pw32* | os2*)
14490      # This hack is so that the source file can tell whether it is being
14491      # built for inclusion in a dll (and should export symbols for example).
14492      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14493      ;;
14494
14495    hpux9* | hpux10* | hpux11*)
14496      lt_prog_compiler_wl_F77='-Wl,'
14497      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14498      # not for PA HP-UX.
14499      case $host_cpu in
14500      hppa*64*|ia64*)
14501	# +Z the default
14502	;;
14503      *)
14504	lt_prog_compiler_pic_F77='+Z'
14505	;;
14506      esac
14507      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14508      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14509      ;;
14510
14511    irix5* | irix6* | nonstopux*)
14512      lt_prog_compiler_wl_F77='-Wl,'
14513      # PIC (with -KPIC) is the default.
14514      lt_prog_compiler_static_F77='-non_shared'
14515      ;;
14516
14517    newsos6)
14518      lt_prog_compiler_pic_F77='-KPIC'
14519      lt_prog_compiler_static_F77='-Bstatic'
14520      ;;
14521
14522    linux* | k*bsd*-gnu)
14523      case $cc_basename in
14524      icc* | ecc*)
14525	lt_prog_compiler_wl_F77='-Wl,'
14526	lt_prog_compiler_pic_F77='-KPIC'
14527	lt_prog_compiler_static_F77='-static'
14528        ;;
14529      pgcc* | pgf77* | pgf90* | pgf95*)
14530        # Portland Group compilers (*not* the Pentium gcc compiler,
14531	# which looks to be a dead project)
14532	lt_prog_compiler_wl_F77='-Wl,'
14533	lt_prog_compiler_pic_F77='-fpic'
14534	lt_prog_compiler_static_F77='-Bstatic'
14535        ;;
14536      ccc*)
14537        lt_prog_compiler_wl_F77='-Wl,'
14538        # All Alpha code is PIC.
14539        lt_prog_compiler_static_F77='-non_shared'
14540        ;;
14541      *)
14542        case `$CC -V 2>&1 | sed 5q` in
14543	*Sun\ C*)
14544	  # Sun C 5.9
14545	  lt_prog_compiler_pic_F77='-KPIC'
14546	  lt_prog_compiler_static_F77='-Bstatic'
14547	  lt_prog_compiler_wl_F77='-Wl,'
14548	  ;;
14549	*Sun\ F*)
14550	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14551	  lt_prog_compiler_pic_F77='-KPIC'
14552	  lt_prog_compiler_static_F77='-Bstatic'
14553	  lt_prog_compiler_wl_F77=''
14554	  ;;
14555	esac
14556	;;
14557      esac
14558      ;;
14559
14560    osf3* | osf4* | osf5*)
14561      lt_prog_compiler_wl_F77='-Wl,'
14562      # All OSF/1 code is PIC.
14563      lt_prog_compiler_static_F77='-non_shared'
14564      ;;
14565
14566    rdos*)
14567      lt_prog_compiler_static_F77='-non_shared'
14568      ;;
14569
14570    solaris*)
14571      lt_prog_compiler_pic_F77='-KPIC'
14572      lt_prog_compiler_static_F77='-Bstatic'
14573      case $cc_basename in
14574      f77* | f90* | f95*)
14575	lt_prog_compiler_wl_F77='-Qoption ld ';;
14576      *)
14577	lt_prog_compiler_wl_F77='-Wl,';;
14578      esac
14579      ;;
14580
14581    sunos4*)
14582      lt_prog_compiler_wl_F77='-Qoption ld '
14583      lt_prog_compiler_pic_F77='-PIC'
14584      lt_prog_compiler_static_F77='-Bstatic'
14585      ;;
14586
14587    sysv4 | sysv4.2uw2* | sysv4.3*)
14588      lt_prog_compiler_wl_F77='-Wl,'
14589      lt_prog_compiler_pic_F77='-KPIC'
14590      lt_prog_compiler_static_F77='-Bstatic'
14591      ;;
14592
14593    sysv4*MP*)
14594      if test -d /usr/nec ;then
14595	lt_prog_compiler_pic_F77='-Kconform_pic'
14596	lt_prog_compiler_static_F77='-Bstatic'
14597      fi
14598      ;;
14599
14600    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14601      lt_prog_compiler_wl_F77='-Wl,'
14602      lt_prog_compiler_pic_F77='-KPIC'
14603      lt_prog_compiler_static_F77='-Bstatic'
14604      ;;
14605
14606    unicos*)
14607      lt_prog_compiler_wl_F77='-Wl,'
14608      lt_prog_compiler_can_build_shared_F77=no
14609      ;;
14610
14611    uts4*)
14612      lt_prog_compiler_pic_F77='-pic'
14613      lt_prog_compiler_static_F77='-Bstatic'
14614      ;;
14615
14616    *)
14617      lt_prog_compiler_can_build_shared_F77=no
14618      ;;
14619    esac
14620  fi
14621
14622{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14623echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14624
14625#
14626# Check to make sure the PIC flag actually works.
14627#
14628if test -n "$lt_prog_compiler_pic_F77"; then
14629
14630{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14631echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14632if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14633  echo $ECHO_N "(cached) $ECHO_C" >&6
14634else
14635  lt_prog_compiler_pic_works_F77=no
14636  ac_outfile=conftest.$ac_objext
14637   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14638   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14639   # Insert the option either (1) after the last *FLAGS variable, or
14640   # (2) before a word containing "conftest.", or (3) at the end.
14641   # Note that $ac_compile itself does not contain backslashes and begins
14642   # with a dollar sign (not a hyphen), so the echo should work correctly.
14643   # The option is referenced via a variable to avoid confusing sed.
14644   lt_compile=`echo "$ac_compile" | $SED \
14645   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14646   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14647   -e 's:$: $lt_compiler_flag:'`
14648   (eval echo "\"\$as_me:14652: $lt_compile\"" >&5)
14649   (eval "$lt_compile" 2>conftest.err)
14650   ac_status=$?
14651   cat conftest.err >&5
14652   echo "$as_me:14656: \$? = $ac_status" >&5
14653   if (exit $ac_status) && test -s "$ac_outfile"; then
14654     # The compiler can only warn and ignore the option if not recognized
14655     # So say no if there are warnings other than the usual output.
14656     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14657     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14658     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14659       lt_prog_compiler_pic_works_F77=yes
14660     fi
14661   fi
14662   $rm conftest*
14663
14664fi
14665{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14666echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14667
14668if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14669    case $lt_prog_compiler_pic_F77 in
14670     "" | " "*) ;;
14671     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14672     esac
14673else
14674    lt_prog_compiler_pic_F77=
14675     lt_prog_compiler_can_build_shared_F77=no
14676fi
14677
14678fi
14679case $host_os in
14680  # For platforms which do not support PIC, -DPIC is meaningless:
14681  *djgpp*)
14682    lt_prog_compiler_pic_F77=
14683    ;;
14684  *)
14685    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14686    ;;
14687esac
14688
14689#
14690# Check to make sure the static flag actually works.
14691#
14692wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14693{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14694echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14695if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14696  echo $ECHO_N "(cached) $ECHO_C" >&6
14697else
14698  lt_prog_compiler_static_works_F77=no
14699   save_LDFLAGS="$LDFLAGS"
14700   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14701   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14702   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14703     # The linker can only warn and ignore the option if not recognized
14704     # So say no if there are warnings
14705     if test -s conftest.err; then
14706       # Append any errors to the config.log.
14707       cat conftest.err 1>&5
14708       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14709       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14710       if diff conftest.exp conftest.er2 >/dev/null; then
14711         lt_prog_compiler_static_works_F77=yes
14712       fi
14713     else
14714       lt_prog_compiler_static_works_F77=yes
14715     fi
14716   fi
14717   $rm conftest*
14718   LDFLAGS="$save_LDFLAGS"
14719
14720fi
14721{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14722echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14723
14724if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14725    :
14726else
14727    lt_prog_compiler_static_F77=
14728fi
14729
14730
14731{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14732echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14733if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14734  echo $ECHO_N "(cached) $ECHO_C" >&6
14735else
14736  lt_cv_prog_compiler_c_o_F77=no
14737   $rm -r conftest 2>/dev/null
14738   mkdir conftest
14739   cd conftest
14740   mkdir out
14741   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14742
14743   lt_compiler_flag="-o out/conftest2.$ac_objext"
14744   # Insert the option either (1) after the last *FLAGS variable, or
14745   # (2) before a word containing "conftest.", or (3) at the end.
14746   # Note that $ac_compile itself does not contain backslashes and begins
14747   # with a dollar sign (not a hyphen), so the echo should work correctly.
14748   lt_compile=`echo "$ac_compile" | $SED \
14749   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14750   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14751   -e 's:$: $lt_compiler_flag:'`
14752   (eval echo "\"\$as_me:14756: $lt_compile\"" >&5)
14753   (eval "$lt_compile" 2>out/conftest.err)
14754   ac_status=$?
14755   cat out/conftest.err >&5
14756   echo "$as_me:14760: \$? = $ac_status" >&5
14757   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14758   then
14759     # The compiler can only warn and ignore the option if not recognized
14760     # So say no if there are warnings
14761     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14762     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14763     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14764       lt_cv_prog_compiler_c_o_F77=yes
14765     fi
14766   fi
14767   chmod u+w . 2>&5
14768   $rm conftest*
14769   # SGI C++ compiler will create directory out/ii_files/ for
14770   # template instantiation
14771   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14772   $rm out/* && rmdir out
14773   cd ..
14774   rmdir conftest
14775   $rm conftest*
14776
14777fi
14778{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14779echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14780
14781
14782hard_links="nottested"
14783if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14784  # do not overwrite the value of need_locks provided by the user
14785  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14786echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14787  hard_links=yes
14788  $rm conftest*
14789  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14790  touch conftest.a
14791  ln conftest.a conftest.b 2>&5 || hard_links=no
14792  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14793  { echo "$as_me:$LINENO: result: $hard_links" >&5
14794echo "${ECHO_T}$hard_links" >&6; }
14795  if test "$hard_links" = no; then
14796    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14797echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14798    need_locks=warn
14799  fi
14800else
14801  need_locks=no
14802fi
14803
14804{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14805echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14806
14807  runpath_var=
14808  allow_undefined_flag_F77=
14809  enable_shared_with_static_runtimes_F77=no
14810  archive_cmds_F77=
14811  archive_expsym_cmds_F77=
14812  old_archive_From_new_cmds_F77=
14813  old_archive_from_expsyms_cmds_F77=
14814  export_dynamic_flag_spec_F77=
14815  whole_archive_flag_spec_F77=
14816  thread_safe_flag_spec_F77=
14817  hardcode_libdir_flag_spec_F77=
14818  hardcode_libdir_flag_spec_ld_F77=
14819  hardcode_libdir_separator_F77=
14820  hardcode_direct_F77=no
14821  hardcode_minus_L_F77=no
14822  hardcode_shlibpath_var_F77=unsupported
14823  link_all_deplibs_F77=unknown
14824  hardcode_automatic_F77=no
14825  module_cmds_F77=
14826  module_expsym_cmds_F77=
14827  always_export_symbols_F77=no
14828  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14829  # include_expsyms should be a list of space-separated symbols to be *always*
14830  # included in the symbol list
14831  include_expsyms_F77=
14832  # exclude_expsyms can be an extended regexp of symbols to exclude
14833  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14834  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14835  # as well as any symbol that contains `d'.
14836  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14837  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14838  # platforms (ab)use it in PIC code, but their linkers get confused if
14839  # the symbol is explicitly referenced.  Since portable code cannot
14840  # rely on this symbol name, it's probably fine to never include it in
14841  # preloaded symbol tables.
14842  extract_expsyms_cmds=
14843  # Just being paranoid about ensuring that cc_basename is set.
14844  for cc_temp in $compiler""; do
14845  case $cc_temp in
14846    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14847    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14848    \-*) ;;
14849    *) break;;
14850  esac
14851done
14852cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14853
14854  case $host_os in
14855  cygwin* | mingw* | pw32*)
14856    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14857    # When not using gcc, we currently assume that we are using
14858    # Microsoft Visual C++.
14859    if test "$GCC" != yes; then
14860      with_gnu_ld=no
14861    fi
14862    ;;
14863  interix*)
14864    # we just hope/assume this is gcc and not c89 (= MSVC++)
14865    with_gnu_ld=yes
14866    ;;
14867  openbsd*)
14868    with_gnu_ld=no
14869    ;;
14870  esac
14871
14872  ld_shlibs_F77=yes
14873  if test "$with_gnu_ld" = yes; then
14874    # If archive_cmds runs LD, not CC, wlarc should be empty
14875    wlarc='${wl}'
14876
14877    # Set some defaults for GNU ld with shared library support. These
14878    # are reset later if shared libraries are not supported. Putting them
14879    # here allows them to be overridden if necessary.
14880    runpath_var=LD_RUN_PATH
14881    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14882    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14883    # ancient GNU ld didn't support --whole-archive et. al.
14884    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14885	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14886      else
14887  	whole_archive_flag_spec_F77=
14888    fi
14889    supports_anon_versioning=no
14890    case `$LD -v 2>/dev/null` in
14891      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14892      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14893      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14894      *\ 2.11.*) ;; # other 2.11 versions
14895      *) supports_anon_versioning=yes ;;
14896    esac
14897
14898    # See if GNU ld supports shared libraries.
14899    case $host_os in
14900    aix3* | aix4* | aix5*)
14901      # On AIX/PPC, the GNU linker is very broken
14902      if test "$host_cpu" != ia64; then
14903	ld_shlibs_F77=no
14904	cat <<EOF 1>&2
14905
14906*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14907*** to be unable to reliably create shared libraries on AIX.
14908*** Therefore, libtool is disabling shared libraries support.  If you
14909*** really care for shared libraries, you may want to modify your PATH
14910*** so that a non-GNU linker is found, and then restart.
14911
14912EOF
14913      fi
14914      ;;
14915
14916    amigaos*)
14917      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)'
14918      hardcode_libdir_flag_spec_F77='-L$libdir'
14919      hardcode_minus_L_F77=yes
14920
14921      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14922      # that the semantics of dynamic libraries on AmigaOS, at least up
14923      # to version 4, is to share data among multiple programs linked
14924      # with the same dynamic library.  Since this doesn't match the
14925      # behavior of shared libraries on other platforms, we can't use
14926      # them.
14927      ld_shlibs_F77=no
14928      ;;
14929
14930    beos*)
14931      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14932	allow_undefined_flag_F77=unsupported
14933	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14934	# support --undefined.  This deserves some investigation.  FIXME
14935	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14936      else
14937	ld_shlibs_F77=no
14938      fi
14939      ;;
14940
14941    cygwin* | mingw* | pw32*)
14942      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14943      # as there is no search path for DLLs.
14944      hardcode_libdir_flag_spec_F77='-L$libdir'
14945      allow_undefined_flag_F77=unsupported
14946      always_export_symbols_F77=no
14947      enable_shared_with_static_runtimes_F77=yes
14948      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14949
14950      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14951        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14952	# If the export-symbols file already is a .def file (1st line
14953	# is EXPORTS), use it as is; otherwise, prepend...
14954	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14955	  cp $export_symbols $output_objdir/$soname.def;
14956	else
14957	  echo EXPORTS > $output_objdir/$soname.def;
14958	  cat $export_symbols >> $output_objdir/$soname.def;
14959	fi~
14960	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14961      else
14962	ld_shlibs_F77=no
14963      fi
14964      ;;
14965
14966    interix[3-9]*)
14967      hardcode_direct_F77=no
14968      hardcode_shlibpath_var_F77=no
14969      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14970      export_dynamic_flag_spec_F77='${wl}-E'
14971      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14972      # Instead, shared libraries are loaded at an image base (0x10000000 by
14973      # default) and relocated if they conflict, which is a slow very memory
14974      # consuming and fragmenting process.  To avoid this, we pick a random,
14975      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14976      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14977      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'
14978      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'
14979      ;;
14980
14981    gnu* | linux* | k*bsd*-gnu)
14982      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14983	tmp_addflag=
14984	case $cc_basename,$host_cpu in
14985	pgcc*)				# Portland Group C compiler
14986	  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'
14987	  tmp_addflag=' $pic_flag'
14988	  ;;
14989	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14990	  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'
14991	  tmp_addflag=' $pic_flag -Mnomain' ;;
14992	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14993	  tmp_addflag=' -i_dynamic' ;;
14994	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14995	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14996	ifc* | ifort*)			# Intel Fortran compiler
14997	  tmp_addflag=' -nofor_main' ;;
14998	esac
14999	case `$CC -V 2>&1 | sed 5q` in
15000	*Sun\ C*)			# Sun C 5.9
15001	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15002	  tmp_sharedflag='-G' ;;
15003	*Sun\ F*)			# Sun Fortran 8.3
15004	  tmp_sharedflag='-G' ;;
15005	*)
15006	  tmp_sharedflag='-shared' ;;
15007	esac
15008	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15009
15010	if test $supports_anon_versioning = yes; then
15011	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15012  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15013  $echo "local: *; };" >> $output_objdir/$libname.ver~
15014	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15015	fi
15016      else
15017	ld_shlibs_F77=no
15018      fi
15019      ;;
15020
15021    netbsd*)
15022      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15023	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15024	wlarc=
15025      else
15026	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15027	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15028      fi
15029      ;;
15030
15031    solaris*)
15032      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15033	ld_shlibs_F77=no
15034	cat <<EOF 1>&2
15035
15036*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15037*** create shared libraries on Solaris systems.  Therefore, libtool
15038*** is disabling shared libraries support.  We urge you to upgrade GNU
15039*** binutils to release 2.9.1 or newer.  Another option is to modify
15040*** your PATH or compiler configuration so that the native linker is
15041*** used, and then restart.
15042
15043EOF
15044      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15045	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15046	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15047      else
15048	ld_shlibs_F77=no
15049      fi
15050      ;;
15051
15052    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15053      case `$LD -v 2>&1` in
15054        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15055	ld_shlibs_F77=no
15056	cat <<_LT_EOF 1>&2
15057
15058*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15059*** reliably create shared libraries on SCO systems.  Therefore, libtool
15060*** is disabling shared libraries support.  We urge you to upgrade GNU
15061*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15062*** your PATH or compiler configuration so that the native linker is
15063*** used, and then restart.
15064
15065_LT_EOF
15066	;;
15067	*)
15068	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15069	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15070	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15071	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15072	  else
15073	    ld_shlibs_F77=no
15074	  fi
15075	;;
15076      esac
15077      ;;
15078
15079    sunos4*)
15080      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15081      wlarc=
15082      hardcode_direct_F77=yes
15083      hardcode_shlibpath_var_F77=no
15084      ;;
15085
15086    *)
15087      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15088	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15089	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15090      else
15091	ld_shlibs_F77=no
15092      fi
15093      ;;
15094    esac
15095
15096    if test "$ld_shlibs_F77" = no; then
15097      runpath_var=
15098      hardcode_libdir_flag_spec_F77=
15099      export_dynamic_flag_spec_F77=
15100      whole_archive_flag_spec_F77=
15101    fi
15102  else
15103    # PORTME fill in a description of your system's linker (not GNU ld)
15104    case $host_os in
15105    aix3*)
15106      allow_undefined_flag_F77=unsupported
15107      always_export_symbols_F77=yes
15108      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'
15109      # Note: this linker hardcodes the directories in LIBPATH if there
15110      # are no directories specified by -L.
15111      hardcode_minus_L_F77=yes
15112      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15113	# Neither direct hardcoding nor static linking is supported with a
15114	# broken collect2.
15115	hardcode_direct_F77=unsupported
15116      fi
15117      ;;
15118
15119    aix4* | aix5*)
15120      if test "$host_cpu" = ia64; then
15121	# On IA64, the linker does run time linking by default, so we don't
15122	# have to do anything special.
15123	aix_use_runtimelinking=no
15124	exp_sym_flag='-Bexport'
15125	no_entry_flag=""
15126      else
15127	# If we're using GNU nm, then we don't want the "-C" option.
15128	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15129	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15130	  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'
15131	else
15132	  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'
15133	fi
15134	aix_use_runtimelinking=no
15135
15136	# Test if we are trying to use run time linking or normal
15137	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15138	# need to do runtime linking.
15139	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15140	  for ld_flag in $LDFLAGS; do
15141  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15142  	    aix_use_runtimelinking=yes
15143  	    break
15144  	  fi
15145	  done
15146	  ;;
15147	esac
15148
15149	exp_sym_flag='-bexport'
15150	no_entry_flag='-bnoentry'
15151      fi
15152
15153      # When large executables or shared objects are built, AIX ld can
15154      # have problems creating the table of contents.  If linking a library
15155      # or program results in "error TOC overflow" add -mminimal-toc to
15156      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15157      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15158
15159      archive_cmds_F77=''
15160      hardcode_direct_F77=yes
15161      hardcode_libdir_separator_F77=':'
15162      link_all_deplibs_F77=yes
15163
15164      if test "$GCC" = yes; then
15165	case $host_os in aix4.[012]|aix4.[012].*)
15166	# We only want to do this on AIX 4.2 and lower, the check
15167	# below for broken collect2 doesn't work under 4.3+
15168	  collect2name=`${CC} -print-prog-name=collect2`
15169	  if test -f "$collect2name" && \
15170  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15171	  then
15172  	  # We have reworked collect2
15173  	  :
15174	  else
15175  	  # We have old collect2
15176  	  hardcode_direct_F77=unsupported
15177  	  # It fails to find uninstalled libraries when the uninstalled
15178  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15179  	  # to unsupported forces relinking
15180  	  hardcode_minus_L_F77=yes
15181  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15182  	  hardcode_libdir_separator_F77=
15183	  fi
15184	  ;;
15185	esac
15186	shared_flag='-shared'
15187	if test "$aix_use_runtimelinking" = yes; then
15188	  shared_flag="$shared_flag "'${wl}-G'
15189	fi
15190      else
15191	# not using gcc
15192	if test "$host_cpu" = ia64; then
15193  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15194  	# chokes on -Wl,-G. The following line is correct:
15195	  shared_flag='-G'
15196	else
15197	  if test "$aix_use_runtimelinking" = yes; then
15198	    shared_flag='${wl}-G'
15199	  else
15200	    shared_flag='${wl}-bM:SRE'
15201	  fi
15202	fi
15203      fi
15204
15205      # It seems that -bexpall does not export symbols beginning with
15206      # underscore (_), so it is better to generate a list of symbols to export.
15207      always_export_symbols_F77=yes
15208      if test "$aix_use_runtimelinking" = yes; then
15209	# Warning - without using the other runtime loading flags (-brtl),
15210	# -berok will link without error, but may produce a broken library.
15211	allow_undefined_flag_F77='-berok'
15212       # Determine the default libpath from the value encoded in an empty executable.
15213       cat >conftest.$ac_ext <<_ACEOF
15214      program main
15215
15216      end
15217_ACEOF
15218rm -f conftest.$ac_objext conftest$ac_exeext
15219if { (ac_try="$ac_link"
15220case "(($ac_try" in
15221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222  *) ac_try_echo=$ac_try;;
15223esac
15224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225  (eval "$ac_link") 2>conftest.er1
15226  ac_status=$?
15227  grep -v '^ *+' conftest.er1 >conftest.err
15228  rm -f conftest.er1
15229  cat conftest.err >&5
15230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231  (exit $ac_status); } && {
15232	 test -z "$ac_f77_werror_flag" ||
15233	 test ! -s conftest.err
15234       } && test -s conftest$ac_exeext &&
15235       $as_test_x conftest$ac_exeext; then
15236
15237lt_aix_libpath_sed='
15238    /Import File Strings/,/^$/ {
15239	/^0/ {
15240	    s/^0  *\(.*\)$/\1/
15241	    p
15242	}
15243    }'
15244aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15245# Check for a 64-bit object if we didn't find anything.
15246if test -z "$aix_libpath"; then
15247  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15248fi
15249else
15250  echo "$as_me: failed program was:" >&5
15251sed 's/^/| /' conftest.$ac_ext >&5
15252
15253
15254fi
15255
15256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15257      conftest$ac_exeext conftest.$ac_ext
15258if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15259
15260       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15261	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"
15262       else
15263	if test "$host_cpu" = ia64; then
15264	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15265	  allow_undefined_flag_F77="-z nodefs"
15266	  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"
15267	else
15268	 # Determine the default libpath from the value encoded in an empty executable.
15269	 cat >conftest.$ac_ext <<_ACEOF
15270      program main
15271
15272      end
15273_ACEOF
15274rm -f conftest.$ac_objext conftest$ac_exeext
15275if { (ac_try="$ac_link"
15276case "(($ac_try" in
15277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278  *) ac_try_echo=$ac_try;;
15279esac
15280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281  (eval "$ac_link") 2>conftest.er1
15282  ac_status=$?
15283  grep -v '^ *+' conftest.er1 >conftest.err
15284  rm -f conftest.er1
15285  cat conftest.err >&5
15286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287  (exit $ac_status); } && {
15288	 test -z "$ac_f77_werror_flag" ||
15289	 test ! -s conftest.err
15290       } && test -s conftest$ac_exeext &&
15291       $as_test_x conftest$ac_exeext; then
15292
15293lt_aix_libpath_sed='
15294    /Import File Strings/,/^$/ {
15295	/^0/ {
15296	    s/^0  *\(.*\)$/\1/
15297	    p
15298	}
15299    }'
15300aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15301# Check for a 64-bit object if we didn't find anything.
15302if test -z "$aix_libpath"; then
15303  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15304fi
15305else
15306  echo "$as_me: failed program was:" >&5
15307sed 's/^/| /' conftest.$ac_ext >&5
15308
15309
15310fi
15311
15312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15313      conftest$ac_exeext conftest.$ac_ext
15314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15315
15316	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15317	  # Warning - without using the other run time loading flags,
15318	  # -berok will link without error, but may produce a broken library.
15319	  no_undefined_flag_F77=' ${wl}-bernotok'
15320	  allow_undefined_flag_F77=' ${wl}-berok'
15321	  # Exported symbols can be pulled into shared objects from archives
15322	  whole_archive_flag_spec_F77='$convenience'
15323	  archive_cmds_need_lc_F77=yes
15324	  # This is similar to how AIX traditionally builds its shared libraries.
15325	  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'
15326	fi
15327      fi
15328      ;;
15329
15330    amigaos*)
15331      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)'
15332      hardcode_libdir_flag_spec_F77='-L$libdir'
15333      hardcode_minus_L_F77=yes
15334      # see comment about different semantics on the GNU ld section
15335      ld_shlibs_F77=no
15336      ;;
15337
15338    bsdi[45]*)
15339      export_dynamic_flag_spec_F77=-rdynamic
15340      ;;
15341
15342    cygwin* | mingw* | pw32*)
15343      # When not using gcc, we currently assume that we are using
15344      # Microsoft Visual C++.
15345      # hardcode_libdir_flag_spec is actually meaningless, as there is
15346      # no search path for DLLs.
15347      hardcode_libdir_flag_spec_F77=' '
15348      allow_undefined_flag_F77=unsupported
15349      # Tell ltmain to make .lib files, not .a files.
15350      libext=lib
15351      # Tell ltmain to make .dll files, not .so files.
15352      shrext_cmds=".dll"
15353      # FIXME: Setting linknames here is a bad hack.
15354      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15355      # The linker will automatically build a .lib file if we build a DLL.
15356      old_archive_From_new_cmds_F77='true'
15357      # FIXME: Should let the user specify the lib program.
15358      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15359      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15360      enable_shared_with_static_runtimes_F77=yes
15361      ;;
15362
15363    darwin* | rhapsody*)
15364      case $host_os in
15365        rhapsody* | darwin1.[012])
15366         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15367         ;;
15368       *) # Darwin 1.3 on
15369         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15370           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15371         else
15372           case ${MACOSX_DEPLOYMENT_TARGET} in
15373             10.[012])
15374               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15375               ;;
15376             10.*)
15377               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15378               ;;
15379           esac
15380         fi
15381         ;;
15382      esac
15383      archive_cmds_need_lc_F77=no
15384      hardcode_direct_F77=no
15385      hardcode_automatic_F77=yes
15386      hardcode_shlibpath_var_F77=unsupported
15387      whole_archive_flag_spec_F77=''
15388      link_all_deplibs_F77=yes
15389    if test "$GCC" = yes ; then
15390    	output_verbose_link_cmd='echo'
15391        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15392      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15393      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15394      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}'
15395      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}'
15396    else
15397      case $cc_basename in
15398        xlc*)
15399         output_verbose_link_cmd='echo'
15400         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15401         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15402          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15403         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15404          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}'
15405          ;;
15406       *)
15407         ld_shlibs_F77=no
15408          ;;
15409      esac
15410    fi
15411      ;;
15412
15413    dgux*)
15414      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15415      hardcode_libdir_flag_spec_F77='-L$libdir'
15416      hardcode_shlibpath_var_F77=no
15417      ;;
15418
15419    freebsd1*)
15420      ld_shlibs_F77=no
15421      ;;
15422
15423    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15424    # support.  Future versions do this automatically, but an explicit c++rt0.o
15425    # does not break anything, and helps significantly (at the cost of a little
15426    # extra space).
15427    freebsd2.2*)
15428      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15429      hardcode_libdir_flag_spec_F77='-R$libdir'
15430      hardcode_direct_F77=yes
15431      hardcode_shlibpath_var_F77=no
15432      ;;
15433
15434    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15435    freebsd2*)
15436      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15437      hardcode_direct_F77=yes
15438      hardcode_minus_L_F77=yes
15439      hardcode_shlibpath_var_F77=no
15440      ;;
15441
15442    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15443    freebsd* | dragonfly*)
15444      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15445      hardcode_libdir_flag_spec_F77='-R$libdir'
15446      hardcode_direct_F77=yes
15447      hardcode_shlibpath_var_F77=no
15448      ;;
15449
15450    hpux9*)
15451      if test "$GCC" = yes; then
15452	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'
15453      else
15454	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'
15455      fi
15456      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15457      hardcode_libdir_separator_F77=:
15458      hardcode_direct_F77=yes
15459
15460      # hardcode_minus_L: Not really in the search PATH,
15461      # but as the default location of the library.
15462      hardcode_minus_L_F77=yes
15463      export_dynamic_flag_spec_F77='${wl}-E'
15464      ;;
15465
15466    hpux10*)
15467      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15468	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15469      else
15470	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15471      fi
15472      if test "$with_gnu_ld" = no; then
15473	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15474	hardcode_libdir_separator_F77=:
15475
15476	hardcode_direct_F77=yes
15477	export_dynamic_flag_spec_F77='${wl}-E'
15478
15479	# hardcode_minus_L: Not really in the search PATH,
15480	# but as the default location of the library.
15481	hardcode_minus_L_F77=yes
15482      fi
15483      ;;
15484
15485    hpux11*)
15486      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15487	case $host_cpu in
15488	hppa*64*)
15489	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15490	  ;;
15491	ia64*)
15492	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15493	  ;;
15494	*)
15495	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15496	  ;;
15497	esac
15498      else
15499	case $host_cpu in
15500	hppa*64*)
15501	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15502	  ;;
15503	ia64*)
15504	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15505	  ;;
15506	*)
15507	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15508	  ;;
15509	esac
15510      fi
15511      if test "$with_gnu_ld" = no; then
15512	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15513	hardcode_libdir_separator_F77=:
15514
15515	case $host_cpu in
15516	hppa*64*|ia64*)
15517	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15518	  hardcode_direct_F77=no
15519	  hardcode_shlibpath_var_F77=no
15520	  ;;
15521	*)
15522	  hardcode_direct_F77=yes
15523	  export_dynamic_flag_spec_F77='${wl}-E'
15524
15525	  # hardcode_minus_L: Not really in the search PATH,
15526	  # but as the default location of the library.
15527	  hardcode_minus_L_F77=yes
15528	  ;;
15529	esac
15530      fi
15531      ;;
15532
15533    irix5* | irix6* | nonstopux*)
15534      if test "$GCC" = yes; then
15535	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'
15536      else
15537	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'
15538	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15539      fi
15540      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15541      hardcode_libdir_separator_F77=:
15542      link_all_deplibs_F77=yes
15543      ;;
15544
15545    netbsd*)
15546      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15547	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15548      else
15549	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15550      fi
15551      hardcode_libdir_flag_spec_F77='-R$libdir'
15552      hardcode_direct_F77=yes
15553      hardcode_shlibpath_var_F77=no
15554      ;;
15555
15556    newsos6)
15557      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15558      hardcode_direct_F77=yes
15559      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15560      hardcode_libdir_separator_F77=:
15561      hardcode_shlibpath_var_F77=no
15562      ;;
15563
15564    openbsd*)
15565      if test -f /usr/libexec/ld.so; then
15566	hardcode_direct_F77=yes
15567	hardcode_shlibpath_var_F77=no
15568	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15569	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15570	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15571	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15572	  export_dynamic_flag_spec_F77='${wl}-E'
15573	else
15574	  case $host_os in
15575	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15576	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15577	     hardcode_libdir_flag_spec_F77='-R$libdir'
15578	     ;;
15579	   *)
15580	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15581	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15582	     ;;
15583	  esac
15584        fi
15585      else
15586	ld_shlibs_F77=no
15587      fi
15588      ;;
15589
15590    os2*)
15591      hardcode_libdir_flag_spec_F77='-L$libdir'
15592      hardcode_minus_L_F77=yes
15593      allow_undefined_flag_F77=unsupported
15594      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'
15595      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15596      ;;
15597
15598    osf3*)
15599      if test "$GCC" = yes; then
15600	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15601	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'
15602      else
15603	allow_undefined_flag_F77=' -expect_unresolved \*'
15604	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'
15605      fi
15606      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15607      hardcode_libdir_separator_F77=:
15608      ;;
15609
15610    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15611      if test "$GCC" = yes; then
15612	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15613	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'
15614	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15615      else
15616	allow_undefined_flag_F77=' -expect_unresolved \*'
15617	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'
15618	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~
15619	$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'
15620
15621	# Both c and cxx compiler support -rpath directly
15622	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15623      fi
15624      hardcode_libdir_separator_F77=:
15625      ;;
15626
15627    solaris*)
15628      no_undefined_flag_F77=' -z text'
15629      if test "$GCC" = yes; then
15630	wlarc='${wl}'
15631	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15632	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15633	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15634      else
15635	wlarc=''
15636	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15637	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15638  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15639      fi
15640      hardcode_libdir_flag_spec_F77='-R$libdir'
15641      hardcode_shlibpath_var_F77=no
15642      case $host_os in
15643      solaris2.[0-5] | solaris2.[0-5].*) ;;
15644      *)
15645	# The compiler driver will combine and reorder linker options,
15646	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15647	# but is careful enough not to reorder.
15648 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15649	if test "$GCC" = yes; then
15650	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15651	else
15652	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15653	fi
15654	;;
15655      esac
15656      link_all_deplibs_F77=yes
15657      ;;
15658
15659    sunos4*)
15660      if test "x$host_vendor" = xsequent; then
15661	# Use $CC to link under sequent, because it throws in some extra .o
15662	# files that make .init and .fini sections work.
15663	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15664      else
15665	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15666      fi
15667      hardcode_libdir_flag_spec_F77='-L$libdir'
15668      hardcode_direct_F77=yes
15669      hardcode_minus_L_F77=yes
15670      hardcode_shlibpath_var_F77=no
15671      ;;
15672
15673    sysv4)
15674      case $host_vendor in
15675	sni)
15676	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677	  hardcode_direct_F77=yes # is this really true???
15678	;;
15679	siemens)
15680	  ## LD is ld it makes a PLAMLIB
15681	  ## CC just makes a GrossModule.
15682	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15683	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15684	  hardcode_direct_F77=no
15685        ;;
15686	motorola)
15687	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15689	;;
15690      esac
15691      runpath_var='LD_RUN_PATH'
15692      hardcode_shlibpath_var_F77=no
15693      ;;
15694
15695    sysv4.3*)
15696      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15697      hardcode_shlibpath_var_F77=no
15698      export_dynamic_flag_spec_F77='-Bexport'
15699      ;;
15700
15701    sysv4*MP*)
15702      if test -d /usr/nec; then
15703	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15704	hardcode_shlibpath_var_F77=no
15705	runpath_var=LD_RUN_PATH
15706	hardcode_runpath_var=yes
15707	ld_shlibs_F77=yes
15708      fi
15709      ;;
15710
15711    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15712      no_undefined_flag_F77='${wl}-z,text'
15713      archive_cmds_need_lc_F77=no
15714      hardcode_shlibpath_var_F77=no
15715      runpath_var='LD_RUN_PATH'
15716
15717      if test "$GCC" = yes; then
15718	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15719	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15720      else
15721	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723      fi
15724      ;;
15725
15726    sysv5* | sco3.2v5* | sco5v6*)
15727      # Note: We can NOT use -z defs as we might desire, because we do not
15728      # link with -lc, and that would cause any symbols used from libc to
15729      # always be unresolved, which means just about no library would
15730      # ever link correctly.  If we're not using GNU ld we use -z text
15731      # though, which does catch some bad symbols but isn't as heavy-handed
15732      # as -z defs.
15733      no_undefined_flag_F77='${wl}-z,text'
15734      allow_undefined_flag_F77='${wl}-z,nodefs'
15735      archive_cmds_need_lc_F77=no
15736      hardcode_shlibpath_var_F77=no
15737      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15738      hardcode_libdir_separator_F77=':'
15739      link_all_deplibs_F77=yes
15740      export_dynamic_flag_spec_F77='${wl}-Bexport'
15741      runpath_var='LD_RUN_PATH'
15742
15743      if test "$GCC" = yes; then
15744	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15745	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15746      else
15747	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15748	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15749      fi
15750      ;;
15751
15752    uts4*)
15753      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754      hardcode_libdir_flag_spec_F77='-L$libdir'
15755      hardcode_shlibpath_var_F77=no
15756      ;;
15757
15758    *)
15759      ld_shlibs_F77=no
15760      ;;
15761    esac
15762  fi
15763
15764{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15765echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15766test "$ld_shlibs_F77" = no && can_build_shared=no
15767
15768#
15769# Do we need to explicitly link libc?
15770#
15771case "x$archive_cmds_need_lc_F77" in
15772x|xyes)
15773  # Assume -lc should be added
15774  archive_cmds_need_lc_F77=yes
15775
15776  if test "$enable_shared" = yes && test "$GCC" = yes; then
15777    case $archive_cmds_F77 in
15778    *'~'*)
15779      # FIXME: we may have to deal with multi-command sequences.
15780      ;;
15781    '$CC '*)
15782      # Test whether the compiler implicitly links with -lc since on some
15783      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15784      # to ld, don't add -lc before -lgcc.
15785      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15786echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15787      $rm conftest*
15788      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15789
15790      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791  (eval $ac_compile) 2>&5
15792  ac_status=$?
15793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794  (exit $ac_status); } 2>conftest.err; then
15795        soname=conftest
15796        lib=conftest
15797        libobjs=conftest.$ac_objext
15798        deplibs=
15799        wl=$lt_prog_compiler_wl_F77
15800	pic_flag=$lt_prog_compiler_pic_F77
15801        compiler_flags=-v
15802        linker_flags=-v
15803        verstring=
15804        output_objdir=.
15805        libname=conftest
15806        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15807        allow_undefined_flag_F77=
15808        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15809  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15810  ac_status=$?
15811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812  (exit $ac_status); }
15813        then
15814	  archive_cmds_need_lc_F77=no
15815        else
15816	  archive_cmds_need_lc_F77=yes
15817        fi
15818        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15819      else
15820        cat conftest.err 1>&5
15821      fi
15822      $rm conftest*
15823      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15824echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15825      ;;
15826    esac
15827  fi
15828  ;;
15829esac
15830
15831{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15832echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15833library_names_spec=
15834libname_spec='lib$name'
15835soname_spec=
15836shrext_cmds=".so"
15837postinstall_cmds=
15838postuninstall_cmds=
15839finish_cmds=
15840finish_eval=
15841shlibpath_var=
15842shlibpath_overrides_runpath=unknown
15843version_type=none
15844dynamic_linker="$host_os ld.so"
15845sys_lib_dlsearch_path_spec="/lib /usr/lib"
15846
15847need_lib_prefix=unknown
15848hardcode_into_libs=no
15849
15850# when you set need_version to no, make sure it does not cause -set_version
15851# flags to be left without arguments
15852need_version=unknown
15853
15854case $host_os in
15855aix3*)
15856  version_type=linux
15857  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15858  shlibpath_var=LIBPATH
15859
15860  # AIX 3 has no versioning support, so we append a major version to the name.
15861  soname_spec='${libname}${release}${shared_ext}$major'
15862  ;;
15863
15864aix4* | aix5*)
15865  version_type=linux
15866  need_lib_prefix=no
15867  need_version=no
15868  hardcode_into_libs=yes
15869  if test "$host_cpu" = ia64; then
15870    # AIX 5 supports IA64
15871    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15872    shlibpath_var=LD_LIBRARY_PATH
15873  else
15874    # With GCC up to 2.95.x, collect2 would create an import file
15875    # for dependence libraries.  The import file would start with
15876    # the line `#! .'.  This would cause the generated library to
15877    # depend on `.', always an invalid library.  This was fixed in
15878    # development snapshots of GCC prior to 3.0.
15879    case $host_os in
15880      aix4 | aix4.[01] | aix4.[01].*)
15881      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15882	   echo ' yes '
15883	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15884	:
15885      else
15886	can_build_shared=no
15887      fi
15888      ;;
15889    esac
15890    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15891    # soname into executable. Probably we can add versioning support to
15892    # collect2, so additional links can be useful in future.
15893    if test "$aix_use_runtimelinking" = yes; then
15894      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15895      # instead of lib<name>.a to let people know that these are not
15896      # typical AIX shared libraries.
15897      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898    else
15899      # We preserve .a as extension for shared libraries through AIX4.2
15900      # and later when we are not doing run time linking.
15901      library_names_spec='${libname}${release}.a $libname.a'
15902      soname_spec='${libname}${release}${shared_ext}$major'
15903    fi
15904    shlibpath_var=LIBPATH
15905  fi
15906  ;;
15907
15908amigaos*)
15909  library_names_spec='$libname.ixlibrary $libname.a'
15910  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15911  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'
15912  ;;
15913
15914beos*)
15915  library_names_spec='${libname}${shared_ext}'
15916  dynamic_linker="$host_os ld.so"
15917  shlibpath_var=LIBRARY_PATH
15918  ;;
15919
15920bsdi[45]*)
15921  version_type=linux
15922  need_version=no
15923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924  soname_spec='${libname}${release}${shared_ext}$major'
15925  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15926  shlibpath_var=LD_LIBRARY_PATH
15927  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15928  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15929  # the default ld.so.conf also contains /usr/contrib/lib and
15930  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15931  # libtool to hard-code these into programs
15932  ;;
15933
15934cygwin* | mingw* | pw32*)
15935  version_type=windows
15936  shrext_cmds=".dll"
15937  need_version=no
15938  need_lib_prefix=no
15939
15940  case $GCC,$host_os in
15941  yes,cygwin* | yes,mingw* | yes,pw32*)
15942    library_names_spec='$libname.dll.a'
15943    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15944    postinstall_cmds='base_file=`basename \${file}`~
15945      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15946      dldir=$destdir/`dirname \$dlpath`~
15947      test -d \$dldir || mkdir -p \$dldir~
15948      $install_prog $dir/$dlname \$dldir/$dlname~
15949      chmod a+x \$dldir/$dlname'
15950    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15951      dlpath=$dir/\$dldll~
15952       $rm \$dlpath'
15953    shlibpath_overrides_runpath=yes
15954
15955    case $host_os in
15956    cygwin*)
15957      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15958      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15959      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15960      ;;
15961    mingw*)
15962      # MinGW DLLs use traditional 'lib' prefix
15963      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15964      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15965      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15966        # It is most probably a Windows format PATH printed by
15967        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15968        # path with ; separators, and with drive letters. We can handle the
15969        # drive letters (cygwin fileutils understands them), so leave them,
15970        # especially as we might pass files found there to a mingw objdump,
15971        # which wouldn't understand a cygwinified path. Ahh.
15972        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15973      else
15974        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15975      fi
15976      ;;
15977    pw32*)
15978      # pw32 DLLs use 'pw' prefix rather than 'lib'
15979      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15980      ;;
15981    esac
15982    ;;
15983
15984  *)
15985    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15986    ;;
15987  esac
15988  dynamic_linker='Win32 ld.exe'
15989  # FIXME: first we should search . and the directory the executable is in
15990  shlibpath_var=PATH
15991  ;;
15992
15993darwin* | rhapsody*)
15994  dynamic_linker="$host_os dyld"
15995  version_type=darwin
15996  need_lib_prefix=no
15997  need_version=no
15998  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15999  soname_spec='${libname}${release}${major}$shared_ext'
16000  shlibpath_overrides_runpath=yes
16001  shlibpath_var=DYLD_LIBRARY_PATH
16002  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16003
16004  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16005  ;;
16006
16007dgux*)
16008  version_type=linux
16009  need_lib_prefix=no
16010  need_version=no
16011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16012  soname_spec='${libname}${release}${shared_ext}$major'
16013  shlibpath_var=LD_LIBRARY_PATH
16014  ;;
16015
16016freebsd1*)
16017  dynamic_linker=no
16018  ;;
16019
16020freebsd* | dragonfly*)
16021  # DragonFly does not have aout.  When/if they implement a new
16022  # versioning mechanism, adjust this.
16023  if test -x /usr/bin/objformat; then
16024    objformat=`/usr/bin/objformat`
16025  else
16026    case $host_os in
16027    freebsd[123]*) objformat=aout ;;
16028    *) objformat=elf ;;
16029    esac
16030  fi
16031  version_type=freebsd-$objformat
16032  case $version_type in
16033    freebsd-elf*)
16034      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16035      need_version=no
16036      need_lib_prefix=no
16037      ;;
16038    freebsd-*)
16039      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16040      need_version=yes
16041      ;;
16042  esac
16043  shlibpath_var=LD_LIBRARY_PATH
16044  case $host_os in
16045  freebsd2*)
16046    shlibpath_overrides_runpath=yes
16047    ;;
16048  freebsd3.[01]* | freebsdelf3.[01]*)
16049    shlibpath_overrides_runpath=yes
16050    hardcode_into_libs=yes
16051    ;;
16052  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16053  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16054    shlibpath_overrides_runpath=no
16055    hardcode_into_libs=yes
16056    ;;
16057  *) # from 4.6 on, and DragonFly
16058    shlibpath_overrides_runpath=yes
16059    hardcode_into_libs=yes
16060    ;;
16061  esac
16062  ;;
16063
16064gnu*)
16065  version_type=linux
16066  need_lib_prefix=no
16067  need_version=no
16068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16069  soname_spec='${libname}${release}${shared_ext}$major'
16070  shlibpath_var=LD_LIBRARY_PATH
16071  hardcode_into_libs=yes
16072  ;;
16073
16074hpux9* | hpux10* | hpux11*)
16075  # Give a soname corresponding to the major version so that dld.sl refuses to
16076  # link against other versions.
16077  version_type=sunos
16078  need_lib_prefix=no
16079  need_version=no
16080  case $host_cpu in
16081  ia64*)
16082    shrext_cmds='.so'
16083    hardcode_into_libs=yes
16084    dynamic_linker="$host_os dld.so"
16085    shlibpath_var=LD_LIBRARY_PATH
16086    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16087    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088    soname_spec='${libname}${release}${shared_ext}$major'
16089    if test "X$HPUX_IA64_MODE" = X32; then
16090      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16091    else
16092      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16093    fi
16094    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16095    ;;
16096   hppa*64*)
16097     shrext_cmds='.sl'
16098     hardcode_into_libs=yes
16099     dynamic_linker="$host_os dld.sl"
16100     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16101     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103     soname_spec='${libname}${release}${shared_ext}$major'
16104     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16105     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16106     ;;
16107   *)
16108    shrext_cmds='.sl'
16109    dynamic_linker="$host_os dld.sl"
16110    shlibpath_var=SHLIB_PATH
16111    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16112    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113    soname_spec='${libname}${release}${shared_ext}$major'
16114    ;;
16115  esac
16116  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16117  postinstall_cmds='chmod 555 $lib'
16118  ;;
16119
16120interix[3-9]*)
16121  version_type=linux
16122  need_lib_prefix=no
16123  need_version=no
16124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16125  soname_spec='${libname}${release}${shared_ext}$major'
16126  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16127  shlibpath_var=LD_LIBRARY_PATH
16128  shlibpath_overrides_runpath=no
16129  hardcode_into_libs=yes
16130  ;;
16131
16132irix5* | irix6* | nonstopux*)
16133  case $host_os in
16134    nonstopux*) version_type=nonstopux ;;
16135    *)
16136	if test "$lt_cv_prog_gnu_ld" = yes; then
16137		version_type=linux
16138	else
16139		version_type=irix
16140	fi ;;
16141  esac
16142  need_lib_prefix=no
16143  need_version=no
16144  soname_spec='${libname}${release}${shared_ext}$major'
16145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16146  case $host_os in
16147  irix5* | nonstopux*)
16148    libsuff= shlibsuff=
16149    ;;
16150  *)
16151    case $LD in # libtool.m4 will add one of these switches to LD
16152    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16153      libsuff= shlibsuff= libmagic=32-bit;;
16154    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16155      libsuff=32 shlibsuff=N32 libmagic=N32;;
16156    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16157      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16158    *) libsuff= shlibsuff= libmagic=never-match;;
16159    esac
16160    ;;
16161  esac
16162  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16163  shlibpath_overrides_runpath=no
16164  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16165  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16166  hardcode_into_libs=yes
16167  ;;
16168
16169# No shared lib support for Linux oldld, aout, or coff.
16170linux*oldld* | linux*aout* | linux*coff*)
16171  dynamic_linker=no
16172  ;;
16173
16174# This must be Linux ELF.
16175linux* | k*bsd*-gnu)
16176  version_type=linux
16177  need_lib_prefix=no
16178  need_version=no
16179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180  soname_spec='${libname}${release}${shared_ext}$major'
16181  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16182  shlibpath_var=LD_LIBRARY_PATH
16183  shlibpath_overrides_runpath=no
16184  # This implies no fast_install, which is unacceptable.
16185  # Some rework will be needed to allow for fast_install
16186  # before this can be enabled.
16187  hardcode_into_libs=yes
16188  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16189  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16190
16191  # Append ld.so.conf contents to the search path
16192  if test -f /etc/ld.so.conf; then
16193    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16194    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16195  fi
16196
16197  # We used to test for /lib/ld.so.1 and disable shared libraries on
16198  # powerpc, because MkLinux only supported shared libraries with the
16199  # GNU dynamic linker.  Since this was broken with cross compilers,
16200  # most powerpc-linux boxes support dynamic linking these days and
16201  # people can always --disable-shared, the test was removed, and we
16202  # assume the GNU/Linux dynamic linker is in use.
16203  dynamic_linker='GNU/Linux ld.so'
16204  ;;
16205
16206netbsd*)
16207  version_type=sunos
16208  need_lib_prefix=no
16209  need_version=no
16210  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16211    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16212    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16213    dynamic_linker='NetBSD (a.out) ld.so'
16214  else
16215    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16216    soname_spec='${libname}${release}${shared_ext}$major'
16217    dynamic_linker='NetBSD ld.elf_so'
16218  fi
16219  shlibpath_var=LD_LIBRARY_PATH
16220  shlibpath_overrides_runpath=yes
16221  hardcode_into_libs=yes
16222  ;;
16223
16224newsos6)
16225  version_type=linux
16226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16227  shlibpath_var=LD_LIBRARY_PATH
16228  shlibpath_overrides_runpath=yes
16229  ;;
16230
16231nto-qnx*)
16232  version_type=linux
16233  need_lib_prefix=no
16234  need_version=no
16235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236  soname_spec='${libname}${release}${shared_ext}$major'
16237  shlibpath_var=LD_LIBRARY_PATH
16238  shlibpath_overrides_runpath=yes
16239  ;;
16240
16241openbsd*)
16242  version_type=sunos
16243  sys_lib_dlsearch_path_spec="/usr/lib"
16244  need_lib_prefix=no
16245  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16246  case $host_os in
16247    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16248    *)                         need_version=no  ;;
16249  esac
16250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16251  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16252  shlibpath_var=LD_LIBRARY_PATH
16253  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16254    case $host_os in
16255      openbsd2.[89] | openbsd2.[89].*)
16256	shlibpath_overrides_runpath=no
16257	;;
16258      *)
16259	shlibpath_overrides_runpath=yes
16260	;;
16261      esac
16262  else
16263    shlibpath_overrides_runpath=yes
16264  fi
16265  ;;
16266
16267os2*)
16268  libname_spec='$name'
16269  shrext_cmds=".dll"
16270  need_lib_prefix=no
16271  library_names_spec='$libname${shared_ext} $libname.a'
16272  dynamic_linker='OS/2 ld.exe'
16273  shlibpath_var=LIBPATH
16274  ;;
16275
16276osf3* | osf4* | osf5*)
16277  version_type=osf
16278  need_lib_prefix=no
16279  need_version=no
16280  soname_spec='${libname}${release}${shared_ext}$major'
16281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16282  shlibpath_var=LD_LIBRARY_PATH
16283  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16284  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16285  ;;
16286
16287rdos*)
16288  dynamic_linker=no
16289  ;;
16290
16291solaris*)
16292  version_type=linux
16293  need_lib_prefix=no
16294  need_version=no
16295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296  soname_spec='${libname}${release}${shared_ext}$major'
16297  shlibpath_var=LD_LIBRARY_PATH
16298  shlibpath_overrides_runpath=yes
16299  hardcode_into_libs=yes
16300  # ldd complains unless libraries are executable
16301  postinstall_cmds='chmod +x $lib'
16302  ;;
16303
16304sunos4*)
16305  version_type=sunos
16306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16307  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16308  shlibpath_var=LD_LIBRARY_PATH
16309  shlibpath_overrides_runpath=yes
16310  if test "$with_gnu_ld" = yes; then
16311    need_lib_prefix=no
16312  fi
16313  need_version=yes
16314  ;;
16315
16316sysv4 | sysv4.3*)
16317  version_type=linux
16318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319  soname_spec='${libname}${release}${shared_ext}$major'
16320  shlibpath_var=LD_LIBRARY_PATH
16321  case $host_vendor in
16322    sni)
16323      shlibpath_overrides_runpath=no
16324      need_lib_prefix=no
16325      export_dynamic_flag_spec='${wl}-Blargedynsym'
16326      runpath_var=LD_RUN_PATH
16327      ;;
16328    siemens)
16329      need_lib_prefix=no
16330      ;;
16331    motorola)
16332      need_lib_prefix=no
16333      need_version=no
16334      shlibpath_overrides_runpath=no
16335      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16336      ;;
16337  esac
16338  ;;
16339
16340sysv4*MP*)
16341  if test -d /usr/nec ;then
16342    version_type=linux
16343    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16344    soname_spec='$libname${shared_ext}.$major'
16345    shlibpath_var=LD_LIBRARY_PATH
16346  fi
16347  ;;
16348
16349sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16350  version_type=freebsd-elf
16351  need_lib_prefix=no
16352  need_version=no
16353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16354  soname_spec='${libname}${release}${shared_ext}$major'
16355  shlibpath_var=LD_LIBRARY_PATH
16356  hardcode_into_libs=yes
16357  if test "$with_gnu_ld" = yes; then
16358    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16359    shlibpath_overrides_runpath=no
16360  else
16361    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16362    shlibpath_overrides_runpath=yes
16363    case $host_os in
16364      sco3.2v5*)
16365        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16366	;;
16367    esac
16368  fi
16369  sys_lib_dlsearch_path_spec='/usr/lib'
16370  ;;
16371
16372uts4*)
16373  version_type=linux
16374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16375  soname_spec='${libname}${release}${shared_ext}$major'
16376  shlibpath_var=LD_LIBRARY_PATH
16377  ;;
16378
16379*)
16380  dynamic_linker=no
16381  ;;
16382esac
16383{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16384echo "${ECHO_T}$dynamic_linker" >&6; }
16385test "$dynamic_linker" = no && can_build_shared=no
16386
16387variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16388if test "$GCC" = yes; then
16389  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16390fi
16391
16392{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16393echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16394hardcode_action_F77=
16395if test -n "$hardcode_libdir_flag_spec_F77" || \
16396   test -n "$runpath_var_F77" || \
16397   test "X$hardcode_automatic_F77" = "Xyes" ; then
16398
16399  # We can hardcode non-existant directories.
16400  if test "$hardcode_direct_F77" != no &&
16401     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16402     # have to relink, otherwise we might link with an installed library
16403     # when we should be linking with a yet-to-be-installed one
16404     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16405     test "$hardcode_minus_L_F77" != no; then
16406    # Linking always hardcodes the temporary library directory.
16407    hardcode_action_F77=relink
16408  else
16409    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16410    hardcode_action_F77=immediate
16411  fi
16412else
16413  # We cannot hardcode anything, or else we can only hardcode existing
16414  # directories.
16415  hardcode_action_F77=unsupported
16416fi
16417{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16418echo "${ECHO_T}$hardcode_action_F77" >&6; }
16419
16420if test "$hardcode_action_F77" = relink; then
16421  # Fast installation is not supported
16422  enable_fast_install=no
16423elif test "$shlibpath_overrides_runpath" = yes ||
16424     test "$enable_shared" = no; then
16425  # Fast installation is not necessary
16426  enable_fast_install=needless
16427fi
16428
16429
16430# The else clause should only fire when bootstrapping the
16431# libtool distribution, otherwise you forgot to ship ltmain.sh
16432# with your package, and you will get complaints that there are
16433# no rules to generate ltmain.sh.
16434if test -f "$ltmain"; then
16435  # See if we are running on zsh, and set the options which allow our commands through
16436  # without removal of \ escapes.
16437  if test -n "${ZSH_VERSION+set}" ; then
16438    setopt NO_GLOB_SUBST
16439  fi
16440  # Now quote all the things that may contain metacharacters while being
16441  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16442  # variables and quote the copies for generation of the libtool script.
16443  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16444    SED SHELL STRIP \
16445    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16446    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16447    deplibs_check_method reload_flag reload_cmds need_locks \
16448    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16449    lt_cv_sys_global_symbol_to_c_name_address \
16450    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16451    old_postinstall_cmds old_postuninstall_cmds \
16452    compiler_F77 \
16453    CC_F77 \
16454    LD_F77 \
16455    lt_prog_compiler_wl_F77 \
16456    lt_prog_compiler_pic_F77 \
16457    lt_prog_compiler_static_F77 \
16458    lt_prog_compiler_no_builtin_flag_F77 \
16459    export_dynamic_flag_spec_F77 \
16460    thread_safe_flag_spec_F77 \
16461    whole_archive_flag_spec_F77 \
16462    enable_shared_with_static_runtimes_F77 \
16463    old_archive_cmds_F77 \
16464    old_archive_from_new_cmds_F77 \
16465    predep_objects_F77 \
16466    postdep_objects_F77 \
16467    predeps_F77 \
16468    postdeps_F77 \
16469    compiler_lib_search_path_F77 \
16470    archive_cmds_F77 \
16471    archive_expsym_cmds_F77 \
16472    postinstall_cmds_F77 \
16473    postuninstall_cmds_F77 \
16474    old_archive_from_expsyms_cmds_F77 \
16475    allow_undefined_flag_F77 \
16476    no_undefined_flag_F77 \
16477    export_symbols_cmds_F77 \
16478    hardcode_libdir_flag_spec_F77 \
16479    hardcode_libdir_flag_spec_ld_F77 \
16480    hardcode_libdir_separator_F77 \
16481    hardcode_automatic_F77 \
16482    module_cmds_F77 \
16483    module_expsym_cmds_F77 \
16484    lt_cv_prog_compiler_c_o_F77 \
16485    fix_srcfile_path_F77 \
16486    exclude_expsyms_F77 \
16487    include_expsyms_F77; do
16488
16489    case $var in
16490    old_archive_cmds_F77 | \
16491    old_archive_from_new_cmds_F77 | \
16492    archive_cmds_F77 | \
16493    archive_expsym_cmds_F77 | \
16494    module_cmds_F77 | \
16495    module_expsym_cmds_F77 | \
16496    old_archive_from_expsyms_cmds_F77 | \
16497    export_symbols_cmds_F77 | \
16498    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16499    postinstall_cmds | postuninstall_cmds | \
16500    old_postinstall_cmds | old_postuninstall_cmds | \
16501    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16502      # Double-quote double-evaled strings.
16503      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16504      ;;
16505    *)
16506      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16507      ;;
16508    esac
16509  done
16510
16511  case $lt_echo in
16512  *'\$0 --fallback-echo"')
16513    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16514    ;;
16515  esac
16516
16517cfgfile="$ofile"
16518
16519  cat <<__EOF__ >> "$cfgfile"
16520# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16521
16522# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16523
16524# Shell to use when invoking shell scripts.
16525SHELL=$lt_SHELL
16526
16527# Whether or not to build shared libraries.
16528build_libtool_libs=$enable_shared
16529
16530# Whether or not to build static libraries.
16531build_old_libs=$enable_static
16532
16533# Whether or not to add -lc for building shared libraries.
16534build_libtool_need_lc=$archive_cmds_need_lc_F77
16535
16536# Whether or not to disallow shared libs when runtime libs are static
16537allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16538
16539# Whether or not to optimize for fast installation.
16540fast_install=$enable_fast_install
16541
16542# The host system.
16543host_alias=$host_alias
16544host=$host
16545host_os=$host_os
16546
16547# The build system.
16548build_alias=$build_alias
16549build=$build
16550build_os=$build_os
16551
16552# An echo program that does not interpret backslashes.
16553echo=$lt_echo
16554
16555# The archiver.
16556AR=$lt_AR
16557AR_FLAGS=$lt_AR_FLAGS
16558
16559# A C compiler.
16560LTCC=$lt_LTCC
16561
16562# LTCC compiler flags.
16563LTCFLAGS=$lt_LTCFLAGS
16564
16565# A language-specific compiler.
16566CC=$lt_compiler_F77
16567
16568# Is the compiler the GNU C compiler?
16569with_gcc=$GCC_F77
16570
16571# An ERE matcher.
16572EGREP=$lt_EGREP
16573
16574# The linker used to build libraries.
16575LD=$lt_LD_F77
16576
16577# Whether we need hard or soft links.
16578LN_S=$lt_LN_S
16579
16580# A BSD-compatible nm program.
16581NM=$lt_NM
16582
16583# A symbol stripping program
16584STRIP=$lt_STRIP
16585
16586# Used to examine libraries when file_magic_cmd begins "file"
16587MAGIC_CMD=$MAGIC_CMD
16588
16589# Used on cygwin: DLL creation program.
16590DLLTOOL="$DLLTOOL"
16591
16592# Used on cygwin: object dumper.
16593OBJDUMP="$OBJDUMP"
16594
16595# Used on cygwin: assembler.
16596AS="$AS"
16597
16598# The name of the directory that contains temporary libtool files.
16599objdir=$objdir
16600
16601# How to create reloadable object files.
16602reload_flag=$lt_reload_flag
16603reload_cmds=$lt_reload_cmds
16604
16605# How to pass a linker flag through the compiler.
16606wl=$lt_lt_prog_compiler_wl_F77
16607
16608# Object file suffix (normally "o").
16609objext="$ac_objext"
16610
16611# Old archive suffix (normally "a").
16612libext="$libext"
16613
16614# Shared library suffix (normally ".so").
16615shrext_cmds='$shrext_cmds'
16616
16617# Executable file suffix (normally "").
16618exeext="$exeext"
16619
16620# Additional compiler flags for building library objects.
16621pic_flag=$lt_lt_prog_compiler_pic_F77
16622pic_mode=$pic_mode
16623
16624# What is the maximum length of a command?
16625max_cmd_len=$lt_cv_sys_max_cmd_len
16626
16627# Does compiler simultaneously support -c and -o options?
16628compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16629
16630# Must we lock files when doing compilation?
16631need_locks=$lt_need_locks
16632
16633# Do we need the lib prefix for modules?
16634need_lib_prefix=$need_lib_prefix
16635
16636# Do we need a version for libraries?
16637need_version=$need_version
16638
16639# Whether dlopen is supported.
16640dlopen_support=$enable_dlopen
16641
16642# Whether dlopen of programs is supported.
16643dlopen_self=$enable_dlopen_self
16644
16645# Whether dlopen of statically linked programs is supported.
16646dlopen_self_static=$enable_dlopen_self_static
16647
16648# Compiler flag to prevent dynamic linking.
16649link_static_flag=$lt_lt_prog_compiler_static_F77
16650
16651# Compiler flag to turn off builtin functions.
16652no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16653
16654# Compiler flag to allow reflexive dlopens.
16655export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16656
16657# Compiler flag to generate shared objects directly from archives.
16658whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16659
16660# Compiler flag to generate thread-safe objects.
16661thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16662
16663# Library versioning type.
16664version_type=$version_type
16665
16666# Format of library name prefix.
16667libname_spec=$lt_libname_spec
16668
16669# List of archive names.  First name is the real one, the rest are links.
16670# The last name is the one that the linker finds with -lNAME.
16671library_names_spec=$lt_library_names_spec
16672
16673# The coded name of the library, if different from the real name.
16674soname_spec=$lt_soname_spec
16675
16676# Commands used to build and install an old-style archive.
16677RANLIB=$lt_RANLIB
16678old_archive_cmds=$lt_old_archive_cmds_F77
16679old_postinstall_cmds=$lt_old_postinstall_cmds
16680old_postuninstall_cmds=$lt_old_postuninstall_cmds
16681
16682# Create an old-style archive from a shared archive.
16683old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16684
16685# Create a temporary old-style archive to link instead of a shared archive.
16686old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16687
16688# Commands used to build and install a shared archive.
16689archive_cmds=$lt_archive_cmds_F77
16690archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16691postinstall_cmds=$lt_postinstall_cmds
16692postuninstall_cmds=$lt_postuninstall_cmds
16693
16694# Commands used to build a loadable module (assumed same as above if empty)
16695module_cmds=$lt_module_cmds_F77
16696module_expsym_cmds=$lt_module_expsym_cmds_F77
16697
16698# Commands to strip libraries.
16699old_striplib=$lt_old_striplib
16700striplib=$lt_striplib
16701
16702# Dependencies to place before the objects being linked to create a
16703# shared library.
16704predep_objects=$lt_predep_objects_F77
16705
16706# Dependencies to place after the objects being linked to create a
16707# shared library.
16708postdep_objects=$lt_postdep_objects_F77
16709
16710# Dependencies to place before the objects being linked to create a
16711# shared library.
16712predeps=$lt_predeps_F77
16713
16714# Dependencies to place after the objects being linked to create a
16715# shared library.
16716postdeps=$lt_postdeps_F77
16717
16718# The library search path used internally by the compiler when linking
16719# a shared library.
16720compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16721
16722# Method to check whether dependent libraries are shared objects.
16723deplibs_check_method=$lt_deplibs_check_method
16724
16725# Command to use when deplibs_check_method == file_magic.
16726file_magic_cmd=$lt_file_magic_cmd
16727
16728# Flag that allows shared libraries with undefined symbols to be built.
16729allow_undefined_flag=$lt_allow_undefined_flag_F77
16730
16731# Flag that forces no undefined symbols.
16732no_undefined_flag=$lt_no_undefined_flag_F77
16733
16734# Commands used to finish a libtool library installation in a directory.
16735finish_cmds=$lt_finish_cmds
16736
16737# Same as above, but a single script fragment to be evaled but not shown.
16738finish_eval=$lt_finish_eval
16739
16740# Take the output of nm and produce a listing of raw symbols and C names.
16741global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16742
16743# Transform the output of nm in a proper C declaration
16744global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16745
16746# Transform the output of nm in a C name address pair
16747global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16748
16749# This is the shared library runtime path variable.
16750runpath_var=$runpath_var
16751
16752# This is the shared library path variable.
16753shlibpath_var=$shlibpath_var
16754
16755# Is shlibpath searched before the hard-coded library search path?
16756shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16757
16758# How to hardcode a shared library path into an executable.
16759hardcode_action=$hardcode_action_F77
16760
16761# Whether we should hardcode library paths into libraries.
16762hardcode_into_libs=$hardcode_into_libs
16763
16764# Flag to hardcode \$libdir into a binary during linking.
16765# This must work even if \$libdir does not exist.
16766hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16767
16768# If ld is used when linking, flag to hardcode \$libdir into
16769# a binary during linking. This must work even if \$libdir does
16770# not exist.
16771hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16772
16773# Whether we need a single -rpath flag with a separated argument.
16774hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16775
16776# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16777# resulting binary.
16778hardcode_direct=$hardcode_direct_F77
16779
16780# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16781# resulting binary.
16782hardcode_minus_L=$hardcode_minus_L_F77
16783
16784# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16785# the resulting binary.
16786hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16787
16788# Set to yes if building a shared library automatically hardcodes DIR into the library
16789# and all subsequent libraries and executables linked against it.
16790hardcode_automatic=$hardcode_automatic_F77
16791
16792# Variables whose values should be saved in libtool wrapper scripts and
16793# restored at relink time.
16794variables_saved_for_relink="$variables_saved_for_relink"
16795
16796# Whether libtool must link a program against all its dependency libraries.
16797link_all_deplibs=$link_all_deplibs_F77
16798
16799# Compile-time system search path for libraries
16800sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16801
16802# Run-time system search path for libraries
16803sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16804
16805# Fix the shell variable \$srcfile for the compiler.
16806fix_srcfile_path=$lt_fix_srcfile_path
16807
16808# Set to yes if exported symbols are required.
16809always_export_symbols=$always_export_symbols_F77
16810
16811# The commands to list exported symbols.
16812export_symbols_cmds=$lt_export_symbols_cmds_F77
16813
16814# The commands to extract the exported symbol list from a shared archive.
16815extract_expsyms_cmds=$lt_extract_expsyms_cmds
16816
16817# Symbols that should not be listed in the preloaded symbols.
16818exclude_expsyms=$lt_exclude_expsyms_F77
16819
16820# Symbols that must always be exported.
16821include_expsyms=$lt_include_expsyms_F77
16822
16823# ### END LIBTOOL TAG CONFIG: $tagname
16824
16825__EOF__
16826
16827
16828else
16829  # If there is no Makefile yet, we rely on a make rule to execute
16830  # `config.status --recheck' to rerun these tests and create the
16831  # libtool script then.
16832  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16833  if test -f "$ltmain_in"; then
16834    test -f Makefile && make "$ltmain"
16835  fi
16836fi
16837
16838
16839ac_ext=c
16840ac_cpp='$CPP $CPPFLAGS'
16841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16843ac_compiler_gnu=$ac_cv_c_compiler_gnu
16844
16845CC="$lt_save_CC"
16846
16847	else
16848	  tagname=""
16849	fi
16850	;;
16851
16852      GCJ)
16853	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16854
16855
16856# Source file extension for Java test sources.
16857ac_ext=java
16858
16859# Object file extension for compiled Java test sources.
16860objext=o
16861objext_GCJ=$objext
16862
16863# Code to be used in simple compile tests
16864lt_simple_compile_test_code="class foo {}"
16865
16866# Code to be used in simple link tests
16867lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16868
16869# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16870
16871# If no C compiler was specified, use CC.
16872LTCC=${LTCC-"$CC"}
16873
16874# If no C compiler flags were specified, use CFLAGS.
16875LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16876
16877# Allow CC to be a program name with arguments.
16878compiler=$CC
16879
16880
16881# save warnings/boilerplate of simple test code
16882ac_outfile=conftest.$ac_objext
16883echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16884eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16885_lt_compiler_boilerplate=`cat conftest.err`
16886$rm conftest*
16887
16888ac_outfile=conftest.$ac_objext
16889echo "$lt_simple_link_test_code" >conftest.$ac_ext
16890eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16891_lt_linker_boilerplate=`cat conftest.err`
16892$rm conftest*
16893
16894
16895# Allow CC to be a program name with arguments.
16896lt_save_CC="$CC"
16897CC=${GCJ-"gcj"}
16898compiler=$CC
16899compiler_GCJ=$CC
16900for cc_temp in $compiler""; do
16901  case $cc_temp in
16902    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16903    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16904    \-*) ;;
16905    *) break;;
16906  esac
16907done
16908cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16909
16910
16911# GCJ did not exist at the time GCC didn't implicitly link libc in.
16912archive_cmds_need_lc_GCJ=no
16913
16914old_archive_cmds_GCJ=$old_archive_cmds
16915
16916
16917lt_prog_compiler_no_builtin_flag_GCJ=
16918
16919if test "$GCC" = yes; then
16920  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16921
16922
16923{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16924echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16925if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16926  echo $ECHO_N "(cached) $ECHO_C" >&6
16927else
16928  lt_cv_prog_compiler_rtti_exceptions=no
16929  ac_outfile=conftest.$ac_objext
16930   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16931   lt_compiler_flag="-fno-rtti -fno-exceptions"
16932   # Insert the option either (1) after the last *FLAGS variable, or
16933   # (2) before a word containing "conftest.", or (3) at the end.
16934   # Note that $ac_compile itself does not contain backslashes and begins
16935   # with a dollar sign (not a hyphen), so the echo should work correctly.
16936   # The option is referenced via a variable to avoid confusing sed.
16937   lt_compile=`echo "$ac_compile" | $SED \
16938   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16939   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16940   -e 's:$: $lt_compiler_flag:'`
16941   (eval echo "\"\$as_me:16945: $lt_compile\"" >&5)
16942   (eval "$lt_compile" 2>conftest.err)
16943   ac_status=$?
16944   cat conftest.err >&5
16945   echo "$as_me:16949: \$? = $ac_status" >&5
16946   if (exit $ac_status) && test -s "$ac_outfile"; then
16947     # The compiler can only warn and ignore the option if not recognized
16948     # So say no if there are warnings other than the usual output.
16949     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16950     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16951     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16952       lt_cv_prog_compiler_rtti_exceptions=yes
16953     fi
16954   fi
16955   $rm conftest*
16956
16957fi
16958{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16959echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16960
16961if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16962    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16963else
16964    :
16965fi
16966
16967fi
16968
16969lt_prog_compiler_wl_GCJ=
16970lt_prog_compiler_pic_GCJ=
16971lt_prog_compiler_static_GCJ=
16972
16973{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16974echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16975
16976  if test "$GCC" = yes; then
16977    lt_prog_compiler_wl_GCJ='-Wl,'
16978    lt_prog_compiler_static_GCJ='-static'
16979
16980    case $host_os in
16981      aix*)
16982      # All AIX code is PIC.
16983      if test "$host_cpu" = ia64; then
16984	# AIX 5 now supports IA64 processor
16985	lt_prog_compiler_static_GCJ='-Bstatic'
16986      fi
16987      ;;
16988
16989    amigaos*)
16990      # FIXME: we need at least 68020 code to build shared libraries, but
16991      # adding the `-m68020' flag to GCC prevents building anything better,
16992      # like `-m68040'.
16993      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16994      ;;
16995
16996    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16997      # PIC is the default for these OSes.
16998      ;;
16999
17000    mingw* | cygwin* | pw32* | os2*)
17001      # This hack is so that the source file can tell whether it is being
17002      # built for inclusion in a dll (and should export symbols for example).
17003      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17004      # (--disable-auto-import) libraries
17005      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17006      ;;
17007
17008    darwin* | rhapsody*)
17009      # PIC is the default on this platform
17010      # Common symbols not allowed in MH_DYLIB files
17011      lt_prog_compiler_pic_GCJ='-fno-common'
17012      ;;
17013
17014    interix[3-9]*)
17015      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17016      # Instead, we relocate shared libraries at runtime.
17017      ;;
17018
17019    msdosdjgpp*)
17020      # Just because we use GCC doesn't mean we suddenly get shared libraries
17021      # on systems that don't support them.
17022      lt_prog_compiler_can_build_shared_GCJ=no
17023      enable_shared=no
17024      ;;
17025
17026    sysv4*MP*)
17027      if test -d /usr/nec; then
17028	lt_prog_compiler_pic_GCJ=-Kconform_pic
17029      fi
17030      ;;
17031
17032    hpux*)
17033      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17034      # not for PA HP-UX.
17035      case $host_cpu in
17036      hppa*64*|ia64*)
17037	# +Z the default
17038	;;
17039      *)
17040	lt_prog_compiler_pic_GCJ='-fPIC'
17041	;;
17042      esac
17043      ;;
17044
17045    *)
17046      lt_prog_compiler_pic_GCJ='-fPIC'
17047      ;;
17048    esac
17049  else
17050    # PORTME Check for flag to pass linker flags through the system compiler.
17051    case $host_os in
17052    aix*)
17053      lt_prog_compiler_wl_GCJ='-Wl,'
17054      if test "$host_cpu" = ia64; then
17055	# AIX 5 now supports IA64 processor
17056	lt_prog_compiler_static_GCJ='-Bstatic'
17057      else
17058	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17059      fi
17060      ;;
17061      darwin*)
17062        # PIC is the default on this platform
17063        # Common symbols not allowed in MH_DYLIB files
17064       case $cc_basename in
17065         xlc*)
17066         lt_prog_compiler_pic_GCJ='-qnocommon'
17067         lt_prog_compiler_wl_GCJ='-Wl,'
17068         ;;
17069       esac
17070       ;;
17071
17072    mingw* | cygwin* | pw32* | os2*)
17073      # This hack is so that the source file can tell whether it is being
17074      # built for inclusion in a dll (and should export symbols for example).
17075      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17076      ;;
17077
17078    hpux9* | hpux10* | hpux11*)
17079      lt_prog_compiler_wl_GCJ='-Wl,'
17080      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17081      # not for PA HP-UX.
17082      case $host_cpu in
17083      hppa*64*|ia64*)
17084	# +Z the default
17085	;;
17086      *)
17087	lt_prog_compiler_pic_GCJ='+Z'
17088	;;
17089      esac
17090      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17091      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17092      ;;
17093
17094    irix5* | irix6* | nonstopux*)
17095      lt_prog_compiler_wl_GCJ='-Wl,'
17096      # PIC (with -KPIC) is the default.
17097      lt_prog_compiler_static_GCJ='-non_shared'
17098      ;;
17099
17100    newsos6)
17101      lt_prog_compiler_pic_GCJ='-KPIC'
17102      lt_prog_compiler_static_GCJ='-Bstatic'
17103      ;;
17104
17105    linux* | k*bsd*-gnu)
17106      case $cc_basename in
17107      icc* | ecc*)
17108	lt_prog_compiler_wl_GCJ='-Wl,'
17109	lt_prog_compiler_pic_GCJ='-KPIC'
17110	lt_prog_compiler_static_GCJ='-static'
17111        ;;
17112      pgcc* | pgf77* | pgf90* | pgf95*)
17113        # Portland Group compilers (*not* the Pentium gcc compiler,
17114	# which looks to be a dead project)
17115	lt_prog_compiler_wl_GCJ='-Wl,'
17116	lt_prog_compiler_pic_GCJ='-fpic'
17117	lt_prog_compiler_static_GCJ='-Bstatic'
17118        ;;
17119      ccc*)
17120        lt_prog_compiler_wl_GCJ='-Wl,'
17121        # All Alpha code is PIC.
17122        lt_prog_compiler_static_GCJ='-non_shared'
17123        ;;
17124      *)
17125        case `$CC -V 2>&1 | sed 5q` in
17126	*Sun\ C*)
17127	  # Sun C 5.9
17128	  lt_prog_compiler_pic_GCJ='-KPIC'
17129	  lt_prog_compiler_static_GCJ='-Bstatic'
17130	  lt_prog_compiler_wl_GCJ='-Wl,'
17131	  ;;
17132	*Sun\ F*)
17133	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17134	  lt_prog_compiler_pic_GCJ='-KPIC'
17135	  lt_prog_compiler_static_GCJ='-Bstatic'
17136	  lt_prog_compiler_wl_GCJ=''
17137	  ;;
17138	esac
17139	;;
17140      esac
17141      ;;
17142
17143    osf3* | osf4* | osf5*)
17144      lt_prog_compiler_wl_GCJ='-Wl,'
17145      # All OSF/1 code is PIC.
17146      lt_prog_compiler_static_GCJ='-non_shared'
17147      ;;
17148
17149    rdos*)
17150      lt_prog_compiler_static_GCJ='-non_shared'
17151      ;;
17152
17153    solaris*)
17154      lt_prog_compiler_pic_GCJ='-KPIC'
17155      lt_prog_compiler_static_GCJ='-Bstatic'
17156      case $cc_basename in
17157      f77* | f90* | f95*)
17158	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17159      *)
17160	lt_prog_compiler_wl_GCJ='-Wl,';;
17161      esac
17162      ;;
17163
17164    sunos4*)
17165      lt_prog_compiler_wl_GCJ='-Qoption ld '
17166      lt_prog_compiler_pic_GCJ='-PIC'
17167      lt_prog_compiler_static_GCJ='-Bstatic'
17168      ;;
17169
17170    sysv4 | sysv4.2uw2* | sysv4.3*)
17171      lt_prog_compiler_wl_GCJ='-Wl,'
17172      lt_prog_compiler_pic_GCJ='-KPIC'
17173      lt_prog_compiler_static_GCJ='-Bstatic'
17174      ;;
17175
17176    sysv4*MP*)
17177      if test -d /usr/nec ;then
17178	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17179	lt_prog_compiler_static_GCJ='-Bstatic'
17180      fi
17181      ;;
17182
17183    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17184      lt_prog_compiler_wl_GCJ='-Wl,'
17185      lt_prog_compiler_pic_GCJ='-KPIC'
17186      lt_prog_compiler_static_GCJ='-Bstatic'
17187      ;;
17188
17189    unicos*)
17190      lt_prog_compiler_wl_GCJ='-Wl,'
17191      lt_prog_compiler_can_build_shared_GCJ=no
17192      ;;
17193
17194    uts4*)
17195      lt_prog_compiler_pic_GCJ='-pic'
17196      lt_prog_compiler_static_GCJ='-Bstatic'
17197      ;;
17198
17199    *)
17200      lt_prog_compiler_can_build_shared_GCJ=no
17201      ;;
17202    esac
17203  fi
17204
17205{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17206echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17207
17208#
17209# Check to make sure the PIC flag actually works.
17210#
17211if test -n "$lt_prog_compiler_pic_GCJ"; then
17212
17213{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17214echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17215if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17216  echo $ECHO_N "(cached) $ECHO_C" >&6
17217else
17218  lt_prog_compiler_pic_works_GCJ=no
17219  ac_outfile=conftest.$ac_objext
17220   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17221   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17222   # Insert the option either (1) after the last *FLAGS variable, or
17223   # (2) before a word containing "conftest.", or (3) at the end.
17224   # Note that $ac_compile itself does not contain backslashes and begins
17225   # with a dollar sign (not a hyphen), so the echo should work correctly.
17226   # The option is referenced via a variable to avoid confusing sed.
17227   lt_compile=`echo "$ac_compile" | $SED \
17228   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17229   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17230   -e 's:$: $lt_compiler_flag:'`
17231   (eval echo "\"\$as_me:17235: $lt_compile\"" >&5)
17232   (eval "$lt_compile" 2>conftest.err)
17233   ac_status=$?
17234   cat conftest.err >&5
17235   echo "$as_me:17239: \$? = $ac_status" >&5
17236   if (exit $ac_status) && test -s "$ac_outfile"; then
17237     # The compiler can only warn and ignore the option if not recognized
17238     # So say no if there are warnings other than the usual output.
17239     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17240     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17241     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17242       lt_prog_compiler_pic_works_GCJ=yes
17243     fi
17244   fi
17245   $rm conftest*
17246
17247fi
17248{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17249echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17250
17251if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17252    case $lt_prog_compiler_pic_GCJ in
17253     "" | " "*) ;;
17254     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17255     esac
17256else
17257    lt_prog_compiler_pic_GCJ=
17258     lt_prog_compiler_can_build_shared_GCJ=no
17259fi
17260
17261fi
17262case $host_os in
17263  # For platforms which do not support PIC, -DPIC is meaningless:
17264  *djgpp*)
17265    lt_prog_compiler_pic_GCJ=
17266    ;;
17267  *)
17268    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17269    ;;
17270esac
17271
17272#
17273# Check to make sure the static flag actually works.
17274#
17275wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17276{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17277echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17278if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17279  echo $ECHO_N "(cached) $ECHO_C" >&6
17280else
17281  lt_prog_compiler_static_works_GCJ=no
17282   save_LDFLAGS="$LDFLAGS"
17283   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17284   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17285   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17286     # The linker can only warn and ignore the option if not recognized
17287     # So say no if there are warnings
17288     if test -s conftest.err; then
17289       # Append any errors to the config.log.
17290       cat conftest.err 1>&5
17291       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17292       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17293       if diff conftest.exp conftest.er2 >/dev/null; then
17294         lt_prog_compiler_static_works_GCJ=yes
17295       fi
17296     else
17297       lt_prog_compiler_static_works_GCJ=yes
17298     fi
17299   fi
17300   $rm conftest*
17301   LDFLAGS="$save_LDFLAGS"
17302
17303fi
17304{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17305echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17306
17307if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17308    :
17309else
17310    lt_prog_compiler_static_GCJ=
17311fi
17312
17313
17314{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17315echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17316if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17317  echo $ECHO_N "(cached) $ECHO_C" >&6
17318else
17319  lt_cv_prog_compiler_c_o_GCJ=no
17320   $rm -r conftest 2>/dev/null
17321   mkdir conftest
17322   cd conftest
17323   mkdir out
17324   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17325
17326   lt_compiler_flag="-o out/conftest2.$ac_objext"
17327   # Insert the option either (1) after the last *FLAGS variable, or
17328   # (2) before a word containing "conftest.", or (3) at the end.
17329   # Note that $ac_compile itself does not contain backslashes and begins
17330   # with a dollar sign (not a hyphen), so the echo should work correctly.
17331   lt_compile=`echo "$ac_compile" | $SED \
17332   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17333   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17334   -e 's:$: $lt_compiler_flag:'`
17335   (eval echo "\"\$as_me:17339: $lt_compile\"" >&5)
17336   (eval "$lt_compile" 2>out/conftest.err)
17337   ac_status=$?
17338   cat out/conftest.err >&5
17339   echo "$as_me:17343: \$? = $ac_status" >&5
17340   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17341   then
17342     # The compiler can only warn and ignore the option if not recognized
17343     # So say no if there are warnings
17344     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17345     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17346     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17347       lt_cv_prog_compiler_c_o_GCJ=yes
17348     fi
17349   fi
17350   chmod u+w . 2>&5
17351   $rm conftest*
17352   # SGI C++ compiler will create directory out/ii_files/ for
17353   # template instantiation
17354   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17355   $rm out/* && rmdir out
17356   cd ..
17357   rmdir conftest
17358   $rm conftest*
17359
17360fi
17361{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17362echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17363
17364
17365hard_links="nottested"
17366if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17367  # do not overwrite the value of need_locks provided by the user
17368  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17369echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17370  hard_links=yes
17371  $rm conftest*
17372  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17373  touch conftest.a
17374  ln conftest.a conftest.b 2>&5 || hard_links=no
17375  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17376  { echo "$as_me:$LINENO: result: $hard_links" >&5
17377echo "${ECHO_T}$hard_links" >&6; }
17378  if test "$hard_links" = no; then
17379    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17380echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17381    need_locks=warn
17382  fi
17383else
17384  need_locks=no
17385fi
17386
17387{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17388echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17389
17390  runpath_var=
17391  allow_undefined_flag_GCJ=
17392  enable_shared_with_static_runtimes_GCJ=no
17393  archive_cmds_GCJ=
17394  archive_expsym_cmds_GCJ=
17395  old_archive_From_new_cmds_GCJ=
17396  old_archive_from_expsyms_cmds_GCJ=
17397  export_dynamic_flag_spec_GCJ=
17398  whole_archive_flag_spec_GCJ=
17399  thread_safe_flag_spec_GCJ=
17400  hardcode_libdir_flag_spec_GCJ=
17401  hardcode_libdir_flag_spec_ld_GCJ=
17402  hardcode_libdir_separator_GCJ=
17403  hardcode_direct_GCJ=no
17404  hardcode_minus_L_GCJ=no
17405  hardcode_shlibpath_var_GCJ=unsupported
17406  link_all_deplibs_GCJ=unknown
17407  hardcode_automatic_GCJ=no
17408  module_cmds_GCJ=
17409  module_expsym_cmds_GCJ=
17410  always_export_symbols_GCJ=no
17411  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17412  # include_expsyms should be a list of space-separated symbols to be *always*
17413  # included in the symbol list
17414  include_expsyms_GCJ=
17415  # exclude_expsyms can be an extended regexp of symbols to exclude
17416  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17417  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17418  # as well as any symbol that contains `d'.
17419  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17420  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17421  # platforms (ab)use it in PIC code, but their linkers get confused if
17422  # the symbol is explicitly referenced.  Since portable code cannot
17423  # rely on this symbol name, it's probably fine to never include it in
17424  # preloaded symbol tables.
17425  extract_expsyms_cmds=
17426  # Just being paranoid about ensuring that cc_basename is set.
17427  for cc_temp in $compiler""; do
17428  case $cc_temp in
17429    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17430    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17431    \-*) ;;
17432    *) break;;
17433  esac
17434done
17435cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17436
17437  case $host_os in
17438  cygwin* | mingw* | pw32*)
17439    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17440    # When not using gcc, we currently assume that we are using
17441    # Microsoft Visual C++.
17442    if test "$GCC" != yes; then
17443      with_gnu_ld=no
17444    fi
17445    ;;
17446  interix*)
17447    # we just hope/assume this is gcc and not c89 (= MSVC++)
17448    with_gnu_ld=yes
17449    ;;
17450  openbsd*)
17451    with_gnu_ld=no
17452    ;;
17453  esac
17454
17455  ld_shlibs_GCJ=yes
17456  if test "$with_gnu_ld" = yes; then
17457    # If archive_cmds runs LD, not CC, wlarc should be empty
17458    wlarc='${wl}'
17459
17460    # Set some defaults for GNU ld with shared library support. These
17461    # are reset later if shared libraries are not supported. Putting them
17462    # here allows them to be overridden if necessary.
17463    runpath_var=LD_RUN_PATH
17464    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17465    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17466    # ancient GNU ld didn't support --whole-archive et. al.
17467    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17468	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17469      else
17470  	whole_archive_flag_spec_GCJ=
17471    fi
17472    supports_anon_versioning=no
17473    case `$LD -v 2>/dev/null` in
17474      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17475      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17476      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17477      *\ 2.11.*) ;; # other 2.11 versions
17478      *) supports_anon_versioning=yes ;;
17479    esac
17480
17481    # See if GNU ld supports shared libraries.
17482    case $host_os in
17483    aix3* | aix4* | aix5*)
17484      # On AIX/PPC, the GNU linker is very broken
17485      if test "$host_cpu" != ia64; then
17486	ld_shlibs_GCJ=no
17487	cat <<EOF 1>&2
17488
17489*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17490*** to be unable to reliably create shared libraries on AIX.
17491*** Therefore, libtool is disabling shared libraries support.  If you
17492*** really care for shared libraries, you may want to modify your PATH
17493*** so that a non-GNU linker is found, and then restart.
17494
17495EOF
17496      fi
17497      ;;
17498
17499    amigaos*)
17500      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)'
17501      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17502      hardcode_minus_L_GCJ=yes
17503
17504      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17505      # that the semantics of dynamic libraries on AmigaOS, at least up
17506      # to version 4, is to share data among multiple programs linked
17507      # with the same dynamic library.  Since this doesn't match the
17508      # behavior of shared libraries on other platforms, we can't use
17509      # them.
17510      ld_shlibs_GCJ=no
17511      ;;
17512
17513    beos*)
17514      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17515	allow_undefined_flag_GCJ=unsupported
17516	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17517	# support --undefined.  This deserves some investigation.  FIXME
17518	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17519      else
17520	ld_shlibs_GCJ=no
17521      fi
17522      ;;
17523
17524    cygwin* | mingw* | pw32*)
17525      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17526      # as there is no search path for DLLs.
17527      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17528      allow_undefined_flag_GCJ=unsupported
17529      always_export_symbols_GCJ=no
17530      enable_shared_with_static_runtimes_GCJ=yes
17531      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17532
17533      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17534        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17535	# If the export-symbols file already is a .def file (1st line
17536	# is EXPORTS), use it as is; otherwise, prepend...
17537	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17538	  cp $export_symbols $output_objdir/$soname.def;
17539	else
17540	  echo EXPORTS > $output_objdir/$soname.def;
17541	  cat $export_symbols >> $output_objdir/$soname.def;
17542	fi~
17543	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17544      else
17545	ld_shlibs_GCJ=no
17546      fi
17547      ;;
17548
17549    interix[3-9]*)
17550      hardcode_direct_GCJ=no
17551      hardcode_shlibpath_var_GCJ=no
17552      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17553      export_dynamic_flag_spec_GCJ='${wl}-E'
17554      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17555      # Instead, shared libraries are loaded at an image base (0x10000000 by
17556      # default) and relocated if they conflict, which is a slow very memory
17557      # consuming and fragmenting process.  To avoid this, we pick a random,
17558      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17559      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17560      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'
17561      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'
17562      ;;
17563
17564    gnu* | linux* | k*bsd*-gnu)
17565      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17566	tmp_addflag=
17567	case $cc_basename,$host_cpu in
17568	pgcc*)				# Portland Group C compiler
17569	  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'
17570	  tmp_addflag=' $pic_flag'
17571	  ;;
17572	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17573	  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'
17574	  tmp_addflag=' $pic_flag -Mnomain' ;;
17575	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17576	  tmp_addflag=' -i_dynamic' ;;
17577	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17578	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17579	ifc* | ifort*)			# Intel Fortran compiler
17580	  tmp_addflag=' -nofor_main' ;;
17581	esac
17582	case `$CC -V 2>&1 | sed 5q` in
17583	*Sun\ C*)			# Sun C 5.9
17584	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17585	  tmp_sharedflag='-G' ;;
17586	*Sun\ F*)			# Sun Fortran 8.3
17587	  tmp_sharedflag='-G' ;;
17588	*)
17589	  tmp_sharedflag='-shared' ;;
17590	esac
17591	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17592
17593	if test $supports_anon_versioning = yes; then
17594	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17595  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17596  $echo "local: *; };" >> $output_objdir/$libname.ver~
17597	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17598	fi
17599      else
17600	ld_shlibs_GCJ=no
17601      fi
17602      ;;
17603
17604    netbsd*)
17605      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17606	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17607	wlarc=
17608      else
17609	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17610	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17611      fi
17612      ;;
17613
17614    solaris*)
17615      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17616	ld_shlibs_GCJ=no
17617	cat <<EOF 1>&2
17618
17619*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17620*** create shared libraries on Solaris systems.  Therefore, libtool
17621*** is disabling shared libraries support.  We urge you to upgrade GNU
17622*** binutils to release 2.9.1 or newer.  Another option is to modify
17623*** your PATH or compiler configuration so that the native linker is
17624*** used, and then restart.
17625
17626EOF
17627      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17628	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17629	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17630      else
17631	ld_shlibs_GCJ=no
17632      fi
17633      ;;
17634
17635    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17636      case `$LD -v 2>&1` in
17637        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17638	ld_shlibs_GCJ=no
17639	cat <<_LT_EOF 1>&2
17640
17641*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17642*** reliably create shared libraries on SCO systems.  Therefore, libtool
17643*** is disabling shared libraries support.  We urge you to upgrade GNU
17644*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17645*** your PATH or compiler configuration so that the native linker is
17646*** used, and then restart.
17647
17648_LT_EOF
17649	;;
17650	*)
17651	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17652	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17653	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17654	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17655	  else
17656	    ld_shlibs_GCJ=no
17657	  fi
17658	;;
17659      esac
17660      ;;
17661
17662    sunos4*)
17663      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17664      wlarc=
17665      hardcode_direct_GCJ=yes
17666      hardcode_shlibpath_var_GCJ=no
17667      ;;
17668
17669    *)
17670      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17671	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17672	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17673      else
17674	ld_shlibs_GCJ=no
17675      fi
17676      ;;
17677    esac
17678
17679    if test "$ld_shlibs_GCJ" = no; then
17680      runpath_var=
17681      hardcode_libdir_flag_spec_GCJ=
17682      export_dynamic_flag_spec_GCJ=
17683      whole_archive_flag_spec_GCJ=
17684    fi
17685  else
17686    # PORTME fill in a description of your system's linker (not GNU ld)
17687    case $host_os in
17688    aix3*)
17689      allow_undefined_flag_GCJ=unsupported
17690      always_export_symbols_GCJ=yes
17691      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'
17692      # Note: this linker hardcodes the directories in LIBPATH if there
17693      # are no directories specified by -L.
17694      hardcode_minus_L_GCJ=yes
17695      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17696	# Neither direct hardcoding nor static linking is supported with a
17697	# broken collect2.
17698	hardcode_direct_GCJ=unsupported
17699      fi
17700      ;;
17701
17702    aix4* | aix5*)
17703      if test "$host_cpu" = ia64; then
17704	# On IA64, the linker does run time linking by default, so we don't
17705	# have to do anything special.
17706	aix_use_runtimelinking=no
17707	exp_sym_flag='-Bexport'
17708	no_entry_flag=""
17709      else
17710	# If we're using GNU nm, then we don't want the "-C" option.
17711	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17712	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17713	  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'
17714	else
17715	  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'
17716	fi
17717	aix_use_runtimelinking=no
17718
17719	# Test if we are trying to use run time linking or normal
17720	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17721	# need to do runtime linking.
17722	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17723	  for ld_flag in $LDFLAGS; do
17724  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17725  	    aix_use_runtimelinking=yes
17726  	    break
17727  	  fi
17728	  done
17729	  ;;
17730	esac
17731
17732	exp_sym_flag='-bexport'
17733	no_entry_flag='-bnoentry'
17734      fi
17735
17736      # When large executables or shared objects are built, AIX ld can
17737      # have problems creating the table of contents.  If linking a library
17738      # or program results in "error TOC overflow" add -mminimal-toc to
17739      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17740      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17741
17742      archive_cmds_GCJ=''
17743      hardcode_direct_GCJ=yes
17744      hardcode_libdir_separator_GCJ=':'
17745      link_all_deplibs_GCJ=yes
17746
17747      if test "$GCC" = yes; then
17748	case $host_os in aix4.[012]|aix4.[012].*)
17749	# We only want to do this on AIX 4.2 and lower, the check
17750	# below for broken collect2 doesn't work under 4.3+
17751	  collect2name=`${CC} -print-prog-name=collect2`
17752	  if test -f "$collect2name" && \
17753  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17754	  then
17755  	  # We have reworked collect2
17756  	  :
17757	  else
17758  	  # We have old collect2
17759  	  hardcode_direct_GCJ=unsupported
17760  	  # It fails to find uninstalled libraries when the uninstalled
17761  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17762  	  # to unsupported forces relinking
17763  	  hardcode_minus_L_GCJ=yes
17764  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17765  	  hardcode_libdir_separator_GCJ=
17766	  fi
17767	  ;;
17768	esac
17769	shared_flag='-shared'
17770	if test "$aix_use_runtimelinking" = yes; then
17771	  shared_flag="$shared_flag "'${wl}-G'
17772	fi
17773      else
17774	# not using gcc
17775	if test "$host_cpu" = ia64; then
17776  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17777  	# chokes on -Wl,-G. The following line is correct:
17778	  shared_flag='-G'
17779	else
17780	  if test "$aix_use_runtimelinking" = yes; then
17781	    shared_flag='${wl}-G'
17782	  else
17783	    shared_flag='${wl}-bM:SRE'
17784	  fi
17785	fi
17786      fi
17787
17788      # It seems that -bexpall does not export symbols beginning with
17789      # underscore (_), so it is better to generate a list of symbols to export.
17790      always_export_symbols_GCJ=yes
17791      if test "$aix_use_runtimelinking" = yes; then
17792	# Warning - without using the other runtime loading flags (-brtl),
17793	# -berok will link without error, but may produce a broken library.
17794	allow_undefined_flag_GCJ='-berok'
17795       # Determine the default libpath from the value encoded in an empty executable.
17796       cat >conftest.$ac_ext <<_ACEOF
17797/* confdefs.h.  */
17798_ACEOF
17799cat confdefs.h >>conftest.$ac_ext
17800cat >>conftest.$ac_ext <<_ACEOF
17801/* end confdefs.h.  */
17802
17803int
17804main ()
17805{
17806
17807  ;
17808  return 0;
17809}
17810_ACEOF
17811rm -f conftest.$ac_objext conftest$ac_exeext
17812if { (ac_try="$ac_link"
17813case "(($ac_try" in
17814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815  *) ac_try_echo=$ac_try;;
17816esac
17817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818  (eval "$ac_link") 2>conftest.er1
17819  ac_status=$?
17820  grep -v '^ *+' conftest.er1 >conftest.err
17821  rm -f conftest.er1
17822  cat conftest.err >&5
17823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824  (exit $ac_status); } && {
17825	 test -z "$ac_c_werror_flag" ||
17826	 test ! -s conftest.err
17827       } && test -s conftest$ac_exeext &&
17828       $as_test_x conftest$ac_exeext; then
17829
17830lt_aix_libpath_sed='
17831    /Import File Strings/,/^$/ {
17832	/^0/ {
17833	    s/^0  *\(.*\)$/\1/
17834	    p
17835	}
17836    }'
17837aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17838# Check for a 64-bit object if we didn't find anything.
17839if test -z "$aix_libpath"; then
17840  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17841fi
17842else
17843  echo "$as_me: failed program was:" >&5
17844sed 's/^/| /' conftest.$ac_ext >&5
17845
17846
17847fi
17848
17849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17850      conftest$ac_exeext conftest.$ac_ext
17851if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17852
17853       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17854	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"
17855       else
17856	if test "$host_cpu" = ia64; then
17857	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17858	  allow_undefined_flag_GCJ="-z nodefs"
17859	  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"
17860	else
17861	 # Determine the default libpath from the value encoded in an empty executable.
17862	 cat >conftest.$ac_ext <<_ACEOF
17863/* confdefs.h.  */
17864_ACEOF
17865cat confdefs.h >>conftest.$ac_ext
17866cat >>conftest.$ac_ext <<_ACEOF
17867/* end confdefs.h.  */
17868
17869int
17870main ()
17871{
17872
17873  ;
17874  return 0;
17875}
17876_ACEOF
17877rm -f conftest.$ac_objext conftest$ac_exeext
17878if { (ac_try="$ac_link"
17879case "(($ac_try" in
17880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17881  *) ac_try_echo=$ac_try;;
17882esac
17883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17884  (eval "$ac_link") 2>conftest.er1
17885  ac_status=$?
17886  grep -v '^ *+' conftest.er1 >conftest.err
17887  rm -f conftest.er1
17888  cat conftest.err >&5
17889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890  (exit $ac_status); } && {
17891	 test -z "$ac_c_werror_flag" ||
17892	 test ! -s conftest.err
17893       } && test -s conftest$ac_exeext &&
17894       $as_test_x conftest$ac_exeext; then
17895
17896lt_aix_libpath_sed='
17897    /Import File Strings/,/^$/ {
17898	/^0/ {
17899	    s/^0  *\(.*\)$/\1/
17900	    p
17901	}
17902    }'
17903aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17904# Check for a 64-bit object if we didn't find anything.
17905if test -z "$aix_libpath"; then
17906  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17907fi
17908else
17909  echo "$as_me: failed program was:" >&5
17910sed 's/^/| /' conftest.$ac_ext >&5
17911
17912
17913fi
17914
17915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17916      conftest$ac_exeext conftest.$ac_ext
17917if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17918
17919	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17920	  # Warning - without using the other run time loading flags,
17921	  # -berok will link without error, but may produce a broken library.
17922	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17923	  allow_undefined_flag_GCJ=' ${wl}-berok'
17924	  # Exported symbols can be pulled into shared objects from archives
17925	  whole_archive_flag_spec_GCJ='$convenience'
17926	  archive_cmds_need_lc_GCJ=yes
17927	  # This is similar to how AIX traditionally builds its shared libraries.
17928	  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'
17929	fi
17930      fi
17931      ;;
17932
17933    amigaos*)
17934      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)'
17935      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17936      hardcode_minus_L_GCJ=yes
17937      # see comment about different semantics on the GNU ld section
17938      ld_shlibs_GCJ=no
17939      ;;
17940
17941    bsdi[45]*)
17942      export_dynamic_flag_spec_GCJ=-rdynamic
17943      ;;
17944
17945    cygwin* | mingw* | pw32*)
17946      # When not using gcc, we currently assume that we are using
17947      # Microsoft Visual C++.
17948      # hardcode_libdir_flag_spec is actually meaningless, as there is
17949      # no search path for DLLs.
17950      hardcode_libdir_flag_spec_GCJ=' '
17951      allow_undefined_flag_GCJ=unsupported
17952      # Tell ltmain to make .lib files, not .a files.
17953      libext=lib
17954      # Tell ltmain to make .dll files, not .so files.
17955      shrext_cmds=".dll"
17956      # FIXME: Setting linknames here is a bad hack.
17957      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17958      # The linker will automatically build a .lib file if we build a DLL.
17959      old_archive_From_new_cmds_GCJ='true'
17960      # FIXME: Should let the user specify the lib program.
17961      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17962      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17963      enable_shared_with_static_runtimes_GCJ=yes
17964      ;;
17965
17966    darwin* | rhapsody*)
17967      case $host_os in
17968        rhapsody* | darwin1.[012])
17969         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17970         ;;
17971       *) # Darwin 1.3 on
17972         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17973           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17974         else
17975           case ${MACOSX_DEPLOYMENT_TARGET} in
17976             10.[012])
17977               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17978               ;;
17979             10.*)
17980               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17981               ;;
17982           esac
17983         fi
17984         ;;
17985      esac
17986      archive_cmds_need_lc_GCJ=no
17987      hardcode_direct_GCJ=no
17988      hardcode_automatic_GCJ=yes
17989      hardcode_shlibpath_var_GCJ=unsupported
17990      whole_archive_flag_spec_GCJ=''
17991      link_all_deplibs_GCJ=yes
17992    if test "$GCC" = yes ; then
17993    	output_verbose_link_cmd='echo'
17994        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17995      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17996      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17997      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}'
17998      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}'
17999    else
18000      case $cc_basename in
18001        xlc*)
18002         output_verbose_link_cmd='echo'
18003         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18004         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18005          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18006         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18007          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}'
18008          ;;
18009       *)
18010         ld_shlibs_GCJ=no
18011          ;;
18012      esac
18013    fi
18014      ;;
18015
18016    dgux*)
18017      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18018      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18019      hardcode_shlibpath_var_GCJ=no
18020      ;;
18021
18022    freebsd1*)
18023      ld_shlibs_GCJ=no
18024      ;;
18025
18026    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18027    # support.  Future versions do this automatically, but an explicit c++rt0.o
18028    # does not break anything, and helps significantly (at the cost of a little
18029    # extra space).
18030    freebsd2.2*)
18031      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18032      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18033      hardcode_direct_GCJ=yes
18034      hardcode_shlibpath_var_GCJ=no
18035      ;;
18036
18037    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18038    freebsd2*)
18039      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18040      hardcode_direct_GCJ=yes
18041      hardcode_minus_L_GCJ=yes
18042      hardcode_shlibpath_var_GCJ=no
18043      ;;
18044
18045    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18046    freebsd* | dragonfly*)
18047      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18048      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18049      hardcode_direct_GCJ=yes
18050      hardcode_shlibpath_var_GCJ=no
18051      ;;
18052
18053    hpux9*)
18054      if test "$GCC" = yes; then
18055	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'
18056      else
18057	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'
18058      fi
18059      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18060      hardcode_libdir_separator_GCJ=:
18061      hardcode_direct_GCJ=yes
18062
18063      # hardcode_minus_L: Not really in the search PATH,
18064      # but as the default location of the library.
18065      hardcode_minus_L_GCJ=yes
18066      export_dynamic_flag_spec_GCJ='${wl}-E'
18067      ;;
18068
18069    hpux10*)
18070      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18071	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18072      else
18073	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18074      fi
18075      if test "$with_gnu_ld" = no; then
18076	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18077	hardcode_libdir_separator_GCJ=:
18078
18079	hardcode_direct_GCJ=yes
18080	export_dynamic_flag_spec_GCJ='${wl}-E'
18081
18082	# hardcode_minus_L: Not really in the search PATH,
18083	# but as the default location of the library.
18084	hardcode_minus_L_GCJ=yes
18085      fi
18086      ;;
18087
18088    hpux11*)
18089      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18090	case $host_cpu in
18091	hppa*64*)
18092	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18093	  ;;
18094	ia64*)
18095	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18096	  ;;
18097	*)
18098	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18099	  ;;
18100	esac
18101      else
18102	case $host_cpu in
18103	hppa*64*)
18104	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18105	  ;;
18106	ia64*)
18107	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18108	  ;;
18109	*)
18110	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18111	  ;;
18112	esac
18113      fi
18114      if test "$with_gnu_ld" = no; then
18115	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18116	hardcode_libdir_separator_GCJ=:
18117
18118	case $host_cpu in
18119	hppa*64*|ia64*)
18120	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18121	  hardcode_direct_GCJ=no
18122	  hardcode_shlibpath_var_GCJ=no
18123	  ;;
18124	*)
18125	  hardcode_direct_GCJ=yes
18126	  export_dynamic_flag_spec_GCJ='${wl}-E'
18127
18128	  # hardcode_minus_L: Not really in the search PATH,
18129	  # but as the default location of the library.
18130	  hardcode_minus_L_GCJ=yes
18131	  ;;
18132	esac
18133      fi
18134      ;;
18135
18136    irix5* | irix6* | nonstopux*)
18137      if test "$GCC" = yes; then
18138	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'
18139      else
18140	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'
18141	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18142      fi
18143      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18144      hardcode_libdir_separator_GCJ=:
18145      link_all_deplibs_GCJ=yes
18146      ;;
18147
18148    netbsd*)
18149      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18150	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18151      else
18152	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18153      fi
18154      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18155      hardcode_direct_GCJ=yes
18156      hardcode_shlibpath_var_GCJ=no
18157      ;;
18158
18159    newsos6)
18160      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18161      hardcode_direct_GCJ=yes
18162      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18163      hardcode_libdir_separator_GCJ=:
18164      hardcode_shlibpath_var_GCJ=no
18165      ;;
18166
18167    openbsd*)
18168      if test -f /usr/libexec/ld.so; then
18169	hardcode_direct_GCJ=yes
18170	hardcode_shlibpath_var_GCJ=no
18171	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18172	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18173	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18174	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18175	  export_dynamic_flag_spec_GCJ='${wl}-E'
18176	else
18177	  case $host_os in
18178	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18179	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18180	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18181	     ;;
18182	   *)
18183	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18184	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18185	     ;;
18186	  esac
18187        fi
18188      else
18189	ld_shlibs_GCJ=no
18190      fi
18191      ;;
18192
18193    os2*)
18194      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18195      hardcode_minus_L_GCJ=yes
18196      allow_undefined_flag_GCJ=unsupported
18197      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'
18198      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18199      ;;
18200
18201    osf3*)
18202      if test "$GCC" = yes; then
18203	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18204	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'
18205      else
18206	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18207	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'
18208      fi
18209      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18210      hardcode_libdir_separator_GCJ=:
18211      ;;
18212
18213    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18214      if test "$GCC" = yes; then
18215	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18216	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'
18217	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18218      else
18219	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18220	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'
18221	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~
18222	$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'
18223
18224	# Both c and cxx compiler support -rpath directly
18225	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18226      fi
18227      hardcode_libdir_separator_GCJ=:
18228      ;;
18229
18230    solaris*)
18231      no_undefined_flag_GCJ=' -z text'
18232      if test "$GCC" = yes; then
18233	wlarc='${wl}'
18234	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18235	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18236	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18237      else
18238	wlarc=''
18239	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18240	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18241  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18242      fi
18243      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18244      hardcode_shlibpath_var_GCJ=no
18245      case $host_os in
18246      solaris2.[0-5] | solaris2.[0-5].*) ;;
18247      *)
18248	# The compiler driver will combine and reorder linker options,
18249	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18250	# but is careful enough not to reorder.
18251 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18252	if test "$GCC" = yes; then
18253	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18254	else
18255	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18256	fi
18257	;;
18258      esac
18259      link_all_deplibs_GCJ=yes
18260      ;;
18261
18262    sunos4*)
18263      if test "x$host_vendor" = xsequent; then
18264	# Use $CC to link under sequent, because it throws in some extra .o
18265	# files that make .init and .fini sections work.
18266	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18267      else
18268	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18269      fi
18270      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18271      hardcode_direct_GCJ=yes
18272      hardcode_minus_L_GCJ=yes
18273      hardcode_shlibpath_var_GCJ=no
18274      ;;
18275
18276    sysv4)
18277      case $host_vendor in
18278	sni)
18279	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18280	  hardcode_direct_GCJ=yes # is this really true???
18281	;;
18282	siemens)
18283	  ## LD is ld it makes a PLAMLIB
18284	  ## CC just makes a GrossModule.
18285	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18286	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18287	  hardcode_direct_GCJ=no
18288        ;;
18289	motorola)
18290	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18291	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18292	;;
18293      esac
18294      runpath_var='LD_RUN_PATH'
18295      hardcode_shlibpath_var_GCJ=no
18296      ;;
18297
18298    sysv4.3*)
18299      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18300      hardcode_shlibpath_var_GCJ=no
18301      export_dynamic_flag_spec_GCJ='-Bexport'
18302      ;;
18303
18304    sysv4*MP*)
18305      if test -d /usr/nec; then
18306	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18307	hardcode_shlibpath_var_GCJ=no
18308	runpath_var=LD_RUN_PATH
18309	hardcode_runpath_var=yes
18310	ld_shlibs_GCJ=yes
18311      fi
18312      ;;
18313
18314    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18315      no_undefined_flag_GCJ='${wl}-z,text'
18316      archive_cmds_need_lc_GCJ=no
18317      hardcode_shlibpath_var_GCJ=no
18318      runpath_var='LD_RUN_PATH'
18319
18320      if test "$GCC" = yes; then
18321	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18322	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18323      else
18324	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18325	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18326      fi
18327      ;;
18328
18329    sysv5* | sco3.2v5* | sco5v6*)
18330      # Note: We can NOT use -z defs as we might desire, because we do not
18331      # link with -lc, and that would cause any symbols used from libc to
18332      # always be unresolved, which means just about no library would
18333      # ever link correctly.  If we're not using GNU ld we use -z text
18334      # though, which does catch some bad symbols but isn't as heavy-handed
18335      # as -z defs.
18336      no_undefined_flag_GCJ='${wl}-z,text'
18337      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18338      archive_cmds_need_lc_GCJ=no
18339      hardcode_shlibpath_var_GCJ=no
18340      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18341      hardcode_libdir_separator_GCJ=':'
18342      link_all_deplibs_GCJ=yes
18343      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18344      runpath_var='LD_RUN_PATH'
18345
18346      if test "$GCC" = yes; then
18347	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18348	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18349      else
18350	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18351	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18352      fi
18353      ;;
18354
18355    uts4*)
18356      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18357      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18358      hardcode_shlibpath_var_GCJ=no
18359      ;;
18360
18361    *)
18362      ld_shlibs_GCJ=no
18363      ;;
18364    esac
18365  fi
18366
18367{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18368echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18369test "$ld_shlibs_GCJ" = no && can_build_shared=no
18370
18371#
18372# Do we need to explicitly link libc?
18373#
18374case "x$archive_cmds_need_lc_GCJ" in
18375x|xyes)
18376  # Assume -lc should be added
18377  archive_cmds_need_lc_GCJ=yes
18378
18379  if test "$enable_shared" = yes && test "$GCC" = yes; then
18380    case $archive_cmds_GCJ in
18381    *'~'*)
18382      # FIXME: we may have to deal with multi-command sequences.
18383      ;;
18384    '$CC '*)
18385      # Test whether the compiler implicitly links with -lc since on some
18386      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18387      # to ld, don't add -lc before -lgcc.
18388      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18389echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18390      $rm conftest*
18391      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18392
18393      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18394  (eval $ac_compile) 2>&5
18395  ac_status=$?
18396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397  (exit $ac_status); } 2>conftest.err; then
18398        soname=conftest
18399        lib=conftest
18400        libobjs=conftest.$ac_objext
18401        deplibs=
18402        wl=$lt_prog_compiler_wl_GCJ
18403	pic_flag=$lt_prog_compiler_pic_GCJ
18404        compiler_flags=-v
18405        linker_flags=-v
18406        verstring=
18407        output_objdir=.
18408        libname=conftest
18409        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18410        allow_undefined_flag_GCJ=
18411        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18412  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18413  ac_status=$?
18414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415  (exit $ac_status); }
18416        then
18417	  archive_cmds_need_lc_GCJ=no
18418        else
18419	  archive_cmds_need_lc_GCJ=yes
18420        fi
18421        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18422      else
18423        cat conftest.err 1>&5
18424      fi
18425      $rm conftest*
18426      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18427echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18428      ;;
18429    esac
18430  fi
18431  ;;
18432esac
18433
18434{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18435echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18436library_names_spec=
18437libname_spec='lib$name'
18438soname_spec=
18439shrext_cmds=".so"
18440postinstall_cmds=
18441postuninstall_cmds=
18442finish_cmds=
18443finish_eval=
18444shlibpath_var=
18445shlibpath_overrides_runpath=unknown
18446version_type=none
18447dynamic_linker="$host_os ld.so"
18448sys_lib_dlsearch_path_spec="/lib /usr/lib"
18449
18450need_lib_prefix=unknown
18451hardcode_into_libs=no
18452
18453# when you set need_version to no, make sure it does not cause -set_version
18454# flags to be left without arguments
18455need_version=unknown
18456
18457case $host_os in
18458aix3*)
18459  version_type=linux
18460  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18461  shlibpath_var=LIBPATH
18462
18463  # AIX 3 has no versioning support, so we append a major version to the name.
18464  soname_spec='${libname}${release}${shared_ext}$major'
18465  ;;
18466
18467aix4* | aix5*)
18468  version_type=linux
18469  need_lib_prefix=no
18470  need_version=no
18471  hardcode_into_libs=yes
18472  if test "$host_cpu" = ia64; then
18473    # AIX 5 supports IA64
18474    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18475    shlibpath_var=LD_LIBRARY_PATH
18476  else
18477    # With GCC up to 2.95.x, collect2 would create an import file
18478    # for dependence libraries.  The import file would start with
18479    # the line `#! .'.  This would cause the generated library to
18480    # depend on `.', always an invalid library.  This was fixed in
18481    # development snapshots of GCC prior to 3.0.
18482    case $host_os in
18483      aix4 | aix4.[01] | aix4.[01].*)
18484      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18485	   echo ' yes '
18486	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18487	:
18488      else
18489	can_build_shared=no
18490      fi
18491      ;;
18492    esac
18493    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18494    # soname into executable. Probably we can add versioning support to
18495    # collect2, so additional links can be useful in future.
18496    if test "$aix_use_runtimelinking" = yes; then
18497      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18498      # instead of lib<name>.a to let people know that these are not
18499      # typical AIX shared libraries.
18500      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18501    else
18502      # We preserve .a as extension for shared libraries through AIX4.2
18503      # and later when we are not doing run time linking.
18504      library_names_spec='${libname}${release}.a $libname.a'
18505      soname_spec='${libname}${release}${shared_ext}$major'
18506    fi
18507    shlibpath_var=LIBPATH
18508  fi
18509  ;;
18510
18511amigaos*)
18512  library_names_spec='$libname.ixlibrary $libname.a'
18513  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18514  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'
18515  ;;
18516
18517beos*)
18518  library_names_spec='${libname}${shared_ext}'
18519  dynamic_linker="$host_os ld.so"
18520  shlibpath_var=LIBRARY_PATH
18521  ;;
18522
18523bsdi[45]*)
18524  version_type=linux
18525  need_version=no
18526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18527  soname_spec='${libname}${release}${shared_ext}$major'
18528  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18529  shlibpath_var=LD_LIBRARY_PATH
18530  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18531  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18532  # the default ld.so.conf also contains /usr/contrib/lib and
18533  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18534  # libtool to hard-code these into programs
18535  ;;
18536
18537cygwin* | mingw* | pw32*)
18538  version_type=windows
18539  shrext_cmds=".dll"
18540  need_version=no
18541  need_lib_prefix=no
18542
18543  case $GCC,$host_os in
18544  yes,cygwin* | yes,mingw* | yes,pw32*)
18545    library_names_spec='$libname.dll.a'
18546    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18547    postinstall_cmds='base_file=`basename \${file}`~
18548      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18549      dldir=$destdir/`dirname \$dlpath`~
18550      test -d \$dldir || mkdir -p \$dldir~
18551      $install_prog $dir/$dlname \$dldir/$dlname~
18552      chmod a+x \$dldir/$dlname'
18553    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18554      dlpath=$dir/\$dldll~
18555       $rm \$dlpath'
18556    shlibpath_overrides_runpath=yes
18557
18558    case $host_os in
18559    cygwin*)
18560      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18561      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18562      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18563      ;;
18564    mingw*)
18565      # MinGW DLLs use traditional 'lib' prefix
18566      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18567      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18568      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18569        # It is most probably a Windows format PATH printed by
18570        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18571        # path with ; separators, and with drive letters. We can handle the
18572        # drive letters (cygwin fileutils understands them), so leave them,
18573        # especially as we might pass files found there to a mingw objdump,
18574        # which wouldn't understand a cygwinified path. Ahh.
18575        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18576      else
18577        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18578      fi
18579      ;;
18580    pw32*)
18581      # pw32 DLLs use 'pw' prefix rather than 'lib'
18582      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18583      ;;
18584    esac
18585    ;;
18586
18587  *)
18588    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18589    ;;
18590  esac
18591  dynamic_linker='Win32 ld.exe'
18592  # FIXME: first we should search . and the directory the executable is in
18593  shlibpath_var=PATH
18594  ;;
18595
18596darwin* | rhapsody*)
18597  dynamic_linker="$host_os dyld"
18598  version_type=darwin
18599  need_lib_prefix=no
18600  need_version=no
18601  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18602  soname_spec='${libname}${release}${major}$shared_ext'
18603  shlibpath_overrides_runpath=yes
18604  shlibpath_var=DYLD_LIBRARY_PATH
18605  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18606
18607  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18608  ;;
18609
18610dgux*)
18611  version_type=linux
18612  need_lib_prefix=no
18613  need_version=no
18614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18615  soname_spec='${libname}${release}${shared_ext}$major'
18616  shlibpath_var=LD_LIBRARY_PATH
18617  ;;
18618
18619freebsd1*)
18620  dynamic_linker=no
18621  ;;
18622
18623freebsd* | dragonfly*)
18624  # DragonFly does not have aout.  When/if they implement a new
18625  # versioning mechanism, adjust this.
18626  if test -x /usr/bin/objformat; then
18627    objformat=`/usr/bin/objformat`
18628  else
18629    case $host_os in
18630    freebsd[123]*) objformat=aout ;;
18631    *) objformat=elf ;;
18632    esac
18633  fi
18634  version_type=freebsd-$objformat
18635  case $version_type in
18636    freebsd-elf*)
18637      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18638      need_version=no
18639      need_lib_prefix=no
18640      ;;
18641    freebsd-*)
18642      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18643      need_version=yes
18644      ;;
18645  esac
18646  shlibpath_var=LD_LIBRARY_PATH
18647  case $host_os in
18648  freebsd2*)
18649    shlibpath_overrides_runpath=yes
18650    ;;
18651  freebsd3.[01]* | freebsdelf3.[01]*)
18652    shlibpath_overrides_runpath=yes
18653    hardcode_into_libs=yes
18654    ;;
18655  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18656  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18657    shlibpath_overrides_runpath=no
18658    hardcode_into_libs=yes
18659    ;;
18660  *) # from 4.6 on, and DragonFly
18661    shlibpath_overrides_runpath=yes
18662    hardcode_into_libs=yes
18663    ;;
18664  esac
18665  ;;
18666
18667gnu*)
18668  version_type=linux
18669  need_lib_prefix=no
18670  need_version=no
18671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18672  soname_spec='${libname}${release}${shared_ext}$major'
18673  shlibpath_var=LD_LIBRARY_PATH
18674  hardcode_into_libs=yes
18675  ;;
18676
18677hpux9* | hpux10* | hpux11*)
18678  # Give a soname corresponding to the major version so that dld.sl refuses to
18679  # link against other versions.
18680  version_type=sunos
18681  need_lib_prefix=no
18682  need_version=no
18683  case $host_cpu in
18684  ia64*)
18685    shrext_cmds='.so'
18686    hardcode_into_libs=yes
18687    dynamic_linker="$host_os dld.so"
18688    shlibpath_var=LD_LIBRARY_PATH
18689    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18690    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691    soname_spec='${libname}${release}${shared_ext}$major'
18692    if test "X$HPUX_IA64_MODE" = X32; then
18693      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18694    else
18695      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18696    fi
18697    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18698    ;;
18699   hppa*64*)
18700     shrext_cmds='.sl'
18701     hardcode_into_libs=yes
18702     dynamic_linker="$host_os dld.sl"
18703     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18704     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18706     soname_spec='${libname}${release}${shared_ext}$major'
18707     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18708     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18709     ;;
18710   *)
18711    shrext_cmds='.sl'
18712    dynamic_linker="$host_os dld.sl"
18713    shlibpath_var=SHLIB_PATH
18714    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18715    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18716    soname_spec='${libname}${release}${shared_ext}$major'
18717    ;;
18718  esac
18719  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18720  postinstall_cmds='chmod 555 $lib'
18721  ;;
18722
18723interix[3-9]*)
18724  version_type=linux
18725  need_lib_prefix=no
18726  need_version=no
18727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18728  soname_spec='${libname}${release}${shared_ext}$major'
18729  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18730  shlibpath_var=LD_LIBRARY_PATH
18731  shlibpath_overrides_runpath=no
18732  hardcode_into_libs=yes
18733  ;;
18734
18735irix5* | irix6* | nonstopux*)
18736  case $host_os in
18737    nonstopux*) version_type=nonstopux ;;
18738    *)
18739	if test "$lt_cv_prog_gnu_ld" = yes; then
18740		version_type=linux
18741	else
18742		version_type=irix
18743	fi ;;
18744  esac
18745  need_lib_prefix=no
18746  need_version=no
18747  soname_spec='${libname}${release}${shared_ext}$major'
18748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18749  case $host_os in
18750  irix5* | nonstopux*)
18751    libsuff= shlibsuff=
18752    ;;
18753  *)
18754    case $LD in # libtool.m4 will add one of these switches to LD
18755    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18756      libsuff= shlibsuff= libmagic=32-bit;;
18757    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18758      libsuff=32 shlibsuff=N32 libmagic=N32;;
18759    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18760      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18761    *) libsuff= shlibsuff= libmagic=never-match;;
18762    esac
18763    ;;
18764  esac
18765  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18766  shlibpath_overrides_runpath=no
18767  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18768  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18769  hardcode_into_libs=yes
18770  ;;
18771
18772# No shared lib support for Linux oldld, aout, or coff.
18773linux*oldld* | linux*aout* | linux*coff*)
18774  dynamic_linker=no
18775  ;;
18776
18777# This must be Linux ELF.
18778linux* | k*bsd*-gnu)
18779  version_type=linux
18780  need_lib_prefix=no
18781  need_version=no
18782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18783  soname_spec='${libname}${release}${shared_ext}$major'
18784  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18785  shlibpath_var=LD_LIBRARY_PATH
18786  shlibpath_overrides_runpath=no
18787  # This implies no fast_install, which is unacceptable.
18788  # Some rework will be needed to allow for fast_install
18789  # before this can be enabled.
18790  hardcode_into_libs=yes
18791  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18792  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18793
18794  # Append ld.so.conf contents to the search path
18795  if test -f /etc/ld.so.conf; then
18796    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18797    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18798  fi
18799
18800  # We used to test for /lib/ld.so.1 and disable shared libraries on
18801  # powerpc, because MkLinux only supported shared libraries with the
18802  # GNU dynamic linker.  Since this was broken with cross compilers,
18803  # most powerpc-linux boxes support dynamic linking these days and
18804  # people can always --disable-shared, the test was removed, and we
18805  # assume the GNU/Linux dynamic linker is in use.
18806  dynamic_linker='GNU/Linux ld.so'
18807  ;;
18808
18809netbsd*)
18810  version_type=sunos
18811  need_lib_prefix=no
18812  need_version=no
18813  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18814    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18815    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18816    dynamic_linker='NetBSD (a.out) ld.so'
18817  else
18818    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18819    soname_spec='${libname}${release}${shared_ext}$major'
18820    dynamic_linker='NetBSD ld.elf_so'
18821  fi
18822  shlibpath_var=LD_LIBRARY_PATH
18823  shlibpath_overrides_runpath=yes
18824  hardcode_into_libs=yes
18825  ;;
18826
18827newsos6)
18828  version_type=linux
18829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830  shlibpath_var=LD_LIBRARY_PATH
18831  shlibpath_overrides_runpath=yes
18832  ;;
18833
18834nto-qnx*)
18835  version_type=linux
18836  need_lib_prefix=no
18837  need_version=no
18838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839  soname_spec='${libname}${release}${shared_ext}$major'
18840  shlibpath_var=LD_LIBRARY_PATH
18841  shlibpath_overrides_runpath=yes
18842  ;;
18843
18844openbsd*)
18845  version_type=sunos
18846  sys_lib_dlsearch_path_spec="/usr/lib"
18847  need_lib_prefix=no
18848  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18849  case $host_os in
18850    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18851    *)                         need_version=no  ;;
18852  esac
18853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18854  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18855  shlibpath_var=LD_LIBRARY_PATH
18856  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18857    case $host_os in
18858      openbsd2.[89] | openbsd2.[89].*)
18859	shlibpath_overrides_runpath=no
18860	;;
18861      *)
18862	shlibpath_overrides_runpath=yes
18863	;;
18864      esac
18865  else
18866    shlibpath_overrides_runpath=yes
18867  fi
18868  ;;
18869
18870os2*)
18871  libname_spec='$name'
18872  shrext_cmds=".dll"
18873  need_lib_prefix=no
18874  library_names_spec='$libname${shared_ext} $libname.a'
18875  dynamic_linker='OS/2 ld.exe'
18876  shlibpath_var=LIBPATH
18877  ;;
18878
18879osf3* | osf4* | osf5*)
18880  version_type=osf
18881  need_lib_prefix=no
18882  need_version=no
18883  soname_spec='${libname}${release}${shared_ext}$major'
18884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18885  shlibpath_var=LD_LIBRARY_PATH
18886  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18887  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18888  ;;
18889
18890rdos*)
18891  dynamic_linker=no
18892  ;;
18893
18894solaris*)
18895  version_type=linux
18896  need_lib_prefix=no
18897  need_version=no
18898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18899  soname_spec='${libname}${release}${shared_ext}$major'
18900  shlibpath_var=LD_LIBRARY_PATH
18901  shlibpath_overrides_runpath=yes
18902  hardcode_into_libs=yes
18903  # ldd complains unless libraries are executable
18904  postinstall_cmds='chmod +x $lib'
18905  ;;
18906
18907sunos4*)
18908  version_type=sunos
18909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18910  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18911  shlibpath_var=LD_LIBRARY_PATH
18912  shlibpath_overrides_runpath=yes
18913  if test "$with_gnu_ld" = yes; then
18914    need_lib_prefix=no
18915  fi
18916  need_version=yes
18917  ;;
18918
18919sysv4 | sysv4.3*)
18920  version_type=linux
18921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18922  soname_spec='${libname}${release}${shared_ext}$major'
18923  shlibpath_var=LD_LIBRARY_PATH
18924  case $host_vendor in
18925    sni)
18926      shlibpath_overrides_runpath=no
18927      need_lib_prefix=no
18928      export_dynamic_flag_spec='${wl}-Blargedynsym'
18929      runpath_var=LD_RUN_PATH
18930      ;;
18931    siemens)
18932      need_lib_prefix=no
18933      ;;
18934    motorola)
18935      need_lib_prefix=no
18936      need_version=no
18937      shlibpath_overrides_runpath=no
18938      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18939      ;;
18940  esac
18941  ;;
18942
18943sysv4*MP*)
18944  if test -d /usr/nec ;then
18945    version_type=linux
18946    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18947    soname_spec='$libname${shared_ext}.$major'
18948    shlibpath_var=LD_LIBRARY_PATH
18949  fi
18950  ;;
18951
18952sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18953  version_type=freebsd-elf
18954  need_lib_prefix=no
18955  need_version=no
18956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18957  soname_spec='${libname}${release}${shared_ext}$major'
18958  shlibpath_var=LD_LIBRARY_PATH
18959  hardcode_into_libs=yes
18960  if test "$with_gnu_ld" = yes; then
18961    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18962    shlibpath_overrides_runpath=no
18963  else
18964    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18965    shlibpath_overrides_runpath=yes
18966    case $host_os in
18967      sco3.2v5*)
18968        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18969	;;
18970    esac
18971  fi
18972  sys_lib_dlsearch_path_spec='/usr/lib'
18973  ;;
18974
18975uts4*)
18976  version_type=linux
18977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18978  soname_spec='${libname}${release}${shared_ext}$major'
18979  shlibpath_var=LD_LIBRARY_PATH
18980  ;;
18981
18982*)
18983  dynamic_linker=no
18984  ;;
18985esac
18986{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18987echo "${ECHO_T}$dynamic_linker" >&6; }
18988test "$dynamic_linker" = no && can_build_shared=no
18989
18990variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18991if test "$GCC" = yes; then
18992  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18993fi
18994
18995{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18996echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18997hardcode_action_GCJ=
18998if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18999   test -n "$runpath_var_GCJ" || \
19000   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19001
19002  # We can hardcode non-existant directories.
19003  if test "$hardcode_direct_GCJ" != no &&
19004     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19005     # have to relink, otherwise we might link with an installed library
19006     # when we should be linking with a yet-to-be-installed one
19007     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19008     test "$hardcode_minus_L_GCJ" != no; then
19009    # Linking always hardcodes the temporary library directory.
19010    hardcode_action_GCJ=relink
19011  else
19012    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19013    hardcode_action_GCJ=immediate
19014  fi
19015else
19016  # We cannot hardcode anything, or else we can only hardcode existing
19017  # directories.
19018  hardcode_action_GCJ=unsupported
19019fi
19020{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19021echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19022
19023if test "$hardcode_action_GCJ" = relink; then
19024  # Fast installation is not supported
19025  enable_fast_install=no
19026elif test "$shlibpath_overrides_runpath" = yes ||
19027     test "$enable_shared" = no; then
19028  # Fast installation is not necessary
19029  enable_fast_install=needless
19030fi
19031
19032
19033# The else clause should only fire when bootstrapping the
19034# libtool distribution, otherwise you forgot to ship ltmain.sh
19035# with your package, and you will get complaints that there are
19036# no rules to generate ltmain.sh.
19037if test -f "$ltmain"; then
19038  # See if we are running on zsh, and set the options which allow our commands through
19039  # without removal of \ escapes.
19040  if test -n "${ZSH_VERSION+set}" ; then
19041    setopt NO_GLOB_SUBST
19042  fi
19043  # Now quote all the things that may contain metacharacters while being
19044  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19045  # variables and quote the copies for generation of the libtool script.
19046  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19047    SED SHELL STRIP \
19048    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19049    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19050    deplibs_check_method reload_flag reload_cmds need_locks \
19051    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19052    lt_cv_sys_global_symbol_to_c_name_address \
19053    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19054    old_postinstall_cmds old_postuninstall_cmds \
19055    compiler_GCJ \
19056    CC_GCJ \
19057    LD_GCJ \
19058    lt_prog_compiler_wl_GCJ \
19059    lt_prog_compiler_pic_GCJ \
19060    lt_prog_compiler_static_GCJ \
19061    lt_prog_compiler_no_builtin_flag_GCJ \
19062    export_dynamic_flag_spec_GCJ \
19063    thread_safe_flag_spec_GCJ \
19064    whole_archive_flag_spec_GCJ \
19065    enable_shared_with_static_runtimes_GCJ \
19066    old_archive_cmds_GCJ \
19067    old_archive_from_new_cmds_GCJ \
19068    predep_objects_GCJ \
19069    postdep_objects_GCJ \
19070    predeps_GCJ \
19071    postdeps_GCJ \
19072    compiler_lib_search_path_GCJ \
19073    archive_cmds_GCJ \
19074    archive_expsym_cmds_GCJ \
19075    postinstall_cmds_GCJ \
19076    postuninstall_cmds_GCJ \
19077    old_archive_from_expsyms_cmds_GCJ \
19078    allow_undefined_flag_GCJ \
19079    no_undefined_flag_GCJ \
19080    export_symbols_cmds_GCJ \
19081    hardcode_libdir_flag_spec_GCJ \
19082    hardcode_libdir_flag_spec_ld_GCJ \
19083    hardcode_libdir_separator_GCJ \
19084    hardcode_automatic_GCJ \
19085    module_cmds_GCJ \
19086    module_expsym_cmds_GCJ \
19087    lt_cv_prog_compiler_c_o_GCJ \
19088    fix_srcfile_path_GCJ \
19089    exclude_expsyms_GCJ \
19090    include_expsyms_GCJ; do
19091
19092    case $var in
19093    old_archive_cmds_GCJ | \
19094    old_archive_from_new_cmds_GCJ | \
19095    archive_cmds_GCJ | \
19096    archive_expsym_cmds_GCJ | \
19097    module_cmds_GCJ | \
19098    module_expsym_cmds_GCJ | \
19099    old_archive_from_expsyms_cmds_GCJ | \
19100    export_symbols_cmds_GCJ | \
19101    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19102    postinstall_cmds | postuninstall_cmds | \
19103    old_postinstall_cmds | old_postuninstall_cmds | \
19104    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19105      # Double-quote double-evaled strings.
19106      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19107      ;;
19108    *)
19109      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19110      ;;
19111    esac
19112  done
19113
19114  case $lt_echo in
19115  *'\$0 --fallback-echo"')
19116    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19117    ;;
19118  esac
19119
19120cfgfile="$ofile"
19121
19122  cat <<__EOF__ >> "$cfgfile"
19123# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19124
19125# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19126
19127# Shell to use when invoking shell scripts.
19128SHELL=$lt_SHELL
19129
19130# Whether or not to build shared libraries.
19131build_libtool_libs=$enable_shared
19132
19133# Whether or not to build static libraries.
19134build_old_libs=$enable_static
19135
19136# Whether or not to add -lc for building shared libraries.
19137build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19138
19139# Whether or not to disallow shared libs when runtime libs are static
19140allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19141
19142# Whether or not to optimize for fast installation.
19143fast_install=$enable_fast_install
19144
19145# The host system.
19146host_alias=$host_alias
19147host=$host
19148host_os=$host_os
19149
19150# The build system.
19151build_alias=$build_alias
19152build=$build
19153build_os=$build_os
19154
19155# An echo program that does not interpret backslashes.
19156echo=$lt_echo
19157
19158# The archiver.
19159AR=$lt_AR
19160AR_FLAGS=$lt_AR_FLAGS
19161
19162# A C compiler.
19163LTCC=$lt_LTCC
19164
19165# LTCC compiler flags.
19166LTCFLAGS=$lt_LTCFLAGS
19167
19168# A language-specific compiler.
19169CC=$lt_compiler_GCJ
19170
19171# Is the compiler the GNU C compiler?
19172with_gcc=$GCC_GCJ
19173
19174# An ERE matcher.
19175EGREP=$lt_EGREP
19176
19177# The linker used to build libraries.
19178LD=$lt_LD_GCJ
19179
19180# Whether we need hard or soft links.
19181LN_S=$lt_LN_S
19182
19183# A BSD-compatible nm program.
19184NM=$lt_NM
19185
19186# A symbol stripping program
19187STRIP=$lt_STRIP
19188
19189# Used to examine libraries when file_magic_cmd begins "file"
19190MAGIC_CMD=$MAGIC_CMD
19191
19192# Used on cygwin: DLL creation program.
19193DLLTOOL="$DLLTOOL"
19194
19195# Used on cygwin: object dumper.
19196OBJDUMP="$OBJDUMP"
19197
19198# Used on cygwin: assembler.
19199AS="$AS"
19200
19201# The name of the directory that contains temporary libtool files.
19202objdir=$objdir
19203
19204# How to create reloadable object files.
19205reload_flag=$lt_reload_flag
19206reload_cmds=$lt_reload_cmds
19207
19208# How to pass a linker flag through the compiler.
19209wl=$lt_lt_prog_compiler_wl_GCJ
19210
19211# Object file suffix (normally "o").
19212objext="$ac_objext"
19213
19214# Old archive suffix (normally "a").
19215libext="$libext"
19216
19217# Shared library suffix (normally ".so").
19218shrext_cmds='$shrext_cmds'
19219
19220# Executable file suffix (normally "").
19221exeext="$exeext"
19222
19223# Additional compiler flags for building library objects.
19224pic_flag=$lt_lt_prog_compiler_pic_GCJ
19225pic_mode=$pic_mode
19226
19227# What is the maximum length of a command?
19228max_cmd_len=$lt_cv_sys_max_cmd_len
19229
19230# Does compiler simultaneously support -c and -o options?
19231compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19232
19233# Must we lock files when doing compilation?
19234need_locks=$lt_need_locks
19235
19236# Do we need the lib prefix for modules?
19237need_lib_prefix=$need_lib_prefix
19238
19239# Do we need a version for libraries?
19240need_version=$need_version
19241
19242# Whether dlopen is supported.
19243dlopen_support=$enable_dlopen
19244
19245# Whether dlopen of programs is supported.
19246dlopen_self=$enable_dlopen_self
19247
19248# Whether dlopen of statically linked programs is supported.
19249dlopen_self_static=$enable_dlopen_self_static
19250
19251# Compiler flag to prevent dynamic linking.
19252link_static_flag=$lt_lt_prog_compiler_static_GCJ
19253
19254# Compiler flag to turn off builtin functions.
19255no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19256
19257# Compiler flag to allow reflexive dlopens.
19258export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19259
19260# Compiler flag to generate shared objects directly from archives.
19261whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19262
19263# Compiler flag to generate thread-safe objects.
19264thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19265
19266# Library versioning type.
19267version_type=$version_type
19268
19269# Format of library name prefix.
19270libname_spec=$lt_libname_spec
19271
19272# List of archive names.  First name is the real one, the rest are links.
19273# The last name is the one that the linker finds with -lNAME.
19274library_names_spec=$lt_library_names_spec
19275
19276# The coded name of the library, if different from the real name.
19277soname_spec=$lt_soname_spec
19278
19279# Commands used to build and install an old-style archive.
19280RANLIB=$lt_RANLIB
19281old_archive_cmds=$lt_old_archive_cmds_GCJ
19282old_postinstall_cmds=$lt_old_postinstall_cmds
19283old_postuninstall_cmds=$lt_old_postuninstall_cmds
19284
19285# Create an old-style archive from a shared archive.
19286old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19287
19288# Create a temporary old-style archive to link instead of a shared archive.
19289old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19290
19291# Commands used to build and install a shared archive.
19292archive_cmds=$lt_archive_cmds_GCJ
19293archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19294postinstall_cmds=$lt_postinstall_cmds
19295postuninstall_cmds=$lt_postuninstall_cmds
19296
19297# Commands used to build a loadable module (assumed same as above if empty)
19298module_cmds=$lt_module_cmds_GCJ
19299module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19300
19301# Commands to strip libraries.
19302old_striplib=$lt_old_striplib
19303striplib=$lt_striplib
19304
19305# Dependencies to place before the objects being linked to create a
19306# shared library.
19307predep_objects=$lt_predep_objects_GCJ
19308
19309# Dependencies to place after the objects being linked to create a
19310# shared library.
19311postdep_objects=$lt_postdep_objects_GCJ
19312
19313# Dependencies to place before the objects being linked to create a
19314# shared library.
19315predeps=$lt_predeps_GCJ
19316
19317# Dependencies to place after the objects being linked to create a
19318# shared library.
19319postdeps=$lt_postdeps_GCJ
19320
19321# The library search path used internally by the compiler when linking
19322# a shared library.
19323compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19324
19325# Method to check whether dependent libraries are shared objects.
19326deplibs_check_method=$lt_deplibs_check_method
19327
19328# Command to use when deplibs_check_method == file_magic.
19329file_magic_cmd=$lt_file_magic_cmd
19330
19331# Flag that allows shared libraries with undefined symbols to be built.
19332allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19333
19334# Flag that forces no undefined symbols.
19335no_undefined_flag=$lt_no_undefined_flag_GCJ
19336
19337# Commands used to finish a libtool library installation in a directory.
19338finish_cmds=$lt_finish_cmds
19339
19340# Same as above, but a single script fragment to be evaled but not shown.
19341finish_eval=$lt_finish_eval
19342
19343# Take the output of nm and produce a listing of raw symbols and C names.
19344global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19345
19346# Transform the output of nm in a proper C declaration
19347global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19348
19349# Transform the output of nm in a C name address pair
19350global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19351
19352# This is the shared library runtime path variable.
19353runpath_var=$runpath_var
19354
19355# This is the shared library path variable.
19356shlibpath_var=$shlibpath_var
19357
19358# Is shlibpath searched before the hard-coded library search path?
19359shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19360
19361# How to hardcode a shared library path into an executable.
19362hardcode_action=$hardcode_action_GCJ
19363
19364# Whether we should hardcode library paths into libraries.
19365hardcode_into_libs=$hardcode_into_libs
19366
19367# Flag to hardcode \$libdir into a binary during linking.
19368# This must work even if \$libdir does not exist.
19369hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19370
19371# If ld is used when linking, flag to hardcode \$libdir into
19372# a binary during linking. This must work even if \$libdir does
19373# not exist.
19374hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19375
19376# Whether we need a single -rpath flag with a separated argument.
19377hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19378
19379# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19380# resulting binary.
19381hardcode_direct=$hardcode_direct_GCJ
19382
19383# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19384# resulting binary.
19385hardcode_minus_L=$hardcode_minus_L_GCJ
19386
19387# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19388# the resulting binary.
19389hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19390
19391# Set to yes if building a shared library automatically hardcodes DIR into the library
19392# and all subsequent libraries and executables linked against it.
19393hardcode_automatic=$hardcode_automatic_GCJ
19394
19395# Variables whose values should be saved in libtool wrapper scripts and
19396# restored at relink time.
19397variables_saved_for_relink="$variables_saved_for_relink"
19398
19399# Whether libtool must link a program against all its dependency libraries.
19400link_all_deplibs=$link_all_deplibs_GCJ
19401
19402# Compile-time system search path for libraries
19403sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19404
19405# Run-time system search path for libraries
19406sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19407
19408# Fix the shell variable \$srcfile for the compiler.
19409fix_srcfile_path=$lt_fix_srcfile_path
19410
19411# Set to yes if exported symbols are required.
19412always_export_symbols=$always_export_symbols_GCJ
19413
19414# The commands to list exported symbols.
19415export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19416
19417# The commands to extract the exported symbol list from a shared archive.
19418extract_expsyms_cmds=$lt_extract_expsyms_cmds
19419
19420# Symbols that should not be listed in the preloaded symbols.
19421exclude_expsyms=$lt_exclude_expsyms_GCJ
19422
19423# Symbols that must always be exported.
19424include_expsyms=$lt_include_expsyms_GCJ
19425
19426# ### END LIBTOOL TAG CONFIG: $tagname
19427
19428__EOF__
19429
19430
19431else
19432  # If there is no Makefile yet, we rely on a make rule to execute
19433  # `config.status --recheck' to rerun these tests and create the
19434  # libtool script then.
19435  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19436  if test -f "$ltmain_in"; then
19437    test -f Makefile && make "$ltmain"
19438  fi
19439fi
19440
19441
19442ac_ext=c
19443ac_cpp='$CPP $CPPFLAGS'
19444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19446ac_compiler_gnu=$ac_cv_c_compiler_gnu
19447
19448CC="$lt_save_CC"
19449
19450	else
19451	  tagname=""
19452	fi
19453	;;
19454
19455      RC)
19456
19457
19458# Source file extension for RC test sources.
19459ac_ext=rc
19460
19461# Object file extension for compiled RC test sources.
19462objext=o
19463objext_RC=$objext
19464
19465# Code to be used in simple compile tests
19466lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19467
19468# Code to be used in simple link tests
19469lt_simple_link_test_code="$lt_simple_compile_test_code"
19470
19471# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19472
19473# If no C compiler was specified, use CC.
19474LTCC=${LTCC-"$CC"}
19475
19476# If no C compiler flags were specified, use CFLAGS.
19477LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19478
19479# Allow CC to be a program name with arguments.
19480compiler=$CC
19481
19482
19483# save warnings/boilerplate of simple test code
19484ac_outfile=conftest.$ac_objext
19485echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19486eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19487_lt_compiler_boilerplate=`cat conftest.err`
19488$rm conftest*
19489
19490ac_outfile=conftest.$ac_objext
19491echo "$lt_simple_link_test_code" >conftest.$ac_ext
19492eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19493_lt_linker_boilerplate=`cat conftest.err`
19494$rm conftest*
19495
19496
19497# Allow CC to be a program name with arguments.
19498lt_save_CC="$CC"
19499CC=${RC-"windres"}
19500compiler=$CC
19501compiler_RC=$CC
19502for cc_temp in $compiler""; do
19503  case $cc_temp in
19504    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19505    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19506    \-*) ;;
19507    *) break;;
19508  esac
19509done
19510cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19511
19512lt_cv_prog_compiler_c_o_RC=yes
19513
19514# The else clause should only fire when bootstrapping the
19515# libtool distribution, otherwise you forgot to ship ltmain.sh
19516# with your package, and you will get complaints that there are
19517# no rules to generate ltmain.sh.
19518if test -f "$ltmain"; then
19519  # See if we are running on zsh, and set the options which allow our commands through
19520  # without removal of \ escapes.
19521  if test -n "${ZSH_VERSION+set}" ; then
19522    setopt NO_GLOB_SUBST
19523  fi
19524  # Now quote all the things that may contain metacharacters while being
19525  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19526  # variables and quote the copies for generation of the libtool script.
19527  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19528    SED SHELL STRIP \
19529    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19530    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19531    deplibs_check_method reload_flag reload_cmds need_locks \
19532    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19533    lt_cv_sys_global_symbol_to_c_name_address \
19534    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19535    old_postinstall_cmds old_postuninstall_cmds \
19536    compiler_RC \
19537    CC_RC \
19538    LD_RC \
19539    lt_prog_compiler_wl_RC \
19540    lt_prog_compiler_pic_RC \
19541    lt_prog_compiler_static_RC \
19542    lt_prog_compiler_no_builtin_flag_RC \
19543    export_dynamic_flag_spec_RC \
19544    thread_safe_flag_spec_RC \
19545    whole_archive_flag_spec_RC \
19546    enable_shared_with_static_runtimes_RC \
19547    old_archive_cmds_RC \
19548    old_archive_from_new_cmds_RC \
19549    predep_objects_RC \
19550    postdep_objects_RC \
19551    predeps_RC \
19552    postdeps_RC \
19553    compiler_lib_search_path_RC \
19554    archive_cmds_RC \
19555    archive_expsym_cmds_RC \
19556    postinstall_cmds_RC \
19557    postuninstall_cmds_RC \
19558    old_archive_from_expsyms_cmds_RC \
19559    allow_undefined_flag_RC \
19560    no_undefined_flag_RC \
19561    export_symbols_cmds_RC \
19562    hardcode_libdir_flag_spec_RC \
19563    hardcode_libdir_flag_spec_ld_RC \
19564    hardcode_libdir_separator_RC \
19565    hardcode_automatic_RC \
19566    module_cmds_RC \
19567    module_expsym_cmds_RC \
19568    lt_cv_prog_compiler_c_o_RC \
19569    fix_srcfile_path_RC \
19570    exclude_expsyms_RC \
19571    include_expsyms_RC; do
19572
19573    case $var in
19574    old_archive_cmds_RC | \
19575    old_archive_from_new_cmds_RC | \
19576    archive_cmds_RC | \
19577    archive_expsym_cmds_RC | \
19578    module_cmds_RC | \
19579    module_expsym_cmds_RC | \
19580    old_archive_from_expsyms_cmds_RC | \
19581    export_symbols_cmds_RC | \
19582    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19583    postinstall_cmds | postuninstall_cmds | \
19584    old_postinstall_cmds | old_postuninstall_cmds | \
19585    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19586      # Double-quote double-evaled strings.
19587      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19588      ;;
19589    *)
19590      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19591      ;;
19592    esac
19593  done
19594
19595  case $lt_echo in
19596  *'\$0 --fallback-echo"')
19597    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19598    ;;
19599  esac
19600
19601cfgfile="$ofile"
19602
19603  cat <<__EOF__ >> "$cfgfile"
19604# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19605
19606# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19607
19608# Shell to use when invoking shell scripts.
19609SHELL=$lt_SHELL
19610
19611# Whether or not to build shared libraries.
19612build_libtool_libs=$enable_shared
19613
19614# Whether or not to build static libraries.
19615build_old_libs=$enable_static
19616
19617# Whether or not to add -lc for building shared libraries.
19618build_libtool_need_lc=$archive_cmds_need_lc_RC
19619
19620# Whether or not to disallow shared libs when runtime libs are static
19621allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19622
19623# Whether or not to optimize for fast installation.
19624fast_install=$enable_fast_install
19625
19626# The host system.
19627host_alias=$host_alias
19628host=$host
19629host_os=$host_os
19630
19631# The build system.
19632build_alias=$build_alias
19633build=$build
19634build_os=$build_os
19635
19636# An echo program that does not interpret backslashes.
19637echo=$lt_echo
19638
19639# The archiver.
19640AR=$lt_AR
19641AR_FLAGS=$lt_AR_FLAGS
19642
19643# A C compiler.
19644LTCC=$lt_LTCC
19645
19646# LTCC compiler flags.
19647LTCFLAGS=$lt_LTCFLAGS
19648
19649# A language-specific compiler.
19650CC=$lt_compiler_RC
19651
19652# Is the compiler the GNU C compiler?
19653with_gcc=$GCC_RC
19654
19655# An ERE matcher.
19656EGREP=$lt_EGREP
19657
19658# The linker used to build libraries.
19659LD=$lt_LD_RC
19660
19661# Whether we need hard or soft links.
19662LN_S=$lt_LN_S
19663
19664# A BSD-compatible nm program.
19665NM=$lt_NM
19666
19667# A symbol stripping program
19668STRIP=$lt_STRIP
19669
19670# Used to examine libraries when file_magic_cmd begins "file"
19671MAGIC_CMD=$MAGIC_CMD
19672
19673# Used on cygwin: DLL creation program.
19674DLLTOOL="$DLLTOOL"
19675
19676# Used on cygwin: object dumper.
19677OBJDUMP="$OBJDUMP"
19678
19679# Used on cygwin: assembler.
19680AS="$AS"
19681
19682# The name of the directory that contains temporary libtool files.
19683objdir=$objdir
19684
19685# How to create reloadable object files.
19686reload_flag=$lt_reload_flag
19687reload_cmds=$lt_reload_cmds
19688
19689# How to pass a linker flag through the compiler.
19690wl=$lt_lt_prog_compiler_wl_RC
19691
19692# Object file suffix (normally "o").
19693objext="$ac_objext"
19694
19695# Old archive suffix (normally "a").
19696libext="$libext"
19697
19698# Shared library suffix (normally ".so").
19699shrext_cmds='$shrext_cmds'
19700
19701# Executable file suffix (normally "").
19702exeext="$exeext"
19703
19704# Additional compiler flags for building library objects.
19705pic_flag=$lt_lt_prog_compiler_pic_RC
19706pic_mode=$pic_mode
19707
19708# What is the maximum length of a command?
19709max_cmd_len=$lt_cv_sys_max_cmd_len
19710
19711# Does compiler simultaneously support -c and -o options?
19712compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19713
19714# Must we lock files when doing compilation?
19715need_locks=$lt_need_locks
19716
19717# Do we need the lib prefix for modules?
19718need_lib_prefix=$need_lib_prefix
19719
19720# Do we need a version for libraries?
19721need_version=$need_version
19722
19723# Whether dlopen is supported.
19724dlopen_support=$enable_dlopen
19725
19726# Whether dlopen of programs is supported.
19727dlopen_self=$enable_dlopen_self
19728
19729# Whether dlopen of statically linked programs is supported.
19730dlopen_self_static=$enable_dlopen_self_static
19731
19732# Compiler flag to prevent dynamic linking.
19733link_static_flag=$lt_lt_prog_compiler_static_RC
19734
19735# Compiler flag to turn off builtin functions.
19736no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19737
19738# Compiler flag to allow reflexive dlopens.
19739export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19740
19741# Compiler flag to generate shared objects directly from archives.
19742whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19743
19744# Compiler flag to generate thread-safe objects.
19745thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19746
19747# Library versioning type.
19748version_type=$version_type
19749
19750# Format of library name prefix.
19751libname_spec=$lt_libname_spec
19752
19753# List of archive names.  First name is the real one, the rest are links.
19754# The last name is the one that the linker finds with -lNAME.
19755library_names_spec=$lt_library_names_spec
19756
19757# The coded name of the library, if different from the real name.
19758soname_spec=$lt_soname_spec
19759
19760# Commands used to build and install an old-style archive.
19761RANLIB=$lt_RANLIB
19762old_archive_cmds=$lt_old_archive_cmds_RC
19763old_postinstall_cmds=$lt_old_postinstall_cmds
19764old_postuninstall_cmds=$lt_old_postuninstall_cmds
19765
19766# Create an old-style archive from a shared archive.
19767old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19768
19769# Create a temporary old-style archive to link instead of a shared archive.
19770old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19771
19772# Commands used to build and install a shared archive.
19773archive_cmds=$lt_archive_cmds_RC
19774archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19775postinstall_cmds=$lt_postinstall_cmds
19776postuninstall_cmds=$lt_postuninstall_cmds
19777
19778# Commands used to build a loadable module (assumed same as above if empty)
19779module_cmds=$lt_module_cmds_RC
19780module_expsym_cmds=$lt_module_expsym_cmds_RC
19781
19782# Commands to strip libraries.
19783old_striplib=$lt_old_striplib
19784striplib=$lt_striplib
19785
19786# Dependencies to place before the objects being linked to create a
19787# shared library.
19788predep_objects=$lt_predep_objects_RC
19789
19790# Dependencies to place after the objects being linked to create a
19791# shared library.
19792postdep_objects=$lt_postdep_objects_RC
19793
19794# Dependencies to place before the objects being linked to create a
19795# shared library.
19796predeps=$lt_predeps_RC
19797
19798# Dependencies to place after the objects being linked to create a
19799# shared library.
19800postdeps=$lt_postdeps_RC
19801
19802# The library search path used internally by the compiler when linking
19803# a shared library.
19804compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19805
19806# Method to check whether dependent libraries are shared objects.
19807deplibs_check_method=$lt_deplibs_check_method
19808
19809# Command to use when deplibs_check_method == file_magic.
19810file_magic_cmd=$lt_file_magic_cmd
19811
19812# Flag that allows shared libraries with undefined symbols to be built.
19813allow_undefined_flag=$lt_allow_undefined_flag_RC
19814
19815# Flag that forces no undefined symbols.
19816no_undefined_flag=$lt_no_undefined_flag_RC
19817
19818# Commands used to finish a libtool library installation in a directory.
19819finish_cmds=$lt_finish_cmds
19820
19821# Same as above, but a single script fragment to be evaled but not shown.
19822finish_eval=$lt_finish_eval
19823
19824# Take the output of nm and produce a listing of raw symbols and C names.
19825global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19826
19827# Transform the output of nm in a proper C declaration
19828global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19829
19830# Transform the output of nm in a C name address pair
19831global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19832
19833# This is the shared library runtime path variable.
19834runpath_var=$runpath_var
19835
19836# This is the shared library path variable.
19837shlibpath_var=$shlibpath_var
19838
19839# Is shlibpath searched before the hard-coded library search path?
19840shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19841
19842# How to hardcode a shared library path into an executable.
19843hardcode_action=$hardcode_action_RC
19844
19845# Whether we should hardcode library paths into libraries.
19846hardcode_into_libs=$hardcode_into_libs
19847
19848# Flag to hardcode \$libdir into a binary during linking.
19849# This must work even if \$libdir does not exist.
19850hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19851
19852# If ld is used when linking, flag to hardcode \$libdir into
19853# a binary during linking. This must work even if \$libdir does
19854# not exist.
19855hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19856
19857# Whether we need a single -rpath flag with a separated argument.
19858hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19859
19860# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19861# resulting binary.
19862hardcode_direct=$hardcode_direct_RC
19863
19864# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19865# resulting binary.
19866hardcode_minus_L=$hardcode_minus_L_RC
19867
19868# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19869# the resulting binary.
19870hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19871
19872# Set to yes if building a shared library automatically hardcodes DIR into the library
19873# and all subsequent libraries and executables linked against it.
19874hardcode_automatic=$hardcode_automatic_RC
19875
19876# Variables whose values should be saved in libtool wrapper scripts and
19877# restored at relink time.
19878variables_saved_for_relink="$variables_saved_for_relink"
19879
19880# Whether libtool must link a program against all its dependency libraries.
19881link_all_deplibs=$link_all_deplibs_RC
19882
19883# Compile-time system search path for libraries
19884sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19885
19886# Run-time system search path for libraries
19887sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19888
19889# Fix the shell variable \$srcfile for the compiler.
19890fix_srcfile_path=$lt_fix_srcfile_path
19891
19892# Set to yes if exported symbols are required.
19893always_export_symbols=$always_export_symbols_RC
19894
19895# The commands to list exported symbols.
19896export_symbols_cmds=$lt_export_symbols_cmds_RC
19897
19898# The commands to extract the exported symbol list from a shared archive.
19899extract_expsyms_cmds=$lt_extract_expsyms_cmds
19900
19901# Symbols that should not be listed in the preloaded symbols.
19902exclude_expsyms=$lt_exclude_expsyms_RC
19903
19904# Symbols that must always be exported.
19905include_expsyms=$lt_include_expsyms_RC
19906
19907# ### END LIBTOOL TAG CONFIG: $tagname
19908
19909__EOF__
19910
19911
19912else
19913  # If there is no Makefile yet, we rely on a make rule to execute
19914  # `config.status --recheck' to rerun these tests and create the
19915  # libtool script then.
19916  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19917  if test -f "$ltmain_in"; then
19918    test -f Makefile && make "$ltmain"
19919  fi
19920fi
19921
19922
19923ac_ext=c
19924ac_cpp='$CPP $CPPFLAGS'
19925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19927ac_compiler_gnu=$ac_cv_c_compiler_gnu
19928
19929CC="$lt_save_CC"
19930
19931	;;
19932
19933      *)
19934	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19935echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19936   { (exit 1); exit 1; }; }
19937	;;
19938      esac
19939
19940      # Append the new tag name to the list of available tags.
19941      if test -n "$tagname" ; then
19942      available_tags="$available_tags $tagname"
19943    fi
19944    fi
19945  done
19946  IFS="$lt_save_ifs"
19947
19948  # Now substitute the updated list of available tags.
19949  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19950    mv "${ofile}T" "$ofile"
19951    chmod +x "$ofile"
19952  else
19953    rm -f "${ofile}T"
19954    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19955echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19956   { (exit 1); exit 1; }; }
19957  fi
19958fi
19959
19960
19961
19962# This can be used to rebuild libtool when needed
19963LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19964
19965# Always use our own libtool.
19966LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19967
19968# Prevent multiple expansion
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990ac_config_files="$ac_config_files Makefile src/Makefile"
19991
19992cat >confcache <<\_ACEOF
19993# This file is a shell script that caches the results of configure
19994# tests run on this system so they can be shared between configure
19995# scripts and configure runs, see configure's option --config-cache.
19996# It is not useful on other systems.  If it contains results you don't
19997# want to keep, you may remove or edit it.
19998#
19999# config.status only pays attention to the cache file if you give it
20000# the --recheck option to rerun configure.
20001#
20002# `ac_cv_env_foo' variables (set or unset) will be overridden when
20003# loading this file, other *unset* `ac_cv_foo' will be assigned the
20004# following values.
20005
20006_ACEOF
20007
20008# The following way of writing the cache mishandles newlines in values,
20009# but we know of no workaround that is simple, portable, and efficient.
20010# So, we kill variables containing newlines.
20011# Ultrix sh set writes to stderr and can't be redirected directly,
20012# and sets the high bit in the cache file unless we assign to the vars.
20013(
20014  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20015    eval ac_val=\$$ac_var
20016    case $ac_val in #(
20017    *${as_nl}*)
20018      case $ac_var in #(
20019      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20020echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20021      esac
20022      case $ac_var in #(
20023      _ | IFS | as_nl) ;; #(
20024      *) $as_unset $ac_var ;;
20025      esac ;;
20026    esac
20027  done
20028
20029  (set) 2>&1 |
20030    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20031    *${as_nl}ac_space=\ *)
20032      # `set' does not quote correctly, so add quotes (double-quote
20033      # substitution turns \\\\ into \\, and sed turns \\ into \).
20034      sed -n \
20035	"s/'/'\\\\''/g;
20036	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20037      ;; #(
20038    *)
20039      # `set' quotes correctly as required by POSIX, so do not add quotes.
20040      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20041      ;;
20042    esac |
20043    sort
20044) |
20045  sed '
20046     /^ac_cv_env_/b end
20047     t clear
20048     :clear
20049     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20050     t end
20051     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20052     :end' >>confcache
20053if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20054  if test -w "$cache_file"; then
20055    test "x$cache_file" != "x/dev/null" &&
20056      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20057echo "$as_me: updating cache $cache_file" >&6;}
20058    cat confcache >$cache_file
20059  else
20060    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20061echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20062  fi
20063fi
20064rm -f confcache
20065
20066test "x$prefix" = xNONE && prefix=$ac_default_prefix
20067# Let make expand exec_prefix.
20068test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20069
20070# Transform confdefs.h into DEFS.
20071# Protect against shell expansion while executing Makefile rules.
20072# Protect against Makefile macro expansion.
20073#
20074# If the first sed substitution is executed (which looks for macros that
20075# take arguments), then branch to the quote section.  Otherwise,
20076# look for a macro that doesn't take arguments.
20077ac_script='
20078t clear
20079:clear
20080s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
20081t quote
20082s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
20083t quote
20084b any
20085:quote
20086s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20087s/\[/\\&/g
20088s/\]/\\&/g
20089s/\$/$$/g
20090H
20091:any
20092${
20093	g
20094	s/^\n//
20095	s/\n/ /g
20096	p
20097}
20098'
20099DEFS=`sed -n "$ac_script" confdefs.h`
20100
20101
20102ac_libobjs=
20103ac_ltlibobjs=
20104for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20105  # 1. Remove the extension, and $U if already installed.
20106  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20107  ac_i=`echo "$ac_i" | sed "$ac_script"`
20108  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20109  #    will be set to the directory where LIBOBJS objects are built.
20110  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20111  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20112done
20113LIBOBJS=$ac_libobjs
20114
20115LTLIBOBJS=$ac_ltlibobjs
20116
20117
20118if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20119  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20120Usually this means the macro was only invoked conditionally." >&5
20121echo "$as_me: error: conditional \"AMDEP\" was never defined.
20122Usually this means the macro was only invoked conditionally." >&2;}
20123   { (exit 1); exit 1; }; }
20124fi
20125if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20126  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20127Usually this means the macro was only invoked conditionally." >&5
20128echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20129Usually this means the macro was only invoked conditionally." >&2;}
20130   { (exit 1); exit 1; }; }
20131fi
20132if test -z "${USE_PLUGIN_TRUE}" && test -z "${USE_PLUGIN_FALSE}"; then
20133  { { echo "$as_me:$LINENO: error: conditional \"USE_PLUGIN\" was never defined.
20134Usually this means the macro was only invoked conditionally." >&5
20135echo "$as_me: error: conditional \"USE_PLUGIN\" was never defined.
20136Usually this means the macro was only invoked conditionally." >&2;}
20137   { (exit 1); exit 1; }; }
20138fi
20139if test -z "${WIN32_BUILD_TRUE}" && test -z "${WIN32_BUILD_FALSE}"; then
20140  { { echo "$as_me:$LINENO: error: conditional \"WIN32_BUILD\" was never defined.
20141Usually this means the macro was only invoked conditionally." >&5
20142echo "$as_me: error: conditional \"WIN32_BUILD\" was never defined.
20143Usually this means the macro was only invoked conditionally." >&2;}
20144   { (exit 1); exit 1; }; }
20145fi
20146if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20147  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20148Usually this means the macro was only invoked conditionally." >&5
20149echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20150Usually this means the macro was only invoked conditionally." >&2;}
20151   { (exit 1); exit 1; }; }
20152fi
20153
20154: ${CONFIG_STATUS=./config.status}
20155ac_clean_files_save=$ac_clean_files
20156ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20157{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20158echo "$as_me: creating $CONFIG_STATUS" >&6;}
20159cat >$CONFIG_STATUS <<_ACEOF
20160#! $SHELL
20161# Generated by $as_me.
20162# Run this file to recreate the current configuration.
20163# Compiler output produced by configure, useful for debugging
20164# configure, is in config.log if it exists.
20165
20166debug=false
20167ac_cs_recheck=false
20168ac_cs_silent=false
20169SHELL=\${CONFIG_SHELL-$SHELL}
20170_ACEOF
20171
20172cat >>$CONFIG_STATUS <<\_ACEOF
20173## --------------------- ##
20174## M4sh Initialization.  ##
20175## --------------------- ##
20176
20177# Be more Bourne compatible
20178DUALCASE=1; export DUALCASE # for MKS sh
20179if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20180  emulate sh
20181  NULLCMD=:
20182  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20183  # is contrary to our usage.  Disable this feature.
20184  alias -g '${1+"$@"}'='"$@"'
20185  setopt NO_GLOB_SUBST
20186else
20187  case `(set -o) 2>/dev/null` in
20188  *posix*) set -o posix ;;
20189esac
20190
20191fi
20192
20193
20194
20195
20196# PATH needs CR
20197# Avoid depending upon Character Ranges.
20198as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20199as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20200as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20201as_cr_digits='0123456789'
20202as_cr_alnum=$as_cr_Letters$as_cr_digits
20203
20204# The user is always right.
20205if test "${PATH_SEPARATOR+set}" != set; then
20206  echo "#! /bin/sh" >conf$$.sh
20207  echo  "exit 0"   >>conf$$.sh
20208  chmod +x conf$$.sh
20209  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20210    PATH_SEPARATOR=';'
20211  else
20212    PATH_SEPARATOR=:
20213  fi
20214  rm -f conf$$.sh
20215fi
20216
20217# Support unset when possible.
20218if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20219  as_unset=unset
20220else
20221  as_unset=false
20222fi
20223
20224
20225# IFS
20226# We need space, tab and new line, in precisely that order.  Quoting is
20227# there to prevent editors from complaining about space-tab.
20228# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20229# splitting by setting IFS to empty value.)
20230as_nl='
20231'
20232IFS=" ""	$as_nl"
20233
20234# Find who we are.  Look in the path if we contain no directory separator.
20235case $0 in
20236  *[\\/]* ) as_myself=$0 ;;
20237  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20238for as_dir in $PATH
20239do
20240  IFS=$as_save_IFS
20241  test -z "$as_dir" && as_dir=.
20242  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20243done
20244IFS=$as_save_IFS
20245
20246     ;;
20247esac
20248# We did not find ourselves, most probably we were run as `sh COMMAND'
20249# in which case we are not to be found in the path.
20250if test "x$as_myself" = x; then
20251  as_myself=$0
20252fi
20253if test ! -f "$as_myself"; then
20254  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20255  { (exit 1); exit 1; }
20256fi
20257
20258# Work around bugs in pre-3.0 UWIN ksh.
20259for as_var in ENV MAIL MAILPATH
20260do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20261done
20262PS1='$ '
20263PS2='> '
20264PS4='+ '
20265
20266# NLS nuisances.
20267for as_var in \
20268  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20269  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20270  LC_TELEPHONE LC_TIME
20271do
20272  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20273    eval $as_var=C; export $as_var
20274  else
20275    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20276  fi
20277done
20278
20279# Required to use basename.
20280if expr a : '\(a\)' >/dev/null 2>&1 &&
20281   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20282  as_expr=expr
20283else
20284  as_expr=false
20285fi
20286
20287if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20288  as_basename=basename
20289else
20290  as_basename=false
20291fi
20292
20293
20294# Name of the executable.
20295as_me=`$as_basename -- "$0" ||
20296$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20297	 X"$0" : 'X\(//\)$' \| \
20298	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20299echo X/"$0" |
20300    sed '/^.*\/\([^/][^/]*\)\/*$/{
20301	    s//\1/
20302	    q
20303	  }
20304	  /^X\/\(\/\/\)$/{
20305	    s//\1/
20306	    q
20307	  }
20308	  /^X\/\(\/\).*/{
20309	    s//\1/
20310	    q
20311	  }
20312	  s/.*/./; q'`
20313
20314# CDPATH.
20315$as_unset CDPATH
20316
20317
20318
20319  as_lineno_1=$LINENO
20320  as_lineno_2=$LINENO
20321  test "x$as_lineno_1" != "x$as_lineno_2" &&
20322  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20323
20324  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20325  # uniformly replaced by the line number.  The first 'sed' inserts a
20326  # line-number line after each line using $LINENO; the second 'sed'
20327  # does the real work.  The second script uses 'N' to pair each
20328  # line-number line with the line containing $LINENO, and appends
20329  # trailing '-' during substitution so that $LINENO is not a special
20330  # case at line end.
20331  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20332  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20333  # E. McMahon (1931-1989) for sed's syntax.  :-)
20334  sed -n '
20335    p
20336    /[$]LINENO/=
20337  ' <$as_myself |
20338    sed '
20339      s/[$]LINENO.*/&-/
20340      t lineno
20341      b
20342      :lineno
20343      N
20344      :loop
20345      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20346      t loop
20347      s/-\n.*//
20348    ' >$as_me.lineno &&
20349  chmod +x "$as_me.lineno" ||
20350    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20351   { (exit 1); exit 1; }; }
20352
20353  # Don't try to exec as it changes $[0], causing all sort of problems
20354  # (the dirname of $[0] is not the place where we might find the
20355  # original and so on.  Autoconf is especially sensitive to this).
20356  . "./$as_me.lineno"
20357  # Exit status is that of the last command.
20358  exit
20359}
20360
20361
20362if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20363  as_dirname=dirname
20364else
20365  as_dirname=false
20366fi
20367
20368ECHO_C= ECHO_N= ECHO_T=
20369case `echo -n x` in
20370-n*)
20371  case `echo 'x\c'` in
20372  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20373  *)   ECHO_C='\c';;
20374  esac;;
20375*)
20376  ECHO_N='-n';;
20377esac
20378
20379if expr a : '\(a\)' >/dev/null 2>&1 &&
20380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20381  as_expr=expr
20382else
20383  as_expr=false
20384fi
20385
20386rm -f conf$$ conf$$.exe conf$$.file
20387if test -d conf$$.dir; then
20388  rm -f conf$$.dir/conf$$.file
20389else
20390  rm -f conf$$.dir
20391  mkdir conf$$.dir
20392fi
20393echo >conf$$.file
20394if ln -s conf$$.file conf$$ 2>/dev/null; then
20395  as_ln_s='ln -s'
20396  # ... but there are two gotchas:
20397  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20398  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20399  # In both cases, we have to default to `cp -p'.
20400  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20401    as_ln_s='cp -p'
20402elif ln conf$$.file conf$$ 2>/dev/null; then
20403  as_ln_s=ln
20404else
20405  as_ln_s='cp -p'
20406fi
20407rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20408rmdir conf$$.dir 2>/dev/null
20409
20410if mkdir -p . 2>/dev/null; then
20411  as_mkdir_p=:
20412else
20413  test -d ./-p && rmdir ./-p
20414  as_mkdir_p=false
20415fi
20416
20417if test -x / >/dev/null 2>&1; then
20418  as_test_x='test -x'
20419else
20420  if ls -dL / >/dev/null 2>&1; then
20421    as_ls_L_option=L
20422  else
20423    as_ls_L_option=
20424  fi
20425  as_test_x='
20426    eval sh -c '\''
20427      if test -d "$1"; then
20428        test -d "$1/.";
20429      else
20430	case $1 in
20431        -*)set "./$1";;
20432	esac;
20433	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20434	???[sx]*):;;*)false;;esac;fi
20435    '\'' sh
20436  '
20437fi
20438as_executable_p=$as_test_x
20439
20440# Sed expression to map a string onto a valid CPP name.
20441as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20442
20443# Sed expression to map a string onto a valid variable name.
20444as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20445
20446
20447exec 6>&1
20448
20449# Save the log message, to keep $[0] and so on meaningful, and to
20450# report actual input values of CONFIG_FILES etc. instead of their
20451# values after options handling.
20452ac_log="
20453This file was extended by panoglview $as_me 0.2.2, which was
20454generated by GNU Autoconf 2.61.  Invocation command line was
20455
20456  CONFIG_FILES    = $CONFIG_FILES
20457  CONFIG_HEADERS  = $CONFIG_HEADERS
20458  CONFIG_LINKS    = $CONFIG_LINKS
20459  CONFIG_COMMANDS = $CONFIG_COMMANDS
20460  $ $0 $@
20461
20462on `(hostname || uname -n) 2>/dev/null | sed 1q`
20463"
20464
20465_ACEOF
20466
20467cat >>$CONFIG_STATUS <<_ACEOF
20468# Files that config.status was made for.
20469config_files="$ac_config_files"
20470config_commands="$ac_config_commands"
20471
20472_ACEOF
20473
20474cat >>$CONFIG_STATUS <<\_ACEOF
20475ac_cs_usage="\
20476\`$as_me' instantiates files from templates according to the
20477current configuration.
20478
20479Usage: $0 [OPTIONS] [FILE]...
20480
20481  -h, --help       print this help, then exit
20482  -V, --version    print version number and configuration settings, then exit
20483  -q, --quiet      do not print progress messages
20484  -d, --debug      don't remove temporary files
20485      --recheck    update $as_me by reconfiguring in the same conditions
20486  --file=FILE[:TEMPLATE]
20487		   instantiate the configuration file FILE
20488
20489Configuration files:
20490$config_files
20491
20492Configuration commands:
20493$config_commands
20494
20495Report bugs to <bug-autoconf@gnu.org>."
20496
20497_ACEOF
20498cat >>$CONFIG_STATUS <<_ACEOF
20499ac_cs_version="\\
20500panoglview config.status 0.2.2
20501configured by $0, generated by GNU Autoconf 2.61,
20502  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20503
20504Copyright (C) 2006 Free Software Foundation, Inc.
20505This config.status script is free software; the Free Software Foundation
20506gives unlimited permission to copy, distribute and modify it."
20507
20508ac_pwd='$ac_pwd'
20509srcdir='$srcdir'
20510INSTALL='$INSTALL'
20511MKDIR_P='$MKDIR_P'
20512_ACEOF
20513
20514cat >>$CONFIG_STATUS <<\_ACEOF
20515# If no file are specified by the user, then we need to provide default
20516# value.  By we need to know if files were specified by the user.
20517ac_need_defaults=:
20518while test $# != 0
20519do
20520  case $1 in
20521  --*=*)
20522    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20523    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20524    ac_shift=:
20525    ;;
20526  *)
20527    ac_option=$1
20528    ac_optarg=$2
20529    ac_shift=shift
20530    ;;
20531  esac
20532
20533  case $ac_option in
20534  # Handling of the options.
20535  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20536    ac_cs_recheck=: ;;
20537  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20538    echo "$ac_cs_version"; exit ;;
20539  --debug | --debu | --deb | --de | --d | -d )
20540    debug=: ;;
20541  --file | --fil | --fi | --f )
20542    $ac_shift
20543    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20544    ac_need_defaults=false;;
20545  --he | --h |  --help | --hel | -h )
20546    echo "$ac_cs_usage"; exit ;;
20547  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20548  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20549    ac_cs_silent=: ;;
20550
20551  # This is an error.
20552  -*) { echo "$as_me: error: unrecognized option: $1
20553Try \`$0 --help' for more information." >&2
20554   { (exit 1); exit 1; }; } ;;
20555
20556  *) ac_config_targets="$ac_config_targets $1"
20557     ac_need_defaults=false ;;
20558
20559  esac
20560  shift
20561done
20562
20563ac_configure_extra_args=
20564
20565if $ac_cs_silent; then
20566  exec 6>/dev/null
20567  ac_configure_extra_args="$ac_configure_extra_args --silent"
20568fi
20569
20570_ACEOF
20571cat >>$CONFIG_STATUS <<_ACEOF
20572if \$ac_cs_recheck; then
20573  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20574  CONFIG_SHELL=$SHELL
20575  export CONFIG_SHELL
20576  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20577fi
20578
20579_ACEOF
20580cat >>$CONFIG_STATUS <<\_ACEOF
20581exec 5>>config.log
20582{
20583  echo
20584  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20585## Running $as_me. ##
20586_ASBOX
20587  echo "$ac_log"
20588} >&5
20589
20590_ACEOF
20591cat >>$CONFIG_STATUS <<_ACEOF
20592#
20593# INIT-COMMANDS
20594#
20595AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20596
20597_ACEOF
20598
20599cat >>$CONFIG_STATUS <<\_ACEOF
20600
20601# Handling of arguments.
20602for ac_config_target in $ac_config_targets
20603do
20604  case $ac_config_target in
20605    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20606    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20607    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20608
20609  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20610echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20611   { (exit 1); exit 1; }; };;
20612  esac
20613done
20614
20615
20616# If the user did not use the arguments to specify the items to instantiate,
20617# then the envvar interface is used.  Set only those that are not.
20618# We use the long form for the default assignment because of an extremely
20619# bizarre bug on SunOS 4.1.3.
20620if $ac_need_defaults; then
20621  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20622  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20623fi
20624
20625# Have a temporary directory for convenience.  Make it in the build tree
20626# simply because there is no reason against having it here, and in addition,
20627# creating and moving files from /tmp can sometimes cause problems.
20628# Hook for its removal unless debugging.
20629# Note that there is a small window in which the directory will not be cleaned:
20630# after its creation but before its name has been assigned to `$tmp'.
20631$debug ||
20632{
20633  tmp=
20634  trap 'exit_status=$?
20635  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20636' 0
20637  trap '{ (exit 1); exit 1; }' 1 2 13 15
20638}
20639# Create a (secure) tmp directory for tmp files.
20640
20641{
20642  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20643  test -n "$tmp" && test -d "$tmp"
20644}  ||
20645{
20646  tmp=./conf$$-$RANDOM
20647  (umask 077 && mkdir "$tmp")
20648} ||
20649{
20650   echo "$me: cannot create a temporary directory in ." >&2
20651   { (exit 1); exit 1; }
20652}
20653
20654#
20655# Set up the sed scripts for CONFIG_FILES section.
20656#
20657
20658# No need to generate the scripts if there are no CONFIG_FILES.
20659# This happens for instance when ./config.status config.h
20660if test -n "$CONFIG_FILES"; then
20661
20662_ACEOF
20663
20664
20665
20666ac_delim='%!_!# '
20667for ac_last_try in false false false false false :; do
20668  cat >conf$$subs.sed <<_ACEOF
20669SHELL!$SHELL$ac_delim
20670PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20671PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20672PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20673PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20674PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20675PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20676exec_prefix!$exec_prefix$ac_delim
20677prefix!$prefix$ac_delim
20678program_transform_name!$program_transform_name$ac_delim
20679bindir!$bindir$ac_delim
20680sbindir!$sbindir$ac_delim
20681libexecdir!$libexecdir$ac_delim
20682datarootdir!$datarootdir$ac_delim
20683datadir!$datadir$ac_delim
20684sysconfdir!$sysconfdir$ac_delim
20685sharedstatedir!$sharedstatedir$ac_delim
20686localstatedir!$localstatedir$ac_delim
20687includedir!$includedir$ac_delim
20688oldincludedir!$oldincludedir$ac_delim
20689docdir!$docdir$ac_delim
20690infodir!$infodir$ac_delim
20691htmldir!$htmldir$ac_delim
20692dvidir!$dvidir$ac_delim
20693pdfdir!$pdfdir$ac_delim
20694psdir!$psdir$ac_delim
20695libdir!$libdir$ac_delim
20696localedir!$localedir$ac_delim
20697mandir!$mandir$ac_delim
20698DEFS!$DEFS$ac_delim
20699ECHO_C!$ECHO_C$ac_delim
20700ECHO_N!$ECHO_N$ac_delim
20701ECHO_T!$ECHO_T$ac_delim
20702LIBS!$LIBS$ac_delim
20703build_alias!$build_alias$ac_delim
20704host_alias!$host_alias$ac_delim
20705target_alias!$target_alias$ac_delim
20706build!$build$ac_delim
20707build_cpu!$build_cpu$ac_delim
20708build_vendor!$build_vendor$ac_delim
20709build_os!$build_os$ac_delim
20710host!$host$ac_delim
20711host_cpu!$host_cpu$ac_delim
20712host_vendor!$host_vendor$ac_delim
20713host_os!$host_os$ac_delim
20714target!$target$ac_delim
20715target_cpu!$target_cpu$ac_delim
20716target_vendor!$target_vendor$ac_delim
20717target_os!$target_os$ac_delim
20718INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20719INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20720INSTALL_DATA!$INSTALL_DATA$ac_delim
20721am__isrc!$am__isrc$ac_delim
20722CYGPATH_W!$CYGPATH_W$ac_delim
20723PACKAGE!$PACKAGE$ac_delim
20724VERSION!$VERSION$ac_delim
20725ACLOCAL!$ACLOCAL$ac_delim
20726AUTOCONF!$AUTOCONF$ac_delim
20727AUTOMAKE!$AUTOMAKE$ac_delim
20728AUTOHEADER!$AUTOHEADER$ac_delim
20729MAKEINFO!$MAKEINFO$ac_delim
20730install_sh!$install_sh$ac_delim
20731STRIP!$STRIP$ac_delim
20732INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20733mkdir_p!$mkdir_p$ac_delim
20734AWK!$AWK$ac_delim
20735SET_MAKE!$SET_MAKE$ac_delim
20736am__leading_dot!$am__leading_dot$ac_delim
20737AMTAR!$AMTAR$ac_delim
20738am__tar!$am__tar$ac_delim
20739am__untar!$am__untar$ac_delim
20740CXX!$CXX$ac_delim
20741CXXFLAGS!$CXXFLAGS$ac_delim
20742LDFLAGS!$LDFLAGS$ac_delim
20743CPPFLAGS!$CPPFLAGS$ac_delim
20744ac_ct_CXX!$ac_ct_CXX$ac_delim
20745EXEEXT!$EXEEXT$ac_delim
20746OBJEXT!$OBJEXT$ac_delim
20747DEPDIR!$DEPDIR$ac_delim
20748am__include!$am__include$ac_delim
20749am__quote!$am__quote$ac_delim
20750AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20751AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20752AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20753CXXDEPMODE!$CXXDEPMODE$ac_delim
20754am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20755am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20756USE_PLUGIN_TRUE!$USE_PLUGIN_TRUE$ac_delim
20757USE_PLUGIN_FALSE!$USE_PLUGIN_FALSE$ac_delim
20758HAVE_TUVISTA!$HAVE_TUVISTA$ac_delim
20759WX_CONFIG_PATH!$WX_CONFIG_PATH$ac_delim
20760WX_CPPFLAGS!$WX_CPPFLAGS$ac_delim
20761WX_CFLAGS!$WX_CFLAGS$ac_delim
20762WX_CXXFLAGS!$WX_CXXFLAGS$ac_delim
20763WX_CFLAGS_ONLY!$WX_CFLAGS_ONLY$ac_delim
20764WX_CXXFLAGS_ONLY!$WX_CXXFLAGS_ONLY$ac_delim
20765WX_LIBS!$WX_LIBS$ac_delim
20766_ACEOF
20767
20768  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20769    break
20770  elif $ac_last_try; then
20771    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20772echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20773   { (exit 1); exit 1; }; }
20774  else
20775    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20776  fi
20777done
20778
20779ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20780if test -n "$ac_eof"; then
20781  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20782  ac_eof=`expr $ac_eof + 1`
20783fi
20784
20785cat >>$CONFIG_STATUS <<_ACEOF
20786cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20787/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20788_ACEOF
20789sed '
20790s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20791s/^/s,@/; s/!/@,|#_!!_#|/
20792:n
20793t n
20794s/'"$ac_delim"'$/,g/; t
20795s/$/\\/; p
20796N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20797' >>$CONFIG_STATUS <conf$$subs.sed
20798rm -f conf$$subs.sed
20799cat >>$CONFIG_STATUS <<_ACEOF
20800CEOF$ac_eof
20801_ACEOF
20802
20803
20804ac_delim='%!_!# '
20805for ac_last_try in false false false false false :; do
20806  cat >conf$$subs.sed <<_ACEOF
20807WX_LIBS_STATIC!$WX_LIBS_STATIC$ac_delim
20808WX_VERSION!$WX_VERSION$ac_delim
20809WX_RESCOMP!$WX_RESCOMP$ac_delim
20810WX_GL_LIBS!$WX_GL_LIBS$ac_delim
20811WIN32_BUILD_TRUE!$WIN32_BUILD_TRUE$ac_delim
20812WIN32_BUILD_FALSE!$WIN32_BUILD_FALSE$ac_delim
20813PLUGIN_LDFLAGS!$PLUGIN_LDFLAGS$ac_delim
20814PLUGIN_CXXFLAGS!$PLUGIN_CXXFLAGS$ac_delim
20815PLUGIN_DIR!$PLUGIN_DIR$ac_delim
20816CC!$CC$ac_delim
20817CFLAGS!$CFLAGS$ac_delim
20818ac_ct_CC!$ac_ct_CC$ac_delim
20819CCDEPMODE!$CCDEPMODE$ac_delim
20820am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20821am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20822SED!$SED$ac_delim
20823GREP!$GREP$ac_delim
20824EGREP!$EGREP$ac_delim
20825LN_S!$LN_S$ac_delim
20826ECHO!$ECHO$ac_delim
20827AR!$AR$ac_delim
20828RANLIB!$RANLIB$ac_delim
20829CPP!$CPP$ac_delim
20830CXXCPP!$CXXCPP$ac_delim
20831F77!$F77$ac_delim
20832FFLAGS!$FFLAGS$ac_delim
20833ac_ct_F77!$ac_ct_F77$ac_delim
20834LIBTOOL!$LIBTOOL$ac_delim
20835LIBOBJS!$LIBOBJS$ac_delim
20836LTLIBOBJS!$LTLIBOBJS$ac_delim
20837_ACEOF
20838
20839  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
20840    break
20841  elif $ac_last_try; then
20842    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20843echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20844   { (exit 1); exit 1; }; }
20845  else
20846    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20847  fi
20848done
20849
20850ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20851if test -n "$ac_eof"; then
20852  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20853  ac_eof=`expr $ac_eof + 1`
20854fi
20855
20856cat >>$CONFIG_STATUS <<_ACEOF
20857cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20858/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20859_ACEOF
20860sed '
20861s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20862s/^/s,@/; s/!/@,|#_!!_#|/
20863:n
20864t n
20865s/'"$ac_delim"'$/,g/; t
20866s/$/\\/; p
20867N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20868' >>$CONFIG_STATUS <conf$$subs.sed
20869rm -f conf$$subs.sed
20870cat >>$CONFIG_STATUS <<_ACEOF
20871:end
20872s/|#_!!_#|//g
20873CEOF$ac_eof
20874_ACEOF
20875
20876
20877# VPATH may cause trouble with some makes, so we remove $(srcdir),
20878# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20879# trailing colons and then remove the whole line if VPATH becomes empty
20880# (actually we leave an empty line to preserve line numbers).
20881if test "x$srcdir" = x.; then
20882  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20883s/:*\$(srcdir):*/:/
20884s/:*\${srcdir}:*/:/
20885s/:*@srcdir@:*/:/
20886s/^\([^=]*=[	 ]*\):*/\1/
20887s/:*$//
20888s/^[^=]*=[	 ]*$//
20889}'
20890fi
20891
20892cat >>$CONFIG_STATUS <<\_ACEOF
20893fi # test -n "$CONFIG_FILES"
20894
20895
20896for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
20897do
20898  case $ac_tag in
20899  :[FHLC]) ac_mode=$ac_tag; continue;;
20900  esac
20901  case $ac_mode$ac_tag in
20902  :[FHL]*:*);;
20903  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20904echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20905   { (exit 1); exit 1; }; };;
20906  :[FH]-) ac_tag=-:-;;
20907  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20908  esac
20909  ac_save_IFS=$IFS
20910  IFS=:
20911  set x $ac_tag
20912  IFS=$ac_save_IFS
20913  shift
20914  ac_file=$1
20915  shift
20916
20917  case $ac_mode in
20918  :L) ac_source=$1;;
20919  :[FH])
20920    ac_file_inputs=
20921    for ac_f
20922    do
20923      case $ac_f in
20924      -) ac_f="$tmp/stdin";;
20925      *) # Look for the file first in the build tree, then in the source tree
20926	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20927	 # because $ac_f cannot contain `:'.
20928	 test -f "$ac_f" ||
20929	   case $ac_f in
20930	   [\\/$]*) false;;
20931	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20932	   esac ||
20933	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20934echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20935   { (exit 1); exit 1; }; };;
20936      esac
20937      ac_file_inputs="$ac_file_inputs $ac_f"
20938    done
20939
20940    # Let's still pretend it is `configure' which instantiates (i.e., don't
20941    # use $as_me), people would be surprised to read:
20942    #    /* config.h.  Generated by config.status.  */
20943    configure_input="Generated from "`IFS=:
20944	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20945    if test x"$ac_file" != x-; then
20946      configure_input="$ac_file.  $configure_input"
20947      { echo "$as_me:$LINENO: creating $ac_file" >&5
20948echo "$as_me: creating $ac_file" >&6;}
20949    fi
20950
20951    case $ac_tag in
20952    *:-:* | *:-) cat >"$tmp/stdin";;
20953    esac
20954    ;;
20955  esac
20956
20957  ac_dir=`$as_dirname -- "$ac_file" ||
20958$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20959	 X"$ac_file" : 'X\(//\)[^/]' \| \
20960	 X"$ac_file" : 'X\(//\)$' \| \
20961	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20962echo X"$ac_file" |
20963    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20964	    s//\1/
20965	    q
20966	  }
20967	  /^X\(\/\/\)[^/].*/{
20968	    s//\1/
20969	    q
20970	  }
20971	  /^X\(\/\/\)$/{
20972	    s//\1/
20973	    q
20974	  }
20975	  /^X\(\/\).*/{
20976	    s//\1/
20977	    q
20978	  }
20979	  s/.*/./; q'`
20980  { as_dir="$ac_dir"
20981  case $as_dir in #(
20982  -*) as_dir=./$as_dir;;
20983  esac
20984  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20985    as_dirs=
20986    while :; do
20987      case $as_dir in #(
20988      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20989      *) as_qdir=$as_dir;;
20990      esac
20991      as_dirs="'$as_qdir' $as_dirs"
20992      as_dir=`$as_dirname -- "$as_dir" ||
20993$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20994	 X"$as_dir" : 'X\(//\)[^/]' \| \
20995	 X"$as_dir" : 'X\(//\)$' \| \
20996	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20997echo X"$as_dir" |
20998    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20999	    s//\1/
21000	    q
21001	  }
21002	  /^X\(\/\/\)[^/].*/{
21003	    s//\1/
21004	    q
21005	  }
21006	  /^X\(\/\/\)$/{
21007	    s//\1/
21008	    q
21009	  }
21010	  /^X\(\/\).*/{
21011	    s//\1/
21012	    q
21013	  }
21014	  s/.*/./; q'`
21015      test -d "$as_dir" && break
21016    done
21017    test -z "$as_dirs" || eval "mkdir $as_dirs"
21018  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21019echo "$as_me: error: cannot create directory $as_dir" >&2;}
21020   { (exit 1); exit 1; }; }; }
21021  ac_builddir=.
21022
21023case "$ac_dir" in
21024.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21025*)
21026  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21027  # A ".." for each directory in $ac_dir_suffix.
21028  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21029  case $ac_top_builddir_sub in
21030  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21031  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21032  esac ;;
21033esac
21034ac_abs_top_builddir=$ac_pwd
21035ac_abs_builddir=$ac_pwd$ac_dir_suffix
21036# for backward compatibility:
21037ac_top_builddir=$ac_top_build_prefix
21038
21039case $srcdir in
21040  .)  # We are building in place.
21041    ac_srcdir=.
21042    ac_top_srcdir=$ac_top_builddir_sub
21043    ac_abs_top_srcdir=$ac_pwd ;;
21044  [\\/]* | ?:[\\/]* )  # Absolute name.
21045    ac_srcdir=$srcdir$ac_dir_suffix;
21046    ac_top_srcdir=$srcdir
21047    ac_abs_top_srcdir=$srcdir ;;
21048  *) # Relative name.
21049    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21050    ac_top_srcdir=$ac_top_build_prefix$srcdir
21051    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21052esac
21053ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21054
21055
21056  case $ac_mode in
21057  :F)
21058  #
21059  # CONFIG_FILE
21060  #
21061
21062  case $INSTALL in
21063  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21064  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21065  esac
21066  ac_MKDIR_P=$MKDIR_P
21067  case $MKDIR_P in
21068  [\\/$]* | ?:[\\/]* ) ;;
21069  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21070  esac
21071_ACEOF
21072
21073cat >>$CONFIG_STATUS <<\_ACEOF
21074# If the template does not know about datarootdir, expand it.
21075# FIXME: This hack should be removed a few years after 2.60.
21076ac_datarootdir_hack=; ac_datarootdir_seen=
21077
21078case `sed -n '/datarootdir/ {
21079  p
21080  q
21081}
21082/@datadir@/p
21083/@docdir@/p
21084/@infodir@/p
21085/@localedir@/p
21086/@mandir@/p
21087' $ac_file_inputs` in
21088*datarootdir*) ac_datarootdir_seen=yes;;
21089*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21090  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21091echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21092_ACEOF
21093cat >>$CONFIG_STATUS <<_ACEOF
21094  ac_datarootdir_hack='
21095  s&@datadir@&$datadir&g
21096  s&@docdir@&$docdir&g
21097  s&@infodir@&$infodir&g
21098  s&@localedir@&$localedir&g
21099  s&@mandir@&$mandir&g
21100    s&\\\${datarootdir}&$datarootdir&g' ;;
21101esac
21102_ACEOF
21103
21104# Neutralize VPATH when `$srcdir' = `.'.
21105# Shell code in configure.ac might set extrasub.
21106# FIXME: do we really want to maintain this feature?
21107cat >>$CONFIG_STATUS <<_ACEOF
21108  sed "$ac_vpsub
21109$extrasub
21110_ACEOF
21111cat >>$CONFIG_STATUS <<\_ACEOF
21112:t
21113/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21114s&@configure_input@&$configure_input&;t t
21115s&@top_builddir@&$ac_top_builddir_sub&;t t
21116s&@srcdir@&$ac_srcdir&;t t
21117s&@abs_srcdir@&$ac_abs_srcdir&;t t
21118s&@top_srcdir@&$ac_top_srcdir&;t t
21119s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21120s&@builddir@&$ac_builddir&;t t
21121s&@abs_builddir@&$ac_abs_builddir&;t t
21122s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21123s&@INSTALL@&$ac_INSTALL&;t t
21124s&@MKDIR_P@&$ac_MKDIR_P&;t t
21125$ac_datarootdir_hack
21126" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21127
21128test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21129  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21130  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21131  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21132which seems to be undefined.  Please make sure it is defined." >&5
21133echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21134which seems to be undefined.  Please make sure it is defined." >&2;}
21135
21136  rm -f "$tmp/stdin"
21137  case $ac_file in
21138  -) cat "$tmp/out"; rm -f "$tmp/out";;
21139  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21140  esac
21141 ;;
21142
21143
21144  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21145echo "$as_me: executing $ac_file commands" >&6;}
21146 ;;
21147  esac
21148
21149
21150  case $ac_file$ac_mode in
21151    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21152  # Strip MF so we end up with the name of the file.
21153  mf=`echo "$mf" | sed -e 's/:.*$//'`
21154  # Check whether this is an Automake generated Makefile or not.
21155  # We used to match only the files named `Makefile.in', but
21156  # some people rename them; so instead we look at the file content.
21157  # Grep'ing the first line is not enough: some people post-process
21158  # each Makefile.in and add a new line on top of each file to say so.
21159  # Grep'ing the whole file is not good either: AIX grep has a line
21160  # limit of 2048, but all sed's we know have understand at least 4000.
21161  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21162    dirpart=`$as_dirname -- "$mf" ||
21163$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21164	 X"$mf" : 'X\(//\)[^/]' \| \
21165	 X"$mf" : 'X\(//\)$' \| \
21166	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21167echo X"$mf" |
21168    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21169	    s//\1/
21170	    q
21171	  }
21172	  /^X\(\/\/\)[^/].*/{
21173	    s//\1/
21174	    q
21175	  }
21176	  /^X\(\/\/\)$/{
21177	    s//\1/
21178	    q
21179	  }
21180	  /^X\(\/\).*/{
21181	    s//\1/
21182	    q
21183	  }
21184	  s/.*/./; q'`
21185  else
21186    continue
21187  fi
21188  # Extract the definition of DEPDIR, am__include, and am__quote
21189  # from the Makefile without running `make'.
21190  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21191  test -z "$DEPDIR" && continue
21192  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21193  test -z "am__include" && continue
21194  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21195  # When using ansi2knr, U may be empty or an underscore; expand it
21196  U=`sed -n 's/^U = //p' < "$mf"`
21197  # Find all dependency output files, they are included files with
21198  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21199  # simplest approach to changing $(DEPDIR) to its actual value in the
21200  # expansion.
21201  for file in `sed -n "
21202    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21203       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21204    # Make sure the directory exists.
21205    test -f "$dirpart/$file" && continue
21206    fdir=`$as_dirname -- "$file" ||
21207$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21208	 X"$file" : 'X\(//\)[^/]' \| \
21209	 X"$file" : 'X\(//\)$' \| \
21210	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21211echo X"$file" |
21212    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21213	    s//\1/
21214	    q
21215	  }
21216	  /^X\(\/\/\)[^/].*/{
21217	    s//\1/
21218	    q
21219	  }
21220	  /^X\(\/\/\)$/{
21221	    s//\1/
21222	    q
21223	  }
21224	  /^X\(\/\).*/{
21225	    s//\1/
21226	    q
21227	  }
21228	  s/.*/./; q'`
21229    { as_dir=$dirpart/$fdir
21230  case $as_dir in #(
21231  -*) as_dir=./$as_dir;;
21232  esac
21233  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21234    as_dirs=
21235    while :; do
21236      case $as_dir in #(
21237      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21238      *) as_qdir=$as_dir;;
21239      esac
21240      as_dirs="'$as_qdir' $as_dirs"
21241      as_dir=`$as_dirname -- "$as_dir" ||
21242$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21243	 X"$as_dir" : 'X\(//\)[^/]' \| \
21244	 X"$as_dir" : 'X\(//\)$' \| \
21245	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21246echo X"$as_dir" |
21247    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21248	    s//\1/
21249	    q
21250	  }
21251	  /^X\(\/\/\)[^/].*/{
21252	    s//\1/
21253	    q
21254	  }
21255	  /^X\(\/\/\)$/{
21256	    s//\1/
21257	    q
21258	  }
21259	  /^X\(\/\).*/{
21260	    s//\1/
21261	    q
21262	  }
21263	  s/.*/./; q'`
21264      test -d "$as_dir" && break
21265    done
21266    test -z "$as_dirs" || eval "mkdir $as_dirs"
21267  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21268echo "$as_me: error: cannot create directory $as_dir" >&2;}
21269   { (exit 1); exit 1; }; }; }
21270    # echo "creating $dirpart/$file"
21271    echo '# dummy' > "$dirpart/$file"
21272  done
21273done
21274 ;;
21275
21276  esac
21277done # for ac_tag
21278
21279
21280{ (exit 0); exit 0; }
21281_ACEOF
21282chmod +x $CONFIG_STATUS
21283ac_clean_files=$ac_clean_files_save
21284
21285
21286# configure is writing to config.log, and then calls config.status.
21287# config.status does its own redirection, appending to config.log.
21288# Unfortunately, on DOS this fails, as config.log is still kept open
21289# by configure, so config.status won't be able to write to it; its
21290# output is simply discarded.  So we exec the FD to /dev/null,
21291# effectively closing config.log, so it can be properly (re)opened and
21292# appended to by config.status.  When coming back to configure, we
21293# need to make the FD available again.
21294if test "$no_create" != yes; then
21295  ac_cs_success=:
21296  ac_config_status_args=
21297  test "$silent" = yes &&
21298    ac_config_status_args="$ac_config_status_args --quiet"
21299  exec 5>/dev/null
21300  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21301  exec 5>>config.log
21302  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21303  # would make configure fail if this is the last instruction.
21304  $ac_cs_success || { (exit 1); exit 1; }
21305fi
21306
21307