configure revision 4f5e7dd7
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for libpciaccess 0.10.6.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>.
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='libpciaccess'
730PACKAGE_TARNAME='libpciaccess'
731PACKAGE_VERSION='0.10.6'
732PACKAGE_STRING='libpciaccess 0.10.6'
733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess'
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
875CWARNFLAGS
876PCIIDS_PATH
877LINUX_TRUE
878LINUX_FALSE
879FREEBSD_TRUE
880FREEBSD_FALSE
881NETBSD_TRUE
882NETBSD_FALSE
883OPENBSD_TRUE
884OPENBSD_FALSE
885SOLARIS_TRUE
886SOLARIS_FALSE
887PCIACCESS_CFLAGS
888PCIACCESS_LIBS
889CHANGELOG_CMD
890distcleancheck_listfiles
891LIBOBJS
892LTLIBOBJS'
893ac_subst_files=''
894      ac_precious_vars='build_alias
895host_alias
896target_alias
897CC
898CFLAGS
899LDFLAGS
900LIBS
901CPPFLAGS
902CPP
903CXX
904CXXFLAGS
905CCC
906CXXCPP
907F77
908FFLAGS'
909
910
911# Initialize some variables set by options.
912ac_init_help=
913ac_init_version=false
914# The variables have the same names as the options, with
915# dashes changed to underlines.
916cache_file=/dev/null
917exec_prefix=NONE
918no_create=
919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
927verbose=
928x_includes=NONE
929x_libraries=NONE
930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
936# (The list follows the same order as the GNU Coding Standards.)
937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
945includedir='${prefix}/include'
946oldincludedir='/usr/include'
947docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948infodir='${datarootdir}/info'
949htmldir='${docdir}'
950dvidir='${docdir}'
951pdfdir='${docdir}'
952psdir='${docdir}'
953libdir='${exec_prefix}/lib'
954localedir='${datarootdir}/locale'
955mandir='${datarootdir}/man'
956
957ac_prev=
958ac_dashdash=
959for ac_option
960do
961  # If the previous option needs an argument, assign it.
962  if test -n "$ac_prev"; then
963    eval $ac_prev=\$ac_option
964    ac_prev=
965    continue
966  fi
967
968  case $ac_option in
969  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970  *)	ac_optarg=yes ;;
971  esac
972
973  # Accept the important Cygnus configure options, so we can diagnose typos.
974
975  case $ac_dashdash$ac_option in
976  --)
977    ac_dashdash=yes ;;
978
979  -bindir | --bindir | --bindi | --bind | --bin | --bi)
980    ac_prev=bindir ;;
981  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982    bindir=$ac_optarg ;;
983
984  -build | --build | --buil | --bui | --bu)
985    ac_prev=build_alias ;;
986  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987    build_alias=$ac_optarg ;;
988
989  -cache-file | --cache-file | --cache-fil | --cache-fi \
990  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991    ac_prev=cache_file ;;
992  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994    cache_file=$ac_optarg ;;
995
996  --config-cache | -C)
997    cache_file=config.cache ;;
998
999  -datadir | --datadir | --datadi | --datad)
1000    ac_prev=datadir ;;
1001  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002    datadir=$ac_optarg ;;
1003
1004  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005  | --dataroo | --dataro | --datar)
1006    ac_prev=datarootdir ;;
1007  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009    datarootdir=$ac_optarg ;;
1010
1011  -disable-* | --disable-*)
1012    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013    # Reject names that are not valid shell variable names.
1014    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016   { (exit 1); exit 1; }; }
1017    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018    eval enable_$ac_feature=no ;;
1019
1020  -docdir | --docdir | --docdi | --doc | --do)
1021    ac_prev=docdir ;;
1022  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023    docdir=$ac_optarg ;;
1024
1025  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026    ac_prev=dvidir ;;
1027  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028    dvidir=$ac_optarg ;;
1029
1030  -enable-* | --enable-*)
1031    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032    # Reject names that are not valid shell variable names.
1033    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035   { (exit 1); exit 1; }; }
1036    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037    eval enable_$ac_feature=\$ac_optarg ;;
1038
1039  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041  | --exec | --exe | --ex)
1042    ac_prev=exec_prefix ;;
1043  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045  | --exec=* | --exe=* | --ex=*)
1046    exec_prefix=$ac_optarg ;;
1047
1048  -gas | --gas | --ga | --g)
1049    # Obsolete; use --with-gas.
1050    with_gas=yes ;;
1051
1052  -help | --help | --hel | --he | -h)
1053    ac_init_help=long ;;
1054  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055    ac_init_help=recursive ;;
1056  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057    ac_init_help=short ;;
1058
1059  -host | --host | --hos | --ho)
1060    ac_prev=host_alias ;;
1061  -host=* | --host=* | --hos=* | --ho=*)
1062    host_alias=$ac_optarg ;;
1063
1064  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065    ac_prev=htmldir ;;
1066  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067  | --ht=*)
1068    htmldir=$ac_optarg ;;
1069
1070  -includedir | --includedir | --includedi | --included | --include \
1071  | --includ | --inclu | --incl | --inc)
1072    ac_prev=includedir ;;
1073  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074  | --includ=* | --inclu=* | --incl=* | --inc=*)
1075    includedir=$ac_optarg ;;
1076
1077  -infodir | --infodir | --infodi | --infod | --info | --inf)
1078    ac_prev=infodir ;;
1079  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080    infodir=$ac_optarg ;;
1081
1082  -libdir | --libdir | --libdi | --libd)
1083    ac_prev=libdir ;;
1084  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085    libdir=$ac_optarg ;;
1086
1087  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088  | --libexe | --libex | --libe)
1089    ac_prev=libexecdir ;;
1090  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091  | --libexe=* | --libex=* | --libe=*)
1092    libexecdir=$ac_optarg ;;
1093
1094  -localedir | --localedir | --localedi | --localed | --locale)
1095    ac_prev=localedir ;;
1096  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097    localedir=$ac_optarg ;;
1098
1099  -localstatedir | --localstatedir | --localstatedi | --localstated \
1100  | --localstate | --localstat | --localsta | --localst | --locals)
1101    ac_prev=localstatedir ;;
1102  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104    localstatedir=$ac_optarg ;;
1105
1106  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107    ac_prev=mandir ;;
1108  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109    mandir=$ac_optarg ;;
1110
1111  -nfp | --nfp | --nf)
1112    # Obsolete; use --without-fp.
1113    with_fp=no ;;
1114
1115  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116  | --no-cr | --no-c | -n)
1117    no_create=yes ;;
1118
1119  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121    no_recursion=yes ;;
1122
1123  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125  | --oldin | --oldi | --old | --ol | --o)
1126    ac_prev=oldincludedir ;;
1127  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130    oldincludedir=$ac_optarg ;;
1131
1132  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133    ac_prev=prefix ;;
1134  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135    prefix=$ac_optarg ;;
1136
1137  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138  | --program-pre | --program-pr | --program-p)
1139    ac_prev=program_prefix ;;
1140  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142    program_prefix=$ac_optarg ;;
1143
1144  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145  | --program-suf | --program-su | --program-s)
1146    ac_prev=program_suffix ;;
1147  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149    program_suffix=$ac_optarg ;;
1150
1151  -program-transform-name | --program-transform-name \
1152  | --program-transform-nam | --program-transform-na \
1153  | --program-transform-n | --program-transform- \
1154  | --program-transform | --program-transfor \
1155  | --program-transfo | --program-transf \
1156  | --program-trans | --program-tran \
1157  | --progr-tra | --program-tr | --program-t)
1158    ac_prev=program_transform_name ;;
1159  -program-transform-name=* | --program-transform-name=* \
1160  | --program-transform-nam=* | --program-transform-na=* \
1161  | --program-transform-n=* | --program-transform-=* \
1162  | --program-transform=* | --program-transfor=* \
1163  | --program-transfo=* | --program-transf=* \
1164  | --program-trans=* | --program-tran=* \
1165  | --progr-tra=* | --program-tr=* | --program-t=*)
1166    program_transform_name=$ac_optarg ;;
1167
1168  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169    ac_prev=pdfdir ;;
1170  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171    pdfdir=$ac_optarg ;;
1172
1173  -psdir | --psdir | --psdi | --psd | --ps)
1174    ac_prev=psdir ;;
1175  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176    psdir=$ac_optarg ;;
1177
1178  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179  | -silent | --silent | --silen | --sile | --sil)
1180    silent=yes ;;
1181
1182  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183    ac_prev=sbindir ;;
1184  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185  | --sbi=* | --sb=*)
1186    sbindir=$ac_optarg ;;
1187
1188  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190  | --sharedst | --shareds | --shared | --share | --shar \
1191  | --sha | --sh)
1192    ac_prev=sharedstatedir ;;
1193  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196  | --sha=* | --sh=*)
1197    sharedstatedir=$ac_optarg ;;
1198
1199  -site | --site | --sit)
1200    ac_prev=site ;;
1201  -site=* | --site=* | --sit=*)
1202    site=$ac_optarg ;;
1203
1204  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205    ac_prev=srcdir ;;
1206  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207    srcdir=$ac_optarg ;;
1208
1209  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210  | --syscon | --sysco | --sysc | --sys | --sy)
1211    ac_prev=sysconfdir ;;
1212  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214    sysconfdir=$ac_optarg ;;
1215
1216  -target | --target | --targe | --targ | --tar | --ta | --t)
1217    ac_prev=target_alias ;;
1218  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219    target_alias=$ac_optarg ;;
1220
1221  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222    verbose=yes ;;
1223
1224  -version | --version | --versio | --versi | --vers | -V)
1225    ac_init_version=: ;;
1226
1227  -with-* | --with-*)
1228    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229    # Reject names that are not valid shell variable names.
1230    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231      { echo "$as_me: error: invalid package name: $ac_package" >&2
1232   { (exit 1); exit 1; }; }
1233    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234    eval with_$ac_package=\$ac_optarg ;;
1235
1236  -without-* | --without-*)
1237    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238    # Reject names that are not valid shell variable names.
1239    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240      { echo "$as_me: error: invalid package name: $ac_package" >&2
1241   { (exit 1); exit 1; }; }
1242    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243    eval with_$ac_package=no ;;
1244
1245  --x)
1246    # Obsolete; use --with-x.
1247    with_x=yes ;;
1248
1249  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250  | --x-incl | --x-inc | --x-in | --x-i)
1251    ac_prev=x_includes ;;
1252  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254    x_includes=$ac_optarg ;;
1255
1256  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258    ac_prev=x_libraries ;;
1259  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261    x_libraries=$ac_optarg ;;
1262
1263  -*) { echo "$as_me: error: unrecognized option: $ac_option
1264Try \`$0 --help' for more information." >&2
1265   { (exit 1); exit 1; }; }
1266    ;;
1267
1268  *=*)
1269    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270    # Reject names that are not valid shell variable names.
1271    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273   { (exit 1); exit 1; }; }
1274    eval $ac_envvar=\$ac_optarg
1275    export $ac_envvar ;;
1276
1277  *)
1278    # FIXME: should be removed in autoconf 3.0.
1279    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283    ;;
1284
1285  esac
1286done
1287
1288if test -n "$ac_prev"; then
1289  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290  { echo "$as_me: error: missing argument to $ac_option" >&2
1291   { (exit 1); exit 1; }; }
1292fi
1293
1294# Be sure to have absolute directory names.
1295for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296		datadir sysconfdir sharedstatedir localstatedir includedir \
1297		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298		libdir localedir mandir
1299do
1300  eval ac_val=\$$ac_var
1301  case $ac_val in
1302    [\\/$]* | ?:[\\/]* )  continue;;
1303    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304  esac
1305  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306   { (exit 1); exit 1; }; }
1307done
1308
1309# There might be people who depend on the old broken behavior: `$host'
1310# used to hold the argument of --host etc.
1311# FIXME: To remove some day.
1312build=$build_alias
1313host=$host_alias
1314target=$target_alias
1315
1316# FIXME: To remove some day.
1317if test "x$host_alias" != x; then
1318  if test "x$build_alias" = x; then
1319    cross_compiling=maybe
1320    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321    If a cross compiler is detected then cross compile mode will be used." >&2
1322  elif test "x$build_alias" != "x$host_alias"; then
1323    cross_compiling=yes
1324  fi
1325fi
1326
1327ac_tool_prefix=
1328test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330test "$silent" = yes && exec 6>/dev/null
1331
1332
1333ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334ac_ls_di=`ls -di .` &&
1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336  { echo "$as_me: error: Working directory cannot be determined" >&2
1337   { (exit 1); exit 1; }; }
1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339  { echo "$as_me: error: pwd does not report name of working directory" >&2
1340   { (exit 1); exit 1; }; }
1341
1342
1343# Find the source files, if location was not specified.
1344if test -z "$srcdir"; then
1345  ac_srcdir_defaulted=yes
1346  # Try the directory containing this script, then the parent directory.
1347  ac_confdir=`$as_dirname -- "$0" ||
1348$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349	 X"$0" : 'X\(//\)[^/]' \| \
1350	 X"$0" : 'X\(//\)$' \| \
1351	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352echo X"$0" |
1353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354	    s//\1/
1355	    q
1356	  }
1357	  /^X\(\/\/\)[^/].*/{
1358	    s//\1/
1359	    q
1360	  }
1361	  /^X\(\/\/\)$/{
1362	    s//\1/
1363	    q
1364	  }
1365	  /^X\(\/\).*/{
1366	    s//\1/
1367	    q
1368	  }
1369	  s/.*/./; q'`
1370  srcdir=$ac_confdir
1371  if test ! -r "$srcdir/$ac_unique_file"; then
1372    srcdir=..
1373  fi
1374else
1375  ac_srcdir_defaulted=no
1376fi
1377if test ! -r "$srcdir/$ac_unique_file"; then
1378  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380   { (exit 1); exit 1; }; }
1381fi
1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
1384	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1385   { (exit 1); exit 1; }; }
1386	pwd)`
1387# When building in place, set srcdir=.
1388if test "$ac_abs_confdir" = "$ac_pwd"; then
1389  srcdir=.
1390fi
1391# Remove unnecessary trailing slashes from srcdir.
1392# Double slashes in file names in object file debugging info
1393# mess up M-x gdb in Emacs.
1394case $srcdir in
1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396esac
1397for ac_var in $ac_precious_vars; do
1398  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399  eval ac_env_${ac_var}_value=\$${ac_var}
1400  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402done
1403
1404#
1405# Report the --help message.
1406#
1407if test "$ac_init_help" = "long"; then
1408  # Omit some internal or obsolete options to make the list less imposing.
1409  # This message is too long to be a string in the A/UX 3.1 sh.
1410  cat <<_ACEOF
1411\`configure' configures libpciaccess 0.10.6 to adapt to many kinds of systems.
1412
1413Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416VAR=VALUE.  See below for descriptions of some of the useful variables.
1417
1418Defaults for the options are specified in brackets.
1419
1420Configuration:
1421  -h, --help              display this help and exit
1422      --help=short        display options specific to this package
1423      --help=recursive    display the short help of all the included packages
1424  -V, --version           display version information and exit
1425  -q, --quiet, --silent   do not print \`checking...' messages
1426      --cache-file=FILE   cache test results in FILE [disabled]
1427  -C, --config-cache      alias for \`--cache-file=config.cache'
1428  -n, --no-create         do not create output files
1429      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1430
1431Installation directories:
1432  --prefix=PREFIX         install architecture-independent files in PREFIX
1433			  [$ac_default_prefix]
1434  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1435			  [PREFIX]
1436
1437By default, \`make install' will install all the files in
1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1439an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440for instance \`--prefix=\$HOME'.
1441
1442For better control, use the options below.
1443
1444Fine tuning of the installation directories:
1445  --bindir=DIR           user executables [EPREFIX/bin]
1446  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1447  --libexecdir=DIR       program executables [EPREFIX/libexec]
1448  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1449  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1450  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1451  --libdir=DIR           object code libraries [EPREFIX/lib]
1452  --includedir=DIR       C header files [PREFIX/include]
1453  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1454  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1455  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1456  --infodir=DIR          info documentation [DATAROOTDIR/info]
1457  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1458  --mandir=DIR           man documentation [DATAROOTDIR/man]
1459  --docdir=DIR           documentation root [DATAROOTDIR/doc/libpciaccess]
1460  --htmldir=DIR          html documentation [DOCDIR]
1461  --dvidir=DIR           dvi documentation [DOCDIR]
1462  --pdfdir=DIR           pdf documentation [DOCDIR]
1463  --psdir=DIR            ps documentation [DOCDIR]
1464_ACEOF
1465
1466  cat <<\_ACEOF
1467
1468Program names:
1469  --program-prefix=PREFIX            prepend PREFIX to installed program names
1470  --program-suffix=SUFFIX            append SUFFIX to installed program names
1471  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1472
1473System types:
1474  --build=BUILD     configure for building on BUILD [guessed]
1475  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1476_ACEOF
1477fi
1478
1479if test -n "$ac_init_help"; then
1480  case $ac_init_help in
1481     short | recursive ) echo "Configuration of libpciaccess 0.10.6:";;
1482   esac
1483  cat <<\_ACEOF
1484
1485Optional Features:
1486  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488  --enable-maintainer-mode  enable make rules and dependencies not useful
1489			  (and sometimes confusing) to the casual installer
1490  --disable-dependency-tracking  speeds up one-time build
1491  --enable-dependency-tracking   do not reject slow dependency extractors
1492  --enable-shared[=PKGS]  build shared libraries [default=yes]
1493  --enable-static[=PKGS]  build static libraries [default=yes]
1494  --enable-fast-install[=PKGS]
1495                          optimize for fast installation [default=yes]
1496  --disable-libtool-lock  avoid locking (might break parallel builds)
1497  --disable-largefile     omit support for large files
1498
1499Optional Packages:
1500  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1501  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1502  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1503  --with-pic              try to use only PIC/non-PIC objects [default=use
1504                          both]
1505  --with-tags[=TAGS]      include additional configurations [automatic]
1506  --with-pciids-path=PCIIDS_PATH
1507                          Path to pci.ids file
1508  --with-zlib             Enable zlib support to read gzip compressed pci.ids
1509  --with-release-version=STRING
1510                          Use release version string in package name
1511
1512Some influential environment variables:
1513  CC          C compiler command
1514  CFLAGS      C compiler flags
1515  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516              nonstandard directory <lib dir>
1517  LIBS        libraries to pass to the linker, e.g. -l<library>
1518  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519              you have headers in a nonstandard directory <include dir>
1520  CPP         C preprocessor
1521  CXX         C++ compiler command
1522  CXXFLAGS    C++ compiler flags
1523  CXXCPP      C++ preprocessor
1524  F77         Fortran 77 compiler command
1525  FFLAGS      Fortran 77 compiler flags
1526
1527Use these variables to override the choices made by `configure' or to help
1528it to find libraries and programs with nonstandard names/locations.
1529
1530Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>.
1531_ACEOF
1532ac_status=$?
1533fi
1534
1535if test "$ac_init_help" = "recursive"; then
1536  # If there are subdirs, report their specific --help.
1537  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538    test -d "$ac_dir" || continue
1539    ac_builddir=.
1540
1541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
1544  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1545  # A ".." for each directory in $ac_dir_suffix.
1546  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1547  case $ac_top_builddir_sub in
1548  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550  esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
1556
1557case $srcdir in
1558  .)  # We are building in place.
1559    ac_srcdir=.
1560    ac_top_srcdir=$ac_top_builddir_sub
1561    ac_abs_top_srcdir=$ac_pwd ;;
1562  [\\/]* | ?:[\\/]* )  # Absolute name.
1563    ac_srcdir=$srcdir$ac_dir_suffix;
1564    ac_top_srcdir=$srcdir
1565    ac_abs_top_srcdir=$srcdir ;;
1566  *) # Relative name.
1567    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568    ac_top_srcdir=$ac_top_build_prefix$srcdir
1569    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570esac
1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573    cd "$ac_dir" || { ac_status=$?; continue; }
1574    # Check for guested configure.
1575    if test -f "$ac_srcdir/configure.gnu"; then
1576      echo &&
1577      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578    elif test -f "$ac_srcdir/configure"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure" --help=recursive
1581    else
1582      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583    fi || ac_status=$?
1584    cd "$ac_pwd" || { ac_status=$?; break; }
1585  done
1586fi
1587
1588test -n "$ac_init_help" && exit $ac_status
1589if $ac_init_version; then
1590  cat <<\_ACEOF
1591libpciaccess configure 0.10.6
1592generated by GNU Autoconf 2.61
1593
1594Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15952002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1596This configure script is free software; the Free Software Foundation
1597gives unlimited permission to copy, distribute and modify it.
1598_ACEOF
1599  exit
1600fi
1601cat >config.log <<_ACEOF
1602This file contains any messages produced by compilers while
1603running configure, to aid debugging if configure makes a mistake.
1604
1605It was created by libpciaccess $as_me 0.10.6, which was
1606generated by GNU Autoconf 2.61.  Invocation command line was
1607
1608  $ $0 $@
1609
1610_ACEOF
1611exec 5>>config.log
1612{
1613cat <<_ASUNAME
1614## --------- ##
1615## Platform. ##
1616## --------- ##
1617
1618hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623
1624/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1626
1627/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1628/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1629/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1631/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1632/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1633/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1634
1635_ASUNAME
1636
1637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638for as_dir in $PATH
1639do
1640  IFS=$as_save_IFS
1641  test -z "$as_dir" && as_dir=.
1642  echo "PATH: $as_dir"
1643done
1644IFS=$as_save_IFS
1645
1646} >&5
1647
1648cat >&5 <<_ACEOF
1649
1650
1651## ----------- ##
1652## Core tests. ##
1653## ----------- ##
1654
1655_ACEOF
1656
1657
1658# Keep a trace of the command line.
1659# Strip out --no-create and --no-recursion so they do not pile up.
1660# Strip out --silent because we don't want to record it for future runs.
1661# Also quote any args containing shell meta-characters.
1662# Make two passes to allow for proper duplicate-argument suppression.
1663ac_configure_args=
1664ac_configure_args0=
1665ac_configure_args1=
1666ac_must_keep_next=false
1667for ac_pass in 1 2
1668do
1669  for ac_arg
1670  do
1671    case $ac_arg in
1672    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674    | -silent | --silent | --silen | --sile | --sil)
1675      continue ;;
1676    *\'*)
1677      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678    esac
1679    case $ac_pass in
1680    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681    2)
1682      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683      if test $ac_must_keep_next = true; then
1684	ac_must_keep_next=false # Got value, back to normal.
1685      else
1686	case $ac_arg in
1687	  *=* | --config-cache | -C | -disable-* | --disable-* \
1688	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690	  | -with-* | --with-* | -without-* | --without-* | --x)
1691	    case "$ac_configure_args0 " in
1692	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693	    esac
1694	    ;;
1695	  -* ) ac_must_keep_next=true ;;
1696	esac
1697      fi
1698      ac_configure_args="$ac_configure_args '$ac_arg'"
1699      ;;
1700    esac
1701  done
1702done
1703$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705
1706# When interrupted or exit'd, cleanup temporary files, and complete
1707# config.log.  We remove comments because anyway the quotes in there
1708# would cause problems or look ugly.
1709# WARNING: Use '\'' to represent an apostrophe within the trap.
1710# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711trap 'exit_status=$?
1712  # Save into config.log some information that might help in debugging.
1713  {
1714    echo
1715
1716    cat <<\_ASBOX
1717## ---------------- ##
1718## Cache variables. ##
1719## ---------------- ##
1720_ASBOX
1721    echo
1722    # The following way of writing the cache mishandles newlines in values,
1723(
1724  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725    eval ac_val=\$$ac_var
1726    case $ac_val in #(
1727    *${as_nl}*)
1728      case $ac_var in #(
1729      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731      esac
1732      case $ac_var in #(
1733      _ | IFS | as_nl) ;; #(
1734      *) $as_unset $ac_var ;;
1735      esac ;;
1736    esac
1737  done
1738  (set) 2>&1 |
1739    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1740    *${as_nl}ac_space=\ *)
1741      sed -n \
1742	"s/'\''/'\''\\\\'\'''\''/g;
1743	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1744      ;; #(
1745    *)
1746      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747      ;;
1748    esac |
1749    sort
1750)
1751    echo
1752
1753    cat <<\_ASBOX
1754## ----------------- ##
1755## Output variables. ##
1756## ----------------- ##
1757_ASBOX
1758    echo
1759    for ac_var in $ac_subst_vars
1760    do
1761      eval ac_val=\$$ac_var
1762      case $ac_val in
1763      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764      esac
1765      echo "$ac_var='\''$ac_val'\''"
1766    done | sort
1767    echo
1768
1769    if test -n "$ac_subst_files"; then
1770      cat <<\_ASBOX
1771## ------------------- ##
1772## File substitutions. ##
1773## ------------------- ##
1774_ASBOX
1775      echo
1776      for ac_var in $ac_subst_files
1777      do
1778	eval ac_val=\$$ac_var
1779	case $ac_val in
1780	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781	esac
1782	echo "$ac_var='\''$ac_val'\''"
1783      done | sort
1784      echo
1785    fi
1786
1787    if test -s confdefs.h; then
1788      cat <<\_ASBOX
1789## ----------- ##
1790## confdefs.h. ##
1791## ----------- ##
1792_ASBOX
1793      echo
1794      cat confdefs.h
1795      echo
1796    fi
1797    test "$ac_signal" != 0 &&
1798      echo "$as_me: caught signal $ac_signal"
1799    echo "$as_me: exit $exit_status"
1800  } >&5
1801  rm -f core *.core core.conftest.* &&
1802    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1803    exit $exit_status
1804' 0
1805for ac_signal in 1 2 13 15; do
1806  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807done
1808ac_signal=0
1809
1810# confdefs.h avoids OS command line length limits that DEFS can exceed.
1811rm -f -r conftest* confdefs.h
1812
1813# Predefined preprocessor variables.
1814
1815cat >>confdefs.h <<_ACEOF
1816#define PACKAGE_NAME "$PACKAGE_NAME"
1817_ACEOF
1818
1819
1820cat >>confdefs.h <<_ACEOF
1821#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822_ACEOF
1823
1824
1825cat >>confdefs.h <<_ACEOF
1826#define PACKAGE_VERSION "$PACKAGE_VERSION"
1827_ACEOF
1828
1829
1830cat >>confdefs.h <<_ACEOF
1831#define PACKAGE_STRING "$PACKAGE_STRING"
1832_ACEOF
1833
1834
1835cat >>confdefs.h <<_ACEOF
1836#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837_ACEOF
1838
1839
1840# Let the site file select an alternate cache file if it wants to.
1841# Prefer explicitly selected file to automatically selected ones.
1842if test -n "$CONFIG_SITE"; then
1843  set x "$CONFIG_SITE"
1844elif test "x$prefix" != xNONE; then
1845  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1846else
1847  set x "$ac_default_prefix/share/config.site" \
1848	"$ac_default_prefix/etc/config.site"
1849fi
1850shift
1851for ac_site_file
1852do
1853  if test -r "$ac_site_file"; then
1854    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1855echo "$as_me: loading site script $ac_site_file" >&6;}
1856    sed 's/^/| /' "$ac_site_file" >&5
1857    . "$ac_site_file"
1858  fi
1859done
1860
1861if test -r "$cache_file"; then
1862  # Some versions of bash will fail to source /dev/null (special
1863  # files actually), so we avoid doing that.
1864  if test -f "$cache_file"; then
1865    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1866echo "$as_me: loading cache $cache_file" >&6;}
1867    case $cache_file in
1868      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1869      *)                      . "./$cache_file";;
1870    esac
1871  fi
1872else
1873  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1874echo "$as_me: creating cache $cache_file" >&6;}
1875  >$cache_file
1876fi
1877
1878# Check that the precious variables saved in the cache have kept the same
1879# value.
1880ac_cache_corrupted=false
1881for ac_var in $ac_precious_vars; do
1882  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1883  eval ac_new_set=\$ac_env_${ac_var}_set
1884  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1885  eval ac_new_val=\$ac_env_${ac_var}_value
1886  case $ac_old_set,$ac_new_set in
1887    set,)
1888      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1889echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1890      ac_cache_corrupted=: ;;
1891    ,set)
1892      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1893echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1894      ac_cache_corrupted=: ;;
1895    ,);;
1896    *)
1897      if test "x$ac_old_val" != "x$ac_new_val"; then
1898	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1899echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1900	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1901echo "$as_me:   former value:  $ac_old_val" >&2;}
1902	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1903echo "$as_me:   current value: $ac_new_val" >&2;}
1904	ac_cache_corrupted=:
1905      fi;;
1906  esac
1907  # Pass precious variables to config.status.
1908  if test "$ac_new_set" = set; then
1909    case $ac_new_val in
1910    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1911    *) ac_arg=$ac_var=$ac_new_val ;;
1912    esac
1913    case " $ac_configure_args " in
1914      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1915      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916    esac
1917  fi
1918done
1919if $ac_cache_corrupted; then
1920  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1921echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1922  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1923echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1924   { (exit 1); exit 1; }; }
1925fi
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951ac_ext=c
1952ac_cpp='$CPP $CPPFLAGS'
1953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956
1957
1958am__api_version='1.10'
1959
1960ac_aux_dir=
1961for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1962  if test -f "$ac_dir/install-sh"; then
1963    ac_aux_dir=$ac_dir
1964    ac_install_sh="$ac_aux_dir/install-sh -c"
1965    break
1966  elif test -f "$ac_dir/install.sh"; then
1967    ac_aux_dir=$ac_dir
1968    ac_install_sh="$ac_aux_dir/install.sh -c"
1969    break
1970  elif test -f "$ac_dir/shtool"; then
1971    ac_aux_dir=$ac_dir
1972    ac_install_sh="$ac_aux_dir/shtool install -c"
1973    break
1974  fi
1975done
1976if test -z "$ac_aux_dir"; then
1977  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1978echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1979   { (exit 1); exit 1; }; }
1980fi
1981
1982# These three variables are undocumented and unsupported,
1983# and are intended to be withdrawn in a future Autoconf release.
1984# They can cause serious problems if a builder's source tree is in a directory
1985# whose full name contains unusual characters.
1986ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1987ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1988ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1989
1990
1991# Find a good install program.  We prefer a C program (faster),
1992# so one script is as good as another.  But avoid the broken or
1993# incompatible versions:
1994# SysV /etc/install, /usr/sbin/install
1995# SunOS /usr/etc/install
1996# IRIX /sbin/install
1997# AIX /bin/install
1998# AmigaOS /C/install, which installs bootblocks on floppy discs
1999# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2000# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2001# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2002# OS/2's system install, which has a completely different semantic
2003# ./install, which can be erroneously created by make from ./install.sh.
2004{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2005echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2006if test -z "$INSTALL"; then
2007if test "${ac_cv_path_install+set}" = set; then
2008  echo $ECHO_N "(cached) $ECHO_C" >&6
2009else
2010  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011for as_dir in $PATH
2012do
2013  IFS=$as_save_IFS
2014  test -z "$as_dir" && as_dir=.
2015  # Account for people who put trailing slashes in PATH elements.
2016case $as_dir/ in
2017  ./ | .// | /cC/* | \
2018  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2019  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2020  /usr/ucb/* ) ;;
2021  *)
2022    # OSF1 and SCO ODT 3.0 have their own names for install.
2023    # Don't use installbsd from OSF since it installs stuff as root
2024    # by default.
2025    for ac_prog in ginstall scoinst install; do
2026      for ac_exec_ext in '' $ac_executable_extensions; do
2027	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2028	  if test $ac_prog = install &&
2029	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2030	    # AIX install.  It has an incompatible calling convention.
2031	    :
2032	  elif test $ac_prog = install &&
2033	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2034	    # program-specific install script used by HP pwplus--don't use.
2035	    :
2036	  else
2037	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2038	    break 3
2039	  fi
2040	fi
2041      done
2042    done
2043    ;;
2044esac
2045done
2046IFS=$as_save_IFS
2047
2048
2049fi
2050  if test "${ac_cv_path_install+set}" = set; then
2051    INSTALL=$ac_cv_path_install
2052  else
2053    # As a last resort, use the slow shell script.  Don't cache a
2054    # value for INSTALL within a source directory, because that will
2055    # break other packages using the cache if that directory is
2056    # removed, or if the value is a relative name.
2057    INSTALL=$ac_install_sh
2058  fi
2059fi
2060{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2061echo "${ECHO_T}$INSTALL" >&6; }
2062
2063# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2064# It thinks the first close brace ends the variable substitution.
2065test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2066
2067test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2068
2069test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2070
2071{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2072echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2073# Just in case
2074sleep 1
2075echo timestamp > conftest.file
2076# Do `set' in a subshell so we don't clobber the current shell's
2077# arguments.  Must try -L first in case configure is actually a
2078# symlink; some systems play weird games with the mod time of symlinks
2079# (eg FreeBSD returns the mod time of the symlink's containing
2080# directory).
2081if (
2082   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2083   if test "$*" = "X"; then
2084      # -L didn't work.
2085      set X `ls -t $srcdir/configure conftest.file`
2086   fi
2087   rm -f conftest.file
2088   if test "$*" != "X $srcdir/configure conftest.file" \
2089      && test "$*" != "X conftest.file $srcdir/configure"; then
2090
2091      # If neither matched, then we have a broken ls.  This can happen
2092      # if, for instance, CONFIG_SHELL is bash and it inherits a
2093      # broken ls alias from the environment.  This has actually
2094      # happened.  Such a system could not be considered "sane".
2095      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2096alias in your environment" >&5
2097echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2098alias in your environment" >&2;}
2099   { (exit 1); exit 1; }; }
2100   fi
2101
2102   test "$2" = conftest.file
2103   )
2104then
2105   # Ok.
2106   :
2107else
2108   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2109Check your system clock" >&5
2110echo "$as_me: error: newly created file is older than distributed files!
2111Check your system clock" >&2;}
2112   { (exit 1); exit 1; }; }
2113fi
2114{ echo "$as_me:$LINENO: result: yes" >&5
2115echo "${ECHO_T}yes" >&6; }
2116test "$program_prefix" != NONE &&
2117  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2118# Use a double $ so make ignores it.
2119test "$program_suffix" != NONE &&
2120  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2121# Double any \ or $.  echo might interpret backslashes.
2122# By default was `s,x,x', remove it if useless.
2123cat <<\_ACEOF >conftest.sed
2124s/[\\$]/&&/g;s/;s,x,x,$//
2125_ACEOF
2126program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2127rm -f conftest.sed
2128
2129# expand $ac_aux_dir to an absolute path
2130am_aux_dir=`cd $ac_aux_dir && pwd`
2131
2132test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2133# Use eval to expand $SHELL
2134if eval "$MISSING --run true"; then
2135  am_missing_run="$MISSING --run "
2136else
2137  am_missing_run=
2138  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2139echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2140fi
2141
2142{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2143echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2144if test -z "$MKDIR_P"; then
2145  if test "${ac_cv_path_mkdir+set}" = set; then
2146  echo $ECHO_N "(cached) $ECHO_C" >&6
2147else
2148  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2150do
2151  IFS=$as_save_IFS
2152  test -z "$as_dir" && as_dir=.
2153  for ac_prog in mkdir gmkdir; do
2154	 for ac_exec_ext in '' $ac_executable_extensions; do
2155	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2156	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2157	     'mkdir (GNU coreutils) '* | \
2158	     'mkdir (coreutils) '* | \
2159	     'mkdir (fileutils) '4.1*)
2160	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2161	       break 3;;
2162	   esac
2163	 done
2164       done
2165done
2166IFS=$as_save_IFS
2167
2168fi
2169
2170  if test "${ac_cv_path_mkdir+set}" = set; then
2171    MKDIR_P="$ac_cv_path_mkdir -p"
2172  else
2173    # As a last resort, use the slow shell script.  Don't cache a
2174    # value for MKDIR_P within a source directory, because that will
2175    # break other packages using the cache if that directory is
2176    # removed, or if the value is a relative name.
2177    test -d ./--version && rmdir ./--version
2178    MKDIR_P="$ac_install_sh -d"
2179  fi
2180fi
2181{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2182echo "${ECHO_T}$MKDIR_P" >&6; }
2183
2184mkdir_p="$MKDIR_P"
2185case $mkdir_p in
2186  [\\/$]* | ?:[\\/]*) ;;
2187  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2188esac
2189
2190for ac_prog in gawk mawk nawk awk
2191do
2192  # Extract the first word of "$ac_prog", so it can be a program name with args.
2193set dummy $ac_prog; ac_word=$2
2194{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196if test "${ac_cv_prog_AWK+set}" = set; then
2197  echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199  if test -n "$AWK"; then
2200  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2201else
2202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203for as_dir in $PATH
2204do
2205  IFS=$as_save_IFS
2206  test -z "$as_dir" && as_dir=.
2207  for ac_exec_ext in '' $ac_executable_extensions; do
2208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2209    ac_cv_prog_AWK="$ac_prog"
2210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211    break 2
2212  fi
2213done
2214done
2215IFS=$as_save_IFS
2216
2217fi
2218fi
2219AWK=$ac_cv_prog_AWK
2220if test -n "$AWK"; then
2221  { echo "$as_me:$LINENO: result: $AWK" >&5
2222echo "${ECHO_T}$AWK" >&6; }
2223else
2224  { echo "$as_me:$LINENO: result: no" >&5
2225echo "${ECHO_T}no" >&6; }
2226fi
2227
2228
2229  test -n "$AWK" && break
2230done
2231
2232{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2233echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2234set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2235if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2236  echo $ECHO_N "(cached) $ECHO_C" >&6
2237else
2238  cat >conftest.make <<\_ACEOF
2239SHELL = /bin/sh
2240all:
2241	@echo '@@@%%%=$(MAKE)=@@@%%%'
2242_ACEOF
2243# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2244case `${MAKE-make} -f conftest.make 2>/dev/null` in
2245  *@@@%%%=?*=@@@%%%*)
2246    eval ac_cv_prog_make_${ac_make}_set=yes;;
2247  *)
2248    eval ac_cv_prog_make_${ac_make}_set=no;;
2249esac
2250rm -f conftest.make
2251fi
2252if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2253  { echo "$as_me:$LINENO: result: yes" >&5
2254echo "${ECHO_T}yes" >&6; }
2255  SET_MAKE=
2256else
2257  { echo "$as_me:$LINENO: result: no" >&5
2258echo "${ECHO_T}no" >&6; }
2259  SET_MAKE="MAKE=${MAKE-make}"
2260fi
2261
2262rm -rf .tst 2>/dev/null
2263mkdir .tst 2>/dev/null
2264if test -d .tst; then
2265  am__leading_dot=.
2266else
2267  am__leading_dot=_
2268fi
2269rmdir .tst 2>/dev/null
2270
2271if test "`cd $srcdir && pwd`" != "`pwd`"; then
2272  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2273  # is not polluted with repeated "-I."
2274  am__isrc=' -I$(srcdir)'
2275  # test to see if srcdir already configured
2276  if test -f $srcdir/config.status; then
2277    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2278echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2279   { (exit 1); exit 1; }; }
2280  fi
2281fi
2282
2283# test whether we have cygpath
2284if test -z "$CYGPATH_W"; then
2285  if (cygpath --version) >/dev/null 2>/dev/null; then
2286    CYGPATH_W='cygpath -w'
2287  else
2288    CYGPATH_W=echo
2289  fi
2290fi
2291
2292
2293# Define the identity of the package.
2294 PACKAGE='libpciaccess'
2295 VERSION='0.10.6'
2296
2297
2298cat >>confdefs.h <<_ACEOF
2299#define PACKAGE "$PACKAGE"
2300_ACEOF
2301
2302
2303cat >>confdefs.h <<_ACEOF
2304#define VERSION "$VERSION"
2305_ACEOF
2306
2307# Some tools Automake needs.
2308
2309ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2310
2311
2312AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2313
2314
2315AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2316
2317
2318AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2319
2320
2321MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2322
2323install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2324
2325# Installed binaries are usually stripped using `strip' when the user
2326# run `make install-strip'.  However `strip' might not be the right
2327# tool to use in cross-compilation environments, therefore Automake
2328# will honor the `STRIP' environment variable to overrule this program.
2329if test "$cross_compiling" != no; then
2330  if test -n "$ac_tool_prefix"; then
2331  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2332set dummy ${ac_tool_prefix}strip; ac_word=$2
2333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335if test "${ac_cv_prog_STRIP+set}" = set; then
2336  echo $ECHO_N "(cached) $ECHO_C" >&6
2337else
2338  if test -n "$STRIP"; then
2339  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2340else
2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344  IFS=$as_save_IFS
2345  test -z "$as_dir" && as_dir=.
2346  for ac_exec_ext in '' $ac_executable_extensions; do
2347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350    break 2
2351  fi
2352done
2353done
2354IFS=$as_save_IFS
2355
2356fi
2357fi
2358STRIP=$ac_cv_prog_STRIP
2359if test -n "$STRIP"; then
2360  { echo "$as_me:$LINENO: result: $STRIP" >&5
2361echo "${ECHO_T}$STRIP" >&6; }
2362else
2363  { echo "$as_me:$LINENO: result: no" >&5
2364echo "${ECHO_T}no" >&6; }
2365fi
2366
2367
2368fi
2369if test -z "$ac_cv_prog_STRIP"; then
2370  ac_ct_STRIP=$STRIP
2371  # Extract the first word of "strip", so it can be a program name with args.
2372set dummy strip; ac_word=$2
2373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2375if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2376  echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378  if test -n "$ac_ct_STRIP"; then
2379  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2380else
2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382for as_dir in $PATH
2383do
2384  IFS=$as_save_IFS
2385  test -z "$as_dir" && as_dir=.
2386  for ac_exec_ext in '' $ac_executable_extensions; do
2387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388    ac_cv_prog_ac_ct_STRIP="strip"
2389    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390    break 2
2391  fi
2392done
2393done
2394IFS=$as_save_IFS
2395
2396fi
2397fi
2398ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2399if test -n "$ac_ct_STRIP"; then
2400  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2401echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2402else
2403  { echo "$as_me:$LINENO: result: no" >&5
2404echo "${ECHO_T}no" >&6; }
2405fi
2406
2407  if test "x$ac_ct_STRIP" = x; then
2408    STRIP=":"
2409  else
2410    case $cross_compiling:$ac_tool_warned in
2411yes:)
2412{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2413whose name does not start with the host triplet.  If you think this
2414configuration is useful to you, please write to autoconf@gnu.org." >&5
2415echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2416whose name does not start with the host triplet.  If you think this
2417configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2418ac_tool_warned=yes ;;
2419esac
2420    STRIP=$ac_ct_STRIP
2421  fi
2422else
2423  STRIP="$ac_cv_prog_STRIP"
2424fi
2425
2426fi
2427INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2428
2429# We need awk for the "check" target.  The system "awk" is bad on
2430# some platforms.
2431# Always define AMTAR for backward compatibility.
2432
2433AMTAR=${AMTAR-"${am_missing_run}tar"}
2434
2435am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2436
2437
2438
2439
2440
2441{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2442echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2443    # Check whether --enable-maintainer-mode was given.
2444if test "${enable_maintainer_mode+set}" = set; then
2445  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2446else
2447  USE_MAINTAINER_MODE=no
2448fi
2449
2450  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2451echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2452   if test $USE_MAINTAINER_MODE = yes; then
2453  MAINTAINER_MODE_TRUE=
2454  MAINTAINER_MODE_FALSE='#'
2455else
2456  MAINTAINER_MODE_TRUE='#'
2457  MAINTAINER_MODE_FALSE=
2458fi
2459
2460  MAINT=$MAINTAINER_MODE_TRUE
2461
2462
2463
2464# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476ac_config_headers="$ac_config_headers config.h"
2477
2478
2479# Check for progs
2480ac_ext=c
2481ac_cpp='$CPP $CPPFLAGS'
2482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485if test -n "$ac_tool_prefix"; then
2486  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2487set dummy ${ac_tool_prefix}gcc; ac_word=$2
2488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490if test "${ac_cv_prog_CC+set}" = set; then
2491  echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493  if test -n "$CC"; then
2494  ac_cv_prog_CC="$CC" # Let the user override the test.
2495else
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499  IFS=$as_save_IFS
2500  test -z "$as_dir" && as_dir=.
2501  for ac_exec_ext in '' $ac_executable_extensions; do
2502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2504    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505    break 2
2506  fi
2507done
2508done
2509IFS=$as_save_IFS
2510
2511fi
2512fi
2513CC=$ac_cv_prog_CC
2514if test -n "$CC"; then
2515  { echo "$as_me:$LINENO: result: $CC" >&5
2516echo "${ECHO_T}$CC" >&6; }
2517else
2518  { echo "$as_me:$LINENO: result: no" >&5
2519echo "${ECHO_T}no" >&6; }
2520fi
2521
2522
2523fi
2524if test -z "$ac_cv_prog_CC"; then
2525  ac_ct_CC=$CC
2526  # Extract the first word of "gcc", so it can be a program name with args.
2527set dummy gcc; ac_word=$2
2528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531  echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533  if test -n "$ac_ct_CC"; then
2534  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539  IFS=$as_save_IFS
2540  test -z "$as_dir" && as_dir=.
2541  for ac_exec_ext in '' $ac_executable_extensions; do
2542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543    ac_cv_prog_ac_ct_CC="gcc"
2544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545    break 2
2546  fi
2547done
2548done
2549IFS=$as_save_IFS
2550
2551fi
2552fi
2553ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554if test -n "$ac_ct_CC"; then
2555  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2556echo "${ECHO_T}$ac_ct_CC" >&6; }
2557else
2558  { echo "$as_me:$LINENO: result: no" >&5
2559echo "${ECHO_T}no" >&6; }
2560fi
2561
2562  if test "x$ac_ct_CC" = x; then
2563    CC=""
2564  else
2565    case $cross_compiling:$ac_tool_warned in
2566yes:)
2567{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2568whose name does not start with the host triplet.  If you think this
2569configuration is useful to you, please write to autoconf@gnu.org." >&5
2570echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2571whose name does not start with the host triplet.  If you think this
2572configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2573ac_tool_warned=yes ;;
2574esac
2575    CC=$ac_ct_CC
2576  fi
2577else
2578  CC="$ac_cv_prog_CC"
2579fi
2580
2581if test -z "$CC"; then
2582          if test -n "$ac_tool_prefix"; then
2583    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2584set dummy ${ac_tool_prefix}cc; ac_word=$2
2585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587if test "${ac_cv_prog_CC+set}" = set; then
2588  echo $ECHO_N "(cached) $ECHO_C" >&6
2589else
2590  if test -n "$CC"; then
2591  ac_cv_prog_CC="$CC" # Let the user override the test.
2592else
2593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594for as_dir in $PATH
2595do
2596  IFS=$as_save_IFS
2597  test -z "$as_dir" && as_dir=.
2598  for ac_exec_ext in '' $ac_executable_extensions; do
2599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600    ac_cv_prog_CC="${ac_tool_prefix}cc"
2601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602    break 2
2603  fi
2604done
2605done
2606IFS=$as_save_IFS
2607
2608fi
2609fi
2610CC=$ac_cv_prog_CC
2611if test -n "$CC"; then
2612  { echo "$as_me:$LINENO: result: $CC" >&5
2613echo "${ECHO_T}$CC" >&6; }
2614else
2615  { echo "$as_me:$LINENO: result: no" >&5
2616echo "${ECHO_T}no" >&6; }
2617fi
2618
2619
2620  fi
2621fi
2622if test -z "$CC"; then
2623  # Extract the first word of "cc", so it can be a program name with args.
2624set dummy cc; ac_word=$2
2625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627if test "${ac_cv_prog_CC+set}" = set; then
2628  echo $ECHO_N "(cached) $ECHO_C" >&6
2629else
2630  if test -n "$CC"; then
2631  ac_cv_prog_CC="$CC" # Let the user override the test.
2632else
2633  ac_prog_rejected=no
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637  IFS=$as_save_IFS
2638  test -z "$as_dir" && as_dir=.
2639  for ac_exec_ext in '' $ac_executable_extensions; do
2640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2642       ac_prog_rejected=yes
2643       continue
2644     fi
2645    ac_cv_prog_CC="cc"
2646    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647    break 2
2648  fi
2649done
2650done
2651IFS=$as_save_IFS
2652
2653if test $ac_prog_rejected = yes; then
2654  # We found a bogon in the path, so make sure we never use it.
2655  set dummy $ac_cv_prog_CC
2656  shift
2657  if test $# != 0; then
2658    # We chose a different compiler from the bogus one.
2659    # However, it has the same basename, so the bogon will be chosen
2660    # first if we set CC to just the basename; use the full file name.
2661    shift
2662    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2663  fi
2664fi
2665fi
2666fi
2667CC=$ac_cv_prog_CC
2668if test -n "$CC"; then
2669  { echo "$as_me:$LINENO: result: $CC" >&5
2670echo "${ECHO_T}$CC" >&6; }
2671else
2672  { echo "$as_me:$LINENO: result: no" >&5
2673echo "${ECHO_T}no" >&6; }
2674fi
2675
2676
2677fi
2678if test -z "$CC"; then
2679  if test -n "$ac_tool_prefix"; then
2680  for ac_prog in cl.exe
2681  do
2682    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2683set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2686if test "${ac_cv_prog_CC+set}" = set; then
2687  echo $ECHO_N "(cached) $ECHO_C" >&6
2688else
2689  if test -n "$CC"; then
2690  ac_cv_prog_CC="$CC" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695  IFS=$as_save_IFS
2696  test -z "$as_dir" && as_dir=.
2697  for ac_exec_ext in '' $ac_executable_extensions; do
2698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701    break 2
2702  fi
2703done
2704done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709CC=$ac_cv_prog_CC
2710if test -n "$CC"; then
2711  { echo "$as_me:$LINENO: result: $CC" >&5
2712echo "${ECHO_T}$CC" >&6; }
2713else
2714  { echo "$as_me:$LINENO: result: no" >&5
2715echo "${ECHO_T}no" >&6; }
2716fi
2717
2718
2719    test -n "$CC" && break
2720  done
2721fi
2722if test -z "$CC"; then
2723  ac_ct_CC=$CC
2724  for ac_prog in cl.exe
2725do
2726  # Extract the first word of "$ac_prog", so it can be a program name with args.
2727set dummy $ac_prog; ac_word=$2
2728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2731  echo $ECHO_N "(cached) $ECHO_C" >&6
2732else
2733  if test -n "$ac_ct_CC"; then
2734  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739  IFS=$as_save_IFS
2740  test -z "$as_dir" && as_dir=.
2741  for ac_exec_ext in '' $ac_executable_extensions; do
2742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743    ac_cv_prog_ac_ct_CC="$ac_prog"
2744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745    break 2
2746  fi
2747done
2748done
2749IFS=$as_save_IFS
2750
2751fi
2752fi
2753ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754if test -n "$ac_ct_CC"; then
2755  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2756echo "${ECHO_T}$ac_ct_CC" >&6; }
2757else
2758  { echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6; }
2760fi
2761
2762
2763  test -n "$ac_ct_CC" && break
2764done
2765
2766  if test "x$ac_ct_CC" = x; then
2767    CC=""
2768  else
2769    case $cross_compiling:$ac_tool_warned in
2770yes:)
2771{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2772whose name does not start with the host triplet.  If you think this
2773configuration is useful to you, please write to autoconf@gnu.org." >&5
2774echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2775whose name does not start with the host triplet.  If you think this
2776configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2777ac_tool_warned=yes ;;
2778esac
2779    CC=$ac_ct_CC
2780  fi
2781fi
2782
2783fi
2784
2785
2786test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2787See \`config.log' for more details." >&5
2788echo "$as_me: error: no acceptable C compiler found in \$PATH
2789See \`config.log' for more details." >&2;}
2790   { (exit 1); exit 1; }; }
2791
2792# Provide some information about the compiler.
2793echo "$as_me:$LINENO: checking for C compiler version" >&5
2794ac_compiler=`set X $ac_compile; echo $2`
2795{ (ac_try="$ac_compiler --version >&5"
2796case "(($ac_try" in
2797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798  *) ac_try_echo=$ac_try;;
2799esac
2800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801  (eval "$ac_compiler --version >&5") 2>&5
2802  ac_status=$?
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); }
2805{ (ac_try="$ac_compiler -v >&5"
2806case "(($ac_try" in
2807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808  *) ac_try_echo=$ac_try;;
2809esac
2810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811  (eval "$ac_compiler -v >&5") 2>&5
2812  ac_status=$?
2813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814  (exit $ac_status); }
2815{ (ac_try="$ac_compiler -V >&5"
2816case "(($ac_try" in
2817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818  *) ac_try_echo=$ac_try;;
2819esac
2820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821  (eval "$ac_compiler -V >&5") 2>&5
2822  ac_status=$?
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); }
2825
2826cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h.  */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h.  */
2832
2833int
2834main ()
2835{
2836
2837  ;
2838  return 0;
2839}
2840_ACEOF
2841ac_clean_files_save=$ac_clean_files
2842ac_clean_files="$ac_clean_files a.out a.exe b.out"
2843# Try to create an executable without -o first, disregard a.out.
2844# It will help us diagnose broken compilers, and finding out an intuition
2845# of exeext.
2846{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2847echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2848ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2849#
2850# List of possible output files, starting from the most likely.
2851# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2852# only as a last resort.  b.out is created by i960 compilers.
2853ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2854#
2855# The IRIX 6 linker writes into existing files which may not be
2856# executable, retaining their permissions.  Remove them first so a
2857# subsequent execution test works.
2858ac_rmfiles=
2859for ac_file in $ac_files
2860do
2861  case $ac_file in
2862    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2864  esac
2865done
2866rm -f $ac_rmfiles
2867
2868if { (ac_try="$ac_link_default"
2869case "(($ac_try" in
2870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871  *) ac_try_echo=$ac_try;;
2872esac
2873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874  (eval "$ac_link_default") 2>&5
2875  ac_status=$?
2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877  (exit $ac_status); }; then
2878  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2879# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2880# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2881# so that the user can short-circuit this test for compilers unknown to
2882# Autoconf.
2883for ac_file in $ac_files ''
2884do
2885  test -f "$ac_file" || continue
2886  case $ac_file in
2887    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2888	;;
2889    [ab].out )
2890	# We found the default executable, but exeext='' is most
2891	# certainly right.
2892	break;;
2893    *.* )
2894        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2895	then :; else
2896	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897	fi
2898	# We set ac_cv_exeext here because the later test for it is not
2899	# safe: cross compilers may not add the suffix if given an `-o'
2900	# argument, so we may need to know it at that point already.
2901	# Even if this section looks crufty: it has the advantage of
2902	# actually working.
2903	break;;
2904    * )
2905	break;;
2906  esac
2907done
2908test "$ac_cv_exeext" = no && ac_cv_exeext=
2909
2910else
2911  ac_file=''
2912fi
2913
2914{ echo "$as_me:$LINENO: result: $ac_file" >&5
2915echo "${ECHO_T}$ac_file" >&6; }
2916if test -z "$ac_file"; then
2917  echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2921See \`config.log' for more details." >&5
2922echo "$as_me: error: C compiler cannot create executables
2923See \`config.log' for more details." >&2;}
2924   { (exit 77); exit 77; }; }
2925fi
2926
2927ac_exeext=$ac_cv_exeext
2928
2929# Check that the compiler produces executables we can run.  If not, either
2930# the compiler is broken, or we cross compile.
2931{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2932echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2933# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2934# If not cross compiling, check that we can run a simple program.
2935if test "$cross_compiling" != yes; then
2936  if { ac_try='./$ac_file'
2937  { (case "(($ac_try" in
2938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939  *) ac_try_echo=$ac_try;;
2940esac
2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942  (eval "$ac_try") 2>&5
2943  ac_status=$?
2944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); }; }; then
2946    cross_compiling=no
2947  else
2948    if test "$cross_compiling" = maybe; then
2949	cross_compiling=yes
2950    else
2951	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2952If you meant to cross compile, use \`--host'.
2953See \`config.log' for more details." >&5
2954echo "$as_me: error: cannot run C compiled programs.
2955If you meant to cross compile, use \`--host'.
2956See \`config.log' for more details." >&2;}
2957   { (exit 1); exit 1; }; }
2958    fi
2959  fi
2960fi
2961{ echo "$as_me:$LINENO: result: yes" >&5
2962echo "${ECHO_T}yes" >&6; }
2963
2964rm -f a.out a.exe conftest$ac_cv_exeext b.out
2965ac_clean_files=$ac_clean_files_save
2966# Check that the compiler produces executables we can run.  If not, either
2967# the compiler is broken, or we cross compile.
2968{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2969echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2970{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2971echo "${ECHO_T}$cross_compiling" >&6; }
2972
2973{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2974echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2975if { (ac_try="$ac_link"
2976case "(($ac_try" in
2977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978  *) ac_try_echo=$ac_try;;
2979esac
2980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981  (eval "$ac_link") 2>&5
2982  ac_status=$?
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); }; then
2985  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2986# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2987# work properly (i.e., refer to `conftest.exe'), while it won't with
2988# `rm'.
2989for ac_file in conftest.exe conftest conftest.*; do
2990  test -f "$ac_file" || continue
2991  case $ac_file in
2992    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2993    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2994	  break;;
2995    * ) break;;
2996  esac
2997done
2998else
2999  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3000See \`config.log' for more details." >&5
3001echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3002See \`config.log' for more details." >&2;}
3003   { (exit 1); exit 1; }; }
3004fi
3005
3006rm -f conftest$ac_cv_exeext
3007{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3008echo "${ECHO_T}$ac_cv_exeext" >&6; }
3009
3010rm -f conftest.$ac_ext
3011EXEEXT=$ac_cv_exeext
3012ac_exeext=$EXEEXT
3013{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3014echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3015if test "${ac_cv_objext+set}" = set; then
3016  echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
3018  cat >conftest.$ac_ext <<_ACEOF
3019/* confdefs.h.  */
3020_ACEOF
3021cat confdefs.h >>conftest.$ac_ext
3022cat >>conftest.$ac_ext <<_ACEOF
3023/* end confdefs.h.  */
3024
3025int
3026main ()
3027{
3028
3029  ;
3030  return 0;
3031}
3032_ACEOF
3033rm -f conftest.o conftest.obj
3034if { (ac_try="$ac_compile"
3035case "(($ac_try" in
3036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037  *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040  (eval "$ac_compile") 2>&5
3041  ac_status=$?
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); }; then
3044  for ac_file in conftest.o conftest.obj conftest.*; do
3045  test -f "$ac_file" || continue;
3046  case $ac_file in
3047    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3048    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3049       break;;
3050  esac
3051done
3052else
3053  echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3057See \`config.log' for more details." >&5
3058echo "$as_me: error: cannot compute suffix of object files: cannot compile
3059See \`config.log' for more details." >&2;}
3060   { (exit 1); exit 1; }; }
3061fi
3062
3063rm -f conftest.$ac_cv_objext conftest.$ac_ext
3064fi
3065{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3066echo "${ECHO_T}$ac_cv_objext" >&6; }
3067OBJEXT=$ac_cv_objext
3068ac_objext=$OBJEXT
3069{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3070echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3071if test "${ac_cv_c_compiler_gnu+set}" = set; then
3072  echo $ECHO_N "(cached) $ECHO_C" >&6
3073else
3074  cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h.  */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h.  */
3080
3081int
3082main ()
3083{
3084#ifndef __GNUC__
3085       choke me
3086#endif
3087
3088  ;
3089  return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext
3093if { (ac_try="$ac_compile"
3094case "(($ac_try" in
3095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096  *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099  (eval "$ac_compile") 2>conftest.er1
3100  ac_status=$?
3101  grep -v '^ *+' conftest.er1 >conftest.err
3102  rm -f conftest.er1
3103  cat conftest.err >&5
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); } && {
3106	 test -z "$ac_c_werror_flag" ||
3107	 test ! -s conftest.err
3108       } && test -s conftest.$ac_objext; then
3109  ac_compiler_gnu=yes
3110else
3111  echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114	ac_compiler_gnu=no
3115fi
3116
3117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118ac_cv_c_compiler_gnu=$ac_compiler_gnu
3119
3120fi
3121{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3122echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3123GCC=`test $ac_compiler_gnu = yes && echo yes`
3124ac_test_CFLAGS=${CFLAGS+set}
3125ac_save_CFLAGS=$CFLAGS
3126{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3127echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3128if test "${ac_cv_prog_cc_g+set}" = set; then
3129  echo $ECHO_N "(cached) $ECHO_C" >&6
3130else
3131  ac_save_c_werror_flag=$ac_c_werror_flag
3132   ac_c_werror_flag=yes
3133   ac_cv_prog_cc_g=no
3134   CFLAGS="-g"
3135   cat >conftest.$ac_ext <<_ACEOF
3136/* confdefs.h.  */
3137_ACEOF
3138cat confdefs.h >>conftest.$ac_ext
3139cat >>conftest.$ac_ext <<_ACEOF
3140/* end confdefs.h.  */
3141
3142int
3143main ()
3144{
3145
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150rm -f conftest.$ac_objext
3151if { (ac_try="$ac_compile"
3152case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157  (eval "$ac_compile") 2>conftest.er1
3158  ac_status=$?
3159  grep -v '^ *+' conftest.er1 >conftest.err
3160  rm -f conftest.er1
3161  cat conftest.err >&5
3162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); } && {
3164	 test -z "$ac_c_werror_flag" ||
3165	 test ! -s conftest.err
3166       } && test -s conftest.$ac_objext; then
3167  ac_cv_prog_cc_g=yes
3168else
3169  echo "$as_me: failed program was:" >&5
3170sed 's/^/| /' conftest.$ac_ext >&5
3171
3172	CFLAGS=""
3173      cat >conftest.$ac_ext <<_ACEOF
3174/* confdefs.h.  */
3175_ACEOF
3176cat confdefs.h >>conftest.$ac_ext
3177cat >>conftest.$ac_ext <<_ACEOF
3178/* end confdefs.h.  */
3179
3180int
3181main ()
3182{
3183
3184  ;
3185  return 0;
3186}
3187_ACEOF
3188rm -f conftest.$ac_objext
3189if { (ac_try="$ac_compile"
3190case "(($ac_try" in
3191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192  *) ac_try_echo=$ac_try;;
3193esac
3194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195  (eval "$ac_compile") 2>conftest.er1
3196  ac_status=$?
3197  grep -v '^ *+' conftest.er1 >conftest.err
3198  rm -f conftest.er1
3199  cat conftest.err >&5
3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201  (exit $ac_status); } && {
3202	 test -z "$ac_c_werror_flag" ||
3203	 test ! -s conftest.err
3204       } && test -s conftest.$ac_objext; then
3205  :
3206else
3207  echo "$as_me: failed program was:" >&5
3208sed 's/^/| /' conftest.$ac_ext >&5
3209
3210	ac_c_werror_flag=$ac_save_c_werror_flag
3211	 CFLAGS="-g"
3212	 cat >conftest.$ac_ext <<_ACEOF
3213/* confdefs.h.  */
3214_ACEOF
3215cat confdefs.h >>conftest.$ac_ext
3216cat >>conftest.$ac_ext <<_ACEOF
3217/* end confdefs.h.  */
3218
3219int
3220main ()
3221{
3222
3223  ;
3224  return 0;
3225}
3226_ACEOF
3227rm -f conftest.$ac_objext
3228if { (ac_try="$ac_compile"
3229case "(($ac_try" in
3230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231  *) ac_try_echo=$ac_try;;
3232esac
3233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234  (eval "$ac_compile") 2>conftest.er1
3235  ac_status=$?
3236  grep -v '^ *+' conftest.er1 >conftest.err
3237  rm -f conftest.er1
3238  cat conftest.err >&5
3239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240  (exit $ac_status); } && {
3241	 test -z "$ac_c_werror_flag" ||
3242	 test ! -s conftest.err
3243       } && test -s conftest.$ac_objext; then
3244  ac_cv_prog_cc_g=yes
3245else
3246  echo "$as_me: failed program was:" >&5
3247sed 's/^/| /' conftest.$ac_ext >&5
3248
3249
3250fi
3251
3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253fi
3254
3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256fi
3257
3258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259   ac_c_werror_flag=$ac_save_c_werror_flag
3260fi
3261{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3262echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3263if test "$ac_test_CFLAGS" = set; then
3264  CFLAGS=$ac_save_CFLAGS
3265elif test $ac_cv_prog_cc_g = yes; then
3266  if test "$GCC" = yes; then
3267    CFLAGS="-g -O2"
3268  else
3269    CFLAGS="-g"
3270  fi
3271else
3272  if test "$GCC" = yes; then
3273    CFLAGS="-O2"
3274  else
3275    CFLAGS=
3276  fi
3277fi
3278{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3279echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3280if test "${ac_cv_prog_cc_c89+set}" = set; then
3281  echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283  ac_cv_prog_cc_c89=no
3284ac_save_CC=$CC
3285cat >conftest.$ac_ext <<_ACEOF
3286/* confdefs.h.  */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h.  */
3291#include <stdarg.h>
3292#include <stdio.h>
3293#include <sys/types.h>
3294#include <sys/stat.h>
3295/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3296struct buf { int x; };
3297FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298static char *e (p, i)
3299     char **p;
3300     int i;
3301{
3302  return p[i];
3303}
3304static char *f (char * (*g) (char **, int), char **p, ...)
3305{
3306  char *s;
3307  va_list v;
3308  va_start (v,p);
3309  s = g (p, va_arg (v,int));
3310  va_end (v);
3311  return s;
3312}
3313
3314/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3315   function prototypes and stuff, but not '\xHH' hex character constants.
3316   These don't provoke an error unfortunately, instead are silently treated
3317   as 'x'.  The following induces an error, until -std is added to get
3318   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3319   array size at least.  It's necessary to write '\x00'==0 to get something
3320   that's true only with -std.  */
3321int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3322
3323/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324   inside strings and character constants.  */
3325#define FOO(x) 'x'
3326int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3327
3328int test (int i, double x);
3329struct s1 {int (*f) (int a);};
3330struct s2 {int (*f) (double a);};
3331int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3332int argc;
3333char **argv;
3334int
3335main ()
3336{
3337return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3344do
3345  CC="$ac_save_CC $ac_arg"
3346  rm -f conftest.$ac_objext
3347if { (ac_try="$ac_compile"
3348case "(($ac_try" in
3349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350  *) ac_try_echo=$ac_try;;
3351esac
3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353  (eval "$ac_compile") 2>conftest.er1
3354  ac_status=$?
3355  grep -v '^ *+' conftest.er1 >conftest.err
3356  rm -f conftest.er1
3357  cat conftest.err >&5
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); } && {
3360	 test -z "$ac_c_werror_flag" ||
3361	 test ! -s conftest.err
3362       } && test -s conftest.$ac_objext; then
3363  ac_cv_prog_cc_c89=$ac_arg
3364else
3365  echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368
3369fi
3370
3371rm -f core conftest.err conftest.$ac_objext
3372  test "x$ac_cv_prog_cc_c89" != "xno" && break
3373done
3374rm -f conftest.$ac_ext
3375CC=$ac_save_CC
3376
3377fi
3378# AC_CACHE_VAL
3379case "x$ac_cv_prog_cc_c89" in
3380  x)
3381    { echo "$as_me:$LINENO: result: none needed" >&5
3382echo "${ECHO_T}none needed" >&6; } ;;
3383  xno)
3384    { echo "$as_me:$LINENO: result: unsupported" >&5
3385echo "${ECHO_T}unsupported" >&6; } ;;
3386  *)
3387    CC="$CC $ac_cv_prog_cc_c89"
3388    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3389echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3390esac
3391
3392
3393ac_ext=c
3394ac_cpp='$CPP $CPPFLAGS'
3395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398DEPDIR="${am__leading_dot}deps"
3399
3400ac_config_commands="$ac_config_commands depfiles"
3401
3402
3403am_make=${MAKE-make}
3404cat > confinc << 'END'
3405am__doit:
3406	@echo done
3407.PHONY: am__doit
3408END
3409# If we don't find an include directive, just comment out the code.
3410{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3411echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3412am__include="#"
3413am__quote=
3414_am_result=none
3415# First try GNU make style include.
3416echo "include confinc" > confmf
3417# We grep out `Entering directory' and `Leaving directory'
3418# messages which can occur if `w' ends up in MAKEFLAGS.
3419# In particular we don't look at `^make:' because GNU make might
3420# be invoked under some other name (usually "gmake"), in which
3421# case it prints its new name instead of `make'.
3422if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3423   am__include=include
3424   am__quote=
3425   _am_result=GNU
3426fi
3427# Now try BSD make style include.
3428if test "$am__include" = "#"; then
3429   echo '.include "confinc"' > confmf
3430   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3431      am__include=.include
3432      am__quote="\""
3433      _am_result=BSD
3434   fi
3435fi
3436
3437
3438{ echo "$as_me:$LINENO: result: $_am_result" >&5
3439echo "${ECHO_T}$_am_result" >&6; }
3440rm -f confinc confmf
3441
3442# Check whether --enable-dependency-tracking was given.
3443if test "${enable_dependency_tracking+set}" = set; then
3444  enableval=$enable_dependency_tracking;
3445fi
3446
3447if test "x$enable_dependency_tracking" != xno; then
3448  am_depcomp="$ac_aux_dir/depcomp"
3449  AMDEPBACKSLASH='\'
3450fi
3451 if test "x$enable_dependency_tracking" != xno; then
3452  AMDEP_TRUE=
3453  AMDEP_FALSE='#'
3454else
3455  AMDEP_TRUE='#'
3456  AMDEP_FALSE=
3457fi
3458
3459
3460
3461depcc="$CC"   am_compiler_list=
3462
3463{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3464echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3465if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3466  echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3469  # We make a subdir and do the tests there.  Otherwise we can end up
3470  # making bogus files that we don't know about and never remove.  For
3471  # instance it was reported that on HP-UX the gcc test will end up
3472  # making a dummy file named `D' -- because `-MD' means `put the output
3473  # in D'.
3474  mkdir conftest.dir
3475  # Copy depcomp to subdir because otherwise we won't find it if we're
3476  # using a relative directory.
3477  cp "$am_depcomp" conftest.dir
3478  cd conftest.dir
3479  # We will build objects and dependencies in a subdirectory because
3480  # it helps to detect inapplicable dependency modes.  For instance
3481  # both Tru64's cc and ICC support -MD to output dependencies as a
3482  # side effect of compilation, but ICC will put the dependencies in
3483  # the current directory while Tru64 will put them in the object
3484  # directory.
3485  mkdir sub
3486
3487  am_cv_CC_dependencies_compiler_type=none
3488  if test "$am_compiler_list" = ""; then
3489     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3490  fi
3491  for depmode in $am_compiler_list; do
3492    # Setup a source with many dependencies, because some compilers
3493    # like to wrap large dependency lists on column 80 (with \), and
3494    # we should not choose a depcomp mode which is confused by this.
3495    #
3496    # We need to recreate these files for each test, as the compiler may
3497    # overwrite some of them when testing with obscure command lines.
3498    # This happens at least with the AIX C compiler.
3499    : > sub/conftest.c
3500    for i in 1 2 3 4 5 6; do
3501      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3502      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3503      # Solaris 8's {/usr,}/bin/sh.
3504      touch sub/conftst$i.h
3505    done
3506    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3507
3508    case $depmode in
3509    nosideeffect)
3510      # after this tag, mechanisms are not by side-effect, so they'll
3511      # only be used when explicitly requested
3512      if test "x$enable_dependency_tracking" = xyes; then
3513	continue
3514      else
3515	break
3516      fi
3517      ;;
3518    none) break ;;
3519    esac
3520    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3521    # mode.  It turns out that the SunPro C++ compiler does not properly
3522    # handle `-M -o', and we need to detect this.
3523    if depmode=$depmode \
3524       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3525       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3526       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3527         >/dev/null 2>conftest.err &&
3528       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3529       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3530       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3531       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3532      # icc doesn't choke on unknown options, it will just issue warnings
3533      # or remarks (even with -Werror).  So we grep stderr for any message
3534      # that says an option was ignored or not supported.
3535      # When given -MP, icc 7.0 and 7.1 complain thusly:
3536      #   icc: Command line warning: ignoring option '-M'; no argument required
3537      # The diagnosis changed in icc 8.0:
3538      #   icc: Command line remark: option '-MP' not supported
3539      if (grep 'ignoring option' conftest.err ||
3540          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3541        am_cv_CC_dependencies_compiler_type=$depmode
3542        break
3543      fi
3544    fi
3545  done
3546
3547  cd ..
3548  rm -rf conftest.dir
3549else
3550  am_cv_CC_dependencies_compiler_type=none
3551fi
3552
3553fi
3554{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3555echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3556CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3557
3558 if
3559  test "x$enable_dependency_tracking" != xno \
3560  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3561  am__fastdepCC_TRUE=
3562  am__fastdepCC_FALSE='#'
3563else
3564  am__fastdepCC_TRUE='#'
3565  am__fastdepCC_FALSE=
3566fi
3567
3568
3569# Check whether --enable-shared was given.
3570if test "${enable_shared+set}" = set; then
3571  enableval=$enable_shared; p=${PACKAGE-default}
3572    case $enableval in
3573    yes) enable_shared=yes ;;
3574    no) enable_shared=no ;;
3575    *)
3576      enable_shared=no
3577      # Look at the argument we got.  We use all the common list separators.
3578      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3579      for pkg in $enableval; do
3580	IFS="$lt_save_ifs"
3581	if test "X$pkg" = "X$p"; then
3582	  enable_shared=yes
3583	fi
3584      done
3585      IFS="$lt_save_ifs"
3586      ;;
3587    esac
3588else
3589  enable_shared=yes
3590fi
3591
3592
3593# Check whether --enable-static was given.
3594if test "${enable_static+set}" = set; then
3595  enableval=$enable_static; p=${PACKAGE-default}
3596    case $enableval in
3597    yes) enable_static=yes ;;
3598    no) enable_static=no ;;
3599    *)
3600     enable_static=no
3601      # Look at the argument we got.  We use all the common list separators.
3602      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3603      for pkg in $enableval; do
3604	IFS="$lt_save_ifs"
3605	if test "X$pkg" = "X$p"; then
3606	  enable_static=yes
3607	fi
3608      done
3609      IFS="$lt_save_ifs"
3610      ;;
3611    esac
3612else
3613  enable_static=yes
3614fi
3615
3616
3617# Check whether --enable-fast-install was given.
3618if test "${enable_fast_install+set}" = set; then
3619  enableval=$enable_fast_install; p=${PACKAGE-default}
3620    case $enableval in
3621    yes) enable_fast_install=yes ;;
3622    no) enable_fast_install=no ;;
3623    *)
3624      enable_fast_install=no
3625      # Look at the argument we got.  We use all the common list separators.
3626      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3627      for pkg in $enableval; do
3628	IFS="$lt_save_ifs"
3629	if test "X$pkg" = "X$p"; then
3630	  enable_fast_install=yes
3631	fi
3632      done
3633      IFS="$lt_save_ifs"
3634      ;;
3635    esac
3636else
3637  enable_fast_install=yes
3638fi
3639
3640
3641# Make sure we can run config.sub.
3642$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3643  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3644echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3645   { (exit 1); exit 1; }; }
3646
3647{ echo "$as_me:$LINENO: checking build system type" >&5
3648echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3649if test "${ac_cv_build+set}" = set; then
3650  echo $ECHO_N "(cached) $ECHO_C" >&6
3651else
3652  ac_build_alias=$build_alias
3653test "x$ac_build_alias" = x &&
3654  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3655test "x$ac_build_alias" = x &&
3656  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3657echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3658   { (exit 1); exit 1; }; }
3659ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3660  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3661echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3662   { (exit 1); exit 1; }; }
3663
3664fi
3665{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3666echo "${ECHO_T}$ac_cv_build" >&6; }
3667case $ac_cv_build in
3668*-*-*) ;;
3669*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3670echo "$as_me: error: invalid value of canonical build" >&2;}
3671   { (exit 1); exit 1; }; };;
3672esac
3673build=$ac_cv_build
3674ac_save_IFS=$IFS; IFS='-'
3675set x $ac_cv_build
3676shift
3677build_cpu=$1
3678build_vendor=$2
3679shift; shift
3680# Remember, the first character of IFS is used to create $*,
3681# except with old shells:
3682build_os=$*
3683IFS=$ac_save_IFS
3684case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3685
3686
3687{ echo "$as_me:$LINENO: checking host system type" >&5
3688echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3689if test "${ac_cv_host+set}" = set; then
3690  echo $ECHO_N "(cached) $ECHO_C" >&6
3691else
3692  if test "x$host_alias" = x; then
3693  ac_cv_host=$ac_cv_build
3694else
3695  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3696    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3697echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3698   { (exit 1); exit 1; }; }
3699fi
3700
3701fi
3702{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3703echo "${ECHO_T}$ac_cv_host" >&6; }
3704case $ac_cv_host in
3705*-*-*) ;;
3706*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3707echo "$as_me: error: invalid value of canonical host" >&2;}
3708   { (exit 1); exit 1; }; };;
3709esac
3710host=$ac_cv_host
3711ac_save_IFS=$IFS; IFS='-'
3712set x $ac_cv_host
3713shift
3714host_cpu=$1
3715host_vendor=$2
3716shift; shift
3717# Remember, the first character of IFS is used to create $*,
3718# except with old shells:
3719host_os=$*
3720IFS=$ac_save_IFS
3721case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3722
3723
3724{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3725echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3726if test "${lt_cv_path_SED+set}" = set; then
3727  echo $ECHO_N "(cached) $ECHO_C" >&6
3728else
3729  # Loop through the user's path and test for sed and gsed.
3730# Then use that list of sed's as ones to test for truncation.
3731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732for as_dir in $PATH
3733do
3734  IFS=$as_save_IFS
3735  test -z "$as_dir" && as_dir=.
3736  for lt_ac_prog in sed gsed; do
3737    for ac_exec_ext in '' $ac_executable_extensions; do
3738      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3739        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3740      fi
3741    done
3742  done
3743done
3744lt_ac_max=0
3745lt_ac_count=0
3746# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3747# along with /bin/sed that truncates output.
3748for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3749  test ! -f $lt_ac_sed && continue
3750  cat /dev/null > conftest.in
3751  lt_ac_count=0
3752  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3753  # Check for GNU sed and select it if it is found.
3754  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3755    lt_cv_path_SED=$lt_ac_sed
3756    break
3757  fi
3758  while true; do
3759    cat conftest.in conftest.in >conftest.tmp
3760    mv conftest.tmp conftest.in
3761    cp conftest.in conftest.nl
3762    echo >>conftest.nl
3763    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3764    cmp -s conftest.out conftest.nl || break
3765    # 10000 chars as input seems more than enough
3766    test $lt_ac_count -gt 10 && break
3767    lt_ac_count=`expr $lt_ac_count + 1`
3768    if test $lt_ac_count -gt $lt_ac_max; then
3769      lt_ac_max=$lt_ac_count
3770      lt_cv_path_SED=$lt_ac_sed
3771    fi
3772  done
3773done
3774
3775fi
3776
3777SED=$lt_cv_path_SED
3778{ echo "$as_me:$LINENO: result: $SED" >&5
3779echo "${ECHO_T}$SED" >&6; }
3780
3781{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3782echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3783if test "${ac_cv_path_GREP+set}" = set; then
3784  echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786  # Extract the first word of "grep ggrep" to use in msg output
3787if test -z "$GREP"; then
3788set dummy grep ggrep; ac_prog_name=$2
3789if test "${ac_cv_path_GREP+set}" = set; then
3790  echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792  ac_path_GREP_found=false
3793# Loop through the user's path and test for each of PROGNAME-LIST
3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3796do
3797  IFS=$as_save_IFS
3798  test -z "$as_dir" && as_dir=.
3799  for ac_prog in grep ggrep; do
3800  for ac_exec_ext in '' $ac_executable_extensions; do
3801    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3802    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3803    # Check for GNU ac_path_GREP and select it if it is found.
3804  # Check for GNU $ac_path_GREP
3805case `"$ac_path_GREP" --version 2>&1` in
3806*GNU*)
3807  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3808*)
3809  ac_count=0
3810  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3811  while :
3812  do
3813    cat "conftest.in" "conftest.in" >"conftest.tmp"
3814    mv "conftest.tmp" "conftest.in"
3815    cp "conftest.in" "conftest.nl"
3816    echo 'GREP' >> "conftest.nl"
3817    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3818    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3819    ac_count=`expr $ac_count + 1`
3820    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3821      # Best one so far, save it but keep looking for a better one
3822      ac_cv_path_GREP="$ac_path_GREP"
3823      ac_path_GREP_max=$ac_count
3824    fi
3825    # 10*(2^10) chars as input seems more than enough
3826    test $ac_count -gt 10 && break
3827  done
3828  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3829esac
3830
3831
3832    $ac_path_GREP_found && break 3
3833  done
3834done
3835
3836done
3837IFS=$as_save_IFS
3838
3839
3840fi
3841
3842GREP="$ac_cv_path_GREP"
3843if test -z "$GREP"; then
3844  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3845echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3846   { (exit 1); exit 1; }; }
3847fi
3848
3849else
3850  ac_cv_path_GREP=$GREP
3851fi
3852
3853
3854fi
3855{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3856echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3857 GREP="$ac_cv_path_GREP"
3858
3859
3860{ echo "$as_me:$LINENO: checking for egrep" >&5
3861echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3862if test "${ac_cv_path_EGREP+set}" = set; then
3863  echo $ECHO_N "(cached) $ECHO_C" >&6
3864else
3865  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3866   then ac_cv_path_EGREP="$GREP -E"
3867   else
3868     # Extract the first word of "egrep" to use in msg output
3869if test -z "$EGREP"; then
3870set dummy egrep; ac_prog_name=$2
3871if test "${ac_cv_path_EGREP+set}" = set; then
3872  echo $ECHO_N "(cached) $ECHO_C" >&6
3873else
3874  ac_path_EGREP_found=false
3875# Loop through the user's path and test for each of PROGNAME-LIST
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3878do
3879  IFS=$as_save_IFS
3880  test -z "$as_dir" && as_dir=.
3881  for ac_prog in egrep; do
3882  for ac_exec_ext in '' $ac_executable_extensions; do
3883    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3884    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3885    # Check for GNU ac_path_EGREP and select it if it is found.
3886  # Check for GNU $ac_path_EGREP
3887case `"$ac_path_EGREP" --version 2>&1` in
3888*GNU*)
3889  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3890*)
3891  ac_count=0
3892  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3893  while :
3894  do
3895    cat "conftest.in" "conftest.in" >"conftest.tmp"
3896    mv "conftest.tmp" "conftest.in"
3897    cp "conftest.in" "conftest.nl"
3898    echo 'EGREP' >> "conftest.nl"
3899    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901    ac_count=`expr $ac_count + 1`
3902    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3903      # Best one so far, save it but keep looking for a better one
3904      ac_cv_path_EGREP="$ac_path_EGREP"
3905      ac_path_EGREP_max=$ac_count
3906    fi
3907    # 10*(2^10) chars as input seems more than enough
3908    test $ac_count -gt 10 && break
3909  done
3910  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3911esac
3912
3913
3914    $ac_path_EGREP_found && break 3
3915  done
3916done
3917
3918done
3919IFS=$as_save_IFS
3920
3921
3922fi
3923
3924EGREP="$ac_cv_path_EGREP"
3925if test -z "$EGREP"; then
3926  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3927echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3928   { (exit 1); exit 1; }; }
3929fi
3930
3931else
3932  ac_cv_path_EGREP=$EGREP
3933fi
3934
3935
3936   fi
3937fi
3938{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3939echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3940 EGREP="$ac_cv_path_EGREP"
3941
3942
3943
3944# Check whether --with-gnu-ld was given.
3945if test "${with_gnu_ld+set}" = set; then
3946  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3947else
3948  with_gnu_ld=no
3949fi
3950
3951ac_prog=ld
3952if test "$GCC" = yes; then
3953  # Check if gcc -print-prog-name=ld gives a path.
3954  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3955echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3956  case $host in
3957  *-*-mingw*)
3958    # gcc leaves a trailing carriage return which upsets mingw
3959    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3960  *)
3961    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3962  esac
3963  case $ac_prog in
3964    # Accept absolute paths.
3965    [\\/]* | ?:[\\/]*)
3966      re_direlt='/[^/][^/]*/\.\./'
3967      # Canonicalize the pathname of ld
3968      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3969      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3970	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3971      done
3972      test -z "$LD" && LD="$ac_prog"
3973      ;;
3974  "")
3975    # If it fails, then pretend we aren't using GCC.
3976    ac_prog=ld
3977    ;;
3978  *)
3979    # If it is relative, then search for the first ld in PATH.
3980    with_gnu_ld=unknown
3981    ;;
3982  esac
3983elif test "$with_gnu_ld" = yes; then
3984  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3985echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3986else
3987  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3988echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3989fi
3990if test "${lt_cv_path_LD+set}" = set; then
3991  echo $ECHO_N "(cached) $ECHO_C" >&6
3992else
3993  if test -z "$LD"; then
3994  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3995  for ac_dir in $PATH; do
3996    IFS="$lt_save_ifs"
3997    test -z "$ac_dir" && ac_dir=.
3998    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3999      lt_cv_path_LD="$ac_dir/$ac_prog"
4000      # Check to see if the program is GNU ld.  I'd rather use --version,
4001      # but apparently some variants of GNU ld only accept -v.
4002      # Break only if it was the GNU/non-GNU ld that we prefer.
4003      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4004      *GNU* | *'with BFD'*)
4005	test "$with_gnu_ld" != no && break
4006	;;
4007      *)
4008	test "$with_gnu_ld" != yes && break
4009	;;
4010      esac
4011    fi
4012  done
4013  IFS="$lt_save_ifs"
4014else
4015  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4016fi
4017fi
4018
4019LD="$lt_cv_path_LD"
4020if test -n "$LD"; then
4021  { echo "$as_me:$LINENO: result: $LD" >&5
4022echo "${ECHO_T}$LD" >&6; }
4023else
4024  { echo "$as_me:$LINENO: result: no" >&5
4025echo "${ECHO_T}no" >&6; }
4026fi
4027test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4028echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4029   { (exit 1); exit 1; }; }
4030{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4031echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4032if test "${lt_cv_prog_gnu_ld+set}" = set; then
4033  echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4036case `$LD -v 2>&1 </dev/null` in
4037*GNU* | *'with BFD'*)
4038  lt_cv_prog_gnu_ld=yes
4039  ;;
4040*)
4041  lt_cv_prog_gnu_ld=no
4042  ;;
4043esac
4044fi
4045{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4046echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4047with_gnu_ld=$lt_cv_prog_gnu_ld
4048
4049
4050{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4051echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4052if test "${lt_cv_ld_reload_flag+set}" = set; then
4053  echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
4055  lt_cv_ld_reload_flag='-r'
4056fi
4057{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4058echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4059reload_flag=$lt_cv_ld_reload_flag
4060case $reload_flag in
4061"" | " "*) ;;
4062*) reload_flag=" $reload_flag" ;;
4063esac
4064reload_cmds='$LD$reload_flag -o $output$reload_objs'
4065case $host_os in
4066  darwin*)
4067    if test "$GCC" = yes; then
4068      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4069    else
4070      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4071    fi
4072    ;;
4073esac
4074
4075{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4076echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4077if test "${lt_cv_path_NM+set}" = set; then
4078  echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
4080  if test -n "$NM"; then
4081  # Let the user override the test.
4082  lt_cv_path_NM="$NM"
4083else
4084  lt_nm_to_check="${ac_tool_prefix}nm"
4085  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4086    lt_nm_to_check="$lt_nm_to_check nm"
4087  fi
4088  for lt_tmp_nm in $lt_nm_to_check; do
4089    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4090    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4091      IFS="$lt_save_ifs"
4092      test -z "$ac_dir" && ac_dir=.
4093      tmp_nm="$ac_dir/$lt_tmp_nm"
4094      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4095	# Check to see if the nm accepts a BSD-compat flag.
4096	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4097	#   nm: unknown option "B" ignored
4098	# Tru64's nm complains that /dev/null is an invalid object file
4099	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4100	*/dev/null* | *'Invalid file or object type'*)
4101	  lt_cv_path_NM="$tmp_nm -B"
4102	  break
4103	  ;;
4104	*)
4105	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4106	  */dev/null*)
4107	    lt_cv_path_NM="$tmp_nm -p"
4108	    break
4109	    ;;
4110	  *)
4111	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4112	    continue # so that we can try to find one that supports BSD flags
4113	    ;;
4114	  esac
4115	  ;;
4116	esac
4117      fi
4118    done
4119    IFS="$lt_save_ifs"
4120  done
4121  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4122fi
4123fi
4124{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4125echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4126NM="$lt_cv_path_NM"
4127
4128{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4129echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4130LN_S=$as_ln_s
4131if test "$LN_S" = "ln -s"; then
4132  { echo "$as_me:$LINENO: result: yes" >&5
4133echo "${ECHO_T}yes" >&6; }
4134else
4135  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4136echo "${ECHO_T}no, using $LN_S" >&6; }
4137fi
4138
4139{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4140echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4141if test "${lt_cv_deplibs_check_method+set}" = set; then
4142  echo $ECHO_N "(cached) $ECHO_C" >&6
4143else
4144  lt_cv_file_magic_cmd='$MAGIC_CMD'
4145lt_cv_file_magic_test_file=
4146lt_cv_deplibs_check_method='unknown'
4147# Need to set the preceding variable on all platforms that support
4148# interlibrary dependencies.
4149# 'none' -- dependencies not supported.
4150# `unknown' -- same as none, but documents that we really don't know.
4151# 'pass_all' -- all dependencies passed with no checks.
4152# 'test_compile' -- check by making test program.
4153# 'file_magic [[regex]]' -- check by looking for files in library path
4154# which responds to the $file_magic_cmd with a given extended regex.
4155# If you have `file' or equivalent on your system and you're not sure
4156# whether `pass_all' will *always* work, you probably want this one.
4157
4158case $host_os in
4159aix4* | aix5*)
4160  lt_cv_deplibs_check_method=pass_all
4161  ;;
4162
4163beos*)
4164  lt_cv_deplibs_check_method=pass_all
4165  ;;
4166
4167bsdi[45]*)
4168  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4169  lt_cv_file_magic_cmd='/usr/bin/file -L'
4170  lt_cv_file_magic_test_file=/shlib/libc.so
4171  ;;
4172
4173cygwin*)
4174  # func_win32_libid is a shell function defined in ltmain.sh
4175  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4176  lt_cv_file_magic_cmd='func_win32_libid'
4177  ;;
4178
4179mingw* | pw32*)
4180  # Base MSYS/MinGW do not provide the 'file' command needed by
4181  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4182  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4183  lt_cv_file_magic_cmd='$OBJDUMP -f'
4184  ;;
4185
4186darwin* | rhapsody*)
4187  lt_cv_deplibs_check_method=pass_all
4188  ;;
4189
4190freebsd* | kfreebsd*-gnu | dragonfly*)
4191  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4192    case $host_cpu in
4193    i*86 )
4194      # Not sure whether the presence of OpenBSD here was a mistake.
4195      # Let's accept both of them until this is cleared up.
4196      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4197      lt_cv_file_magic_cmd=/usr/bin/file
4198      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4199      ;;
4200    esac
4201  else
4202    lt_cv_deplibs_check_method=pass_all
4203  fi
4204  ;;
4205
4206gnu*)
4207  lt_cv_deplibs_check_method=pass_all
4208  ;;
4209
4210hpux10.20* | hpux11*)
4211  lt_cv_file_magic_cmd=/usr/bin/file
4212  case $host_cpu in
4213  ia64*)
4214    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4215    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4216    ;;
4217  hppa*64*)
4218    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]'
4219    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4220    ;;
4221  *)
4222    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4223    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4224    ;;
4225  esac
4226  ;;
4227
4228interix3*)
4229  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4230  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4231  ;;
4232
4233irix5* | irix6* | nonstopux*)
4234  case $LD in
4235  *-32|*"-32 ") libmagic=32-bit;;
4236  *-n32|*"-n32 ") libmagic=N32;;
4237  *-64|*"-64 ") libmagic=64-bit;;
4238  *) libmagic=never-match;;
4239  esac
4240  lt_cv_deplibs_check_method=pass_all
4241  ;;
4242
4243# This must be Linux ELF.
4244linux*)
4245  lt_cv_deplibs_check_method=pass_all
4246  ;;
4247
4248netbsd*)
4249  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4250    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4251  else
4252    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4253  fi
4254  ;;
4255
4256newos6*)
4257  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4258  lt_cv_file_magic_cmd=/usr/bin/file
4259  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4260  ;;
4261
4262nto-qnx*)
4263  lt_cv_deplibs_check_method=unknown
4264  ;;
4265
4266openbsd*)
4267  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4268    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4269  else
4270    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4271  fi
4272  ;;
4273
4274osf3* | osf4* | osf5*)
4275  lt_cv_deplibs_check_method=pass_all
4276  ;;
4277
4278solaris*)
4279  lt_cv_deplibs_check_method=pass_all
4280  ;;
4281
4282sysv4 | sysv4.3*)
4283  case $host_vendor in
4284  motorola)
4285    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]'
4286    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4287    ;;
4288  ncr)
4289    lt_cv_deplibs_check_method=pass_all
4290    ;;
4291  sequent)
4292    lt_cv_file_magic_cmd='/bin/file'
4293    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4294    ;;
4295  sni)
4296    lt_cv_file_magic_cmd='/bin/file'
4297    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4298    lt_cv_file_magic_test_file=/lib/libc.so
4299    ;;
4300  siemens)
4301    lt_cv_deplibs_check_method=pass_all
4302    ;;
4303  pc)
4304    lt_cv_deplibs_check_method=pass_all
4305    ;;
4306  esac
4307  ;;
4308
4309sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4310  lt_cv_deplibs_check_method=pass_all
4311  ;;
4312esac
4313
4314fi
4315{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4316echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4317file_magic_cmd=$lt_cv_file_magic_cmd
4318deplibs_check_method=$lt_cv_deplibs_check_method
4319test -z "$deplibs_check_method" && deplibs_check_method=unknown
4320
4321
4322
4323
4324# If no C compiler was specified, use CC.
4325LTCC=${LTCC-"$CC"}
4326
4327# If no C compiler flags were specified, use CFLAGS.
4328LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4329
4330# Allow CC to be a program name with arguments.
4331compiler=$CC
4332
4333
4334# Check whether --enable-libtool-lock was given.
4335if test "${enable_libtool_lock+set}" = set; then
4336  enableval=$enable_libtool_lock;
4337fi
4338
4339test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4340
4341# Some flags need to be propagated to the compiler or linker for good
4342# libtool support.
4343case $host in
4344ia64-*-hpux*)
4345  # Find out which ABI we are using.
4346  echo 'int i;' > conftest.$ac_ext
4347  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348  (eval $ac_compile) 2>&5
4349  ac_status=$?
4350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351  (exit $ac_status); }; then
4352    case `/usr/bin/file conftest.$ac_objext` in
4353    *ELF-32*)
4354      HPUX_IA64_MODE="32"
4355      ;;
4356    *ELF-64*)
4357      HPUX_IA64_MODE="64"
4358      ;;
4359    esac
4360  fi
4361  rm -rf conftest*
4362  ;;
4363*-*-irix6*)
4364  # Find out which ABI we are using.
4365  echo '#line 4365 "configure"' > conftest.$ac_ext
4366  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367  (eval $ac_compile) 2>&5
4368  ac_status=$?
4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370  (exit $ac_status); }; then
4371   if test "$lt_cv_prog_gnu_ld" = yes; then
4372    case `/usr/bin/file conftest.$ac_objext` in
4373    *32-bit*)
4374      LD="${LD-ld} -melf32bsmip"
4375      ;;
4376    *N32*)
4377      LD="${LD-ld} -melf32bmipn32"
4378      ;;
4379    *64-bit*)
4380      LD="${LD-ld} -melf64bmip"
4381      ;;
4382    esac
4383   else
4384    case `/usr/bin/file conftest.$ac_objext` in
4385    *32-bit*)
4386      LD="${LD-ld} -32"
4387      ;;
4388    *N32*)
4389      LD="${LD-ld} -n32"
4390      ;;
4391    *64-bit*)
4392      LD="${LD-ld} -64"
4393      ;;
4394    esac
4395   fi
4396  fi
4397  rm -rf conftest*
4398  ;;
4399
4400x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4401  # Find out which ABI we are using.
4402  echo 'int i;' > conftest.$ac_ext
4403  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404  (eval $ac_compile) 2>&5
4405  ac_status=$?
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); }; then
4408    case `/usr/bin/file conftest.o` in
4409    *32-bit*)
4410      case $host in
4411        x86_64-*linux*)
4412          LD="${LD-ld} -m elf_i386"
4413          ;;
4414        ppc64-*linux*|powerpc64-*linux*)
4415          LD="${LD-ld} -m elf32ppclinux"
4416          ;;
4417        s390x-*linux*)
4418          LD="${LD-ld} -m elf_s390"
4419          ;;
4420        sparc64-*linux*)
4421          LD="${LD-ld} -m elf32_sparc"
4422          ;;
4423      esac
4424      ;;
4425    *64-bit*)
4426      case $host in
4427        x86_64-*linux*)
4428          LD="${LD-ld} -m elf_x86_64"
4429          ;;
4430        ppc*-*linux*|powerpc*-*linux*)
4431          LD="${LD-ld} -m elf64ppc"
4432          ;;
4433        s390*-*linux*)
4434          LD="${LD-ld} -m elf64_s390"
4435          ;;
4436        sparc*-*linux*)
4437          LD="${LD-ld} -m elf64_sparc"
4438          ;;
4439      esac
4440      ;;
4441    esac
4442  fi
4443  rm -rf conftest*
4444  ;;
4445
4446*-*-sco3.2v5*)
4447  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4448  SAVE_CFLAGS="$CFLAGS"
4449  CFLAGS="$CFLAGS -belf"
4450  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4451echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4452if test "${lt_cv_cc_needs_belf+set}" = set; then
4453  echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455  ac_ext=c
4456ac_cpp='$CPP $CPPFLAGS'
4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461     cat >conftest.$ac_ext <<_ACEOF
4462/* confdefs.h.  */
4463_ACEOF
4464cat confdefs.h >>conftest.$ac_ext
4465cat >>conftest.$ac_ext <<_ACEOF
4466/* end confdefs.h.  */
4467
4468int
4469main ()
4470{
4471
4472  ;
4473  return 0;
4474}
4475_ACEOF
4476rm -f conftest.$ac_objext conftest$ac_exeext
4477if { (ac_try="$ac_link"
4478case "(($ac_try" in
4479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480  *) ac_try_echo=$ac_try;;
4481esac
4482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483  (eval "$ac_link") 2>conftest.er1
4484  ac_status=$?
4485  grep -v '^ *+' conftest.er1 >conftest.err
4486  rm -f conftest.er1
4487  cat conftest.err >&5
4488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489  (exit $ac_status); } && {
4490	 test -z "$ac_c_werror_flag" ||
4491	 test ! -s conftest.err
4492       } && test -s conftest$ac_exeext &&
4493       $as_test_x conftest$ac_exeext; then
4494  lt_cv_cc_needs_belf=yes
4495else
4496  echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499	lt_cv_cc_needs_belf=no
4500fi
4501
4502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4503      conftest$ac_exeext conftest.$ac_ext
4504     ac_ext=c
4505ac_cpp='$CPP $CPPFLAGS'
4506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509
4510fi
4511{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4512echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4513  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4514    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4515    CFLAGS="$SAVE_CFLAGS"
4516  fi
4517  ;;
4518sparc*-*solaris*)
4519  # Find out which ABI we are using.
4520  echo 'int i;' > conftest.$ac_ext
4521  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4522  (eval $ac_compile) 2>&5
4523  ac_status=$?
4524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525  (exit $ac_status); }; then
4526    case `/usr/bin/file conftest.o` in
4527    *64-bit*)
4528      case $lt_cv_prog_gnu_ld in
4529      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4530      *)    LD="${LD-ld} -64" ;;
4531      esac
4532      ;;
4533    esac
4534  fi
4535  rm -rf conftest*
4536  ;;
4537
4538
4539esac
4540
4541need_locks="$enable_libtool_lock"
4542
4543
4544ac_ext=c
4545ac_cpp='$CPP $CPPFLAGS'
4546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4550echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4551# On Suns, sometimes $CPP names a directory.
4552if test -n "$CPP" && test -d "$CPP"; then
4553  CPP=
4554fi
4555if test -z "$CPP"; then
4556  if test "${ac_cv_prog_CPP+set}" = set; then
4557  echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
4559      # Double quotes because CPP needs to be expanded
4560    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4561    do
4562      ac_preproc_ok=false
4563for ac_c_preproc_warn_flag in '' yes
4564do
4565  # Use a header file that comes with gcc, so configuring glibc
4566  # with a fresh cross-compiler works.
4567  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4568  # <limits.h> exists even on freestanding compilers.
4569  # On the NeXT, cc -E runs the code through the compiler's parser,
4570  # not just through cpp. "Syntax error" is here to catch this case.
4571  cat >conftest.$ac_ext <<_ACEOF
4572/* confdefs.h.  */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h.  */
4577#ifdef __STDC__
4578# include <limits.h>
4579#else
4580# include <assert.h>
4581#endif
4582		     Syntax error
4583_ACEOF
4584if { (ac_try="$ac_cpp conftest.$ac_ext"
4585case "(($ac_try" in
4586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587  *) ac_try_echo=$ac_try;;
4588esac
4589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4591  ac_status=$?
4592  grep -v '^ *+' conftest.er1 >conftest.err
4593  rm -f conftest.er1
4594  cat conftest.err >&5
4595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596  (exit $ac_status); } >/dev/null && {
4597	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4598	 test ! -s conftest.err
4599       }; then
4600  :
4601else
4602  echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605  # Broken: fails on valid input.
4606continue
4607fi
4608
4609rm -f conftest.err conftest.$ac_ext
4610
4611  # OK, works on sane cases.  Now check whether nonexistent headers
4612  # can be detected and how.
4613  cat >conftest.$ac_ext <<_ACEOF
4614/* confdefs.h.  */
4615_ACEOF
4616cat confdefs.h >>conftest.$ac_ext
4617cat >>conftest.$ac_ext <<_ACEOF
4618/* end confdefs.h.  */
4619#include <ac_nonexistent.h>
4620_ACEOF
4621if { (ac_try="$ac_cpp conftest.$ac_ext"
4622case "(($ac_try" in
4623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624  *) ac_try_echo=$ac_try;;
4625esac
4626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4628  ac_status=$?
4629  grep -v '^ *+' conftest.er1 >conftest.err
4630  rm -f conftest.er1
4631  cat conftest.err >&5
4632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633  (exit $ac_status); } >/dev/null && {
4634	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4635	 test ! -s conftest.err
4636       }; then
4637  # Broken: success on invalid input.
4638continue
4639else
4640  echo "$as_me: failed program was:" >&5
4641sed 's/^/| /' conftest.$ac_ext >&5
4642
4643  # Passes both tests.
4644ac_preproc_ok=:
4645break
4646fi
4647
4648rm -f conftest.err conftest.$ac_ext
4649
4650done
4651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4652rm -f conftest.err conftest.$ac_ext
4653if $ac_preproc_ok; then
4654  break
4655fi
4656
4657    done
4658    ac_cv_prog_CPP=$CPP
4659
4660fi
4661  CPP=$ac_cv_prog_CPP
4662else
4663  ac_cv_prog_CPP=$CPP
4664fi
4665{ echo "$as_me:$LINENO: result: $CPP" >&5
4666echo "${ECHO_T}$CPP" >&6; }
4667ac_preproc_ok=false
4668for ac_c_preproc_warn_flag in '' yes
4669do
4670  # Use a header file that comes with gcc, so configuring glibc
4671  # with a fresh cross-compiler works.
4672  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4673  # <limits.h> exists even on freestanding compilers.
4674  # On the NeXT, cc -E runs the code through the compiler's parser,
4675  # not just through cpp. "Syntax error" is here to catch this case.
4676  cat >conftest.$ac_ext <<_ACEOF
4677/* confdefs.h.  */
4678_ACEOF
4679cat confdefs.h >>conftest.$ac_ext
4680cat >>conftest.$ac_ext <<_ACEOF
4681/* end confdefs.h.  */
4682#ifdef __STDC__
4683# include <limits.h>
4684#else
4685# include <assert.h>
4686#endif
4687		     Syntax error
4688_ACEOF
4689if { (ac_try="$ac_cpp conftest.$ac_ext"
4690case "(($ac_try" in
4691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692  *) ac_try_echo=$ac_try;;
4693esac
4694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4696  ac_status=$?
4697  grep -v '^ *+' conftest.er1 >conftest.err
4698  rm -f conftest.er1
4699  cat conftest.err >&5
4700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701  (exit $ac_status); } >/dev/null && {
4702	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4703	 test ! -s conftest.err
4704       }; then
4705  :
4706else
4707  echo "$as_me: failed program was:" >&5
4708sed 's/^/| /' conftest.$ac_ext >&5
4709
4710  # Broken: fails on valid input.
4711continue
4712fi
4713
4714rm -f conftest.err conftest.$ac_ext
4715
4716  # OK, works on sane cases.  Now check whether nonexistent headers
4717  # can be detected and how.
4718  cat >conftest.$ac_ext <<_ACEOF
4719/* confdefs.h.  */
4720_ACEOF
4721cat confdefs.h >>conftest.$ac_ext
4722cat >>conftest.$ac_ext <<_ACEOF
4723/* end confdefs.h.  */
4724#include <ac_nonexistent.h>
4725_ACEOF
4726if { (ac_try="$ac_cpp conftest.$ac_ext"
4727case "(($ac_try" in
4728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729  *) ac_try_echo=$ac_try;;
4730esac
4731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4733  ac_status=$?
4734  grep -v '^ *+' conftest.er1 >conftest.err
4735  rm -f conftest.er1
4736  cat conftest.err >&5
4737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738  (exit $ac_status); } >/dev/null && {
4739	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4740	 test ! -s conftest.err
4741       }; then
4742  # Broken: success on invalid input.
4743continue
4744else
4745  echo "$as_me: failed program was:" >&5
4746sed 's/^/| /' conftest.$ac_ext >&5
4747
4748  # Passes both tests.
4749ac_preproc_ok=:
4750break
4751fi
4752
4753rm -f conftest.err conftest.$ac_ext
4754
4755done
4756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4757rm -f conftest.err conftest.$ac_ext
4758if $ac_preproc_ok; then
4759  :
4760else
4761  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4762See \`config.log' for more details." >&5
4763echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4764See \`config.log' for more details." >&2;}
4765   { (exit 1); exit 1; }; }
4766fi
4767
4768ac_ext=c
4769ac_cpp='$CPP $CPPFLAGS'
4770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773
4774
4775{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4776echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4777if test "${ac_cv_header_stdc+set}" = set; then
4778  echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780  cat >conftest.$ac_ext <<_ACEOF
4781/* confdefs.h.  */
4782_ACEOF
4783cat confdefs.h >>conftest.$ac_ext
4784cat >>conftest.$ac_ext <<_ACEOF
4785/* end confdefs.h.  */
4786#include <stdlib.h>
4787#include <stdarg.h>
4788#include <string.h>
4789#include <float.h>
4790
4791int
4792main ()
4793{
4794
4795  ;
4796  return 0;
4797}
4798_ACEOF
4799rm -f conftest.$ac_objext
4800if { (ac_try="$ac_compile"
4801case "(($ac_try" in
4802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803  *) ac_try_echo=$ac_try;;
4804esac
4805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806  (eval "$ac_compile") 2>conftest.er1
4807  ac_status=$?
4808  grep -v '^ *+' conftest.er1 >conftest.err
4809  rm -f conftest.er1
4810  cat conftest.err >&5
4811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812  (exit $ac_status); } && {
4813	 test -z "$ac_c_werror_flag" ||
4814	 test ! -s conftest.err
4815       } && test -s conftest.$ac_objext; then
4816  ac_cv_header_stdc=yes
4817else
4818  echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821	ac_cv_header_stdc=no
4822fi
4823
4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825
4826if test $ac_cv_header_stdc = yes; then
4827  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4828  cat >conftest.$ac_ext <<_ACEOF
4829/* confdefs.h.  */
4830_ACEOF
4831cat confdefs.h >>conftest.$ac_ext
4832cat >>conftest.$ac_ext <<_ACEOF
4833/* end confdefs.h.  */
4834#include <string.h>
4835
4836_ACEOF
4837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838  $EGREP "memchr" >/dev/null 2>&1; then
4839  :
4840else
4841  ac_cv_header_stdc=no
4842fi
4843rm -f conftest*
4844
4845fi
4846
4847if test $ac_cv_header_stdc = yes; then
4848  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4849  cat >conftest.$ac_ext <<_ACEOF
4850/* confdefs.h.  */
4851_ACEOF
4852cat confdefs.h >>conftest.$ac_ext
4853cat >>conftest.$ac_ext <<_ACEOF
4854/* end confdefs.h.  */
4855#include <stdlib.h>
4856
4857_ACEOF
4858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4859  $EGREP "free" >/dev/null 2>&1; then
4860  :
4861else
4862  ac_cv_header_stdc=no
4863fi
4864rm -f conftest*
4865
4866fi
4867
4868if test $ac_cv_header_stdc = yes; then
4869  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4870  if test "$cross_compiling" = yes; then
4871  :
4872else
4873  cat >conftest.$ac_ext <<_ACEOF
4874/* confdefs.h.  */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h.  */
4879#include <ctype.h>
4880#include <stdlib.h>
4881#if ((' ' & 0x0FF) == 0x020)
4882# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4883# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4884#else
4885# define ISLOWER(c) \
4886		   (('a' <= (c) && (c) <= 'i') \
4887		     || ('j' <= (c) && (c) <= 'r') \
4888		     || ('s' <= (c) && (c) <= 'z'))
4889# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4890#endif
4891
4892#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4893int
4894main ()
4895{
4896  int i;
4897  for (i = 0; i < 256; i++)
4898    if (XOR (islower (i), ISLOWER (i))
4899	|| toupper (i) != TOUPPER (i))
4900      return 2;
4901  return 0;
4902}
4903_ACEOF
4904rm -f conftest$ac_exeext
4905if { (ac_try="$ac_link"
4906case "(($ac_try" in
4907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908  *) ac_try_echo=$ac_try;;
4909esac
4910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911  (eval "$ac_link") 2>&5
4912  ac_status=$?
4913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4915  { (case "(($ac_try" in
4916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917  *) ac_try_echo=$ac_try;;
4918esac
4919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920  (eval "$ac_try") 2>&5
4921  ac_status=$?
4922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923  (exit $ac_status); }; }; then
4924  :
4925else
4926  echo "$as_me: program exited with status $ac_status" >&5
4927echo "$as_me: failed program was:" >&5
4928sed 's/^/| /' conftest.$ac_ext >&5
4929
4930( exit $ac_status )
4931ac_cv_header_stdc=no
4932fi
4933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4934fi
4935
4936
4937fi
4938fi
4939{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4940echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4941if test $ac_cv_header_stdc = yes; then
4942
4943cat >>confdefs.h <<\_ACEOF
4944#define STDC_HEADERS 1
4945_ACEOF
4946
4947fi
4948
4949# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4960		  inttypes.h stdint.h unistd.h
4961do
4962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968  cat >conftest.$ac_ext <<_ACEOF
4969/* confdefs.h.  */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h.  */
4974$ac_includes_default
4975
4976#include <$ac_header>
4977_ACEOF
4978rm -f conftest.$ac_objext
4979if { (ac_try="$ac_compile"
4980case "(($ac_try" in
4981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982  *) ac_try_echo=$ac_try;;
4983esac
4984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985  (eval "$ac_compile") 2>conftest.er1
4986  ac_status=$?
4987  grep -v '^ *+' conftest.er1 >conftest.err
4988  rm -f conftest.er1
4989  cat conftest.err >&5
4990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991  (exit $ac_status); } && {
4992	 test -z "$ac_c_werror_flag" ||
4993	 test ! -s conftest.err
4994       } && test -s conftest.$ac_objext; then
4995  eval "$as_ac_Header=yes"
4996else
4997  echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
4999
5000	eval "$as_ac_Header=no"
5001fi
5002
5003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004fi
5005ac_res=`eval echo '${'$as_ac_Header'}'`
5006	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5007echo "${ECHO_T}$ac_res" >&6; }
5008if test `eval echo '${'$as_ac_Header'}'` = yes; then
5009  cat >>confdefs.h <<_ACEOF
5010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5011_ACEOF
5012
5013fi
5014
5015done
5016
5017
5018
5019for ac_header in dlfcn.h
5020do
5021as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5023  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5026  echo $ECHO_N "(cached) $ECHO_C" >&6
5027fi
5028ac_res=`eval echo '${'$as_ac_Header'}'`
5029	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5030echo "${ECHO_T}$ac_res" >&6; }
5031else
5032  # Is the header compilable?
5033{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5034echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5035cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h.  */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h.  */
5041$ac_includes_default
5042#include <$ac_header>
5043_ACEOF
5044rm -f conftest.$ac_objext
5045if { (ac_try="$ac_compile"
5046case "(($ac_try" in
5047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048  *) ac_try_echo=$ac_try;;
5049esac
5050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051  (eval "$ac_compile") 2>conftest.er1
5052  ac_status=$?
5053  grep -v '^ *+' conftest.er1 >conftest.err
5054  rm -f conftest.er1
5055  cat conftest.err >&5
5056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057  (exit $ac_status); } && {
5058	 test -z "$ac_c_werror_flag" ||
5059	 test ! -s conftest.err
5060       } && test -s conftest.$ac_objext; then
5061  ac_header_compiler=yes
5062else
5063  echo "$as_me: failed program was:" >&5
5064sed 's/^/| /' conftest.$ac_ext >&5
5065
5066	ac_header_compiler=no
5067fi
5068
5069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5071echo "${ECHO_T}$ac_header_compiler" >&6; }
5072
5073# Is the header present?
5074{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5075echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5076cat >conftest.$ac_ext <<_ACEOF
5077/* confdefs.h.  */
5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h.  */
5082#include <$ac_header>
5083_ACEOF
5084if { (ac_try="$ac_cpp conftest.$ac_ext"
5085case "(($ac_try" in
5086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087  *) ac_try_echo=$ac_try;;
5088esac
5089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5091  ac_status=$?
5092  grep -v '^ *+' conftest.er1 >conftest.err
5093  rm -f conftest.er1
5094  cat conftest.err >&5
5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096  (exit $ac_status); } >/dev/null && {
5097	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5098	 test ! -s conftest.err
5099       }; then
5100  ac_header_preproc=yes
5101else
5102  echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105  ac_header_preproc=no
5106fi
5107
5108rm -f conftest.err conftest.$ac_ext
5109{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5110echo "${ECHO_T}$ac_header_preproc" >&6; }
5111
5112# So?  What about this header?
5113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5114  yes:no: )
5115    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5117    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5118echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5119    ac_header_preproc=yes
5120    ;;
5121  no:yes:* )
5122    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5123echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5124    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5125echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5126    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5127echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5128    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5129echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5130    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5131echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5132    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5133echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5134    ( cat <<\_ASBOX
5135## --------------------------------------------------------------------------------------------- ##
5136## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ##
5137## --------------------------------------------------------------------------------------------- ##
5138_ASBOX
5139     ) | sed "s/^/$as_me: WARNING:     /" >&2
5140    ;;
5141esac
5142{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5145  echo $ECHO_N "(cached) $ECHO_C" >&6
5146else
5147  eval "$as_ac_Header=\$ac_header_preproc"
5148fi
5149ac_res=`eval echo '${'$as_ac_Header'}'`
5150	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5151echo "${ECHO_T}$ac_res" >&6; }
5152
5153fi
5154if test `eval echo '${'$as_ac_Header'}'` = yes; then
5155  cat >>confdefs.h <<_ACEOF
5156#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5157_ACEOF
5158
5159fi
5160
5161done
5162
5163ac_ext=cpp
5164ac_cpp='$CXXCPP $CPPFLAGS'
5165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5168if test -z "$CXX"; then
5169  if test -n "$CCC"; then
5170    CXX=$CCC
5171  else
5172    if test -n "$ac_tool_prefix"; then
5173  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5174  do
5175    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179if test "${ac_cv_prog_CXX+set}" = set; then
5180  echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182  if test -n "$CXX"; then
5183  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188  IFS=$as_save_IFS
5189  test -z "$as_dir" && as_dir=.
5190  for ac_exec_ext in '' $ac_executable_extensions; do
5191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194    break 2
5195  fi
5196done
5197done
5198IFS=$as_save_IFS
5199
5200fi
5201fi
5202CXX=$ac_cv_prog_CXX
5203if test -n "$CXX"; then
5204  { echo "$as_me:$LINENO: result: $CXX" >&5
5205echo "${ECHO_T}$CXX" >&6; }
5206else
5207  { echo "$as_me:$LINENO: result: no" >&5
5208echo "${ECHO_T}no" >&6; }
5209fi
5210
5211
5212    test -n "$CXX" && break
5213  done
5214fi
5215if test -z "$CXX"; then
5216  ac_ct_CXX=$CXX
5217  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5218do
5219  # Extract the first word of "$ac_prog", so it can be a program name with args.
5220set dummy $ac_prog; ac_word=$2
5221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5224  echo $ECHO_N "(cached) $ECHO_C" >&6
5225else
5226  if test -n "$ac_ct_CXX"; then
5227  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5228else
5229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230for as_dir in $PATH
5231do
5232  IFS=$as_save_IFS
5233  test -z "$as_dir" && as_dir=.
5234  for ac_exec_ext in '' $ac_executable_extensions; do
5235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236    ac_cv_prog_ac_ct_CXX="$ac_prog"
5237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238    break 2
5239  fi
5240done
5241done
5242IFS=$as_save_IFS
5243
5244fi
5245fi
5246ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5247if test -n "$ac_ct_CXX"; then
5248  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5249echo "${ECHO_T}$ac_ct_CXX" >&6; }
5250else
5251  { echo "$as_me:$LINENO: result: no" >&5
5252echo "${ECHO_T}no" >&6; }
5253fi
5254
5255
5256  test -n "$ac_ct_CXX" && break
5257done
5258
5259  if test "x$ac_ct_CXX" = x; then
5260    CXX="g++"
5261  else
5262    case $cross_compiling:$ac_tool_warned in
5263yes:)
5264{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5265whose name does not start with the host triplet.  If you think this
5266configuration is useful to you, please write to autoconf@gnu.org." >&5
5267echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5268whose name does not start with the host triplet.  If you think this
5269configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5270ac_tool_warned=yes ;;
5271esac
5272    CXX=$ac_ct_CXX
5273  fi
5274fi
5275
5276  fi
5277fi
5278# Provide some information about the compiler.
5279echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5280ac_compiler=`set X $ac_compile; echo $2`
5281{ (ac_try="$ac_compiler --version >&5"
5282case "(($ac_try" in
5283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284  *) ac_try_echo=$ac_try;;
5285esac
5286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287  (eval "$ac_compiler --version >&5") 2>&5
5288  ac_status=$?
5289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290  (exit $ac_status); }
5291{ (ac_try="$ac_compiler -v >&5"
5292case "(($ac_try" in
5293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294  *) ac_try_echo=$ac_try;;
5295esac
5296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297  (eval "$ac_compiler -v >&5") 2>&5
5298  ac_status=$?
5299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300  (exit $ac_status); }
5301{ (ac_try="$ac_compiler -V >&5"
5302case "(($ac_try" in
5303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304  *) ac_try_echo=$ac_try;;
5305esac
5306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307  (eval "$ac_compiler -V >&5") 2>&5
5308  ac_status=$?
5309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310  (exit $ac_status); }
5311
5312{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5313echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5314if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5315  echo $ECHO_N "(cached) $ECHO_C" >&6
5316else
5317  cat >conftest.$ac_ext <<_ACEOF
5318/* confdefs.h.  */
5319_ACEOF
5320cat confdefs.h >>conftest.$ac_ext
5321cat >>conftest.$ac_ext <<_ACEOF
5322/* end confdefs.h.  */
5323
5324int
5325main ()
5326{
5327#ifndef __GNUC__
5328       choke me
5329#endif
5330
5331  ;
5332  return 0;
5333}
5334_ACEOF
5335rm -f conftest.$ac_objext
5336if { (ac_try="$ac_compile"
5337case "(($ac_try" in
5338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339  *) ac_try_echo=$ac_try;;
5340esac
5341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342  (eval "$ac_compile") 2>conftest.er1
5343  ac_status=$?
5344  grep -v '^ *+' conftest.er1 >conftest.err
5345  rm -f conftest.er1
5346  cat conftest.err >&5
5347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348  (exit $ac_status); } && {
5349	 test -z "$ac_cxx_werror_flag" ||
5350	 test ! -s conftest.err
5351       } && test -s conftest.$ac_objext; then
5352  ac_compiler_gnu=yes
5353else
5354  echo "$as_me: failed program was:" >&5
5355sed 's/^/| /' conftest.$ac_ext >&5
5356
5357	ac_compiler_gnu=no
5358fi
5359
5360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5362
5363fi
5364{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5365echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5366GXX=`test $ac_compiler_gnu = yes && echo yes`
5367ac_test_CXXFLAGS=${CXXFLAGS+set}
5368ac_save_CXXFLAGS=$CXXFLAGS
5369{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5370echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5371if test "${ac_cv_prog_cxx_g+set}" = set; then
5372  echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5375   ac_cxx_werror_flag=yes
5376   ac_cv_prog_cxx_g=no
5377   CXXFLAGS="-g"
5378   cat >conftest.$ac_ext <<_ACEOF
5379/* confdefs.h.  */
5380_ACEOF
5381cat confdefs.h >>conftest.$ac_ext
5382cat >>conftest.$ac_ext <<_ACEOF
5383/* end confdefs.h.  */
5384
5385int
5386main ()
5387{
5388
5389  ;
5390  return 0;
5391}
5392_ACEOF
5393rm -f conftest.$ac_objext
5394if { (ac_try="$ac_compile"
5395case "(($ac_try" in
5396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397  *) ac_try_echo=$ac_try;;
5398esac
5399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400  (eval "$ac_compile") 2>conftest.er1
5401  ac_status=$?
5402  grep -v '^ *+' conftest.er1 >conftest.err
5403  rm -f conftest.er1
5404  cat conftest.err >&5
5405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406  (exit $ac_status); } && {
5407	 test -z "$ac_cxx_werror_flag" ||
5408	 test ! -s conftest.err
5409       } && test -s conftest.$ac_objext; then
5410  ac_cv_prog_cxx_g=yes
5411else
5412  echo "$as_me: failed program was:" >&5
5413sed 's/^/| /' conftest.$ac_ext >&5
5414
5415	CXXFLAGS=""
5416      cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h.  */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h.  */
5422
5423int
5424main ()
5425{
5426
5427  ;
5428  return 0;
5429}
5430_ACEOF
5431rm -f conftest.$ac_objext
5432if { (ac_try="$ac_compile"
5433case "(($ac_try" in
5434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435  *) ac_try_echo=$ac_try;;
5436esac
5437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438  (eval "$ac_compile") 2>conftest.er1
5439  ac_status=$?
5440  grep -v '^ *+' conftest.er1 >conftest.err
5441  rm -f conftest.er1
5442  cat conftest.err >&5
5443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444  (exit $ac_status); } && {
5445	 test -z "$ac_cxx_werror_flag" ||
5446	 test ! -s conftest.err
5447       } && test -s conftest.$ac_objext; then
5448  :
5449else
5450  echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5454	 CXXFLAGS="-g"
5455	 cat >conftest.$ac_ext <<_ACEOF
5456/* confdefs.h.  */
5457_ACEOF
5458cat confdefs.h >>conftest.$ac_ext
5459cat >>conftest.$ac_ext <<_ACEOF
5460/* end confdefs.h.  */
5461
5462int
5463main ()
5464{
5465
5466  ;
5467  return 0;
5468}
5469_ACEOF
5470rm -f conftest.$ac_objext
5471if { (ac_try="$ac_compile"
5472case "(($ac_try" in
5473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474  *) ac_try_echo=$ac_try;;
5475esac
5476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477  (eval "$ac_compile") 2>conftest.er1
5478  ac_status=$?
5479  grep -v '^ *+' conftest.er1 >conftest.err
5480  rm -f conftest.er1
5481  cat conftest.err >&5
5482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483  (exit $ac_status); } && {
5484	 test -z "$ac_cxx_werror_flag" ||
5485	 test ! -s conftest.err
5486       } && test -s conftest.$ac_objext; then
5487  ac_cv_prog_cxx_g=yes
5488else
5489  echo "$as_me: failed program was:" >&5
5490sed 's/^/| /' conftest.$ac_ext >&5
5491
5492
5493fi
5494
5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496fi
5497
5498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499fi
5500
5501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5503fi
5504{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5505echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5506if test "$ac_test_CXXFLAGS" = set; then
5507  CXXFLAGS=$ac_save_CXXFLAGS
5508elif test $ac_cv_prog_cxx_g = yes; then
5509  if test "$GXX" = yes; then
5510    CXXFLAGS="-g -O2"
5511  else
5512    CXXFLAGS="-g"
5513  fi
5514else
5515  if test "$GXX" = yes; then
5516    CXXFLAGS="-O2"
5517  else
5518    CXXFLAGS=
5519  fi
5520fi
5521ac_ext=cpp
5522ac_cpp='$CXXCPP $CPPFLAGS'
5523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5526
5527depcc="$CXX"  am_compiler_list=
5528
5529{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5530echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5531if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5532  echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5535  # We make a subdir and do the tests there.  Otherwise we can end up
5536  # making bogus files that we don't know about and never remove.  For
5537  # instance it was reported that on HP-UX the gcc test will end up
5538  # making a dummy file named `D' -- because `-MD' means `put the output
5539  # in D'.
5540  mkdir conftest.dir
5541  # Copy depcomp to subdir because otherwise we won't find it if we're
5542  # using a relative directory.
5543  cp "$am_depcomp" conftest.dir
5544  cd conftest.dir
5545  # We will build objects and dependencies in a subdirectory because
5546  # it helps to detect inapplicable dependency modes.  For instance
5547  # both Tru64's cc and ICC support -MD to output dependencies as a
5548  # side effect of compilation, but ICC will put the dependencies in
5549  # the current directory while Tru64 will put them in the object
5550  # directory.
5551  mkdir sub
5552
5553  am_cv_CXX_dependencies_compiler_type=none
5554  if test "$am_compiler_list" = ""; then
5555     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5556  fi
5557  for depmode in $am_compiler_list; do
5558    # Setup a source with many dependencies, because some compilers
5559    # like to wrap large dependency lists on column 80 (with \), and
5560    # we should not choose a depcomp mode which is confused by this.
5561    #
5562    # We need to recreate these files for each test, as the compiler may
5563    # overwrite some of them when testing with obscure command lines.
5564    # This happens at least with the AIX C compiler.
5565    : > sub/conftest.c
5566    for i in 1 2 3 4 5 6; do
5567      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5568      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5569      # Solaris 8's {/usr,}/bin/sh.
5570      touch sub/conftst$i.h
5571    done
5572    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5573
5574    case $depmode in
5575    nosideeffect)
5576      # after this tag, mechanisms are not by side-effect, so they'll
5577      # only be used when explicitly requested
5578      if test "x$enable_dependency_tracking" = xyes; then
5579	continue
5580      else
5581	break
5582      fi
5583      ;;
5584    none) break ;;
5585    esac
5586    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5587    # mode.  It turns out that the SunPro C++ compiler does not properly
5588    # handle `-M -o', and we need to detect this.
5589    if depmode=$depmode \
5590       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5591       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5592       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5593         >/dev/null 2>conftest.err &&
5594       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5595       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5596       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5597       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5598      # icc doesn't choke on unknown options, it will just issue warnings
5599      # or remarks (even with -Werror).  So we grep stderr for any message
5600      # that says an option was ignored or not supported.
5601      # When given -MP, icc 7.0 and 7.1 complain thusly:
5602      #   icc: Command line warning: ignoring option '-M'; no argument required
5603      # The diagnosis changed in icc 8.0:
5604      #   icc: Command line remark: option '-MP' not supported
5605      if (grep 'ignoring option' conftest.err ||
5606          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5607        am_cv_CXX_dependencies_compiler_type=$depmode
5608        break
5609      fi
5610    fi
5611  done
5612
5613  cd ..
5614  rm -rf conftest.dir
5615else
5616  am_cv_CXX_dependencies_compiler_type=none
5617fi
5618
5619fi
5620{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5621echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5622CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5623
5624 if
5625  test "x$enable_dependency_tracking" != xno \
5626  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5627  am__fastdepCXX_TRUE=
5628  am__fastdepCXX_FALSE='#'
5629else
5630  am__fastdepCXX_TRUE='#'
5631  am__fastdepCXX_FALSE=
5632fi
5633
5634
5635
5636
5637if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5638    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5639    (test "X$CXX" != "Xg++"))) ; then
5640  ac_ext=cpp
5641ac_cpp='$CXXCPP $CPPFLAGS'
5642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5645{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5646echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5647if test -z "$CXXCPP"; then
5648  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5649  echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651      # Double quotes because CXXCPP needs to be expanded
5652    for CXXCPP in "$CXX -E" "/lib/cpp"
5653    do
5654      ac_preproc_ok=false
5655for ac_cxx_preproc_warn_flag in '' yes
5656do
5657  # Use a header file that comes with gcc, so configuring glibc
5658  # with a fresh cross-compiler works.
5659  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5660  # <limits.h> exists even on freestanding compilers.
5661  # On the NeXT, cc -E runs the code through the compiler's parser,
5662  # not just through cpp. "Syntax error" is here to catch this case.
5663  cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h.  */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h.  */
5669#ifdef __STDC__
5670# include <limits.h>
5671#else
5672# include <assert.h>
5673#endif
5674		     Syntax error
5675_ACEOF
5676if { (ac_try="$ac_cpp conftest.$ac_ext"
5677case "(($ac_try" in
5678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679  *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5683  ac_status=$?
5684  grep -v '^ *+' conftest.er1 >conftest.err
5685  rm -f conftest.er1
5686  cat conftest.err >&5
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); } >/dev/null && {
5689	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5690	 test ! -s conftest.err
5691       }; then
5692  :
5693else
5694  echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697  # Broken: fails on valid input.
5698continue
5699fi
5700
5701rm -f conftest.err conftest.$ac_ext
5702
5703  # OK, works on sane cases.  Now check whether nonexistent headers
5704  # can be detected and how.
5705  cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h.  */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h.  */
5711#include <ac_nonexistent.h>
5712_ACEOF
5713if { (ac_try="$ac_cpp conftest.$ac_ext"
5714case "(($ac_try" in
5715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716  *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5720  ac_status=$?
5721  grep -v '^ *+' conftest.er1 >conftest.err
5722  rm -f conftest.er1
5723  cat conftest.err >&5
5724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725  (exit $ac_status); } >/dev/null && {
5726	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5727	 test ! -s conftest.err
5728       }; then
5729  # Broken: success on invalid input.
5730continue
5731else
5732  echo "$as_me: failed program was:" >&5
5733sed 's/^/| /' conftest.$ac_ext >&5
5734
5735  # Passes both tests.
5736ac_preproc_ok=:
5737break
5738fi
5739
5740rm -f conftest.err conftest.$ac_ext
5741
5742done
5743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5744rm -f conftest.err conftest.$ac_ext
5745if $ac_preproc_ok; then
5746  break
5747fi
5748
5749    done
5750    ac_cv_prog_CXXCPP=$CXXCPP
5751
5752fi
5753  CXXCPP=$ac_cv_prog_CXXCPP
5754else
5755  ac_cv_prog_CXXCPP=$CXXCPP
5756fi
5757{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5758echo "${ECHO_T}$CXXCPP" >&6; }
5759ac_preproc_ok=false
5760for ac_cxx_preproc_warn_flag in '' yes
5761do
5762  # Use a header file that comes with gcc, so configuring glibc
5763  # with a fresh cross-compiler works.
5764  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5765  # <limits.h> exists even on freestanding compilers.
5766  # On the NeXT, cc -E runs the code through the compiler's parser,
5767  # not just through cpp. "Syntax error" is here to catch this case.
5768  cat >conftest.$ac_ext <<_ACEOF
5769/* confdefs.h.  */
5770_ACEOF
5771cat confdefs.h >>conftest.$ac_ext
5772cat >>conftest.$ac_ext <<_ACEOF
5773/* end confdefs.h.  */
5774#ifdef __STDC__
5775# include <limits.h>
5776#else
5777# include <assert.h>
5778#endif
5779		     Syntax error
5780_ACEOF
5781if { (ac_try="$ac_cpp conftest.$ac_ext"
5782case "(($ac_try" in
5783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784  *) ac_try_echo=$ac_try;;
5785esac
5786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5788  ac_status=$?
5789  grep -v '^ *+' conftest.er1 >conftest.err
5790  rm -f conftest.er1
5791  cat conftest.err >&5
5792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793  (exit $ac_status); } >/dev/null && {
5794	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5795	 test ! -s conftest.err
5796       }; then
5797  :
5798else
5799  echo "$as_me: failed program was:" >&5
5800sed 's/^/| /' conftest.$ac_ext >&5
5801
5802  # Broken: fails on valid input.
5803continue
5804fi
5805
5806rm -f conftest.err conftest.$ac_ext
5807
5808  # OK, works on sane cases.  Now check whether nonexistent headers
5809  # can be detected and how.
5810  cat >conftest.$ac_ext <<_ACEOF
5811/* confdefs.h.  */
5812_ACEOF
5813cat confdefs.h >>conftest.$ac_ext
5814cat >>conftest.$ac_ext <<_ACEOF
5815/* end confdefs.h.  */
5816#include <ac_nonexistent.h>
5817_ACEOF
5818if { (ac_try="$ac_cpp conftest.$ac_ext"
5819case "(($ac_try" in
5820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821  *) ac_try_echo=$ac_try;;
5822esac
5823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5825  ac_status=$?
5826  grep -v '^ *+' conftest.er1 >conftest.err
5827  rm -f conftest.er1
5828  cat conftest.err >&5
5829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830  (exit $ac_status); } >/dev/null && {
5831	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5832	 test ! -s conftest.err
5833       }; then
5834  # Broken: success on invalid input.
5835continue
5836else
5837  echo "$as_me: failed program was:" >&5
5838sed 's/^/| /' conftest.$ac_ext >&5
5839
5840  # Passes both tests.
5841ac_preproc_ok=:
5842break
5843fi
5844
5845rm -f conftest.err conftest.$ac_ext
5846
5847done
5848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5849rm -f conftest.err conftest.$ac_ext
5850if $ac_preproc_ok; then
5851  :
5852else
5853  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5854See \`config.log' for more details." >&5
5855echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5856See \`config.log' for more details." >&2;}
5857   { (exit 1); exit 1; }; }
5858fi
5859
5860ac_ext=cpp
5861ac_cpp='$CXXCPP $CPPFLAGS'
5862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5865
5866fi
5867
5868
5869ac_ext=f
5870ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5871ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5873if test -n "$ac_tool_prefix"; then
5874  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
5875  do
5876    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5877set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5880if test "${ac_cv_prog_F77+set}" = set; then
5881  echo $ECHO_N "(cached) $ECHO_C" >&6
5882else
5883  if test -n "$F77"; then
5884  ac_cv_prog_F77="$F77" # Let the user override the test.
5885else
5886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889  IFS=$as_save_IFS
5890  test -z "$as_dir" && as_dir=.
5891  for ac_exec_ext in '' $ac_executable_extensions; do
5892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895    break 2
5896  fi
5897done
5898done
5899IFS=$as_save_IFS
5900
5901fi
5902fi
5903F77=$ac_cv_prog_F77
5904if test -n "$F77"; then
5905  { echo "$as_me:$LINENO: result: $F77" >&5
5906echo "${ECHO_T}$F77" >&6; }
5907else
5908  { echo "$as_me:$LINENO: result: no" >&5
5909echo "${ECHO_T}no" >&6; }
5910fi
5911
5912
5913    test -n "$F77" && break
5914  done
5915fi
5916if test -z "$F77"; then
5917  ac_ct_F77=$F77
5918  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
5919do
5920  # Extract the first word of "$ac_prog", so it can be a program name with args.
5921set dummy $ac_prog; ac_word=$2
5922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5925  echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927  if test -n "$ac_ct_F77"; then
5928  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933  IFS=$as_save_IFS
5934  test -z "$as_dir" && as_dir=.
5935  for ac_exec_ext in '' $ac_executable_extensions; do
5936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937    ac_cv_prog_ac_ct_F77="$ac_prog"
5938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939    break 2
5940  fi
5941done
5942done
5943IFS=$as_save_IFS
5944
5945fi
5946fi
5947ac_ct_F77=$ac_cv_prog_ac_ct_F77
5948if test -n "$ac_ct_F77"; then
5949  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5950echo "${ECHO_T}$ac_ct_F77" >&6; }
5951else
5952  { echo "$as_me:$LINENO: result: no" >&5
5953echo "${ECHO_T}no" >&6; }
5954fi
5955
5956
5957  test -n "$ac_ct_F77" && break
5958done
5959
5960  if test "x$ac_ct_F77" = x; then
5961    F77=""
5962  else
5963    case $cross_compiling:$ac_tool_warned in
5964yes:)
5965{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5966whose name does not start with the host triplet.  If you think this
5967configuration is useful to you, please write to autoconf@gnu.org." >&5
5968echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5969whose name does not start with the host triplet.  If you think this
5970configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5971ac_tool_warned=yes ;;
5972esac
5973    F77=$ac_ct_F77
5974  fi
5975fi
5976
5977
5978# Provide some information about the compiler.
5979echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5980ac_compiler=`set X $ac_compile; echo $2`
5981{ (ac_try="$ac_compiler --version >&5"
5982case "(($ac_try" in
5983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984  *) ac_try_echo=$ac_try;;
5985esac
5986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987  (eval "$ac_compiler --version >&5") 2>&5
5988  ac_status=$?
5989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990  (exit $ac_status); }
5991{ (ac_try="$ac_compiler -v >&5"
5992case "(($ac_try" in
5993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994  *) ac_try_echo=$ac_try;;
5995esac
5996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997  (eval "$ac_compiler -v >&5") 2>&5
5998  ac_status=$?
5999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000  (exit $ac_status); }
6001{ (ac_try="$ac_compiler -V >&5"
6002case "(($ac_try" in
6003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004  *) ac_try_echo=$ac_try;;
6005esac
6006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007  (eval "$ac_compiler -V >&5") 2>&5
6008  ac_status=$?
6009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010  (exit $ac_status); }
6011rm -f a.out
6012
6013# If we don't use `.F' as extension, the preprocessor is not run on the
6014# input file.  (Note that this only needs to work for GNU compilers.)
6015ac_save_ext=$ac_ext
6016ac_ext=F
6017{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6018echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6019if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6020  echo $ECHO_N "(cached) $ECHO_C" >&6
6021else
6022  cat >conftest.$ac_ext <<_ACEOF
6023      program main
6024#ifndef __GNUC__
6025       choke me
6026#endif
6027
6028      end
6029_ACEOF
6030rm -f conftest.$ac_objext
6031if { (ac_try="$ac_compile"
6032case "(($ac_try" in
6033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034  *) ac_try_echo=$ac_try;;
6035esac
6036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037  (eval "$ac_compile") 2>conftest.er1
6038  ac_status=$?
6039  grep -v '^ *+' conftest.er1 >conftest.err
6040  rm -f conftest.er1
6041  cat conftest.err >&5
6042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043  (exit $ac_status); } && {
6044	 test -z "$ac_f77_werror_flag" ||
6045	 test ! -s conftest.err
6046       } && test -s conftest.$ac_objext; then
6047  ac_compiler_gnu=yes
6048else
6049  echo "$as_me: failed program was:" >&5
6050sed 's/^/| /' conftest.$ac_ext >&5
6051
6052	ac_compiler_gnu=no
6053fi
6054
6055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6057
6058fi
6059{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6060echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6061ac_ext=$ac_save_ext
6062ac_test_FFLAGS=${FFLAGS+set}
6063ac_save_FFLAGS=$FFLAGS
6064FFLAGS=
6065{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6066echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6067if test "${ac_cv_prog_f77_g+set}" = set; then
6068  echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070  FFLAGS=-g
6071cat >conftest.$ac_ext <<_ACEOF
6072      program main
6073
6074      end
6075_ACEOF
6076rm -f conftest.$ac_objext
6077if { (ac_try="$ac_compile"
6078case "(($ac_try" in
6079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080  *) ac_try_echo=$ac_try;;
6081esac
6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083  (eval "$ac_compile") 2>conftest.er1
6084  ac_status=$?
6085  grep -v '^ *+' conftest.er1 >conftest.err
6086  rm -f conftest.er1
6087  cat conftest.err >&5
6088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089  (exit $ac_status); } && {
6090	 test -z "$ac_f77_werror_flag" ||
6091	 test ! -s conftest.err
6092       } && test -s conftest.$ac_objext; then
6093  ac_cv_prog_f77_g=yes
6094else
6095  echo "$as_me: failed program was:" >&5
6096sed 's/^/| /' conftest.$ac_ext >&5
6097
6098	ac_cv_prog_f77_g=no
6099fi
6100
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102
6103fi
6104{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6105echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6106if test "$ac_test_FFLAGS" = set; then
6107  FFLAGS=$ac_save_FFLAGS
6108elif test $ac_cv_prog_f77_g = yes; then
6109  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6110    FFLAGS="-g -O2"
6111  else
6112    FFLAGS="-g"
6113  fi
6114else
6115  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6116    FFLAGS="-O2"
6117  else
6118    FFLAGS=
6119  fi
6120fi
6121
6122G77=`test $ac_compiler_gnu = yes && echo yes`
6123ac_ext=c
6124ac_cpp='$CPP $CPPFLAGS'
6125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128
6129
6130
6131# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6132
6133# find the maximum length of command line arguments
6134{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6135echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6136if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6137  echo $ECHO_N "(cached) $ECHO_C" >&6
6138else
6139    i=0
6140  teststring="ABCD"
6141
6142  case $build_os in
6143  msdosdjgpp*)
6144    # On DJGPP, this test can blow up pretty badly due to problems in libc
6145    # (any single argument exceeding 2000 bytes causes a buffer overrun
6146    # during glob expansion).  Even if it were fixed, the result of this
6147    # check would be larger than it should be.
6148    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6149    ;;
6150
6151  gnu*)
6152    # Under GNU Hurd, this test is not required because there is
6153    # no limit to the length of command line arguments.
6154    # Libtool will interpret -1 as no limit whatsoever
6155    lt_cv_sys_max_cmd_len=-1;
6156    ;;
6157
6158  cygwin* | mingw*)
6159    # On Win9x/ME, this test blows up -- it succeeds, but takes
6160    # about 5 minutes as the teststring grows exponentially.
6161    # Worse, since 9x/ME are not pre-emptively multitasking,
6162    # you end up with a "frozen" computer, even though with patience
6163    # the test eventually succeeds (with a max line length of 256k).
6164    # Instead, let's just punt: use the minimum linelength reported by
6165    # all of the supported platforms: 8192 (on NT/2K/XP).
6166    lt_cv_sys_max_cmd_len=8192;
6167    ;;
6168
6169  amigaos*)
6170    # On AmigaOS with pdksh, this test takes hours, literally.
6171    # So we just punt and use a minimum line length of 8192.
6172    lt_cv_sys_max_cmd_len=8192;
6173    ;;
6174
6175  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6176    # This has been around since 386BSD, at least.  Likely further.
6177    if test -x /sbin/sysctl; then
6178      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6179    elif test -x /usr/sbin/sysctl; then
6180      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6181    else
6182      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6183    fi
6184    # And add a safety zone
6185    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6186    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6187    ;;
6188
6189  interix*)
6190    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6191    lt_cv_sys_max_cmd_len=196608
6192    ;;
6193
6194  osf*)
6195    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6196    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6197    # nice to cause kernel panics so lets avoid the loop below.
6198    # First set a reasonable default.
6199    lt_cv_sys_max_cmd_len=16384
6200    #
6201    if test -x /sbin/sysconfig; then
6202      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6203        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6204      esac
6205    fi
6206    ;;
6207  sco3.2v5*)
6208    lt_cv_sys_max_cmd_len=102400
6209    ;;
6210  sysv5* | sco5v6* | sysv4.2uw2*)
6211    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6212    if test -n "$kargmax"; then
6213      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6214    else
6215      lt_cv_sys_max_cmd_len=32768
6216    fi
6217    ;;
6218  *)
6219    # If test is not a shell built-in, we'll probably end up computing a
6220    # maximum length that is only half of the actual maximum length, but
6221    # we can't tell.
6222    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6223    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6224	       = "XX$teststring") >/dev/null 2>&1 &&
6225	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6226	    lt_cv_sys_max_cmd_len=$new_result &&
6227	    test $i != 17 # 1/2 MB should be enough
6228    do
6229      i=`expr $i + 1`
6230      teststring=$teststring$teststring
6231    done
6232    teststring=
6233    # Add a significant safety factor because C++ compilers can tack on massive
6234    # amounts of additional arguments before passing them to the linker.
6235    # It appears as though 1/2 is a usable value.
6236    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6237    ;;
6238  esac
6239
6240fi
6241
6242if test -n $lt_cv_sys_max_cmd_len ; then
6243  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6244echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6245else
6246  { echo "$as_me:$LINENO: result: none" >&5
6247echo "${ECHO_T}none" >&6; }
6248fi
6249
6250
6251
6252
6253# Check for command to grab the raw symbol name followed by C symbol from nm.
6254{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6255echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6256if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6257  echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259
6260# These are sane defaults that work on at least a few old systems.
6261# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6262
6263# Character class describing NM global symbol codes.
6264symcode='[BCDEGRST]'
6265
6266# Regexp to match symbols that can be accessed directly from C.
6267sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6268
6269# Transform an extracted symbol line into a proper C declaration
6270lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6271
6272# Transform an extracted symbol line into symbol name and symbol address
6273lt_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'"
6274
6275# Define system-specific variables.
6276case $host_os in
6277aix*)
6278  symcode='[BCDT]'
6279  ;;
6280cygwin* | mingw* | pw32*)
6281  symcode='[ABCDGISTW]'
6282  ;;
6283hpux*) # Its linker distinguishes data from code symbols
6284  if test "$host_cpu" = ia64; then
6285    symcode='[ABCDEGRST]'
6286  fi
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  ;;
6290linux*)
6291  if test "$host_cpu" = ia64; then
6292    symcode='[ABCDGIRSTW]'
6293    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6294    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'"
6295  fi
6296  ;;
6297irix* | nonstopux*)
6298  symcode='[BCDEGRST]'
6299  ;;
6300osf*)
6301  symcode='[BCDEGQRST]'
6302  ;;
6303solaris*)
6304  symcode='[BDRT]'
6305  ;;
6306sco3.2v5*)
6307  symcode='[DT]'
6308  ;;
6309sysv4.2uw2*)
6310  symcode='[DT]'
6311  ;;
6312sysv5* | sco5v6* | unixware* | OpenUNIX*)
6313  symcode='[ABDT]'
6314  ;;
6315sysv4)
6316  symcode='[DFNSTU]'
6317  ;;
6318esac
6319
6320# Handle CRLF in mingw tool chain
6321opt_cr=
6322case $build_os in
6323mingw*)
6324  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6325  ;;
6326esac
6327
6328# If we're using GNU nm, then use its standard symbol codes.
6329case `$NM -V 2>&1` in
6330*GNU* | *'with BFD'*)
6331  symcode='[ABCDGIRSTW]' ;;
6332esac
6333
6334# Try without a prefix undercore, then with it.
6335for ac_symprfx in "" "_"; do
6336
6337  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6338  symxfrm="\\1 $ac_symprfx\\2 \\2"
6339
6340  # Write the raw and C identifiers.
6341  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6342
6343  # Check to see that the pipe works correctly.
6344  pipe_works=no
6345
6346  rm -f conftest*
6347  cat > conftest.$ac_ext <<EOF
6348#ifdef __cplusplus
6349extern "C" {
6350#endif
6351char nm_test_var;
6352void nm_test_func(){}
6353#ifdef __cplusplus
6354}
6355#endif
6356int main(){nm_test_var='a';nm_test_func();return(0);}
6357EOF
6358
6359  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6360  (eval $ac_compile) 2>&5
6361  ac_status=$?
6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363  (exit $ac_status); }; then
6364    # Now try to grab the symbols.
6365    nlist=conftest.nm
6366    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6367  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6368  ac_status=$?
6369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); } && test -s "$nlist"; then
6371      # Try sorting and uniquifying the output.
6372      if sort "$nlist" | uniq > "$nlist"T; then
6373	mv -f "$nlist"T "$nlist"
6374      else
6375	rm -f "$nlist"T
6376      fi
6377
6378      # Make sure that we snagged all the symbols we need.
6379      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6380	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6381	  cat <<EOF > conftest.$ac_ext
6382#ifdef __cplusplus
6383extern "C" {
6384#endif
6385
6386EOF
6387	  # Now generate the symbol file.
6388	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6389
6390	  cat <<EOF >> conftest.$ac_ext
6391#if defined (__STDC__) && __STDC__
6392# define lt_ptr_t void *
6393#else
6394# define lt_ptr_t char *
6395# define const
6396#endif
6397
6398/* The mapping between symbol names and symbols. */
6399const struct {
6400  const char *name;
6401  lt_ptr_t address;
6402}
6403lt_preloaded_symbols[] =
6404{
6405EOF
6406	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6407	  cat <<\EOF >> conftest.$ac_ext
6408  {0, (lt_ptr_t) 0}
6409};
6410
6411#ifdef __cplusplus
6412}
6413#endif
6414EOF
6415	  # Now try linking the two files.
6416	  mv conftest.$ac_objext conftstm.$ac_objext
6417	  lt_save_LIBS="$LIBS"
6418	  lt_save_CFLAGS="$CFLAGS"
6419	  LIBS="conftstm.$ac_objext"
6420	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6421	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6422  (eval $ac_link) 2>&5
6423  ac_status=$?
6424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6426	    pipe_works=yes
6427	  fi
6428	  LIBS="$lt_save_LIBS"
6429	  CFLAGS="$lt_save_CFLAGS"
6430	else
6431	  echo "cannot find nm_test_func in $nlist" >&5
6432	fi
6433      else
6434	echo "cannot find nm_test_var in $nlist" >&5
6435      fi
6436    else
6437      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6438    fi
6439  else
6440    echo "$progname: failed program was:" >&5
6441    cat conftest.$ac_ext >&5
6442  fi
6443  rm -f conftest* conftst*
6444
6445  # Do not use the global_symbol_pipe unless it works.
6446  if test "$pipe_works" = yes; then
6447    break
6448  else
6449    lt_cv_sys_global_symbol_pipe=
6450  fi
6451done
6452
6453fi
6454
6455if test -z "$lt_cv_sys_global_symbol_pipe"; then
6456  lt_cv_sys_global_symbol_to_cdecl=
6457fi
6458if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6459  { echo "$as_me:$LINENO: result: failed" >&5
6460echo "${ECHO_T}failed" >&6; }
6461else
6462  { echo "$as_me:$LINENO: result: ok" >&5
6463echo "${ECHO_T}ok" >&6; }
6464fi
6465
6466{ echo "$as_me:$LINENO: checking for objdir" >&5
6467echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6468if test "${lt_cv_objdir+set}" = set; then
6469  echo $ECHO_N "(cached) $ECHO_C" >&6
6470else
6471  rm -f .libs 2>/dev/null
6472mkdir .libs 2>/dev/null
6473if test -d .libs; then
6474  lt_cv_objdir=.libs
6475else
6476  # MS-DOS does not allow filenames that begin with a dot.
6477  lt_cv_objdir=_libs
6478fi
6479rmdir .libs 2>/dev/null
6480fi
6481{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6482echo "${ECHO_T}$lt_cv_objdir" >&6; }
6483objdir=$lt_cv_objdir
6484
6485
6486
6487
6488
6489case $host_os in
6490aix3*)
6491  # AIX sometimes has problems with the GCC collect2 program.  For some
6492  # reason, if we set the COLLECT_NAMES environment variable, the problems
6493  # vanish in a puff of smoke.
6494  if test "X${COLLECT_NAMES+set}" != Xset; then
6495    COLLECT_NAMES=
6496    export COLLECT_NAMES
6497  fi
6498  ;;
6499esac
6500
6501# Sed substitution that helps us do robust quoting.  It backslashifies
6502# metacharacters that are still active within double-quoted strings.
6503Xsed='sed -e 1s/^X//'
6504sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6505
6506# Same as above, but do not quote variable references.
6507double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6508
6509# Sed substitution to delay expansion of an escaped shell variable in a
6510# double_quote_subst'ed string.
6511delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6512
6513# Sed substitution to avoid accidental globbing in evaled expressions
6514no_glob_subst='s/\*/\\\*/g'
6515
6516# Constants:
6517rm="rm -f"
6518
6519# Global variables:
6520default_ofile=libtool
6521can_build_shared=yes
6522
6523# All known linkers require a `.a' archive for static linking (except MSVC,
6524# which needs '.lib').
6525libext=a
6526ltmain="$ac_aux_dir/ltmain.sh"
6527ofile="$default_ofile"
6528with_gnu_ld="$lt_cv_prog_gnu_ld"
6529
6530if test -n "$ac_tool_prefix"; then
6531  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6532set dummy ${ac_tool_prefix}ar; ac_word=$2
6533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535if test "${ac_cv_prog_AR+set}" = set; then
6536  echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538  if test -n "$AR"; then
6539  ac_cv_prog_AR="$AR" # Let the user override the test.
6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544  IFS=$as_save_IFS
6545  test -z "$as_dir" && as_dir=.
6546  for ac_exec_ext in '' $ac_executable_extensions; do
6547  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548    ac_cv_prog_AR="${ac_tool_prefix}ar"
6549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550    break 2
6551  fi
6552done
6553done
6554IFS=$as_save_IFS
6555
6556fi
6557fi
6558AR=$ac_cv_prog_AR
6559if test -n "$AR"; then
6560  { echo "$as_me:$LINENO: result: $AR" >&5
6561echo "${ECHO_T}$AR" >&6; }
6562else
6563  { echo "$as_me:$LINENO: result: no" >&5
6564echo "${ECHO_T}no" >&6; }
6565fi
6566
6567
6568fi
6569if test -z "$ac_cv_prog_AR"; then
6570  ac_ct_AR=$AR
6571  # Extract the first word of "ar", so it can be a program name with args.
6572set dummy ar; ac_word=$2
6573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6576  echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578  if test -n "$ac_ct_AR"; then
6579  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584  IFS=$as_save_IFS
6585  test -z "$as_dir" && as_dir=.
6586  for ac_exec_ext in '' $ac_executable_extensions; do
6587  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588    ac_cv_prog_ac_ct_AR="ar"
6589    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590    break 2
6591  fi
6592done
6593done
6594IFS=$as_save_IFS
6595
6596fi
6597fi
6598ac_ct_AR=$ac_cv_prog_ac_ct_AR
6599if test -n "$ac_ct_AR"; then
6600  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6601echo "${ECHO_T}$ac_ct_AR" >&6; }
6602else
6603  { echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6; }
6605fi
6606
6607  if test "x$ac_ct_AR" = x; then
6608    AR="false"
6609  else
6610    case $cross_compiling:$ac_tool_warned in
6611yes:)
6612{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6613whose name does not start with the host triplet.  If you think this
6614configuration is useful to you, please write to autoconf@gnu.org." >&5
6615echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6616whose name does not start with the host triplet.  If you think this
6617configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6618ac_tool_warned=yes ;;
6619esac
6620    AR=$ac_ct_AR
6621  fi
6622else
6623  AR="$ac_cv_prog_AR"
6624fi
6625
6626if test -n "$ac_tool_prefix"; then
6627  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6628set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631if test "${ac_cv_prog_RANLIB+set}" = set; then
6632  echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
6634  if test -n "$RANLIB"; then
6635  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640  IFS=$as_save_IFS
6641  test -z "$as_dir" && as_dir=.
6642  for ac_exec_ext in '' $ac_executable_extensions; do
6643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646    break 2
6647  fi
6648done
6649done
6650IFS=$as_save_IFS
6651
6652fi
6653fi
6654RANLIB=$ac_cv_prog_RANLIB
6655if test -n "$RANLIB"; then
6656  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6657echo "${ECHO_T}$RANLIB" >&6; }
6658else
6659  { echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6; }
6661fi
6662
6663
6664fi
6665if test -z "$ac_cv_prog_RANLIB"; then
6666  ac_ct_RANLIB=$RANLIB
6667  # Extract the first word of "ranlib", so it can be a program name with args.
6668set dummy ranlib; ac_word=$2
6669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6672  echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674  if test -n "$ac_ct_RANLIB"; then
6675  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680  IFS=$as_save_IFS
6681  test -z "$as_dir" && as_dir=.
6682  for ac_exec_ext in '' $ac_executable_extensions; do
6683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684    ac_cv_prog_ac_ct_RANLIB="ranlib"
6685    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686    break 2
6687  fi
6688done
6689done
6690IFS=$as_save_IFS
6691
6692fi
6693fi
6694ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6695if test -n "$ac_ct_RANLIB"; then
6696  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6697echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6698else
6699  { echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6; }
6701fi
6702
6703  if test "x$ac_ct_RANLIB" = x; then
6704    RANLIB=":"
6705  else
6706    case $cross_compiling:$ac_tool_warned in
6707yes:)
6708{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6709whose name does not start with the host triplet.  If you think this
6710configuration is useful to you, please write to autoconf@gnu.org." >&5
6711echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6712whose name does not start with the host triplet.  If you think this
6713configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6714ac_tool_warned=yes ;;
6715esac
6716    RANLIB=$ac_ct_RANLIB
6717  fi
6718else
6719  RANLIB="$ac_cv_prog_RANLIB"
6720fi
6721
6722if test -n "$ac_tool_prefix"; then
6723  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6724set dummy ${ac_tool_prefix}strip; ac_word=$2
6725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727if test "${ac_cv_prog_STRIP+set}" = set; then
6728  echo $ECHO_N "(cached) $ECHO_C" >&6
6729else
6730  if test -n "$STRIP"; then
6731  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6732else
6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734for as_dir in $PATH
6735do
6736  IFS=$as_save_IFS
6737  test -z "$as_dir" && as_dir=.
6738  for ac_exec_ext in '' $ac_executable_extensions; do
6739  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6741    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742    break 2
6743  fi
6744done
6745done
6746IFS=$as_save_IFS
6747
6748fi
6749fi
6750STRIP=$ac_cv_prog_STRIP
6751if test -n "$STRIP"; then
6752  { echo "$as_me:$LINENO: result: $STRIP" >&5
6753echo "${ECHO_T}$STRIP" >&6; }
6754else
6755  { echo "$as_me:$LINENO: result: no" >&5
6756echo "${ECHO_T}no" >&6; }
6757fi
6758
6759
6760fi
6761if test -z "$ac_cv_prog_STRIP"; then
6762  ac_ct_STRIP=$STRIP
6763  # Extract the first word of "strip", so it can be a program name with args.
6764set dummy strip; ac_word=$2
6765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6768  echo $ECHO_N "(cached) $ECHO_C" >&6
6769else
6770  if test -n "$ac_ct_STRIP"; then
6771  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6772else
6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776  IFS=$as_save_IFS
6777  test -z "$as_dir" && as_dir=.
6778  for ac_exec_ext in '' $ac_executable_extensions; do
6779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780    ac_cv_prog_ac_ct_STRIP="strip"
6781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782    break 2
6783  fi
6784done
6785done
6786IFS=$as_save_IFS
6787
6788fi
6789fi
6790ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6791if test -n "$ac_ct_STRIP"; then
6792  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6793echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6794else
6795  { echo "$as_me:$LINENO: result: no" >&5
6796echo "${ECHO_T}no" >&6; }
6797fi
6798
6799  if test "x$ac_ct_STRIP" = x; then
6800    STRIP=":"
6801  else
6802    case $cross_compiling:$ac_tool_warned in
6803yes:)
6804{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6805whose name does not start with the host triplet.  If you think this
6806configuration is useful to you, please write to autoconf@gnu.org." >&5
6807echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6808whose name does not start with the host triplet.  If you think this
6809configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6810ac_tool_warned=yes ;;
6811esac
6812    STRIP=$ac_ct_STRIP
6813  fi
6814else
6815  STRIP="$ac_cv_prog_STRIP"
6816fi
6817
6818
6819old_CC="$CC"
6820old_CFLAGS="$CFLAGS"
6821
6822# Set sane defaults for various variables
6823test -z "$AR" && AR=ar
6824test -z "$AR_FLAGS" && AR_FLAGS=cru
6825test -z "$AS" && AS=as
6826test -z "$CC" && CC=cc
6827test -z "$LTCC" && LTCC=$CC
6828test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6829test -z "$DLLTOOL" && DLLTOOL=dlltool
6830test -z "$LD" && LD=ld
6831test -z "$LN_S" && LN_S="ln -s"
6832test -z "$MAGIC_CMD" && MAGIC_CMD=file
6833test -z "$NM" && NM=nm
6834test -z "$SED" && SED=sed
6835test -z "$OBJDUMP" && OBJDUMP=objdump
6836test -z "$RANLIB" && RANLIB=:
6837test -z "$STRIP" && STRIP=:
6838test -z "$ac_objext" && ac_objext=o
6839
6840# Determine commands to create old-style static archives.
6841old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6842old_postinstall_cmds='chmod 644 $oldlib'
6843old_postuninstall_cmds=
6844
6845if test -n "$RANLIB"; then
6846  case $host_os in
6847  openbsd*)
6848    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6849    ;;
6850  *)
6851    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6852    ;;
6853  esac
6854  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6855fi
6856
6857for cc_temp in $compiler""; do
6858  case $cc_temp in
6859    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6860    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6861    \-*) ;;
6862    *) break;;
6863  esac
6864done
6865cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6866
6867
6868# Only perform the check for file, if the check method requires it
6869case $deplibs_check_method in
6870file_magic*)
6871  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6872    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6873echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6874if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6875  echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877  case $MAGIC_CMD in
6878[\\/*] |  ?:[\\/]*)
6879  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6880  ;;
6881*)
6882  lt_save_MAGIC_CMD="$MAGIC_CMD"
6883  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6884  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6885  for ac_dir in $ac_dummy; do
6886    IFS="$lt_save_ifs"
6887    test -z "$ac_dir" && ac_dir=.
6888    if test -f $ac_dir/${ac_tool_prefix}file; then
6889      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6890      if test -n "$file_magic_test_file"; then
6891	case $deplibs_check_method in
6892	"file_magic "*)
6893	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6894	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6895	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6896	    $EGREP "$file_magic_regex" > /dev/null; then
6897	    :
6898	  else
6899	    cat <<EOF 1>&2
6900
6901*** Warning: the command libtool uses to detect shared libraries,
6902*** $file_magic_cmd, produces output that libtool cannot recognize.
6903*** The result is that libtool may fail to recognize shared libraries
6904*** as such.  This will affect the creation of libtool libraries that
6905*** depend on shared libraries, but programs linked with such libtool
6906*** libraries will work regardless of this problem.  Nevertheless, you
6907*** may want to report the problem to your system manager and/or to
6908*** bug-libtool@gnu.org
6909
6910EOF
6911	  fi ;;
6912	esac
6913      fi
6914      break
6915    fi
6916  done
6917  IFS="$lt_save_ifs"
6918  MAGIC_CMD="$lt_save_MAGIC_CMD"
6919  ;;
6920esac
6921fi
6922
6923MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6924if test -n "$MAGIC_CMD"; then
6925  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6926echo "${ECHO_T}$MAGIC_CMD" >&6; }
6927else
6928  { echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6; }
6930fi
6931
6932if test -z "$lt_cv_path_MAGIC_CMD"; then
6933  if test -n "$ac_tool_prefix"; then
6934    { echo "$as_me:$LINENO: checking for file" >&5
6935echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6936if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6937  echo $ECHO_N "(cached) $ECHO_C" >&6
6938else
6939  case $MAGIC_CMD in
6940[\\/*] |  ?:[\\/]*)
6941  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6942  ;;
6943*)
6944  lt_save_MAGIC_CMD="$MAGIC_CMD"
6945  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6946  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6947  for ac_dir in $ac_dummy; do
6948    IFS="$lt_save_ifs"
6949    test -z "$ac_dir" && ac_dir=.
6950    if test -f $ac_dir/file; then
6951      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6952      if test -n "$file_magic_test_file"; then
6953	case $deplibs_check_method in
6954	"file_magic "*)
6955	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6956	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6957	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6958	    $EGREP "$file_magic_regex" > /dev/null; then
6959	    :
6960	  else
6961	    cat <<EOF 1>&2
6962
6963*** Warning: the command libtool uses to detect shared libraries,
6964*** $file_magic_cmd, produces output that libtool cannot recognize.
6965*** The result is that libtool may fail to recognize shared libraries
6966*** as such.  This will affect the creation of libtool libraries that
6967*** depend on shared libraries, but programs linked with such libtool
6968*** libraries will work regardless of this problem.  Nevertheless, you
6969*** may want to report the problem to your system manager and/or to
6970*** bug-libtool@gnu.org
6971
6972EOF
6973	  fi ;;
6974	esac
6975      fi
6976      break
6977    fi
6978  done
6979  IFS="$lt_save_ifs"
6980  MAGIC_CMD="$lt_save_MAGIC_CMD"
6981  ;;
6982esac
6983fi
6984
6985MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6986if test -n "$MAGIC_CMD"; then
6987  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6988echo "${ECHO_T}$MAGIC_CMD" >&6; }
6989else
6990  { echo "$as_me:$LINENO: result: no" >&5
6991echo "${ECHO_T}no" >&6; }
6992fi
6993
6994  else
6995    MAGIC_CMD=:
6996  fi
6997fi
6998
6999  fi
7000  ;;
7001esac
7002
7003enable_dlopen=no
7004enable_win32_dll=no
7005
7006# Check whether --enable-libtool-lock was given.
7007if test "${enable_libtool_lock+set}" = set; then
7008  enableval=$enable_libtool_lock;
7009fi
7010
7011test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7012
7013
7014# Check whether --with-pic was given.
7015if test "${with_pic+set}" = set; then
7016  withval=$with_pic; pic_mode="$withval"
7017else
7018  pic_mode=default
7019fi
7020
7021test -z "$pic_mode" && pic_mode=default
7022
7023# Use C for the default configuration in the libtool script
7024tagname=
7025lt_save_CC="$CC"
7026ac_ext=c
7027ac_cpp='$CPP $CPPFLAGS'
7028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7030ac_compiler_gnu=$ac_cv_c_compiler_gnu
7031
7032
7033# Source file extension for C test sources.
7034ac_ext=c
7035
7036# Object file extension for compiled C test sources.
7037objext=o
7038objext=$objext
7039
7040# Code to be used in simple compile tests
7041lt_simple_compile_test_code="int some_variable = 0;\n"
7042
7043# Code to be used in simple link tests
7044lt_simple_link_test_code='int main(){return(0);}\n'
7045
7046
7047# If no C compiler was specified, use CC.
7048LTCC=${LTCC-"$CC"}
7049
7050# If no C compiler flags were specified, use CFLAGS.
7051LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7052
7053# Allow CC to be a program name with arguments.
7054compiler=$CC
7055
7056
7057# save warnings/boilerplate of simple test code
7058ac_outfile=conftest.$ac_objext
7059printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7060eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7061_lt_compiler_boilerplate=`cat conftest.err`
7062$rm conftest*
7063
7064ac_outfile=conftest.$ac_objext
7065printf "$lt_simple_link_test_code" >conftest.$ac_ext
7066eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7067_lt_linker_boilerplate=`cat conftest.err`
7068$rm conftest*
7069
7070
7071
7072lt_prog_compiler_no_builtin_flag=
7073
7074if test "$GCC" = yes; then
7075  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7076
7077
7078{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7079echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7080if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7081  echo $ECHO_N "(cached) $ECHO_C" >&6
7082else
7083  lt_cv_prog_compiler_rtti_exceptions=no
7084  ac_outfile=conftest.$ac_objext
7085   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7086   lt_compiler_flag="-fno-rtti -fno-exceptions"
7087   # Insert the option either (1) after the last *FLAGS variable, or
7088   # (2) before a word containing "conftest.", or (3) at the end.
7089   # Note that $ac_compile itself does not contain backslashes and begins
7090   # with a dollar sign (not a hyphen), so the echo should work correctly.
7091   # The option is referenced via a variable to avoid confusing sed.
7092   lt_compile=`echo "$ac_compile" | $SED \
7093   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7094   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7095   -e 's:$: $lt_compiler_flag:'`
7096   (eval echo "\"\$as_me:7096: $lt_compile\"" >&5)
7097   (eval "$lt_compile" 2>conftest.err)
7098   ac_status=$?
7099   cat conftest.err >&5
7100   echo "$as_me:7100: \$? = $ac_status" >&5
7101   if (exit $ac_status) && test -s "$ac_outfile"; then
7102     # The compiler can only warn and ignore the option if not recognized
7103     # So say no if there are warnings other than the usual output.
7104     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7105     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7106     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7107       lt_cv_prog_compiler_rtti_exceptions=yes
7108     fi
7109   fi
7110   $rm conftest*
7111
7112fi
7113{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7114echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7115
7116if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7117    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7118else
7119    :
7120fi
7121
7122fi
7123
7124lt_prog_compiler_wl=
7125lt_prog_compiler_pic=
7126lt_prog_compiler_static=
7127
7128{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7129echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7130
7131  if test "$GCC" = yes; then
7132    lt_prog_compiler_wl='-Wl,'
7133    lt_prog_compiler_static='-static'
7134
7135    case $host_os in
7136      aix*)
7137      # All AIX code is PIC.
7138      if test "$host_cpu" = ia64; then
7139	# AIX 5 now supports IA64 processor
7140	lt_prog_compiler_static='-Bstatic'
7141      fi
7142      ;;
7143
7144    amigaos*)
7145      # FIXME: we need at least 68020 code to build shared libraries, but
7146      # adding the `-m68020' flag to GCC prevents building anything better,
7147      # like `-m68040'.
7148      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7149      ;;
7150
7151    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7152      # PIC is the default for these OSes.
7153      ;;
7154
7155    mingw* | pw32* | os2*)
7156      # This hack is so that the source file can tell whether it is being
7157      # built for inclusion in a dll (and should export symbols for example).
7158      lt_prog_compiler_pic='-DDLL_EXPORT'
7159      ;;
7160
7161    darwin* | rhapsody*)
7162      # PIC is the default on this platform
7163      # Common symbols not allowed in MH_DYLIB files
7164      lt_prog_compiler_pic='-fno-common'
7165      ;;
7166
7167    interix3*)
7168      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7169      # Instead, we relocate shared libraries at runtime.
7170      ;;
7171
7172    msdosdjgpp*)
7173      # Just because we use GCC doesn't mean we suddenly get shared libraries
7174      # on systems that don't support them.
7175      lt_prog_compiler_can_build_shared=no
7176      enable_shared=no
7177      ;;
7178
7179    sysv4*MP*)
7180      if test -d /usr/nec; then
7181	lt_prog_compiler_pic=-Kconform_pic
7182      fi
7183      ;;
7184
7185    hpux*)
7186      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7187      # not for PA HP-UX.
7188      case $host_cpu in
7189      hppa*64*|ia64*)
7190	# +Z the default
7191	;;
7192      *)
7193	lt_prog_compiler_pic='-fPIC'
7194	;;
7195      esac
7196      ;;
7197
7198    *)
7199      lt_prog_compiler_pic='-fPIC'
7200      ;;
7201    esac
7202  else
7203    # PORTME Check for flag to pass linker flags through the system compiler.
7204    case $host_os in
7205    aix*)
7206      lt_prog_compiler_wl='-Wl,'
7207      if test "$host_cpu" = ia64; then
7208	# AIX 5 now supports IA64 processor
7209	lt_prog_compiler_static='-Bstatic'
7210      else
7211	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7212      fi
7213      ;;
7214      darwin*)
7215        # PIC is the default on this platform
7216        # Common symbols not allowed in MH_DYLIB files
7217       case $cc_basename in
7218         xlc*)
7219         lt_prog_compiler_pic='-qnocommon'
7220         lt_prog_compiler_wl='-Wl,'
7221         ;;
7222       esac
7223       ;;
7224
7225    mingw* | pw32* | os2*)
7226      # This hack is so that the source file can tell whether it is being
7227      # built for inclusion in a dll (and should export symbols for example).
7228      lt_prog_compiler_pic='-DDLL_EXPORT'
7229      ;;
7230
7231    hpux9* | hpux10* | hpux11*)
7232      lt_prog_compiler_wl='-Wl,'
7233      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7234      # not for PA HP-UX.
7235      case $host_cpu in
7236      hppa*64*|ia64*)
7237	# +Z the default
7238	;;
7239      *)
7240	lt_prog_compiler_pic='+Z'
7241	;;
7242      esac
7243      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7244      lt_prog_compiler_static='${wl}-a ${wl}archive'
7245      ;;
7246
7247    irix5* | irix6* | nonstopux*)
7248      lt_prog_compiler_wl='-Wl,'
7249      # PIC (with -KPIC) is the default.
7250      lt_prog_compiler_static='-non_shared'
7251      ;;
7252
7253    newsos6)
7254      lt_prog_compiler_pic='-KPIC'
7255      lt_prog_compiler_static='-Bstatic'
7256      ;;
7257
7258    linux*)
7259      case $cc_basename in
7260      icc* | ecc*)
7261	lt_prog_compiler_wl='-Wl,'
7262	lt_prog_compiler_pic='-KPIC'
7263	lt_prog_compiler_static='-static'
7264        ;;
7265      pgcc* | pgf77* | pgf90* | pgf95*)
7266        # Portland Group compilers (*not* the Pentium gcc compiler,
7267	# which looks to be a dead project)
7268	lt_prog_compiler_wl='-Wl,'
7269	lt_prog_compiler_pic='-fpic'
7270	lt_prog_compiler_static='-Bstatic'
7271        ;;
7272      ccc*)
7273        lt_prog_compiler_wl='-Wl,'
7274        # All Alpha code is PIC.
7275        lt_prog_compiler_static='-non_shared'
7276        ;;
7277      esac
7278      ;;
7279
7280    osf3* | osf4* | osf5*)
7281      lt_prog_compiler_wl='-Wl,'
7282      # All OSF/1 code is PIC.
7283      lt_prog_compiler_static='-non_shared'
7284      ;;
7285
7286    solaris*)
7287      lt_prog_compiler_pic='-KPIC'
7288      lt_prog_compiler_static='-Bstatic'
7289      case $cc_basename in
7290      f77* | f90* | f95*)
7291	lt_prog_compiler_wl='-Qoption ld ';;
7292      *)
7293	lt_prog_compiler_wl='-Wl,';;
7294      esac
7295      ;;
7296
7297    sunos4*)
7298      lt_prog_compiler_wl='-Qoption ld '
7299      lt_prog_compiler_pic='-PIC'
7300      lt_prog_compiler_static='-Bstatic'
7301      ;;
7302
7303    sysv4 | sysv4.2uw2* | sysv4.3*)
7304      lt_prog_compiler_wl='-Wl,'
7305      lt_prog_compiler_pic='-KPIC'
7306      lt_prog_compiler_static='-Bstatic'
7307      ;;
7308
7309    sysv4*MP*)
7310      if test -d /usr/nec ;then
7311	lt_prog_compiler_pic='-Kconform_pic'
7312	lt_prog_compiler_static='-Bstatic'
7313      fi
7314      ;;
7315
7316    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7317      lt_prog_compiler_wl='-Wl,'
7318      lt_prog_compiler_pic='-KPIC'
7319      lt_prog_compiler_static='-Bstatic'
7320      ;;
7321
7322    unicos*)
7323      lt_prog_compiler_wl='-Wl,'
7324      lt_prog_compiler_can_build_shared=no
7325      ;;
7326
7327    uts4*)
7328      lt_prog_compiler_pic='-pic'
7329      lt_prog_compiler_static='-Bstatic'
7330      ;;
7331
7332    *)
7333      lt_prog_compiler_can_build_shared=no
7334      ;;
7335    esac
7336  fi
7337
7338{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7339echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7340
7341#
7342# Check to make sure the PIC flag actually works.
7343#
7344if test -n "$lt_prog_compiler_pic"; then
7345
7346{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7347echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7348if test "${lt_prog_compiler_pic_works+set}" = set; then
7349  echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351  lt_prog_compiler_pic_works=no
7352  ac_outfile=conftest.$ac_objext
7353   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7354   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7355   # Insert the option either (1) after the last *FLAGS variable, or
7356   # (2) before a word containing "conftest.", or (3) at the end.
7357   # Note that $ac_compile itself does not contain backslashes and begins
7358   # with a dollar sign (not a hyphen), so the echo should work correctly.
7359   # The option is referenced via a variable to avoid confusing sed.
7360   lt_compile=`echo "$ac_compile" | $SED \
7361   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7362   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7363   -e 's:$: $lt_compiler_flag:'`
7364   (eval echo "\"\$as_me:7364: $lt_compile\"" >&5)
7365   (eval "$lt_compile" 2>conftest.err)
7366   ac_status=$?
7367   cat conftest.err >&5
7368   echo "$as_me:7368: \$? = $ac_status" >&5
7369   if (exit $ac_status) && test -s "$ac_outfile"; then
7370     # The compiler can only warn and ignore the option if not recognized
7371     # So say no if there are warnings other than the usual output.
7372     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7373     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7374     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7375       lt_prog_compiler_pic_works=yes
7376     fi
7377   fi
7378   $rm conftest*
7379
7380fi
7381{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7382echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7383
7384if test x"$lt_prog_compiler_pic_works" = xyes; then
7385    case $lt_prog_compiler_pic in
7386     "" | " "*) ;;
7387     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7388     esac
7389else
7390    lt_prog_compiler_pic=
7391     lt_prog_compiler_can_build_shared=no
7392fi
7393
7394fi
7395case $host_os in
7396  # For platforms which do not support PIC, -DPIC is meaningless:
7397  *djgpp*)
7398    lt_prog_compiler_pic=
7399    ;;
7400  *)
7401    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7402    ;;
7403esac
7404
7405#
7406# Check to make sure the static flag actually works.
7407#
7408wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7409{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7410echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7411if test "${lt_prog_compiler_static_works+set}" = set; then
7412  echo $ECHO_N "(cached) $ECHO_C" >&6
7413else
7414  lt_prog_compiler_static_works=no
7415   save_LDFLAGS="$LDFLAGS"
7416   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7417   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7418   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7419     # The linker can only warn and ignore the option if not recognized
7420     # So say no if there are warnings
7421     if test -s conftest.err; then
7422       # Append any errors to the config.log.
7423       cat conftest.err 1>&5
7424       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7425       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7426       if diff conftest.exp conftest.er2 >/dev/null; then
7427         lt_prog_compiler_static_works=yes
7428       fi
7429     else
7430       lt_prog_compiler_static_works=yes
7431     fi
7432   fi
7433   $rm conftest*
7434   LDFLAGS="$save_LDFLAGS"
7435
7436fi
7437{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7438echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7439
7440if test x"$lt_prog_compiler_static_works" = xyes; then
7441    :
7442else
7443    lt_prog_compiler_static=
7444fi
7445
7446
7447{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7448echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7449if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7450  echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452  lt_cv_prog_compiler_c_o=no
7453   $rm -r conftest 2>/dev/null
7454   mkdir conftest
7455   cd conftest
7456   mkdir out
7457   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7458
7459   lt_compiler_flag="-o out/conftest2.$ac_objext"
7460   # Insert the option either (1) after the last *FLAGS variable, or
7461   # (2) before a word containing "conftest.", or (3) at the end.
7462   # Note that $ac_compile itself does not contain backslashes and begins
7463   # with a dollar sign (not a hyphen), so the echo should work correctly.
7464   lt_compile=`echo "$ac_compile" | $SED \
7465   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7466   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7467   -e 's:$: $lt_compiler_flag:'`
7468   (eval echo "\"\$as_me:7468: $lt_compile\"" >&5)
7469   (eval "$lt_compile" 2>out/conftest.err)
7470   ac_status=$?
7471   cat out/conftest.err >&5
7472   echo "$as_me:7472: \$? = $ac_status" >&5
7473   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7474   then
7475     # The compiler can only warn and ignore the option if not recognized
7476     # So say no if there are warnings
7477     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7478     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7479     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7480       lt_cv_prog_compiler_c_o=yes
7481     fi
7482   fi
7483   chmod u+w . 2>&5
7484   $rm conftest*
7485   # SGI C++ compiler will create directory out/ii_files/ for
7486   # template instantiation
7487   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7488   $rm out/* && rmdir out
7489   cd ..
7490   rmdir conftest
7491   $rm conftest*
7492
7493fi
7494{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7495echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7496
7497
7498hard_links="nottested"
7499if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7500  # do not overwrite the value of need_locks provided by the user
7501  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7502echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7503  hard_links=yes
7504  $rm conftest*
7505  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7506  touch conftest.a
7507  ln conftest.a conftest.b 2>&5 || hard_links=no
7508  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7509  { echo "$as_me:$LINENO: result: $hard_links" >&5
7510echo "${ECHO_T}$hard_links" >&6; }
7511  if test "$hard_links" = no; then
7512    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7513echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7514    need_locks=warn
7515  fi
7516else
7517  need_locks=no
7518fi
7519
7520{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7521echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7522
7523  runpath_var=
7524  allow_undefined_flag=
7525  enable_shared_with_static_runtimes=no
7526  archive_cmds=
7527  archive_expsym_cmds=
7528  old_archive_From_new_cmds=
7529  old_archive_from_expsyms_cmds=
7530  export_dynamic_flag_spec=
7531  whole_archive_flag_spec=
7532  thread_safe_flag_spec=
7533  hardcode_libdir_flag_spec=
7534  hardcode_libdir_flag_spec_ld=
7535  hardcode_libdir_separator=
7536  hardcode_direct=no
7537  hardcode_minus_L=no
7538  hardcode_shlibpath_var=unsupported
7539  link_all_deplibs=unknown
7540  hardcode_automatic=no
7541  module_cmds=
7542  module_expsym_cmds=
7543  always_export_symbols=no
7544  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7545  # include_expsyms should be a list of space-separated symbols to be *always*
7546  # included in the symbol list
7547  include_expsyms=
7548  # exclude_expsyms can be an extended regexp of symbols to exclude
7549  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7550  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7551  # as well as any symbol that contains `d'.
7552  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7553  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7554  # platforms (ab)use it in PIC code, but their linkers get confused if
7555  # the symbol is explicitly referenced.  Since portable code cannot
7556  # rely on this symbol name, it's probably fine to never include it in
7557  # preloaded symbol tables.
7558  extract_expsyms_cmds=
7559  # Just being paranoid about ensuring that cc_basename is set.
7560  for cc_temp in $compiler""; do
7561  case $cc_temp in
7562    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7563    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7564    \-*) ;;
7565    *) break;;
7566  esac
7567done
7568cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7569
7570  case $host_os in
7571  cygwin* | mingw* | pw32*)
7572    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7573    # When not using gcc, we currently assume that we are using
7574    # Microsoft Visual C++.
7575    if test "$GCC" != yes; then
7576      with_gnu_ld=no
7577    fi
7578    ;;
7579  interix*)
7580    # we just hope/assume this is gcc and not c89 (= MSVC++)
7581    with_gnu_ld=yes
7582    ;;
7583  openbsd*)
7584    with_gnu_ld=no
7585    ;;
7586  esac
7587
7588  ld_shlibs=yes
7589  if test "$with_gnu_ld" = yes; then
7590    # If archive_cmds runs LD, not CC, wlarc should be empty
7591    wlarc='${wl}'
7592
7593    # Set some defaults for GNU ld with shared library support. These
7594    # are reset later if shared libraries are not supported. Putting them
7595    # here allows them to be overridden if necessary.
7596    runpath_var=LD_RUN_PATH
7597    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7598    export_dynamic_flag_spec='${wl}--export-dynamic'
7599    # ancient GNU ld didn't support --whole-archive et. al.
7600    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7601	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7602      else
7603  	whole_archive_flag_spec=
7604    fi
7605    supports_anon_versioning=no
7606    case `$LD -v 2>/dev/null` in
7607      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7608      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7609      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7610      *\ 2.11.*) ;; # other 2.11 versions
7611      *) supports_anon_versioning=yes ;;
7612    esac
7613
7614    # See if GNU ld supports shared libraries.
7615    case $host_os in
7616    aix3* | aix4* | aix5*)
7617      # On AIX/PPC, the GNU linker is very broken
7618      if test "$host_cpu" != ia64; then
7619	ld_shlibs=no
7620	cat <<EOF 1>&2
7621
7622*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7623*** to be unable to reliably create shared libraries on AIX.
7624*** Therefore, libtool is disabling shared libraries support.  If you
7625*** really care for shared libraries, you may want to modify your PATH
7626*** so that a non-GNU linker is found, and then restart.
7627
7628EOF
7629      fi
7630      ;;
7631
7632    amigaos*)
7633      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)'
7634      hardcode_libdir_flag_spec='-L$libdir'
7635      hardcode_minus_L=yes
7636
7637      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7638      # that the semantics of dynamic libraries on AmigaOS, at least up
7639      # to version 4, is to share data among multiple programs linked
7640      # with the same dynamic library.  Since this doesn't match the
7641      # behavior of shared libraries on other platforms, we can't use
7642      # them.
7643      ld_shlibs=no
7644      ;;
7645
7646    beos*)
7647      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7648	allow_undefined_flag=unsupported
7649	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7650	# support --undefined.  This deserves some investigation.  FIXME
7651	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7652      else
7653	ld_shlibs=no
7654      fi
7655      ;;
7656
7657    cygwin* | mingw* | pw32*)
7658      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7659      # as there is no search path for DLLs.
7660      hardcode_libdir_flag_spec='-L$libdir'
7661      allow_undefined_flag=unsupported
7662      always_export_symbols=no
7663      enable_shared_with_static_runtimes=yes
7664      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7665
7666      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7667        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7668	# If the export-symbols file already is a .def file (1st line
7669	# is EXPORTS), use it as is; otherwise, prepend...
7670	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7671	  cp $export_symbols $output_objdir/$soname.def;
7672	else
7673	  echo EXPORTS > $output_objdir/$soname.def;
7674	  cat $export_symbols >> $output_objdir/$soname.def;
7675	fi~
7676	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7677      else
7678	ld_shlibs=no
7679      fi
7680      ;;
7681
7682    interix3*)
7683      hardcode_direct=no
7684      hardcode_shlibpath_var=no
7685      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7686      export_dynamic_flag_spec='${wl}-E'
7687      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7688      # Instead, shared libraries are loaded at an image base (0x10000000 by
7689      # default) and relocated if they conflict, which is a slow very memory
7690      # consuming and fragmenting process.  To avoid this, we pick a random,
7691      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7692      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7693      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7694      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'
7695      ;;
7696
7697    linux*)
7698      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7699	tmp_addflag=
7700	case $cc_basename,$host_cpu in
7701	pgcc*)				# Portland Group C compiler
7702	  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'
7703	  tmp_addflag=' $pic_flag'
7704	  ;;
7705	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7706	  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'
7707	  tmp_addflag=' $pic_flag -Mnomain' ;;
7708	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7709	  tmp_addflag=' -i_dynamic' ;;
7710	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7711	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7712	ifc* | ifort*)			# Intel Fortran compiler
7713	  tmp_addflag=' -nofor_main' ;;
7714	esac
7715	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7716
7717	if test $supports_anon_versioning = yes; then
7718	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7719  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7720  $echo "local: *; };" >> $output_objdir/$libname.ver~
7721	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7722	fi
7723      else
7724	ld_shlibs=no
7725      fi
7726      ;;
7727
7728    netbsd*)
7729      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7730	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7731	wlarc=
7732      else
7733	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7734	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7735      fi
7736      ;;
7737
7738    solaris*)
7739      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7740	ld_shlibs=no
7741	cat <<EOF 1>&2
7742
7743*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7744*** create shared libraries on Solaris systems.  Therefore, libtool
7745*** is disabling shared libraries support.  We urge you to upgrade GNU
7746*** binutils to release 2.9.1 or newer.  Another option is to modify
7747*** your PATH or compiler configuration so that the native linker is
7748*** used, and then restart.
7749
7750EOF
7751      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7752	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7753	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7754      else
7755	ld_shlibs=no
7756      fi
7757      ;;
7758
7759    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7760      case `$LD -v 2>&1` in
7761        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7762	ld_shlibs=no
7763	cat <<_LT_EOF 1>&2
7764
7765*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7766*** reliably create shared libraries on SCO systems.  Therefore, libtool
7767*** is disabling shared libraries support.  We urge you to upgrade GNU
7768*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7769*** your PATH or compiler configuration so that the native linker is
7770*** used, and then restart.
7771
7772_LT_EOF
7773	;;
7774	*)
7775	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7776	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7777	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7778	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7779	  else
7780	    ld_shlibs=no
7781	  fi
7782	;;
7783      esac
7784      ;;
7785
7786    sunos4*)
7787      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7788      wlarc=
7789      hardcode_direct=yes
7790      hardcode_shlibpath_var=no
7791      ;;
7792
7793    *)
7794      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7795	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7796	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7797      else
7798	ld_shlibs=no
7799      fi
7800      ;;
7801    esac
7802
7803    if test "$ld_shlibs" = no; then
7804      runpath_var=
7805      hardcode_libdir_flag_spec=
7806      export_dynamic_flag_spec=
7807      whole_archive_flag_spec=
7808    fi
7809  else
7810    # PORTME fill in a description of your system's linker (not GNU ld)
7811    case $host_os in
7812    aix3*)
7813      allow_undefined_flag=unsupported
7814      always_export_symbols=yes
7815      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'
7816      # Note: this linker hardcodes the directories in LIBPATH if there
7817      # are no directories specified by -L.
7818      hardcode_minus_L=yes
7819      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7820	# Neither direct hardcoding nor static linking is supported with a
7821	# broken collect2.
7822	hardcode_direct=unsupported
7823      fi
7824      ;;
7825
7826    aix4* | aix5*)
7827      if test "$host_cpu" = ia64; then
7828	# On IA64, the linker does run time linking by default, so we don't
7829	# have to do anything special.
7830	aix_use_runtimelinking=no
7831	exp_sym_flag='-Bexport'
7832	no_entry_flag=""
7833      else
7834	# If we're using GNU nm, then we don't want the "-C" option.
7835	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7836	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7837	  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'
7838	else
7839	  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'
7840	fi
7841	aix_use_runtimelinking=no
7842
7843	# Test if we are trying to use run time linking or normal
7844	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7845	# need to do runtime linking.
7846	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7847	  for ld_flag in $LDFLAGS; do
7848  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7849  	    aix_use_runtimelinking=yes
7850  	    break
7851  	  fi
7852	  done
7853	  ;;
7854	esac
7855
7856	exp_sym_flag='-bexport'
7857	no_entry_flag='-bnoentry'
7858      fi
7859
7860      # When large executables or shared objects are built, AIX ld can
7861      # have problems creating the table of contents.  If linking a library
7862      # or program results in "error TOC overflow" add -mminimal-toc to
7863      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7864      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7865
7866      archive_cmds=''
7867      hardcode_direct=yes
7868      hardcode_libdir_separator=':'
7869      link_all_deplibs=yes
7870
7871      if test "$GCC" = yes; then
7872	case $host_os in aix4.[012]|aix4.[012].*)
7873	# We only want to do this on AIX 4.2 and lower, the check
7874	# below for broken collect2 doesn't work under 4.3+
7875	  collect2name=`${CC} -print-prog-name=collect2`
7876	  if test -f "$collect2name" && \
7877  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7878	  then
7879  	  # We have reworked collect2
7880  	  hardcode_direct=yes
7881	  else
7882  	  # We have old collect2
7883  	  hardcode_direct=unsupported
7884  	  # It fails to find uninstalled libraries when the uninstalled
7885  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7886  	  # to unsupported forces relinking
7887  	  hardcode_minus_L=yes
7888  	  hardcode_libdir_flag_spec='-L$libdir'
7889  	  hardcode_libdir_separator=
7890	  fi
7891	  ;;
7892	esac
7893	shared_flag='-shared'
7894	if test "$aix_use_runtimelinking" = yes; then
7895	  shared_flag="$shared_flag "'${wl}-G'
7896	fi
7897      else
7898	# not using gcc
7899	if test "$host_cpu" = ia64; then
7900  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7901  	# chokes on -Wl,-G. The following line is correct:
7902	  shared_flag='-G'
7903	else
7904	  if test "$aix_use_runtimelinking" = yes; then
7905	    shared_flag='${wl}-G'
7906	  else
7907	    shared_flag='${wl}-bM:SRE'
7908	  fi
7909	fi
7910      fi
7911
7912      # It seems that -bexpall does not export symbols beginning with
7913      # underscore (_), so it is better to generate a list of symbols to export.
7914      always_export_symbols=yes
7915      if test "$aix_use_runtimelinking" = yes; then
7916	# Warning - without using the other runtime loading flags (-brtl),
7917	# -berok will link without error, but may produce a broken library.
7918	allow_undefined_flag='-berok'
7919       # Determine the default libpath from the value encoded in an empty executable.
7920       cat >conftest.$ac_ext <<_ACEOF
7921/* confdefs.h.  */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h.  */
7926
7927int
7928main ()
7929{
7930
7931  ;
7932  return 0;
7933}
7934_ACEOF
7935rm -f conftest.$ac_objext conftest$ac_exeext
7936if { (ac_try="$ac_link"
7937case "(($ac_try" in
7938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939  *) ac_try_echo=$ac_try;;
7940esac
7941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942  (eval "$ac_link") 2>conftest.er1
7943  ac_status=$?
7944  grep -v '^ *+' conftest.er1 >conftest.err
7945  rm -f conftest.er1
7946  cat conftest.err >&5
7947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948  (exit $ac_status); } && {
7949	 test -z "$ac_c_werror_flag" ||
7950	 test ! -s conftest.err
7951       } && test -s conftest$ac_exeext &&
7952       $as_test_x conftest$ac_exeext; then
7953
7954aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7955}'`
7956# Check for a 64-bit object if we didn't find anything.
7957if 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; }
7958}'`; fi
7959else
7960  echo "$as_me: failed program was:" >&5
7961sed 's/^/| /' conftest.$ac_ext >&5
7962
7963
7964fi
7965
7966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7967      conftest$ac_exeext conftest.$ac_ext
7968if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7969
7970       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7971	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"
7972       else
7973	if test "$host_cpu" = ia64; then
7974	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7975	  allow_undefined_flag="-z nodefs"
7976	  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"
7977	else
7978	 # Determine the default libpath from the value encoded in an empty executable.
7979	 cat >conftest.$ac_ext <<_ACEOF
7980/* confdefs.h.  */
7981_ACEOF
7982cat confdefs.h >>conftest.$ac_ext
7983cat >>conftest.$ac_ext <<_ACEOF
7984/* end confdefs.h.  */
7985
7986int
7987main ()
7988{
7989
7990  ;
7991  return 0;
7992}
7993_ACEOF
7994rm -f conftest.$ac_objext conftest$ac_exeext
7995if { (ac_try="$ac_link"
7996case "(($ac_try" in
7997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998  *) ac_try_echo=$ac_try;;
7999esac
8000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001  (eval "$ac_link") 2>conftest.er1
8002  ac_status=$?
8003  grep -v '^ *+' conftest.er1 >conftest.err
8004  rm -f conftest.er1
8005  cat conftest.err >&5
8006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007  (exit $ac_status); } && {
8008	 test -z "$ac_c_werror_flag" ||
8009	 test ! -s conftest.err
8010       } && test -s conftest$ac_exeext &&
8011       $as_test_x conftest$ac_exeext; then
8012
8013aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8014}'`
8015# Check for a 64-bit object if we didn't find anything.
8016if 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; }
8017}'`; fi
8018else
8019  echo "$as_me: failed program was:" >&5
8020sed 's/^/| /' conftest.$ac_ext >&5
8021
8022
8023fi
8024
8025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8026      conftest$ac_exeext conftest.$ac_ext
8027if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8028
8029	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8030	  # Warning - without using the other run time loading flags,
8031	  # -berok will link without error, but may produce a broken library.
8032	  no_undefined_flag=' ${wl}-bernotok'
8033	  allow_undefined_flag=' ${wl}-berok'
8034	  # Exported symbols can be pulled into shared objects from archives
8035	  whole_archive_flag_spec='$convenience'
8036	  archive_cmds_need_lc=yes
8037	  # This is similar to how AIX traditionally builds its shared libraries.
8038	  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'
8039	fi
8040      fi
8041      ;;
8042
8043    amigaos*)
8044      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)'
8045      hardcode_libdir_flag_spec='-L$libdir'
8046      hardcode_minus_L=yes
8047      # see comment about different semantics on the GNU ld section
8048      ld_shlibs=no
8049      ;;
8050
8051    bsdi[45]*)
8052      export_dynamic_flag_spec=-rdynamic
8053      ;;
8054
8055    cygwin* | mingw* | pw32*)
8056      # When not using gcc, we currently assume that we are using
8057      # Microsoft Visual C++.
8058      # hardcode_libdir_flag_spec is actually meaningless, as there is
8059      # no search path for DLLs.
8060      hardcode_libdir_flag_spec=' '
8061      allow_undefined_flag=unsupported
8062      # Tell ltmain to make .lib files, not .a files.
8063      libext=lib
8064      # Tell ltmain to make .dll files, not .so files.
8065      shrext_cmds=".dll"
8066      # FIXME: Setting linknames here is a bad hack.
8067      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8068      # The linker will automatically build a .lib file if we build a DLL.
8069      old_archive_From_new_cmds='true'
8070      # FIXME: Should let the user specify the lib program.
8071      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8072      fix_srcfile_path='`cygpath -w "$srcfile"`'
8073      enable_shared_with_static_runtimes=yes
8074      ;;
8075
8076    darwin* | rhapsody*)
8077      case $host_os in
8078        rhapsody* | darwin1.[012])
8079         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8080         ;;
8081       *) # Darwin 1.3 on
8082         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8083           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8084         else
8085           case ${MACOSX_DEPLOYMENT_TARGET} in
8086             10.[012])
8087               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8088               ;;
8089             10.*)
8090               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8091               ;;
8092           esac
8093         fi
8094         ;;
8095      esac
8096      archive_cmds_need_lc=no
8097      hardcode_direct=no
8098      hardcode_automatic=yes
8099      hardcode_shlibpath_var=unsupported
8100      whole_archive_flag_spec=''
8101      link_all_deplibs=yes
8102    if test "$GCC" = yes ; then
8103    	output_verbose_link_cmd='echo'
8104        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8105      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8106      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8107      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}'
8108      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}'
8109    else
8110      case $cc_basename in
8111        xlc*)
8112         output_verbose_link_cmd='echo'
8113         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8114         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8115          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8116         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}'
8117          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}'
8118          ;;
8119       *)
8120         ld_shlibs=no
8121          ;;
8122      esac
8123    fi
8124      ;;
8125
8126    dgux*)
8127      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8128      hardcode_libdir_flag_spec='-L$libdir'
8129      hardcode_shlibpath_var=no
8130      ;;
8131
8132    freebsd1*)
8133      ld_shlibs=no
8134      ;;
8135
8136    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8137    # support.  Future versions do this automatically, but an explicit c++rt0.o
8138    # does not break anything, and helps significantly (at the cost of a little
8139    # extra space).
8140    freebsd2.2*)
8141      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8142      hardcode_libdir_flag_spec='-R$libdir'
8143      hardcode_direct=yes
8144      hardcode_shlibpath_var=no
8145      ;;
8146
8147    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8148    freebsd2*)
8149      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8150      hardcode_direct=yes
8151      hardcode_minus_L=yes
8152      hardcode_shlibpath_var=no
8153      ;;
8154
8155    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8156    freebsd* | kfreebsd*-gnu | dragonfly*)
8157      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8158      hardcode_libdir_flag_spec='-R$libdir'
8159      hardcode_direct=yes
8160      hardcode_shlibpath_var=no
8161      ;;
8162
8163    hpux9*)
8164      if test "$GCC" = yes; then
8165	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'
8166      else
8167	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'
8168      fi
8169      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8170      hardcode_libdir_separator=:
8171      hardcode_direct=yes
8172
8173      # hardcode_minus_L: Not really in the search PATH,
8174      # but as the default location of the library.
8175      hardcode_minus_L=yes
8176      export_dynamic_flag_spec='${wl}-E'
8177      ;;
8178
8179    hpux10*)
8180      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8181	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8182      else
8183	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8184      fi
8185      if test "$with_gnu_ld" = no; then
8186	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8187	hardcode_libdir_separator=:
8188
8189	hardcode_direct=yes
8190	export_dynamic_flag_spec='${wl}-E'
8191
8192	# hardcode_minus_L: Not really in the search PATH,
8193	# but as the default location of the library.
8194	hardcode_minus_L=yes
8195      fi
8196      ;;
8197
8198    hpux11*)
8199      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8200	case $host_cpu in
8201	hppa*64*)
8202	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8203	  ;;
8204	ia64*)
8205	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8206	  ;;
8207	*)
8208	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8209	  ;;
8210	esac
8211      else
8212	case $host_cpu in
8213	hppa*64*)
8214	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8215	  ;;
8216	ia64*)
8217	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8218	  ;;
8219	*)
8220	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8221	  ;;
8222	esac
8223      fi
8224      if test "$with_gnu_ld" = no; then
8225	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8226	hardcode_libdir_separator=:
8227
8228	case $host_cpu in
8229	hppa*64*|ia64*)
8230	  hardcode_libdir_flag_spec_ld='+b $libdir'
8231	  hardcode_direct=no
8232	  hardcode_shlibpath_var=no
8233	  ;;
8234	*)
8235	  hardcode_direct=yes
8236	  export_dynamic_flag_spec='${wl}-E'
8237
8238	  # hardcode_minus_L: Not really in the search PATH,
8239	  # but as the default location of the library.
8240	  hardcode_minus_L=yes
8241	  ;;
8242	esac
8243      fi
8244      ;;
8245
8246    irix5* | irix6* | nonstopux*)
8247      if test "$GCC" = yes; then
8248	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'
8249      else
8250	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'
8251	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8252      fi
8253      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8254      hardcode_libdir_separator=:
8255      link_all_deplibs=yes
8256      ;;
8257
8258    netbsd*)
8259      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8260	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8261      else
8262	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8263      fi
8264      hardcode_libdir_flag_spec='-R$libdir'
8265      hardcode_direct=yes
8266      hardcode_shlibpath_var=no
8267      ;;
8268
8269    newsos6)
8270      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8271      hardcode_direct=yes
8272      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8273      hardcode_libdir_separator=:
8274      hardcode_shlibpath_var=no
8275      ;;
8276
8277    openbsd*)
8278      hardcode_direct=yes
8279      hardcode_shlibpath_var=no
8280      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8281	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8282	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8283	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8284	export_dynamic_flag_spec='${wl}-E'
8285      else
8286       case $host_os in
8287	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8288	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8289	   hardcode_libdir_flag_spec='-R$libdir'
8290	   ;;
8291	 *)
8292	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8293	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8294	   ;;
8295       esac
8296      fi
8297      ;;
8298
8299    os2*)
8300      hardcode_libdir_flag_spec='-L$libdir'
8301      hardcode_minus_L=yes
8302      allow_undefined_flag=unsupported
8303      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'
8304      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8305      ;;
8306
8307    osf3*)
8308      if test "$GCC" = yes; then
8309	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8310	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'
8311      else
8312	allow_undefined_flag=' -expect_unresolved \*'
8313	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'
8314      fi
8315      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8316      hardcode_libdir_separator=:
8317      ;;
8318
8319    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8320      if test "$GCC" = yes; then
8321	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8322	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'
8323	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8324      else
8325	allow_undefined_flag=' -expect_unresolved \*'
8326	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'
8327	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8328	$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'
8329
8330	# Both c and cxx compiler support -rpath directly
8331	hardcode_libdir_flag_spec='-rpath $libdir'
8332      fi
8333      hardcode_libdir_separator=:
8334      ;;
8335
8336    solaris*)
8337      no_undefined_flag=' -z text'
8338      if test "$GCC" = yes; then
8339	wlarc='${wl}'
8340	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8341	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8342	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8343      else
8344	wlarc=''
8345	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8346	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8347  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8348      fi
8349      hardcode_libdir_flag_spec='-R$libdir'
8350      hardcode_shlibpath_var=no
8351      case $host_os in
8352      solaris2.[0-5] | solaris2.[0-5].*) ;;
8353      *)
8354 	# The compiler driver will combine linker options so we
8355 	# cannot just pass the convience library names through
8356 	# without $wl, iff we do not link with $LD.
8357 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8358 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8359 	case $wlarc in
8360 	'')
8361 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8362 	*)
8363 	  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' ;;
8364 	esac ;;
8365      esac
8366      link_all_deplibs=yes
8367      ;;
8368
8369    sunos4*)
8370      if test "x$host_vendor" = xsequent; then
8371	# Use $CC to link under sequent, because it throws in some extra .o
8372	# files that make .init and .fini sections work.
8373	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8374      else
8375	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8376      fi
8377      hardcode_libdir_flag_spec='-L$libdir'
8378      hardcode_direct=yes
8379      hardcode_minus_L=yes
8380      hardcode_shlibpath_var=no
8381      ;;
8382
8383    sysv4)
8384      case $host_vendor in
8385	sni)
8386	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8387	  hardcode_direct=yes # is this really true???
8388	;;
8389	siemens)
8390	  ## LD is ld it makes a PLAMLIB
8391	  ## CC just makes a GrossModule.
8392	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8393	  reload_cmds='$CC -r -o $output$reload_objs'
8394	  hardcode_direct=no
8395        ;;
8396	motorola)
8397	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8398	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8399	;;
8400      esac
8401      runpath_var='LD_RUN_PATH'
8402      hardcode_shlibpath_var=no
8403      ;;
8404
8405    sysv4.3*)
8406      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8407      hardcode_shlibpath_var=no
8408      export_dynamic_flag_spec='-Bexport'
8409      ;;
8410
8411    sysv4*MP*)
8412      if test -d /usr/nec; then
8413	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8414	hardcode_shlibpath_var=no
8415	runpath_var=LD_RUN_PATH
8416	hardcode_runpath_var=yes
8417	ld_shlibs=yes
8418      fi
8419      ;;
8420
8421    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8422      no_undefined_flag='${wl}-z,text'
8423      archive_cmds_need_lc=no
8424      hardcode_shlibpath_var=no
8425      runpath_var='LD_RUN_PATH'
8426
8427      if test "$GCC" = yes; then
8428	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8429	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8430      else
8431	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433      fi
8434      ;;
8435
8436    sysv5* | sco3.2v5* | sco5v6*)
8437      # Note: We can NOT use -z defs as we might desire, because we do not
8438      # link with -lc, and that would cause any symbols used from libc to
8439      # always be unresolved, which means just about no library would
8440      # ever link correctly.  If we're not using GNU ld we use -z text
8441      # though, which does catch some bad symbols but isn't as heavy-handed
8442      # as -z defs.
8443      no_undefined_flag='${wl}-z,text'
8444      allow_undefined_flag='${wl}-z,nodefs'
8445      archive_cmds_need_lc=no
8446      hardcode_shlibpath_var=no
8447      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8448      hardcode_libdir_separator=':'
8449      link_all_deplibs=yes
8450      export_dynamic_flag_spec='${wl}-Bexport'
8451      runpath_var='LD_RUN_PATH'
8452
8453      if test "$GCC" = yes; then
8454	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8455	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8456      else
8457	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8458	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459      fi
8460      ;;
8461
8462    uts4*)
8463      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8464      hardcode_libdir_flag_spec='-L$libdir'
8465      hardcode_shlibpath_var=no
8466      ;;
8467
8468    *)
8469      ld_shlibs=no
8470      ;;
8471    esac
8472  fi
8473
8474{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8475echo "${ECHO_T}$ld_shlibs" >&6; }
8476test "$ld_shlibs" = no && can_build_shared=no
8477
8478#
8479# Do we need to explicitly link libc?
8480#
8481case "x$archive_cmds_need_lc" in
8482x|xyes)
8483  # Assume -lc should be added
8484  archive_cmds_need_lc=yes
8485
8486  if test "$enable_shared" = yes && test "$GCC" = yes; then
8487    case $archive_cmds in
8488    *'~'*)
8489      # FIXME: we may have to deal with multi-command sequences.
8490      ;;
8491    '$CC '*)
8492      # Test whether the compiler implicitly links with -lc since on some
8493      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8494      # to ld, don't add -lc before -lgcc.
8495      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8496echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8497      $rm conftest*
8498      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8499
8500      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8501  (eval $ac_compile) 2>&5
8502  ac_status=$?
8503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504  (exit $ac_status); } 2>conftest.err; then
8505        soname=conftest
8506        lib=conftest
8507        libobjs=conftest.$ac_objext
8508        deplibs=
8509        wl=$lt_prog_compiler_wl
8510	pic_flag=$lt_prog_compiler_pic
8511        compiler_flags=-v
8512        linker_flags=-v
8513        verstring=
8514        output_objdir=.
8515        libname=conftest
8516        lt_save_allow_undefined_flag=$allow_undefined_flag
8517        allow_undefined_flag=
8518        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8519  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8520  ac_status=$?
8521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522  (exit $ac_status); }
8523        then
8524	  archive_cmds_need_lc=no
8525        else
8526	  archive_cmds_need_lc=yes
8527        fi
8528        allow_undefined_flag=$lt_save_allow_undefined_flag
8529      else
8530        cat conftest.err 1>&5
8531      fi
8532      $rm conftest*
8533      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8534echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8535      ;;
8536    esac
8537  fi
8538  ;;
8539esac
8540
8541{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8542echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8543library_names_spec=
8544libname_spec='lib$name'
8545soname_spec=
8546shrext_cmds=".so"
8547postinstall_cmds=
8548postuninstall_cmds=
8549finish_cmds=
8550finish_eval=
8551shlibpath_var=
8552shlibpath_overrides_runpath=unknown
8553version_type=none
8554dynamic_linker="$host_os ld.so"
8555sys_lib_dlsearch_path_spec="/lib /usr/lib"
8556if test "$GCC" = yes; then
8557  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8558  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8559    # if the path contains ";" then we assume it to be the separator
8560    # otherwise default to the standard path separator (i.e. ":") - it is
8561    # assumed that no part of a normal pathname contains ";" but that should
8562    # okay in the real world where ";" in dirpaths is itself problematic.
8563    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8564  else
8565    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8566  fi
8567else
8568  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8569fi
8570need_lib_prefix=unknown
8571hardcode_into_libs=no
8572
8573# when you set need_version to no, make sure it does not cause -set_version
8574# flags to be left without arguments
8575need_version=unknown
8576
8577case $host_os in
8578aix3*)
8579  version_type=linux
8580  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8581  shlibpath_var=LIBPATH
8582
8583  # AIX 3 has no versioning support, so we append a major version to the name.
8584  soname_spec='${libname}${release}${shared_ext}$major'
8585  ;;
8586
8587aix4* | aix5*)
8588  version_type=linux
8589  need_lib_prefix=no
8590  need_version=no
8591  hardcode_into_libs=yes
8592  if test "$host_cpu" = ia64; then
8593    # AIX 5 supports IA64
8594    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8595    shlibpath_var=LD_LIBRARY_PATH
8596  else
8597    # With GCC up to 2.95.x, collect2 would create an import file
8598    # for dependence libraries.  The import file would start with
8599    # the line `#! .'.  This would cause the generated library to
8600    # depend on `.', always an invalid library.  This was fixed in
8601    # development snapshots of GCC prior to 3.0.
8602    case $host_os in
8603      aix4 | aix4.[01] | aix4.[01].*)
8604      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8605	   echo ' yes '
8606	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8607	:
8608      else
8609	can_build_shared=no
8610      fi
8611      ;;
8612    esac
8613    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8614    # soname into executable. Probably we can add versioning support to
8615    # collect2, so additional links can be useful in future.
8616    if test "$aix_use_runtimelinking" = yes; then
8617      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8618      # instead of lib<name>.a to let people know that these are not
8619      # typical AIX shared libraries.
8620      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8621    else
8622      # We preserve .a as extension for shared libraries through AIX4.2
8623      # and later when we are not doing run time linking.
8624      library_names_spec='${libname}${release}.a $libname.a'
8625      soname_spec='${libname}${release}${shared_ext}$major'
8626    fi
8627    shlibpath_var=LIBPATH
8628  fi
8629  ;;
8630
8631amigaos*)
8632  library_names_spec='$libname.ixlibrary $libname.a'
8633  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8634  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'
8635  ;;
8636
8637beos*)
8638  library_names_spec='${libname}${shared_ext}'
8639  dynamic_linker="$host_os ld.so"
8640  shlibpath_var=LIBRARY_PATH
8641  ;;
8642
8643bsdi[45]*)
8644  version_type=linux
8645  need_version=no
8646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8647  soname_spec='${libname}${release}${shared_ext}$major'
8648  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8649  shlibpath_var=LD_LIBRARY_PATH
8650  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8651  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8652  # the default ld.so.conf also contains /usr/contrib/lib and
8653  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8654  # libtool to hard-code these into programs
8655  ;;
8656
8657cygwin* | mingw* | pw32*)
8658  version_type=windows
8659  shrext_cmds=".dll"
8660  need_version=no
8661  need_lib_prefix=no
8662
8663  case $GCC,$host_os in
8664  yes,cygwin* | yes,mingw* | yes,pw32*)
8665    library_names_spec='$libname.dll.a'
8666    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8667    postinstall_cmds='base_file=`basename \${file}`~
8668      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8669      dldir=$destdir/`dirname \$dlpath`~
8670      test -d \$dldir || mkdir -p \$dldir~
8671      $install_prog $dir/$dlname \$dldir/$dlname~
8672      chmod a+x \$dldir/$dlname'
8673    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8674      dlpath=$dir/\$dldll~
8675       $rm \$dlpath'
8676    shlibpath_overrides_runpath=yes
8677
8678    case $host_os in
8679    cygwin*)
8680      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8681      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8682      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8683      ;;
8684    mingw*)
8685      # MinGW DLLs use traditional 'lib' prefix
8686      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8687      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8688      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8689        # It is most probably a Windows format PATH printed by
8690        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8691        # path with ; separators, and with drive letters. We can handle the
8692        # drive letters (cygwin fileutils understands them), so leave them,
8693        # especially as we might pass files found there to a mingw objdump,
8694        # which wouldn't understand a cygwinified path. Ahh.
8695        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8696      else
8697        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8698      fi
8699      ;;
8700    pw32*)
8701      # pw32 DLLs use 'pw' prefix rather than 'lib'
8702      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8703      ;;
8704    esac
8705    ;;
8706
8707  *)
8708    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8709    ;;
8710  esac
8711  dynamic_linker='Win32 ld.exe'
8712  # FIXME: first we should search . and the directory the executable is in
8713  shlibpath_var=PATH
8714  ;;
8715
8716darwin* | rhapsody*)
8717  dynamic_linker="$host_os dyld"
8718  version_type=darwin
8719  need_lib_prefix=no
8720  need_version=no
8721  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8722  soname_spec='${libname}${release}${major}$shared_ext'
8723  shlibpath_overrides_runpath=yes
8724  shlibpath_var=DYLD_LIBRARY_PATH
8725  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8726  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8727  if test "$GCC" = yes; then
8728    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"`
8729  else
8730    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8731  fi
8732  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8733  ;;
8734
8735dgux*)
8736  version_type=linux
8737  need_lib_prefix=no
8738  need_version=no
8739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8740  soname_spec='${libname}${release}${shared_ext}$major'
8741  shlibpath_var=LD_LIBRARY_PATH
8742  ;;
8743
8744freebsd1*)
8745  dynamic_linker=no
8746  ;;
8747
8748kfreebsd*-gnu)
8749  version_type=linux
8750  need_lib_prefix=no
8751  need_version=no
8752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8753  soname_spec='${libname}${release}${shared_ext}$major'
8754  shlibpath_var=LD_LIBRARY_PATH
8755  shlibpath_overrides_runpath=no
8756  hardcode_into_libs=yes
8757  dynamic_linker='GNU ld.so'
8758  ;;
8759
8760freebsd* | dragonfly*)
8761  # DragonFly does not have aout.  When/if they implement a new
8762  # versioning mechanism, adjust this.
8763  if test -x /usr/bin/objformat; then
8764    objformat=`/usr/bin/objformat`
8765  else
8766    case $host_os in
8767    freebsd[123]*) objformat=aout ;;
8768    *) objformat=elf ;;
8769    esac
8770  fi
8771  version_type=freebsd-$objformat
8772  case $version_type in
8773    freebsd-elf*)
8774      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8775      need_version=no
8776      need_lib_prefix=no
8777      ;;
8778    freebsd-*)
8779      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8780      need_version=yes
8781      ;;
8782  esac
8783  shlibpath_var=LD_LIBRARY_PATH
8784  case $host_os in
8785  freebsd2*)
8786    shlibpath_overrides_runpath=yes
8787    ;;
8788  freebsd3.[01]* | freebsdelf3.[01]*)
8789    shlibpath_overrides_runpath=yes
8790    hardcode_into_libs=yes
8791    ;;
8792  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8793  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8794    shlibpath_overrides_runpath=no
8795    hardcode_into_libs=yes
8796    ;;
8797  freebsd*) # from 4.6 on
8798    shlibpath_overrides_runpath=yes
8799    hardcode_into_libs=yes
8800    ;;
8801  esac
8802  ;;
8803
8804gnu*)
8805  version_type=linux
8806  need_lib_prefix=no
8807  need_version=no
8808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8809  soname_spec='${libname}${release}${shared_ext}$major'
8810  shlibpath_var=LD_LIBRARY_PATH
8811  hardcode_into_libs=yes
8812  ;;
8813
8814hpux9* | hpux10* | hpux11*)
8815  # Give a soname corresponding to the major version so that dld.sl refuses to
8816  # link against other versions.
8817  version_type=sunos
8818  need_lib_prefix=no
8819  need_version=no
8820  case $host_cpu in
8821  ia64*)
8822    shrext_cmds='.so'
8823    hardcode_into_libs=yes
8824    dynamic_linker="$host_os dld.so"
8825    shlibpath_var=LD_LIBRARY_PATH
8826    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8827    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828    soname_spec='${libname}${release}${shared_ext}$major'
8829    if test "X$HPUX_IA64_MODE" = X32; then
8830      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8831    else
8832      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8833    fi
8834    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8835    ;;
8836   hppa*64*)
8837     shrext_cmds='.sl'
8838     hardcode_into_libs=yes
8839     dynamic_linker="$host_os dld.sl"
8840     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8841     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843     soname_spec='${libname}${release}${shared_ext}$major'
8844     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8845     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8846     ;;
8847   *)
8848    shrext_cmds='.sl'
8849    dynamic_linker="$host_os dld.sl"
8850    shlibpath_var=SHLIB_PATH
8851    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8852    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853    soname_spec='${libname}${release}${shared_ext}$major'
8854    ;;
8855  esac
8856  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8857  postinstall_cmds='chmod 555 $lib'
8858  ;;
8859
8860interix3*)
8861  version_type=linux
8862  need_lib_prefix=no
8863  need_version=no
8864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8865  soname_spec='${libname}${release}${shared_ext}$major'
8866  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8867  shlibpath_var=LD_LIBRARY_PATH
8868  shlibpath_overrides_runpath=no
8869  hardcode_into_libs=yes
8870  ;;
8871
8872irix5* | irix6* | nonstopux*)
8873  case $host_os in
8874    nonstopux*) version_type=nonstopux ;;
8875    *)
8876	if test "$lt_cv_prog_gnu_ld" = yes; then
8877		version_type=linux
8878	else
8879		version_type=irix
8880	fi ;;
8881  esac
8882  need_lib_prefix=no
8883  need_version=no
8884  soname_spec='${libname}${release}${shared_ext}$major'
8885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8886  case $host_os in
8887  irix5* | nonstopux*)
8888    libsuff= shlibsuff=
8889    ;;
8890  *)
8891    case $LD in # libtool.m4 will add one of these switches to LD
8892    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8893      libsuff= shlibsuff= libmagic=32-bit;;
8894    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8895      libsuff=32 shlibsuff=N32 libmagic=N32;;
8896    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8897      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8898    *) libsuff= shlibsuff= libmagic=never-match;;
8899    esac
8900    ;;
8901  esac
8902  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8903  shlibpath_overrides_runpath=no
8904  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8905  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8906  hardcode_into_libs=yes
8907  ;;
8908
8909# No shared lib support for Linux oldld, aout, or coff.
8910linux*oldld* | linux*aout* | linux*coff*)
8911  dynamic_linker=no
8912  ;;
8913
8914# This must be Linux ELF.
8915linux*)
8916  version_type=linux
8917  need_lib_prefix=no
8918  need_version=no
8919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920  soname_spec='${libname}${release}${shared_ext}$major'
8921  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8922  shlibpath_var=LD_LIBRARY_PATH
8923  shlibpath_overrides_runpath=no
8924  # This implies no fast_install, which is unacceptable.
8925  # Some rework will be needed to allow for fast_install
8926  # before this can be enabled.
8927  hardcode_into_libs=yes
8928
8929  # Append ld.so.conf contents to the search path
8930  if test -f /etc/ld.so.conf; then
8931    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' ' '`
8932    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8933  fi
8934
8935  # We used to test for /lib/ld.so.1 and disable shared libraries on
8936  # powerpc, because MkLinux only supported shared libraries with the
8937  # GNU dynamic linker.  Since this was broken with cross compilers,
8938  # most powerpc-linux boxes support dynamic linking these days and
8939  # people can always --disable-shared, the test was removed, and we
8940  # assume the GNU/Linux dynamic linker is in use.
8941  dynamic_linker='GNU/Linux ld.so'
8942  ;;
8943
8944knetbsd*-gnu)
8945  version_type=linux
8946  need_lib_prefix=no
8947  need_version=no
8948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8949  soname_spec='${libname}${release}${shared_ext}$major'
8950  shlibpath_var=LD_LIBRARY_PATH
8951  shlibpath_overrides_runpath=no
8952  hardcode_into_libs=yes
8953  dynamic_linker='GNU ld.so'
8954  ;;
8955
8956netbsd*)
8957  version_type=sunos
8958  need_lib_prefix=no
8959  need_version=no
8960  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8961    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8962    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8963    dynamic_linker='NetBSD (a.out) ld.so'
8964  else
8965    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8966    soname_spec='${libname}${release}${shared_ext}$major'
8967    dynamic_linker='NetBSD ld.elf_so'
8968  fi
8969  shlibpath_var=LD_LIBRARY_PATH
8970  shlibpath_overrides_runpath=yes
8971  hardcode_into_libs=yes
8972  ;;
8973
8974newsos6)
8975  version_type=linux
8976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977  shlibpath_var=LD_LIBRARY_PATH
8978  shlibpath_overrides_runpath=yes
8979  ;;
8980
8981nto-qnx*)
8982  version_type=linux
8983  need_lib_prefix=no
8984  need_version=no
8985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986  soname_spec='${libname}${release}${shared_ext}$major'
8987  shlibpath_var=LD_LIBRARY_PATH
8988  shlibpath_overrides_runpath=yes
8989  ;;
8990
8991openbsd*)
8992  version_type=sunos
8993  sys_lib_dlsearch_path_spec="/usr/lib"
8994  need_lib_prefix=no
8995  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8996  case $host_os in
8997    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8998    *)                         need_version=no  ;;
8999  esac
9000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9001  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9002  shlibpath_var=LD_LIBRARY_PATH
9003  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9004    case $host_os in
9005      openbsd2.[89] | openbsd2.[89].*)
9006	shlibpath_overrides_runpath=no
9007	;;
9008      *)
9009	shlibpath_overrides_runpath=yes
9010	;;
9011      esac
9012  else
9013    shlibpath_overrides_runpath=yes
9014  fi
9015  ;;
9016
9017os2*)
9018  libname_spec='$name'
9019  shrext_cmds=".dll"
9020  need_lib_prefix=no
9021  library_names_spec='$libname${shared_ext} $libname.a'
9022  dynamic_linker='OS/2 ld.exe'
9023  shlibpath_var=LIBPATH
9024  ;;
9025
9026osf3* | osf4* | osf5*)
9027  version_type=osf
9028  need_lib_prefix=no
9029  need_version=no
9030  soname_spec='${libname}${release}${shared_ext}$major'
9031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032  shlibpath_var=LD_LIBRARY_PATH
9033  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9034  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9035  ;;
9036
9037solaris*)
9038  version_type=linux
9039  need_lib_prefix=no
9040  need_version=no
9041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042  soname_spec='${libname}${release}${shared_ext}$major'
9043  shlibpath_var=LD_LIBRARY_PATH
9044  shlibpath_overrides_runpath=yes
9045  hardcode_into_libs=yes
9046  # ldd complains unless libraries are executable
9047  postinstall_cmds='chmod +x $lib'
9048  ;;
9049
9050sunos4*)
9051  version_type=sunos
9052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9054  shlibpath_var=LD_LIBRARY_PATH
9055  shlibpath_overrides_runpath=yes
9056  if test "$with_gnu_ld" = yes; then
9057    need_lib_prefix=no
9058  fi
9059  need_version=yes
9060  ;;
9061
9062sysv4 | sysv4.3*)
9063  version_type=linux
9064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9065  soname_spec='${libname}${release}${shared_ext}$major'
9066  shlibpath_var=LD_LIBRARY_PATH
9067  case $host_vendor in
9068    sni)
9069      shlibpath_overrides_runpath=no
9070      need_lib_prefix=no
9071      export_dynamic_flag_spec='${wl}-Blargedynsym'
9072      runpath_var=LD_RUN_PATH
9073      ;;
9074    siemens)
9075      need_lib_prefix=no
9076      ;;
9077    motorola)
9078      need_lib_prefix=no
9079      need_version=no
9080      shlibpath_overrides_runpath=no
9081      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9082      ;;
9083  esac
9084  ;;
9085
9086sysv4*MP*)
9087  if test -d /usr/nec ;then
9088    version_type=linux
9089    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9090    soname_spec='$libname${shared_ext}.$major'
9091    shlibpath_var=LD_LIBRARY_PATH
9092  fi
9093  ;;
9094
9095sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9096  version_type=freebsd-elf
9097  need_lib_prefix=no
9098  need_version=no
9099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9100  soname_spec='${libname}${release}${shared_ext}$major'
9101  shlibpath_var=LD_LIBRARY_PATH
9102  hardcode_into_libs=yes
9103  if test "$with_gnu_ld" = yes; then
9104    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9105    shlibpath_overrides_runpath=no
9106  else
9107    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9108    shlibpath_overrides_runpath=yes
9109    case $host_os in
9110      sco3.2v5*)
9111        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9112	;;
9113    esac
9114  fi
9115  sys_lib_dlsearch_path_spec='/usr/lib'
9116  ;;
9117
9118uts4*)
9119  version_type=linux
9120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121  soname_spec='${libname}${release}${shared_ext}$major'
9122  shlibpath_var=LD_LIBRARY_PATH
9123  ;;
9124
9125*)
9126  dynamic_linker=no
9127  ;;
9128esac
9129{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9130echo "${ECHO_T}$dynamic_linker" >&6; }
9131test "$dynamic_linker" = no && can_build_shared=no
9132
9133variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9134if test "$GCC" = yes; then
9135  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9136fi
9137
9138{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9139echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9140hardcode_action=
9141if test -n "$hardcode_libdir_flag_spec" || \
9142   test -n "$runpath_var" || \
9143   test "X$hardcode_automatic" = "Xyes" ; then
9144
9145  # We can hardcode non-existant directories.
9146  if test "$hardcode_direct" != no &&
9147     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9148     # have to relink, otherwise we might link with an installed library
9149     # when we should be linking with a yet-to-be-installed one
9150     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9151     test "$hardcode_minus_L" != no; then
9152    # Linking always hardcodes the temporary library directory.
9153    hardcode_action=relink
9154  else
9155    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9156    hardcode_action=immediate
9157  fi
9158else
9159  # We cannot hardcode anything, or else we can only hardcode existing
9160  # directories.
9161  hardcode_action=unsupported
9162fi
9163{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9164echo "${ECHO_T}$hardcode_action" >&6; }
9165
9166if test "$hardcode_action" = relink; then
9167  # Fast installation is not supported
9168  enable_fast_install=no
9169elif test "$shlibpath_overrides_runpath" = yes ||
9170     test "$enable_shared" = no; then
9171  # Fast installation is not necessary
9172  enable_fast_install=needless
9173fi
9174
9175striplib=
9176old_striplib=
9177{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9178echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9179if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9180  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9181  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9182  { echo "$as_me:$LINENO: result: yes" >&5
9183echo "${ECHO_T}yes" >&6; }
9184else
9185# FIXME - insert some real tests, host_os isn't really good enough
9186  case $host_os in
9187   darwin*)
9188       if test -n "$STRIP" ; then
9189         striplib="$STRIP -x"
9190         { echo "$as_me:$LINENO: result: yes" >&5
9191echo "${ECHO_T}yes" >&6; }
9192       else
9193  { echo "$as_me:$LINENO: result: no" >&5
9194echo "${ECHO_T}no" >&6; }
9195fi
9196       ;;
9197   *)
9198  { echo "$as_me:$LINENO: result: no" >&5
9199echo "${ECHO_T}no" >&6; }
9200    ;;
9201  esac
9202fi
9203
9204if test "x$enable_dlopen" != xyes; then
9205  enable_dlopen=unknown
9206  enable_dlopen_self=unknown
9207  enable_dlopen_self_static=unknown
9208else
9209  lt_cv_dlopen=no
9210  lt_cv_dlopen_libs=
9211
9212  case $host_os in
9213  beos*)
9214    lt_cv_dlopen="load_add_on"
9215    lt_cv_dlopen_libs=
9216    lt_cv_dlopen_self=yes
9217    ;;
9218
9219  mingw* | pw32*)
9220    lt_cv_dlopen="LoadLibrary"
9221    lt_cv_dlopen_libs=
9222   ;;
9223
9224  cygwin*)
9225    lt_cv_dlopen="dlopen"
9226    lt_cv_dlopen_libs=
9227   ;;
9228
9229  darwin*)
9230  # if libdl is installed we need to link against it
9231    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9232echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9233if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9234  echo $ECHO_N "(cached) $ECHO_C" >&6
9235else
9236  ac_check_lib_save_LIBS=$LIBS
9237LIBS="-ldl  $LIBS"
9238cat >conftest.$ac_ext <<_ACEOF
9239/* confdefs.h.  */
9240_ACEOF
9241cat confdefs.h >>conftest.$ac_ext
9242cat >>conftest.$ac_ext <<_ACEOF
9243/* end confdefs.h.  */
9244
9245/* Override any GCC internal prototype to avoid an error.
9246   Use char because int might match the return type of a GCC
9247   builtin and then its argument prototype would still apply.  */
9248#ifdef __cplusplus
9249extern "C"
9250#endif
9251char dlopen ();
9252int
9253main ()
9254{
9255return dlopen ();
9256  ;
9257  return 0;
9258}
9259_ACEOF
9260rm -f conftest.$ac_objext conftest$ac_exeext
9261if { (ac_try="$ac_link"
9262case "(($ac_try" in
9263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264  *) ac_try_echo=$ac_try;;
9265esac
9266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267  (eval "$ac_link") 2>conftest.er1
9268  ac_status=$?
9269  grep -v '^ *+' conftest.er1 >conftest.err
9270  rm -f conftest.er1
9271  cat conftest.err >&5
9272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273  (exit $ac_status); } && {
9274	 test -z "$ac_c_werror_flag" ||
9275	 test ! -s conftest.err
9276       } && test -s conftest$ac_exeext &&
9277       $as_test_x conftest$ac_exeext; then
9278  ac_cv_lib_dl_dlopen=yes
9279else
9280  echo "$as_me: failed program was:" >&5
9281sed 's/^/| /' conftest.$ac_ext >&5
9282
9283	ac_cv_lib_dl_dlopen=no
9284fi
9285
9286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9287      conftest$ac_exeext conftest.$ac_ext
9288LIBS=$ac_check_lib_save_LIBS
9289fi
9290{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9291echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9292if test $ac_cv_lib_dl_dlopen = yes; then
9293  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9294else
9295
9296    lt_cv_dlopen="dyld"
9297    lt_cv_dlopen_libs=
9298    lt_cv_dlopen_self=yes
9299
9300fi
9301
9302   ;;
9303
9304  *)
9305    { echo "$as_me:$LINENO: checking for shl_load" >&5
9306echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9307if test "${ac_cv_func_shl_load+set}" = set; then
9308  echo $ECHO_N "(cached) $ECHO_C" >&6
9309else
9310  cat >conftest.$ac_ext <<_ACEOF
9311/* confdefs.h.  */
9312_ACEOF
9313cat confdefs.h >>conftest.$ac_ext
9314cat >>conftest.$ac_ext <<_ACEOF
9315/* end confdefs.h.  */
9316/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9317   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9318#define shl_load innocuous_shl_load
9319
9320/* System header to define __stub macros and hopefully few prototypes,
9321    which can conflict with char shl_load (); below.
9322    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9323    <limits.h> exists even on freestanding compilers.  */
9324
9325#ifdef __STDC__
9326# include <limits.h>
9327#else
9328# include <assert.h>
9329#endif
9330
9331#undef shl_load
9332
9333/* Override any GCC internal prototype to avoid an error.
9334   Use char because int might match the return type of a GCC
9335   builtin and then its argument prototype would still apply.  */
9336#ifdef __cplusplus
9337extern "C"
9338#endif
9339char shl_load ();
9340/* The GNU C library defines this for functions which it implements
9341    to always fail with ENOSYS.  Some functions are actually named
9342    something starting with __ and the normal name is an alias.  */
9343#if defined __stub_shl_load || defined __stub___shl_load
9344choke me
9345#endif
9346
9347int
9348main ()
9349{
9350return shl_load ();
9351  ;
9352  return 0;
9353}
9354_ACEOF
9355rm -f conftest.$ac_objext conftest$ac_exeext
9356if { (ac_try="$ac_link"
9357case "(($ac_try" in
9358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359  *) ac_try_echo=$ac_try;;
9360esac
9361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362  (eval "$ac_link") 2>conftest.er1
9363  ac_status=$?
9364  grep -v '^ *+' conftest.er1 >conftest.err
9365  rm -f conftest.er1
9366  cat conftest.err >&5
9367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368  (exit $ac_status); } && {
9369	 test -z "$ac_c_werror_flag" ||
9370	 test ! -s conftest.err
9371       } && test -s conftest$ac_exeext &&
9372       $as_test_x conftest$ac_exeext; then
9373  ac_cv_func_shl_load=yes
9374else
9375  echo "$as_me: failed program was:" >&5
9376sed 's/^/| /' conftest.$ac_ext >&5
9377
9378	ac_cv_func_shl_load=no
9379fi
9380
9381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9382      conftest$ac_exeext conftest.$ac_ext
9383fi
9384{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9385echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9386if test $ac_cv_func_shl_load = yes; then
9387  lt_cv_dlopen="shl_load"
9388else
9389  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9390echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9391if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9392  echo $ECHO_N "(cached) $ECHO_C" >&6
9393else
9394  ac_check_lib_save_LIBS=$LIBS
9395LIBS="-ldld  $LIBS"
9396cat >conftest.$ac_ext <<_ACEOF
9397/* confdefs.h.  */
9398_ACEOF
9399cat confdefs.h >>conftest.$ac_ext
9400cat >>conftest.$ac_ext <<_ACEOF
9401/* end confdefs.h.  */
9402
9403/* Override any GCC internal prototype to avoid an error.
9404   Use char because int might match the return type of a GCC
9405   builtin and then its argument prototype would still apply.  */
9406#ifdef __cplusplus
9407extern "C"
9408#endif
9409char shl_load ();
9410int
9411main ()
9412{
9413return shl_load ();
9414  ;
9415  return 0;
9416}
9417_ACEOF
9418rm -f conftest.$ac_objext conftest$ac_exeext
9419if { (ac_try="$ac_link"
9420case "(($ac_try" in
9421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422  *) ac_try_echo=$ac_try;;
9423esac
9424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425  (eval "$ac_link") 2>conftest.er1
9426  ac_status=$?
9427  grep -v '^ *+' conftest.er1 >conftest.err
9428  rm -f conftest.er1
9429  cat conftest.err >&5
9430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431  (exit $ac_status); } && {
9432	 test -z "$ac_c_werror_flag" ||
9433	 test ! -s conftest.err
9434       } && test -s conftest$ac_exeext &&
9435       $as_test_x conftest$ac_exeext; then
9436  ac_cv_lib_dld_shl_load=yes
9437else
9438  echo "$as_me: failed program was:" >&5
9439sed 's/^/| /' conftest.$ac_ext >&5
9440
9441	ac_cv_lib_dld_shl_load=no
9442fi
9443
9444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9445      conftest$ac_exeext conftest.$ac_ext
9446LIBS=$ac_check_lib_save_LIBS
9447fi
9448{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9449echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9450if test $ac_cv_lib_dld_shl_load = yes; then
9451  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9452else
9453  { echo "$as_me:$LINENO: checking for dlopen" >&5
9454echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9455if test "${ac_cv_func_dlopen+set}" = set; then
9456  echo $ECHO_N "(cached) $ECHO_C" >&6
9457else
9458  cat >conftest.$ac_ext <<_ACEOF
9459/* confdefs.h.  */
9460_ACEOF
9461cat confdefs.h >>conftest.$ac_ext
9462cat >>conftest.$ac_ext <<_ACEOF
9463/* end confdefs.h.  */
9464/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9465   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9466#define dlopen innocuous_dlopen
9467
9468/* System header to define __stub macros and hopefully few prototypes,
9469    which can conflict with char dlopen (); below.
9470    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9471    <limits.h> exists even on freestanding compilers.  */
9472
9473#ifdef __STDC__
9474# include <limits.h>
9475#else
9476# include <assert.h>
9477#endif
9478
9479#undef dlopen
9480
9481/* Override any GCC internal prototype to avoid an error.
9482   Use char because int might match the return type of a GCC
9483   builtin and then its argument prototype would still apply.  */
9484#ifdef __cplusplus
9485extern "C"
9486#endif
9487char dlopen ();
9488/* The GNU C library defines this for functions which it implements
9489    to always fail with ENOSYS.  Some functions are actually named
9490    something starting with __ and the normal name is an alias.  */
9491#if defined __stub_dlopen || defined __stub___dlopen
9492choke me
9493#endif
9494
9495int
9496main ()
9497{
9498return dlopen ();
9499  ;
9500  return 0;
9501}
9502_ACEOF
9503rm -f conftest.$ac_objext conftest$ac_exeext
9504if { (ac_try="$ac_link"
9505case "(($ac_try" in
9506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507  *) ac_try_echo=$ac_try;;
9508esac
9509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510  (eval "$ac_link") 2>conftest.er1
9511  ac_status=$?
9512  grep -v '^ *+' conftest.er1 >conftest.err
9513  rm -f conftest.er1
9514  cat conftest.err >&5
9515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516  (exit $ac_status); } && {
9517	 test -z "$ac_c_werror_flag" ||
9518	 test ! -s conftest.err
9519       } && test -s conftest$ac_exeext &&
9520       $as_test_x conftest$ac_exeext; then
9521  ac_cv_func_dlopen=yes
9522else
9523  echo "$as_me: failed program was:" >&5
9524sed 's/^/| /' conftest.$ac_ext >&5
9525
9526	ac_cv_func_dlopen=no
9527fi
9528
9529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9530      conftest$ac_exeext conftest.$ac_ext
9531fi
9532{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9533echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9534if test $ac_cv_func_dlopen = yes; then
9535  lt_cv_dlopen="dlopen"
9536else
9537  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9538echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9539if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9540  echo $ECHO_N "(cached) $ECHO_C" >&6
9541else
9542  ac_check_lib_save_LIBS=$LIBS
9543LIBS="-ldl  $LIBS"
9544cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h.  */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
9549/* end confdefs.h.  */
9550
9551/* Override any GCC internal prototype to avoid an error.
9552   Use char because int might match the return type of a GCC
9553   builtin and then its argument prototype would still apply.  */
9554#ifdef __cplusplus
9555extern "C"
9556#endif
9557char dlopen ();
9558int
9559main ()
9560{
9561return dlopen ();
9562  ;
9563  return 0;
9564}
9565_ACEOF
9566rm -f conftest.$ac_objext conftest$ac_exeext
9567if { (ac_try="$ac_link"
9568case "(($ac_try" in
9569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570  *) ac_try_echo=$ac_try;;
9571esac
9572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573  (eval "$ac_link") 2>conftest.er1
9574  ac_status=$?
9575  grep -v '^ *+' conftest.er1 >conftest.err
9576  rm -f conftest.er1
9577  cat conftest.err >&5
9578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579  (exit $ac_status); } && {
9580	 test -z "$ac_c_werror_flag" ||
9581	 test ! -s conftest.err
9582       } && test -s conftest$ac_exeext &&
9583       $as_test_x conftest$ac_exeext; then
9584  ac_cv_lib_dl_dlopen=yes
9585else
9586  echo "$as_me: failed program was:" >&5
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
9589	ac_cv_lib_dl_dlopen=no
9590fi
9591
9592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9593      conftest$ac_exeext conftest.$ac_ext
9594LIBS=$ac_check_lib_save_LIBS
9595fi
9596{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9597echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9598if test $ac_cv_lib_dl_dlopen = yes; then
9599  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9600else
9601  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9602echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9603if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9604  echo $ECHO_N "(cached) $ECHO_C" >&6
9605else
9606  ac_check_lib_save_LIBS=$LIBS
9607LIBS="-lsvld  $LIBS"
9608cat >conftest.$ac_ext <<_ACEOF
9609/* confdefs.h.  */
9610_ACEOF
9611cat confdefs.h >>conftest.$ac_ext
9612cat >>conftest.$ac_ext <<_ACEOF
9613/* end confdefs.h.  */
9614
9615/* Override any GCC internal prototype to avoid an error.
9616   Use char because int might match the return type of a GCC
9617   builtin and then its argument prototype would still apply.  */
9618#ifdef __cplusplus
9619extern "C"
9620#endif
9621char dlopen ();
9622int
9623main ()
9624{
9625return dlopen ();
9626  ;
9627  return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext conftest$ac_exeext
9631if { (ac_try="$ac_link"
9632case "(($ac_try" in
9633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634  *) ac_try_echo=$ac_try;;
9635esac
9636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637  (eval "$ac_link") 2>conftest.er1
9638  ac_status=$?
9639  grep -v '^ *+' conftest.er1 >conftest.err
9640  rm -f conftest.er1
9641  cat conftest.err >&5
9642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643  (exit $ac_status); } && {
9644	 test -z "$ac_c_werror_flag" ||
9645	 test ! -s conftest.err
9646       } && test -s conftest$ac_exeext &&
9647       $as_test_x conftest$ac_exeext; then
9648  ac_cv_lib_svld_dlopen=yes
9649else
9650  echo "$as_me: failed program was:" >&5
9651sed 's/^/| /' conftest.$ac_ext >&5
9652
9653	ac_cv_lib_svld_dlopen=no
9654fi
9655
9656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9657      conftest$ac_exeext conftest.$ac_ext
9658LIBS=$ac_check_lib_save_LIBS
9659fi
9660{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9661echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9662if test $ac_cv_lib_svld_dlopen = yes; then
9663  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9664else
9665  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9666echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9667if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9668  echo $ECHO_N "(cached) $ECHO_C" >&6
9669else
9670  ac_check_lib_save_LIBS=$LIBS
9671LIBS="-ldld  $LIBS"
9672cat >conftest.$ac_ext <<_ACEOF
9673/* confdefs.h.  */
9674_ACEOF
9675cat confdefs.h >>conftest.$ac_ext
9676cat >>conftest.$ac_ext <<_ACEOF
9677/* end confdefs.h.  */
9678
9679/* Override any GCC internal prototype to avoid an error.
9680   Use char because int might match the return type of a GCC
9681   builtin and then its argument prototype would still apply.  */
9682#ifdef __cplusplus
9683extern "C"
9684#endif
9685char dld_link ();
9686int
9687main ()
9688{
9689return dld_link ();
9690  ;
9691  return 0;
9692}
9693_ACEOF
9694rm -f conftest.$ac_objext conftest$ac_exeext
9695if { (ac_try="$ac_link"
9696case "(($ac_try" in
9697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698  *) ac_try_echo=$ac_try;;
9699esac
9700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701  (eval "$ac_link") 2>conftest.er1
9702  ac_status=$?
9703  grep -v '^ *+' conftest.er1 >conftest.err
9704  rm -f conftest.er1
9705  cat conftest.err >&5
9706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707  (exit $ac_status); } && {
9708	 test -z "$ac_c_werror_flag" ||
9709	 test ! -s conftest.err
9710       } && test -s conftest$ac_exeext &&
9711       $as_test_x conftest$ac_exeext; then
9712  ac_cv_lib_dld_dld_link=yes
9713else
9714  echo "$as_me: failed program was:" >&5
9715sed 's/^/| /' conftest.$ac_ext >&5
9716
9717	ac_cv_lib_dld_dld_link=no
9718fi
9719
9720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9721      conftest$ac_exeext conftest.$ac_ext
9722LIBS=$ac_check_lib_save_LIBS
9723fi
9724{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9725echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9726if test $ac_cv_lib_dld_dld_link = yes; then
9727  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9728fi
9729
9730
9731fi
9732
9733
9734fi
9735
9736
9737fi
9738
9739
9740fi
9741
9742
9743fi
9744
9745    ;;
9746  esac
9747
9748  if test "x$lt_cv_dlopen" != xno; then
9749    enable_dlopen=yes
9750  else
9751    enable_dlopen=no
9752  fi
9753
9754  case $lt_cv_dlopen in
9755  dlopen)
9756    save_CPPFLAGS="$CPPFLAGS"
9757    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9758
9759    save_LDFLAGS="$LDFLAGS"
9760    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9761
9762    save_LIBS="$LIBS"
9763    LIBS="$lt_cv_dlopen_libs $LIBS"
9764
9765    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9766echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9767if test "${lt_cv_dlopen_self+set}" = set; then
9768  echo $ECHO_N "(cached) $ECHO_C" >&6
9769else
9770  	  if test "$cross_compiling" = yes; then :
9771  lt_cv_dlopen_self=cross
9772else
9773  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9774  lt_status=$lt_dlunknown
9775  cat > conftest.$ac_ext <<EOF
9776#line 9776 "configure"
9777#include "confdefs.h"
9778
9779#if HAVE_DLFCN_H
9780#include <dlfcn.h>
9781#endif
9782
9783#include <stdio.h>
9784
9785#ifdef RTLD_GLOBAL
9786#  define LT_DLGLOBAL		RTLD_GLOBAL
9787#else
9788#  ifdef DL_GLOBAL
9789#    define LT_DLGLOBAL		DL_GLOBAL
9790#  else
9791#    define LT_DLGLOBAL		0
9792#  endif
9793#endif
9794
9795/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9796   find out it does not work in some platform. */
9797#ifndef LT_DLLAZY_OR_NOW
9798#  ifdef RTLD_LAZY
9799#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9800#  else
9801#    ifdef DL_LAZY
9802#      define LT_DLLAZY_OR_NOW		DL_LAZY
9803#    else
9804#      ifdef RTLD_NOW
9805#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9806#      else
9807#        ifdef DL_NOW
9808#          define LT_DLLAZY_OR_NOW	DL_NOW
9809#        else
9810#          define LT_DLLAZY_OR_NOW	0
9811#        endif
9812#      endif
9813#    endif
9814#  endif
9815#endif
9816
9817#ifdef __cplusplus
9818extern "C" void exit (int);
9819#endif
9820
9821void fnord() { int i=42;}
9822int main ()
9823{
9824  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9825  int status = $lt_dlunknown;
9826
9827  if (self)
9828    {
9829      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9830      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9831      /* dlclose (self); */
9832    }
9833  else
9834    puts (dlerror ());
9835
9836    exit (status);
9837}
9838EOF
9839  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840  (eval $ac_link) 2>&5
9841  ac_status=$?
9842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9844    (./conftest; exit; ) >&5 2>/dev/null
9845    lt_status=$?
9846    case x$lt_status in
9847      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9848      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9849      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9850    esac
9851  else :
9852    # compilation failed
9853    lt_cv_dlopen_self=no
9854  fi
9855fi
9856rm -fr conftest*
9857
9858
9859fi
9860{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9861echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9862
9863    if test "x$lt_cv_dlopen_self" = xyes; then
9864      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9865      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9866echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9867if test "${lt_cv_dlopen_self_static+set}" = set; then
9868  echo $ECHO_N "(cached) $ECHO_C" >&6
9869else
9870  	  if test "$cross_compiling" = yes; then :
9871  lt_cv_dlopen_self_static=cross
9872else
9873  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9874  lt_status=$lt_dlunknown
9875  cat > conftest.$ac_ext <<EOF
9876#line 9876 "configure"
9877#include "confdefs.h"
9878
9879#if HAVE_DLFCN_H
9880#include <dlfcn.h>
9881#endif
9882
9883#include <stdio.h>
9884
9885#ifdef RTLD_GLOBAL
9886#  define LT_DLGLOBAL		RTLD_GLOBAL
9887#else
9888#  ifdef DL_GLOBAL
9889#    define LT_DLGLOBAL		DL_GLOBAL
9890#  else
9891#    define LT_DLGLOBAL		0
9892#  endif
9893#endif
9894
9895/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9896   find out it does not work in some platform. */
9897#ifndef LT_DLLAZY_OR_NOW
9898#  ifdef RTLD_LAZY
9899#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9900#  else
9901#    ifdef DL_LAZY
9902#      define LT_DLLAZY_OR_NOW		DL_LAZY
9903#    else
9904#      ifdef RTLD_NOW
9905#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9906#      else
9907#        ifdef DL_NOW
9908#          define LT_DLLAZY_OR_NOW	DL_NOW
9909#        else
9910#          define LT_DLLAZY_OR_NOW	0
9911#        endif
9912#      endif
9913#    endif
9914#  endif
9915#endif
9916
9917#ifdef __cplusplus
9918extern "C" void exit (int);
9919#endif
9920
9921void fnord() { int i=42;}
9922int main ()
9923{
9924  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9925  int status = $lt_dlunknown;
9926
9927  if (self)
9928    {
9929      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9930      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9931      /* dlclose (self); */
9932    }
9933  else
9934    puts (dlerror ());
9935
9936    exit (status);
9937}
9938EOF
9939  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940  (eval $ac_link) 2>&5
9941  ac_status=$?
9942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9944    (./conftest; exit; ) >&5 2>/dev/null
9945    lt_status=$?
9946    case x$lt_status in
9947      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9948      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9949      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9950    esac
9951  else :
9952    # compilation failed
9953    lt_cv_dlopen_self_static=no
9954  fi
9955fi
9956rm -fr conftest*
9957
9958
9959fi
9960{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9961echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9962    fi
9963
9964    CPPFLAGS="$save_CPPFLAGS"
9965    LDFLAGS="$save_LDFLAGS"
9966    LIBS="$save_LIBS"
9967    ;;
9968  esac
9969
9970  case $lt_cv_dlopen_self in
9971  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9972  *) enable_dlopen_self=unknown ;;
9973  esac
9974
9975  case $lt_cv_dlopen_self_static in
9976  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9977  *) enable_dlopen_self_static=unknown ;;
9978  esac
9979fi
9980
9981
9982# Report which library types will actually be built
9983{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9984echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9985{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9986echo "${ECHO_T}$can_build_shared" >&6; }
9987
9988{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9989echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9990test "$can_build_shared" = "no" && enable_shared=no
9991
9992# On AIX, shared libraries and static libraries use the same namespace, and
9993# are all built from PIC.
9994case $host_os in
9995aix3*)
9996  test "$enable_shared" = yes && enable_static=no
9997  if test -n "$RANLIB"; then
9998    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9999    postinstall_cmds='$RANLIB $lib'
10000  fi
10001  ;;
10002
10003aix4* | aix5*)
10004  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10005    test "$enable_shared" = yes && enable_static=no
10006  fi
10007    ;;
10008esac
10009{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10010echo "${ECHO_T}$enable_shared" >&6; }
10011
10012{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10013echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10014# Make sure either enable_shared or enable_static is yes.
10015test "$enable_shared" = yes || enable_static=yes
10016{ echo "$as_me:$LINENO: result: $enable_static" >&5
10017echo "${ECHO_T}$enable_static" >&6; }
10018
10019# The else clause should only fire when bootstrapping the
10020# libtool distribution, otherwise you forgot to ship ltmain.sh
10021# with your package, and you will get complaints that there are
10022# no rules to generate ltmain.sh.
10023if test -f "$ltmain"; then
10024  # See if we are running on zsh, and set the options which allow our commands through
10025  # without removal of \ escapes.
10026  if test -n "${ZSH_VERSION+set}" ; then
10027    setopt NO_GLOB_SUBST
10028  fi
10029  # Now quote all the things that may contain metacharacters while being
10030  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10031  # variables and quote the copies for generation of the libtool script.
10032  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10033    SED SHELL STRIP \
10034    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10035    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10036    deplibs_check_method reload_flag reload_cmds need_locks \
10037    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10038    lt_cv_sys_global_symbol_to_c_name_address \
10039    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10040    old_postinstall_cmds old_postuninstall_cmds \
10041    compiler \
10042    CC \
10043    LD \
10044    lt_prog_compiler_wl \
10045    lt_prog_compiler_pic \
10046    lt_prog_compiler_static \
10047    lt_prog_compiler_no_builtin_flag \
10048    export_dynamic_flag_spec \
10049    thread_safe_flag_spec \
10050    whole_archive_flag_spec \
10051    enable_shared_with_static_runtimes \
10052    old_archive_cmds \
10053    old_archive_from_new_cmds \
10054    predep_objects \
10055    postdep_objects \
10056    predeps \
10057    postdeps \
10058    compiler_lib_search_path \
10059    archive_cmds \
10060    archive_expsym_cmds \
10061    postinstall_cmds \
10062    postuninstall_cmds \
10063    old_archive_from_expsyms_cmds \
10064    allow_undefined_flag \
10065    no_undefined_flag \
10066    export_symbols_cmds \
10067    hardcode_libdir_flag_spec \
10068    hardcode_libdir_flag_spec_ld \
10069    hardcode_libdir_separator \
10070    hardcode_automatic \
10071    module_cmds \
10072    module_expsym_cmds \
10073    lt_cv_prog_compiler_c_o \
10074    exclude_expsyms \
10075    include_expsyms; do
10076
10077    case $var in
10078    old_archive_cmds | \
10079    old_archive_from_new_cmds | \
10080    archive_cmds | \
10081    archive_expsym_cmds | \
10082    module_cmds | \
10083    module_expsym_cmds | \
10084    old_archive_from_expsyms_cmds | \
10085    export_symbols_cmds | \
10086    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10087    postinstall_cmds | postuninstall_cmds | \
10088    old_postinstall_cmds | old_postuninstall_cmds | \
10089    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10090      # Double-quote double-evaled strings.
10091      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10092      ;;
10093    *)
10094      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10095      ;;
10096    esac
10097  done
10098
10099  case $lt_echo in
10100  *'\$0 --fallback-echo"')
10101    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10102    ;;
10103  esac
10104
10105cfgfile="${ofile}T"
10106  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10107  $rm -f "$cfgfile"
10108  { echo "$as_me:$LINENO: creating $ofile" >&5
10109echo "$as_me: creating $ofile" >&6;}
10110
10111  cat <<__EOF__ >> "$cfgfile"
10112#! $SHELL
10113
10114# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10115# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10116# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10117#
10118# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10119# Free Software Foundation, Inc.
10120#
10121# This file is part of GNU Libtool:
10122# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10123#
10124# This program is free software; you can redistribute it and/or modify
10125# it under the terms of the GNU General Public License as published by
10126# the Free Software Foundation; either version 2 of the License, or
10127# (at your option) any later version.
10128#
10129# This program is distributed in the hope that it will be useful, but
10130# WITHOUT ANY WARRANTY; without even the implied warranty of
10131# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10132# General Public License for more details.
10133#
10134# You should have received a copy of the GNU General Public License
10135# along with this program; if not, write to the Free Software
10136# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10137#
10138# As a special exception to the GNU General Public License, if you
10139# distribute this file as part of a program that contains a
10140# configuration script generated by Autoconf, you may include it under
10141# the same distribution terms that you use for the rest of that program.
10142
10143# A sed program that does not truncate output.
10144SED=$lt_SED
10145
10146# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10147Xsed="$SED -e 1s/^X//"
10148
10149# The HP-UX ksh and POSIX shell print the target directory to stdout
10150# if CDPATH is set.
10151(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10152
10153# The names of the tagged configurations supported by this script.
10154available_tags=
10155
10156# ### BEGIN LIBTOOL CONFIG
10157
10158# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10159
10160# Shell to use when invoking shell scripts.
10161SHELL=$lt_SHELL
10162
10163# Whether or not to build shared libraries.
10164build_libtool_libs=$enable_shared
10165
10166# Whether or not to build static libraries.
10167build_old_libs=$enable_static
10168
10169# Whether or not to add -lc for building shared libraries.
10170build_libtool_need_lc=$archive_cmds_need_lc
10171
10172# Whether or not to disallow shared libs when runtime libs are static
10173allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10174
10175# Whether or not to optimize for fast installation.
10176fast_install=$enable_fast_install
10177
10178# The host system.
10179host_alias=$host_alias
10180host=$host
10181host_os=$host_os
10182
10183# The build system.
10184build_alias=$build_alias
10185build=$build
10186build_os=$build_os
10187
10188# An echo program that does not interpret backslashes.
10189echo=$lt_echo
10190
10191# The archiver.
10192AR=$lt_AR
10193AR_FLAGS=$lt_AR_FLAGS
10194
10195# A C compiler.
10196LTCC=$lt_LTCC
10197
10198# LTCC compiler flags.
10199LTCFLAGS=$lt_LTCFLAGS
10200
10201# A language-specific compiler.
10202CC=$lt_compiler
10203
10204# Is the compiler the GNU C compiler?
10205with_gcc=$GCC
10206
10207# An ERE matcher.
10208EGREP=$lt_EGREP
10209
10210# The linker used to build libraries.
10211LD=$lt_LD
10212
10213# Whether we need hard or soft links.
10214LN_S=$lt_LN_S
10215
10216# A BSD-compatible nm program.
10217NM=$lt_NM
10218
10219# A symbol stripping program
10220STRIP=$lt_STRIP
10221
10222# Used to examine libraries when file_magic_cmd begins "file"
10223MAGIC_CMD=$MAGIC_CMD
10224
10225# Used on cygwin: DLL creation program.
10226DLLTOOL="$DLLTOOL"
10227
10228# Used on cygwin: object dumper.
10229OBJDUMP="$OBJDUMP"
10230
10231# Used on cygwin: assembler.
10232AS="$AS"
10233
10234# The name of the directory that contains temporary libtool files.
10235objdir=$objdir
10236
10237# How to create reloadable object files.
10238reload_flag=$lt_reload_flag
10239reload_cmds=$lt_reload_cmds
10240
10241# How to pass a linker flag through the compiler.
10242wl=$lt_lt_prog_compiler_wl
10243
10244# Object file suffix (normally "o").
10245objext="$ac_objext"
10246
10247# Old archive suffix (normally "a").
10248libext="$libext"
10249
10250# Shared library suffix (normally ".so").
10251shrext_cmds='$shrext_cmds'
10252
10253# Executable file suffix (normally "").
10254exeext="$exeext"
10255
10256# Additional compiler flags for building library objects.
10257pic_flag=$lt_lt_prog_compiler_pic
10258pic_mode=$pic_mode
10259
10260# What is the maximum length of a command?
10261max_cmd_len=$lt_cv_sys_max_cmd_len
10262
10263# Does compiler simultaneously support -c and -o options?
10264compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10265
10266# Must we lock files when doing compilation?
10267need_locks=$lt_need_locks
10268
10269# Do we need the lib prefix for modules?
10270need_lib_prefix=$need_lib_prefix
10271
10272# Do we need a version for libraries?
10273need_version=$need_version
10274
10275# Whether dlopen is supported.
10276dlopen_support=$enable_dlopen
10277
10278# Whether dlopen of programs is supported.
10279dlopen_self=$enable_dlopen_self
10280
10281# Whether dlopen of statically linked programs is supported.
10282dlopen_self_static=$enable_dlopen_self_static
10283
10284# Compiler flag to prevent dynamic linking.
10285link_static_flag=$lt_lt_prog_compiler_static
10286
10287# Compiler flag to turn off builtin functions.
10288no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10289
10290# Compiler flag to allow reflexive dlopens.
10291export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10292
10293# Compiler flag to generate shared objects directly from archives.
10294whole_archive_flag_spec=$lt_whole_archive_flag_spec
10295
10296# Compiler flag to generate thread-safe objects.
10297thread_safe_flag_spec=$lt_thread_safe_flag_spec
10298
10299# Library versioning type.
10300version_type=$version_type
10301
10302# Format of library name prefix.
10303libname_spec=$lt_libname_spec
10304
10305# List of archive names.  First name is the real one, the rest are links.
10306# The last name is the one that the linker finds with -lNAME.
10307library_names_spec=$lt_library_names_spec
10308
10309# The coded name of the library, if different from the real name.
10310soname_spec=$lt_soname_spec
10311
10312# Commands used to build and install an old-style archive.
10313RANLIB=$lt_RANLIB
10314old_archive_cmds=$lt_old_archive_cmds
10315old_postinstall_cmds=$lt_old_postinstall_cmds
10316old_postuninstall_cmds=$lt_old_postuninstall_cmds
10317
10318# Create an old-style archive from a shared archive.
10319old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10320
10321# Create a temporary old-style archive to link instead of a shared archive.
10322old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10323
10324# Commands used to build and install a shared archive.
10325archive_cmds=$lt_archive_cmds
10326archive_expsym_cmds=$lt_archive_expsym_cmds
10327postinstall_cmds=$lt_postinstall_cmds
10328postuninstall_cmds=$lt_postuninstall_cmds
10329
10330# Commands used to build a loadable module (assumed same as above if empty)
10331module_cmds=$lt_module_cmds
10332module_expsym_cmds=$lt_module_expsym_cmds
10333
10334# Commands to strip libraries.
10335old_striplib=$lt_old_striplib
10336striplib=$lt_striplib
10337
10338# Dependencies to place before the objects being linked to create a
10339# shared library.
10340predep_objects=$lt_predep_objects
10341
10342# Dependencies to place after the objects being linked to create a
10343# shared library.
10344postdep_objects=$lt_postdep_objects
10345
10346# Dependencies to place before the objects being linked to create a
10347# shared library.
10348predeps=$lt_predeps
10349
10350# Dependencies to place after the objects being linked to create a
10351# shared library.
10352postdeps=$lt_postdeps
10353
10354# The library search path used internally by the compiler when linking
10355# a shared library.
10356compiler_lib_search_path=$lt_compiler_lib_search_path
10357
10358# Method to check whether dependent libraries are shared objects.
10359deplibs_check_method=$lt_deplibs_check_method
10360
10361# Command to use when deplibs_check_method == file_magic.
10362file_magic_cmd=$lt_file_magic_cmd
10363
10364# Flag that allows shared libraries with undefined symbols to be built.
10365allow_undefined_flag=$lt_allow_undefined_flag
10366
10367# Flag that forces no undefined symbols.
10368no_undefined_flag=$lt_no_undefined_flag
10369
10370# Commands used to finish a libtool library installation in a directory.
10371finish_cmds=$lt_finish_cmds
10372
10373# Same as above, but a single script fragment to be evaled but not shown.
10374finish_eval=$lt_finish_eval
10375
10376# Take the output of nm and produce a listing of raw symbols and C names.
10377global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10378
10379# Transform the output of nm in a proper C declaration
10380global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10381
10382# Transform the output of nm in a C name address pair
10383global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10384
10385# This is the shared library runtime path variable.
10386runpath_var=$runpath_var
10387
10388# This is the shared library path variable.
10389shlibpath_var=$shlibpath_var
10390
10391# Is shlibpath searched before the hard-coded library search path?
10392shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10393
10394# How to hardcode a shared library path into an executable.
10395hardcode_action=$hardcode_action
10396
10397# Whether we should hardcode library paths into libraries.
10398hardcode_into_libs=$hardcode_into_libs
10399
10400# Flag to hardcode \$libdir into a binary during linking.
10401# This must work even if \$libdir does not exist.
10402hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10403
10404# If ld is used when linking, flag to hardcode \$libdir into
10405# a binary during linking. This must work even if \$libdir does
10406# not exist.
10407hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10408
10409# Whether we need a single -rpath flag with a separated argument.
10410hardcode_libdir_separator=$lt_hardcode_libdir_separator
10411
10412# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10413# resulting binary.
10414hardcode_direct=$hardcode_direct
10415
10416# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10417# resulting binary.
10418hardcode_minus_L=$hardcode_minus_L
10419
10420# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10421# the resulting binary.
10422hardcode_shlibpath_var=$hardcode_shlibpath_var
10423
10424# Set to yes if building a shared library automatically hardcodes DIR into the library
10425# and all subsequent libraries and executables linked against it.
10426hardcode_automatic=$hardcode_automatic
10427
10428# Variables whose values should be saved in libtool wrapper scripts and
10429# restored at relink time.
10430variables_saved_for_relink="$variables_saved_for_relink"
10431
10432# Whether libtool must link a program against all its dependency libraries.
10433link_all_deplibs=$link_all_deplibs
10434
10435# Compile-time system search path for libraries
10436sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10437
10438# Run-time system search path for libraries
10439sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10440
10441# Fix the shell variable \$srcfile for the compiler.
10442fix_srcfile_path="$fix_srcfile_path"
10443
10444# Set to yes if exported symbols are required.
10445always_export_symbols=$always_export_symbols
10446
10447# The commands to list exported symbols.
10448export_symbols_cmds=$lt_export_symbols_cmds
10449
10450# The commands to extract the exported symbol list from a shared archive.
10451extract_expsyms_cmds=$lt_extract_expsyms_cmds
10452
10453# Symbols that should not be listed in the preloaded symbols.
10454exclude_expsyms=$lt_exclude_expsyms
10455
10456# Symbols that must always be exported.
10457include_expsyms=$lt_include_expsyms
10458
10459# ### END LIBTOOL CONFIG
10460
10461__EOF__
10462
10463
10464  case $host_os in
10465  aix3*)
10466    cat <<\EOF >> "$cfgfile"
10467
10468# AIX sometimes has problems with the GCC collect2 program.  For some
10469# reason, if we set the COLLECT_NAMES environment variable, the problems
10470# vanish in a puff of smoke.
10471if test "X${COLLECT_NAMES+set}" != Xset; then
10472  COLLECT_NAMES=
10473  export COLLECT_NAMES
10474fi
10475EOF
10476    ;;
10477  esac
10478
10479  # We use sed instead of cat because bash on DJGPP gets confused if
10480  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10481  # text mode, it properly converts lines to CR/LF.  This bash problem
10482  # is reportedly fixed, but why not run on old versions too?
10483  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10484
10485  mv -f "$cfgfile" "$ofile" || \
10486    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10487  chmod +x "$ofile"
10488
10489else
10490  # If there is no Makefile yet, we rely on a make rule to execute
10491  # `config.status --recheck' to rerun these tests and create the
10492  # libtool script then.
10493  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10494  if test -f "$ltmain_in"; then
10495    test -f Makefile && make "$ltmain"
10496  fi
10497fi
10498
10499
10500ac_ext=c
10501ac_cpp='$CPP $CPPFLAGS'
10502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10504ac_compiler_gnu=$ac_cv_c_compiler_gnu
10505
10506CC="$lt_save_CC"
10507
10508
10509# Check whether --with-tags was given.
10510if test "${with_tags+set}" = set; then
10511  withval=$with_tags; tagnames="$withval"
10512fi
10513
10514
10515if test -f "$ltmain" && test -n "$tagnames"; then
10516  if test ! -f "${ofile}"; then
10517    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10518echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10519  fi
10520
10521  if test -z "$LTCC"; then
10522    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10523    if test -z "$LTCC"; then
10524      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10525echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10526    else
10527      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10528echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10529    fi
10530  fi
10531  if test -z "$LTCFLAGS"; then
10532    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10533  fi
10534
10535  # Extract list of available tagged configurations in $ofile.
10536  # Note that this assumes the entire list is on one line.
10537  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10538
10539  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10540  for tagname in $tagnames; do
10541    IFS="$lt_save_ifs"
10542    # Check whether tagname contains only valid characters
10543    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10544    "") ;;
10545    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10546echo "$as_me: error: invalid tag name: $tagname" >&2;}
10547   { (exit 1); exit 1; }; }
10548	;;
10549    esac
10550
10551    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10552    then
10553      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10554echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10555   { (exit 1); exit 1; }; }
10556    fi
10557
10558    # Update the list of available tags.
10559    if test -n "$tagname"; then
10560      echo appending configuration tag \"$tagname\" to $ofile
10561
10562      case $tagname in
10563      CXX)
10564	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10565	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10566	    (test "X$CXX" != "Xg++"))) ; then
10567	  ac_ext=cpp
10568ac_cpp='$CXXCPP $CPPFLAGS'
10569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10572
10573
10574
10575
10576archive_cmds_need_lc_CXX=no
10577allow_undefined_flag_CXX=
10578always_export_symbols_CXX=no
10579archive_expsym_cmds_CXX=
10580export_dynamic_flag_spec_CXX=
10581hardcode_direct_CXX=no
10582hardcode_libdir_flag_spec_CXX=
10583hardcode_libdir_flag_spec_ld_CXX=
10584hardcode_libdir_separator_CXX=
10585hardcode_minus_L_CXX=no
10586hardcode_shlibpath_var_CXX=unsupported
10587hardcode_automatic_CXX=no
10588module_cmds_CXX=
10589module_expsym_cmds_CXX=
10590link_all_deplibs_CXX=unknown
10591old_archive_cmds_CXX=$old_archive_cmds
10592no_undefined_flag_CXX=
10593whole_archive_flag_spec_CXX=
10594enable_shared_with_static_runtimes_CXX=no
10595
10596# Dependencies to place before and after the object being linked:
10597predep_objects_CXX=
10598postdep_objects_CXX=
10599predeps_CXX=
10600postdeps_CXX=
10601compiler_lib_search_path_CXX=
10602
10603# Source file extension for C++ test sources.
10604ac_ext=cpp
10605
10606# Object file extension for compiled C++ test sources.
10607objext=o
10608objext_CXX=$objext
10609
10610# Code to be used in simple compile tests
10611lt_simple_compile_test_code="int some_variable = 0;\n"
10612
10613# Code to be used in simple link tests
10614lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10615
10616# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10617
10618# If no C compiler was specified, use CC.
10619LTCC=${LTCC-"$CC"}
10620
10621# If no C compiler flags were specified, use CFLAGS.
10622LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10623
10624# Allow CC to be a program name with arguments.
10625compiler=$CC
10626
10627
10628# save warnings/boilerplate of simple test code
10629ac_outfile=conftest.$ac_objext
10630printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10631eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10632_lt_compiler_boilerplate=`cat conftest.err`
10633$rm conftest*
10634
10635ac_outfile=conftest.$ac_objext
10636printf "$lt_simple_link_test_code" >conftest.$ac_ext
10637eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10638_lt_linker_boilerplate=`cat conftest.err`
10639$rm conftest*
10640
10641
10642# Allow CC to be a program name with arguments.
10643lt_save_CC=$CC
10644lt_save_LD=$LD
10645lt_save_GCC=$GCC
10646GCC=$GXX
10647lt_save_with_gnu_ld=$with_gnu_ld
10648lt_save_path_LD=$lt_cv_path_LD
10649if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10650  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10651else
10652  $as_unset lt_cv_prog_gnu_ld
10653fi
10654if test -n "${lt_cv_path_LDCXX+set}"; then
10655  lt_cv_path_LD=$lt_cv_path_LDCXX
10656else
10657  $as_unset lt_cv_path_LD
10658fi
10659test -z "${LDCXX+set}" || LD=$LDCXX
10660CC=${CXX-"c++"}
10661compiler=$CC
10662compiler_CXX=$CC
10663for cc_temp in $compiler""; do
10664  case $cc_temp in
10665    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10666    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10667    \-*) ;;
10668    *) break;;
10669  esac
10670done
10671cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10672
10673
10674# We don't want -fno-exception wen compiling C++ code, so set the
10675# no_builtin_flag separately
10676if test "$GXX" = yes; then
10677  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10678else
10679  lt_prog_compiler_no_builtin_flag_CXX=
10680fi
10681
10682if test "$GXX" = yes; then
10683  # Set up default GNU C++ configuration
10684
10685
10686# Check whether --with-gnu-ld was given.
10687if test "${with_gnu_ld+set}" = set; then
10688  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10689else
10690  with_gnu_ld=no
10691fi
10692
10693ac_prog=ld
10694if test "$GCC" = yes; then
10695  # Check if gcc -print-prog-name=ld gives a path.
10696  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10697echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10698  case $host in
10699  *-*-mingw*)
10700    # gcc leaves a trailing carriage return which upsets mingw
10701    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10702  *)
10703    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10704  esac
10705  case $ac_prog in
10706    # Accept absolute paths.
10707    [\\/]* | ?:[\\/]*)
10708      re_direlt='/[^/][^/]*/\.\./'
10709      # Canonicalize the pathname of ld
10710      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10711      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10712	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10713      done
10714      test -z "$LD" && LD="$ac_prog"
10715      ;;
10716  "")
10717    # If it fails, then pretend we aren't using GCC.
10718    ac_prog=ld
10719    ;;
10720  *)
10721    # If it is relative, then search for the first ld in PATH.
10722    with_gnu_ld=unknown
10723    ;;
10724  esac
10725elif test "$with_gnu_ld" = yes; then
10726  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10727echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10728else
10729  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10730echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10731fi
10732if test "${lt_cv_path_LD+set}" = set; then
10733  echo $ECHO_N "(cached) $ECHO_C" >&6
10734else
10735  if test -z "$LD"; then
10736  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10737  for ac_dir in $PATH; do
10738    IFS="$lt_save_ifs"
10739    test -z "$ac_dir" && ac_dir=.
10740    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10741      lt_cv_path_LD="$ac_dir/$ac_prog"
10742      # Check to see if the program is GNU ld.  I'd rather use --version,
10743      # but apparently some variants of GNU ld only accept -v.
10744      # Break only if it was the GNU/non-GNU ld that we prefer.
10745      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10746      *GNU* | *'with BFD'*)
10747	test "$with_gnu_ld" != no && break
10748	;;
10749      *)
10750	test "$with_gnu_ld" != yes && break
10751	;;
10752      esac
10753    fi
10754  done
10755  IFS="$lt_save_ifs"
10756else
10757  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10758fi
10759fi
10760
10761LD="$lt_cv_path_LD"
10762if test -n "$LD"; then
10763  { echo "$as_me:$LINENO: result: $LD" >&5
10764echo "${ECHO_T}$LD" >&6; }
10765else
10766  { echo "$as_me:$LINENO: result: no" >&5
10767echo "${ECHO_T}no" >&6; }
10768fi
10769test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10770echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10771   { (exit 1); exit 1; }; }
10772{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10773echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10774if test "${lt_cv_prog_gnu_ld+set}" = set; then
10775  echo $ECHO_N "(cached) $ECHO_C" >&6
10776else
10777  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10778case `$LD -v 2>&1 </dev/null` in
10779*GNU* | *'with BFD'*)
10780  lt_cv_prog_gnu_ld=yes
10781  ;;
10782*)
10783  lt_cv_prog_gnu_ld=no
10784  ;;
10785esac
10786fi
10787{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10788echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10789with_gnu_ld=$lt_cv_prog_gnu_ld
10790
10791
10792
10793  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10794  # archiving commands below assume that GNU ld is being used.
10795  if test "$with_gnu_ld" = yes; then
10796    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10797    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'
10798
10799    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10800    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10801
10802    # If archive_cmds runs LD, not CC, wlarc should be empty
10803    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10804    #     investigate it a little bit more. (MM)
10805    wlarc='${wl}'
10806
10807    # ancient GNU ld didn't support --whole-archive et. al.
10808    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10809	grep 'no-whole-archive' > /dev/null; then
10810      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10811    else
10812      whole_archive_flag_spec_CXX=
10813    fi
10814  else
10815    with_gnu_ld=no
10816    wlarc=
10817
10818    # A generic and very simple default shared library creation
10819    # command for GNU C++ for the case where it uses the native
10820    # linker, instead of GNU ld.  If possible, this setting should
10821    # overridden to take advantage of the native linker features on
10822    # the platform it is being used on.
10823    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10824  fi
10825
10826  # Commands to make compiler produce verbose output that lists
10827  # what "hidden" libraries, object files and flags are used when
10828  # linking a shared library.
10829  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10830
10831else
10832  GXX=no
10833  with_gnu_ld=no
10834  wlarc=
10835fi
10836
10837# PORTME: fill in a description of your system's C++ link characteristics
10838{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10839echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10840ld_shlibs_CXX=yes
10841case $host_os in
10842  aix3*)
10843    # FIXME: insert proper C++ library support
10844    ld_shlibs_CXX=no
10845    ;;
10846  aix4* | aix5*)
10847    if test "$host_cpu" = ia64; then
10848      # On IA64, the linker does run time linking by default, so we don't
10849      # have to do anything special.
10850      aix_use_runtimelinking=no
10851      exp_sym_flag='-Bexport'
10852      no_entry_flag=""
10853    else
10854      aix_use_runtimelinking=no
10855
10856      # Test if we are trying to use run time linking or normal
10857      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10858      # need to do runtime linking.
10859      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10860	for ld_flag in $LDFLAGS; do
10861	  case $ld_flag in
10862	  *-brtl*)
10863	    aix_use_runtimelinking=yes
10864	    break
10865	    ;;
10866	  esac
10867	done
10868	;;
10869      esac
10870
10871      exp_sym_flag='-bexport'
10872      no_entry_flag='-bnoentry'
10873    fi
10874
10875    # When large executables or shared objects are built, AIX ld can
10876    # have problems creating the table of contents.  If linking a library
10877    # or program results in "error TOC overflow" add -mminimal-toc to
10878    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10879    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10880
10881    archive_cmds_CXX=''
10882    hardcode_direct_CXX=yes
10883    hardcode_libdir_separator_CXX=':'
10884    link_all_deplibs_CXX=yes
10885
10886    if test "$GXX" = yes; then
10887      case $host_os in aix4.[012]|aix4.[012].*)
10888      # We only want to do this on AIX 4.2 and lower, the check
10889      # below for broken collect2 doesn't work under 4.3+
10890	collect2name=`${CC} -print-prog-name=collect2`
10891	if test -f "$collect2name" && \
10892	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10893	then
10894	  # We have reworked collect2
10895	  hardcode_direct_CXX=yes
10896	else
10897	  # We have old collect2
10898	  hardcode_direct_CXX=unsupported
10899	  # It fails to find uninstalled libraries when the uninstalled
10900	  # path is not listed in the libpath.  Setting hardcode_minus_L
10901	  # to unsupported forces relinking
10902	  hardcode_minus_L_CXX=yes
10903	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10904	  hardcode_libdir_separator_CXX=
10905	fi
10906	;;
10907      esac
10908      shared_flag='-shared'
10909      if test "$aix_use_runtimelinking" = yes; then
10910	shared_flag="$shared_flag "'${wl}-G'
10911      fi
10912    else
10913      # not using gcc
10914      if test "$host_cpu" = ia64; then
10915	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10916	# chokes on -Wl,-G. The following line is correct:
10917	shared_flag='-G'
10918      else
10919	if test "$aix_use_runtimelinking" = yes; then
10920	  shared_flag='${wl}-G'
10921	else
10922	  shared_flag='${wl}-bM:SRE'
10923	fi
10924      fi
10925    fi
10926
10927    # It seems that -bexpall does not export symbols beginning with
10928    # underscore (_), so it is better to generate a list of symbols to export.
10929    always_export_symbols_CXX=yes
10930    if test "$aix_use_runtimelinking" = yes; then
10931      # Warning - without using the other runtime loading flags (-brtl),
10932      # -berok will link without error, but may produce a broken library.
10933      allow_undefined_flag_CXX='-berok'
10934      # Determine the default libpath from the value encoded in an empty executable.
10935      cat >conftest.$ac_ext <<_ACEOF
10936/* confdefs.h.  */
10937_ACEOF
10938cat confdefs.h >>conftest.$ac_ext
10939cat >>conftest.$ac_ext <<_ACEOF
10940/* end confdefs.h.  */
10941
10942int
10943main ()
10944{
10945
10946  ;
10947  return 0;
10948}
10949_ACEOF
10950rm -f conftest.$ac_objext conftest$ac_exeext
10951if { (ac_try="$ac_link"
10952case "(($ac_try" in
10953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954  *) ac_try_echo=$ac_try;;
10955esac
10956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957  (eval "$ac_link") 2>conftest.er1
10958  ac_status=$?
10959  grep -v '^ *+' conftest.er1 >conftest.err
10960  rm -f conftest.er1
10961  cat conftest.err >&5
10962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963  (exit $ac_status); } && {
10964	 test -z "$ac_cxx_werror_flag" ||
10965	 test ! -s conftest.err
10966       } && test -s conftest$ac_exeext &&
10967       $as_test_x conftest$ac_exeext; then
10968
10969aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10970}'`
10971# Check for a 64-bit object if we didn't find anything.
10972if 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; }
10973}'`; fi
10974else
10975  echo "$as_me: failed program was:" >&5
10976sed 's/^/| /' conftest.$ac_ext >&5
10977
10978
10979fi
10980
10981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10982      conftest$ac_exeext conftest.$ac_ext
10983if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10984
10985      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10986
10987      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"
10988     else
10989      if test "$host_cpu" = ia64; then
10990	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10991	allow_undefined_flag_CXX="-z nodefs"
10992	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"
10993      else
10994	# Determine the default libpath from the value encoded in an empty executable.
10995	cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h.  */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
11000/* end confdefs.h.  */
11001
11002int
11003main ()
11004{
11005
11006  ;
11007  return 0;
11008}
11009_ACEOF
11010rm -f conftest.$ac_objext conftest$ac_exeext
11011if { (ac_try="$ac_link"
11012case "(($ac_try" in
11013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014  *) ac_try_echo=$ac_try;;
11015esac
11016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017  (eval "$ac_link") 2>conftest.er1
11018  ac_status=$?
11019  grep -v '^ *+' conftest.er1 >conftest.err
11020  rm -f conftest.er1
11021  cat conftest.err >&5
11022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023  (exit $ac_status); } && {
11024	 test -z "$ac_cxx_werror_flag" ||
11025	 test ! -s conftest.err
11026       } && test -s conftest$ac_exeext &&
11027       $as_test_x conftest$ac_exeext; then
11028
11029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11030}'`
11031# Check for a 64-bit object if we didn't find anything.
11032if 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; }
11033}'`; fi
11034else
11035  echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
11037
11038
11039fi
11040
11041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11042      conftest$ac_exeext conftest.$ac_ext
11043if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11044
11045	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11046	# Warning - without using the other run time loading flags,
11047	# -berok will link without error, but may produce a broken library.
11048	no_undefined_flag_CXX=' ${wl}-bernotok'
11049	allow_undefined_flag_CXX=' ${wl}-berok'
11050	# Exported symbols can be pulled into shared objects from archives
11051	whole_archive_flag_spec_CXX='$convenience'
11052	archive_cmds_need_lc_CXX=yes
11053	# This is similar to how AIX traditionally builds its shared libraries.
11054	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'
11055      fi
11056    fi
11057    ;;
11058
11059  beos*)
11060    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11061      allow_undefined_flag_CXX=unsupported
11062      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11063      # support --undefined.  This deserves some investigation.  FIXME
11064      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11065    else
11066      ld_shlibs_CXX=no
11067    fi
11068    ;;
11069
11070  chorus*)
11071    case $cc_basename in
11072      *)
11073	# FIXME: insert proper C++ library support
11074	ld_shlibs_CXX=no
11075	;;
11076    esac
11077    ;;
11078
11079  cygwin* | mingw* | pw32*)
11080    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11081    # as there is no search path for DLLs.
11082    hardcode_libdir_flag_spec_CXX='-L$libdir'
11083    allow_undefined_flag_CXX=unsupported
11084    always_export_symbols_CXX=no
11085    enable_shared_with_static_runtimes_CXX=yes
11086
11087    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11088      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'
11089      # If the export-symbols file already is a .def file (1st line
11090      # is EXPORTS), use it as is; otherwise, prepend...
11091      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11092	cp $export_symbols $output_objdir/$soname.def;
11093      else
11094	echo EXPORTS > $output_objdir/$soname.def;
11095	cat $export_symbols >> $output_objdir/$soname.def;
11096      fi~
11097      $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'
11098    else
11099      ld_shlibs_CXX=no
11100    fi
11101  ;;
11102      darwin* | rhapsody*)
11103        case $host_os in
11104        rhapsody* | darwin1.[012])
11105         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11106         ;;
11107       *) # Darwin 1.3 on
11108         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11109           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11110         else
11111           case ${MACOSX_DEPLOYMENT_TARGET} in
11112             10.[012])
11113               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11114               ;;
11115             10.*)
11116               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11117               ;;
11118           esac
11119         fi
11120         ;;
11121        esac
11122      archive_cmds_need_lc_CXX=no
11123      hardcode_direct_CXX=no
11124      hardcode_automatic_CXX=yes
11125      hardcode_shlibpath_var_CXX=unsupported
11126      whole_archive_flag_spec_CXX=''
11127      link_all_deplibs_CXX=yes
11128
11129    if test "$GXX" = yes ; then
11130      lt_int_apple_cc_single_mod=no
11131      output_verbose_link_cmd='echo'
11132      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11133       lt_int_apple_cc_single_mod=yes
11134      fi
11135      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11136       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11137      else
11138          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'
11139        fi
11140        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11141        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11142          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11143            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}'
11144          else
11145            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}'
11146          fi
11147            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}'
11148      else
11149      case $cc_basename in
11150        xlc*)
11151         output_verbose_link_cmd='echo'
11152          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'
11153          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11154          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11155          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}'
11156          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}'
11157          ;;
11158       *)
11159         ld_shlibs_CXX=no
11160          ;;
11161      esac
11162      fi
11163        ;;
11164
11165  dgux*)
11166    case $cc_basename in
11167      ec++*)
11168	# FIXME: insert proper C++ library support
11169	ld_shlibs_CXX=no
11170	;;
11171      ghcx*)
11172	# Green Hills C++ Compiler
11173	# FIXME: insert proper C++ library support
11174	ld_shlibs_CXX=no
11175	;;
11176      *)
11177	# FIXME: insert proper C++ library support
11178	ld_shlibs_CXX=no
11179	;;
11180    esac
11181    ;;
11182  freebsd[12]*)
11183    # C++ shared libraries reported to be fairly broken before switch to ELF
11184    ld_shlibs_CXX=no
11185    ;;
11186  freebsd-elf*)
11187    archive_cmds_need_lc_CXX=no
11188    ;;
11189  freebsd* | kfreebsd*-gnu | dragonfly*)
11190    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11191    # conventions
11192    ld_shlibs_CXX=yes
11193    ;;
11194  gnu*)
11195    ;;
11196  hpux9*)
11197    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11198    hardcode_libdir_separator_CXX=:
11199    export_dynamic_flag_spec_CXX='${wl}-E'
11200    hardcode_direct_CXX=yes
11201    hardcode_minus_L_CXX=yes # Not in the search PATH,
11202				# but as the default
11203				# location of the library.
11204
11205    case $cc_basename in
11206    CC*)
11207      # FIXME: insert proper C++ library support
11208      ld_shlibs_CXX=no
11209      ;;
11210    aCC*)
11211      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'
11212      # Commands to make compiler produce verbose output that lists
11213      # what "hidden" libraries, object files and flags are used when
11214      # linking a shared library.
11215      #
11216      # There doesn't appear to be a way to prevent this compiler from
11217      # explicitly linking system object files so we need to strip them
11218      # from the output so that they don't get included in the library
11219      # dependencies.
11220      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'
11221      ;;
11222    *)
11223      if test "$GXX" = yes; then
11224        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'
11225      else
11226        # FIXME: insert proper C++ library support
11227        ld_shlibs_CXX=no
11228      fi
11229      ;;
11230    esac
11231    ;;
11232  hpux10*|hpux11*)
11233    if test $with_gnu_ld = no; then
11234      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11235      hardcode_libdir_separator_CXX=:
11236
11237      case $host_cpu in
11238      hppa*64*|ia64*)
11239	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11240        ;;
11241      *)
11242	export_dynamic_flag_spec_CXX='${wl}-E'
11243        ;;
11244      esac
11245    fi
11246    case $host_cpu in
11247    hppa*64*|ia64*)
11248      hardcode_direct_CXX=no
11249      hardcode_shlibpath_var_CXX=no
11250      ;;
11251    *)
11252      hardcode_direct_CXX=yes
11253      hardcode_minus_L_CXX=yes # Not in the search PATH,
11254					      # but as the default
11255					      # location of the library.
11256      ;;
11257    esac
11258
11259    case $cc_basename in
11260      CC*)
11261	# FIXME: insert proper C++ library support
11262	ld_shlibs_CXX=no
11263	;;
11264      aCC*)
11265	case $host_cpu in
11266	hppa*64*)
11267	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11268	  ;;
11269	ia64*)
11270	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11271	  ;;
11272	*)
11273	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11274	  ;;
11275	esac
11276	# Commands to make compiler produce verbose output that lists
11277	# what "hidden" libraries, object files and flags are used when
11278	# linking a shared library.
11279	#
11280	# There doesn't appear to be a way to prevent this compiler from
11281	# explicitly linking system object files so we need to strip them
11282	# from the output so that they don't get included in the library
11283	# dependencies.
11284	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'
11285	;;
11286      *)
11287	if test "$GXX" = yes; then
11288	  if test $with_gnu_ld = no; then
11289	    case $host_cpu in
11290	    hppa*64*)
11291	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11292	      ;;
11293	    ia64*)
11294	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11295	      ;;
11296	    *)
11297	      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'
11298	      ;;
11299	    esac
11300	  fi
11301	else
11302	  # FIXME: insert proper C++ library support
11303	  ld_shlibs_CXX=no
11304	fi
11305	;;
11306    esac
11307    ;;
11308  interix3*)
11309    hardcode_direct_CXX=no
11310    hardcode_shlibpath_var_CXX=no
11311    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11312    export_dynamic_flag_spec_CXX='${wl}-E'
11313    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11314    # Instead, shared libraries are loaded at an image base (0x10000000 by
11315    # default) and relocated if they conflict, which is a slow very memory
11316    # consuming and fragmenting process.  To avoid this, we pick a random,
11317    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11318    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11319    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'
11320    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'
11321    ;;
11322  irix5* | irix6*)
11323    case $cc_basename in
11324      CC*)
11325	# SGI C++
11326	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'
11327
11328	# Archives containing C++ object files must be created using
11329	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11330	# necessary to make sure instantiated templates are included
11331	# in the archive.
11332	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11333	;;
11334      *)
11335	if test "$GXX" = yes; then
11336	  if test "$with_gnu_ld" = no; then
11337	    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'
11338	  else
11339	    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'
11340	  fi
11341	fi
11342	link_all_deplibs_CXX=yes
11343	;;
11344    esac
11345    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11346    hardcode_libdir_separator_CXX=:
11347    ;;
11348  linux*)
11349    case $cc_basename in
11350      KCC*)
11351	# Kuck and Associates, Inc. (KAI) C++ Compiler
11352
11353	# KCC will only create a shared library if the output file
11354	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11355	# to its proper name (with version) after linking.
11356	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'
11357	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'
11358	# Commands to make compiler produce verbose output that lists
11359	# what "hidden" libraries, object files and flags are used when
11360	# linking a shared library.
11361	#
11362	# There doesn't appear to be a way to prevent this compiler from
11363	# explicitly linking system object files so we need to strip them
11364	# from the output so that they don't get included in the library
11365	# dependencies.
11366	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'
11367
11368	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11369	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11370
11371	# Archives containing C++ object files must be created using
11372	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11373	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11374	;;
11375      icpc*)
11376	# Intel C++
11377	with_gnu_ld=yes
11378	# version 8.0 and above of icpc choke on multiply defined symbols
11379	# if we add $predep_objects and $postdep_objects, however 7.1 and
11380	# earlier do not add the objects themselves.
11381	case `$CC -V 2>&1` in
11382	*"Version 7."*)
11383  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11384  	  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'
11385	  ;;
11386	*)  # Version 8.0 or newer
11387	  tmp_idyn=
11388	  case $host_cpu in
11389	    ia64*) tmp_idyn=' -i_dynamic';;
11390	  esac
11391  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11392	  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'
11393	  ;;
11394	esac
11395	archive_cmds_need_lc_CXX=no
11396	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11397	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11398	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11399	;;
11400      pgCC*)
11401        # Portland Group C++ compiler
11402	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11403  	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'
11404
11405	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11406	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11407	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'
11408        ;;
11409      cxx*)
11410	# Compaq C++
11411	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11412	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'
11413
11414	runpath_var=LD_RUN_PATH
11415	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11416	hardcode_libdir_separator_CXX=:
11417
11418	# Commands to make compiler produce verbose output that lists
11419	# what "hidden" libraries, object files and flags are used when
11420	# linking a shared library.
11421	#
11422	# There doesn't appear to be a way to prevent this compiler from
11423	# explicitly linking system object files so we need to strip them
11424	# from the output so that they don't get included in the library
11425	# dependencies.
11426	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'
11427	;;
11428    esac
11429    ;;
11430  lynxos*)
11431    # FIXME: insert proper C++ library support
11432    ld_shlibs_CXX=no
11433    ;;
11434  m88k*)
11435    # FIXME: insert proper C++ library support
11436    ld_shlibs_CXX=no
11437    ;;
11438  mvs*)
11439    case $cc_basename in
11440      cxx*)
11441	# FIXME: insert proper C++ library support
11442	ld_shlibs_CXX=no
11443	;;
11444      *)
11445	# FIXME: insert proper C++ library support
11446	ld_shlibs_CXX=no
11447	;;
11448    esac
11449    ;;
11450  netbsd*)
11451    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11452      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11453      wlarc=
11454      hardcode_libdir_flag_spec_CXX='-R$libdir'
11455      hardcode_direct_CXX=yes
11456      hardcode_shlibpath_var_CXX=no
11457    fi
11458    # Workaround some broken pre-1.5 toolchains
11459    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11460    ;;
11461  openbsd2*)
11462    # C++ shared libraries are fairly broken
11463    ld_shlibs_CXX=no
11464    ;;
11465  openbsd*)
11466    hardcode_direct_CXX=yes
11467    hardcode_shlibpath_var_CXX=no
11468    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11469    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11470    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11471      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11472      export_dynamic_flag_spec_CXX='${wl}-E'
11473      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11474    fi
11475    output_verbose_link_cmd='echo'
11476    ;;
11477  osf3*)
11478    case $cc_basename in
11479      KCC*)
11480	# Kuck and Associates, Inc. (KAI) C++ Compiler
11481
11482	# KCC will only create a shared library if the output file
11483	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11484	# to its proper name (with version) after linking.
11485	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'
11486
11487	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11488	hardcode_libdir_separator_CXX=:
11489
11490	# Archives containing C++ object files must be created using
11491	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11492	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11493
11494	;;
11495      RCC*)
11496	# Rational C++ 2.4.1
11497	# FIXME: insert proper C++ library support
11498	ld_shlibs_CXX=no
11499	;;
11500      cxx*)
11501	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11502	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'
11503
11504	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11505	hardcode_libdir_separator_CXX=:
11506
11507	# Commands to make compiler produce verbose output that lists
11508	# what "hidden" libraries, object files and flags are used when
11509	# linking a shared library.
11510	#
11511	# There doesn't appear to be a way to prevent this compiler from
11512	# explicitly linking system object files so we need to strip them
11513	# from the output so that they don't get included in the library
11514	# dependencies.
11515	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'
11516	;;
11517      *)
11518	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11519	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11520	  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'
11521
11522	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11523	  hardcode_libdir_separator_CXX=:
11524
11525	  # Commands to make compiler produce verbose output that lists
11526	  # what "hidden" libraries, object files and flags are used when
11527	  # linking a shared library.
11528	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11529
11530	else
11531	  # FIXME: insert proper C++ library support
11532	  ld_shlibs_CXX=no
11533	fi
11534	;;
11535    esac
11536    ;;
11537  osf4* | osf5*)
11538    case $cc_basename in
11539      KCC*)
11540	# Kuck and Associates, Inc. (KAI) C++ Compiler
11541
11542	# KCC will only create a shared library if the output file
11543	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11544	# to its proper name (with version) after linking.
11545	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'
11546
11547	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11548	hardcode_libdir_separator_CXX=:
11549
11550	# Archives containing C++ object files must be created using
11551	# the KAI C++ compiler.
11552	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11553	;;
11554      RCC*)
11555	# Rational C++ 2.4.1
11556	# FIXME: insert proper C++ library support
11557	ld_shlibs_CXX=no
11558	;;
11559      cxx*)
11560	allow_undefined_flag_CXX=' -expect_unresolved \*'
11561	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'
11562	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11563	  echo "-hidden">> $lib.exp~
11564	  $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~
11565	  $rm $lib.exp'
11566
11567	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11568	hardcode_libdir_separator_CXX=:
11569
11570	# Commands to make compiler produce verbose output that lists
11571	# what "hidden" libraries, object files and flags are used when
11572	# linking a shared library.
11573	#
11574	# There doesn't appear to be a way to prevent this compiler from
11575	# explicitly linking system object files so we need to strip them
11576	# from the output so that they don't get included in the library
11577	# dependencies.
11578	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'
11579	;;
11580      *)
11581	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11582	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11583	 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'
11584
11585	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11586	  hardcode_libdir_separator_CXX=:
11587
11588	  # Commands to make compiler produce verbose output that lists
11589	  # what "hidden" libraries, object files and flags are used when
11590	  # linking a shared library.
11591	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11592
11593	else
11594	  # FIXME: insert proper C++ library support
11595	  ld_shlibs_CXX=no
11596	fi
11597	;;
11598    esac
11599    ;;
11600  psos*)
11601    # FIXME: insert proper C++ library support
11602    ld_shlibs_CXX=no
11603    ;;
11604  sunos4*)
11605    case $cc_basename in
11606      CC*)
11607	# Sun C++ 4.x
11608	# FIXME: insert proper C++ library support
11609	ld_shlibs_CXX=no
11610	;;
11611      lcc*)
11612	# Lucid
11613	# FIXME: insert proper C++ library support
11614	ld_shlibs_CXX=no
11615	;;
11616      *)
11617	# FIXME: insert proper C++ library support
11618	ld_shlibs_CXX=no
11619	;;
11620    esac
11621    ;;
11622  solaris*)
11623    case $cc_basename in
11624      CC*)
11625	# Sun C++ 4.2, 5.x and Centerline C++
11626        archive_cmds_need_lc_CXX=yes
11627	no_undefined_flag_CXX=' -zdefs'
11628	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11629	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11630	$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'
11631
11632	hardcode_libdir_flag_spec_CXX='-R$libdir'
11633	hardcode_shlibpath_var_CXX=no
11634	case $host_os in
11635	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11636	  *)
11637	    # The C++ compiler is used as linker so we must use $wl
11638	    # flag to pass the commands to the underlying system
11639	    # linker. We must also pass each convience library through
11640	    # to the system linker between allextract/defaultextract.
11641	    # The C++ compiler will combine linker options so we
11642	    # cannot just pass the convience library names through
11643	    # without $wl.
11644	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11645	    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'
11646	    ;;
11647	esac
11648	link_all_deplibs_CXX=yes
11649
11650	output_verbose_link_cmd='echo'
11651
11652	# Archives containing C++ object files must be created using
11653	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11654	# necessary to make sure instantiated templates are included
11655	# in the archive.
11656	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11657	;;
11658      gcx*)
11659	# Green Hills C++ Compiler
11660	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11661
11662	# The C++ compiler must be used to create the archive.
11663	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11664	;;
11665      *)
11666	# GNU C++ compiler with Solaris linker
11667	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11668	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11669	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11670	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11671	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11672		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11673
11674	    # Commands to make compiler produce verbose output that lists
11675	    # what "hidden" libraries, object files and flags are used when
11676	    # linking a shared library.
11677	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11678	  else
11679	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11680	    # platform.
11681	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11682	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11683		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11684
11685	    # Commands to make compiler produce verbose output that lists
11686	    # what "hidden" libraries, object files and flags are used when
11687	    # linking a shared library.
11688	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11689	  fi
11690
11691	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11692	fi
11693	;;
11694    esac
11695    ;;
11696  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11697    no_undefined_flag_CXX='${wl}-z,text'
11698    archive_cmds_need_lc_CXX=no
11699    hardcode_shlibpath_var_CXX=no
11700    runpath_var='LD_RUN_PATH'
11701
11702    case $cc_basename in
11703      CC*)
11704	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11705	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11706	;;
11707      *)
11708	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11709	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11710	;;
11711    esac
11712    ;;
11713  sysv5* | sco3.2v5* | sco5v6*)
11714    # Note: We can NOT use -z defs as we might desire, because we do not
11715    # link with -lc, and that would cause any symbols used from libc to
11716    # always be unresolved, which means just about no library would
11717    # ever link correctly.  If we're not using GNU ld we use -z text
11718    # though, which does catch some bad symbols but isn't as heavy-handed
11719    # as -z defs.
11720    # For security reasons, it is highly recommended that you always
11721    # use absolute paths for naming shared libraries, and exclude the
11722    # DT_RUNPATH tag from executables and libraries.  But doing so
11723    # requires that you compile everything twice, which is a pain.
11724    # So that behaviour is only enabled if SCOABSPATH is set to a
11725    # non-empty value in the environment.  Most likely only useful for
11726    # creating official distributions of packages.
11727    # This is a hack until libtool officially supports absolute path
11728    # names for shared libraries.
11729    no_undefined_flag_CXX='${wl}-z,text'
11730    allow_undefined_flag_CXX='${wl}-z,nodefs'
11731    archive_cmds_need_lc_CXX=no
11732    hardcode_shlibpath_var_CXX=no
11733    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11734    hardcode_libdir_separator_CXX=':'
11735    link_all_deplibs_CXX=yes
11736    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11737    runpath_var='LD_RUN_PATH'
11738
11739    case $cc_basename in
11740      CC*)
11741	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11742	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11743	;;
11744      *)
11745	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11746	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11747	;;
11748    esac
11749    ;;
11750  tandem*)
11751    case $cc_basename in
11752      NCC*)
11753	# NonStop-UX NCC 3.20
11754	# FIXME: insert proper C++ library support
11755	ld_shlibs_CXX=no
11756	;;
11757      *)
11758	# FIXME: insert proper C++ library support
11759	ld_shlibs_CXX=no
11760	;;
11761    esac
11762    ;;
11763  vxworks*)
11764    # FIXME: insert proper C++ library support
11765    ld_shlibs_CXX=no
11766    ;;
11767  *)
11768    # FIXME: insert proper C++ library support
11769    ld_shlibs_CXX=no
11770    ;;
11771esac
11772{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11773echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11774test "$ld_shlibs_CXX" = no && can_build_shared=no
11775
11776GCC_CXX="$GXX"
11777LD_CXX="$LD"
11778
11779
11780cat > conftest.$ac_ext <<EOF
11781class Foo
11782{
11783public:
11784  Foo (void) { a = 0; }
11785private:
11786  int a;
11787};
11788EOF
11789
11790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791  (eval $ac_compile) 2>&5
11792  ac_status=$?
11793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794  (exit $ac_status); }; then
11795  # Parse the compiler output and extract the necessary
11796  # objects, libraries and library flags.
11797
11798  # Sentinel used to keep track of whether or not we are before
11799  # the conftest object file.
11800  pre_test_object_deps_done=no
11801
11802  # The `*' in the case matches for architectures that use `case' in
11803  # $output_verbose_cmd can trigger glob expansion during the loop
11804  # eval without this substitution.
11805  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11806
11807  for p in `eval $output_verbose_link_cmd`; do
11808    case $p in
11809
11810    -L* | -R* | -l*)
11811       # Some compilers place space between "-{L,R}" and the path.
11812       # Remove the space.
11813       if test $p = "-L" \
11814	  || test $p = "-R"; then
11815	 prev=$p
11816	 continue
11817       else
11818	 prev=
11819       fi
11820
11821       if test "$pre_test_object_deps_done" = no; then
11822	 case $p in
11823	 -L* | -R*)
11824	   # Internal compiler library paths should come after those
11825	   # provided the user.  The postdeps already come after the
11826	   # user supplied libs so there is no need to process them.
11827	   if test -z "$compiler_lib_search_path_CXX"; then
11828	     compiler_lib_search_path_CXX="${prev}${p}"
11829	   else
11830	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11831	   fi
11832	   ;;
11833	 # The "-l" case would never come before the object being
11834	 # linked, so don't bother handling this case.
11835	 esac
11836       else
11837	 if test -z "$postdeps_CXX"; then
11838	   postdeps_CXX="${prev}${p}"
11839	 else
11840	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11841	 fi
11842       fi
11843       ;;
11844
11845    *.$objext)
11846       # This assumes that the test object file only shows up
11847       # once in the compiler output.
11848       if test "$p" = "conftest.$objext"; then
11849	 pre_test_object_deps_done=yes
11850	 continue
11851       fi
11852
11853       if test "$pre_test_object_deps_done" = no; then
11854	 if test -z "$predep_objects_CXX"; then
11855	   predep_objects_CXX="$p"
11856	 else
11857	   predep_objects_CXX="$predep_objects_CXX $p"
11858	 fi
11859       else
11860	 if test -z "$postdep_objects_CXX"; then
11861	   postdep_objects_CXX="$p"
11862	 else
11863	   postdep_objects_CXX="$postdep_objects_CXX $p"
11864	 fi
11865       fi
11866       ;;
11867
11868    *) ;; # Ignore the rest.
11869
11870    esac
11871  done
11872
11873  # Clean up.
11874  rm -f a.out a.exe
11875else
11876  echo "libtool.m4: error: problem compiling CXX test program"
11877fi
11878
11879$rm -f confest.$objext
11880
11881# PORTME: override above test on systems where it is broken
11882case $host_os in
11883interix3*)
11884  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11885  # hack all around it, let's just trust "g++" to DTRT.
11886  predep_objects_CXX=
11887  postdep_objects_CXX=
11888  postdeps_CXX=
11889  ;;
11890
11891solaris*)
11892  case $cc_basename in
11893  CC*)
11894    # Adding this requires a known-good setup of shared libraries for
11895    # Sun compiler versions before 5.6, else PIC objects from an old
11896    # archive will be linked into the output, leading to subtle bugs.
11897    postdeps_CXX='-lCstd -lCrun'
11898    ;;
11899  esac
11900  ;;
11901esac
11902
11903
11904case " $postdeps_CXX " in
11905*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11906esac
11907
11908lt_prog_compiler_wl_CXX=
11909lt_prog_compiler_pic_CXX=
11910lt_prog_compiler_static_CXX=
11911
11912{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11913echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11914
11915  # C++ specific cases for pic, static, wl, etc.
11916  if test "$GXX" = yes; then
11917    lt_prog_compiler_wl_CXX='-Wl,'
11918    lt_prog_compiler_static_CXX='-static'
11919
11920    case $host_os in
11921    aix*)
11922      # All AIX code is PIC.
11923      if test "$host_cpu" = ia64; then
11924	# AIX 5 now supports IA64 processor
11925	lt_prog_compiler_static_CXX='-Bstatic'
11926      fi
11927      ;;
11928    amigaos*)
11929      # FIXME: we need at least 68020 code to build shared libraries, but
11930      # adding the `-m68020' flag to GCC prevents building anything better,
11931      # like `-m68040'.
11932      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11933      ;;
11934    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11935      # PIC is the default for these OSes.
11936      ;;
11937    mingw* | os2* | pw32*)
11938      # This hack is so that the source file can tell whether it is being
11939      # built for inclusion in a dll (and should export symbols for example).
11940      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11941      ;;
11942    darwin* | rhapsody*)
11943      # PIC is the default on this platform
11944      # Common symbols not allowed in MH_DYLIB files
11945      lt_prog_compiler_pic_CXX='-fno-common'
11946      ;;
11947    *djgpp*)
11948      # DJGPP does not support shared libraries at all
11949      lt_prog_compiler_pic_CXX=
11950      ;;
11951    interix3*)
11952      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11953      # Instead, we relocate shared libraries at runtime.
11954      ;;
11955    sysv4*MP*)
11956      if test -d /usr/nec; then
11957	lt_prog_compiler_pic_CXX=-Kconform_pic
11958      fi
11959      ;;
11960    hpux*)
11961      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11962      # not for PA HP-UX.
11963      case $host_cpu in
11964      hppa*64*|ia64*)
11965	;;
11966      *)
11967	lt_prog_compiler_pic_CXX='-fPIC'
11968	;;
11969      esac
11970      ;;
11971    *)
11972      lt_prog_compiler_pic_CXX='-fPIC'
11973      ;;
11974    esac
11975  else
11976    case $host_os in
11977      aix4* | aix5*)
11978	# All AIX code is PIC.
11979	if test "$host_cpu" = ia64; then
11980	  # AIX 5 now supports IA64 processor
11981	  lt_prog_compiler_static_CXX='-Bstatic'
11982	else
11983	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11984	fi
11985	;;
11986      chorus*)
11987	case $cc_basename in
11988	cxch68*)
11989	  # Green Hills C++ Compiler
11990	  # _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"
11991	  ;;
11992	esac
11993	;;
11994       darwin*)
11995         # PIC is the default on this platform
11996         # Common symbols not allowed in MH_DYLIB files
11997         case $cc_basename in
11998           xlc*)
11999           lt_prog_compiler_pic_CXX='-qnocommon'
12000           lt_prog_compiler_wl_CXX='-Wl,'
12001           ;;
12002         esac
12003       ;;
12004      dgux*)
12005	case $cc_basename in
12006	  ec++*)
12007	    lt_prog_compiler_pic_CXX='-KPIC'
12008	    ;;
12009	  ghcx*)
12010	    # Green Hills C++ Compiler
12011	    lt_prog_compiler_pic_CXX='-pic'
12012	    ;;
12013	  *)
12014	    ;;
12015	esac
12016	;;
12017      freebsd* | kfreebsd*-gnu | dragonfly*)
12018	# FreeBSD uses GNU C++
12019	;;
12020      hpux9* | hpux10* | hpux11*)
12021	case $cc_basename in
12022	  CC*)
12023	    lt_prog_compiler_wl_CXX='-Wl,'
12024	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12025	    if test "$host_cpu" != ia64; then
12026	      lt_prog_compiler_pic_CXX='+Z'
12027	    fi
12028	    ;;
12029	  aCC*)
12030	    lt_prog_compiler_wl_CXX='-Wl,'
12031	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12032	    case $host_cpu in
12033	    hppa*64*|ia64*)
12034	      # +Z the default
12035	      ;;
12036	    *)
12037	      lt_prog_compiler_pic_CXX='+Z'
12038	      ;;
12039	    esac
12040	    ;;
12041	  *)
12042	    ;;
12043	esac
12044	;;
12045      interix*)
12046	# This is c89, which is MS Visual C++ (no shared libs)
12047	# Anyone wants to do a port?
12048	;;
12049      irix5* | irix6* | nonstopux*)
12050	case $cc_basename in
12051	  CC*)
12052	    lt_prog_compiler_wl_CXX='-Wl,'
12053	    lt_prog_compiler_static_CXX='-non_shared'
12054	    # CC pic flag -KPIC is the default.
12055	    ;;
12056	  *)
12057	    ;;
12058	esac
12059	;;
12060      linux*)
12061	case $cc_basename in
12062	  KCC*)
12063	    # KAI C++ Compiler
12064	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12065	    lt_prog_compiler_pic_CXX='-fPIC'
12066	    ;;
12067	  icpc* | ecpc*)
12068	    # Intel C++
12069	    lt_prog_compiler_wl_CXX='-Wl,'
12070	    lt_prog_compiler_pic_CXX='-KPIC'
12071	    lt_prog_compiler_static_CXX='-static'
12072	    ;;
12073	  pgCC*)
12074	    # Portland Group C++ compiler.
12075	    lt_prog_compiler_wl_CXX='-Wl,'
12076	    lt_prog_compiler_pic_CXX='-fpic'
12077	    lt_prog_compiler_static_CXX='-Bstatic'
12078	    ;;
12079	  cxx*)
12080	    # Compaq C++
12081	    # Make sure the PIC flag is empty.  It appears that all Alpha
12082	    # Linux and Compaq Tru64 Unix objects are PIC.
12083	    lt_prog_compiler_pic_CXX=
12084	    lt_prog_compiler_static_CXX='-non_shared'
12085	    ;;
12086	  *)
12087	    ;;
12088	esac
12089	;;
12090      lynxos*)
12091	;;
12092      m88k*)
12093	;;
12094      mvs*)
12095	case $cc_basename in
12096	  cxx*)
12097	    lt_prog_compiler_pic_CXX='-W c,exportall'
12098	    ;;
12099	  *)
12100	    ;;
12101	esac
12102	;;
12103      netbsd*)
12104	;;
12105      osf3* | osf4* | osf5*)
12106	case $cc_basename in
12107	  KCC*)
12108	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12109	    ;;
12110	  RCC*)
12111	    # Rational C++ 2.4.1
12112	    lt_prog_compiler_pic_CXX='-pic'
12113	    ;;
12114	  cxx*)
12115	    # Digital/Compaq C++
12116	    lt_prog_compiler_wl_CXX='-Wl,'
12117	    # Make sure the PIC flag is empty.  It appears that all Alpha
12118	    # Linux and Compaq Tru64 Unix objects are PIC.
12119	    lt_prog_compiler_pic_CXX=
12120	    lt_prog_compiler_static_CXX='-non_shared'
12121	    ;;
12122	  *)
12123	    ;;
12124	esac
12125	;;
12126      psos*)
12127	;;
12128      solaris*)
12129	case $cc_basename in
12130	  CC*)
12131	    # Sun C++ 4.2, 5.x and Centerline C++
12132	    lt_prog_compiler_pic_CXX='-KPIC'
12133	    lt_prog_compiler_static_CXX='-Bstatic'
12134	    lt_prog_compiler_wl_CXX='-Qoption ld '
12135	    ;;
12136	  gcx*)
12137	    # Green Hills C++ Compiler
12138	    lt_prog_compiler_pic_CXX='-PIC'
12139	    ;;
12140	  *)
12141	    ;;
12142	esac
12143	;;
12144      sunos4*)
12145	case $cc_basename in
12146	  CC*)
12147	    # Sun C++ 4.x
12148	    lt_prog_compiler_pic_CXX='-pic'
12149	    lt_prog_compiler_static_CXX='-Bstatic'
12150	    ;;
12151	  lcc*)
12152	    # Lucid
12153	    lt_prog_compiler_pic_CXX='-pic'
12154	    ;;
12155	  *)
12156	    ;;
12157	esac
12158	;;
12159      tandem*)
12160	case $cc_basename in
12161	  NCC*)
12162	    # NonStop-UX NCC 3.20
12163	    lt_prog_compiler_pic_CXX='-KPIC'
12164	    ;;
12165	  *)
12166	    ;;
12167	esac
12168	;;
12169      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12170	case $cc_basename in
12171	  CC*)
12172	    lt_prog_compiler_wl_CXX='-Wl,'
12173	    lt_prog_compiler_pic_CXX='-KPIC'
12174	    lt_prog_compiler_static_CXX='-Bstatic'
12175	    ;;
12176	esac
12177	;;
12178      vxworks*)
12179	;;
12180      *)
12181	lt_prog_compiler_can_build_shared_CXX=no
12182	;;
12183    esac
12184  fi
12185
12186{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12187echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12188
12189#
12190# Check to make sure the PIC flag actually works.
12191#
12192if test -n "$lt_prog_compiler_pic_CXX"; then
12193
12194{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12195echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12196if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12197  echo $ECHO_N "(cached) $ECHO_C" >&6
12198else
12199  lt_prog_compiler_pic_works_CXX=no
12200  ac_outfile=conftest.$ac_objext
12201   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12202   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12203   # Insert the option either (1) after the last *FLAGS variable, or
12204   # (2) before a word containing "conftest.", or (3) at the end.
12205   # Note that $ac_compile itself does not contain backslashes and begins
12206   # with a dollar sign (not a hyphen), so the echo should work correctly.
12207   # The option is referenced via a variable to avoid confusing sed.
12208   lt_compile=`echo "$ac_compile" | $SED \
12209   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12210   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12211   -e 's:$: $lt_compiler_flag:'`
12212   (eval echo "\"\$as_me:12212: $lt_compile\"" >&5)
12213   (eval "$lt_compile" 2>conftest.err)
12214   ac_status=$?
12215   cat conftest.err >&5
12216   echo "$as_me:12216: \$? = $ac_status" >&5
12217   if (exit $ac_status) && test -s "$ac_outfile"; then
12218     # The compiler can only warn and ignore the option if not recognized
12219     # So say no if there are warnings other than the usual output.
12220     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12221     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12222     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12223       lt_prog_compiler_pic_works_CXX=yes
12224     fi
12225   fi
12226   $rm conftest*
12227
12228fi
12229{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12230echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12231
12232if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12233    case $lt_prog_compiler_pic_CXX in
12234     "" | " "*) ;;
12235     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12236     esac
12237else
12238    lt_prog_compiler_pic_CXX=
12239     lt_prog_compiler_can_build_shared_CXX=no
12240fi
12241
12242fi
12243case $host_os in
12244  # For platforms which do not support PIC, -DPIC is meaningless:
12245  *djgpp*)
12246    lt_prog_compiler_pic_CXX=
12247    ;;
12248  *)
12249    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12250    ;;
12251esac
12252
12253#
12254# Check to make sure the static flag actually works.
12255#
12256wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12257{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12258echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12259if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12260  echo $ECHO_N "(cached) $ECHO_C" >&6
12261else
12262  lt_prog_compiler_static_works_CXX=no
12263   save_LDFLAGS="$LDFLAGS"
12264   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12265   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12266   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12267     # The linker can only warn and ignore the option if not recognized
12268     # So say no if there are warnings
12269     if test -s conftest.err; then
12270       # Append any errors to the config.log.
12271       cat conftest.err 1>&5
12272       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12273       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12274       if diff conftest.exp conftest.er2 >/dev/null; then
12275         lt_prog_compiler_static_works_CXX=yes
12276       fi
12277     else
12278       lt_prog_compiler_static_works_CXX=yes
12279     fi
12280   fi
12281   $rm conftest*
12282   LDFLAGS="$save_LDFLAGS"
12283
12284fi
12285{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12286echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12287
12288if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12289    :
12290else
12291    lt_prog_compiler_static_CXX=
12292fi
12293
12294
12295{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12296echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12297if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12298  echo $ECHO_N "(cached) $ECHO_C" >&6
12299else
12300  lt_cv_prog_compiler_c_o_CXX=no
12301   $rm -r conftest 2>/dev/null
12302   mkdir conftest
12303   cd conftest
12304   mkdir out
12305   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12306
12307   lt_compiler_flag="-o out/conftest2.$ac_objext"
12308   # Insert the option either (1) after the last *FLAGS variable, or
12309   # (2) before a word containing "conftest.", or (3) at the end.
12310   # Note that $ac_compile itself does not contain backslashes and begins
12311   # with a dollar sign (not a hyphen), so the echo should work correctly.
12312   lt_compile=`echo "$ac_compile" | $SED \
12313   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12314   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12315   -e 's:$: $lt_compiler_flag:'`
12316   (eval echo "\"\$as_me:12316: $lt_compile\"" >&5)
12317   (eval "$lt_compile" 2>out/conftest.err)
12318   ac_status=$?
12319   cat out/conftest.err >&5
12320   echo "$as_me:12320: \$? = $ac_status" >&5
12321   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12322   then
12323     # The compiler can only warn and ignore the option if not recognized
12324     # So say no if there are warnings
12325     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12326     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12327     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12328       lt_cv_prog_compiler_c_o_CXX=yes
12329     fi
12330   fi
12331   chmod u+w . 2>&5
12332   $rm conftest*
12333   # SGI C++ compiler will create directory out/ii_files/ for
12334   # template instantiation
12335   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12336   $rm out/* && rmdir out
12337   cd ..
12338   rmdir conftest
12339   $rm conftest*
12340
12341fi
12342{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12343echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12344
12345
12346hard_links="nottested"
12347if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12348  # do not overwrite the value of need_locks provided by the user
12349  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12350echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12351  hard_links=yes
12352  $rm conftest*
12353  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12354  touch conftest.a
12355  ln conftest.a conftest.b 2>&5 || hard_links=no
12356  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12357  { echo "$as_me:$LINENO: result: $hard_links" >&5
12358echo "${ECHO_T}$hard_links" >&6; }
12359  if test "$hard_links" = no; then
12360    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12361echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12362    need_locks=warn
12363  fi
12364else
12365  need_locks=no
12366fi
12367
12368{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12369echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12370
12371  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12372  case $host_os in
12373  aix4* | aix5*)
12374    # If we're using GNU nm, then we don't want the "-C" option.
12375    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12376    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12377      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'
12378    else
12379      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'
12380    fi
12381    ;;
12382  pw32*)
12383    export_symbols_cmds_CXX="$ltdll_cmds"
12384  ;;
12385  cygwin* | mingw*)
12386    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'
12387  ;;
12388  *)
12389    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12390  ;;
12391  esac
12392
12393{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12394echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12395test "$ld_shlibs_CXX" = no && can_build_shared=no
12396
12397#
12398# Do we need to explicitly link libc?
12399#
12400case "x$archive_cmds_need_lc_CXX" in
12401x|xyes)
12402  # Assume -lc should be added
12403  archive_cmds_need_lc_CXX=yes
12404
12405  if test "$enable_shared" = yes && test "$GCC" = yes; then
12406    case $archive_cmds_CXX in
12407    *'~'*)
12408      # FIXME: we may have to deal with multi-command sequences.
12409      ;;
12410    '$CC '*)
12411      # Test whether the compiler implicitly links with -lc since on some
12412      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12413      # to ld, don't add -lc before -lgcc.
12414      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12415echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12416      $rm conftest*
12417      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12418
12419      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420  (eval $ac_compile) 2>&5
12421  ac_status=$?
12422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423  (exit $ac_status); } 2>conftest.err; then
12424        soname=conftest
12425        lib=conftest
12426        libobjs=conftest.$ac_objext
12427        deplibs=
12428        wl=$lt_prog_compiler_wl_CXX
12429	pic_flag=$lt_prog_compiler_pic_CXX
12430        compiler_flags=-v
12431        linker_flags=-v
12432        verstring=
12433        output_objdir=.
12434        libname=conftest
12435        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12436        allow_undefined_flag_CXX=
12437        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12438  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12439  ac_status=$?
12440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441  (exit $ac_status); }
12442        then
12443	  archive_cmds_need_lc_CXX=no
12444        else
12445	  archive_cmds_need_lc_CXX=yes
12446        fi
12447        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12448      else
12449        cat conftest.err 1>&5
12450      fi
12451      $rm conftest*
12452      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12453echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12454      ;;
12455    esac
12456  fi
12457  ;;
12458esac
12459
12460{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12461echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12462library_names_spec=
12463libname_spec='lib$name'
12464soname_spec=
12465shrext_cmds=".so"
12466postinstall_cmds=
12467postuninstall_cmds=
12468finish_cmds=
12469finish_eval=
12470shlibpath_var=
12471shlibpath_overrides_runpath=unknown
12472version_type=none
12473dynamic_linker="$host_os ld.so"
12474sys_lib_dlsearch_path_spec="/lib /usr/lib"
12475if test "$GCC" = yes; then
12476  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12477  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12478    # if the path contains ";" then we assume it to be the separator
12479    # otherwise default to the standard path separator (i.e. ":") - it is
12480    # assumed that no part of a normal pathname contains ";" but that should
12481    # okay in the real world where ";" in dirpaths is itself problematic.
12482    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12483  else
12484    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12485  fi
12486else
12487  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12488fi
12489need_lib_prefix=unknown
12490hardcode_into_libs=no
12491
12492# when you set need_version to no, make sure it does not cause -set_version
12493# flags to be left without arguments
12494need_version=unknown
12495
12496case $host_os in
12497aix3*)
12498  version_type=linux
12499  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12500  shlibpath_var=LIBPATH
12501
12502  # AIX 3 has no versioning support, so we append a major version to the name.
12503  soname_spec='${libname}${release}${shared_ext}$major'
12504  ;;
12505
12506aix4* | aix5*)
12507  version_type=linux
12508  need_lib_prefix=no
12509  need_version=no
12510  hardcode_into_libs=yes
12511  if test "$host_cpu" = ia64; then
12512    # AIX 5 supports IA64
12513    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12514    shlibpath_var=LD_LIBRARY_PATH
12515  else
12516    # With GCC up to 2.95.x, collect2 would create an import file
12517    # for dependence libraries.  The import file would start with
12518    # the line `#! .'.  This would cause the generated library to
12519    # depend on `.', always an invalid library.  This was fixed in
12520    # development snapshots of GCC prior to 3.0.
12521    case $host_os in
12522      aix4 | aix4.[01] | aix4.[01].*)
12523      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12524	   echo ' yes '
12525	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12526	:
12527      else
12528	can_build_shared=no
12529      fi
12530      ;;
12531    esac
12532    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12533    # soname into executable. Probably we can add versioning support to
12534    # collect2, so additional links can be useful in future.
12535    if test "$aix_use_runtimelinking" = yes; then
12536      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12537      # instead of lib<name>.a to let people know that these are not
12538      # typical AIX shared libraries.
12539      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12540    else
12541      # We preserve .a as extension for shared libraries through AIX4.2
12542      # and later when we are not doing run time linking.
12543      library_names_spec='${libname}${release}.a $libname.a'
12544      soname_spec='${libname}${release}${shared_ext}$major'
12545    fi
12546    shlibpath_var=LIBPATH
12547  fi
12548  ;;
12549
12550amigaos*)
12551  library_names_spec='$libname.ixlibrary $libname.a'
12552  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12553  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'
12554  ;;
12555
12556beos*)
12557  library_names_spec='${libname}${shared_ext}'
12558  dynamic_linker="$host_os ld.so"
12559  shlibpath_var=LIBRARY_PATH
12560  ;;
12561
12562bsdi[45]*)
12563  version_type=linux
12564  need_version=no
12565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12566  soname_spec='${libname}${release}${shared_ext}$major'
12567  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12568  shlibpath_var=LD_LIBRARY_PATH
12569  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12570  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12571  # the default ld.so.conf also contains /usr/contrib/lib and
12572  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12573  # libtool to hard-code these into programs
12574  ;;
12575
12576cygwin* | mingw* | pw32*)
12577  version_type=windows
12578  shrext_cmds=".dll"
12579  need_version=no
12580  need_lib_prefix=no
12581
12582  case $GCC,$host_os in
12583  yes,cygwin* | yes,mingw* | yes,pw32*)
12584    library_names_spec='$libname.dll.a'
12585    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12586    postinstall_cmds='base_file=`basename \${file}`~
12587      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12588      dldir=$destdir/`dirname \$dlpath`~
12589      test -d \$dldir || mkdir -p \$dldir~
12590      $install_prog $dir/$dlname \$dldir/$dlname~
12591      chmod a+x \$dldir/$dlname'
12592    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12593      dlpath=$dir/\$dldll~
12594       $rm \$dlpath'
12595    shlibpath_overrides_runpath=yes
12596
12597    case $host_os in
12598    cygwin*)
12599      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12600      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12601      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12602      ;;
12603    mingw*)
12604      # MinGW DLLs use traditional 'lib' prefix
12605      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12606      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12607      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12608        # It is most probably a Windows format PATH printed by
12609        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12610        # path with ; separators, and with drive letters. We can handle the
12611        # drive letters (cygwin fileutils understands them), so leave them,
12612        # especially as we might pass files found there to a mingw objdump,
12613        # which wouldn't understand a cygwinified path. Ahh.
12614        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12615      else
12616        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12617      fi
12618      ;;
12619    pw32*)
12620      # pw32 DLLs use 'pw' prefix rather than 'lib'
12621      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12622      ;;
12623    esac
12624    ;;
12625
12626  *)
12627    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12628    ;;
12629  esac
12630  dynamic_linker='Win32 ld.exe'
12631  # FIXME: first we should search . and the directory the executable is in
12632  shlibpath_var=PATH
12633  ;;
12634
12635darwin* | rhapsody*)
12636  dynamic_linker="$host_os dyld"
12637  version_type=darwin
12638  need_lib_prefix=no
12639  need_version=no
12640  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12641  soname_spec='${libname}${release}${major}$shared_ext'
12642  shlibpath_overrides_runpath=yes
12643  shlibpath_var=DYLD_LIBRARY_PATH
12644  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12645  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12646  if test "$GCC" = yes; then
12647    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"`
12648  else
12649    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12650  fi
12651  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12652  ;;
12653
12654dgux*)
12655  version_type=linux
12656  need_lib_prefix=no
12657  need_version=no
12658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12659  soname_spec='${libname}${release}${shared_ext}$major'
12660  shlibpath_var=LD_LIBRARY_PATH
12661  ;;
12662
12663freebsd1*)
12664  dynamic_linker=no
12665  ;;
12666
12667kfreebsd*-gnu)
12668  version_type=linux
12669  need_lib_prefix=no
12670  need_version=no
12671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12672  soname_spec='${libname}${release}${shared_ext}$major'
12673  shlibpath_var=LD_LIBRARY_PATH
12674  shlibpath_overrides_runpath=no
12675  hardcode_into_libs=yes
12676  dynamic_linker='GNU ld.so'
12677  ;;
12678
12679freebsd* | dragonfly*)
12680  # DragonFly does not have aout.  When/if they implement a new
12681  # versioning mechanism, adjust this.
12682  if test -x /usr/bin/objformat; then
12683    objformat=`/usr/bin/objformat`
12684  else
12685    case $host_os in
12686    freebsd[123]*) objformat=aout ;;
12687    *) objformat=elf ;;
12688    esac
12689  fi
12690  version_type=freebsd-$objformat
12691  case $version_type in
12692    freebsd-elf*)
12693      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12694      need_version=no
12695      need_lib_prefix=no
12696      ;;
12697    freebsd-*)
12698      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12699      need_version=yes
12700      ;;
12701  esac
12702  shlibpath_var=LD_LIBRARY_PATH
12703  case $host_os in
12704  freebsd2*)
12705    shlibpath_overrides_runpath=yes
12706    ;;
12707  freebsd3.[01]* | freebsdelf3.[01]*)
12708    shlibpath_overrides_runpath=yes
12709    hardcode_into_libs=yes
12710    ;;
12711  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12712  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12713    shlibpath_overrides_runpath=no
12714    hardcode_into_libs=yes
12715    ;;
12716  freebsd*) # from 4.6 on
12717    shlibpath_overrides_runpath=yes
12718    hardcode_into_libs=yes
12719    ;;
12720  esac
12721  ;;
12722
12723gnu*)
12724  version_type=linux
12725  need_lib_prefix=no
12726  need_version=no
12727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12728  soname_spec='${libname}${release}${shared_ext}$major'
12729  shlibpath_var=LD_LIBRARY_PATH
12730  hardcode_into_libs=yes
12731  ;;
12732
12733hpux9* | hpux10* | hpux11*)
12734  # Give a soname corresponding to the major version so that dld.sl refuses to
12735  # link against other versions.
12736  version_type=sunos
12737  need_lib_prefix=no
12738  need_version=no
12739  case $host_cpu in
12740  ia64*)
12741    shrext_cmds='.so'
12742    hardcode_into_libs=yes
12743    dynamic_linker="$host_os dld.so"
12744    shlibpath_var=LD_LIBRARY_PATH
12745    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12746    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12747    soname_spec='${libname}${release}${shared_ext}$major'
12748    if test "X$HPUX_IA64_MODE" = X32; then
12749      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12750    else
12751      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12752    fi
12753    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12754    ;;
12755   hppa*64*)
12756     shrext_cmds='.sl'
12757     hardcode_into_libs=yes
12758     dynamic_linker="$host_os dld.sl"
12759     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12760     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12761     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12762     soname_spec='${libname}${release}${shared_ext}$major'
12763     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12764     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12765     ;;
12766   *)
12767    shrext_cmds='.sl'
12768    dynamic_linker="$host_os dld.sl"
12769    shlibpath_var=SHLIB_PATH
12770    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12771    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12772    soname_spec='${libname}${release}${shared_ext}$major'
12773    ;;
12774  esac
12775  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12776  postinstall_cmds='chmod 555 $lib'
12777  ;;
12778
12779interix3*)
12780  version_type=linux
12781  need_lib_prefix=no
12782  need_version=no
12783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12784  soname_spec='${libname}${release}${shared_ext}$major'
12785  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12786  shlibpath_var=LD_LIBRARY_PATH
12787  shlibpath_overrides_runpath=no
12788  hardcode_into_libs=yes
12789  ;;
12790
12791irix5* | irix6* | nonstopux*)
12792  case $host_os in
12793    nonstopux*) version_type=nonstopux ;;
12794    *)
12795	if test "$lt_cv_prog_gnu_ld" = yes; then
12796		version_type=linux
12797	else
12798		version_type=irix
12799	fi ;;
12800  esac
12801  need_lib_prefix=no
12802  need_version=no
12803  soname_spec='${libname}${release}${shared_ext}$major'
12804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12805  case $host_os in
12806  irix5* | nonstopux*)
12807    libsuff= shlibsuff=
12808    ;;
12809  *)
12810    case $LD in # libtool.m4 will add one of these switches to LD
12811    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12812      libsuff= shlibsuff= libmagic=32-bit;;
12813    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12814      libsuff=32 shlibsuff=N32 libmagic=N32;;
12815    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12816      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12817    *) libsuff= shlibsuff= libmagic=never-match;;
12818    esac
12819    ;;
12820  esac
12821  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12822  shlibpath_overrides_runpath=no
12823  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12824  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12825  hardcode_into_libs=yes
12826  ;;
12827
12828# No shared lib support for Linux oldld, aout, or coff.
12829linux*oldld* | linux*aout* | linux*coff*)
12830  dynamic_linker=no
12831  ;;
12832
12833# This must be Linux ELF.
12834linux*)
12835  version_type=linux
12836  need_lib_prefix=no
12837  need_version=no
12838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12839  soname_spec='${libname}${release}${shared_ext}$major'
12840  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12841  shlibpath_var=LD_LIBRARY_PATH
12842  shlibpath_overrides_runpath=no
12843  # This implies no fast_install, which is unacceptable.
12844  # Some rework will be needed to allow for fast_install
12845  # before this can be enabled.
12846  hardcode_into_libs=yes
12847
12848  # Append ld.so.conf contents to the search path
12849  if test -f /etc/ld.so.conf; then
12850    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' ' '`
12851    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12852  fi
12853
12854  # We used to test for /lib/ld.so.1 and disable shared libraries on
12855  # powerpc, because MkLinux only supported shared libraries with the
12856  # GNU dynamic linker.  Since this was broken with cross compilers,
12857  # most powerpc-linux boxes support dynamic linking these days and
12858  # people can always --disable-shared, the test was removed, and we
12859  # assume the GNU/Linux dynamic linker is in use.
12860  dynamic_linker='GNU/Linux ld.so'
12861  ;;
12862
12863knetbsd*-gnu)
12864  version_type=linux
12865  need_lib_prefix=no
12866  need_version=no
12867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12868  soname_spec='${libname}${release}${shared_ext}$major'
12869  shlibpath_var=LD_LIBRARY_PATH
12870  shlibpath_overrides_runpath=no
12871  hardcode_into_libs=yes
12872  dynamic_linker='GNU ld.so'
12873  ;;
12874
12875netbsd*)
12876  version_type=sunos
12877  need_lib_prefix=no
12878  need_version=no
12879  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12881    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12882    dynamic_linker='NetBSD (a.out) ld.so'
12883  else
12884    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12885    soname_spec='${libname}${release}${shared_ext}$major'
12886    dynamic_linker='NetBSD ld.elf_so'
12887  fi
12888  shlibpath_var=LD_LIBRARY_PATH
12889  shlibpath_overrides_runpath=yes
12890  hardcode_into_libs=yes
12891  ;;
12892
12893newsos6)
12894  version_type=linux
12895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896  shlibpath_var=LD_LIBRARY_PATH
12897  shlibpath_overrides_runpath=yes
12898  ;;
12899
12900nto-qnx*)
12901  version_type=linux
12902  need_lib_prefix=no
12903  need_version=no
12904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12905  soname_spec='${libname}${release}${shared_ext}$major'
12906  shlibpath_var=LD_LIBRARY_PATH
12907  shlibpath_overrides_runpath=yes
12908  ;;
12909
12910openbsd*)
12911  version_type=sunos
12912  sys_lib_dlsearch_path_spec="/usr/lib"
12913  need_lib_prefix=no
12914  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12915  case $host_os in
12916    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12917    *)                         need_version=no  ;;
12918  esac
12919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12920  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12921  shlibpath_var=LD_LIBRARY_PATH
12922  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12923    case $host_os in
12924      openbsd2.[89] | openbsd2.[89].*)
12925	shlibpath_overrides_runpath=no
12926	;;
12927      *)
12928	shlibpath_overrides_runpath=yes
12929	;;
12930      esac
12931  else
12932    shlibpath_overrides_runpath=yes
12933  fi
12934  ;;
12935
12936os2*)
12937  libname_spec='$name'
12938  shrext_cmds=".dll"
12939  need_lib_prefix=no
12940  library_names_spec='$libname${shared_ext} $libname.a'
12941  dynamic_linker='OS/2 ld.exe'
12942  shlibpath_var=LIBPATH
12943  ;;
12944
12945osf3* | osf4* | osf5*)
12946  version_type=osf
12947  need_lib_prefix=no
12948  need_version=no
12949  soname_spec='${libname}${release}${shared_ext}$major'
12950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12951  shlibpath_var=LD_LIBRARY_PATH
12952  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12953  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12954  ;;
12955
12956solaris*)
12957  version_type=linux
12958  need_lib_prefix=no
12959  need_version=no
12960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961  soname_spec='${libname}${release}${shared_ext}$major'
12962  shlibpath_var=LD_LIBRARY_PATH
12963  shlibpath_overrides_runpath=yes
12964  hardcode_into_libs=yes
12965  # ldd complains unless libraries are executable
12966  postinstall_cmds='chmod +x $lib'
12967  ;;
12968
12969sunos4*)
12970  version_type=sunos
12971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12972  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12973  shlibpath_var=LD_LIBRARY_PATH
12974  shlibpath_overrides_runpath=yes
12975  if test "$with_gnu_ld" = yes; then
12976    need_lib_prefix=no
12977  fi
12978  need_version=yes
12979  ;;
12980
12981sysv4 | sysv4.3*)
12982  version_type=linux
12983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12984  soname_spec='${libname}${release}${shared_ext}$major'
12985  shlibpath_var=LD_LIBRARY_PATH
12986  case $host_vendor in
12987    sni)
12988      shlibpath_overrides_runpath=no
12989      need_lib_prefix=no
12990      export_dynamic_flag_spec='${wl}-Blargedynsym'
12991      runpath_var=LD_RUN_PATH
12992      ;;
12993    siemens)
12994      need_lib_prefix=no
12995      ;;
12996    motorola)
12997      need_lib_prefix=no
12998      need_version=no
12999      shlibpath_overrides_runpath=no
13000      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13001      ;;
13002  esac
13003  ;;
13004
13005sysv4*MP*)
13006  if test -d /usr/nec ;then
13007    version_type=linux
13008    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13009    soname_spec='$libname${shared_ext}.$major'
13010    shlibpath_var=LD_LIBRARY_PATH
13011  fi
13012  ;;
13013
13014sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13015  version_type=freebsd-elf
13016  need_lib_prefix=no
13017  need_version=no
13018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13019  soname_spec='${libname}${release}${shared_ext}$major'
13020  shlibpath_var=LD_LIBRARY_PATH
13021  hardcode_into_libs=yes
13022  if test "$with_gnu_ld" = yes; then
13023    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13024    shlibpath_overrides_runpath=no
13025  else
13026    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13027    shlibpath_overrides_runpath=yes
13028    case $host_os in
13029      sco3.2v5*)
13030        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13031	;;
13032    esac
13033  fi
13034  sys_lib_dlsearch_path_spec='/usr/lib'
13035  ;;
13036
13037uts4*)
13038  version_type=linux
13039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040  soname_spec='${libname}${release}${shared_ext}$major'
13041  shlibpath_var=LD_LIBRARY_PATH
13042  ;;
13043
13044*)
13045  dynamic_linker=no
13046  ;;
13047esac
13048{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13049echo "${ECHO_T}$dynamic_linker" >&6; }
13050test "$dynamic_linker" = no && can_build_shared=no
13051
13052variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13053if test "$GCC" = yes; then
13054  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13055fi
13056
13057{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13058echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13059hardcode_action_CXX=
13060if test -n "$hardcode_libdir_flag_spec_CXX" || \
13061   test -n "$runpath_var_CXX" || \
13062   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13063
13064  # We can hardcode non-existant directories.
13065  if test "$hardcode_direct_CXX" != no &&
13066     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13067     # have to relink, otherwise we might link with an installed library
13068     # when we should be linking with a yet-to-be-installed one
13069     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13070     test "$hardcode_minus_L_CXX" != no; then
13071    # Linking always hardcodes the temporary library directory.
13072    hardcode_action_CXX=relink
13073  else
13074    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13075    hardcode_action_CXX=immediate
13076  fi
13077else
13078  # We cannot hardcode anything, or else we can only hardcode existing
13079  # directories.
13080  hardcode_action_CXX=unsupported
13081fi
13082{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13083echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13084
13085if test "$hardcode_action_CXX" = relink; then
13086  # Fast installation is not supported
13087  enable_fast_install=no
13088elif test "$shlibpath_overrides_runpath" = yes ||
13089     test "$enable_shared" = no; then
13090  # Fast installation is not necessary
13091  enable_fast_install=needless
13092fi
13093
13094
13095# The else clause should only fire when bootstrapping the
13096# libtool distribution, otherwise you forgot to ship ltmain.sh
13097# with your package, and you will get complaints that there are
13098# no rules to generate ltmain.sh.
13099if test -f "$ltmain"; then
13100  # See if we are running on zsh, and set the options which allow our commands through
13101  # without removal of \ escapes.
13102  if test -n "${ZSH_VERSION+set}" ; then
13103    setopt NO_GLOB_SUBST
13104  fi
13105  # Now quote all the things that may contain metacharacters while being
13106  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13107  # variables and quote the copies for generation of the libtool script.
13108  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13109    SED SHELL STRIP \
13110    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13111    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13112    deplibs_check_method reload_flag reload_cmds need_locks \
13113    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13114    lt_cv_sys_global_symbol_to_c_name_address \
13115    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13116    old_postinstall_cmds old_postuninstall_cmds \
13117    compiler_CXX \
13118    CC_CXX \
13119    LD_CXX \
13120    lt_prog_compiler_wl_CXX \
13121    lt_prog_compiler_pic_CXX \
13122    lt_prog_compiler_static_CXX \
13123    lt_prog_compiler_no_builtin_flag_CXX \
13124    export_dynamic_flag_spec_CXX \
13125    thread_safe_flag_spec_CXX \
13126    whole_archive_flag_spec_CXX \
13127    enable_shared_with_static_runtimes_CXX \
13128    old_archive_cmds_CXX \
13129    old_archive_from_new_cmds_CXX \
13130    predep_objects_CXX \
13131    postdep_objects_CXX \
13132    predeps_CXX \
13133    postdeps_CXX \
13134    compiler_lib_search_path_CXX \
13135    archive_cmds_CXX \
13136    archive_expsym_cmds_CXX \
13137    postinstall_cmds_CXX \
13138    postuninstall_cmds_CXX \
13139    old_archive_from_expsyms_cmds_CXX \
13140    allow_undefined_flag_CXX \
13141    no_undefined_flag_CXX \
13142    export_symbols_cmds_CXX \
13143    hardcode_libdir_flag_spec_CXX \
13144    hardcode_libdir_flag_spec_ld_CXX \
13145    hardcode_libdir_separator_CXX \
13146    hardcode_automatic_CXX \
13147    module_cmds_CXX \
13148    module_expsym_cmds_CXX \
13149    lt_cv_prog_compiler_c_o_CXX \
13150    exclude_expsyms_CXX \
13151    include_expsyms_CXX; do
13152
13153    case $var in
13154    old_archive_cmds_CXX | \
13155    old_archive_from_new_cmds_CXX | \
13156    archive_cmds_CXX | \
13157    archive_expsym_cmds_CXX | \
13158    module_cmds_CXX | \
13159    module_expsym_cmds_CXX | \
13160    old_archive_from_expsyms_cmds_CXX | \
13161    export_symbols_cmds_CXX | \
13162    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13163    postinstall_cmds | postuninstall_cmds | \
13164    old_postinstall_cmds | old_postuninstall_cmds | \
13165    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13166      # Double-quote double-evaled strings.
13167      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13168      ;;
13169    *)
13170      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13171      ;;
13172    esac
13173  done
13174
13175  case $lt_echo in
13176  *'\$0 --fallback-echo"')
13177    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13178    ;;
13179  esac
13180
13181cfgfile="$ofile"
13182
13183  cat <<__EOF__ >> "$cfgfile"
13184# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13185
13186# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13187
13188# Shell to use when invoking shell scripts.
13189SHELL=$lt_SHELL
13190
13191# Whether or not to build shared libraries.
13192build_libtool_libs=$enable_shared
13193
13194# Whether or not to build static libraries.
13195build_old_libs=$enable_static
13196
13197# Whether or not to add -lc for building shared libraries.
13198build_libtool_need_lc=$archive_cmds_need_lc_CXX
13199
13200# Whether or not to disallow shared libs when runtime libs are static
13201allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13202
13203# Whether or not to optimize for fast installation.
13204fast_install=$enable_fast_install
13205
13206# The host system.
13207host_alias=$host_alias
13208host=$host
13209host_os=$host_os
13210
13211# The build system.
13212build_alias=$build_alias
13213build=$build
13214build_os=$build_os
13215
13216# An echo program that does not interpret backslashes.
13217echo=$lt_echo
13218
13219# The archiver.
13220AR=$lt_AR
13221AR_FLAGS=$lt_AR_FLAGS
13222
13223# A C compiler.
13224LTCC=$lt_LTCC
13225
13226# LTCC compiler flags.
13227LTCFLAGS=$lt_LTCFLAGS
13228
13229# A language-specific compiler.
13230CC=$lt_compiler_CXX
13231
13232# Is the compiler the GNU C compiler?
13233with_gcc=$GCC_CXX
13234
13235# An ERE matcher.
13236EGREP=$lt_EGREP
13237
13238# The linker used to build libraries.
13239LD=$lt_LD_CXX
13240
13241# Whether we need hard or soft links.
13242LN_S=$lt_LN_S
13243
13244# A BSD-compatible nm program.
13245NM=$lt_NM
13246
13247# A symbol stripping program
13248STRIP=$lt_STRIP
13249
13250# Used to examine libraries when file_magic_cmd begins "file"
13251MAGIC_CMD=$MAGIC_CMD
13252
13253# Used on cygwin: DLL creation program.
13254DLLTOOL="$DLLTOOL"
13255
13256# Used on cygwin: object dumper.
13257OBJDUMP="$OBJDUMP"
13258
13259# Used on cygwin: assembler.
13260AS="$AS"
13261
13262# The name of the directory that contains temporary libtool files.
13263objdir=$objdir
13264
13265# How to create reloadable object files.
13266reload_flag=$lt_reload_flag
13267reload_cmds=$lt_reload_cmds
13268
13269# How to pass a linker flag through the compiler.
13270wl=$lt_lt_prog_compiler_wl_CXX
13271
13272# Object file suffix (normally "o").
13273objext="$ac_objext"
13274
13275# Old archive suffix (normally "a").
13276libext="$libext"
13277
13278# Shared library suffix (normally ".so").
13279shrext_cmds='$shrext_cmds'
13280
13281# Executable file suffix (normally "").
13282exeext="$exeext"
13283
13284# Additional compiler flags for building library objects.
13285pic_flag=$lt_lt_prog_compiler_pic_CXX
13286pic_mode=$pic_mode
13287
13288# What is the maximum length of a command?
13289max_cmd_len=$lt_cv_sys_max_cmd_len
13290
13291# Does compiler simultaneously support -c and -o options?
13292compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13293
13294# Must we lock files when doing compilation?
13295need_locks=$lt_need_locks
13296
13297# Do we need the lib prefix for modules?
13298need_lib_prefix=$need_lib_prefix
13299
13300# Do we need a version for libraries?
13301need_version=$need_version
13302
13303# Whether dlopen is supported.
13304dlopen_support=$enable_dlopen
13305
13306# Whether dlopen of programs is supported.
13307dlopen_self=$enable_dlopen_self
13308
13309# Whether dlopen of statically linked programs is supported.
13310dlopen_self_static=$enable_dlopen_self_static
13311
13312# Compiler flag to prevent dynamic linking.
13313link_static_flag=$lt_lt_prog_compiler_static_CXX
13314
13315# Compiler flag to turn off builtin functions.
13316no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13317
13318# Compiler flag to allow reflexive dlopens.
13319export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13320
13321# Compiler flag to generate shared objects directly from archives.
13322whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13323
13324# Compiler flag to generate thread-safe objects.
13325thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13326
13327# Library versioning type.
13328version_type=$version_type
13329
13330# Format of library name prefix.
13331libname_spec=$lt_libname_spec
13332
13333# List of archive names.  First name is the real one, the rest are links.
13334# The last name is the one that the linker finds with -lNAME.
13335library_names_spec=$lt_library_names_spec
13336
13337# The coded name of the library, if different from the real name.
13338soname_spec=$lt_soname_spec
13339
13340# Commands used to build and install an old-style archive.
13341RANLIB=$lt_RANLIB
13342old_archive_cmds=$lt_old_archive_cmds_CXX
13343old_postinstall_cmds=$lt_old_postinstall_cmds
13344old_postuninstall_cmds=$lt_old_postuninstall_cmds
13345
13346# Create an old-style archive from a shared archive.
13347old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13348
13349# Create a temporary old-style archive to link instead of a shared archive.
13350old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13351
13352# Commands used to build and install a shared archive.
13353archive_cmds=$lt_archive_cmds_CXX
13354archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13355postinstall_cmds=$lt_postinstall_cmds
13356postuninstall_cmds=$lt_postuninstall_cmds
13357
13358# Commands used to build a loadable module (assumed same as above if empty)
13359module_cmds=$lt_module_cmds_CXX
13360module_expsym_cmds=$lt_module_expsym_cmds_CXX
13361
13362# Commands to strip libraries.
13363old_striplib=$lt_old_striplib
13364striplib=$lt_striplib
13365
13366# Dependencies to place before the objects being linked to create a
13367# shared library.
13368predep_objects=$lt_predep_objects_CXX
13369
13370# Dependencies to place after the objects being linked to create a
13371# shared library.
13372postdep_objects=$lt_postdep_objects_CXX
13373
13374# Dependencies to place before the objects being linked to create a
13375# shared library.
13376predeps=$lt_predeps_CXX
13377
13378# Dependencies to place after the objects being linked to create a
13379# shared library.
13380postdeps=$lt_postdeps_CXX
13381
13382# The library search path used internally by the compiler when linking
13383# a shared library.
13384compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13385
13386# Method to check whether dependent libraries are shared objects.
13387deplibs_check_method=$lt_deplibs_check_method
13388
13389# Command to use when deplibs_check_method == file_magic.
13390file_magic_cmd=$lt_file_magic_cmd
13391
13392# Flag that allows shared libraries with undefined symbols to be built.
13393allow_undefined_flag=$lt_allow_undefined_flag_CXX
13394
13395# Flag that forces no undefined symbols.
13396no_undefined_flag=$lt_no_undefined_flag_CXX
13397
13398# Commands used to finish a libtool library installation in a directory.
13399finish_cmds=$lt_finish_cmds
13400
13401# Same as above, but a single script fragment to be evaled but not shown.
13402finish_eval=$lt_finish_eval
13403
13404# Take the output of nm and produce a listing of raw symbols and C names.
13405global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13406
13407# Transform the output of nm in a proper C declaration
13408global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13409
13410# Transform the output of nm in a C name address pair
13411global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13412
13413# This is the shared library runtime path variable.
13414runpath_var=$runpath_var
13415
13416# This is the shared library path variable.
13417shlibpath_var=$shlibpath_var
13418
13419# Is shlibpath searched before the hard-coded library search path?
13420shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13421
13422# How to hardcode a shared library path into an executable.
13423hardcode_action=$hardcode_action_CXX
13424
13425# Whether we should hardcode library paths into libraries.
13426hardcode_into_libs=$hardcode_into_libs
13427
13428# Flag to hardcode \$libdir into a binary during linking.
13429# This must work even if \$libdir does not exist.
13430hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13431
13432# If ld is used when linking, flag to hardcode \$libdir into
13433# a binary during linking. This must work even if \$libdir does
13434# not exist.
13435hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13436
13437# Whether we need a single -rpath flag with a separated argument.
13438hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13439
13440# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13441# resulting binary.
13442hardcode_direct=$hardcode_direct_CXX
13443
13444# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13445# resulting binary.
13446hardcode_minus_L=$hardcode_minus_L_CXX
13447
13448# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13449# the resulting binary.
13450hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13451
13452# Set to yes if building a shared library automatically hardcodes DIR into the library
13453# and all subsequent libraries and executables linked against it.
13454hardcode_automatic=$hardcode_automatic_CXX
13455
13456# Variables whose values should be saved in libtool wrapper scripts and
13457# restored at relink time.
13458variables_saved_for_relink="$variables_saved_for_relink"
13459
13460# Whether libtool must link a program against all its dependency libraries.
13461link_all_deplibs=$link_all_deplibs_CXX
13462
13463# Compile-time system search path for libraries
13464sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13465
13466# Run-time system search path for libraries
13467sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13468
13469# Fix the shell variable \$srcfile for the compiler.
13470fix_srcfile_path="$fix_srcfile_path_CXX"
13471
13472# Set to yes if exported symbols are required.
13473always_export_symbols=$always_export_symbols_CXX
13474
13475# The commands to list exported symbols.
13476export_symbols_cmds=$lt_export_symbols_cmds_CXX
13477
13478# The commands to extract the exported symbol list from a shared archive.
13479extract_expsyms_cmds=$lt_extract_expsyms_cmds
13480
13481# Symbols that should not be listed in the preloaded symbols.
13482exclude_expsyms=$lt_exclude_expsyms_CXX
13483
13484# Symbols that must always be exported.
13485include_expsyms=$lt_include_expsyms_CXX
13486
13487# ### END LIBTOOL TAG CONFIG: $tagname
13488
13489__EOF__
13490
13491
13492else
13493  # If there is no Makefile yet, we rely on a make rule to execute
13494  # `config.status --recheck' to rerun these tests and create the
13495  # libtool script then.
13496  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13497  if test -f "$ltmain_in"; then
13498    test -f Makefile && make "$ltmain"
13499  fi
13500fi
13501
13502
13503ac_ext=c
13504ac_cpp='$CPP $CPPFLAGS'
13505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13507ac_compiler_gnu=$ac_cv_c_compiler_gnu
13508
13509CC=$lt_save_CC
13510LDCXX=$LD
13511LD=$lt_save_LD
13512GCC=$lt_save_GCC
13513with_gnu_ldcxx=$with_gnu_ld
13514with_gnu_ld=$lt_save_with_gnu_ld
13515lt_cv_path_LDCXX=$lt_cv_path_LD
13516lt_cv_path_LD=$lt_save_path_LD
13517lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13518lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13519
13520	else
13521	  tagname=""
13522	fi
13523	;;
13524
13525      F77)
13526	if test -n "$F77" && test "X$F77" != "Xno"; then
13527
13528ac_ext=f
13529ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13530ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13531ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13532
13533
13534archive_cmds_need_lc_F77=no
13535allow_undefined_flag_F77=
13536always_export_symbols_F77=no
13537archive_expsym_cmds_F77=
13538export_dynamic_flag_spec_F77=
13539hardcode_direct_F77=no
13540hardcode_libdir_flag_spec_F77=
13541hardcode_libdir_flag_spec_ld_F77=
13542hardcode_libdir_separator_F77=
13543hardcode_minus_L_F77=no
13544hardcode_automatic_F77=no
13545module_cmds_F77=
13546module_expsym_cmds_F77=
13547link_all_deplibs_F77=unknown
13548old_archive_cmds_F77=$old_archive_cmds
13549no_undefined_flag_F77=
13550whole_archive_flag_spec_F77=
13551enable_shared_with_static_runtimes_F77=no
13552
13553# Source file extension for f77 test sources.
13554ac_ext=f
13555
13556# Object file extension for compiled f77 test sources.
13557objext=o
13558objext_F77=$objext
13559
13560# Code to be used in simple compile tests
13561lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13562
13563# Code to be used in simple link tests
13564lt_simple_link_test_code="      program t\n      end\n"
13565
13566# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13567
13568# If no C compiler was specified, use CC.
13569LTCC=${LTCC-"$CC"}
13570
13571# If no C compiler flags were specified, use CFLAGS.
13572LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13573
13574# Allow CC to be a program name with arguments.
13575compiler=$CC
13576
13577
13578# save warnings/boilerplate of simple test code
13579ac_outfile=conftest.$ac_objext
13580printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13581eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13582_lt_compiler_boilerplate=`cat conftest.err`
13583$rm conftest*
13584
13585ac_outfile=conftest.$ac_objext
13586printf "$lt_simple_link_test_code" >conftest.$ac_ext
13587eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13588_lt_linker_boilerplate=`cat conftest.err`
13589$rm conftest*
13590
13591
13592# Allow CC to be a program name with arguments.
13593lt_save_CC="$CC"
13594CC=${F77-"f77"}
13595compiler=$CC
13596compiler_F77=$CC
13597for cc_temp in $compiler""; do
13598  case $cc_temp in
13599    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13600    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13601    \-*) ;;
13602    *) break;;
13603  esac
13604done
13605cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13606
13607
13608{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13609echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13610{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13611echo "${ECHO_T}$can_build_shared" >&6; }
13612
13613{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13614echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13615test "$can_build_shared" = "no" && enable_shared=no
13616
13617# On AIX, shared libraries and static libraries use the same namespace, and
13618# are all built from PIC.
13619case $host_os in
13620aix3*)
13621  test "$enable_shared" = yes && enable_static=no
13622  if test -n "$RANLIB"; then
13623    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13624    postinstall_cmds='$RANLIB $lib'
13625  fi
13626  ;;
13627aix4* | aix5*)
13628  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13629    test "$enable_shared" = yes && enable_static=no
13630  fi
13631  ;;
13632esac
13633{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13634echo "${ECHO_T}$enable_shared" >&6; }
13635
13636{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13637echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13638# Make sure either enable_shared or enable_static is yes.
13639test "$enable_shared" = yes || enable_static=yes
13640{ echo "$as_me:$LINENO: result: $enable_static" >&5
13641echo "${ECHO_T}$enable_static" >&6; }
13642
13643GCC_F77="$G77"
13644LD_F77="$LD"
13645
13646lt_prog_compiler_wl_F77=
13647lt_prog_compiler_pic_F77=
13648lt_prog_compiler_static_F77=
13649
13650{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13651echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13652
13653  if test "$GCC" = yes; then
13654    lt_prog_compiler_wl_F77='-Wl,'
13655    lt_prog_compiler_static_F77='-static'
13656
13657    case $host_os in
13658      aix*)
13659      # All AIX code is PIC.
13660      if test "$host_cpu" = ia64; then
13661	# AIX 5 now supports IA64 processor
13662	lt_prog_compiler_static_F77='-Bstatic'
13663      fi
13664      ;;
13665
13666    amigaos*)
13667      # FIXME: we need at least 68020 code to build shared libraries, but
13668      # adding the `-m68020' flag to GCC prevents building anything better,
13669      # like `-m68040'.
13670      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13671      ;;
13672
13673    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13674      # PIC is the default for these OSes.
13675      ;;
13676
13677    mingw* | pw32* | os2*)
13678      # This hack is so that the source file can tell whether it is being
13679      # built for inclusion in a dll (and should export symbols for example).
13680      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13681      ;;
13682
13683    darwin* | rhapsody*)
13684      # PIC is the default on this platform
13685      # Common symbols not allowed in MH_DYLIB files
13686      lt_prog_compiler_pic_F77='-fno-common'
13687      ;;
13688
13689    interix3*)
13690      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13691      # Instead, we relocate shared libraries at runtime.
13692      ;;
13693
13694    msdosdjgpp*)
13695      # Just because we use GCC doesn't mean we suddenly get shared libraries
13696      # on systems that don't support them.
13697      lt_prog_compiler_can_build_shared_F77=no
13698      enable_shared=no
13699      ;;
13700
13701    sysv4*MP*)
13702      if test -d /usr/nec; then
13703	lt_prog_compiler_pic_F77=-Kconform_pic
13704      fi
13705      ;;
13706
13707    hpux*)
13708      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13709      # not for PA HP-UX.
13710      case $host_cpu in
13711      hppa*64*|ia64*)
13712	# +Z the default
13713	;;
13714      *)
13715	lt_prog_compiler_pic_F77='-fPIC'
13716	;;
13717      esac
13718      ;;
13719
13720    *)
13721      lt_prog_compiler_pic_F77='-fPIC'
13722      ;;
13723    esac
13724  else
13725    # PORTME Check for flag to pass linker flags through the system compiler.
13726    case $host_os in
13727    aix*)
13728      lt_prog_compiler_wl_F77='-Wl,'
13729      if test "$host_cpu" = ia64; then
13730	# AIX 5 now supports IA64 processor
13731	lt_prog_compiler_static_F77='-Bstatic'
13732      else
13733	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13734      fi
13735      ;;
13736      darwin*)
13737        # PIC is the default on this platform
13738        # Common symbols not allowed in MH_DYLIB files
13739       case $cc_basename in
13740         xlc*)
13741         lt_prog_compiler_pic_F77='-qnocommon'
13742         lt_prog_compiler_wl_F77='-Wl,'
13743         ;;
13744       esac
13745       ;;
13746
13747    mingw* | pw32* | os2*)
13748      # This hack is so that the source file can tell whether it is being
13749      # built for inclusion in a dll (and should export symbols for example).
13750      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13751      ;;
13752
13753    hpux9* | hpux10* | hpux11*)
13754      lt_prog_compiler_wl_F77='-Wl,'
13755      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13756      # not for PA HP-UX.
13757      case $host_cpu in
13758      hppa*64*|ia64*)
13759	# +Z the default
13760	;;
13761      *)
13762	lt_prog_compiler_pic_F77='+Z'
13763	;;
13764      esac
13765      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13766      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13767      ;;
13768
13769    irix5* | irix6* | nonstopux*)
13770      lt_prog_compiler_wl_F77='-Wl,'
13771      # PIC (with -KPIC) is the default.
13772      lt_prog_compiler_static_F77='-non_shared'
13773      ;;
13774
13775    newsos6)
13776      lt_prog_compiler_pic_F77='-KPIC'
13777      lt_prog_compiler_static_F77='-Bstatic'
13778      ;;
13779
13780    linux*)
13781      case $cc_basename in
13782      icc* | ecc*)
13783	lt_prog_compiler_wl_F77='-Wl,'
13784	lt_prog_compiler_pic_F77='-KPIC'
13785	lt_prog_compiler_static_F77='-static'
13786        ;;
13787      pgcc* | pgf77* | pgf90* | pgf95*)
13788        # Portland Group compilers (*not* the Pentium gcc compiler,
13789	# which looks to be a dead project)
13790	lt_prog_compiler_wl_F77='-Wl,'
13791	lt_prog_compiler_pic_F77='-fpic'
13792	lt_prog_compiler_static_F77='-Bstatic'
13793        ;;
13794      ccc*)
13795        lt_prog_compiler_wl_F77='-Wl,'
13796        # All Alpha code is PIC.
13797        lt_prog_compiler_static_F77='-non_shared'
13798        ;;
13799      esac
13800      ;;
13801
13802    osf3* | osf4* | osf5*)
13803      lt_prog_compiler_wl_F77='-Wl,'
13804      # All OSF/1 code is PIC.
13805      lt_prog_compiler_static_F77='-non_shared'
13806      ;;
13807
13808    solaris*)
13809      lt_prog_compiler_pic_F77='-KPIC'
13810      lt_prog_compiler_static_F77='-Bstatic'
13811      case $cc_basename in
13812      f77* | f90* | f95*)
13813	lt_prog_compiler_wl_F77='-Qoption ld ';;
13814      *)
13815	lt_prog_compiler_wl_F77='-Wl,';;
13816      esac
13817      ;;
13818
13819    sunos4*)
13820      lt_prog_compiler_wl_F77='-Qoption ld '
13821      lt_prog_compiler_pic_F77='-PIC'
13822      lt_prog_compiler_static_F77='-Bstatic'
13823      ;;
13824
13825    sysv4 | sysv4.2uw2* | sysv4.3*)
13826      lt_prog_compiler_wl_F77='-Wl,'
13827      lt_prog_compiler_pic_F77='-KPIC'
13828      lt_prog_compiler_static_F77='-Bstatic'
13829      ;;
13830
13831    sysv4*MP*)
13832      if test -d /usr/nec ;then
13833	lt_prog_compiler_pic_F77='-Kconform_pic'
13834	lt_prog_compiler_static_F77='-Bstatic'
13835      fi
13836      ;;
13837
13838    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13839      lt_prog_compiler_wl_F77='-Wl,'
13840      lt_prog_compiler_pic_F77='-KPIC'
13841      lt_prog_compiler_static_F77='-Bstatic'
13842      ;;
13843
13844    unicos*)
13845      lt_prog_compiler_wl_F77='-Wl,'
13846      lt_prog_compiler_can_build_shared_F77=no
13847      ;;
13848
13849    uts4*)
13850      lt_prog_compiler_pic_F77='-pic'
13851      lt_prog_compiler_static_F77='-Bstatic'
13852      ;;
13853
13854    *)
13855      lt_prog_compiler_can_build_shared_F77=no
13856      ;;
13857    esac
13858  fi
13859
13860{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13861echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13862
13863#
13864# Check to make sure the PIC flag actually works.
13865#
13866if test -n "$lt_prog_compiler_pic_F77"; then
13867
13868{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13869echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13870if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13871  echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873  lt_prog_compiler_pic_works_F77=no
13874  ac_outfile=conftest.$ac_objext
13875   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13876   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13877   # Insert the option either (1) after the last *FLAGS variable, or
13878   # (2) before a word containing "conftest.", or (3) at the end.
13879   # Note that $ac_compile itself does not contain backslashes and begins
13880   # with a dollar sign (not a hyphen), so the echo should work correctly.
13881   # The option is referenced via a variable to avoid confusing sed.
13882   lt_compile=`echo "$ac_compile" | $SED \
13883   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13884   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13885   -e 's:$: $lt_compiler_flag:'`
13886   (eval echo "\"\$as_me:13886: $lt_compile\"" >&5)
13887   (eval "$lt_compile" 2>conftest.err)
13888   ac_status=$?
13889   cat conftest.err >&5
13890   echo "$as_me:13890: \$? = $ac_status" >&5
13891   if (exit $ac_status) && test -s "$ac_outfile"; then
13892     # The compiler can only warn and ignore the option if not recognized
13893     # So say no if there are warnings other than the usual output.
13894     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13895     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13896     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13897       lt_prog_compiler_pic_works_F77=yes
13898     fi
13899   fi
13900   $rm conftest*
13901
13902fi
13903{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13904echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13905
13906if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13907    case $lt_prog_compiler_pic_F77 in
13908     "" | " "*) ;;
13909     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13910     esac
13911else
13912    lt_prog_compiler_pic_F77=
13913     lt_prog_compiler_can_build_shared_F77=no
13914fi
13915
13916fi
13917case $host_os in
13918  # For platforms which do not support PIC, -DPIC is meaningless:
13919  *djgpp*)
13920    lt_prog_compiler_pic_F77=
13921    ;;
13922  *)
13923    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13924    ;;
13925esac
13926
13927#
13928# Check to make sure the static flag actually works.
13929#
13930wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13931{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13932echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13933if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13934  echo $ECHO_N "(cached) $ECHO_C" >&6
13935else
13936  lt_prog_compiler_static_works_F77=no
13937   save_LDFLAGS="$LDFLAGS"
13938   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13939   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13940   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13941     # The linker can only warn and ignore the option if not recognized
13942     # So say no if there are warnings
13943     if test -s conftest.err; then
13944       # Append any errors to the config.log.
13945       cat conftest.err 1>&5
13946       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13947       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13948       if diff conftest.exp conftest.er2 >/dev/null; then
13949         lt_prog_compiler_static_works_F77=yes
13950       fi
13951     else
13952       lt_prog_compiler_static_works_F77=yes
13953     fi
13954   fi
13955   $rm conftest*
13956   LDFLAGS="$save_LDFLAGS"
13957
13958fi
13959{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13960echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13961
13962if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13963    :
13964else
13965    lt_prog_compiler_static_F77=
13966fi
13967
13968
13969{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13970echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13971if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13972  echo $ECHO_N "(cached) $ECHO_C" >&6
13973else
13974  lt_cv_prog_compiler_c_o_F77=no
13975   $rm -r conftest 2>/dev/null
13976   mkdir conftest
13977   cd conftest
13978   mkdir out
13979   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13980
13981   lt_compiler_flag="-o out/conftest2.$ac_objext"
13982   # Insert the option either (1) after the last *FLAGS variable, or
13983   # (2) before a word containing "conftest.", or (3) at the end.
13984   # Note that $ac_compile itself does not contain backslashes and begins
13985   # with a dollar sign (not a hyphen), so the echo should work correctly.
13986   lt_compile=`echo "$ac_compile" | $SED \
13987   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13988   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13989   -e 's:$: $lt_compiler_flag:'`
13990   (eval echo "\"\$as_me:13990: $lt_compile\"" >&5)
13991   (eval "$lt_compile" 2>out/conftest.err)
13992   ac_status=$?
13993   cat out/conftest.err >&5
13994   echo "$as_me:13994: \$? = $ac_status" >&5
13995   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13996   then
13997     # The compiler can only warn and ignore the option if not recognized
13998     # So say no if there are warnings
13999     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14000     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14001     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14002       lt_cv_prog_compiler_c_o_F77=yes
14003     fi
14004   fi
14005   chmod u+w . 2>&5
14006   $rm conftest*
14007   # SGI C++ compiler will create directory out/ii_files/ for
14008   # template instantiation
14009   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14010   $rm out/* && rmdir out
14011   cd ..
14012   rmdir conftest
14013   $rm conftest*
14014
14015fi
14016{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14017echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14018
14019
14020hard_links="nottested"
14021if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14022  # do not overwrite the value of need_locks provided by the user
14023  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14024echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14025  hard_links=yes
14026  $rm conftest*
14027  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14028  touch conftest.a
14029  ln conftest.a conftest.b 2>&5 || hard_links=no
14030  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14031  { echo "$as_me:$LINENO: result: $hard_links" >&5
14032echo "${ECHO_T}$hard_links" >&6; }
14033  if test "$hard_links" = no; then
14034    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14035echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14036    need_locks=warn
14037  fi
14038else
14039  need_locks=no
14040fi
14041
14042{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14043echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14044
14045  runpath_var=
14046  allow_undefined_flag_F77=
14047  enable_shared_with_static_runtimes_F77=no
14048  archive_cmds_F77=
14049  archive_expsym_cmds_F77=
14050  old_archive_From_new_cmds_F77=
14051  old_archive_from_expsyms_cmds_F77=
14052  export_dynamic_flag_spec_F77=
14053  whole_archive_flag_spec_F77=
14054  thread_safe_flag_spec_F77=
14055  hardcode_libdir_flag_spec_F77=
14056  hardcode_libdir_flag_spec_ld_F77=
14057  hardcode_libdir_separator_F77=
14058  hardcode_direct_F77=no
14059  hardcode_minus_L_F77=no
14060  hardcode_shlibpath_var_F77=unsupported
14061  link_all_deplibs_F77=unknown
14062  hardcode_automatic_F77=no
14063  module_cmds_F77=
14064  module_expsym_cmds_F77=
14065  always_export_symbols_F77=no
14066  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14067  # include_expsyms should be a list of space-separated symbols to be *always*
14068  # included in the symbol list
14069  include_expsyms_F77=
14070  # exclude_expsyms can be an extended regexp of symbols to exclude
14071  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14072  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14073  # as well as any symbol that contains `d'.
14074  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14075  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14076  # platforms (ab)use it in PIC code, but their linkers get confused if
14077  # the symbol is explicitly referenced.  Since portable code cannot
14078  # rely on this symbol name, it's probably fine to never include it in
14079  # preloaded symbol tables.
14080  extract_expsyms_cmds=
14081  # Just being paranoid about ensuring that cc_basename is set.
14082  for cc_temp in $compiler""; do
14083  case $cc_temp in
14084    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14085    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14086    \-*) ;;
14087    *) break;;
14088  esac
14089done
14090cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14091
14092  case $host_os in
14093  cygwin* | mingw* | pw32*)
14094    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14095    # When not using gcc, we currently assume that we are using
14096    # Microsoft Visual C++.
14097    if test "$GCC" != yes; then
14098      with_gnu_ld=no
14099    fi
14100    ;;
14101  interix*)
14102    # we just hope/assume this is gcc and not c89 (= MSVC++)
14103    with_gnu_ld=yes
14104    ;;
14105  openbsd*)
14106    with_gnu_ld=no
14107    ;;
14108  esac
14109
14110  ld_shlibs_F77=yes
14111  if test "$with_gnu_ld" = yes; then
14112    # If archive_cmds runs LD, not CC, wlarc should be empty
14113    wlarc='${wl}'
14114
14115    # Set some defaults for GNU ld with shared library support. These
14116    # are reset later if shared libraries are not supported. Putting them
14117    # here allows them to be overridden if necessary.
14118    runpath_var=LD_RUN_PATH
14119    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14120    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14121    # ancient GNU ld didn't support --whole-archive et. al.
14122    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14123	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14124      else
14125  	whole_archive_flag_spec_F77=
14126    fi
14127    supports_anon_versioning=no
14128    case `$LD -v 2>/dev/null` in
14129      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14130      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14131      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14132      *\ 2.11.*) ;; # other 2.11 versions
14133      *) supports_anon_versioning=yes ;;
14134    esac
14135
14136    # See if GNU ld supports shared libraries.
14137    case $host_os in
14138    aix3* | aix4* | aix5*)
14139      # On AIX/PPC, the GNU linker is very broken
14140      if test "$host_cpu" != ia64; then
14141	ld_shlibs_F77=no
14142	cat <<EOF 1>&2
14143
14144*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14145*** to be unable to reliably create shared libraries on AIX.
14146*** Therefore, libtool is disabling shared libraries support.  If you
14147*** really care for shared libraries, you may want to modify your PATH
14148*** so that a non-GNU linker is found, and then restart.
14149
14150EOF
14151      fi
14152      ;;
14153
14154    amigaos*)
14155      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)'
14156      hardcode_libdir_flag_spec_F77='-L$libdir'
14157      hardcode_minus_L_F77=yes
14158
14159      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14160      # that the semantics of dynamic libraries on AmigaOS, at least up
14161      # to version 4, is to share data among multiple programs linked
14162      # with the same dynamic library.  Since this doesn't match the
14163      # behavior of shared libraries on other platforms, we can't use
14164      # them.
14165      ld_shlibs_F77=no
14166      ;;
14167
14168    beos*)
14169      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14170	allow_undefined_flag_F77=unsupported
14171	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14172	# support --undefined.  This deserves some investigation.  FIXME
14173	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14174      else
14175	ld_shlibs_F77=no
14176      fi
14177      ;;
14178
14179    cygwin* | mingw* | pw32*)
14180      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14181      # as there is no search path for DLLs.
14182      hardcode_libdir_flag_spec_F77='-L$libdir'
14183      allow_undefined_flag_F77=unsupported
14184      always_export_symbols_F77=no
14185      enable_shared_with_static_runtimes_F77=yes
14186      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14187
14188      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14189        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14190	# If the export-symbols file already is a .def file (1st line
14191	# is EXPORTS), use it as is; otherwise, prepend...
14192	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14193	  cp $export_symbols $output_objdir/$soname.def;
14194	else
14195	  echo EXPORTS > $output_objdir/$soname.def;
14196	  cat $export_symbols >> $output_objdir/$soname.def;
14197	fi~
14198	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14199      else
14200	ld_shlibs_F77=no
14201      fi
14202      ;;
14203
14204    interix3*)
14205      hardcode_direct_F77=no
14206      hardcode_shlibpath_var_F77=no
14207      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14208      export_dynamic_flag_spec_F77='${wl}-E'
14209      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14210      # Instead, shared libraries are loaded at an image base (0x10000000 by
14211      # default) and relocated if they conflict, which is a slow very memory
14212      # consuming and fragmenting process.  To avoid this, we pick a random,
14213      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14214      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14215      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'
14216      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'
14217      ;;
14218
14219    linux*)
14220      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14221	tmp_addflag=
14222	case $cc_basename,$host_cpu in
14223	pgcc*)				# Portland Group C compiler
14224	  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'
14225	  tmp_addflag=' $pic_flag'
14226	  ;;
14227	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14228	  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'
14229	  tmp_addflag=' $pic_flag -Mnomain' ;;
14230	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14231	  tmp_addflag=' -i_dynamic' ;;
14232	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14233	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14234	ifc* | ifort*)			# Intel Fortran compiler
14235	  tmp_addflag=' -nofor_main' ;;
14236	esac
14237	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14238
14239	if test $supports_anon_versioning = yes; then
14240	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14241  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14242  $echo "local: *; };" >> $output_objdir/$libname.ver~
14243	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14244	fi
14245      else
14246	ld_shlibs_F77=no
14247      fi
14248      ;;
14249
14250    netbsd*)
14251      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14252	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14253	wlarc=
14254      else
14255	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14256	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14257      fi
14258      ;;
14259
14260    solaris*)
14261      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14262	ld_shlibs_F77=no
14263	cat <<EOF 1>&2
14264
14265*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14266*** create shared libraries on Solaris systems.  Therefore, libtool
14267*** is disabling shared libraries support.  We urge you to upgrade GNU
14268*** binutils to release 2.9.1 or newer.  Another option is to modify
14269*** your PATH or compiler configuration so that the native linker is
14270*** used, and then restart.
14271
14272EOF
14273      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14274	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14275	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14276      else
14277	ld_shlibs_F77=no
14278      fi
14279      ;;
14280
14281    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14282      case `$LD -v 2>&1` in
14283        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14284	ld_shlibs_F77=no
14285	cat <<_LT_EOF 1>&2
14286
14287*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14288*** reliably create shared libraries on SCO systems.  Therefore, libtool
14289*** is disabling shared libraries support.  We urge you to upgrade GNU
14290*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14291*** your PATH or compiler configuration so that the native linker is
14292*** used, and then restart.
14293
14294_LT_EOF
14295	;;
14296	*)
14297	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14298	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14299	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14300	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14301	  else
14302	    ld_shlibs_F77=no
14303	  fi
14304	;;
14305      esac
14306      ;;
14307
14308    sunos4*)
14309      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14310      wlarc=
14311      hardcode_direct_F77=yes
14312      hardcode_shlibpath_var_F77=no
14313      ;;
14314
14315    *)
14316      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14317	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14318	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14319      else
14320	ld_shlibs_F77=no
14321      fi
14322      ;;
14323    esac
14324
14325    if test "$ld_shlibs_F77" = no; then
14326      runpath_var=
14327      hardcode_libdir_flag_spec_F77=
14328      export_dynamic_flag_spec_F77=
14329      whole_archive_flag_spec_F77=
14330    fi
14331  else
14332    # PORTME fill in a description of your system's linker (not GNU ld)
14333    case $host_os in
14334    aix3*)
14335      allow_undefined_flag_F77=unsupported
14336      always_export_symbols_F77=yes
14337      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'
14338      # Note: this linker hardcodes the directories in LIBPATH if there
14339      # are no directories specified by -L.
14340      hardcode_minus_L_F77=yes
14341      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14342	# Neither direct hardcoding nor static linking is supported with a
14343	# broken collect2.
14344	hardcode_direct_F77=unsupported
14345      fi
14346      ;;
14347
14348    aix4* | aix5*)
14349      if test "$host_cpu" = ia64; then
14350	# On IA64, the linker does run time linking by default, so we don't
14351	# have to do anything special.
14352	aix_use_runtimelinking=no
14353	exp_sym_flag='-Bexport'
14354	no_entry_flag=""
14355      else
14356	# If we're using GNU nm, then we don't want the "-C" option.
14357	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14358	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14359	  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'
14360	else
14361	  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'
14362	fi
14363	aix_use_runtimelinking=no
14364
14365	# Test if we are trying to use run time linking or normal
14366	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14367	# need to do runtime linking.
14368	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14369	  for ld_flag in $LDFLAGS; do
14370  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14371  	    aix_use_runtimelinking=yes
14372  	    break
14373  	  fi
14374	  done
14375	  ;;
14376	esac
14377
14378	exp_sym_flag='-bexport'
14379	no_entry_flag='-bnoentry'
14380      fi
14381
14382      # When large executables or shared objects are built, AIX ld can
14383      # have problems creating the table of contents.  If linking a library
14384      # or program results in "error TOC overflow" add -mminimal-toc to
14385      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14386      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14387
14388      archive_cmds_F77=''
14389      hardcode_direct_F77=yes
14390      hardcode_libdir_separator_F77=':'
14391      link_all_deplibs_F77=yes
14392
14393      if test "$GCC" = yes; then
14394	case $host_os in aix4.[012]|aix4.[012].*)
14395	# We only want to do this on AIX 4.2 and lower, the check
14396	# below for broken collect2 doesn't work under 4.3+
14397	  collect2name=`${CC} -print-prog-name=collect2`
14398	  if test -f "$collect2name" && \
14399  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14400	  then
14401  	  # We have reworked collect2
14402  	  hardcode_direct_F77=yes
14403	  else
14404  	  # We have old collect2
14405  	  hardcode_direct_F77=unsupported
14406  	  # It fails to find uninstalled libraries when the uninstalled
14407  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14408  	  # to unsupported forces relinking
14409  	  hardcode_minus_L_F77=yes
14410  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14411  	  hardcode_libdir_separator_F77=
14412	  fi
14413	  ;;
14414	esac
14415	shared_flag='-shared'
14416	if test "$aix_use_runtimelinking" = yes; then
14417	  shared_flag="$shared_flag "'${wl}-G'
14418	fi
14419      else
14420	# not using gcc
14421	if test "$host_cpu" = ia64; then
14422  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14423  	# chokes on -Wl,-G. The following line is correct:
14424	  shared_flag='-G'
14425	else
14426	  if test "$aix_use_runtimelinking" = yes; then
14427	    shared_flag='${wl}-G'
14428	  else
14429	    shared_flag='${wl}-bM:SRE'
14430	  fi
14431	fi
14432      fi
14433
14434      # It seems that -bexpall does not export symbols beginning with
14435      # underscore (_), so it is better to generate a list of symbols to export.
14436      always_export_symbols_F77=yes
14437      if test "$aix_use_runtimelinking" = yes; then
14438	# Warning - without using the other runtime loading flags (-brtl),
14439	# -berok will link without error, but may produce a broken library.
14440	allow_undefined_flag_F77='-berok'
14441       # Determine the default libpath from the value encoded in an empty executable.
14442       cat >conftest.$ac_ext <<_ACEOF
14443      program main
14444
14445      end
14446_ACEOF
14447rm -f conftest.$ac_objext conftest$ac_exeext
14448if { (ac_try="$ac_link"
14449case "(($ac_try" in
14450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451  *) ac_try_echo=$ac_try;;
14452esac
14453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454  (eval "$ac_link") 2>conftest.er1
14455  ac_status=$?
14456  grep -v '^ *+' conftest.er1 >conftest.err
14457  rm -f conftest.er1
14458  cat conftest.err >&5
14459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460  (exit $ac_status); } && {
14461	 test -z "$ac_f77_werror_flag" ||
14462	 test ! -s conftest.err
14463       } && test -s conftest$ac_exeext &&
14464       $as_test_x conftest$ac_exeext; then
14465
14466aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14467}'`
14468# Check for a 64-bit object if we didn't find anything.
14469if 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; }
14470}'`; fi
14471else
14472  echo "$as_me: failed program was:" >&5
14473sed 's/^/| /' conftest.$ac_ext >&5
14474
14475
14476fi
14477
14478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14479      conftest$ac_exeext conftest.$ac_ext
14480if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14481
14482       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14483	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"
14484       else
14485	if test "$host_cpu" = ia64; then
14486	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14487	  allow_undefined_flag_F77="-z nodefs"
14488	  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"
14489	else
14490	 # Determine the default libpath from the value encoded in an empty executable.
14491	 cat >conftest.$ac_ext <<_ACEOF
14492      program main
14493
14494      end
14495_ACEOF
14496rm -f conftest.$ac_objext conftest$ac_exeext
14497if { (ac_try="$ac_link"
14498case "(($ac_try" in
14499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500  *) ac_try_echo=$ac_try;;
14501esac
14502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503  (eval "$ac_link") 2>conftest.er1
14504  ac_status=$?
14505  grep -v '^ *+' conftest.er1 >conftest.err
14506  rm -f conftest.er1
14507  cat conftest.err >&5
14508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509  (exit $ac_status); } && {
14510	 test -z "$ac_f77_werror_flag" ||
14511	 test ! -s conftest.err
14512       } && test -s conftest$ac_exeext &&
14513       $as_test_x conftest$ac_exeext; then
14514
14515aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14516}'`
14517# Check for a 64-bit object if we didn't find anything.
14518if 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; }
14519}'`; fi
14520else
14521  echo "$as_me: failed program was:" >&5
14522sed 's/^/| /' conftest.$ac_ext >&5
14523
14524
14525fi
14526
14527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14528      conftest$ac_exeext conftest.$ac_ext
14529if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14530
14531	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14532	  # Warning - without using the other run time loading flags,
14533	  # -berok will link without error, but may produce a broken library.
14534	  no_undefined_flag_F77=' ${wl}-bernotok'
14535	  allow_undefined_flag_F77=' ${wl}-berok'
14536	  # Exported symbols can be pulled into shared objects from archives
14537	  whole_archive_flag_spec_F77='$convenience'
14538	  archive_cmds_need_lc_F77=yes
14539	  # This is similar to how AIX traditionally builds its shared libraries.
14540	  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'
14541	fi
14542      fi
14543      ;;
14544
14545    amigaos*)
14546      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)'
14547      hardcode_libdir_flag_spec_F77='-L$libdir'
14548      hardcode_minus_L_F77=yes
14549      # see comment about different semantics on the GNU ld section
14550      ld_shlibs_F77=no
14551      ;;
14552
14553    bsdi[45]*)
14554      export_dynamic_flag_spec_F77=-rdynamic
14555      ;;
14556
14557    cygwin* | mingw* | pw32*)
14558      # When not using gcc, we currently assume that we are using
14559      # Microsoft Visual C++.
14560      # hardcode_libdir_flag_spec is actually meaningless, as there is
14561      # no search path for DLLs.
14562      hardcode_libdir_flag_spec_F77=' '
14563      allow_undefined_flag_F77=unsupported
14564      # Tell ltmain to make .lib files, not .a files.
14565      libext=lib
14566      # Tell ltmain to make .dll files, not .so files.
14567      shrext_cmds=".dll"
14568      # FIXME: Setting linknames here is a bad hack.
14569      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14570      # The linker will automatically build a .lib file if we build a DLL.
14571      old_archive_From_new_cmds_F77='true'
14572      # FIXME: Should let the user specify the lib program.
14573      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14574      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14575      enable_shared_with_static_runtimes_F77=yes
14576      ;;
14577
14578    darwin* | rhapsody*)
14579      case $host_os in
14580        rhapsody* | darwin1.[012])
14581         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14582         ;;
14583       *) # Darwin 1.3 on
14584         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14585           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14586         else
14587           case ${MACOSX_DEPLOYMENT_TARGET} in
14588             10.[012])
14589               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14590               ;;
14591             10.*)
14592               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14593               ;;
14594           esac
14595         fi
14596         ;;
14597      esac
14598      archive_cmds_need_lc_F77=no
14599      hardcode_direct_F77=no
14600      hardcode_automatic_F77=yes
14601      hardcode_shlibpath_var_F77=unsupported
14602      whole_archive_flag_spec_F77=''
14603      link_all_deplibs_F77=yes
14604    if test "$GCC" = yes ; then
14605    	output_verbose_link_cmd='echo'
14606        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14607      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14608      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14609      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}'
14610      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}'
14611    else
14612      case $cc_basename in
14613        xlc*)
14614         output_verbose_link_cmd='echo'
14615         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14616         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14617          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14618         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}'
14619          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}'
14620          ;;
14621       *)
14622         ld_shlibs_F77=no
14623          ;;
14624      esac
14625    fi
14626      ;;
14627
14628    dgux*)
14629      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14630      hardcode_libdir_flag_spec_F77='-L$libdir'
14631      hardcode_shlibpath_var_F77=no
14632      ;;
14633
14634    freebsd1*)
14635      ld_shlibs_F77=no
14636      ;;
14637
14638    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14639    # support.  Future versions do this automatically, but an explicit c++rt0.o
14640    # does not break anything, and helps significantly (at the cost of a little
14641    # extra space).
14642    freebsd2.2*)
14643      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14644      hardcode_libdir_flag_spec_F77='-R$libdir'
14645      hardcode_direct_F77=yes
14646      hardcode_shlibpath_var_F77=no
14647      ;;
14648
14649    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14650    freebsd2*)
14651      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14652      hardcode_direct_F77=yes
14653      hardcode_minus_L_F77=yes
14654      hardcode_shlibpath_var_F77=no
14655      ;;
14656
14657    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14658    freebsd* | kfreebsd*-gnu | dragonfly*)
14659      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14660      hardcode_libdir_flag_spec_F77='-R$libdir'
14661      hardcode_direct_F77=yes
14662      hardcode_shlibpath_var_F77=no
14663      ;;
14664
14665    hpux9*)
14666      if test "$GCC" = yes; then
14667	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'
14668      else
14669	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'
14670      fi
14671      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14672      hardcode_libdir_separator_F77=:
14673      hardcode_direct_F77=yes
14674
14675      # hardcode_minus_L: Not really in the search PATH,
14676      # but as the default location of the library.
14677      hardcode_minus_L_F77=yes
14678      export_dynamic_flag_spec_F77='${wl}-E'
14679      ;;
14680
14681    hpux10*)
14682      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14683	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14684      else
14685	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14686      fi
14687      if test "$with_gnu_ld" = no; then
14688	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14689	hardcode_libdir_separator_F77=:
14690
14691	hardcode_direct_F77=yes
14692	export_dynamic_flag_spec_F77='${wl}-E'
14693
14694	# hardcode_minus_L: Not really in the search PATH,
14695	# but as the default location of the library.
14696	hardcode_minus_L_F77=yes
14697      fi
14698      ;;
14699
14700    hpux11*)
14701      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14702	case $host_cpu in
14703	hppa*64*)
14704	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14705	  ;;
14706	ia64*)
14707	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14708	  ;;
14709	*)
14710	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14711	  ;;
14712	esac
14713      else
14714	case $host_cpu in
14715	hppa*64*)
14716	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14717	  ;;
14718	ia64*)
14719	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14720	  ;;
14721	*)
14722	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14723	  ;;
14724	esac
14725      fi
14726      if test "$with_gnu_ld" = no; then
14727	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14728	hardcode_libdir_separator_F77=:
14729
14730	case $host_cpu in
14731	hppa*64*|ia64*)
14732	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14733	  hardcode_direct_F77=no
14734	  hardcode_shlibpath_var_F77=no
14735	  ;;
14736	*)
14737	  hardcode_direct_F77=yes
14738	  export_dynamic_flag_spec_F77='${wl}-E'
14739
14740	  # hardcode_minus_L: Not really in the search PATH,
14741	  # but as the default location of the library.
14742	  hardcode_minus_L_F77=yes
14743	  ;;
14744	esac
14745      fi
14746      ;;
14747
14748    irix5* | irix6* | nonstopux*)
14749      if test "$GCC" = yes; then
14750	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'
14751      else
14752	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'
14753	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14754      fi
14755      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14756      hardcode_libdir_separator_F77=:
14757      link_all_deplibs_F77=yes
14758      ;;
14759
14760    netbsd*)
14761      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14762	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14763      else
14764	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14765      fi
14766      hardcode_libdir_flag_spec_F77='-R$libdir'
14767      hardcode_direct_F77=yes
14768      hardcode_shlibpath_var_F77=no
14769      ;;
14770
14771    newsos6)
14772      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14773      hardcode_direct_F77=yes
14774      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14775      hardcode_libdir_separator_F77=:
14776      hardcode_shlibpath_var_F77=no
14777      ;;
14778
14779    openbsd*)
14780      hardcode_direct_F77=yes
14781      hardcode_shlibpath_var_F77=no
14782      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14783	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14784	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14785	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14786	export_dynamic_flag_spec_F77='${wl}-E'
14787      else
14788       case $host_os in
14789	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14790	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14791	   hardcode_libdir_flag_spec_F77='-R$libdir'
14792	   ;;
14793	 *)
14794	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14795	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14796	   ;;
14797       esac
14798      fi
14799      ;;
14800
14801    os2*)
14802      hardcode_libdir_flag_spec_F77='-L$libdir'
14803      hardcode_minus_L_F77=yes
14804      allow_undefined_flag_F77=unsupported
14805      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'
14806      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14807      ;;
14808
14809    osf3*)
14810      if test "$GCC" = yes; then
14811	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14812	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'
14813      else
14814	allow_undefined_flag_F77=' -expect_unresolved \*'
14815	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'
14816      fi
14817      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14818      hardcode_libdir_separator_F77=:
14819      ;;
14820
14821    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14822      if test "$GCC" = yes; then
14823	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14824	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'
14825	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14826      else
14827	allow_undefined_flag_F77=' -expect_unresolved \*'
14828	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'
14829	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~
14830	$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'
14831
14832	# Both c and cxx compiler support -rpath directly
14833	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14834      fi
14835      hardcode_libdir_separator_F77=:
14836      ;;
14837
14838    solaris*)
14839      no_undefined_flag_F77=' -z text'
14840      if test "$GCC" = yes; then
14841	wlarc='${wl}'
14842	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14843	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14844	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14845      else
14846	wlarc=''
14847	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14848	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14849  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14850      fi
14851      hardcode_libdir_flag_spec_F77='-R$libdir'
14852      hardcode_shlibpath_var_F77=no
14853      case $host_os in
14854      solaris2.[0-5] | solaris2.[0-5].*) ;;
14855      *)
14856 	# The compiler driver will combine linker options so we
14857 	# cannot just pass the convience library names through
14858 	# without $wl, iff we do not link with $LD.
14859 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14860 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14861 	case $wlarc in
14862 	'')
14863 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14864 	*)
14865 	  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' ;;
14866 	esac ;;
14867      esac
14868      link_all_deplibs_F77=yes
14869      ;;
14870
14871    sunos4*)
14872      if test "x$host_vendor" = xsequent; then
14873	# Use $CC to link under sequent, because it throws in some extra .o
14874	# files that make .init and .fini sections work.
14875	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14876      else
14877	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14878      fi
14879      hardcode_libdir_flag_spec_F77='-L$libdir'
14880      hardcode_direct_F77=yes
14881      hardcode_minus_L_F77=yes
14882      hardcode_shlibpath_var_F77=no
14883      ;;
14884
14885    sysv4)
14886      case $host_vendor in
14887	sni)
14888	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14889	  hardcode_direct_F77=yes # is this really true???
14890	;;
14891	siemens)
14892	  ## LD is ld it makes a PLAMLIB
14893	  ## CC just makes a GrossModule.
14894	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14895	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14896	  hardcode_direct_F77=no
14897        ;;
14898	motorola)
14899	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14900	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14901	;;
14902      esac
14903      runpath_var='LD_RUN_PATH'
14904      hardcode_shlibpath_var_F77=no
14905      ;;
14906
14907    sysv4.3*)
14908      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14909      hardcode_shlibpath_var_F77=no
14910      export_dynamic_flag_spec_F77='-Bexport'
14911      ;;
14912
14913    sysv4*MP*)
14914      if test -d /usr/nec; then
14915	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14916	hardcode_shlibpath_var_F77=no
14917	runpath_var=LD_RUN_PATH
14918	hardcode_runpath_var=yes
14919	ld_shlibs_F77=yes
14920      fi
14921      ;;
14922
14923    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14924      no_undefined_flag_F77='${wl}-z,text'
14925      archive_cmds_need_lc_F77=no
14926      hardcode_shlibpath_var_F77=no
14927      runpath_var='LD_RUN_PATH'
14928
14929      if test "$GCC" = yes; then
14930	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14931	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14932      else
14933	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14934	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14935      fi
14936      ;;
14937
14938    sysv5* | sco3.2v5* | sco5v6*)
14939      # Note: We can NOT use -z defs as we might desire, because we do not
14940      # link with -lc, and that would cause any symbols used from libc to
14941      # always be unresolved, which means just about no library would
14942      # ever link correctly.  If we're not using GNU ld we use -z text
14943      # though, which does catch some bad symbols but isn't as heavy-handed
14944      # as -z defs.
14945      no_undefined_flag_F77='${wl}-z,text'
14946      allow_undefined_flag_F77='${wl}-z,nodefs'
14947      archive_cmds_need_lc_F77=no
14948      hardcode_shlibpath_var_F77=no
14949      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14950      hardcode_libdir_separator_F77=':'
14951      link_all_deplibs_F77=yes
14952      export_dynamic_flag_spec_F77='${wl}-Bexport'
14953      runpath_var='LD_RUN_PATH'
14954
14955      if test "$GCC" = yes; then
14956	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14957	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14958      else
14959	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14960	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14961      fi
14962      ;;
14963
14964    uts4*)
14965      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966      hardcode_libdir_flag_spec_F77='-L$libdir'
14967      hardcode_shlibpath_var_F77=no
14968      ;;
14969
14970    *)
14971      ld_shlibs_F77=no
14972      ;;
14973    esac
14974  fi
14975
14976{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14977echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14978test "$ld_shlibs_F77" = no && can_build_shared=no
14979
14980#
14981# Do we need to explicitly link libc?
14982#
14983case "x$archive_cmds_need_lc_F77" in
14984x|xyes)
14985  # Assume -lc should be added
14986  archive_cmds_need_lc_F77=yes
14987
14988  if test "$enable_shared" = yes && test "$GCC" = yes; then
14989    case $archive_cmds_F77 in
14990    *'~'*)
14991      # FIXME: we may have to deal with multi-command sequences.
14992      ;;
14993    '$CC '*)
14994      # Test whether the compiler implicitly links with -lc since on some
14995      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14996      # to ld, don't add -lc before -lgcc.
14997      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14998echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14999      $rm conftest*
15000      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15001
15002      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15003  (eval $ac_compile) 2>&5
15004  ac_status=$?
15005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006  (exit $ac_status); } 2>conftest.err; then
15007        soname=conftest
15008        lib=conftest
15009        libobjs=conftest.$ac_objext
15010        deplibs=
15011        wl=$lt_prog_compiler_wl_F77
15012	pic_flag=$lt_prog_compiler_pic_F77
15013        compiler_flags=-v
15014        linker_flags=-v
15015        verstring=
15016        output_objdir=.
15017        libname=conftest
15018        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15019        allow_undefined_flag_F77=
15020        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15021  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15022  ac_status=$?
15023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024  (exit $ac_status); }
15025        then
15026	  archive_cmds_need_lc_F77=no
15027        else
15028	  archive_cmds_need_lc_F77=yes
15029        fi
15030        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15031      else
15032        cat conftest.err 1>&5
15033      fi
15034      $rm conftest*
15035      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15036echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15037      ;;
15038    esac
15039  fi
15040  ;;
15041esac
15042
15043{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15044echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15045library_names_spec=
15046libname_spec='lib$name'
15047soname_spec=
15048shrext_cmds=".so"
15049postinstall_cmds=
15050postuninstall_cmds=
15051finish_cmds=
15052finish_eval=
15053shlibpath_var=
15054shlibpath_overrides_runpath=unknown
15055version_type=none
15056dynamic_linker="$host_os ld.so"
15057sys_lib_dlsearch_path_spec="/lib /usr/lib"
15058if test "$GCC" = yes; then
15059  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15060  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15061    # if the path contains ";" then we assume it to be the separator
15062    # otherwise default to the standard path separator (i.e. ":") - it is
15063    # assumed that no part of a normal pathname contains ";" but that should
15064    # okay in the real world where ";" in dirpaths is itself problematic.
15065    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15066  else
15067    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15068  fi
15069else
15070  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15071fi
15072need_lib_prefix=unknown
15073hardcode_into_libs=no
15074
15075# when you set need_version to no, make sure it does not cause -set_version
15076# flags to be left without arguments
15077need_version=unknown
15078
15079case $host_os in
15080aix3*)
15081  version_type=linux
15082  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15083  shlibpath_var=LIBPATH
15084
15085  # AIX 3 has no versioning support, so we append a major version to the name.
15086  soname_spec='${libname}${release}${shared_ext}$major'
15087  ;;
15088
15089aix4* | aix5*)
15090  version_type=linux
15091  need_lib_prefix=no
15092  need_version=no
15093  hardcode_into_libs=yes
15094  if test "$host_cpu" = ia64; then
15095    # AIX 5 supports IA64
15096    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15097    shlibpath_var=LD_LIBRARY_PATH
15098  else
15099    # With GCC up to 2.95.x, collect2 would create an import file
15100    # for dependence libraries.  The import file would start with
15101    # the line `#! .'.  This would cause the generated library to
15102    # depend on `.', always an invalid library.  This was fixed in
15103    # development snapshots of GCC prior to 3.0.
15104    case $host_os in
15105      aix4 | aix4.[01] | aix4.[01].*)
15106      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15107	   echo ' yes '
15108	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15109	:
15110      else
15111	can_build_shared=no
15112      fi
15113      ;;
15114    esac
15115    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15116    # soname into executable. Probably we can add versioning support to
15117    # collect2, so additional links can be useful in future.
15118    if test "$aix_use_runtimelinking" = yes; then
15119      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15120      # instead of lib<name>.a to let people know that these are not
15121      # typical AIX shared libraries.
15122      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15123    else
15124      # We preserve .a as extension for shared libraries through AIX4.2
15125      # and later when we are not doing run time linking.
15126      library_names_spec='${libname}${release}.a $libname.a'
15127      soname_spec='${libname}${release}${shared_ext}$major'
15128    fi
15129    shlibpath_var=LIBPATH
15130  fi
15131  ;;
15132
15133amigaos*)
15134  library_names_spec='$libname.ixlibrary $libname.a'
15135  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15136  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'
15137  ;;
15138
15139beos*)
15140  library_names_spec='${libname}${shared_ext}'
15141  dynamic_linker="$host_os ld.so"
15142  shlibpath_var=LIBRARY_PATH
15143  ;;
15144
15145bsdi[45]*)
15146  version_type=linux
15147  need_version=no
15148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149  soname_spec='${libname}${release}${shared_ext}$major'
15150  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15151  shlibpath_var=LD_LIBRARY_PATH
15152  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15153  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15154  # the default ld.so.conf also contains /usr/contrib/lib and
15155  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15156  # libtool to hard-code these into programs
15157  ;;
15158
15159cygwin* | mingw* | pw32*)
15160  version_type=windows
15161  shrext_cmds=".dll"
15162  need_version=no
15163  need_lib_prefix=no
15164
15165  case $GCC,$host_os in
15166  yes,cygwin* | yes,mingw* | yes,pw32*)
15167    library_names_spec='$libname.dll.a'
15168    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15169    postinstall_cmds='base_file=`basename \${file}`~
15170      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15171      dldir=$destdir/`dirname \$dlpath`~
15172      test -d \$dldir || mkdir -p \$dldir~
15173      $install_prog $dir/$dlname \$dldir/$dlname~
15174      chmod a+x \$dldir/$dlname'
15175    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15176      dlpath=$dir/\$dldll~
15177       $rm \$dlpath'
15178    shlibpath_overrides_runpath=yes
15179
15180    case $host_os in
15181    cygwin*)
15182      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15183      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15184      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15185      ;;
15186    mingw*)
15187      # MinGW DLLs use traditional 'lib' prefix
15188      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15189      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15190      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15191        # It is most probably a Windows format PATH printed by
15192        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15193        # path with ; separators, and with drive letters. We can handle the
15194        # drive letters (cygwin fileutils understands them), so leave them,
15195        # especially as we might pass files found there to a mingw objdump,
15196        # which wouldn't understand a cygwinified path. Ahh.
15197        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15198      else
15199        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15200      fi
15201      ;;
15202    pw32*)
15203      # pw32 DLLs use 'pw' prefix rather than 'lib'
15204      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15205      ;;
15206    esac
15207    ;;
15208
15209  *)
15210    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15211    ;;
15212  esac
15213  dynamic_linker='Win32 ld.exe'
15214  # FIXME: first we should search . and the directory the executable is in
15215  shlibpath_var=PATH
15216  ;;
15217
15218darwin* | rhapsody*)
15219  dynamic_linker="$host_os dyld"
15220  version_type=darwin
15221  need_lib_prefix=no
15222  need_version=no
15223  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15224  soname_spec='${libname}${release}${major}$shared_ext'
15225  shlibpath_overrides_runpath=yes
15226  shlibpath_var=DYLD_LIBRARY_PATH
15227  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15228  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15229  if test "$GCC" = yes; then
15230    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"`
15231  else
15232    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15233  fi
15234  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15235  ;;
15236
15237dgux*)
15238  version_type=linux
15239  need_lib_prefix=no
15240  need_version=no
15241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15242  soname_spec='${libname}${release}${shared_ext}$major'
15243  shlibpath_var=LD_LIBRARY_PATH
15244  ;;
15245
15246freebsd1*)
15247  dynamic_linker=no
15248  ;;
15249
15250kfreebsd*-gnu)
15251  version_type=linux
15252  need_lib_prefix=no
15253  need_version=no
15254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15255  soname_spec='${libname}${release}${shared_ext}$major'
15256  shlibpath_var=LD_LIBRARY_PATH
15257  shlibpath_overrides_runpath=no
15258  hardcode_into_libs=yes
15259  dynamic_linker='GNU ld.so'
15260  ;;
15261
15262freebsd* | dragonfly*)
15263  # DragonFly does not have aout.  When/if they implement a new
15264  # versioning mechanism, adjust this.
15265  if test -x /usr/bin/objformat; then
15266    objformat=`/usr/bin/objformat`
15267  else
15268    case $host_os in
15269    freebsd[123]*) objformat=aout ;;
15270    *) objformat=elf ;;
15271    esac
15272  fi
15273  version_type=freebsd-$objformat
15274  case $version_type in
15275    freebsd-elf*)
15276      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15277      need_version=no
15278      need_lib_prefix=no
15279      ;;
15280    freebsd-*)
15281      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15282      need_version=yes
15283      ;;
15284  esac
15285  shlibpath_var=LD_LIBRARY_PATH
15286  case $host_os in
15287  freebsd2*)
15288    shlibpath_overrides_runpath=yes
15289    ;;
15290  freebsd3.[01]* | freebsdelf3.[01]*)
15291    shlibpath_overrides_runpath=yes
15292    hardcode_into_libs=yes
15293    ;;
15294  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15295  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15296    shlibpath_overrides_runpath=no
15297    hardcode_into_libs=yes
15298    ;;
15299  freebsd*) # from 4.6 on
15300    shlibpath_overrides_runpath=yes
15301    hardcode_into_libs=yes
15302    ;;
15303  esac
15304  ;;
15305
15306gnu*)
15307  version_type=linux
15308  need_lib_prefix=no
15309  need_version=no
15310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15311  soname_spec='${libname}${release}${shared_ext}$major'
15312  shlibpath_var=LD_LIBRARY_PATH
15313  hardcode_into_libs=yes
15314  ;;
15315
15316hpux9* | hpux10* | hpux11*)
15317  # Give a soname corresponding to the major version so that dld.sl refuses to
15318  # link against other versions.
15319  version_type=sunos
15320  need_lib_prefix=no
15321  need_version=no
15322  case $host_cpu in
15323  ia64*)
15324    shrext_cmds='.so'
15325    hardcode_into_libs=yes
15326    dynamic_linker="$host_os dld.so"
15327    shlibpath_var=LD_LIBRARY_PATH
15328    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15329    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330    soname_spec='${libname}${release}${shared_ext}$major'
15331    if test "X$HPUX_IA64_MODE" = X32; then
15332      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15333    else
15334      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15335    fi
15336    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15337    ;;
15338   hppa*64*)
15339     shrext_cmds='.sl'
15340     hardcode_into_libs=yes
15341     dynamic_linker="$host_os dld.sl"
15342     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15343     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345     soname_spec='${libname}${release}${shared_ext}$major'
15346     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15347     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15348     ;;
15349   *)
15350    shrext_cmds='.sl'
15351    dynamic_linker="$host_os dld.sl"
15352    shlibpath_var=SHLIB_PATH
15353    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355    soname_spec='${libname}${release}${shared_ext}$major'
15356    ;;
15357  esac
15358  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15359  postinstall_cmds='chmod 555 $lib'
15360  ;;
15361
15362interix3*)
15363  version_type=linux
15364  need_lib_prefix=no
15365  need_version=no
15366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15367  soname_spec='${libname}${release}${shared_ext}$major'
15368  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15369  shlibpath_var=LD_LIBRARY_PATH
15370  shlibpath_overrides_runpath=no
15371  hardcode_into_libs=yes
15372  ;;
15373
15374irix5* | irix6* | nonstopux*)
15375  case $host_os in
15376    nonstopux*) version_type=nonstopux ;;
15377    *)
15378	if test "$lt_cv_prog_gnu_ld" = yes; then
15379		version_type=linux
15380	else
15381		version_type=irix
15382	fi ;;
15383  esac
15384  need_lib_prefix=no
15385  need_version=no
15386  soname_spec='${libname}${release}${shared_ext}$major'
15387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15388  case $host_os in
15389  irix5* | nonstopux*)
15390    libsuff= shlibsuff=
15391    ;;
15392  *)
15393    case $LD in # libtool.m4 will add one of these switches to LD
15394    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15395      libsuff= shlibsuff= libmagic=32-bit;;
15396    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15397      libsuff=32 shlibsuff=N32 libmagic=N32;;
15398    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15399      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15400    *) libsuff= shlibsuff= libmagic=never-match;;
15401    esac
15402    ;;
15403  esac
15404  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15405  shlibpath_overrides_runpath=no
15406  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15407  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15408  hardcode_into_libs=yes
15409  ;;
15410
15411# No shared lib support for Linux oldld, aout, or coff.
15412linux*oldld* | linux*aout* | linux*coff*)
15413  dynamic_linker=no
15414  ;;
15415
15416# This must be Linux ELF.
15417linux*)
15418  version_type=linux
15419  need_lib_prefix=no
15420  need_version=no
15421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15422  soname_spec='${libname}${release}${shared_ext}$major'
15423  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15424  shlibpath_var=LD_LIBRARY_PATH
15425  shlibpath_overrides_runpath=no
15426  # This implies no fast_install, which is unacceptable.
15427  # Some rework will be needed to allow for fast_install
15428  # before this can be enabled.
15429  hardcode_into_libs=yes
15430
15431  # Append ld.so.conf contents to the search path
15432  if test -f /etc/ld.so.conf; then
15433    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' ' '`
15434    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15435  fi
15436
15437  # We used to test for /lib/ld.so.1 and disable shared libraries on
15438  # powerpc, because MkLinux only supported shared libraries with the
15439  # GNU dynamic linker.  Since this was broken with cross compilers,
15440  # most powerpc-linux boxes support dynamic linking these days and
15441  # people can always --disable-shared, the test was removed, and we
15442  # assume the GNU/Linux dynamic linker is in use.
15443  dynamic_linker='GNU/Linux ld.so'
15444  ;;
15445
15446knetbsd*-gnu)
15447  version_type=linux
15448  need_lib_prefix=no
15449  need_version=no
15450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15451  soname_spec='${libname}${release}${shared_ext}$major'
15452  shlibpath_var=LD_LIBRARY_PATH
15453  shlibpath_overrides_runpath=no
15454  hardcode_into_libs=yes
15455  dynamic_linker='GNU ld.so'
15456  ;;
15457
15458netbsd*)
15459  version_type=sunos
15460  need_lib_prefix=no
15461  need_version=no
15462  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15463    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15464    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15465    dynamic_linker='NetBSD (a.out) ld.so'
15466  else
15467    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15468    soname_spec='${libname}${release}${shared_ext}$major'
15469    dynamic_linker='NetBSD ld.elf_so'
15470  fi
15471  shlibpath_var=LD_LIBRARY_PATH
15472  shlibpath_overrides_runpath=yes
15473  hardcode_into_libs=yes
15474  ;;
15475
15476newsos6)
15477  version_type=linux
15478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15479  shlibpath_var=LD_LIBRARY_PATH
15480  shlibpath_overrides_runpath=yes
15481  ;;
15482
15483nto-qnx*)
15484  version_type=linux
15485  need_lib_prefix=no
15486  need_version=no
15487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15488  soname_spec='${libname}${release}${shared_ext}$major'
15489  shlibpath_var=LD_LIBRARY_PATH
15490  shlibpath_overrides_runpath=yes
15491  ;;
15492
15493openbsd*)
15494  version_type=sunos
15495  sys_lib_dlsearch_path_spec="/usr/lib"
15496  need_lib_prefix=no
15497  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15498  case $host_os in
15499    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15500    *)                         need_version=no  ;;
15501  esac
15502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15503  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15504  shlibpath_var=LD_LIBRARY_PATH
15505  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15506    case $host_os in
15507      openbsd2.[89] | openbsd2.[89].*)
15508	shlibpath_overrides_runpath=no
15509	;;
15510      *)
15511	shlibpath_overrides_runpath=yes
15512	;;
15513      esac
15514  else
15515    shlibpath_overrides_runpath=yes
15516  fi
15517  ;;
15518
15519os2*)
15520  libname_spec='$name'
15521  shrext_cmds=".dll"
15522  need_lib_prefix=no
15523  library_names_spec='$libname${shared_ext} $libname.a'
15524  dynamic_linker='OS/2 ld.exe'
15525  shlibpath_var=LIBPATH
15526  ;;
15527
15528osf3* | osf4* | osf5*)
15529  version_type=osf
15530  need_lib_prefix=no
15531  need_version=no
15532  soname_spec='${libname}${release}${shared_ext}$major'
15533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15534  shlibpath_var=LD_LIBRARY_PATH
15535  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15536  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15537  ;;
15538
15539solaris*)
15540  version_type=linux
15541  need_lib_prefix=no
15542  need_version=no
15543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15544  soname_spec='${libname}${release}${shared_ext}$major'
15545  shlibpath_var=LD_LIBRARY_PATH
15546  shlibpath_overrides_runpath=yes
15547  hardcode_into_libs=yes
15548  # ldd complains unless libraries are executable
15549  postinstall_cmds='chmod +x $lib'
15550  ;;
15551
15552sunos4*)
15553  version_type=sunos
15554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15555  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15556  shlibpath_var=LD_LIBRARY_PATH
15557  shlibpath_overrides_runpath=yes
15558  if test "$with_gnu_ld" = yes; then
15559    need_lib_prefix=no
15560  fi
15561  need_version=yes
15562  ;;
15563
15564sysv4 | sysv4.3*)
15565  version_type=linux
15566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567  soname_spec='${libname}${release}${shared_ext}$major'
15568  shlibpath_var=LD_LIBRARY_PATH
15569  case $host_vendor in
15570    sni)
15571      shlibpath_overrides_runpath=no
15572      need_lib_prefix=no
15573      export_dynamic_flag_spec='${wl}-Blargedynsym'
15574      runpath_var=LD_RUN_PATH
15575      ;;
15576    siemens)
15577      need_lib_prefix=no
15578      ;;
15579    motorola)
15580      need_lib_prefix=no
15581      need_version=no
15582      shlibpath_overrides_runpath=no
15583      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15584      ;;
15585  esac
15586  ;;
15587
15588sysv4*MP*)
15589  if test -d /usr/nec ;then
15590    version_type=linux
15591    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15592    soname_spec='$libname${shared_ext}.$major'
15593    shlibpath_var=LD_LIBRARY_PATH
15594  fi
15595  ;;
15596
15597sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15598  version_type=freebsd-elf
15599  need_lib_prefix=no
15600  need_version=no
15601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15602  soname_spec='${libname}${release}${shared_ext}$major'
15603  shlibpath_var=LD_LIBRARY_PATH
15604  hardcode_into_libs=yes
15605  if test "$with_gnu_ld" = yes; then
15606    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15607    shlibpath_overrides_runpath=no
15608  else
15609    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15610    shlibpath_overrides_runpath=yes
15611    case $host_os in
15612      sco3.2v5*)
15613        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15614	;;
15615    esac
15616  fi
15617  sys_lib_dlsearch_path_spec='/usr/lib'
15618  ;;
15619
15620uts4*)
15621  version_type=linux
15622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15623  soname_spec='${libname}${release}${shared_ext}$major'
15624  shlibpath_var=LD_LIBRARY_PATH
15625  ;;
15626
15627*)
15628  dynamic_linker=no
15629  ;;
15630esac
15631{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15632echo "${ECHO_T}$dynamic_linker" >&6; }
15633test "$dynamic_linker" = no && can_build_shared=no
15634
15635variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15636if test "$GCC" = yes; then
15637  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15638fi
15639
15640{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15641echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15642hardcode_action_F77=
15643if test -n "$hardcode_libdir_flag_spec_F77" || \
15644   test -n "$runpath_var_F77" || \
15645   test "X$hardcode_automatic_F77" = "Xyes" ; then
15646
15647  # We can hardcode non-existant directories.
15648  if test "$hardcode_direct_F77" != no &&
15649     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15650     # have to relink, otherwise we might link with an installed library
15651     # when we should be linking with a yet-to-be-installed one
15652     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15653     test "$hardcode_minus_L_F77" != no; then
15654    # Linking always hardcodes the temporary library directory.
15655    hardcode_action_F77=relink
15656  else
15657    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15658    hardcode_action_F77=immediate
15659  fi
15660else
15661  # We cannot hardcode anything, or else we can only hardcode existing
15662  # directories.
15663  hardcode_action_F77=unsupported
15664fi
15665{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15666echo "${ECHO_T}$hardcode_action_F77" >&6; }
15667
15668if test "$hardcode_action_F77" = relink; then
15669  # Fast installation is not supported
15670  enable_fast_install=no
15671elif test "$shlibpath_overrides_runpath" = yes ||
15672     test "$enable_shared" = no; then
15673  # Fast installation is not necessary
15674  enable_fast_install=needless
15675fi
15676
15677
15678# The else clause should only fire when bootstrapping the
15679# libtool distribution, otherwise you forgot to ship ltmain.sh
15680# with your package, and you will get complaints that there are
15681# no rules to generate ltmain.sh.
15682if test -f "$ltmain"; then
15683  # See if we are running on zsh, and set the options which allow our commands through
15684  # without removal of \ escapes.
15685  if test -n "${ZSH_VERSION+set}" ; then
15686    setopt NO_GLOB_SUBST
15687  fi
15688  # Now quote all the things that may contain metacharacters while being
15689  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15690  # variables and quote the copies for generation of the libtool script.
15691  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15692    SED SHELL STRIP \
15693    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15694    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15695    deplibs_check_method reload_flag reload_cmds need_locks \
15696    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15697    lt_cv_sys_global_symbol_to_c_name_address \
15698    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15699    old_postinstall_cmds old_postuninstall_cmds \
15700    compiler_F77 \
15701    CC_F77 \
15702    LD_F77 \
15703    lt_prog_compiler_wl_F77 \
15704    lt_prog_compiler_pic_F77 \
15705    lt_prog_compiler_static_F77 \
15706    lt_prog_compiler_no_builtin_flag_F77 \
15707    export_dynamic_flag_spec_F77 \
15708    thread_safe_flag_spec_F77 \
15709    whole_archive_flag_spec_F77 \
15710    enable_shared_with_static_runtimes_F77 \
15711    old_archive_cmds_F77 \
15712    old_archive_from_new_cmds_F77 \
15713    predep_objects_F77 \
15714    postdep_objects_F77 \
15715    predeps_F77 \
15716    postdeps_F77 \
15717    compiler_lib_search_path_F77 \
15718    archive_cmds_F77 \
15719    archive_expsym_cmds_F77 \
15720    postinstall_cmds_F77 \
15721    postuninstall_cmds_F77 \
15722    old_archive_from_expsyms_cmds_F77 \
15723    allow_undefined_flag_F77 \
15724    no_undefined_flag_F77 \
15725    export_symbols_cmds_F77 \
15726    hardcode_libdir_flag_spec_F77 \
15727    hardcode_libdir_flag_spec_ld_F77 \
15728    hardcode_libdir_separator_F77 \
15729    hardcode_automatic_F77 \
15730    module_cmds_F77 \
15731    module_expsym_cmds_F77 \
15732    lt_cv_prog_compiler_c_o_F77 \
15733    exclude_expsyms_F77 \
15734    include_expsyms_F77; do
15735
15736    case $var in
15737    old_archive_cmds_F77 | \
15738    old_archive_from_new_cmds_F77 | \
15739    archive_cmds_F77 | \
15740    archive_expsym_cmds_F77 | \
15741    module_cmds_F77 | \
15742    module_expsym_cmds_F77 | \
15743    old_archive_from_expsyms_cmds_F77 | \
15744    export_symbols_cmds_F77 | \
15745    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15746    postinstall_cmds | postuninstall_cmds | \
15747    old_postinstall_cmds | old_postuninstall_cmds | \
15748    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15749      # Double-quote double-evaled strings.
15750      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15751      ;;
15752    *)
15753      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15754      ;;
15755    esac
15756  done
15757
15758  case $lt_echo in
15759  *'\$0 --fallback-echo"')
15760    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15761    ;;
15762  esac
15763
15764cfgfile="$ofile"
15765
15766  cat <<__EOF__ >> "$cfgfile"
15767# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15768
15769# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15770
15771# Shell to use when invoking shell scripts.
15772SHELL=$lt_SHELL
15773
15774# Whether or not to build shared libraries.
15775build_libtool_libs=$enable_shared
15776
15777# Whether or not to build static libraries.
15778build_old_libs=$enable_static
15779
15780# Whether or not to add -lc for building shared libraries.
15781build_libtool_need_lc=$archive_cmds_need_lc_F77
15782
15783# Whether or not to disallow shared libs when runtime libs are static
15784allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15785
15786# Whether or not to optimize for fast installation.
15787fast_install=$enable_fast_install
15788
15789# The host system.
15790host_alias=$host_alias
15791host=$host
15792host_os=$host_os
15793
15794# The build system.
15795build_alias=$build_alias
15796build=$build
15797build_os=$build_os
15798
15799# An echo program that does not interpret backslashes.
15800echo=$lt_echo
15801
15802# The archiver.
15803AR=$lt_AR
15804AR_FLAGS=$lt_AR_FLAGS
15805
15806# A C compiler.
15807LTCC=$lt_LTCC
15808
15809# LTCC compiler flags.
15810LTCFLAGS=$lt_LTCFLAGS
15811
15812# A language-specific compiler.
15813CC=$lt_compiler_F77
15814
15815# Is the compiler the GNU C compiler?
15816with_gcc=$GCC_F77
15817
15818# An ERE matcher.
15819EGREP=$lt_EGREP
15820
15821# The linker used to build libraries.
15822LD=$lt_LD_F77
15823
15824# Whether we need hard or soft links.
15825LN_S=$lt_LN_S
15826
15827# A BSD-compatible nm program.
15828NM=$lt_NM
15829
15830# A symbol stripping program
15831STRIP=$lt_STRIP
15832
15833# Used to examine libraries when file_magic_cmd begins "file"
15834MAGIC_CMD=$MAGIC_CMD
15835
15836# Used on cygwin: DLL creation program.
15837DLLTOOL="$DLLTOOL"
15838
15839# Used on cygwin: object dumper.
15840OBJDUMP="$OBJDUMP"
15841
15842# Used on cygwin: assembler.
15843AS="$AS"
15844
15845# The name of the directory that contains temporary libtool files.
15846objdir=$objdir
15847
15848# How to create reloadable object files.
15849reload_flag=$lt_reload_flag
15850reload_cmds=$lt_reload_cmds
15851
15852# How to pass a linker flag through the compiler.
15853wl=$lt_lt_prog_compiler_wl_F77
15854
15855# Object file suffix (normally "o").
15856objext="$ac_objext"
15857
15858# Old archive suffix (normally "a").
15859libext="$libext"
15860
15861# Shared library suffix (normally ".so").
15862shrext_cmds='$shrext_cmds'
15863
15864# Executable file suffix (normally "").
15865exeext="$exeext"
15866
15867# Additional compiler flags for building library objects.
15868pic_flag=$lt_lt_prog_compiler_pic_F77
15869pic_mode=$pic_mode
15870
15871# What is the maximum length of a command?
15872max_cmd_len=$lt_cv_sys_max_cmd_len
15873
15874# Does compiler simultaneously support -c and -o options?
15875compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15876
15877# Must we lock files when doing compilation?
15878need_locks=$lt_need_locks
15879
15880# Do we need the lib prefix for modules?
15881need_lib_prefix=$need_lib_prefix
15882
15883# Do we need a version for libraries?
15884need_version=$need_version
15885
15886# Whether dlopen is supported.
15887dlopen_support=$enable_dlopen
15888
15889# Whether dlopen of programs is supported.
15890dlopen_self=$enable_dlopen_self
15891
15892# Whether dlopen of statically linked programs is supported.
15893dlopen_self_static=$enable_dlopen_self_static
15894
15895# Compiler flag to prevent dynamic linking.
15896link_static_flag=$lt_lt_prog_compiler_static_F77
15897
15898# Compiler flag to turn off builtin functions.
15899no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15900
15901# Compiler flag to allow reflexive dlopens.
15902export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15903
15904# Compiler flag to generate shared objects directly from archives.
15905whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15906
15907# Compiler flag to generate thread-safe objects.
15908thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15909
15910# Library versioning type.
15911version_type=$version_type
15912
15913# Format of library name prefix.
15914libname_spec=$lt_libname_spec
15915
15916# List of archive names.  First name is the real one, the rest are links.
15917# The last name is the one that the linker finds with -lNAME.
15918library_names_spec=$lt_library_names_spec
15919
15920# The coded name of the library, if different from the real name.
15921soname_spec=$lt_soname_spec
15922
15923# Commands used to build and install an old-style archive.
15924RANLIB=$lt_RANLIB
15925old_archive_cmds=$lt_old_archive_cmds_F77
15926old_postinstall_cmds=$lt_old_postinstall_cmds
15927old_postuninstall_cmds=$lt_old_postuninstall_cmds
15928
15929# Create an old-style archive from a shared archive.
15930old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15931
15932# Create a temporary old-style archive to link instead of a shared archive.
15933old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15934
15935# Commands used to build and install a shared archive.
15936archive_cmds=$lt_archive_cmds_F77
15937archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15938postinstall_cmds=$lt_postinstall_cmds
15939postuninstall_cmds=$lt_postuninstall_cmds
15940
15941# Commands used to build a loadable module (assumed same as above if empty)
15942module_cmds=$lt_module_cmds_F77
15943module_expsym_cmds=$lt_module_expsym_cmds_F77
15944
15945# Commands to strip libraries.
15946old_striplib=$lt_old_striplib
15947striplib=$lt_striplib
15948
15949# Dependencies to place before the objects being linked to create a
15950# shared library.
15951predep_objects=$lt_predep_objects_F77
15952
15953# Dependencies to place after the objects being linked to create a
15954# shared library.
15955postdep_objects=$lt_postdep_objects_F77
15956
15957# Dependencies to place before the objects being linked to create a
15958# shared library.
15959predeps=$lt_predeps_F77
15960
15961# Dependencies to place after the objects being linked to create a
15962# shared library.
15963postdeps=$lt_postdeps_F77
15964
15965# The library search path used internally by the compiler when linking
15966# a shared library.
15967compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15968
15969# Method to check whether dependent libraries are shared objects.
15970deplibs_check_method=$lt_deplibs_check_method
15971
15972# Command to use when deplibs_check_method == file_magic.
15973file_magic_cmd=$lt_file_magic_cmd
15974
15975# Flag that allows shared libraries with undefined symbols to be built.
15976allow_undefined_flag=$lt_allow_undefined_flag_F77
15977
15978# Flag that forces no undefined symbols.
15979no_undefined_flag=$lt_no_undefined_flag_F77
15980
15981# Commands used to finish a libtool library installation in a directory.
15982finish_cmds=$lt_finish_cmds
15983
15984# Same as above, but a single script fragment to be evaled but not shown.
15985finish_eval=$lt_finish_eval
15986
15987# Take the output of nm and produce a listing of raw symbols and C names.
15988global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15989
15990# Transform the output of nm in a proper C declaration
15991global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15992
15993# Transform the output of nm in a C name address pair
15994global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15995
15996# This is the shared library runtime path variable.
15997runpath_var=$runpath_var
15998
15999# This is the shared library path variable.
16000shlibpath_var=$shlibpath_var
16001
16002# Is shlibpath searched before the hard-coded library search path?
16003shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16004
16005# How to hardcode a shared library path into an executable.
16006hardcode_action=$hardcode_action_F77
16007
16008# Whether we should hardcode library paths into libraries.
16009hardcode_into_libs=$hardcode_into_libs
16010
16011# Flag to hardcode \$libdir into a binary during linking.
16012# This must work even if \$libdir does not exist.
16013hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16014
16015# If ld is used when linking, flag to hardcode \$libdir into
16016# a binary during linking. This must work even if \$libdir does
16017# not exist.
16018hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16019
16020# Whether we need a single -rpath flag with a separated argument.
16021hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16022
16023# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16024# resulting binary.
16025hardcode_direct=$hardcode_direct_F77
16026
16027# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16028# resulting binary.
16029hardcode_minus_L=$hardcode_minus_L_F77
16030
16031# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16032# the resulting binary.
16033hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16034
16035# Set to yes if building a shared library automatically hardcodes DIR into the library
16036# and all subsequent libraries and executables linked against it.
16037hardcode_automatic=$hardcode_automatic_F77
16038
16039# Variables whose values should be saved in libtool wrapper scripts and
16040# restored at relink time.
16041variables_saved_for_relink="$variables_saved_for_relink"
16042
16043# Whether libtool must link a program against all its dependency libraries.
16044link_all_deplibs=$link_all_deplibs_F77
16045
16046# Compile-time system search path for libraries
16047sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16048
16049# Run-time system search path for libraries
16050sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16051
16052# Fix the shell variable \$srcfile for the compiler.
16053fix_srcfile_path="$fix_srcfile_path_F77"
16054
16055# Set to yes if exported symbols are required.
16056always_export_symbols=$always_export_symbols_F77
16057
16058# The commands to list exported symbols.
16059export_symbols_cmds=$lt_export_symbols_cmds_F77
16060
16061# The commands to extract the exported symbol list from a shared archive.
16062extract_expsyms_cmds=$lt_extract_expsyms_cmds
16063
16064# Symbols that should not be listed in the preloaded symbols.
16065exclude_expsyms=$lt_exclude_expsyms_F77
16066
16067# Symbols that must always be exported.
16068include_expsyms=$lt_include_expsyms_F77
16069
16070# ### END LIBTOOL TAG CONFIG: $tagname
16071
16072__EOF__
16073
16074
16075else
16076  # If there is no Makefile yet, we rely on a make rule to execute
16077  # `config.status --recheck' to rerun these tests and create the
16078  # libtool script then.
16079  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16080  if test -f "$ltmain_in"; then
16081    test -f Makefile && make "$ltmain"
16082  fi
16083fi
16084
16085
16086ac_ext=c
16087ac_cpp='$CPP $CPPFLAGS'
16088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16090ac_compiler_gnu=$ac_cv_c_compiler_gnu
16091
16092CC="$lt_save_CC"
16093
16094	else
16095	  tagname=""
16096	fi
16097	;;
16098
16099      GCJ)
16100	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16101
16102
16103# Source file extension for Java test sources.
16104ac_ext=java
16105
16106# Object file extension for compiled Java test sources.
16107objext=o
16108objext_GCJ=$objext
16109
16110# Code to be used in simple compile tests
16111lt_simple_compile_test_code="class foo {}\n"
16112
16113# Code to be used in simple link tests
16114lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16115
16116# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16117
16118# If no C compiler was specified, use CC.
16119LTCC=${LTCC-"$CC"}
16120
16121# If no C compiler flags were specified, use CFLAGS.
16122LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16123
16124# Allow CC to be a program name with arguments.
16125compiler=$CC
16126
16127
16128# save warnings/boilerplate of simple test code
16129ac_outfile=conftest.$ac_objext
16130printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16131eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16132_lt_compiler_boilerplate=`cat conftest.err`
16133$rm conftest*
16134
16135ac_outfile=conftest.$ac_objext
16136printf "$lt_simple_link_test_code" >conftest.$ac_ext
16137eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16138_lt_linker_boilerplate=`cat conftest.err`
16139$rm conftest*
16140
16141
16142# Allow CC to be a program name with arguments.
16143lt_save_CC="$CC"
16144CC=${GCJ-"gcj"}
16145compiler=$CC
16146compiler_GCJ=$CC
16147for cc_temp in $compiler""; do
16148  case $cc_temp in
16149    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16150    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16151    \-*) ;;
16152    *) break;;
16153  esac
16154done
16155cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16156
16157
16158# GCJ did not exist at the time GCC didn't implicitly link libc in.
16159archive_cmds_need_lc_GCJ=no
16160
16161old_archive_cmds_GCJ=$old_archive_cmds
16162
16163
16164lt_prog_compiler_no_builtin_flag_GCJ=
16165
16166if test "$GCC" = yes; then
16167  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16168
16169
16170{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16171echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16172if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16173  echo $ECHO_N "(cached) $ECHO_C" >&6
16174else
16175  lt_cv_prog_compiler_rtti_exceptions=no
16176  ac_outfile=conftest.$ac_objext
16177   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16178   lt_compiler_flag="-fno-rtti -fno-exceptions"
16179   # Insert the option either (1) after the last *FLAGS variable, or
16180   # (2) before a word containing "conftest.", or (3) at the end.
16181   # Note that $ac_compile itself does not contain backslashes and begins
16182   # with a dollar sign (not a hyphen), so the echo should work correctly.
16183   # The option is referenced via a variable to avoid confusing sed.
16184   lt_compile=`echo "$ac_compile" | $SED \
16185   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16186   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16187   -e 's:$: $lt_compiler_flag:'`
16188   (eval echo "\"\$as_me:16188: $lt_compile\"" >&5)
16189   (eval "$lt_compile" 2>conftest.err)
16190   ac_status=$?
16191   cat conftest.err >&5
16192   echo "$as_me:16192: \$? = $ac_status" >&5
16193   if (exit $ac_status) && test -s "$ac_outfile"; then
16194     # The compiler can only warn and ignore the option if not recognized
16195     # So say no if there are warnings other than the usual output.
16196     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16197     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16198     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16199       lt_cv_prog_compiler_rtti_exceptions=yes
16200     fi
16201   fi
16202   $rm conftest*
16203
16204fi
16205{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16206echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16207
16208if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16209    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16210else
16211    :
16212fi
16213
16214fi
16215
16216lt_prog_compiler_wl_GCJ=
16217lt_prog_compiler_pic_GCJ=
16218lt_prog_compiler_static_GCJ=
16219
16220{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16221echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16222
16223  if test "$GCC" = yes; then
16224    lt_prog_compiler_wl_GCJ='-Wl,'
16225    lt_prog_compiler_static_GCJ='-static'
16226
16227    case $host_os in
16228      aix*)
16229      # All AIX code is PIC.
16230      if test "$host_cpu" = ia64; then
16231	# AIX 5 now supports IA64 processor
16232	lt_prog_compiler_static_GCJ='-Bstatic'
16233      fi
16234      ;;
16235
16236    amigaos*)
16237      # FIXME: we need at least 68020 code to build shared libraries, but
16238      # adding the `-m68020' flag to GCC prevents building anything better,
16239      # like `-m68040'.
16240      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16241      ;;
16242
16243    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16244      # PIC is the default for these OSes.
16245      ;;
16246
16247    mingw* | pw32* | os2*)
16248      # This hack is so that the source file can tell whether it is being
16249      # built for inclusion in a dll (and should export symbols for example).
16250      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16251      ;;
16252
16253    darwin* | rhapsody*)
16254      # PIC is the default on this platform
16255      # Common symbols not allowed in MH_DYLIB files
16256      lt_prog_compiler_pic_GCJ='-fno-common'
16257      ;;
16258
16259    interix3*)
16260      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16261      # Instead, we relocate shared libraries at runtime.
16262      ;;
16263
16264    msdosdjgpp*)
16265      # Just because we use GCC doesn't mean we suddenly get shared libraries
16266      # on systems that don't support them.
16267      lt_prog_compiler_can_build_shared_GCJ=no
16268      enable_shared=no
16269      ;;
16270
16271    sysv4*MP*)
16272      if test -d /usr/nec; then
16273	lt_prog_compiler_pic_GCJ=-Kconform_pic
16274      fi
16275      ;;
16276
16277    hpux*)
16278      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16279      # not for PA HP-UX.
16280      case $host_cpu in
16281      hppa*64*|ia64*)
16282	# +Z the default
16283	;;
16284      *)
16285	lt_prog_compiler_pic_GCJ='-fPIC'
16286	;;
16287      esac
16288      ;;
16289
16290    *)
16291      lt_prog_compiler_pic_GCJ='-fPIC'
16292      ;;
16293    esac
16294  else
16295    # PORTME Check for flag to pass linker flags through the system compiler.
16296    case $host_os in
16297    aix*)
16298      lt_prog_compiler_wl_GCJ='-Wl,'
16299      if test "$host_cpu" = ia64; then
16300	# AIX 5 now supports IA64 processor
16301	lt_prog_compiler_static_GCJ='-Bstatic'
16302      else
16303	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16304      fi
16305      ;;
16306      darwin*)
16307        # PIC is the default on this platform
16308        # Common symbols not allowed in MH_DYLIB files
16309       case $cc_basename in
16310         xlc*)
16311         lt_prog_compiler_pic_GCJ='-qnocommon'
16312         lt_prog_compiler_wl_GCJ='-Wl,'
16313         ;;
16314       esac
16315       ;;
16316
16317    mingw* | pw32* | os2*)
16318      # This hack is so that the source file can tell whether it is being
16319      # built for inclusion in a dll (and should export symbols for example).
16320      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16321      ;;
16322
16323    hpux9* | hpux10* | hpux11*)
16324      lt_prog_compiler_wl_GCJ='-Wl,'
16325      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16326      # not for PA HP-UX.
16327      case $host_cpu in
16328      hppa*64*|ia64*)
16329	# +Z the default
16330	;;
16331      *)
16332	lt_prog_compiler_pic_GCJ='+Z'
16333	;;
16334      esac
16335      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16336      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16337      ;;
16338
16339    irix5* | irix6* | nonstopux*)
16340      lt_prog_compiler_wl_GCJ='-Wl,'
16341      # PIC (with -KPIC) is the default.
16342      lt_prog_compiler_static_GCJ='-non_shared'
16343      ;;
16344
16345    newsos6)
16346      lt_prog_compiler_pic_GCJ='-KPIC'
16347      lt_prog_compiler_static_GCJ='-Bstatic'
16348      ;;
16349
16350    linux*)
16351      case $cc_basename in
16352      icc* | ecc*)
16353	lt_prog_compiler_wl_GCJ='-Wl,'
16354	lt_prog_compiler_pic_GCJ='-KPIC'
16355	lt_prog_compiler_static_GCJ='-static'
16356        ;;
16357      pgcc* | pgf77* | pgf90* | pgf95*)
16358        # Portland Group compilers (*not* the Pentium gcc compiler,
16359	# which looks to be a dead project)
16360	lt_prog_compiler_wl_GCJ='-Wl,'
16361	lt_prog_compiler_pic_GCJ='-fpic'
16362	lt_prog_compiler_static_GCJ='-Bstatic'
16363        ;;
16364      ccc*)
16365        lt_prog_compiler_wl_GCJ='-Wl,'
16366        # All Alpha code is PIC.
16367        lt_prog_compiler_static_GCJ='-non_shared'
16368        ;;
16369      esac
16370      ;;
16371
16372    osf3* | osf4* | osf5*)
16373      lt_prog_compiler_wl_GCJ='-Wl,'
16374      # All OSF/1 code is PIC.
16375      lt_prog_compiler_static_GCJ='-non_shared'
16376      ;;
16377
16378    solaris*)
16379      lt_prog_compiler_pic_GCJ='-KPIC'
16380      lt_prog_compiler_static_GCJ='-Bstatic'
16381      case $cc_basename in
16382      f77* | f90* | f95*)
16383	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16384      *)
16385	lt_prog_compiler_wl_GCJ='-Wl,';;
16386      esac
16387      ;;
16388
16389    sunos4*)
16390      lt_prog_compiler_wl_GCJ='-Qoption ld '
16391      lt_prog_compiler_pic_GCJ='-PIC'
16392      lt_prog_compiler_static_GCJ='-Bstatic'
16393      ;;
16394
16395    sysv4 | sysv4.2uw2* | sysv4.3*)
16396      lt_prog_compiler_wl_GCJ='-Wl,'
16397      lt_prog_compiler_pic_GCJ='-KPIC'
16398      lt_prog_compiler_static_GCJ='-Bstatic'
16399      ;;
16400
16401    sysv4*MP*)
16402      if test -d /usr/nec ;then
16403	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16404	lt_prog_compiler_static_GCJ='-Bstatic'
16405      fi
16406      ;;
16407
16408    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16409      lt_prog_compiler_wl_GCJ='-Wl,'
16410      lt_prog_compiler_pic_GCJ='-KPIC'
16411      lt_prog_compiler_static_GCJ='-Bstatic'
16412      ;;
16413
16414    unicos*)
16415      lt_prog_compiler_wl_GCJ='-Wl,'
16416      lt_prog_compiler_can_build_shared_GCJ=no
16417      ;;
16418
16419    uts4*)
16420      lt_prog_compiler_pic_GCJ='-pic'
16421      lt_prog_compiler_static_GCJ='-Bstatic'
16422      ;;
16423
16424    *)
16425      lt_prog_compiler_can_build_shared_GCJ=no
16426      ;;
16427    esac
16428  fi
16429
16430{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16431echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16432
16433#
16434# Check to make sure the PIC flag actually works.
16435#
16436if test -n "$lt_prog_compiler_pic_GCJ"; then
16437
16438{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16439echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16440if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16441  echo $ECHO_N "(cached) $ECHO_C" >&6
16442else
16443  lt_prog_compiler_pic_works_GCJ=no
16444  ac_outfile=conftest.$ac_objext
16445   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16446   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16447   # Insert the option either (1) after the last *FLAGS variable, or
16448   # (2) before a word containing "conftest.", or (3) at the end.
16449   # Note that $ac_compile itself does not contain backslashes and begins
16450   # with a dollar sign (not a hyphen), so the echo should work correctly.
16451   # The option is referenced via a variable to avoid confusing sed.
16452   lt_compile=`echo "$ac_compile" | $SED \
16453   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16454   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16455   -e 's:$: $lt_compiler_flag:'`
16456   (eval echo "\"\$as_me:16456: $lt_compile\"" >&5)
16457   (eval "$lt_compile" 2>conftest.err)
16458   ac_status=$?
16459   cat conftest.err >&5
16460   echo "$as_me:16460: \$? = $ac_status" >&5
16461   if (exit $ac_status) && test -s "$ac_outfile"; then
16462     # The compiler can only warn and ignore the option if not recognized
16463     # So say no if there are warnings other than the usual output.
16464     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16465     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16466     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16467       lt_prog_compiler_pic_works_GCJ=yes
16468     fi
16469   fi
16470   $rm conftest*
16471
16472fi
16473{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16474echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16475
16476if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16477    case $lt_prog_compiler_pic_GCJ in
16478     "" | " "*) ;;
16479     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16480     esac
16481else
16482    lt_prog_compiler_pic_GCJ=
16483     lt_prog_compiler_can_build_shared_GCJ=no
16484fi
16485
16486fi
16487case $host_os in
16488  # For platforms which do not support PIC, -DPIC is meaningless:
16489  *djgpp*)
16490    lt_prog_compiler_pic_GCJ=
16491    ;;
16492  *)
16493    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16494    ;;
16495esac
16496
16497#
16498# Check to make sure the static flag actually works.
16499#
16500wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16501{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16502echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16503if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16504  echo $ECHO_N "(cached) $ECHO_C" >&6
16505else
16506  lt_prog_compiler_static_works_GCJ=no
16507   save_LDFLAGS="$LDFLAGS"
16508   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16509   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16510   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16511     # The linker can only warn and ignore the option if not recognized
16512     # So say no if there are warnings
16513     if test -s conftest.err; then
16514       # Append any errors to the config.log.
16515       cat conftest.err 1>&5
16516       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16517       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16518       if diff conftest.exp conftest.er2 >/dev/null; then
16519         lt_prog_compiler_static_works_GCJ=yes
16520       fi
16521     else
16522       lt_prog_compiler_static_works_GCJ=yes
16523     fi
16524   fi
16525   $rm conftest*
16526   LDFLAGS="$save_LDFLAGS"
16527
16528fi
16529{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16530echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16531
16532if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16533    :
16534else
16535    lt_prog_compiler_static_GCJ=
16536fi
16537
16538
16539{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16540echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16541if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16542  echo $ECHO_N "(cached) $ECHO_C" >&6
16543else
16544  lt_cv_prog_compiler_c_o_GCJ=no
16545   $rm -r conftest 2>/dev/null
16546   mkdir conftest
16547   cd conftest
16548   mkdir out
16549   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16550
16551   lt_compiler_flag="-o out/conftest2.$ac_objext"
16552   # Insert the option either (1) after the last *FLAGS variable, or
16553   # (2) before a word containing "conftest.", or (3) at the end.
16554   # Note that $ac_compile itself does not contain backslashes and begins
16555   # with a dollar sign (not a hyphen), so the echo should work correctly.
16556   lt_compile=`echo "$ac_compile" | $SED \
16557   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16558   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16559   -e 's:$: $lt_compiler_flag:'`
16560   (eval echo "\"\$as_me:16560: $lt_compile\"" >&5)
16561   (eval "$lt_compile" 2>out/conftest.err)
16562   ac_status=$?
16563   cat out/conftest.err >&5
16564   echo "$as_me:16564: \$? = $ac_status" >&5
16565   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16566   then
16567     # The compiler can only warn and ignore the option if not recognized
16568     # So say no if there are warnings
16569     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16570     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16571     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16572       lt_cv_prog_compiler_c_o_GCJ=yes
16573     fi
16574   fi
16575   chmod u+w . 2>&5
16576   $rm conftest*
16577   # SGI C++ compiler will create directory out/ii_files/ for
16578   # template instantiation
16579   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16580   $rm out/* && rmdir out
16581   cd ..
16582   rmdir conftest
16583   $rm conftest*
16584
16585fi
16586{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16587echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16588
16589
16590hard_links="nottested"
16591if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16592  # do not overwrite the value of need_locks provided by the user
16593  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16594echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16595  hard_links=yes
16596  $rm conftest*
16597  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16598  touch conftest.a
16599  ln conftest.a conftest.b 2>&5 || hard_links=no
16600  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16601  { echo "$as_me:$LINENO: result: $hard_links" >&5
16602echo "${ECHO_T}$hard_links" >&6; }
16603  if test "$hard_links" = no; then
16604    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16605echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16606    need_locks=warn
16607  fi
16608else
16609  need_locks=no
16610fi
16611
16612{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16613echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16614
16615  runpath_var=
16616  allow_undefined_flag_GCJ=
16617  enable_shared_with_static_runtimes_GCJ=no
16618  archive_cmds_GCJ=
16619  archive_expsym_cmds_GCJ=
16620  old_archive_From_new_cmds_GCJ=
16621  old_archive_from_expsyms_cmds_GCJ=
16622  export_dynamic_flag_spec_GCJ=
16623  whole_archive_flag_spec_GCJ=
16624  thread_safe_flag_spec_GCJ=
16625  hardcode_libdir_flag_spec_GCJ=
16626  hardcode_libdir_flag_spec_ld_GCJ=
16627  hardcode_libdir_separator_GCJ=
16628  hardcode_direct_GCJ=no
16629  hardcode_minus_L_GCJ=no
16630  hardcode_shlibpath_var_GCJ=unsupported
16631  link_all_deplibs_GCJ=unknown
16632  hardcode_automatic_GCJ=no
16633  module_cmds_GCJ=
16634  module_expsym_cmds_GCJ=
16635  always_export_symbols_GCJ=no
16636  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16637  # include_expsyms should be a list of space-separated symbols to be *always*
16638  # included in the symbol list
16639  include_expsyms_GCJ=
16640  # exclude_expsyms can be an extended regexp of symbols to exclude
16641  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16642  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16643  # as well as any symbol that contains `d'.
16644  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16645  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16646  # platforms (ab)use it in PIC code, but their linkers get confused if
16647  # the symbol is explicitly referenced.  Since portable code cannot
16648  # rely on this symbol name, it's probably fine to never include it in
16649  # preloaded symbol tables.
16650  extract_expsyms_cmds=
16651  # Just being paranoid about ensuring that cc_basename is set.
16652  for cc_temp in $compiler""; do
16653  case $cc_temp in
16654    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16655    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16656    \-*) ;;
16657    *) break;;
16658  esac
16659done
16660cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16661
16662  case $host_os in
16663  cygwin* | mingw* | pw32*)
16664    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16665    # When not using gcc, we currently assume that we are using
16666    # Microsoft Visual C++.
16667    if test "$GCC" != yes; then
16668      with_gnu_ld=no
16669    fi
16670    ;;
16671  interix*)
16672    # we just hope/assume this is gcc and not c89 (= MSVC++)
16673    with_gnu_ld=yes
16674    ;;
16675  openbsd*)
16676    with_gnu_ld=no
16677    ;;
16678  esac
16679
16680  ld_shlibs_GCJ=yes
16681  if test "$with_gnu_ld" = yes; then
16682    # If archive_cmds runs LD, not CC, wlarc should be empty
16683    wlarc='${wl}'
16684
16685    # Set some defaults for GNU ld with shared library support. These
16686    # are reset later if shared libraries are not supported. Putting them
16687    # here allows them to be overridden if necessary.
16688    runpath_var=LD_RUN_PATH
16689    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16690    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16691    # ancient GNU ld didn't support --whole-archive et. al.
16692    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16693	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16694      else
16695  	whole_archive_flag_spec_GCJ=
16696    fi
16697    supports_anon_versioning=no
16698    case `$LD -v 2>/dev/null` in
16699      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16700      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16701      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16702      *\ 2.11.*) ;; # other 2.11 versions
16703      *) supports_anon_versioning=yes ;;
16704    esac
16705
16706    # See if GNU ld supports shared libraries.
16707    case $host_os in
16708    aix3* | aix4* | aix5*)
16709      # On AIX/PPC, the GNU linker is very broken
16710      if test "$host_cpu" != ia64; then
16711	ld_shlibs_GCJ=no
16712	cat <<EOF 1>&2
16713
16714*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16715*** to be unable to reliably create shared libraries on AIX.
16716*** Therefore, libtool is disabling shared libraries support.  If you
16717*** really care for shared libraries, you may want to modify your PATH
16718*** so that a non-GNU linker is found, and then restart.
16719
16720EOF
16721      fi
16722      ;;
16723
16724    amigaos*)
16725      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)'
16726      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16727      hardcode_minus_L_GCJ=yes
16728
16729      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16730      # that the semantics of dynamic libraries on AmigaOS, at least up
16731      # to version 4, is to share data among multiple programs linked
16732      # with the same dynamic library.  Since this doesn't match the
16733      # behavior of shared libraries on other platforms, we can't use
16734      # them.
16735      ld_shlibs_GCJ=no
16736      ;;
16737
16738    beos*)
16739      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16740	allow_undefined_flag_GCJ=unsupported
16741	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16742	# support --undefined.  This deserves some investigation.  FIXME
16743	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16744      else
16745	ld_shlibs_GCJ=no
16746      fi
16747      ;;
16748
16749    cygwin* | mingw* | pw32*)
16750      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16751      # as there is no search path for DLLs.
16752      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16753      allow_undefined_flag_GCJ=unsupported
16754      always_export_symbols_GCJ=no
16755      enable_shared_with_static_runtimes_GCJ=yes
16756      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16757
16758      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16759        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16760	# If the export-symbols file already is a .def file (1st line
16761	# is EXPORTS), use it as is; otherwise, prepend...
16762	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16763	  cp $export_symbols $output_objdir/$soname.def;
16764	else
16765	  echo EXPORTS > $output_objdir/$soname.def;
16766	  cat $export_symbols >> $output_objdir/$soname.def;
16767	fi~
16768	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16769      else
16770	ld_shlibs_GCJ=no
16771      fi
16772      ;;
16773
16774    interix3*)
16775      hardcode_direct_GCJ=no
16776      hardcode_shlibpath_var_GCJ=no
16777      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16778      export_dynamic_flag_spec_GCJ='${wl}-E'
16779      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16780      # Instead, shared libraries are loaded at an image base (0x10000000 by
16781      # default) and relocated if they conflict, which is a slow very memory
16782      # consuming and fragmenting process.  To avoid this, we pick a random,
16783      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16784      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16785      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'
16786      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'
16787      ;;
16788
16789    linux*)
16790      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16791	tmp_addflag=
16792	case $cc_basename,$host_cpu in
16793	pgcc*)				# Portland Group C compiler
16794	  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'
16795	  tmp_addflag=' $pic_flag'
16796	  ;;
16797	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16798	  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'
16799	  tmp_addflag=' $pic_flag -Mnomain' ;;
16800	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16801	  tmp_addflag=' -i_dynamic' ;;
16802	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16803	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16804	ifc* | ifort*)			# Intel Fortran compiler
16805	  tmp_addflag=' -nofor_main' ;;
16806	esac
16807	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16808
16809	if test $supports_anon_versioning = yes; then
16810	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16811  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16812  $echo "local: *; };" >> $output_objdir/$libname.ver~
16813	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16814	fi
16815      else
16816	ld_shlibs_GCJ=no
16817      fi
16818      ;;
16819
16820    netbsd*)
16821      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16822	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16823	wlarc=
16824      else
16825	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16826	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16827      fi
16828      ;;
16829
16830    solaris*)
16831      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16832	ld_shlibs_GCJ=no
16833	cat <<EOF 1>&2
16834
16835*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16836*** create shared libraries on Solaris systems.  Therefore, libtool
16837*** is disabling shared libraries support.  We urge you to upgrade GNU
16838*** binutils to release 2.9.1 or newer.  Another option is to modify
16839*** your PATH or compiler configuration so that the native linker is
16840*** used, and then restart.
16841
16842EOF
16843      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16844	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16845	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16846      else
16847	ld_shlibs_GCJ=no
16848      fi
16849      ;;
16850
16851    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16852      case `$LD -v 2>&1` in
16853        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16854	ld_shlibs_GCJ=no
16855	cat <<_LT_EOF 1>&2
16856
16857*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16858*** reliably create shared libraries on SCO systems.  Therefore, libtool
16859*** is disabling shared libraries support.  We urge you to upgrade GNU
16860*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16861*** your PATH or compiler configuration so that the native linker is
16862*** used, and then restart.
16863
16864_LT_EOF
16865	;;
16866	*)
16867	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16868	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16869	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16870	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16871	  else
16872	    ld_shlibs_GCJ=no
16873	  fi
16874	;;
16875      esac
16876      ;;
16877
16878    sunos4*)
16879      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16880      wlarc=
16881      hardcode_direct_GCJ=yes
16882      hardcode_shlibpath_var_GCJ=no
16883      ;;
16884
16885    *)
16886      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16887	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16888	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16889      else
16890	ld_shlibs_GCJ=no
16891      fi
16892      ;;
16893    esac
16894
16895    if test "$ld_shlibs_GCJ" = no; then
16896      runpath_var=
16897      hardcode_libdir_flag_spec_GCJ=
16898      export_dynamic_flag_spec_GCJ=
16899      whole_archive_flag_spec_GCJ=
16900    fi
16901  else
16902    # PORTME fill in a description of your system's linker (not GNU ld)
16903    case $host_os in
16904    aix3*)
16905      allow_undefined_flag_GCJ=unsupported
16906      always_export_symbols_GCJ=yes
16907      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'
16908      # Note: this linker hardcodes the directories in LIBPATH if there
16909      # are no directories specified by -L.
16910      hardcode_minus_L_GCJ=yes
16911      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16912	# Neither direct hardcoding nor static linking is supported with a
16913	# broken collect2.
16914	hardcode_direct_GCJ=unsupported
16915      fi
16916      ;;
16917
16918    aix4* | aix5*)
16919      if test "$host_cpu" = ia64; then
16920	# On IA64, the linker does run time linking by default, so we don't
16921	# have to do anything special.
16922	aix_use_runtimelinking=no
16923	exp_sym_flag='-Bexport'
16924	no_entry_flag=""
16925      else
16926	# If we're using GNU nm, then we don't want the "-C" option.
16927	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16928	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16929	  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'
16930	else
16931	  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'
16932	fi
16933	aix_use_runtimelinking=no
16934
16935	# Test if we are trying to use run time linking or normal
16936	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16937	# need to do runtime linking.
16938	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16939	  for ld_flag in $LDFLAGS; do
16940  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16941  	    aix_use_runtimelinking=yes
16942  	    break
16943  	  fi
16944	  done
16945	  ;;
16946	esac
16947
16948	exp_sym_flag='-bexport'
16949	no_entry_flag='-bnoentry'
16950      fi
16951
16952      # When large executables or shared objects are built, AIX ld can
16953      # have problems creating the table of contents.  If linking a library
16954      # or program results in "error TOC overflow" add -mminimal-toc to
16955      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16956      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16957
16958      archive_cmds_GCJ=''
16959      hardcode_direct_GCJ=yes
16960      hardcode_libdir_separator_GCJ=':'
16961      link_all_deplibs_GCJ=yes
16962
16963      if test "$GCC" = yes; then
16964	case $host_os in aix4.[012]|aix4.[012].*)
16965	# We only want to do this on AIX 4.2 and lower, the check
16966	# below for broken collect2 doesn't work under 4.3+
16967	  collect2name=`${CC} -print-prog-name=collect2`
16968	  if test -f "$collect2name" && \
16969  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16970	  then
16971  	  # We have reworked collect2
16972  	  hardcode_direct_GCJ=yes
16973	  else
16974  	  # We have old collect2
16975  	  hardcode_direct_GCJ=unsupported
16976  	  # It fails to find uninstalled libraries when the uninstalled
16977  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16978  	  # to unsupported forces relinking
16979  	  hardcode_minus_L_GCJ=yes
16980  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16981  	  hardcode_libdir_separator_GCJ=
16982	  fi
16983	  ;;
16984	esac
16985	shared_flag='-shared'
16986	if test "$aix_use_runtimelinking" = yes; then
16987	  shared_flag="$shared_flag "'${wl}-G'
16988	fi
16989      else
16990	# not using gcc
16991	if test "$host_cpu" = ia64; then
16992  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16993  	# chokes on -Wl,-G. The following line is correct:
16994	  shared_flag='-G'
16995	else
16996	  if test "$aix_use_runtimelinking" = yes; then
16997	    shared_flag='${wl}-G'
16998	  else
16999	    shared_flag='${wl}-bM:SRE'
17000	  fi
17001	fi
17002      fi
17003
17004      # It seems that -bexpall does not export symbols beginning with
17005      # underscore (_), so it is better to generate a list of symbols to export.
17006      always_export_symbols_GCJ=yes
17007      if test "$aix_use_runtimelinking" = yes; then
17008	# Warning - without using the other runtime loading flags (-brtl),
17009	# -berok will link without error, but may produce a broken library.
17010	allow_undefined_flag_GCJ='-berok'
17011       # Determine the default libpath from the value encoded in an empty executable.
17012       cat >conftest.$ac_ext <<_ACEOF
17013/* confdefs.h.  */
17014_ACEOF
17015cat confdefs.h >>conftest.$ac_ext
17016cat >>conftest.$ac_ext <<_ACEOF
17017/* end confdefs.h.  */
17018
17019int
17020main ()
17021{
17022
17023  ;
17024  return 0;
17025}
17026_ACEOF
17027rm -f conftest.$ac_objext conftest$ac_exeext
17028if { (ac_try="$ac_link"
17029case "(($ac_try" in
17030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031  *) ac_try_echo=$ac_try;;
17032esac
17033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034  (eval "$ac_link") 2>conftest.er1
17035  ac_status=$?
17036  grep -v '^ *+' conftest.er1 >conftest.err
17037  rm -f conftest.er1
17038  cat conftest.err >&5
17039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040  (exit $ac_status); } && {
17041	 test -z "$ac_c_werror_flag" ||
17042	 test ! -s conftest.err
17043       } && test -s conftest$ac_exeext &&
17044       $as_test_x conftest$ac_exeext; then
17045
17046aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17047}'`
17048# Check for a 64-bit object if we didn't find anything.
17049if 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; }
17050}'`; fi
17051else
17052  echo "$as_me: failed program was:" >&5
17053sed 's/^/| /' conftest.$ac_ext >&5
17054
17055
17056fi
17057
17058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17059      conftest$ac_exeext conftest.$ac_ext
17060if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17061
17062       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17063	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"
17064       else
17065	if test "$host_cpu" = ia64; then
17066	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17067	  allow_undefined_flag_GCJ="-z nodefs"
17068	  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"
17069	else
17070	 # Determine the default libpath from the value encoded in an empty executable.
17071	 cat >conftest.$ac_ext <<_ACEOF
17072/* confdefs.h.  */
17073_ACEOF
17074cat confdefs.h >>conftest.$ac_ext
17075cat >>conftest.$ac_ext <<_ACEOF
17076/* end confdefs.h.  */
17077
17078int
17079main ()
17080{
17081
17082  ;
17083  return 0;
17084}
17085_ACEOF
17086rm -f conftest.$ac_objext conftest$ac_exeext
17087if { (ac_try="$ac_link"
17088case "(($ac_try" in
17089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090  *) ac_try_echo=$ac_try;;
17091esac
17092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093  (eval "$ac_link") 2>conftest.er1
17094  ac_status=$?
17095  grep -v '^ *+' conftest.er1 >conftest.err
17096  rm -f conftest.er1
17097  cat conftest.err >&5
17098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099  (exit $ac_status); } && {
17100	 test -z "$ac_c_werror_flag" ||
17101	 test ! -s conftest.err
17102       } && test -s conftest$ac_exeext &&
17103       $as_test_x conftest$ac_exeext; then
17104
17105aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17106}'`
17107# Check for a 64-bit object if we didn't find anything.
17108if 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; }
17109}'`; fi
17110else
17111  echo "$as_me: failed program was:" >&5
17112sed 's/^/| /' conftest.$ac_ext >&5
17113
17114
17115fi
17116
17117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17118      conftest$ac_exeext conftest.$ac_ext
17119if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17120
17121	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17122	  # Warning - without using the other run time loading flags,
17123	  # -berok will link without error, but may produce a broken library.
17124	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17125	  allow_undefined_flag_GCJ=' ${wl}-berok'
17126	  # Exported symbols can be pulled into shared objects from archives
17127	  whole_archive_flag_spec_GCJ='$convenience'
17128	  archive_cmds_need_lc_GCJ=yes
17129	  # This is similar to how AIX traditionally builds its shared libraries.
17130	  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'
17131	fi
17132      fi
17133      ;;
17134
17135    amigaos*)
17136      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)'
17137      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17138      hardcode_minus_L_GCJ=yes
17139      # see comment about different semantics on the GNU ld section
17140      ld_shlibs_GCJ=no
17141      ;;
17142
17143    bsdi[45]*)
17144      export_dynamic_flag_spec_GCJ=-rdynamic
17145      ;;
17146
17147    cygwin* | mingw* | pw32*)
17148      # When not using gcc, we currently assume that we are using
17149      # Microsoft Visual C++.
17150      # hardcode_libdir_flag_spec is actually meaningless, as there is
17151      # no search path for DLLs.
17152      hardcode_libdir_flag_spec_GCJ=' '
17153      allow_undefined_flag_GCJ=unsupported
17154      # Tell ltmain to make .lib files, not .a files.
17155      libext=lib
17156      # Tell ltmain to make .dll files, not .so files.
17157      shrext_cmds=".dll"
17158      # FIXME: Setting linknames here is a bad hack.
17159      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17160      # The linker will automatically build a .lib file if we build a DLL.
17161      old_archive_From_new_cmds_GCJ='true'
17162      # FIXME: Should let the user specify the lib program.
17163      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17164      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17165      enable_shared_with_static_runtimes_GCJ=yes
17166      ;;
17167
17168    darwin* | rhapsody*)
17169      case $host_os in
17170        rhapsody* | darwin1.[012])
17171         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17172         ;;
17173       *) # Darwin 1.3 on
17174         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17175           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17176         else
17177           case ${MACOSX_DEPLOYMENT_TARGET} in
17178             10.[012])
17179               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17180               ;;
17181             10.*)
17182               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17183               ;;
17184           esac
17185         fi
17186         ;;
17187      esac
17188      archive_cmds_need_lc_GCJ=no
17189      hardcode_direct_GCJ=no
17190      hardcode_automatic_GCJ=yes
17191      hardcode_shlibpath_var_GCJ=unsupported
17192      whole_archive_flag_spec_GCJ=''
17193      link_all_deplibs_GCJ=yes
17194    if test "$GCC" = yes ; then
17195    	output_verbose_link_cmd='echo'
17196        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17197      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17198      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17199      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}'
17200      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}'
17201    else
17202      case $cc_basename in
17203        xlc*)
17204         output_verbose_link_cmd='echo'
17205         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17206         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17207          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17208         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}'
17209          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}'
17210          ;;
17211       *)
17212         ld_shlibs_GCJ=no
17213          ;;
17214      esac
17215    fi
17216      ;;
17217
17218    dgux*)
17219      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17220      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17221      hardcode_shlibpath_var_GCJ=no
17222      ;;
17223
17224    freebsd1*)
17225      ld_shlibs_GCJ=no
17226      ;;
17227
17228    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17229    # support.  Future versions do this automatically, but an explicit c++rt0.o
17230    # does not break anything, and helps significantly (at the cost of a little
17231    # extra space).
17232    freebsd2.2*)
17233      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17234      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17235      hardcode_direct_GCJ=yes
17236      hardcode_shlibpath_var_GCJ=no
17237      ;;
17238
17239    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17240    freebsd2*)
17241      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17242      hardcode_direct_GCJ=yes
17243      hardcode_minus_L_GCJ=yes
17244      hardcode_shlibpath_var_GCJ=no
17245      ;;
17246
17247    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17248    freebsd* | kfreebsd*-gnu | dragonfly*)
17249      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17250      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17251      hardcode_direct_GCJ=yes
17252      hardcode_shlibpath_var_GCJ=no
17253      ;;
17254
17255    hpux9*)
17256      if test "$GCC" = yes; then
17257	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'
17258      else
17259	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'
17260      fi
17261      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17262      hardcode_libdir_separator_GCJ=:
17263      hardcode_direct_GCJ=yes
17264
17265      # hardcode_minus_L: Not really in the search PATH,
17266      # but as the default location of the library.
17267      hardcode_minus_L_GCJ=yes
17268      export_dynamic_flag_spec_GCJ='${wl}-E'
17269      ;;
17270
17271    hpux10*)
17272      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17273	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17274      else
17275	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17276      fi
17277      if test "$with_gnu_ld" = no; then
17278	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17279	hardcode_libdir_separator_GCJ=:
17280
17281	hardcode_direct_GCJ=yes
17282	export_dynamic_flag_spec_GCJ='${wl}-E'
17283
17284	# hardcode_minus_L: Not really in the search PATH,
17285	# but as the default location of the library.
17286	hardcode_minus_L_GCJ=yes
17287      fi
17288      ;;
17289
17290    hpux11*)
17291      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17292	case $host_cpu in
17293	hppa*64*)
17294	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17295	  ;;
17296	ia64*)
17297	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17298	  ;;
17299	*)
17300	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17301	  ;;
17302	esac
17303      else
17304	case $host_cpu in
17305	hppa*64*)
17306	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17307	  ;;
17308	ia64*)
17309	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17310	  ;;
17311	*)
17312	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17313	  ;;
17314	esac
17315      fi
17316      if test "$with_gnu_ld" = no; then
17317	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17318	hardcode_libdir_separator_GCJ=:
17319
17320	case $host_cpu in
17321	hppa*64*|ia64*)
17322	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17323	  hardcode_direct_GCJ=no
17324	  hardcode_shlibpath_var_GCJ=no
17325	  ;;
17326	*)
17327	  hardcode_direct_GCJ=yes
17328	  export_dynamic_flag_spec_GCJ='${wl}-E'
17329
17330	  # hardcode_minus_L: Not really in the search PATH,
17331	  # but as the default location of the library.
17332	  hardcode_minus_L_GCJ=yes
17333	  ;;
17334	esac
17335      fi
17336      ;;
17337
17338    irix5* | irix6* | nonstopux*)
17339      if test "$GCC" = yes; then
17340	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'
17341      else
17342	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'
17343	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17344      fi
17345      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17346      hardcode_libdir_separator_GCJ=:
17347      link_all_deplibs_GCJ=yes
17348      ;;
17349
17350    netbsd*)
17351      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17352	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17353      else
17354	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17355      fi
17356      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17357      hardcode_direct_GCJ=yes
17358      hardcode_shlibpath_var_GCJ=no
17359      ;;
17360
17361    newsos6)
17362      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17363      hardcode_direct_GCJ=yes
17364      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17365      hardcode_libdir_separator_GCJ=:
17366      hardcode_shlibpath_var_GCJ=no
17367      ;;
17368
17369    openbsd*)
17370      hardcode_direct_GCJ=yes
17371      hardcode_shlibpath_var_GCJ=no
17372      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17373	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17374	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17375	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17376	export_dynamic_flag_spec_GCJ='${wl}-E'
17377      else
17378       case $host_os in
17379	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17380	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17381	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17382	   ;;
17383	 *)
17384	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17385	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17386	   ;;
17387       esac
17388      fi
17389      ;;
17390
17391    os2*)
17392      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17393      hardcode_minus_L_GCJ=yes
17394      allow_undefined_flag_GCJ=unsupported
17395      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'
17396      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17397      ;;
17398
17399    osf3*)
17400      if test "$GCC" = yes; then
17401	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17402	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'
17403      else
17404	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17405	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'
17406      fi
17407      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17408      hardcode_libdir_separator_GCJ=:
17409      ;;
17410
17411    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17412      if test "$GCC" = yes; then
17413	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17414	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'
17415	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17416      else
17417	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17418	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'
17419	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~
17420	$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'
17421
17422	# Both c and cxx compiler support -rpath directly
17423	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17424      fi
17425      hardcode_libdir_separator_GCJ=:
17426      ;;
17427
17428    solaris*)
17429      no_undefined_flag_GCJ=' -z text'
17430      if test "$GCC" = yes; then
17431	wlarc='${wl}'
17432	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17433	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17434	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17435      else
17436	wlarc=''
17437	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17438	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17439  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17440      fi
17441      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17442      hardcode_shlibpath_var_GCJ=no
17443      case $host_os in
17444      solaris2.[0-5] | solaris2.[0-5].*) ;;
17445      *)
17446 	# The compiler driver will combine linker options so we
17447 	# cannot just pass the convience library names through
17448 	# without $wl, iff we do not link with $LD.
17449 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17450 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17451 	case $wlarc in
17452 	'')
17453 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17454 	*)
17455 	  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' ;;
17456 	esac ;;
17457      esac
17458      link_all_deplibs_GCJ=yes
17459      ;;
17460
17461    sunos4*)
17462      if test "x$host_vendor" = xsequent; then
17463	# Use $CC to link under sequent, because it throws in some extra .o
17464	# files that make .init and .fini sections work.
17465	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17466      else
17467	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17468      fi
17469      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17470      hardcode_direct_GCJ=yes
17471      hardcode_minus_L_GCJ=yes
17472      hardcode_shlibpath_var_GCJ=no
17473      ;;
17474
17475    sysv4)
17476      case $host_vendor in
17477	sni)
17478	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17479	  hardcode_direct_GCJ=yes # is this really true???
17480	;;
17481	siemens)
17482	  ## LD is ld it makes a PLAMLIB
17483	  ## CC just makes a GrossModule.
17484	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17485	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17486	  hardcode_direct_GCJ=no
17487        ;;
17488	motorola)
17489	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17490	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17491	;;
17492      esac
17493      runpath_var='LD_RUN_PATH'
17494      hardcode_shlibpath_var_GCJ=no
17495      ;;
17496
17497    sysv4.3*)
17498      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17499      hardcode_shlibpath_var_GCJ=no
17500      export_dynamic_flag_spec_GCJ='-Bexport'
17501      ;;
17502
17503    sysv4*MP*)
17504      if test -d /usr/nec; then
17505	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17506	hardcode_shlibpath_var_GCJ=no
17507	runpath_var=LD_RUN_PATH
17508	hardcode_runpath_var=yes
17509	ld_shlibs_GCJ=yes
17510      fi
17511      ;;
17512
17513    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17514      no_undefined_flag_GCJ='${wl}-z,text'
17515      archive_cmds_need_lc_GCJ=no
17516      hardcode_shlibpath_var_GCJ=no
17517      runpath_var='LD_RUN_PATH'
17518
17519      if test "$GCC" = yes; then
17520	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17521	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17522      else
17523	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17524	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17525      fi
17526      ;;
17527
17528    sysv5* | sco3.2v5* | sco5v6*)
17529      # Note: We can NOT use -z defs as we might desire, because we do not
17530      # link with -lc, and that would cause any symbols used from libc to
17531      # always be unresolved, which means just about no library would
17532      # ever link correctly.  If we're not using GNU ld we use -z text
17533      # though, which does catch some bad symbols but isn't as heavy-handed
17534      # as -z defs.
17535      no_undefined_flag_GCJ='${wl}-z,text'
17536      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17537      archive_cmds_need_lc_GCJ=no
17538      hardcode_shlibpath_var_GCJ=no
17539      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17540      hardcode_libdir_separator_GCJ=':'
17541      link_all_deplibs_GCJ=yes
17542      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17543      runpath_var='LD_RUN_PATH'
17544
17545      if test "$GCC" = yes; then
17546	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17547	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17548      else
17549	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17550	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17551      fi
17552      ;;
17553
17554    uts4*)
17555      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17556      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17557      hardcode_shlibpath_var_GCJ=no
17558      ;;
17559
17560    *)
17561      ld_shlibs_GCJ=no
17562      ;;
17563    esac
17564  fi
17565
17566{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17567echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17568test "$ld_shlibs_GCJ" = no && can_build_shared=no
17569
17570#
17571# Do we need to explicitly link libc?
17572#
17573case "x$archive_cmds_need_lc_GCJ" in
17574x|xyes)
17575  # Assume -lc should be added
17576  archive_cmds_need_lc_GCJ=yes
17577
17578  if test "$enable_shared" = yes && test "$GCC" = yes; then
17579    case $archive_cmds_GCJ in
17580    *'~'*)
17581      # FIXME: we may have to deal with multi-command sequences.
17582      ;;
17583    '$CC '*)
17584      # Test whether the compiler implicitly links with -lc since on some
17585      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17586      # to ld, don't add -lc before -lgcc.
17587      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17588echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17589      $rm conftest*
17590      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17591
17592      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17593  (eval $ac_compile) 2>&5
17594  ac_status=$?
17595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596  (exit $ac_status); } 2>conftest.err; then
17597        soname=conftest
17598        lib=conftest
17599        libobjs=conftest.$ac_objext
17600        deplibs=
17601        wl=$lt_prog_compiler_wl_GCJ
17602	pic_flag=$lt_prog_compiler_pic_GCJ
17603        compiler_flags=-v
17604        linker_flags=-v
17605        verstring=
17606        output_objdir=.
17607        libname=conftest
17608        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17609        allow_undefined_flag_GCJ=
17610        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17611  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17612  ac_status=$?
17613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614  (exit $ac_status); }
17615        then
17616	  archive_cmds_need_lc_GCJ=no
17617        else
17618	  archive_cmds_need_lc_GCJ=yes
17619        fi
17620        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17621      else
17622        cat conftest.err 1>&5
17623      fi
17624      $rm conftest*
17625      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17626echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17627      ;;
17628    esac
17629  fi
17630  ;;
17631esac
17632
17633{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17634echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17635library_names_spec=
17636libname_spec='lib$name'
17637soname_spec=
17638shrext_cmds=".so"
17639postinstall_cmds=
17640postuninstall_cmds=
17641finish_cmds=
17642finish_eval=
17643shlibpath_var=
17644shlibpath_overrides_runpath=unknown
17645version_type=none
17646dynamic_linker="$host_os ld.so"
17647sys_lib_dlsearch_path_spec="/lib /usr/lib"
17648if test "$GCC" = yes; then
17649  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17650  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17651    # if the path contains ";" then we assume it to be the separator
17652    # otherwise default to the standard path separator (i.e. ":") - it is
17653    # assumed that no part of a normal pathname contains ";" but that should
17654    # okay in the real world where ";" in dirpaths is itself problematic.
17655    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17656  else
17657    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17658  fi
17659else
17660  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17661fi
17662need_lib_prefix=unknown
17663hardcode_into_libs=no
17664
17665# when you set need_version to no, make sure it does not cause -set_version
17666# flags to be left without arguments
17667need_version=unknown
17668
17669case $host_os in
17670aix3*)
17671  version_type=linux
17672  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17673  shlibpath_var=LIBPATH
17674
17675  # AIX 3 has no versioning support, so we append a major version to the name.
17676  soname_spec='${libname}${release}${shared_ext}$major'
17677  ;;
17678
17679aix4* | aix5*)
17680  version_type=linux
17681  need_lib_prefix=no
17682  need_version=no
17683  hardcode_into_libs=yes
17684  if test "$host_cpu" = ia64; then
17685    # AIX 5 supports IA64
17686    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17687    shlibpath_var=LD_LIBRARY_PATH
17688  else
17689    # With GCC up to 2.95.x, collect2 would create an import file
17690    # for dependence libraries.  The import file would start with
17691    # the line `#! .'.  This would cause the generated library to
17692    # depend on `.', always an invalid library.  This was fixed in
17693    # development snapshots of GCC prior to 3.0.
17694    case $host_os in
17695      aix4 | aix4.[01] | aix4.[01].*)
17696      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17697	   echo ' yes '
17698	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17699	:
17700      else
17701	can_build_shared=no
17702      fi
17703      ;;
17704    esac
17705    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17706    # soname into executable. Probably we can add versioning support to
17707    # collect2, so additional links can be useful in future.
17708    if test "$aix_use_runtimelinking" = yes; then
17709      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17710      # instead of lib<name>.a to let people know that these are not
17711      # typical AIX shared libraries.
17712      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17713    else
17714      # We preserve .a as extension for shared libraries through AIX4.2
17715      # and later when we are not doing run time linking.
17716      library_names_spec='${libname}${release}.a $libname.a'
17717      soname_spec='${libname}${release}${shared_ext}$major'
17718    fi
17719    shlibpath_var=LIBPATH
17720  fi
17721  ;;
17722
17723amigaos*)
17724  library_names_spec='$libname.ixlibrary $libname.a'
17725  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17726  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'
17727  ;;
17728
17729beos*)
17730  library_names_spec='${libname}${shared_ext}'
17731  dynamic_linker="$host_os ld.so"
17732  shlibpath_var=LIBRARY_PATH
17733  ;;
17734
17735bsdi[45]*)
17736  version_type=linux
17737  need_version=no
17738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17739  soname_spec='${libname}${release}${shared_ext}$major'
17740  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17741  shlibpath_var=LD_LIBRARY_PATH
17742  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17743  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17744  # the default ld.so.conf also contains /usr/contrib/lib and
17745  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17746  # libtool to hard-code these into programs
17747  ;;
17748
17749cygwin* | mingw* | pw32*)
17750  version_type=windows
17751  shrext_cmds=".dll"
17752  need_version=no
17753  need_lib_prefix=no
17754
17755  case $GCC,$host_os in
17756  yes,cygwin* | yes,mingw* | yes,pw32*)
17757    library_names_spec='$libname.dll.a'
17758    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17759    postinstall_cmds='base_file=`basename \${file}`~
17760      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17761      dldir=$destdir/`dirname \$dlpath`~
17762      test -d \$dldir || mkdir -p \$dldir~
17763      $install_prog $dir/$dlname \$dldir/$dlname~
17764      chmod a+x \$dldir/$dlname'
17765    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17766      dlpath=$dir/\$dldll~
17767       $rm \$dlpath'
17768    shlibpath_overrides_runpath=yes
17769
17770    case $host_os in
17771    cygwin*)
17772      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17773      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17774      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17775      ;;
17776    mingw*)
17777      # MinGW DLLs use traditional 'lib' prefix
17778      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17779      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17780      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17781        # It is most probably a Windows format PATH printed by
17782        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17783        # path with ; separators, and with drive letters. We can handle the
17784        # drive letters (cygwin fileutils understands them), so leave them,
17785        # especially as we might pass files found there to a mingw objdump,
17786        # which wouldn't understand a cygwinified path. Ahh.
17787        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17788      else
17789        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17790      fi
17791      ;;
17792    pw32*)
17793      # pw32 DLLs use 'pw' prefix rather than 'lib'
17794      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17795      ;;
17796    esac
17797    ;;
17798
17799  *)
17800    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17801    ;;
17802  esac
17803  dynamic_linker='Win32 ld.exe'
17804  # FIXME: first we should search . and the directory the executable is in
17805  shlibpath_var=PATH
17806  ;;
17807
17808darwin* | rhapsody*)
17809  dynamic_linker="$host_os dyld"
17810  version_type=darwin
17811  need_lib_prefix=no
17812  need_version=no
17813  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17814  soname_spec='${libname}${release}${major}$shared_ext'
17815  shlibpath_overrides_runpath=yes
17816  shlibpath_var=DYLD_LIBRARY_PATH
17817  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17818  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17819  if test "$GCC" = yes; then
17820    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"`
17821  else
17822    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17823  fi
17824  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17825  ;;
17826
17827dgux*)
17828  version_type=linux
17829  need_lib_prefix=no
17830  need_version=no
17831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17832  soname_spec='${libname}${release}${shared_ext}$major'
17833  shlibpath_var=LD_LIBRARY_PATH
17834  ;;
17835
17836freebsd1*)
17837  dynamic_linker=no
17838  ;;
17839
17840kfreebsd*-gnu)
17841  version_type=linux
17842  need_lib_prefix=no
17843  need_version=no
17844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17845  soname_spec='${libname}${release}${shared_ext}$major'
17846  shlibpath_var=LD_LIBRARY_PATH
17847  shlibpath_overrides_runpath=no
17848  hardcode_into_libs=yes
17849  dynamic_linker='GNU ld.so'
17850  ;;
17851
17852freebsd* | dragonfly*)
17853  # DragonFly does not have aout.  When/if they implement a new
17854  # versioning mechanism, adjust this.
17855  if test -x /usr/bin/objformat; then
17856    objformat=`/usr/bin/objformat`
17857  else
17858    case $host_os in
17859    freebsd[123]*) objformat=aout ;;
17860    *) objformat=elf ;;
17861    esac
17862  fi
17863  version_type=freebsd-$objformat
17864  case $version_type in
17865    freebsd-elf*)
17866      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17867      need_version=no
17868      need_lib_prefix=no
17869      ;;
17870    freebsd-*)
17871      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17872      need_version=yes
17873      ;;
17874  esac
17875  shlibpath_var=LD_LIBRARY_PATH
17876  case $host_os in
17877  freebsd2*)
17878    shlibpath_overrides_runpath=yes
17879    ;;
17880  freebsd3.[01]* | freebsdelf3.[01]*)
17881    shlibpath_overrides_runpath=yes
17882    hardcode_into_libs=yes
17883    ;;
17884  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17885  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17886    shlibpath_overrides_runpath=no
17887    hardcode_into_libs=yes
17888    ;;
17889  freebsd*) # from 4.6 on
17890    shlibpath_overrides_runpath=yes
17891    hardcode_into_libs=yes
17892    ;;
17893  esac
17894  ;;
17895
17896gnu*)
17897  version_type=linux
17898  need_lib_prefix=no
17899  need_version=no
17900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17901  soname_spec='${libname}${release}${shared_ext}$major'
17902  shlibpath_var=LD_LIBRARY_PATH
17903  hardcode_into_libs=yes
17904  ;;
17905
17906hpux9* | hpux10* | hpux11*)
17907  # Give a soname corresponding to the major version so that dld.sl refuses to
17908  # link against other versions.
17909  version_type=sunos
17910  need_lib_prefix=no
17911  need_version=no
17912  case $host_cpu in
17913  ia64*)
17914    shrext_cmds='.so'
17915    hardcode_into_libs=yes
17916    dynamic_linker="$host_os dld.so"
17917    shlibpath_var=LD_LIBRARY_PATH
17918    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17919    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17920    soname_spec='${libname}${release}${shared_ext}$major'
17921    if test "X$HPUX_IA64_MODE" = X32; then
17922      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17923    else
17924      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17925    fi
17926    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17927    ;;
17928   hppa*64*)
17929     shrext_cmds='.sl'
17930     hardcode_into_libs=yes
17931     dynamic_linker="$host_os dld.sl"
17932     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17933     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935     soname_spec='${libname}${release}${shared_ext}$major'
17936     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17937     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17938     ;;
17939   *)
17940    shrext_cmds='.sl'
17941    dynamic_linker="$host_os dld.sl"
17942    shlibpath_var=SHLIB_PATH
17943    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17944    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17945    soname_spec='${libname}${release}${shared_ext}$major'
17946    ;;
17947  esac
17948  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17949  postinstall_cmds='chmod 555 $lib'
17950  ;;
17951
17952interix3*)
17953  version_type=linux
17954  need_lib_prefix=no
17955  need_version=no
17956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17957  soname_spec='${libname}${release}${shared_ext}$major'
17958  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17959  shlibpath_var=LD_LIBRARY_PATH
17960  shlibpath_overrides_runpath=no
17961  hardcode_into_libs=yes
17962  ;;
17963
17964irix5* | irix6* | nonstopux*)
17965  case $host_os in
17966    nonstopux*) version_type=nonstopux ;;
17967    *)
17968	if test "$lt_cv_prog_gnu_ld" = yes; then
17969		version_type=linux
17970	else
17971		version_type=irix
17972	fi ;;
17973  esac
17974  need_lib_prefix=no
17975  need_version=no
17976  soname_spec='${libname}${release}${shared_ext}$major'
17977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17978  case $host_os in
17979  irix5* | nonstopux*)
17980    libsuff= shlibsuff=
17981    ;;
17982  *)
17983    case $LD in # libtool.m4 will add one of these switches to LD
17984    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17985      libsuff= shlibsuff= libmagic=32-bit;;
17986    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17987      libsuff=32 shlibsuff=N32 libmagic=N32;;
17988    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17989      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17990    *) libsuff= shlibsuff= libmagic=never-match;;
17991    esac
17992    ;;
17993  esac
17994  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17995  shlibpath_overrides_runpath=no
17996  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17997  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17998  hardcode_into_libs=yes
17999  ;;
18000
18001# No shared lib support for Linux oldld, aout, or coff.
18002linux*oldld* | linux*aout* | linux*coff*)
18003  dynamic_linker=no
18004  ;;
18005
18006# This must be Linux ELF.
18007linux*)
18008  version_type=linux
18009  need_lib_prefix=no
18010  need_version=no
18011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18012  soname_spec='${libname}${release}${shared_ext}$major'
18013  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18014  shlibpath_var=LD_LIBRARY_PATH
18015  shlibpath_overrides_runpath=no
18016  # This implies no fast_install, which is unacceptable.
18017  # Some rework will be needed to allow for fast_install
18018  # before this can be enabled.
18019  hardcode_into_libs=yes
18020
18021  # Append ld.so.conf contents to the search path
18022  if test -f /etc/ld.so.conf; then
18023    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' ' '`
18024    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18025  fi
18026
18027  # We used to test for /lib/ld.so.1 and disable shared libraries on
18028  # powerpc, because MkLinux only supported shared libraries with the
18029  # GNU dynamic linker.  Since this was broken with cross compilers,
18030  # most powerpc-linux boxes support dynamic linking these days and
18031  # people can always --disable-shared, the test was removed, and we
18032  # assume the GNU/Linux dynamic linker is in use.
18033  dynamic_linker='GNU/Linux ld.so'
18034  ;;
18035
18036knetbsd*-gnu)
18037  version_type=linux
18038  need_lib_prefix=no
18039  need_version=no
18040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18041  soname_spec='${libname}${release}${shared_ext}$major'
18042  shlibpath_var=LD_LIBRARY_PATH
18043  shlibpath_overrides_runpath=no
18044  hardcode_into_libs=yes
18045  dynamic_linker='GNU ld.so'
18046  ;;
18047
18048netbsd*)
18049  version_type=sunos
18050  need_lib_prefix=no
18051  need_version=no
18052  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18053    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18054    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18055    dynamic_linker='NetBSD (a.out) ld.so'
18056  else
18057    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18058    soname_spec='${libname}${release}${shared_ext}$major'
18059    dynamic_linker='NetBSD ld.elf_so'
18060  fi
18061  shlibpath_var=LD_LIBRARY_PATH
18062  shlibpath_overrides_runpath=yes
18063  hardcode_into_libs=yes
18064  ;;
18065
18066newsos6)
18067  version_type=linux
18068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18069  shlibpath_var=LD_LIBRARY_PATH
18070  shlibpath_overrides_runpath=yes
18071  ;;
18072
18073nto-qnx*)
18074  version_type=linux
18075  need_lib_prefix=no
18076  need_version=no
18077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18078  soname_spec='${libname}${release}${shared_ext}$major'
18079  shlibpath_var=LD_LIBRARY_PATH
18080  shlibpath_overrides_runpath=yes
18081  ;;
18082
18083openbsd*)
18084  version_type=sunos
18085  sys_lib_dlsearch_path_spec="/usr/lib"
18086  need_lib_prefix=no
18087  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18088  case $host_os in
18089    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18090    *)                         need_version=no  ;;
18091  esac
18092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18093  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18094  shlibpath_var=LD_LIBRARY_PATH
18095  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18096    case $host_os in
18097      openbsd2.[89] | openbsd2.[89].*)
18098	shlibpath_overrides_runpath=no
18099	;;
18100      *)
18101	shlibpath_overrides_runpath=yes
18102	;;
18103      esac
18104  else
18105    shlibpath_overrides_runpath=yes
18106  fi
18107  ;;
18108
18109os2*)
18110  libname_spec='$name'
18111  shrext_cmds=".dll"
18112  need_lib_prefix=no
18113  library_names_spec='$libname${shared_ext} $libname.a'
18114  dynamic_linker='OS/2 ld.exe'
18115  shlibpath_var=LIBPATH
18116  ;;
18117
18118osf3* | osf4* | osf5*)
18119  version_type=osf
18120  need_lib_prefix=no
18121  need_version=no
18122  soname_spec='${libname}${release}${shared_ext}$major'
18123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18124  shlibpath_var=LD_LIBRARY_PATH
18125  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18126  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18127  ;;
18128
18129solaris*)
18130  version_type=linux
18131  need_lib_prefix=no
18132  need_version=no
18133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18134  soname_spec='${libname}${release}${shared_ext}$major'
18135  shlibpath_var=LD_LIBRARY_PATH
18136  shlibpath_overrides_runpath=yes
18137  hardcode_into_libs=yes
18138  # ldd complains unless libraries are executable
18139  postinstall_cmds='chmod +x $lib'
18140  ;;
18141
18142sunos4*)
18143  version_type=sunos
18144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18145  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18146  shlibpath_var=LD_LIBRARY_PATH
18147  shlibpath_overrides_runpath=yes
18148  if test "$with_gnu_ld" = yes; then
18149    need_lib_prefix=no
18150  fi
18151  need_version=yes
18152  ;;
18153
18154sysv4 | sysv4.3*)
18155  version_type=linux
18156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157  soname_spec='${libname}${release}${shared_ext}$major'
18158  shlibpath_var=LD_LIBRARY_PATH
18159  case $host_vendor in
18160    sni)
18161      shlibpath_overrides_runpath=no
18162      need_lib_prefix=no
18163      export_dynamic_flag_spec='${wl}-Blargedynsym'
18164      runpath_var=LD_RUN_PATH
18165      ;;
18166    siemens)
18167      need_lib_prefix=no
18168      ;;
18169    motorola)
18170      need_lib_prefix=no
18171      need_version=no
18172      shlibpath_overrides_runpath=no
18173      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18174      ;;
18175  esac
18176  ;;
18177
18178sysv4*MP*)
18179  if test -d /usr/nec ;then
18180    version_type=linux
18181    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18182    soname_spec='$libname${shared_ext}.$major'
18183    shlibpath_var=LD_LIBRARY_PATH
18184  fi
18185  ;;
18186
18187sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18188  version_type=freebsd-elf
18189  need_lib_prefix=no
18190  need_version=no
18191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18192  soname_spec='${libname}${release}${shared_ext}$major'
18193  shlibpath_var=LD_LIBRARY_PATH
18194  hardcode_into_libs=yes
18195  if test "$with_gnu_ld" = yes; then
18196    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18197    shlibpath_overrides_runpath=no
18198  else
18199    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18200    shlibpath_overrides_runpath=yes
18201    case $host_os in
18202      sco3.2v5*)
18203        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18204	;;
18205    esac
18206  fi
18207  sys_lib_dlsearch_path_spec='/usr/lib'
18208  ;;
18209
18210uts4*)
18211  version_type=linux
18212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213  soname_spec='${libname}${release}${shared_ext}$major'
18214  shlibpath_var=LD_LIBRARY_PATH
18215  ;;
18216
18217*)
18218  dynamic_linker=no
18219  ;;
18220esac
18221{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18222echo "${ECHO_T}$dynamic_linker" >&6; }
18223test "$dynamic_linker" = no && can_build_shared=no
18224
18225variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18226if test "$GCC" = yes; then
18227  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18228fi
18229
18230{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18231echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18232hardcode_action_GCJ=
18233if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18234   test -n "$runpath_var_GCJ" || \
18235   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18236
18237  # We can hardcode non-existant directories.
18238  if test "$hardcode_direct_GCJ" != no &&
18239     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18240     # have to relink, otherwise we might link with an installed library
18241     # when we should be linking with a yet-to-be-installed one
18242     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18243     test "$hardcode_minus_L_GCJ" != no; then
18244    # Linking always hardcodes the temporary library directory.
18245    hardcode_action_GCJ=relink
18246  else
18247    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18248    hardcode_action_GCJ=immediate
18249  fi
18250else
18251  # We cannot hardcode anything, or else we can only hardcode existing
18252  # directories.
18253  hardcode_action_GCJ=unsupported
18254fi
18255{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18256echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18257
18258if test "$hardcode_action_GCJ" = relink; then
18259  # Fast installation is not supported
18260  enable_fast_install=no
18261elif test "$shlibpath_overrides_runpath" = yes ||
18262     test "$enable_shared" = no; then
18263  # Fast installation is not necessary
18264  enable_fast_install=needless
18265fi
18266
18267
18268# The else clause should only fire when bootstrapping the
18269# libtool distribution, otherwise you forgot to ship ltmain.sh
18270# with your package, and you will get complaints that there are
18271# no rules to generate ltmain.sh.
18272if test -f "$ltmain"; then
18273  # See if we are running on zsh, and set the options which allow our commands through
18274  # without removal of \ escapes.
18275  if test -n "${ZSH_VERSION+set}" ; then
18276    setopt NO_GLOB_SUBST
18277  fi
18278  # Now quote all the things that may contain metacharacters while being
18279  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18280  # variables and quote the copies for generation of the libtool script.
18281  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18282    SED SHELL STRIP \
18283    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18284    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18285    deplibs_check_method reload_flag reload_cmds need_locks \
18286    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18287    lt_cv_sys_global_symbol_to_c_name_address \
18288    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18289    old_postinstall_cmds old_postuninstall_cmds \
18290    compiler_GCJ \
18291    CC_GCJ \
18292    LD_GCJ \
18293    lt_prog_compiler_wl_GCJ \
18294    lt_prog_compiler_pic_GCJ \
18295    lt_prog_compiler_static_GCJ \
18296    lt_prog_compiler_no_builtin_flag_GCJ \
18297    export_dynamic_flag_spec_GCJ \
18298    thread_safe_flag_spec_GCJ \
18299    whole_archive_flag_spec_GCJ \
18300    enable_shared_with_static_runtimes_GCJ \
18301    old_archive_cmds_GCJ \
18302    old_archive_from_new_cmds_GCJ \
18303    predep_objects_GCJ \
18304    postdep_objects_GCJ \
18305    predeps_GCJ \
18306    postdeps_GCJ \
18307    compiler_lib_search_path_GCJ \
18308    archive_cmds_GCJ \
18309    archive_expsym_cmds_GCJ \
18310    postinstall_cmds_GCJ \
18311    postuninstall_cmds_GCJ \
18312    old_archive_from_expsyms_cmds_GCJ \
18313    allow_undefined_flag_GCJ \
18314    no_undefined_flag_GCJ \
18315    export_symbols_cmds_GCJ \
18316    hardcode_libdir_flag_spec_GCJ \
18317    hardcode_libdir_flag_spec_ld_GCJ \
18318    hardcode_libdir_separator_GCJ \
18319    hardcode_automatic_GCJ \
18320    module_cmds_GCJ \
18321    module_expsym_cmds_GCJ \
18322    lt_cv_prog_compiler_c_o_GCJ \
18323    exclude_expsyms_GCJ \
18324    include_expsyms_GCJ; do
18325
18326    case $var in
18327    old_archive_cmds_GCJ | \
18328    old_archive_from_new_cmds_GCJ | \
18329    archive_cmds_GCJ | \
18330    archive_expsym_cmds_GCJ | \
18331    module_cmds_GCJ | \
18332    module_expsym_cmds_GCJ | \
18333    old_archive_from_expsyms_cmds_GCJ | \
18334    export_symbols_cmds_GCJ | \
18335    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18336    postinstall_cmds | postuninstall_cmds | \
18337    old_postinstall_cmds | old_postuninstall_cmds | \
18338    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18339      # Double-quote double-evaled strings.
18340      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18341      ;;
18342    *)
18343      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18344      ;;
18345    esac
18346  done
18347
18348  case $lt_echo in
18349  *'\$0 --fallback-echo"')
18350    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18351    ;;
18352  esac
18353
18354cfgfile="$ofile"
18355
18356  cat <<__EOF__ >> "$cfgfile"
18357# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18358
18359# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18360
18361# Shell to use when invoking shell scripts.
18362SHELL=$lt_SHELL
18363
18364# Whether or not to build shared libraries.
18365build_libtool_libs=$enable_shared
18366
18367# Whether or not to build static libraries.
18368build_old_libs=$enable_static
18369
18370# Whether or not to add -lc for building shared libraries.
18371build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18372
18373# Whether or not to disallow shared libs when runtime libs are static
18374allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18375
18376# Whether or not to optimize for fast installation.
18377fast_install=$enable_fast_install
18378
18379# The host system.
18380host_alias=$host_alias
18381host=$host
18382host_os=$host_os
18383
18384# The build system.
18385build_alias=$build_alias
18386build=$build
18387build_os=$build_os
18388
18389# An echo program that does not interpret backslashes.
18390echo=$lt_echo
18391
18392# The archiver.
18393AR=$lt_AR
18394AR_FLAGS=$lt_AR_FLAGS
18395
18396# A C compiler.
18397LTCC=$lt_LTCC
18398
18399# LTCC compiler flags.
18400LTCFLAGS=$lt_LTCFLAGS
18401
18402# A language-specific compiler.
18403CC=$lt_compiler_GCJ
18404
18405# Is the compiler the GNU C compiler?
18406with_gcc=$GCC_GCJ
18407
18408# An ERE matcher.
18409EGREP=$lt_EGREP
18410
18411# The linker used to build libraries.
18412LD=$lt_LD_GCJ
18413
18414# Whether we need hard or soft links.
18415LN_S=$lt_LN_S
18416
18417# A BSD-compatible nm program.
18418NM=$lt_NM
18419
18420# A symbol stripping program
18421STRIP=$lt_STRIP
18422
18423# Used to examine libraries when file_magic_cmd begins "file"
18424MAGIC_CMD=$MAGIC_CMD
18425
18426# Used on cygwin: DLL creation program.
18427DLLTOOL="$DLLTOOL"
18428
18429# Used on cygwin: object dumper.
18430OBJDUMP="$OBJDUMP"
18431
18432# Used on cygwin: assembler.
18433AS="$AS"
18434
18435# The name of the directory that contains temporary libtool files.
18436objdir=$objdir
18437
18438# How to create reloadable object files.
18439reload_flag=$lt_reload_flag
18440reload_cmds=$lt_reload_cmds
18441
18442# How to pass a linker flag through the compiler.
18443wl=$lt_lt_prog_compiler_wl_GCJ
18444
18445# Object file suffix (normally "o").
18446objext="$ac_objext"
18447
18448# Old archive suffix (normally "a").
18449libext="$libext"
18450
18451# Shared library suffix (normally ".so").
18452shrext_cmds='$shrext_cmds'
18453
18454# Executable file suffix (normally "").
18455exeext="$exeext"
18456
18457# Additional compiler flags for building library objects.
18458pic_flag=$lt_lt_prog_compiler_pic_GCJ
18459pic_mode=$pic_mode
18460
18461# What is the maximum length of a command?
18462max_cmd_len=$lt_cv_sys_max_cmd_len
18463
18464# Does compiler simultaneously support -c and -o options?
18465compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18466
18467# Must we lock files when doing compilation?
18468need_locks=$lt_need_locks
18469
18470# Do we need the lib prefix for modules?
18471need_lib_prefix=$need_lib_prefix
18472
18473# Do we need a version for libraries?
18474need_version=$need_version
18475
18476# Whether dlopen is supported.
18477dlopen_support=$enable_dlopen
18478
18479# Whether dlopen of programs is supported.
18480dlopen_self=$enable_dlopen_self
18481
18482# Whether dlopen of statically linked programs is supported.
18483dlopen_self_static=$enable_dlopen_self_static
18484
18485# Compiler flag to prevent dynamic linking.
18486link_static_flag=$lt_lt_prog_compiler_static_GCJ
18487
18488# Compiler flag to turn off builtin functions.
18489no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18490
18491# Compiler flag to allow reflexive dlopens.
18492export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18493
18494# Compiler flag to generate shared objects directly from archives.
18495whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18496
18497# Compiler flag to generate thread-safe objects.
18498thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18499
18500# Library versioning type.
18501version_type=$version_type
18502
18503# Format of library name prefix.
18504libname_spec=$lt_libname_spec
18505
18506# List of archive names.  First name is the real one, the rest are links.
18507# The last name is the one that the linker finds with -lNAME.
18508library_names_spec=$lt_library_names_spec
18509
18510# The coded name of the library, if different from the real name.
18511soname_spec=$lt_soname_spec
18512
18513# Commands used to build and install an old-style archive.
18514RANLIB=$lt_RANLIB
18515old_archive_cmds=$lt_old_archive_cmds_GCJ
18516old_postinstall_cmds=$lt_old_postinstall_cmds
18517old_postuninstall_cmds=$lt_old_postuninstall_cmds
18518
18519# Create an old-style archive from a shared archive.
18520old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18521
18522# Create a temporary old-style archive to link instead of a shared archive.
18523old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18524
18525# Commands used to build and install a shared archive.
18526archive_cmds=$lt_archive_cmds_GCJ
18527archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18528postinstall_cmds=$lt_postinstall_cmds
18529postuninstall_cmds=$lt_postuninstall_cmds
18530
18531# Commands used to build a loadable module (assumed same as above if empty)
18532module_cmds=$lt_module_cmds_GCJ
18533module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18534
18535# Commands to strip libraries.
18536old_striplib=$lt_old_striplib
18537striplib=$lt_striplib
18538
18539# Dependencies to place before the objects being linked to create a
18540# shared library.
18541predep_objects=$lt_predep_objects_GCJ
18542
18543# Dependencies to place after the objects being linked to create a
18544# shared library.
18545postdep_objects=$lt_postdep_objects_GCJ
18546
18547# Dependencies to place before the objects being linked to create a
18548# shared library.
18549predeps=$lt_predeps_GCJ
18550
18551# Dependencies to place after the objects being linked to create a
18552# shared library.
18553postdeps=$lt_postdeps_GCJ
18554
18555# The library search path used internally by the compiler when linking
18556# a shared library.
18557compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18558
18559# Method to check whether dependent libraries are shared objects.
18560deplibs_check_method=$lt_deplibs_check_method
18561
18562# Command to use when deplibs_check_method == file_magic.
18563file_magic_cmd=$lt_file_magic_cmd
18564
18565# Flag that allows shared libraries with undefined symbols to be built.
18566allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18567
18568# Flag that forces no undefined symbols.
18569no_undefined_flag=$lt_no_undefined_flag_GCJ
18570
18571# Commands used to finish a libtool library installation in a directory.
18572finish_cmds=$lt_finish_cmds
18573
18574# Same as above, but a single script fragment to be evaled but not shown.
18575finish_eval=$lt_finish_eval
18576
18577# Take the output of nm and produce a listing of raw symbols and C names.
18578global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18579
18580# Transform the output of nm in a proper C declaration
18581global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18582
18583# Transform the output of nm in a C name address pair
18584global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18585
18586# This is the shared library runtime path variable.
18587runpath_var=$runpath_var
18588
18589# This is the shared library path variable.
18590shlibpath_var=$shlibpath_var
18591
18592# Is shlibpath searched before the hard-coded library search path?
18593shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18594
18595# How to hardcode a shared library path into an executable.
18596hardcode_action=$hardcode_action_GCJ
18597
18598# Whether we should hardcode library paths into libraries.
18599hardcode_into_libs=$hardcode_into_libs
18600
18601# Flag to hardcode \$libdir into a binary during linking.
18602# This must work even if \$libdir does not exist.
18603hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18604
18605# If ld is used when linking, flag to hardcode \$libdir into
18606# a binary during linking. This must work even if \$libdir does
18607# not exist.
18608hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18609
18610# Whether we need a single -rpath flag with a separated argument.
18611hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18612
18613# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18614# resulting binary.
18615hardcode_direct=$hardcode_direct_GCJ
18616
18617# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18618# resulting binary.
18619hardcode_minus_L=$hardcode_minus_L_GCJ
18620
18621# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18622# the resulting binary.
18623hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18624
18625# Set to yes if building a shared library automatically hardcodes DIR into the library
18626# and all subsequent libraries and executables linked against it.
18627hardcode_automatic=$hardcode_automatic_GCJ
18628
18629# Variables whose values should be saved in libtool wrapper scripts and
18630# restored at relink time.
18631variables_saved_for_relink="$variables_saved_for_relink"
18632
18633# Whether libtool must link a program against all its dependency libraries.
18634link_all_deplibs=$link_all_deplibs_GCJ
18635
18636# Compile-time system search path for libraries
18637sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18638
18639# Run-time system search path for libraries
18640sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18641
18642# Fix the shell variable \$srcfile for the compiler.
18643fix_srcfile_path="$fix_srcfile_path_GCJ"
18644
18645# Set to yes if exported symbols are required.
18646always_export_symbols=$always_export_symbols_GCJ
18647
18648# The commands to list exported symbols.
18649export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18650
18651# The commands to extract the exported symbol list from a shared archive.
18652extract_expsyms_cmds=$lt_extract_expsyms_cmds
18653
18654# Symbols that should not be listed in the preloaded symbols.
18655exclude_expsyms=$lt_exclude_expsyms_GCJ
18656
18657# Symbols that must always be exported.
18658include_expsyms=$lt_include_expsyms_GCJ
18659
18660# ### END LIBTOOL TAG CONFIG: $tagname
18661
18662__EOF__
18663
18664
18665else
18666  # If there is no Makefile yet, we rely on a make rule to execute
18667  # `config.status --recheck' to rerun these tests and create the
18668  # libtool script then.
18669  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18670  if test -f "$ltmain_in"; then
18671    test -f Makefile && make "$ltmain"
18672  fi
18673fi
18674
18675
18676ac_ext=c
18677ac_cpp='$CPP $CPPFLAGS'
18678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18680ac_compiler_gnu=$ac_cv_c_compiler_gnu
18681
18682CC="$lt_save_CC"
18683
18684	else
18685	  tagname=""
18686	fi
18687	;;
18688
18689      RC)
18690
18691
18692# Source file extension for RC test sources.
18693ac_ext=rc
18694
18695# Object file extension for compiled RC test sources.
18696objext=o
18697objext_RC=$objext
18698
18699# Code to be used in simple compile tests
18700lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18701
18702# Code to be used in simple link tests
18703lt_simple_link_test_code="$lt_simple_compile_test_code"
18704
18705# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18706
18707# If no C compiler was specified, use CC.
18708LTCC=${LTCC-"$CC"}
18709
18710# If no C compiler flags were specified, use CFLAGS.
18711LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18712
18713# Allow CC to be a program name with arguments.
18714compiler=$CC
18715
18716
18717# save warnings/boilerplate of simple test code
18718ac_outfile=conftest.$ac_objext
18719printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18720eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18721_lt_compiler_boilerplate=`cat conftest.err`
18722$rm conftest*
18723
18724ac_outfile=conftest.$ac_objext
18725printf "$lt_simple_link_test_code" >conftest.$ac_ext
18726eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18727_lt_linker_boilerplate=`cat conftest.err`
18728$rm conftest*
18729
18730
18731# Allow CC to be a program name with arguments.
18732lt_save_CC="$CC"
18733CC=${RC-"windres"}
18734compiler=$CC
18735compiler_RC=$CC
18736for cc_temp in $compiler""; do
18737  case $cc_temp in
18738    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18739    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18740    \-*) ;;
18741    *) break;;
18742  esac
18743done
18744cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18745
18746lt_cv_prog_compiler_c_o_RC=yes
18747
18748# The else clause should only fire when bootstrapping the
18749# libtool distribution, otherwise you forgot to ship ltmain.sh
18750# with your package, and you will get complaints that there are
18751# no rules to generate ltmain.sh.
18752if test -f "$ltmain"; then
18753  # See if we are running on zsh, and set the options which allow our commands through
18754  # without removal of \ escapes.
18755  if test -n "${ZSH_VERSION+set}" ; then
18756    setopt NO_GLOB_SUBST
18757  fi
18758  # Now quote all the things that may contain metacharacters while being
18759  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18760  # variables and quote the copies for generation of the libtool script.
18761  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18762    SED SHELL STRIP \
18763    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18764    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18765    deplibs_check_method reload_flag reload_cmds need_locks \
18766    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18767    lt_cv_sys_global_symbol_to_c_name_address \
18768    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18769    old_postinstall_cmds old_postuninstall_cmds \
18770    compiler_RC \
18771    CC_RC \
18772    LD_RC \
18773    lt_prog_compiler_wl_RC \
18774    lt_prog_compiler_pic_RC \
18775    lt_prog_compiler_static_RC \
18776    lt_prog_compiler_no_builtin_flag_RC \
18777    export_dynamic_flag_spec_RC \
18778    thread_safe_flag_spec_RC \
18779    whole_archive_flag_spec_RC \
18780    enable_shared_with_static_runtimes_RC \
18781    old_archive_cmds_RC \
18782    old_archive_from_new_cmds_RC \
18783    predep_objects_RC \
18784    postdep_objects_RC \
18785    predeps_RC \
18786    postdeps_RC \
18787    compiler_lib_search_path_RC \
18788    archive_cmds_RC \
18789    archive_expsym_cmds_RC \
18790    postinstall_cmds_RC \
18791    postuninstall_cmds_RC \
18792    old_archive_from_expsyms_cmds_RC \
18793    allow_undefined_flag_RC \
18794    no_undefined_flag_RC \
18795    export_symbols_cmds_RC \
18796    hardcode_libdir_flag_spec_RC \
18797    hardcode_libdir_flag_spec_ld_RC \
18798    hardcode_libdir_separator_RC \
18799    hardcode_automatic_RC \
18800    module_cmds_RC \
18801    module_expsym_cmds_RC \
18802    lt_cv_prog_compiler_c_o_RC \
18803    exclude_expsyms_RC \
18804    include_expsyms_RC; do
18805
18806    case $var in
18807    old_archive_cmds_RC | \
18808    old_archive_from_new_cmds_RC | \
18809    archive_cmds_RC | \
18810    archive_expsym_cmds_RC | \
18811    module_cmds_RC | \
18812    module_expsym_cmds_RC | \
18813    old_archive_from_expsyms_cmds_RC | \
18814    export_symbols_cmds_RC | \
18815    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18816    postinstall_cmds | postuninstall_cmds | \
18817    old_postinstall_cmds | old_postuninstall_cmds | \
18818    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18819      # Double-quote double-evaled strings.
18820      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18821      ;;
18822    *)
18823      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18824      ;;
18825    esac
18826  done
18827
18828  case $lt_echo in
18829  *'\$0 --fallback-echo"')
18830    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18831    ;;
18832  esac
18833
18834cfgfile="$ofile"
18835
18836  cat <<__EOF__ >> "$cfgfile"
18837# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18838
18839# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18840
18841# Shell to use when invoking shell scripts.
18842SHELL=$lt_SHELL
18843
18844# Whether or not to build shared libraries.
18845build_libtool_libs=$enable_shared
18846
18847# Whether or not to build static libraries.
18848build_old_libs=$enable_static
18849
18850# Whether or not to add -lc for building shared libraries.
18851build_libtool_need_lc=$archive_cmds_need_lc_RC
18852
18853# Whether or not to disallow shared libs when runtime libs are static
18854allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18855
18856# Whether or not to optimize for fast installation.
18857fast_install=$enable_fast_install
18858
18859# The host system.
18860host_alias=$host_alias
18861host=$host
18862host_os=$host_os
18863
18864# The build system.
18865build_alias=$build_alias
18866build=$build
18867build_os=$build_os
18868
18869# An echo program that does not interpret backslashes.
18870echo=$lt_echo
18871
18872# The archiver.
18873AR=$lt_AR
18874AR_FLAGS=$lt_AR_FLAGS
18875
18876# A C compiler.
18877LTCC=$lt_LTCC
18878
18879# LTCC compiler flags.
18880LTCFLAGS=$lt_LTCFLAGS
18881
18882# A language-specific compiler.
18883CC=$lt_compiler_RC
18884
18885# Is the compiler the GNU C compiler?
18886with_gcc=$GCC_RC
18887
18888# An ERE matcher.
18889EGREP=$lt_EGREP
18890
18891# The linker used to build libraries.
18892LD=$lt_LD_RC
18893
18894# Whether we need hard or soft links.
18895LN_S=$lt_LN_S
18896
18897# A BSD-compatible nm program.
18898NM=$lt_NM
18899
18900# A symbol stripping program
18901STRIP=$lt_STRIP
18902
18903# Used to examine libraries when file_magic_cmd begins "file"
18904MAGIC_CMD=$MAGIC_CMD
18905
18906# Used on cygwin: DLL creation program.
18907DLLTOOL="$DLLTOOL"
18908
18909# Used on cygwin: object dumper.
18910OBJDUMP="$OBJDUMP"
18911
18912# Used on cygwin: assembler.
18913AS="$AS"
18914
18915# The name of the directory that contains temporary libtool files.
18916objdir=$objdir
18917
18918# How to create reloadable object files.
18919reload_flag=$lt_reload_flag
18920reload_cmds=$lt_reload_cmds
18921
18922# How to pass a linker flag through the compiler.
18923wl=$lt_lt_prog_compiler_wl_RC
18924
18925# Object file suffix (normally "o").
18926objext="$ac_objext"
18927
18928# Old archive suffix (normally "a").
18929libext="$libext"
18930
18931# Shared library suffix (normally ".so").
18932shrext_cmds='$shrext_cmds'
18933
18934# Executable file suffix (normally "").
18935exeext="$exeext"
18936
18937# Additional compiler flags for building library objects.
18938pic_flag=$lt_lt_prog_compiler_pic_RC
18939pic_mode=$pic_mode
18940
18941# What is the maximum length of a command?
18942max_cmd_len=$lt_cv_sys_max_cmd_len
18943
18944# Does compiler simultaneously support -c and -o options?
18945compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18946
18947# Must we lock files when doing compilation?
18948need_locks=$lt_need_locks
18949
18950# Do we need the lib prefix for modules?
18951need_lib_prefix=$need_lib_prefix
18952
18953# Do we need a version for libraries?
18954need_version=$need_version
18955
18956# Whether dlopen is supported.
18957dlopen_support=$enable_dlopen
18958
18959# Whether dlopen of programs is supported.
18960dlopen_self=$enable_dlopen_self
18961
18962# Whether dlopen of statically linked programs is supported.
18963dlopen_self_static=$enable_dlopen_self_static
18964
18965# Compiler flag to prevent dynamic linking.
18966link_static_flag=$lt_lt_prog_compiler_static_RC
18967
18968# Compiler flag to turn off builtin functions.
18969no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18970
18971# Compiler flag to allow reflexive dlopens.
18972export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18973
18974# Compiler flag to generate shared objects directly from archives.
18975whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18976
18977# Compiler flag to generate thread-safe objects.
18978thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18979
18980# Library versioning type.
18981version_type=$version_type
18982
18983# Format of library name prefix.
18984libname_spec=$lt_libname_spec
18985
18986# List of archive names.  First name is the real one, the rest are links.
18987# The last name is the one that the linker finds with -lNAME.
18988library_names_spec=$lt_library_names_spec
18989
18990# The coded name of the library, if different from the real name.
18991soname_spec=$lt_soname_spec
18992
18993# Commands used to build and install an old-style archive.
18994RANLIB=$lt_RANLIB
18995old_archive_cmds=$lt_old_archive_cmds_RC
18996old_postinstall_cmds=$lt_old_postinstall_cmds
18997old_postuninstall_cmds=$lt_old_postuninstall_cmds
18998
18999# Create an old-style archive from a shared archive.
19000old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19001
19002# Create a temporary old-style archive to link instead of a shared archive.
19003old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19004
19005# Commands used to build and install a shared archive.
19006archive_cmds=$lt_archive_cmds_RC
19007archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19008postinstall_cmds=$lt_postinstall_cmds
19009postuninstall_cmds=$lt_postuninstall_cmds
19010
19011# Commands used to build a loadable module (assumed same as above if empty)
19012module_cmds=$lt_module_cmds_RC
19013module_expsym_cmds=$lt_module_expsym_cmds_RC
19014
19015# Commands to strip libraries.
19016old_striplib=$lt_old_striplib
19017striplib=$lt_striplib
19018
19019# Dependencies to place before the objects being linked to create a
19020# shared library.
19021predep_objects=$lt_predep_objects_RC
19022
19023# Dependencies to place after the objects being linked to create a
19024# shared library.
19025postdep_objects=$lt_postdep_objects_RC
19026
19027# Dependencies to place before the objects being linked to create a
19028# shared library.
19029predeps=$lt_predeps_RC
19030
19031# Dependencies to place after the objects being linked to create a
19032# shared library.
19033postdeps=$lt_postdeps_RC
19034
19035# The library search path used internally by the compiler when linking
19036# a shared library.
19037compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19038
19039# Method to check whether dependent libraries are shared objects.
19040deplibs_check_method=$lt_deplibs_check_method
19041
19042# Command to use when deplibs_check_method == file_magic.
19043file_magic_cmd=$lt_file_magic_cmd
19044
19045# Flag that allows shared libraries with undefined symbols to be built.
19046allow_undefined_flag=$lt_allow_undefined_flag_RC
19047
19048# Flag that forces no undefined symbols.
19049no_undefined_flag=$lt_no_undefined_flag_RC
19050
19051# Commands used to finish a libtool library installation in a directory.
19052finish_cmds=$lt_finish_cmds
19053
19054# Same as above, but a single script fragment to be evaled but not shown.
19055finish_eval=$lt_finish_eval
19056
19057# Take the output of nm and produce a listing of raw symbols and C names.
19058global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19059
19060# Transform the output of nm in a proper C declaration
19061global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19062
19063# Transform the output of nm in a C name address pair
19064global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19065
19066# This is the shared library runtime path variable.
19067runpath_var=$runpath_var
19068
19069# This is the shared library path variable.
19070shlibpath_var=$shlibpath_var
19071
19072# Is shlibpath searched before the hard-coded library search path?
19073shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19074
19075# How to hardcode a shared library path into an executable.
19076hardcode_action=$hardcode_action_RC
19077
19078# Whether we should hardcode library paths into libraries.
19079hardcode_into_libs=$hardcode_into_libs
19080
19081# Flag to hardcode \$libdir into a binary during linking.
19082# This must work even if \$libdir does not exist.
19083hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19084
19085# If ld is used when linking, flag to hardcode \$libdir into
19086# a binary during linking. This must work even if \$libdir does
19087# not exist.
19088hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19089
19090# Whether we need a single -rpath flag with a separated argument.
19091hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19092
19093# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19094# resulting binary.
19095hardcode_direct=$hardcode_direct_RC
19096
19097# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19098# resulting binary.
19099hardcode_minus_L=$hardcode_minus_L_RC
19100
19101# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19102# the resulting binary.
19103hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19104
19105# Set to yes if building a shared library automatically hardcodes DIR into the library
19106# and all subsequent libraries and executables linked against it.
19107hardcode_automatic=$hardcode_automatic_RC
19108
19109# Variables whose values should be saved in libtool wrapper scripts and
19110# restored at relink time.
19111variables_saved_for_relink="$variables_saved_for_relink"
19112
19113# Whether libtool must link a program against all its dependency libraries.
19114link_all_deplibs=$link_all_deplibs_RC
19115
19116# Compile-time system search path for libraries
19117sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19118
19119# Run-time system search path for libraries
19120sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19121
19122# Fix the shell variable \$srcfile for the compiler.
19123fix_srcfile_path="$fix_srcfile_path_RC"
19124
19125# Set to yes if exported symbols are required.
19126always_export_symbols=$always_export_symbols_RC
19127
19128# The commands to list exported symbols.
19129export_symbols_cmds=$lt_export_symbols_cmds_RC
19130
19131# The commands to extract the exported symbol list from a shared archive.
19132extract_expsyms_cmds=$lt_extract_expsyms_cmds
19133
19134# Symbols that should not be listed in the preloaded symbols.
19135exclude_expsyms=$lt_exclude_expsyms_RC
19136
19137# Symbols that must always be exported.
19138include_expsyms=$lt_include_expsyms_RC
19139
19140# ### END LIBTOOL TAG CONFIG: $tagname
19141
19142__EOF__
19143
19144
19145else
19146  # If there is no Makefile yet, we rely on a make rule to execute
19147  # `config.status --recheck' to rerun these tests and create the
19148  # libtool script then.
19149  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19150  if test -f "$ltmain_in"; then
19151    test -f Makefile && make "$ltmain"
19152  fi
19153fi
19154
19155
19156ac_ext=c
19157ac_cpp='$CPP $CPPFLAGS'
19158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19160ac_compiler_gnu=$ac_cv_c_compiler_gnu
19161
19162CC="$lt_save_CC"
19163
19164	;;
19165
19166      *)
19167	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19168echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19169   { (exit 1); exit 1; }; }
19170	;;
19171      esac
19172
19173      # Append the new tag name to the list of available tags.
19174      if test -n "$tagname" ; then
19175      available_tags="$available_tags $tagname"
19176    fi
19177    fi
19178  done
19179  IFS="$lt_save_ifs"
19180
19181  # Now substitute the updated list of available tags.
19182  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19183    mv "${ofile}T" "$ofile"
19184    chmod +x "$ofile"
19185  else
19186    rm -f "${ofile}T"
19187    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19188echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19189   { (exit 1); exit 1; }; }
19190  fi
19191fi
19192
19193
19194
19195# This can be used to rebuild libtool when needed
19196LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19197
19198# Always use our own libtool.
19199LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19200
19201# Prevent multiple expansion
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224if  test "x$GCC" = xyes ; then
19225    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
19226-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
19227-Wbad-function-cast"
19228    case `gcc -dumpversion` in
19229    3.4.* | 4.*)
19230	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
19231	;;
19232    esac
19233else
19234    { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
19235echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
19236if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
19237  echo $ECHO_N "(cached) $ECHO_C" >&6
19238else
19239  cat >conftest.$ac_ext <<_ACEOF
19240/* confdefs.h.  */
19241_ACEOF
19242cat confdefs.h >>conftest.$ac_ext
19243cat >>conftest.$ac_ext <<_ACEOF
19244/* end confdefs.h.  */
19245$ac_includes_default
19246int
19247main ()
19248{
19249#ifndef __SUNPRO_C
19250  (void) __SUNPRO_C;
19251#endif
19252
19253  ;
19254  return 0;
19255}
19256_ACEOF
19257rm -f conftest.$ac_objext
19258if { (ac_try="$ac_compile"
19259case "(($ac_try" in
19260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261  *) ac_try_echo=$ac_try;;
19262esac
19263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264  (eval "$ac_compile") 2>conftest.er1
19265  ac_status=$?
19266  grep -v '^ *+' conftest.er1 >conftest.err
19267  rm -f conftest.er1
19268  cat conftest.err >&5
19269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270  (exit $ac_status); } && {
19271	 test -z "$ac_c_werror_flag" ||
19272	 test ! -s conftest.err
19273       } && test -s conftest.$ac_objext; then
19274  ac_cv_have_decl___SUNPRO_C=yes
19275else
19276  echo "$as_me: failed program was:" >&5
19277sed 's/^/| /' conftest.$ac_ext >&5
19278
19279	ac_cv_have_decl___SUNPRO_C=no
19280fi
19281
19282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283fi
19284{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
19285echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
19286if test $ac_cv_have_decl___SUNPRO_C = yes; then
19287  SUNCC="yes"
19288else
19289  SUNCC="no"
19290fi
19291
19292    if test "x$SUNCC" = "xyes"; then
19293	CWARNFLAGS="-v"
19294    fi
19295fi
19296
19297
19298
19299pciids_path=/usr/share/hwdata
19300
19301# Check whether --with-pciids-path was given.
19302if test "${with_pciids_path+set}" = set; then
19303  withval=$with_pciids_path; pciids_path="$withval"
19304fi
19305
19306
19307  prefix_NONE=
19308  exec_prefix_NONE=
19309  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19310  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19311  eval ac_define_dir="\"$pciids_path\""
19312  eval ac_define_dir="\"$ac_define_dir\""
19313  PCIIDS_PATH="$ac_define_dir"
19314
19315
19316cat >>confdefs.h <<_ACEOF
19317#define PCIIDS_PATH "$ac_define_dir"
19318_ACEOF
19319
19320  test "$prefix_NONE" && prefix=NONE
19321  test "$exec_prefix_NONE" && exec_prefix=NONE
19322
19323
19324use_zlib=no
19325
19326# Check whether --with-zlib was given.
19327if test "${with_zlib+set}" = set; then
19328  withval=$with_zlib; use_zlib="$withval"
19329fi
19330
19331if test "x$use_zlib" = xyes; then
19332	{ echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19333echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
19334if test "${ac_cv_lib_z_gzopen+set}" = set; then
19335  echo $ECHO_N "(cached) $ECHO_C" >&6
19336else
19337  ac_check_lib_save_LIBS=$LIBS
19338LIBS="-lz  $LIBS"
19339cat >conftest.$ac_ext <<_ACEOF
19340/* confdefs.h.  */
19341_ACEOF
19342cat confdefs.h >>conftest.$ac_ext
19343cat >>conftest.$ac_ext <<_ACEOF
19344/* end confdefs.h.  */
19345
19346/* Override any GCC internal prototype to avoid an error.
19347   Use char because int might match the return type of a GCC
19348   builtin and then its argument prototype would still apply.  */
19349#ifdef __cplusplus
19350extern "C"
19351#endif
19352char gzopen ();
19353int
19354main ()
19355{
19356return gzopen ();
19357  ;
19358  return 0;
19359}
19360_ACEOF
19361rm -f conftest.$ac_objext conftest$ac_exeext
19362if { (ac_try="$ac_link"
19363case "(($ac_try" in
19364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365  *) ac_try_echo=$ac_try;;
19366esac
19367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368  (eval "$ac_link") 2>conftest.er1
19369  ac_status=$?
19370  grep -v '^ *+' conftest.er1 >conftest.err
19371  rm -f conftest.er1
19372  cat conftest.err >&5
19373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374  (exit $ac_status); } && {
19375	 test -z "$ac_c_werror_flag" ||
19376	 test ! -s conftest.err
19377       } && test -s conftest$ac_exeext &&
19378       $as_test_x conftest$ac_exeext; then
19379  ac_cv_lib_z_gzopen=yes
19380else
19381  echo "$as_me: failed program was:" >&5
19382sed 's/^/| /' conftest.$ac_ext >&5
19383
19384	ac_cv_lib_z_gzopen=no
19385fi
19386
19387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19388      conftest$ac_exeext conftest.$ac_ext
19389LIBS=$ac_check_lib_save_LIBS
19390fi
19391{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19392echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
19393if test $ac_cv_lib_z_gzopen = yes; then
19394  PCIACCESS_LIBS="$PCIACCESS_LIBS -lz"
19395else
19396  { { echo "$as_me:$LINENO: error: Check for zlib library failed" >&5
19397echo "$as_me: error: Check for zlib library failed" >&2;}
19398   { (exit 1); exit 1; }; }
19399fi
19400
19401	if test "${ac_cv_header_zlib_h+set}" = set; then
19402  { echo "$as_me:$LINENO: checking for zlib.h" >&5
19403echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
19404if test "${ac_cv_header_zlib_h+set}" = set; then
19405  echo $ECHO_N "(cached) $ECHO_C" >&6
19406fi
19407{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19408echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
19409else
19410  # Is the header compilable?
19411{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
19412echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
19413cat >conftest.$ac_ext <<_ACEOF
19414/* confdefs.h.  */
19415_ACEOF
19416cat confdefs.h >>conftest.$ac_ext
19417cat >>conftest.$ac_ext <<_ACEOF
19418/* end confdefs.h.  */
19419$ac_includes_default
19420#include <zlib.h>
19421_ACEOF
19422rm -f conftest.$ac_objext
19423if { (ac_try="$ac_compile"
19424case "(($ac_try" in
19425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426  *) ac_try_echo=$ac_try;;
19427esac
19428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429  (eval "$ac_compile") 2>conftest.er1
19430  ac_status=$?
19431  grep -v '^ *+' conftest.er1 >conftest.err
19432  rm -f conftest.er1
19433  cat conftest.err >&5
19434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435  (exit $ac_status); } && {
19436	 test -z "$ac_c_werror_flag" ||
19437	 test ! -s conftest.err
19438       } && test -s conftest.$ac_objext; then
19439  ac_header_compiler=yes
19440else
19441  echo "$as_me: failed program was:" >&5
19442sed 's/^/| /' conftest.$ac_ext >&5
19443
19444	ac_header_compiler=no
19445fi
19446
19447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19448{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19449echo "${ECHO_T}$ac_header_compiler" >&6; }
19450
19451# Is the header present?
19452{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
19453echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
19454cat >conftest.$ac_ext <<_ACEOF
19455/* confdefs.h.  */
19456_ACEOF
19457cat confdefs.h >>conftest.$ac_ext
19458cat >>conftest.$ac_ext <<_ACEOF
19459/* end confdefs.h.  */
19460#include <zlib.h>
19461_ACEOF
19462if { (ac_try="$ac_cpp conftest.$ac_ext"
19463case "(($ac_try" in
19464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465  *) ac_try_echo=$ac_try;;
19466esac
19467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19469  ac_status=$?
19470  grep -v '^ *+' conftest.er1 >conftest.err
19471  rm -f conftest.er1
19472  cat conftest.err >&5
19473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474  (exit $ac_status); } >/dev/null && {
19475	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19476	 test ! -s conftest.err
19477       }; then
19478  ac_header_preproc=yes
19479else
19480  echo "$as_me: failed program was:" >&5
19481sed 's/^/| /' conftest.$ac_ext >&5
19482
19483  ac_header_preproc=no
19484fi
19485
19486rm -f conftest.err conftest.$ac_ext
19487{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19488echo "${ECHO_T}$ac_header_preproc" >&6; }
19489
19490# So?  What about this header?
19491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19492  yes:no: )
19493    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19494echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19495    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19496echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19497    ac_header_preproc=yes
19498    ;;
19499  no:yes:* )
19500    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19501echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19502    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
19503echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
19504    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19505echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19506    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
19507echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19508    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19509echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19510    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19511echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
19512    ( cat <<\_ASBOX
19513## --------------------------------------------------------------------------------------------- ##
19514## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ##
19515## --------------------------------------------------------------------------------------------- ##
19516_ASBOX
19517     ) | sed "s/^/$as_me: WARNING:     /" >&2
19518    ;;
19519esac
19520{ echo "$as_me:$LINENO: checking for zlib.h" >&5
19521echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
19522if test "${ac_cv_header_zlib_h+set}" = set; then
19523  echo $ECHO_N "(cached) $ECHO_C" >&6
19524else
19525  ac_cv_header_zlib_h=$ac_header_preproc
19526fi
19527{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19528echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
19529
19530fi
19531if test $ac_cv_header_zlib_h = yes; then
19532
19533cat >>confdefs.h <<\_ACEOF
19534#define HAVE_ZLIB 1
19535_ACEOF
19536
19537else
19538  { { echo "$as_me:$LINENO: error: Check for zlib.h header file failed" >&5
19539echo "$as_me: error: Check for zlib.h header file failed" >&2;}
19540   { (exit 1); exit 1; }; }
19541fi
19542
19543
19544fi
19545
19546case $host_os in
19547	*freebsd* | *dragonfly*)
19548		freebsd=yes
19549		;;
19550	*linux*)
19551		linux=yes
19552		;;
19553	*netbsd*)
19554		case $host in
19555		*i386*)
19556			PCIACCESS_LIBS="-li386"
19557			;;
19558		*x86_64*|*amd64*)
19559			PCIACCESS_LIBS="-lx86_64"
19560			;;
19561		esac
19562		netbsd=yes
19563		;;
19564	*openbsd*)
19565		openbsd=yes
19566		;;
19567	*solaris*)
19568		solaris=yes
19569		PCIACCESS_LIBS="$PCIACCESS_LIBS -ldevinfo"
19570		;;
19571esac
19572
19573 if test "x$linux" = xyes; then
19574  LINUX_TRUE=
19575  LINUX_FALSE='#'
19576else
19577  LINUX_TRUE='#'
19578  LINUX_FALSE=
19579fi
19580
19581 if test "x$freebsd" = xyes; then
19582  FREEBSD_TRUE=
19583  FREEBSD_FALSE='#'
19584else
19585  FREEBSD_TRUE='#'
19586  FREEBSD_FALSE=
19587fi
19588
19589 if test "x$netbsd" = xyes; then
19590  NETBSD_TRUE=
19591  NETBSD_FALSE='#'
19592else
19593  NETBSD_TRUE='#'
19594  NETBSD_FALSE=
19595fi
19596
19597 if test "x$openbsd" = xyes; then
19598  OPENBSD_TRUE=
19599  OPENBSD_FALSE='#'
19600else
19601  OPENBSD_TRUE='#'
19602  OPENBSD_FALSE=
19603fi
19604
19605 if test "x$solaris" = xyes; then
19606  SOLARIS_TRUE=
19607  SOLARIS_FALSE='#'
19608else
19609  SOLARIS_TRUE='#'
19610  SOLARIS_FALSE=
19611fi
19612
19613
19614# Check whether --enable-largefile was given.
19615if test "${enable_largefile+set}" = set; then
19616  enableval=$enable_largefile;
19617fi
19618
19619if test "$enable_largefile" != no; then
19620
19621  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
19622echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
19623if test "${ac_cv_sys_largefile_CC+set}" = set; then
19624  echo $ECHO_N "(cached) $ECHO_C" >&6
19625else
19626  ac_cv_sys_largefile_CC=no
19627     if test "$GCC" != yes; then
19628       ac_save_CC=$CC
19629       while :; do
19630	 # IRIX 6.2 and later do not support large files by default,
19631	 # so use the C compiler's -n32 option if that helps.
19632	 cat >conftest.$ac_ext <<_ACEOF
19633/* confdefs.h.  */
19634_ACEOF
19635cat confdefs.h >>conftest.$ac_ext
19636cat >>conftest.$ac_ext <<_ACEOF
19637/* end confdefs.h.  */
19638#include <sys/types.h>
19639 /* Check that off_t can represent 2**63 - 1 correctly.
19640    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19641    since some C++ compilers masquerading as C compilers
19642    incorrectly reject 9223372036854775807.  */
19643#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19644  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19645		       && LARGE_OFF_T % 2147483647 == 1)
19646		      ? 1 : -1];
19647int
19648main ()
19649{
19650
19651  ;
19652  return 0;
19653}
19654_ACEOF
19655	 rm -f conftest.$ac_objext
19656if { (ac_try="$ac_compile"
19657case "(($ac_try" in
19658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659  *) ac_try_echo=$ac_try;;
19660esac
19661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662  (eval "$ac_compile") 2>conftest.er1
19663  ac_status=$?
19664  grep -v '^ *+' conftest.er1 >conftest.err
19665  rm -f conftest.er1
19666  cat conftest.err >&5
19667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668  (exit $ac_status); } && {
19669	 test -z "$ac_c_werror_flag" ||
19670	 test ! -s conftest.err
19671       } && test -s conftest.$ac_objext; then
19672  break
19673else
19674  echo "$as_me: failed program was:" >&5
19675sed 's/^/| /' conftest.$ac_ext >&5
19676
19677
19678fi
19679
19680rm -f core conftest.err conftest.$ac_objext
19681	 CC="$CC -n32"
19682	 rm -f conftest.$ac_objext
19683if { (ac_try="$ac_compile"
19684case "(($ac_try" in
19685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686  *) ac_try_echo=$ac_try;;
19687esac
19688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689  (eval "$ac_compile") 2>conftest.er1
19690  ac_status=$?
19691  grep -v '^ *+' conftest.er1 >conftest.err
19692  rm -f conftest.er1
19693  cat conftest.err >&5
19694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695  (exit $ac_status); } && {
19696	 test -z "$ac_c_werror_flag" ||
19697	 test ! -s conftest.err
19698       } && test -s conftest.$ac_objext; then
19699  ac_cv_sys_largefile_CC=' -n32'; break
19700else
19701  echo "$as_me: failed program was:" >&5
19702sed 's/^/| /' conftest.$ac_ext >&5
19703
19704
19705fi
19706
19707rm -f core conftest.err conftest.$ac_objext
19708	 break
19709       done
19710       CC=$ac_save_CC
19711       rm -f conftest.$ac_ext
19712    fi
19713fi
19714{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19715echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
19716  if test "$ac_cv_sys_largefile_CC" != no; then
19717    CC=$CC$ac_cv_sys_largefile_CC
19718  fi
19719
19720  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19721echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
19722if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19723  echo $ECHO_N "(cached) $ECHO_C" >&6
19724else
19725  while :; do
19726  cat >conftest.$ac_ext <<_ACEOF
19727/* confdefs.h.  */
19728_ACEOF
19729cat confdefs.h >>conftest.$ac_ext
19730cat >>conftest.$ac_ext <<_ACEOF
19731/* end confdefs.h.  */
19732#include <sys/types.h>
19733 /* Check that off_t can represent 2**63 - 1 correctly.
19734    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19735    since some C++ compilers masquerading as C compilers
19736    incorrectly reject 9223372036854775807.  */
19737#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19738  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19739		       && LARGE_OFF_T % 2147483647 == 1)
19740		      ? 1 : -1];
19741int
19742main ()
19743{
19744
19745  ;
19746  return 0;
19747}
19748_ACEOF
19749rm -f conftest.$ac_objext
19750if { (ac_try="$ac_compile"
19751case "(($ac_try" in
19752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753  *) ac_try_echo=$ac_try;;
19754esac
19755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756  (eval "$ac_compile") 2>conftest.er1
19757  ac_status=$?
19758  grep -v '^ *+' conftest.er1 >conftest.err
19759  rm -f conftest.er1
19760  cat conftest.err >&5
19761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762  (exit $ac_status); } && {
19763	 test -z "$ac_c_werror_flag" ||
19764	 test ! -s conftest.err
19765       } && test -s conftest.$ac_objext; then
19766  ac_cv_sys_file_offset_bits=no; break
19767else
19768  echo "$as_me: failed program was:" >&5
19769sed 's/^/| /' conftest.$ac_ext >&5
19770
19771
19772fi
19773
19774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19775  cat >conftest.$ac_ext <<_ACEOF
19776/* confdefs.h.  */
19777_ACEOF
19778cat confdefs.h >>conftest.$ac_ext
19779cat >>conftest.$ac_ext <<_ACEOF
19780/* end confdefs.h.  */
19781#define _FILE_OFFSET_BITS 64
19782#include <sys/types.h>
19783 /* Check that off_t can represent 2**63 - 1 correctly.
19784    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19785    since some C++ compilers masquerading as C compilers
19786    incorrectly reject 9223372036854775807.  */
19787#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19788  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19789		       && LARGE_OFF_T % 2147483647 == 1)
19790		      ? 1 : -1];
19791int
19792main ()
19793{
19794
19795  ;
19796  return 0;
19797}
19798_ACEOF
19799rm -f conftest.$ac_objext
19800if { (ac_try="$ac_compile"
19801case "(($ac_try" in
19802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803  *) ac_try_echo=$ac_try;;
19804esac
19805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806  (eval "$ac_compile") 2>conftest.er1
19807  ac_status=$?
19808  grep -v '^ *+' conftest.er1 >conftest.err
19809  rm -f conftest.er1
19810  cat conftest.err >&5
19811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812  (exit $ac_status); } && {
19813	 test -z "$ac_c_werror_flag" ||
19814	 test ! -s conftest.err
19815       } && test -s conftest.$ac_objext; then
19816  ac_cv_sys_file_offset_bits=64; break
19817else
19818  echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
19821
19822fi
19823
19824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825  ac_cv_sys_file_offset_bits=unknown
19826  break
19827done
19828fi
19829{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19830echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19831case $ac_cv_sys_file_offset_bits in #(
19832  no | unknown) ;;
19833  *)
19834cat >>confdefs.h <<_ACEOF
19835#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19836_ACEOF
19837;;
19838esac
19839rm -f conftest*
19840  if test $ac_cv_sys_file_offset_bits = unknown; then
19841    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19842echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
19843if test "${ac_cv_sys_large_files+set}" = set; then
19844  echo $ECHO_N "(cached) $ECHO_C" >&6
19845else
19846  while :; do
19847  cat >conftest.$ac_ext <<_ACEOF
19848/* confdefs.h.  */
19849_ACEOF
19850cat confdefs.h >>conftest.$ac_ext
19851cat >>conftest.$ac_ext <<_ACEOF
19852/* end confdefs.h.  */
19853#include <sys/types.h>
19854 /* Check that off_t can represent 2**63 - 1 correctly.
19855    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19856    since some C++ compilers masquerading as C compilers
19857    incorrectly reject 9223372036854775807.  */
19858#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19859  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19860		       && LARGE_OFF_T % 2147483647 == 1)
19861		      ? 1 : -1];
19862int
19863main ()
19864{
19865
19866  ;
19867  return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext
19871if { (ac_try="$ac_compile"
19872case "(($ac_try" in
19873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874  *) ac_try_echo=$ac_try;;
19875esac
19876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877  (eval "$ac_compile") 2>conftest.er1
19878  ac_status=$?
19879  grep -v '^ *+' conftest.er1 >conftest.err
19880  rm -f conftest.er1
19881  cat conftest.err >&5
19882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883  (exit $ac_status); } && {
19884	 test -z "$ac_c_werror_flag" ||
19885	 test ! -s conftest.err
19886       } && test -s conftest.$ac_objext; then
19887  ac_cv_sys_large_files=no; break
19888else
19889  echo "$as_me: failed program was:" >&5
19890sed 's/^/| /' conftest.$ac_ext >&5
19891
19892
19893fi
19894
19895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896  cat >conftest.$ac_ext <<_ACEOF
19897/* confdefs.h.  */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
19901/* end confdefs.h.  */
19902#define _LARGE_FILES 1
19903#include <sys/types.h>
19904 /* Check that off_t can represent 2**63 - 1 correctly.
19905    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19906    since some C++ compilers masquerading as C compilers
19907    incorrectly reject 9223372036854775807.  */
19908#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19909  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19910		       && LARGE_OFF_T % 2147483647 == 1)
19911		      ? 1 : -1];
19912int
19913main ()
19914{
19915
19916  ;
19917  return 0;
19918}
19919_ACEOF
19920rm -f conftest.$ac_objext
19921if { (ac_try="$ac_compile"
19922case "(($ac_try" in
19923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924  *) ac_try_echo=$ac_try;;
19925esac
19926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927  (eval "$ac_compile") 2>conftest.er1
19928  ac_status=$?
19929  grep -v '^ *+' conftest.er1 >conftest.err
19930  rm -f conftest.er1
19931  cat conftest.err >&5
19932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933  (exit $ac_status); } && {
19934	 test -z "$ac_c_werror_flag" ||
19935	 test ! -s conftest.err
19936       } && test -s conftest.$ac_objext; then
19937  ac_cv_sys_large_files=1; break
19938else
19939  echo "$as_me: failed program was:" >&5
19940sed 's/^/| /' conftest.$ac_ext >&5
19941
19942
19943fi
19944
19945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946  ac_cv_sys_large_files=unknown
19947  break
19948done
19949fi
19950{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19951echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19952case $ac_cv_sys_large_files in #(
19953  no | unknown) ;;
19954  *)
19955cat >>confdefs.h <<_ACEOF
19956#define _LARGE_FILES $ac_cv_sys_large_files
19957_ACEOF
19958;;
19959esac
19960rm -f conftest*
19961  fi
19962fi
19963
19964
19965if test "${ac_cv_header_asm_mtrr_h+set}" = set; then
19966  { echo "$as_me:$LINENO: checking for asm/mtrr.h" >&5
19967echo $ECHO_N "checking for asm/mtrr.h... $ECHO_C" >&6; }
19968if test "${ac_cv_header_asm_mtrr_h+set}" = set; then
19969  echo $ECHO_N "(cached) $ECHO_C" >&6
19970fi
19971{ echo "$as_me:$LINENO: result: $ac_cv_header_asm_mtrr_h" >&5
19972echo "${ECHO_T}$ac_cv_header_asm_mtrr_h" >&6; }
19973else
19974  # Is the header compilable?
19975{ echo "$as_me:$LINENO: checking asm/mtrr.h usability" >&5
19976echo $ECHO_N "checking asm/mtrr.h usability... $ECHO_C" >&6; }
19977cat >conftest.$ac_ext <<_ACEOF
19978/* confdefs.h.  */
19979_ACEOF
19980cat confdefs.h >>conftest.$ac_ext
19981cat >>conftest.$ac_ext <<_ACEOF
19982/* end confdefs.h.  */
19983$ac_includes_default
19984#include <asm/mtrr.h>
19985_ACEOF
19986rm -f conftest.$ac_objext
19987if { (ac_try="$ac_compile"
19988case "(($ac_try" in
19989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990  *) ac_try_echo=$ac_try;;
19991esac
19992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993  (eval "$ac_compile") 2>conftest.er1
19994  ac_status=$?
19995  grep -v '^ *+' conftest.er1 >conftest.err
19996  rm -f conftest.er1
19997  cat conftest.err >&5
19998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999  (exit $ac_status); } && {
20000	 test -z "$ac_c_werror_flag" ||
20001	 test ! -s conftest.err
20002       } && test -s conftest.$ac_objext; then
20003  ac_header_compiler=yes
20004else
20005  echo "$as_me: failed program was:" >&5
20006sed 's/^/| /' conftest.$ac_ext >&5
20007
20008	ac_header_compiler=no
20009fi
20010
20011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20013echo "${ECHO_T}$ac_header_compiler" >&6; }
20014
20015# Is the header present?
20016{ echo "$as_me:$LINENO: checking asm/mtrr.h presence" >&5
20017echo $ECHO_N "checking asm/mtrr.h presence... $ECHO_C" >&6; }
20018cat >conftest.$ac_ext <<_ACEOF
20019/* confdefs.h.  */
20020_ACEOF
20021cat confdefs.h >>conftest.$ac_ext
20022cat >>conftest.$ac_ext <<_ACEOF
20023/* end confdefs.h.  */
20024#include <asm/mtrr.h>
20025_ACEOF
20026if { (ac_try="$ac_cpp conftest.$ac_ext"
20027case "(($ac_try" in
20028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029  *) ac_try_echo=$ac_try;;
20030esac
20031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20033  ac_status=$?
20034  grep -v '^ *+' conftest.er1 >conftest.err
20035  rm -f conftest.er1
20036  cat conftest.err >&5
20037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038  (exit $ac_status); } >/dev/null && {
20039	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20040	 test ! -s conftest.err
20041       }; then
20042  ac_header_preproc=yes
20043else
20044  echo "$as_me: failed program was:" >&5
20045sed 's/^/| /' conftest.$ac_ext >&5
20046
20047  ac_header_preproc=no
20048fi
20049
20050rm -f conftest.err conftest.$ac_ext
20051{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20052echo "${ECHO_T}$ac_header_preproc" >&6; }
20053
20054# So?  What about this header?
20055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20056  yes:no: )
20057    { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: accepted by the compiler, rejected by the preprocessor!" >&5
20058echo "$as_me: WARNING: asm/mtrr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20059    { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: proceeding with the compiler's result" >&5
20060echo "$as_me: WARNING: asm/mtrr.h: proceeding with the compiler's result" >&2;}
20061    ac_header_preproc=yes
20062    ;;
20063  no:yes:* )
20064    { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: present but cannot be compiled" >&5
20065echo "$as_me: WARNING: asm/mtrr.h: present but cannot be compiled" >&2;}
20066    { echo "$as_me:$LINENO: WARNING: asm/mtrr.h:     check for missing prerequisite headers?" >&5
20067echo "$as_me: WARNING: asm/mtrr.h:     check for missing prerequisite headers?" >&2;}
20068    { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: see the Autoconf documentation" >&5
20069echo "$as_me: WARNING: asm/mtrr.h: see the Autoconf documentation" >&2;}
20070    { echo "$as_me:$LINENO: WARNING: asm/mtrr.h:     section \"Present But Cannot Be Compiled\"" >&5
20071echo "$as_me: WARNING: asm/mtrr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20072    { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: proceeding with the preprocessor's result" >&5
20073echo "$as_me: WARNING: asm/mtrr.h: proceeding with the preprocessor's result" >&2;}
20074    { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: in the future, the compiler will take precedence" >&5
20075echo "$as_me: WARNING: asm/mtrr.h: in the future, the compiler will take precedence" >&2;}
20076    ( cat <<\_ASBOX
20077## --------------------------------------------------------------------------------------------- ##
20078## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ##
20079## --------------------------------------------------------------------------------------------- ##
20080_ASBOX
20081     ) | sed "s/^/$as_me: WARNING:     /" >&2
20082    ;;
20083esac
20084{ echo "$as_me:$LINENO: checking for asm/mtrr.h" >&5
20085echo $ECHO_N "checking for asm/mtrr.h... $ECHO_C" >&6; }
20086if test "${ac_cv_header_asm_mtrr_h+set}" = set; then
20087  echo $ECHO_N "(cached) $ECHO_C" >&6
20088else
20089  ac_cv_header_asm_mtrr_h=$ac_header_preproc
20090fi
20091{ echo "$as_me:$LINENO: result: $ac_cv_header_asm_mtrr_h" >&5
20092echo "${ECHO_T}$ac_cv_header_asm_mtrr_h" >&6; }
20093
20094fi
20095if test $ac_cv_header_asm_mtrr_h = yes; then
20096  have_mtrr_h="yes"
20097else
20098  have_mtrr_h="no"
20099fi
20100
20101
20102
20103if test "x$have_mtrr_h" = xyes; then
20104
20105cat >>confdefs.h <<\_ACEOF
20106#define HAVE_MTRR 1
20107_ACEOF
20108
20109fi
20110
20111{ echo "$as_me:$LINENO: checking for struct pci_io.pi_sel.pc_domain" >&5
20112echo $ECHO_N "checking for struct pci_io.pi_sel.pc_domain... $ECHO_C" >&6; }
20113if test "${ac_cv_member_struct_pci_io_pi_sel_pc_domain+set}" = set; then
20114  echo $ECHO_N "(cached) $ECHO_C" >&6
20115else
20116  cat >conftest.$ac_ext <<_ACEOF
20117/* confdefs.h.  */
20118_ACEOF
20119cat confdefs.h >>conftest.$ac_ext
20120cat >>conftest.$ac_ext <<_ACEOF
20121/* end confdefs.h.  */
20122 #include <sys/types.h>
20123                 #include <sys/pciio.h>
20124
20125
20126int
20127main ()
20128{
20129static struct pci_io ac_aggr;
20130if (ac_aggr.pi_sel.pc_domain)
20131return 0;
20132  ;
20133  return 0;
20134}
20135_ACEOF
20136rm -f conftest.$ac_objext
20137if { (ac_try="$ac_compile"
20138case "(($ac_try" in
20139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140  *) ac_try_echo=$ac_try;;
20141esac
20142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143  (eval "$ac_compile") 2>conftest.er1
20144  ac_status=$?
20145  grep -v '^ *+' conftest.er1 >conftest.err
20146  rm -f conftest.er1
20147  cat conftest.err >&5
20148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149  (exit $ac_status); } && {
20150	 test -z "$ac_c_werror_flag" ||
20151	 test ! -s conftest.err
20152       } && test -s conftest.$ac_objext; then
20153  ac_cv_member_struct_pci_io_pi_sel_pc_domain=yes
20154else
20155  echo "$as_me: failed program was:" >&5
20156sed 's/^/| /' conftest.$ac_ext >&5
20157
20158	cat >conftest.$ac_ext <<_ACEOF
20159/* confdefs.h.  */
20160_ACEOF
20161cat confdefs.h >>conftest.$ac_ext
20162cat >>conftest.$ac_ext <<_ACEOF
20163/* end confdefs.h.  */
20164 #include <sys/types.h>
20165                 #include <sys/pciio.h>
20166
20167
20168int
20169main ()
20170{
20171static struct pci_io ac_aggr;
20172if (sizeof ac_aggr.pi_sel.pc_domain)
20173return 0;
20174  ;
20175  return 0;
20176}
20177_ACEOF
20178rm -f conftest.$ac_objext
20179if { (ac_try="$ac_compile"
20180case "(($ac_try" in
20181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182  *) ac_try_echo=$ac_try;;
20183esac
20184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185  (eval "$ac_compile") 2>conftest.er1
20186  ac_status=$?
20187  grep -v '^ *+' conftest.er1 >conftest.err
20188  rm -f conftest.er1
20189  cat conftest.err >&5
20190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191  (exit $ac_status); } && {
20192	 test -z "$ac_c_werror_flag" ||
20193	 test ! -s conftest.err
20194       } && test -s conftest.$ac_objext; then
20195  ac_cv_member_struct_pci_io_pi_sel_pc_domain=yes
20196else
20197  echo "$as_me: failed program was:" >&5
20198sed 's/^/| /' conftest.$ac_ext >&5
20199
20200	ac_cv_member_struct_pci_io_pi_sel_pc_domain=no
20201fi
20202
20203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20204fi
20205
20206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20207fi
20208{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_pci_io_pi_sel_pc_domain" >&5
20209echo "${ECHO_T}$ac_cv_member_struct_pci_io_pi_sel_pc_domain" >&6; }
20210if test $ac_cv_member_struct_pci_io_pi_sel_pc_domain = yes; then
20211
20212cat >>confdefs.h <<\_ACEOF
20213#define HAVE_PCI_IO_PC_DOMAIN 1
20214_ACEOF
20215
20216fi
20217
20218
20219
20220
20221
20222
20223
20224# Check whether --with-release-version was given.
20225if test "${with_release_version+set}" = set; then
20226  withval=$with_release_version; RELEASE_VERSION="$withval"
20227else
20228  RELEASE_VERSION=""
20229fi
20230
20231	if test "x$RELEASE_VERSION" != "x"; then
20232		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20233		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20234		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20235echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20236	fi
20237
20238cat >>confdefs.h <<_ACEOF
20239#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20240_ACEOF
20241
20242	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20243	if test "x$PVM" = "x"; then
20244		PVM="0"
20245	fi
20246
20247cat >>confdefs.h <<_ACEOF
20248#define PACKAGE_VERSION_MINOR $PVM
20249_ACEOF
20250
20251	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20252	if test "x$PVP" = "x"; then
20253		PVP="0"
20254	fi
20255
20256cat >>confdefs.h <<_ACEOF
20257#define PACKAGE_VERSION_PATCHLEVEL $PVP
20258_ACEOF
20259
20260
20261
20262CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
20263mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
20264echo 'git directory not found: installing possibly empty changelog.' >&2)"
20265
20266distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
20267
20268
20269
20270ac_config_files="$ac_config_files Makefile src/Makefile pciaccess.pc"
20271
20272cat >confcache <<\_ACEOF
20273# This file is a shell script that caches the results of configure
20274# tests run on this system so they can be shared between configure
20275# scripts and configure runs, see configure's option --config-cache.
20276# It is not useful on other systems.  If it contains results you don't
20277# want to keep, you may remove or edit it.
20278#
20279# config.status only pays attention to the cache file if you give it
20280# the --recheck option to rerun configure.
20281#
20282# `ac_cv_env_foo' variables (set or unset) will be overridden when
20283# loading this file, other *unset* `ac_cv_foo' will be assigned the
20284# following values.
20285
20286_ACEOF
20287
20288# The following way of writing the cache mishandles newlines in values,
20289# but we know of no workaround that is simple, portable, and efficient.
20290# So, we kill variables containing newlines.
20291# Ultrix sh set writes to stderr and can't be redirected directly,
20292# and sets the high bit in the cache file unless we assign to the vars.
20293(
20294  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20295    eval ac_val=\$$ac_var
20296    case $ac_val in #(
20297    *${as_nl}*)
20298      case $ac_var in #(
20299      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20300echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20301      esac
20302      case $ac_var in #(
20303      _ | IFS | as_nl) ;; #(
20304      *) $as_unset $ac_var ;;
20305      esac ;;
20306    esac
20307  done
20308
20309  (set) 2>&1 |
20310    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20311    *${as_nl}ac_space=\ *)
20312      # `set' does not quote correctly, so add quotes (double-quote
20313      # substitution turns \\\\ into \\, and sed turns \\ into \).
20314      sed -n \
20315	"s/'/'\\\\''/g;
20316	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20317      ;; #(
20318    *)
20319      # `set' quotes correctly as required by POSIX, so do not add quotes.
20320      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20321      ;;
20322    esac |
20323    sort
20324) |
20325  sed '
20326     /^ac_cv_env_/b end
20327     t clear
20328     :clear
20329     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20330     t end
20331     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20332     :end' >>confcache
20333if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20334  if test -w "$cache_file"; then
20335    test "x$cache_file" != "x/dev/null" &&
20336      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20337echo "$as_me: updating cache $cache_file" >&6;}
20338    cat confcache >$cache_file
20339  else
20340    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20341echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20342  fi
20343fi
20344rm -f confcache
20345
20346test "x$prefix" = xNONE && prefix=$ac_default_prefix
20347# Let make expand exec_prefix.
20348test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20349
20350DEFS=-DHAVE_CONFIG_H
20351
20352ac_libobjs=
20353ac_ltlibobjs=
20354for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20355  # 1. Remove the extension, and $U if already installed.
20356  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20357  ac_i=`echo "$ac_i" | sed "$ac_script"`
20358  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20359  #    will be set to the directory where LIBOBJS objects are built.
20360  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20361  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20362done
20363LIBOBJS=$ac_libobjs
20364
20365LTLIBOBJS=$ac_ltlibobjs
20366
20367
20368if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20369  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20370Usually this means the macro was only invoked conditionally." >&5
20371echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20372Usually this means the macro was only invoked conditionally." >&2;}
20373   { (exit 1); exit 1; }; }
20374fi
20375if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20376  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20377Usually this means the macro was only invoked conditionally." >&5
20378echo "$as_me: error: conditional \"AMDEP\" was never defined.
20379Usually this means the macro was only invoked conditionally." >&2;}
20380   { (exit 1); exit 1; }; }
20381fi
20382if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20383  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20384Usually this means the macro was only invoked conditionally." >&5
20385echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20386Usually this means the macro was only invoked conditionally." >&2;}
20387   { (exit 1); exit 1; }; }
20388fi
20389if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20390  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20391Usually this means the macro was only invoked conditionally." >&5
20392echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20393Usually this means the macro was only invoked conditionally." >&2;}
20394   { (exit 1); exit 1; }; }
20395fi
20396if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
20397  { { echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
20398Usually this means the macro was only invoked conditionally." >&5
20399echo "$as_me: error: conditional \"LINUX\" was never defined.
20400Usually this means the macro was only invoked conditionally." >&2;}
20401   { (exit 1); exit 1; }; }
20402fi
20403if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
20404  { { echo "$as_me:$LINENO: error: conditional \"FREEBSD\" was never defined.
20405Usually this means the macro was only invoked conditionally." >&5
20406echo "$as_me: error: conditional \"FREEBSD\" was never defined.
20407Usually this means the macro was only invoked conditionally." >&2;}
20408   { (exit 1); exit 1; }; }
20409fi
20410if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
20411  { { echo "$as_me:$LINENO: error: conditional \"NETBSD\" was never defined.
20412Usually this means the macro was only invoked conditionally." >&5
20413echo "$as_me: error: conditional \"NETBSD\" was never defined.
20414Usually this means the macro was only invoked conditionally." >&2;}
20415   { (exit 1); exit 1; }; }
20416fi
20417if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then
20418  { { echo "$as_me:$LINENO: error: conditional \"OPENBSD\" was never defined.
20419Usually this means the macro was only invoked conditionally." >&5
20420echo "$as_me: error: conditional \"OPENBSD\" was never defined.
20421Usually this means the macro was only invoked conditionally." >&2;}
20422   { (exit 1); exit 1; }; }
20423fi
20424if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
20425  { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
20426Usually this means the macro was only invoked conditionally." >&5
20427echo "$as_me: error: conditional \"SOLARIS\" was never defined.
20428Usually this means the macro was only invoked conditionally." >&2;}
20429   { (exit 1); exit 1; }; }
20430fi
20431
20432: ${CONFIG_STATUS=./config.status}
20433ac_clean_files_save=$ac_clean_files
20434ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20435{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20436echo "$as_me: creating $CONFIG_STATUS" >&6;}
20437cat >$CONFIG_STATUS <<_ACEOF
20438#! $SHELL
20439# Generated by $as_me.
20440# Run this file to recreate the current configuration.
20441# Compiler output produced by configure, useful for debugging
20442# configure, is in config.log if it exists.
20443
20444debug=false
20445ac_cs_recheck=false
20446ac_cs_silent=false
20447SHELL=\${CONFIG_SHELL-$SHELL}
20448_ACEOF
20449
20450cat >>$CONFIG_STATUS <<\_ACEOF
20451## --------------------- ##
20452## M4sh Initialization.  ##
20453## --------------------- ##
20454
20455# Be more Bourne compatible
20456DUALCASE=1; export DUALCASE # for MKS sh
20457if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20458  emulate sh
20459  NULLCMD=:
20460  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20461  # is contrary to our usage.  Disable this feature.
20462  alias -g '${1+"$@"}'='"$@"'
20463  setopt NO_GLOB_SUBST
20464else
20465  case `(set -o) 2>/dev/null` in
20466  *posix*) set -o posix ;;
20467esac
20468
20469fi
20470
20471
20472
20473
20474# PATH needs CR
20475# Avoid depending upon Character Ranges.
20476as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20477as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20478as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20479as_cr_digits='0123456789'
20480as_cr_alnum=$as_cr_Letters$as_cr_digits
20481
20482# The user is always right.
20483if test "${PATH_SEPARATOR+set}" != set; then
20484  echo "#! /bin/sh" >conf$$.sh
20485  echo  "exit 0"   >>conf$$.sh
20486  chmod +x conf$$.sh
20487  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20488    PATH_SEPARATOR=';'
20489  else
20490    PATH_SEPARATOR=:
20491  fi
20492  rm -f conf$$.sh
20493fi
20494
20495# Support unset when possible.
20496if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20497  as_unset=unset
20498else
20499  as_unset=false
20500fi
20501
20502
20503# IFS
20504# We need space, tab and new line, in precisely that order.  Quoting is
20505# there to prevent editors from complaining about space-tab.
20506# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20507# splitting by setting IFS to empty value.)
20508as_nl='
20509'
20510IFS=" ""	$as_nl"
20511
20512# Find who we are.  Look in the path if we contain no directory separator.
20513case $0 in
20514  *[\\/]* ) as_myself=$0 ;;
20515  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20516for as_dir in $PATH
20517do
20518  IFS=$as_save_IFS
20519  test -z "$as_dir" && as_dir=.
20520  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20521done
20522IFS=$as_save_IFS
20523
20524     ;;
20525esac
20526# We did not find ourselves, most probably we were run as `sh COMMAND'
20527# in which case we are not to be found in the path.
20528if test "x$as_myself" = x; then
20529  as_myself=$0
20530fi
20531if test ! -f "$as_myself"; then
20532  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20533  { (exit 1); exit 1; }
20534fi
20535
20536# Work around bugs in pre-3.0 UWIN ksh.
20537for as_var in ENV MAIL MAILPATH
20538do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20539done
20540PS1='$ '
20541PS2='> '
20542PS4='+ '
20543
20544# NLS nuisances.
20545for as_var in \
20546  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20547  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20548  LC_TELEPHONE LC_TIME
20549do
20550  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20551    eval $as_var=C; export $as_var
20552  else
20553    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20554  fi
20555done
20556
20557# Required to use basename.
20558if expr a : '\(a\)' >/dev/null 2>&1 &&
20559   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20560  as_expr=expr
20561else
20562  as_expr=false
20563fi
20564
20565if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20566  as_basename=basename
20567else
20568  as_basename=false
20569fi
20570
20571
20572# Name of the executable.
20573as_me=`$as_basename -- "$0" ||
20574$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20575	 X"$0" : 'X\(//\)$' \| \
20576	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20577echo X/"$0" |
20578    sed '/^.*\/\([^/][^/]*\)\/*$/{
20579	    s//\1/
20580	    q
20581	  }
20582	  /^X\/\(\/\/\)$/{
20583	    s//\1/
20584	    q
20585	  }
20586	  /^X\/\(\/\).*/{
20587	    s//\1/
20588	    q
20589	  }
20590	  s/.*/./; q'`
20591
20592# CDPATH.
20593$as_unset CDPATH
20594
20595
20596
20597  as_lineno_1=$LINENO
20598  as_lineno_2=$LINENO
20599  test "x$as_lineno_1" != "x$as_lineno_2" &&
20600  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20601
20602  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20603  # uniformly replaced by the line number.  The first 'sed' inserts a
20604  # line-number line after each line using $LINENO; the second 'sed'
20605  # does the real work.  The second script uses 'N' to pair each
20606  # line-number line with the line containing $LINENO, and appends
20607  # trailing '-' during substitution so that $LINENO is not a special
20608  # case at line end.
20609  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20610  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20611  # E. McMahon (1931-1989) for sed's syntax.  :-)
20612  sed -n '
20613    p
20614    /[$]LINENO/=
20615  ' <$as_myself |
20616    sed '
20617      s/[$]LINENO.*/&-/
20618      t lineno
20619      b
20620      :lineno
20621      N
20622      :loop
20623      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20624      t loop
20625      s/-\n.*//
20626    ' >$as_me.lineno &&
20627  chmod +x "$as_me.lineno" ||
20628    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20629   { (exit 1); exit 1; }; }
20630
20631  # Don't try to exec as it changes $[0], causing all sort of problems
20632  # (the dirname of $[0] is not the place where we might find the
20633  # original and so on.  Autoconf is especially sensitive to this).
20634  . "./$as_me.lineno"
20635  # Exit status is that of the last command.
20636  exit
20637}
20638
20639
20640if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20641  as_dirname=dirname
20642else
20643  as_dirname=false
20644fi
20645
20646ECHO_C= ECHO_N= ECHO_T=
20647case `echo -n x` in
20648-n*)
20649  case `echo 'x\c'` in
20650  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20651  *)   ECHO_C='\c';;
20652  esac;;
20653*)
20654  ECHO_N='-n';;
20655esac
20656
20657if expr a : '\(a\)' >/dev/null 2>&1 &&
20658   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20659  as_expr=expr
20660else
20661  as_expr=false
20662fi
20663
20664rm -f conf$$ conf$$.exe conf$$.file
20665if test -d conf$$.dir; then
20666  rm -f conf$$.dir/conf$$.file
20667else
20668  rm -f conf$$.dir
20669  mkdir conf$$.dir
20670fi
20671echo >conf$$.file
20672if ln -s conf$$.file conf$$ 2>/dev/null; then
20673  as_ln_s='ln -s'
20674  # ... but there are two gotchas:
20675  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20676  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20677  # In both cases, we have to default to `cp -p'.
20678  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20679    as_ln_s='cp -p'
20680elif ln conf$$.file conf$$ 2>/dev/null; then
20681  as_ln_s=ln
20682else
20683  as_ln_s='cp -p'
20684fi
20685rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20686rmdir conf$$.dir 2>/dev/null
20687
20688if mkdir -p . 2>/dev/null; then
20689  as_mkdir_p=:
20690else
20691  test -d ./-p && rmdir ./-p
20692  as_mkdir_p=false
20693fi
20694
20695if test -x / >/dev/null 2>&1; then
20696  as_test_x='test -x'
20697else
20698  if ls -dL / >/dev/null 2>&1; then
20699    as_ls_L_option=L
20700  else
20701    as_ls_L_option=
20702  fi
20703  as_test_x='
20704    eval sh -c '\''
20705      if test -d "$1"; then
20706        test -d "$1/.";
20707      else
20708	case $1 in
20709        -*)set "./$1";;
20710	esac;
20711	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20712	???[sx]*):;;*)false;;esac;fi
20713    '\'' sh
20714  '
20715fi
20716as_executable_p=$as_test_x
20717
20718# Sed expression to map a string onto a valid CPP name.
20719as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20720
20721# Sed expression to map a string onto a valid variable name.
20722as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20723
20724
20725exec 6>&1
20726
20727# Save the log message, to keep $[0] and so on meaningful, and to
20728# report actual input values of CONFIG_FILES etc. instead of their
20729# values after options handling.
20730ac_log="
20731This file was extended by libpciaccess $as_me 0.10.6, which was
20732generated by GNU Autoconf 2.61.  Invocation command line was
20733
20734  CONFIG_FILES    = $CONFIG_FILES
20735  CONFIG_HEADERS  = $CONFIG_HEADERS
20736  CONFIG_LINKS    = $CONFIG_LINKS
20737  CONFIG_COMMANDS = $CONFIG_COMMANDS
20738  $ $0 $@
20739
20740on `(hostname || uname -n) 2>/dev/null | sed 1q`
20741"
20742
20743_ACEOF
20744
20745cat >>$CONFIG_STATUS <<_ACEOF
20746# Files that config.status was made for.
20747config_files="$ac_config_files"
20748config_headers="$ac_config_headers"
20749config_commands="$ac_config_commands"
20750
20751_ACEOF
20752
20753cat >>$CONFIG_STATUS <<\_ACEOF
20754ac_cs_usage="\
20755\`$as_me' instantiates files from templates according to the
20756current configuration.
20757
20758Usage: $0 [OPTIONS] [FILE]...
20759
20760  -h, --help       print this help, then exit
20761  -V, --version    print version number and configuration settings, then exit
20762  -q, --quiet      do not print progress messages
20763  -d, --debug      don't remove temporary files
20764      --recheck    update $as_me by reconfiguring in the same conditions
20765  --file=FILE[:TEMPLATE]
20766		   instantiate the configuration file FILE
20767  --header=FILE[:TEMPLATE]
20768		   instantiate the configuration header FILE
20769
20770Configuration files:
20771$config_files
20772
20773Configuration headers:
20774$config_headers
20775
20776Configuration commands:
20777$config_commands
20778
20779Report bugs to <bug-autoconf@gnu.org>."
20780
20781_ACEOF
20782cat >>$CONFIG_STATUS <<_ACEOF
20783ac_cs_version="\\
20784libpciaccess config.status 0.10.6
20785configured by $0, generated by GNU Autoconf 2.61,
20786  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20787
20788Copyright (C) 2006 Free Software Foundation, Inc.
20789This config.status script is free software; the Free Software Foundation
20790gives unlimited permission to copy, distribute and modify it."
20791
20792ac_pwd='$ac_pwd'
20793srcdir='$srcdir'
20794INSTALL='$INSTALL'
20795MKDIR_P='$MKDIR_P'
20796_ACEOF
20797
20798cat >>$CONFIG_STATUS <<\_ACEOF
20799# If no file are specified by the user, then we need to provide default
20800# value.  By we need to know if files were specified by the user.
20801ac_need_defaults=:
20802while test $# != 0
20803do
20804  case $1 in
20805  --*=*)
20806    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20807    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20808    ac_shift=:
20809    ;;
20810  *)
20811    ac_option=$1
20812    ac_optarg=$2
20813    ac_shift=shift
20814    ;;
20815  esac
20816
20817  case $ac_option in
20818  # Handling of the options.
20819  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20820    ac_cs_recheck=: ;;
20821  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20822    echo "$ac_cs_version"; exit ;;
20823  --debug | --debu | --deb | --de | --d | -d )
20824    debug=: ;;
20825  --file | --fil | --fi | --f )
20826    $ac_shift
20827    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20828    ac_need_defaults=false;;
20829  --header | --heade | --head | --hea )
20830    $ac_shift
20831    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20832    ac_need_defaults=false;;
20833  --he | --h)
20834    # Conflict between --help and --header
20835    { echo "$as_me: error: ambiguous option: $1
20836Try \`$0 --help' for more information." >&2
20837   { (exit 1); exit 1; }; };;
20838  --help | --hel | -h )
20839    echo "$ac_cs_usage"; exit ;;
20840  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20841  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20842    ac_cs_silent=: ;;
20843
20844  # This is an error.
20845  -*) { echo "$as_me: error: unrecognized option: $1
20846Try \`$0 --help' for more information." >&2
20847   { (exit 1); exit 1; }; } ;;
20848
20849  *) ac_config_targets="$ac_config_targets $1"
20850     ac_need_defaults=false ;;
20851
20852  esac
20853  shift
20854done
20855
20856ac_configure_extra_args=
20857
20858if $ac_cs_silent; then
20859  exec 6>/dev/null
20860  ac_configure_extra_args="$ac_configure_extra_args --silent"
20861fi
20862
20863_ACEOF
20864cat >>$CONFIG_STATUS <<_ACEOF
20865if \$ac_cs_recheck; then
20866  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20867  CONFIG_SHELL=$SHELL
20868  export CONFIG_SHELL
20869  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20870fi
20871
20872_ACEOF
20873cat >>$CONFIG_STATUS <<\_ACEOF
20874exec 5>>config.log
20875{
20876  echo
20877  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20878## Running $as_me. ##
20879_ASBOX
20880  echo "$ac_log"
20881} >&5
20882
20883_ACEOF
20884cat >>$CONFIG_STATUS <<_ACEOF
20885#
20886# INIT-COMMANDS
20887#
20888AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20889
20890_ACEOF
20891
20892cat >>$CONFIG_STATUS <<\_ACEOF
20893
20894# Handling of arguments.
20895for ac_config_target in $ac_config_targets
20896do
20897  case $ac_config_target in
20898    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20899    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20900    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20901    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20902    "pciaccess.pc") CONFIG_FILES="$CONFIG_FILES pciaccess.pc" ;;
20903
20904  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20905echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20906   { (exit 1); exit 1; }; };;
20907  esac
20908done
20909
20910
20911# If the user did not use the arguments to specify the items to instantiate,
20912# then the envvar interface is used.  Set only those that are not.
20913# We use the long form for the default assignment because of an extremely
20914# bizarre bug on SunOS 4.1.3.
20915if $ac_need_defaults; then
20916  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20917  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20918  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20919fi
20920
20921# Have a temporary directory for convenience.  Make it in the build tree
20922# simply because there is no reason against having it here, and in addition,
20923# creating and moving files from /tmp can sometimes cause problems.
20924# Hook for its removal unless debugging.
20925# Note that there is a small window in which the directory will not be cleaned:
20926# after its creation but before its name has been assigned to `$tmp'.
20927$debug ||
20928{
20929  tmp=
20930  trap 'exit_status=$?
20931  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20932' 0
20933  trap '{ (exit 1); exit 1; }' 1 2 13 15
20934}
20935# Create a (secure) tmp directory for tmp files.
20936
20937{
20938  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20939  test -n "$tmp" && test -d "$tmp"
20940}  ||
20941{
20942  tmp=./conf$$-$RANDOM
20943  (umask 077 && mkdir "$tmp")
20944} ||
20945{
20946   echo "$me: cannot create a temporary directory in ." >&2
20947   { (exit 1); exit 1; }
20948}
20949
20950#
20951# Set up the sed scripts for CONFIG_FILES section.
20952#
20953
20954# No need to generate the scripts if there are no CONFIG_FILES.
20955# This happens for instance when ./config.status config.h
20956if test -n "$CONFIG_FILES"; then
20957
20958_ACEOF
20959
20960
20961
20962ac_delim='%!_!# '
20963for ac_last_try in false false false false false :; do
20964  cat >conf$$subs.sed <<_ACEOF
20965SHELL!$SHELL$ac_delim
20966PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20967PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20968PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20969PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20970PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20971PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20972exec_prefix!$exec_prefix$ac_delim
20973prefix!$prefix$ac_delim
20974program_transform_name!$program_transform_name$ac_delim
20975bindir!$bindir$ac_delim
20976sbindir!$sbindir$ac_delim
20977libexecdir!$libexecdir$ac_delim
20978datarootdir!$datarootdir$ac_delim
20979datadir!$datadir$ac_delim
20980sysconfdir!$sysconfdir$ac_delim
20981sharedstatedir!$sharedstatedir$ac_delim
20982localstatedir!$localstatedir$ac_delim
20983includedir!$includedir$ac_delim
20984oldincludedir!$oldincludedir$ac_delim
20985docdir!$docdir$ac_delim
20986infodir!$infodir$ac_delim
20987htmldir!$htmldir$ac_delim
20988dvidir!$dvidir$ac_delim
20989pdfdir!$pdfdir$ac_delim
20990psdir!$psdir$ac_delim
20991libdir!$libdir$ac_delim
20992localedir!$localedir$ac_delim
20993mandir!$mandir$ac_delim
20994DEFS!$DEFS$ac_delim
20995ECHO_C!$ECHO_C$ac_delim
20996ECHO_N!$ECHO_N$ac_delim
20997ECHO_T!$ECHO_T$ac_delim
20998LIBS!$LIBS$ac_delim
20999build_alias!$build_alias$ac_delim
21000host_alias!$host_alias$ac_delim
21001target_alias!$target_alias$ac_delim
21002INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21003INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21004INSTALL_DATA!$INSTALL_DATA$ac_delim
21005am__isrc!$am__isrc$ac_delim
21006CYGPATH_W!$CYGPATH_W$ac_delim
21007PACKAGE!$PACKAGE$ac_delim
21008VERSION!$VERSION$ac_delim
21009ACLOCAL!$ACLOCAL$ac_delim
21010AUTOCONF!$AUTOCONF$ac_delim
21011AUTOMAKE!$AUTOMAKE$ac_delim
21012AUTOHEADER!$AUTOHEADER$ac_delim
21013MAKEINFO!$MAKEINFO$ac_delim
21014install_sh!$install_sh$ac_delim
21015STRIP!$STRIP$ac_delim
21016INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21017mkdir_p!$mkdir_p$ac_delim
21018AWK!$AWK$ac_delim
21019SET_MAKE!$SET_MAKE$ac_delim
21020am__leading_dot!$am__leading_dot$ac_delim
21021AMTAR!$AMTAR$ac_delim
21022am__tar!$am__tar$ac_delim
21023am__untar!$am__untar$ac_delim
21024MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21025MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21026MAINT!$MAINT$ac_delim
21027CC!$CC$ac_delim
21028CFLAGS!$CFLAGS$ac_delim
21029LDFLAGS!$LDFLAGS$ac_delim
21030CPPFLAGS!$CPPFLAGS$ac_delim
21031ac_ct_CC!$ac_ct_CC$ac_delim
21032EXEEXT!$EXEEXT$ac_delim
21033OBJEXT!$OBJEXT$ac_delim
21034DEPDIR!$DEPDIR$ac_delim
21035am__include!$am__include$ac_delim
21036am__quote!$am__quote$ac_delim
21037AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21038AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21039AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21040CCDEPMODE!$CCDEPMODE$ac_delim
21041am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21042am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21043build!$build$ac_delim
21044build_cpu!$build_cpu$ac_delim
21045build_vendor!$build_vendor$ac_delim
21046build_os!$build_os$ac_delim
21047host!$host$ac_delim
21048host_cpu!$host_cpu$ac_delim
21049host_vendor!$host_vendor$ac_delim
21050host_os!$host_os$ac_delim
21051GREP!$GREP$ac_delim
21052EGREP!$EGREP$ac_delim
21053LN_S!$LN_S$ac_delim
21054ECHO!$ECHO$ac_delim
21055AR!$AR$ac_delim
21056RANLIB!$RANLIB$ac_delim
21057CPP!$CPP$ac_delim
21058CXX!$CXX$ac_delim
21059CXXFLAGS!$CXXFLAGS$ac_delim
21060ac_ct_CXX!$ac_ct_CXX$ac_delim
21061CXXDEPMODE!$CXXDEPMODE$ac_delim
21062_ACEOF
21063
21064  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21065    break
21066  elif $ac_last_try; then
21067    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21068echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21069   { (exit 1); exit 1; }; }
21070  else
21071    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21072  fi
21073done
21074
21075ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21076if test -n "$ac_eof"; then
21077  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21078  ac_eof=`expr $ac_eof + 1`
21079fi
21080
21081cat >>$CONFIG_STATUS <<_ACEOF
21082cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21083/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21084_ACEOF
21085sed '
21086s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21087s/^/s,@/; s/!/@,|#_!!_#|/
21088:n
21089t n
21090s/'"$ac_delim"'$/,g/; t
21091s/$/\\/; p
21092N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21093' >>$CONFIG_STATUS <conf$$subs.sed
21094rm -f conf$$subs.sed
21095cat >>$CONFIG_STATUS <<_ACEOF
21096CEOF$ac_eof
21097_ACEOF
21098
21099
21100ac_delim='%!_!# '
21101for ac_last_try in false false false false false :; do
21102  cat >conf$$subs.sed <<_ACEOF
21103am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21104am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21105CXXCPP!$CXXCPP$ac_delim
21106F77!$F77$ac_delim
21107FFLAGS!$FFLAGS$ac_delim
21108ac_ct_F77!$ac_ct_F77$ac_delim
21109LIBTOOL!$LIBTOOL$ac_delim
21110CWARNFLAGS!$CWARNFLAGS$ac_delim
21111PCIIDS_PATH!$PCIIDS_PATH$ac_delim
21112LINUX_TRUE!$LINUX_TRUE$ac_delim
21113LINUX_FALSE!$LINUX_FALSE$ac_delim
21114FREEBSD_TRUE!$FREEBSD_TRUE$ac_delim
21115FREEBSD_FALSE!$FREEBSD_FALSE$ac_delim
21116NETBSD_TRUE!$NETBSD_TRUE$ac_delim
21117NETBSD_FALSE!$NETBSD_FALSE$ac_delim
21118OPENBSD_TRUE!$OPENBSD_TRUE$ac_delim
21119OPENBSD_FALSE!$OPENBSD_FALSE$ac_delim
21120SOLARIS_TRUE!$SOLARIS_TRUE$ac_delim
21121SOLARIS_FALSE!$SOLARIS_FALSE$ac_delim
21122PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim
21123PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim
21124CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim
21125distcleancheck_listfiles!$distcleancheck_listfiles$ac_delim
21126LIBOBJS!$LIBOBJS$ac_delim
21127LTLIBOBJS!$LTLIBOBJS$ac_delim
21128_ACEOF
21129
21130  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
21131    break
21132  elif $ac_last_try; then
21133    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21134echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21135   { (exit 1); exit 1; }; }
21136  else
21137    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21138  fi
21139done
21140
21141ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21142if test -n "$ac_eof"; then
21143  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21144  ac_eof=`expr $ac_eof + 1`
21145fi
21146
21147cat >>$CONFIG_STATUS <<_ACEOF
21148cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21149/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21150_ACEOF
21151sed '
21152s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21153s/^/s,@/; s/!/@,|#_!!_#|/
21154:n
21155t n
21156s/'"$ac_delim"'$/,g/; t
21157s/$/\\/; p
21158N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21159' >>$CONFIG_STATUS <conf$$subs.sed
21160rm -f conf$$subs.sed
21161cat >>$CONFIG_STATUS <<_ACEOF
21162:end
21163s/|#_!!_#|//g
21164CEOF$ac_eof
21165_ACEOF
21166
21167
21168# VPATH may cause trouble with some makes, so we remove $(srcdir),
21169# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21170# trailing colons and then remove the whole line if VPATH becomes empty
21171# (actually we leave an empty line to preserve line numbers).
21172if test "x$srcdir" = x.; then
21173  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21174s/:*\$(srcdir):*/:/
21175s/:*\${srcdir}:*/:/
21176s/:*@srcdir@:*/:/
21177s/^\([^=]*=[	 ]*\):*/\1/
21178s/:*$//
21179s/^[^=]*=[	 ]*$//
21180}'
21181fi
21182
21183cat >>$CONFIG_STATUS <<\_ACEOF
21184fi # test -n "$CONFIG_FILES"
21185
21186
21187for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21188do
21189  case $ac_tag in
21190  :[FHLC]) ac_mode=$ac_tag; continue;;
21191  esac
21192  case $ac_mode$ac_tag in
21193  :[FHL]*:*);;
21194  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21195echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21196   { (exit 1); exit 1; }; };;
21197  :[FH]-) ac_tag=-:-;;
21198  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21199  esac
21200  ac_save_IFS=$IFS
21201  IFS=:
21202  set x $ac_tag
21203  IFS=$ac_save_IFS
21204  shift
21205  ac_file=$1
21206  shift
21207
21208  case $ac_mode in
21209  :L) ac_source=$1;;
21210  :[FH])
21211    ac_file_inputs=
21212    for ac_f
21213    do
21214      case $ac_f in
21215      -) ac_f="$tmp/stdin";;
21216      *) # Look for the file first in the build tree, then in the source tree
21217	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21218	 # because $ac_f cannot contain `:'.
21219	 test -f "$ac_f" ||
21220	   case $ac_f in
21221	   [\\/$]*) false;;
21222	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21223	   esac ||
21224	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21225echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21226   { (exit 1); exit 1; }; };;
21227      esac
21228      ac_file_inputs="$ac_file_inputs $ac_f"
21229    done
21230
21231    # Let's still pretend it is `configure' which instantiates (i.e., don't
21232    # use $as_me), people would be surprised to read:
21233    #    /* config.h.  Generated by config.status.  */
21234    configure_input="Generated from "`IFS=:
21235	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21236    if test x"$ac_file" != x-; then
21237      configure_input="$ac_file.  $configure_input"
21238      { echo "$as_me:$LINENO: creating $ac_file" >&5
21239echo "$as_me: creating $ac_file" >&6;}
21240    fi
21241
21242    case $ac_tag in
21243    *:-:* | *:-) cat >"$tmp/stdin";;
21244    esac
21245    ;;
21246  esac
21247
21248  ac_dir=`$as_dirname -- "$ac_file" ||
21249$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21250	 X"$ac_file" : 'X\(//\)[^/]' \| \
21251	 X"$ac_file" : 'X\(//\)$' \| \
21252	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21253echo X"$ac_file" |
21254    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21255	    s//\1/
21256	    q
21257	  }
21258	  /^X\(\/\/\)[^/].*/{
21259	    s//\1/
21260	    q
21261	  }
21262	  /^X\(\/\/\)$/{
21263	    s//\1/
21264	    q
21265	  }
21266	  /^X\(\/\).*/{
21267	    s//\1/
21268	    q
21269	  }
21270	  s/.*/./; q'`
21271  { as_dir="$ac_dir"
21272  case $as_dir in #(
21273  -*) as_dir=./$as_dir;;
21274  esac
21275  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21276    as_dirs=
21277    while :; do
21278      case $as_dir in #(
21279      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21280      *) as_qdir=$as_dir;;
21281      esac
21282      as_dirs="'$as_qdir' $as_dirs"
21283      as_dir=`$as_dirname -- "$as_dir" ||
21284$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21285	 X"$as_dir" : 'X\(//\)[^/]' \| \
21286	 X"$as_dir" : 'X\(//\)$' \| \
21287	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21288echo X"$as_dir" |
21289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21290	    s//\1/
21291	    q
21292	  }
21293	  /^X\(\/\/\)[^/].*/{
21294	    s//\1/
21295	    q
21296	  }
21297	  /^X\(\/\/\)$/{
21298	    s//\1/
21299	    q
21300	  }
21301	  /^X\(\/\).*/{
21302	    s//\1/
21303	    q
21304	  }
21305	  s/.*/./; q'`
21306      test -d "$as_dir" && break
21307    done
21308    test -z "$as_dirs" || eval "mkdir $as_dirs"
21309  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21310echo "$as_me: error: cannot create directory $as_dir" >&2;}
21311   { (exit 1); exit 1; }; }; }
21312  ac_builddir=.
21313
21314case "$ac_dir" in
21315.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21316*)
21317  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21318  # A ".." for each directory in $ac_dir_suffix.
21319  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21320  case $ac_top_builddir_sub in
21321  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21322  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21323  esac ;;
21324esac
21325ac_abs_top_builddir=$ac_pwd
21326ac_abs_builddir=$ac_pwd$ac_dir_suffix
21327# for backward compatibility:
21328ac_top_builddir=$ac_top_build_prefix
21329
21330case $srcdir in
21331  .)  # We are building in place.
21332    ac_srcdir=.
21333    ac_top_srcdir=$ac_top_builddir_sub
21334    ac_abs_top_srcdir=$ac_pwd ;;
21335  [\\/]* | ?:[\\/]* )  # Absolute name.
21336    ac_srcdir=$srcdir$ac_dir_suffix;
21337    ac_top_srcdir=$srcdir
21338    ac_abs_top_srcdir=$srcdir ;;
21339  *) # Relative name.
21340    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21341    ac_top_srcdir=$ac_top_build_prefix$srcdir
21342    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21343esac
21344ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21345
21346
21347  case $ac_mode in
21348  :F)
21349  #
21350  # CONFIG_FILE
21351  #
21352
21353  case $INSTALL in
21354  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21355  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21356  esac
21357  ac_MKDIR_P=$MKDIR_P
21358  case $MKDIR_P in
21359  [\\/$]* | ?:[\\/]* ) ;;
21360  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21361  esac
21362_ACEOF
21363
21364cat >>$CONFIG_STATUS <<\_ACEOF
21365# If the template does not know about datarootdir, expand it.
21366# FIXME: This hack should be removed a few years after 2.60.
21367ac_datarootdir_hack=; ac_datarootdir_seen=
21368
21369case `sed -n '/datarootdir/ {
21370  p
21371  q
21372}
21373/@datadir@/p
21374/@docdir@/p
21375/@infodir@/p
21376/@localedir@/p
21377/@mandir@/p
21378' $ac_file_inputs` in
21379*datarootdir*) ac_datarootdir_seen=yes;;
21380*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21381  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21382echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21383_ACEOF
21384cat >>$CONFIG_STATUS <<_ACEOF
21385  ac_datarootdir_hack='
21386  s&@datadir@&$datadir&g
21387  s&@docdir@&$docdir&g
21388  s&@infodir@&$infodir&g
21389  s&@localedir@&$localedir&g
21390  s&@mandir@&$mandir&g
21391    s&\\\${datarootdir}&$datarootdir&g' ;;
21392esac
21393_ACEOF
21394
21395# Neutralize VPATH when `$srcdir' = `.'.
21396# Shell code in configure.ac might set extrasub.
21397# FIXME: do we really want to maintain this feature?
21398cat >>$CONFIG_STATUS <<_ACEOF
21399  sed "$ac_vpsub
21400$extrasub
21401_ACEOF
21402cat >>$CONFIG_STATUS <<\_ACEOF
21403:t
21404/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21405s&@configure_input@&$configure_input&;t t
21406s&@top_builddir@&$ac_top_builddir_sub&;t t
21407s&@srcdir@&$ac_srcdir&;t t
21408s&@abs_srcdir@&$ac_abs_srcdir&;t t
21409s&@top_srcdir@&$ac_top_srcdir&;t t
21410s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21411s&@builddir@&$ac_builddir&;t t
21412s&@abs_builddir@&$ac_abs_builddir&;t t
21413s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21414s&@INSTALL@&$ac_INSTALL&;t t
21415s&@MKDIR_P@&$ac_MKDIR_P&;t t
21416$ac_datarootdir_hack
21417" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21418
21419test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21420  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21421  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21422  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21423which seems to be undefined.  Please make sure it is defined." >&5
21424echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21425which seems to be undefined.  Please make sure it is defined." >&2;}
21426
21427  rm -f "$tmp/stdin"
21428  case $ac_file in
21429  -) cat "$tmp/out"; rm -f "$tmp/out";;
21430  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21431  esac
21432 ;;
21433  :H)
21434  #
21435  # CONFIG_HEADER
21436  #
21437_ACEOF
21438
21439# Transform confdefs.h into a sed script `conftest.defines', that
21440# substitutes the proper values into config.h.in to produce config.h.
21441rm -f conftest.defines conftest.tail
21442# First, append a space to every undef/define line, to ease matching.
21443echo 's/$/ /' >conftest.defines
21444# Then, protect against being on the right side of a sed subst, or in
21445# an unquoted here document, in config.status.  If some macros were
21446# called several times there might be several #defines for the same
21447# symbol, which is useless.  But do not sort them, since the last
21448# AC_DEFINE must be honored.
21449ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21450# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21451# NAME is the cpp macro being defined, VALUE is the value it is being given.
21452# PARAMS is the parameter list in the macro definition--in most cases, it's
21453# just an empty string.
21454ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21455ac_dB='\\)[	 (].*,\\1define\\2'
21456ac_dC=' '
21457ac_dD=' ,'
21458
21459uniq confdefs.h |
21460  sed -n '
21461	t rset
21462	:rset
21463	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21464	t ok
21465	d
21466	:ok
21467	s/[\\&,]/\\&/g
21468	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21469	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21470  ' >>conftest.defines
21471
21472# Remove the space that was appended to ease matching.
21473# Then replace #undef with comments.  This is necessary, for
21474# example, in the case of _POSIX_SOURCE, which is predefined and required
21475# on some systems where configure will not decide to define it.
21476# (The regexp can be short, since the line contains either #define or #undef.)
21477echo 's/ $//
21478s,^[	 #]*u.*,/* & */,' >>conftest.defines
21479
21480# Break up conftest.defines:
21481ac_max_sed_lines=50
21482
21483# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21484# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21485# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21486# et cetera.
21487ac_in='$ac_file_inputs'
21488ac_out='"$tmp/out1"'
21489ac_nxt='"$tmp/out2"'
21490
21491while :
21492do
21493  # Write a here document:
21494    cat >>$CONFIG_STATUS <<_ACEOF
21495    # First, check the format of the line:
21496    cat >"\$tmp/defines.sed" <<\\CEOF
21497/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21498/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
21499b
21500:def
21501_ACEOF
21502  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21503  echo 'CEOF
21504    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21505  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21506  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21507  grep . conftest.tail >/dev/null || break
21508  rm -f conftest.defines
21509  mv conftest.tail conftest.defines
21510done
21511rm -f conftest.defines conftest.tail
21512
21513echo "ac_result=$ac_in" >>$CONFIG_STATUS
21514cat >>$CONFIG_STATUS <<\_ACEOF
21515  if test x"$ac_file" != x-; then
21516    echo "/* $configure_input  */" >"$tmp/config.h"
21517    cat "$ac_result" >>"$tmp/config.h"
21518    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21519      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21520echo "$as_me: $ac_file is unchanged" >&6;}
21521    else
21522      rm -f $ac_file
21523      mv "$tmp/config.h" $ac_file
21524    fi
21525  else
21526    echo "/* $configure_input  */"
21527    cat "$ac_result"
21528  fi
21529  rm -f "$tmp/out12"
21530# Compute $ac_file's index in $config_headers.
21531_am_stamp_count=1
21532for _am_header in $config_headers :; do
21533  case $_am_header in
21534    $ac_file | $ac_file:* )
21535      break ;;
21536    * )
21537      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21538  esac
21539done
21540echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21541$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21542	 X$ac_file : 'X\(//\)[^/]' \| \
21543	 X$ac_file : 'X\(//\)$' \| \
21544	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21545echo X$ac_file |
21546    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21547	    s//\1/
21548	    q
21549	  }
21550	  /^X\(\/\/\)[^/].*/{
21551	    s//\1/
21552	    q
21553	  }
21554	  /^X\(\/\/\)$/{
21555	    s//\1/
21556	    q
21557	  }
21558	  /^X\(\/\).*/{
21559	    s//\1/
21560	    q
21561	  }
21562	  s/.*/./; q'`/stamp-h$_am_stamp_count
21563 ;;
21564
21565  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21566echo "$as_me: executing $ac_file commands" >&6;}
21567 ;;
21568  esac
21569
21570
21571  case $ac_file$ac_mode in
21572    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21573  # Strip MF so we end up with the name of the file.
21574  mf=`echo "$mf" | sed -e 's/:.*$//'`
21575  # Check whether this is an Automake generated Makefile or not.
21576  # We used to match only the files named `Makefile.in', but
21577  # some people rename them; so instead we look at the file content.
21578  # Grep'ing the first line is not enough: some people post-process
21579  # each Makefile.in and add a new line on top of each file to say so.
21580  # Grep'ing the whole file is not good either: AIX grep has a line
21581  # limit of 2048, but all sed's we know have understand at least 4000.
21582  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21583    dirpart=`$as_dirname -- "$mf" ||
21584$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21585	 X"$mf" : 'X\(//\)[^/]' \| \
21586	 X"$mf" : 'X\(//\)$' \| \
21587	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21588echo X"$mf" |
21589    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21590	    s//\1/
21591	    q
21592	  }
21593	  /^X\(\/\/\)[^/].*/{
21594	    s//\1/
21595	    q
21596	  }
21597	  /^X\(\/\/\)$/{
21598	    s//\1/
21599	    q
21600	  }
21601	  /^X\(\/\).*/{
21602	    s//\1/
21603	    q
21604	  }
21605	  s/.*/./; q'`
21606  else
21607    continue
21608  fi
21609  # Extract the definition of DEPDIR, am__include, and am__quote
21610  # from the Makefile without running `make'.
21611  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21612  test -z "$DEPDIR" && continue
21613  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21614  test -z "am__include" && continue
21615  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21616  # When using ansi2knr, U may be empty or an underscore; expand it
21617  U=`sed -n 's/^U = //p' < "$mf"`
21618  # Find all dependency output files, they are included files with
21619  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21620  # simplest approach to changing $(DEPDIR) to its actual value in the
21621  # expansion.
21622  for file in `sed -n "
21623    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21624       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21625    # Make sure the directory exists.
21626    test -f "$dirpart/$file" && continue
21627    fdir=`$as_dirname -- "$file" ||
21628$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21629	 X"$file" : 'X\(//\)[^/]' \| \
21630	 X"$file" : 'X\(//\)$' \| \
21631	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21632echo X"$file" |
21633    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21634	    s//\1/
21635	    q
21636	  }
21637	  /^X\(\/\/\)[^/].*/{
21638	    s//\1/
21639	    q
21640	  }
21641	  /^X\(\/\/\)$/{
21642	    s//\1/
21643	    q
21644	  }
21645	  /^X\(\/\).*/{
21646	    s//\1/
21647	    q
21648	  }
21649	  s/.*/./; q'`
21650    { as_dir=$dirpart/$fdir
21651  case $as_dir in #(
21652  -*) as_dir=./$as_dir;;
21653  esac
21654  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21655    as_dirs=
21656    while :; do
21657      case $as_dir in #(
21658      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21659      *) as_qdir=$as_dir;;
21660      esac
21661      as_dirs="'$as_qdir' $as_dirs"
21662      as_dir=`$as_dirname -- "$as_dir" ||
21663$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21664	 X"$as_dir" : 'X\(//\)[^/]' \| \
21665	 X"$as_dir" : 'X\(//\)$' \| \
21666	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21667echo X"$as_dir" |
21668    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21669	    s//\1/
21670	    q
21671	  }
21672	  /^X\(\/\/\)[^/].*/{
21673	    s//\1/
21674	    q
21675	  }
21676	  /^X\(\/\/\)$/{
21677	    s//\1/
21678	    q
21679	  }
21680	  /^X\(\/\).*/{
21681	    s//\1/
21682	    q
21683	  }
21684	  s/.*/./; q'`
21685      test -d "$as_dir" && break
21686    done
21687    test -z "$as_dirs" || eval "mkdir $as_dirs"
21688  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21689echo "$as_me: error: cannot create directory $as_dir" >&2;}
21690   { (exit 1); exit 1; }; }; }
21691    # echo "creating $dirpart/$file"
21692    echo '# dummy' > "$dirpart/$file"
21693  done
21694done
21695 ;;
21696
21697  esac
21698done # for ac_tag
21699
21700
21701{ (exit 0); exit 0; }
21702_ACEOF
21703chmod +x $CONFIG_STATUS
21704ac_clean_files=$ac_clean_files_save
21705
21706
21707# configure is writing to config.log, and then calls config.status.
21708# config.status does its own redirection, appending to config.log.
21709# Unfortunately, on DOS this fails, as config.log is still kept open
21710# by configure, so config.status won't be able to write to it; its
21711# output is simply discarded.  So we exec the FD to /dev/null,
21712# effectively closing config.log, so it can be properly (re)opened and
21713# appended to by config.status.  When coming back to configure, we
21714# need to make the FD available again.
21715if test "$no_create" != yes; then
21716  ac_cs_success=:
21717  ac_config_status_args=
21718  test "$silent" = yes &&
21719    ac_config_status_args="$ac_config_status_args --quiet"
21720  exec 5>/dev/null
21721  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21722  exec 5>>config.log
21723  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21724  # would make configure fail if this is the last instruction.
21725  $ac_cs_success || { (exit 1); exit 1; }
21726fi
21727
21728