configure revision c43cc173
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for libXi 1.1.3.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='libXi'
730PACKAGE_TARNAME='libXi'
731PACKAGE_VERSION='1.1.3'
732PACKAGE_STRING='libXi 1.1.3'
733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735# Factoring default headers for most tests.
736ac_includes_default="\
737#include <stdio.h>
738#ifdef HAVE_SYS_TYPES_H
739# include <sys/types.h>
740#endif
741#ifdef HAVE_SYS_STAT_H
742# include <sys/stat.h>
743#endif
744#ifdef STDC_HEADERS
745# include <stdlib.h>
746# include <stddef.h>
747#else
748# ifdef HAVE_STDLIB_H
749#  include <stdlib.h>
750# endif
751#endif
752#ifdef HAVE_STRING_H
753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754#  include <memory.h>
755# endif
756# include <string.h>
757#endif
758#ifdef HAVE_STRINGS_H
759# include <strings.h>
760#endif
761#ifdef HAVE_INTTYPES_H
762# include <inttypes.h>
763#endif
764#ifdef HAVE_STDINT_H
765# include <stdint.h>
766#endif
767#ifdef HAVE_UNISTD_H
768# include <unistd.h>
769#endif"
770
771ac_subst_vars='SHELL
772PATH_SEPARATOR
773PACKAGE_NAME
774PACKAGE_TARNAME
775PACKAGE_VERSION
776PACKAGE_STRING
777PACKAGE_BUGREPORT
778exec_prefix
779prefix
780program_transform_name
781bindir
782sbindir
783libexecdir
784datarootdir
785datadir
786sysconfdir
787sharedstatedir
788localstatedir
789includedir
790oldincludedir
791docdir
792infodir
793htmldir
794dvidir
795pdfdir
796psdir
797libdir
798localedir
799mandir
800DEFS
801ECHO_C
802ECHO_N
803ECHO_T
804LIBS
805build_alias
806host_alias
807target_alias
808INSTALL_PROGRAM
809INSTALL_SCRIPT
810INSTALL_DATA
811am__isrc
812CYGPATH_W
813PACKAGE
814VERSION
815ACLOCAL
816AUTOCONF
817AUTOMAKE
818AUTOHEADER
819MAKEINFO
820install_sh
821STRIP
822INSTALL_STRIP_PROGRAM
823mkdir_p
824AWK
825SET_MAKE
826am__leading_dot
827AMTAR
828am__tar
829am__untar
830MAINTAINER_MODE_TRUE
831MAINTAINER_MODE_FALSE
832MAINT
833CC
834CFLAGS
835LDFLAGS
836CPPFLAGS
837ac_ct_CC
838EXEEXT
839OBJEXT
840DEPDIR
841am__include
842am__quote
843AMDEP_TRUE
844AMDEP_FALSE
845AMDEPBACKSLASH
846CCDEPMODE
847am__fastdepCC_TRUE
848am__fastdepCC_FALSE
849build
850build_cpu
851build_vendor
852build_os
853host
854host_cpu
855host_vendor
856host_os
857GREP
858EGREP
859LN_S
860ECHO
861AR
862RANLIB
863CPP
864CXX
865CXXFLAGS
866ac_ct_CXX
867CXXDEPMODE
868am__fastdepCXX_TRUE
869am__fastdepCXX_FALSE
870CXXCPP
871F77
872FFLAGS
873ac_ct_F77
874LIBTOOL
875PKG_CONFIG
876XI_CFLAGS
877XI_LIBS
878MALLOC_ZERO_CFLAGS
879XMALLOC_ZERO_CFLAGS
880XTMALLOC_ZERO_CFLAGS
881APP_MAN_SUFFIX
882LIB_MAN_SUFFIX
883FILE_MAN_SUFFIX
884MISC_MAN_SUFFIX
885DRIVER_MAN_SUFFIX
886ADMIN_MAN_SUFFIX
887APP_MAN_DIR
888LIB_MAN_DIR
889FILE_MAN_DIR
890MISC_MAN_DIR
891DRIVER_MAN_DIR
892ADMIN_MAN_DIR
893LIBOBJS
894LTLIBOBJS'
895ac_subst_files=''
896      ac_precious_vars='build_alias
897host_alias
898target_alias
899CC
900CFLAGS
901LDFLAGS
902LIBS
903CPPFLAGS
904CPP
905CXX
906CXXFLAGS
907CCC
908CXXCPP
909F77
910FFLAGS
911PKG_CONFIG
912XI_CFLAGS
913XI_LIBS'
914
915
916# Initialize some variables set by options.
917ac_init_help=
918ac_init_version=false
919# The variables have the same names as the options, with
920# dashes changed to underlines.
921cache_file=/dev/null
922exec_prefix=NONE
923no_create=
924no_recursion=
925prefix=NONE
926program_prefix=NONE
927program_suffix=NONE
928program_transform_name=s,x,x,
929silent=
930site=
931srcdir=
932verbose=
933x_includes=NONE
934x_libraries=NONE
935
936# Installation directory options.
937# These are left unexpanded so users can "make install exec_prefix=/foo"
938# and all the variables that are supposed to be based on exec_prefix
939# by default will actually change.
940# Use braces instead of parens because sh, perl, etc. also accept them.
941# (The list follows the same order as the GNU Coding Standards.)
942bindir='${exec_prefix}/bin'
943sbindir='${exec_prefix}/sbin'
944libexecdir='${exec_prefix}/libexec'
945datarootdir='${prefix}/share'
946datadir='${datarootdir}'
947sysconfdir='${prefix}/etc'
948sharedstatedir='${prefix}/com'
949localstatedir='${prefix}/var'
950includedir='${prefix}/include'
951oldincludedir='/usr/include'
952docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953infodir='${datarootdir}/info'
954htmldir='${docdir}'
955dvidir='${docdir}'
956pdfdir='${docdir}'
957psdir='${docdir}'
958libdir='${exec_prefix}/lib'
959localedir='${datarootdir}/locale'
960mandir='${datarootdir}/man'
961
962ac_prev=
963ac_dashdash=
964for ac_option
965do
966  # If the previous option needs an argument, assign it.
967  if test -n "$ac_prev"; then
968    eval $ac_prev=\$ac_option
969    ac_prev=
970    continue
971  fi
972
973  case $ac_option in
974  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975  *)	ac_optarg=yes ;;
976  esac
977
978  # Accept the important Cygnus configure options, so we can diagnose typos.
979
980  case $ac_dashdash$ac_option in
981  --)
982    ac_dashdash=yes ;;
983
984  -bindir | --bindir | --bindi | --bind | --bin | --bi)
985    ac_prev=bindir ;;
986  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987    bindir=$ac_optarg ;;
988
989  -build | --build | --buil | --bui | --bu)
990    ac_prev=build_alias ;;
991  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992    build_alias=$ac_optarg ;;
993
994  -cache-file | --cache-file | --cache-fil | --cache-fi \
995  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996    ac_prev=cache_file ;;
997  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999    cache_file=$ac_optarg ;;
1000
1001  --config-cache | -C)
1002    cache_file=config.cache ;;
1003
1004  -datadir | --datadir | --datadi | --datad)
1005    ac_prev=datadir ;;
1006  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007    datadir=$ac_optarg ;;
1008
1009  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010  | --dataroo | --dataro | --datar)
1011    ac_prev=datarootdir ;;
1012  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014    datarootdir=$ac_optarg ;;
1015
1016  -disable-* | --disable-*)
1017    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018    # Reject names that are not valid shell variable names.
1019    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021   { (exit 1); exit 1; }; }
1022    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023    eval enable_$ac_feature=no ;;
1024
1025  -docdir | --docdir | --docdi | --doc | --do)
1026    ac_prev=docdir ;;
1027  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028    docdir=$ac_optarg ;;
1029
1030  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031    ac_prev=dvidir ;;
1032  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033    dvidir=$ac_optarg ;;
1034
1035  -enable-* | --enable-*)
1036    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037    # Reject names that are not valid shell variable names.
1038    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040   { (exit 1); exit 1; }; }
1041    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1042    eval enable_$ac_feature=\$ac_optarg ;;
1043
1044  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046  | --exec | --exe | --ex)
1047    ac_prev=exec_prefix ;;
1048  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050  | --exec=* | --exe=* | --ex=*)
1051    exec_prefix=$ac_optarg ;;
1052
1053  -gas | --gas | --ga | --g)
1054    # Obsolete; use --with-gas.
1055    with_gas=yes ;;
1056
1057  -help | --help | --hel | --he | -h)
1058    ac_init_help=long ;;
1059  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060    ac_init_help=recursive ;;
1061  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062    ac_init_help=short ;;
1063
1064  -host | --host | --hos | --ho)
1065    ac_prev=host_alias ;;
1066  -host=* | --host=* | --hos=* | --ho=*)
1067    host_alias=$ac_optarg ;;
1068
1069  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070    ac_prev=htmldir ;;
1071  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072  | --ht=*)
1073    htmldir=$ac_optarg ;;
1074
1075  -includedir | --includedir | --includedi | --included | --include \
1076  | --includ | --inclu | --incl | --inc)
1077    ac_prev=includedir ;;
1078  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079  | --includ=* | --inclu=* | --incl=* | --inc=*)
1080    includedir=$ac_optarg ;;
1081
1082  -infodir | --infodir | --infodi | --infod | --info | --inf)
1083    ac_prev=infodir ;;
1084  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085    infodir=$ac_optarg ;;
1086
1087  -libdir | --libdir | --libdi | --libd)
1088    ac_prev=libdir ;;
1089  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090    libdir=$ac_optarg ;;
1091
1092  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093  | --libexe | --libex | --libe)
1094    ac_prev=libexecdir ;;
1095  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096  | --libexe=* | --libex=* | --libe=*)
1097    libexecdir=$ac_optarg ;;
1098
1099  -localedir | --localedir | --localedi | --localed | --locale)
1100    ac_prev=localedir ;;
1101  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102    localedir=$ac_optarg ;;
1103
1104  -localstatedir | --localstatedir | --localstatedi | --localstated \
1105  | --localstate | --localstat | --localsta | --localst | --locals)
1106    ac_prev=localstatedir ;;
1107  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109    localstatedir=$ac_optarg ;;
1110
1111  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112    ac_prev=mandir ;;
1113  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114    mandir=$ac_optarg ;;
1115
1116  -nfp | --nfp | --nf)
1117    # Obsolete; use --without-fp.
1118    with_fp=no ;;
1119
1120  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121  | --no-cr | --no-c | -n)
1122    no_create=yes ;;
1123
1124  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126    no_recursion=yes ;;
1127
1128  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130  | --oldin | --oldi | --old | --ol | --o)
1131    ac_prev=oldincludedir ;;
1132  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135    oldincludedir=$ac_optarg ;;
1136
1137  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138    ac_prev=prefix ;;
1139  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140    prefix=$ac_optarg ;;
1141
1142  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143  | --program-pre | --program-pr | --program-p)
1144    ac_prev=program_prefix ;;
1145  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147    program_prefix=$ac_optarg ;;
1148
1149  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150  | --program-suf | --program-su | --program-s)
1151    ac_prev=program_suffix ;;
1152  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154    program_suffix=$ac_optarg ;;
1155
1156  -program-transform-name | --program-transform-name \
1157  | --program-transform-nam | --program-transform-na \
1158  | --program-transform-n | --program-transform- \
1159  | --program-transform | --program-transfor \
1160  | --program-transfo | --program-transf \
1161  | --program-trans | --program-tran \
1162  | --progr-tra | --program-tr | --program-t)
1163    ac_prev=program_transform_name ;;
1164  -program-transform-name=* | --program-transform-name=* \
1165  | --program-transform-nam=* | --program-transform-na=* \
1166  | --program-transform-n=* | --program-transform-=* \
1167  | --program-transform=* | --program-transfor=* \
1168  | --program-transfo=* | --program-transf=* \
1169  | --program-trans=* | --program-tran=* \
1170  | --progr-tra=* | --program-tr=* | --program-t=*)
1171    program_transform_name=$ac_optarg ;;
1172
1173  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174    ac_prev=pdfdir ;;
1175  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176    pdfdir=$ac_optarg ;;
1177
1178  -psdir | --psdir | --psdi | --psd | --ps)
1179    ac_prev=psdir ;;
1180  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181    psdir=$ac_optarg ;;
1182
1183  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184  | -silent | --silent | --silen | --sile | --sil)
1185    silent=yes ;;
1186
1187  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188    ac_prev=sbindir ;;
1189  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190  | --sbi=* | --sb=*)
1191    sbindir=$ac_optarg ;;
1192
1193  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195  | --sharedst | --shareds | --shared | --share | --shar \
1196  | --sha | --sh)
1197    ac_prev=sharedstatedir ;;
1198  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201  | --sha=* | --sh=*)
1202    sharedstatedir=$ac_optarg ;;
1203
1204  -site | --site | --sit)
1205    ac_prev=site ;;
1206  -site=* | --site=* | --sit=*)
1207    site=$ac_optarg ;;
1208
1209  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210    ac_prev=srcdir ;;
1211  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212    srcdir=$ac_optarg ;;
1213
1214  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215  | --syscon | --sysco | --sysc | --sys | --sy)
1216    ac_prev=sysconfdir ;;
1217  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219    sysconfdir=$ac_optarg ;;
1220
1221  -target | --target | --targe | --targ | --tar | --ta | --t)
1222    ac_prev=target_alias ;;
1223  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224    target_alias=$ac_optarg ;;
1225
1226  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227    verbose=yes ;;
1228
1229  -version | --version | --versio | --versi | --vers | -V)
1230    ac_init_version=: ;;
1231
1232  -with-* | --with-*)
1233    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234    # Reject names that are not valid shell variable names.
1235    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236      { echo "$as_me: error: invalid package name: $ac_package" >&2
1237   { (exit 1); exit 1; }; }
1238    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239    eval with_$ac_package=\$ac_optarg ;;
1240
1241  -without-* | --without-*)
1242    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243    # Reject names that are not valid shell variable names.
1244    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245      { echo "$as_me: error: invalid package name: $ac_package" >&2
1246   { (exit 1); exit 1; }; }
1247    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248    eval with_$ac_package=no ;;
1249
1250  --x)
1251    # Obsolete; use --with-x.
1252    with_x=yes ;;
1253
1254  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255  | --x-incl | --x-inc | --x-in | --x-i)
1256    ac_prev=x_includes ;;
1257  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259    x_includes=$ac_optarg ;;
1260
1261  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263    ac_prev=x_libraries ;;
1264  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266    x_libraries=$ac_optarg ;;
1267
1268  -*) { echo "$as_me: error: unrecognized option: $ac_option
1269Try \`$0 --help' for more information." >&2
1270   { (exit 1); exit 1; }; }
1271    ;;
1272
1273  *=*)
1274    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275    # Reject names that are not valid shell variable names.
1276    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1277      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1278   { (exit 1); exit 1; }; }
1279    eval $ac_envvar=\$ac_optarg
1280    export $ac_envvar ;;
1281
1282  *)
1283    # FIXME: should be removed in autoconf 3.0.
1284    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288    ;;
1289
1290  esac
1291done
1292
1293if test -n "$ac_prev"; then
1294  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295  { echo "$as_me: error: missing argument to $ac_option" >&2
1296   { (exit 1); exit 1; }; }
1297fi
1298
1299# Be sure to have absolute directory names.
1300for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301		datadir sysconfdir sharedstatedir localstatedir includedir \
1302		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303		libdir localedir mandir
1304do
1305  eval ac_val=\$$ac_var
1306  case $ac_val in
1307    [\\/$]* | ?:[\\/]* )  continue;;
1308    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309  esac
1310  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311   { (exit 1); exit 1; }; }
1312done
1313
1314# There might be people who depend on the old broken behavior: `$host'
1315# used to hold the argument of --host etc.
1316# FIXME: To remove some day.
1317build=$build_alias
1318host=$host_alias
1319target=$target_alias
1320
1321# FIXME: To remove some day.
1322if test "x$host_alias" != x; then
1323  if test "x$build_alias" = x; then
1324    cross_compiling=maybe
1325    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326    If a cross compiler is detected then cross compile mode will be used." >&2
1327  elif test "x$build_alias" != "x$host_alias"; then
1328    cross_compiling=yes
1329  fi
1330fi
1331
1332ac_tool_prefix=
1333test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335test "$silent" = yes && exec 6>/dev/null
1336
1337
1338ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339ac_ls_di=`ls -di .` &&
1340ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341  { echo "$as_me: error: Working directory cannot be determined" >&2
1342   { (exit 1); exit 1; }; }
1343test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344  { echo "$as_me: error: pwd does not report name of working directory" >&2
1345   { (exit 1); exit 1; }; }
1346
1347
1348# Find the source files, if location was not specified.
1349if test -z "$srcdir"; then
1350  ac_srcdir_defaulted=yes
1351  # Try the directory containing this script, then the parent directory.
1352  ac_confdir=`$as_dirname -- "$0" ||
1353$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354	 X"$0" : 'X\(//\)[^/]' \| \
1355	 X"$0" : 'X\(//\)$' \| \
1356	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1357echo X"$0" |
1358    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359	    s//\1/
1360	    q
1361	  }
1362	  /^X\(\/\/\)[^/].*/{
1363	    s//\1/
1364	    q
1365	  }
1366	  /^X\(\/\/\)$/{
1367	    s//\1/
1368	    q
1369	  }
1370	  /^X\(\/\).*/{
1371	    s//\1/
1372	    q
1373	  }
1374	  s/.*/./; q'`
1375  srcdir=$ac_confdir
1376  if test ! -r "$srcdir/$ac_unique_file"; then
1377    srcdir=..
1378  fi
1379else
1380  ac_srcdir_defaulted=no
1381fi
1382if test ! -r "$srcdir/$ac_unique_file"; then
1383  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385   { (exit 1); exit 1; }; }
1386fi
1387ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388ac_abs_confdir=`(
1389	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1390   { (exit 1); exit 1; }; }
1391	pwd)`
1392# When building in place, set srcdir=.
1393if test "$ac_abs_confdir" = "$ac_pwd"; then
1394  srcdir=.
1395fi
1396# Remove unnecessary trailing slashes from srcdir.
1397# Double slashes in file names in object file debugging info
1398# mess up M-x gdb in Emacs.
1399case $srcdir in
1400*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401esac
1402for ac_var in $ac_precious_vars; do
1403  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404  eval ac_env_${ac_var}_value=\$${ac_var}
1405  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407done
1408
1409#
1410# Report the --help message.
1411#
1412if test "$ac_init_help" = "long"; then
1413  # Omit some internal or obsolete options to make the list less imposing.
1414  # This message is too long to be a string in the A/UX 3.1 sh.
1415  cat <<_ACEOF
1416\`configure' configures libXi 1.1.3 to adapt to many kinds of systems.
1417
1418Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
1423Defaults for the options are specified in brackets.
1424
1425Configuration:
1426  -h, --help              display this help and exit
1427      --help=short        display options specific to this package
1428      --help=recursive    display the short help of all the included packages
1429  -V, --version           display version information and exit
1430  -q, --quiet, --silent   do not print \`checking...' messages
1431      --cache-file=FILE   cache test results in FILE [disabled]
1432  -C, --config-cache      alias for \`--cache-file=config.cache'
1433  -n, --no-create         do not create output files
1434      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
1436Installation directories:
1437  --prefix=PREFIX         install architecture-independent files in PREFIX
1438			  [$ac_default_prefix]
1439  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440			  [PREFIX]
1441
1442By default, \`make install' will install all the files in
1443\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445for instance \`--prefix=\$HOME'.
1446
1447For better control, use the options below.
1448
1449Fine tuning of the installation directories:
1450  --bindir=DIR           user executables [EPREFIX/bin]
1451  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1452  --libexecdir=DIR       program executables [EPREFIX/libexec]
1453  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1454  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1455  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1456  --libdir=DIR           object code libraries [EPREFIX/lib]
1457  --includedir=DIR       C header files [PREFIX/include]
1458  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1459  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1460  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1461  --infodir=DIR          info documentation [DATAROOTDIR/info]
1462  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1463  --mandir=DIR           man documentation [DATAROOTDIR/man]
1464  --docdir=DIR           documentation root [DATAROOTDIR/doc/libXi]
1465  --htmldir=DIR          html documentation [DOCDIR]
1466  --dvidir=DIR           dvi documentation [DOCDIR]
1467  --pdfdir=DIR           pdf documentation [DOCDIR]
1468  --psdir=DIR            ps documentation [DOCDIR]
1469_ACEOF
1470
1471  cat <<\_ACEOF
1472
1473Program names:
1474  --program-prefix=PREFIX            prepend PREFIX to installed program names
1475  --program-suffix=SUFFIX            append SUFFIX to installed program names
1476  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1477
1478System types:
1479  --build=BUILD     configure for building on BUILD [guessed]
1480  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1481_ACEOF
1482fi
1483
1484if test -n "$ac_init_help"; then
1485  case $ac_init_help in
1486     short | recursive ) echo "Configuration of libXi 1.1.3:";;
1487   esac
1488  cat <<\_ACEOF
1489
1490Optional Features:
1491  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1492  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1493  --enable-maintainer-mode  enable make rules and dependencies not useful
1494			  (and sometimes confusing) to the casual installer
1495  --disable-dependency-tracking  speeds up one-time build
1496  --enable-dependency-tracking   do not reject slow dependency extractors
1497  --enable-shared[=PKGS]  build shared libraries [default=yes]
1498  --enable-static[=PKGS]  build static libraries [default=yes]
1499  --enable-fast-install[=PKGS]
1500                          optimize for fast installation [default=yes]
1501  --disable-libtool-lock  avoid locking (might break parallel builds)
1502  --enable-malloc0returnsnull
1503                          malloc(0) returns NULL (default: auto)
1504
1505Optional Packages:
1506  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1507  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1508  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1509  --with-pic              try to use only PIC/non-PIC objects [default=use
1510                          both]
1511  --with-tags[=TAGS]      include additional configurations [automatic]
1512  --with-release-version=STRING
1513                          Use release version string in package name
1514
1515Some influential environment variables:
1516  CC          C compiler command
1517  CFLAGS      C compiler flags
1518  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1519              nonstandard directory <lib dir>
1520  LIBS        libraries to pass to the linker, e.g. -l<library>
1521  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522              you have headers in a nonstandard directory <include dir>
1523  CPP         C preprocessor
1524  CXX         C++ compiler command
1525  CXXFLAGS    C++ compiler flags
1526  CXXCPP      C++ preprocessor
1527  F77         Fortran 77 compiler command
1528  FFLAGS      Fortran 77 compiler flags
1529  PKG_CONFIG  path to pkg-config utility
1530  XI_CFLAGS   C compiler flags for XI, overriding pkg-config
1531  XI_LIBS     linker flags for XI, overriding pkg-config
1532
1533Use these variables to override the choices made by `configure' or to help
1534it to find libraries and programs with nonstandard names/locations.
1535
1536Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1537_ACEOF
1538ac_status=$?
1539fi
1540
1541if test "$ac_init_help" = "recursive"; then
1542  # If there are subdirs, report their specific --help.
1543  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544    test -d "$ac_dir" || continue
1545    ac_builddir=.
1546
1547case "$ac_dir" in
1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549*)
1550  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1551  # A ".." for each directory in $ac_dir_suffix.
1552  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1553  case $ac_top_builddir_sub in
1554  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556  esac ;;
1557esac
1558ac_abs_top_builddir=$ac_pwd
1559ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560# for backward compatibility:
1561ac_top_builddir=$ac_top_build_prefix
1562
1563case $srcdir in
1564  .)  # We are building in place.
1565    ac_srcdir=.
1566    ac_top_srcdir=$ac_top_builddir_sub
1567    ac_abs_top_srcdir=$ac_pwd ;;
1568  [\\/]* | ?:[\\/]* )  # Absolute name.
1569    ac_srcdir=$srcdir$ac_dir_suffix;
1570    ac_top_srcdir=$srcdir
1571    ac_abs_top_srcdir=$srcdir ;;
1572  *) # Relative name.
1573    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574    ac_top_srcdir=$ac_top_build_prefix$srcdir
1575    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576esac
1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579    cd "$ac_dir" || { ac_status=$?; continue; }
1580    # Check for guested configure.
1581    if test -f "$ac_srcdir/configure.gnu"; then
1582      echo &&
1583      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584    elif test -f "$ac_srcdir/configure"; then
1585      echo &&
1586      $SHELL "$ac_srcdir/configure" --help=recursive
1587    else
1588      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589    fi || ac_status=$?
1590    cd "$ac_pwd" || { ac_status=$?; break; }
1591  done
1592fi
1593
1594test -n "$ac_init_help" && exit $ac_status
1595if $ac_init_version; then
1596  cat <<\_ACEOF
1597libXi configure 1.1.3
1598generated by GNU Autoconf 2.61
1599
1600Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16012002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1602This configure script is free software; the Free Software Foundation
1603gives unlimited permission to copy, distribute and modify it.
1604_ACEOF
1605  exit
1606fi
1607cat >config.log <<_ACEOF
1608This file contains any messages produced by compilers while
1609running configure, to aid debugging if configure makes a mistake.
1610
1611It was created by libXi $as_me 1.1.3, which was
1612generated by GNU Autoconf 2.61.  Invocation command line was
1613
1614  $ $0 $@
1615
1616_ACEOF
1617exec 5>>config.log
1618{
1619cat <<_ASUNAME
1620## --------- ##
1621## Platform. ##
1622## --------- ##
1623
1624hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1625uname -m = `(uname -m) 2>/dev/null || echo unknown`
1626uname -r = `(uname -r) 2>/dev/null || echo unknown`
1627uname -s = `(uname -s) 2>/dev/null || echo unknown`
1628uname -v = `(uname -v) 2>/dev/null || echo unknown`
1629
1630/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1631/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1632
1633/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1634/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1635/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1636/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1637/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1638/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1639/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1640
1641_ASUNAME
1642
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646  IFS=$as_save_IFS
1647  test -z "$as_dir" && as_dir=.
1648  echo "PATH: $as_dir"
1649done
1650IFS=$as_save_IFS
1651
1652} >&5
1653
1654cat >&5 <<_ACEOF
1655
1656
1657## ----------- ##
1658## Core tests. ##
1659## ----------- ##
1660
1661_ACEOF
1662
1663
1664# Keep a trace of the command line.
1665# Strip out --no-create and --no-recursion so they do not pile up.
1666# Strip out --silent because we don't want to record it for future runs.
1667# Also quote any args containing shell meta-characters.
1668# Make two passes to allow for proper duplicate-argument suppression.
1669ac_configure_args=
1670ac_configure_args0=
1671ac_configure_args1=
1672ac_must_keep_next=false
1673for ac_pass in 1 2
1674do
1675  for ac_arg
1676  do
1677    case $ac_arg in
1678    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1679    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1680    | -silent | --silent | --silen | --sile | --sil)
1681      continue ;;
1682    *\'*)
1683      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684    esac
1685    case $ac_pass in
1686    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1687    2)
1688      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1689      if test $ac_must_keep_next = true; then
1690	ac_must_keep_next=false # Got value, back to normal.
1691      else
1692	case $ac_arg in
1693	  *=* | --config-cache | -C | -disable-* | --disable-* \
1694	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1695	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1696	  | -with-* | --with-* | -without-* | --without-* | --x)
1697	    case "$ac_configure_args0 " in
1698	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1699	    esac
1700	    ;;
1701	  -* ) ac_must_keep_next=true ;;
1702	esac
1703      fi
1704      ac_configure_args="$ac_configure_args '$ac_arg'"
1705      ;;
1706    esac
1707  done
1708done
1709$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1710$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1711
1712# When interrupted or exit'd, cleanup temporary files, and complete
1713# config.log.  We remove comments because anyway the quotes in there
1714# would cause problems or look ugly.
1715# WARNING: Use '\'' to represent an apostrophe within the trap.
1716# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1717trap 'exit_status=$?
1718  # Save into config.log some information that might help in debugging.
1719  {
1720    echo
1721
1722    cat <<\_ASBOX
1723## ---------------- ##
1724## Cache variables. ##
1725## ---------------- ##
1726_ASBOX
1727    echo
1728    # The following way of writing the cache mishandles newlines in values,
1729(
1730  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1731    eval ac_val=\$$ac_var
1732    case $ac_val in #(
1733    *${as_nl}*)
1734      case $ac_var in #(
1735      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1736echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1737      esac
1738      case $ac_var in #(
1739      _ | IFS | as_nl) ;; #(
1740      *) $as_unset $ac_var ;;
1741      esac ;;
1742    esac
1743  done
1744  (set) 2>&1 |
1745    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1746    *${as_nl}ac_space=\ *)
1747      sed -n \
1748	"s/'\''/'\''\\\\'\'''\''/g;
1749	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750      ;; #(
1751    *)
1752      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1753      ;;
1754    esac |
1755    sort
1756)
1757    echo
1758
1759    cat <<\_ASBOX
1760## ----------------- ##
1761## Output variables. ##
1762## ----------------- ##
1763_ASBOX
1764    echo
1765    for ac_var in $ac_subst_vars
1766    do
1767      eval ac_val=\$$ac_var
1768      case $ac_val in
1769      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770      esac
1771      echo "$ac_var='\''$ac_val'\''"
1772    done | sort
1773    echo
1774
1775    if test -n "$ac_subst_files"; then
1776      cat <<\_ASBOX
1777## ------------------- ##
1778## File substitutions. ##
1779## ------------------- ##
1780_ASBOX
1781      echo
1782      for ac_var in $ac_subst_files
1783      do
1784	eval ac_val=\$$ac_var
1785	case $ac_val in
1786	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787	esac
1788	echo "$ac_var='\''$ac_val'\''"
1789      done | sort
1790      echo
1791    fi
1792
1793    if test -s confdefs.h; then
1794      cat <<\_ASBOX
1795## ----------- ##
1796## confdefs.h. ##
1797## ----------- ##
1798_ASBOX
1799      echo
1800      cat confdefs.h
1801      echo
1802    fi
1803    test "$ac_signal" != 0 &&
1804      echo "$as_me: caught signal $ac_signal"
1805    echo "$as_me: exit $exit_status"
1806  } >&5
1807  rm -f core *.core core.conftest.* &&
1808    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1809    exit $exit_status
1810' 0
1811for ac_signal in 1 2 13 15; do
1812  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813done
1814ac_signal=0
1815
1816# confdefs.h avoids OS command line length limits that DEFS can exceed.
1817rm -f -r conftest* confdefs.h
1818
1819# Predefined preprocessor variables.
1820
1821cat >>confdefs.h <<_ACEOF
1822#define PACKAGE_NAME "$PACKAGE_NAME"
1823_ACEOF
1824
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828_ACEOF
1829
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_VERSION "$PACKAGE_VERSION"
1833_ACEOF
1834
1835
1836cat >>confdefs.h <<_ACEOF
1837#define PACKAGE_STRING "$PACKAGE_STRING"
1838_ACEOF
1839
1840
1841cat >>confdefs.h <<_ACEOF
1842#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843_ACEOF
1844
1845
1846# Let the site file select an alternate cache file if it wants to.
1847# Prefer explicitly selected file to automatically selected ones.
1848if test -n "$CONFIG_SITE"; then
1849  set x "$CONFIG_SITE"
1850elif test "x$prefix" != xNONE; then
1851  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1852else
1853  set x "$ac_default_prefix/share/config.site" \
1854	"$ac_default_prefix/etc/config.site"
1855fi
1856shift
1857for ac_site_file
1858do
1859  if test -r "$ac_site_file"; then
1860    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1861echo "$as_me: loading site script $ac_site_file" >&6;}
1862    sed 's/^/| /' "$ac_site_file" >&5
1863    . "$ac_site_file"
1864  fi
1865done
1866
1867if test -r "$cache_file"; then
1868  # Some versions of bash will fail to source /dev/null (special
1869  # files actually), so we avoid doing that.
1870  if test -f "$cache_file"; then
1871    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1872echo "$as_me: loading cache $cache_file" >&6;}
1873    case $cache_file in
1874      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1875      *)                      . "./$cache_file";;
1876    esac
1877  fi
1878else
1879  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1880echo "$as_me: creating cache $cache_file" >&6;}
1881  >$cache_file
1882fi
1883
1884# Check that the precious variables saved in the cache have kept the same
1885# value.
1886ac_cache_corrupted=false
1887for ac_var in $ac_precious_vars; do
1888  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1889  eval ac_new_set=\$ac_env_${ac_var}_set
1890  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1891  eval ac_new_val=\$ac_env_${ac_var}_value
1892  case $ac_old_set,$ac_new_set in
1893    set,)
1894      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1895echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1896      ac_cache_corrupted=: ;;
1897    ,set)
1898      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1899echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1900      ac_cache_corrupted=: ;;
1901    ,);;
1902    *)
1903      if test "x$ac_old_val" != "x$ac_new_val"; then
1904	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1905echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1906	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1907echo "$as_me:   former value:  $ac_old_val" >&2;}
1908	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1909echo "$as_me:   current value: $ac_new_val" >&2;}
1910	ac_cache_corrupted=:
1911      fi;;
1912  esac
1913  # Pass precious variables to config.status.
1914  if test "$ac_new_set" = set; then
1915    case $ac_new_val in
1916    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1917    *) ac_arg=$ac_var=$ac_new_val ;;
1918    esac
1919    case " $ac_configure_args " in
1920      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1921      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1922    esac
1923  fi
1924done
1925if $ac_cache_corrupted; then
1926  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1927echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1928  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1929echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1930   { (exit 1); exit 1; }; }
1931fi
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957ac_ext=c
1958ac_cpp='$CPP $CPPFLAGS'
1959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962
1963
1964am__api_version='1.10'
1965
1966ac_aux_dir=
1967for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1968  if test -f "$ac_dir/install-sh"; then
1969    ac_aux_dir=$ac_dir
1970    ac_install_sh="$ac_aux_dir/install-sh -c"
1971    break
1972  elif test -f "$ac_dir/install.sh"; then
1973    ac_aux_dir=$ac_dir
1974    ac_install_sh="$ac_aux_dir/install.sh -c"
1975    break
1976  elif test -f "$ac_dir/shtool"; then
1977    ac_aux_dir=$ac_dir
1978    ac_install_sh="$ac_aux_dir/shtool install -c"
1979    break
1980  fi
1981done
1982if test -z "$ac_aux_dir"; then
1983  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1984echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1985   { (exit 1); exit 1; }; }
1986fi
1987
1988# These three variables are undocumented and unsupported,
1989# and are intended to be withdrawn in a future Autoconf release.
1990# They can cause serious problems if a builder's source tree is in a directory
1991# whose full name contains unusual characters.
1992ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1993ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1994ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1995
1996
1997# Find a good install program.  We prefer a C program (faster),
1998# so one script is as good as another.  But avoid the broken or
1999# incompatible versions:
2000# SysV /etc/install, /usr/sbin/install
2001# SunOS /usr/etc/install
2002# IRIX /sbin/install
2003# AIX /bin/install
2004# AmigaOS /C/install, which installs bootblocks on floppy discs
2005# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2006# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2007# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2008# OS/2's system install, which has a completely different semantic
2009# ./install, which can be erroneously created by make from ./install.sh.
2010{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2011echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2012if test -z "$INSTALL"; then
2013if test "${ac_cv_path_install+set}" = set; then
2014  echo $ECHO_N "(cached) $ECHO_C" >&6
2015else
2016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019  IFS=$as_save_IFS
2020  test -z "$as_dir" && as_dir=.
2021  # Account for people who put trailing slashes in PATH elements.
2022case $as_dir/ in
2023  ./ | .// | /cC/* | \
2024  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2025  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2026  /usr/ucb/* ) ;;
2027  *)
2028    # OSF1 and SCO ODT 3.0 have their own names for install.
2029    # Don't use installbsd from OSF since it installs stuff as root
2030    # by default.
2031    for ac_prog in ginstall scoinst install; do
2032      for ac_exec_ext in '' $ac_executable_extensions; do
2033	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2034	  if test $ac_prog = install &&
2035	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2036	    # AIX install.  It has an incompatible calling convention.
2037	    :
2038	  elif test $ac_prog = install &&
2039	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2040	    # program-specific install script used by HP pwplus--don't use.
2041	    :
2042	  else
2043	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2044	    break 3
2045	  fi
2046	fi
2047      done
2048    done
2049    ;;
2050esac
2051done
2052IFS=$as_save_IFS
2053
2054
2055fi
2056  if test "${ac_cv_path_install+set}" = set; then
2057    INSTALL=$ac_cv_path_install
2058  else
2059    # As a last resort, use the slow shell script.  Don't cache a
2060    # value for INSTALL within a source directory, because that will
2061    # break other packages using the cache if that directory is
2062    # removed, or if the value is a relative name.
2063    INSTALL=$ac_install_sh
2064  fi
2065fi
2066{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2067echo "${ECHO_T}$INSTALL" >&6; }
2068
2069# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2070# It thinks the first close brace ends the variable substitution.
2071test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2072
2073test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2074
2075test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2076
2077{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2078echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2079# Just in case
2080sleep 1
2081echo timestamp > conftest.file
2082# Do `set' in a subshell so we don't clobber the current shell's
2083# arguments.  Must try -L first in case configure is actually a
2084# symlink; some systems play weird games with the mod time of symlinks
2085# (eg FreeBSD returns the mod time of the symlink's containing
2086# directory).
2087if (
2088   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2089   if test "$*" = "X"; then
2090      # -L didn't work.
2091      set X `ls -t $srcdir/configure conftest.file`
2092   fi
2093   rm -f conftest.file
2094   if test "$*" != "X $srcdir/configure conftest.file" \
2095      && test "$*" != "X conftest.file $srcdir/configure"; then
2096
2097      # If neither matched, then we have a broken ls.  This can happen
2098      # if, for instance, CONFIG_SHELL is bash and it inherits a
2099      # broken ls alias from the environment.  This has actually
2100      # happened.  Such a system could not be considered "sane".
2101      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2102alias in your environment" >&5
2103echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2104alias in your environment" >&2;}
2105   { (exit 1); exit 1; }; }
2106   fi
2107
2108   test "$2" = conftest.file
2109   )
2110then
2111   # Ok.
2112   :
2113else
2114   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2115Check your system clock" >&5
2116echo "$as_me: error: newly created file is older than distributed files!
2117Check your system clock" >&2;}
2118   { (exit 1); exit 1; }; }
2119fi
2120{ echo "$as_me:$LINENO: result: yes" >&5
2121echo "${ECHO_T}yes" >&6; }
2122test "$program_prefix" != NONE &&
2123  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2124# Use a double $ so make ignores it.
2125test "$program_suffix" != NONE &&
2126  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2127# Double any \ or $.  echo might interpret backslashes.
2128# By default was `s,x,x', remove it if useless.
2129cat <<\_ACEOF >conftest.sed
2130s/[\\$]/&&/g;s/;s,x,x,$//
2131_ACEOF
2132program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2133rm -f conftest.sed
2134
2135# expand $ac_aux_dir to an absolute path
2136am_aux_dir=`cd $ac_aux_dir && pwd`
2137
2138test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2139# Use eval to expand $SHELL
2140if eval "$MISSING --run true"; then
2141  am_missing_run="$MISSING --run "
2142else
2143  am_missing_run=
2144  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2145echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2146fi
2147
2148{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2149echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2150if test -z "$MKDIR_P"; then
2151  if test "${ac_cv_path_mkdir+set}" = set; then
2152  echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
2154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2156do
2157  IFS=$as_save_IFS
2158  test -z "$as_dir" && as_dir=.
2159  for ac_prog in mkdir gmkdir; do
2160	 for ac_exec_ext in '' $ac_executable_extensions; do
2161	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2162	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2163	     'mkdir (GNU coreutils) '* | \
2164	     'mkdir (coreutils) '* | \
2165	     'mkdir (fileutils) '4.1*)
2166	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2167	       break 3;;
2168	   esac
2169	 done
2170       done
2171done
2172IFS=$as_save_IFS
2173
2174fi
2175
2176  if test "${ac_cv_path_mkdir+set}" = set; then
2177    MKDIR_P="$ac_cv_path_mkdir -p"
2178  else
2179    # As a last resort, use the slow shell script.  Don't cache a
2180    # value for MKDIR_P within a source directory, because that will
2181    # break other packages using the cache if that directory is
2182    # removed, or if the value is a relative name.
2183    test -d ./--version && rmdir ./--version
2184    MKDIR_P="$ac_install_sh -d"
2185  fi
2186fi
2187{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2188echo "${ECHO_T}$MKDIR_P" >&6; }
2189
2190mkdir_p="$MKDIR_P"
2191case $mkdir_p in
2192  [\\/$]* | ?:[\\/]*) ;;
2193  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2194esac
2195
2196for ac_prog in gawk mawk nawk awk
2197do
2198  # Extract the first word of "$ac_prog", so it can be a program name with args.
2199set dummy $ac_prog; ac_word=$2
2200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202if test "${ac_cv_prog_AWK+set}" = set; then
2203  echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205  if test -n "$AWK"; then
2206  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2207else
2208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209for as_dir in $PATH
2210do
2211  IFS=$as_save_IFS
2212  test -z "$as_dir" && as_dir=.
2213  for ac_exec_ext in '' $ac_executable_extensions; do
2214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2215    ac_cv_prog_AWK="$ac_prog"
2216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217    break 2
2218  fi
2219done
2220done
2221IFS=$as_save_IFS
2222
2223fi
2224fi
2225AWK=$ac_cv_prog_AWK
2226if test -n "$AWK"; then
2227  { echo "$as_me:$LINENO: result: $AWK" >&5
2228echo "${ECHO_T}$AWK" >&6; }
2229else
2230  { echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6; }
2232fi
2233
2234
2235  test -n "$AWK" && break
2236done
2237
2238{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2239echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2240set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2241if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  cat >conftest.make <<\_ACEOF
2245SHELL = /bin/sh
2246all:
2247	@echo '@@@%%%=$(MAKE)=@@@%%%'
2248_ACEOF
2249# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2250case `${MAKE-make} -f conftest.make 2>/dev/null` in
2251  *@@@%%%=?*=@@@%%%*)
2252    eval ac_cv_prog_make_${ac_make}_set=yes;;
2253  *)
2254    eval ac_cv_prog_make_${ac_make}_set=no;;
2255esac
2256rm -f conftest.make
2257fi
2258if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2259  { echo "$as_me:$LINENO: result: yes" >&5
2260echo "${ECHO_T}yes" >&6; }
2261  SET_MAKE=
2262else
2263  { echo "$as_me:$LINENO: result: no" >&5
2264echo "${ECHO_T}no" >&6; }
2265  SET_MAKE="MAKE=${MAKE-make}"
2266fi
2267
2268rm -rf .tst 2>/dev/null
2269mkdir .tst 2>/dev/null
2270if test -d .tst; then
2271  am__leading_dot=.
2272else
2273  am__leading_dot=_
2274fi
2275rmdir .tst 2>/dev/null
2276
2277if test "`cd $srcdir && pwd`" != "`pwd`"; then
2278  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2279  # is not polluted with repeated "-I."
2280  am__isrc=' -I$(srcdir)'
2281  # test to see if srcdir already configured
2282  if test -f $srcdir/config.status; then
2283    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2284echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2285   { (exit 1); exit 1; }; }
2286  fi
2287fi
2288
2289# test whether we have cygpath
2290if test -z "$CYGPATH_W"; then
2291  if (cygpath --version) >/dev/null 2>/dev/null; then
2292    CYGPATH_W='cygpath -w'
2293  else
2294    CYGPATH_W=echo
2295  fi
2296fi
2297
2298
2299# Define the identity of the package.
2300 PACKAGE='libXi'
2301 VERSION='1.1.3'
2302
2303
2304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE "$PACKAGE"
2306_ACEOF
2307
2308
2309cat >>confdefs.h <<_ACEOF
2310#define VERSION "$VERSION"
2311_ACEOF
2312
2313# Some tools Automake needs.
2314
2315ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2316
2317
2318AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2319
2320
2321AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2322
2323
2324AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2325
2326
2327MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2328
2329install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2330
2331# Installed binaries are usually stripped using `strip' when the user
2332# run `make install-strip'.  However `strip' might not be the right
2333# tool to use in cross-compilation environments, therefore Automake
2334# will honor the `STRIP' environment variable to overrule this program.
2335if test "$cross_compiling" != no; then
2336  if test -n "$ac_tool_prefix"; then
2337  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2338set dummy ${ac_tool_prefix}strip; ac_word=$2
2339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341if test "${ac_cv_prog_STRIP+set}" = set; then
2342  echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344  if test -n "$STRIP"; then
2345  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2346else
2347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348for as_dir in $PATH
2349do
2350  IFS=$as_save_IFS
2351  test -z "$as_dir" && as_dir=.
2352  for ac_exec_ext in '' $ac_executable_extensions; do
2353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2355    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356    break 2
2357  fi
2358done
2359done
2360IFS=$as_save_IFS
2361
2362fi
2363fi
2364STRIP=$ac_cv_prog_STRIP
2365if test -n "$STRIP"; then
2366  { echo "$as_me:$LINENO: result: $STRIP" >&5
2367echo "${ECHO_T}$STRIP" >&6; }
2368else
2369  { echo "$as_me:$LINENO: result: no" >&5
2370echo "${ECHO_T}no" >&6; }
2371fi
2372
2373
2374fi
2375if test -z "$ac_cv_prog_STRIP"; then
2376  ac_ct_STRIP=$STRIP
2377  # Extract the first word of "strip", so it can be a program name with args.
2378set dummy strip; ac_word=$2
2379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2382  echo $ECHO_N "(cached) $ECHO_C" >&6
2383else
2384  if test -n "$ac_ct_STRIP"; then
2385  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2386else
2387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390  IFS=$as_save_IFS
2391  test -z "$as_dir" && as_dir=.
2392  for ac_exec_ext in '' $ac_executable_extensions; do
2393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394    ac_cv_prog_ac_ct_STRIP="strip"
2395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396    break 2
2397  fi
2398done
2399done
2400IFS=$as_save_IFS
2401
2402fi
2403fi
2404ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2405if test -n "$ac_ct_STRIP"; then
2406  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2407echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2408else
2409  { echo "$as_me:$LINENO: result: no" >&5
2410echo "${ECHO_T}no" >&6; }
2411fi
2412
2413  if test "x$ac_ct_STRIP" = x; then
2414    STRIP=":"
2415  else
2416    case $cross_compiling:$ac_tool_warned in
2417yes:)
2418{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419whose name does not start with the host triplet.  If you think this
2420configuration is useful to you, please write to autoconf@gnu.org." >&5
2421echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422whose name does not start with the host triplet.  If you think this
2423configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2424ac_tool_warned=yes ;;
2425esac
2426    STRIP=$ac_ct_STRIP
2427  fi
2428else
2429  STRIP="$ac_cv_prog_STRIP"
2430fi
2431
2432fi
2433INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2434
2435# We need awk for the "check" target.  The system "awk" is bad on
2436# some platforms.
2437# Always define AMTAR for backward compatibility.
2438
2439AMTAR=${AMTAR-"${am_missing_run}tar"}
2440
2441am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2442
2443
2444
2445
2446
2447{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2448echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2449    # Check whether --enable-maintainer-mode was given.
2450if test "${enable_maintainer_mode+set}" = set; then
2451  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2452else
2453  USE_MAINTAINER_MODE=no
2454fi
2455
2456  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2457echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2458   if test $USE_MAINTAINER_MODE = yes; then
2459  MAINTAINER_MODE_TRUE=
2460  MAINTAINER_MODE_FALSE='#'
2461else
2462  MAINTAINER_MODE_TRUE='#'
2463  MAINTAINER_MODE_FALSE=
2464fi
2465
2466  MAINT=$MAINTAINER_MODE_TRUE
2467
2468
2469
2470ac_config_headers="$ac_config_headers src/config.h"
2471
2472
2473# Check for progs
2474ac_ext=c
2475ac_cpp='$CPP $CPPFLAGS'
2476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479if test -n "$ac_tool_prefix"; then
2480  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2481set dummy ${ac_tool_prefix}gcc; ac_word=$2
2482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484if test "${ac_cv_prog_CC+set}" = set; then
2485  echo $ECHO_N "(cached) $ECHO_C" >&6
2486else
2487  if test -n "$CC"; then
2488  ac_cv_prog_CC="$CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493  IFS=$as_save_IFS
2494  test -z "$as_dir" && as_dir=.
2495  for ac_exec_ext in '' $ac_executable_extensions; do
2496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2498    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499    break 2
2500  fi
2501done
2502done
2503IFS=$as_save_IFS
2504
2505fi
2506fi
2507CC=$ac_cv_prog_CC
2508if test -n "$CC"; then
2509  { echo "$as_me:$LINENO: result: $CC" >&5
2510echo "${ECHO_T}$CC" >&6; }
2511else
2512  { echo "$as_me:$LINENO: result: no" >&5
2513echo "${ECHO_T}no" >&6; }
2514fi
2515
2516
2517fi
2518if test -z "$ac_cv_prog_CC"; then
2519  ac_ct_CC=$CC
2520  # Extract the first word of "gcc", so it can be a program name with args.
2521set dummy gcc; ac_word=$2
2522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525  echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527  if test -n "$ac_ct_CC"; then
2528  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533  IFS=$as_save_IFS
2534  test -z "$as_dir" && as_dir=.
2535  for ac_exec_ext in '' $ac_executable_extensions; do
2536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537    ac_cv_prog_ac_ct_CC="gcc"
2538    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539    break 2
2540  fi
2541done
2542done
2543IFS=$as_save_IFS
2544
2545fi
2546fi
2547ac_ct_CC=$ac_cv_prog_ac_ct_CC
2548if test -n "$ac_ct_CC"; then
2549  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2550echo "${ECHO_T}$ac_ct_CC" >&6; }
2551else
2552  { echo "$as_me:$LINENO: result: no" >&5
2553echo "${ECHO_T}no" >&6; }
2554fi
2555
2556  if test "x$ac_ct_CC" = x; then
2557    CC=""
2558  else
2559    case $cross_compiling:$ac_tool_warned in
2560yes:)
2561{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2562whose name does not start with the host triplet.  If you think this
2563configuration is useful to you, please write to autoconf@gnu.org." >&5
2564echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2565whose name does not start with the host triplet.  If you think this
2566configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2567ac_tool_warned=yes ;;
2568esac
2569    CC=$ac_ct_CC
2570  fi
2571else
2572  CC="$ac_cv_prog_CC"
2573fi
2574
2575if test -z "$CC"; then
2576          if test -n "$ac_tool_prefix"; then
2577    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2578set dummy ${ac_tool_prefix}cc; ac_word=$2
2579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581if test "${ac_cv_prog_CC+set}" = set; then
2582  echo $ECHO_N "(cached) $ECHO_C" >&6
2583else
2584  if test -n "$CC"; then
2585  ac_cv_prog_CC="$CC" # Let the user override the test.
2586else
2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590  IFS=$as_save_IFS
2591  test -z "$as_dir" && as_dir=.
2592  for ac_exec_ext in '' $ac_executable_extensions; do
2593  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594    ac_cv_prog_CC="${ac_tool_prefix}cc"
2595    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596    break 2
2597  fi
2598done
2599done
2600IFS=$as_save_IFS
2601
2602fi
2603fi
2604CC=$ac_cv_prog_CC
2605if test -n "$CC"; then
2606  { echo "$as_me:$LINENO: result: $CC" >&5
2607echo "${ECHO_T}$CC" >&6; }
2608else
2609  { echo "$as_me:$LINENO: result: no" >&5
2610echo "${ECHO_T}no" >&6; }
2611fi
2612
2613
2614  fi
2615fi
2616if test -z "$CC"; then
2617  # Extract the first word of "cc", so it can be a program name with args.
2618set dummy cc; ac_word=$2
2619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2621if test "${ac_cv_prog_CC+set}" = set; then
2622  echo $ECHO_N "(cached) $ECHO_C" >&6
2623else
2624  if test -n "$CC"; then
2625  ac_cv_prog_CC="$CC" # Let the user override the test.
2626else
2627  ac_prog_rejected=no
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631  IFS=$as_save_IFS
2632  test -z "$as_dir" && as_dir=.
2633  for ac_exec_ext in '' $ac_executable_extensions; do
2634  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2636       ac_prog_rejected=yes
2637       continue
2638     fi
2639    ac_cv_prog_CC="cc"
2640    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641    break 2
2642  fi
2643done
2644done
2645IFS=$as_save_IFS
2646
2647if test $ac_prog_rejected = yes; then
2648  # We found a bogon in the path, so make sure we never use it.
2649  set dummy $ac_cv_prog_CC
2650  shift
2651  if test $# != 0; then
2652    # We chose a different compiler from the bogus one.
2653    # However, it has the same basename, so the bogon will be chosen
2654    # first if we set CC to just the basename; use the full file name.
2655    shift
2656    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2657  fi
2658fi
2659fi
2660fi
2661CC=$ac_cv_prog_CC
2662if test -n "$CC"; then
2663  { echo "$as_me:$LINENO: result: $CC" >&5
2664echo "${ECHO_T}$CC" >&6; }
2665else
2666  { echo "$as_me:$LINENO: result: no" >&5
2667echo "${ECHO_T}no" >&6; }
2668fi
2669
2670
2671fi
2672if test -z "$CC"; then
2673  if test -n "$ac_tool_prefix"; then
2674  for ac_prog in cl.exe
2675  do
2676    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2677set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680if test "${ac_cv_prog_CC+set}" = set; then
2681  echo $ECHO_N "(cached) $ECHO_C" >&6
2682else
2683  if test -n "$CC"; then
2684  ac_cv_prog_CC="$CC" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  test -z "$as_dir" && as_dir=.
2691  for ac_exec_ext in '' $ac_executable_extensions; do
2692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2694    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695    break 2
2696  fi
2697done
2698done
2699IFS=$as_save_IFS
2700
2701fi
2702fi
2703CC=$ac_cv_prog_CC
2704if test -n "$CC"; then
2705  { echo "$as_me:$LINENO: result: $CC" >&5
2706echo "${ECHO_T}$CC" >&6; }
2707else
2708  { echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6; }
2710fi
2711
2712
2713    test -n "$CC" && break
2714  done
2715fi
2716if test -z "$CC"; then
2717  ac_ct_CC=$CC
2718  for ac_prog in cl.exe
2719do
2720  # Extract the first word of "$ac_prog", so it can be a program name with args.
2721set dummy $ac_prog; ac_word=$2
2722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2725  echo $ECHO_N "(cached) $ECHO_C" >&6
2726else
2727  if test -n "$ac_ct_CC"; then
2728  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733  IFS=$as_save_IFS
2734  test -z "$as_dir" && as_dir=.
2735  for ac_exec_ext in '' $ac_executable_extensions; do
2736  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737    ac_cv_prog_ac_ct_CC="$ac_prog"
2738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739    break 2
2740  fi
2741done
2742done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748if test -n "$ac_ct_CC"; then
2749  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2750echo "${ECHO_T}$ac_ct_CC" >&6; }
2751else
2752  { echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6; }
2754fi
2755
2756
2757  test -n "$ac_ct_CC" && break
2758done
2759
2760  if test "x$ac_ct_CC" = x; then
2761    CC=""
2762  else
2763    case $cross_compiling:$ac_tool_warned in
2764yes:)
2765{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2766whose name does not start with the host triplet.  If you think this
2767configuration is useful to you, please write to autoconf@gnu.org." >&5
2768echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2769whose name does not start with the host triplet.  If you think this
2770configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2771ac_tool_warned=yes ;;
2772esac
2773    CC=$ac_ct_CC
2774  fi
2775fi
2776
2777fi
2778
2779
2780test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2781See \`config.log' for more details." >&5
2782echo "$as_me: error: no acceptable C compiler found in \$PATH
2783See \`config.log' for more details." >&2;}
2784   { (exit 1); exit 1; }; }
2785
2786# Provide some information about the compiler.
2787echo "$as_me:$LINENO: checking for C compiler version" >&5
2788ac_compiler=`set X $ac_compile; echo $2`
2789{ (ac_try="$ac_compiler --version >&5"
2790case "(($ac_try" in
2791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792  *) ac_try_echo=$ac_try;;
2793esac
2794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795  (eval "$ac_compiler --version >&5") 2>&5
2796  ac_status=$?
2797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798  (exit $ac_status); }
2799{ (ac_try="$ac_compiler -v >&5"
2800case "(($ac_try" in
2801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802  *) ac_try_echo=$ac_try;;
2803esac
2804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805  (eval "$ac_compiler -v >&5") 2>&5
2806  ac_status=$?
2807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808  (exit $ac_status); }
2809{ (ac_try="$ac_compiler -V >&5"
2810case "(($ac_try" in
2811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812  *) ac_try_echo=$ac_try;;
2813esac
2814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815  (eval "$ac_compiler -V >&5") 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }
2819
2820cat >conftest.$ac_ext <<_ACEOF
2821/* confdefs.h.  */
2822_ACEOF
2823cat confdefs.h >>conftest.$ac_ext
2824cat >>conftest.$ac_ext <<_ACEOF
2825/* end confdefs.h.  */
2826
2827int
2828main ()
2829{
2830
2831  ;
2832  return 0;
2833}
2834_ACEOF
2835ac_clean_files_save=$ac_clean_files
2836ac_clean_files="$ac_clean_files a.out a.exe b.out"
2837# Try to create an executable without -o first, disregard a.out.
2838# It will help us diagnose broken compilers, and finding out an intuition
2839# of exeext.
2840{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2841echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2842ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2843#
2844# List of possible output files, starting from the most likely.
2845# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2846# only as a last resort.  b.out is created by i960 compilers.
2847ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2848#
2849# The IRIX 6 linker writes into existing files which may not be
2850# executable, retaining their permissions.  Remove them first so a
2851# subsequent execution test works.
2852ac_rmfiles=
2853for ac_file in $ac_files
2854do
2855  case $ac_file in
2856    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2857    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2858  esac
2859done
2860rm -f $ac_rmfiles
2861
2862if { (ac_try="$ac_link_default"
2863case "(($ac_try" in
2864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865  *) ac_try_echo=$ac_try;;
2866esac
2867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868  (eval "$ac_link_default") 2>&5
2869  ac_status=$?
2870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871  (exit $ac_status); }; then
2872  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2873# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2874# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2875# so that the user can short-circuit this test for compilers unknown to
2876# Autoconf.
2877for ac_file in $ac_files ''
2878do
2879  test -f "$ac_file" || continue
2880  case $ac_file in
2881    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2882	;;
2883    [ab].out )
2884	# We found the default executable, but exeext='' is most
2885	# certainly right.
2886	break;;
2887    *.* )
2888        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2889	then :; else
2890	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2891	fi
2892	# We set ac_cv_exeext here because the later test for it is not
2893	# safe: cross compilers may not add the suffix if given an `-o'
2894	# argument, so we may need to know it at that point already.
2895	# Even if this section looks crufty: it has the advantage of
2896	# actually working.
2897	break;;
2898    * )
2899	break;;
2900  esac
2901done
2902test "$ac_cv_exeext" = no && ac_cv_exeext=
2903
2904else
2905  ac_file=''
2906fi
2907
2908{ echo "$as_me:$LINENO: result: $ac_file" >&5
2909echo "${ECHO_T}$ac_file" >&6; }
2910if test -z "$ac_file"; then
2911  echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2915See \`config.log' for more details." >&5
2916echo "$as_me: error: C compiler cannot create executables
2917See \`config.log' for more details." >&2;}
2918   { (exit 77); exit 77; }; }
2919fi
2920
2921ac_exeext=$ac_cv_exeext
2922
2923# Check that the compiler produces executables we can run.  If not, either
2924# the compiler is broken, or we cross compile.
2925{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2926echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2927# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2928# If not cross compiling, check that we can run a simple program.
2929if test "$cross_compiling" != yes; then
2930  if { ac_try='./$ac_file'
2931  { (case "(($ac_try" in
2932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933  *) ac_try_echo=$ac_try;;
2934esac
2935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936  (eval "$ac_try") 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); }; }; then
2940    cross_compiling=no
2941  else
2942    if test "$cross_compiling" = maybe; then
2943	cross_compiling=yes
2944    else
2945	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2946If you meant to cross compile, use \`--host'.
2947See \`config.log' for more details." >&5
2948echo "$as_me: error: cannot run C compiled programs.
2949If you meant to cross compile, use \`--host'.
2950See \`config.log' for more details." >&2;}
2951   { (exit 1); exit 1; }; }
2952    fi
2953  fi
2954fi
2955{ echo "$as_me:$LINENO: result: yes" >&5
2956echo "${ECHO_T}yes" >&6; }
2957
2958rm -f a.out a.exe conftest$ac_cv_exeext b.out
2959ac_clean_files=$ac_clean_files_save
2960# Check that the compiler produces executables we can run.  If not, either
2961# the compiler is broken, or we cross compile.
2962{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2963echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2964{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2965echo "${ECHO_T}$cross_compiling" >&6; }
2966
2967{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2968echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2969if { (ac_try="$ac_link"
2970case "(($ac_try" in
2971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972  *) ac_try_echo=$ac_try;;
2973esac
2974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975  (eval "$ac_link") 2>&5
2976  ac_status=$?
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); }; then
2979  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2980# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2981# work properly (i.e., refer to `conftest.exe'), while it won't with
2982# `rm'.
2983for ac_file in conftest.exe conftest conftest.*; do
2984  test -f "$ac_file" || continue
2985  case $ac_file in
2986    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2987    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2988	  break;;
2989    * ) break;;
2990  esac
2991done
2992else
2993  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2994See \`config.log' for more details." >&5
2995echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2996See \`config.log' for more details." >&2;}
2997   { (exit 1); exit 1; }; }
2998fi
2999
3000rm -f conftest$ac_cv_exeext
3001{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3002echo "${ECHO_T}$ac_cv_exeext" >&6; }
3003
3004rm -f conftest.$ac_ext
3005EXEEXT=$ac_cv_exeext
3006ac_exeext=$EXEEXT
3007{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3008echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3009if test "${ac_cv_objext+set}" = set; then
3010  echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
3012  cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h.  */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h.  */
3018
3019int
3020main ()
3021{
3022
3023  ;
3024  return 0;
3025}
3026_ACEOF
3027rm -f conftest.o conftest.obj
3028if { (ac_try="$ac_compile"
3029case "(($ac_try" in
3030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031  *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034  (eval "$ac_compile") 2>&5
3035  ac_status=$?
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); }; then
3038  for ac_file in conftest.o conftest.obj conftest.*; do
3039  test -f "$ac_file" || continue;
3040  case $ac_file in
3041    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3042    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3043       break;;
3044  esac
3045done
3046else
3047  echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3051See \`config.log' for more details." >&5
3052echo "$as_me: error: cannot compute suffix of object files: cannot compile
3053See \`config.log' for more details." >&2;}
3054   { (exit 1); exit 1; }; }
3055fi
3056
3057rm -f conftest.$ac_cv_objext conftest.$ac_ext
3058fi
3059{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3060echo "${ECHO_T}$ac_cv_objext" >&6; }
3061OBJEXT=$ac_cv_objext
3062ac_objext=$OBJEXT
3063{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3064echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3065if test "${ac_cv_c_compiler_gnu+set}" = set; then
3066  echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068  cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h.  */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h.  */
3074
3075int
3076main ()
3077{
3078#ifndef __GNUC__
3079       choke me
3080#endif
3081
3082  ;
3083  return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
3087if { (ac_try="$ac_compile"
3088case "(($ac_try" in
3089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090  *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093  (eval "$ac_compile") 2>conftest.er1
3094  ac_status=$?
3095  grep -v '^ *+' conftest.er1 >conftest.err
3096  rm -f conftest.er1
3097  cat conftest.err >&5
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); } && {
3100	 test -z "$ac_c_werror_flag" ||
3101	 test ! -s conftest.err
3102       } && test -s conftest.$ac_objext; then
3103  ac_compiler_gnu=yes
3104else
3105  echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108	ac_compiler_gnu=no
3109fi
3110
3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112ac_cv_c_compiler_gnu=$ac_compiler_gnu
3113
3114fi
3115{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3116echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3117GCC=`test $ac_compiler_gnu = yes && echo yes`
3118ac_test_CFLAGS=${CFLAGS+set}
3119ac_save_CFLAGS=$CFLAGS
3120{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3121echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3122if test "${ac_cv_prog_cc_g+set}" = set; then
3123  echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125  ac_save_c_werror_flag=$ac_c_werror_flag
3126   ac_c_werror_flag=yes
3127   ac_cv_prog_cc_g=no
3128   CFLAGS="-g"
3129   cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h.  */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h.  */
3135
3136int
3137main ()
3138{
3139
3140  ;
3141  return 0;
3142}
3143_ACEOF
3144rm -f conftest.$ac_objext
3145if { (ac_try="$ac_compile"
3146case "(($ac_try" in
3147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148  *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151  (eval "$ac_compile") 2>conftest.er1
3152  ac_status=$?
3153  grep -v '^ *+' conftest.er1 >conftest.err
3154  rm -f conftest.er1
3155  cat conftest.err >&5
3156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); } && {
3158	 test -z "$ac_c_werror_flag" ||
3159	 test ! -s conftest.err
3160       } && test -s conftest.$ac_objext; then
3161  ac_cv_prog_cc_g=yes
3162else
3163  echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166	CFLAGS=""
3167      cat >conftest.$ac_ext <<_ACEOF
3168/* confdefs.h.  */
3169_ACEOF
3170cat confdefs.h >>conftest.$ac_ext
3171cat >>conftest.$ac_ext <<_ACEOF
3172/* end confdefs.h.  */
3173
3174int
3175main ()
3176{
3177
3178  ;
3179  return 0;
3180}
3181_ACEOF
3182rm -f conftest.$ac_objext
3183if { (ac_try="$ac_compile"
3184case "(($ac_try" in
3185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186  *) ac_try_echo=$ac_try;;
3187esac
3188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189  (eval "$ac_compile") 2>conftest.er1
3190  ac_status=$?
3191  grep -v '^ *+' conftest.er1 >conftest.err
3192  rm -f conftest.er1
3193  cat conftest.err >&5
3194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195  (exit $ac_status); } && {
3196	 test -z "$ac_c_werror_flag" ||
3197	 test ! -s conftest.err
3198       } && test -s conftest.$ac_objext; then
3199  :
3200else
3201  echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
3203
3204	ac_c_werror_flag=$ac_save_c_werror_flag
3205	 CFLAGS="-g"
3206	 cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h.  */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h.  */
3212
3213int
3214main ()
3215{
3216
3217  ;
3218  return 0;
3219}
3220_ACEOF
3221rm -f conftest.$ac_objext
3222if { (ac_try="$ac_compile"
3223case "(($ac_try" in
3224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225  *) ac_try_echo=$ac_try;;
3226esac
3227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228  (eval "$ac_compile") 2>conftest.er1
3229  ac_status=$?
3230  grep -v '^ *+' conftest.er1 >conftest.err
3231  rm -f conftest.er1
3232  cat conftest.err >&5
3233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234  (exit $ac_status); } && {
3235	 test -z "$ac_c_werror_flag" ||
3236	 test ! -s conftest.err
3237       } && test -s conftest.$ac_objext; then
3238  ac_cv_prog_cc_g=yes
3239else
3240  echo "$as_me: failed program was:" >&5
3241sed 's/^/| /' conftest.$ac_ext >&5
3242
3243
3244fi
3245
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247fi
3248
3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250fi
3251
3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253   ac_c_werror_flag=$ac_save_c_werror_flag
3254fi
3255{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3256echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3257if test "$ac_test_CFLAGS" = set; then
3258  CFLAGS=$ac_save_CFLAGS
3259elif test $ac_cv_prog_cc_g = yes; then
3260  if test "$GCC" = yes; then
3261    CFLAGS="-g -O2"
3262  else
3263    CFLAGS="-g"
3264  fi
3265else
3266  if test "$GCC" = yes; then
3267    CFLAGS="-O2"
3268  else
3269    CFLAGS=
3270  fi
3271fi
3272{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3273echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3274if test "${ac_cv_prog_cc_c89+set}" = set; then
3275  echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277  ac_cv_prog_cc_c89=no
3278ac_save_CC=$CC
3279cat >conftest.$ac_ext <<_ACEOF
3280/* confdefs.h.  */
3281_ACEOF
3282cat confdefs.h >>conftest.$ac_ext
3283cat >>conftest.$ac_ext <<_ACEOF
3284/* end confdefs.h.  */
3285#include <stdarg.h>
3286#include <stdio.h>
3287#include <sys/types.h>
3288#include <sys/stat.h>
3289/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3290struct buf { int x; };
3291FILE * (*rcsopen) (struct buf *, struct stat *, int);
3292static char *e (p, i)
3293     char **p;
3294     int i;
3295{
3296  return p[i];
3297}
3298static char *f (char * (*g) (char **, int), char **p, ...)
3299{
3300  char *s;
3301  va_list v;
3302  va_start (v,p);
3303  s = g (p, va_arg (v,int));
3304  va_end (v);
3305  return s;
3306}
3307
3308/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3309   function prototypes and stuff, but not '\xHH' hex character constants.
3310   These don't provoke an error unfortunately, instead are silently treated
3311   as 'x'.  The following induces an error, until -std is added to get
3312   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3313   array size at least.  It's necessary to write '\x00'==0 to get something
3314   that's true only with -std.  */
3315int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3316
3317/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3318   inside strings and character constants.  */
3319#define FOO(x) 'x'
3320int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3321
3322int test (int i, double x);
3323struct s1 {int (*f) (int a);};
3324struct s2 {int (*f) (double a);};
3325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326int argc;
3327char **argv;
3328int
3329main ()
3330{
3331return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3332  ;
3333  return 0;
3334}
3335_ACEOF
3336for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3337	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3338do
3339  CC="$ac_save_CC $ac_arg"
3340  rm -f conftest.$ac_objext
3341if { (ac_try="$ac_compile"
3342case "(($ac_try" in
3343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344  *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347  (eval "$ac_compile") 2>conftest.er1
3348  ac_status=$?
3349  grep -v '^ *+' conftest.er1 >conftest.err
3350  rm -f conftest.er1
3351  cat conftest.err >&5
3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); } && {
3354	 test -z "$ac_c_werror_flag" ||
3355	 test ! -s conftest.err
3356       } && test -s conftest.$ac_objext; then
3357  ac_cv_prog_cc_c89=$ac_arg
3358else
3359  echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362
3363fi
3364
3365rm -f core conftest.err conftest.$ac_objext
3366  test "x$ac_cv_prog_cc_c89" != "xno" && break
3367done
3368rm -f conftest.$ac_ext
3369CC=$ac_save_CC
3370
3371fi
3372# AC_CACHE_VAL
3373case "x$ac_cv_prog_cc_c89" in
3374  x)
3375    { echo "$as_me:$LINENO: result: none needed" >&5
3376echo "${ECHO_T}none needed" >&6; } ;;
3377  xno)
3378    { echo "$as_me:$LINENO: result: unsupported" >&5
3379echo "${ECHO_T}unsupported" >&6; } ;;
3380  *)
3381    CC="$CC $ac_cv_prog_cc_c89"
3382    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3383echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3384esac
3385
3386
3387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392DEPDIR="${am__leading_dot}deps"
3393
3394ac_config_commands="$ac_config_commands depfiles"
3395
3396
3397am_make=${MAKE-make}
3398cat > confinc << 'END'
3399am__doit:
3400	@echo done
3401.PHONY: am__doit
3402END
3403# If we don't find an include directive, just comment out the code.
3404{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3405echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3406am__include="#"
3407am__quote=
3408_am_result=none
3409# First try GNU make style include.
3410echo "include confinc" > confmf
3411# We grep out `Entering directory' and `Leaving directory'
3412# messages which can occur if `w' ends up in MAKEFLAGS.
3413# In particular we don't look at `^make:' because GNU make might
3414# be invoked under some other name (usually "gmake"), in which
3415# case it prints its new name instead of `make'.
3416if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3417   am__include=include
3418   am__quote=
3419   _am_result=GNU
3420fi
3421# Now try BSD make style include.
3422if test "$am__include" = "#"; then
3423   echo '.include "confinc"' > confmf
3424   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3425      am__include=.include
3426      am__quote="\""
3427      _am_result=BSD
3428   fi
3429fi
3430
3431
3432{ echo "$as_me:$LINENO: result: $_am_result" >&5
3433echo "${ECHO_T}$_am_result" >&6; }
3434rm -f confinc confmf
3435
3436# Check whether --enable-dependency-tracking was given.
3437if test "${enable_dependency_tracking+set}" = set; then
3438  enableval=$enable_dependency_tracking;
3439fi
3440
3441if test "x$enable_dependency_tracking" != xno; then
3442  am_depcomp="$ac_aux_dir/depcomp"
3443  AMDEPBACKSLASH='\'
3444fi
3445 if test "x$enable_dependency_tracking" != xno; then
3446  AMDEP_TRUE=
3447  AMDEP_FALSE='#'
3448else
3449  AMDEP_TRUE='#'
3450  AMDEP_FALSE=
3451fi
3452
3453
3454
3455depcc="$CC"   am_compiler_list=
3456
3457{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3458echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3459if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3460  echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3463  # We make a subdir and do the tests there.  Otherwise we can end up
3464  # making bogus files that we don't know about and never remove.  For
3465  # instance it was reported that on HP-UX the gcc test will end up
3466  # making a dummy file named `D' -- because `-MD' means `put the output
3467  # in D'.
3468  mkdir conftest.dir
3469  # Copy depcomp to subdir because otherwise we won't find it if we're
3470  # using a relative directory.
3471  cp "$am_depcomp" conftest.dir
3472  cd conftest.dir
3473  # We will build objects and dependencies in a subdirectory because
3474  # it helps to detect inapplicable dependency modes.  For instance
3475  # both Tru64's cc and ICC support -MD to output dependencies as a
3476  # side effect of compilation, but ICC will put the dependencies in
3477  # the current directory while Tru64 will put them in the object
3478  # directory.
3479  mkdir sub
3480
3481  am_cv_CC_dependencies_compiler_type=none
3482  if test "$am_compiler_list" = ""; then
3483     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3484  fi
3485  for depmode in $am_compiler_list; do
3486    # Setup a source with many dependencies, because some compilers
3487    # like to wrap large dependency lists on column 80 (with \), and
3488    # we should not choose a depcomp mode which is confused by this.
3489    #
3490    # We need to recreate these files for each test, as the compiler may
3491    # overwrite some of them when testing with obscure command lines.
3492    # This happens at least with the AIX C compiler.
3493    : > sub/conftest.c
3494    for i in 1 2 3 4 5 6; do
3495      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3496      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3497      # Solaris 8's {/usr,}/bin/sh.
3498      touch sub/conftst$i.h
3499    done
3500    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3501
3502    case $depmode in
3503    nosideeffect)
3504      # after this tag, mechanisms are not by side-effect, so they'll
3505      # only be used when explicitly requested
3506      if test "x$enable_dependency_tracking" = xyes; then
3507	continue
3508      else
3509	break
3510      fi
3511      ;;
3512    none) break ;;
3513    esac
3514    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3515    # mode.  It turns out that the SunPro C++ compiler does not properly
3516    # handle `-M -o', and we need to detect this.
3517    if depmode=$depmode \
3518       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3519       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3520       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3521         >/dev/null 2>conftest.err &&
3522       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3523       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3524       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3525       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3526      # icc doesn't choke on unknown options, it will just issue warnings
3527      # or remarks (even with -Werror).  So we grep stderr for any message
3528      # that says an option was ignored or not supported.
3529      # When given -MP, icc 7.0 and 7.1 complain thusly:
3530      #   icc: Command line warning: ignoring option '-M'; no argument required
3531      # The diagnosis changed in icc 8.0:
3532      #   icc: Command line remark: option '-MP' not supported
3533      if (grep 'ignoring option' conftest.err ||
3534          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3535        am_cv_CC_dependencies_compiler_type=$depmode
3536        break
3537      fi
3538    fi
3539  done
3540
3541  cd ..
3542  rm -rf conftest.dir
3543else
3544  am_cv_CC_dependencies_compiler_type=none
3545fi
3546
3547fi
3548{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3549echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3550CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3551
3552 if
3553  test "x$enable_dependency_tracking" != xno \
3554  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3555  am__fastdepCC_TRUE=
3556  am__fastdepCC_FALSE='#'
3557else
3558  am__fastdepCC_TRUE='#'
3559  am__fastdepCC_FALSE=
3560fi
3561
3562
3563# Check whether --enable-shared was given.
3564if test "${enable_shared+set}" = set; then
3565  enableval=$enable_shared; p=${PACKAGE-default}
3566    case $enableval in
3567    yes) enable_shared=yes ;;
3568    no) enable_shared=no ;;
3569    *)
3570      enable_shared=no
3571      # Look at the argument we got.  We use all the common list separators.
3572      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3573      for pkg in $enableval; do
3574	IFS="$lt_save_ifs"
3575	if test "X$pkg" = "X$p"; then
3576	  enable_shared=yes
3577	fi
3578      done
3579      IFS="$lt_save_ifs"
3580      ;;
3581    esac
3582else
3583  enable_shared=yes
3584fi
3585
3586
3587# Check whether --enable-static was given.
3588if test "${enable_static+set}" = set; then
3589  enableval=$enable_static; p=${PACKAGE-default}
3590    case $enableval in
3591    yes) enable_static=yes ;;
3592    no) enable_static=no ;;
3593    *)
3594     enable_static=no
3595      # Look at the argument we got.  We use all the common list separators.
3596      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3597      for pkg in $enableval; do
3598	IFS="$lt_save_ifs"
3599	if test "X$pkg" = "X$p"; then
3600	  enable_static=yes
3601	fi
3602      done
3603      IFS="$lt_save_ifs"
3604      ;;
3605    esac
3606else
3607  enable_static=yes
3608fi
3609
3610
3611# Check whether --enable-fast-install was given.
3612if test "${enable_fast_install+set}" = set; then
3613  enableval=$enable_fast_install; p=${PACKAGE-default}
3614    case $enableval in
3615    yes) enable_fast_install=yes ;;
3616    no) enable_fast_install=no ;;
3617    *)
3618      enable_fast_install=no
3619      # Look at the argument we got.  We use all the common list separators.
3620      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3621      for pkg in $enableval; do
3622	IFS="$lt_save_ifs"
3623	if test "X$pkg" = "X$p"; then
3624	  enable_fast_install=yes
3625	fi
3626      done
3627      IFS="$lt_save_ifs"
3628      ;;
3629    esac
3630else
3631  enable_fast_install=yes
3632fi
3633
3634
3635# Make sure we can run config.sub.
3636$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3637  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3638echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3639   { (exit 1); exit 1; }; }
3640
3641{ echo "$as_me:$LINENO: checking build system type" >&5
3642echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3643if test "${ac_cv_build+set}" = set; then
3644  echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
3646  ac_build_alias=$build_alias
3647test "x$ac_build_alias" = x &&
3648  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3649test "x$ac_build_alias" = x &&
3650  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3651echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3652   { (exit 1); exit 1; }; }
3653ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3654  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3655echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3656   { (exit 1); exit 1; }; }
3657
3658fi
3659{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3660echo "${ECHO_T}$ac_cv_build" >&6; }
3661case $ac_cv_build in
3662*-*-*) ;;
3663*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3664echo "$as_me: error: invalid value of canonical build" >&2;}
3665   { (exit 1); exit 1; }; };;
3666esac
3667build=$ac_cv_build
3668ac_save_IFS=$IFS; IFS='-'
3669set x $ac_cv_build
3670shift
3671build_cpu=$1
3672build_vendor=$2
3673shift; shift
3674# Remember, the first character of IFS is used to create $*,
3675# except with old shells:
3676build_os=$*
3677IFS=$ac_save_IFS
3678case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3679
3680
3681{ echo "$as_me:$LINENO: checking host system type" >&5
3682echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3683if test "${ac_cv_host+set}" = set; then
3684  echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686  if test "x$host_alias" = x; then
3687  ac_cv_host=$ac_cv_build
3688else
3689  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3690    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3691echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3692   { (exit 1); exit 1; }; }
3693fi
3694
3695fi
3696{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3697echo "${ECHO_T}$ac_cv_host" >&6; }
3698case $ac_cv_host in
3699*-*-*) ;;
3700*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3701echo "$as_me: error: invalid value of canonical host" >&2;}
3702   { (exit 1); exit 1; }; };;
3703esac
3704host=$ac_cv_host
3705ac_save_IFS=$IFS; IFS='-'
3706set x $ac_cv_host
3707shift
3708host_cpu=$1
3709host_vendor=$2
3710shift; shift
3711# Remember, the first character of IFS is used to create $*,
3712# except with old shells:
3713host_os=$*
3714IFS=$ac_save_IFS
3715case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3716
3717
3718{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3719echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3720if test "${lt_cv_path_SED+set}" = set; then
3721  echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723  # Loop through the user's path and test for sed and gsed.
3724# Then use that list of sed's as ones to test for truncation.
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728  IFS=$as_save_IFS
3729  test -z "$as_dir" && as_dir=.
3730  for lt_ac_prog in sed gsed; do
3731    for ac_exec_ext in '' $ac_executable_extensions; do
3732      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3733        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3734      fi
3735    done
3736  done
3737done
3738lt_ac_max=0
3739lt_ac_count=0
3740# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3741# along with /bin/sed that truncates output.
3742for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3743  test ! -f $lt_ac_sed && continue
3744  cat /dev/null > conftest.in
3745  lt_ac_count=0
3746  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3747  # Check for GNU sed and select it if it is found.
3748  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3749    lt_cv_path_SED=$lt_ac_sed
3750    break
3751  fi
3752  while true; do
3753    cat conftest.in conftest.in >conftest.tmp
3754    mv conftest.tmp conftest.in
3755    cp conftest.in conftest.nl
3756    echo >>conftest.nl
3757    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3758    cmp -s conftest.out conftest.nl || break
3759    # 10000 chars as input seems more than enough
3760    test $lt_ac_count -gt 10 && break
3761    lt_ac_count=`expr $lt_ac_count + 1`
3762    if test $lt_ac_count -gt $lt_ac_max; then
3763      lt_ac_max=$lt_ac_count
3764      lt_cv_path_SED=$lt_ac_sed
3765    fi
3766  done
3767done
3768
3769fi
3770
3771SED=$lt_cv_path_SED
3772{ echo "$as_me:$LINENO: result: $SED" >&5
3773echo "${ECHO_T}$SED" >&6; }
3774
3775{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3776echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3777if test "${ac_cv_path_GREP+set}" = set; then
3778  echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
3780  # Extract the first word of "grep ggrep" to use in msg output
3781if test -z "$GREP"; then
3782set dummy grep ggrep; ac_prog_name=$2
3783if test "${ac_cv_path_GREP+set}" = set; then
3784  echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786  ac_path_GREP_found=false
3787# Loop through the user's path and test for each of PROGNAME-LIST
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3790do
3791  IFS=$as_save_IFS
3792  test -z "$as_dir" && as_dir=.
3793  for ac_prog in grep ggrep; do
3794  for ac_exec_ext in '' $ac_executable_extensions; do
3795    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3796    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3797    # Check for GNU ac_path_GREP and select it if it is found.
3798  # Check for GNU $ac_path_GREP
3799case `"$ac_path_GREP" --version 2>&1` in
3800*GNU*)
3801  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3802*)
3803  ac_count=0
3804  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3805  while :
3806  do
3807    cat "conftest.in" "conftest.in" >"conftest.tmp"
3808    mv "conftest.tmp" "conftest.in"
3809    cp "conftest.in" "conftest.nl"
3810    echo 'GREP' >> "conftest.nl"
3811    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3812    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3813    ac_count=`expr $ac_count + 1`
3814    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3815      # Best one so far, save it but keep looking for a better one
3816      ac_cv_path_GREP="$ac_path_GREP"
3817      ac_path_GREP_max=$ac_count
3818    fi
3819    # 10*(2^10) chars as input seems more than enough
3820    test $ac_count -gt 10 && break
3821  done
3822  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3823esac
3824
3825
3826    $ac_path_GREP_found && break 3
3827  done
3828done
3829
3830done
3831IFS=$as_save_IFS
3832
3833
3834fi
3835
3836GREP="$ac_cv_path_GREP"
3837if test -z "$GREP"; then
3838  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3839echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3840   { (exit 1); exit 1; }; }
3841fi
3842
3843else
3844  ac_cv_path_GREP=$GREP
3845fi
3846
3847
3848fi
3849{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3850echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3851 GREP="$ac_cv_path_GREP"
3852
3853
3854{ echo "$as_me:$LINENO: checking for egrep" >&5
3855echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3856if test "${ac_cv_path_EGREP+set}" = set; then
3857  echo $ECHO_N "(cached) $ECHO_C" >&6
3858else
3859  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3860   then ac_cv_path_EGREP="$GREP -E"
3861   else
3862     # Extract the first word of "egrep" to use in msg output
3863if test -z "$EGREP"; then
3864set dummy egrep; ac_prog_name=$2
3865if test "${ac_cv_path_EGREP+set}" = set; then
3866  echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868  ac_path_EGREP_found=false
3869# Loop through the user's path and test for each of PROGNAME-LIST
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872do
3873  IFS=$as_save_IFS
3874  test -z "$as_dir" && as_dir=.
3875  for ac_prog in egrep; do
3876  for ac_exec_ext in '' $ac_executable_extensions; do
3877    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3878    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3879    # Check for GNU ac_path_EGREP and select it if it is found.
3880  # Check for GNU $ac_path_EGREP
3881case `"$ac_path_EGREP" --version 2>&1` in
3882*GNU*)
3883  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3884*)
3885  ac_count=0
3886  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3887  while :
3888  do
3889    cat "conftest.in" "conftest.in" >"conftest.tmp"
3890    mv "conftest.tmp" "conftest.in"
3891    cp "conftest.in" "conftest.nl"
3892    echo 'EGREP' >> "conftest.nl"
3893    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895    ac_count=`expr $ac_count + 1`
3896    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897      # Best one so far, save it but keep looking for a better one
3898      ac_cv_path_EGREP="$ac_path_EGREP"
3899      ac_path_EGREP_max=$ac_count
3900    fi
3901    # 10*(2^10) chars as input seems more than enough
3902    test $ac_count -gt 10 && break
3903  done
3904  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905esac
3906
3907
3908    $ac_path_EGREP_found && break 3
3909  done
3910done
3911
3912done
3913IFS=$as_save_IFS
3914
3915
3916fi
3917
3918EGREP="$ac_cv_path_EGREP"
3919if test -z "$EGREP"; then
3920  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3921echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3922   { (exit 1); exit 1; }; }
3923fi
3924
3925else
3926  ac_cv_path_EGREP=$EGREP
3927fi
3928
3929
3930   fi
3931fi
3932{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3933echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3934 EGREP="$ac_cv_path_EGREP"
3935
3936
3937
3938# Check whether --with-gnu-ld was given.
3939if test "${with_gnu_ld+set}" = set; then
3940  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3941else
3942  with_gnu_ld=no
3943fi
3944
3945ac_prog=ld
3946if test "$GCC" = yes; then
3947  # Check if gcc -print-prog-name=ld gives a path.
3948  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3949echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3950  case $host in
3951  *-*-mingw*)
3952    # gcc leaves a trailing carriage return which upsets mingw
3953    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3954  *)
3955    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3956  esac
3957  case $ac_prog in
3958    # Accept absolute paths.
3959    [\\/]* | ?:[\\/]*)
3960      re_direlt='/[^/][^/]*/\.\./'
3961      # Canonicalize the pathname of ld
3962      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3963      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3964	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3965      done
3966      test -z "$LD" && LD="$ac_prog"
3967      ;;
3968  "")
3969    # If it fails, then pretend we aren't using GCC.
3970    ac_prog=ld
3971    ;;
3972  *)
3973    # If it is relative, then search for the first ld in PATH.
3974    with_gnu_ld=unknown
3975    ;;
3976  esac
3977elif test "$with_gnu_ld" = yes; then
3978  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3979echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3980else
3981  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3982echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3983fi
3984if test "${lt_cv_path_LD+set}" = set; then
3985  echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987  if test -z "$LD"; then
3988  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3989  for ac_dir in $PATH; do
3990    IFS="$lt_save_ifs"
3991    test -z "$ac_dir" && ac_dir=.
3992    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3993      lt_cv_path_LD="$ac_dir/$ac_prog"
3994      # Check to see if the program is GNU ld.  I'd rather use --version,
3995      # but apparently some variants of GNU ld only accept -v.
3996      # Break only if it was the GNU/non-GNU ld that we prefer.
3997      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3998      *GNU* | *'with BFD'*)
3999	test "$with_gnu_ld" != no && break
4000	;;
4001      *)
4002	test "$with_gnu_ld" != yes && break
4003	;;
4004      esac
4005    fi
4006  done
4007  IFS="$lt_save_ifs"
4008else
4009  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4010fi
4011fi
4012
4013LD="$lt_cv_path_LD"
4014if test -n "$LD"; then
4015  { echo "$as_me:$LINENO: result: $LD" >&5
4016echo "${ECHO_T}$LD" >&6; }
4017else
4018  { echo "$as_me:$LINENO: result: no" >&5
4019echo "${ECHO_T}no" >&6; }
4020fi
4021test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4022echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4023   { (exit 1); exit 1; }; }
4024{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4025echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4026if test "${lt_cv_prog_gnu_ld+set}" = set; then
4027  echo $ECHO_N "(cached) $ECHO_C" >&6
4028else
4029  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4030case `$LD -v 2>&1 </dev/null` in
4031*GNU* | *'with BFD'*)
4032  lt_cv_prog_gnu_ld=yes
4033  ;;
4034*)
4035  lt_cv_prog_gnu_ld=no
4036  ;;
4037esac
4038fi
4039{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4040echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4041with_gnu_ld=$lt_cv_prog_gnu_ld
4042
4043
4044{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4045echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4046if test "${lt_cv_ld_reload_flag+set}" = set; then
4047  echo $ECHO_N "(cached) $ECHO_C" >&6
4048else
4049  lt_cv_ld_reload_flag='-r'
4050fi
4051{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4052echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4053reload_flag=$lt_cv_ld_reload_flag
4054case $reload_flag in
4055"" | " "*) ;;
4056*) reload_flag=" $reload_flag" ;;
4057esac
4058reload_cmds='$LD$reload_flag -o $output$reload_objs'
4059case $host_os in
4060  darwin*)
4061    if test "$GCC" = yes; then
4062      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4063    else
4064      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4065    fi
4066    ;;
4067esac
4068
4069{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4070echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4071if test "${lt_cv_path_NM+set}" = set; then
4072  echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074  if test -n "$NM"; then
4075  # Let the user override the test.
4076  lt_cv_path_NM="$NM"
4077else
4078  lt_nm_to_check="${ac_tool_prefix}nm"
4079  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4080    lt_nm_to_check="$lt_nm_to_check nm"
4081  fi
4082  for lt_tmp_nm in $lt_nm_to_check; do
4083    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4084    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4085      IFS="$lt_save_ifs"
4086      test -z "$ac_dir" && ac_dir=.
4087      tmp_nm="$ac_dir/$lt_tmp_nm"
4088      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4089	# Check to see if the nm accepts a BSD-compat flag.
4090	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4091	#   nm: unknown option "B" ignored
4092	# Tru64's nm complains that /dev/null is an invalid object file
4093	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4094	*/dev/null* | *'Invalid file or object type'*)
4095	  lt_cv_path_NM="$tmp_nm -B"
4096	  break
4097	  ;;
4098	*)
4099	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4100	  */dev/null*)
4101	    lt_cv_path_NM="$tmp_nm -p"
4102	    break
4103	    ;;
4104	  *)
4105	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4106	    continue # so that we can try to find one that supports BSD flags
4107	    ;;
4108	  esac
4109	  ;;
4110	esac
4111      fi
4112    done
4113    IFS="$lt_save_ifs"
4114  done
4115  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4116fi
4117fi
4118{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4119echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4120NM="$lt_cv_path_NM"
4121
4122{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4123echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4124LN_S=$as_ln_s
4125if test "$LN_S" = "ln -s"; then
4126  { echo "$as_me:$LINENO: result: yes" >&5
4127echo "${ECHO_T}yes" >&6; }
4128else
4129  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4130echo "${ECHO_T}no, using $LN_S" >&6; }
4131fi
4132
4133{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4134echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4135if test "${lt_cv_deplibs_check_method+set}" = set; then
4136  echo $ECHO_N "(cached) $ECHO_C" >&6
4137else
4138  lt_cv_file_magic_cmd='$MAGIC_CMD'
4139lt_cv_file_magic_test_file=
4140lt_cv_deplibs_check_method='unknown'
4141# Need to set the preceding variable on all platforms that support
4142# interlibrary dependencies.
4143# 'none' -- dependencies not supported.
4144# `unknown' -- same as none, but documents that we really don't know.
4145# 'pass_all' -- all dependencies passed with no checks.
4146# 'test_compile' -- check by making test program.
4147# 'file_magic [[regex]]' -- check by looking for files in library path
4148# which responds to the $file_magic_cmd with a given extended regex.
4149# If you have `file' or equivalent on your system and you're not sure
4150# whether `pass_all' will *always* work, you probably want this one.
4151
4152case $host_os in
4153aix4* | aix5*)
4154  lt_cv_deplibs_check_method=pass_all
4155  ;;
4156
4157beos*)
4158  lt_cv_deplibs_check_method=pass_all
4159  ;;
4160
4161bsdi[45]*)
4162  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4163  lt_cv_file_magic_cmd='/usr/bin/file -L'
4164  lt_cv_file_magic_test_file=/shlib/libc.so
4165  ;;
4166
4167cygwin*)
4168  # func_win32_libid is a shell function defined in ltmain.sh
4169  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4170  lt_cv_file_magic_cmd='func_win32_libid'
4171  ;;
4172
4173mingw* | pw32*)
4174  # Base MSYS/MinGW do not provide the 'file' command needed by
4175  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4176  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4177  lt_cv_file_magic_cmd='$OBJDUMP -f'
4178  ;;
4179
4180darwin* | rhapsody*)
4181  lt_cv_deplibs_check_method=pass_all
4182  ;;
4183
4184freebsd* | kfreebsd*-gnu | dragonfly*)
4185  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4186    case $host_cpu in
4187    i*86 )
4188      # Not sure whether the presence of OpenBSD here was a mistake.
4189      # Let's accept both of them until this is cleared up.
4190      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4191      lt_cv_file_magic_cmd=/usr/bin/file
4192      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4193      ;;
4194    esac
4195  else
4196    lt_cv_deplibs_check_method=pass_all
4197  fi
4198  ;;
4199
4200gnu*)
4201  lt_cv_deplibs_check_method=pass_all
4202  ;;
4203
4204hpux10.20* | hpux11*)
4205  lt_cv_file_magic_cmd=/usr/bin/file
4206  case $host_cpu in
4207  ia64*)
4208    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4209    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4210    ;;
4211  hppa*64*)
4212    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]'
4213    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4214    ;;
4215  *)
4216    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4217    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4218    ;;
4219  esac
4220  ;;
4221
4222interix3*)
4223  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4224  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4225  ;;
4226
4227irix5* | irix6* | nonstopux*)
4228  case $LD in
4229  *-32|*"-32 ") libmagic=32-bit;;
4230  *-n32|*"-n32 ") libmagic=N32;;
4231  *-64|*"-64 ") libmagic=64-bit;;
4232  *) libmagic=never-match;;
4233  esac
4234  lt_cv_deplibs_check_method=pass_all
4235  ;;
4236
4237# This must be Linux ELF.
4238linux*)
4239  lt_cv_deplibs_check_method=pass_all
4240  ;;
4241
4242netbsd*)
4243  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4244    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4245  else
4246    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4247  fi
4248  ;;
4249
4250newos6*)
4251  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4252  lt_cv_file_magic_cmd=/usr/bin/file
4253  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4254  ;;
4255
4256nto-qnx*)
4257  lt_cv_deplibs_check_method=unknown
4258  ;;
4259
4260openbsd*)
4261  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4262    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4263  else
4264    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4265  fi
4266  ;;
4267
4268osf3* | osf4* | osf5*)
4269  lt_cv_deplibs_check_method=pass_all
4270  ;;
4271
4272solaris*)
4273  lt_cv_deplibs_check_method=pass_all
4274  ;;
4275
4276sysv4 | sysv4.3*)
4277  case $host_vendor in
4278  motorola)
4279    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]'
4280    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4281    ;;
4282  ncr)
4283    lt_cv_deplibs_check_method=pass_all
4284    ;;
4285  sequent)
4286    lt_cv_file_magic_cmd='/bin/file'
4287    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4288    ;;
4289  sni)
4290    lt_cv_file_magic_cmd='/bin/file'
4291    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4292    lt_cv_file_magic_test_file=/lib/libc.so
4293    ;;
4294  siemens)
4295    lt_cv_deplibs_check_method=pass_all
4296    ;;
4297  pc)
4298    lt_cv_deplibs_check_method=pass_all
4299    ;;
4300  esac
4301  ;;
4302
4303sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4304  lt_cv_deplibs_check_method=pass_all
4305  ;;
4306esac
4307
4308fi
4309{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4310echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4311file_magic_cmd=$lt_cv_file_magic_cmd
4312deplibs_check_method=$lt_cv_deplibs_check_method
4313test -z "$deplibs_check_method" && deplibs_check_method=unknown
4314
4315
4316
4317
4318# If no C compiler was specified, use CC.
4319LTCC=${LTCC-"$CC"}
4320
4321# If no C compiler flags were specified, use CFLAGS.
4322LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4323
4324# Allow CC to be a program name with arguments.
4325compiler=$CC
4326
4327
4328# Check whether --enable-libtool-lock was given.
4329if test "${enable_libtool_lock+set}" = set; then
4330  enableval=$enable_libtool_lock;
4331fi
4332
4333test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4334
4335# Some flags need to be propagated to the compiler or linker for good
4336# libtool support.
4337case $host in
4338ia64-*-hpux*)
4339  # Find out which ABI we are using.
4340  echo 'int i;' > conftest.$ac_ext
4341  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342  (eval $ac_compile) 2>&5
4343  ac_status=$?
4344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345  (exit $ac_status); }; then
4346    case `/usr/bin/file conftest.$ac_objext` in
4347    *ELF-32*)
4348      HPUX_IA64_MODE="32"
4349      ;;
4350    *ELF-64*)
4351      HPUX_IA64_MODE="64"
4352      ;;
4353    esac
4354  fi
4355  rm -rf conftest*
4356  ;;
4357*-*-irix6*)
4358  # Find out which ABI we are using.
4359  echo '#line 4359 "configure"' > conftest.$ac_ext
4360  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361  (eval $ac_compile) 2>&5
4362  ac_status=$?
4363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364  (exit $ac_status); }; then
4365   if test "$lt_cv_prog_gnu_ld" = yes; then
4366    case `/usr/bin/file conftest.$ac_objext` in
4367    *32-bit*)
4368      LD="${LD-ld} -melf32bsmip"
4369      ;;
4370    *N32*)
4371      LD="${LD-ld} -melf32bmipn32"
4372      ;;
4373    *64-bit*)
4374      LD="${LD-ld} -melf64bmip"
4375      ;;
4376    esac
4377   else
4378    case `/usr/bin/file conftest.$ac_objext` in
4379    *32-bit*)
4380      LD="${LD-ld} -32"
4381      ;;
4382    *N32*)
4383      LD="${LD-ld} -n32"
4384      ;;
4385    *64-bit*)
4386      LD="${LD-ld} -64"
4387      ;;
4388    esac
4389   fi
4390  fi
4391  rm -rf conftest*
4392  ;;
4393
4394x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4395  # Find out which ABI we are using.
4396  echo 'int i;' > conftest.$ac_ext
4397  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398  (eval $ac_compile) 2>&5
4399  ac_status=$?
4400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401  (exit $ac_status); }; then
4402    case `/usr/bin/file conftest.o` in
4403    *32-bit*)
4404      case $host in
4405        x86_64-*linux*)
4406          LD="${LD-ld} -m elf_i386"
4407          ;;
4408        ppc64-*linux*|powerpc64-*linux*)
4409          LD="${LD-ld} -m elf32ppclinux"
4410          ;;
4411        s390x-*linux*)
4412          LD="${LD-ld} -m elf_s390"
4413          ;;
4414        sparc64-*linux*)
4415          LD="${LD-ld} -m elf32_sparc"
4416          ;;
4417      esac
4418      ;;
4419    *64-bit*)
4420      case $host in
4421        x86_64-*linux*)
4422          LD="${LD-ld} -m elf_x86_64"
4423          ;;
4424        ppc*-*linux*|powerpc*-*linux*)
4425          LD="${LD-ld} -m elf64ppc"
4426          ;;
4427        s390*-*linux*)
4428          LD="${LD-ld} -m elf64_s390"
4429          ;;
4430        sparc*-*linux*)
4431          LD="${LD-ld} -m elf64_sparc"
4432          ;;
4433      esac
4434      ;;
4435    esac
4436  fi
4437  rm -rf conftest*
4438  ;;
4439
4440*-*-sco3.2v5*)
4441  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4442  SAVE_CFLAGS="$CFLAGS"
4443  CFLAGS="$CFLAGS -belf"
4444  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4445echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4446if test "${lt_cv_cc_needs_belf+set}" = set; then
4447  echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449  ac_ext=c
4450ac_cpp='$CPP $CPPFLAGS'
4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455     cat >conftest.$ac_ext <<_ACEOF
4456/* confdefs.h.  */
4457_ACEOF
4458cat confdefs.h >>conftest.$ac_ext
4459cat >>conftest.$ac_ext <<_ACEOF
4460/* end confdefs.h.  */
4461
4462int
4463main ()
4464{
4465
4466  ;
4467  return 0;
4468}
4469_ACEOF
4470rm -f conftest.$ac_objext conftest$ac_exeext
4471if { (ac_try="$ac_link"
4472case "(($ac_try" in
4473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474  *) ac_try_echo=$ac_try;;
4475esac
4476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477  (eval "$ac_link") 2>conftest.er1
4478  ac_status=$?
4479  grep -v '^ *+' conftest.er1 >conftest.err
4480  rm -f conftest.er1
4481  cat conftest.err >&5
4482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483  (exit $ac_status); } && {
4484	 test -z "$ac_c_werror_flag" ||
4485	 test ! -s conftest.err
4486       } && test -s conftest$ac_exeext &&
4487       $as_test_x conftest$ac_exeext; then
4488  lt_cv_cc_needs_belf=yes
4489else
4490  echo "$as_me: failed program was:" >&5
4491sed 's/^/| /' conftest.$ac_ext >&5
4492
4493	lt_cv_cc_needs_belf=no
4494fi
4495
4496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4497      conftest$ac_exeext conftest.$ac_ext
4498     ac_ext=c
4499ac_cpp='$CPP $CPPFLAGS'
4500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503
4504fi
4505{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4506echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4507  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4508    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4509    CFLAGS="$SAVE_CFLAGS"
4510  fi
4511  ;;
4512sparc*-*solaris*)
4513  # Find out which ABI we are using.
4514  echo 'int i;' > conftest.$ac_ext
4515  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4516  (eval $ac_compile) 2>&5
4517  ac_status=$?
4518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519  (exit $ac_status); }; then
4520    case `/usr/bin/file conftest.o` in
4521    *64-bit*)
4522      case $lt_cv_prog_gnu_ld in
4523      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4524      *)    LD="${LD-ld} -64" ;;
4525      esac
4526      ;;
4527    esac
4528  fi
4529  rm -rf conftest*
4530  ;;
4531
4532
4533esac
4534
4535need_locks="$enable_libtool_lock"
4536
4537
4538ac_ext=c
4539ac_cpp='$CPP $CPPFLAGS'
4540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4544echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4545# On Suns, sometimes $CPP names a directory.
4546if test -n "$CPP" && test -d "$CPP"; then
4547  CPP=
4548fi
4549if test -z "$CPP"; then
4550  if test "${ac_cv_prog_CPP+set}" = set; then
4551  echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
4553      # Double quotes because CPP needs to be expanded
4554    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4555    do
4556      ac_preproc_ok=false
4557for ac_c_preproc_warn_flag in '' yes
4558do
4559  # Use a header file that comes with gcc, so configuring glibc
4560  # with a fresh cross-compiler works.
4561  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4562  # <limits.h> exists even on freestanding compilers.
4563  # On the NeXT, cc -E runs the code through the compiler's parser,
4564  # not just through cpp. "Syntax error" is here to catch this case.
4565  cat >conftest.$ac_ext <<_ACEOF
4566/* confdefs.h.  */
4567_ACEOF
4568cat confdefs.h >>conftest.$ac_ext
4569cat >>conftest.$ac_ext <<_ACEOF
4570/* end confdefs.h.  */
4571#ifdef __STDC__
4572# include <limits.h>
4573#else
4574# include <assert.h>
4575#endif
4576		     Syntax error
4577_ACEOF
4578if { (ac_try="$ac_cpp conftest.$ac_ext"
4579case "(($ac_try" in
4580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581  *) ac_try_echo=$ac_try;;
4582esac
4583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4585  ac_status=$?
4586  grep -v '^ *+' conftest.er1 >conftest.err
4587  rm -f conftest.er1
4588  cat conftest.err >&5
4589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590  (exit $ac_status); } >/dev/null && {
4591	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4592	 test ! -s conftest.err
4593       }; then
4594  :
4595else
4596  echo "$as_me: failed program was:" >&5
4597sed 's/^/| /' conftest.$ac_ext >&5
4598
4599  # Broken: fails on valid input.
4600continue
4601fi
4602
4603rm -f conftest.err conftest.$ac_ext
4604
4605  # OK, works on sane cases.  Now check whether nonexistent headers
4606  # can be detected and how.
4607  cat >conftest.$ac_ext <<_ACEOF
4608/* confdefs.h.  */
4609_ACEOF
4610cat confdefs.h >>conftest.$ac_ext
4611cat >>conftest.$ac_ext <<_ACEOF
4612/* end confdefs.h.  */
4613#include <ac_nonexistent.h>
4614_ACEOF
4615if { (ac_try="$ac_cpp conftest.$ac_ext"
4616case "(($ac_try" in
4617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618  *) ac_try_echo=$ac_try;;
4619esac
4620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4622  ac_status=$?
4623  grep -v '^ *+' conftest.er1 >conftest.err
4624  rm -f conftest.er1
4625  cat conftest.err >&5
4626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627  (exit $ac_status); } >/dev/null && {
4628	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4629	 test ! -s conftest.err
4630       }; then
4631  # Broken: success on invalid input.
4632continue
4633else
4634  echo "$as_me: failed program was:" >&5
4635sed 's/^/| /' conftest.$ac_ext >&5
4636
4637  # Passes both tests.
4638ac_preproc_ok=:
4639break
4640fi
4641
4642rm -f conftest.err conftest.$ac_ext
4643
4644done
4645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4646rm -f conftest.err conftest.$ac_ext
4647if $ac_preproc_ok; then
4648  break
4649fi
4650
4651    done
4652    ac_cv_prog_CPP=$CPP
4653
4654fi
4655  CPP=$ac_cv_prog_CPP
4656else
4657  ac_cv_prog_CPP=$CPP
4658fi
4659{ echo "$as_me:$LINENO: result: $CPP" >&5
4660echo "${ECHO_T}$CPP" >&6; }
4661ac_preproc_ok=false
4662for ac_c_preproc_warn_flag in '' yes
4663do
4664  # Use a header file that comes with gcc, so configuring glibc
4665  # with a fresh cross-compiler works.
4666  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4667  # <limits.h> exists even on freestanding compilers.
4668  # On the NeXT, cc -E runs the code through the compiler's parser,
4669  # not just through cpp. "Syntax error" is here to catch this case.
4670  cat >conftest.$ac_ext <<_ACEOF
4671/* confdefs.h.  */
4672_ACEOF
4673cat confdefs.h >>conftest.$ac_ext
4674cat >>conftest.$ac_ext <<_ACEOF
4675/* end confdefs.h.  */
4676#ifdef __STDC__
4677# include <limits.h>
4678#else
4679# include <assert.h>
4680#endif
4681		     Syntax error
4682_ACEOF
4683if { (ac_try="$ac_cpp conftest.$ac_ext"
4684case "(($ac_try" in
4685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686  *) ac_try_echo=$ac_try;;
4687esac
4688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4690  ac_status=$?
4691  grep -v '^ *+' conftest.er1 >conftest.err
4692  rm -f conftest.er1
4693  cat conftest.err >&5
4694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695  (exit $ac_status); } >/dev/null && {
4696	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4697	 test ! -s conftest.err
4698       }; then
4699  :
4700else
4701  echo "$as_me: failed program was:" >&5
4702sed 's/^/| /' conftest.$ac_ext >&5
4703
4704  # Broken: fails on valid input.
4705continue
4706fi
4707
4708rm -f conftest.err conftest.$ac_ext
4709
4710  # OK, works on sane cases.  Now check whether nonexistent headers
4711  # can be detected and how.
4712  cat >conftest.$ac_ext <<_ACEOF
4713/* confdefs.h.  */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h.  */
4718#include <ac_nonexistent.h>
4719_ACEOF
4720if { (ac_try="$ac_cpp conftest.$ac_ext"
4721case "(($ac_try" in
4722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723  *) ac_try_echo=$ac_try;;
4724esac
4725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4727  ac_status=$?
4728  grep -v '^ *+' conftest.er1 >conftest.err
4729  rm -f conftest.er1
4730  cat conftest.err >&5
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); } >/dev/null && {
4733	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4734	 test ! -s conftest.err
4735       }; then
4736  # Broken: success on invalid input.
4737continue
4738else
4739  echo "$as_me: failed program was:" >&5
4740sed 's/^/| /' conftest.$ac_ext >&5
4741
4742  # Passes both tests.
4743ac_preproc_ok=:
4744break
4745fi
4746
4747rm -f conftest.err conftest.$ac_ext
4748
4749done
4750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4751rm -f conftest.err conftest.$ac_ext
4752if $ac_preproc_ok; then
4753  :
4754else
4755  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4756See \`config.log' for more details." >&5
4757echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4758See \`config.log' for more details." >&2;}
4759   { (exit 1); exit 1; }; }
4760fi
4761
4762ac_ext=c
4763ac_cpp='$CPP $CPPFLAGS'
4764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767
4768
4769{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4770echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4771if test "${ac_cv_header_stdc+set}" = set; then
4772  echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774  cat >conftest.$ac_ext <<_ACEOF
4775/* confdefs.h.  */
4776_ACEOF
4777cat confdefs.h >>conftest.$ac_ext
4778cat >>conftest.$ac_ext <<_ACEOF
4779/* end confdefs.h.  */
4780#include <stdlib.h>
4781#include <stdarg.h>
4782#include <string.h>
4783#include <float.h>
4784
4785int
4786main ()
4787{
4788
4789  ;
4790  return 0;
4791}
4792_ACEOF
4793rm -f conftest.$ac_objext
4794if { (ac_try="$ac_compile"
4795case "(($ac_try" in
4796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797  *) ac_try_echo=$ac_try;;
4798esac
4799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800  (eval "$ac_compile") 2>conftest.er1
4801  ac_status=$?
4802  grep -v '^ *+' conftest.er1 >conftest.err
4803  rm -f conftest.er1
4804  cat conftest.err >&5
4805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806  (exit $ac_status); } && {
4807	 test -z "$ac_c_werror_flag" ||
4808	 test ! -s conftest.err
4809       } && test -s conftest.$ac_objext; then
4810  ac_cv_header_stdc=yes
4811else
4812  echo "$as_me: failed program was:" >&5
4813sed 's/^/| /' conftest.$ac_ext >&5
4814
4815	ac_cv_header_stdc=no
4816fi
4817
4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819
4820if test $ac_cv_header_stdc = yes; then
4821  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4822  cat >conftest.$ac_ext <<_ACEOF
4823/* confdefs.h.  */
4824_ACEOF
4825cat confdefs.h >>conftest.$ac_ext
4826cat >>conftest.$ac_ext <<_ACEOF
4827/* end confdefs.h.  */
4828#include <string.h>
4829
4830_ACEOF
4831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4832  $EGREP "memchr" >/dev/null 2>&1; then
4833  :
4834else
4835  ac_cv_header_stdc=no
4836fi
4837rm -f conftest*
4838
4839fi
4840
4841if test $ac_cv_header_stdc = yes; then
4842  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4843  cat >conftest.$ac_ext <<_ACEOF
4844/* confdefs.h.  */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h.  */
4849#include <stdlib.h>
4850
4851_ACEOF
4852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4853  $EGREP "free" >/dev/null 2>&1; then
4854  :
4855else
4856  ac_cv_header_stdc=no
4857fi
4858rm -f conftest*
4859
4860fi
4861
4862if test $ac_cv_header_stdc = yes; then
4863  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4864  if test "$cross_compiling" = yes; then
4865  :
4866else
4867  cat >conftest.$ac_ext <<_ACEOF
4868/* confdefs.h.  */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h.  */
4873#include <ctype.h>
4874#include <stdlib.h>
4875#if ((' ' & 0x0FF) == 0x020)
4876# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4877# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4878#else
4879# define ISLOWER(c) \
4880		   (('a' <= (c) && (c) <= 'i') \
4881		     || ('j' <= (c) && (c) <= 'r') \
4882		     || ('s' <= (c) && (c) <= 'z'))
4883# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4884#endif
4885
4886#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4887int
4888main ()
4889{
4890  int i;
4891  for (i = 0; i < 256; i++)
4892    if (XOR (islower (i), ISLOWER (i))
4893	|| toupper (i) != TOUPPER (i))
4894      return 2;
4895  return 0;
4896}
4897_ACEOF
4898rm -f conftest$ac_exeext
4899if { (ac_try="$ac_link"
4900case "(($ac_try" in
4901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902  *) ac_try_echo=$ac_try;;
4903esac
4904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905  (eval "$ac_link") 2>&5
4906  ac_status=$?
4907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4909  { (case "(($ac_try" in
4910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911  *) ac_try_echo=$ac_try;;
4912esac
4913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4914  (eval "$ac_try") 2>&5
4915  ac_status=$?
4916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917  (exit $ac_status); }; }; then
4918  :
4919else
4920  echo "$as_me: program exited with status $ac_status" >&5
4921echo "$as_me: failed program was:" >&5
4922sed 's/^/| /' conftest.$ac_ext >&5
4923
4924( exit $ac_status )
4925ac_cv_header_stdc=no
4926fi
4927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4928fi
4929
4930
4931fi
4932fi
4933{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4934echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4935if test $ac_cv_header_stdc = yes; then
4936
4937cat >>confdefs.h <<\_ACEOF
4938#define STDC_HEADERS 1
4939_ACEOF
4940
4941fi
4942
4943# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4954		  inttypes.h stdint.h unistd.h
4955do
4956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4957{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4960  echo $ECHO_N "(cached) $ECHO_C" >&6
4961else
4962  cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h.  */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h.  */
4968$ac_includes_default
4969
4970#include <$ac_header>
4971_ACEOF
4972rm -f conftest.$ac_objext
4973if { (ac_try="$ac_compile"
4974case "(($ac_try" in
4975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976  *) ac_try_echo=$ac_try;;
4977esac
4978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979  (eval "$ac_compile") 2>conftest.er1
4980  ac_status=$?
4981  grep -v '^ *+' conftest.er1 >conftest.err
4982  rm -f conftest.er1
4983  cat conftest.err >&5
4984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); } && {
4986	 test -z "$ac_c_werror_flag" ||
4987	 test ! -s conftest.err
4988       } && test -s conftest.$ac_objext; then
4989  eval "$as_ac_Header=yes"
4990else
4991  echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994	eval "$as_ac_Header=no"
4995fi
4996
4997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998fi
4999ac_res=`eval echo '${'$as_ac_Header'}'`
5000	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5001echo "${ECHO_T}$ac_res" >&6; }
5002if test `eval echo '${'$as_ac_Header'}'` = yes; then
5003  cat >>confdefs.h <<_ACEOF
5004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5005_ACEOF
5006
5007fi
5008
5009done
5010
5011
5012
5013for ac_header in dlfcn.h
5014do
5015as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5017  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5020  echo $ECHO_N "(cached) $ECHO_C" >&6
5021fi
5022ac_res=`eval echo '${'$as_ac_Header'}'`
5023	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5024echo "${ECHO_T}$ac_res" >&6; }
5025else
5026  # Is the header compilable?
5027{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5028echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5029cat >conftest.$ac_ext <<_ACEOF
5030/* confdefs.h.  */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h.  */
5035$ac_includes_default
5036#include <$ac_header>
5037_ACEOF
5038rm -f conftest.$ac_objext
5039if { (ac_try="$ac_compile"
5040case "(($ac_try" in
5041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042  *) ac_try_echo=$ac_try;;
5043esac
5044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045  (eval "$ac_compile") 2>conftest.er1
5046  ac_status=$?
5047  grep -v '^ *+' conftest.er1 >conftest.err
5048  rm -f conftest.er1
5049  cat conftest.err >&5
5050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051  (exit $ac_status); } && {
5052	 test -z "$ac_c_werror_flag" ||
5053	 test ! -s conftest.err
5054       } && test -s conftest.$ac_objext; then
5055  ac_header_compiler=yes
5056else
5057  echo "$as_me: failed program was:" >&5
5058sed 's/^/| /' conftest.$ac_ext >&5
5059
5060	ac_header_compiler=no
5061fi
5062
5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5065echo "${ECHO_T}$ac_header_compiler" >&6; }
5066
5067# Is the header present?
5068{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5069echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5070cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h.  */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h.  */
5076#include <$ac_header>
5077_ACEOF
5078if { (ac_try="$ac_cpp conftest.$ac_ext"
5079case "(($ac_try" in
5080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081  *) ac_try_echo=$ac_try;;
5082esac
5083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5085  ac_status=$?
5086  grep -v '^ *+' conftest.er1 >conftest.err
5087  rm -f conftest.er1
5088  cat conftest.err >&5
5089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090  (exit $ac_status); } >/dev/null && {
5091	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5092	 test ! -s conftest.err
5093       }; then
5094  ac_header_preproc=yes
5095else
5096  echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099  ac_header_preproc=no
5100fi
5101
5102rm -f conftest.err conftest.$ac_ext
5103{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5104echo "${ECHO_T}$ac_header_preproc" >&6; }
5105
5106# So?  What about this header?
5107case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5108  yes:no: )
5109    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5110echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5111    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5112echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5113    ac_header_preproc=yes
5114    ;;
5115  no:yes:* )
5116    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5117echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5118    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5119echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5120    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5121echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5122    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5123echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5124    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5125echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5126    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5127echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5128    ( cat <<\_ASBOX
5129## ---------------------------------------------------------------------- ##
5130## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5131## ---------------------------------------------------------------------- ##
5132_ASBOX
5133     ) | sed "s/^/$as_me: WARNING:     /" >&2
5134    ;;
5135esac
5136{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5139  echo $ECHO_N "(cached) $ECHO_C" >&6
5140else
5141  eval "$as_ac_Header=\$ac_header_preproc"
5142fi
5143ac_res=`eval echo '${'$as_ac_Header'}'`
5144	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5145echo "${ECHO_T}$ac_res" >&6; }
5146
5147fi
5148if test `eval echo '${'$as_ac_Header'}'` = yes; then
5149  cat >>confdefs.h <<_ACEOF
5150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5151_ACEOF
5152
5153fi
5154
5155done
5156
5157ac_ext=cpp
5158ac_cpp='$CXXCPP $CPPFLAGS'
5159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5162if test -z "$CXX"; then
5163  if test -n "$CCC"; then
5164    CXX=$CCC
5165  else
5166    if test -n "$ac_tool_prefix"; then
5167  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5168  do
5169    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5170set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5171{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5173if test "${ac_cv_prog_CXX+set}" = set; then
5174  echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176  if test -n "$CXX"; then
5177  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182  IFS=$as_save_IFS
5183  test -z "$as_dir" && as_dir=.
5184  for ac_exec_ext in '' $ac_executable_extensions; do
5185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188    break 2
5189  fi
5190done
5191done
5192IFS=$as_save_IFS
5193
5194fi
5195fi
5196CXX=$ac_cv_prog_CXX
5197if test -n "$CXX"; then
5198  { echo "$as_me:$LINENO: result: $CXX" >&5
5199echo "${ECHO_T}$CXX" >&6; }
5200else
5201  { echo "$as_me:$LINENO: result: no" >&5
5202echo "${ECHO_T}no" >&6; }
5203fi
5204
5205
5206    test -n "$CXX" && break
5207  done
5208fi
5209if test -z "$CXX"; then
5210  ac_ct_CXX=$CXX
5211  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5212do
5213  # Extract the first word of "$ac_prog", so it can be a program name with args.
5214set dummy $ac_prog; ac_word=$2
5215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5217if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5218  echo $ECHO_N "(cached) $ECHO_C" >&6
5219else
5220  if test -n "$ac_ct_CXX"; then
5221  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5222else
5223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in $PATH
5225do
5226  IFS=$as_save_IFS
5227  test -z "$as_dir" && as_dir=.
5228  for ac_exec_ext in '' $ac_executable_extensions; do
5229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230    ac_cv_prog_ac_ct_CXX="$ac_prog"
5231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232    break 2
5233  fi
5234done
5235done
5236IFS=$as_save_IFS
5237
5238fi
5239fi
5240ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5241if test -n "$ac_ct_CXX"; then
5242  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5243echo "${ECHO_T}$ac_ct_CXX" >&6; }
5244else
5245  { echo "$as_me:$LINENO: result: no" >&5
5246echo "${ECHO_T}no" >&6; }
5247fi
5248
5249
5250  test -n "$ac_ct_CXX" && break
5251done
5252
5253  if test "x$ac_ct_CXX" = x; then
5254    CXX="g++"
5255  else
5256    case $cross_compiling:$ac_tool_warned in
5257yes:)
5258{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5259whose name does not start with the host triplet.  If you think this
5260configuration is useful to you, please write to autoconf@gnu.org." >&5
5261echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5262whose name does not start with the host triplet.  If you think this
5263configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5264ac_tool_warned=yes ;;
5265esac
5266    CXX=$ac_ct_CXX
5267  fi
5268fi
5269
5270  fi
5271fi
5272# Provide some information about the compiler.
5273echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5274ac_compiler=`set X $ac_compile; echo $2`
5275{ (ac_try="$ac_compiler --version >&5"
5276case "(($ac_try" in
5277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278  *) ac_try_echo=$ac_try;;
5279esac
5280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281  (eval "$ac_compiler --version >&5") 2>&5
5282  ac_status=$?
5283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284  (exit $ac_status); }
5285{ (ac_try="$ac_compiler -v >&5"
5286case "(($ac_try" in
5287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288  *) ac_try_echo=$ac_try;;
5289esac
5290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291  (eval "$ac_compiler -v >&5") 2>&5
5292  ac_status=$?
5293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294  (exit $ac_status); }
5295{ (ac_try="$ac_compiler -V >&5"
5296case "(($ac_try" in
5297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298  *) ac_try_echo=$ac_try;;
5299esac
5300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301  (eval "$ac_compiler -V >&5") 2>&5
5302  ac_status=$?
5303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304  (exit $ac_status); }
5305
5306{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5307echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5308if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5309  echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
5311  cat >conftest.$ac_ext <<_ACEOF
5312/* confdefs.h.  */
5313_ACEOF
5314cat confdefs.h >>conftest.$ac_ext
5315cat >>conftest.$ac_ext <<_ACEOF
5316/* end confdefs.h.  */
5317
5318int
5319main ()
5320{
5321#ifndef __GNUC__
5322       choke me
5323#endif
5324
5325  ;
5326  return 0;
5327}
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (ac_try="$ac_compile"
5331case "(($ac_try" in
5332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333  *) ac_try_echo=$ac_try;;
5334esac
5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336  (eval "$ac_compile") 2>conftest.er1
5337  ac_status=$?
5338  grep -v '^ *+' conftest.er1 >conftest.err
5339  rm -f conftest.er1
5340  cat conftest.err >&5
5341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342  (exit $ac_status); } && {
5343	 test -z "$ac_cxx_werror_flag" ||
5344	 test ! -s conftest.err
5345       } && test -s conftest.$ac_objext; then
5346  ac_compiler_gnu=yes
5347else
5348  echo "$as_me: failed program was:" >&5
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
5351	ac_compiler_gnu=no
5352fi
5353
5354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5356
5357fi
5358{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5359echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5360GXX=`test $ac_compiler_gnu = yes && echo yes`
5361ac_test_CXXFLAGS=${CXXFLAGS+set}
5362ac_save_CXXFLAGS=$CXXFLAGS
5363{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5364echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5365if test "${ac_cv_prog_cxx_g+set}" = set; then
5366  echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5369   ac_cxx_werror_flag=yes
5370   ac_cv_prog_cxx_g=no
5371   CXXFLAGS="-g"
5372   cat >conftest.$ac_ext <<_ACEOF
5373/* confdefs.h.  */
5374_ACEOF
5375cat confdefs.h >>conftest.$ac_ext
5376cat >>conftest.$ac_ext <<_ACEOF
5377/* end confdefs.h.  */
5378
5379int
5380main ()
5381{
5382
5383  ;
5384  return 0;
5385}
5386_ACEOF
5387rm -f conftest.$ac_objext
5388if { (ac_try="$ac_compile"
5389case "(($ac_try" in
5390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391  *) ac_try_echo=$ac_try;;
5392esac
5393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394  (eval "$ac_compile") 2>conftest.er1
5395  ac_status=$?
5396  grep -v '^ *+' conftest.er1 >conftest.err
5397  rm -f conftest.er1
5398  cat conftest.err >&5
5399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400  (exit $ac_status); } && {
5401	 test -z "$ac_cxx_werror_flag" ||
5402	 test ! -s conftest.err
5403       } && test -s conftest.$ac_objext; then
5404  ac_cv_prog_cxx_g=yes
5405else
5406  echo "$as_me: failed program was:" >&5
5407sed 's/^/| /' conftest.$ac_ext >&5
5408
5409	CXXFLAGS=""
5410      cat >conftest.$ac_ext <<_ACEOF
5411/* confdefs.h.  */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
5415/* end confdefs.h.  */
5416
5417int
5418main ()
5419{
5420
5421  ;
5422  return 0;
5423}
5424_ACEOF
5425rm -f conftest.$ac_objext
5426if { (ac_try="$ac_compile"
5427case "(($ac_try" in
5428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429  *) ac_try_echo=$ac_try;;
5430esac
5431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432  (eval "$ac_compile") 2>conftest.er1
5433  ac_status=$?
5434  grep -v '^ *+' conftest.er1 >conftest.err
5435  rm -f conftest.er1
5436  cat conftest.err >&5
5437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438  (exit $ac_status); } && {
5439	 test -z "$ac_cxx_werror_flag" ||
5440	 test ! -s conftest.err
5441       } && test -s conftest.$ac_objext; then
5442  :
5443else
5444  echo "$as_me: failed program was:" >&5
5445sed 's/^/| /' conftest.$ac_ext >&5
5446
5447	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5448	 CXXFLAGS="-g"
5449	 cat >conftest.$ac_ext <<_ACEOF
5450/* confdefs.h.  */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
5454/* end confdefs.h.  */
5455
5456int
5457main ()
5458{
5459
5460  ;
5461  return 0;
5462}
5463_ACEOF
5464rm -f conftest.$ac_objext
5465if { (ac_try="$ac_compile"
5466case "(($ac_try" in
5467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468  *) ac_try_echo=$ac_try;;
5469esac
5470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471  (eval "$ac_compile") 2>conftest.er1
5472  ac_status=$?
5473  grep -v '^ *+' conftest.er1 >conftest.err
5474  rm -f conftest.er1
5475  cat conftest.err >&5
5476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477  (exit $ac_status); } && {
5478	 test -z "$ac_cxx_werror_flag" ||
5479	 test ! -s conftest.err
5480       } && test -s conftest.$ac_objext; then
5481  ac_cv_prog_cxx_g=yes
5482else
5483  echo "$as_me: failed program was:" >&5
5484sed 's/^/| /' conftest.$ac_ext >&5
5485
5486
5487fi
5488
5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490fi
5491
5492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493fi
5494
5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5497fi
5498{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5499echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5500if test "$ac_test_CXXFLAGS" = set; then
5501  CXXFLAGS=$ac_save_CXXFLAGS
5502elif test $ac_cv_prog_cxx_g = yes; then
5503  if test "$GXX" = yes; then
5504    CXXFLAGS="-g -O2"
5505  else
5506    CXXFLAGS="-g"
5507  fi
5508else
5509  if test "$GXX" = yes; then
5510    CXXFLAGS="-O2"
5511  else
5512    CXXFLAGS=
5513  fi
5514fi
5515ac_ext=cpp
5516ac_cpp='$CXXCPP $CPPFLAGS'
5517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5520
5521depcc="$CXX"  am_compiler_list=
5522
5523{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5524echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5525if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5526  echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5529  # We make a subdir and do the tests there.  Otherwise we can end up
5530  # making bogus files that we don't know about and never remove.  For
5531  # instance it was reported that on HP-UX the gcc test will end up
5532  # making a dummy file named `D' -- because `-MD' means `put the output
5533  # in D'.
5534  mkdir conftest.dir
5535  # Copy depcomp to subdir because otherwise we won't find it if we're
5536  # using a relative directory.
5537  cp "$am_depcomp" conftest.dir
5538  cd conftest.dir
5539  # We will build objects and dependencies in a subdirectory because
5540  # it helps to detect inapplicable dependency modes.  For instance
5541  # both Tru64's cc and ICC support -MD to output dependencies as a
5542  # side effect of compilation, but ICC will put the dependencies in
5543  # the current directory while Tru64 will put them in the object
5544  # directory.
5545  mkdir sub
5546
5547  am_cv_CXX_dependencies_compiler_type=none
5548  if test "$am_compiler_list" = ""; then
5549     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5550  fi
5551  for depmode in $am_compiler_list; do
5552    # Setup a source with many dependencies, because some compilers
5553    # like to wrap large dependency lists on column 80 (with \), and
5554    # we should not choose a depcomp mode which is confused by this.
5555    #
5556    # We need to recreate these files for each test, as the compiler may
5557    # overwrite some of them when testing with obscure command lines.
5558    # This happens at least with the AIX C compiler.
5559    : > sub/conftest.c
5560    for i in 1 2 3 4 5 6; do
5561      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5562      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5563      # Solaris 8's {/usr,}/bin/sh.
5564      touch sub/conftst$i.h
5565    done
5566    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5567
5568    case $depmode in
5569    nosideeffect)
5570      # after this tag, mechanisms are not by side-effect, so they'll
5571      # only be used when explicitly requested
5572      if test "x$enable_dependency_tracking" = xyes; then
5573	continue
5574      else
5575	break
5576      fi
5577      ;;
5578    none) break ;;
5579    esac
5580    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5581    # mode.  It turns out that the SunPro C++ compiler does not properly
5582    # handle `-M -o', and we need to detect this.
5583    if depmode=$depmode \
5584       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5585       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5586       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5587         >/dev/null 2>conftest.err &&
5588       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5589       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5590       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5591       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5592      # icc doesn't choke on unknown options, it will just issue warnings
5593      # or remarks (even with -Werror).  So we grep stderr for any message
5594      # that says an option was ignored or not supported.
5595      # When given -MP, icc 7.0 and 7.1 complain thusly:
5596      #   icc: Command line warning: ignoring option '-M'; no argument required
5597      # The diagnosis changed in icc 8.0:
5598      #   icc: Command line remark: option '-MP' not supported
5599      if (grep 'ignoring option' conftest.err ||
5600          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5601        am_cv_CXX_dependencies_compiler_type=$depmode
5602        break
5603      fi
5604    fi
5605  done
5606
5607  cd ..
5608  rm -rf conftest.dir
5609else
5610  am_cv_CXX_dependencies_compiler_type=none
5611fi
5612
5613fi
5614{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5615echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5616CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5617
5618 if
5619  test "x$enable_dependency_tracking" != xno \
5620  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5621  am__fastdepCXX_TRUE=
5622  am__fastdepCXX_FALSE='#'
5623else
5624  am__fastdepCXX_TRUE='#'
5625  am__fastdepCXX_FALSE=
5626fi
5627
5628
5629
5630
5631if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5632    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5633    (test "X$CXX" != "Xg++"))) ; then
5634  ac_ext=cpp
5635ac_cpp='$CXXCPP $CPPFLAGS'
5636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5639{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5640echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5641if test -z "$CXXCPP"; then
5642  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5643  echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645      # Double quotes because CXXCPP needs to be expanded
5646    for CXXCPP in "$CXX -E" "/lib/cpp"
5647    do
5648      ac_preproc_ok=false
5649for ac_cxx_preproc_warn_flag in '' yes
5650do
5651  # Use a header file that comes with gcc, so configuring glibc
5652  # with a fresh cross-compiler works.
5653  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5654  # <limits.h> exists even on freestanding compilers.
5655  # On the NeXT, cc -E runs the code through the compiler's parser,
5656  # not just through cpp. "Syntax error" is here to catch this case.
5657  cat >conftest.$ac_ext <<_ACEOF
5658/* confdefs.h.  */
5659_ACEOF
5660cat confdefs.h >>conftest.$ac_ext
5661cat >>conftest.$ac_ext <<_ACEOF
5662/* end confdefs.h.  */
5663#ifdef __STDC__
5664# include <limits.h>
5665#else
5666# include <assert.h>
5667#endif
5668		     Syntax error
5669_ACEOF
5670if { (ac_try="$ac_cpp conftest.$ac_ext"
5671case "(($ac_try" in
5672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673  *) ac_try_echo=$ac_try;;
5674esac
5675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5677  ac_status=$?
5678  grep -v '^ *+' conftest.er1 >conftest.err
5679  rm -f conftest.er1
5680  cat conftest.err >&5
5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682  (exit $ac_status); } >/dev/null && {
5683	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5684	 test ! -s conftest.err
5685       }; then
5686  :
5687else
5688  echo "$as_me: failed program was:" >&5
5689sed 's/^/| /' conftest.$ac_ext >&5
5690
5691  # Broken: fails on valid input.
5692continue
5693fi
5694
5695rm -f conftest.err conftest.$ac_ext
5696
5697  # OK, works on sane cases.  Now check whether nonexistent headers
5698  # can be detected and how.
5699  cat >conftest.$ac_ext <<_ACEOF
5700/* confdefs.h.  */
5701_ACEOF
5702cat confdefs.h >>conftest.$ac_ext
5703cat >>conftest.$ac_ext <<_ACEOF
5704/* end confdefs.h.  */
5705#include <ac_nonexistent.h>
5706_ACEOF
5707if { (ac_try="$ac_cpp conftest.$ac_ext"
5708case "(($ac_try" in
5709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710  *) ac_try_echo=$ac_try;;
5711esac
5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5714  ac_status=$?
5715  grep -v '^ *+' conftest.er1 >conftest.err
5716  rm -f conftest.er1
5717  cat conftest.err >&5
5718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719  (exit $ac_status); } >/dev/null && {
5720	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5721	 test ! -s conftest.err
5722       }; then
5723  # Broken: success on invalid input.
5724continue
5725else
5726  echo "$as_me: failed program was:" >&5
5727sed 's/^/| /' conftest.$ac_ext >&5
5728
5729  # Passes both tests.
5730ac_preproc_ok=:
5731break
5732fi
5733
5734rm -f conftest.err conftest.$ac_ext
5735
5736done
5737# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5738rm -f conftest.err conftest.$ac_ext
5739if $ac_preproc_ok; then
5740  break
5741fi
5742
5743    done
5744    ac_cv_prog_CXXCPP=$CXXCPP
5745
5746fi
5747  CXXCPP=$ac_cv_prog_CXXCPP
5748else
5749  ac_cv_prog_CXXCPP=$CXXCPP
5750fi
5751{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5752echo "${ECHO_T}$CXXCPP" >&6; }
5753ac_preproc_ok=false
5754for ac_cxx_preproc_warn_flag in '' yes
5755do
5756  # Use a header file that comes with gcc, so configuring glibc
5757  # with a fresh cross-compiler works.
5758  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5759  # <limits.h> exists even on freestanding compilers.
5760  # On the NeXT, cc -E runs the code through the compiler's parser,
5761  # not just through cpp. "Syntax error" is here to catch this case.
5762  cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h.  */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h.  */
5768#ifdef __STDC__
5769# include <limits.h>
5770#else
5771# include <assert.h>
5772#endif
5773		     Syntax error
5774_ACEOF
5775if { (ac_try="$ac_cpp conftest.$ac_ext"
5776case "(($ac_try" in
5777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778  *) ac_try_echo=$ac_try;;
5779esac
5780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5782  ac_status=$?
5783  grep -v '^ *+' conftest.er1 >conftest.err
5784  rm -f conftest.er1
5785  cat conftest.err >&5
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); } >/dev/null && {
5788	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5789	 test ! -s conftest.err
5790       }; then
5791  :
5792else
5793  echo "$as_me: failed program was:" >&5
5794sed 's/^/| /' conftest.$ac_ext >&5
5795
5796  # Broken: fails on valid input.
5797continue
5798fi
5799
5800rm -f conftest.err conftest.$ac_ext
5801
5802  # OK, works on sane cases.  Now check whether nonexistent headers
5803  # can be detected and how.
5804  cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h.  */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h.  */
5810#include <ac_nonexistent.h>
5811_ACEOF
5812if { (ac_try="$ac_cpp conftest.$ac_ext"
5813case "(($ac_try" in
5814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815  *) ac_try_echo=$ac_try;;
5816esac
5817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5819  ac_status=$?
5820  grep -v '^ *+' conftest.er1 >conftest.err
5821  rm -f conftest.er1
5822  cat conftest.err >&5
5823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824  (exit $ac_status); } >/dev/null && {
5825	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5826	 test ! -s conftest.err
5827       }; then
5828  # Broken: success on invalid input.
5829continue
5830else
5831  echo "$as_me: failed program was:" >&5
5832sed 's/^/| /' conftest.$ac_ext >&5
5833
5834  # Passes both tests.
5835ac_preproc_ok=:
5836break
5837fi
5838
5839rm -f conftest.err conftest.$ac_ext
5840
5841done
5842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843rm -f conftest.err conftest.$ac_ext
5844if $ac_preproc_ok; then
5845  :
5846else
5847  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5848See \`config.log' for more details." >&5
5849echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5850See \`config.log' for more details." >&2;}
5851   { (exit 1); exit 1; }; }
5852fi
5853
5854ac_ext=cpp
5855ac_cpp='$CXXCPP $CPPFLAGS'
5856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5859
5860fi
5861
5862
5863ac_ext=f
5864ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5865ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5867if test -n "$ac_tool_prefix"; then
5868  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
5869  do
5870    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5871set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5874if test "${ac_cv_prog_F77+set}" = set; then
5875  echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877  if test -n "$F77"; then
5878  ac_cv_prog_F77="$F77" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883  IFS=$as_save_IFS
5884  test -z "$as_dir" && as_dir=.
5885  for ac_exec_ext in '' $ac_executable_extensions; do
5886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5887    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889    break 2
5890  fi
5891done
5892done
5893IFS=$as_save_IFS
5894
5895fi
5896fi
5897F77=$ac_cv_prog_F77
5898if test -n "$F77"; then
5899  { echo "$as_me:$LINENO: result: $F77" >&5
5900echo "${ECHO_T}$F77" >&6; }
5901else
5902  { echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6; }
5904fi
5905
5906
5907    test -n "$F77" && break
5908  done
5909fi
5910if test -z "$F77"; then
5911  ac_ct_F77=$F77
5912  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
5913do
5914  # Extract the first word of "$ac_prog", so it can be a program name with args.
5915set dummy $ac_prog; ac_word=$2
5916{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5918if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5919  echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921  if test -n "$ac_ct_F77"; then
5922  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5923else
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927  IFS=$as_save_IFS
5928  test -z "$as_dir" && as_dir=.
5929  for ac_exec_ext in '' $ac_executable_extensions; do
5930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931    ac_cv_prog_ac_ct_F77="$ac_prog"
5932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933    break 2
5934  fi
5935done
5936done
5937IFS=$as_save_IFS
5938
5939fi
5940fi
5941ac_ct_F77=$ac_cv_prog_ac_ct_F77
5942if test -n "$ac_ct_F77"; then
5943  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5944echo "${ECHO_T}$ac_ct_F77" >&6; }
5945else
5946  { echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6; }
5948fi
5949
5950
5951  test -n "$ac_ct_F77" && break
5952done
5953
5954  if test "x$ac_ct_F77" = x; then
5955    F77=""
5956  else
5957    case $cross_compiling:$ac_tool_warned in
5958yes:)
5959{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5960whose name does not start with the host triplet.  If you think this
5961configuration is useful to you, please write to autoconf@gnu.org." >&5
5962echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5963whose name does not start with the host triplet.  If you think this
5964configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5965ac_tool_warned=yes ;;
5966esac
5967    F77=$ac_ct_F77
5968  fi
5969fi
5970
5971
5972# Provide some information about the compiler.
5973echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5974ac_compiler=`set X $ac_compile; echo $2`
5975{ (ac_try="$ac_compiler --version >&5"
5976case "(($ac_try" in
5977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978  *) ac_try_echo=$ac_try;;
5979esac
5980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981  (eval "$ac_compiler --version >&5") 2>&5
5982  ac_status=$?
5983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984  (exit $ac_status); }
5985{ (ac_try="$ac_compiler -v >&5"
5986case "(($ac_try" in
5987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988  *) ac_try_echo=$ac_try;;
5989esac
5990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991  (eval "$ac_compiler -v >&5") 2>&5
5992  ac_status=$?
5993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994  (exit $ac_status); }
5995{ (ac_try="$ac_compiler -V >&5"
5996case "(($ac_try" in
5997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998  *) ac_try_echo=$ac_try;;
5999esac
6000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001  (eval "$ac_compiler -V >&5") 2>&5
6002  ac_status=$?
6003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004  (exit $ac_status); }
6005rm -f a.out
6006
6007# If we don't use `.F' as extension, the preprocessor is not run on the
6008# input file.  (Note that this only needs to work for GNU compilers.)
6009ac_save_ext=$ac_ext
6010ac_ext=F
6011{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6012echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6013if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6014  echo $ECHO_N "(cached) $ECHO_C" >&6
6015else
6016  cat >conftest.$ac_ext <<_ACEOF
6017      program main
6018#ifndef __GNUC__
6019       choke me
6020#endif
6021
6022      end
6023_ACEOF
6024rm -f conftest.$ac_objext
6025if { (ac_try="$ac_compile"
6026case "(($ac_try" in
6027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028  *) ac_try_echo=$ac_try;;
6029esac
6030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031  (eval "$ac_compile") 2>conftest.er1
6032  ac_status=$?
6033  grep -v '^ *+' conftest.er1 >conftest.err
6034  rm -f conftest.er1
6035  cat conftest.err >&5
6036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037  (exit $ac_status); } && {
6038	 test -z "$ac_f77_werror_flag" ||
6039	 test ! -s conftest.err
6040       } && test -s conftest.$ac_objext; then
6041  ac_compiler_gnu=yes
6042else
6043  echo "$as_me: failed program was:" >&5
6044sed 's/^/| /' conftest.$ac_ext >&5
6045
6046	ac_compiler_gnu=no
6047fi
6048
6049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6051
6052fi
6053{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6054echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6055ac_ext=$ac_save_ext
6056ac_test_FFLAGS=${FFLAGS+set}
6057ac_save_FFLAGS=$FFLAGS
6058FFLAGS=
6059{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6060echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6061if test "${ac_cv_prog_f77_g+set}" = set; then
6062  echo $ECHO_N "(cached) $ECHO_C" >&6
6063else
6064  FFLAGS=-g
6065cat >conftest.$ac_ext <<_ACEOF
6066      program main
6067
6068      end
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_f77_werror_flag" ||
6085	 test ! -s conftest.err
6086       } && test -s conftest.$ac_objext; then
6087  ac_cv_prog_f77_g=yes
6088else
6089  echo "$as_me: failed program was:" >&5
6090sed 's/^/| /' conftest.$ac_ext >&5
6091
6092	ac_cv_prog_f77_g=no
6093fi
6094
6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096
6097fi
6098{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6099echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6100if test "$ac_test_FFLAGS" = set; then
6101  FFLAGS=$ac_save_FFLAGS
6102elif test $ac_cv_prog_f77_g = yes; then
6103  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6104    FFLAGS="-g -O2"
6105  else
6106    FFLAGS="-g"
6107  fi
6108else
6109  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6110    FFLAGS="-O2"
6111  else
6112    FFLAGS=
6113  fi
6114fi
6115
6116G77=`test $ac_compiler_gnu = yes && echo yes`
6117ac_ext=c
6118ac_cpp='$CPP $CPPFLAGS'
6119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6121ac_compiler_gnu=$ac_cv_c_compiler_gnu
6122
6123
6124
6125# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6126
6127# find the maximum length of command line arguments
6128{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6129echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6130if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6131  echo $ECHO_N "(cached) $ECHO_C" >&6
6132else
6133    i=0
6134  teststring="ABCD"
6135
6136  case $build_os in
6137  msdosdjgpp*)
6138    # On DJGPP, this test can blow up pretty badly due to problems in libc
6139    # (any single argument exceeding 2000 bytes causes a buffer overrun
6140    # during glob expansion).  Even if it were fixed, the result of this
6141    # check would be larger than it should be.
6142    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6143    ;;
6144
6145  gnu*)
6146    # Under GNU Hurd, this test is not required because there is
6147    # no limit to the length of command line arguments.
6148    # Libtool will interpret -1 as no limit whatsoever
6149    lt_cv_sys_max_cmd_len=-1;
6150    ;;
6151
6152  cygwin* | mingw*)
6153    # On Win9x/ME, this test blows up -- it succeeds, but takes
6154    # about 5 minutes as the teststring grows exponentially.
6155    # Worse, since 9x/ME are not pre-emptively multitasking,
6156    # you end up with a "frozen" computer, even though with patience
6157    # the test eventually succeeds (with a max line length of 256k).
6158    # Instead, let's just punt: use the minimum linelength reported by
6159    # all of the supported platforms: 8192 (on NT/2K/XP).
6160    lt_cv_sys_max_cmd_len=8192;
6161    ;;
6162
6163  amigaos*)
6164    # On AmigaOS with pdksh, this test takes hours, literally.
6165    # So we just punt and use a minimum line length of 8192.
6166    lt_cv_sys_max_cmd_len=8192;
6167    ;;
6168
6169  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6170    # This has been around since 386BSD, at least.  Likely further.
6171    if test -x /sbin/sysctl; then
6172      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6173    elif test -x /usr/sbin/sysctl; then
6174      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6175    else
6176      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6177    fi
6178    # And add a safety zone
6179    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6180    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6181    ;;
6182
6183  interix*)
6184    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6185    lt_cv_sys_max_cmd_len=196608
6186    ;;
6187
6188  osf*)
6189    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6190    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6191    # nice to cause kernel panics so lets avoid the loop below.
6192    # First set a reasonable default.
6193    lt_cv_sys_max_cmd_len=16384
6194    #
6195    if test -x /sbin/sysconfig; then
6196      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6197        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6198      esac
6199    fi
6200    ;;
6201  sco3.2v5*)
6202    lt_cv_sys_max_cmd_len=102400
6203    ;;
6204  sysv5* | sco5v6* | sysv4.2uw2*)
6205    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6206    if test -n "$kargmax"; then
6207      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6208    else
6209      lt_cv_sys_max_cmd_len=32768
6210    fi
6211    ;;
6212  *)
6213    # If test is not a shell built-in, we'll probably end up computing a
6214    # maximum length that is only half of the actual maximum length, but
6215    # we can't tell.
6216    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6217    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6218	       = "XX$teststring") >/dev/null 2>&1 &&
6219	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6220	    lt_cv_sys_max_cmd_len=$new_result &&
6221	    test $i != 17 # 1/2 MB should be enough
6222    do
6223      i=`expr $i + 1`
6224      teststring=$teststring$teststring
6225    done
6226    teststring=
6227    # Add a significant safety factor because C++ compilers can tack on massive
6228    # amounts of additional arguments before passing them to the linker.
6229    # It appears as though 1/2 is a usable value.
6230    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6231    ;;
6232  esac
6233
6234fi
6235
6236if test -n $lt_cv_sys_max_cmd_len ; then
6237  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6238echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6239else
6240  { echo "$as_me:$LINENO: result: none" >&5
6241echo "${ECHO_T}none" >&6; }
6242fi
6243
6244
6245
6246
6247# Check for command to grab the raw symbol name followed by C symbol from nm.
6248{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6249echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6250if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6251  echo $ECHO_N "(cached) $ECHO_C" >&6
6252else
6253
6254# These are sane defaults that work on at least a few old systems.
6255# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6256
6257# Character class describing NM global symbol codes.
6258symcode='[BCDEGRST]'
6259
6260# Regexp to match symbols that can be accessed directly from C.
6261sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6262
6263# Transform an extracted symbol line into a proper C declaration
6264lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6265
6266# Transform an extracted symbol line into symbol name and symbol address
6267lt_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'"
6268
6269# Define system-specific variables.
6270case $host_os in
6271aix*)
6272  symcode='[BCDT]'
6273  ;;
6274cygwin* | mingw* | pw32*)
6275  symcode='[ABCDGISTW]'
6276  ;;
6277hpux*) # Its linker distinguishes data from code symbols
6278  if test "$host_cpu" = ia64; then
6279    symcode='[ABCDEGRST]'
6280  fi
6281  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6282  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'"
6283  ;;
6284linux*)
6285  if test "$host_cpu" = ia64; then
6286    symcode='[ABCDGIRSTW]'
6287    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6288    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'"
6289  fi
6290  ;;
6291irix* | nonstopux*)
6292  symcode='[BCDEGRST]'
6293  ;;
6294osf*)
6295  symcode='[BCDEGQRST]'
6296  ;;
6297solaris*)
6298  symcode='[BDRT]'
6299  ;;
6300sco3.2v5*)
6301  symcode='[DT]'
6302  ;;
6303sysv4.2uw2*)
6304  symcode='[DT]'
6305  ;;
6306sysv5* | sco5v6* | unixware* | OpenUNIX*)
6307  symcode='[ABDT]'
6308  ;;
6309sysv4)
6310  symcode='[DFNSTU]'
6311  ;;
6312esac
6313
6314# Handle CRLF in mingw tool chain
6315opt_cr=
6316case $build_os in
6317mingw*)
6318  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6319  ;;
6320esac
6321
6322# If we're using GNU nm, then use its standard symbol codes.
6323case `$NM -V 2>&1` in
6324*GNU* | *'with BFD'*)
6325  symcode='[ABCDGIRSTW]' ;;
6326esac
6327
6328# Try without a prefix undercore, then with it.
6329for ac_symprfx in "" "_"; do
6330
6331  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6332  symxfrm="\\1 $ac_symprfx\\2 \\2"
6333
6334  # Write the raw and C identifiers.
6335  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6336
6337  # Check to see that the pipe works correctly.
6338  pipe_works=no
6339
6340  rm -f conftest*
6341  cat > conftest.$ac_ext <<EOF
6342#ifdef __cplusplus
6343extern "C" {
6344#endif
6345char nm_test_var;
6346void nm_test_func(){}
6347#ifdef __cplusplus
6348}
6349#endif
6350int main(){nm_test_var='a';nm_test_func();return(0);}
6351EOF
6352
6353  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354  (eval $ac_compile) 2>&5
6355  ac_status=$?
6356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357  (exit $ac_status); }; then
6358    # Now try to grab the symbols.
6359    nlist=conftest.nm
6360    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6361  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6362  ac_status=$?
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); } && test -s "$nlist"; then
6365      # Try sorting and uniquifying the output.
6366      if sort "$nlist" | uniq > "$nlist"T; then
6367	mv -f "$nlist"T "$nlist"
6368      else
6369	rm -f "$nlist"T
6370      fi
6371
6372      # Make sure that we snagged all the symbols we need.
6373      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6374	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6375	  cat <<EOF > conftest.$ac_ext
6376#ifdef __cplusplus
6377extern "C" {
6378#endif
6379
6380EOF
6381	  # Now generate the symbol file.
6382	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6383
6384	  cat <<EOF >> conftest.$ac_ext
6385#if defined (__STDC__) && __STDC__
6386# define lt_ptr_t void *
6387#else
6388# define lt_ptr_t char *
6389# define const
6390#endif
6391
6392/* The mapping between symbol names and symbols. */
6393const struct {
6394  const char *name;
6395  lt_ptr_t address;
6396}
6397lt_preloaded_symbols[] =
6398{
6399EOF
6400	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6401	  cat <<\EOF >> conftest.$ac_ext
6402  {0, (lt_ptr_t) 0}
6403};
6404
6405#ifdef __cplusplus
6406}
6407#endif
6408EOF
6409	  # Now try linking the two files.
6410	  mv conftest.$ac_objext conftstm.$ac_objext
6411	  lt_save_LIBS="$LIBS"
6412	  lt_save_CFLAGS="$CFLAGS"
6413	  LIBS="conftstm.$ac_objext"
6414	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6415	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416  (eval $ac_link) 2>&5
6417  ac_status=$?
6418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6420	    pipe_works=yes
6421	  fi
6422	  LIBS="$lt_save_LIBS"
6423	  CFLAGS="$lt_save_CFLAGS"
6424	else
6425	  echo "cannot find nm_test_func in $nlist" >&5
6426	fi
6427      else
6428	echo "cannot find nm_test_var in $nlist" >&5
6429      fi
6430    else
6431      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6432    fi
6433  else
6434    echo "$progname: failed program was:" >&5
6435    cat conftest.$ac_ext >&5
6436  fi
6437  rm -f conftest* conftst*
6438
6439  # Do not use the global_symbol_pipe unless it works.
6440  if test "$pipe_works" = yes; then
6441    break
6442  else
6443    lt_cv_sys_global_symbol_pipe=
6444  fi
6445done
6446
6447fi
6448
6449if test -z "$lt_cv_sys_global_symbol_pipe"; then
6450  lt_cv_sys_global_symbol_to_cdecl=
6451fi
6452if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6453  { echo "$as_me:$LINENO: result: failed" >&5
6454echo "${ECHO_T}failed" >&6; }
6455else
6456  { echo "$as_me:$LINENO: result: ok" >&5
6457echo "${ECHO_T}ok" >&6; }
6458fi
6459
6460{ echo "$as_me:$LINENO: checking for objdir" >&5
6461echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6462if test "${lt_cv_objdir+set}" = set; then
6463  echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
6465  rm -f .libs 2>/dev/null
6466mkdir .libs 2>/dev/null
6467if test -d .libs; then
6468  lt_cv_objdir=.libs
6469else
6470  # MS-DOS does not allow filenames that begin with a dot.
6471  lt_cv_objdir=_libs
6472fi
6473rmdir .libs 2>/dev/null
6474fi
6475{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6476echo "${ECHO_T}$lt_cv_objdir" >&6; }
6477objdir=$lt_cv_objdir
6478
6479
6480
6481
6482
6483case $host_os in
6484aix3*)
6485  # AIX sometimes has problems with the GCC collect2 program.  For some
6486  # reason, if we set the COLLECT_NAMES environment variable, the problems
6487  # vanish in a puff of smoke.
6488  if test "X${COLLECT_NAMES+set}" != Xset; then
6489    COLLECT_NAMES=
6490    export COLLECT_NAMES
6491  fi
6492  ;;
6493esac
6494
6495# Sed substitution that helps us do robust quoting.  It backslashifies
6496# metacharacters that are still active within double-quoted strings.
6497Xsed='sed -e 1s/^X//'
6498sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6499
6500# Same as above, but do not quote variable references.
6501double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6502
6503# Sed substitution to delay expansion of an escaped shell variable in a
6504# double_quote_subst'ed string.
6505delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6506
6507# Sed substitution to avoid accidental globbing in evaled expressions
6508no_glob_subst='s/\*/\\\*/g'
6509
6510# Constants:
6511rm="rm -f"
6512
6513# Global variables:
6514default_ofile=libtool
6515can_build_shared=yes
6516
6517# All known linkers require a `.a' archive for static linking (except MSVC,
6518# which needs '.lib').
6519libext=a
6520ltmain="$ac_aux_dir/ltmain.sh"
6521ofile="$default_ofile"
6522with_gnu_ld="$lt_cv_prog_gnu_ld"
6523
6524if test -n "$ac_tool_prefix"; then
6525  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6526set dummy ${ac_tool_prefix}ar; ac_word=$2
6527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6529if test "${ac_cv_prog_AR+set}" = set; then
6530  echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532  if test -n "$AR"; then
6533  ac_cv_prog_AR="$AR" # Let the user override the test.
6534else
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538  IFS=$as_save_IFS
6539  test -z "$as_dir" && as_dir=.
6540  for ac_exec_ext in '' $ac_executable_extensions; do
6541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542    ac_cv_prog_AR="${ac_tool_prefix}ar"
6543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544    break 2
6545  fi
6546done
6547done
6548IFS=$as_save_IFS
6549
6550fi
6551fi
6552AR=$ac_cv_prog_AR
6553if test -n "$AR"; then
6554  { echo "$as_me:$LINENO: result: $AR" >&5
6555echo "${ECHO_T}$AR" >&6; }
6556else
6557  { echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6; }
6559fi
6560
6561
6562fi
6563if test -z "$ac_cv_prog_AR"; then
6564  ac_ct_AR=$AR
6565  # Extract the first word of "ar", so it can be a program name with args.
6566set dummy ar; ac_word=$2
6567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6570  echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572  if test -n "$ac_ct_AR"; then
6573  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6574else
6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578  IFS=$as_save_IFS
6579  test -z "$as_dir" && as_dir=.
6580  for ac_exec_ext in '' $ac_executable_extensions; do
6581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582    ac_cv_prog_ac_ct_AR="ar"
6583    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584    break 2
6585  fi
6586done
6587done
6588IFS=$as_save_IFS
6589
6590fi
6591fi
6592ac_ct_AR=$ac_cv_prog_ac_ct_AR
6593if test -n "$ac_ct_AR"; then
6594  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6595echo "${ECHO_T}$ac_ct_AR" >&6; }
6596else
6597  { echo "$as_me:$LINENO: result: no" >&5
6598echo "${ECHO_T}no" >&6; }
6599fi
6600
6601  if test "x$ac_ct_AR" = x; then
6602    AR="false"
6603  else
6604    case $cross_compiling:$ac_tool_warned in
6605yes:)
6606{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6607whose name does not start with the host triplet.  If you think this
6608configuration is useful to you, please write to autoconf@gnu.org." >&5
6609echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6610whose name does not start with the host triplet.  If you think this
6611configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6612ac_tool_warned=yes ;;
6613esac
6614    AR=$ac_ct_AR
6615  fi
6616else
6617  AR="$ac_cv_prog_AR"
6618fi
6619
6620if test -n "$ac_tool_prefix"; then
6621  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6622set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625if test "${ac_cv_prog_RANLIB+set}" = set; then
6626  echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628  if test -n "$RANLIB"; then
6629  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6630else
6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634  IFS=$as_save_IFS
6635  test -z "$as_dir" && as_dir=.
6636  for ac_exec_ext in '' $ac_executable_extensions; do
6637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640    break 2
6641  fi
6642done
6643done
6644IFS=$as_save_IFS
6645
6646fi
6647fi
6648RANLIB=$ac_cv_prog_RANLIB
6649if test -n "$RANLIB"; then
6650  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6651echo "${ECHO_T}$RANLIB" >&6; }
6652else
6653  { echo "$as_me:$LINENO: result: no" >&5
6654echo "${ECHO_T}no" >&6; }
6655fi
6656
6657
6658fi
6659if test -z "$ac_cv_prog_RANLIB"; then
6660  ac_ct_RANLIB=$RANLIB
6661  # Extract the first word of "ranlib", so it can be a program name with args.
6662set dummy ranlib; ac_word=$2
6663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6666  echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668  if test -n "$ac_ct_RANLIB"; then
6669  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6670else
6671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674  IFS=$as_save_IFS
6675  test -z "$as_dir" && as_dir=.
6676  for ac_exec_ext in '' $ac_executable_extensions; do
6677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678    ac_cv_prog_ac_ct_RANLIB="ranlib"
6679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680    break 2
6681  fi
6682done
6683done
6684IFS=$as_save_IFS
6685
6686fi
6687fi
6688ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6689if test -n "$ac_ct_RANLIB"; then
6690  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6691echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6692else
6693  { echo "$as_me:$LINENO: result: no" >&5
6694echo "${ECHO_T}no" >&6; }
6695fi
6696
6697  if test "x$ac_ct_RANLIB" = x; then
6698    RANLIB=":"
6699  else
6700    case $cross_compiling:$ac_tool_warned in
6701yes:)
6702{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6703whose name does not start with the host triplet.  If you think this
6704configuration is useful to you, please write to autoconf@gnu.org." >&5
6705echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6706whose name does not start with the host triplet.  If you think this
6707configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6708ac_tool_warned=yes ;;
6709esac
6710    RANLIB=$ac_ct_RANLIB
6711  fi
6712else
6713  RANLIB="$ac_cv_prog_RANLIB"
6714fi
6715
6716if test -n "$ac_tool_prefix"; then
6717  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6718set dummy ${ac_tool_prefix}strip; ac_word=$2
6719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721if test "${ac_cv_prog_STRIP+set}" = set; then
6722  echo $ECHO_N "(cached) $ECHO_C" >&6
6723else
6724  if test -n "$STRIP"; then
6725  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730  IFS=$as_save_IFS
6731  test -z "$as_dir" && as_dir=.
6732  for ac_exec_ext in '' $ac_executable_extensions; do
6733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736    break 2
6737  fi
6738done
6739done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744STRIP=$ac_cv_prog_STRIP
6745if test -n "$STRIP"; then
6746  { echo "$as_me:$LINENO: result: $STRIP" >&5
6747echo "${ECHO_T}$STRIP" >&6; }
6748else
6749  { echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6; }
6751fi
6752
6753
6754fi
6755if test -z "$ac_cv_prog_STRIP"; then
6756  ac_ct_STRIP=$STRIP
6757  # Extract the first word of "strip", so it can be a program name with args.
6758set dummy strip; ac_word=$2
6759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6762  echo $ECHO_N "(cached) $ECHO_C" >&6
6763else
6764  if test -n "$ac_ct_STRIP"; then
6765  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6766else
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770  IFS=$as_save_IFS
6771  test -z "$as_dir" && as_dir=.
6772  for ac_exec_ext in '' $ac_executable_extensions; do
6773  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774    ac_cv_prog_ac_ct_STRIP="strip"
6775    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776    break 2
6777  fi
6778done
6779done
6780IFS=$as_save_IFS
6781
6782fi
6783fi
6784ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6785if test -n "$ac_ct_STRIP"; then
6786  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6787echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6788else
6789  { echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6; }
6791fi
6792
6793  if test "x$ac_ct_STRIP" = x; then
6794    STRIP=":"
6795  else
6796    case $cross_compiling:$ac_tool_warned in
6797yes:)
6798{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6799whose name does not start with the host triplet.  If you think this
6800configuration is useful to you, please write to autoconf@gnu.org." >&5
6801echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6802whose name does not start with the host triplet.  If you think this
6803configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6804ac_tool_warned=yes ;;
6805esac
6806    STRIP=$ac_ct_STRIP
6807  fi
6808else
6809  STRIP="$ac_cv_prog_STRIP"
6810fi
6811
6812
6813old_CC="$CC"
6814old_CFLAGS="$CFLAGS"
6815
6816# Set sane defaults for various variables
6817test -z "$AR" && AR=ar
6818test -z "$AR_FLAGS" && AR_FLAGS=cru
6819test -z "$AS" && AS=as
6820test -z "$CC" && CC=cc
6821test -z "$LTCC" && LTCC=$CC
6822test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6823test -z "$DLLTOOL" && DLLTOOL=dlltool
6824test -z "$LD" && LD=ld
6825test -z "$LN_S" && LN_S="ln -s"
6826test -z "$MAGIC_CMD" && MAGIC_CMD=file
6827test -z "$NM" && NM=nm
6828test -z "$SED" && SED=sed
6829test -z "$OBJDUMP" && OBJDUMP=objdump
6830test -z "$RANLIB" && RANLIB=:
6831test -z "$STRIP" && STRIP=:
6832test -z "$ac_objext" && ac_objext=o
6833
6834# Determine commands to create old-style static archives.
6835old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6836old_postinstall_cmds='chmod 644 $oldlib'
6837old_postuninstall_cmds=
6838
6839if test -n "$RANLIB"; then
6840  case $host_os in
6841  openbsd*)
6842    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6843    ;;
6844  *)
6845    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6846    ;;
6847  esac
6848  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6849fi
6850
6851for cc_temp in $compiler""; do
6852  case $cc_temp in
6853    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6854    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6855    \-*) ;;
6856    *) break;;
6857  esac
6858done
6859cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6860
6861
6862# Only perform the check for file, if the check method requires it
6863case $deplibs_check_method in
6864file_magic*)
6865  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6866    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6867echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6868if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6869  echo $ECHO_N "(cached) $ECHO_C" >&6
6870else
6871  case $MAGIC_CMD in
6872[\\/*] |  ?:[\\/]*)
6873  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6874  ;;
6875*)
6876  lt_save_MAGIC_CMD="$MAGIC_CMD"
6877  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6878  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6879  for ac_dir in $ac_dummy; do
6880    IFS="$lt_save_ifs"
6881    test -z "$ac_dir" && ac_dir=.
6882    if test -f $ac_dir/${ac_tool_prefix}file; then
6883      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6884      if test -n "$file_magic_test_file"; then
6885	case $deplibs_check_method in
6886	"file_magic "*)
6887	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6888	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6889	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6890	    $EGREP "$file_magic_regex" > /dev/null; then
6891	    :
6892	  else
6893	    cat <<EOF 1>&2
6894
6895*** Warning: the command libtool uses to detect shared libraries,
6896*** $file_magic_cmd, produces output that libtool cannot recognize.
6897*** The result is that libtool may fail to recognize shared libraries
6898*** as such.  This will affect the creation of libtool libraries that
6899*** depend on shared libraries, but programs linked with such libtool
6900*** libraries will work regardless of this problem.  Nevertheless, you
6901*** may want to report the problem to your system manager and/or to
6902*** bug-libtool@gnu.org
6903
6904EOF
6905	  fi ;;
6906	esac
6907      fi
6908      break
6909    fi
6910  done
6911  IFS="$lt_save_ifs"
6912  MAGIC_CMD="$lt_save_MAGIC_CMD"
6913  ;;
6914esac
6915fi
6916
6917MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6918if test -n "$MAGIC_CMD"; then
6919  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6920echo "${ECHO_T}$MAGIC_CMD" >&6; }
6921else
6922  { echo "$as_me:$LINENO: result: no" >&5
6923echo "${ECHO_T}no" >&6; }
6924fi
6925
6926if test -z "$lt_cv_path_MAGIC_CMD"; then
6927  if test -n "$ac_tool_prefix"; then
6928    { echo "$as_me:$LINENO: checking for file" >&5
6929echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6930if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6931  echo $ECHO_N "(cached) $ECHO_C" >&6
6932else
6933  case $MAGIC_CMD in
6934[\\/*] |  ?:[\\/]*)
6935  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6936  ;;
6937*)
6938  lt_save_MAGIC_CMD="$MAGIC_CMD"
6939  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6940  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6941  for ac_dir in $ac_dummy; do
6942    IFS="$lt_save_ifs"
6943    test -z "$ac_dir" && ac_dir=.
6944    if test -f $ac_dir/file; then
6945      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6946      if test -n "$file_magic_test_file"; then
6947	case $deplibs_check_method in
6948	"file_magic "*)
6949	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6950	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6951	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6952	    $EGREP "$file_magic_regex" > /dev/null; then
6953	    :
6954	  else
6955	    cat <<EOF 1>&2
6956
6957*** Warning: the command libtool uses to detect shared libraries,
6958*** $file_magic_cmd, produces output that libtool cannot recognize.
6959*** The result is that libtool may fail to recognize shared libraries
6960*** as such.  This will affect the creation of libtool libraries that
6961*** depend on shared libraries, but programs linked with such libtool
6962*** libraries will work regardless of this problem.  Nevertheless, you
6963*** may want to report the problem to your system manager and/or to
6964*** bug-libtool@gnu.org
6965
6966EOF
6967	  fi ;;
6968	esac
6969      fi
6970      break
6971    fi
6972  done
6973  IFS="$lt_save_ifs"
6974  MAGIC_CMD="$lt_save_MAGIC_CMD"
6975  ;;
6976esac
6977fi
6978
6979MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6980if test -n "$MAGIC_CMD"; then
6981  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6982echo "${ECHO_T}$MAGIC_CMD" >&6; }
6983else
6984  { echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6; }
6986fi
6987
6988  else
6989    MAGIC_CMD=:
6990  fi
6991fi
6992
6993  fi
6994  ;;
6995esac
6996
6997enable_dlopen=no
6998enable_win32_dll=no
6999
7000# Check whether --enable-libtool-lock was given.
7001if test "${enable_libtool_lock+set}" = set; then
7002  enableval=$enable_libtool_lock;
7003fi
7004
7005test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7006
7007
7008# Check whether --with-pic was given.
7009if test "${with_pic+set}" = set; then
7010  withval=$with_pic; pic_mode="$withval"
7011else
7012  pic_mode=default
7013fi
7014
7015test -z "$pic_mode" && pic_mode=default
7016
7017# Use C for the default configuration in the libtool script
7018tagname=
7019lt_save_CC="$CC"
7020ac_ext=c
7021ac_cpp='$CPP $CPPFLAGS'
7022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025
7026
7027# Source file extension for C test sources.
7028ac_ext=c
7029
7030# Object file extension for compiled C test sources.
7031objext=o
7032objext=$objext
7033
7034# Code to be used in simple compile tests
7035lt_simple_compile_test_code="int some_variable = 0;\n"
7036
7037# Code to be used in simple link tests
7038lt_simple_link_test_code='int main(){return(0);}\n'
7039
7040
7041# If no C compiler was specified, use CC.
7042LTCC=${LTCC-"$CC"}
7043
7044# If no C compiler flags were specified, use CFLAGS.
7045LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7046
7047# Allow CC to be a program name with arguments.
7048compiler=$CC
7049
7050
7051# save warnings/boilerplate of simple test code
7052ac_outfile=conftest.$ac_objext
7053printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7054eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7055_lt_compiler_boilerplate=`cat conftest.err`
7056$rm conftest*
7057
7058ac_outfile=conftest.$ac_objext
7059printf "$lt_simple_link_test_code" >conftest.$ac_ext
7060eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7061_lt_linker_boilerplate=`cat conftest.err`
7062$rm conftest*
7063
7064
7065
7066lt_prog_compiler_no_builtin_flag=
7067
7068if test "$GCC" = yes; then
7069  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7070
7071
7072{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7073echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7074if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7075  echo $ECHO_N "(cached) $ECHO_C" >&6
7076else
7077  lt_cv_prog_compiler_rtti_exceptions=no
7078  ac_outfile=conftest.$ac_objext
7079   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7080   lt_compiler_flag="-fno-rtti -fno-exceptions"
7081   # Insert the option either (1) after the last *FLAGS variable, or
7082   # (2) before a word containing "conftest.", or (3) at the end.
7083   # Note that $ac_compile itself does not contain backslashes and begins
7084   # with a dollar sign (not a hyphen), so the echo should work correctly.
7085   # The option is referenced via a variable to avoid confusing sed.
7086   lt_compile=`echo "$ac_compile" | $SED \
7087   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7088   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7089   -e 's:$: $lt_compiler_flag:'`
7090   (eval echo "\"\$as_me:7090: $lt_compile\"" >&5)
7091   (eval "$lt_compile" 2>conftest.err)
7092   ac_status=$?
7093   cat conftest.err >&5
7094   echo "$as_me:7094: \$? = $ac_status" >&5
7095   if (exit $ac_status) && test -s "$ac_outfile"; then
7096     # The compiler can only warn and ignore the option if not recognized
7097     # So say no if there are warnings other than the usual output.
7098     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7099     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7100     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7101       lt_cv_prog_compiler_rtti_exceptions=yes
7102     fi
7103   fi
7104   $rm conftest*
7105
7106fi
7107{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7108echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7109
7110if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7111    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7112else
7113    :
7114fi
7115
7116fi
7117
7118lt_prog_compiler_wl=
7119lt_prog_compiler_pic=
7120lt_prog_compiler_static=
7121
7122{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7123echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7124
7125  if test "$GCC" = yes; then
7126    lt_prog_compiler_wl='-Wl,'
7127    lt_prog_compiler_static='-static'
7128
7129    case $host_os in
7130      aix*)
7131      # All AIX code is PIC.
7132      if test "$host_cpu" = ia64; then
7133	# AIX 5 now supports IA64 processor
7134	lt_prog_compiler_static='-Bstatic'
7135      fi
7136      ;;
7137
7138    amigaos*)
7139      # FIXME: we need at least 68020 code to build shared libraries, but
7140      # adding the `-m68020' flag to GCC prevents building anything better,
7141      # like `-m68040'.
7142      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7143      ;;
7144
7145    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7146      # PIC is the default for these OSes.
7147      ;;
7148
7149    mingw* | pw32* | os2*)
7150      # This hack is so that the source file can tell whether it is being
7151      # built for inclusion in a dll (and should export symbols for example).
7152      lt_prog_compiler_pic='-DDLL_EXPORT'
7153      ;;
7154
7155    darwin* | rhapsody*)
7156      # PIC is the default on this platform
7157      # Common symbols not allowed in MH_DYLIB files
7158      lt_prog_compiler_pic='-fno-common'
7159      ;;
7160
7161    interix3*)
7162      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7163      # Instead, we relocate shared libraries at runtime.
7164      ;;
7165
7166    msdosdjgpp*)
7167      # Just because we use GCC doesn't mean we suddenly get shared libraries
7168      # on systems that don't support them.
7169      lt_prog_compiler_can_build_shared=no
7170      enable_shared=no
7171      ;;
7172
7173    sysv4*MP*)
7174      if test -d /usr/nec; then
7175	lt_prog_compiler_pic=-Kconform_pic
7176      fi
7177      ;;
7178
7179    hpux*)
7180      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7181      # not for PA HP-UX.
7182      case $host_cpu in
7183      hppa*64*|ia64*)
7184	# +Z the default
7185	;;
7186      *)
7187	lt_prog_compiler_pic='-fPIC'
7188	;;
7189      esac
7190      ;;
7191
7192    *)
7193      lt_prog_compiler_pic='-fPIC'
7194      ;;
7195    esac
7196  else
7197    # PORTME Check for flag to pass linker flags through the system compiler.
7198    case $host_os in
7199    aix*)
7200      lt_prog_compiler_wl='-Wl,'
7201      if test "$host_cpu" = ia64; then
7202	# AIX 5 now supports IA64 processor
7203	lt_prog_compiler_static='-Bstatic'
7204      else
7205	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7206      fi
7207      ;;
7208      darwin*)
7209        # PIC is the default on this platform
7210        # Common symbols not allowed in MH_DYLIB files
7211       case $cc_basename in
7212         xlc*)
7213         lt_prog_compiler_pic='-qnocommon'
7214         lt_prog_compiler_wl='-Wl,'
7215         ;;
7216       esac
7217       ;;
7218
7219    mingw* | pw32* | os2*)
7220      # This hack is so that the source file can tell whether it is being
7221      # built for inclusion in a dll (and should export symbols for example).
7222      lt_prog_compiler_pic='-DDLL_EXPORT'
7223      ;;
7224
7225    hpux9* | hpux10* | hpux11*)
7226      lt_prog_compiler_wl='-Wl,'
7227      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7228      # not for PA HP-UX.
7229      case $host_cpu in
7230      hppa*64*|ia64*)
7231	# +Z the default
7232	;;
7233      *)
7234	lt_prog_compiler_pic='+Z'
7235	;;
7236      esac
7237      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7238      lt_prog_compiler_static='${wl}-a ${wl}archive'
7239      ;;
7240
7241    irix5* | irix6* | nonstopux*)
7242      lt_prog_compiler_wl='-Wl,'
7243      # PIC (with -KPIC) is the default.
7244      lt_prog_compiler_static='-non_shared'
7245      ;;
7246
7247    newsos6)
7248      lt_prog_compiler_pic='-KPIC'
7249      lt_prog_compiler_static='-Bstatic'
7250      ;;
7251
7252    linux*)
7253      case $cc_basename in
7254      icc* | ecc*)
7255	lt_prog_compiler_wl='-Wl,'
7256	lt_prog_compiler_pic='-KPIC'
7257	lt_prog_compiler_static='-static'
7258        ;;
7259      pgcc* | pgf77* | pgf90* | pgf95*)
7260        # Portland Group compilers (*not* the Pentium gcc compiler,
7261	# which looks to be a dead project)
7262	lt_prog_compiler_wl='-Wl,'
7263	lt_prog_compiler_pic='-fpic'
7264	lt_prog_compiler_static='-Bstatic'
7265        ;;
7266      ccc*)
7267        lt_prog_compiler_wl='-Wl,'
7268        # All Alpha code is PIC.
7269        lt_prog_compiler_static='-non_shared'
7270        ;;
7271      esac
7272      ;;
7273
7274    osf3* | osf4* | osf5*)
7275      lt_prog_compiler_wl='-Wl,'
7276      # All OSF/1 code is PIC.
7277      lt_prog_compiler_static='-non_shared'
7278      ;;
7279
7280    solaris*)
7281      lt_prog_compiler_pic='-KPIC'
7282      lt_prog_compiler_static='-Bstatic'
7283      case $cc_basename in
7284      f77* | f90* | f95*)
7285	lt_prog_compiler_wl='-Qoption ld ';;
7286      *)
7287	lt_prog_compiler_wl='-Wl,';;
7288      esac
7289      ;;
7290
7291    sunos4*)
7292      lt_prog_compiler_wl='-Qoption ld '
7293      lt_prog_compiler_pic='-PIC'
7294      lt_prog_compiler_static='-Bstatic'
7295      ;;
7296
7297    sysv4 | sysv4.2uw2* | sysv4.3*)
7298      lt_prog_compiler_wl='-Wl,'
7299      lt_prog_compiler_pic='-KPIC'
7300      lt_prog_compiler_static='-Bstatic'
7301      ;;
7302
7303    sysv4*MP*)
7304      if test -d /usr/nec ;then
7305	lt_prog_compiler_pic='-Kconform_pic'
7306	lt_prog_compiler_static='-Bstatic'
7307      fi
7308      ;;
7309
7310    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7311      lt_prog_compiler_wl='-Wl,'
7312      lt_prog_compiler_pic='-KPIC'
7313      lt_prog_compiler_static='-Bstatic'
7314      ;;
7315
7316    unicos*)
7317      lt_prog_compiler_wl='-Wl,'
7318      lt_prog_compiler_can_build_shared=no
7319      ;;
7320
7321    uts4*)
7322      lt_prog_compiler_pic='-pic'
7323      lt_prog_compiler_static='-Bstatic'
7324      ;;
7325
7326    *)
7327      lt_prog_compiler_can_build_shared=no
7328      ;;
7329    esac
7330  fi
7331
7332{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7333echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7334
7335#
7336# Check to make sure the PIC flag actually works.
7337#
7338if test -n "$lt_prog_compiler_pic"; then
7339
7340{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7341echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7342if test "${lt_prog_compiler_pic_works+set}" = set; then
7343  echo $ECHO_N "(cached) $ECHO_C" >&6
7344else
7345  lt_prog_compiler_pic_works=no
7346  ac_outfile=conftest.$ac_objext
7347   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7348   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7349   # Insert the option either (1) after the last *FLAGS variable, or
7350   # (2) before a word containing "conftest.", or (3) at the end.
7351   # Note that $ac_compile itself does not contain backslashes and begins
7352   # with a dollar sign (not a hyphen), so the echo should work correctly.
7353   # The option is referenced via a variable to avoid confusing sed.
7354   lt_compile=`echo "$ac_compile" | $SED \
7355   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7357   -e 's:$: $lt_compiler_flag:'`
7358   (eval echo "\"\$as_me:7358: $lt_compile\"" >&5)
7359   (eval "$lt_compile" 2>conftest.err)
7360   ac_status=$?
7361   cat conftest.err >&5
7362   echo "$as_me:7362: \$? = $ac_status" >&5
7363   if (exit $ac_status) && test -s "$ac_outfile"; then
7364     # The compiler can only warn and ignore the option if not recognized
7365     # So say no if there are warnings other than the usual output.
7366     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7367     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7368     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7369       lt_prog_compiler_pic_works=yes
7370     fi
7371   fi
7372   $rm conftest*
7373
7374fi
7375{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7376echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7377
7378if test x"$lt_prog_compiler_pic_works" = xyes; then
7379    case $lt_prog_compiler_pic in
7380     "" | " "*) ;;
7381     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7382     esac
7383else
7384    lt_prog_compiler_pic=
7385     lt_prog_compiler_can_build_shared=no
7386fi
7387
7388fi
7389case $host_os in
7390  # For platforms which do not support PIC, -DPIC is meaningless:
7391  *djgpp*)
7392    lt_prog_compiler_pic=
7393    ;;
7394  *)
7395    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7396    ;;
7397esac
7398
7399#
7400# Check to make sure the static flag actually works.
7401#
7402wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7403{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7404echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7405if test "${lt_prog_compiler_static_works+set}" = set; then
7406  echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408  lt_prog_compiler_static_works=no
7409   save_LDFLAGS="$LDFLAGS"
7410   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7411   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7412   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7413     # The linker can only warn and ignore the option if not recognized
7414     # So say no if there are warnings
7415     if test -s conftest.err; then
7416       # Append any errors to the config.log.
7417       cat conftest.err 1>&5
7418       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7419       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7420       if diff conftest.exp conftest.er2 >/dev/null; then
7421         lt_prog_compiler_static_works=yes
7422       fi
7423     else
7424       lt_prog_compiler_static_works=yes
7425     fi
7426   fi
7427   $rm conftest*
7428   LDFLAGS="$save_LDFLAGS"
7429
7430fi
7431{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7432echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7433
7434if test x"$lt_prog_compiler_static_works" = xyes; then
7435    :
7436else
7437    lt_prog_compiler_static=
7438fi
7439
7440
7441{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7442echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7443if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7444  echo $ECHO_N "(cached) $ECHO_C" >&6
7445else
7446  lt_cv_prog_compiler_c_o=no
7447   $rm -r conftest 2>/dev/null
7448   mkdir conftest
7449   cd conftest
7450   mkdir out
7451   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7452
7453   lt_compiler_flag="-o out/conftest2.$ac_objext"
7454   # Insert the option either (1) after the last *FLAGS variable, or
7455   # (2) before a word containing "conftest.", or (3) at the end.
7456   # Note that $ac_compile itself does not contain backslashes and begins
7457   # with a dollar sign (not a hyphen), so the echo should work correctly.
7458   lt_compile=`echo "$ac_compile" | $SED \
7459   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7460   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7461   -e 's:$: $lt_compiler_flag:'`
7462   (eval echo "\"\$as_me:7462: $lt_compile\"" >&5)
7463   (eval "$lt_compile" 2>out/conftest.err)
7464   ac_status=$?
7465   cat out/conftest.err >&5
7466   echo "$as_me:7466: \$? = $ac_status" >&5
7467   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7468   then
7469     # The compiler can only warn and ignore the option if not recognized
7470     # So say no if there are warnings
7471     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7472     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7473     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7474       lt_cv_prog_compiler_c_o=yes
7475     fi
7476   fi
7477   chmod u+w . 2>&5
7478   $rm conftest*
7479   # SGI C++ compiler will create directory out/ii_files/ for
7480   # template instantiation
7481   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7482   $rm out/* && rmdir out
7483   cd ..
7484   rmdir conftest
7485   $rm conftest*
7486
7487fi
7488{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7489echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7490
7491
7492hard_links="nottested"
7493if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7494  # do not overwrite the value of need_locks provided by the user
7495  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7496echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7497  hard_links=yes
7498  $rm conftest*
7499  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7500  touch conftest.a
7501  ln conftest.a conftest.b 2>&5 || hard_links=no
7502  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7503  { echo "$as_me:$LINENO: result: $hard_links" >&5
7504echo "${ECHO_T}$hard_links" >&6; }
7505  if test "$hard_links" = no; then
7506    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7507echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7508    need_locks=warn
7509  fi
7510else
7511  need_locks=no
7512fi
7513
7514{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7515echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7516
7517  runpath_var=
7518  allow_undefined_flag=
7519  enable_shared_with_static_runtimes=no
7520  archive_cmds=
7521  archive_expsym_cmds=
7522  old_archive_From_new_cmds=
7523  old_archive_from_expsyms_cmds=
7524  export_dynamic_flag_spec=
7525  whole_archive_flag_spec=
7526  thread_safe_flag_spec=
7527  hardcode_libdir_flag_spec=
7528  hardcode_libdir_flag_spec_ld=
7529  hardcode_libdir_separator=
7530  hardcode_direct=no
7531  hardcode_minus_L=no
7532  hardcode_shlibpath_var=unsupported
7533  link_all_deplibs=unknown
7534  hardcode_automatic=no
7535  module_cmds=
7536  module_expsym_cmds=
7537  always_export_symbols=no
7538  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7539  # include_expsyms should be a list of space-separated symbols to be *always*
7540  # included in the symbol list
7541  include_expsyms=
7542  # exclude_expsyms can be an extended regexp of symbols to exclude
7543  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7544  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7545  # as well as any symbol that contains `d'.
7546  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7547  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7548  # platforms (ab)use it in PIC code, but their linkers get confused if
7549  # the symbol is explicitly referenced.  Since portable code cannot
7550  # rely on this symbol name, it's probably fine to never include it in
7551  # preloaded symbol tables.
7552  extract_expsyms_cmds=
7553  # Just being paranoid about ensuring that cc_basename is set.
7554  for cc_temp in $compiler""; do
7555  case $cc_temp in
7556    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7557    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7558    \-*) ;;
7559    *) break;;
7560  esac
7561done
7562cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7563
7564  case $host_os in
7565  cygwin* | mingw* | pw32*)
7566    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7567    # When not using gcc, we currently assume that we are using
7568    # Microsoft Visual C++.
7569    if test "$GCC" != yes; then
7570      with_gnu_ld=no
7571    fi
7572    ;;
7573  interix*)
7574    # we just hope/assume this is gcc and not c89 (= MSVC++)
7575    with_gnu_ld=yes
7576    ;;
7577  openbsd*)
7578    with_gnu_ld=no
7579    ;;
7580  esac
7581
7582  ld_shlibs=yes
7583  if test "$with_gnu_ld" = yes; then
7584    # If archive_cmds runs LD, not CC, wlarc should be empty
7585    wlarc='${wl}'
7586
7587    # Set some defaults for GNU ld with shared library support. These
7588    # are reset later if shared libraries are not supported. Putting them
7589    # here allows them to be overridden if necessary.
7590    runpath_var=LD_RUN_PATH
7591    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7592    export_dynamic_flag_spec='${wl}--export-dynamic'
7593    # ancient GNU ld didn't support --whole-archive et. al.
7594    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7595	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7596      else
7597  	whole_archive_flag_spec=
7598    fi
7599    supports_anon_versioning=no
7600    case `$LD -v 2>/dev/null` in
7601      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7602      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7603      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7604      *\ 2.11.*) ;; # other 2.11 versions
7605      *) supports_anon_versioning=yes ;;
7606    esac
7607
7608    # See if GNU ld supports shared libraries.
7609    case $host_os in
7610    aix3* | aix4* | aix5*)
7611      # On AIX/PPC, the GNU linker is very broken
7612      if test "$host_cpu" != ia64; then
7613	ld_shlibs=no
7614	cat <<EOF 1>&2
7615
7616*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7617*** to be unable to reliably create shared libraries on AIX.
7618*** Therefore, libtool is disabling shared libraries support.  If you
7619*** really care for shared libraries, you may want to modify your PATH
7620*** so that a non-GNU linker is found, and then restart.
7621
7622EOF
7623      fi
7624      ;;
7625
7626    amigaos*)
7627      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)'
7628      hardcode_libdir_flag_spec='-L$libdir'
7629      hardcode_minus_L=yes
7630
7631      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7632      # that the semantics of dynamic libraries on AmigaOS, at least up
7633      # to version 4, is to share data among multiple programs linked
7634      # with the same dynamic library.  Since this doesn't match the
7635      # behavior of shared libraries on other platforms, we can't use
7636      # them.
7637      ld_shlibs=no
7638      ;;
7639
7640    beos*)
7641      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7642	allow_undefined_flag=unsupported
7643	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7644	# support --undefined.  This deserves some investigation.  FIXME
7645	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7646      else
7647	ld_shlibs=no
7648      fi
7649      ;;
7650
7651    cygwin* | mingw* | pw32*)
7652      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7653      # as there is no search path for DLLs.
7654      hardcode_libdir_flag_spec='-L$libdir'
7655      allow_undefined_flag=unsupported
7656      always_export_symbols=no
7657      enable_shared_with_static_runtimes=yes
7658      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7659
7660      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7661        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7662	# If the export-symbols file already is a .def file (1st line
7663	# is EXPORTS), use it as is; otherwise, prepend...
7664	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7665	  cp $export_symbols $output_objdir/$soname.def;
7666	else
7667	  echo EXPORTS > $output_objdir/$soname.def;
7668	  cat $export_symbols >> $output_objdir/$soname.def;
7669	fi~
7670	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7671      else
7672	ld_shlibs=no
7673      fi
7674      ;;
7675
7676    interix3*)
7677      hardcode_direct=no
7678      hardcode_shlibpath_var=no
7679      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7680      export_dynamic_flag_spec='${wl}-E'
7681      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7682      # Instead, shared libraries are loaded at an image base (0x10000000 by
7683      # default) and relocated if they conflict, which is a slow very memory
7684      # consuming and fragmenting process.  To avoid this, we pick a random,
7685      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7686      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7687      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7688      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'
7689      ;;
7690
7691    linux*)
7692      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7693	tmp_addflag=
7694	case $cc_basename,$host_cpu in
7695	pgcc*)				# Portland Group C compiler
7696	  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'
7697	  tmp_addflag=' $pic_flag'
7698	  ;;
7699	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7700	  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'
7701	  tmp_addflag=' $pic_flag -Mnomain' ;;
7702	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7703	  tmp_addflag=' -i_dynamic' ;;
7704	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7705	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7706	ifc* | ifort*)			# Intel Fortran compiler
7707	  tmp_addflag=' -nofor_main' ;;
7708	esac
7709	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710
7711	if test $supports_anon_versioning = yes; then
7712	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7713  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7714  $echo "local: *; };" >> $output_objdir/$libname.ver~
7715	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7716	fi
7717      else
7718	ld_shlibs=no
7719      fi
7720      ;;
7721
7722    netbsd*)
7723      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7724	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7725	wlarc=
7726      else
7727	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7728	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7729      fi
7730      ;;
7731
7732    solaris*)
7733      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7734	ld_shlibs=no
7735	cat <<EOF 1>&2
7736
7737*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7738*** create shared libraries on Solaris systems.  Therefore, libtool
7739*** is disabling shared libraries support.  We urge you to upgrade GNU
7740*** binutils to release 2.9.1 or newer.  Another option is to modify
7741*** your PATH or compiler configuration so that the native linker is
7742*** used, and then restart.
7743
7744EOF
7745      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7746	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7747	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7748      else
7749	ld_shlibs=no
7750      fi
7751      ;;
7752
7753    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7754      case `$LD -v 2>&1` in
7755        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7756	ld_shlibs=no
7757	cat <<_LT_EOF 1>&2
7758
7759*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7760*** reliably create shared libraries on SCO systems.  Therefore, libtool
7761*** is disabling shared libraries support.  We urge you to upgrade GNU
7762*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7763*** your PATH or compiler configuration so that the native linker is
7764*** used, and then restart.
7765
7766_LT_EOF
7767	;;
7768	*)
7769	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7770	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7771	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7772	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7773	  else
7774	    ld_shlibs=no
7775	  fi
7776	;;
7777      esac
7778      ;;
7779
7780    sunos4*)
7781      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7782      wlarc=
7783      hardcode_direct=yes
7784      hardcode_shlibpath_var=no
7785      ;;
7786
7787    *)
7788      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7789	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7790	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7791      else
7792	ld_shlibs=no
7793      fi
7794      ;;
7795    esac
7796
7797    if test "$ld_shlibs" = no; then
7798      runpath_var=
7799      hardcode_libdir_flag_spec=
7800      export_dynamic_flag_spec=
7801      whole_archive_flag_spec=
7802    fi
7803  else
7804    # PORTME fill in a description of your system's linker (not GNU ld)
7805    case $host_os in
7806    aix3*)
7807      allow_undefined_flag=unsupported
7808      always_export_symbols=yes
7809      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'
7810      # Note: this linker hardcodes the directories in LIBPATH if there
7811      # are no directories specified by -L.
7812      hardcode_minus_L=yes
7813      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7814	# Neither direct hardcoding nor static linking is supported with a
7815	# broken collect2.
7816	hardcode_direct=unsupported
7817      fi
7818      ;;
7819
7820    aix4* | aix5*)
7821      if test "$host_cpu" = ia64; then
7822	# On IA64, the linker does run time linking by default, so we don't
7823	# have to do anything special.
7824	aix_use_runtimelinking=no
7825	exp_sym_flag='-Bexport'
7826	no_entry_flag=""
7827      else
7828	# If we're using GNU nm, then we don't want the "-C" option.
7829	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7830	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7831	  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'
7832	else
7833	  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'
7834	fi
7835	aix_use_runtimelinking=no
7836
7837	# Test if we are trying to use run time linking or normal
7838	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7839	# need to do runtime linking.
7840	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7841	  for ld_flag in $LDFLAGS; do
7842  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7843  	    aix_use_runtimelinking=yes
7844  	    break
7845  	  fi
7846	  done
7847	  ;;
7848	esac
7849
7850	exp_sym_flag='-bexport'
7851	no_entry_flag='-bnoentry'
7852      fi
7853
7854      # When large executables or shared objects are built, AIX ld can
7855      # have problems creating the table of contents.  If linking a library
7856      # or program results in "error TOC overflow" add -mminimal-toc to
7857      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7858      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7859
7860      archive_cmds=''
7861      hardcode_direct=yes
7862      hardcode_libdir_separator=':'
7863      link_all_deplibs=yes
7864
7865      if test "$GCC" = yes; then
7866	case $host_os in aix4.[012]|aix4.[012].*)
7867	# We only want to do this on AIX 4.2 and lower, the check
7868	# below for broken collect2 doesn't work under 4.3+
7869	  collect2name=`${CC} -print-prog-name=collect2`
7870	  if test -f "$collect2name" && \
7871  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7872	  then
7873  	  # We have reworked collect2
7874  	  hardcode_direct=yes
7875	  else
7876  	  # We have old collect2
7877  	  hardcode_direct=unsupported
7878  	  # It fails to find uninstalled libraries when the uninstalled
7879  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7880  	  # to unsupported forces relinking
7881  	  hardcode_minus_L=yes
7882  	  hardcode_libdir_flag_spec='-L$libdir'
7883  	  hardcode_libdir_separator=
7884	  fi
7885	  ;;
7886	esac
7887	shared_flag='-shared'
7888	if test "$aix_use_runtimelinking" = yes; then
7889	  shared_flag="$shared_flag "'${wl}-G'
7890	fi
7891      else
7892	# not using gcc
7893	if test "$host_cpu" = ia64; then
7894  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7895  	# chokes on -Wl,-G. The following line is correct:
7896	  shared_flag='-G'
7897	else
7898	  if test "$aix_use_runtimelinking" = yes; then
7899	    shared_flag='${wl}-G'
7900	  else
7901	    shared_flag='${wl}-bM:SRE'
7902	  fi
7903	fi
7904      fi
7905
7906      # It seems that -bexpall does not export symbols beginning with
7907      # underscore (_), so it is better to generate a list of symbols to export.
7908      always_export_symbols=yes
7909      if test "$aix_use_runtimelinking" = yes; then
7910	# Warning - without using the other runtime loading flags (-brtl),
7911	# -berok will link without error, but may produce a broken library.
7912	allow_undefined_flag='-berok'
7913       # Determine the default libpath from the value encoded in an empty executable.
7914       cat >conftest.$ac_ext <<_ACEOF
7915/* confdefs.h.  */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h.  */
7920
7921int
7922main ()
7923{
7924
7925  ;
7926  return 0;
7927}
7928_ACEOF
7929rm -f conftest.$ac_objext conftest$ac_exeext
7930if { (ac_try="$ac_link"
7931case "(($ac_try" in
7932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933  *) ac_try_echo=$ac_try;;
7934esac
7935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936  (eval "$ac_link") 2>conftest.er1
7937  ac_status=$?
7938  grep -v '^ *+' conftest.er1 >conftest.err
7939  rm -f conftest.er1
7940  cat conftest.err >&5
7941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942  (exit $ac_status); } && {
7943	 test -z "$ac_c_werror_flag" ||
7944	 test ! -s conftest.err
7945       } && test -s conftest$ac_exeext &&
7946       $as_test_x conftest$ac_exeext; then
7947
7948aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7949}'`
7950# Check for a 64-bit object if we didn't find anything.
7951if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7952}'`; fi
7953else
7954  echo "$as_me: failed program was:" >&5
7955sed 's/^/| /' conftest.$ac_ext >&5
7956
7957
7958fi
7959
7960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961      conftest$ac_exeext conftest.$ac_ext
7962if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7963
7964       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7965	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"
7966       else
7967	if test "$host_cpu" = ia64; then
7968	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7969	  allow_undefined_flag="-z nodefs"
7970	  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"
7971	else
7972	 # Determine the default libpath from the value encoded in an empty executable.
7973	 cat >conftest.$ac_ext <<_ACEOF
7974/* confdefs.h.  */
7975_ACEOF
7976cat confdefs.h >>conftest.$ac_ext
7977cat >>conftest.$ac_ext <<_ACEOF
7978/* end confdefs.h.  */
7979
7980int
7981main ()
7982{
7983
7984  ;
7985  return 0;
7986}
7987_ACEOF
7988rm -f conftest.$ac_objext conftest$ac_exeext
7989if { (ac_try="$ac_link"
7990case "(($ac_try" in
7991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992  *) ac_try_echo=$ac_try;;
7993esac
7994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995  (eval "$ac_link") 2>conftest.er1
7996  ac_status=$?
7997  grep -v '^ *+' conftest.er1 >conftest.err
7998  rm -f conftest.er1
7999  cat conftest.err >&5
8000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001  (exit $ac_status); } && {
8002	 test -z "$ac_c_werror_flag" ||
8003	 test ! -s conftest.err
8004       } && test -s conftest$ac_exeext &&
8005       $as_test_x conftest$ac_exeext; then
8006
8007aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8008}'`
8009# Check for a 64-bit object if we didn't find anything.
8010if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8011}'`; fi
8012else
8013  echo "$as_me: failed program was:" >&5
8014sed 's/^/| /' conftest.$ac_ext >&5
8015
8016
8017fi
8018
8019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8020      conftest$ac_exeext conftest.$ac_ext
8021if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8022
8023	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8024	  # Warning - without using the other run time loading flags,
8025	  # -berok will link without error, but may produce a broken library.
8026	  no_undefined_flag=' ${wl}-bernotok'
8027	  allow_undefined_flag=' ${wl}-berok'
8028	  # Exported symbols can be pulled into shared objects from archives
8029	  whole_archive_flag_spec='$convenience'
8030	  archive_cmds_need_lc=yes
8031	  # This is similar to how AIX traditionally builds its shared libraries.
8032	  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'
8033	fi
8034      fi
8035      ;;
8036
8037    amigaos*)
8038      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)'
8039      hardcode_libdir_flag_spec='-L$libdir'
8040      hardcode_minus_L=yes
8041      # see comment about different semantics on the GNU ld section
8042      ld_shlibs=no
8043      ;;
8044
8045    bsdi[45]*)
8046      export_dynamic_flag_spec=-rdynamic
8047      ;;
8048
8049    cygwin* | mingw* | pw32*)
8050      # When not using gcc, we currently assume that we are using
8051      # Microsoft Visual C++.
8052      # hardcode_libdir_flag_spec is actually meaningless, as there is
8053      # no search path for DLLs.
8054      hardcode_libdir_flag_spec=' '
8055      allow_undefined_flag=unsupported
8056      # Tell ltmain to make .lib files, not .a files.
8057      libext=lib
8058      # Tell ltmain to make .dll files, not .so files.
8059      shrext_cmds=".dll"
8060      # FIXME: Setting linknames here is a bad hack.
8061      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8062      # The linker will automatically build a .lib file if we build a DLL.
8063      old_archive_From_new_cmds='true'
8064      # FIXME: Should let the user specify the lib program.
8065      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8066      fix_srcfile_path='`cygpath -w "$srcfile"`'
8067      enable_shared_with_static_runtimes=yes
8068      ;;
8069
8070    darwin* | rhapsody*)
8071      case $host_os in
8072        rhapsody* | darwin1.[012])
8073         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8074         ;;
8075       *) # Darwin 1.3 on
8076         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8077           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8078         else
8079           case ${MACOSX_DEPLOYMENT_TARGET} in
8080             10.[012])
8081               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8082               ;;
8083             10.*)
8084               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8085               ;;
8086           esac
8087         fi
8088         ;;
8089      esac
8090      archive_cmds_need_lc=no
8091      hardcode_direct=no
8092      hardcode_automatic=yes
8093      hardcode_shlibpath_var=unsupported
8094      whole_archive_flag_spec=''
8095      link_all_deplibs=yes
8096    if test "$GCC" = yes ; then
8097    	output_verbose_link_cmd='echo'
8098        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8099      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8100      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8101      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}'
8102      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}'
8103    else
8104      case $cc_basename in
8105        xlc*)
8106         output_verbose_link_cmd='echo'
8107         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8108         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8109          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8110         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8111          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}'
8112          ;;
8113       *)
8114         ld_shlibs=no
8115          ;;
8116      esac
8117    fi
8118      ;;
8119
8120    dgux*)
8121      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8122      hardcode_libdir_flag_spec='-L$libdir'
8123      hardcode_shlibpath_var=no
8124      ;;
8125
8126    freebsd1*)
8127      ld_shlibs=no
8128      ;;
8129
8130    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8131    # support.  Future versions do this automatically, but an explicit c++rt0.o
8132    # does not break anything, and helps significantly (at the cost of a little
8133    # extra space).
8134    freebsd2.2*)
8135      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8136      hardcode_libdir_flag_spec='-R$libdir'
8137      hardcode_direct=yes
8138      hardcode_shlibpath_var=no
8139      ;;
8140
8141    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8142    freebsd2*)
8143      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8144      hardcode_direct=yes
8145      hardcode_minus_L=yes
8146      hardcode_shlibpath_var=no
8147      ;;
8148
8149    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8150    freebsd* | kfreebsd*-gnu | dragonfly*)
8151      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8152      hardcode_libdir_flag_spec='-R$libdir'
8153      hardcode_direct=yes
8154      hardcode_shlibpath_var=no
8155      ;;
8156
8157    hpux9*)
8158      if test "$GCC" = yes; then
8159	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'
8160      else
8161	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'
8162      fi
8163      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8164      hardcode_libdir_separator=:
8165      hardcode_direct=yes
8166
8167      # hardcode_minus_L: Not really in the search PATH,
8168      # but as the default location of the library.
8169      hardcode_minus_L=yes
8170      export_dynamic_flag_spec='${wl}-E'
8171      ;;
8172
8173    hpux10*)
8174      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8175	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8176      else
8177	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8178      fi
8179      if test "$with_gnu_ld" = no; then
8180	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8181	hardcode_libdir_separator=:
8182
8183	hardcode_direct=yes
8184	export_dynamic_flag_spec='${wl}-E'
8185
8186	# hardcode_minus_L: Not really in the search PATH,
8187	# but as the default location of the library.
8188	hardcode_minus_L=yes
8189      fi
8190      ;;
8191
8192    hpux11*)
8193      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8194	case $host_cpu in
8195	hppa*64*)
8196	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8197	  ;;
8198	ia64*)
8199	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8200	  ;;
8201	*)
8202	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8203	  ;;
8204	esac
8205      else
8206	case $host_cpu in
8207	hppa*64*)
8208	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8209	  ;;
8210	ia64*)
8211	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8212	  ;;
8213	*)
8214	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8215	  ;;
8216	esac
8217      fi
8218      if test "$with_gnu_ld" = no; then
8219	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8220	hardcode_libdir_separator=:
8221
8222	case $host_cpu in
8223	hppa*64*|ia64*)
8224	  hardcode_libdir_flag_spec_ld='+b $libdir'
8225	  hardcode_direct=no
8226	  hardcode_shlibpath_var=no
8227	  ;;
8228	*)
8229	  hardcode_direct=yes
8230	  export_dynamic_flag_spec='${wl}-E'
8231
8232	  # hardcode_minus_L: Not really in the search PATH,
8233	  # but as the default location of the library.
8234	  hardcode_minus_L=yes
8235	  ;;
8236	esac
8237      fi
8238      ;;
8239
8240    irix5* | irix6* | nonstopux*)
8241      if test "$GCC" = yes; then
8242	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'
8243      else
8244	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'
8245	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8246      fi
8247      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8248      hardcode_libdir_separator=:
8249      link_all_deplibs=yes
8250      ;;
8251
8252    netbsd*)
8253      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8254	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8255      else
8256	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8257      fi
8258      hardcode_libdir_flag_spec='-R$libdir'
8259      hardcode_direct=yes
8260      hardcode_shlibpath_var=no
8261      ;;
8262
8263    newsos6)
8264      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8265      hardcode_direct=yes
8266      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8267      hardcode_libdir_separator=:
8268      hardcode_shlibpath_var=no
8269      ;;
8270
8271    openbsd*)
8272      hardcode_direct=yes
8273      hardcode_shlibpath_var=no
8274      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8275	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8276	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8277	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8278	export_dynamic_flag_spec='${wl}-E'
8279      else
8280       case $host_os in
8281	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8282	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8283	   hardcode_libdir_flag_spec='-R$libdir'
8284	   ;;
8285	 *)
8286	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8287	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8288	   ;;
8289       esac
8290      fi
8291      ;;
8292
8293    os2*)
8294      hardcode_libdir_flag_spec='-L$libdir'
8295      hardcode_minus_L=yes
8296      allow_undefined_flag=unsupported
8297      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'
8298      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8299      ;;
8300
8301    osf3*)
8302      if test "$GCC" = yes; then
8303	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8304	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'
8305      else
8306	allow_undefined_flag=' -expect_unresolved \*'
8307	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'
8308      fi
8309      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8310      hardcode_libdir_separator=:
8311      ;;
8312
8313    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8314      if test "$GCC" = yes; then
8315	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8316	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'
8317	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318      else
8319	allow_undefined_flag=' -expect_unresolved \*'
8320	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'
8321	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8322	$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'
8323
8324	# Both c and cxx compiler support -rpath directly
8325	hardcode_libdir_flag_spec='-rpath $libdir'
8326      fi
8327      hardcode_libdir_separator=:
8328      ;;
8329
8330    solaris*)
8331      no_undefined_flag=' -z text'
8332      if test "$GCC" = yes; then
8333	wlarc='${wl}'
8334	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8335	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8336	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8337      else
8338	wlarc=''
8339	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8340	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8341  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8342      fi
8343      hardcode_libdir_flag_spec='-R$libdir'
8344      hardcode_shlibpath_var=no
8345      case $host_os in
8346      solaris2.[0-5] | solaris2.[0-5].*) ;;
8347      *)
8348 	# The compiler driver will combine linker options so we
8349 	# cannot just pass the convience library names through
8350 	# without $wl, iff we do not link with $LD.
8351 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8352 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8353 	case $wlarc in
8354 	'')
8355 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8356 	*)
8357 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8358 	esac ;;
8359      esac
8360      link_all_deplibs=yes
8361      ;;
8362
8363    sunos4*)
8364      if test "x$host_vendor" = xsequent; then
8365	# Use $CC to link under sequent, because it throws in some extra .o
8366	# files that make .init and .fini sections work.
8367	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8368      else
8369	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8370      fi
8371      hardcode_libdir_flag_spec='-L$libdir'
8372      hardcode_direct=yes
8373      hardcode_minus_L=yes
8374      hardcode_shlibpath_var=no
8375      ;;
8376
8377    sysv4)
8378      case $host_vendor in
8379	sni)
8380	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381	  hardcode_direct=yes # is this really true???
8382	;;
8383	siemens)
8384	  ## LD is ld it makes a PLAMLIB
8385	  ## CC just makes a GrossModule.
8386	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8387	  reload_cmds='$CC -r -o $output$reload_objs'
8388	  hardcode_direct=no
8389        ;;
8390	motorola)
8391	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8392	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8393	;;
8394      esac
8395      runpath_var='LD_RUN_PATH'
8396      hardcode_shlibpath_var=no
8397      ;;
8398
8399    sysv4.3*)
8400      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8401      hardcode_shlibpath_var=no
8402      export_dynamic_flag_spec='-Bexport'
8403      ;;
8404
8405    sysv4*MP*)
8406      if test -d /usr/nec; then
8407	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408	hardcode_shlibpath_var=no
8409	runpath_var=LD_RUN_PATH
8410	hardcode_runpath_var=yes
8411	ld_shlibs=yes
8412      fi
8413      ;;
8414
8415    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8416      no_undefined_flag='${wl}-z,text'
8417      archive_cmds_need_lc=no
8418      hardcode_shlibpath_var=no
8419      runpath_var='LD_RUN_PATH'
8420
8421      if test "$GCC" = yes; then
8422	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424      else
8425	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427      fi
8428      ;;
8429
8430    sysv5* | sco3.2v5* | sco5v6*)
8431      # Note: We can NOT use -z defs as we might desire, because we do not
8432      # link with -lc, and that would cause any symbols used from libc to
8433      # always be unresolved, which means just about no library would
8434      # ever link correctly.  If we're not using GNU ld we use -z text
8435      # though, which does catch some bad symbols but isn't as heavy-handed
8436      # as -z defs.
8437      no_undefined_flag='${wl}-z,text'
8438      allow_undefined_flag='${wl}-z,nodefs'
8439      archive_cmds_need_lc=no
8440      hardcode_shlibpath_var=no
8441      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8442      hardcode_libdir_separator=':'
8443      link_all_deplibs=yes
8444      export_dynamic_flag_spec='${wl}-Bexport'
8445      runpath_var='LD_RUN_PATH'
8446
8447      if test "$GCC" = yes; then
8448	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8449	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8450      else
8451	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8452	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8453      fi
8454      ;;
8455
8456    uts4*)
8457      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458      hardcode_libdir_flag_spec='-L$libdir'
8459      hardcode_shlibpath_var=no
8460      ;;
8461
8462    *)
8463      ld_shlibs=no
8464      ;;
8465    esac
8466  fi
8467
8468{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8469echo "${ECHO_T}$ld_shlibs" >&6; }
8470test "$ld_shlibs" = no && can_build_shared=no
8471
8472#
8473# Do we need to explicitly link libc?
8474#
8475case "x$archive_cmds_need_lc" in
8476x|xyes)
8477  # Assume -lc should be added
8478  archive_cmds_need_lc=yes
8479
8480  if test "$enable_shared" = yes && test "$GCC" = yes; then
8481    case $archive_cmds in
8482    *'~'*)
8483      # FIXME: we may have to deal with multi-command sequences.
8484      ;;
8485    '$CC '*)
8486      # Test whether the compiler implicitly links with -lc since on some
8487      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8488      # to ld, don't add -lc before -lgcc.
8489      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8490echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8491      $rm conftest*
8492      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8493
8494      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495  (eval $ac_compile) 2>&5
8496  ac_status=$?
8497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498  (exit $ac_status); } 2>conftest.err; then
8499        soname=conftest
8500        lib=conftest
8501        libobjs=conftest.$ac_objext
8502        deplibs=
8503        wl=$lt_prog_compiler_wl
8504	pic_flag=$lt_prog_compiler_pic
8505        compiler_flags=-v
8506        linker_flags=-v
8507        verstring=
8508        output_objdir=.
8509        libname=conftest
8510        lt_save_allow_undefined_flag=$allow_undefined_flag
8511        allow_undefined_flag=
8512        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8513  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8514  ac_status=$?
8515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516  (exit $ac_status); }
8517        then
8518	  archive_cmds_need_lc=no
8519        else
8520	  archive_cmds_need_lc=yes
8521        fi
8522        allow_undefined_flag=$lt_save_allow_undefined_flag
8523      else
8524        cat conftest.err 1>&5
8525      fi
8526      $rm conftest*
8527      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8528echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8529      ;;
8530    esac
8531  fi
8532  ;;
8533esac
8534
8535{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8536echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8537library_names_spec=
8538libname_spec='lib$name'
8539soname_spec=
8540shrext_cmds=".so"
8541postinstall_cmds=
8542postuninstall_cmds=
8543finish_cmds=
8544finish_eval=
8545shlibpath_var=
8546shlibpath_overrides_runpath=unknown
8547version_type=none
8548dynamic_linker="$host_os ld.so"
8549sys_lib_dlsearch_path_spec="/lib /usr/lib"
8550if test "$GCC" = yes; then
8551  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8552  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8553    # if the path contains ";" then we assume it to be the separator
8554    # otherwise default to the standard path separator (i.e. ":") - it is
8555    # assumed that no part of a normal pathname contains ";" but that should
8556    # okay in the real world where ";" in dirpaths is itself problematic.
8557    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8558  else
8559    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8560  fi
8561else
8562  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8563fi
8564need_lib_prefix=unknown
8565hardcode_into_libs=no
8566
8567# when you set need_version to no, make sure it does not cause -set_version
8568# flags to be left without arguments
8569need_version=unknown
8570
8571case $host_os in
8572aix3*)
8573  version_type=linux
8574  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8575  shlibpath_var=LIBPATH
8576
8577  # AIX 3 has no versioning support, so we append a major version to the name.
8578  soname_spec='${libname}${release}${shared_ext}$major'
8579  ;;
8580
8581aix4* | aix5*)
8582  version_type=linux
8583  need_lib_prefix=no
8584  need_version=no
8585  hardcode_into_libs=yes
8586  if test "$host_cpu" = ia64; then
8587    # AIX 5 supports IA64
8588    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8589    shlibpath_var=LD_LIBRARY_PATH
8590  else
8591    # With GCC up to 2.95.x, collect2 would create an import file
8592    # for dependence libraries.  The import file would start with
8593    # the line `#! .'.  This would cause the generated library to
8594    # depend on `.', always an invalid library.  This was fixed in
8595    # development snapshots of GCC prior to 3.0.
8596    case $host_os in
8597      aix4 | aix4.[01] | aix4.[01].*)
8598      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8599	   echo ' yes '
8600	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8601	:
8602      else
8603	can_build_shared=no
8604      fi
8605      ;;
8606    esac
8607    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8608    # soname into executable. Probably we can add versioning support to
8609    # collect2, so additional links can be useful in future.
8610    if test "$aix_use_runtimelinking" = yes; then
8611      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8612      # instead of lib<name>.a to let people know that these are not
8613      # typical AIX shared libraries.
8614      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8615    else
8616      # We preserve .a as extension for shared libraries through AIX4.2
8617      # and later when we are not doing run time linking.
8618      library_names_spec='${libname}${release}.a $libname.a'
8619      soname_spec='${libname}${release}${shared_ext}$major'
8620    fi
8621    shlibpath_var=LIBPATH
8622  fi
8623  ;;
8624
8625amigaos*)
8626  library_names_spec='$libname.ixlibrary $libname.a'
8627  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8628  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'
8629  ;;
8630
8631beos*)
8632  library_names_spec='${libname}${shared_ext}'
8633  dynamic_linker="$host_os ld.so"
8634  shlibpath_var=LIBRARY_PATH
8635  ;;
8636
8637bsdi[45]*)
8638  version_type=linux
8639  need_version=no
8640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8641  soname_spec='${libname}${release}${shared_ext}$major'
8642  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8643  shlibpath_var=LD_LIBRARY_PATH
8644  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8645  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8646  # the default ld.so.conf also contains /usr/contrib/lib and
8647  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8648  # libtool to hard-code these into programs
8649  ;;
8650
8651cygwin* | mingw* | pw32*)
8652  version_type=windows
8653  shrext_cmds=".dll"
8654  need_version=no
8655  need_lib_prefix=no
8656
8657  case $GCC,$host_os in
8658  yes,cygwin* | yes,mingw* | yes,pw32*)
8659    library_names_spec='$libname.dll.a'
8660    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8661    postinstall_cmds='base_file=`basename \${file}`~
8662      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8663      dldir=$destdir/`dirname \$dlpath`~
8664      test -d \$dldir || mkdir -p \$dldir~
8665      $install_prog $dir/$dlname \$dldir/$dlname~
8666      chmod a+x \$dldir/$dlname'
8667    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8668      dlpath=$dir/\$dldll~
8669       $rm \$dlpath'
8670    shlibpath_overrides_runpath=yes
8671
8672    case $host_os in
8673    cygwin*)
8674      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8675      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8676      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8677      ;;
8678    mingw*)
8679      # MinGW DLLs use traditional 'lib' prefix
8680      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8681      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8682      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8683        # It is most probably a Windows format PATH printed by
8684        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8685        # path with ; separators, and with drive letters. We can handle the
8686        # drive letters (cygwin fileutils understands them), so leave them,
8687        # especially as we might pass files found there to a mingw objdump,
8688        # which wouldn't understand a cygwinified path. Ahh.
8689        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8690      else
8691        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8692      fi
8693      ;;
8694    pw32*)
8695      # pw32 DLLs use 'pw' prefix rather than 'lib'
8696      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8697      ;;
8698    esac
8699    ;;
8700
8701  *)
8702    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8703    ;;
8704  esac
8705  dynamic_linker='Win32 ld.exe'
8706  # FIXME: first we should search . and the directory the executable is in
8707  shlibpath_var=PATH
8708  ;;
8709
8710darwin* | rhapsody*)
8711  dynamic_linker="$host_os dyld"
8712  version_type=darwin
8713  need_lib_prefix=no
8714  need_version=no
8715  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8716  soname_spec='${libname}${release}${major}$shared_ext'
8717  shlibpath_overrides_runpath=yes
8718  shlibpath_var=DYLD_LIBRARY_PATH
8719  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8720  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8721  if test "$GCC" = yes; then
8722    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8723  else
8724    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8725  fi
8726  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8727  ;;
8728
8729dgux*)
8730  version_type=linux
8731  need_lib_prefix=no
8732  need_version=no
8733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8734  soname_spec='${libname}${release}${shared_ext}$major'
8735  shlibpath_var=LD_LIBRARY_PATH
8736  ;;
8737
8738freebsd1*)
8739  dynamic_linker=no
8740  ;;
8741
8742kfreebsd*-gnu)
8743  version_type=linux
8744  need_lib_prefix=no
8745  need_version=no
8746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8747  soname_spec='${libname}${release}${shared_ext}$major'
8748  shlibpath_var=LD_LIBRARY_PATH
8749  shlibpath_overrides_runpath=no
8750  hardcode_into_libs=yes
8751  dynamic_linker='GNU ld.so'
8752  ;;
8753
8754freebsd* | dragonfly*)
8755  # DragonFly does not have aout.  When/if they implement a new
8756  # versioning mechanism, adjust this.
8757  if test -x /usr/bin/objformat; then
8758    objformat=`/usr/bin/objformat`
8759  else
8760    case $host_os in
8761    freebsd[123]*) objformat=aout ;;
8762    *) objformat=elf ;;
8763    esac
8764  fi
8765  version_type=freebsd-$objformat
8766  case $version_type in
8767    freebsd-elf*)
8768      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8769      need_version=no
8770      need_lib_prefix=no
8771      ;;
8772    freebsd-*)
8773      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8774      need_version=yes
8775      ;;
8776  esac
8777  shlibpath_var=LD_LIBRARY_PATH
8778  case $host_os in
8779  freebsd2*)
8780    shlibpath_overrides_runpath=yes
8781    ;;
8782  freebsd3.[01]* | freebsdelf3.[01]*)
8783    shlibpath_overrides_runpath=yes
8784    hardcode_into_libs=yes
8785    ;;
8786  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8787  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8788    shlibpath_overrides_runpath=no
8789    hardcode_into_libs=yes
8790    ;;
8791  freebsd*) # from 4.6 on
8792    shlibpath_overrides_runpath=yes
8793    hardcode_into_libs=yes
8794    ;;
8795  esac
8796  ;;
8797
8798gnu*)
8799  version_type=linux
8800  need_lib_prefix=no
8801  need_version=no
8802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8803  soname_spec='${libname}${release}${shared_ext}$major'
8804  shlibpath_var=LD_LIBRARY_PATH
8805  hardcode_into_libs=yes
8806  ;;
8807
8808hpux9* | hpux10* | hpux11*)
8809  # Give a soname corresponding to the major version so that dld.sl refuses to
8810  # link against other versions.
8811  version_type=sunos
8812  need_lib_prefix=no
8813  need_version=no
8814  case $host_cpu in
8815  ia64*)
8816    shrext_cmds='.so'
8817    hardcode_into_libs=yes
8818    dynamic_linker="$host_os dld.so"
8819    shlibpath_var=LD_LIBRARY_PATH
8820    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8821    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8822    soname_spec='${libname}${release}${shared_ext}$major'
8823    if test "X$HPUX_IA64_MODE" = X32; then
8824      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8825    else
8826      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8827    fi
8828    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8829    ;;
8830   hppa*64*)
8831     shrext_cmds='.sl'
8832     hardcode_into_libs=yes
8833     dynamic_linker="$host_os dld.sl"
8834     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8835     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8836     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837     soname_spec='${libname}${release}${shared_ext}$major'
8838     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8839     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8840     ;;
8841   *)
8842    shrext_cmds='.sl'
8843    dynamic_linker="$host_os dld.sl"
8844    shlibpath_var=SHLIB_PATH
8845    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8846    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847    soname_spec='${libname}${release}${shared_ext}$major'
8848    ;;
8849  esac
8850  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8851  postinstall_cmds='chmod 555 $lib'
8852  ;;
8853
8854interix3*)
8855  version_type=linux
8856  need_lib_prefix=no
8857  need_version=no
8858  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8859  soname_spec='${libname}${release}${shared_ext}$major'
8860  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8861  shlibpath_var=LD_LIBRARY_PATH
8862  shlibpath_overrides_runpath=no
8863  hardcode_into_libs=yes
8864  ;;
8865
8866irix5* | irix6* | nonstopux*)
8867  case $host_os in
8868    nonstopux*) version_type=nonstopux ;;
8869    *)
8870	if test "$lt_cv_prog_gnu_ld" = yes; then
8871		version_type=linux
8872	else
8873		version_type=irix
8874	fi ;;
8875  esac
8876  need_lib_prefix=no
8877  need_version=no
8878  soname_spec='${libname}${release}${shared_ext}$major'
8879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8880  case $host_os in
8881  irix5* | nonstopux*)
8882    libsuff= shlibsuff=
8883    ;;
8884  *)
8885    case $LD in # libtool.m4 will add one of these switches to LD
8886    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8887      libsuff= shlibsuff= libmagic=32-bit;;
8888    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8889      libsuff=32 shlibsuff=N32 libmagic=N32;;
8890    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8891      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8892    *) libsuff= shlibsuff= libmagic=never-match;;
8893    esac
8894    ;;
8895  esac
8896  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8897  shlibpath_overrides_runpath=no
8898  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8899  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8900  hardcode_into_libs=yes
8901  ;;
8902
8903# No shared lib support for Linux oldld, aout, or coff.
8904linux*oldld* | linux*aout* | linux*coff*)
8905  dynamic_linker=no
8906  ;;
8907
8908# This must be Linux ELF.
8909linux*)
8910  version_type=linux
8911  need_lib_prefix=no
8912  need_version=no
8913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914  soname_spec='${libname}${release}${shared_ext}$major'
8915  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8916  shlibpath_var=LD_LIBRARY_PATH
8917  shlibpath_overrides_runpath=no
8918  # This implies no fast_install, which is unacceptable.
8919  # Some rework will be needed to allow for fast_install
8920  # before this can be enabled.
8921  hardcode_into_libs=yes
8922
8923  # Append ld.so.conf contents to the search path
8924  if test -f /etc/ld.so.conf; then
8925    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8926    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8927  fi
8928
8929  # We used to test for /lib/ld.so.1 and disable shared libraries on
8930  # powerpc, because MkLinux only supported shared libraries with the
8931  # GNU dynamic linker.  Since this was broken with cross compilers,
8932  # most powerpc-linux boxes support dynamic linking these days and
8933  # people can always --disable-shared, the test was removed, and we
8934  # assume the GNU/Linux dynamic linker is in use.
8935  dynamic_linker='GNU/Linux ld.so'
8936  ;;
8937
8938knetbsd*-gnu)
8939  version_type=linux
8940  need_lib_prefix=no
8941  need_version=no
8942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8943  soname_spec='${libname}${release}${shared_ext}$major'
8944  shlibpath_var=LD_LIBRARY_PATH
8945  shlibpath_overrides_runpath=no
8946  hardcode_into_libs=yes
8947  dynamic_linker='GNU ld.so'
8948  ;;
8949
8950netbsd*)
8951  version_type=sunos
8952  need_lib_prefix=no
8953  need_version=no
8954  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8955    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8956    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8957    dynamic_linker='NetBSD (a.out) ld.so'
8958  else
8959    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8960    soname_spec='${libname}${release}${shared_ext}$major'
8961    dynamic_linker='NetBSD ld.elf_so'
8962  fi
8963  shlibpath_var=LD_LIBRARY_PATH
8964  shlibpath_overrides_runpath=yes
8965  hardcode_into_libs=yes
8966  ;;
8967
8968newsos6)
8969  version_type=linux
8970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8971  shlibpath_var=LD_LIBRARY_PATH
8972  shlibpath_overrides_runpath=yes
8973  ;;
8974
8975nto-qnx*)
8976  version_type=linux
8977  need_lib_prefix=no
8978  need_version=no
8979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980  soname_spec='${libname}${release}${shared_ext}$major'
8981  shlibpath_var=LD_LIBRARY_PATH
8982  shlibpath_overrides_runpath=yes
8983  ;;
8984
8985openbsd*)
8986  version_type=sunos
8987  sys_lib_dlsearch_path_spec="/usr/lib"
8988  need_lib_prefix=no
8989  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8990  case $host_os in
8991    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8992    *)                         need_version=no  ;;
8993  esac
8994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8995  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8996  shlibpath_var=LD_LIBRARY_PATH
8997  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8998    case $host_os in
8999      openbsd2.[89] | openbsd2.[89].*)
9000	shlibpath_overrides_runpath=no
9001	;;
9002      *)
9003	shlibpath_overrides_runpath=yes
9004	;;
9005      esac
9006  else
9007    shlibpath_overrides_runpath=yes
9008  fi
9009  ;;
9010
9011os2*)
9012  libname_spec='$name'
9013  shrext_cmds=".dll"
9014  need_lib_prefix=no
9015  library_names_spec='$libname${shared_ext} $libname.a'
9016  dynamic_linker='OS/2 ld.exe'
9017  shlibpath_var=LIBPATH
9018  ;;
9019
9020osf3* | osf4* | osf5*)
9021  version_type=osf
9022  need_lib_prefix=no
9023  need_version=no
9024  soname_spec='${libname}${release}${shared_ext}$major'
9025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026  shlibpath_var=LD_LIBRARY_PATH
9027  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9028  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9029  ;;
9030
9031solaris*)
9032  version_type=linux
9033  need_lib_prefix=no
9034  need_version=no
9035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036  soname_spec='${libname}${release}${shared_ext}$major'
9037  shlibpath_var=LD_LIBRARY_PATH
9038  shlibpath_overrides_runpath=yes
9039  hardcode_into_libs=yes
9040  # ldd complains unless libraries are executable
9041  postinstall_cmds='chmod +x $lib'
9042  ;;
9043
9044sunos4*)
9045  version_type=sunos
9046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9047  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9048  shlibpath_var=LD_LIBRARY_PATH
9049  shlibpath_overrides_runpath=yes
9050  if test "$with_gnu_ld" = yes; then
9051    need_lib_prefix=no
9052  fi
9053  need_version=yes
9054  ;;
9055
9056sysv4 | sysv4.3*)
9057  version_type=linux
9058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059  soname_spec='${libname}${release}${shared_ext}$major'
9060  shlibpath_var=LD_LIBRARY_PATH
9061  case $host_vendor in
9062    sni)
9063      shlibpath_overrides_runpath=no
9064      need_lib_prefix=no
9065      export_dynamic_flag_spec='${wl}-Blargedynsym'
9066      runpath_var=LD_RUN_PATH
9067      ;;
9068    siemens)
9069      need_lib_prefix=no
9070      ;;
9071    motorola)
9072      need_lib_prefix=no
9073      need_version=no
9074      shlibpath_overrides_runpath=no
9075      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9076      ;;
9077  esac
9078  ;;
9079
9080sysv4*MP*)
9081  if test -d /usr/nec ;then
9082    version_type=linux
9083    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9084    soname_spec='$libname${shared_ext}.$major'
9085    shlibpath_var=LD_LIBRARY_PATH
9086  fi
9087  ;;
9088
9089sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9090  version_type=freebsd-elf
9091  need_lib_prefix=no
9092  need_version=no
9093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9094  soname_spec='${libname}${release}${shared_ext}$major'
9095  shlibpath_var=LD_LIBRARY_PATH
9096  hardcode_into_libs=yes
9097  if test "$with_gnu_ld" = yes; then
9098    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9099    shlibpath_overrides_runpath=no
9100  else
9101    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9102    shlibpath_overrides_runpath=yes
9103    case $host_os in
9104      sco3.2v5*)
9105        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9106	;;
9107    esac
9108  fi
9109  sys_lib_dlsearch_path_spec='/usr/lib'
9110  ;;
9111
9112uts4*)
9113  version_type=linux
9114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115  soname_spec='${libname}${release}${shared_ext}$major'
9116  shlibpath_var=LD_LIBRARY_PATH
9117  ;;
9118
9119*)
9120  dynamic_linker=no
9121  ;;
9122esac
9123{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9124echo "${ECHO_T}$dynamic_linker" >&6; }
9125test "$dynamic_linker" = no && can_build_shared=no
9126
9127variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9128if test "$GCC" = yes; then
9129  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9130fi
9131
9132{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9133echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9134hardcode_action=
9135if test -n "$hardcode_libdir_flag_spec" || \
9136   test -n "$runpath_var" || \
9137   test "X$hardcode_automatic" = "Xyes" ; then
9138
9139  # We can hardcode non-existant directories.
9140  if test "$hardcode_direct" != no &&
9141     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9142     # have to relink, otherwise we might link with an installed library
9143     # when we should be linking with a yet-to-be-installed one
9144     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9145     test "$hardcode_minus_L" != no; then
9146    # Linking always hardcodes the temporary library directory.
9147    hardcode_action=relink
9148  else
9149    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9150    hardcode_action=immediate
9151  fi
9152else
9153  # We cannot hardcode anything, or else we can only hardcode existing
9154  # directories.
9155  hardcode_action=unsupported
9156fi
9157{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9158echo "${ECHO_T}$hardcode_action" >&6; }
9159
9160if test "$hardcode_action" = relink; then
9161  # Fast installation is not supported
9162  enable_fast_install=no
9163elif test "$shlibpath_overrides_runpath" = yes ||
9164     test "$enable_shared" = no; then
9165  # Fast installation is not necessary
9166  enable_fast_install=needless
9167fi
9168
9169striplib=
9170old_striplib=
9171{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9172echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9173if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9174  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9175  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9176  { echo "$as_me:$LINENO: result: yes" >&5
9177echo "${ECHO_T}yes" >&6; }
9178else
9179# FIXME - insert some real tests, host_os isn't really good enough
9180  case $host_os in
9181   darwin*)
9182       if test -n "$STRIP" ; then
9183         striplib="$STRIP -x"
9184         { echo "$as_me:$LINENO: result: yes" >&5
9185echo "${ECHO_T}yes" >&6; }
9186       else
9187  { echo "$as_me:$LINENO: result: no" >&5
9188echo "${ECHO_T}no" >&6; }
9189fi
9190       ;;
9191   *)
9192  { echo "$as_me:$LINENO: result: no" >&5
9193echo "${ECHO_T}no" >&6; }
9194    ;;
9195  esac
9196fi
9197
9198if test "x$enable_dlopen" != xyes; then
9199  enable_dlopen=unknown
9200  enable_dlopen_self=unknown
9201  enable_dlopen_self_static=unknown
9202else
9203  lt_cv_dlopen=no
9204  lt_cv_dlopen_libs=
9205
9206  case $host_os in
9207  beos*)
9208    lt_cv_dlopen="load_add_on"
9209    lt_cv_dlopen_libs=
9210    lt_cv_dlopen_self=yes
9211    ;;
9212
9213  mingw* | pw32*)
9214    lt_cv_dlopen="LoadLibrary"
9215    lt_cv_dlopen_libs=
9216   ;;
9217
9218  cygwin*)
9219    lt_cv_dlopen="dlopen"
9220    lt_cv_dlopen_libs=
9221   ;;
9222
9223  darwin*)
9224  # if libdl is installed we need to link against it
9225    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9226echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9227if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9228  echo $ECHO_N "(cached) $ECHO_C" >&6
9229else
9230  ac_check_lib_save_LIBS=$LIBS
9231LIBS="-ldl  $LIBS"
9232cat >conftest.$ac_ext <<_ACEOF
9233/* confdefs.h.  */
9234_ACEOF
9235cat confdefs.h >>conftest.$ac_ext
9236cat >>conftest.$ac_ext <<_ACEOF
9237/* end confdefs.h.  */
9238
9239/* Override any GCC internal prototype to avoid an error.
9240   Use char because int might match the return type of a GCC
9241   builtin and then its argument prototype would still apply.  */
9242#ifdef __cplusplus
9243extern "C"
9244#endif
9245char dlopen ();
9246int
9247main ()
9248{
9249return dlopen ();
9250  ;
9251  return 0;
9252}
9253_ACEOF
9254rm -f conftest.$ac_objext conftest$ac_exeext
9255if { (ac_try="$ac_link"
9256case "(($ac_try" in
9257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258  *) ac_try_echo=$ac_try;;
9259esac
9260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261  (eval "$ac_link") 2>conftest.er1
9262  ac_status=$?
9263  grep -v '^ *+' conftest.er1 >conftest.err
9264  rm -f conftest.er1
9265  cat conftest.err >&5
9266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); } && {
9268	 test -z "$ac_c_werror_flag" ||
9269	 test ! -s conftest.err
9270       } && test -s conftest$ac_exeext &&
9271       $as_test_x conftest$ac_exeext; then
9272  ac_cv_lib_dl_dlopen=yes
9273else
9274  echo "$as_me: failed program was:" >&5
9275sed 's/^/| /' conftest.$ac_ext >&5
9276
9277	ac_cv_lib_dl_dlopen=no
9278fi
9279
9280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9281      conftest$ac_exeext conftest.$ac_ext
9282LIBS=$ac_check_lib_save_LIBS
9283fi
9284{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9285echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9286if test $ac_cv_lib_dl_dlopen = yes; then
9287  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9288else
9289
9290    lt_cv_dlopen="dyld"
9291    lt_cv_dlopen_libs=
9292    lt_cv_dlopen_self=yes
9293
9294fi
9295
9296   ;;
9297
9298  *)
9299    { echo "$as_me:$LINENO: checking for shl_load" >&5
9300echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9301if test "${ac_cv_func_shl_load+set}" = set; then
9302  echo $ECHO_N "(cached) $ECHO_C" >&6
9303else
9304  cat >conftest.$ac_ext <<_ACEOF
9305/* confdefs.h.  */
9306_ACEOF
9307cat confdefs.h >>conftest.$ac_ext
9308cat >>conftest.$ac_ext <<_ACEOF
9309/* end confdefs.h.  */
9310/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9311   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9312#define shl_load innocuous_shl_load
9313
9314/* System header to define __stub macros and hopefully few prototypes,
9315    which can conflict with char shl_load (); below.
9316    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9317    <limits.h> exists even on freestanding compilers.  */
9318
9319#ifdef __STDC__
9320# include <limits.h>
9321#else
9322# include <assert.h>
9323#endif
9324
9325#undef shl_load
9326
9327/* Override any GCC internal prototype to avoid an error.
9328   Use char because int might match the return type of a GCC
9329   builtin and then its argument prototype would still apply.  */
9330#ifdef __cplusplus
9331extern "C"
9332#endif
9333char shl_load ();
9334/* The GNU C library defines this for functions which it implements
9335    to always fail with ENOSYS.  Some functions are actually named
9336    something starting with __ and the normal name is an alias.  */
9337#if defined __stub_shl_load || defined __stub___shl_load
9338choke me
9339#endif
9340
9341int
9342main ()
9343{
9344return shl_load ();
9345  ;
9346  return 0;
9347}
9348_ACEOF
9349rm -f conftest.$ac_objext conftest$ac_exeext
9350if { (ac_try="$ac_link"
9351case "(($ac_try" in
9352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353  *) ac_try_echo=$ac_try;;
9354esac
9355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356  (eval "$ac_link") 2>conftest.er1
9357  ac_status=$?
9358  grep -v '^ *+' conftest.er1 >conftest.err
9359  rm -f conftest.er1
9360  cat conftest.err >&5
9361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362  (exit $ac_status); } && {
9363	 test -z "$ac_c_werror_flag" ||
9364	 test ! -s conftest.err
9365       } && test -s conftest$ac_exeext &&
9366       $as_test_x conftest$ac_exeext; then
9367  ac_cv_func_shl_load=yes
9368else
9369  echo "$as_me: failed program was:" >&5
9370sed 's/^/| /' conftest.$ac_ext >&5
9371
9372	ac_cv_func_shl_load=no
9373fi
9374
9375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9376      conftest$ac_exeext conftest.$ac_ext
9377fi
9378{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9379echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9380if test $ac_cv_func_shl_load = yes; then
9381  lt_cv_dlopen="shl_load"
9382else
9383  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9384echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9385if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9386  echo $ECHO_N "(cached) $ECHO_C" >&6
9387else
9388  ac_check_lib_save_LIBS=$LIBS
9389LIBS="-ldld  $LIBS"
9390cat >conftest.$ac_ext <<_ACEOF
9391/* confdefs.h.  */
9392_ACEOF
9393cat confdefs.h >>conftest.$ac_ext
9394cat >>conftest.$ac_ext <<_ACEOF
9395/* end confdefs.h.  */
9396
9397/* Override any GCC internal prototype to avoid an error.
9398   Use char because int might match the return type of a GCC
9399   builtin and then its argument prototype would still apply.  */
9400#ifdef __cplusplus
9401extern "C"
9402#endif
9403char shl_load ();
9404int
9405main ()
9406{
9407return shl_load ();
9408  ;
9409  return 0;
9410}
9411_ACEOF
9412rm -f conftest.$ac_objext conftest$ac_exeext
9413if { (ac_try="$ac_link"
9414case "(($ac_try" in
9415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416  *) ac_try_echo=$ac_try;;
9417esac
9418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419  (eval "$ac_link") 2>conftest.er1
9420  ac_status=$?
9421  grep -v '^ *+' conftest.er1 >conftest.err
9422  rm -f conftest.er1
9423  cat conftest.err >&5
9424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425  (exit $ac_status); } && {
9426	 test -z "$ac_c_werror_flag" ||
9427	 test ! -s conftest.err
9428       } && test -s conftest$ac_exeext &&
9429       $as_test_x conftest$ac_exeext; then
9430  ac_cv_lib_dld_shl_load=yes
9431else
9432  echo "$as_me: failed program was:" >&5
9433sed 's/^/| /' conftest.$ac_ext >&5
9434
9435	ac_cv_lib_dld_shl_load=no
9436fi
9437
9438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9439      conftest$ac_exeext conftest.$ac_ext
9440LIBS=$ac_check_lib_save_LIBS
9441fi
9442{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9443echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9444if test $ac_cv_lib_dld_shl_load = yes; then
9445  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9446else
9447  { echo "$as_me:$LINENO: checking for dlopen" >&5
9448echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9449if test "${ac_cv_func_dlopen+set}" = set; then
9450  echo $ECHO_N "(cached) $ECHO_C" >&6
9451else
9452  cat >conftest.$ac_ext <<_ACEOF
9453/* confdefs.h.  */
9454_ACEOF
9455cat confdefs.h >>conftest.$ac_ext
9456cat >>conftest.$ac_ext <<_ACEOF
9457/* end confdefs.h.  */
9458/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9459   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9460#define dlopen innocuous_dlopen
9461
9462/* System header to define __stub macros and hopefully few prototypes,
9463    which can conflict with char dlopen (); below.
9464    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9465    <limits.h> exists even on freestanding compilers.  */
9466
9467#ifdef __STDC__
9468# include <limits.h>
9469#else
9470# include <assert.h>
9471#endif
9472
9473#undef dlopen
9474
9475/* Override any GCC internal prototype to avoid an error.
9476   Use char because int might match the return type of a GCC
9477   builtin and then its argument prototype would still apply.  */
9478#ifdef __cplusplus
9479extern "C"
9480#endif
9481char dlopen ();
9482/* The GNU C library defines this for functions which it implements
9483    to always fail with ENOSYS.  Some functions are actually named
9484    something starting with __ and the normal name is an alias.  */
9485#if defined __stub_dlopen || defined __stub___dlopen
9486choke me
9487#endif
9488
9489int
9490main ()
9491{
9492return dlopen ();
9493  ;
9494  return 0;
9495}
9496_ACEOF
9497rm -f conftest.$ac_objext conftest$ac_exeext
9498if { (ac_try="$ac_link"
9499case "(($ac_try" in
9500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501  *) ac_try_echo=$ac_try;;
9502esac
9503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504  (eval "$ac_link") 2>conftest.er1
9505  ac_status=$?
9506  grep -v '^ *+' conftest.er1 >conftest.err
9507  rm -f conftest.er1
9508  cat conftest.err >&5
9509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510  (exit $ac_status); } && {
9511	 test -z "$ac_c_werror_flag" ||
9512	 test ! -s conftest.err
9513       } && test -s conftest$ac_exeext &&
9514       $as_test_x conftest$ac_exeext; then
9515  ac_cv_func_dlopen=yes
9516else
9517  echo "$as_me: failed program was:" >&5
9518sed 's/^/| /' conftest.$ac_ext >&5
9519
9520	ac_cv_func_dlopen=no
9521fi
9522
9523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9524      conftest$ac_exeext conftest.$ac_ext
9525fi
9526{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9527echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9528if test $ac_cv_func_dlopen = yes; then
9529  lt_cv_dlopen="dlopen"
9530else
9531  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9532echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9533if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9534  echo $ECHO_N "(cached) $ECHO_C" >&6
9535else
9536  ac_check_lib_save_LIBS=$LIBS
9537LIBS="-ldl  $LIBS"
9538cat >conftest.$ac_ext <<_ACEOF
9539/* confdefs.h.  */
9540_ACEOF
9541cat confdefs.h >>conftest.$ac_ext
9542cat >>conftest.$ac_ext <<_ACEOF
9543/* end confdefs.h.  */
9544
9545/* Override any GCC internal prototype to avoid an error.
9546   Use char because int might match the return type of a GCC
9547   builtin and then its argument prototype would still apply.  */
9548#ifdef __cplusplus
9549extern "C"
9550#endif
9551char dlopen ();
9552int
9553main ()
9554{
9555return dlopen ();
9556  ;
9557  return 0;
9558}
9559_ACEOF
9560rm -f conftest.$ac_objext conftest$ac_exeext
9561if { (ac_try="$ac_link"
9562case "(($ac_try" in
9563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564  *) ac_try_echo=$ac_try;;
9565esac
9566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567  (eval "$ac_link") 2>conftest.er1
9568  ac_status=$?
9569  grep -v '^ *+' conftest.er1 >conftest.err
9570  rm -f conftest.er1
9571  cat conftest.err >&5
9572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573  (exit $ac_status); } && {
9574	 test -z "$ac_c_werror_flag" ||
9575	 test ! -s conftest.err
9576       } && test -s conftest$ac_exeext &&
9577       $as_test_x conftest$ac_exeext; then
9578  ac_cv_lib_dl_dlopen=yes
9579else
9580  echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
9583	ac_cv_lib_dl_dlopen=no
9584fi
9585
9586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9587      conftest$ac_exeext conftest.$ac_ext
9588LIBS=$ac_check_lib_save_LIBS
9589fi
9590{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9591echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9592if test $ac_cv_lib_dl_dlopen = yes; then
9593  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9594else
9595  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9596echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9597if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9598  echo $ECHO_N "(cached) $ECHO_C" >&6
9599else
9600  ac_check_lib_save_LIBS=$LIBS
9601LIBS="-lsvld  $LIBS"
9602cat >conftest.$ac_ext <<_ACEOF
9603/* confdefs.h.  */
9604_ACEOF
9605cat confdefs.h >>conftest.$ac_ext
9606cat >>conftest.$ac_ext <<_ACEOF
9607/* end confdefs.h.  */
9608
9609/* Override any GCC internal prototype to avoid an error.
9610   Use char because int might match the return type of a GCC
9611   builtin and then its argument prototype would still apply.  */
9612#ifdef __cplusplus
9613extern "C"
9614#endif
9615char dlopen ();
9616int
9617main ()
9618{
9619return dlopen ();
9620  ;
9621  return 0;
9622}
9623_ACEOF
9624rm -f conftest.$ac_objext conftest$ac_exeext
9625if { (ac_try="$ac_link"
9626case "(($ac_try" in
9627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628  *) ac_try_echo=$ac_try;;
9629esac
9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631  (eval "$ac_link") 2>conftest.er1
9632  ac_status=$?
9633  grep -v '^ *+' conftest.er1 >conftest.err
9634  rm -f conftest.er1
9635  cat conftest.err >&5
9636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637  (exit $ac_status); } && {
9638	 test -z "$ac_c_werror_flag" ||
9639	 test ! -s conftest.err
9640       } && test -s conftest$ac_exeext &&
9641       $as_test_x conftest$ac_exeext; then
9642  ac_cv_lib_svld_dlopen=yes
9643else
9644  echo "$as_me: failed program was:" >&5
9645sed 's/^/| /' conftest.$ac_ext >&5
9646
9647	ac_cv_lib_svld_dlopen=no
9648fi
9649
9650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9651      conftest$ac_exeext conftest.$ac_ext
9652LIBS=$ac_check_lib_save_LIBS
9653fi
9654{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9655echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9656if test $ac_cv_lib_svld_dlopen = yes; then
9657  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9658else
9659  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9660echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9661if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9662  echo $ECHO_N "(cached) $ECHO_C" >&6
9663else
9664  ac_check_lib_save_LIBS=$LIBS
9665LIBS="-ldld  $LIBS"
9666cat >conftest.$ac_ext <<_ACEOF
9667/* confdefs.h.  */
9668_ACEOF
9669cat confdefs.h >>conftest.$ac_ext
9670cat >>conftest.$ac_ext <<_ACEOF
9671/* end confdefs.h.  */
9672
9673/* Override any GCC internal prototype to avoid an error.
9674   Use char because int might match the return type of a GCC
9675   builtin and then its argument prototype would still apply.  */
9676#ifdef __cplusplus
9677extern "C"
9678#endif
9679char dld_link ();
9680int
9681main ()
9682{
9683return dld_link ();
9684  ;
9685  return 0;
9686}
9687_ACEOF
9688rm -f conftest.$ac_objext conftest$ac_exeext
9689if { (ac_try="$ac_link"
9690case "(($ac_try" in
9691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692  *) ac_try_echo=$ac_try;;
9693esac
9694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695  (eval "$ac_link") 2>conftest.er1
9696  ac_status=$?
9697  grep -v '^ *+' conftest.er1 >conftest.err
9698  rm -f conftest.er1
9699  cat conftest.err >&5
9700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701  (exit $ac_status); } && {
9702	 test -z "$ac_c_werror_flag" ||
9703	 test ! -s conftest.err
9704       } && test -s conftest$ac_exeext &&
9705       $as_test_x conftest$ac_exeext; then
9706  ac_cv_lib_dld_dld_link=yes
9707else
9708  echo "$as_me: failed program was:" >&5
9709sed 's/^/| /' conftest.$ac_ext >&5
9710
9711	ac_cv_lib_dld_dld_link=no
9712fi
9713
9714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9715      conftest$ac_exeext conftest.$ac_ext
9716LIBS=$ac_check_lib_save_LIBS
9717fi
9718{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9719echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9720if test $ac_cv_lib_dld_dld_link = yes; then
9721  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9722fi
9723
9724
9725fi
9726
9727
9728fi
9729
9730
9731fi
9732
9733
9734fi
9735
9736
9737fi
9738
9739    ;;
9740  esac
9741
9742  if test "x$lt_cv_dlopen" != xno; then
9743    enable_dlopen=yes
9744  else
9745    enable_dlopen=no
9746  fi
9747
9748  case $lt_cv_dlopen in
9749  dlopen)
9750    save_CPPFLAGS="$CPPFLAGS"
9751    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9752
9753    save_LDFLAGS="$LDFLAGS"
9754    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9755
9756    save_LIBS="$LIBS"
9757    LIBS="$lt_cv_dlopen_libs $LIBS"
9758
9759    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9760echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9761if test "${lt_cv_dlopen_self+set}" = set; then
9762  echo $ECHO_N "(cached) $ECHO_C" >&6
9763else
9764  	  if test "$cross_compiling" = yes; then :
9765  lt_cv_dlopen_self=cross
9766else
9767  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9768  lt_status=$lt_dlunknown
9769  cat > conftest.$ac_ext <<EOF
9770#line 9770 "configure"
9771#include "confdefs.h"
9772
9773#if HAVE_DLFCN_H
9774#include <dlfcn.h>
9775#endif
9776
9777#include <stdio.h>
9778
9779#ifdef RTLD_GLOBAL
9780#  define LT_DLGLOBAL		RTLD_GLOBAL
9781#else
9782#  ifdef DL_GLOBAL
9783#    define LT_DLGLOBAL		DL_GLOBAL
9784#  else
9785#    define LT_DLGLOBAL		0
9786#  endif
9787#endif
9788
9789/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9790   find out it does not work in some platform. */
9791#ifndef LT_DLLAZY_OR_NOW
9792#  ifdef RTLD_LAZY
9793#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9794#  else
9795#    ifdef DL_LAZY
9796#      define LT_DLLAZY_OR_NOW		DL_LAZY
9797#    else
9798#      ifdef RTLD_NOW
9799#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9800#      else
9801#        ifdef DL_NOW
9802#          define LT_DLLAZY_OR_NOW	DL_NOW
9803#        else
9804#          define LT_DLLAZY_OR_NOW	0
9805#        endif
9806#      endif
9807#    endif
9808#  endif
9809#endif
9810
9811#ifdef __cplusplus
9812extern "C" void exit (int);
9813#endif
9814
9815void fnord() { int i=42;}
9816int main ()
9817{
9818  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9819  int status = $lt_dlunknown;
9820
9821  if (self)
9822    {
9823      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9824      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9825      /* dlclose (self); */
9826    }
9827  else
9828    puts (dlerror ());
9829
9830    exit (status);
9831}
9832EOF
9833  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9834  (eval $ac_link) 2>&5
9835  ac_status=$?
9836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9838    (./conftest; exit; ) >&5 2>/dev/null
9839    lt_status=$?
9840    case x$lt_status in
9841      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9842      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9843      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9844    esac
9845  else :
9846    # compilation failed
9847    lt_cv_dlopen_self=no
9848  fi
9849fi
9850rm -fr conftest*
9851
9852
9853fi
9854{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9855echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9856
9857    if test "x$lt_cv_dlopen_self" = xyes; then
9858      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9859      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9860echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9861if test "${lt_cv_dlopen_self_static+set}" = set; then
9862  echo $ECHO_N "(cached) $ECHO_C" >&6
9863else
9864  	  if test "$cross_compiling" = yes; then :
9865  lt_cv_dlopen_self_static=cross
9866else
9867  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9868  lt_status=$lt_dlunknown
9869  cat > conftest.$ac_ext <<EOF
9870#line 9870 "configure"
9871#include "confdefs.h"
9872
9873#if HAVE_DLFCN_H
9874#include <dlfcn.h>
9875#endif
9876
9877#include <stdio.h>
9878
9879#ifdef RTLD_GLOBAL
9880#  define LT_DLGLOBAL		RTLD_GLOBAL
9881#else
9882#  ifdef DL_GLOBAL
9883#    define LT_DLGLOBAL		DL_GLOBAL
9884#  else
9885#    define LT_DLGLOBAL		0
9886#  endif
9887#endif
9888
9889/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9890   find out it does not work in some platform. */
9891#ifndef LT_DLLAZY_OR_NOW
9892#  ifdef RTLD_LAZY
9893#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9894#  else
9895#    ifdef DL_LAZY
9896#      define LT_DLLAZY_OR_NOW		DL_LAZY
9897#    else
9898#      ifdef RTLD_NOW
9899#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9900#      else
9901#        ifdef DL_NOW
9902#          define LT_DLLAZY_OR_NOW	DL_NOW
9903#        else
9904#          define LT_DLLAZY_OR_NOW	0
9905#        endif
9906#      endif
9907#    endif
9908#  endif
9909#endif
9910
9911#ifdef __cplusplus
9912extern "C" void exit (int);
9913#endif
9914
9915void fnord() { int i=42;}
9916int main ()
9917{
9918  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9919  int status = $lt_dlunknown;
9920
9921  if (self)
9922    {
9923      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9924      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9925      /* dlclose (self); */
9926    }
9927  else
9928    puts (dlerror ());
9929
9930    exit (status);
9931}
9932EOF
9933  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934  (eval $ac_link) 2>&5
9935  ac_status=$?
9936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9938    (./conftest; exit; ) >&5 2>/dev/null
9939    lt_status=$?
9940    case x$lt_status in
9941      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9942      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9943      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9944    esac
9945  else :
9946    # compilation failed
9947    lt_cv_dlopen_self_static=no
9948  fi
9949fi
9950rm -fr conftest*
9951
9952
9953fi
9954{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9955echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9956    fi
9957
9958    CPPFLAGS="$save_CPPFLAGS"
9959    LDFLAGS="$save_LDFLAGS"
9960    LIBS="$save_LIBS"
9961    ;;
9962  esac
9963
9964  case $lt_cv_dlopen_self in
9965  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9966  *) enable_dlopen_self=unknown ;;
9967  esac
9968
9969  case $lt_cv_dlopen_self_static in
9970  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9971  *) enable_dlopen_self_static=unknown ;;
9972  esac
9973fi
9974
9975
9976# Report which library types will actually be built
9977{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9978echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9979{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9980echo "${ECHO_T}$can_build_shared" >&6; }
9981
9982{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9983echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9984test "$can_build_shared" = "no" && enable_shared=no
9985
9986# On AIX, shared libraries and static libraries use the same namespace, and
9987# are all built from PIC.
9988case $host_os in
9989aix3*)
9990  test "$enable_shared" = yes && enable_static=no
9991  if test -n "$RANLIB"; then
9992    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9993    postinstall_cmds='$RANLIB $lib'
9994  fi
9995  ;;
9996
9997aix4* | aix5*)
9998  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9999    test "$enable_shared" = yes && enable_static=no
10000  fi
10001    ;;
10002esac
10003{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10004echo "${ECHO_T}$enable_shared" >&6; }
10005
10006{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10007echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10008# Make sure either enable_shared or enable_static is yes.
10009test "$enable_shared" = yes || enable_static=yes
10010{ echo "$as_me:$LINENO: result: $enable_static" >&5
10011echo "${ECHO_T}$enable_static" >&6; }
10012
10013# The else clause should only fire when bootstrapping the
10014# libtool distribution, otherwise you forgot to ship ltmain.sh
10015# with your package, and you will get complaints that there are
10016# no rules to generate ltmain.sh.
10017if test -f "$ltmain"; then
10018  # See if we are running on zsh, and set the options which allow our commands through
10019  # without removal of \ escapes.
10020  if test -n "${ZSH_VERSION+set}" ; then
10021    setopt NO_GLOB_SUBST
10022  fi
10023  # Now quote all the things that may contain metacharacters while being
10024  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10025  # variables and quote the copies for generation of the libtool script.
10026  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10027    SED SHELL STRIP \
10028    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10029    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10030    deplibs_check_method reload_flag reload_cmds need_locks \
10031    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10032    lt_cv_sys_global_symbol_to_c_name_address \
10033    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10034    old_postinstall_cmds old_postuninstall_cmds \
10035    compiler \
10036    CC \
10037    LD \
10038    lt_prog_compiler_wl \
10039    lt_prog_compiler_pic \
10040    lt_prog_compiler_static \
10041    lt_prog_compiler_no_builtin_flag \
10042    export_dynamic_flag_spec \
10043    thread_safe_flag_spec \
10044    whole_archive_flag_spec \
10045    enable_shared_with_static_runtimes \
10046    old_archive_cmds \
10047    old_archive_from_new_cmds \
10048    predep_objects \
10049    postdep_objects \
10050    predeps \
10051    postdeps \
10052    compiler_lib_search_path \
10053    archive_cmds \
10054    archive_expsym_cmds \
10055    postinstall_cmds \
10056    postuninstall_cmds \
10057    old_archive_from_expsyms_cmds \
10058    allow_undefined_flag \
10059    no_undefined_flag \
10060    export_symbols_cmds \
10061    hardcode_libdir_flag_spec \
10062    hardcode_libdir_flag_spec_ld \
10063    hardcode_libdir_separator \
10064    hardcode_automatic \
10065    module_cmds \
10066    module_expsym_cmds \
10067    lt_cv_prog_compiler_c_o \
10068    exclude_expsyms \
10069    include_expsyms; do
10070
10071    case $var in
10072    old_archive_cmds | \
10073    old_archive_from_new_cmds | \
10074    archive_cmds | \
10075    archive_expsym_cmds | \
10076    module_cmds | \
10077    module_expsym_cmds | \
10078    old_archive_from_expsyms_cmds | \
10079    export_symbols_cmds | \
10080    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10081    postinstall_cmds | postuninstall_cmds | \
10082    old_postinstall_cmds | old_postuninstall_cmds | \
10083    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10084      # Double-quote double-evaled strings.
10085      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10086      ;;
10087    *)
10088      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10089      ;;
10090    esac
10091  done
10092
10093  case $lt_echo in
10094  *'\$0 --fallback-echo"')
10095    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10096    ;;
10097  esac
10098
10099cfgfile="${ofile}T"
10100  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10101  $rm -f "$cfgfile"
10102  { echo "$as_me:$LINENO: creating $ofile" >&5
10103echo "$as_me: creating $ofile" >&6;}
10104
10105  cat <<__EOF__ >> "$cfgfile"
10106#! $SHELL
10107
10108# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10109# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10110# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10111#
10112# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10113# Free Software Foundation, Inc.
10114#
10115# This file is part of GNU Libtool:
10116# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10117#
10118# This program is free software; you can redistribute it and/or modify
10119# it under the terms of the GNU General Public License as published by
10120# the Free Software Foundation; either version 2 of the License, or
10121# (at your option) any later version.
10122#
10123# This program is distributed in the hope that it will be useful, but
10124# WITHOUT ANY WARRANTY; without even the implied warranty of
10125# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10126# General Public License for more details.
10127#
10128# You should have received a copy of the GNU General Public License
10129# along with this program; if not, write to the Free Software
10130# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10131#
10132# As a special exception to the GNU General Public License, if you
10133# distribute this file as part of a program that contains a
10134# configuration script generated by Autoconf, you may include it under
10135# the same distribution terms that you use for the rest of that program.
10136
10137# A sed program that does not truncate output.
10138SED=$lt_SED
10139
10140# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10141Xsed="$SED -e 1s/^X//"
10142
10143# The HP-UX ksh and POSIX shell print the target directory to stdout
10144# if CDPATH is set.
10145(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10146
10147# The names of the tagged configurations supported by this script.
10148available_tags=
10149
10150# ### BEGIN LIBTOOL CONFIG
10151
10152# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10153
10154# Shell to use when invoking shell scripts.
10155SHELL=$lt_SHELL
10156
10157# Whether or not to build shared libraries.
10158build_libtool_libs=$enable_shared
10159
10160# Whether or not to build static libraries.
10161build_old_libs=$enable_static
10162
10163# Whether or not to add -lc for building shared libraries.
10164build_libtool_need_lc=$archive_cmds_need_lc
10165
10166# Whether or not to disallow shared libs when runtime libs are static
10167allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10168
10169# Whether or not to optimize for fast installation.
10170fast_install=$enable_fast_install
10171
10172# The host system.
10173host_alias=$host_alias
10174host=$host
10175host_os=$host_os
10176
10177# The build system.
10178build_alias=$build_alias
10179build=$build
10180build_os=$build_os
10181
10182# An echo program that does not interpret backslashes.
10183echo=$lt_echo
10184
10185# The archiver.
10186AR=$lt_AR
10187AR_FLAGS=$lt_AR_FLAGS
10188
10189# A C compiler.
10190LTCC=$lt_LTCC
10191
10192# LTCC compiler flags.
10193LTCFLAGS=$lt_LTCFLAGS
10194
10195# A language-specific compiler.
10196CC=$lt_compiler
10197
10198# Is the compiler the GNU C compiler?
10199with_gcc=$GCC
10200
10201# An ERE matcher.
10202EGREP=$lt_EGREP
10203
10204# The linker used to build libraries.
10205LD=$lt_LD
10206
10207# Whether we need hard or soft links.
10208LN_S=$lt_LN_S
10209
10210# A BSD-compatible nm program.
10211NM=$lt_NM
10212
10213# A symbol stripping program
10214STRIP=$lt_STRIP
10215
10216# Used to examine libraries when file_magic_cmd begins "file"
10217MAGIC_CMD=$MAGIC_CMD
10218
10219# Used on cygwin: DLL creation program.
10220DLLTOOL="$DLLTOOL"
10221
10222# Used on cygwin: object dumper.
10223OBJDUMP="$OBJDUMP"
10224
10225# Used on cygwin: assembler.
10226AS="$AS"
10227
10228# The name of the directory that contains temporary libtool files.
10229objdir=$objdir
10230
10231# How to create reloadable object files.
10232reload_flag=$lt_reload_flag
10233reload_cmds=$lt_reload_cmds
10234
10235# How to pass a linker flag through the compiler.
10236wl=$lt_lt_prog_compiler_wl
10237
10238# Object file suffix (normally "o").
10239objext="$ac_objext"
10240
10241# Old archive suffix (normally "a").
10242libext="$libext"
10243
10244# Shared library suffix (normally ".so").
10245shrext_cmds='$shrext_cmds'
10246
10247# Executable file suffix (normally "").
10248exeext="$exeext"
10249
10250# Additional compiler flags for building library objects.
10251pic_flag=$lt_lt_prog_compiler_pic
10252pic_mode=$pic_mode
10253
10254# What is the maximum length of a command?
10255max_cmd_len=$lt_cv_sys_max_cmd_len
10256
10257# Does compiler simultaneously support -c and -o options?
10258compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10259
10260# Must we lock files when doing compilation?
10261need_locks=$lt_need_locks
10262
10263# Do we need the lib prefix for modules?
10264need_lib_prefix=$need_lib_prefix
10265
10266# Do we need a version for libraries?
10267need_version=$need_version
10268
10269# Whether dlopen is supported.
10270dlopen_support=$enable_dlopen
10271
10272# Whether dlopen of programs is supported.
10273dlopen_self=$enable_dlopen_self
10274
10275# Whether dlopen of statically linked programs is supported.
10276dlopen_self_static=$enable_dlopen_self_static
10277
10278# Compiler flag to prevent dynamic linking.
10279link_static_flag=$lt_lt_prog_compiler_static
10280
10281# Compiler flag to turn off builtin functions.
10282no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10283
10284# Compiler flag to allow reflexive dlopens.
10285export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10286
10287# Compiler flag to generate shared objects directly from archives.
10288whole_archive_flag_spec=$lt_whole_archive_flag_spec
10289
10290# Compiler flag to generate thread-safe objects.
10291thread_safe_flag_spec=$lt_thread_safe_flag_spec
10292
10293# Library versioning type.
10294version_type=$version_type
10295
10296# Format of library name prefix.
10297libname_spec=$lt_libname_spec
10298
10299# List of archive names.  First name is the real one, the rest are links.
10300# The last name is the one that the linker finds with -lNAME.
10301library_names_spec=$lt_library_names_spec
10302
10303# The coded name of the library, if different from the real name.
10304soname_spec=$lt_soname_spec
10305
10306# Commands used to build and install an old-style archive.
10307RANLIB=$lt_RANLIB
10308old_archive_cmds=$lt_old_archive_cmds
10309old_postinstall_cmds=$lt_old_postinstall_cmds
10310old_postuninstall_cmds=$lt_old_postuninstall_cmds
10311
10312# Create an old-style archive from a shared archive.
10313old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10314
10315# Create a temporary old-style archive to link instead of a shared archive.
10316old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10317
10318# Commands used to build and install a shared archive.
10319archive_cmds=$lt_archive_cmds
10320archive_expsym_cmds=$lt_archive_expsym_cmds
10321postinstall_cmds=$lt_postinstall_cmds
10322postuninstall_cmds=$lt_postuninstall_cmds
10323
10324# Commands used to build a loadable module (assumed same as above if empty)
10325module_cmds=$lt_module_cmds
10326module_expsym_cmds=$lt_module_expsym_cmds
10327
10328# Commands to strip libraries.
10329old_striplib=$lt_old_striplib
10330striplib=$lt_striplib
10331
10332# Dependencies to place before the objects being linked to create a
10333# shared library.
10334predep_objects=$lt_predep_objects
10335
10336# Dependencies to place after the objects being linked to create a
10337# shared library.
10338postdep_objects=$lt_postdep_objects
10339
10340# Dependencies to place before the objects being linked to create a
10341# shared library.
10342predeps=$lt_predeps
10343
10344# Dependencies to place after the objects being linked to create a
10345# shared library.
10346postdeps=$lt_postdeps
10347
10348# The library search path used internally by the compiler when linking
10349# a shared library.
10350compiler_lib_search_path=$lt_compiler_lib_search_path
10351
10352# Method to check whether dependent libraries are shared objects.
10353deplibs_check_method=$lt_deplibs_check_method
10354
10355# Command to use when deplibs_check_method == file_magic.
10356file_magic_cmd=$lt_file_magic_cmd
10357
10358# Flag that allows shared libraries with undefined symbols to be built.
10359allow_undefined_flag=$lt_allow_undefined_flag
10360
10361# Flag that forces no undefined symbols.
10362no_undefined_flag=$lt_no_undefined_flag
10363
10364# Commands used to finish a libtool library installation in a directory.
10365finish_cmds=$lt_finish_cmds
10366
10367# Same as above, but a single script fragment to be evaled but not shown.
10368finish_eval=$lt_finish_eval
10369
10370# Take the output of nm and produce a listing of raw symbols and C names.
10371global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10372
10373# Transform the output of nm in a proper C declaration
10374global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10375
10376# Transform the output of nm in a C name address pair
10377global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10378
10379# This is the shared library runtime path variable.
10380runpath_var=$runpath_var
10381
10382# This is the shared library path variable.
10383shlibpath_var=$shlibpath_var
10384
10385# Is shlibpath searched before the hard-coded library search path?
10386shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10387
10388# How to hardcode a shared library path into an executable.
10389hardcode_action=$hardcode_action
10390
10391# Whether we should hardcode library paths into libraries.
10392hardcode_into_libs=$hardcode_into_libs
10393
10394# Flag to hardcode \$libdir into a binary during linking.
10395# This must work even if \$libdir does not exist.
10396hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10397
10398# If ld is used when linking, flag to hardcode \$libdir into
10399# a binary during linking. This must work even if \$libdir does
10400# not exist.
10401hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10402
10403# Whether we need a single -rpath flag with a separated argument.
10404hardcode_libdir_separator=$lt_hardcode_libdir_separator
10405
10406# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10407# resulting binary.
10408hardcode_direct=$hardcode_direct
10409
10410# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10411# resulting binary.
10412hardcode_minus_L=$hardcode_minus_L
10413
10414# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10415# the resulting binary.
10416hardcode_shlibpath_var=$hardcode_shlibpath_var
10417
10418# Set to yes if building a shared library automatically hardcodes DIR into the library
10419# and all subsequent libraries and executables linked against it.
10420hardcode_automatic=$hardcode_automatic
10421
10422# Variables whose values should be saved in libtool wrapper scripts and
10423# restored at relink time.
10424variables_saved_for_relink="$variables_saved_for_relink"
10425
10426# Whether libtool must link a program against all its dependency libraries.
10427link_all_deplibs=$link_all_deplibs
10428
10429# Compile-time system search path for libraries
10430sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10431
10432# Run-time system search path for libraries
10433sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10434
10435# Fix the shell variable \$srcfile for the compiler.
10436fix_srcfile_path="$fix_srcfile_path"
10437
10438# Set to yes if exported symbols are required.
10439always_export_symbols=$always_export_symbols
10440
10441# The commands to list exported symbols.
10442export_symbols_cmds=$lt_export_symbols_cmds
10443
10444# The commands to extract the exported symbol list from a shared archive.
10445extract_expsyms_cmds=$lt_extract_expsyms_cmds
10446
10447# Symbols that should not be listed in the preloaded symbols.
10448exclude_expsyms=$lt_exclude_expsyms
10449
10450# Symbols that must always be exported.
10451include_expsyms=$lt_include_expsyms
10452
10453# ### END LIBTOOL CONFIG
10454
10455__EOF__
10456
10457
10458  case $host_os in
10459  aix3*)
10460    cat <<\EOF >> "$cfgfile"
10461
10462# AIX sometimes has problems with the GCC collect2 program.  For some
10463# reason, if we set the COLLECT_NAMES environment variable, the problems
10464# vanish in a puff of smoke.
10465if test "X${COLLECT_NAMES+set}" != Xset; then
10466  COLLECT_NAMES=
10467  export COLLECT_NAMES
10468fi
10469EOF
10470    ;;
10471  esac
10472
10473  # We use sed instead of cat because bash on DJGPP gets confused if
10474  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10475  # text mode, it properly converts lines to CR/LF.  This bash problem
10476  # is reportedly fixed, but why not run on old versions too?
10477  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10478
10479  mv -f "$cfgfile" "$ofile" || \
10480    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10481  chmod +x "$ofile"
10482
10483else
10484  # If there is no Makefile yet, we rely on a make rule to execute
10485  # `config.status --recheck' to rerun these tests and create the
10486  # libtool script then.
10487  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10488  if test -f "$ltmain_in"; then
10489    test -f Makefile && make "$ltmain"
10490  fi
10491fi
10492
10493
10494ac_ext=c
10495ac_cpp='$CPP $CPPFLAGS'
10496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10498ac_compiler_gnu=$ac_cv_c_compiler_gnu
10499
10500CC="$lt_save_CC"
10501
10502
10503# Check whether --with-tags was given.
10504if test "${with_tags+set}" = set; then
10505  withval=$with_tags; tagnames="$withval"
10506fi
10507
10508
10509if test -f "$ltmain" && test -n "$tagnames"; then
10510  if test ! -f "${ofile}"; then
10511    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10512echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10513  fi
10514
10515  if test -z "$LTCC"; then
10516    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10517    if test -z "$LTCC"; then
10518      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10519echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10520    else
10521      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10522echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10523    fi
10524  fi
10525  if test -z "$LTCFLAGS"; then
10526    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10527  fi
10528
10529  # Extract list of available tagged configurations in $ofile.
10530  # Note that this assumes the entire list is on one line.
10531  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10532
10533  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10534  for tagname in $tagnames; do
10535    IFS="$lt_save_ifs"
10536    # Check whether tagname contains only valid characters
10537    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10538    "") ;;
10539    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10540echo "$as_me: error: invalid tag name: $tagname" >&2;}
10541   { (exit 1); exit 1; }; }
10542	;;
10543    esac
10544
10545    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10546    then
10547      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10548echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10549   { (exit 1); exit 1; }; }
10550    fi
10551
10552    # Update the list of available tags.
10553    if test -n "$tagname"; then
10554      echo appending configuration tag \"$tagname\" to $ofile
10555
10556      case $tagname in
10557      CXX)
10558	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10559	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10560	    (test "X$CXX" != "Xg++"))) ; then
10561	  ac_ext=cpp
10562ac_cpp='$CXXCPP $CPPFLAGS'
10563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10566
10567
10568
10569
10570archive_cmds_need_lc_CXX=no
10571allow_undefined_flag_CXX=
10572always_export_symbols_CXX=no
10573archive_expsym_cmds_CXX=
10574export_dynamic_flag_spec_CXX=
10575hardcode_direct_CXX=no
10576hardcode_libdir_flag_spec_CXX=
10577hardcode_libdir_flag_spec_ld_CXX=
10578hardcode_libdir_separator_CXX=
10579hardcode_minus_L_CXX=no
10580hardcode_shlibpath_var_CXX=unsupported
10581hardcode_automatic_CXX=no
10582module_cmds_CXX=
10583module_expsym_cmds_CXX=
10584link_all_deplibs_CXX=unknown
10585old_archive_cmds_CXX=$old_archive_cmds
10586no_undefined_flag_CXX=
10587whole_archive_flag_spec_CXX=
10588enable_shared_with_static_runtimes_CXX=no
10589
10590# Dependencies to place before and after the object being linked:
10591predep_objects_CXX=
10592postdep_objects_CXX=
10593predeps_CXX=
10594postdeps_CXX=
10595compiler_lib_search_path_CXX=
10596
10597# Source file extension for C++ test sources.
10598ac_ext=cpp
10599
10600# Object file extension for compiled C++ test sources.
10601objext=o
10602objext_CXX=$objext
10603
10604# Code to be used in simple compile tests
10605lt_simple_compile_test_code="int some_variable = 0;\n"
10606
10607# Code to be used in simple link tests
10608lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10609
10610# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10611
10612# If no C compiler was specified, use CC.
10613LTCC=${LTCC-"$CC"}
10614
10615# If no C compiler flags were specified, use CFLAGS.
10616LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10617
10618# Allow CC to be a program name with arguments.
10619compiler=$CC
10620
10621
10622# save warnings/boilerplate of simple test code
10623ac_outfile=conftest.$ac_objext
10624printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10625eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10626_lt_compiler_boilerplate=`cat conftest.err`
10627$rm conftest*
10628
10629ac_outfile=conftest.$ac_objext
10630printf "$lt_simple_link_test_code" >conftest.$ac_ext
10631eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10632_lt_linker_boilerplate=`cat conftest.err`
10633$rm conftest*
10634
10635
10636# Allow CC to be a program name with arguments.
10637lt_save_CC=$CC
10638lt_save_LD=$LD
10639lt_save_GCC=$GCC
10640GCC=$GXX
10641lt_save_with_gnu_ld=$with_gnu_ld
10642lt_save_path_LD=$lt_cv_path_LD
10643if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10644  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10645else
10646  $as_unset lt_cv_prog_gnu_ld
10647fi
10648if test -n "${lt_cv_path_LDCXX+set}"; then
10649  lt_cv_path_LD=$lt_cv_path_LDCXX
10650else
10651  $as_unset lt_cv_path_LD
10652fi
10653test -z "${LDCXX+set}" || LD=$LDCXX
10654CC=${CXX-"c++"}
10655compiler=$CC
10656compiler_CXX=$CC
10657for cc_temp in $compiler""; do
10658  case $cc_temp in
10659    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10660    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10661    \-*) ;;
10662    *) break;;
10663  esac
10664done
10665cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10666
10667
10668# We don't want -fno-exception wen compiling C++ code, so set the
10669# no_builtin_flag separately
10670if test "$GXX" = yes; then
10671  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10672else
10673  lt_prog_compiler_no_builtin_flag_CXX=
10674fi
10675
10676if test "$GXX" = yes; then
10677  # Set up default GNU C++ configuration
10678
10679
10680# Check whether --with-gnu-ld was given.
10681if test "${with_gnu_ld+set}" = set; then
10682  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10683else
10684  with_gnu_ld=no
10685fi
10686
10687ac_prog=ld
10688if test "$GCC" = yes; then
10689  # Check if gcc -print-prog-name=ld gives a path.
10690  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10691echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10692  case $host in
10693  *-*-mingw*)
10694    # gcc leaves a trailing carriage return which upsets mingw
10695    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10696  *)
10697    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10698  esac
10699  case $ac_prog in
10700    # Accept absolute paths.
10701    [\\/]* | ?:[\\/]*)
10702      re_direlt='/[^/][^/]*/\.\./'
10703      # Canonicalize the pathname of ld
10704      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10705      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10706	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10707      done
10708      test -z "$LD" && LD="$ac_prog"
10709      ;;
10710  "")
10711    # If it fails, then pretend we aren't using GCC.
10712    ac_prog=ld
10713    ;;
10714  *)
10715    # If it is relative, then search for the first ld in PATH.
10716    with_gnu_ld=unknown
10717    ;;
10718  esac
10719elif test "$with_gnu_ld" = yes; then
10720  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10721echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10722else
10723  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10724echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10725fi
10726if test "${lt_cv_path_LD+set}" = set; then
10727  echo $ECHO_N "(cached) $ECHO_C" >&6
10728else
10729  if test -z "$LD"; then
10730  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10731  for ac_dir in $PATH; do
10732    IFS="$lt_save_ifs"
10733    test -z "$ac_dir" && ac_dir=.
10734    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10735      lt_cv_path_LD="$ac_dir/$ac_prog"
10736      # Check to see if the program is GNU ld.  I'd rather use --version,
10737      # but apparently some variants of GNU ld only accept -v.
10738      # Break only if it was the GNU/non-GNU ld that we prefer.
10739      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10740      *GNU* | *'with BFD'*)
10741	test "$with_gnu_ld" != no && break
10742	;;
10743      *)
10744	test "$with_gnu_ld" != yes && break
10745	;;
10746      esac
10747    fi
10748  done
10749  IFS="$lt_save_ifs"
10750else
10751  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10752fi
10753fi
10754
10755LD="$lt_cv_path_LD"
10756if test -n "$LD"; then
10757  { echo "$as_me:$LINENO: result: $LD" >&5
10758echo "${ECHO_T}$LD" >&6; }
10759else
10760  { echo "$as_me:$LINENO: result: no" >&5
10761echo "${ECHO_T}no" >&6; }
10762fi
10763test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10764echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10765   { (exit 1); exit 1; }; }
10766{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10767echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10768if test "${lt_cv_prog_gnu_ld+set}" = set; then
10769  echo $ECHO_N "(cached) $ECHO_C" >&6
10770else
10771  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10772case `$LD -v 2>&1 </dev/null` in
10773*GNU* | *'with BFD'*)
10774  lt_cv_prog_gnu_ld=yes
10775  ;;
10776*)
10777  lt_cv_prog_gnu_ld=no
10778  ;;
10779esac
10780fi
10781{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10782echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10783with_gnu_ld=$lt_cv_prog_gnu_ld
10784
10785
10786
10787  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10788  # archiving commands below assume that GNU ld is being used.
10789  if test "$with_gnu_ld" = yes; then
10790    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10791    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'
10792
10793    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10794    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10795
10796    # If archive_cmds runs LD, not CC, wlarc should be empty
10797    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10798    #     investigate it a little bit more. (MM)
10799    wlarc='${wl}'
10800
10801    # ancient GNU ld didn't support --whole-archive et. al.
10802    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10803	grep 'no-whole-archive' > /dev/null; then
10804      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10805    else
10806      whole_archive_flag_spec_CXX=
10807    fi
10808  else
10809    with_gnu_ld=no
10810    wlarc=
10811
10812    # A generic and very simple default shared library creation
10813    # command for GNU C++ for the case where it uses the native
10814    # linker, instead of GNU ld.  If possible, this setting should
10815    # overridden to take advantage of the native linker features on
10816    # the platform it is being used on.
10817    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10818  fi
10819
10820  # Commands to make compiler produce verbose output that lists
10821  # what "hidden" libraries, object files and flags are used when
10822  # linking a shared library.
10823  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10824
10825else
10826  GXX=no
10827  with_gnu_ld=no
10828  wlarc=
10829fi
10830
10831# PORTME: fill in a description of your system's C++ link characteristics
10832{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10833echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10834ld_shlibs_CXX=yes
10835case $host_os in
10836  aix3*)
10837    # FIXME: insert proper C++ library support
10838    ld_shlibs_CXX=no
10839    ;;
10840  aix4* | aix5*)
10841    if test "$host_cpu" = ia64; then
10842      # On IA64, the linker does run time linking by default, so we don't
10843      # have to do anything special.
10844      aix_use_runtimelinking=no
10845      exp_sym_flag='-Bexport'
10846      no_entry_flag=""
10847    else
10848      aix_use_runtimelinking=no
10849
10850      # Test if we are trying to use run time linking or normal
10851      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10852      # need to do runtime linking.
10853      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10854	for ld_flag in $LDFLAGS; do
10855	  case $ld_flag in
10856	  *-brtl*)
10857	    aix_use_runtimelinking=yes
10858	    break
10859	    ;;
10860	  esac
10861	done
10862	;;
10863      esac
10864
10865      exp_sym_flag='-bexport'
10866      no_entry_flag='-bnoentry'
10867    fi
10868
10869    # When large executables or shared objects are built, AIX ld can
10870    # have problems creating the table of contents.  If linking a library
10871    # or program results in "error TOC overflow" add -mminimal-toc to
10872    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10873    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10874
10875    archive_cmds_CXX=''
10876    hardcode_direct_CXX=yes
10877    hardcode_libdir_separator_CXX=':'
10878    link_all_deplibs_CXX=yes
10879
10880    if test "$GXX" = yes; then
10881      case $host_os in aix4.[012]|aix4.[012].*)
10882      # We only want to do this on AIX 4.2 and lower, the check
10883      # below for broken collect2 doesn't work under 4.3+
10884	collect2name=`${CC} -print-prog-name=collect2`
10885	if test -f "$collect2name" && \
10886	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10887	then
10888	  # We have reworked collect2
10889	  hardcode_direct_CXX=yes
10890	else
10891	  # We have old collect2
10892	  hardcode_direct_CXX=unsupported
10893	  # It fails to find uninstalled libraries when the uninstalled
10894	  # path is not listed in the libpath.  Setting hardcode_minus_L
10895	  # to unsupported forces relinking
10896	  hardcode_minus_L_CXX=yes
10897	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10898	  hardcode_libdir_separator_CXX=
10899	fi
10900	;;
10901      esac
10902      shared_flag='-shared'
10903      if test "$aix_use_runtimelinking" = yes; then
10904	shared_flag="$shared_flag "'${wl}-G'
10905      fi
10906    else
10907      # not using gcc
10908      if test "$host_cpu" = ia64; then
10909	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10910	# chokes on -Wl,-G. The following line is correct:
10911	shared_flag='-G'
10912      else
10913	if test "$aix_use_runtimelinking" = yes; then
10914	  shared_flag='${wl}-G'
10915	else
10916	  shared_flag='${wl}-bM:SRE'
10917	fi
10918      fi
10919    fi
10920
10921    # It seems that -bexpall does not export symbols beginning with
10922    # underscore (_), so it is better to generate a list of symbols to export.
10923    always_export_symbols_CXX=yes
10924    if test "$aix_use_runtimelinking" = yes; then
10925      # Warning - without using the other runtime loading flags (-brtl),
10926      # -berok will link without error, but may produce a broken library.
10927      allow_undefined_flag_CXX='-berok'
10928      # Determine the default libpath from the value encoded in an empty executable.
10929      cat >conftest.$ac_ext <<_ACEOF
10930/* confdefs.h.  */
10931_ACEOF
10932cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h.  */
10935
10936int
10937main ()
10938{
10939
10940  ;
10941  return 0;
10942}
10943_ACEOF
10944rm -f conftest.$ac_objext conftest$ac_exeext
10945if { (ac_try="$ac_link"
10946case "(($ac_try" in
10947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948  *) ac_try_echo=$ac_try;;
10949esac
10950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951  (eval "$ac_link") 2>conftest.er1
10952  ac_status=$?
10953  grep -v '^ *+' conftest.er1 >conftest.err
10954  rm -f conftest.er1
10955  cat conftest.err >&5
10956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957  (exit $ac_status); } && {
10958	 test -z "$ac_cxx_werror_flag" ||
10959	 test ! -s conftest.err
10960       } && test -s conftest$ac_exeext &&
10961       $as_test_x conftest$ac_exeext; then
10962
10963aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10964}'`
10965# Check for a 64-bit object if we didn't find anything.
10966if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10967}'`; fi
10968else
10969  echo "$as_me: failed program was:" >&5
10970sed 's/^/| /' conftest.$ac_ext >&5
10971
10972
10973fi
10974
10975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10976      conftest$ac_exeext conftest.$ac_ext
10977if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10978
10979      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10980
10981      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"
10982     else
10983      if test "$host_cpu" = ia64; then
10984	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10985	allow_undefined_flag_CXX="-z nodefs"
10986	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"
10987      else
10988	# Determine the default libpath from the value encoded in an empty executable.
10989	cat >conftest.$ac_ext <<_ACEOF
10990/* confdefs.h.  */
10991_ACEOF
10992cat confdefs.h >>conftest.$ac_ext
10993cat >>conftest.$ac_ext <<_ACEOF
10994/* end confdefs.h.  */
10995
10996int
10997main ()
10998{
10999
11000  ;
11001  return 0;
11002}
11003_ACEOF
11004rm -f conftest.$ac_objext conftest$ac_exeext
11005if { (ac_try="$ac_link"
11006case "(($ac_try" in
11007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008  *) ac_try_echo=$ac_try;;
11009esac
11010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011  (eval "$ac_link") 2>conftest.er1
11012  ac_status=$?
11013  grep -v '^ *+' conftest.er1 >conftest.err
11014  rm -f conftest.er1
11015  cat conftest.err >&5
11016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017  (exit $ac_status); } && {
11018	 test -z "$ac_cxx_werror_flag" ||
11019	 test ! -s conftest.err
11020       } && test -s conftest$ac_exeext &&
11021       $as_test_x conftest$ac_exeext; then
11022
11023aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11024}'`
11025# Check for a 64-bit object if we didn't find anything.
11026if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11027}'`; fi
11028else
11029  echo "$as_me: failed program was:" >&5
11030sed 's/^/| /' conftest.$ac_ext >&5
11031
11032
11033fi
11034
11035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11036      conftest$ac_exeext conftest.$ac_ext
11037if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11038
11039	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11040	# Warning - without using the other run time loading flags,
11041	# -berok will link without error, but may produce a broken library.
11042	no_undefined_flag_CXX=' ${wl}-bernotok'
11043	allow_undefined_flag_CXX=' ${wl}-berok'
11044	# Exported symbols can be pulled into shared objects from archives
11045	whole_archive_flag_spec_CXX='$convenience'
11046	archive_cmds_need_lc_CXX=yes
11047	# This is similar to how AIX traditionally builds its shared libraries.
11048	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'
11049      fi
11050    fi
11051    ;;
11052
11053  beos*)
11054    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11055      allow_undefined_flag_CXX=unsupported
11056      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11057      # support --undefined.  This deserves some investigation.  FIXME
11058      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11059    else
11060      ld_shlibs_CXX=no
11061    fi
11062    ;;
11063
11064  chorus*)
11065    case $cc_basename in
11066      *)
11067	# FIXME: insert proper C++ library support
11068	ld_shlibs_CXX=no
11069	;;
11070    esac
11071    ;;
11072
11073  cygwin* | mingw* | pw32*)
11074    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11075    # as there is no search path for DLLs.
11076    hardcode_libdir_flag_spec_CXX='-L$libdir'
11077    allow_undefined_flag_CXX=unsupported
11078    always_export_symbols_CXX=no
11079    enable_shared_with_static_runtimes_CXX=yes
11080
11081    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11082      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'
11083      # If the export-symbols file already is a .def file (1st line
11084      # is EXPORTS), use it as is; otherwise, prepend...
11085      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11086	cp $export_symbols $output_objdir/$soname.def;
11087      else
11088	echo EXPORTS > $output_objdir/$soname.def;
11089	cat $export_symbols >> $output_objdir/$soname.def;
11090      fi~
11091      $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'
11092    else
11093      ld_shlibs_CXX=no
11094    fi
11095  ;;
11096      darwin* | rhapsody*)
11097        case $host_os in
11098        rhapsody* | darwin1.[012])
11099         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11100         ;;
11101       *) # Darwin 1.3 on
11102         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11103           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11104         else
11105           case ${MACOSX_DEPLOYMENT_TARGET} in
11106             10.[012])
11107               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11108               ;;
11109             10.*)
11110               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11111               ;;
11112           esac
11113         fi
11114         ;;
11115        esac
11116      archive_cmds_need_lc_CXX=no
11117      hardcode_direct_CXX=no
11118      hardcode_automatic_CXX=yes
11119      hardcode_shlibpath_var_CXX=unsupported
11120      whole_archive_flag_spec_CXX=''
11121      link_all_deplibs_CXX=yes
11122
11123    if test "$GXX" = yes ; then
11124      lt_int_apple_cc_single_mod=no
11125      output_verbose_link_cmd='echo'
11126      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11127       lt_int_apple_cc_single_mod=yes
11128      fi
11129      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11130       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11131      else
11132          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'
11133        fi
11134        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11135        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11136          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11137            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}'
11138          else
11139            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}'
11140          fi
11141            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}'
11142      else
11143      case $cc_basename in
11144        xlc*)
11145         output_verbose_link_cmd='echo'
11146          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11147          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11148          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11149          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11150          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}'
11151          ;;
11152       *)
11153         ld_shlibs_CXX=no
11154          ;;
11155      esac
11156      fi
11157        ;;
11158
11159  dgux*)
11160    case $cc_basename in
11161      ec++*)
11162	# FIXME: insert proper C++ library support
11163	ld_shlibs_CXX=no
11164	;;
11165      ghcx*)
11166	# Green Hills C++ Compiler
11167	# FIXME: insert proper C++ library support
11168	ld_shlibs_CXX=no
11169	;;
11170      *)
11171	# FIXME: insert proper C++ library support
11172	ld_shlibs_CXX=no
11173	;;
11174    esac
11175    ;;
11176  freebsd[12]*)
11177    # C++ shared libraries reported to be fairly broken before switch to ELF
11178    ld_shlibs_CXX=no
11179    ;;
11180  freebsd-elf*)
11181    archive_cmds_need_lc_CXX=no
11182    ;;
11183  freebsd* | kfreebsd*-gnu | dragonfly*)
11184    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11185    # conventions
11186    ld_shlibs_CXX=yes
11187    ;;
11188  gnu*)
11189    ;;
11190  hpux9*)
11191    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11192    hardcode_libdir_separator_CXX=:
11193    export_dynamic_flag_spec_CXX='${wl}-E'
11194    hardcode_direct_CXX=yes
11195    hardcode_minus_L_CXX=yes # Not in the search PATH,
11196				# but as the default
11197				# location of the library.
11198
11199    case $cc_basename in
11200    CC*)
11201      # FIXME: insert proper C++ library support
11202      ld_shlibs_CXX=no
11203      ;;
11204    aCC*)
11205      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'
11206      # Commands to make compiler produce verbose output that lists
11207      # what "hidden" libraries, object files and flags are used when
11208      # linking a shared library.
11209      #
11210      # There doesn't appear to be a way to prevent this compiler from
11211      # explicitly linking system object files so we need to strip them
11212      # from the output so that they don't get included in the library
11213      # dependencies.
11214      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'
11215      ;;
11216    *)
11217      if test "$GXX" = yes; then
11218        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'
11219      else
11220        # FIXME: insert proper C++ library support
11221        ld_shlibs_CXX=no
11222      fi
11223      ;;
11224    esac
11225    ;;
11226  hpux10*|hpux11*)
11227    if test $with_gnu_ld = no; then
11228      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11229      hardcode_libdir_separator_CXX=:
11230
11231      case $host_cpu in
11232      hppa*64*|ia64*)
11233	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11234        ;;
11235      *)
11236	export_dynamic_flag_spec_CXX='${wl}-E'
11237        ;;
11238      esac
11239    fi
11240    case $host_cpu in
11241    hppa*64*|ia64*)
11242      hardcode_direct_CXX=no
11243      hardcode_shlibpath_var_CXX=no
11244      ;;
11245    *)
11246      hardcode_direct_CXX=yes
11247      hardcode_minus_L_CXX=yes # Not in the search PATH,
11248					      # but as the default
11249					      # location of the library.
11250      ;;
11251    esac
11252
11253    case $cc_basename in
11254      CC*)
11255	# FIXME: insert proper C++ library support
11256	ld_shlibs_CXX=no
11257	;;
11258      aCC*)
11259	case $host_cpu in
11260	hppa*64*)
11261	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11262	  ;;
11263	ia64*)
11264	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11265	  ;;
11266	*)
11267	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11268	  ;;
11269	esac
11270	# Commands to make compiler produce verbose output that lists
11271	# what "hidden" libraries, object files and flags are used when
11272	# linking a shared library.
11273	#
11274	# There doesn't appear to be a way to prevent this compiler from
11275	# explicitly linking system object files so we need to strip them
11276	# from the output so that they don't get included in the library
11277	# dependencies.
11278	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'
11279	;;
11280      *)
11281	if test "$GXX" = yes; then
11282	  if test $with_gnu_ld = no; then
11283	    case $host_cpu in
11284	    hppa*64*)
11285	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11286	      ;;
11287	    ia64*)
11288	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11289	      ;;
11290	    *)
11291	      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'
11292	      ;;
11293	    esac
11294	  fi
11295	else
11296	  # FIXME: insert proper C++ library support
11297	  ld_shlibs_CXX=no
11298	fi
11299	;;
11300    esac
11301    ;;
11302  interix3*)
11303    hardcode_direct_CXX=no
11304    hardcode_shlibpath_var_CXX=no
11305    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11306    export_dynamic_flag_spec_CXX='${wl}-E'
11307    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11308    # Instead, shared libraries are loaded at an image base (0x10000000 by
11309    # default) and relocated if they conflict, which is a slow very memory
11310    # consuming and fragmenting process.  To avoid this, we pick a random,
11311    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11312    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11313    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'
11314    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'
11315    ;;
11316  irix5* | irix6*)
11317    case $cc_basename in
11318      CC*)
11319	# SGI C++
11320	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'
11321
11322	# Archives containing C++ object files must be created using
11323	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11324	# necessary to make sure instantiated templates are included
11325	# in the archive.
11326	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11327	;;
11328      *)
11329	if test "$GXX" = yes; then
11330	  if test "$with_gnu_ld" = no; then
11331	    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'
11332	  else
11333	    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'
11334	  fi
11335	fi
11336	link_all_deplibs_CXX=yes
11337	;;
11338    esac
11339    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11340    hardcode_libdir_separator_CXX=:
11341    ;;
11342  linux*)
11343    case $cc_basename in
11344      KCC*)
11345	# Kuck and Associates, Inc. (KAI) C++ Compiler
11346
11347	# KCC will only create a shared library if the output file
11348	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11349	# to its proper name (with version) after linking.
11350	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'
11351	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'
11352	# Commands to make compiler produce verbose output that lists
11353	# what "hidden" libraries, object files and flags are used when
11354	# linking a shared library.
11355	#
11356	# There doesn't appear to be a way to prevent this compiler from
11357	# explicitly linking system object files so we need to strip them
11358	# from the output so that they don't get included in the library
11359	# dependencies.
11360	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'
11361
11362	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11363	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11364
11365	# Archives containing C++ object files must be created using
11366	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11367	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11368	;;
11369      icpc*)
11370	# Intel C++
11371	with_gnu_ld=yes
11372	# version 8.0 and above of icpc choke on multiply defined symbols
11373	# if we add $predep_objects and $postdep_objects, however 7.1 and
11374	# earlier do not add the objects themselves.
11375	case `$CC -V 2>&1` in
11376	*"Version 7."*)
11377  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11378  	  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'
11379	  ;;
11380	*)  # Version 8.0 or newer
11381	  tmp_idyn=
11382	  case $host_cpu in
11383	    ia64*) tmp_idyn=' -i_dynamic';;
11384	  esac
11385  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11386	  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'
11387	  ;;
11388	esac
11389	archive_cmds_need_lc_CXX=no
11390	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11391	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11392	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11393	;;
11394      pgCC*)
11395        # Portland Group C++ compiler
11396	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11397  	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'
11398
11399	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11400	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11401	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'
11402        ;;
11403      cxx*)
11404	# Compaq C++
11405	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11406	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'
11407
11408	runpath_var=LD_RUN_PATH
11409	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11410	hardcode_libdir_separator_CXX=:
11411
11412	# Commands to make compiler produce verbose output that lists
11413	# what "hidden" libraries, object files and flags are used when
11414	# linking a shared library.
11415	#
11416	# There doesn't appear to be a way to prevent this compiler from
11417	# explicitly linking system object files so we need to strip them
11418	# from the output so that they don't get included in the library
11419	# dependencies.
11420	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'
11421	;;
11422    esac
11423    ;;
11424  lynxos*)
11425    # FIXME: insert proper C++ library support
11426    ld_shlibs_CXX=no
11427    ;;
11428  m88k*)
11429    # FIXME: insert proper C++ library support
11430    ld_shlibs_CXX=no
11431    ;;
11432  mvs*)
11433    case $cc_basename in
11434      cxx*)
11435	# FIXME: insert proper C++ library support
11436	ld_shlibs_CXX=no
11437	;;
11438      *)
11439	# FIXME: insert proper C++ library support
11440	ld_shlibs_CXX=no
11441	;;
11442    esac
11443    ;;
11444  netbsd*)
11445    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11446      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11447      wlarc=
11448      hardcode_libdir_flag_spec_CXX='-R$libdir'
11449      hardcode_direct_CXX=yes
11450      hardcode_shlibpath_var_CXX=no
11451    fi
11452    # Workaround some broken pre-1.5 toolchains
11453    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11454    ;;
11455  openbsd2*)
11456    # C++ shared libraries are fairly broken
11457    ld_shlibs_CXX=no
11458    ;;
11459  openbsd*)
11460    hardcode_direct_CXX=yes
11461    hardcode_shlibpath_var_CXX=no
11462    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11463    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11464    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11465      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11466      export_dynamic_flag_spec_CXX='${wl}-E'
11467      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11468    fi
11469    output_verbose_link_cmd='echo'
11470    ;;
11471  osf3*)
11472    case $cc_basename in
11473      KCC*)
11474	# Kuck and Associates, Inc. (KAI) C++ Compiler
11475
11476	# KCC will only create a shared library if the output file
11477	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11478	# to its proper name (with version) after linking.
11479	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'
11480
11481	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11482	hardcode_libdir_separator_CXX=:
11483
11484	# Archives containing C++ object files must be created using
11485	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11486	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11487
11488	;;
11489      RCC*)
11490	# Rational C++ 2.4.1
11491	# FIXME: insert proper C++ library support
11492	ld_shlibs_CXX=no
11493	;;
11494      cxx*)
11495	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11496	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'
11497
11498	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11499	hardcode_libdir_separator_CXX=:
11500
11501	# Commands to make compiler produce verbose output that lists
11502	# what "hidden" libraries, object files and flags are used when
11503	# linking a shared library.
11504	#
11505	# There doesn't appear to be a way to prevent this compiler from
11506	# explicitly linking system object files so we need to strip them
11507	# from the output so that they don't get included in the library
11508	# dependencies.
11509	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'
11510	;;
11511      *)
11512	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11513	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11514	  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'
11515
11516	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11517	  hardcode_libdir_separator_CXX=:
11518
11519	  # Commands to make compiler produce verbose output that lists
11520	  # what "hidden" libraries, object files and flags are used when
11521	  # linking a shared library.
11522	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11523
11524	else
11525	  # FIXME: insert proper C++ library support
11526	  ld_shlibs_CXX=no
11527	fi
11528	;;
11529    esac
11530    ;;
11531  osf4* | osf5*)
11532    case $cc_basename in
11533      KCC*)
11534	# Kuck and Associates, Inc. (KAI) C++ Compiler
11535
11536	# KCC will only create a shared library if the output file
11537	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11538	# to its proper name (with version) after linking.
11539	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'
11540
11541	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11542	hardcode_libdir_separator_CXX=:
11543
11544	# Archives containing C++ object files must be created using
11545	# the KAI C++ compiler.
11546	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11547	;;
11548      RCC*)
11549	# Rational C++ 2.4.1
11550	# FIXME: insert proper C++ library support
11551	ld_shlibs_CXX=no
11552	;;
11553      cxx*)
11554	allow_undefined_flag_CXX=' -expect_unresolved \*'
11555	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'
11556	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11557	  echo "-hidden">> $lib.exp~
11558	  $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~
11559	  $rm $lib.exp'
11560
11561	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11562	hardcode_libdir_separator_CXX=:
11563
11564	# Commands to make compiler produce verbose output that lists
11565	# what "hidden" libraries, object files and flags are used when
11566	# linking a shared library.
11567	#
11568	# There doesn't appear to be a way to prevent this compiler from
11569	# explicitly linking system object files so we need to strip them
11570	# from the output so that they don't get included in the library
11571	# dependencies.
11572	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'
11573	;;
11574      *)
11575	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11576	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11577	 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'
11578
11579	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11580	  hardcode_libdir_separator_CXX=:
11581
11582	  # Commands to make compiler produce verbose output that lists
11583	  # what "hidden" libraries, object files and flags are used when
11584	  # linking a shared library.
11585	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11586
11587	else
11588	  # FIXME: insert proper C++ library support
11589	  ld_shlibs_CXX=no
11590	fi
11591	;;
11592    esac
11593    ;;
11594  psos*)
11595    # FIXME: insert proper C++ library support
11596    ld_shlibs_CXX=no
11597    ;;
11598  sunos4*)
11599    case $cc_basename in
11600      CC*)
11601	# Sun C++ 4.x
11602	# FIXME: insert proper C++ library support
11603	ld_shlibs_CXX=no
11604	;;
11605      lcc*)
11606	# Lucid
11607	# FIXME: insert proper C++ library support
11608	ld_shlibs_CXX=no
11609	;;
11610      *)
11611	# FIXME: insert proper C++ library support
11612	ld_shlibs_CXX=no
11613	;;
11614    esac
11615    ;;
11616  solaris*)
11617    case $cc_basename in
11618      CC*)
11619	# Sun C++ 4.2, 5.x and Centerline C++
11620        archive_cmds_need_lc_CXX=yes
11621	no_undefined_flag_CXX=' -zdefs'
11622	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11623	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11624	$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'
11625
11626	hardcode_libdir_flag_spec_CXX='-R$libdir'
11627	hardcode_shlibpath_var_CXX=no
11628	case $host_os in
11629	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11630	  *)
11631	    # The C++ compiler is used as linker so we must use $wl
11632	    # flag to pass the commands to the underlying system
11633	    # linker. We must also pass each convience library through
11634	    # to the system linker between allextract/defaultextract.
11635	    # The C++ compiler will combine linker options so we
11636	    # cannot just pass the convience library names through
11637	    # without $wl.
11638	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11639	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11640	    ;;
11641	esac
11642	link_all_deplibs_CXX=yes
11643
11644	output_verbose_link_cmd='echo'
11645
11646	# Archives containing C++ object files must be created using
11647	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11648	# necessary to make sure instantiated templates are included
11649	# in the archive.
11650	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11651	;;
11652      gcx*)
11653	# Green Hills C++ Compiler
11654	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11655
11656	# The C++ compiler must be used to create the archive.
11657	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11658	;;
11659      *)
11660	# GNU C++ compiler with Solaris linker
11661	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11662	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11663	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11664	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11665	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11666		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11667
11668	    # Commands to make compiler produce verbose output that lists
11669	    # what "hidden" libraries, object files and flags are used when
11670	    # linking a shared library.
11671	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11672	  else
11673	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11674	    # platform.
11675	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11676	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11677		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11678
11679	    # Commands to make compiler produce verbose output that lists
11680	    # what "hidden" libraries, object files and flags are used when
11681	    # linking a shared library.
11682	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11683	  fi
11684
11685	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11686	fi
11687	;;
11688    esac
11689    ;;
11690  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11691    no_undefined_flag_CXX='${wl}-z,text'
11692    archive_cmds_need_lc_CXX=no
11693    hardcode_shlibpath_var_CXX=no
11694    runpath_var='LD_RUN_PATH'
11695
11696    case $cc_basename in
11697      CC*)
11698	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11699	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11700	;;
11701      *)
11702	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11703	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11704	;;
11705    esac
11706    ;;
11707  sysv5* | sco3.2v5* | sco5v6*)
11708    # Note: We can NOT use -z defs as we might desire, because we do not
11709    # link with -lc, and that would cause any symbols used from libc to
11710    # always be unresolved, which means just about no library would
11711    # ever link correctly.  If we're not using GNU ld we use -z text
11712    # though, which does catch some bad symbols but isn't as heavy-handed
11713    # as -z defs.
11714    # For security reasons, it is highly recommended that you always
11715    # use absolute paths for naming shared libraries, and exclude the
11716    # DT_RUNPATH tag from executables and libraries.  But doing so
11717    # requires that you compile everything twice, which is a pain.
11718    # So that behaviour is only enabled if SCOABSPATH is set to a
11719    # non-empty value in the environment.  Most likely only useful for
11720    # creating official distributions of packages.
11721    # This is a hack until libtool officially supports absolute path
11722    # names for shared libraries.
11723    no_undefined_flag_CXX='${wl}-z,text'
11724    allow_undefined_flag_CXX='${wl}-z,nodefs'
11725    archive_cmds_need_lc_CXX=no
11726    hardcode_shlibpath_var_CXX=no
11727    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11728    hardcode_libdir_separator_CXX=':'
11729    link_all_deplibs_CXX=yes
11730    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11731    runpath_var='LD_RUN_PATH'
11732
11733    case $cc_basename in
11734      CC*)
11735	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11736	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11737	;;
11738      *)
11739	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11740	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11741	;;
11742    esac
11743    ;;
11744  tandem*)
11745    case $cc_basename in
11746      NCC*)
11747	# NonStop-UX NCC 3.20
11748	# FIXME: insert proper C++ library support
11749	ld_shlibs_CXX=no
11750	;;
11751      *)
11752	# FIXME: insert proper C++ library support
11753	ld_shlibs_CXX=no
11754	;;
11755    esac
11756    ;;
11757  vxworks*)
11758    # FIXME: insert proper C++ library support
11759    ld_shlibs_CXX=no
11760    ;;
11761  *)
11762    # FIXME: insert proper C++ library support
11763    ld_shlibs_CXX=no
11764    ;;
11765esac
11766{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11767echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11768test "$ld_shlibs_CXX" = no && can_build_shared=no
11769
11770GCC_CXX="$GXX"
11771LD_CXX="$LD"
11772
11773
11774cat > conftest.$ac_ext <<EOF
11775class Foo
11776{
11777public:
11778  Foo (void) { a = 0; }
11779private:
11780  int a;
11781};
11782EOF
11783
11784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785  (eval $ac_compile) 2>&5
11786  ac_status=$?
11787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788  (exit $ac_status); }; then
11789  # Parse the compiler output and extract the necessary
11790  # objects, libraries and library flags.
11791
11792  # Sentinel used to keep track of whether or not we are before
11793  # the conftest object file.
11794  pre_test_object_deps_done=no
11795
11796  # The `*' in the case matches for architectures that use `case' in
11797  # $output_verbose_cmd can trigger glob expansion during the loop
11798  # eval without this substitution.
11799  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11800
11801  for p in `eval $output_verbose_link_cmd`; do
11802    case $p in
11803
11804    -L* | -R* | -l*)
11805       # Some compilers place space between "-{L,R}" and the path.
11806       # Remove the space.
11807       if test $p = "-L" \
11808	  || test $p = "-R"; then
11809	 prev=$p
11810	 continue
11811       else
11812	 prev=
11813       fi
11814
11815       if test "$pre_test_object_deps_done" = no; then
11816	 case $p in
11817	 -L* | -R*)
11818	   # Internal compiler library paths should come after those
11819	   # provided the user.  The postdeps already come after the
11820	   # user supplied libs so there is no need to process them.
11821	   if test -z "$compiler_lib_search_path_CXX"; then
11822	     compiler_lib_search_path_CXX="${prev}${p}"
11823	   else
11824	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11825	   fi
11826	   ;;
11827	 # The "-l" case would never come before the object being
11828	 # linked, so don't bother handling this case.
11829	 esac
11830       else
11831	 if test -z "$postdeps_CXX"; then
11832	   postdeps_CXX="${prev}${p}"
11833	 else
11834	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11835	 fi
11836       fi
11837       ;;
11838
11839    *.$objext)
11840       # This assumes that the test object file only shows up
11841       # once in the compiler output.
11842       if test "$p" = "conftest.$objext"; then
11843	 pre_test_object_deps_done=yes
11844	 continue
11845       fi
11846
11847       if test "$pre_test_object_deps_done" = no; then
11848	 if test -z "$predep_objects_CXX"; then
11849	   predep_objects_CXX="$p"
11850	 else
11851	   predep_objects_CXX="$predep_objects_CXX $p"
11852	 fi
11853       else
11854	 if test -z "$postdep_objects_CXX"; then
11855	   postdep_objects_CXX="$p"
11856	 else
11857	   postdep_objects_CXX="$postdep_objects_CXX $p"
11858	 fi
11859       fi
11860       ;;
11861
11862    *) ;; # Ignore the rest.
11863
11864    esac
11865  done
11866
11867  # Clean up.
11868  rm -f a.out a.exe
11869else
11870  echo "libtool.m4: error: problem compiling CXX test program"
11871fi
11872
11873$rm -f confest.$objext
11874
11875# PORTME: override above test on systems where it is broken
11876case $host_os in
11877interix3*)
11878  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11879  # hack all around it, let's just trust "g++" to DTRT.
11880  predep_objects_CXX=
11881  postdep_objects_CXX=
11882  postdeps_CXX=
11883  ;;
11884
11885solaris*)
11886  case $cc_basename in
11887  CC*)
11888    # Adding this requires a known-good setup of shared libraries for
11889    # Sun compiler versions before 5.6, else PIC objects from an old
11890    # archive will be linked into the output, leading to subtle bugs.
11891    postdeps_CXX='-lCstd -lCrun'
11892    ;;
11893  esac
11894  ;;
11895esac
11896
11897
11898case " $postdeps_CXX " in
11899*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11900esac
11901
11902lt_prog_compiler_wl_CXX=
11903lt_prog_compiler_pic_CXX=
11904lt_prog_compiler_static_CXX=
11905
11906{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11907echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11908
11909  # C++ specific cases for pic, static, wl, etc.
11910  if test "$GXX" = yes; then
11911    lt_prog_compiler_wl_CXX='-Wl,'
11912    lt_prog_compiler_static_CXX='-static'
11913
11914    case $host_os in
11915    aix*)
11916      # All AIX code is PIC.
11917      if test "$host_cpu" = ia64; then
11918	# AIX 5 now supports IA64 processor
11919	lt_prog_compiler_static_CXX='-Bstatic'
11920      fi
11921      ;;
11922    amigaos*)
11923      # FIXME: we need at least 68020 code to build shared libraries, but
11924      # adding the `-m68020' flag to GCC prevents building anything better,
11925      # like `-m68040'.
11926      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11927      ;;
11928    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11929      # PIC is the default for these OSes.
11930      ;;
11931    mingw* | os2* | pw32*)
11932      # This hack is so that the source file can tell whether it is being
11933      # built for inclusion in a dll (and should export symbols for example).
11934      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11935      ;;
11936    darwin* | rhapsody*)
11937      # PIC is the default on this platform
11938      # Common symbols not allowed in MH_DYLIB files
11939      lt_prog_compiler_pic_CXX='-fno-common'
11940      ;;
11941    *djgpp*)
11942      # DJGPP does not support shared libraries at all
11943      lt_prog_compiler_pic_CXX=
11944      ;;
11945    interix3*)
11946      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11947      # Instead, we relocate shared libraries at runtime.
11948      ;;
11949    sysv4*MP*)
11950      if test -d /usr/nec; then
11951	lt_prog_compiler_pic_CXX=-Kconform_pic
11952      fi
11953      ;;
11954    hpux*)
11955      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11956      # not for PA HP-UX.
11957      case $host_cpu in
11958      hppa*64*|ia64*)
11959	;;
11960      *)
11961	lt_prog_compiler_pic_CXX='-fPIC'
11962	;;
11963      esac
11964      ;;
11965    *)
11966      lt_prog_compiler_pic_CXX='-fPIC'
11967      ;;
11968    esac
11969  else
11970    case $host_os in
11971      aix4* | aix5*)
11972	# All AIX code is PIC.
11973	if test "$host_cpu" = ia64; then
11974	  # AIX 5 now supports IA64 processor
11975	  lt_prog_compiler_static_CXX='-Bstatic'
11976	else
11977	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11978	fi
11979	;;
11980      chorus*)
11981	case $cc_basename in
11982	cxch68*)
11983	  # Green Hills C++ Compiler
11984	  # _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"
11985	  ;;
11986	esac
11987	;;
11988       darwin*)
11989         # PIC is the default on this platform
11990         # Common symbols not allowed in MH_DYLIB files
11991         case $cc_basename in
11992           xlc*)
11993           lt_prog_compiler_pic_CXX='-qnocommon'
11994           lt_prog_compiler_wl_CXX='-Wl,'
11995           ;;
11996         esac
11997       ;;
11998      dgux*)
11999	case $cc_basename in
12000	  ec++*)
12001	    lt_prog_compiler_pic_CXX='-KPIC'
12002	    ;;
12003	  ghcx*)
12004	    # Green Hills C++ Compiler
12005	    lt_prog_compiler_pic_CXX='-pic'
12006	    ;;
12007	  *)
12008	    ;;
12009	esac
12010	;;
12011      freebsd* | kfreebsd*-gnu | dragonfly*)
12012	# FreeBSD uses GNU C++
12013	;;
12014      hpux9* | hpux10* | hpux11*)
12015	case $cc_basename in
12016	  CC*)
12017	    lt_prog_compiler_wl_CXX='-Wl,'
12018	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12019	    if test "$host_cpu" != ia64; then
12020	      lt_prog_compiler_pic_CXX='+Z'
12021	    fi
12022	    ;;
12023	  aCC*)
12024	    lt_prog_compiler_wl_CXX='-Wl,'
12025	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12026	    case $host_cpu in
12027	    hppa*64*|ia64*)
12028	      # +Z the default
12029	      ;;
12030	    *)
12031	      lt_prog_compiler_pic_CXX='+Z'
12032	      ;;
12033	    esac
12034	    ;;
12035	  *)
12036	    ;;
12037	esac
12038	;;
12039      interix*)
12040	# This is c89, which is MS Visual C++ (no shared libs)
12041	# Anyone wants to do a port?
12042	;;
12043      irix5* | irix6* | nonstopux*)
12044	case $cc_basename in
12045	  CC*)
12046	    lt_prog_compiler_wl_CXX='-Wl,'
12047	    lt_prog_compiler_static_CXX='-non_shared'
12048	    # CC pic flag -KPIC is the default.
12049	    ;;
12050	  *)
12051	    ;;
12052	esac
12053	;;
12054      linux*)
12055	case $cc_basename in
12056	  KCC*)
12057	    # KAI C++ Compiler
12058	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12059	    lt_prog_compiler_pic_CXX='-fPIC'
12060	    ;;
12061	  icpc* | ecpc*)
12062	    # Intel C++
12063	    lt_prog_compiler_wl_CXX='-Wl,'
12064	    lt_prog_compiler_pic_CXX='-KPIC'
12065	    lt_prog_compiler_static_CXX='-static'
12066	    ;;
12067	  pgCC*)
12068	    # Portland Group C++ compiler.
12069	    lt_prog_compiler_wl_CXX='-Wl,'
12070	    lt_prog_compiler_pic_CXX='-fpic'
12071	    lt_prog_compiler_static_CXX='-Bstatic'
12072	    ;;
12073	  cxx*)
12074	    # Compaq C++
12075	    # Make sure the PIC flag is empty.  It appears that all Alpha
12076	    # Linux and Compaq Tru64 Unix objects are PIC.
12077	    lt_prog_compiler_pic_CXX=
12078	    lt_prog_compiler_static_CXX='-non_shared'
12079	    ;;
12080	  *)
12081	    ;;
12082	esac
12083	;;
12084      lynxos*)
12085	;;
12086      m88k*)
12087	;;
12088      mvs*)
12089	case $cc_basename in
12090	  cxx*)
12091	    lt_prog_compiler_pic_CXX='-W c,exportall'
12092	    ;;
12093	  *)
12094	    ;;
12095	esac
12096	;;
12097      netbsd*)
12098	;;
12099      osf3* | osf4* | osf5*)
12100	case $cc_basename in
12101	  KCC*)
12102	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12103	    ;;
12104	  RCC*)
12105	    # Rational C++ 2.4.1
12106	    lt_prog_compiler_pic_CXX='-pic'
12107	    ;;
12108	  cxx*)
12109	    # Digital/Compaq C++
12110	    lt_prog_compiler_wl_CXX='-Wl,'
12111	    # Make sure the PIC flag is empty.  It appears that all Alpha
12112	    # Linux and Compaq Tru64 Unix objects are PIC.
12113	    lt_prog_compiler_pic_CXX=
12114	    lt_prog_compiler_static_CXX='-non_shared'
12115	    ;;
12116	  *)
12117	    ;;
12118	esac
12119	;;
12120      psos*)
12121	;;
12122      solaris*)
12123	case $cc_basename in
12124	  CC*)
12125	    # Sun C++ 4.2, 5.x and Centerline C++
12126	    lt_prog_compiler_pic_CXX='-KPIC'
12127	    lt_prog_compiler_static_CXX='-Bstatic'
12128	    lt_prog_compiler_wl_CXX='-Qoption ld '
12129	    ;;
12130	  gcx*)
12131	    # Green Hills C++ Compiler
12132	    lt_prog_compiler_pic_CXX='-PIC'
12133	    ;;
12134	  *)
12135	    ;;
12136	esac
12137	;;
12138      sunos4*)
12139	case $cc_basename in
12140	  CC*)
12141	    # Sun C++ 4.x
12142	    lt_prog_compiler_pic_CXX='-pic'
12143	    lt_prog_compiler_static_CXX='-Bstatic'
12144	    ;;
12145	  lcc*)
12146	    # Lucid
12147	    lt_prog_compiler_pic_CXX='-pic'
12148	    ;;
12149	  *)
12150	    ;;
12151	esac
12152	;;
12153      tandem*)
12154	case $cc_basename in
12155	  NCC*)
12156	    # NonStop-UX NCC 3.20
12157	    lt_prog_compiler_pic_CXX='-KPIC'
12158	    ;;
12159	  *)
12160	    ;;
12161	esac
12162	;;
12163      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12164	case $cc_basename in
12165	  CC*)
12166	    lt_prog_compiler_wl_CXX='-Wl,'
12167	    lt_prog_compiler_pic_CXX='-KPIC'
12168	    lt_prog_compiler_static_CXX='-Bstatic'
12169	    ;;
12170	esac
12171	;;
12172      vxworks*)
12173	;;
12174      *)
12175	lt_prog_compiler_can_build_shared_CXX=no
12176	;;
12177    esac
12178  fi
12179
12180{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12181echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12182
12183#
12184# Check to make sure the PIC flag actually works.
12185#
12186if test -n "$lt_prog_compiler_pic_CXX"; then
12187
12188{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12189echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12190if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12191  echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
12193  lt_prog_compiler_pic_works_CXX=no
12194  ac_outfile=conftest.$ac_objext
12195   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12196   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12197   # Insert the option either (1) after the last *FLAGS variable, or
12198   # (2) before a word containing "conftest.", or (3) at the end.
12199   # Note that $ac_compile itself does not contain backslashes and begins
12200   # with a dollar sign (not a hyphen), so the echo should work correctly.
12201   # The option is referenced via a variable to avoid confusing sed.
12202   lt_compile=`echo "$ac_compile" | $SED \
12203   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12204   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12205   -e 's:$: $lt_compiler_flag:'`
12206   (eval echo "\"\$as_me:12206: $lt_compile\"" >&5)
12207   (eval "$lt_compile" 2>conftest.err)
12208   ac_status=$?
12209   cat conftest.err >&5
12210   echo "$as_me:12210: \$? = $ac_status" >&5
12211   if (exit $ac_status) && test -s "$ac_outfile"; then
12212     # The compiler can only warn and ignore the option if not recognized
12213     # So say no if there are warnings other than the usual output.
12214     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12215     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12216     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12217       lt_prog_compiler_pic_works_CXX=yes
12218     fi
12219   fi
12220   $rm conftest*
12221
12222fi
12223{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12224echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12225
12226if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12227    case $lt_prog_compiler_pic_CXX in
12228     "" | " "*) ;;
12229     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12230     esac
12231else
12232    lt_prog_compiler_pic_CXX=
12233     lt_prog_compiler_can_build_shared_CXX=no
12234fi
12235
12236fi
12237case $host_os in
12238  # For platforms which do not support PIC, -DPIC is meaningless:
12239  *djgpp*)
12240    lt_prog_compiler_pic_CXX=
12241    ;;
12242  *)
12243    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12244    ;;
12245esac
12246
12247#
12248# Check to make sure the static flag actually works.
12249#
12250wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12251{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12252echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12253if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12254  echo $ECHO_N "(cached) $ECHO_C" >&6
12255else
12256  lt_prog_compiler_static_works_CXX=no
12257   save_LDFLAGS="$LDFLAGS"
12258   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12259   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12260   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12261     # The linker can only warn and ignore the option if not recognized
12262     # So say no if there are warnings
12263     if test -s conftest.err; then
12264       # Append any errors to the config.log.
12265       cat conftest.err 1>&5
12266       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12267       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12268       if diff conftest.exp conftest.er2 >/dev/null; then
12269         lt_prog_compiler_static_works_CXX=yes
12270       fi
12271     else
12272       lt_prog_compiler_static_works_CXX=yes
12273     fi
12274   fi
12275   $rm conftest*
12276   LDFLAGS="$save_LDFLAGS"
12277
12278fi
12279{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12280echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12281
12282if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12283    :
12284else
12285    lt_prog_compiler_static_CXX=
12286fi
12287
12288
12289{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12290echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12291if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12292  echo $ECHO_N "(cached) $ECHO_C" >&6
12293else
12294  lt_cv_prog_compiler_c_o_CXX=no
12295   $rm -r conftest 2>/dev/null
12296   mkdir conftest
12297   cd conftest
12298   mkdir out
12299   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12300
12301   lt_compiler_flag="-o out/conftest2.$ac_objext"
12302   # Insert the option either (1) after the last *FLAGS variable, or
12303   # (2) before a word containing "conftest.", or (3) at the end.
12304   # Note that $ac_compile itself does not contain backslashes and begins
12305   # with a dollar sign (not a hyphen), so the echo should work correctly.
12306   lt_compile=`echo "$ac_compile" | $SED \
12307   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12308   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12309   -e 's:$: $lt_compiler_flag:'`
12310   (eval echo "\"\$as_me:12310: $lt_compile\"" >&5)
12311   (eval "$lt_compile" 2>out/conftest.err)
12312   ac_status=$?
12313   cat out/conftest.err >&5
12314   echo "$as_me:12314: \$? = $ac_status" >&5
12315   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12316   then
12317     # The compiler can only warn and ignore the option if not recognized
12318     # So say no if there are warnings
12319     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12320     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12321     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12322       lt_cv_prog_compiler_c_o_CXX=yes
12323     fi
12324   fi
12325   chmod u+w . 2>&5
12326   $rm conftest*
12327   # SGI C++ compiler will create directory out/ii_files/ for
12328   # template instantiation
12329   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12330   $rm out/* && rmdir out
12331   cd ..
12332   rmdir conftest
12333   $rm conftest*
12334
12335fi
12336{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12337echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12338
12339
12340hard_links="nottested"
12341if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12342  # do not overwrite the value of need_locks provided by the user
12343  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12344echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12345  hard_links=yes
12346  $rm conftest*
12347  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12348  touch conftest.a
12349  ln conftest.a conftest.b 2>&5 || hard_links=no
12350  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12351  { echo "$as_me:$LINENO: result: $hard_links" >&5
12352echo "${ECHO_T}$hard_links" >&6; }
12353  if test "$hard_links" = no; then
12354    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12355echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12356    need_locks=warn
12357  fi
12358else
12359  need_locks=no
12360fi
12361
12362{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12363echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12364
12365  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12366  case $host_os in
12367  aix4* | aix5*)
12368    # If we're using GNU nm, then we don't want the "-C" option.
12369    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12370    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12371      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'
12372    else
12373      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'
12374    fi
12375    ;;
12376  pw32*)
12377    export_symbols_cmds_CXX="$ltdll_cmds"
12378  ;;
12379  cygwin* | mingw*)
12380    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'
12381  ;;
12382  *)
12383    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12384  ;;
12385  esac
12386
12387{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12388echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12389test "$ld_shlibs_CXX" = no && can_build_shared=no
12390
12391#
12392# Do we need to explicitly link libc?
12393#
12394case "x$archive_cmds_need_lc_CXX" in
12395x|xyes)
12396  # Assume -lc should be added
12397  archive_cmds_need_lc_CXX=yes
12398
12399  if test "$enable_shared" = yes && test "$GCC" = yes; then
12400    case $archive_cmds_CXX in
12401    *'~'*)
12402      # FIXME: we may have to deal with multi-command sequences.
12403      ;;
12404    '$CC '*)
12405      # Test whether the compiler implicitly links with -lc since on some
12406      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12407      # to ld, don't add -lc before -lgcc.
12408      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12409echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12410      $rm conftest*
12411      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12412
12413      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414  (eval $ac_compile) 2>&5
12415  ac_status=$?
12416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417  (exit $ac_status); } 2>conftest.err; then
12418        soname=conftest
12419        lib=conftest
12420        libobjs=conftest.$ac_objext
12421        deplibs=
12422        wl=$lt_prog_compiler_wl_CXX
12423	pic_flag=$lt_prog_compiler_pic_CXX
12424        compiler_flags=-v
12425        linker_flags=-v
12426        verstring=
12427        output_objdir=.
12428        libname=conftest
12429        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12430        allow_undefined_flag_CXX=
12431        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12432  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12433  ac_status=$?
12434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435  (exit $ac_status); }
12436        then
12437	  archive_cmds_need_lc_CXX=no
12438        else
12439	  archive_cmds_need_lc_CXX=yes
12440        fi
12441        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12442      else
12443        cat conftest.err 1>&5
12444      fi
12445      $rm conftest*
12446      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12447echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12448      ;;
12449    esac
12450  fi
12451  ;;
12452esac
12453
12454{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12455echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12456library_names_spec=
12457libname_spec='lib$name'
12458soname_spec=
12459shrext_cmds=".so"
12460postinstall_cmds=
12461postuninstall_cmds=
12462finish_cmds=
12463finish_eval=
12464shlibpath_var=
12465shlibpath_overrides_runpath=unknown
12466version_type=none
12467dynamic_linker="$host_os ld.so"
12468sys_lib_dlsearch_path_spec="/lib /usr/lib"
12469if test "$GCC" = yes; then
12470  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12471  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12472    # if the path contains ";" then we assume it to be the separator
12473    # otherwise default to the standard path separator (i.e. ":") - it is
12474    # assumed that no part of a normal pathname contains ";" but that should
12475    # okay in the real world where ";" in dirpaths is itself problematic.
12476    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12477  else
12478    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12479  fi
12480else
12481  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12482fi
12483need_lib_prefix=unknown
12484hardcode_into_libs=no
12485
12486# when you set need_version to no, make sure it does not cause -set_version
12487# flags to be left without arguments
12488need_version=unknown
12489
12490case $host_os in
12491aix3*)
12492  version_type=linux
12493  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12494  shlibpath_var=LIBPATH
12495
12496  # AIX 3 has no versioning support, so we append a major version to the name.
12497  soname_spec='${libname}${release}${shared_ext}$major'
12498  ;;
12499
12500aix4* | aix5*)
12501  version_type=linux
12502  need_lib_prefix=no
12503  need_version=no
12504  hardcode_into_libs=yes
12505  if test "$host_cpu" = ia64; then
12506    # AIX 5 supports IA64
12507    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12508    shlibpath_var=LD_LIBRARY_PATH
12509  else
12510    # With GCC up to 2.95.x, collect2 would create an import file
12511    # for dependence libraries.  The import file would start with
12512    # the line `#! .'.  This would cause the generated library to
12513    # depend on `.', always an invalid library.  This was fixed in
12514    # development snapshots of GCC prior to 3.0.
12515    case $host_os in
12516      aix4 | aix4.[01] | aix4.[01].*)
12517      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12518	   echo ' yes '
12519	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12520	:
12521      else
12522	can_build_shared=no
12523      fi
12524      ;;
12525    esac
12526    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12527    # soname into executable. Probably we can add versioning support to
12528    # collect2, so additional links can be useful in future.
12529    if test "$aix_use_runtimelinking" = yes; then
12530      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12531      # instead of lib<name>.a to let people know that these are not
12532      # typical AIX shared libraries.
12533      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12534    else
12535      # We preserve .a as extension for shared libraries through AIX4.2
12536      # and later when we are not doing run time linking.
12537      library_names_spec='${libname}${release}.a $libname.a'
12538      soname_spec='${libname}${release}${shared_ext}$major'
12539    fi
12540    shlibpath_var=LIBPATH
12541  fi
12542  ;;
12543
12544amigaos*)
12545  library_names_spec='$libname.ixlibrary $libname.a'
12546  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12547  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'
12548  ;;
12549
12550beos*)
12551  library_names_spec='${libname}${shared_ext}'
12552  dynamic_linker="$host_os ld.so"
12553  shlibpath_var=LIBRARY_PATH
12554  ;;
12555
12556bsdi[45]*)
12557  version_type=linux
12558  need_version=no
12559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560  soname_spec='${libname}${release}${shared_ext}$major'
12561  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12562  shlibpath_var=LD_LIBRARY_PATH
12563  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12564  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12565  # the default ld.so.conf also contains /usr/contrib/lib and
12566  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12567  # libtool to hard-code these into programs
12568  ;;
12569
12570cygwin* | mingw* | pw32*)
12571  version_type=windows
12572  shrext_cmds=".dll"
12573  need_version=no
12574  need_lib_prefix=no
12575
12576  case $GCC,$host_os in
12577  yes,cygwin* | yes,mingw* | yes,pw32*)
12578    library_names_spec='$libname.dll.a'
12579    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12580    postinstall_cmds='base_file=`basename \${file}`~
12581      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12582      dldir=$destdir/`dirname \$dlpath`~
12583      test -d \$dldir || mkdir -p \$dldir~
12584      $install_prog $dir/$dlname \$dldir/$dlname~
12585      chmod a+x \$dldir/$dlname'
12586    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12587      dlpath=$dir/\$dldll~
12588       $rm \$dlpath'
12589    shlibpath_overrides_runpath=yes
12590
12591    case $host_os in
12592    cygwin*)
12593      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12594      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12595      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12596      ;;
12597    mingw*)
12598      # MinGW DLLs use traditional 'lib' prefix
12599      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12600      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12601      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12602        # It is most probably a Windows format PATH printed by
12603        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12604        # path with ; separators, and with drive letters. We can handle the
12605        # drive letters (cygwin fileutils understands them), so leave them,
12606        # especially as we might pass files found there to a mingw objdump,
12607        # which wouldn't understand a cygwinified path. Ahh.
12608        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12609      else
12610        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12611      fi
12612      ;;
12613    pw32*)
12614      # pw32 DLLs use 'pw' prefix rather than 'lib'
12615      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12616      ;;
12617    esac
12618    ;;
12619
12620  *)
12621    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12622    ;;
12623  esac
12624  dynamic_linker='Win32 ld.exe'
12625  # FIXME: first we should search . and the directory the executable is in
12626  shlibpath_var=PATH
12627  ;;
12628
12629darwin* | rhapsody*)
12630  dynamic_linker="$host_os dyld"
12631  version_type=darwin
12632  need_lib_prefix=no
12633  need_version=no
12634  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12635  soname_spec='${libname}${release}${major}$shared_ext'
12636  shlibpath_overrides_runpath=yes
12637  shlibpath_var=DYLD_LIBRARY_PATH
12638  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12639  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12640  if test "$GCC" = yes; then
12641    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12642  else
12643    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12644  fi
12645  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12646  ;;
12647
12648dgux*)
12649  version_type=linux
12650  need_lib_prefix=no
12651  need_version=no
12652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12653  soname_spec='${libname}${release}${shared_ext}$major'
12654  shlibpath_var=LD_LIBRARY_PATH
12655  ;;
12656
12657freebsd1*)
12658  dynamic_linker=no
12659  ;;
12660
12661kfreebsd*-gnu)
12662  version_type=linux
12663  need_lib_prefix=no
12664  need_version=no
12665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12666  soname_spec='${libname}${release}${shared_ext}$major'
12667  shlibpath_var=LD_LIBRARY_PATH
12668  shlibpath_overrides_runpath=no
12669  hardcode_into_libs=yes
12670  dynamic_linker='GNU ld.so'
12671  ;;
12672
12673freebsd* | dragonfly*)
12674  # DragonFly does not have aout.  When/if they implement a new
12675  # versioning mechanism, adjust this.
12676  if test -x /usr/bin/objformat; then
12677    objformat=`/usr/bin/objformat`
12678  else
12679    case $host_os in
12680    freebsd[123]*) objformat=aout ;;
12681    *) objformat=elf ;;
12682    esac
12683  fi
12684  version_type=freebsd-$objformat
12685  case $version_type in
12686    freebsd-elf*)
12687      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12688      need_version=no
12689      need_lib_prefix=no
12690      ;;
12691    freebsd-*)
12692      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12693      need_version=yes
12694      ;;
12695  esac
12696  shlibpath_var=LD_LIBRARY_PATH
12697  case $host_os in
12698  freebsd2*)
12699    shlibpath_overrides_runpath=yes
12700    ;;
12701  freebsd3.[01]* | freebsdelf3.[01]*)
12702    shlibpath_overrides_runpath=yes
12703    hardcode_into_libs=yes
12704    ;;
12705  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12706  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12707    shlibpath_overrides_runpath=no
12708    hardcode_into_libs=yes
12709    ;;
12710  freebsd*) # from 4.6 on
12711    shlibpath_overrides_runpath=yes
12712    hardcode_into_libs=yes
12713    ;;
12714  esac
12715  ;;
12716
12717gnu*)
12718  version_type=linux
12719  need_lib_prefix=no
12720  need_version=no
12721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12722  soname_spec='${libname}${release}${shared_ext}$major'
12723  shlibpath_var=LD_LIBRARY_PATH
12724  hardcode_into_libs=yes
12725  ;;
12726
12727hpux9* | hpux10* | hpux11*)
12728  # Give a soname corresponding to the major version so that dld.sl refuses to
12729  # link against other versions.
12730  version_type=sunos
12731  need_lib_prefix=no
12732  need_version=no
12733  case $host_cpu in
12734  ia64*)
12735    shrext_cmds='.so'
12736    hardcode_into_libs=yes
12737    dynamic_linker="$host_os dld.so"
12738    shlibpath_var=LD_LIBRARY_PATH
12739    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12740    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12741    soname_spec='${libname}${release}${shared_ext}$major'
12742    if test "X$HPUX_IA64_MODE" = X32; then
12743      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12744    else
12745      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12746    fi
12747    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12748    ;;
12749   hppa*64*)
12750     shrext_cmds='.sl'
12751     hardcode_into_libs=yes
12752     dynamic_linker="$host_os dld.sl"
12753     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12754     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12755     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12756     soname_spec='${libname}${release}${shared_ext}$major'
12757     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12758     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12759     ;;
12760   *)
12761    shrext_cmds='.sl'
12762    dynamic_linker="$host_os dld.sl"
12763    shlibpath_var=SHLIB_PATH
12764    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12765    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12766    soname_spec='${libname}${release}${shared_ext}$major'
12767    ;;
12768  esac
12769  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12770  postinstall_cmds='chmod 555 $lib'
12771  ;;
12772
12773interix3*)
12774  version_type=linux
12775  need_lib_prefix=no
12776  need_version=no
12777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12778  soname_spec='${libname}${release}${shared_ext}$major'
12779  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12780  shlibpath_var=LD_LIBRARY_PATH
12781  shlibpath_overrides_runpath=no
12782  hardcode_into_libs=yes
12783  ;;
12784
12785irix5* | irix6* | nonstopux*)
12786  case $host_os in
12787    nonstopux*) version_type=nonstopux ;;
12788    *)
12789	if test "$lt_cv_prog_gnu_ld" = yes; then
12790		version_type=linux
12791	else
12792		version_type=irix
12793	fi ;;
12794  esac
12795  need_lib_prefix=no
12796  need_version=no
12797  soname_spec='${libname}${release}${shared_ext}$major'
12798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12799  case $host_os in
12800  irix5* | nonstopux*)
12801    libsuff= shlibsuff=
12802    ;;
12803  *)
12804    case $LD in # libtool.m4 will add one of these switches to LD
12805    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12806      libsuff= shlibsuff= libmagic=32-bit;;
12807    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12808      libsuff=32 shlibsuff=N32 libmagic=N32;;
12809    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12810      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12811    *) libsuff= shlibsuff= libmagic=never-match;;
12812    esac
12813    ;;
12814  esac
12815  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12816  shlibpath_overrides_runpath=no
12817  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12818  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12819  hardcode_into_libs=yes
12820  ;;
12821
12822# No shared lib support for Linux oldld, aout, or coff.
12823linux*oldld* | linux*aout* | linux*coff*)
12824  dynamic_linker=no
12825  ;;
12826
12827# This must be Linux ELF.
12828linux*)
12829  version_type=linux
12830  need_lib_prefix=no
12831  need_version=no
12832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12833  soname_spec='${libname}${release}${shared_ext}$major'
12834  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12835  shlibpath_var=LD_LIBRARY_PATH
12836  shlibpath_overrides_runpath=no
12837  # This implies no fast_install, which is unacceptable.
12838  # Some rework will be needed to allow for fast_install
12839  # before this can be enabled.
12840  hardcode_into_libs=yes
12841
12842  # Append ld.so.conf contents to the search path
12843  if test -f /etc/ld.so.conf; then
12844    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12845    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12846  fi
12847
12848  # We used to test for /lib/ld.so.1 and disable shared libraries on
12849  # powerpc, because MkLinux only supported shared libraries with the
12850  # GNU dynamic linker.  Since this was broken with cross compilers,
12851  # most powerpc-linux boxes support dynamic linking these days and
12852  # people can always --disable-shared, the test was removed, and we
12853  # assume the GNU/Linux dynamic linker is in use.
12854  dynamic_linker='GNU/Linux ld.so'
12855  ;;
12856
12857knetbsd*-gnu)
12858  version_type=linux
12859  need_lib_prefix=no
12860  need_version=no
12861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12862  soname_spec='${libname}${release}${shared_ext}$major'
12863  shlibpath_var=LD_LIBRARY_PATH
12864  shlibpath_overrides_runpath=no
12865  hardcode_into_libs=yes
12866  dynamic_linker='GNU ld.so'
12867  ;;
12868
12869netbsd*)
12870  version_type=sunos
12871  need_lib_prefix=no
12872  need_version=no
12873  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12874    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12875    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12876    dynamic_linker='NetBSD (a.out) ld.so'
12877  else
12878    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12879    soname_spec='${libname}${release}${shared_ext}$major'
12880    dynamic_linker='NetBSD ld.elf_so'
12881  fi
12882  shlibpath_var=LD_LIBRARY_PATH
12883  shlibpath_overrides_runpath=yes
12884  hardcode_into_libs=yes
12885  ;;
12886
12887newsos6)
12888  version_type=linux
12889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12890  shlibpath_var=LD_LIBRARY_PATH
12891  shlibpath_overrides_runpath=yes
12892  ;;
12893
12894nto-qnx*)
12895  version_type=linux
12896  need_lib_prefix=no
12897  need_version=no
12898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12899  soname_spec='${libname}${release}${shared_ext}$major'
12900  shlibpath_var=LD_LIBRARY_PATH
12901  shlibpath_overrides_runpath=yes
12902  ;;
12903
12904openbsd*)
12905  version_type=sunos
12906  sys_lib_dlsearch_path_spec="/usr/lib"
12907  need_lib_prefix=no
12908  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12909  case $host_os in
12910    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12911    *)                         need_version=no  ;;
12912  esac
12913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12914  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12915  shlibpath_var=LD_LIBRARY_PATH
12916  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12917    case $host_os in
12918      openbsd2.[89] | openbsd2.[89].*)
12919	shlibpath_overrides_runpath=no
12920	;;
12921      *)
12922	shlibpath_overrides_runpath=yes
12923	;;
12924      esac
12925  else
12926    shlibpath_overrides_runpath=yes
12927  fi
12928  ;;
12929
12930os2*)
12931  libname_spec='$name'
12932  shrext_cmds=".dll"
12933  need_lib_prefix=no
12934  library_names_spec='$libname${shared_ext} $libname.a'
12935  dynamic_linker='OS/2 ld.exe'
12936  shlibpath_var=LIBPATH
12937  ;;
12938
12939osf3* | osf4* | osf5*)
12940  version_type=osf
12941  need_lib_prefix=no
12942  need_version=no
12943  soname_spec='${libname}${release}${shared_ext}$major'
12944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945  shlibpath_var=LD_LIBRARY_PATH
12946  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12947  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12948  ;;
12949
12950solaris*)
12951  version_type=linux
12952  need_lib_prefix=no
12953  need_version=no
12954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955  soname_spec='${libname}${release}${shared_ext}$major'
12956  shlibpath_var=LD_LIBRARY_PATH
12957  shlibpath_overrides_runpath=yes
12958  hardcode_into_libs=yes
12959  # ldd complains unless libraries are executable
12960  postinstall_cmds='chmod +x $lib'
12961  ;;
12962
12963sunos4*)
12964  version_type=sunos
12965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12966  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12967  shlibpath_var=LD_LIBRARY_PATH
12968  shlibpath_overrides_runpath=yes
12969  if test "$with_gnu_ld" = yes; then
12970    need_lib_prefix=no
12971  fi
12972  need_version=yes
12973  ;;
12974
12975sysv4 | sysv4.3*)
12976  version_type=linux
12977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12978  soname_spec='${libname}${release}${shared_ext}$major'
12979  shlibpath_var=LD_LIBRARY_PATH
12980  case $host_vendor in
12981    sni)
12982      shlibpath_overrides_runpath=no
12983      need_lib_prefix=no
12984      export_dynamic_flag_spec='${wl}-Blargedynsym'
12985      runpath_var=LD_RUN_PATH
12986      ;;
12987    siemens)
12988      need_lib_prefix=no
12989      ;;
12990    motorola)
12991      need_lib_prefix=no
12992      need_version=no
12993      shlibpath_overrides_runpath=no
12994      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12995      ;;
12996  esac
12997  ;;
12998
12999sysv4*MP*)
13000  if test -d /usr/nec ;then
13001    version_type=linux
13002    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13003    soname_spec='$libname${shared_ext}.$major'
13004    shlibpath_var=LD_LIBRARY_PATH
13005  fi
13006  ;;
13007
13008sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13009  version_type=freebsd-elf
13010  need_lib_prefix=no
13011  need_version=no
13012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13013  soname_spec='${libname}${release}${shared_ext}$major'
13014  shlibpath_var=LD_LIBRARY_PATH
13015  hardcode_into_libs=yes
13016  if test "$with_gnu_ld" = yes; then
13017    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13018    shlibpath_overrides_runpath=no
13019  else
13020    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13021    shlibpath_overrides_runpath=yes
13022    case $host_os in
13023      sco3.2v5*)
13024        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13025	;;
13026    esac
13027  fi
13028  sys_lib_dlsearch_path_spec='/usr/lib'
13029  ;;
13030
13031uts4*)
13032  version_type=linux
13033  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13034  soname_spec='${libname}${release}${shared_ext}$major'
13035  shlibpath_var=LD_LIBRARY_PATH
13036  ;;
13037
13038*)
13039  dynamic_linker=no
13040  ;;
13041esac
13042{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13043echo "${ECHO_T}$dynamic_linker" >&6; }
13044test "$dynamic_linker" = no && can_build_shared=no
13045
13046variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13047if test "$GCC" = yes; then
13048  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13049fi
13050
13051{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13052echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13053hardcode_action_CXX=
13054if test -n "$hardcode_libdir_flag_spec_CXX" || \
13055   test -n "$runpath_var_CXX" || \
13056   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13057
13058  # We can hardcode non-existant directories.
13059  if test "$hardcode_direct_CXX" != no &&
13060     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13061     # have to relink, otherwise we might link with an installed library
13062     # when we should be linking with a yet-to-be-installed one
13063     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13064     test "$hardcode_minus_L_CXX" != no; then
13065    # Linking always hardcodes the temporary library directory.
13066    hardcode_action_CXX=relink
13067  else
13068    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13069    hardcode_action_CXX=immediate
13070  fi
13071else
13072  # We cannot hardcode anything, or else we can only hardcode existing
13073  # directories.
13074  hardcode_action_CXX=unsupported
13075fi
13076{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13077echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13078
13079if test "$hardcode_action_CXX" = relink; then
13080  # Fast installation is not supported
13081  enable_fast_install=no
13082elif test "$shlibpath_overrides_runpath" = yes ||
13083     test "$enable_shared" = no; then
13084  # Fast installation is not necessary
13085  enable_fast_install=needless
13086fi
13087
13088
13089# The else clause should only fire when bootstrapping the
13090# libtool distribution, otherwise you forgot to ship ltmain.sh
13091# with your package, and you will get complaints that there are
13092# no rules to generate ltmain.sh.
13093if test -f "$ltmain"; then
13094  # See if we are running on zsh, and set the options which allow our commands through
13095  # without removal of \ escapes.
13096  if test -n "${ZSH_VERSION+set}" ; then
13097    setopt NO_GLOB_SUBST
13098  fi
13099  # Now quote all the things that may contain metacharacters while being
13100  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13101  # variables and quote the copies for generation of the libtool script.
13102  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13103    SED SHELL STRIP \
13104    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13105    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13106    deplibs_check_method reload_flag reload_cmds need_locks \
13107    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13108    lt_cv_sys_global_symbol_to_c_name_address \
13109    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13110    old_postinstall_cmds old_postuninstall_cmds \
13111    compiler_CXX \
13112    CC_CXX \
13113    LD_CXX \
13114    lt_prog_compiler_wl_CXX \
13115    lt_prog_compiler_pic_CXX \
13116    lt_prog_compiler_static_CXX \
13117    lt_prog_compiler_no_builtin_flag_CXX \
13118    export_dynamic_flag_spec_CXX \
13119    thread_safe_flag_spec_CXX \
13120    whole_archive_flag_spec_CXX \
13121    enable_shared_with_static_runtimes_CXX \
13122    old_archive_cmds_CXX \
13123    old_archive_from_new_cmds_CXX \
13124    predep_objects_CXX \
13125    postdep_objects_CXX \
13126    predeps_CXX \
13127    postdeps_CXX \
13128    compiler_lib_search_path_CXX \
13129    archive_cmds_CXX \
13130    archive_expsym_cmds_CXX \
13131    postinstall_cmds_CXX \
13132    postuninstall_cmds_CXX \
13133    old_archive_from_expsyms_cmds_CXX \
13134    allow_undefined_flag_CXX \
13135    no_undefined_flag_CXX \
13136    export_symbols_cmds_CXX \
13137    hardcode_libdir_flag_spec_CXX \
13138    hardcode_libdir_flag_spec_ld_CXX \
13139    hardcode_libdir_separator_CXX \
13140    hardcode_automatic_CXX \
13141    module_cmds_CXX \
13142    module_expsym_cmds_CXX \
13143    lt_cv_prog_compiler_c_o_CXX \
13144    exclude_expsyms_CXX \
13145    include_expsyms_CXX; do
13146
13147    case $var in
13148    old_archive_cmds_CXX | \
13149    old_archive_from_new_cmds_CXX | \
13150    archive_cmds_CXX | \
13151    archive_expsym_cmds_CXX | \
13152    module_cmds_CXX | \
13153    module_expsym_cmds_CXX | \
13154    old_archive_from_expsyms_cmds_CXX | \
13155    export_symbols_cmds_CXX | \
13156    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13157    postinstall_cmds | postuninstall_cmds | \
13158    old_postinstall_cmds | old_postuninstall_cmds | \
13159    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13160      # Double-quote double-evaled strings.
13161      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13162      ;;
13163    *)
13164      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13165      ;;
13166    esac
13167  done
13168
13169  case $lt_echo in
13170  *'\$0 --fallback-echo"')
13171    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13172    ;;
13173  esac
13174
13175cfgfile="$ofile"
13176
13177  cat <<__EOF__ >> "$cfgfile"
13178# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13179
13180# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13181
13182# Shell to use when invoking shell scripts.
13183SHELL=$lt_SHELL
13184
13185# Whether or not to build shared libraries.
13186build_libtool_libs=$enable_shared
13187
13188# Whether or not to build static libraries.
13189build_old_libs=$enable_static
13190
13191# Whether or not to add -lc for building shared libraries.
13192build_libtool_need_lc=$archive_cmds_need_lc_CXX
13193
13194# Whether or not to disallow shared libs when runtime libs are static
13195allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13196
13197# Whether or not to optimize for fast installation.
13198fast_install=$enable_fast_install
13199
13200# The host system.
13201host_alias=$host_alias
13202host=$host
13203host_os=$host_os
13204
13205# The build system.
13206build_alias=$build_alias
13207build=$build
13208build_os=$build_os
13209
13210# An echo program that does not interpret backslashes.
13211echo=$lt_echo
13212
13213# The archiver.
13214AR=$lt_AR
13215AR_FLAGS=$lt_AR_FLAGS
13216
13217# A C compiler.
13218LTCC=$lt_LTCC
13219
13220# LTCC compiler flags.
13221LTCFLAGS=$lt_LTCFLAGS
13222
13223# A language-specific compiler.
13224CC=$lt_compiler_CXX
13225
13226# Is the compiler the GNU C compiler?
13227with_gcc=$GCC_CXX
13228
13229# An ERE matcher.
13230EGREP=$lt_EGREP
13231
13232# The linker used to build libraries.
13233LD=$lt_LD_CXX
13234
13235# Whether we need hard or soft links.
13236LN_S=$lt_LN_S
13237
13238# A BSD-compatible nm program.
13239NM=$lt_NM
13240
13241# A symbol stripping program
13242STRIP=$lt_STRIP
13243
13244# Used to examine libraries when file_magic_cmd begins "file"
13245MAGIC_CMD=$MAGIC_CMD
13246
13247# Used on cygwin: DLL creation program.
13248DLLTOOL="$DLLTOOL"
13249
13250# Used on cygwin: object dumper.
13251OBJDUMP="$OBJDUMP"
13252
13253# Used on cygwin: assembler.
13254AS="$AS"
13255
13256# The name of the directory that contains temporary libtool files.
13257objdir=$objdir
13258
13259# How to create reloadable object files.
13260reload_flag=$lt_reload_flag
13261reload_cmds=$lt_reload_cmds
13262
13263# How to pass a linker flag through the compiler.
13264wl=$lt_lt_prog_compiler_wl_CXX
13265
13266# Object file suffix (normally "o").
13267objext="$ac_objext"
13268
13269# Old archive suffix (normally "a").
13270libext="$libext"
13271
13272# Shared library suffix (normally ".so").
13273shrext_cmds='$shrext_cmds'
13274
13275# Executable file suffix (normally "").
13276exeext="$exeext"
13277
13278# Additional compiler flags for building library objects.
13279pic_flag=$lt_lt_prog_compiler_pic_CXX
13280pic_mode=$pic_mode
13281
13282# What is the maximum length of a command?
13283max_cmd_len=$lt_cv_sys_max_cmd_len
13284
13285# Does compiler simultaneously support -c and -o options?
13286compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13287
13288# Must we lock files when doing compilation?
13289need_locks=$lt_need_locks
13290
13291# Do we need the lib prefix for modules?
13292need_lib_prefix=$need_lib_prefix
13293
13294# Do we need a version for libraries?
13295need_version=$need_version
13296
13297# Whether dlopen is supported.
13298dlopen_support=$enable_dlopen
13299
13300# Whether dlopen of programs is supported.
13301dlopen_self=$enable_dlopen_self
13302
13303# Whether dlopen of statically linked programs is supported.
13304dlopen_self_static=$enable_dlopen_self_static
13305
13306# Compiler flag to prevent dynamic linking.
13307link_static_flag=$lt_lt_prog_compiler_static_CXX
13308
13309# Compiler flag to turn off builtin functions.
13310no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13311
13312# Compiler flag to allow reflexive dlopens.
13313export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13314
13315# Compiler flag to generate shared objects directly from archives.
13316whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13317
13318# Compiler flag to generate thread-safe objects.
13319thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13320
13321# Library versioning type.
13322version_type=$version_type
13323
13324# Format of library name prefix.
13325libname_spec=$lt_libname_spec
13326
13327# List of archive names.  First name is the real one, the rest are links.
13328# The last name is the one that the linker finds with -lNAME.
13329library_names_spec=$lt_library_names_spec
13330
13331# The coded name of the library, if different from the real name.
13332soname_spec=$lt_soname_spec
13333
13334# Commands used to build and install an old-style archive.
13335RANLIB=$lt_RANLIB
13336old_archive_cmds=$lt_old_archive_cmds_CXX
13337old_postinstall_cmds=$lt_old_postinstall_cmds
13338old_postuninstall_cmds=$lt_old_postuninstall_cmds
13339
13340# Create an old-style archive from a shared archive.
13341old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13342
13343# Create a temporary old-style archive to link instead of a shared archive.
13344old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13345
13346# Commands used to build and install a shared archive.
13347archive_cmds=$lt_archive_cmds_CXX
13348archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13349postinstall_cmds=$lt_postinstall_cmds
13350postuninstall_cmds=$lt_postuninstall_cmds
13351
13352# Commands used to build a loadable module (assumed same as above if empty)
13353module_cmds=$lt_module_cmds_CXX
13354module_expsym_cmds=$lt_module_expsym_cmds_CXX
13355
13356# Commands to strip libraries.
13357old_striplib=$lt_old_striplib
13358striplib=$lt_striplib
13359
13360# Dependencies to place before the objects being linked to create a
13361# shared library.
13362predep_objects=$lt_predep_objects_CXX
13363
13364# Dependencies to place after the objects being linked to create a
13365# shared library.
13366postdep_objects=$lt_postdep_objects_CXX
13367
13368# Dependencies to place before the objects being linked to create a
13369# shared library.
13370predeps=$lt_predeps_CXX
13371
13372# Dependencies to place after the objects being linked to create a
13373# shared library.
13374postdeps=$lt_postdeps_CXX
13375
13376# The library search path used internally by the compiler when linking
13377# a shared library.
13378compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13379
13380# Method to check whether dependent libraries are shared objects.
13381deplibs_check_method=$lt_deplibs_check_method
13382
13383# Command to use when deplibs_check_method == file_magic.
13384file_magic_cmd=$lt_file_magic_cmd
13385
13386# Flag that allows shared libraries with undefined symbols to be built.
13387allow_undefined_flag=$lt_allow_undefined_flag_CXX
13388
13389# Flag that forces no undefined symbols.
13390no_undefined_flag=$lt_no_undefined_flag_CXX
13391
13392# Commands used to finish a libtool library installation in a directory.
13393finish_cmds=$lt_finish_cmds
13394
13395# Same as above, but a single script fragment to be evaled but not shown.
13396finish_eval=$lt_finish_eval
13397
13398# Take the output of nm and produce a listing of raw symbols and C names.
13399global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13400
13401# Transform the output of nm in a proper C declaration
13402global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13403
13404# Transform the output of nm in a C name address pair
13405global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13406
13407# This is the shared library runtime path variable.
13408runpath_var=$runpath_var
13409
13410# This is the shared library path variable.
13411shlibpath_var=$shlibpath_var
13412
13413# Is shlibpath searched before the hard-coded library search path?
13414shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13415
13416# How to hardcode a shared library path into an executable.
13417hardcode_action=$hardcode_action_CXX
13418
13419# Whether we should hardcode library paths into libraries.
13420hardcode_into_libs=$hardcode_into_libs
13421
13422# Flag to hardcode \$libdir into a binary during linking.
13423# This must work even if \$libdir does not exist.
13424hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13425
13426# If ld is used when linking, flag to hardcode \$libdir into
13427# a binary during linking. This must work even if \$libdir does
13428# not exist.
13429hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13430
13431# Whether we need a single -rpath flag with a separated argument.
13432hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13433
13434# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13435# resulting binary.
13436hardcode_direct=$hardcode_direct_CXX
13437
13438# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13439# resulting binary.
13440hardcode_minus_L=$hardcode_minus_L_CXX
13441
13442# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13443# the resulting binary.
13444hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13445
13446# Set to yes if building a shared library automatically hardcodes DIR into the library
13447# and all subsequent libraries and executables linked against it.
13448hardcode_automatic=$hardcode_automatic_CXX
13449
13450# Variables whose values should be saved in libtool wrapper scripts and
13451# restored at relink time.
13452variables_saved_for_relink="$variables_saved_for_relink"
13453
13454# Whether libtool must link a program against all its dependency libraries.
13455link_all_deplibs=$link_all_deplibs_CXX
13456
13457# Compile-time system search path for libraries
13458sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13459
13460# Run-time system search path for libraries
13461sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13462
13463# Fix the shell variable \$srcfile for the compiler.
13464fix_srcfile_path="$fix_srcfile_path_CXX"
13465
13466# Set to yes if exported symbols are required.
13467always_export_symbols=$always_export_symbols_CXX
13468
13469# The commands to list exported symbols.
13470export_symbols_cmds=$lt_export_symbols_cmds_CXX
13471
13472# The commands to extract the exported symbol list from a shared archive.
13473extract_expsyms_cmds=$lt_extract_expsyms_cmds
13474
13475# Symbols that should not be listed in the preloaded symbols.
13476exclude_expsyms=$lt_exclude_expsyms_CXX
13477
13478# Symbols that must always be exported.
13479include_expsyms=$lt_include_expsyms_CXX
13480
13481# ### END LIBTOOL TAG CONFIG: $tagname
13482
13483__EOF__
13484
13485
13486else
13487  # If there is no Makefile yet, we rely on a make rule to execute
13488  # `config.status --recheck' to rerun these tests and create the
13489  # libtool script then.
13490  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13491  if test -f "$ltmain_in"; then
13492    test -f Makefile && make "$ltmain"
13493  fi
13494fi
13495
13496
13497ac_ext=c
13498ac_cpp='$CPP $CPPFLAGS'
13499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13501ac_compiler_gnu=$ac_cv_c_compiler_gnu
13502
13503CC=$lt_save_CC
13504LDCXX=$LD
13505LD=$lt_save_LD
13506GCC=$lt_save_GCC
13507with_gnu_ldcxx=$with_gnu_ld
13508with_gnu_ld=$lt_save_with_gnu_ld
13509lt_cv_path_LDCXX=$lt_cv_path_LD
13510lt_cv_path_LD=$lt_save_path_LD
13511lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13512lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13513
13514	else
13515	  tagname=""
13516	fi
13517	;;
13518
13519      F77)
13520	if test -n "$F77" && test "X$F77" != "Xno"; then
13521
13522ac_ext=f
13523ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13524ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13525ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13526
13527
13528archive_cmds_need_lc_F77=no
13529allow_undefined_flag_F77=
13530always_export_symbols_F77=no
13531archive_expsym_cmds_F77=
13532export_dynamic_flag_spec_F77=
13533hardcode_direct_F77=no
13534hardcode_libdir_flag_spec_F77=
13535hardcode_libdir_flag_spec_ld_F77=
13536hardcode_libdir_separator_F77=
13537hardcode_minus_L_F77=no
13538hardcode_automatic_F77=no
13539module_cmds_F77=
13540module_expsym_cmds_F77=
13541link_all_deplibs_F77=unknown
13542old_archive_cmds_F77=$old_archive_cmds
13543no_undefined_flag_F77=
13544whole_archive_flag_spec_F77=
13545enable_shared_with_static_runtimes_F77=no
13546
13547# Source file extension for f77 test sources.
13548ac_ext=f
13549
13550# Object file extension for compiled f77 test sources.
13551objext=o
13552objext_F77=$objext
13553
13554# Code to be used in simple compile tests
13555lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13556
13557# Code to be used in simple link tests
13558lt_simple_link_test_code="      program t\n      end\n"
13559
13560# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13561
13562# If no C compiler was specified, use CC.
13563LTCC=${LTCC-"$CC"}
13564
13565# If no C compiler flags were specified, use CFLAGS.
13566LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13567
13568# Allow CC to be a program name with arguments.
13569compiler=$CC
13570
13571
13572# save warnings/boilerplate of simple test code
13573ac_outfile=conftest.$ac_objext
13574printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13575eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13576_lt_compiler_boilerplate=`cat conftest.err`
13577$rm conftest*
13578
13579ac_outfile=conftest.$ac_objext
13580printf "$lt_simple_link_test_code" >conftest.$ac_ext
13581eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13582_lt_linker_boilerplate=`cat conftest.err`
13583$rm conftest*
13584
13585
13586# Allow CC to be a program name with arguments.
13587lt_save_CC="$CC"
13588CC=${F77-"f77"}
13589compiler=$CC
13590compiler_F77=$CC
13591for cc_temp in $compiler""; do
13592  case $cc_temp in
13593    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13594    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13595    \-*) ;;
13596    *) break;;
13597  esac
13598done
13599cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13600
13601
13602{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13603echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13604{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13605echo "${ECHO_T}$can_build_shared" >&6; }
13606
13607{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13608echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13609test "$can_build_shared" = "no" && enable_shared=no
13610
13611# On AIX, shared libraries and static libraries use the same namespace, and
13612# are all built from PIC.
13613case $host_os in
13614aix3*)
13615  test "$enable_shared" = yes && enable_static=no
13616  if test -n "$RANLIB"; then
13617    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13618    postinstall_cmds='$RANLIB $lib'
13619  fi
13620  ;;
13621aix4* | aix5*)
13622  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13623    test "$enable_shared" = yes && enable_static=no
13624  fi
13625  ;;
13626esac
13627{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13628echo "${ECHO_T}$enable_shared" >&6; }
13629
13630{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13631echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13632# Make sure either enable_shared or enable_static is yes.
13633test "$enable_shared" = yes || enable_static=yes
13634{ echo "$as_me:$LINENO: result: $enable_static" >&5
13635echo "${ECHO_T}$enable_static" >&6; }
13636
13637GCC_F77="$G77"
13638LD_F77="$LD"
13639
13640lt_prog_compiler_wl_F77=
13641lt_prog_compiler_pic_F77=
13642lt_prog_compiler_static_F77=
13643
13644{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13645echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13646
13647  if test "$GCC" = yes; then
13648    lt_prog_compiler_wl_F77='-Wl,'
13649    lt_prog_compiler_static_F77='-static'
13650
13651    case $host_os in
13652      aix*)
13653      # All AIX code is PIC.
13654      if test "$host_cpu" = ia64; then
13655	# AIX 5 now supports IA64 processor
13656	lt_prog_compiler_static_F77='-Bstatic'
13657      fi
13658      ;;
13659
13660    amigaos*)
13661      # FIXME: we need at least 68020 code to build shared libraries, but
13662      # adding the `-m68020' flag to GCC prevents building anything better,
13663      # like `-m68040'.
13664      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13665      ;;
13666
13667    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13668      # PIC is the default for these OSes.
13669      ;;
13670
13671    mingw* | pw32* | os2*)
13672      # This hack is so that the source file can tell whether it is being
13673      # built for inclusion in a dll (and should export symbols for example).
13674      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13675      ;;
13676
13677    darwin* | rhapsody*)
13678      # PIC is the default on this platform
13679      # Common symbols not allowed in MH_DYLIB files
13680      lt_prog_compiler_pic_F77='-fno-common'
13681      ;;
13682
13683    interix3*)
13684      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13685      # Instead, we relocate shared libraries at runtime.
13686      ;;
13687
13688    msdosdjgpp*)
13689      # Just because we use GCC doesn't mean we suddenly get shared libraries
13690      # on systems that don't support them.
13691      lt_prog_compiler_can_build_shared_F77=no
13692      enable_shared=no
13693      ;;
13694
13695    sysv4*MP*)
13696      if test -d /usr/nec; then
13697	lt_prog_compiler_pic_F77=-Kconform_pic
13698      fi
13699      ;;
13700
13701    hpux*)
13702      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13703      # not for PA HP-UX.
13704      case $host_cpu in
13705      hppa*64*|ia64*)
13706	# +Z the default
13707	;;
13708      *)
13709	lt_prog_compiler_pic_F77='-fPIC'
13710	;;
13711      esac
13712      ;;
13713
13714    *)
13715      lt_prog_compiler_pic_F77='-fPIC'
13716      ;;
13717    esac
13718  else
13719    # PORTME Check for flag to pass linker flags through the system compiler.
13720    case $host_os in
13721    aix*)
13722      lt_prog_compiler_wl_F77='-Wl,'
13723      if test "$host_cpu" = ia64; then
13724	# AIX 5 now supports IA64 processor
13725	lt_prog_compiler_static_F77='-Bstatic'
13726      else
13727	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13728      fi
13729      ;;
13730      darwin*)
13731        # PIC is the default on this platform
13732        # Common symbols not allowed in MH_DYLIB files
13733       case $cc_basename in
13734         xlc*)
13735         lt_prog_compiler_pic_F77='-qnocommon'
13736         lt_prog_compiler_wl_F77='-Wl,'
13737         ;;
13738       esac
13739       ;;
13740
13741    mingw* | pw32* | os2*)
13742      # This hack is so that the source file can tell whether it is being
13743      # built for inclusion in a dll (and should export symbols for example).
13744      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13745      ;;
13746
13747    hpux9* | hpux10* | hpux11*)
13748      lt_prog_compiler_wl_F77='-Wl,'
13749      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13750      # not for PA HP-UX.
13751      case $host_cpu in
13752      hppa*64*|ia64*)
13753	# +Z the default
13754	;;
13755      *)
13756	lt_prog_compiler_pic_F77='+Z'
13757	;;
13758      esac
13759      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13760      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13761      ;;
13762
13763    irix5* | irix6* | nonstopux*)
13764      lt_prog_compiler_wl_F77='-Wl,'
13765      # PIC (with -KPIC) is the default.
13766      lt_prog_compiler_static_F77='-non_shared'
13767      ;;
13768
13769    newsos6)
13770      lt_prog_compiler_pic_F77='-KPIC'
13771      lt_prog_compiler_static_F77='-Bstatic'
13772      ;;
13773
13774    linux*)
13775      case $cc_basename in
13776      icc* | ecc*)
13777	lt_prog_compiler_wl_F77='-Wl,'
13778	lt_prog_compiler_pic_F77='-KPIC'
13779	lt_prog_compiler_static_F77='-static'
13780        ;;
13781      pgcc* | pgf77* | pgf90* | pgf95*)
13782        # Portland Group compilers (*not* the Pentium gcc compiler,
13783	# which looks to be a dead project)
13784	lt_prog_compiler_wl_F77='-Wl,'
13785	lt_prog_compiler_pic_F77='-fpic'
13786	lt_prog_compiler_static_F77='-Bstatic'
13787        ;;
13788      ccc*)
13789        lt_prog_compiler_wl_F77='-Wl,'
13790        # All Alpha code is PIC.
13791        lt_prog_compiler_static_F77='-non_shared'
13792        ;;
13793      esac
13794      ;;
13795
13796    osf3* | osf4* | osf5*)
13797      lt_prog_compiler_wl_F77='-Wl,'
13798      # All OSF/1 code is PIC.
13799      lt_prog_compiler_static_F77='-non_shared'
13800      ;;
13801
13802    solaris*)
13803      lt_prog_compiler_pic_F77='-KPIC'
13804      lt_prog_compiler_static_F77='-Bstatic'
13805      case $cc_basename in
13806      f77* | f90* | f95*)
13807	lt_prog_compiler_wl_F77='-Qoption ld ';;
13808      *)
13809	lt_prog_compiler_wl_F77='-Wl,';;
13810      esac
13811      ;;
13812
13813    sunos4*)
13814      lt_prog_compiler_wl_F77='-Qoption ld '
13815      lt_prog_compiler_pic_F77='-PIC'
13816      lt_prog_compiler_static_F77='-Bstatic'
13817      ;;
13818
13819    sysv4 | sysv4.2uw2* | sysv4.3*)
13820      lt_prog_compiler_wl_F77='-Wl,'
13821      lt_prog_compiler_pic_F77='-KPIC'
13822      lt_prog_compiler_static_F77='-Bstatic'
13823      ;;
13824
13825    sysv4*MP*)
13826      if test -d /usr/nec ;then
13827	lt_prog_compiler_pic_F77='-Kconform_pic'
13828	lt_prog_compiler_static_F77='-Bstatic'
13829      fi
13830      ;;
13831
13832    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13833      lt_prog_compiler_wl_F77='-Wl,'
13834      lt_prog_compiler_pic_F77='-KPIC'
13835      lt_prog_compiler_static_F77='-Bstatic'
13836      ;;
13837
13838    unicos*)
13839      lt_prog_compiler_wl_F77='-Wl,'
13840      lt_prog_compiler_can_build_shared_F77=no
13841      ;;
13842
13843    uts4*)
13844      lt_prog_compiler_pic_F77='-pic'
13845      lt_prog_compiler_static_F77='-Bstatic'
13846      ;;
13847
13848    *)
13849      lt_prog_compiler_can_build_shared_F77=no
13850      ;;
13851    esac
13852  fi
13853
13854{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13855echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13856
13857#
13858# Check to make sure the PIC flag actually works.
13859#
13860if test -n "$lt_prog_compiler_pic_F77"; then
13861
13862{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13863echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13864if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13865  echo $ECHO_N "(cached) $ECHO_C" >&6
13866else
13867  lt_prog_compiler_pic_works_F77=no
13868  ac_outfile=conftest.$ac_objext
13869   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13870   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13871   # Insert the option either (1) after the last *FLAGS variable, or
13872   # (2) before a word containing "conftest.", or (3) at the end.
13873   # Note that $ac_compile itself does not contain backslashes and begins
13874   # with a dollar sign (not a hyphen), so the echo should work correctly.
13875   # The option is referenced via a variable to avoid confusing sed.
13876   lt_compile=`echo "$ac_compile" | $SED \
13877   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13878   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13879   -e 's:$: $lt_compiler_flag:'`
13880   (eval echo "\"\$as_me:13880: $lt_compile\"" >&5)
13881   (eval "$lt_compile" 2>conftest.err)
13882   ac_status=$?
13883   cat conftest.err >&5
13884   echo "$as_me:13884: \$? = $ac_status" >&5
13885   if (exit $ac_status) && test -s "$ac_outfile"; then
13886     # The compiler can only warn and ignore the option if not recognized
13887     # So say no if there are warnings other than the usual output.
13888     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13889     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13890     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13891       lt_prog_compiler_pic_works_F77=yes
13892     fi
13893   fi
13894   $rm conftest*
13895
13896fi
13897{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13898echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13899
13900if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13901    case $lt_prog_compiler_pic_F77 in
13902     "" | " "*) ;;
13903     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13904     esac
13905else
13906    lt_prog_compiler_pic_F77=
13907     lt_prog_compiler_can_build_shared_F77=no
13908fi
13909
13910fi
13911case $host_os in
13912  # For platforms which do not support PIC, -DPIC is meaningless:
13913  *djgpp*)
13914    lt_prog_compiler_pic_F77=
13915    ;;
13916  *)
13917    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13918    ;;
13919esac
13920
13921#
13922# Check to make sure the static flag actually works.
13923#
13924wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13925{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13926echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13927if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13928  echo $ECHO_N "(cached) $ECHO_C" >&6
13929else
13930  lt_prog_compiler_static_works_F77=no
13931   save_LDFLAGS="$LDFLAGS"
13932   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13933   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13934   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13935     # The linker can only warn and ignore the option if not recognized
13936     # So say no if there are warnings
13937     if test -s conftest.err; then
13938       # Append any errors to the config.log.
13939       cat conftest.err 1>&5
13940       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13941       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13942       if diff conftest.exp conftest.er2 >/dev/null; then
13943         lt_prog_compiler_static_works_F77=yes
13944       fi
13945     else
13946       lt_prog_compiler_static_works_F77=yes
13947     fi
13948   fi
13949   $rm conftest*
13950   LDFLAGS="$save_LDFLAGS"
13951
13952fi
13953{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13954echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13955
13956if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13957    :
13958else
13959    lt_prog_compiler_static_F77=
13960fi
13961
13962
13963{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13964echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13965if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13966  echo $ECHO_N "(cached) $ECHO_C" >&6
13967else
13968  lt_cv_prog_compiler_c_o_F77=no
13969   $rm -r conftest 2>/dev/null
13970   mkdir conftest
13971   cd conftest
13972   mkdir out
13973   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13974
13975   lt_compiler_flag="-o out/conftest2.$ac_objext"
13976   # Insert the option either (1) after the last *FLAGS variable, or
13977   # (2) before a word containing "conftest.", or (3) at the end.
13978   # Note that $ac_compile itself does not contain backslashes and begins
13979   # with a dollar sign (not a hyphen), so the echo should work correctly.
13980   lt_compile=`echo "$ac_compile" | $SED \
13981   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13982   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13983   -e 's:$: $lt_compiler_flag:'`
13984   (eval echo "\"\$as_me:13984: $lt_compile\"" >&5)
13985   (eval "$lt_compile" 2>out/conftest.err)
13986   ac_status=$?
13987   cat out/conftest.err >&5
13988   echo "$as_me:13988: \$? = $ac_status" >&5
13989   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13990   then
13991     # The compiler can only warn and ignore the option if not recognized
13992     # So say no if there are warnings
13993     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13994     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13995     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13996       lt_cv_prog_compiler_c_o_F77=yes
13997     fi
13998   fi
13999   chmod u+w . 2>&5
14000   $rm conftest*
14001   # SGI C++ compiler will create directory out/ii_files/ for
14002   # template instantiation
14003   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14004   $rm out/* && rmdir out
14005   cd ..
14006   rmdir conftest
14007   $rm conftest*
14008
14009fi
14010{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14011echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14012
14013
14014hard_links="nottested"
14015if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14016  # do not overwrite the value of need_locks provided by the user
14017  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14018echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14019  hard_links=yes
14020  $rm conftest*
14021  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14022  touch conftest.a
14023  ln conftest.a conftest.b 2>&5 || hard_links=no
14024  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14025  { echo "$as_me:$LINENO: result: $hard_links" >&5
14026echo "${ECHO_T}$hard_links" >&6; }
14027  if test "$hard_links" = no; then
14028    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14029echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14030    need_locks=warn
14031  fi
14032else
14033  need_locks=no
14034fi
14035
14036{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14037echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14038
14039  runpath_var=
14040  allow_undefined_flag_F77=
14041  enable_shared_with_static_runtimes_F77=no
14042  archive_cmds_F77=
14043  archive_expsym_cmds_F77=
14044  old_archive_From_new_cmds_F77=
14045  old_archive_from_expsyms_cmds_F77=
14046  export_dynamic_flag_spec_F77=
14047  whole_archive_flag_spec_F77=
14048  thread_safe_flag_spec_F77=
14049  hardcode_libdir_flag_spec_F77=
14050  hardcode_libdir_flag_spec_ld_F77=
14051  hardcode_libdir_separator_F77=
14052  hardcode_direct_F77=no
14053  hardcode_minus_L_F77=no
14054  hardcode_shlibpath_var_F77=unsupported
14055  link_all_deplibs_F77=unknown
14056  hardcode_automatic_F77=no
14057  module_cmds_F77=
14058  module_expsym_cmds_F77=
14059  always_export_symbols_F77=no
14060  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14061  # include_expsyms should be a list of space-separated symbols to be *always*
14062  # included in the symbol list
14063  include_expsyms_F77=
14064  # exclude_expsyms can be an extended regexp of symbols to exclude
14065  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14066  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14067  # as well as any symbol that contains `d'.
14068  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14069  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14070  # platforms (ab)use it in PIC code, but their linkers get confused if
14071  # the symbol is explicitly referenced.  Since portable code cannot
14072  # rely on this symbol name, it's probably fine to never include it in
14073  # preloaded symbol tables.
14074  extract_expsyms_cmds=
14075  # Just being paranoid about ensuring that cc_basename is set.
14076  for cc_temp in $compiler""; do
14077  case $cc_temp in
14078    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14079    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14080    \-*) ;;
14081    *) break;;
14082  esac
14083done
14084cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14085
14086  case $host_os in
14087  cygwin* | mingw* | pw32*)
14088    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14089    # When not using gcc, we currently assume that we are using
14090    # Microsoft Visual C++.
14091    if test "$GCC" != yes; then
14092      with_gnu_ld=no
14093    fi
14094    ;;
14095  interix*)
14096    # we just hope/assume this is gcc and not c89 (= MSVC++)
14097    with_gnu_ld=yes
14098    ;;
14099  openbsd*)
14100    with_gnu_ld=no
14101    ;;
14102  esac
14103
14104  ld_shlibs_F77=yes
14105  if test "$with_gnu_ld" = yes; then
14106    # If archive_cmds runs LD, not CC, wlarc should be empty
14107    wlarc='${wl}'
14108
14109    # Set some defaults for GNU ld with shared library support. These
14110    # are reset later if shared libraries are not supported. Putting them
14111    # here allows them to be overridden if necessary.
14112    runpath_var=LD_RUN_PATH
14113    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14114    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14115    # ancient GNU ld didn't support --whole-archive et. al.
14116    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14117	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14118      else
14119  	whole_archive_flag_spec_F77=
14120    fi
14121    supports_anon_versioning=no
14122    case `$LD -v 2>/dev/null` in
14123      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14124      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14125      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14126      *\ 2.11.*) ;; # other 2.11 versions
14127      *) supports_anon_versioning=yes ;;
14128    esac
14129
14130    # See if GNU ld supports shared libraries.
14131    case $host_os in
14132    aix3* | aix4* | aix5*)
14133      # On AIX/PPC, the GNU linker is very broken
14134      if test "$host_cpu" != ia64; then
14135	ld_shlibs_F77=no
14136	cat <<EOF 1>&2
14137
14138*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14139*** to be unable to reliably create shared libraries on AIX.
14140*** Therefore, libtool is disabling shared libraries support.  If you
14141*** really care for shared libraries, you may want to modify your PATH
14142*** so that a non-GNU linker is found, and then restart.
14143
14144EOF
14145      fi
14146      ;;
14147
14148    amigaos*)
14149      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)'
14150      hardcode_libdir_flag_spec_F77='-L$libdir'
14151      hardcode_minus_L_F77=yes
14152
14153      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14154      # that the semantics of dynamic libraries on AmigaOS, at least up
14155      # to version 4, is to share data among multiple programs linked
14156      # with the same dynamic library.  Since this doesn't match the
14157      # behavior of shared libraries on other platforms, we can't use
14158      # them.
14159      ld_shlibs_F77=no
14160      ;;
14161
14162    beos*)
14163      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14164	allow_undefined_flag_F77=unsupported
14165	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14166	# support --undefined.  This deserves some investigation.  FIXME
14167	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14168      else
14169	ld_shlibs_F77=no
14170      fi
14171      ;;
14172
14173    cygwin* | mingw* | pw32*)
14174      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14175      # as there is no search path for DLLs.
14176      hardcode_libdir_flag_spec_F77='-L$libdir'
14177      allow_undefined_flag_F77=unsupported
14178      always_export_symbols_F77=no
14179      enable_shared_with_static_runtimes_F77=yes
14180      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14181
14182      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14183        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14184	# If the export-symbols file already is a .def file (1st line
14185	# is EXPORTS), use it as is; otherwise, prepend...
14186	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14187	  cp $export_symbols $output_objdir/$soname.def;
14188	else
14189	  echo EXPORTS > $output_objdir/$soname.def;
14190	  cat $export_symbols >> $output_objdir/$soname.def;
14191	fi~
14192	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14193      else
14194	ld_shlibs_F77=no
14195      fi
14196      ;;
14197
14198    interix3*)
14199      hardcode_direct_F77=no
14200      hardcode_shlibpath_var_F77=no
14201      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14202      export_dynamic_flag_spec_F77='${wl}-E'
14203      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14204      # Instead, shared libraries are loaded at an image base (0x10000000 by
14205      # default) and relocated if they conflict, which is a slow very memory
14206      # consuming and fragmenting process.  To avoid this, we pick a random,
14207      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14208      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14209      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'
14210      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'
14211      ;;
14212
14213    linux*)
14214      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14215	tmp_addflag=
14216	case $cc_basename,$host_cpu in
14217	pgcc*)				# Portland Group C compiler
14218	  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'
14219	  tmp_addflag=' $pic_flag'
14220	  ;;
14221	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14222	  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'
14223	  tmp_addflag=' $pic_flag -Mnomain' ;;
14224	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14225	  tmp_addflag=' -i_dynamic' ;;
14226	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14227	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14228	ifc* | ifort*)			# Intel Fortran compiler
14229	  tmp_addflag=' -nofor_main' ;;
14230	esac
14231	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14232
14233	if test $supports_anon_versioning = yes; then
14234	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14235  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14236  $echo "local: *; };" >> $output_objdir/$libname.ver~
14237	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14238	fi
14239      else
14240	ld_shlibs_F77=no
14241      fi
14242      ;;
14243
14244    netbsd*)
14245      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14246	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14247	wlarc=
14248      else
14249	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14250	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14251      fi
14252      ;;
14253
14254    solaris*)
14255      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14256	ld_shlibs_F77=no
14257	cat <<EOF 1>&2
14258
14259*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14260*** create shared libraries on Solaris systems.  Therefore, libtool
14261*** is disabling shared libraries support.  We urge you to upgrade GNU
14262*** binutils to release 2.9.1 or newer.  Another option is to modify
14263*** your PATH or compiler configuration so that the native linker is
14264*** used, and then restart.
14265
14266EOF
14267      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14268	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14269	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14270      else
14271	ld_shlibs_F77=no
14272      fi
14273      ;;
14274
14275    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14276      case `$LD -v 2>&1` in
14277        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14278	ld_shlibs_F77=no
14279	cat <<_LT_EOF 1>&2
14280
14281*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14282*** reliably create shared libraries on SCO systems.  Therefore, libtool
14283*** is disabling shared libraries support.  We urge you to upgrade GNU
14284*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14285*** your PATH or compiler configuration so that the native linker is
14286*** used, and then restart.
14287
14288_LT_EOF
14289	;;
14290	*)
14291	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14292	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14293	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14294	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14295	  else
14296	    ld_shlibs_F77=no
14297	  fi
14298	;;
14299      esac
14300      ;;
14301
14302    sunos4*)
14303      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14304      wlarc=
14305      hardcode_direct_F77=yes
14306      hardcode_shlibpath_var_F77=no
14307      ;;
14308
14309    *)
14310      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14311	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14312	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14313      else
14314	ld_shlibs_F77=no
14315      fi
14316      ;;
14317    esac
14318
14319    if test "$ld_shlibs_F77" = no; then
14320      runpath_var=
14321      hardcode_libdir_flag_spec_F77=
14322      export_dynamic_flag_spec_F77=
14323      whole_archive_flag_spec_F77=
14324    fi
14325  else
14326    # PORTME fill in a description of your system's linker (not GNU ld)
14327    case $host_os in
14328    aix3*)
14329      allow_undefined_flag_F77=unsupported
14330      always_export_symbols_F77=yes
14331      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'
14332      # Note: this linker hardcodes the directories in LIBPATH if there
14333      # are no directories specified by -L.
14334      hardcode_minus_L_F77=yes
14335      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14336	# Neither direct hardcoding nor static linking is supported with a
14337	# broken collect2.
14338	hardcode_direct_F77=unsupported
14339      fi
14340      ;;
14341
14342    aix4* | aix5*)
14343      if test "$host_cpu" = ia64; then
14344	# On IA64, the linker does run time linking by default, so we don't
14345	# have to do anything special.
14346	aix_use_runtimelinking=no
14347	exp_sym_flag='-Bexport'
14348	no_entry_flag=""
14349      else
14350	# If we're using GNU nm, then we don't want the "-C" option.
14351	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14352	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14353	  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'
14354	else
14355	  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'
14356	fi
14357	aix_use_runtimelinking=no
14358
14359	# Test if we are trying to use run time linking or normal
14360	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14361	# need to do runtime linking.
14362	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14363	  for ld_flag in $LDFLAGS; do
14364  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14365  	    aix_use_runtimelinking=yes
14366  	    break
14367  	  fi
14368	  done
14369	  ;;
14370	esac
14371
14372	exp_sym_flag='-bexport'
14373	no_entry_flag='-bnoentry'
14374      fi
14375
14376      # When large executables or shared objects are built, AIX ld can
14377      # have problems creating the table of contents.  If linking a library
14378      # or program results in "error TOC overflow" add -mminimal-toc to
14379      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14380      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14381
14382      archive_cmds_F77=''
14383      hardcode_direct_F77=yes
14384      hardcode_libdir_separator_F77=':'
14385      link_all_deplibs_F77=yes
14386
14387      if test "$GCC" = yes; then
14388	case $host_os in aix4.[012]|aix4.[012].*)
14389	# We only want to do this on AIX 4.2 and lower, the check
14390	# below for broken collect2 doesn't work under 4.3+
14391	  collect2name=`${CC} -print-prog-name=collect2`
14392	  if test -f "$collect2name" && \
14393  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14394	  then
14395  	  # We have reworked collect2
14396  	  hardcode_direct_F77=yes
14397	  else
14398  	  # We have old collect2
14399  	  hardcode_direct_F77=unsupported
14400  	  # It fails to find uninstalled libraries when the uninstalled
14401  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14402  	  # to unsupported forces relinking
14403  	  hardcode_minus_L_F77=yes
14404  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14405  	  hardcode_libdir_separator_F77=
14406	  fi
14407	  ;;
14408	esac
14409	shared_flag='-shared'
14410	if test "$aix_use_runtimelinking" = yes; then
14411	  shared_flag="$shared_flag "'${wl}-G'
14412	fi
14413      else
14414	# not using gcc
14415	if test "$host_cpu" = ia64; then
14416  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14417  	# chokes on -Wl,-G. The following line is correct:
14418	  shared_flag='-G'
14419	else
14420	  if test "$aix_use_runtimelinking" = yes; then
14421	    shared_flag='${wl}-G'
14422	  else
14423	    shared_flag='${wl}-bM:SRE'
14424	  fi
14425	fi
14426      fi
14427
14428      # It seems that -bexpall does not export symbols beginning with
14429      # underscore (_), so it is better to generate a list of symbols to export.
14430      always_export_symbols_F77=yes
14431      if test "$aix_use_runtimelinking" = yes; then
14432	# Warning - without using the other runtime loading flags (-brtl),
14433	# -berok will link without error, but may produce a broken library.
14434	allow_undefined_flag_F77='-berok'
14435       # Determine the default libpath from the value encoded in an empty executable.
14436       cat >conftest.$ac_ext <<_ACEOF
14437      program main
14438
14439      end
14440_ACEOF
14441rm -f conftest.$ac_objext conftest$ac_exeext
14442if { (ac_try="$ac_link"
14443case "(($ac_try" in
14444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14445  *) ac_try_echo=$ac_try;;
14446esac
14447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14448  (eval "$ac_link") 2>conftest.er1
14449  ac_status=$?
14450  grep -v '^ *+' conftest.er1 >conftest.err
14451  rm -f conftest.er1
14452  cat conftest.err >&5
14453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454  (exit $ac_status); } && {
14455	 test -z "$ac_f77_werror_flag" ||
14456	 test ! -s conftest.err
14457       } && test -s conftest$ac_exeext &&
14458       $as_test_x conftest$ac_exeext; then
14459
14460aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14461}'`
14462# Check for a 64-bit object if we didn't find anything.
14463if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14464}'`; fi
14465else
14466  echo "$as_me: failed program was:" >&5
14467sed 's/^/| /' conftest.$ac_ext >&5
14468
14469
14470fi
14471
14472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14473      conftest$ac_exeext conftest.$ac_ext
14474if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14475
14476       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14477	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"
14478       else
14479	if test "$host_cpu" = ia64; then
14480	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14481	  allow_undefined_flag_F77="-z nodefs"
14482	  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"
14483	else
14484	 # Determine the default libpath from the value encoded in an empty executable.
14485	 cat >conftest.$ac_ext <<_ACEOF
14486      program main
14487
14488      end
14489_ACEOF
14490rm -f conftest.$ac_objext conftest$ac_exeext
14491if { (ac_try="$ac_link"
14492case "(($ac_try" in
14493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494  *) ac_try_echo=$ac_try;;
14495esac
14496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497  (eval "$ac_link") 2>conftest.er1
14498  ac_status=$?
14499  grep -v '^ *+' conftest.er1 >conftest.err
14500  rm -f conftest.er1
14501  cat conftest.err >&5
14502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503  (exit $ac_status); } && {
14504	 test -z "$ac_f77_werror_flag" ||
14505	 test ! -s conftest.err
14506       } && test -s conftest$ac_exeext &&
14507       $as_test_x conftest$ac_exeext; then
14508
14509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14510}'`
14511# Check for a 64-bit object if we didn't find anything.
14512if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14513}'`; fi
14514else
14515  echo "$as_me: failed program was:" >&5
14516sed 's/^/| /' conftest.$ac_ext >&5
14517
14518
14519fi
14520
14521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14522      conftest$ac_exeext conftest.$ac_ext
14523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14524
14525	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14526	  # Warning - without using the other run time loading flags,
14527	  # -berok will link without error, but may produce a broken library.
14528	  no_undefined_flag_F77=' ${wl}-bernotok'
14529	  allow_undefined_flag_F77=' ${wl}-berok'
14530	  # Exported symbols can be pulled into shared objects from archives
14531	  whole_archive_flag_spec_F77='$convenience'
14532	  archive_cmds_need_lc_F77=yes
14533	  # This is similar to how AIX traditionally builds its shared libraries.
14534	  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'
14535	fi
14536      fi
14537      ;;
14538
14539    amigaos*)
14540      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)'
14541      hardcode_libdir_flag_spec_F77='-L$libdir'
14542      hardcode_minus_L_F77=yes
14543      # see comment about different semantics on the GNU ld section
14544      ld_shlibs_F77=no
14545      ;;
14546
14547    bsdi[45]*)
14548      export_dynamic_flag_spec_F77=-rdynamic
14549      ;;
14550
14551    cygwin* | mingw* | pw32*)
14552      # When not using gcc, we currently assume that we are using
14553      # Microsoft Visual C++.
14554      # hardcode_libdir_flag_spec is actually meaningless, as there is
14555      # no search path for DLLs.
14556      hardcode_libdir_flag_spec_F77=' '
14557      allow_undefined_flag_F77=unsupported
14558      # Tell ltmain to make .lib files, not .a files.
14559      libext=lib
14560      # Tell ltmain to make .dll files, not .so files.
14561      shrext_cmds=".dll"
14562      # FIXME: Setting linknames here is a bad hack.
14563      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14564      # The linker will automatically build a .lib file if we build a DLL.
14565      old_archive_From_new_cmds_F77='true'
14566      # FIXME: Should let the user specify the lib program.
14567      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14568      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14569      enable_shared_with_static_runtimes_F77=yes
14570      ;;
14571
14572    darwin* | rhapsody*)
14573      case $host_os in
14574        rhapsody* | darwin1.[012])
14575         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14576         ;;
14577       *) # Darwin 1.3 on
14578         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14579           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14580         else
14581           case ${MACOSX_DEPLOYMENT_TARGET} in
14582             10.[012])
14583               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14584               ;;
14585             10.*)
14586               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14587               ;;
14588           esac
14589         fi
14590         ;;
14591      esac
14592      archive_cmds_need_lc_F77=no
14593      hardcode_direct_F77=no
14594      hardcode_automatic_F77=yes
14595      hardcode_shlibpath_var_F77=unsupported
14596      whole_archive_flag_spec_F77=''
14597      link_all_deplibs_F77=yes
14598    if test "$GCC" = yes ; then
14599    	output_verbose_link_cmd='echo'
14600        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14601      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14602      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14603      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}'
14604      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}'
14605    else
14606      case $cc_basename in
14607        xlc*)
14608         output_verbose_link_cmd='echo'
14609         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14610         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14611          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14612         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14613          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}'
14614          ;;
14615       *)
14616         ld_shlibs_F77=no
14617          ;;
14618      esac
14619    fi
14620      ;;
14621
14622    dgux*)
14623      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14624      hardcode_libdir_flag_spec_F77='-L$libdir'
14625      hardcode_shlibpath_var_F77=no
14626      ;;
14627
14628    freebsd1*)
14629      ld_shlibs_F77=no
14630      ;;
14631
14632    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14633    # support.  Future versions do this automatically, but an explicit c++rt0.o
14634    # does not break anything, and helps significantly (at the cost of a little
14635    # extra space).
14636    freebsd2.2*)
14637      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14638      hardcode_libdir_flag_spec_F77='-R$libdir'
14639      hardcode_direct_F77=yes
14640      hardcode_shlibpath_var_F77=no
14641      ;;
14642
14643    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14644    freebsd2*)
14645      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14646      hardcode_direct_F77=yes
14647      hardcode_minus_L_F77=yes
14648      hardcode_shlibpath_var_F77=no
14649      ;;
14650
14651    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14652    freebsd* | kfreebsd*-gnu | dragonfly*)
14653      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14654      hardcode_libdir_flag_spec_F77='-R$libdir'
14655      hardcode_direct_F77=yes
14656      hardcode_shlibpath_var_F77=no
14657      ;;
14658
14659    hpux9*)
14660      if test "$GCC" = yes; then
14661	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'
14662      else
14663	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'
14664      fi
14665      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14666      hardcode_libdir_separator_F77=:
14667      hardcode_direct_F77=yes
14668
14669      # hardcode_minus_L: Not really in the search PATH,
14670      # but as the default location of the library.
14671      hardcode_minus_L_F77=yes
14672      export_dynamic_flag_spec_F77='${wl}-E'
14673      ;;
14674
14675    hpux10*)
14676      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14677	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14678      else
14679	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14680      fi
14681      if test "$with_gnu_ld" = no; then
14682	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14683	hardcode_libdir_separator_F77=:
14684
14685	hardcode_direct_F77=yes
14686	export_dynamic_flag_spec_F77='${wl}-E'
14687
14688	# hardcode_minus_L: Not really in the search PATH,
14689	# but as the default location of the library.
14690	hardcode_minus_L_F77=yes
14691      fi
14692      ;;
14693
14694    hpux11*)
14695      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14696	case $host_cpu in
14697	hppa*64*)
14698	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14699	  ;;
14700	ia64*)
14701	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14702	  ;;
14703	*)
14704	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14705	  ;;
14706	esac
14707      else
14708	case $host_cpu in
14709	hppa*64*)
14710	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14711	  ;;
14712	ia64*)
14713	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14714	  ;;
14715	*)
14716	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14717	  ;;
14718	esac
14719      fi
14720      if test "$with_gnu_ld" = no; then
14721	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14722	hardcode_libdir_separator_F77=:
14723
14724	case $host_cpu in
14725	hppa*64*|ia64*)
14726	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14727	  hardcode_direct_F77=no
14728	  hardcode_shlibpath_var_F77=no
14729	  ;;
14730	*)
14731	  hardcode_direct_F77=yes
14732	  export_dynamic_flag_spec_F77='${wl}-E'
14733
14734	  # hardcode_minus_L: Not really in the search PATH,
14735	  # but as the default location of the library.
14736	  hardcode_minus_L_F77=yes
14737	  ;;
14738	esac
14739      fi
14740      ;;
14741
14742    irix5* | irix6* | nonstopux*)
14743      if test "$GCC" = yes; then
14744	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'
14745      else
14746	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'
14747	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14748      fi
14749      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14750      hardcode_libdir_separator_F77=:
14751      link_all_deplibs_F77=yes
14752      ;;
14753
14754    netbsd*)
14755      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14756	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14757      else
14758	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14759      fi
14760      hardcode_libdir_flag_spec_F77='-R$libdir'
14761      hardcode_direct_F77=yes
14762      hardcode_shlibpath_var_F77=no
14763      ;;
14764
14765    newsos6)
14766      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14767      hardcode_direct_F77=yes
14768      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14769      hardcode_libdir_separator_F77=:
14770      hardcode_shlibpath_var_F77=no
14771      ;;
14772
14773    openbsd*)
14774      hardcode_direct_F77=yes
14775      hardcode_shlibpath_var_F77=no
14776      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14777	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14778	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14779	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14780	export_dynamic_flag_spec_F77='${wl}-E'
14781      else
14782       case $host_os in
14783	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14784	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14785	   hardcode_libdir_flag_spec_F77='-R$libdir'
14786	   ;;
14787	 *)
14788	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14789	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14790	   ;;
14791       esac
14792      fi
14793      ;;
14794
14795    os2*)
14796      hardcode_libdir_flag_spec_F77='-L$libdir'
14797      hardcode_minus_L_F77=yes
14798      allow_undefined_flag_F77=unsupported
14799      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'
14800      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14801      ;;
14802
14803    osf3*)
14804      if test "$GCC" = yes; then
14805	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14806	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'
14807      else
14808	allow_undefined_flag_F77=' -expect_unresolved \*'
14809	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'
14810      fi
14811      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14812      hardcode_libdir_separator_F77=:
14813      ;;
14814
14815    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14816      if test "$GCC" = yes; then
14817	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14818	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'
14819	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14820      else
14821	allow_undefined_flag_F77=' -expect_unresolved \*'
14822	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'
14823	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~
14824	$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'
14825
14826	# Both c and cxx compiler support -rpath directly
14827	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14828      fi
14829      hardcode_libdir_separator_F77=:
14830      ;;
14831
14832    solaris*)
14833      no_undefined_flag_F77=' -z text'
14834      if test "$GCC" = yes; then
14835	wlarc='${wl}'
14836	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14837	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14838	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14839      else
14840	wlarc=''
14841	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14842	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14843  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14844      fi
14845      hardcode_libdir_flag_spec_F77='-R$libdir'
14846      hardcode_shlibpath_var_F77=no
14847      case $host_os in
14848      solaris2.[0-5] | solaris2.[0-5].*) ;;
14849      *)
14850 	# The compiler driver will combine linker options so we
14851 	# cannot just pass the convience library names through
14852 	# without $wl, iff we do not link with $LD.
14853 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14854 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14855 	case $wlarc in
14856 	'')
14857 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14858 	*)
14859 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14860 	esac ;;
14861      esac
14862      link_all_deplibs_F77=yes
14863      ;;
14864
14865    sunos4*)
14866      if test "x$host_vendor" = xsequent; then
14867	# Use $CC to link under sequent, because it throws in some extra .o
14868	# files that make .init and .fini sections work.
14869	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14870      else
14871	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14872      fi
14873      hardcode_libdir_flag_spec_F77='-L$libdir'
14874      hardcode_direct_F77=yes
14875      hardcode_minus_L_F77=yes
14876      hardcode_shlibpath_var_F77=no
14877      ;;
14878
14879    sysv4)
14880      case $host_vendor in
14881	sni)
14882	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14883	  hardcode_direct_F77=yes # is this really true???
14884	;;
14885	siemens)
14886	  ## LD is ld it makes a PLAMLIB
14887	  ## CC just makes a GrossModule.
14888	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14889	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14890	  hardcode_direct_F77=no
14891        ;;
14892	motorola)
14893	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14894	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14895	;;
14896      esac
14897      runpath_var='LD_RUN_PATH'
14898      hardcode_shlibpath_var_F77=no
14899      ;;
14900
14901    sysv4.3*)
14902      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14903      hardcode_shlibpath_var_F77=no
14904      export_dynamic_flag_spec_F77='-Bexport'
14905      ;;
14906
14907    sysv4*MP*)
14908      if test -d /usr/nec; then
14909	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14910	hardcode_shlibpath_var_F77=no
14911	runpath_var=LD_RUN_PATH
14912	hardcode_runpath_var=yes
14913	ld_shlibs_F77=yes
14914      fi
14915      ;;
14916
14917    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14918      no_undefined_flag_F77='${wl}-z,text'
14919      archive_cmds_need_lc_F77=no
14920      hardcode_shlibpath_var_F77=no
14921      runpath_var='LD_RUN_PATH'
14922
14923      if test "$GCC" = yes; then
14924	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14925	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14926      else
14927	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14928	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14929      fi
14930      ;;
14931
14932    sysv5* | sco3.2v5* | sco5v6*)
14933      # Note: We can NOT use -z defs as we might desire, because we do not
14934      # link with -lc, and that would cause any symbols used from libc to
14935      # always be unresolved, which means just about no library would
14936      # ever link correctly.  If we're not using GNU ld we use -z text
14937      # though, which does catch some bad symbols but isn't as heavy-handed
14938      # as -z defs.
14939      no_undefined_flag_F77='${wl}-z,text'
14940      allow_undefined_flag_F77='${wl}-z,nodefs'
14941      archive_cmds_need_lc_F77=no
14942      hardcode_shlibpath_var_F77=no
14943      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14944      hardcode_libdir_separator_F77=':'
14945      link_all_deplibs_F77=yes
14946      export_dynamic_flag_spec_F77='${wl}-Bexport'
14947      runpath_var='LD_RUN_PATH'
14948
14949      if test "$GCC" = yes; then
14950	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14951	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14952      else
14953	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14954	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14955      fi
14956      ;;
14957
14958    uts4*)
14959      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14960      hardcode_libdir_flag_spec_F77='-L$libdir'
14961      hardcode_shlibpath_var_F77=no
14962      ;;
14963
14964    *)
14965      ld_shlibs_F77=no
14966      ;;
14967    esac
14968  fi
14969
14970{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14971echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14972test "$ld_shlibs_F77" = no && can_build_shared=no
14973
14974#
14975# Do we need to explicitly link libc?
14976#
14977case "x$archive_cmds_need_lc_F77" in
14978x|xyes)
14979  # Assume -lc should be added
14980  archive_cmds_need_lc_F77=yes
14981
14982  if test "$enable_shared" = yes && test "$GCC" = yes; then
14983    case $archive_cmds_F77 in
14984    *'~'*)
14985      # FIXME: we may have to deal with multi-command sequences.
14986      ;;
14987    '$CC '*)
14988      # Test whether the compiler implicitly links with -lc since on some
14989      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14990      # to ld, don't add -lc before -lgcc.
14991      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14992echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14993      $rm conftest*
14994      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14995
14996      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14997  (eval $ac_compile) 2>&5
14998  ac_status=$?
14999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000  (exit $ac_status); } 2>conftest.err; then
15001        soname=conftest
15002        lib=conftest
15003        libobjs=conftest.$ac_objext
15004        deplibs=
15005        wl=$lt_prog_compiler_wl_F77
15006	pic_flag=$lt_prog_compiler_pic_F77
15007        compiler_flags=-v
15008        linker_flags=-v
15009        verstring=
15010        output_objdir=.
15011        libname=conftest
15012        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15013        allow_undefined_flag_F77=
15014        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15015  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15016  ac_status=$?
15017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018  (exit $ac_status); }
15019        then
15020	  archive_cmds_need_lc_F77=no
15021        else
15022	  archive_cmds_need_lc_F77=yes
15023        fi
15024        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15025      else
15026        cat conftest.err 1>&5
15027      fi
15028      $rm conftest*
15029      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15030echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15031      ;;
15032    esac
15033  fi
15034  ;;
15035esac
15036
15037{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15038echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15039library_names_spec=
15040libname_spec='lib$name'
15041soname_spec=
15042shrext_cmds=".so"
15043postinstall_cmds=
15044postuninstall_cmds=
15045finish_cmds=
15046finish_eval=
15047shlibpath_var=
15048shlibpath_overrides_runpath=unknown
15049version_type=none
15050dynamic_linker="$host_os ld.so"
15051sys_lib_dlsearch_path_spec="/lib /usr/lib"
15052if test "$GCC" = yes; then
15053  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15054  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15055    # if the path contains ";" then we assume it to be the separator
15056    # otherwise default to the standard path separator (i.e. ":") - it is
15057    # assumed that no part of a normal pathname contains ";" but that should
15058    # okay in the real world where ";" in dirpaths is itself problematic.
15059    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15060  else
15061    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15062  fi
15063else
15064  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15065fi
15066need_lib_prefix=unknown
15067hardcode_into_libs=no
15068
15069# when you set need_version to no, make sure it does not cause -set_version
15070# flags to be left without arguments
15071need_version=unknown
15072
15073case $host_os in
15074aix3*)
15075  version_type=linux
15076  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15077  shlibpath_var=LIBPATH
15078
15079  # AIX 3 has no versioning support, so we append a major version to the name.
15080  soname_spec='${libname}${release}${shared_ext}$major'
15081  ;;
15082
15083aix4* | aix5*)
15084  version_type=linux
15085  need_lib_prefix=no
15086  need_version=no
15087  hardcode_into_libs=yes
15088  if test "$host_cpu" = ia64; then
15089    # AIX 5 supports IA64
15090    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15091    shlibpath_var=LD_LIBRARY_PATH
15092  else
15093    # With GCC up to 2.95.x, collect2 would create an import file
15094    # for dependence libraries.  The import file would start with
15095    # the line `#! .'.  This would cause the generated library to
15096    # depend on `.', always an invalid library.  This was fixed in
15097    # development snapshots of GCC prior to 3.0.
15098    case $host_os in
15099      aix4 | aix4.[01] | aix4.[01].*)
15100      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15101	   echo ' yes '
15102	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15103	:
15104      else
15105	can_build_shared=no
15106      fi
15107      ;;
15108    esac
15109    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15110    # soname into executable. Probably we can add versioning support to
15111    # collect2, so additional links can be useful in future.
15112    if test "$aix_use_runtimelinking" = yes; then
15113      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15114      # instead of lib<name>.a to let people know that these are not
15115      # typical AIX shared libraries.
15116      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15117    else
15118      # We preserve .a as extension for shared libraries through AIX4.2
15119      # and later when we are not doing run time linking.
15120      library_names_spec='${libname}${release}.a $libname.a'
15121      soname_spec='${libname}${release}${shared_ext}$major'
15122    fi
15123    shlibpath_var=LIBPATH
15124  fi
15125  ;;
15126
15127amigaos*)
15128  library_names_spec='$libname.ixlibrary $libname.a'
15129  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15130  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'
15131  ;;
15132
15133beos*)
15134  library_names_spec='${libname}${shared_ext}'
15135  dynamic_linker="$host_os ld.so"
15136  shlibpath_var=LIBRARY_PATH
15137  ;;
15138
15139bsdi[45]*)
15140  version_type=linux
15141  need_version=no
15142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143  soname_spec='${libname}${release}${shared_ext}$major'
15144  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15145  shlibpath_var=LD_LIBRARY_PATH
15146  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15147  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15148  # the default ld.so.conf also contains /usr/contrib/lib and
15149  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15150  # libtool to hard-code these into programs
15151  ;;
15152
15153cygwin* | mingw* | pw32*)
15154  version_type=windows
15155  shrext_cmds=".dll"
15156  need_version=no
15157  need_lib_prefix=no
15158
15159  case $GCC,$host_os in
15160  yes,cygwin* | yes,mingw* | yes,pw32*)
15161    library_names_spec='$libname.dll.a'
15162    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15163    postinstall_cmds='base_file=`basename \${file}`~
15164      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15165      dldir=$destdir/`dirname \$dlpath`~
15166      test -d \$dldir || mkdir -p \$dldir~
15167      $install_prog $dir/$dlname \$dldir/$dlname~
15168      chmod a+x \$dldir/$dlname'
15169    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15170      dlpath=$dir/\$dldll~
15171       $rm \$dlpath'
15172    shlibpath_overrides_runpath=yes
15173
15174    case $host_os in
15175    cygwin*)
15176      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15177      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15178      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15179      ;;
15180    mingw*)
15181      # MinGW DLLs use traditional 'lib' prefix
15182      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15183      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15184      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15185        # It is most probably a Windows format PATH printed by
15186        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15187        # path with ; separators, and with drive letters. We can handle the
15188        # drive letters (cygwin fileutils understands them), so leave them,
15189        # especially as we might pass files found there to a mingw objdump,
15190        # which wouldn't understand a cygwinified path. Ahh.
15191        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15192      else
15193        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15194      fi
15195      ;;
15196    pw32*)
15197      # pw32 DLLs use 'pw' prefix rather than 'lib'
15198      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15199      ;;
15200    esac
15201    ;;
15202
15203  *)
15204    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15205    ;;
15206  esac
15207  dynamic_linker='Win32 ld.exe'
15208  # FIXME: first we should search . and the directory the executable is in
15209  shlibpath_var=PATH
15210  ;;
15211
15212darwin* | rhapsody*)
15213  dynamic_linker="$host_os dyld"
15214  version_type=darwin
15215  need_lib_prefix=no
15216  need_version=no
15217  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15218  soname_spec='${libname}${release}${major}$shared_ext'
15219  shlibpath_overrides_runpath=yes
15220  shlibpath_var=DYLD_LIBRARY_PATH
15221  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15222  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15223  if test "$GCC" = yes; then
15224    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15225  else
15226    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15227  fi
15228  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15229  ;;
15230
15231dgux*)
15232  version_type=linux
15233  need_lib_prefix=no
15234  need_version=no
15235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15236  soname_spec='${libname}${release}${shared_ext}$major'
15237  shlibpath_var=LD_LIBRARY_PATH
15238  ;;
15239
15240freebsd1*)
15241  dynamic_linker=no
15242  ;;
15243
15244kfreebsd*-gnu)
15245  version_type=linux
15246  need_lib_prefix=no
15247  need_version=no
15248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15249  soname_spec='${libname}${release}${shared_ext}$major'
15250  shlibpath_var=LD_LIBRARY_PATH
15251  shlibpath_overrides_runpath=no
15252  hardcode_into_libs=yes
15253  dynamic_linker='GNU ld.so'
15254  ;;
15255
15256freebsd* | dragonfly*)
15257  # DragonFly does not have aout.  When/if they implement a new
15258  # versioning mechanism, adjust this.
15259  if test -x /usr/bin/objformat; then
15260    objformat=`/usr/bin/objformat`
15261  else
15262    case $host_os in
15263    freebsd[123]*) objformat=aout ;;
15264    *) objformat=elf ;;
15265    esac
15266  fi
15267  version_type=freebsd-$objformat
15268  case $version_type in
15269    freebsd-elf*)
15270      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15271      need_version=no
15272      need_lib_prefix=no
15273      ;;
15274    freebsd-*)
15275      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15276      need_version=yes
15277      ;;
15278  esac
15279  shlibpath_var=LD_LIBRARY_PATH
15280  case $host_os in
15281  freebsd2*)
15282    shlibpath_overrides_runpath=yes
15283    ;;
15284  freebsd3.[01]* | freebsdelf3.[01]*)
15285    shlibpath_overrides_runpath=yes
15286    hardcode_into_libs=yes
15287    ;;
15288  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15289  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15290    shlibpath_overrides_runpath=no
15291    hardcode_into_libs=yes
15292    ;;
15293  freebsd*) # from 4.6 on
15294    shlibpath_overrides_runpath=yes
15295    hardcode_into_libs=yes
15296    ;;
15297  esac
15298  ;;
15299
15300gnu*)
15301  version_type=linux
15302  need_lib_prefix=no
15303  need_version=no
15304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15305  soname_spec='${libname}${release}${shared_ext}$major'
15306  shlibpath_var=LD_LIBRARY_PATH
15307  hardcode_into_libs=yes
15308  ;;
15309
15310hpux9* | hpux10* | hpux11*)
15311  # Give a soname corresponding to the major version so that dld.sl refuses to
15312  # link against other versions.
15313  version_type=sunos
15314  need_lib_prefix=no
15315  need_version=no
15316  case $host_cpu in
15317  ia64*)
15318    shrext_cmds='.so'
15319    hardcode_into_libs=yes
15320    dynamic_linker="$host_os dld.so"
15321    shlibpath_var=LD_LIBRARY_PATH
15322    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15323    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15324    soname_spec='${libname}${release}${shared_ext}$major'
15325    if test "X$HPUX_IA64_MODE" = X32; then
15326      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15327    else
15328      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15329    fi
15330    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15331    ;;
15332   hppa*64*)
15333     shrext_cmds='.sl'
15334     hardcode_into_libs=yes
15335     dynamic_linker="$host_os dld.sl"
15336     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15337     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339     soname_spec='${libname}${release}${shared_ext}$major'
15340     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15341     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15342     ;;
15343   *)
15344    shrext_cmds='.sl'
15345    dynamic_linker="$host_os dld.sl"
15346    shlibpath_var=SHLIB_PATH
15347    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15348    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349    soname_spec='${libname}${release}${shared_ext}$major'
15350    ;;
15351  esac
15352  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15353  postinstall_cmds='chmod 555 $lib'
15354  ;;
15355
15356interix3*)
15357  version_type=linux
15358  need_lib_prefix=no
15359  need_version=no
15360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15361  soname_spec='${libname}${release}${shared_ext}$major'
15362  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15363  shlibpath_var=LD_LIBRARY_PATH
15364  shlibpath_overrides_runpath=no
15365  hardcode_into_libs=yes
15366  ;;
15367
15368irix5* | irix6* | nonstopux*)
15369  case $host_os in
15370    nonstopux*) version_type=nonstopux ;;
15371    *)
15372	if test "$lt_cv_prog_gnu_ld" = yes; then
15373		version_type=linux
15374	else
15375		version_type=irix
15376	fi ;;
15377  esac
15378  need_lib_prefix=no
15379  need_version=no
15380  soname_spec='${libname}${release}${shared_ext}$major'
15381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15382  case $host_os in
15383  irix5* | nonstopux*)
15384    libsuff= shlibsuff=
15385    ;;
15386  *)
15387    case $LD in # libtool.m4 will add one of these switches to LD
15388    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15389      libsuff= shlibsuff= libmagic=32-bit;;
15390    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15391      libsuff=32 shlibsuff=N32 libmagic=N32;;
15392    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15393      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15394    *) libsuff= shlibsuff= libmagic=never-match;;
15395    esac
15396    ;;
15397  esac
15398  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15399  shlibpath_overrides_runpath=no
15400  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15401  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15402  hardcode_into_libs=yes
15403  ;;
15404
15405# No shared lib support for Linux oldld, aout, or coff.
15406linux*oldld* | linux*aout* | linux*coff*)
15407  dynamic_linker=no
15408  ;;
15409
15410# This must be Linux ELF.
15411linux*)
15412  version_type=linux
15413  need_lib_prefix=no
15414  need_version=no
15415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416  soname_spec='${libname}${release}${shared_ext}$major'
15417  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15418  shlibpath_var=LD_LIBRARY_PATH
15419  shlibpath_overrides_runpath=no
15420  # This implies no fast_install, which is unacceptable.
15421  # Some rework will be needed to allow for fast_install
15422  # before this can be enabled.
15423  hardcode_into_libs=yes
15424
15425  # Append ld.so.conf contents to the search path
15426  if test -f /etc/ld.so.conf; then
15427    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15428    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15429  fi
15430
15431  # We used to test for /lib/ld.so.1 and disable shared libraries on
15432  # powerpc, because MkLinux only supported shared libraries with the
15433  # GNU dynamic linker.  Since this was broken with cross compilers,
15434  # most powerpc-linux boxes support dynamic linking these days and
15435  # people can always --disable-shared, the test was removed, and we
15436  # assume the GNU/Linux dynamic linker is in use.
15437  dynamic_linker='GNU/Linux ld.so'
15438  ;;
15439
15440knetbsd*-gnu)
15441  version_type=linux
15442  need_lib_prefix=no
15443  need_version=no
15444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15445  soname_spec='${libname}${release}${shared_ext}$major'
15446  shlibpath_var=LD_LIBRARY_PATH
15447  shlibpath_overrides_runpath=no
15448  hardcode_into_libs=yes
15449  dynamic_linker='GNU ld.so'
15450  ;;
15451
15452netbsd*)
15453  version_type=sunos
15454  need_lib_prefix=no
15455  need_version=no
15456  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15457    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15458    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15459    dynamic_linker='NetBSD (a.out) ld.so'
15460  else
15461    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15462    soname_spec='${libname}${release}${shared_ext}$major'
15463    dynamic_linker='NetBSD ld.elf_so'
15464  fi
15465  shlibpath_var=LD_LIBRARY_PATH
15466  shlibpath_overrides_runpath=yes
15467  hardcode_into_libs=yes
15468  ;;
15469
15470newsos6)
15471  version_type=linux
15472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473  shlibpath_var=LD_LIBRARY_PATH
15474  shlibpath_overrides_runpath=yes
15475  ;;
15476
15477nto-qnx*)
15478  version_type=linux
15479  need_lib_prefix=no
15480  need_version=no
15481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482  soname_spec='${libname}${release}${shared_ext}$major'
15483  shlibpath_var=LD_LIBRARY_PATH
15484  shlibpath_overrides_runpath=yes
15485  ;;
15486
15487openbsd*)
15488  version_type=sunos
15489  sys_lib_dlsearch_path_spec="/usr/lib"
15490  need_lib_prefix=no
15491  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15492  case $host_os in
15493    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15494    *)                         need_version=no  ;;
15495  esac
15496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15497  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15498  shlibpath_var=LD_LIBRARY_PATH
15499  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15500    case $host_os in
15501      openbsd2.[89] | openbsd2.[89].*)
15502	shlibpath_overrides_runpath=no
15503	;;
15504      *)
15505	shlibpath_overrides_runpath=yes
15506	;;
15507      esac
15508  else
15509    shlibpath_overrides_runpath=yes
15510  fi
15511  ;;
15512
15513os2*)
15514  libname_spec='$name'
15515  shrext_cmds=".dll"
15516  need_lib_prefix=no
15517  library_names_spec='$libname${shared_ext} $libname.a'
15518  dynamic_linker='OS/2 ld.exe'
15519  shlibpath_var=LIBPATH
15520  ;;
15521
15522osf3* | osf4* | osf5*)
15523  version_type=osf
15524  need_lib_prefix=no
15525  need_version=no
15526  soname_spec='${libname}${release}${shared_ext}$major'
15527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528  shlibpath_var=LD_LIBRARY_PATH
15529  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15530  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15531  ;;
15532
15533solaris*)
15534  version_type=linux
15535  need_lib_prefix=no
15536  need_version=no
15537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538  soname_spec='${libname}${release}${shared_ext}$major'
15539  shlibpath_var=LD_LIBRARY_PATH
15540  shlibpath_overrides_runpath=yes
15541  hardcode_into_libs=yes
15542  # ldd complains unless libraries are executable
15543  postinstall_cmds='chmod +x $lib'
15544  ;;
15545
15546sunos4*)
15547  version_type=sunos
15548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15549  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15550  shlibpath_var=LD_LIBRARY_PATH
15551  shlibpath_overrides_runpath=yes
15552  if test "$with_gnu_ld" = yes; then
15553    need_lib_prefix=no
15554  fi
15555  need_version=yes
15556  ;;
15557
15558sysv4 | sysv4.3*)
15559  version_type=linux
15560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561  soname_spec='${libname}${release}${shared_ext}$major'
15562  shlibpath_var=LD_LIBRARY_PATH
15563  case $host_vendor in
15564    sni)
15565      shlibpath_overrides_runpath=no
15566      need_lib_prefix=no
15567      export_dynamic_flag_spec='${wl}-Blargedynsym'
15568      runpath_var=LD_RUN_PATH
15569      ;;
15570    siemens)
15571      need_lib_prefix=no
15572      ;;
15573    motorola)
15574      need_lib_prefix=no
15575      need_version=no
15576      shlibpath_overrides_runpath=no
15577      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15578      ;;
15579  esac
15580  ;;
15581
15582sysv4*MP*)
15583  if test -d /usr/nec ;then
15584    version_type=linux
15585    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15586    soname_spec='$libname${shared_ext}.$major'
15587    shlibpath_var=LD_LIBRARY_PATH
15588  fi
15589  ;;
15590
15591sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15592  version_type=freebsd-elf
15593  need_lib_prefix=no
15594  need_version=no
15595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15596  soname_spec='${libname}${release}${shared_ext}$major'
15597  shlibpath_var=LD_LIBRARY_PATH
15598  hardcode_into_libs=yes
15599  if test "$with_gnu_ld" = yes; then
15600    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15601    shlibpath_overrides_runpath=no
15602  else
15603    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15604    shlibpath_overrides_runpath=yes
15605    case $host_os in
15606      sco3.2v5*)
15607        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15608	;;
15609    esac
15610  fi
15611  sys_lib_dlsearch_path_spec='/usr/lib'
15612  ;;
15613
15614uts4*)
15615  version_type=linux
15616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617  soname_spec='${libname}${release}${shared_ext}$major'
15618  shlibpath_var=LD_LIBRARY_PATH
15619  ;;
15620
15621*)
15622  dynamic_linker=no
15623  ;;
15624esac
15625{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15626echo "${ECHO_T}$dynamic_linker" >&6; }
15627test "$dynamic_linker" = no && can_build_shared=no
15628
15629variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15630if test "$GCC" = yes; then
15631  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15632fi
15633
15634{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15635echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15636hardcode_action_F77=
15637if test -n "$hardcode_libdir_flag_spec_F77" || \
15638   test -n "$runpath_var_F77" || \
15639   test "X$hardcode_automatic_F77" = "Xyes" ; then
15640
15641  # We can hardcode non-existant directories.
15642  if test "$hardcode_direct_F77" != no &&
15643     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15644     # have to relink, otherwise we might link with an installed library
15645     # when we should be linking with a yet-to-be-installed one
15646     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15647     test "$hardcode_minus_L_F77" != no; then
15648    # Linking always hardcodes the temporary library directory.
15649    hardcode_action_F77=relink
15650  else
15651    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15652    hardcode_action_F77=immediate
15653  fi
15654else
15655  # We cannot hardcode anything, or else we can only hardcode existing
15656  # directories.
15657  hardcode_action_F77=unsupported
15658fi
15659{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15660echo "${ECHO_T}$hardcode_action_F77" >&6; }
15661
15662if test "$hardcode_action_F77" = relink; then
15663  # Fast installation is not supported
15664  enable_fast_install=no
15665elif test "$shlibpath_overrides_runpath" = yes ||
15666     test "$enable_shared" = no; then
15667  # Fast installation is not necessary
15668  enable_fast_install=needless
15669fi
15670
15671
15672# The else clause should only fire when bootstrapping the
15673# libtool distribution, otherwise you forgot to ship ltmain.sh
15674# with your package, and you will get complaints that there are
15675# no rules to generate ltmain.sh.
15676if test -f "$ltmain"; then
15677  # See if we are running on zsh, and set the options which allow our commands through
15678  # without removal of \ escapes.
15679  if test -n "${ZSH_VERSION+set}" ; then
15680    setopt NO_GLOB_SUBST
15681  fi
15682  # Now quote all the things that may contain metacharacters while being
15683  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15684  # variables and quote the copies for generation of the libtool script.
15685  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15686    SED SHELL STRIP \
15687    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15688    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15689    deplibs_check_method reload_flag reload_cmds need_locks \
15690    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15691    lt_cv_sys_global_symbol_to_c_name_address \
15692    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15693    old_postinstall_cmds old_postuninstall_cmds \
15694    compiler_F77 \
15695    CC_F77 \
15696    LD_F77 \
15697    lt_prog_compiler_wl_F77 \
15698    lt_prog_compiler_pic_F77 \
15699    lt_prog_compiler_static_F77 \
15700    lt_prog_compiler_no_builtin_flag_F77 \
15701    export_dynamic_flag_spec_F77 \
15702    thread_safe_flag_spec_F77 \
15703    whole_archive_flag_spec_F77 \
15704    enable_shared_with_static_runtimes_F77 \
15705    old_archive_cmds_F77 \
15706    old_archive_from_new_cmds_F77 \
15707    predep_objects_F77 \
15708    postdep_objects_F77 \
15709    predeps_F77 \
15710    postdeps_F77 \
15711    compiler_lib_search_path_F77 \
15712    archive_cmds_F77 \
15713    archive_expsym_cmds_F77 \
15714    postinstall_cmds_F77 \
15715    postuninstall_cmds_F77 \
15716    old_archive_from_expsyms_cmds_F77 \
15717    allow_undefined_flag_F77 \
15718    no_undefined_flag_F77 \
15719    export_symbols_cmds_F77 \
15720    hardcode_libdir_flag_spec_F77 \
15721    hardcode_libdir_flag_spec_ld_F77 \
15722    hardcode_libdir_separator_F77 \
15723    hardcode_automatic_F77 \
15724    module_cmds_F77 \
15725    module_expsym_cmds_F77 \
15726    lt_cv_prog_compiler_c_o_F77 \
15727    exclude_expsyms_F77 \
15728    include_expsyms_F77; do
15729
15730    case $var in
15731    old_archive_cmds_F77 | \
15732    old_archive_from_new_cmds_F77 | \
15733    archive_cmds_F77 | \
15734    archive_expsym_cmds_F77 | \
15735    module_cmds_F77 | \
15736    module_expsym_cmds_F77 | \
15737    old_archive_from_expsyms_cmds_F77 | \
15738    export_symbols_cmds_F77 | \
15739    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15740    postinstall_cmds | postuninstall_cmds | \
15741    old_postinstall_cmds | old_postuninstall_cmds | \
15742    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15743      # Double-quote double-evaled strings.
15744      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15745      ;;
15746    *)
15747      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15748      ;;
15749    esac
15750  done
15751
15752  case $lt_echo in
15753  *'\$0 --fallback-echo"')
15754    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15755    ;;
15756  esac
15757
15758cfgfile="$ofile"
15759
15760  cat <<__EOF__ >> "$cfgfile"
15761# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15762
15763# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15764
15765# Shell to use when invoking shell scripts.
15766SHELL=$lt_SHELL
15767
15768# Whether or not to build shared libraries.
15769build_libtool_libs=$enable_shared
15770
15771# Whether or not to build static libraries.
15772build_old_libs=$enable_static
15773
15774# Whether or not to add -lc for building shared libraries.
15775build_libtool_need_lc=$archive_cmds_need_lc_F77
15776
15777# Whether or not to disallow shared libs when runtime libs are static
15778allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15779
15780# Whether or not to optimize for fast installation.
15781fast_install=$enable_fast_install
15782
15783# The host system.
15784host_alias=$host_alias
15785host=$host
15786host_os=$host_os
15787
15788# The build system.
15789build_alias=$build_alias
15790build=$build
15791build_os=$build_os
15792
15793# An echo program that does not interpret backslashes.
15794echo=$lt_echo
15795
15796# The archiver.
15797AR=$lt_AR
15798AR_FLAGS=$lt_AR_FLAGS
15799
15800# A C compiler.
15801LTCC=$lt_LTCC
15802
15803# LTCC compiler flags.
15804LTCFLAGS=$lt_LTCFLAGS
15805
15806# A language-specific compiler.
15807CC=$lt_compiler_F77
15808
15809# Is the compiler the GNU C compiler?
15810with_gcc=$GCC_F77
15811
15812# An ERE matcher.
15813EGREP=$lt_EGREP
15814
15815# The linker used to build libraries.
15816LD=$lt_LD_F77
15817
15818# Whether we need hard or soft links.
15819LN_S=$lt_LN_S
15820
15821# A BSD-compatible nm program.
15822NM=$lt_NM
15823
15824# A symbol stripping program
15825STRIP=$lt_STRIP
15826
15827# Used to examine libraries when file_magic_cmd begins "file"
15828MAGIC_CMD=$MAGIC_CMD
15829
15830# Used on cygwin: DLL creation program.
15831DLLTOOL="$DLLTOOL"
15832
15833# Used on cygwin: object dumper.
15834OBJDUMP="$OBJDUMP"
15835
15836# Used on cygwin: assembler.
15837AS="$AS"
15838
15839# The name of the directory that contains temporary libtool files.
15840objdir=$objdir
15841
15842# How to create reloadable object files.
15843reload_flag=$lt_reload_flag
15844reload_cmds=$lt_reload_cmds
15845
15846# How to pass a linker flag through the compiler.
15847wl=$lt_lt_prog_compiler_wl_F77
15848
15849# Object file suffix (normally "o").
15850objext="$ac_objext"
15851
15852# Old archive suffix (normally "a").
15853libext="$libext"
15854
15855# Shared library suffix (normally ".so").
15856shrext_cmds='$shrext_cmds'
15857
15858# Executable file suffix (normally "").
15859exeext="$exeext"
15860
15861# Additional compiler flags for building library objects.
15862pic_flag=$lt_lt_prog_compiler_pic_F77
15863pic_mode=$pic_mode
15864
15865# What is the maximum length of a command?
15866max_cmd_len=$lt_cv_sys_max_cmd_len
15867
15868# Does compiler simultaneously support -c and -o options?
15869compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15870
15871# Must we lock files when doing compilation?
15872need_locks=$lt_need_locks
15873
15874# Do we need the lib prefix for modules?
15875need_lib_prefix=$need_lib_prefix
15876
15877# Do we need a version for libraries?
15878need_version=$need_version
15879
15880# Whether dlopen is supported.
15881dlopen_support=$enable_dlopen
15882
15883# Whether dlopen of programs is supported.
15884dlopen_self=$enable_dlopen_self
15885
15886# Whether dlopen of statically linked programs is supported.
15887dlopen_self_static=$enable_dlopen_self_static
15888
15889# Compiler flag to prevent dynamic linking.
15890link_static_flag=$lt_lt_prog_compiler_static_F77
15891
15892# Compiler flag to turn off builtin functions.
15893no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15894
15895# Compiler flag to allow reflexive dlopens.
15896export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15897
15898# Compiler flag to generate shared objects directly from archives.
15899whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15900
15901# Compiler flag to generate thread-safe objects.
15902thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15903
15904# Library versioning type.
15905version_type=$version_type
15906
15907# Format of library name prefix.
15908libname_spec=$lt_libname_spec
15909
15910# List of archive names.  First name is the real one, the rest are links.
15911# The last name is the one that the linker finds with -lNAME.
15912library_names_spec=$lt_library_names_spec
15913
15914# The coded name of the library, if different from the real name.
15915soname_spec=$lt_soname_spec
15916
15917# Commands used to build and install an old-style archive.
15918RANLIB=$lt_RANLIB
15919old_archive_cmds=$lt_old_archive_cmds_F77
15920old_postinstall_cmds=$lt_old_postinstall_cmds
15921old_postuninstall_cmds=$lt_old_postuninstall_cmds
15922
15923# Create an old-style archive from a shared archive.
15924old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15925
15926# Create a temporary old-style archive to link instead of a shared archive.
15927old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15928
15929# Commands used to build and install a shared archive.
15930archive_cmds=$lt_archive_cmds_F77
15931archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15932postinstall_cmds=$lt_postinstall_cmds
15933postuninstall_cmds=$lt_postuninstall_cmds
15934
15935# Commands used to build a loadable module (assumed same as above if empty)
15936module_cmds=$lt_module_cmds_F77
15937module_expsym_cmds=$lt_module_expsym_cmds_F77
15938
15939# Commands to strip libraries.
15940old_striplib=$lt_old_striplib
15941striplib=$lt_striplib
15942
15943# Dependencies to place before the objects being linked to create a
15944# shared library.
15945predep_objects=$lt_predep_objects_F77
15946
15947# Dependencies to place after the objects being linked to create a
15948# shared library.
15949postdep_objects=$lt_postdep_objects_F77
15950
15951# Dependencies to place before the objects being linked to create a
15952# shared library.
15953predeps=$lt_predeps_F77
15954
15955# Dependencies to place after the objects being linked to create a
15956# shared library.
15957postdeps=$lt_postdeps_F77
15958
15959# The library search path used internally by the compiler when linking
15960# a shared library.
15961compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15962
15963# Method to check whether dependent libraries are shared objects.
15964deplibs_check_method=$lt_deplibs_check_method
15965
15966# Command to use when deplibs_check_method == file_magic.
15967file_magic_cmd=$lt_file_magic_cmd
15968
15969# Flag that allows shared libraries with undefined symbols to be built.
15970allow_undefined_flag=$lt_allow_undefined_flag_F77
15971
15972# Flag that forces no undefined symbols.
15973no_undefined_flag=$lt_no_undefined_flag_F77
15974
15975# Commands used to finish a libtool library installation in a directory.
15976finish_cmds=$lt_finish_cmds
15977
15978# Same as above, but a single script fragment to be evaled but not shown.
15979finish_eval=$lt_finish_eval
15980
15981# Take the output of nm and produce a listing of raw symbols and C names.
15982global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15983
15984# Transform the output of nm in a proper C declaration
15985global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15986
15987# Transform the output of nm in a C name address pair
15988global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15989
15990# This is the shared library runtime path variable.
15991runpath_var=$runpath_var
15992
15993# This is the shared library path variable.
15994shlibpath_var=$shlibpath_var
15995
15996# Is shlibpath searched before the hard-coded library search path?
15997shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15998
15999# How to hardcode a shared library path into an executable.
16000hardcode_action=$hardcode_action_F77
16001
16002# Whether we should hardcode library paths into libraries.
16003hardcode_into_libs=$hardcode_into_libs
16004
16005# Flag to hardcode \$libdir into a binary during linking.
16006# This must work even if \$libdir does not exist.
16007hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16008
16009# If ld is used when linking, flag to hardcode \$libdir into
16010# a binary during linking. This must work even if \$libdir does
16011# not exist.
16012hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16013
16014# Whether we need a single -rpath flag with a separated argument.
16015hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16016
16017# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16018# resulting binary.
16019hardcode_direct=$hardcode_direct_F77
16020
16021# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16022# resulting binary.
16023hardcode_minus_L=$hardcode_minus_L_F77
16024
16025# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16026# the resulting binary.
16027hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16028
16029# Set to yes if building a shared library automatically hardcodes DIR into the library
16030# and all subsequent libraries and executables linked against it.
16031hardcode_automatic=$hardcode_automatic_F77
16032
16033# Variables whose values should be saved in libtool wrapper scripts and
16034# restored at relink time.
16035variables_saved_for_relink="$variables_saved_for_relink"
16036
16037# Whether libtool must link a program against all its dependency libraries.
16038link_all_deplibs=$link_all_deplibs_F77
16039
16040# Compile-time system search path for libraries
16041sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16042
16043# Run-time system search path for libraries
16044sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16045
16046# Fix the shell variable \$srcfile for the compiler.
16047fix_srcfile_path="$fix_srcfile_path_F77"
16048
16049# Set to yes if exported symbols are required.
16050always_export_symbols=$always_export_symbols_F77
16051
16052# The commands to list exported symbols.
16053export_symbols_cmds=$lt_export_symbols_cmds_F77
16054
16055# The commands to extract the exported symbol list from a shared archive.
16056extract_expsyms_cmds=$lt_extract_expsyms_cmds
16057
16058# Symbols that should not be listed in the preloaded symbols.
16059exclude_expsyms=$lt_exclude_expsyms_F77
16060
16061# Symbols that must always be exported.
16062include_expsyms=$lt_include_expsyms_F77
16063
16064# ### END LIBTOOL TAG CONFIG: $tagname
16065
16066__EOF__
16067
16068
16069else
16070  # If there is no Makefile yet, we rely on a make rule to execute
16071  # `config.status --recheck' to rerun these tests and create the
16072  # libtool script then.
16073  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16074  if test -f "$ltmain_in"; then
16075    test -f Makefile && make "$ltmain"
16076  fi
16077fi
16078
16079
16080ac_ext=c
16081ac_cpp='$CPP $CPPFLAGS'
16082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16084ac_compiler_gnu=$ac_cv_c_compiler_gnu
16085
16086CC="$lt_save_CC"
16087
16088	else
16089	  tagname=""
16090	fi
16091	;;
16092
16093      GCJ)
16094	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16095
16096
16097# Source file extension for Java test sources.
16098ac_ext=java
16099
16100# Object file extension for compiled Java test sources.
16101objext=o
16102objext_GCJ=$objext
16103
16104# Code to be used in simple compile tests
16105lt_simple_compile_test_code="class foo {}\n"
16106
16107# Code to be used in simple link tests
16108lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16109
16110# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16111
16112# If no C compiler was specified, use CC.
16113LTCC=${LTCC-"$CC"}
16114
16115# If no C compiler flags were specified, use CFLAGS.
16116LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16117
16118# Allow CC to be a program name with arguments.
16119compiler=$CC
16120
16121
16122# save warnings/boilerplate of simple test code
16123ac_outfile=conftest.$ac_objext
16124printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16125eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16126_lt_compiler_boilerplate=`cat conftest.err`
16127$rm conftest*
16128
16129ac_outfile=conftest.$ac_objext
16130printf "$lt_simple_link_test_code" >conftest.$ac_ext
16131eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16132_lt_linker_boilerplate=`cat conftest.err`
16133$rm conftest*
16134
16135
16136# Allow CC to be a program name with arguments.
16137lt_save_CC="$CC"
16138CC=${GCJ-"gcj"}
16139compiler=$CC
16140compiler_GCJ=$CC
16141for cc_temp in $compiler""; do
16142  case $cc_temp in
16143    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16144    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16145    \-*) ;;
16146    *) break;;
16147  esac
16148done
16149cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16150
16151
16152# GCJ did not exist at the time GCC didn't implicitly link libc in.
16153archive_cmds_need_lc_GCJ=no
16154
16155old_archive_cmds_GCJ=$old_archive_cmds
16156
16157
16158lt_prog_compiler_no_builtin_flag_GCJ=
16159
16160if test "$GCC" = yes; then
16161  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16162
16163
16164{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16165echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16166if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16167  echo $ECHO_N "(cached) $ECHO_C" >&6
16168else
16169  lt_cv_prog_compiler_rtti_exceptions=no
16170  ac_outfile=conftest.$ac_objext
16171   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16172   lt_compiler_flag="-fno-rtti -fno-exceptions"
16173   # Insert the option either (1) after the last *FLAGS variable, or
16174   # (2) before a word containing "conftest.", or (3) at the end.
16175   # Note that $ac_compile itself does not contain backslashes and begins
16176   # with a dollar sign (not a hyphen), so the echo should work correctly.
16177   # The option is referenced via a variable to avoid confusing sed.
16178   lt_compile=`echo "$ac_compile" | $SED \
16179   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16180   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16181   -e 's:$: $lt_compiler_flag:'`
16182   (eval echo "\"\$as_me:16182: $lt_compile\"" >&5)
16183   (eval "$lt_compile" 2>conftest.err)
16184   ac_status=$?
16185   cat conftest.err >&5
16186   echo "$as_me:16186: \$? = $ac_status" >&5
16187   if (exit $ac_status) && test -s "$ac_outfile"; then
16188     # The compiler can only warn and ignore the option if not recognized
16189     # So say no if there are warnings other than the usual output.
16190     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16191     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16192     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16193       lt_cv_prog_compiler_rtti_exceptions=yes
16194     fi
16195   fi
16196   $rm conftest*
16197
16198fi
16199{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16200echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16201
16202if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16203    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16204else
16205    :
16206fi
16207
16208fi
16209
16210lt_prog_compiler_wl_GCJ=
16211lt_prog_compiler_pic_GCJ=
16212lt_prog_compiler_static_GCJ=
16213
16214{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16215echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16216
16217  if test "$GCC" = yes; then
16218    lt_prog_compiler_wl_GCJ='-Wl,'
16219    lt_prog_compiler_static_GCJ='-static'
16220
16221    case $host_os in
16222      aix*)
16223      # All AIX code is PIC.
16224      if test "$host_cpu" = ia64; then
16225	# AIX 5 now supports IA64 processor
16226	lt_prog_compiler_static_GCJ='-Bstatic'
16227      fi
16228      ;;
16229
16230    amigaos*)
16231      # FIXME: we need at least 68020 code to build shared libraries, but
16232      # adding the `-m68020' flag to GCC prevents building anything better,
16233      # like `-m68040'.
16234      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16235      ;;
16236
16237    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16238      # PIC is the default for these OSes.
16239      ;;
16240
16241    mingw* | pw32* | os2*)
16242      # This hack is so that the source file can tell whether it is being
16243      # built for inclusion in a dll (and should export symbols for example).
16244      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16245      ;;
16246
16247    darwin* | rhapsody*)
16248      # PIC is the default on this platform
16249      # Common symbols not allowed in MH_DYLIB files
16250      lt_prog_compiler_pic_GCJ='-fno-common'
16251      ;;
16252
16253    interix3*)
16254      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16255      # Instead, we relocate shared libraries at runtime.
16256      ;;
16257
16258    msdosdjgpp*)
16259      # Just because we use GCC doesn't mean we suddenly get shared libraries
16260      # on systems that don't support them.
16261      lt_prog_compiler_can_build_shared_GCJ=no
16262      enable_shared=no
16263      ;;
16264
16265    sysv4*MP*)
16266      if test -d /usr/nec; then
16267	lt_prog_compiler_pic_GCJ=-Kconform_pic
16268      fi
16269      ;;
16270
16271    hpux*)
16272      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16273      # not for PA HP-UX.
16274      case $host_cpu in
16275      hppa*64*|ia64*)
16276	# +Z the default
16277	;;
16278      *)
16279	lt_prog_compiler_pic_GCJ='-fPIC'
16280	;;
16281      esac
16282      ;;
16283
16284    *)
16285      lt_prog_compiler_pic_GCJ='-fPIC'
16286      ;;
16287    esac
16288  else
16289    # PORTME Check for flag to pass linker flags through the system compiler.
16290    case $host_os in
16291    aix*)
16292      lt_prog_compiler_wl_GCJ='-Wl,'
16293      if test "$host_cpu" = ia64; then
16294	# AIX 5 now supports IA64 processor
16295	lt_prog_compiler_static_GCJ='-Bstatic'
16296      else
16297	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16298      fi
16299      ;;
16300      darwin*)
16301        # PIC is the default on this platform
16302        # Common symbols not allowed in MH_DYLIB files
16303       case $cc_basename in
16304         xlc*)
16305         lt_prog_compiler_pic_GCJ='-qnocommon'
16306         lt_prog_compiler_wl_GCJ='-Wl,'
16307         ;;
16308       esac
16309       ;;
16310
16311    mingw* | pw32* | os2*)
16312      # This hack is so that the source file can tell whether it is being
16313      # built for inclusion in a dll (and should export symbols for example).
16314      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16315      ;;
16316
16317    hpux9* | hpux10* | hpux11*)
16318      lt_prog_compiler_wl_GCJ='-Wl,'
16319      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16320      # not for PA HP-UX.
16321      case $host_cpu in
16322      hppa*64*|ia64*)
16323	# +Z the default
16324	;;
16325      *)
16326	lt_prog_compiler_pic_GCJ='+Z'
16327	;;
16328      esac
16329      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16330      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16331      ;;
16332
16333    irix5* | irix6* | nonstopux*)
16334      lt_prog_compiler_wl_GCJ='-Wl,'
16335      # PIC (with -KPIC) is the default.
16336      lt_prog_compiler_static_GCJ='-non_shared'
16337      ;;
16338
16339    newsos6)
16340      lt_prog_compiler_pic_GCJ='-KPIC'
16341      lt_prog_compiler_static_GCJ='-Bstatic'
16342      ;;
16343
16344    linux*)
16345      case $cc_basename in
16346      icc* | ecc*)
16347	lt_prog_compiler_wl_GCJ='-Wl,'
16348	lt_prog_compiler_pic_GCJ='-KPIC'
16349	lt_prog_compiler_static_GCJ='-static'
16350        ;;
16351      pgcc* | pgf77* | pgf90* | pgf95*)
16352        # Portland Group compilers (*not* the Pentium gcc compiler,
16353	# which looks to be a dead project)
16354	lt_prog_compiler_wl_GCJ='-Wl,'
16355	lt_prog_compiler_pic_GCJ='-fpic'
16356	lt_prog_compiler_static_GCJ='-Bstatic'
16357        ;;
16358      ccc*)
16359        lt_prog_compiler_wl_GCJ='-Wl,'
16360        # All Alpha code is PIC.
16361        lt_prog_compiler_static_GCJ='-non_shared'
16362        ;;
16363      esac
16364      ;;
16365
16366    osf3* | osf4* | osf5*)
16367      lt_prog_compiler_wl_GCJ='-Wl,'
16368      # All OSF/1 code is PIC.
16369      lt_prog_compiler_static_GCJ='-non_shared'
16370      ;;
16371
16372    solaris*)
16373      lt_prog_compiler_pic_GCJ='-KPIC'
16374      lt_prog_compiler_static_GCJ='-Bstatic'
16375      case $cc_basename in
16376      f77* | f90* | f95*)
16377	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16378      *)
16379	lt_prog_compiler_wl_GCJ='-Wl,';;
16380      esac
16381      ;;
16382
16383    sunos4*)
16384      lt_prog_compiler_wl_GCJ='-Qoption ld '
16385      lt_prog_compiler_pic_GCJ='-PIC'
16386      lt_prog_compiler_static_GCJ='-Bstatic'
16387      ;;
16388
16389    sysv4 | sysv4.2uw2* | sysv4.3*)
16390      lt_prog_compiler_wl_GCJ='-Wl,'
16391      lt_prog_compiler_pic_GCJ='-KPIC'
16392      lt_prog_compiler_static_GCJ='-Bstatic'
16393      ;;
16394
16395    sysv4*MP*)
16396      if test -d /usr/nec ;then
16397	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16398	lt_prog_compiler_static_GCJ='-Bstatic'
16399      fi
16400      ;;
16401
16402    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16403      lt_prog_compiler_wl_GCJ='-Wl,'
16404      lt_prog_compiler_pic_GCJ='-KPIC'
16405      lt_prog_compiler_static_GCJ='-Bstatic'
16406      ;;
16407
16408    unicos*)
16409      lt_prog_compiler_wl_GCJ='-Wl,'
16410      lt_prog_compiler_can_build_shared_GCJ=no
16411      ;;
16412
16413    uts4*)
16414      lt_prog_compiler_pic_GCJ='-pic'
16415      lt_prog_compiler_static_GCJ='-Bstatic'
16416      ;;
16417
16418    *)
16419      lt_prog_compiler_can_build_shared_GCJ=no
16420      ;;
16421    esac
16422  fi
16423
16424{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16425echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16426
16427#
16428# Check to make sure the PIC flag actually works.
16429#
16430if test -n "$lt_prog_compiler_pic_GCJ"; then
16431
16432{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16433echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16434if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16435  echo $ECHO_N "(cached) $ECHO_C" >&6
16436else
16437  lt_prog_compiler_pic_works_GCJ=no
16438  ac_outfile=conftest.$ac_objext
16439   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16440   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16441   # Insert the option either (1) after the last *FLAGS variable, or
16442   # (2) before a word containing "conftest.", or (3) at the end.
16443   # Note that $ac_compile itself does not contain backslashes and begins
16444   # with a dollar sign (not a hyphen), so the echo should work correctly.
16445   # The option is referenced via a variable to avoid confusing sed.
16446   lt_compile=`echo "$ac_compile" | $SED \
16447   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16448   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16449   -e 's:$: $lt_compiler_flag:'`
16450   (eval echo "\"\$as_me:16450: $lt_compile\"" >&5)
16451   (eval "$lt_compile" 2>conftest.err)
16452   ac_status=$?
16453   cat conftest.err >&5
16454   echo "$as_me:16454: \$? = $ac_status" >&5
16455   if (exit $ac_status) && test -s "$ac_outfile"; then
16456     # The compiler can only warn and ignore the option if not recognized
16457     # So say no if there are warnings other than the usual output.
16458     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16459     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16460     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16461       lt_prog_compiler_pic_works_GCJ=yes
16462     fi
16463   fi
16464   $rm conftest*
16465
16466fi
16467{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16468echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16469
16470if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16471    case $lt_prog_compiler_pic_GCJ in
16472     "" | " "*) ;;
16473     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16474     esac
16475else
16476    lt_prog_compiler_pic_GCJ=
16477     lt_prog_compiler_can_build_shared_GCJ=no
16478fi
16479
16480fi
16481case $host_os in
16482  # For platforms which do not support PIC, -DPIC is meaningless:
16483  *djgpp*)
16484    lt_prog_compiler_pic_GCJ=
16485    ;;
16486  *)
16487    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16488    ;;
16489esac
16490
16491#
16492# Check to make sure the static flag actually works.
16493#
16494wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16495{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16496echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16497if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16498  echo $ECHO_N "(cached) $ECHO_C" >&6
16499else
16500  lt_prog_compiler_static_works_GCJ=no
16501   save_LDFLAGS="$LDFLAGS"
16502   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16503   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16504   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16505     # The linker can only warn and ignore the option if not recognized
16506     # So say no if there are warnings
16507     if test -s conftest.err; then
16508       # Append any errors to the config.log.
16509       cat conftest.err 1>&5
16510       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16511       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16512       if diff conftest.exp conftest.er2 >/dev/null; then
16513         lt_prog_compiler_static_works_GCJ=yes
16514       fi
16515     else
16516       lt_prog_compiler_static_works_GCJ=yes
16517     fi
16518   fi
16519   $rm conftest*
16520   LDFLAGS="$save_LDFLAGS"
16521
16522fi
16523{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16524echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16525
16526if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16527    :
16528else
16529    lt_prog_compiler_static_GCJ=
16530fi
16531
16532
16533{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16534echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16535if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16536  echo $ECHO_N "(cached) $ECHO_C" >&6
16537else
16538  lt_cv_prog_compiler_c_o_GCJ=no
16539   $rm -r conftest 2>/dev/null
16540   mkdir conftest
16541   cd conftest
16542   mkdir out
16543   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16544
16545   lt_compiler_flag="-o out/conftest2.$ac_objext"
16546   # Insert the option either (1) after the last *FLAGS variable, or
16547   # (2) before a word containing "conftest.", or (3) at the end.
16548   # Note that $ac_compile itself does not contain backslashes and begins
16549   # with a dollar sign (not a hyphen), so the echo should work correctly.
16550   lt_compile=`echo "$ac_compile" | $SED \
16551   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16552   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16553   -e 's:$: $lt_compiler_flag:'`
16554   (eval echo "\"\$as_me:16554: $lt_compile\"" >&5)
16555   (eval "$lt_compile" 2>out/conftest.err)
16556   ac_status=$?
16557   cat out/conftest.err >&5
16558   echo "$as_me:16558: \$? = $ac_status" >&5
16559   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16560   then
16561     # The compiler can only warn and ignore the option if not recognized
16562     # So say no if there are warnings
16563     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16564     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16565     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16566       lt_cv_prog_compiler_c_o_GCJ=yes
16567     fi
16568   fi
16569   chmod u+w . 2>&5
16570   $rm conftest*
16571   # SGI C++ compiler will create directory out/ii_files/ for
16572   # template instantiation
16573   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16574   $rm out/* && rmdir out
16575   cd ..
16576   rmdir conftest
16577   $rm conftest*
16578
16579fi
16580{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16581echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16582
16583
16584hard_links="nottested"
16585if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16586  # do not overwrite the value of need_locks provided by the user
16587  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16588echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16589  hard_links=yes
16590  $rm conftest*
16591  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16592  touch conftest.a
16593  ln conftest.a conftest.b 2>&5 || hard_links=no
16594  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16595  { echo "$as_me:$LINENO: result: $hard_links" >&5
16596echo "${ECHO_T}$hard_links" >&6; }
16597  if test "$hard_links" = no; then
16598    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16599echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16600    need_locks=warn
16601  fi
16602else
16603  need_locks=no
16604fi
16605
16606{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16607echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16608
16609  runpath_var=
16610  allow_undefined_flag_GCJ=
16611  enable_shared_with_static_runtimes_GCJ=no
16612  archive_cmds_GCJ=
16613  archive_expsym_cmds_GCJ=
16614  old_archive_From_new_cmds_GCJ=
16615  old_archive_from_expsyms_cmds_GCJ=
16616  export_dynamic_flag_spec_GCJ=
16617  whole_archive_flag_spec_GCJ=
16618  thread_safe_flag_spec_GCJ=
16619  hardcode_libdir_flag_spec_GCJ=
16620  hardcode_libdir_flag_spec_ld_GCJ=
16621  hardcode_libdir_separator_GCJ=
16622  hardcode_direct_GCJ=no
16623  hardcode_minus_L_GCJ=no
16624  hardcode_shlibpath_var_GCJ=unsupported
16625  link_all_deplibs_GCJ=unknown
16626  hardcode_automatic_GCJ=no
16627  module_cmds_GCJ=
16628  module_expsym_cmds_GCJ=
16629  always_export_symbols_GCJ=no
16630  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16631  # include_expsyms should be a list of space-separated symbols to be *always*
16632  # included in the symbol list
16633  include_expsyms_GCJ=
16634  # exclude_expsyms can be an extended regexp of symbols to exclude
16635  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16636  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16637  # as well as any symbol that contains `d'.
16638  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16639  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16640  # platforms (ab)use it in PIC code, but their linkers get confused if
16641  # the symbol is explicitly referenced.  Since portable code cannot
16642  # rely on this symbol name, it's probably fine to never include it in
16643  # preloaded symbol tables.
16644  extract_expsyms_cmds=
16645  # Just being paranoid about ensuring that cc_basename is set.
16646  for cc_temp in $compiler""; do
16647  case $cc_temp in
16648    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16649    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16650    \-*) ;;
16651    *) break;;
16652  esac
16653done
16654cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16655
16656  case $host_os in
16657  cygwin* | mingw* | pw32*)
16658    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16659    # When not using gcc, we currently assume that we are using
16660    # Microsoft Visual C++.
16661    if test "$GCC" != yes; then
16662      with_gnu_ld=no
16663    fi
16664    ;;
16665  interix*)
16666    # we just hope/assume this is gcc and not c89 (= MSVC++)
16667    with_gnu_ld=yes
16668    ;;
16669  openbsd*)
16670    with_gnu_ld=no
16671    ;;
16672  esac
16673
16674  ld_shlibs_GCJ=yes
16675  if test "$with_gnu_ld" = yes; then
16676    # If archive_cmds runs LD, not CC, wlarc should be empty
16677    wlarc='${wl}'
16678
16679    # Set some defaults for GNU ld with shared library support. These
16680    # are reset later if shared libraries are not supported. Putting them
16681    # here allows them to be overridden if necessary.
16682    runpath_var=LD_RUN_PATH
16683    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16684    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16685    # ancient GNU ld didn't support --whole-archive et. al.
16686    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16687	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16688      else
16689  	whole_archive_flag_spec_GCJ=
16690    fi
16691    supports_anon_versioning=no
16692    case `$LD -v 2>/dev/null` in
16693      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16694      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16695      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16696      *\ 2.11.*) ;; # other 2.11 versions
16697      *) supports_anon_versioning=yes ;;
16698    esac
16699
16700    # See if GNU ld supports shared libraries.
16701    case $host_os in
16702    aix3* | aix4* | aix5*)
16703      # On AIX/PPC, the GNU linker is very broken
16704      if test "$host_cpu" != ia64; then
16705	ld_shlibs_GCJ=no
16706	cat <<EOF 1>&2
16707
16708*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16709*** to be unable to reliably create shared libraries on AIX.
16710*** Therefore, libtool is disabling shared libraries support.  If you
16711*** really care for shared libraries, you may want to modify your PATH
16712*** so that a non-GNU linker is found, and then restart.
16713
16714EOF
16715      fi
16716      ;;
16717
16718    amigaos*)
16719      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)'
16720      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16721      hardcode_minus_L_GCJ=yes
16722
16723      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16724      # that the semantics of dynamic libraries on AmigaOS, at least up
16725      # to version 4, is to share data among multiple programs linked
16726      # with the same dynamic library.  Since this doesn't match the
16727      # behavior of shared libraries on other platforms, we can't use
16728      # them.
16729      ld_shlibs_GCJ=no
16730      ;;
16731
16732    beos*)
16733      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16734	allow_undefined_flag_GCJ=unsupported
16735	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16736	# support --undefined.  This deserves some investigation.  FIXME
16737	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16738      else
16739	ld_shlibs_GCJ=no
16740      fi
16741      ;;
16742
16743    cygwin* | mingw* | pw32*)
16744      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16745      # as there is no search path for DLLs.
16746      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16747      allow_undefined_flag_GCJ=unsupported
16748      always_export_symbols_GCJ=no
16749      enable_shared_with_static_runtimes_GCJ=yes
16750      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16751
16752      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16753        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16754	# If the export-symbols file already is a .def file (1st line
16755	# is EXPORTS), use it as is; otherwise, prepend...
16756	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16757	  cp $export_symbols $output_objdir/$soname.def;
16758	else
16759	  echo EXPORTS > $output_objdir/$soname.def;
16760	  cat $export_symbols >> $output_objdir/$soname.def;
16761	fi~
16762	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16763      else
16764	ld_shlibs_GCJ=no
16765      fi
16766      ;;
16767
16768    interix3*)
16769      hardcode_direct_GCJ=no
16770      hardcode_shlibpath_var_GCJ=no
16771      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16772      export_dynamic_flag_spec_GCJ='${wl}-E'
16773      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16774      # Instead, shared libraries are loaded at an image base (0x10000000 by
16775      # default) and relocated if they conflict, which is a slow very memory
16776      # consuming and fragmenting process.  To avoid this, we pick a random,
16777      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16778      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16779      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'
16780      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'
16781      ;;
16782
16783    linux*)
16784      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16785	tmp_addflag=
16786	case $cc_basename,$host_cpu in
16787	pgcc*)				# Portland Group C compiler
16788	  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'
16789	  tmp_addflag=' $pic_flag'
16790	  ;;
16791	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16792	  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'
16793	  tmp_addflag=' $pic_flag -Mnomain' ;;
16794	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16795	  tmp_addflag=' -i_dynamic' ;;
16796	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16797	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16798	ifc* | ifort*)			# Intel Fortran compiler
16799	  tmp_addflag=' -nofor_main' ;;
16800	esac
16801	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16802
16803	if test $supports_anon_versioning = yes; then
16804	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16805  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16806  $echo "local: *; };" >> $output_objdir/$libname.ver~
16807	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16808	fi
16809      else
16810	ld_shlibs_GCJ=no
16811      fi
16812      ;;
16813
16814    netbsd*)
16815      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16816	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16817	wlarc=
16818      else
16819	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16820	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16821      fi
16822      ;;
16823
16824    solaris*)
16825      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16826	ld_shlibs_GCJ=no
16827	cat <<EOF 1>&2
16828
16829*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16830*** create shared libraries on Solaris systems.  Therefore, libtool
16831*** is disabling shared libraries support.  We urge you to upgrade GNU
16832*** binutils to release 2.9.1 or newer.  Another option is to modify
16833*** your PATH or compiler configuration so that the native linker is
16834*** used, and then restart.
16835
16836EOF
16837      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16838	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16839	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16840      else
16841	ld_shlibs_GCJ=no
16842      fi
16843      ;;
16844
16845    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16846      case `$LD -v 2>&1` in
16847        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16848	ld_shlibs_GCJ=no
16849	cat <<_LT_EOF 1>&2
16850
16851*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16852*** reliably create shared libraries on SCO systems.  Therefore, libtool
16853*** is disabling shared libraries support.  We urge you to upgrade GNU
16854*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16855*** your PATH or compiler configuration so that the native linker is
16856*** used, and then restart.
16857
16858_LT_EOF
16859	;;
16860	*)
16861	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16862	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16863	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16864	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16865	  else
16866	    ld_shlibs_GCJ=no
16867	  fi
16868	;;
16869      esac
16870      ;;
16871
16872    sunos4*)
16873      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16874      wlarc=
16875      hardcode_direct_GCJ=yes
16876      hardcode_shlibpath_var_GCJ=no
16877      ;;
16878
16879    *)
16880      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16881	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16882	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16883      else
16884	ld_shlibs_GCJ=no
16885      fi
16886      ;;
16887    esac
16888
16889    if test "$ld_shlibs_GCJ" = no; then
16890      runpath_var=
16891      hardcode_libdir_flag_spec_GCJ=
16892      export_dynamic_flag_spec_GCJ=
16893      whole_archive_flag_spec_GCJ=
16894    fi
16895  else
16896    # PORTME fill in a description of your system's linker (not GNU ld)
16897    case $host_os in
16898    aix3*)
16899      allow_undefined_flag_GCJ=unsupported
16900      always_export_symbols_GCJ=yes
16901      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'
16902      # Note: this linker hardcodes the directories in LIBPATH if there
16903      # are no directories specified by -L.
16904      hardcode_minus_L_GCJ=yes
16905      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16906	# Neither direct hardcoding nor static linking is supported with a
16907	# broken collect2.
16908	hardcode_direct_GCJ=unsupported
16909      fi
16910      ;;
16911
16912    aix4* | aix5*)
16913      if test "$host_cpu" = ia64; then
16914	# On IA64, the linker does run time linking by default, so we don't
16915	# have to do anything special.
16916	aix_use_runtimelinking=no
16917	exp_sym_flag='-Bexport'
16918	no_entry_flag=""
16919      else
16920	# If we're using GNU nm, then we don't want the "-C" option.
16921	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16922	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16923	  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'
16924	else
16925	  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'
16926	fi
16927	aix_use_runtimelinking=no
16928
16929	# Test if we are trying to use run time linking or normal
16930	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16931	# need to do runtime linking.
16932	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16933	  for ld_flag in $LDFLAGS; do
16934  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16935  	    aix_use_runtimelinking=yes
16936  	    break
16937  	  fi
16938	  done
16939	  ;;
16940	esac
16941
16942	exp_sym_flag='-bexport'
16943	no_entry_flag='-bnoentry'
16944      fi
16945
16946      # When large executables or shared objects are built, AIX ld can
16947      # have problems creating the table of contents.  If linking a library
16948      # or program results in "error TOC overflow" add -mminimal-toc to
16949      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16950      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16951
16952      archive_cmds_GCJ=''
16953      hardcode_direct_GCJ=yes
16954      hardcode_libdir_separator_GCJ=':'
16955      link_all_deplibs_GCJ=yes
16956
16957      if test "$GCC" = yes; then
16958	case $host_os in aix4.[012]|aix4.[012].*)
16959	# We only want to do this on AIX 4.2 and lower, the check
16960	# below for broken collect2 doesn't work under 4.3+
16961	  collect2name=`${CC} -print-prog-name=collect2`
16962	  if test -f "$collect2name" && \
16963  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16964	  then
16965  	  # We have reworked collect2
16966  	  hardcode_direct_GCJ=yes
16967	  else
16968  	  # We have old collect2
16969  	  hardcode_direct_GCJ=unsupported
16970  	  # It fails to find uninstalled libraries when the uninstalled
16971  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16972  	  # to unsupported forces relinking
16973  	  hardcode_minus_L_GCJ=yes
16974  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16975  	  hardcode_libdir_separator_GCJ=
16976	  fi
16977	  ;;
16978	esac
16979	shared_flag='-shared'
16980	if test "$aix_use_runtimelinking" = yes; then
16981	  shared_flag="$shared_flag "'${wl}-G'
16982	fi
16983      else
16984	# not using gcc
16985	if test "$host_cpu" = ia64; then
16986  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16987  	# chokes on -Wl,-G. The following line is correct:
16988	  shared_flag='-G'
16989	else
16990	  if test "$aix_use_runtimelinking" = yes; then
16991	    shared_flag='${wl}-G'
16992	  else
16993	    shared_flag='${wl}-bM:SRE'
16994	  fi
16995	fi
16996      fi
16997
16998      # It seems that -bexpall does not export symbols beginning with
16999      # underscore (_), so it is better to generate a list of symbols to export.
17000      always_export_symbols_GCJ=yes
17001      if test "$aix_use_runtimelinking" = yes; then
17002	# Warning - without using the other runtime loading flags (-brtl),
17003	# -berok will link without error, but may produce a broken library.
17004	allow_undefined_flag_GCJ='-berok'
17005       # Determine the default libpath from the value encoded in an empty executable.
17006       cat >conftest.$ac_ext <<_ACEOF
17007/* confdefs.h.  */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h.  */
17012
17013int
17014main ()
17015{
17016
17017  ;
17018  return 0;
17019}
17020_ACEOF
17021rm -f conftest.$ac_objext conftest$ac_exeext
17022if { (ac_try="$ac_link"
17023case "(($ac_try" in
17024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025  *) ac_try_echo=$ac_try;;
17026esac
17027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028  (eval "$ac_link") 2>conftest.er1
17029  ac_status=$?
17030  grep -v '^ *+' conftest.er1 >conftest.err
17031  rm -f conftest.er1
17032  cat conftest.err >&5
17033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034  (exit $ac_status); } && {
17035	 test -z "$ac_c_werror_flag" ||
17036	 test ! -s conftest.err
17037       } && test -s conftest$ac_exeext &&
17038       $as_test_x conftest$ac_exeext; then
17039
17040aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17041}'`
17042# Check for a 64-bit object if we didn't find anything.
17043if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17044}'`; fi
17045else
17046  echo "$as_me: failed program was:" >&5
17047sed 's/^/| /' conftest.$ac_ext >&5
17048
17049
17050fi
17051
17052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17053      conftest$ac_exeext conftest.$ac_ext
17054if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17055
17056       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17057	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"
17058       else
17059	if test "$host_cpu" = ia64; then
17060	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17061	  allow_undefined_flag_GCJ="-z nodefs"
17062	  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"
17063	else
17064	 # Determine the default libpath from the value encoded in an empty executable.
17065	 cat >conftest.$ac_ext <<_ACEOF
17066/* confdefs.h.  */
17067_ACEOF
17068cat confdefs.h >>conftest.$ac_ext
17069cat >>conftest.$ac_ext <<_ACEOF
17070/* end confdefs.h.  */
17071
17072int
17073main ()
17074{
17075
17076  ;
17077  return 0;
17078}
17079_ACEOF
17080rm -f conftest.$ac_objext conftest$ac_exeext
17081if { (ac_try="$ac_link"
17082case "(($ac_try" in
17083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084  *) ac_try_echo=$ac_try;;
17085esac
17086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087  (eval "$ac_link") 2>conftest.er1
17088  ac_status=$?
17089  grep -v '^ *+' conftest.er1 >conftest.err
17090  rm -f conftest.er1
17091  cat conftest.err >&5
17092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093  (exit $ac_status); } && {
17094	 test -z "$ac_c_werror_flag" ||
17095	 test ! -s conftest.err
17096       } && test -s conftest$ac_exeext &&
17097       $as_test_x conftest$ac_exeext; then
17098
17099aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17100}'`
17101# Check for a 64-bit object if we didn't find anything.
17102if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17103}'`; fi
17104else
17105  echo "$as_me: failed program was:" >&5
17106sed 's/^/| /' conftest.$ac_ext >&5
17107
17108
17109fi
17110
17111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17112      conftest$ac_exeext conftest.$ac_ext
17113if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17114
17115	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17116	  # Warning - without using the other run time loading flags,
17117	  # -berok will link without error, but may produce a broken library.
17118	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17119	  allow_undefined_flag_GCJ=' ${wl}-berok'
17120	  # Exported symbols can be pulled into shared objects from archives
17121	  whole_archive_flag_spec_GCJ='$convenience'
17122	  archive_cmds_need_lc_GCJ=yes
17123	  # This is similar to how AIX traditionally builds its shared libraries.
17124	  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'
17125	fi
17126      fi
17127      ;;
17128
17129    amigaos*)
17130      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)'
17131      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17132      hardcode_minus_L_GCJ=yes
17133      # see comment about different semantics on the GNU ld section
17134      ld_shlibs_GCJ=no
17135      ;;
17136
17137    bsdi[45]*)
17138      export_dynamic_flag_spec_GCJ=-rdynamic
17139      ;;
17140
17141    cygwin* | mingw* | pw32*)
17142      # When not using gcc, we currently assume that we are using
17143      # Microsoft Visual C++.
17144      # hardcode_libdir_flag_spec is actually meaningless, as there is
17145      # no search path for DLLs.
17146      hardcode_libdir_flag_spec_GCJ=' '
17147      allow_undefined_flag_GCJ=unsupported
17148      # Tell ltmain to make .lib files, not .a files.
17149      libext=lib
17150      # Tell ltmain to make .dll files, not .so files.
17151      shrext_cmds=".dll"
17152      # FIXME: Setting linknames here is a bad hack.
17153      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17154      # The linker will automatically build a .lib file if we build a DLL.
17155      old_archive_From_new_cmds_GCJ='true'
17156      # FIXME: Should let the user specify the lib program.
17157      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17158      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17159      enable_shared_with_static_runtimes_GCJ=yes
17160      ;;
17161
17162    darwin* | rhapsody*)
17163      case $host_os in
17164        rhapsody* | darwin1.[012])
17165         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17166         ;;
17167       *) # Darwin 1.3 on
17168         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17169           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17170         else
17171           case ${MACOSX_DEPLOYMENT_TARGET} in
17172             10.[012])
17173               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17174               ;;
17175             10.*)
17176               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17177               ;;
17178           esac
17179         fi
17180         ;;
17181      esac
17182      archive_cmds_need_lc_GCJ=no
17183      hardcode_direct_GCJ=no
17184      hardcode_automatic_GCJ=yes
17185      hardcode_shlibpath_var_GCJ=unsupported
17186      whole_archive_flag_spec_GCJ=''
17187      link_all_deplibs_GCJ=yes
17188    if test "$GCC" = yes ; then
17189    	output_verbose_link_cmd='echo'
17190        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17191      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17192      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17193      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}'
17194      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}'
17195    else
17196      case $cc_basename in
17197        xlc*)
17198         output_verbose_link_cmd='echo'
17199         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17200         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17201          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17202         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17203          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}'
17204          ;;
17205       *)
17206         ld_shlibs_GCJ=no
17207          ;;
17208      esac
17209    fi
17210      ;;
17211
17212    dgux*)
17213      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17214      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17215      hardcode_shlibpath_var_GCJ=no
17216      ;;
17217
17218    freebsd1*)
17219      ld_shlibs_GCJ=no
17220      ;;
17221
17222    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17223    # support.  Future versions do this automatically, but an explicit c++rt0.o
17224    # does not break anything, and helps significantly (at the cost of a little
17225    # extra space).
17226    freebsd2.2*)
17227      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17228      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17229      hardcode_direct_GCJ=yes
17230      hardcode_shlibpath_var_GCJ=no
17231      ;;
17232
17233    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17234    freebsd2*)
17235      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17236      hardcode_direct_GCJ=yes
17237      hardcode_minus_L_GCJ=yes
17238      hardcode_shlibpath_var_GCJ=no
17239      ;;
17240
17241    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17242    freebsd* | kfreebsd*-gnu | dragonfly*)
17243      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17244      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17245      hardcode_direct_GCJ=yes
17246      hardcode_shlibpath_var_GCJ=no
17247      ;;
17248
17249    hpux9*)
17250      if test "$GCC" = yes; then
17251	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'
17252      else
17253	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'
17254      fi
17255      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17256      hardcode_libdir_separator_GCJ=:
17257      hardcode_direct_GCJ=yes
17258
17259      # hardcode_minus_L: Not really in the search PATH,
17260      # but as the default location of the library.
17261      hardcode_minus_L_GCJ=yes
17262      export_dynamic_flag_spec_GCJ='${wl}-E'
17263      ;;
17264
17265    hpux10*)
17266      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17267	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17268      else
17269	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17270      fi
17271      if test "$with_gnu_ld" = no; then
17272	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17273	hardcode_libdir_separator_GCJ=:
17274
17275	hardcode_direct_GCJ=yes
17276	export_dynamic_flag_spec_GCJ='${wl}-E'
17277
17278	# hardcode_minus_L: Not really in the search PATH,
17279	# but as the default location of the library.
17280	hardcode_minus_L_GCJ=yes
17281      fi
17282      ;;
17283
17284    hpux11*)
17285      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17286	case $host_cpu in
17287	hppa*64*)
17288	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17289	  ;;
17290	ia64*)
17291	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17292	  ;;
17293	*)
17294	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17295	  ;;
17296	esac
17297      else
17298	case $host_cpu in
17299	hppa*64*)
17300	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17301	  ;;
17302	ia64*)
17303	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17304	  ;;
17305	*)
17306	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17307	  ;;
17308	esac
17309      fi
17310      if test "$with_gnu_ld" = no; then
17311	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17312	hardcode_libdir_separator_GCJ=:
17313
17314	case $host_cpu in
17315	hppa*64*|ia64*)
17316	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17317	  hardcode_direct_GCJ=no
17318	  hardcode_shlibpath_var_GCJ=no
17319	  ;;
17320	*)
17321	  hardcode_direct_GCJ=yes
17322	  export_dynamic_flag_spec_GCJ='${wl}-E'
17323
17324	  # hardcode_minus_L: Not really in the search PATH,
17325	  # but as the default location of the library.
17326	  hardcode_minus_L_GCJ=yes
17327	  ;;
17328	esac
17329      fi
17330      ;;
17331
17332    irix5* | irix6* | nonstopux*)
17333      if test "$GCC" = yes; then
17334	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'
17335      else
17336	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'
17337	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17338      fi
17339      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17340      hardcode_libdir_separator_GCJ=:
17341      link_all_deplibs_GCJ=yes
17342      ;;
17343
17344    netbsd*)
17345      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17346	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17347      else
17348	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17349      fi
17350      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17351      hardcode_direct_GCJ=yes
17352      hardcode_shlibpath_var_GCJ=no
17353      ;;
17354
17355    newsos6)
17356      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17357      hardcode_direct_GCJ=yes
17358      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17359      hardcode_libdir_separator_GCJ=:
17360      hardcode_shlibpath_var_GCJ=no
17361      ;;
17362
17363    openbsd*)
17364      hardcode_direct_GCJ=yes
17365      hardcode_shlibpath_var_GCJ=no
17366      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17367	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17368	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17369	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17370	export_dynamic_flag_spec_GCJ='${wl}-E'
17371      else
17372       case $host_os in
17373	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17374	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17375	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17376	   ;;
17377	 *)
17378	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17379	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17380	   ;;
17381       esac
17382      fi
17383      ;;
17384
17385    os2*)
17386      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17387      hardcode_minus_L_GCJ=yes
17388      allow_undefined_flag_GCJ=unsupported
17389      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'
17390      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17391      ;;
17392
17393    osf3*)
17394      if test "$GCC" = yes; then
17395	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17396	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'
17397      else
17398	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17399	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'
17400      fi
17401      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17402      hardcode_libdir_separator_GCJ=:
17403      ;;
17404
17405    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17406      if test "$GCC" = yes; then
17407	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17408	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'
17409	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17410      else
17411	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17412	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'
17413	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~
17414	$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'
17415
17416	# Both c and cxx compiler support -rpath directly
17417	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17418      fi
17419      hardcode_libdir_separator_GCJ=:
17420      ;;
17421
17422    solaris*)
17423      no_undefined_flag_GCJ=' -z text'
17424      if test "$GCC" = yes; then
17425	wlarc='${wl}'
17426	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17427	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17428	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17429      else
17430	wlarc=''
17431	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17432	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17433  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17434      fi
17435      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17436      hardcode_shlibpath_var_GCJ=no
17437      case $host_os in
17438      solaris2.[0-5] | solaris2.[0-5].*) ;;
17439      *)
17440 	# The compiler driver will combine linker options so we
17441 	# cannot just pass the convience library names through
17442 	# without $wl, iff we do not link with $LD.
17443 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17444 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17445 	case $wlarc in
17446 	'')
17447 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17448 	*)
17449 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17450 	esac ;;
17451      esac
17452      link_all_deplibs_GCJ=yes
17453      ;;
17454
17455    sunos4*)
17456      if test "x$host_vendor" = xsequent; then
17457	# Use $CC to link under sequent, because it throws in some extra .o
17458	# files that make .init and .fini sections work.
17459	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17460      else
17461	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17462      fi
17463      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17464      hardcode_direct_GCJ=yes
17465      hardcode_minus_L_GCJ=yes
17466      hardcode_shlibpath_var_GCJ=no
17467      ;;
17468
17469    sysv4)
17470      case $host_vendor in
17471	sni)
17472	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17473	  hardcode_direct_GCJ=yes # is this really true???
17474	;;
17475	siemens)
17476	  ## LD is ld it makes a PLAMLIB
17477	  ## CC just makes a GrossModule.
17478	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17479	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17480	  hardcode_direct_GCJ=no
17481        ;;
17482	motorola)
17483	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17484	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17485	;;
17486      esac
17487      runpath_var='LD_RUN_PATH'
17488      hardcode_shlibpath_var_GCJ=no
17489      ;;
17490
17491    sysv4.3*)
17492      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17493      hardcode_shlibpath_var_GCJ=no
17494      export_dynamic_flag_spec_GCJ='-Bexport'
17495      ;;
17496
17497    sysv4*MP*)
17498      if test -d /usr/nec; then
17499	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500	hardcode_shlibpath_var_GCJ=no
17501	runpath_var=LD_RUN_PATH
17502	hardcode_runpath_var=yes
17503	ld_shlibs_GCJ=yes
17504      fi
17505      ;;
17506
17507    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17508      no_undefined_flag_GCJ='${wl}-z,text'
17509      archive_cmds_need_lc_GCJ=no
17510      hardcode_shlibpath_var_GCJ=no
17511      runpath_var='LD_RUN_PATH'
17512
17513      if test "$GCC" = yes; then
17514	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17515	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17516      else
17517	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17518	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17519      fi
17520      ;;
17521
17522    sysv5* | sco3.2v5* | sco5v6*)
17523      # Note: We can NOT use -z defs as we might desire, because we do not
17524      # link with -lc, and that would cause any symbols used from libc to
17525      # always be unresolved, which means just about no library would
17526      # ever link correctly.  If we're not using GNU ld we use -z text
17527      # though, which does catch some bad symbols but isn't as heavy-handed
17528      # as -z defs.
17529      no_undefined_flag_GCJ='${wl}-z,text'
17530      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17531      archive_cmds_need_lc_GCJ=no
17532      hardcode_shlibpath_var_GCJ=no
17533      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17534      hardcode_libdir_separator_GCJ=':'
17535      link_all_deplibs_GCJ=yes
17536      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17537      runpath_var='LD_RUN_PATH'
17538
17539      if test "$GCC" = yes; then
17540	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17541	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17542      else
17543	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17544	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17545      fi
17546      ;;
17547
17548    uts4*)
17549      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17550      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17551      hardcode_shlibpath_var_GCJ=no
17552      ;;
17553
17554    *)
17555      ld_shlibs_GCJ=no
17556      ;;
17557    esac
17558  fi
17559
17560{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17561echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17562test "$ld_shlibs_GCJ" = no && can_build_shared=no
17563
17564#
17565# Do we need to explicitly link libc?
17566#
17567case "x$archive_cmds_need_lc_GCJ" in
17568x|xyes)
17569  # Assume -lc should be added
17570  archive_cmds_need_lc_GCJ=yes
17571
17572  if test "$enable_shared" = yes && test "$GCC" = yes; then
17573    case $archive_cmds_GCJ in
17574    *'~'*)
17575      # FIXME: we may have to deal with multi-command sequences.
17576      ;;
17577    '$CC '*)
17578      # Test whether the compiler implicitly links with -lc since on some
17579      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17580      # to ld, don't add -lc before -lgcc.
17581      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17582echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17583      $rm conftest*
17584      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17585
17586      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17587  (eval $ac_compile) 2>&5
17588  ac_status=$?
17589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590  (exit $ac_status); } 2>conftest.err; then
17591        soname=conftest
17592        lib=conftest
17593        libobjs=conftest.$ac_objext
17594        deplibs=
17595        wl=$lt_prog_compiler_wl_GCJ
17596	pic_flag=$lt_prog_compiler_pic_GCJ
17597        compiler_flags=-v
17598        linker_flags=-v
17599        verstring=
17600        output_objdir=.
17601        libname=conftest
17602        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17603        allow_undefined_flag_GCJ=
17604        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17605  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17606  ac_status=$?
17607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608  (exit $ac_status); }
17609        then
17610	  archive_cmds_need_lc_GCJ=no
17611        else
17612	  archive_cmds_need_lc_GCJ=yes
17613        fi
17614        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17615      else
17616        cat conftest.err 1>&5
17617      fi
17618      $rm conftest*
17619      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17620echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17621      ;;
17622    esac
17623  fi
17624  ;;
17625esac
17626
17627{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17628echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17629library_names_spec=
17630libname_spec='lib$name'
17631soname_spec=
17632shrext_cmds=".so"
17633postinstall_cmds=
17634postuninstall_cmds=
17635finish_cmds=
17636finish_eval=
17637shlibpath_var=
17638shlibpath_overrides_runpath=unknown
17639version_type=none
17640dynamic_linker="$host_os ld.so"
17641sys_lib_dlsearch_path_spec="/lib /usr/lib"
17642if test "$GCC" = yes; then
17643  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17644  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17645    # if the path contains ";" then we assume it to be the separator
17646    # otherwise default to the standard path separator (i.e. ":") - it is
17647    # assumed that no part of a normal pathname contains ";" but that should
17648    # okay in the real world where ";" in dirpaths is itself problematic.
17649    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17650  else
17651    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17652  fi
17653else
17654  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17655fi
17656need_lib_prefix=unknown
17657hardcode_into_libs=no
17658
17659# when you set need_version to no, make sure it does not cause -set_version
17660# flags to be left without arguments
17661need_version=unknown
17662
17663case $host_os in
17664aix3*)
17665  version_type=linux
17666  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17667  shlibpath_var=LIBPATH
17668
17669  # AIX 3 has no versioning support, so we append a major version to the name.
17670  soname_spec='${libname}${release}${shared_ext}$major'
17671  ;;
17672
17673aix4* | aix5*)
17674  version_type=linux
17675  need_lib_prefix=no
17676  need_version=no
17677  hardcode_into_libs=yes
17678  if test "$host_cpu" = ia64; then
17679    # AIX 5 supports IA64
17680    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17681    shlibpath_var=LD_LIBRARY_PATH
17682  else
17683    # With GCC up to 2.95.x, collect2 would create an import file
17684    # for dependence libraries.  The import file would start with
17685    # the line `#! .'.  This would cause the generated library to
17686    # depend on `.', always an invalid library.  This was fixed in
17687    # development snapshots of GCC prior to 3.0.
17688    case $host_os in
17689      aix4 | aix4.[01] | aix4.[01].*)
17690      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17691	   echo ' yes '
17692	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17693	:
17694      else
17695	can_build_shared=no
17696      fi
17697      ;;
17698    esac
17699    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17700    # soname into executable. Probably we can add versioning support to
17701    # collect2, so additional links can be useful in future.
17702    if test "$aix_use_runtimelinking" = yes; then
17703      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17704      # instead of lib<name>.a to let people know that these are not
17705      # typical AIX shared libraries.
17706      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17707    else
17708      # We preserve .a as extension for shared libraries through AIX4.2
17709      # and later when we are not doing run time linking.
17710      library_names_spec='${libname}${release}.a $libname.a'
17711      soname_spec='${libname}${release}${shared_ext}$major'
17712    fi
17713    shlibpath_var=LIBPATH
17714  fi
17715  ;;
17716
17717amigaos*)
17718  library_names_spec='$libname.ixlibrary $libname.a'
17719  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17720  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'
17721  ;;
17722
17723beos*)
17724  library_names_spec='${libname}${shared_ext}'
17725  dynamic_linker="$host_os ld.so"
17726  shlibpath_var=LIBRARY_PATH
17727  ;;
17728
17729bsdi[45]*)
17730  version_type=linux
17731  need_version=no
17732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17733  soname_spec='${libname}${release}${shared_ext}$major'
17734  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17735  shlibpath_var=LD_LIBRARY_PATH
17736  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17737  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17738  # the default ld.so.conf also contains /usr/contrib/lib and
17739  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17740  # libtool to hard-code these into programs
17741  ;;
17742
17743cygwin* | mingw* | pw32*)
17744  version_type=windows
17745  shrext_cmds=".dll"
17746  need_version=no
17747  need_lib_prefix=no
17748
17749  case $GCC,$host_os in
17750  yes,cygwin* | yes,mingw* | yes,pw32*)
17751    library_names_spec='$libname.dll.a'
17752    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17753    postinstall_cmds='base_file=`basename \${file}`~
17754      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17755      dldir=$destdir/`dirname \$dlpath`~
17756      test -d \$dldir || mkdir -p \$dldir~
17757      $install_prog $dir/$dlname \$dldir/$dlname~
17758      chmod a+x \$dldir/$dlname'
17759    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17760      dlpath=$dir/\$dldll~
17761       $rm \$dlpath'
17762    shlibpath_overrides_runpath=yes
17763
17764    case $host_os in
17765    cygwin*)
17766      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17767      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17768      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17769      ;;
17770    mingw*)
17771      # MinGW DLLs use traditional 'lib' prefix
17772      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17773      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17774      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17775        # It is most probably a Windows format PATH printed by
17776        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17777        # path with ; separators, and with drive letters. We can handle the
17778        # drive letters (cygwin fileutils understands them), so leave them,
17779        # especially as we might pass files found there to a mingw objdump,
17780        # which wouldn't understand a cygwinified path. Ahh.
17781        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17782      else
17783        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17784      fi
17785      ;;
17786    pw32*)
17787      # pw32 DLLs use 'pw' prefix rather than 'lib'
17788      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17789      ;;
17790    esac
17791    ;;
17792
17793  *)
17794    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17795    ;;
17796  esac
17797  dynamic_linker='Win32 ld.exe'
17798  # FIXME: first we should search . and the directory the executable is in
17799  shlibpath_var=PATH
17800  ;;
17801
17802darwin* | rhapsody*)
17803  dynamic_linker="$host_os dyld"
17804  version_type=darwin
17805  need_lib_prefix=no
17806  need_version=no
17807  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17808  soname_spec='${libname}${release}${major}$shared_ext'
17809  shlibpath_overrides_runpath=yes
17810  shlibpath_var=DYLD_LIBRARY_PATH
17811  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17812  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17813  if test "$GCC" = yes; then
17814    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17815  else
17816    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17817  fi
17818  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17819  ;;
17820
17821dgux*)
17822  version_type=linux
17823  need_lib_prefix=no
17824  need_version=no
17825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17826  soname_spec='${libname}${release}${shared_ext}$major'
17827  shlibpath_var=LD_LIBRARY_PATH
17828  ;;
17829
17830freebsd1*)
17831  dynamic_linker=no
17832  ;;
17833
17834kfreebsd*-gnu)
17835  version_type=linux
17836  need_lib_prefix=no
17837  need_version=no
17838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17839  soname_spec='${libname}${release}${shared_ext}$major'
17840  shlibpath_var=LD_LIBRARY_PATH
17841  shlibpath_overrides_runpath=no
17842  hardcode_into_libs=yes
17843  dynamic_linker='GNU ld.so'
17844  ;;
17845
17846freebsd* | dragonfly*)
17847  # DragonFly does not have aout.  When/if they implement a new
17848  # versioning mechanism, adjust this.
17849  if test -x /usr/bin/objformat; then
17850    objformat=`/usr/bin/objformat`
17851  else
17852    case $host_os in
17853    freebsd[123]*) objformat=aout ;;
17854    *) objformat=elf ;;
17855    esac
17856  fi
17857  version_type=freebsd-$objformat
17858  case $version_type in
17859    freebsd-elf*)
17860      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17861      need_version=no
17862      need_lib_prefix=no
17863      ;;
17864    freebsd-*)
17865      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17866      need_version=yes
17867      ;;
17868  esac
17869  shlibpath_var=LD_LIBRARY_PATH
17870  case $host_os in
17871  freebsd2*)
17872    shlibpath_overrides_runpath=yes
17873    ;;
17874  freebsd3.[01]* | freebsdelf3.[01]*)
17875    shlibpath_overrides_runpath=yes
17876    hardcode_into_libs=yes
17877    ;;
17878  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17879  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17880    shlibpath_overrides_runpath=no
17881    hardcode_into_libs=yes
17882    ;;
17883  freebsd*) # from 4.6 on
17884    shlibpath_overrides_runpath=yes
17885    hardcode_into_libs=yes
17886    ;;
17887  esac
17888  ;;
17889
17890gnu*)
17891  version_type=linux
17892  need_lib_prefix=no
17893  need_version=no
17894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17895  soname_spec='${libname}${release}${shared_ext}$major'
17896  shlibpath_var=LD_LIBRARY_PATH
17897  hardcode_into_libs=yes
17898  ;;
17899
17900hpux9* | hpux10* | hpux11*)
17901  # Give a soname corresponding to the major version so that dld.sl refuses to
17902  # link against other versions.
17903  version_type=sunos
17904  need_lib_prefix=no
17905  need_version=no
17906  case $host_cpu in
17907  ia64*)
17908    shrext_cmds='.so'
17909    hardcode_into_libs=yes
17910    dynamic_linker="$host_os dld.so"
17911    shlibpath_var=LD_LIBRARY_PATH
17912    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17913    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17914    soname_spec='${libname}${release}${shared_ext}$major'
17915    if test "X$HPUX_IA64_MODE" = X32; then
17916      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17917    else
17918      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17919    fi
17920    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17921    ;;
17922   hppa*64*)
17923     shrext_cmds='.sl'
17924     hardcode_into_libs=yes
17925     dynamic_linker="$host_os dld.sl"
17926     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17927     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17929     soname_spec='${libname}${release}${shared_ext}$major'
17930     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17931     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17932     ;;
17933   *)
17934    shrext_cmds='.sl'
17935    dynamic_linker="$host_os dld.sl"
17936    shlibpath_var=SHLIB_PATH
17937    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17938    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17939    soname_spec='${libname}${release}${shared_ext}$major'
17940    ;;
17941  esac
17942  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17943  postinstall_cmds='chmod 555 $lib'
17944  ;;
17945
17946interix3*)
17947  version_type=linux
17948  need_lib_prefix=no
17949  need_version=no
17950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17951  soname_spec='${libname}${release}${shared_ext}$major'
17952  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17953  shlibpath_var=LD_LIBRARY_PATH
17954  shlibpath_overrides_runpath=no
17955  hardcode_into_libs=yes
17956  ;;
17957
17958irix5* | irix6* | nonstopux*)
17959  case $host_os in
17960    nonstopux*) version_type=nonstopux ;;
17961    *)
17962	if test "$lt_cv_prog_gnu_ld" = yes; then
17963		version_type=linux
17964	else
17965		version_type=irix
17966	fi ;;
17967  esac
17968  need_lib_prefix=no
17969  need_version=no
17970  soname_spec='${libname}${release}${shared_ext}$major'
17971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17972  case $host_os in
17973  irix5* | nonstopux*)
17974    libsuff= shlibsuff=
17975    ;;
17976  *)
17977    case $LD in # libtool.m4 will add one of these switches to LD
17978    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17979      libsuff= shlibsuff= libmagic=32-bit;;
17980    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17981      libsuff=32 shlibsuff=N32 libmagic=N32;;
17982    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17983      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17984    *) libsuff= shlibsuff= libmagic=never-match;;
17985    esac
17986    ;;
17987  esac
17988  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17989  shlibpath_overrides_runpath=no
17990  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17991  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17992  hardcode_into_libs=yes
17993  ;;
17994
17995# No shared lib support for Linux oldld, aout, or coff.
17996linux*oldld* | linux*aout* | linux*coff*)
17997  dynamic_linker=no
17998  ;;
17999
18000# This must be Linux ELF.
18001linux*)
18002  version_type=linux
18003  need_lib_prefix=no
18004  need_version=no
18005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18006  soname_spec='${libname}${release}${shared_ext}$major'
18007  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18008  shlibpath_var=LD_LIBRARY_PATH
18009  shlibpath_overrides_runpath=no
18010  # This implies no fast_install, which is unacceptable.
18011  # Some rework will be needed to allow for fast_install
18012  # before this can be enabled.
18013  hardcode_into_libs=yes
18014
18015  # Append ld.so.conf contents to the search path
18016  if test -f /etc/ld.so.conf; then
18017    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18018    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18019  fi
18020
18021  # We used to test for /lib/ld.so.1 and disable shared libraries on
18022  # powerpc, because MkLinux only supported shared libraries with the
18023  # GNU dynamic linker.  Since this was broken with cross compilers,
18024  # most powerpc-linux boxes support dynamic linking these days and
18025  # people can always --disable-shared, the test was removed, and we
18026  # assume the GNU/Linux dynamic linker is in use.
18027  dynamic_linker='GNU/Linux ld.so'
18028  ;;
18029
18030knetbsd*-gnu)
18031  version_type=linux
18032  need_lib_prefix=no
18033  need_version=no
18034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18035  soname_spec='${libname}${release}${shared_ext}$major'
18036  shlibpath_var=LD_LIBRARY_PATH
18037  shlibpath_overrides_runpath=no
18038  hardcode_into_libs=yes
18039  dynamic_linker='GNU ld.so'
18040  ;;
18041
18042netbsd*)
18043  version_type=sunos
18044  need_lib_prefix=no
18045  need_version=no
18046  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18047    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18048    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18049    dynamic_linker='NetBSD (a.out) ld.so'
18050  else
18051    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18052    soname_spec='${libname}${release}${shared_ext}$major'
18053    dynamic_linker='NetBSD ld.elf_so'
18054  fi
18055  shlibpath_var=LD_LIBRARY_PATH
18056  shlibpath_overrides_runpath=yes
18057  hardcode_into_libs=yes
18058  ;;
18059
18060newsos6)
18061  version_type=linux
18062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063  shlibpath_var=LD_LIBRARY_PATH
18064  shlibpath_overrides_runpath=yes
18065  ;;
18066
18067nto-qnx*)
18068  version_type=linux
18069  need_lib_prefix=no
18070  need_version=no
18071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072  soname_spec='${libname}${release}${shared_ext}$major'
18073  shlibpath_var=LD_LIBRARY_PATH
18074  shlibpath_overrides_runpath=yes
18075  ;;
18076
18077openbsd*)
18078  version_type=sunos
18079  sys_lib_dlsearch_path_spec="/usr/lib"
18080  need_lib_prefix=no
18081  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18082  case $host_os in
18083    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18084    *)                         need_version=no  ;;
18085  esac
18086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18087  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18088  shlibpath_var=LD_LIBRARY_PATH
18089  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18090    case $host_os in
18091      openbsd2.[89] | openbsd2.[89].*)
18092	shlibpath_overrides_runpath=no
18093	;;
18094      *)
18095	shlibpath_overrides_runpath=yes
18096	;;
18097      esac
18098  else
18099    shlibpath_overrides_runpath=yes
18100  fi
18101  ;;
18102
18103os2*)
18104  libname_spec='$name'
18105  shrext_cmds=".dll"
18106  need_lib_prefix=no
18107  library_names_spec='$libname${shared_ext} $libname.a'
18108  dynamic_linker='OS/2 ld.exe'
18109  shlibpath_var=LIBPATH
18110  ;;
18111
18112osf3* | osf4* | osf5*)
18113  version_type=osf
18114  need_lib_prefix=no
18115  need_version=no
18116  soname_spec='${libname}${release}${shared_ext}$major'
18117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18118  shlibpath_var=LD_LIBRARY_PATH
18119  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18120  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18121  ;;
18122
18123solaris*)
18124  version_type=linux
18125  need_lib_prefix=no
18126  need_version=no
18127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128  soname_spec='${libname}${release}${shared_ext}$major'
18129  shlibpath_var=LD_LIBRARY_PATH
18130  shlibpath_overrides_runpath=yes
18131  hardcode_into_libs=yes
18132  # ldd complains unless libraries are executable
18133  postinstall_cmds='chmod +x $lib'
18134  ;;
18135
18136sunos4*)
18137  version_type=sunos
18138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18139  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18140  shlibpath_var=LD_LIBRARY_PATH
18141  shlibpath_overrides_runpath=yes
18142  if test "$with_gnu_ld" = yes; then
18143    need_lib_prefix=no
18144  fi
18145  need_version=yes
18146  ;;
18147
18148sysv4 | sysv4.3*)
18149  version_type=linux
18150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151  soname_spec='${libname}${release}${shared_ext}$major'
18152  shlibpath_var=LD_LIBRARY_PATH
18153  case $host_vendor in
18154    sni)
18155      shlibpath_overrides_runpath=no
18156      need_lib_prefix=no
18157      export_dynamic_flag_spec='${wl}-Blargedynsym'
18158      runpath_var=LD_RUN_PATH
18159      ;;
18160    siemens)
18161      need_lib_prefix=no
18162      ;;
18163    motorola)
18164      need_lib_prefix=no
18165      need_version=no
18166      shlibpath_overrides_runpath=no
18167      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18168      ;;
18169  esac
18170  ;;
18171
18172sysv4*MP*)
18173  if test -d /usr/nec ;then
18174    version_type=linux
18175    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18176    soname_spec='$libname${shared_ext}.$major'
18177    shlibpath_var=LD_LIBRARY_PATH
18178  fi
18179  ;;
18180
18181sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18182  version_type=freebsd-elf
18183  need_lib_prefix=no
18184  need_version=no
18185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18186  soname_spec='${libname}${release}${shared_ext}$major'
18187  shlibpath_var=LD_LIBRARY_PATH
18188  hardcode_into_libs=yes
18189  if test "$with_gnu_ld" = yes; then
18190    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18191    shlibpath_overrides_runpath=no
18192  else
18193    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18194    shlibpath_overrides_runpath=yes
18195    case $host_os in
18196      sco3.2v5*)
18197        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18198	;;
18199    esac
18200  fi
18201  sys_lib_dlsearch_path_spec='/usr/lib'
18202  ;;
18203
18204uts4*)
18205  version_type=linux
18206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18207  soname_spec='${libname}${release}${shared_ext}$major'
18208  shlibpath_var=LD_LIBRARY_PATH
18209  ;;
18210
18211*)
18212  dynamic_linker=no
18213  ;;
18214esac
18215{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18216echo "${ECHO_T}$dynamic_linker" >&6; }
18217test "$dynamic_linker" = no && can_build_shared=no
18218
18219variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18220if test "$GCC" = yes; then
18221  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18222fi
18223
18224{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18225echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18226hardcode_action_GCJ=
18227if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18228   test -n "$runpath_var_GCJ" || \
18229   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18230
18231  # We can hardcode non-existant directories.
18232  if test "$hardcode_direct_GCJ" != no &&
18233     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18234     # have to relink, otherwise we might link with an installed library
18235     # when we should be linking with a yet-to-be-installed one
18236     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18237     test "$hardcode_minus_L_GCJ" != no; then
18238    # Linking always hardcodes the temporary library directory.
18239    hardcode_action_GCJ=relink
18240  else
18241    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18242    hardcode_action_GCJ=immediate
18243  fi
18244else
18245  # We cannot hardcode anything, or else we can only hardcode existing
18246  # directories.
18247  hardcode_action_GCJ=unsupported
18248fi
18249{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18250echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18251
18252if test "$hardcode_action_GCJ" = relink; then
18253  # Fast installation is not supported
18254  enable_fast_install=no
18255elif test "$shlibpath_overrides_runpath" = yes ||
18256     test "$enable_shared" = no; then
18257  # Fast installation is not necessary
18258  enable_fast_install=needless
18259fi
18260
18261
18262# The else clause should only fire when bootstrapping the
18263# libtool distribution, otherwise you forgot to ship ltmain.sh
18264# with your package, and you will get complaints that there are
18265# no rules to generate ltmain.sh.
18266if test -f "$ltmain"; then
18267  # See if we are running on zsh, and set the options which allow our commands through
18268  # without removal of \ escapes.
18269  if test -n "${ZSH_VERSION+set}" ; then
18270    setopt NO_GLOB_SUBST
18271  fi
18272  # Now quote all the things that may contain metacharacters while being
18273  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18274  # variables and quote the copies for generation of the libtool script.
18275  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18276    SED SHELL STRIP \
18277    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18278    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18279    deplibs_check_method reload_flag reload_cmds need_locks \
18280    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18281    lt_cv_sys_global_symbol_to_c_name_address \
18282    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18283    old_postinstall_cmds old_postuninstall_cmds \
18284    compiler_GCJ \
18285    CC_GCJ \
18286    LD_GCJ \
18287    lt_prog_compiler_wl_GCJ \
18288    lt_prog_compiler_pic_GCJ \
18289    lt_prog_compiler_static_GCJ \
18290    lt_prog_compiler_no_builtin_flag_GCJ \
18291    export_dynamic_flag_spec_GCJ \
18292    thread_safe_flag_spec_GCJ \
18293    whole_archive_flag_spec_GCJ \
18294    enable_shared_with_static_runtimes_GCJ \
18295    old_archive_cmds_GCJ \
18296    old_archive_from_new_cmds_GCJ \
18297    predep_objects_GCJ \
18298    postdep_objects_GCJ \
18299    predeps_GCJ \
18300    postdeps_GCJ \
18301    compiler_lib_search_path_GCJ \
18302    archive_cmds_GCJ \
18303    archive_expsym_cmds_GCJ \
18304    postinstall_cmds_GCJ \
18305    postuninstall_cmds_GCJ \
18306    old_archive_from_expsyms_cmds_GCJ \
18307    allow_undefined_flag_GCJ \
18308    no_undefined_flag_GCJ \
18309    export_symbols_cmds_GCJ \
18310    hardcode_libdir_flag_spec_GCJ \
18311    hardcode_libdir_flag_spec_ld_GCJ \
18312    hardcode_libdir_separator_GCJ \
18313    hardcode_automatic_GCJ \
18314    module_cmds_GCJ \
18315    module_expsym_cmds_GCJ \
18316    lt_cv_prog_compiler_c_o_GCJ \
18317    exclude_expsyms_GCJ \
18318    include_expsyms_GCJ; do
18319
18320    case $var in
18321    old_archive_cmds_GCJ | \
18322    old_archive_from_new_cmds_GCJ | \
18323    archive_cmds_GCJ | \
18324    archive_expsym_cmds_GCJ | \
18325    module_cmds_GCJ | \
18326    module_expsym_cmds_GCJ | \
18327    old_archive_from_expsyms_cmds_GCJ | \
18328    export_symbols_cmds_GCJ | \
18329    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18330    postinstall_cmds | postuninstall_cmds | \
18331    old_postinstall_cmds | old_postuninstall_cmds | \
18332    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18333      # Double-quote double-evaled strings.
18334      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18335      ;;
18336    *)
18337      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18338      ;;
18339    esac
18340  done
18341
18342  case $lt_echo in
18343  *'\$0 --fallback-echo"')
18344    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18345    ;;
18346  esac
18347
18348cfgfile="$ofile"
18349
18350  cat <<__EOF__ >> "$cfgfile"
18351# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18352
18353# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18354
18355# Shell to use when invoking shell scripts.
18356SHELL=$lt_SHELL
18357
18358# Whether or not to build shared libraries.
18359build_libtool_libs=$enable_shared
18360
18361# Whether or not to build static libraries.
18362build_old_libs=$enable_static
18363
18364# Whether or not to add -lc for building shared libraries.
18365build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18366
18367# Whether or not to disallow shared libs when runtime libs are static
18368allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18369
18370# Whether or not to optimize for fast installation.
18371fast_install=$enable_fast_install
18372
18373# The host system.
18374host_alias=$host_alias
18375host=$host
18376host_os=$host_os
18377
18378# The build system.
18379build_alias=$build_alias
18380build=$build
18381build_os=$build_os
18382
18383# An echo program that does not interpret backslashes.
18384echo=$lt_echo
18385
18386# The archiver.
18387AR=$lt_AR
18388AR_FLAGS=$lt_AR_FLAGS
18389
18390# A C compiler.
18391LTCC=$lt_LTCC
18392
18393# LTCC compiler flags.
18394LTCFLAGS=$lt_LTCFLAGS
18395
18396# A language-specific compiler.
18397CC=$lt_compiler_GCJ
18398
18399# Is the compiler the GNU C compiler?
18400with_gcc=$GCC_GCJ
18401
18402# An ERE matcher.
18403EGREP=$lt_EGREP
18404
18405# The linker used to build libraries.
18406LD=$lt_LD_GCJ
18407
18408# Whether we need hard or soft links.
18409LN_S=$lt_LN_S
18410
18411# A BSD-compatible nm program.
18412NM=$lt_NM
18413
18414# A symbol stripping program
18415STRIP=$lt_STRIP
18416
18417# Used to examine libraries when file_magic_cmd begins "file"
18418MAGIC_CMD=$MAGIC_CMD
18419
18420# Used on cygwin: DLL creation program.
18421DLLTOOL="$DLLTOOL"
18422
18423# Used on cygwin: object dumper.
18424OBJDUMP="$OBJDUMP"
18425
18426# Used on cygwin: assembler.
18427AS="$AS"
18428
18429# The name of the directory that contains temporary libtool files.
18430objdir=$objdir
18431
18432# How to create reloadable object files.
18433reload_flag=$lt_reload_flag
18434reload_cmds=$lt_reload_cmds
18435
18436# How to pass a linker flag through the compiler.
18437wl=$lt_lt_prog_compiler_wl_GCJ
18438
18439# Object file suffix (normally "o").
18440objext="$ac_objext"
18441
18442# Old archive suffix (normally "a").
18443libext="$libext"
18444
18445# Shared library suffix (normally ".so").
18446shrext_cmds='$shrext_cmds'
18447
18448# Executable file suffix (normally "").
18449exeext="$exeext"
18450
18451# Additional compiler flags for building library objects.
18452pic_flag=$lt_lt_prog_compiler_pic_GCJ
18453pic_mode=$pic_mode
18454
18455# What is the maximum length of a command?
18456max_cmd_len=$lt_cv_sys_max_cmd_len
18457
18458# Does compiler simultaneously support -c and -o options?
18459compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18460
18461# Must we lock files when doing compilation?
18462need_locks=$lt_need_locks
18463
18464# Do we need the lib prefix for modules?
18465need_lib_prefix=$need_lib_prefix
18466
18467# Do we need a version for libraries?
18468need_version=$need_version
18469
18470# Whether dlopen is supported.
18471dlopen_support=$enable_dlopen
18472
18473# Whether dlopen of programs is supported.
18474dlopen_self=$enable_dlopen_self
18475
18476# Whether dlopen of statically linked programs is supported.
18477dlopen_self_static=$enable_dlopen_self_static
18478
18479# Compiler flag to prevent dynamic linking.
18480link_static_flag=$lt_lt_prog_compiler_static_GCJ
18481
18482# Compiler flag to turn off builtin functions.
18483no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18484
18485# Compiler flag to allow reflexive dlopens.
18486export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18487
18488# Compiler flag to generate shared objects directly from archives.
18489whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18490
18491# Compiler flag to generate thread-safe objects.
18492thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18493
18494# Library versioning type.
18495version_type=$version_type
18496
18497# Format of library name prefix.
18498libname_spec=$lt_libname_spec
18499
18500# List of archive names.  First name is the real one, the rest are links.
18501# The last name is the one that the linker finds with -lNAME.
18502library_names_spec=$lt_library_names_spec
18503
18504# The coded name of the library, if different from the real name.
18505soname_spec=$lt_soname_spec
18506
18507# Commands used to build and install an old-style archive.
18508RANLIB=$lt_RANLIB
18509old_archive_cmds=$lt_old_archive_cmds_GCJ
18510old_postinstall_cmds=$lt_old_postinstall_cmds
18511old_postuninstall_cmds=$lt_old_postuninstall_cmds
18512
18513# Create an old-style archive from a shared archive.
18514old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18515
18516# Create a temporary old-style archive to link instead of a shared archive.
18517old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18518
18519# Commands used to build and install a shared archive.
18520archive_cmds=$lt_archive_cmds_GCJ
18521archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18522postinstall_cmds=$lt_postinstall_cmds
18523postuninstall_cmds=$lt_postuninstall_cmds
18524
18525# Commands used to build a loadable module (assumed same as above if empty)
18526module_cmds=$lt_module_cmds_GCJ
18527module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18528
18529# Commands to strip libraries.
18530old_striplib=$lt_old_striplib
18531striplib=$lt_striplib
18532
18533# Dependencies to place before the objects being linked to create a
18534# shared library.
18535predep_objects=$lt_predep_objects_GCJ
18536
18537# Dependencies to place after the objects being linked to create a
18538# shared library.
18539postdep_objects=$lt_postdep_objects_GCJ
18540
18541# Dependencies to place before the objects being linked to create a
18542# shared library.
18543predeps=$lt_predeps_GCJ
18544
18545# Dependencies to place after the objects being linked to create a
18546# shared library.
18547postdeps=$lt_postdeps_GCJ
18548
18549# The library search path used internally by the compiler when linking
18550# a shared library.
18551compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18552
18553# Method to check whether dependent libraries are shared objects.
18554deplibs_check_method=$lt_deplibs_check_method
18555
18556# Command to use when deplibs_check_method == file_magic.
18557file_magic_cmd=$lt_file_magic_cmd
18558
18559# Flag that allows shared libraries with undefined symbols to be built.
18560allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18561
18562# Flag that forces no undefined symbols.
18563no_undefined_flag=$lt_no_undefined_flag_GCJ
18564
18565# Commands used to finish a libtool library installation in a directory.
18566finish_cmds=$lt_finish_cmds
18567
18568# Same as above, but a single script fragment to be evaled but not shown.
18569finish_eval=$lt_finish_eval
18570
18571# Take the output of nm and produce a listing of raw symbols and C names.
18572global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18573
18574# Transform the output of nm in a proper C declaration
18575global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18576
18577# Transform the output of nm in a C name address pair
18578global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18579
18580# This is the shared library runtime path variable.
18581runpath_var=$runpath_var
18582
18583# This is the shared library path variable.
18584shlibpath_var=$shlibpath_var
18585
18586# Is shlibpath searched before the hard-coded library search path?
18587shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18588
18589# How to hardcode a shared library path into an executable.
18590hardcode_action=$hardcode_action_GCJ
18591
18592# Whether we should hardcode library paths into libraries.
18593hardcode_into_libs=$hardcode_into_libs
18594
18595# Flag to hardcode \$libdir into a binary during linking.
18596# This must work even if \$libdir does not exist.
18597hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18598
18599# If ld is used when linking, flag to hardcode \$libdir into
18600# a binary during linking. This must work even if \$libdir does
18601# not exist.
18602hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18603
18604# Whether we need a single -rpath flag with a separated argument.
18605hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18606
18607# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18608# resulting binary.
18609hardcode_direct=$hardcode_direct_GCJ
18610
18611# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18612# resulting binary.
18613hardcode_minus_L=$hardcode_minus_L_GCJ
18614
18615# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18616# the resulting binary.
18617hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18618
18619# Set to yes if building a shared library automatically hardcodes DIR into the library
18620# and all subsequent libraries and executables linked against it.
18621hardcode_automatic=$hardcode_automatic_GCJ
18622
18623# Variables whose values should be saved in libtool wrapper scripts and
18624# restored at relink time.
18625variables_saved_for_relink="$variables_saved_for_relink"
18626
18627# Whether libtool must link a program against all its dependency libraries.
18628link_all_deplibs=$link_all_deplibs_GCJ
18629
18630# Compile-time system search path for libraries
18631sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18632
18633# Run-time system search path for libraries
18634sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18635
18636# Fix the shell variable \$srcfile for the compiler.
18637fix_srcfile_path="$fix_srcfile_path_GCJ"
18638
18639# Set to yes if exported symbols are required.
18640always_export_symbols=$always_export_symbols_GCJ
18641
18642# The commands to list exported symbols.
18643export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18644
18645# The commands to extract the exported symbol list from a shared archive.
18646extract_expsyms_cmds=$lt_extract_expsyms_cmds
18647
18648# Symbols that should not be listed in the preloaded symbols.
18649exclude_expsyms=$lt_exclude_expsyms_GCJ
18650
18651# Symbols that must always be exported.
18652include_expsyms=$lt_include_expsyms_GCJ
18653
18654# ### END LIBTOOL TAG CONFIG: $tagname
18655
18656__EOF__
18657
18658
18659else
18660  # If there is no Makefile yet, we rely on a make rule to execute
18661  # `config.status --recheck' to rerun these tests and create the
18662  # libtool script then.
18663  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18664  if test -f "$ltmain_in"; then
18665    test -f Makefile && make "$ltmain"
18666  fi
18667fi
18668
18669
18670ac_ext=c
18671ac_cpp='$CPP $CPPFLAGS'
18672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674ac_compiler_gnu=$ac_cv_c_compiler_gnu
18675
18676CC="$lt_save_CC"
18677
18678	else
18679	  tagname=""
18680	fi
18681	;;
18682
18683      RC)
18684
18685
18686# Source file extension for RC test sources.
18687ac_ext=rc
18688
18689# Object file extension for compiled RC test sources.
18690objext=o
18691objext_RC=$objext
18692
18693# Code to be used in simple compile tests
18694lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18695
18696# Code to be used in simple link tests
18697lt_simple_link_test_code="$lt_simple_compile_test_code"
18698
18699# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18700
18701# If no C compiler was specified, use CC.
18702LTCC=${LTCC-"$CC"}
18703
18704# If no C compiler flags were specified, use CFLAGS.
18705LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18706
18707# Allow CC to be a program name with arguments.
18708compiler=$CC
18709
18710
18711# save warnings/boilerplate of simple test code
18712ac_outfile=conftest.$ac_objext
18713printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18714eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18715_lt_compiler_boilerplate=`cat conftest.err`
18716$rm conftest*
18717
18718ac_outfile=conftest.$ac_objext
18719printf "$lt_simple_link_test_code" >conftest.$ac_ext
18720eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18721_lt_linker_boilerplate=`cat conftest.err`
18722$rm conftest*
18723
18724
18725# Allow CC to be a program name with arguments.
18726lt_save_CC="$CC"
18727CC=${RC-"windres"}
18728compiler=$CC
18729compiler_RC=$CC
18730for cc_temp in $compiler""; do
18731  case $cc_temp in
18732    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18733    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18734    \-*) ;;
18735    *) break;;
18736  esac
18737done
18738cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18739
18740lt_cv_prog_compiler_c_o_RC=yes
18741
18742# The else clause should only fire when bootstrapping the
18743# libtool distribution, otherwise you forgot to ship ltmain.sh
18744# with your package, and you will get complaints that there are
18745# no rules to generate ltmain.sh.
18746if test -f "$ltmain"; then
18747  # See if we are running on zsh, and set the options which allow our commands through
18748  # without removal of \ escapes.
18749  if test -n "${ZSH_VERSION+set}" ; then
18750    setopt NO_GLOB_SUBST
18751  fi
18752  # Now quote all the things that may contain metacharacters while being
18753  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18754  # variables and quote the copies for generation of the libtool script.
18755  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18756    SED SHELL STRIP \
18757    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18758    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18759    deplibs_check_method reload_flag reload_cmds need_locks \
18760    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18761    lt_cv_sys_global_symbol_to_c_name_address \
18762    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18763    old_postinstall_cmds old_postuninstall_cmds \
18764    compiler_RC \
18765    CC_RC \
18766    LD_RC \
18767    lt_prog_compiler_wl_RC \
18768    lt_prog_compiler_pic_RC \
18769    lt_prog_compiler_static_RC \
18770    lt_prog_compiler_no_builtin_flag_RC \
18771    export_dynamic_flag_spec_RC \
18772    thread_safe_flag_spec_RC \
18773    whole_archive_flag_spec_RC \
18774    enable_shared_with_static_runtimes_RC \
18775    old_archive_cmds_RC \
18776    old_archive_from_new_cmds_RC \
18777    predep_objects_RC \
18778    postdep_objects_RC \
18779    predeps_RC \
18780    postdeps_RC \
18781    compiler_lib_search_path_RC \
18782    archive_cmds_RC \
18783    archive_expsym_cmds_RC \
18784    postinstall_cmds_RC \
18785    postuninstall_cmds_RC \
18786    old_archive_from_expsyms_cmds_RC \
18787    allow_undefined_flag_RC \
18788    no_undefined_flag_RC \
18789    export_symbols_cmds_RC \
18790    hardcode_libdir_flag_spec_RC \
18791    hardcode_libdir_flag_spec_ld_RC \
18792    hardcode_libdir_separator_RC \
18793    hardcode_automatic_RC \
18794    module_cmds_RC \
18795    module_expsym_cmds_RC \
18796    lt_cv_prog_compiler_c_o_RC \
18797    exclude_expsyms_RC \
18798    include_expsyms_RC; do
18799
18800    case $var in
18801    old_archive_cmds_RC | \
18802    old_archive_from_new_cmds_RC | \
18803    archive_cmds_RC | \
18804    archive_expsym_cmds_RC | \
18805    module_cmds_RC | \
18806    module_expsym_cmds_RC | \
18807    old_archive_from_expsyms_cmds_RC | \
18808    export_symbols_cmds_RC | \
18809    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18810    postinstall_cmds | postuninstall_cmds | \
18811    old_postinstall_cmds | old_postuninstall_cmds | \
18812    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18813      # Double-quote double-evaled strings.
18814      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18815      ;;
18816    *)
18817      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18818      ;;
18819    esac
18820  done
18821
18822  case $lt_echo in
18823  *'\$0 --fallback-echo"')
18824    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18825    ;;
18826  esac
18827
18828cfgfile="$ofile"
18829
18830  cat <<__EOF__ >> "$cfgfile"
18831# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18832
18833# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18834
18835# Shell to use when invoking shell scripts.
18836SHELL=$lt_SHELL
18837
18838# Whether or not to build shared libraries.
18839build_libtool_libs=$enable_shared
18840
18841# Whether or not to build static libraries.
18842build_old_libs=$enable_static
18843
18844# Whether or not to add -lc for building shared libraries.
18845build_libtool_need_lc=$archive_cmds_need_lc_RC
18846
18847# Whether or not to disallow shared libs when runtime libs are static
18848allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18849
18850# Whether or not to optimize for fast installation.
18851fast_install=$enable_fast_install
18852
18853# The host system.
18854host_alias=$host_alias
18855host=$host
18856host_os=$host_os
18857
18858# The build system.
18859build_alias=$build_alias
18860build=$build
18861build_os=$build_os
18862
18863# An echo program that does not interpret backslashes.
18864echo=$lt_echo
18865
18866# The archiver.
18867AR=$lt_AR
18868AR_FLAGS=$lt_AR_FLAGS
18869
18870# A C compiler.
18871LTCC=$lt_LTCC
18872
18873# LTCC compiler flags.
18874LTCFLAGS=$lt_LTCFLAGS
18875
18876# A language-specific compiler.
18877CC=$lt_compiler_RC
18878
18879# Is the compiler the GNU C compiler?
18880with_gcc=$GCC_RC
18881
18882# An ERE matcher.
18883EGREP=$lt_EGREP
18884
18885# The linker used to build libraries.
18886LD=$lt_LD_RC
18887
18888# Whether we need hard or soft links.
18889LN_S=$lt_LN_S
18890
18891# A BSD-compatible nm program.
18892NM=$lt_NM
18893
18894# A symbol stripping program
18895STRIP=$lt_STRIP
18896
18897# Used to examine libraries when file_magic_cmd begins "file"
18898MAGIC_CMD=$MAGIC_CMD
18899
18900# Used on cygwin: DLL creation program.
18901DLLTOOL="$DLLTOOL"
18902
18903# Used on cygwin: object dumper.
18904OBJDUMP="$OBJDUMP"
18905
18906# Used on cygwin: assembler.
18907AS="$AS"
18908
18909# The name of the directory that contains temporary libtool files.
18910objdir=$objdir
18911
18912# How to create reloadable object files.
18913reload_flag=$lt_reload_flag
18914reload_cmds=$lt_reload_cmds
18915
18916# How to pass a linker flag through the compiler.
18917wl=$lt_lt_prog_compiler_wl_RC
18918
18919# Object file suffix (normally "o").
18920objext="$ac_objext"
18921
18922# Old archive suffix (normally "a").
18923libext="$libext"
18924
18925# Shared library suffix (normally ".so").
18926shrext_cmds='$shrext_cmds'
18927
18928# Executable file suffix (normally "").
18929exeext="$exeext"
18930
18931# Additional compiler flags for building library objects.
18932pic_flag=$lt_lt_prog_compiler_pic_RC
18933pic_mode=$pic_mode
18934
18935# What is the maximum length of a command?
18936max_cmd_len=$lt_cv_sys_max_cmd_len
18937
18938# Does compiler simultaneously support -c and -o options?
18939compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18940
18941# Must we lock files when doing compilation?
18942need_locks=$lt_need_locks
18943
18944# Do we need the lib prefix for modules?
18945need_lib_prefix=$need_lib_prefix
18946
18947# Do we need a version for libraries?
18948need_version=$need_version
18949
18950# Whether dlopen is supported.
18951dlopen_support=$enable_dlopen
18952
18953# Whether dlopen of programs is supported.
18954dlopen_self=$enable_dlopen_self
18955
18956# Whether dlopen of statically linked programs is supported.
18957dlopen_self_static=$enable_dlopen_self_static
18958
18959# Compiler flag to prevent dynamic linking.
18960link_static_flag=$lt_lt_prog_compiler_static_RC
18961
18962# Compiler flag to turn off builtin functions.
18963no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18964
18965# Compiler flag to allow reflexive dlopens.
18966export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18967
18968# Compiler flag to generate shared objects directly from archives.
18969whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18970
18971# Compiler flag to generate thread-safe objects.
18972thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18973
18974# Library versioning type.
18975version_type=$version_type
18976
18977# Format of library name prefix.
18978libname_spec=$lt_libname_spec
18979
18980# List of archive names.  First name is the real one, the rest are links.
18981# The last name is the one that the linker finds with -lNAME.
18982library_names_spec=$lt_library_names_spec
18983
18984# The coded name of the library, if different from the real name.
18985soname_spec=$lt_soname_spec
18986
18987# Commands used to build and install an old-style archive.
18988RANLIB=$lt_RANLIB
18989old_archive_cmds=$lt_old_archive_cmds_RC
18990old_postinstall_cmds=$lt_old_postinstall_cmds
18991old_postuninstall_cmds=$lt_old_postuninstall_cmds
18992
18993# Create an old-style archive from a shared archive.
18994old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18995
18996# Create a temporary old-style archive to link instead of a shared archive.
18997old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18998
18999# Commands used to build and install a shared archive.
19000archive_cmds=$lt_archive_cmds_RC
19001archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19002postinstall_cmds=$lt_postinstall_cmds
19003postuninstall_cmds=$lt_postuninstall_cmds
19004
19005# Commands used to build a loadable module (assumed same as above if empty)
19006module_cmds=$lt_module_cmds_RC
19007module_expsym_cmds=$lt_module_expsym_cmds_RC
19008
19009# Commands to strip libraries.
19010old_striplib=$lt_old_striplib
19011striplib=$lt_striplib
19012
19013# Dependencies to place before the objects being linked to create a
19014# shared library.
19015predep_objects=$lt_predep_objects_RC
19016
19017# Dependencies to place after the objects being linked to create a
19018# shared library.
19019postdep_objects=$lt_postdep_objects_RC
19020
19021# Dependencies to place before the objects being linked to create a
19022# shared library.
19023predeps=$lt_predeps_RC
19024
19025# Dependencies to place after the objects being linked to create a
19026# shared library.
19027postdeps=$lt_postdeps_RC
19028
19029# The library search path used internally by the compiler when linking
19030# a shared library.
19031compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19032
19033# Method to check whether dependent libraries are shared objects.
19034deplibs_check_method=$lt_deplibs_check_method
19035
19036# Command to use when deplibs_check_method == file_magic.
19037file_magic_cmd=$lt_file_magic_cmd
19038
19039# Flag that allows shared libraries with undefined symbols to be built.
19040allow_undefined_flag=$lt_allow_undefined_flag_RC
19041
19042# Flag that forces no undefined symbols.
19043no_undefined_flag=$lt_no_undefined_flag_RC
19044
19045# Commands used to finish a libtool library installation in a directory.
19046finish_cmds=$lt_finish_cmds
19047
19048# Same as above, but a single script fragment to be evaled but not shown.
19049finish_eval=$lt_finish_eval
19050
19051# Take the output of nm and produce a listing of raw symbols and C names.
19052global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19053
19054# Transform the output of nm in a proper C declaration
19055global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19056
19057# Transform the output of nm in a C name address pair
19058global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19059
19060# This is the shared library runtime path variable.
19061runpath_var=$runpath_var
19062
19063# This is the shared library path variable.
19064shlibpath_var=$shlibpath_var
19065
19066# Is shlibpath searched before the hard-coded library search path?
19067shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19068
19069# How to hardcode a shared library path into an executable.
19070hardcode_action=$hardcode_action_RC
19071
19072# Whether we should hardcode library paths into libraries.
19073hardcode_into_libs=$hardcode_into_libs
19074
19075# Flag to hardcode \$libdir into a binary during linking.
19076# This must work even if \$libdir does not exist.
19077hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19078
19079# If ld is used when linking, flag to hardcode \$libdir into
19080# a binary during linking. This must work even if \$libdir does
19081# not exist.
19082hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19083
19084# Whether we need a single -rpath flag with a separated argument.
19085hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19086
19087# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19088# resulting binary.
19089hardcode_direct=$hardcode_direct_RC
19090
19091# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19092# resulting binary.
19093hardcode_minus_L=$hardcode_minus_L_RC
19094
19095# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19096# the resulting binary.
19097hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19098
19099# Set to yes if building a shared library automatically hardcodes DIR into the library
19100# and all subsequent libraries and executables linked against it.
19101hardcode_automatic=$hardcode_automatic_RC
19102
19103# Variables whose values should be saved in libtool wrapper scripts and
19104# restored at relink time.
19105variables_saved_for_relink="$variables_saved_for_relink"
19106
19107# Whether libtool must link a program against all its dependency libraries.
19108link_all_deplibs=$link_all_deplibs_RC
19109
19110# Compile-time system search path for libraries
19111sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19112
19113# Run-time system search path for libraries
19114sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19115
19116# Fix the shell variable \$srcfile for the compiler.
19117fix_srcfile_path="$fix_srcfile_path_RC"
19118
19119# Set to yes if exported symbols are required.
19120always_export_symbols=$always_export_symbols_RC
19121
19122# The commands to list exported symbols.
19123export_symbols_cmds=$lt_export_symbols_cmds_RC
19124
19125# The commands to extract the exported symbol list from a shared archive.
19126extract_expsyms_cmds=$lt_extract_expsyms_cmds
19127
19128# Symbols that should not be listed in the preloaded symbols.
19129exclude_expsyms=$lt_exclude_expsyms_RC
19130
19131# Symbols that must always be exported.
19132include_expsyms=$lt_include_expsyms_RC
19133
19134# ### END LIBTOOL TAG CONFIG: $tagname
19135
19136__EOF__
19137
19138
19139else
19140  # If there is no Makefile yet, we rely on a make rule to execute
19141  # `config.status --recheck' to rerun these tests and create the
19142  # libtool script then.
19143  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19144  if test -f "$ltmain_in"; then
19145    test -f Makefile && make "$ltmain"
19146  fi
19147fi
19148
19149
19150ac_ext=c
19151ac_cpp='$CPP $CPPFLAGS'
19152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19154ac_compiler_gnu=$ac_cv_c_compiler_gnu
19155
19156CC="$lt_save_CC"
19157
19158	;;
19159
19160      *)
19161	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19162echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19163   { (exit 1); exit 1; }; }
19164	;;
19165      esac
19166
19167      # Append the new tag name to the list of available tags.
19168      if test -n "$tagname" ; then
19169      available_tags="$available_tags $tagname"
19170    fi
19171    fi
19172  done
19173  IFS="$lt_save_ifs"
19174
19175  # Now substitute the updated list of available tags.
19176  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19177    mv "${ofile}T" "$ofile"
19178    chmod +x "$ofile"
19179  else
19180    rm -f "${ofile}T"
19181    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19182echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19183   { (exit 1); exit 1; }; }
19184  fi
19185fi
19186
19187
19188
19189# This can be used to rebuild libtool when needed
19190LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19191
19192# Always use our own libtool.
19193LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19194
19195# Prevent multiple expansion
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217# Checks for pkg-config packages
19218
19219
19220if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19221	if test -n "$ac_tool_prefix"; then
19222  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19223set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19226if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19227  echo $ECHO_N "(cached) $ECHO_C" >&6
19228else
19229  case $PKG_CONFIG in
19230  [\\/]* | ?:[\\/]*)
19231  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19232  ;;
19233  *)
19234  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19235for as_dir in $PATH
19236do
19237  IFS=$as_save_IFS
19238  test -z "$as_dir" && as_dir=.
19239  for ac_exec_ext in '' $ac_executable_extensions; do
19240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19241    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19243    break 2
19244  fi
19245done
19246done
19247IFS=$as_save_IFS
19248
19249  ;;
19250esac
19251fi
19252PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19253if test -n "$PKG_CONFIG"; then
19254  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19255echo "${ECHO_T}$PKG_CONFIG" >&6; }
19256else
19257  { echo "$as_me:$LINENO: result: no" >&5
19258echo "${ECHO_T}no" >&6; }
19259fi
19260
19261
19262fi
19263if test -z "$ac_cv_path_PKG_CONFIG"; then
19264  ac_pt_PKG_CONFIG=$PKG_CONFIG
19265  # Extract the first word of "pkg-config", so it can be a program name with args.
19266set dummy pkg-config; ac_word=$2
19267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19269if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19270  echo $ECHO_N "(cached) $ECHO_C" >&6
19271else
19272  case $ac_pt_PKG_CONFIG in
19273  [\\/]* | ?:[\\/]*)
19274  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19275  ;;
19276  *)
19277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19278for as_dir in $PATH
19279do
19280  IFS=$as_save_IFS
19281  test -z "$as_dir" && as_dir=.
19282  for ac_exec_ext in '' $ac_executable_extensions; do
19283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19284    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19286    break 2
19287  fi
19288done
19289done
19290IFS=$as_save_IFS
19291
19292  ;;
19293esac
19294fi
19295ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19296if test -n "$ac_pt_PKG_CONFIG"; then
19297  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19298echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19299else
19300  { echo "$as_me:$LINENO: result: no" >&5
19301echo "${ECHO_T}no" >&6; }
19302fi
19303
19304  if test "x$ac_pt_PKG_CONFIG" = x; then
19305    PKG_CONFIG=""
19306  else
19307    case $cross_compiling:$ac_tool_warned in
19308yes:)
19309{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19310whose name does not start with the host triplet.  If you think this
19311configuration is useful to you, please write to autoconf@gnu.org." >&5
19312echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19313whose name does not start with the host triplet.  If you think this
19314configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19315ac_tool_warned=yes ;;
19316esac
19317    PKG_CONFIG=$ac_pt_PKG_CONFIG
19318  fi
19319else
19320  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19321fi
19322
19323fi
19324if test -n "$PKG_CONFIG"; then
19325	_pkg_min_version=0.9.0
19326	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19327echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19328	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19329		{ echo "$as_me:$LINENO: result: yes" >&5
19330echo "${ECHO_T}yes" >&6; }
19331	else
19332		{ echo "$as_me:$LINENO: result: no" >&5
19333echo "${ECHO_T}no" >&6; }
19334		PKG_CONFIG=""
19335	fi
19336
19337fi
19338
19339pkg_failed=no
19340{ echo "$as_me:$LINENO: checking for XI" >&5
19341echo $ECHO_N "checking for XI... $ECHO_C" >&6; }
19342
19343if test -n "$PKG_CONFIG"; then
19344    if test -n "$XI_CFLAGS"; then
19345        pkg_cv_XI_CFLAGS="$XI_CFLAGS"
19346    else
19347        if test -n "$PKG_CONFIG" && \
19348    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext inputproto >= 1.4\"") >&5
19349  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext inputproto >= 1.4") 2>&5
19350  ac_status=$?
19351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352  (exit $ac_status); }; then
19353  pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xext inputproto >= 1.4" 2>/dev/null`
19354else
19355  pkg_failed=yes
19356fi
19357    fi
19358else
19359	pkg_failed=untried
19360fi
19361if test -n "$PKG_CONFIG"; then
19362    if test -n "$XI_LIBS"; then
19363        pkg_cv_XI_LIBS="$XI_LIBS"
19364    else
19365        if test -n "$PKG_CONFIG" && \
19366    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext inputproto >= 1.4\"") >&5
19367  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext inputproto >= 1.4") 2>&5
19368  ac_status=$?
19369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370  (exit $ac_status); }; then
19371  pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xext inputproto >= 1.4" 2>/dev/null`
19372else
19373  pkg_failed=yes
19374fi
19375    fi
19376else
19377	pkg_failed=untried
19378fi
19379
19380
19381
19382if test $pkg_failed = yes; then
19383
19384if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19385        _pkg_short_errors_supported=yes
19386else
19387        _pkg_short_errors_supported=no
19388fi
19389        if test $_pkg_short_errors_supported = yes; then
19390	        XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto x11 xextproto xext inputproto >= 1.4"`
19391        else
19392	        XI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto x11 xextproto xext inputproto >= 1.4"`
19393        fi
19394	# Put the nasty error message in config.log where it belongs
19395	echo "$XI_PKG_ERRORS" >&5
19396
19397	{ { echo "$as_me:$LINENO: error: Package requirements (xproto x11 xextproto xext inputproto >= 1.4) were not met:
19398
19399$XI_PKG_ERRORS
19400
19401Consider adjusting the PKG_CONFIG_PATH environment variable if you
19402installed software in a non-standard prefix.
19403
19404Alternatively, you may set the environment variables XI_CFLAGS
19405and XI_LIBS to avoid the need to call pkg-config.
19406See the pkg-config man page for more details.
19407" >&5
19408echo "$as_me: error: Package requirements (xproto x11 xextproto xext inputproto >= 1.4) were not met:
19409
19410$XI_PKG_ERRORS
19411
19412Consider adjusting the PKG_CONFIG_PATH environment variable if you
19413installed software in a non-standard prefix.
19414
19415Alternatively, you may set the environment variables XI_CFLAGS
19416and XI_LIBS to avoid the need to call pkg-config.
19417See the pkg-config man page for more details.
19418" >&2;}
19419   { (exit 1); exit 1; }; }
19420elif test $pkg_failed = untried; then
19421	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19422is in your PATH or set the PKG_CONFIG environment variable to the full
19423path to pkg-config.
19424
19425Alternatively, you may set the environment variables XI_CFLAGS
19426and XI_LIBS to avoid the need to call pkg-config.
19427See the pkg-config man page for more details.
19428
19429To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19430See \`config.log' for more details." >&5
19431echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19432is in your PATH or set the PKG_CONFIG environment variable to the full
19433path to pkg-config.
19434
19435Alternatively, you may set the environment variables XI_CFLAGS
19436and XI_LIBS to avoid the need to call pkg-config.
19437See the pkg-config man page for more details.
19438
19439To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19440See \`config.log' for more details." >&2;}
19441   { (exit 1); exit 1; }; }
19442else
19443	XI_CFLAGS=$pkg_cv_XI_CFLAGS
19444	XI_LIBS=$pkg_cv_XI_LIBS
19445        { echo "$as_me:$LINENO: result: yes" >&5
19446echo "${ECHO_T}yes" >&6; }
19447	:
19448fi
19449
19450
19451
19452
19453# Check whether --enable-malloc0returnsnull was given.
19454if test "${enable_malloc0returnsnull+set}" = set; then
19455  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19456else
19457  MALLOC_ZERO_RETURNS_NULL=auto
19458fi
19459
19460
19461{ echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
19462echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6; }
19463if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19464	if test "$cross_compiling" = yes; then
19465  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19466See \`config.log' for more details." >&5
19467echo "$as_me: error: cannot run test program while cross compiling
19468See \`config.log' for more details." >&2;}
19469   { (exit 1); exit 1; }; }
19470else
19471  cat >conftest.$ac_ext <<_ACEOF
19472
19473char *malloc();
19474char *realloc();
19475char *calloc();
19476main() {
19477    char *m0, *r0, *c0, *p;
19478    m0 = malloc(0);
19479    p = malloc(10);
19480    r0 = realloc(p,0);
19481    c0 = calloc(0);
19482    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
19483}
19484_ACEOF
19485rm -f conftest$ac_exeext
19486if { (ac_try="$ac_link"
19487case "(($ac_try" in
19488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489  *) ac_try_echo=$ac_try;;
19490esac
19491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492  (eval "$ac_link") 2>&5
19493  ac_status=$?
19494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19496  { (case "(($ac_try" in
19497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498  *) ac_try_echo=$ac_try;;
19499esac
19500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501  (eval "$ac_try") 2>&5
19502  ac_status=$?
19503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504  (exit $ac_status); }; }; then
19505  MALLOC_ZERO_RETURNS_NULL=yes
19506else
19507  echo "$as_me: program exited with status $ac_status" >&5
19508echo "$as_me: failed program was:" >&5
19509sed 's/^/| /' conftest.$ac_ext >&5
19510
19511( exit $ac_status )
19512MALLOC_ZERO_RETURNS_NULL=no
19513fi
19514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19515fi
19516
19517
19518fi
19519{ echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19520echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6; }
19521
19522if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19523	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19524	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19525	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19526else
19527	MALLOC_ZERO_CFLAGS=""
19528	XMALLOC_ZERO_CFLAGS=""
19529	XTMALLOC_ZERO_CFLAGS=""
19530fi
19531
19532
19533
19534
19535
19536
19537
19538
19539if test x$APP_MAN_SUFFIX = x    ; then
19540    APP_MAN_SUFFIX=1
19541fi
19542if test x$APP_MAN_DIR = x    ; then
19543    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19544fi
19545
19546if test x$LIB_MAN_SUFFIX = x    ; then
19547    LIB_MAN_SUFFIX=3
19548fi
19549if test x$LIB_MAN_DIR = x    ; then
19550    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19551fi
19552
19553if test x$FILE_MAN_SUFFIX = x    ; then
19554    case $host_os in
19555	solaris*)	FILE_MAN_SUFFIX=4  ;;
19556	*)		FILE_MAN_SUFFIX=5  ;;
19557    esac
19558fi
19559if test x$FILE_MAN_DIR = x    ; then
19560    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19561fi
19562
19563if test x$MISC_MAN_SUFFIX = x    ; then
19564    case $host_os in
19565	solaris*)	MISC_MAN_SUFFIX=5  ;;
19566	*)		MISC_MAN_SUFFIX=7  ;;
19567    esac
19568fi
19569if test x$MISC_MAN_DIR = x    ; then
19570    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19571fi
19572
19573if test x$DRIVER_MAN_SUFFIX = x    ; then
19574    case $host_os in
19575	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
19576	*)		DRIVER_MAN_SUFFIX=4  ;;
19577    esac
19578fi
19579if test x$DRIVER_MAN_DIR = x    ; then
19580    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19581fi
19582
19583if test x$ADMIN_MAN_SUFFIX = x    ; then
19584    case $host_os in
19585	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
19586	*)		ADMIN_MAN_SUFFIX=8  ;;
19587    esac
19588fi
19589if test x$ADMIN_MAN_DIR = x    ; then
19590    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19591fi
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609# Check whether --with-release-version was given.
19610if test "${with_release_version+set}" = set; then
19611  withval=$with_release_version; RELEASE_VERSION="$withval"
19612else
19613  RELEASE_VERSION=""
19614fi
19615
19616	if test "x$RELEASE_VERSION" != "x"; then
19617		PACKAGE="$PACKAGE-$RELEASE_VERSION"
19618		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
19619		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
19620echo "$as_me: Building with package name set to $PACKAGE" >&6;}
19621	fi
19622
19623cat >>confdefs.h <<_ACEOF
19624#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19625_ACEOF
19626
19627	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
19628	if test "x$PVM" = "x"; then
19629		PVM="0"
19630	fi
19631
19632cat >>confdefs.h <<_ACEOF
19633#define PACKAGE_VERSION_MINOR $PVM
19634_ACEOF
19635
19636	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
19637	if test "x$PVP" = "x"; then
19638		PVP="0"
19639	fi
19640
19641cat >>confdefs.h <<_ACEOF
19642#define PACKAGE_VERSION_PATCHLEVEL $PVP
19643_ACEOF
19644
19645
19646
19647ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xi.pc"
19648
19649cat >confcache <<\_ACEOF
19650# This file is a shell script that caches the results of configure
19651# tests run on this system so they can be shared between configure
19652# scripts and configure runs, see configure's option --config-cache.
19653# It is not useful on other systems.  If it contains results you don't
19654# want to keep, you may remove or edit it.
19655#
19656# config.status only pays attention to the cache file if you give it
19657# the --recheck option to rerun configure.
19658#
19659# `ac_cv_env_foo' variables (set or unset) will be overridden when
19660# loading this file, other *unset* `ac_cv_foo' will be assigned the
19661# following values.
19662
19663_ACEOF
19664
19665# The following way of writing the cache mishandles newlines in values,
19666# but we know of no workaround that is simple, portable, and efficient.
19667# So, we kill variables containing newlines.
19668# Ultrix sh set writes to stderr and can't be redirected directly,
19669# and sets the high bit in the cache file unless we assign to the vars.
19670(
19671  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19672    eval ac_val=\$$ac_var
19673    case $ac_val in #(
19674    *${as_nl}*)
19675      case $ac_var in #(
19676      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19678      esac
19679      case $ac_var in #(
19680      _ | IFS | as_nl) ;; #(
19681      *) $as_unset $ac_var ;;
19682      esac ;;
19683    esac
19684  done
19685
19686  (set) 2>&1 |
19687    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19688    *${as_nl}ac_space=\ *)
19689      # `set' does not quote correctly, so add quotes (double-quote
19690      # substitution turns \\\\ into \\, and sed turns \\ into \).
19691      sed -n \
19692	"s/'/'\\\\''/g;
19693	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19694      ;; #(
19695    *)
19696      # `set' quotes correctly as required by POSIX, so do not add quotes.
19697      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19698      ;;
19699    esac |
19700    sort
19701) |
19702  sed '
19703     /^ac_cv_env_/b end
19704     t clear
19705     :clear
19706     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19707     t end
19708     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19709     :end' >>confcache
19710if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19711  if test -w "$cache_file"; then
19712    test "x$cache_file" != "x/dev/null" &&
19713      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19714echo "$as_me: updating cache $cache_file" >&6;}
19715    cat confcache >$cache_file
19716  else
19717    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19718echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19719  fi
19720fi
19721rm -f confcache
19722
19723test "x$prefix" = xNONE && prefix=$ac_default_prefix
19724# Let make expand exec_prefix.
19725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19726
19727DEFS=-DHAVE_CONFIG_H
19728
19729ac_libobjs=
19730ac_ltlibobjs=
19731for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19732  # 1. Remove the extension, and $U if already installed.
19733  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19734  ac_i=`echo "$ac_i" | sed "$ac_script"`
19735  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19736  #    will be set to the directory where LIBOBJS objects are built.
19737  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19738  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19739done
19740LIBOBJS=$ac_libobjs
19741
19742LTLIBOBJS=$ac_ltlibobjs
19743
19744
19745if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19746  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19747Usually this means the macro was only invoked conditionally." >&5
19748echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19749Usually this means the macro was only invoked conditionally." >&2;}
19750   { (exit 1); exit 1; }; }
19751fi
19752if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19753  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19754Usually this means the macro was only invoked conditionally." >&5
19755echo "$as_me: error: conditional \"AMDEP\" was never defined.
19756Usually this means the macro was only invoked conditionally." >&2;}
19757   { (exit 1); exit 1; }; }
19758fi
19759if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19760  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19761Usually this means the macro was only invoked conditionally." >&5
19762echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19763Usually this means the macro was only invoked conditionally." >&2;}
19764   { (exit 1); exit 1; }; }
19765fi
19766if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19767  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19768Usually this means the macro was only invoked conditionally." >&5
19769echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19770Usually this means the macro was only invoked conditionally." >&2;}
19771   { (exit 1); exit 1; }; }
19772fi
19773
19774: ${CONFIG_STATUS=./config.status}
19775ac_clean_files_save=$ac_clean_files
19776ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19777{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19778echo "$as_me: creating $CONFIG_STATUS" >&6;}
19779cat >$CONFIG_STATUS <<_ACEOF
19780#! $SHELL
19781# Generated by $as_me.
19782# Run this file to recreate the current configuration.
19783# Compiler output produced by configure, useful for debugging
19784# configure, is in config.log if it exists.
19785
19786debug=false
19787ac_cs_recheck=false
19788ac_cs_silent=false
19789SHELL=\${CONFIG_SHELL-$SHELL}
19790_ACEOF
19791
19792cat >>$CONFIG_STATUS <<\_ACEOF
19793## --------------------- ##
19794## M4sh Initialization.  ##
19795## --------------------- ##
19796
19797# Be more Bourne compatible
19798DUALCASE=1; export DUALCASE # for MKS sh
19799if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19800  emulate sh
19801  NULLCMD=:
19802  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19803  # is contrary to our usage.  Disable this feature.
19804  alias -g '${1+"$@"}'='"$@"'
19805  setopt NO_GLOB_SUBST
19806else
19807  case `(set -o) 2>/dev/null` in
19808  *posix*) set -o posix ;;
19809esac
19810
19811fi
19812
19813
19814
19815
19816# PATH needs CR
19817# Avoid depending upon Character Ranges.
19818as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19819as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19820as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19821as_cr_digits='0123456789'
19822as_cr_alnum=$as_cr_Letters$as_cr_digits
19823
19824# The user is always right.
19825if test "${PATH_SEPARATOR+set}" != set; then
19826  echo "#! /bin/sh" >conf$$.sh
19827  echo  "exit 0"   >>conf$$.sh
19828  chmod +x conf$$.sh
19829  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19830    PATH_SEPARATOR=';'
19831  else
19832    PATH_SEPARATOR=:
19833  fi
19834  rm -f conf$$.sh
19835fi
19836
19837# Support unset when possible.
19838if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19839  as_unset=unset
19840else
19841  as_unset=false
19842fi
19843
19844
19845# IFS
19846# We need space, tab and new line, in precisely that order.  Quoting is
19847# there to prevent editors from complaining about space-tab.
19848# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19849# splitting by setting IFS to empty value.)
19850as_nl='
19851'
19852IFS=" ""	$as_nl"
19853
19854# Find who we are.  Look in the path if we contain no directory separator.
19855case $0 in
19856  *[\\/]* ) as_myself=$0 ;;
19857  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19858for as_dir in $PATH
19859do
19860  IFS=$as_save_IFS
19861  test -z "$as_dir" && as_dir=.
19862  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19863done
19864IFS=$as_save_IFS
19865
19866     ;;
19867esac
19868# We did not find ourselves, most probably we were run as `sh COMMAND'
19869# in which case we are not to be found in the path.
19870if test "x$as_myself" = x; then
19871  as_myself=$0
19872fi
19873if test ! -f "$as_myself"; then
19874  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19875  { (exit 1); exit 1; }
19876fi
19877
19878# Work around bugs in pre-3.0 UWIN ksh.
19879for as_var in ENV MAIL MAILPATH
19880do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19881done
19882PS1='$ '
19883PS2='> '
19884PS4='+ '
19885
19886# NLS nuisances.
19887for as_var in \
19888  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19889  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19890  LC_TELEPHONE LC_TIME
19891do
19892  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19893    eval $as_var=C; export $as_var
19894  else
19895    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19896  fi
19897done
19898
19899# Required to use basename.
19900if expr a : '\(a\)' >/dev/null 2>&1 &&
19901   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19902  as_expr=expr
19903else
19904  as_expr=false
19905fi
19906
19907if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19908  as_basename=basename
19909else
19910  as_basename=false
19911fi
19912
19913
19914# Name of the executable.
19915as_me=`$as_basename -- "$0" ||
19916$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19917	 X"$0" : 'X\(//\)$' \| \
19918	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19919echo X/"$0" |
19920    sed '/^.*\/\([^/][^/]*\)\/*$/{
19921	    s//\1/
19922	    q
19923	  }
19924	  /^X\/\(\/\/\)$/{
19925	    s//\1/
19926	    q
19927	  }
19928	  /^X\/\(\/\).*/{
19929	    s//\1/
19930	    q
19931	  }
19932	  s/.*/./; q'`
19933
19934# CDPATH.
19935$as_unset CDPATH
19936
19937
19938
19939  as_lineno_1=$LINENO
19940  as_lineno_2=$LINENO
19941  test "x$as_lineno_1" != "x$as_lineno_2" &&
19942  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19943
19944  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19945  # uniformly replaced by the line number.  The first 'sed' inserts a
19946  # line-number line after each line using $LINENO; the second 'sed'
19947  # does the real work.  The second script uses 'N' to pair each
19948  # line-number line with the line containing $LINENO, and appends
19949  # trailing '-' during substitution so that $LINENO is not a special
19950  # case at line end.
19951  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19952  # scripts with optimization help from Paolo Bonzini.  Blame Lee
19953  # E. McMahon (1931-1989) for sed's syntax.  :-)
19954  sed -n '
19955    p
19956    /[$]LINENO/=
19957  ' <$as_myself |
19958    sed '
19959      s/[$]LINENO.*/&-/
19960      t lineno
19961      b
19962      :lineno
19963      N
19964      :loop
19965      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19966      t loop
19967      s/-\n.*//
19968    ' >$as_me.lineno &&
19969  chmod +x "$as_me.lineno" ||
19970    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19971   { (exit 1); exit 1; }; }
19972
19973  # Don't try to exec as it changes $[0], causing all sort of problems
19974  # (the dirname of $[0] is not the place where we might find the
19975  # original and so on.  Autoconf is especially sensitive to this).
19976  . "./$as_me.lineno"
19977  # Exit status is that of the last command.
19978  exit
19979}
19980
19981
19982if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19983  as_dirname=dirname
19984else
19985  as_dirname=false
19986fi
19987
19988ECHO_C= ECHO_N= ECHO_T=
19989case `echo -n x` in
19990-n*)
19991  case `echo 'x\c'` in
19992  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19993  *)   ECHO_C='\c';;
19994  esac;;
19995*)
19996  ECHO_N='-n';;
19997esac
19998
19999if expr a : '\(a\)' >/dev/null 2>&1 &&
20000   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20001  as_expr=expr
20002else
20003  as_expr=false
20004fi
20005
20006rm -f conf$$ conf$$.exe conf$$.file
20007if test -d conf$$.dir; then
20008  rm -f conf$$.dir/conf$$.file
20009else
20010  rm -f conf$$.dir
20011  mkdir conf$$.dir
20012fi
20013echo >conf$$.file
20014if ln -s conf$$.file conf$$ 2>/dev/null; then
20015  as_ln_s='ln -s'
20016  # ... but there are two gotchas:
20017  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20018  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20019  # In both cases, we have to default to `cp -p'.
20020  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20021    as_ln_s='cp -p'
20022elif ln conf$$.file conf$$ 2>/dev/null; then
20023  as_ln_s=ln
20024else
20025  as_ln_s='cp -p'
20026fi
20027rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20028rmdir conf$$.dir 2>/dev/null
20029
20030if mkdir -p . 2>/dev/null; then
20031  as_mkdir_p=:
20032else
20033  test -d ./-p && rmdir ./-p
20034  as_mkdir_p=false
20035fi
20036
20037if test -x / >/dev/null 2>&1; then
20038  as_test_x='test -x'
20039else
20040  if ls -dL / >/dev/null 2>&1; then
20041    as_ls_L_option=L
20042  else
20043    as_ls_L_option=
20044  fi
20045  as_test_x='
20046    eval sh -c '\''
20047      if test -d "$1"; then
20048        test -d "$1/.";
20049      else
20050	case $1 in
20051        -*)set "./$1";;
20052	esac;
20053	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20054	???[sx]*):;;*)false;;esac;fi
20055    '\'' sh
20056  '
20057fi
20058as_executable_p=$as_test_x
20059
20060# Sed expression to map a string onto a valid CPP name.
20061as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20062
20063# Sed expression to map a string onto a valid variable name.
20064as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20065
20066
20067exec 6>&1
20068
20069# Save the log message, to keep $[0] and so on meaningful, and to
20070# report actual input values of CONFIG_FILES etc. instead of their
20071# values after options handling.
20072ac_log="
20073This file was extended by libXi $as_me 1.1.3, which was
20074generated by GNU Autoconf 2.61.  Invocation command line was
20075
20076  CONFIG_FILES    = $CONFIG_FILES
20077  CONFIG_HEADERS  = $CONFIG_HEADERS
20078  CONFIG_LINKS    = $CONFIG_LINKS
20079  CONFIG_COMMANDS = $CONFIG_COMMANDS
20080  $ $0 $@
20081
20082on `(hostname || uname -n) 2>/dev/null | sed 1q`
20083"
20084
20085_ACEOF
20086
20087cat >>$CONFIG_STATUS <<_ACEOF
20088# Files that config.status was made for.
20089config_files="$ac_config_files"
20090config_headers="$ac_config_headers"
20091config_commands="$ac_config_commands"
20092
20093_ACEOF
20094
20095cat >>$CONFIG_STATUS <<\_ACEOF
20096ac_cs_usage="\
20097\`$as_me' instantiates files from templates according to the
20098current configuration.
20099
20100Usage: $0 [OPTIONS] [FILE]...
20101
20102  -h, --help       print this help, then exit
20103  -V, --version    print version number and configuration settings, then exit
20104  -q, --quiet      do not print progress messages
20105  -d, --debug      don't remove temporary files
20106      --recheck    update $as_me by reconfiguring in the same conditions
20107  --file=FILE[:TEMPLATE]
20108		   instantiate the configuration file FILE
20109  --header=FILE[:TEMPLATE]
20110		   instantiate the configuration header FILE
20111
20112Configuration files:
20113$config_files
20114
20115Configuration headers:
20116$config_headers
20117
20118Configuration commands:
20119$config_commands
20120
20121Report bugs to <bug-autoconf@gnu.org>."
20122
20123_ACEOF
20124cat >>$CONFIG_STATUS <<_ACEOF
20125ac_cs_version="\\
20126libXi config.status 1.1.3
20127configured by $0, generated by GNU Autoconf 2.61,
20128  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20129
20130Copyright (C) 2006 Free Software Foundation, Inc.
20131This config.status script is free software; the Free Software Foundation
20132gives unlimited permission to copy, distribute and modify it."
20133
20134ac_pwd='$ac_pwd'
20135srcdir='$srcdir'
20136INSTALL='$INSTALL'
20137MKDIR_P='$MKDIR_P'
20138_ACEOF
20139
20140cat >>$CONFIG_STATUS <<\_ACEOF
20141# If no file are specified by the user, then we need to provide default
20142# value.  By we need to know if files were specified by the user.
20143ac_need_defaults=:
20144while test $# != 0
20145do
20146  case $1 in
20147  --*=*)
20148    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20149    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20150    ac_shift=:
20151    ;;
20152  *)
20153    ac_option=$1
20154    ac_optarg=$2
20155    ac_shift=shift
20156    ;;
20157  esac
20158
20159  case $ac_option in
20160  # Handling of the options.
20161  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20162    ac_cs_recheck=: ;;
20163  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20164    echo "$ac_cs_version"; exit ;;
20165  --debug | --debu | --deb | --de | --d | -d )
20166    debug=: ;;
20167  --file | --fil | --fi | --f )
20168    $ac_shift
20169    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20170    ac_need_defaults=false;;
20171  --header | --heade | --head | --hea )
20172    $ac_shift
20173    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20174    ac_need_defaults=false;;
20175  --he | --h)
20176    # Conflict between --help and --header
20177    { echo "$as_me: error: ambiguous option: $1
20178Try \`$0 --help' for more information." >&2
20179   { (exit 1); exit 1; }; };;
20180  --help | --hel | -h )
20181    echo "$ac_cs_usage"; exit ;;
20182  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20183  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20184    ac_cs_silent=: ;;
20185
20186  # This is an error.
20187  -*) { echo "$as_me: error: unrecognized option: $1
20188Try \`$0 --help' for more information." >&2
20189   { (exit 1); exit 1; }; } ;;
20190
20191  *) ac_config_targets="$ac_config_targets $1"
20192     ac_need_defaults=false ;;
20193
20194  esac
20195  shift
20196done
20197
20198ac_configure_extra_args=
20199
20200if $ac_cs_silent; then
20201  exec 6>/dev/null
20202  ac_configure_extra_args="$ac_configure_extra_args --silent"
20203fi
20204
20205_ACEOF
20206cat >>$CONFIG_STATUS <<_ACEOF
20207if \$ac_cs_recheck; then
20208  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20209  CONFIG_SHELL=$SHELL
20210  export CONFIG_SHELL
20211  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20212fi
20213
20214_ACEOF
20215cat >>$CONFIG_STATUS <<\_ACEOF
20216exec 5>>config.log
20217{
20218  echo
20219  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20220## Running $as_me. ##
20221_ASBOX
20222  echo "$ac_log"
20223} >&5
20224
20225_ACEOF
20226cat >>$CONFIG_STATUS <<_ACEOF
20227#
20228# INIT-COMMANDS
20229#
20230AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20231
20232_ACEOF
20233
20234cat >>$CONFIG_STATUS <<\_ACEOF
20235
20236# Handling of arguments.
20237for ac_config_target in $ac_config_targets
20238do
20239  case $ac_config_target in
20240    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20241    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20242    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20243    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20244    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20245    "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
20246
20247  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20248echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20249   { (exit 1); exit 1; }; };;
20250  esac
20251done
20252
20253
20254# If the user did not use the arguments to specify the items to instantiate,
20255# then the envvar interface is used.  Set only those that are not.
20256# We use the long form for the default assignment because of an extremely
20257# bizarre bug on SunOS 4.1.3.
20258if $ac_need_defaults; then
20259  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20260  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20261  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20262fi
20263
20264# Have a temporary directory for convenience.  Make it in the build tree
20265# simply because there is no reason against having it here, and in addition,
20266# creating and moving files from /tmp can sometimes cause problems.
20267# Hook for its removal unless debugging.
20268# Note that there is a small window in which the directory will not be cleaned:
20269# after its creation but before its name has been assigned to `$tmp'.
20270$debug ||
20271{
20272  tmp=
20273  trap 'exit_status=$?
20274  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20275' 0
20276  trap '{ (exit 1); exit 1; }' 1 2 13 15
20277}
20278# Create a (secure) tmp directory for tmp files.
20279
20280{
20281  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20282  test -n "$tmp" && test -d "$tmp"
20283}  ||
20284{
20285  tmp=./conf$$-$RANDOM
20286  (umask 077 && mkdir "$tmp")
20287} ||
20288{
20289   echo "$me: cannot create a temporary directory in ." >&2
20290   { (exit 1); exit 1; }
20291}
20292
20293#
20294# Set up the sed scripts for CONFIG_FILES section.
20295#
20296
20297# No need to generate the scripts if there are no CONFIG_FILES.
20298# This happens for instance when ./config.status config.h
20299if test -n "$CONFIG_FILES"; then
20300
20301_ACEOF
20302
20303
20304
20305ac_delim='%!_!# '
20306for ac_last_try in false false false false false :; do
20307  cat >conf$$subs.sed <<_ACEOF
20308SHELL!$SHELL$ac_delim
20309PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20310PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20311PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20312PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20313PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20314PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20315exec_prefix!$exec_prefix$ac_delim
20316prefix!$prefix$ac_delim
20317program_transform_name!$program_transform_name$ac_delim
20318bindir!$bindir$ac_delim
20319sbindir!$sbindir$ac_delim
20320libexecdir!$libexecdir$ac_delim
20321datarootdir!$datarootdir$ac_delim
20322datadir!$datadir$ac_delim
20323sysconfdir!$sysconfdir$ac_delim
20324sharedstatedir!$sharedstatedir$ac_delim
20325localstatedir!$localstatedir$ac_delim
20326includedir!$includedir$ac_delim
20327oldincludedir!$oldincludedir$ac_delim
20328docdir!$docdir$ac_delim
20329infodir!$infodir$ac_delim
20330htmldir!$htmldir$ac_delim
20331dvidir!$dvidir$ac_delim
20332pdfdir!$pdfdir$ac_delim
20333psdir!$psdir$ac_delim
20334libdir!$libdir$ac_delim
20335localedir!$localedir$ac_delim
20336mandir!$mandir$ac_delim
20337DEFS!$DEFS$ac_delim
20338ECHO_C!$ECHO_C$ac_delim
20339ECHO_N!$ECHO_N$ac_delim
20340ECHO_T!$ECHO_T$ac_delim
20341LIBS!$LIBS$ac_delim
20342build_alias!$build_alias$ac_delim
20343host_alias!$host_alias$ac_delim
20344target_alias!$target_alias$ac_delim
20345INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20346INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20347INSTALL_DATA!$INSTALL_DATA$ac_delim
20348am__isrc!$am__isrc$ac_delim
20349CYGPATH_W!$CYGPATH_W$ac_delim
20350PACKAGE!$PACKAGE$ac_delim
20351VERSION!$VERSION$ac_delim
20352ACLOCAL!$ACLOCAL$ac_delim
20353AUTOCONF!$AUTOCONF$ac_delim
20354AUTOMAKE!$AUTOMAKE$ac_delim
20355AUTOHEADER!$AUTOHEADER$ac_delim
20356MAKEINFO!$MAKEINFO$ac_delim
20357install_sh!$install_sh$ac_delim
20358STRIP!$STRIP$ac_delim
20359INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20360mkdir_p!$mkdir_p$ac_delim
20361AWK!$AWK$ac_delim
20362SET_MAKE!$SET_MAKE$ac_delim
20363am__leading_dot!$am__leading_dot$ac_delim
20364AMTAR!$AMTAR$ac_delim
20365am__tar!$am__tar$ac_delim
20366am__untar!$am__untar$ac_delim
20367MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
20368MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
20369MAINT!$MAINT$ac_delim
20370CC!$CC$ac_delim
20371CFLAGS!$CFLAGS$ac_delim
20372LDFLAGS!$LDFLAGS$ac_delim
20373CPPFLAGS!$CPPFLAGS$ac_delim
20374ac_ct_CC!$ac_ct_CC$ac_delim
20375EXEEXT!$EXEEXT$ac_delim
20376OBJEXT!$OBJEXT$ac_delim
20377DEPDIR!$DEPDIR$ac_delim
20378am__include!$am__include$ac_delim
20379am__quote!$am__quote$ac_delim
20380AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20381AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20382AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20383CCDEPMODE!$CCDEPMODE$ac_delim
20384am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20385am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20386build!$build$ac_delim
20387build_cpu!$build_cpu$ac_delim
20388build_vendor!$build_vendor$ac_delim
20389build_os!$build_os$ac_delim
20390host!$host$ac_delim
20391host_cpu!$host_cpu$ac_delim
20392host_vendor!$host_vendor$ac_delim
20393host_os!$host_os$ac_delim
20394GREP!$GREP$ac_delim
20395EGREP!$EGREP$ac_delim
20396LN_S!$LN_S$ac_delim
20397ECHO!$ECHO$ac_delim
20398AR!$AR$ac_delim
20399RANLIB!$RANLIB$ac_delim
20400CPP!$CPP$ac_delim
20401CXX!$CXX$ac_delim
20402CXXFLAGS!$CXXFLAGS$ac_delim
20403ac_ct_CXX!$ac_ct_CXX$ac_delim
20404CXXDEPMODE!$CXXDEPMODE$ac_delim
20405_ACEOF
20406
20407  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20408    break
20409  elif $ac_last_try; then
20410    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20411echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20412   { (exit 1); exit 1; }; }
20413  else
20414    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20415  fi
20416done
20417
20418ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20419if test -n "$ac_eof"; then
20420  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20421  ac_eof=`expr $ac_eof + 1`
20422fi
20423
20424cat >>$CONFIG_STATUS <<_ACEOF
20425cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20426/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20427_ACEOF
20428sed '
20429s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20430s/^/s,@/; s/!/@,|#_!!_#|/
20431:n
20432t n
20433s/'"$ac_delim"'$/,g/; t
20434s/$/\\/; p
20435N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20436' >>$CONFIG_STATUS <conf$$subs.sed
20437rm -f conf$$subs.sed
20438cat >>$CONFIG_STATUS <<_ACEOF
20439CEOF$ac_eof
20440_ACEOF
20441
20442
20443ac_delim='%!_!# '
20444for ac_last_try in false false false false false :; do
20445  cat >conf$$subs.sed <<_ACEOF
20446am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20447am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20448CXXCPP!$CXXCPP$ac_delim
20449F77!$F77$ac_delim
20450FFLAGS!$FFLAGS$ac_delim
20451ac_ct_F77!$ac_ct_F77$ac_delim
20452LIBTOOL!$LIBTOOL$ac_delim
20453PKG_CONFIG!$PKG_CONFIG$ac_delim
20454XI_CFLAGS!$XI_CFLAGS$ac_delim
20455XI_LIBS!$XI_LIBS$ac_delim
20456MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim
20457XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim
20458XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim
20459APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
20460LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
20461FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
20462MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
20463DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
20464ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
20465APP_MAN_DIR!$APP_MAN_DIR$ac_delim
20466LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
20467FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
20468MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
20469DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
20470ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
20471LIBOBJS!$LIBOBJS$ac_delim
20472LTLIBOBJS!$LTLIBOBJS$ac_delim
20473_ACEOF
20474
20475  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
20476    break
20477  elif $ac_last_try; then
20478    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20479echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20480   { (exit 1); exit 1; }; }
20481  else
20482    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20483  fi
20484done
20485
20486ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20487if test -n "$ac_eof"; then
20488  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20489  ac_eof=`expr $ac_eof + 1`
20490fi
20491
20492cat >>$CONFIG_STATUS <<_ACEOF
20493cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20494/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20495_ACEOF
20496sed '
20497s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20498s/^/s,@/; s/!/@,|#_!!_#|/
20499:n
20500t n
20501s/'"$ac_delim"'$/,g/; t
20502s/$/\\/; p
20503N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20504' >>$CONFIG_STATUS <conf$$subs.sed
20505rm -f conf$$subs.sed
20506cat >>$CONFIG_STATUS <<_ACEOF
20507:end
20508s/|#_!!_#|//g
20509CEOF$ac_eof
20510_ACEOF
20511
20512
20513# VPATH may cause trouble with some makes, so we remove $(srcdir),
20514# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20515# trailing colons and then remove the whole line if VPATH becomes empty
20516# (actually we leave an empty line to preserve line numbers).
20517if test "x$srcdir" = x.; then
20518  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20519s/:*\$(srcdir):*/:/
20520s/:*\${srcdir}:*/:/
20521s/:*@srcdir@:*/:/
20522s/^\([^=]*=[	 ]*\):*/\1/
20523s/:*$//
20524s/^[^=]*=[	 ]*$//
20525}'
20526fi
20527
20528cat >>$CONFIG_STATUS <<\_ACEOF
20529fi # test -n "$CONFIG_FILES"
20530
20531
20532for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20533do
20534  case $ac_tag in
20535  :[FHLC]) ac_mode=$ac_tag; continue;;
20536  esac
20537  case $ac_mode$ac_tag in
20538  :[FHL]*:*);;
20539  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20540echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20541   { (exit 1); exit 1; }; };;
20542  :[FH]-) ac_tag=-:-;;
20543  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20544  esac
20545  ac_save_IFS=$IFS
20546  IFS=:
20547  set x $ac_tag
20548  IFS=$ac_save_IFS
20549  shift
20550  ac_file=$1
20551  shift
20552
20553  case $ac_mode in
20554  :L) ac_source=$1;;
20555  :[FH])
20556    ac_file_inputs=
20557    for ac_f
20558    do
20559      case $ac_f in
20560      -) ac_f="$tmp/stdin";;
20561      *) # Look for the file first in the build tree, then in the source tree
20562	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20563	 # because $ac_f cannot contain `:'.
20564	 test -f "$ac_f" ||
20565	   case $ac_f in
20566	   [\\/$]*) false;;
20567	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20568	   esac ||
20569	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20570echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20571   { (exit 1); exit 1; }; };;
20572      esac
20573      ac_file_inputs="$ac_file_inputs $ac_f"
20574    done
20575
20576    # Let's still pretend it is `configure' which instantiates (i.e., don't
20577    # use $as_me), people would be surprised to read:
20578    #    /* config.h.  Generated by config.status.  */
20579    configure_input="Generated from "`IFS=:
20580	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20581    if test x"$ac_file" != x-; then
20582      configure_input="$ac_file.  $configure_input"
20583      { echo "$as_me:$LINENO: creating $ac_file" >&5
20584echo "$as_me: creating $ac_file" >&6;}
20585    fi
20586
20587    case $ac_tag in
20588    *:-:* | *:-) cat >"$tmp/stdin";;
20589    esac
20590    ;;
20591  esac
20592
20593  ac_dir=`$as_dirname -- "$ac_file" ||
20594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20595	 X"$ac_file" : 'X\(//\)[^/]' \| \
20596	 X"$ac_file" : 'X\(//\)$' \| \
20597	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20598echo X"$ac_file" |
20599    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20600	    s//\1/
20601	    q
20602	  }
20603	  /^X\(\/\/\)[^/].*/{
20604	    s//\1/
20605	    q
20606	  }
20607	  /^X\(\/\/\)$/{
20608	    s//\1/
20609	    q
20610	  }
20611	  /^X\(\/\).*/{
20612	    s//\1/
20613	    q
20614	  }
20615	  s/.*/./; q'`
20616  { as_dir="$ac_dir"
20617  case $as_dir in #(
20618  -*) as_dir=./$as_dir;;
20619  esac
20620  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20621    as_dirs=
20622    while :; do
20623      case $as_dir in #(
20624      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20625      *) as_qdir=$as_dir;;
20626      esac
20627      as_dirs="'$as_qdir' $as_dirs"
20628      as_dir=`$as_dirname -- "$as_dir" ||
20629$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20630	 X"$as_dir" : 'X\(//\)[^/]' \| \
20631	 X"$as_dir" : 'X\(//\)$' \| \
20632	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20633echo X"$as_dir" |
20634    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20635	    s//\1/
20636	    q
20637	  }
20638	  /^X\(\/\/\)[^/].*/{
20639	    s//\1/
20640	    q
20641	  }
20642	  /^X\(\/\/\)$/{
20643	    s//\1/
20644	    q
20645	  }
20646	  /^X\(\/\).*/{
20647	    s//\1/
20648	    q
20649	  }
20650	  s/.*/./; q'`
20651      test -d "$as_dir" && break
20652    done
20653    test -z "$as_dirs" || eval "mkdir $as_dirs"
20654  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20655echo "$as_me: error: cannot create directory $as_dir" >&2;}
20656   { (exit 1); exit 1; }; }; }
20657  ac_builddir=.
20658
20659case "$ac_dir" in
20660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20661*)
20662  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20663  # A ".." for each directory in $ac_dir_suffix.
20664  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20665  case $ac_top_builddir_sub in
20666  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20667  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20668  esac ;;
20669esac
20670ac_abs_top_builddir=$ac_pwd
20671ac_abs_builddir=$ac_pwd$ac_dir_suffix
20672# for backward compatibility:
20673ac_top_builddir=$ac_top_build_prefix
20674
20675case $srcdir in
20676  .)  # We are building in place.
20677    ac_srcdir=.
20678    ac_top_srcdir=$ac_top_builddir_sub
20679    ac_abs_top_srcdir=$ac_pwd ;;
20680  [\\/]* | ?:[\\/]* )  # Absolute name.
20681    ac_srcdir=$srcdir$ac_dir_suffix;
20682    ac_top_srcdir=$srcdir
20683    ac_abs_top_srcdir=$srcdir ;;
20684  *) # Relative name.
20685    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20686    ac_top_srcdir=$ac_top_build_prefix$srcdir
20687    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20688esac
20689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20690
20691
20692  case $ac_mode in
20693  :F)
20694  #
20695  # CONFIG_FILE
20696  #
20697
20698  case $INSTALL in
20699  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20700  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20701  esac
20702  ac_MKDIR_P=$MKDIR_P
20703  case $MKDIR_P in
20704  [\\/$]* | ?:[\\/]* ) ;;
20705  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20706  esac
20707_ACEOF
20708
20709cat >>$CONFIG_STATUS <<\_ACEOF
20710# If the template does not know about datarootdir, expand it.
20711# FIXME: This hack should be removed a few years after 2.60.
20712ac_datarootdir_hack=; ac_datarootdir_seen=
20713
20714case `sed -n '/datarootdir/ {
20715  p
20716  q
20717}
20718/@datadir@/p
20719/@docdir@/p
20720/@infodir@/p
20721/@localedir@/p
20722/@mandir@/p
20723' $ac_file_inputs` in
20724*datarootdir*) ac_datarootdir_seen=yes;;
20725*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20726  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20727echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20728_ACEOF
20729cat >>$CONFIG_STATUS <<_ACEOF
20730  ac_datarootdir_hack='
20731  s&@datadir@&$datadir&g
20732  s&@docdir@&$docdir&g
20733  s&@infodir@&$infodir&g
20734  s&@localedir@&$localedir&g
20735  s&@mandir@&$mandir&g
20736    s&\\\${datarootdir}&$datarootdir&g' ;;
20737esac
20738_ACEOF
20739
20740# Neutralize VPATH when `$srcdir' = `.'.
20741# Shell code in configure.ac might set extrasub.
20742# FIXME: do we really want to maintain this feature?
20743cat >>$CONFIG_STATUS <<_ACEOF
20744  sed "$ac_vpsub
20745$extrasub
20746_ACEOF
20747cat >>$CONFIG_STATUS <<\_ACEOF
20748:t
20749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20750s&@configure_input@&$configure_input&;t t
20751s&@top_builddir@&$ac_top_builddir_sub&;t t
20752s&@srcdir@&$ac_srcdir&;t t
20753s&@abs_srcdir@&$ac_abs_srcdir&;t t
20754s&@top_srcdir@&$ac_top_srcdir&;t t
20755s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20756s&@builddir@&$ac_builddir&;t t
20757s&@abs_builddir@&$ac_abs_builddir&;t t
20758s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20759s&@INSTALL@&$ac_INSTALL&;t t
20760s&@MKDIR_P@&$ac_MKDIR_P&;t t
20761$ac_datarootdir_hack
20762" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20763
20764test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20765  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20766  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20767  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20768which seems to be undefined.  Please make sure it is defined." >&5
20769echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20770which seems to be undefined.  Please make sure it is defined." >&2;}
20771
20772  rm -f "$tmp/stdin"
20773  case $ac_file in
20774  -) cat "$tmp/out"; rm -f "$tmp/out";;
20775  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20776  esac
20777 ;;
20778  :H)
20779  #
20780  # CONFIG_HEADER
20781  #
20782_ACEOF
20783
20784# Transform confdefs.h into a sed script `conftest.defines', that
20785# substitutes the proper values into config.h.in to produce config.h.
20786rm -f conftest.defines conftest.tail
20787# First, append a space to every undef/define line, to ease matching.
20788echo 's/$/ /' >conftest.defines
20789# Then, protect against being on the right side of a sed subst, or in
20790# an unquoted here document, in config.status.  If some macros were
20791# called several times there might be several #defines for the same
20792# symbol, which is useless.  But do not sort them, since the last
20793# AC_DEFINE must be honored.
20794ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20795# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20796# NAME is the cpp macro being defined, VALUE is the value it is being given.
20797# PARAMS is the parameter list in the macro definition--in most cases, it's
20798# just an empty string.
20799ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
20800ac_dB='\\)[	 (].*,\\1define\\2'
20801ac_dC=' '
20802ac_dD=' ,'
20803
20804uniq confdefs.h |
20805  sed -n '
20806	t rset
20807	:rset
20808	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
20809	t ok
20810	d
20811	:ok
20812	s/[\\&,]/\\&/g
20813	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20814	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20815  ' >>conftest.defines
20816
20817# Remove the space that was appended to ease matching.
20818# Then replace #undef with comments.  This is necessary, for
20819# example, in the case of _POSIX_SOURCE, which is predefined and required
20820# on some systems where configure will not decide to define it.
20821# (The regexp can be short, since the line contains either #define or #undef.)
20822echo 's/ $//
20823s,^[	 #]*u.*,/* & */,' >>conftest.defines
20824
20825# Break up conftest.defines:
20826ac_max_sed_lines=50
20827
20828# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20829# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20830# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20831# et cetera.
20832ac_in='$ac_file_inputs'
20833ac_out='"$tmp/out1"'
20834ac_nxt='"$tmp/out2"'
20835
20836while :
20837do
20838  # Write a here document:
20839    cat >>$CONFIG_STATUS <<_ACEOF
20840    # First, check the format of the line:
20841    cat >"\$tmp/defines.sed" <<\\CEOF
20842/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
20843/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
20844b
20845:def
20846_ACEOF
20847  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20848  echo 'CEOF
20849    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20850  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20851  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20852  grep . conftest.tail >/dev/null || break
20853  rm -f conftest.defines
20854  mv conftest.tail conftest.defines
20855done
20856rm -f conftest.defines conftest.tail
20857
20858echo "ac_result=$ac_in" >>$CONFIG_STATUS
20859cat >>$CONFIG_STATUS <<\_ACEOF
20860  if test x"$ac_file" != x-; then
20861    echo "/* $configure_input  */" >"$tmp/config.h"
20862    cat "$ac_result" >>"$tmp/config.h"
20863    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20864      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20865echo "$as_me: $ac_file is unchanged" >&6;}
20866    else
20867      rm -f $ac_file
20868      mv "$tmp/config.h" $ac_file
20869    fi
20870  else
20871    echo "/* $configure_input  */"
20872    cat "$ac_result"
20873  fi
20874  rm -f "$tmp/out12"
20875# Compute $ac_file's index in $config_headers.
20876_am_stamp_count=1
20877for _am_header in $config_headers :; do
20878  case $_am_header in
20879    $ac_file | $ac_file:* )
20880      break ;;
20881    * )
20882      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20883  esac
20884done
20885echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20886$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20887	 X$ac_file : 'X\(//\)[^/]' \| \
20888	 X$ac_file : 'X\(//\)$' \| \
20889	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
20890echo X$ac_file |
20891    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20892	    s//\1/
20893	    q
20894	  }
20895	  /^X\(\/\/\)[^/].*/{
20896	    s//\1/
20897	    q
20898	  }
20899	  /^X\(\/\/\)$/{
20900	    s//\1/
20901	    q
20902	  }
20903	  /^X\(\/\).*/{
20904	    s//\1/
20905	    q
20906	  }
20907	  s/.*/./; q'`/stamp-h$_am_stamp_count
20908 ;;
20909
20910  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20911echo "$as_me: executing $ac_file commands" >&6;}
20912 ;;
20913  esac
20914
20915
20916  case $ac_file$ac_mode in
20917    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20918  # Strip MF so we end up with the name of the file.
20919  mf=`echo "$mf" | sed -e 's/:.*$//'`
20920  # Check whether this is an Automake generated Makefile or not.
20921  # We used to match only the files named `Makefile.in', but
20922  # some people rename them; so instead we look at the file content.
20923  # Grep'ing the first line is not enough: some people post-process
20924  # each Makefile.in and add a new line on top of each file to say so.
20925  # Grep'ing the whole file is not good either: AIX grep has a line
20926  # limit of 2048, but all sed's we know have understand at least 4000.
20927  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
20928    dirpart=`$as_dirname -- "$mf" ||
20929$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20930	 X"$mf" : 'X\(//\)[^/]' \| \
20931	 X"$mf" : 'X\(//\)$' \| \
20932	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20933echo X"$mf" |
20934    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20935	    s//\1/
20936	    q
20937	  }
20938	  /^X\(\/\/\)[^/].*/{
20939	    s//\1/
20940	    q
20941	  }
20942	  /^X\(\/\/\)$/{
20943	    s//\1/
20944	    q
20945	  }
20946	  /^X\(\/\).*/{
20947	    s//\1/
20948	    q
20949	  }
20950	  s/.*/./; q'`
20951  else
20952    continue
20953  fi
20954  # Extract the definition of DEPDIR, am__include, and am__quote
20955  # from the Makefile without running `make'.
20956  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20957  test -z "$DEPDIR" && continue
20958  am__include=`sed -n 's/^am__include = //p' < "$mf"`
20959  test -z "am__include" && continue
20960  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20961  # When using ansi2knr, U may be empty or an underscore; expand it
20962  U=`sed -n 's/^U = //p' < "$mf"`
20963  # Find all dependency output files, they are included files with
20964  # $(DEPDIR) in their names.  We invoke sed twice because it is the
20965  # simplest approach to changing $(DEPDIR) to its actual value in the
20966  # expansion.
20967  for file in `sed -n "
20968    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20969       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20970    # Make sure the directory exists.
20971    test -f "$dirpart/$file" && continue
20972    fdir=`$as_dirname -- "$file" ||
20973$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20974	 X"$file" : 'X\(//\)[^/]' \| \
20975	 X"$file" : 'X\(//\)$' \| \
20976	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20977echo X"$file" |
20978    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20979	    s//\1/
20980	    q
20981	  }
20982	  /^X\(\/\/\)[^/].*/{
20983	    s//\1/
20984	    q
20985	  }
20986	  /^X\(\/\/\)$/{
20987	    s//\1/
20988	    q
20989	  }
20990	  /^X\(\/\).*/{
20991	    s//\1/
20992	    q
20993	  }
20994	  s/.*/./; q'`
20995    { as_dir=$dirpart/$fdir
20996  case $as_dir in #(
20997  -*) as_dir=./$as_dir;;
20998  esac
20999  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21000    as_dirs=
21001    while :; do
21002      case $as_dir in #(
21003      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21004      *) as_qdir=$as_dir;;
21005      esac
21006      as_dirs="'$as_qdir' $as_dirs"
21007      as_dir=`$as_dirname -- "$as_dir" ||
21008$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21009	 X"$as_dir" : 'X\(//\)[^/]' \| \
21010	 X"$as_dir" : 'X\(//\)$' \| \
21011	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21012echo X"$as_dir" |
21013    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21014	    s//\1/
21015	    q
21016	  }
21017	  /^X\(\/\/\)[^/].*/{
21018	    s//\1/
21019	    q
21020	  }
21021	  /^X\(\/\/\)$/{
21022	    s//\1/
21023	    q
21024	  }
21025	  /^X\(\/\).*/{
21026	    s//\1/
21027	    q
21028	  }
21029	  s/.*/./; q'`
21030      test -d "$as_dir" && break
21031    done
21032    test -z "$as_dirs" || eval "mkdir $as_dirs"
21033  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21034echo "$as_me: error: cannot create directory $as_dir" >&2;}
21035   { (exit 1); exit 1; }; }; }
21036    # echo "creating $dirpart/$file"
21037    echo '# dummy' > "$dirpart/$file"
21038  done
21039done
21040 ;;
21041
21042  esac
21043done # for ac_tag
21044
21045
21046{ (exit 0); exit 0; }
21047_ACEOF
21048chmod +x $CONFIG_STATUS
21049ac_clean_files=$ac_clean_files_save
21050
21051
21052# configure is writing to config.log, and then calls config.status.
21053# config.status does its own redirection, appending to config.log.
21054# Unfortunately, on DOS this fails, as config.log is still kept open
21055# by configure, so config.status won't be able to write to it; its
21056# output is simply discarded.  So we exec the FD to /dev/null,
21057# effectively closing config.log, so it can be properly (re)opened and
21058# appended to by config.status.  When coming back to configure, we
21059# need to make the FD available again.
21060if test "$no_create" != yes; then
21061  ac_cs_success=:
21062  ac_config_status_args=
21063  test "$silent" = yes &&
21064    ac_config_status_args="$ac_config_status_args --quiet"
21065  exec 5>/dev/null
21066  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21067  exec 5>>config.log
21068  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21069  # would make configure fail if this is the last instruction.
21070  $ac_cs_success || { (exit 1); exit 1; }
21071fi
21072
21073
21074