configure revision 357bfbb2
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for xf86-video-wsfb 0.2.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='xf86-video-wsfb'
425PACKAGE_TARNAME='xf86-video-wsfb'
426PACKAGE_VERSION='0.2.1'
427PACKAGE_STRING='xf86-video-wsfb 0.2.1'
428PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
430ac_unique_file="Makefile.am"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XORG_CFLAGS XORG_LIBS moduledir DRIVER_NAME APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950ac_env_PKG_CONFIG_value=$PKG_CONFIG
951ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
953ac_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
954ac_env_XORG_CFLAGS_value=$XORG_CFLAGS
955ac_cv_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
956ac_cv_env_XORG_CFLAGS_value=$XORG_CFLAGS
957ac_env_XORG_LIBS_set=${XORG_LIBS+set}
958ac_env_XORG_LIBS_value=$XORG_LIBS
959ac_cv_env_XORG_LIBS_set=${XORG_LIBS+set}
960ac_cv_env_XORG_LIBS_value=$XORG_LIBS
961
962#
963# Report the --help message.
964#
965if test "$ac_init_help" = "long"; then
966  # Omit some internal or obsolete options to make the list less imposing.
967  # This message is too long to be a string in the A/UX 3.1 sh.
968  cat <<_ACEOF
969\`configure' configures xf86-video-wsfb 0.2.1 to adapt to many kinds of systems.
970
971Usage: $0 [OPTION]... [VAR=VALUE]...
972
973To assign environment variables (e.g., CC, CFLAGS...), specify them as
974VAR=VALUE.  See below for descriptions of some of the useful variables.
975
976Defaults for the options are specified in brackets.
977
978Configuration:
979  -h, --help              display this help and exit
980      --help=short        display options specific to this package
981      --help=recursive    display the short help of all the included packages
982  -V, --version           display version information and exit
983  -q, --quiet, --silent   do not print \`checking...' messages
984      --cache-file=FILE   cache test results in FILE [disabled]
985  -C, --config-cache      alias for \`--cache-file=config.cache'
986  -n, --no-create         do not create output files
987      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
988
989_ACEOF
990
991  cat <<_ACEOF
992Installation directories:
993  --prefix=PREFIX         install architecture-independent files in PREFIX
994			  [$ac_default_prefix]
995  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
996			  [PREFIX]
997
998By default, \`make install' will install all the files in
999\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1000an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001for instance \`--prefix=\$HOME'.
1002
1003For better control, use the options below.
1004
1005Fine tuning of the installation directories:
1006  --bindir=DIR           user executables [EPREFIX/bin]
1007  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1008  --libexecdir=DIR       program executables [EPREFIX/libexec]
1009  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1010  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1011  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1012  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1013  --libdir=DIR           object code libraries [EPREFIX/lib]
1014  --includedir=DIR       C header files [PREFIX/include]
1015  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1016  --infodir=DIR          info documentation [PREFIX/info]
1017  --mandir=DIR           man documentation [PREFIX/man]
1018_ACEOF
1019
1020  cat <<\_ACEOF
1021
1022Program names:
1023  --program-prefix=PREFIX            prepend PREFIX to installed program names
1024  --program-suffix=SUFFIX            append SUFFIX to installed program names
1025  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1026
1027System types:
1028  --build=BUILD     configure for building on BUILD [guessed]
1029  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1030_ACEOF
1031fi
1032
1033if test -n "$ac_init_help"; then
1034  case $ac_init_help in
1035     short | recursive ) echo "Configuration of xf86-video-wsfb 0.2.1:";;
1036   esac
1037  cat <<\_ACEOF
1038
1039Optional Features:
1040  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1041  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1042  --enable-maintainer-mode  enable make rules and dependencies not useful
1043			  (and sometimes confusing) to the casual installer
1044  --enable-static[=PKGS]
1045                          build static libraries [default=no]
1046  --enable-shared[=PKGS]
1047                          build shared libraries [default=yes]
1048  --enable-fast-install[=PKGS]
1049                          optimize for fast installation [default=yes]
1050  --disable-dependency-tracking  speeds up one-time build
1051  --enable-dependency-tracking   do not reject slow dependency extractors
1052  --disable-libtool-lock  avoid locking (might break parallel builds)
1053
1054Optional Packages:
1055  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1056  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1057  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1058  --with-pic              try to use only PIC/non-PIC objects [default=use
1059                          both]
1060  --with-tags[=TAGS]
1061                          include additional configurations [automatic]
1062  --with-xorg-module-dir=DIR
1063                          Default xorg module directory
1064                          [default=$libdir/xorg/modules]
1065  --with-release-version=STRING
1066                          Use release version string in package name
1067
1068Some influential environment variables:
1069  CC          C compiler command
1070  CFLAGS      C compiler flags
1071  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1072              nonstandard directory <lib dir>
1073  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074              headers in a nonstandard directory <include dir>
1075  CPP         C preprocessor
1076  CXX         C++ compiler command
1077  CXXFLAGS    C++ compiler flags
1078  CXXCPP      C++ preprocessor
1079  F77         Fortran 77 compiler command
1080  FFLAGS      Fortran 77 compiler flags
1081  PKG_CONFIG  path to pkg-config utility
1082  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1083  XORG_LIBS   linker flags for XORG, overriding pkg-config
1084
1085Use these variables to override the choices made by `configure' or to help
1086it to find libraries and programs with nonstandard names/locations.
1087
1088Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1089_ACEOF
1090fi
1091
1092if test "$ac_init_help" = "recursive"; then
1093  # If there are subdirs, report their specific --help.
1094  ac_popdir=`pwd`
1095  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1096    test -d $ac_dir || continue
1097    ac_builddir=.
1098
1099if test "$ac_dir" != .; then
1100  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1101  # A "../" for each directory in $ac_dir_suffix.
1102  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1103else
1104  ac_dir_suffix= ac_top_builddir=
1105fi
1106
1107case $srcdir in
1108  .)  # No --srcdir option.  We are building in place.
1109    ac_srcdir=.
1110    if test -z "$ac_top_builddir"; then
1111       ac_top_srcdir=.
1112    else
1113       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1114    fi ;;
1115  [\\/]* | ?:[\\/]* )  # Absolute path.
1116    ac_srcdir=$srcdir$ac_dir_suffix;
1117    ac_top_srcdir=$srcdir ;;
1118  *) # Relative path.
1119    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1120    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1121esac
1122
1123# Do not use `cd foo && pwd` to compute absolute paths, because
1124# the directories may not exist.
1125case `pwd` in
1126.) ac_abs_builddir="$ac_dir";;
1127*)
1128  case "$ac_dir" in
1129  .) ac_abs_builddir=`pwd`;;
1130  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1131  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1132  esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_top_builddir=${ac_top_builddir}.;;
1136*)
1137  case ${ac_top_builddir}. in
1138  .) ac_abs_top_builddir=$ac_abs_builddir;;
1139  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1140  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1141  esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_srcdir=$ac_srcdir;;
1145*)
1146  case $ac_srcdir in
1147  .) ac_abs_srcdir=$ac_abs_builddir;;
1148  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1149  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1150  esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_top_srcdir=$ac_top_srcdir;;
1154*)
1155  case $ac_top_srcdir in
1156  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1157  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1158  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1159  esac;;
1160esac
1161
1162    cd $ac_dir
1163    # Check for guested configure; otherwise get Cygnus style configure.
1164    if test -f $ac_srcdir/configure.gnu; then
1165      echo
1166      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1167    elif test -f $ac_srcdir/configure; then
1168      echo
1169      $SHELL $ac_srcdir/configure  --help=recursive
1170    elif test -f $ac_srcdir/configure.ac ||
1171	   test -f $ac_srcdir/configure.in; then
1172      echo
1173      $ac_configure --help
1174    else
1175      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176    fi
1177    cd $ac_popdir
1178  done
1179fi
1180
1181test -n "$ac_init_help" && exit 0
1182if $ac_init_version; then
1183  cat <<\_ACEOF
1184xf86-video-wsfb configure 0.2.1
1185generated by GNU Autoconf 2.59
1186
1187Copyright (C) 2003 Free Software Foundation, Inc.
1188This configure script is free software; the Free Software Foundation
1189gives unlimited permission to copy, distribute and modify it.
1190_ACEOF
1191  exit 0
1192fi
1193exec 5>config.log
1194cat >&5 <<_ACEOF
1195This file contains any messages produced by compilers while
1196running configure, to aid debugging if configure makes a mistake.
1197
1198It was created by xf86-video-wsfb $as_me 0.2.1, which was
1199generated by GNU Autoconf 2.59.  Invocation command line was
1200
1201  $ $0 $@
1202
1203_ACEOF
1204{
1205cat <<_ASUNAME
1206## --------- ##
1207## Platform. ##
1208## --------- ##
1209
1210hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1211uname -m = `(uname -m) 2>/dev/null || echo unknown`
1212uname -r = `(uname -r) 2>/dev/null || echo unknown`
1213uname -s = `(uname -s) 2>/dev/null || echo unknown`
1214uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215
1216/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1217/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1218
1219/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1220/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1221/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1222hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1223/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1224/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1225/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1226
1227_ASUNAME
1228
1229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230for as_dir in $PATH
1231do
1232  IFS=$as_save_IFS
1233  test -z "$as_dir" && as_dir=.
1234  echo "PATH: $as_dir"
1235done
1236
1237} >&5
1238
1239cat >&5 <<_ACEOF
1240
1241
1242## ----------- ##
1243## Core tests. ##
1244## ----------- ##
1245
1246_ACEOF
1247
1248
1249# Keep a trace of the command line.
1250# Strip out --no-create and --no-recursion so they do not pile up.
1251# Strip out --silent because we don't want to record it for future runs.
1252# Also quote any args containing shell meta-characters.
1253# Make two passes to allow for proper duplicate-argument suppression.
1254ac_configure_args=
1255ac_configure_args0=
1256ac_configure_args1=
1257ac_sep=
1258ac_must_keep_next=false
1259for ac_pass in 1 2
1260do
1261  for ac_arg
1262  do
1263    case $ac_arg in
1264    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1265    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266    | -silent | --silent | --silen | --sile | --sil)
1267      continue ;;
1268    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1270    esac
1271    case $ac_pass in
1272    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273    2)
1274      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1275      if test $ac_must_keep_next = true; then
1276	ac_must_keep_next=false # Got value, back to normal.
1277      else
1278	case $ac_arg in
1279	  *=* | --config-cache | -C | -disable-* | --disable-* \
1280	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1281	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1282	  | -with-* | --with-* | -without-* | --without-* | --x)
1283	    case "$ac_configure_args0 " in
1284	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1285	    esac
1286	    ;;
1287	  -* ) ac_must_keep_next=true ;;
1288	esac
1289      fi
1290      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1291      # Get rid of the leading space.
1292      ac_sep=" "
1293      ;;
1294    esac
1295  done
1296done
1297$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1298$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299
1300# When interrupted or exit'd, cleanup temporary files, and complete
1301# config.log.  We remove comments because anyway the quotes in there
1302# would cause problems or look ugly.
1303# WARNING: Be sure not to use single quotes in there, as some shells,
1304# such as our DU 5.0 friend, will then `close' the trap.
1305trap 'exit_status=$?
1306  # Save into config.log some information that might help in debugging.
1307  {
1308    echo
1309
1310    cat <<\_ASBOX
1311## ---------------- ##
1312## Cache variables. ##
1313## ---------------- ##
1314_ASBOX
1315    echo
1316    # The following way of writing the cache mishandles newlines in values,
1317{
1318  (set) 2>&1 |
1319    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1320    *ac_space=\ *)
1321      sed -n \
1322	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1323	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324      ;;
1325    *)
1326      sed -n \
1327	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1328      ;;
1329    esac;
1330}
1331    echo
1332
1333    cat <<\_ASBOX
1334## ----------------- ##
1335## Output variables. ##
1336## ----------------- ##
1337_ASBOX
1338    echo
1339    for ac_var in $ac_subst_vars
1340    do
1341      eval ac_val=$`echo $ac_var`
1342      echo "$ac_var='"'"'$ac_val'"'"'"
1343    done | sort
1344    echo
1345
1346    if test -n "$ac_subst_files"; then
1347      cat <<\_ASBOX
1348## ------------- ##
1349## Output files. ##
1350## ------------- ##
1351_ASBOX
1352      echo
1353      for ac_var in $ac_subst_files
1354      do
1355	eval ac_val=$`echo $ac_var`
1356	echo "$ac_var='"'"'$ac_val'"'"'"
1357      done | sort
1358      echo
1359    fi
1360
1361    if test -s confdefs.h; then
1362      cat <<\_ASBOX
1363## ----------- ##
1364## confdefs.h. ##
1365## ----------- ##
1366_ASBOX
1367      echo
1368      sed "/^$/d" confdefs.h | sort
1369      echo
1370    fi
1371    test "$ac_signal" != 0 &&
1372      echo "$as_me: caught signal $ac_signal"
1373    echo "$as_me: exit $exit_status"
1374  } >&5
1375  rm -f core *.core &&
1376  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1377    exit $exit_status
1378     ' 0
1379for ac_signal in 1 2 13 15; do
1380  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381done
1382ac_signal=0
1383
1384# confdefs.h avoids OS command line length limits that DEFS can exceed.
1385rm -rf conftest* confdefs.h
1386# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1387echo >confdefs.h
1388
1389# Predefined preprocessor variables.
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_NAME "$PACKAGE_NAME"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_VERSION "$PACKAGE_VERSION"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_STRING "$PACKAGE_STRING"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413_ACEOF
1414
1415
1416# Let the site file select an alternate cache file if it wants to.
1417# Prefer explicitly selected file to automatically selected ones.
1418if test -z "$CONFIG_SITE"; then
1419  if test "x$prefix" != xNONE; then
1420    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421  else
1422    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1423  fi
1424fi
1425for ac_site_file in $CONFIG_SITE; do
1426  if test -r "$ac_site_file"; then
1427    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1428echo "$as_me: loading site script $ac_site_file" >&6;}
1429    sed 's/^/| /' "$ac_site_file" >&5
1430    . "$ac_site_file"
1431  fi
1432done
1433
1434if test -r "$cache_file"; then
1435  # Some versions of bash will fail to source /dev/null (special
1436  # files actually), so we avoid doing that.
1437  if test -f "$cache_file"; then
1438    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1439echo "$as_me: loading cache $cache_file" >&6;}
1440    case $cache_file in
1441      [\\/]* | ?:[\\/]* ) . $cache_file;;
1442      *)                      . ./$cache_file;;
1443    esac
1444  fi
1445else
1446  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1447echo "$as_me: creating cache $cache_file" >&6;}
1448  >$cache_file
1449fi
1450
1451# Check that the precious variables saved in the cache have kept the same
1452# value.
1453ac_cache_corrupted=false
1454for ac_var in `(set) 2>&1 |
1455	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1456  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1457  eval ac_new_set=\$ac_env_${ac_var}_set
1458  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1459  eval ac_new_val="\$ac_env_${ac_var}_value"
1460  case $ac_old_set,$ac_new_set in
1461    set,)
1462      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1463echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1464      ac_cache_corrupted=: ;;
1465    ,set)
1466      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1467echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1468      ac_cache_corrupted=: ;;
1469    ,);;
1470    *)
1471      if test "x$ac_old_val" != "x$ac_new_val"; then
1472	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1473echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1474	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1475echo "$as_me:   former value:  $ac_old_val" >&2;}
1476	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1477echo "$as_me:   current value: $ac_new_val" >&2;}
1478	ac_cache_corrupted=:
1479      fi;;
1480  esac
1481  # Pass precious variables to config.status.
1482  if test "$ac_new_set" = set; then
1483    case $ac_new_val in
1484    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1485      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1486    *) ac_arg=$ac_var=$ac_new_val ;;
1487    esac
1488    case " $ac_configure_args " in
1489      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1490      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491    esac
1492  fi
1493done
1494if $ac_cache_corrupted; then
1495  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1496echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1497  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1498echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1499   { (exit 1); exit 1; }; }
1500fi
1501
1502ac_ext=c
1503ac_cpp='$CPP $CPPFLAGS'
1504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1506ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536          ac_config_headers="$ac_config_headers config.h"
1537
1538ac_aux_dir=
1539for ac_dir in . $srcdir/.; do
1540  if test -f $ac_dir/install-sh; then
1541    ac_aux_dir=$ac_dir
1542    ac_install_sh="$ac_aux_dir/install-sh -c"
1543    break
1544  elif test -f $ac_dir/install.sh; then
1545    ac_aux_dir=$ac_dir
1546    ac_install_sh="$ac_aux_dir/install.sh -c"
1547    break
1548  elif test -f $ac_dir/shtool; then
1549    ac_aux_dir=$ac_dir
1550    ac_install_sh="$ac_aux_dir/shtool install -c"
1551    break
1552  fi
1553done
1554if test -z "$ac_aux_dir"; then
1555  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1556echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1557   { (exit 1); exit 1; }; }
1558fi
1559ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1560ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1561ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562
1563
1564am__api_version="1.9"
1565# Find a good install program.  We prefer a C program (faster),
1566# so one script is as good as another.  But avoid the broken or
1567# incompatible versions:
1568# SysV /etc/install, /usr/sbin/install
1569# SunOS /usr/etc/install
1570# IRIX /sbin/install
1571# AIX /bin/install
1572# AmigaOS /C/install, which installs bootblocks on floppy discs
1573# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1574# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1575# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1576# OS/2's system install, which has a completely different semantic
1577# ./install, which can be erroneously created by make from ./install.sh.
1578echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1579echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1580if test -z "$INSTALL"; then
1581if test "${ac_cv_path_install+set}" = set; then
1582  echo $ECHO_N "(cached) $ECHO_C" >&6
1583else
1584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587  IFS=$as_save_IFS
1588  test -z "$as_dir" && as_dir=.
1589  # Account for people who put trailing slashes in PATH elements.
1590case $as_dir/ in
1591  ./ | .// | /cC/* | \
1592  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1593  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1594  /usr/ucb/* ) ;;
1595  *)
1596    # OSF1 and SCO ODT 3.0 have their own names for install.
1597    # Don't use installbsd from OSF since it installs stuff as root
1598    # by default.
1599    for ac_prog in ginstall scoinst install; do
1600      for ac_exec_ext in '' $ac_executable_extensions; do
1601	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1602	  if test $ac_prog = install &&
1603	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1604	    # AIX install.  It has an incompatible calling convention.
1605	    :
1606	  elif test $ac_prog = install &&
1607	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608	    # program-specific install script used by HP pwplus--don't use.
1609	    :
1610	  else
1611	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1612	    break 3
1613	  fi
1614	fi
1615      done
1616    done
1617    ;;
1618esac
1619done
1620
1621
1622fi
1623  if test "${ac_cv_path_install+set}" = set; then
1624    INSTALL=$ac_cv_path_install
1625  else
1626    # As a last resort, use the slow shell script.  We don't cache a
1627    # path for INSTALL within a source directory, because that will
1628    # break other packages using the cache if that directory is
1629    # removed, or if the path is relative.
1630    INSTALL=$ac_install_sh
1631  fi
1632fi
1633echo "$as_me:$LINENO: result: $INSTALL" >&5
1634echo "${ECHO_T}$INSTALL" >&6
1635
1636# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1637# It thinks the first close brace ends the variable substitution.
1638test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1639
1640test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1641
1642test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1643
1644echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1645echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1646# Just in case
1647sleep 1
1648echo timestamp > conftest.file
1649# Do `set' in a subshell so we don't clobber the current shell's
1650# arguments.  Must try -L first in case configure is actually a
1651# symlink; some systems play weird games with the mod time of symlinks
1652# (eg FreeBSD returns the mod time of the symlink's containing
1653# directory).
1654if (
1655   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1656   if test "$*" = "X"; then
1657      # -L didn't work.
1658      set X `ls -t $srcdir/configure conftest.file`
1659   fi
1660   rm -f conftest.file
1661   if test "$*" != "X $srcdir/configure conftest.file" \
1662      && test "$*" != "X conftest.file $srcdir/configure"; then
1663
1664      # If neither matched, then we have a broken ls.  This can happen
1665      # if, for instance, CONFIG_SHELL is bash and it inherits a
1666      # broken ls alias from the environment.  This has actually
1667      # happened.  Such a system could not be considered "sane".
1668      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1669alias in your environment" >&5
1670echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1671alias in your environment" >&2;}
1672   { (exit 1); exit 1; }; }
1673   fi
1674
1675   test "$2" = conftest.file
1676   )
1677then
1678   # Ok.
1679   :
1680else
1681   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1682Check your system clock" >&5
1683echo "$as_me: error: newly created file is older than distributed files!
1684Check your system clock" >&2;}
1685   { (exit 1); exit 1; }; }
1686fi
1687echo "$as_me:$LINENO: result: yes" >&5
1688echo "${ECHO_T}yes" >&6
1689test "$program_prefix" != NONE &&
1690  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1691# Use a double $ so make ignores it.
1692test "$program_suffix" != NONE &&
1693  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1694# Double any \ or $.  echo might interpret backslashes.
1695# By default was `s,x,x', remove it if useless.
1696cat <<\_ACEOF >conftest.sed
1697s/[\\$]/&&/g;s/;s,x,x,$//
1698_ACEOF
1699program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1700rm conftest.sed
1701
1702# expand $ac_aux_dir to an absolute path
1703am_aux_dir=`cd $ac_aux_dir && pwd`
1704
1705test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1706# Use eval to expand $SHELL
1707if eval "$MISSING --run true"; then
1708  am_missing_run="$MISSING --run "
1709else
1710  am_missing_run=
1711  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1712echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1713fi
1714
1715if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1716  # We used to keeping the `.' as first argument, in order to
1717  # allow $(mkdir_p) to be used without argument.  As in
1718  #   $(mkdir_p) $(somedir)
1719  # where $(somedir) is conditionally defined.  However this is wrong
1720  # for two reasons:
1721  #  1. if the package is installed by a user who cannot write `.'
1722  #     make install will fail,
1723  #  2. the above comment should most certainly read
1724  #     $(mkdir_p) $(DESTDIR)$(somedir)
1725  #     so it does not work when $(somedir) is undefined and
1726  #     $(DESTDIR) is not.
1727  #  To support the latter case, we have to write
1728  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1729  #  so the `.' trick is pointless.
1730  mkdir_p='mkdir -p --'
1731else
1732  # On NextStep and OpenStep, the `mkdir' command does not
1733  # recognize any option.  It will interpret all options as
1734  # directories to create, and then abort because `.' already
1735  # exists.
1736  for d in ./-p ./--version;
1737  do
1738    test -d $d && rmdir $d
1739  done
1740  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1741  if test -f "$ac_aux_dir/mkinstalldirs"; then
1742    mkdir_p='$(mkinstalldirs)'
1743  else
1744    mkdir_p='$(install_sh) -d'
1745  fi
1746fi
1747
1748for ac_prog in gawk mawk nawk awk
1749do
1750  # Extract the first word of "$ac_prog", so it can be a program name with args.
1751set dummy $ac_prog; ac_word=$2
1752echo "$as_me:$LINENO: checking for $ac_word" >&5
1753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754if test "${ac_cv_prog_AWK+set}" = set; then
1755  echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
1757  if test -n "$AWK"; then
1758  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1759else
1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761for as_dir in $PATH
1762do
1763  IFS=$as_save_IFS
1764  test -z "$as_dir" && as_dir=.
1765  for ac_exec_ext in '' $ac_executable_extensions; do
1766  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767    ac_cv_prog_AWK="$ac_prog"
1768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769    break 2
1770  fi
1771done
1772done
1773
1774fi
1775fi
1776AWK=$ac_cv_prog_AWK
1777if test -n "$AWK"; then
1778  echo "$as_me:$LINENO: result: $AWK" >&5
1779echo "${ECHO_T}$AWK" >&6
1780else
1781  echo "$as_me:$LINENO: result: no" >&5
1782echo "${ECHO_T}no" >&6
1783fi
1784
1785  test -n "$AWK" && break
1786done
1787
1788echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1789echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1790set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1791if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1792  echo $ECHO_N "(cached) $ECHO_C" >&6
1793else
1794  cat >conftest.make <<\_ACEOF
1795all:
1796	@echo 'ac_maketemp="$(MAKE)"'
1797_ACEOF
1798# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1799eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1800if test -n "$ac_maketemp"; then
1801  eval ac_cv_prog_make_${ac_make}_set=yes
1802else
1803  eval ac_cv_prog_make_${ac_make}_set=no
1804fi
1805rm -f conftest.make
1806fi
1807if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1808  echo "$as_me:$LINENO: result: yes" >&5
1809echo "${ECHO_T}yes" >&6
1810  SET_MAKE=
1811else
1812  echo "$as_me:$LINENO: result: no" >&5
1813echo "${ECHO_T}no" >&6
1814  SET_MAKE="MAKE=${MAKE-make}"
1815fi
1816
1817rm -rf .tst 2>/dev/null
1818mkdir .tst 2>/dev/null
1819if test -d .tst; then
1820  am__leading_dot=.
1821else
1822  am__leading_dot=_
1823fi
1824rmdir .tst 2>/dev/null
1825
1826# test to see if srcdir already configured
1827if test "`cd $srcdir && pwd`" != "`pwd`" &&
1828   test -f $srcdir/config.status; then
1829  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1830echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1831   { (exit 1); exit 1; }; }
1832fi
1833
1834# test whether we have cygpath
1835if test -z "$CYGPATH_W"; then
1836  if (cygpath --version) >/dev/null 2>/dev/null; then
1837    CYGPATH_W='cygpath -w'
1838  else
1839    CYGPATH_W=echo
1840  fi
1841fi
1842
1843
1844# Define the identity of the package.
1845 PACKAGE='xf86-video-wsfb'
1846 VERSION='0.2.1'
1847
1848
1849cat >>confdefs.h <<_ACEOF
1850#define PACKAGE "$PACKAGE"
1851_ACEOF
1852
1853
1854cat >>confdefs.h <<_ACEOF
1855#define VERSION "$VERSION"
1856_ACEOF
1857
1858# Some tools Automake needs.
1859
1860ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1861
1862
1863AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1864
1865
1866AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1867
1868
1869AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1870
1871
1872MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1873
1874install_sh=${install_sh-"$am_aux_dir/install-sh"}
1875
1876# Installed binaries are usually stripped using `strip' when the user
1877# run `make install-strip'.  However `strip' might not be the right
1878# tool to use in cross-compilation environments, therefore Automake
1879# will honor the `STRIP' environment variable to overrule this program.
1880if test "$cross_compiling" != no; then
1881  if test -n "$ac_tool_prefix"; then
1882  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1883set dummy ${ac_tool_prefix}strip; ac_word=$2
1884echo "$as_me:$LINENO: checking for $ac_word" >&5
1885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886if test "${ac_cv_prog_STRIP+set}" = set; then
1887  echo $ECHO_N "(cached) $ECHO_C" >&6
1888else
1889  if test -n "$STRIP"; then
1890  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1891else
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895  IFS=$as_save_IFS
1896  test -z "$as_dir" && as_dir=.
1897  for ac_exec_ext in '' $ac_executable_extensions; do
1898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901    break 2
1902  fi
1903done
1904done
1905
1906fi
1907fi
1908STRIP=$ac_cv_prog_STRIP
1909if test -n "$STRIP"; then
1910  echo "$as_me:$LINENO: result: $STRIP" >&5
1911echo "${ECHO_T}$STRIP" >&6
1912else
1913  echo "$as_me:$LINENO: result: no" >&5
1914echo "${ECHO_T}no" >&6
1915fi
1916
1917fi
1918if test -z "$ac_cv_prog_STRIP"; then
1919  ac_ct_STRIP=$STRIP
1920  # Extract the first word of "strip", so it can be a program name with args.
1921set dummy strip; ac_word=$2
1922echo "$as_me:$LINENO: checking for $ac_word" >&5
1923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1925  echo $ECHO_N "(cached) $ECHO_C" >&6
1926else
1927  if test -n "$ac_ct_STRIP"; then
1928  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1929else
1930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931for as_dir in $PATH
1932do
1933  IFS=$as_save_IFS
1934  test -z "$as_dir" && as_dir=.
1935  for ac_exec_ext in '' $ac_executable_extensions; do
1936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937    ac_cv_prog_ac_ct_STRIP="strip"
1938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939    break 2
1940  fi
1941done
1942done
1943
1944  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1945fi
1946fi
1947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1948if test -n "$ac_ct_STRIP"; then
1949  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1950echo "${ECHO_T}$ac_ct_STRIP" >&6
1951else
1952  echo "$as_me:$LINENO: result: no" >&5
1953echo "${ECHO_T}no" >&6
1954fi
1955
1956  STRIP=$ac_ct_STRIP
1957else
1958  STRIP="$ac_cv_prog_STRIP"
1959fi
1960
1961fi
1962INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1963
1964# We need awk for the "check" target.  The system "awk" is bad on
1965# some platforms.
1966# Always define AMTAR for backward compatibility.
1967
1968AMTAR=${AMTAR-"${am_missing_run}tar"}
1969
1970am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1971
1972
1973
1974
1975
1976
1977echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1978echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1979    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1980if test "${enable_maintainer_mode+set}" = set; then
1981  enableval="$enable_maintainer_mode"
1982  USE_MAINTAINER_MODE=$enableval
1983else
1984  USE_MAINTAINER_MODE=no
1985fi;
1986  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1987echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1988
1989
1990if test $USE_MAINTAINER_MODE = yes; then
1991  MAINTAINER_MODE_TRUE=
1992  MAINTAINER_MODE_FALSE='#'
1993else
1994  MAINTAINER_MODE_TRUE='#'
1995  MAINTAINER_MODE_FALSE=
1996fi
1997
1998  MAINT=$MAINTAINER_MODE_TRUE
1999
2000
2001
2002# Checks for programs.
2003# Check whether --enable-static or --disable-static was given.
2004if test "${enable_static+set}" = set; then
2005  enableval="$enable_static"
2006  p=${PACKAGE-default}
2007    case $enableval in
2008    yes) enable_static=yes ;;
2009    no) enable_static=no ;;
2010    *)
2011     enable_static=no
2012      # Look at the argument we got.  We use all the common list separators.
2013      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2014      for pkg in $enableval; do
2015	IFS="$lt_save_ifs"
2016	if test "X$pkg" = "X$p"; then
2017	  enable_static=yes
2018	fi
2019      done
2020      IFS="$lt_save_ifs"
2021      ;;
2022    esac
2023else
2024  enable_static=no
2025fi;
2026
2027
2028# Check whether --enable-shared or --disable-shared was given.
2029if test "${enable_shared+set}" = set; then
2030  enableval="$enable_shared"
2031  p=${PACKAGE-default}
2032    case $enableval in
2033    yes) enable_shared=yes ;;
2034    no) enable_shared=no ;;
2035    *)
2036      enable_shared=no
2037      # Look at the argument we got.  We use all the common list separators.
2038      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2039      for pkg in $enableval; do
2040	IFS="$lt_save_ifs"
2041	if test "X$pkg" = "X$p"; then
2042	  enable_shared=yes
2043	fi
2044      done
2045      IFS="$lt_save_ifs"
2046      ;;
2047    esac
2048else
2049  enable_shared=yes
2050fi;
2051
2052# Check whether --enable-fast-install or --disable-fast-install was given.
2053if test "${enable_fast_install+set}" = set; then
2054  enableval="$enable_fast_install"
2055  p=${PACKAGE-default}
2056    case $enableval in
2057    yes) enable_fast_install=yes ;;
2058    no) enable_fast_install=no ;;
2059    *)
2060      enable_fast_install=no
2061      # Look at the argument we got.  We use all the common list separators.
2062      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2063      for pkg in $enableval; do
2064	IFS="$lt_save_ifs"
2065	if test "X$pkg" = "X$p"; then
2066	  enable_fast_install=yes
2067	fi
2068      done
2069      IFS="$lt_save_ifs"
2070      ;;
2071    esac
2072else
2073  enable_fast_install=yes
2074fi;
2075
2076# Make sure we can run config.sub.
2077$ac_config_sub sun4 >/dev/null 2>&1 ||
2078  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2079echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2080   { (exit 1); exit 1; }; }
2081
2082echo "$as_me:$LINENO: checking build system type" >&5
2083echo $ECHO_N "checking build system type... $ECHO_C" >&6
2084if test "${ac_cv_build+set}" = set; then
2085  echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087  ac_cv_build_alias=$build_alias
2088test -z "$ac_cv_build_alias" &&
2089  ac_cv_build_alias=`$ac_config_guess`
2090test -z "$ac_cv_build_alias" &&
2091  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2092echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2093   { (exit 1); exit 1; }; }
2094ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2095  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2096echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2097   { (exit 1); exit 1; }; }
2098
2099fi
2100echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2101echo "${ECHO_T}$ac_cv_build" >&6
2102build=$ac_cv_build
2103build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2104build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2105build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2106
2107
2108echo "$as_me:$LINENO: checking host system type" >&5
2109echo $ECHO_N "checking host system type... $ECHO_C" >&6
2110if test "${ac_cv_host+set}" = set; then
2111  echo $ECHO_N "(cached) $ECHO_C" >&6
2112else
2113  ac_cv_host_alias=$host_alias
2114test -z "$ac_cv_host_alias" &&
2115  ac_cv_host_alias=$ac_cv_build_alias
2116ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2117  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2118echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2119   { (exit 1); exit 1; }; }
2120
2121fi
2122echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2123echo "${ECHO_T}$ac_cv_host" >&6
2124host=$ac_cv_host
2125host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2126host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2127host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2128
2129
2130DEPDIR="${am__leading_dot}deps"
2131
2132          ac_config_commands="$ac_config_commands depfiles"
2133
2134
2135am_make=${MAKE-make}
2136cat > confinc << 'END'
2137am__doit:
2138	@echo done
2139.PHONY: am__doit
2140END
2141# If we don't find an include directive, just comment out the code.
2142echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2143echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2144am__include="#"
2145am__quote=
2146_am_result=none
2147# First try GNU make style include.
2148echo "include confinc" > confmf
2149# We grep out `Entering directory' and `Leaving directory'
2150# messages which can occur if `w' ends up in MAKEFLAGS.
2151# In particular we don't look at `^make:' because GNU make might
2152# be invoked under some other name (usually "gmake"), in which
2153# case it prints its new name instead of `make'.
2154if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2155   am__include=include
2156   am__quote=
2157   _am_result=GNU
2158fi
2159# Now try BSD make style include.
2160if test "$am__include" = "#"; then
2161   echo '.include "confinc"' > confmf
2162   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2163      am__include=.include
2164      am__quote="\""
2165      _am_result=BSD
2166   fi
2167fi
2168
2169
2170echo "$as_me:$LINENO: result: $_am_result" >&5
2171echo "${ECHO_T}$_am_result" >&6
2172rm -f confinc confmf
2173
2174# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2175if test "${enable_dependency_tracking+set}" = set; then
2176  enableval="$enable_dependency_tracking"
2177
2178fi;
2179if test "x$enable_dependency_tracking" != xno; then
2180  am_depcomp="$ac_aux_dir/depcomp"
2181  AMDEPBACKSLASH='\'
2182fi
2183
2184
2185if test "x$enable_dependency_tracking" != xno; then
2186  AMDEP_TRUE=
2187  AMDEP_FALSE='#'
2188else
2189  AMDEP_TRUE='#'
2190  AMDEP_FALSE=
2191fi
2192
2193
2194
2195ac_ext=c
2196ac_cpp='$CPP $CPPFLAGS'
2197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200if test -n "$ac_tool_prefix"; then
2201  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2202set dummy ${ac_tool_prefix}gcc; ac_word=$2
2203echo "$as_me:$LINENO: checking for $ac_word" >&5
2204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2205if test "${ac_cv_prog_CC+set}" = set; then
2206  echo $ECHO_N "(cached) $ECHO_C" >&6
2207else
2208  if test -n "$CC"; then
2209  ac_cv_prog_CC="$CC" # Let the user override the test.
2210else
2211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212for as_dir in $PATH
2213do
2214  IFS=$as_save_IFS
2215  test -z "$as_dir" && as_dir=.
2216  for ac_exec_ext in '' $ac_executable_extensions; do
2217  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2218    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2219    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220    break 2
2221  fi
2222done
2223done
2224
2225fi
2226fi
2227CC=$ac_cv_prog_CC
2228if test -n "$CC"; then
2229  echo "$as_me:$LINENO: result: $CC" >&5
2230echo "${ECHO_T}$CC" >&6
2231else
2232  echo "$as_me:$LINENO: result: no" >&5
2233echo "${ECHO_T}no" >&6
2234fi
2235
2236fi
2237if test -z "$ac_cv_prog_CC"; then
2238  ac_ct_CC=$CC
2239  # Extract the first word of "gcc", so it can be a program name with args.
2240set dummy gcc; ac_word=$2
2241echo "$as_me:$LINENO: checking for $ac_word" >&5
2242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2244  echo $ECHO_N "(cached) $ECHO_C" >&6
2245else
2246  if test -n "$ac_ct_CC"; then
2247  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2248else
2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250for as_dir in $PATH
2251do
2252  IFS=$as_save_IFS
2253  test -z "$as_dir" && as_dir=.
2254  for ac_exec_ext in '' $ac_executable_extensions; do
2255  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2256    ac_cv_prog_ac_ct_CC="gcc"
2257    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258    break 2
2259  fi
2260done
2261done
2262
2263fi
2264fi
2265ac_ct_CC=$ac_cv_prog_ac_ct_CC
2266if test -n "$ac_ct_CC"; then
2267  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2268echo "${ECHO_T}$ac_ct_CC" >&6
2269else
2270  echo "$as_me:$LINENO: result: no" >&5
2271echo "${ECHO_T}no" >&6
2272fi
2273
2274  CC=$ac_ct_CC
2275else
2276  CC="$ac_cv_prog_CC"
2277fi
2278
2279if test -z "$CC"; then
2280  if test -n "$ac_tool_prefix"; then
2281  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2282set dummy ${ac_tool_prefix}cc; ac_word=$2
2283echo "$as_me:$LINENO: checking for $ac_word" >&5
2284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285if test "${ac_cv_prog_CC+set}" = set; then
2286  echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288  if test -n "$CC"; then
2289  ac_cv_prog_CC="$CC" # Let the user override the test.
2290else
2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294  IFS=$as_save_IFS
2295  test -z "$as_dir" && as_dir=.
2296  for ac_exec_ext in '' $ac_executable_extensions; do
2297  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2298    ac_cv_prog_CC="${ac_tool_prefix}cc"
2299    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300    break 2
2301  fi
2302done
2303done
2304
2305fi
2306fi
2307CC=$ac_cv_prog_CC
2308if test -n "$CC"; then
2309  echo "$as_me:$LINENO: result: $CC" >&5
2310echo "${ECHO_T}$CC" >&6
2311else
2312  echo "$as_me:$LINENO: result: no" >&5
2313echo "${ECHO_T}no" >&6
2314fi
2315
2316fi
2317if test -z "$ac_cv_prog_CC"; then
2318  ac_ct_CC=$CC
2319  # Extract the first word of "cc", so it can be a program name with args.
2320set dummy cc; ac_word=$2
2321echo "$as_me:$LINENO: checking for $ac_word" >&5
2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2324  echo $ECHO_N "(cached) $ECHO_C" >&6
2325else
2326  if test -n "$ac_ct_CC"; then
2327  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2328else
2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH
2331do
2332  IFS=$as_save_IFS
2333  test -z "$as_dir" && as_dir=.
2334  for ac_exec_ext in '' $ac_executable_extensions; do
2335  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336    ac_cv_prog_ac_ct_CC="cc"
2337    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338    break 2
2339  fi
2340done
2341done
2342
2343fi
2344fi
2345ac_ct_CC=$ac_cv_prog_ac_ct_CC
2346if test -n "$ac_ct_CC"; then
2347  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2348echo "${ECHO_T}$ac_ct_CC" >&6
2349else
2350  echo "$as_me:$LINENO: result: no" >&5
2351echo "${ECHO_T}no" >&6
2352fi
2353
2354  CC=$ac_ct_CC
2355else
2356  CC="$ac_cv_prog_CC"
2357fi
2358
2359fi
2360if test -z "$CC"; then
2361  # Extract the first word of "cc", so it can be a program name with args.
2362set dummy cc; ac_word=$2
2363echo "$as_me:$LINENO: checking for $ac_word" >&5
2364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365if test "${ac_cv_prog_CC+set}" = set; then
2366  echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368  if test -n "$CC"; then
2369  ac_cv_prog_CC="$CC" # Let the user override the test.
2370else
2371  ac_prog_rejected=no
2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373for as_dir in $PATH
2374do
2375  IFS=$as_save_IFS
2376  test -z "$as_dir" && as_dir=.
2377  for ac_exec_ext in '' $ac_executable_extensions; do
2378  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2379    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2380       ac_prog_rejected=yes
2381       continue
2382     fi
2383    ac_cv_prog_CC="cc"
2384    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385    break 2
2386  fi
2387done
2388done
2389
2390if test $ac_prog_rejected = yes; then
2391  # We found a bogon in the path, so make sure we never use it.
2392  set dummy $ac_cv_prog_CC
2393  shift
2394  if test $# != 0; then
2395    # We chose a different compiler from the bogus one.
2396    # However, it has the same basename, so the bogon will be chosen
2397    # first if we set CC to just the basename; use the full file name.
2398    shift
2399    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2400  fi
2401fi
2402fi
2403fi
2404CC=$ac_cv_prog_CC
2405if test -n "$CC"; then
2406  echo "$as_me:$LINENO: result: $CC" >&5
2407echo "${ECHO_T}$CC" >&6
2408else
2409  echo "$as_me:$LINENO: result: no" >&5
2410echo "${ECHO_T}no" >&6
2411fi
2412
2413fi
2414if test -z "$CC"; then
2415  if test -n "$ac_tool_prefix"; then
2416  for ac_prog in cl
2417  do
2418    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2420echo "$as_me:$LINENO: checking for $ac_word" >&5
2421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2422if test "${ac_cv_prog_CC+set}" = set; then
2423  echo $ECHO_N "(cached) $ECHO_C" >&6
2424else
2425  if test -n "$CC"; then
2426  ac_cv_prog_CC="$CC" # Let the user override the test.
2427else
2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431  IFS=$as_save_IFS
2432  test -z "$as_dir" && as_dir=.
2433  for ac_exec_ext in '' $ac_executable_extensions; do
2434  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2436    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437    break 2
2438  fi
2439done
2440done
2441
2442fi
2443fi
2444CC=$ac_cv_prog_CC
2445if test -n "$CC"; then
2446  echo "$as_me:$LINENO: result: $CC" >&5
2447echo "${ECHO_T}$CC" >&6
2448else
2449  echo "$as_me:$LINENO: result: no" >&5
2450echo "${ECHO_T}no" >&6
2451fi
2452
2453    test -n "$CC" && break
2454  done
2455fi
2456if test -z "$CC"; then
2457  ac_ct_CC=$CC
2458  for ac_prog in cl
2459do
2460  # Extract the first word of "$ac_prog", so it can be a program name with args.
2461set dummy $ac_prog; ac_word=$2
2462echo "$as_me:$LINENO: checking for $ac_word" >&5
2463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2464if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2465  echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467  if test -n "$ac_ct_CC"; then
2468  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469else
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473  IFS=$as_save_IFS
2474  test -z "$as_dir" && as_dir=.
2475  for ac_exec_ext in '' $ac_executable_extensions; do
2476  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477    ac_cv_prog_ac_ct_CC="$ac_prog"
2478    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479    break 2
2480  fi
2481done
2482done
2483
2484fi
2485fi
2486ac_ct_CC=$ac_cv_prog_ac_ct_CC
2487if test -n "$ac_ct_CC"; then
2488  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2489echo "${ECHO_T}$ac_ct_CC" >&6
2490else
2491  echo "$as_me:$LINENO: result: no" >&5
2492echo "${ECHO_T}no" >&6
2493fi
2494
2495  test -n "$ac_ct_CC" && break
2496done
2497
2498  CC=$ac_ct_CC
2499fi
2500
2501fi
2502
2503
2504test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2505See \`config.log' for more details." >&5
2506echo "$as_me: error: no acceptable C compiler found in \$PATH
2507See \`config.log' for more details." >&2;}
2508   { (exit 1); exit 1; }; }
2509
2510# Provide some information about the compiler.
2511echo "$as_me:$LINENO:" \
2512     "checking for C compiler version" >&5
2513ac_compiler=`set X $ac_compile; echo $2`
2514{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2515  (eval $ac_compiler --version </dev/null >&5) 2>&5
2516  ac_status=$?
2517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518  (exit $ac_status); }
2519{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2520  (eval $ac_compiler -v </dev/null >&5) 2>&5
2521  ac_status=$?
2522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523  (exit $ac_status); }
2524{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2525  (eval $ac_compiler -V </dev/null >&5) 2>&5
2526  ac_status=$?
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); }
2529
2530cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h.  */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h.  */
2536
2537int
2538main ()
2539{
2540
2541  ;
2542  return 0;
2543}
2544_ACEOF
2545ac_clean_files_save=$ac_clean_files
2546ac_clean_files="$ac_clean_files a.out a.exe b.out"
2547# Try to create an executable without -o first, disregard a.out.
2548# It will help us diagnose broken compilers, and finding out an intuition
2549# of exeext.
2550echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2551echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2552ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2553if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2554  (eval $ac_link_default) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; then
2558  # Find the output, starting from the most likely.  This scheme is
2559# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2560# resort.
2561
2562# Be careful to initialize this variable, since it used to be cached.
2563# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2564ac_cv_exeext=
2565# b.out is created by i960 compilers.
2566for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2567do
2568  test -f "$ac_file" || continue
2569  case $ac_file in
2570    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2571	;;
2572    conftest.$ac_ext )
2573	# This is the source file.
2574	;;
2575    [ab].out )
2576	# We found the default executable, but exeext='' is most
2577	# certainly right.
2578	break;;
2579    *.* )
2580	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2581	# FIXME: I believe we export ac_cv_exeext for Libtool,
2582	# but it would be cool to find out if it's true.  Does anybody
2583	# maintain Libtool? --akim.
2584	export ac_cv_exeext
2585	break;;
2586    * )
2587	break;;
2588  esac
2589done
2590else
2591  echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
2594{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2595See \`config.log' for more details." >&5
2596echo "$as_me: error: C compiler cannot create executables
2597See \`config.log' for more details." >&2;}
2598   { (exit 77); exit 77; }; }
2599fi
2600
2601ac_exeext=$ac_cv_exeext
2602echo "$as_me:$LINENO: result: $ac_file" >&5
2603echo "${ECHO_T}$ac_file" >&6
2604
2605# Check the compiler produces executables we can run.  If not, either
2606# the compiler is broken, or we cross compile.
2607echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2608echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2609# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2610# If not cross compiling, check that we can run a simple program.
2611if test "$cross_compiling" != yes; then
2612  if { ac_try='./$ac_file'
2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614  (eval $ac_try) 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; }; then
2618    cross_compiling=no
2619  else
2620    if test "$cross_compiling" = maybe; then
2621	cross_compiling=yes
2622    else
2623	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2624If you meant to cross compile, use \`--host'.
2625See \`config.log' for more details." >&5
2626echo "$as_me: error: cannot run C compiled programs.
2627If you meant to cross compile, use \`--host'.
2628See \`config.log' for more details." >&2;}
2629   { (exit 1); exit 1; }; }
2630    fi
2631  fi
2632fi
2633echo "$as_me:$LINENO: result: yes" >&5
2634echo "${ECHO_T}yes" >&6
2635
2636rm -f a.out a.exe conftest$ac_cv_exeext b.out
2637ac_clean_files=$ac_clean_files_save
2638# Check the compiler produces executables we can run.  If not, either
2639# the compiler is broken, or we cross compile.
2640echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2641echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2642echo "$as_me:$LINENO: result: $cross_compiling" >&5
2643echo "${ECHO_T}$cross_compiling" >&6
2644
2645echo "$as_me:$LINENO: checking for suffix of executables" >&5
2646echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2648  (eval $ac_link) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; then
2652  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2653# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2654# work properly (i.e., refer to `conftest.exe'), while it won't with
2655# `rm'.
2656for ac_file in conftest.exe conftest conftest.*; do
2657  test -f "$ac_file" || continue
2658  case $ac_file in
2659    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2660    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2661	  export ac_cv_exeext
2662	  break;;
2663    * ) break;;
2664  esac
2665done
2666else
2667  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2668See \`config.log' for more details." >&5
2669echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2670See \`config.log' for more details." >&2;}
2671   { (exit 1); exit 1; }; }
2672fi
2673
2674rm -f conftest$ac_cv_exeext
2675echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2676echo "${ECHO_T}$ac_cv_exeext" >&6
2677
2678rm -f conftest.$ac_ext
2679EXEEXT=$ac_cv_exeext
2680ac_exeext=$EXEEXT
2681echo "$as_me:$LINENO: checking for suffix of object files" >&5
2682echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2683if test "${ac_cv_objext+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  cat >conftest.$ac_ext <<_ACEOF
2687/* confdefs.h.  */
2688_ACEOF
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h.  */
2692
2693int
2694main ()
2695{
2696
2697  ;
2698  return 0;
2699}
2700_ACEOF
2701rm -f conftest.o conftest.obj
2702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703  (eval $ac_compile) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; then
2707  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2708  case $ac_file in
2709    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2710    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2711       break;;
2712  esac
2713done
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2719See \`config.log' for more details." >&5
2720echo "$as_me: error: cannot compute suffix of object files: cannot compile
2721See \`config.log' for more details." >&2;}
2722   { (exit 1); exit 1; }; }
2723fi
2724
2725rm -f conftest.$ac_cv_objext conftest.$ac_ext
2726fi
2727echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2728echo "${ECHO_T}$ac_cv_objext" >&6
2729OBJEXT=$ac_cv_objext
2730ac_objext=$OBJEXT
2731echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2732echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2733if test "${ac_cv_c_compiler_gnu+set}" = set; then
2734  echo $ECHO_N "(cached) $ECHO_C" >&6
2735else
2736  cat >conftest.$ac_ext <<_ACEOF
2737/* confdefs.h.  */
2738_ACEOF
2739cat confdefs.h >>conftest.$ac_ext
2740cat >>conftest.$ac_ext <<_ACEOF
2741/* end confdefs.h.  */
2742
2743int
2744main ()
2745{
2746#ifndef __GNUC__
2747       choke me
2748#endif
2749
2750  ;
2751  return 0;
2752}
2753_ACEOF
2754rm -f conftest.$ac_objext
2755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756  (eval $ac_compile) 2>conftest.er1
2757  ac_status=$?
2758  grep -v '^ *+' conftest.er1 >conftest.err
2759  rm -f conftest.er1
2760  cat conftest.err >&5
2761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762  (exit $ac_status); } &&
2763	 { ac_try='test -z "$ac_c_werror_flag"
2764			 || test ! -s conftest.err'
2765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766  (eval $ac_try) 2>&5
2767  ac_status=$?
2768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769  (exit $ac_status); }; } &&
2770	 { ac_try='test -s conftest.$ac_objext'
2771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772  (eval $ac_try) 2>&5
2773  ac_status=$?
2774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775  (exit $ac_status); }; }; then
2776  ac_compiler_gnu=yes
2777else
2778  echo "$as_me: failed program was:" >&5
2779sed 's/^/| /' conftest.$ac_ext >&5
2780
2781ac_compiler_gnu=no
2782fi
2783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784ac_cv_c_compiler_gnu=$ac_compiler_gnu
2785
2786fi
2787echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2788echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2789GCC=`test $ac_compiler_gnu = yes && echo yes`
2790ac_test_CFLAGS=${CFLAGS+set}
2791ac_save_CFLAGS=$CFLAGS
2792CFLAGS="-g"
2793echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2794echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2795if test "${ac_cv_prog_cc_g+set}" = set; then
2796  echo $ECHO_N "(cached) $ECHO_C" >&6
2797else
2798  cat >conftest.$ac_ext <<_ACEOF
2799/* confdefs.h.  */
2800_ACEOF
2801cat confdefs.h >>conftest.$ac_ext
2802cat >>conftest.$ac_ext <<_ACEOF
2803/* end confdefs.h.  */
2804
2805int
2806main ()
2807{
2808
2809  ;
2810  return 0;
2811}
2812_ACEOF
2813rm -f conftest.$ac_objext
2814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2815  (eval $ac_compile) 2>conftest.er1
2816  ac_status=$?
2817  grep -v '^ *+' conftest.er1 >conftest.err
2818  rm -f conftest.er1
2819  cat conftest.err >&5
2820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821  (exit $ac_status); } &&
2822	 { ac_try='test -z "$ac_c_werror_flag"
2823			 || test ! -s conftest.err'
2824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825  (eval $ac_try) 2>&5
2826  ac_status=$?
2827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828  (exit $ac_status); }; } &&
2829	 { ac_try='test -s conftest.$ac_objext'
2830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831  (eval $ac_try) 2>&5
2832  ac_status=$?
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); }; }; then
2835  ac_cv_prog_cc_g=yes
2836else
2837  echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
2840ac_cv_prog_cc_g=no
2841fi
2842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2843fi
2844echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2845echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2846if test "$ac_test_CFLAGS" = set; then
2847  CFLAGS=$ac_save_CFLAGS
2848elif test $ac_cv_prog_cc_g = yes; then
2849  if test "$GCC" = yes; then
2850    CFLAGS="-g -O2"
2851  else
2852    CFLAGS="-g"
2853  fi
2854else
2855  if test "$GCC" = yes; then
2856    CFLAGS="-O2"
2857  else
2858    CFLAGS=
2859  fi
2860fi
2861echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2862echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2863if test "${ac_cv_prog_cc_stdc+set}" = set; then
2864  echo $ECHO_N "(cached) $ECHO_C" >&6
2865else
2866  ac_cv_prog_cc_stdc=no
2867ac_save_CC=$CC
2868cat >conftest.$ac_ext <<_ACEOF
2869/* confdefs.h.  */
2870_ACEOF
2871cat confdefs.h >>conftest.$ac_ext
2872cat >>conftest.$ac_ext <<_ACEOF
2873/* end confdefs.h.  */
2874#include <stdarg.h>
2875#include <stdio.h>
2876#include <sys/types.h>
2877#include <sys/stat.h>
2878/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2879struct buf { int x; };
2880FILE * (*rcsopen) (struct buf *, struct stat *, int);
2881static char *e (p, i)
2882     char **p;
2883     int i;
2884{
2885  return p[i];
2886}
2887static char *f (char * (*g) (char **, int), char **p, ...)
2888{
2889  char *s;
2890  va_list v;
2891  va_start (v,p);
2892  s = g (p, va_arg (v,int));
2893  va_end (v);
2894  return s;
2895}
2896
2897/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2898   function prototypes and stuff, but not '\xHH' hex character constants.
2899   These don't provoke an error unfortunately, instead are silently treated
2900   as 'x'.  The following induces an error, until -std1 is added to get
2901   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2902   array size at least.  It's necessary to write '\x00'==0 to get something
2903   that's true only with -std1.  */
2904int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2905
2906int test (int i, double x);
2907struct s1 {int (*f) (int a);};
2908struct s2 {int (*f) (double a);};
2909int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2910int argc;
2911char **argv;
2912int
2913main ()
2914{
2915return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2916  ;
2917  return 0;
2918}
2919_ACEOF
2920# Don't try gcc -ansi; that turns off useful extensions and
2921# breaks some systems' header files.
2922# AIX			-qlanglvl=ansi
2923# Ultrix and OSF/1	-std1
2924# HP-UX 10.20 and later	-Ae
2925# HP-UX older versions	-Aa -D_HPUX_SOURCE
2926# SVR4			-Xc -D__EXTENSIONS__
2927for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2928do
2929  CC="$ac_save_CC $ac_arg"
2930  rm -f conftest.$ac_objext
2931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932  (eval $ac_compile) 2>conftest.er1
2933  ac_status=$?
2934  grep -v '^ *+' conftest.er1 >conftest.err
2935  rm -f conftest.er1
2936  cat conftest.err >&5
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); } &&
2939	 { ac_try='test -z "$ac_c_werror_flag"
2940			 || test ! -s conftest.err'
2941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942  (eval $ac_try) 2>&5
2943  ac_status=$?
2944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); }; } &&
2946	 { ac_try='test -s conftest.$ac_objext'
2947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948  (eval $ac_try) 2>&5
2949  ac_status=$?
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); }; }; then
2952  ac_cv_prog_cc_stdc=$ac_arg
2953break
2954else
2955  echo "$as_me: failed program was:" >&5
2956sed 's/^/| /' conftest.$ac_ext >&5
2957
2958fi
2959rm -f conftest.err conftest.$ac_objext
2960done
2961rm -f conftest.$ac_ext conftest.$ac_objext
2962CC=$ac_save_CC
2963
2964fi
2965
2966case "x$ac_cv_prog_cc_stdc" in
2967  x|xno)
2968    echo "$as_me:$LINENO: result: none needed" >&5
2969echo "${ECHO_T}none needed" >&6 ;;
2970  *)
2971    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2972echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2973    CC="$CC $ac_cv_prog_cc_stdc" ;;
2974esac
2975
2976# Some people use a C++ compiler to compile C.  Since we use `exit',
2977# in C++ we need to declare it.  In case someone uses the same compiler
2978# for both compiling C and C++ we need to have the C++ compiler decide
2979# the declaration of exit, since it's the most demanding environment.
2980cat >conftest.$ac_ext <<_ACEOF
2981#ifndef __cplusplus
2982  choke me
2983#endif
2984_ACEOF
2985rm -f conftest.$ac_objext
2986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2987  (eval $ac_compile) 2>conftest.er1
2988  ac_status=$?
2989  grep -v '^ *+' conftest.er1 >conftest.err
2990  rm -f conftest.er1
2991  cat conftest.err >&5
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); } &&
2994	 { ac_try='test -z "$ac_c_werror_flag"
2995			 || test ! -s conftest.err'
2996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997  (eval $ac_try) 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; } &&
3001	 { ac_try='test -s conftest.$ac_objext'
3002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003  (eval $ac_try) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }; }; then
3007  for ac_declaration in \
3008   '' \
3009   'extern "C" void std::exit (int) throw (); using std::exit;' \
3010   'extern "C" void std::exit (int); using std::exit;' \
3011   'extern "C" void exit (int) throw ();' \
3012   'extern "C" void exit (int);' \
3013   'void exit (int);'
3014do
3015  cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h.  */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h.  */
3021$ac_declaration
3022#include <stdlib.h>
3023int
3024main ()
3025{
3026exit (42);
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
3032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033  (eval $ac_compile) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040	 { ac_try='test -z "$ac_c_werror_flag"
3041			 || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047	 { ac_try='test -s conftest.$ac_objext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  :
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058continue
3059fi
3060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061  cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h.  */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h.  */
3067$ac_declaration
3068int
3069main ()
3070{
3071exit (42);
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext
3077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078  (eval $ac_compile) 2>conftest.er1
3079  ac_status=$?
3080  grep -v '^ *+' conftest.er1 >conftest.err
3081  rm -f conftest.er1
3082  cat conftest.err >&5
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); } &&
3085	 { ac_try='test -z "$ac_c_werror_flag"
3086			 || test ! -s conftest.err'
3087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088  (eval $ac_try) 2>&5
3089  ac_status=$?
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); }; } &&
3092	 { ac_try='test -s conftest.$ac_objext'
3093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094  (eval $ac_try) 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); }; }; then
3098  break
3099else
3100  echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
3103fi
3104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105done
3106rm -f conftest*
3107if test -n "$ac_declaration"; then
3108  echo '#ifdef __cplusplus' >>confdefs.h
3109  echo $ac_declaration      >>confdefs.h
3110  echo '#endif'             >>confdefs.h
3111fi
3112
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117fi
3118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3119ac_ext=c
3120ac_cpp='$CPP $CPPFLAGS'
3121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124
3125depcc="$CC"   am_compiler_list=
3126
3127echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3128echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3129if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3130  echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
3132  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3133  # We make a subdir and do the tests there.  Otherwise we can end up
3134  # making bogus files that we don't know about and never remove.  For
3135  # instance it was reported that on HP-UX the gcc test will end up
3136  # making a dummy file named `D' -- because `-MD' means `put the output
3137  # in D'.
3138  mkdir conftest.dir
3139  # Copy depcomp to subdir because otherwise we won't find it if we're
3140  # using a relative directory.
3141  cp "$am_depcomp" conftest.dir
3142  cd conftest.dir
3143  # We will build objects and dependencies in a subdirectory because
3144  # it helps to detect inapplicable dependency modes.  For instance
3145  # both Tru64's cc and ICC support -MD to output dependencies as a
3146  # side effect of compilation, but ICC will put the dependencies in
3147  # the current directory while Tru64 will put them in the object
3148  # directory.
3149  mkdir sub
3150
3151  am_cv_CC_dependencies_compiler_type=none
3152  if test "$am_compiler_list" = ""; then
3153     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3154  fi
3155  for depmode in $am_compiler_list; do
3156    # Setup a source with many dependencies, because some compilers
3157    # like to wrap large dependency lists on column 80 (with \), and
3158    # we should not choose a depcomp mode which is confused by this.
3159    #
3160    # We need to recreate these files for each test, as the compiler may
3161    # overwrite some of them when testing with obscure command lines.
3162    # This happens at least with the AIX C compiler.
3163    : > sub/conftest.c
3164    for i in 1 2 3 4 5 6; do
3165      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3166      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3167      # Solaris 8's {/usr,}/bin/sh.
3168      touch sub/conftst$i.h
3169    done
3170    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3171
3172    case $depmode in
3173    nosideeffect)
3174      # after this tag, mechanisms are not by side-effect, so they'll
3175      # only be used when explicitly requested
3176      if test "x$enable_dependency_tracking" = xyes; then
3177	continue
3178      else
3179	break
3180      fi
3181      ;;
3182    none) break ;;
3183    esac
3184    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3185    # mode.  It turns out that the SunPro C++ compiler does not properly
3186    # handle `-M -o', and we need to detect this.
3187    if depmode=$depmode \
3188       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3189       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3190       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3191         >/dev/null 2>conftest.err &&
3192       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3193       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3194       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3195      # icc doesn't choke on unknown options, it will just issue warnings
3196      # or remarks (even with -Werror).  So we grep stderr for any message
3197      # that says an option was ignored or not supported.
3198      # When given -MP, icc 7.0 and 7.1 complain thusly:
3199      #   icc: Command line warning: ignoring option '-M'; no argument required
3200      # The diagnosis changed in icc 8.0:
3201      #   icc: Command line remark: option '-MP' not supported
3202      if (grep 'ignoring option' conftest.err ||
3203          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3204        am_cv_CC_dependencies_compiler_type=$depmode
3205        break
3206      fi
3207    fi
3208  done
3209
3210  cd ..
3211  rm -rf conftest.dir
3212else
3213  am_cv_CC_dependencies_compiler_type=none
3214fi
3215
3216fi
3217echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3218echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3219CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3220
3221
3222
3223if
3224  test "x$enable_dependency_tracking" != xno \
3225  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3226  am__fastdepCC_TRUE=
3227  am__fastdepCC_FALSE='#'
3228else
3229  am__fastdepCC_TRUE='#'
3230  am__fastdepCC_FALSE=
3231fi
3232
3233
3234echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3235echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3236if test "${lt_cv_path_SED+set}" = set; then
3237  echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239  # Loop through the user's path and test for sed and gsed.
3240# Then use that list of sed's as ones to test for truncation.
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244  IFS=$as_save_IFS
3245  test -z "$as_dir" && as_dir=.
3246  for lt_ac_prog in sed gsed; do
3247    for ac_exec_ext in '' $ac_executable_extensions; do
3248      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3249        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3250      fi
3251    done
3252  done
3253done
3254lt_ac_max=0
3255lt_ac_count=0
3256# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3257# along with /bin/sed that truncates output.
3258for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3259  test ! -f $lt_ac_sed && continue
3260  cat /dev/null > conftest.in
3261  lt_ac_count=0
3262  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3263  # Check for GNU sed and select it if it is found.
3264  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3265    lt_cv_path_SED=$lt_ac_sed
3266    break
3267  fi
3268  while true; do
3269    cat conftest.in conftest.in >conftest.tmp
3270    mv conftest.tmp conftest.in
3271    cp conftest.in conftest.nl
3272    echo >>conftest.nl
3273    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3274    cmp -s conftest.out conftest.nl || break
3275    # 10000 chars as input seems more than enough
3276    test $lt_ac_count -gt 10 && break
3277    lt_ac_count=`expr $lt_ac_count + 1`
3278    if test $lt_ac_count -gt $lt_ac_max; then
3279      lt_ac_max=$lt_ac_count
3280      lt_cv_path_SED=$lt_ac_sed
3281    fi
3282  done
3283done
3284
3285fi
3286
3287SED=$lt_cv_path_SED
3288echo "$as_me:$LINENO: result: $SED" >&5
3289echo "${ECHO_T}$SED" >&6
3290
3291echo "$as_me:$LINENO: checking for egrep" >&5
3292echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3293if test "${ac_cv_prog_egrep+set}" = set; then
3294  echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3297    then ac_cv_prog_egrep='grep -E'
3298    else ac_cv_prog_egrep='egrep'
3299    fi
3300fi
3301echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3302echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3303 EGREP=$ac_cv_prog_egrep
3304
3305
3306
3307# Check whether --with-gnu-ld or --without-gnu-ld was given.
3308if test "${with_gnu_ld+set}" = set; then
3309  withval="$with_gnu_ld"
3310  test "$withval" = no || with_gnu_ld=yes
3311else
3312  with_gnu_ld=no
3313fi;
3314ac_prog=ld
3315if test "$GCC" = yes; then
3316  # Check if gcc -print-prog-name=ld gives a path.
3317  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3318echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3319  case $host in
3320  *-*-mingw*)
3321    # gcc leaves a trailing carriage return which upsets mingw
3322    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3323  *)
3324    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3325  esac
3326  case $ac_prog in
3327    # Accept absolute paths.
3328    [\\/]* | ?:[\\/]*)
3329      re_direlt='/[^/][^/]*/\.\./'
3330      # Canonicalize the pathname of ld
3331      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3332      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3333	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3334      done
3335      test -z "$LD" && LD="$ac_prog"
3336      ;;
3337  "")
3338    # If it fails, then pretend we aren't using GCC.
3339    ac_prog=ld
3340    ;;
3341  *)
3342    # If it is relative, then search for the first ld in PATH.
3343    with_gnu_ld=unknown
3344    ;;
3345  esac
3346elif test "$with_gnu_ld" = yes; then
3347  echo "$as_me:$LINENO: checking for GNU ld" >&5
3348echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3349else
3350  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3351echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3352fi
3353if test "${lt_cv_path_LD+set}" = set; then
3354  echo $ECHO_N "(cached) $ECHO_C" >&6
3355else
3356  if test -z "$LD"; then
3357  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3358  for ac_dir in $PATH; do
3359    IFS="$lt_save_ifs"
3360    test -z "$ac_dir" && ac_dir=.
3361    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3362      lt_cv_path_LD="$ac_dir/$ac_prog"
3363      # Check to see if the program is GNU ld.  I'd rather use --version,
3364      # but apparently some variants of GNU ld only accept -v.
3365      # Break only if it was the GNU/non-GNU ld that we prefer.
3366      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3367      *GNU* | *'with BFD'*)
3368	test "$with_gnu_ld" != no && break
3369	;;
3370      *)
3371	test "$with_gnu_ld" != yes && break
3372	;;
3373      esac
3374    fi
3375  done
3376  IFS="$lt_save_ifs"
3377else
3378  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3379fi
3380fi
3381
3382LD="$lt_cv_path_LD"
3383if test -n "$LD"; then
3384  echo "$as_me:$LINENO: result: $LD" >&5
3385echo "${ECHO_T}$LD" >&6
3386else
3387  echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
3389fi
3390test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3391echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3392   { (exit 1); exit 1; }; }
3393echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3394echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3395if test "${lt_cv_prog_gnu_ld+set}" = set; then
3396  echo $ECHO_N "(cached) $ECHO_C" >&6
3397else
3398  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3399case `$LD -v 2>&1 </dev/null` in
3400*GNU* | *'with BFD'*)
3401  lt_cv_prog_gnu_ld=yes
3402  ;;
3403*)
3404  lt_cv_prog_gnu_ld=no
3405  ;;
3406esac
3407fi
3408echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3409echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3410with_gnu_ld=$lt_cv_prog_gnu_ld
3411
3412
3413echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3414echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3415if test "${lt_cv_ld_reload_flag+set}" = set; then
3416  echo $ECHO_N "(cached) $ECHO_C" >&6
3417else
3418  lt_cv_ld_reload_flag='-r'
3419fi
3420echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3421echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3422reload_flag=$lt_cv_ld_reload_flag
3423case $reload_flag in
3424"" | " "*) ;;
3425*) reload_flag=" $reload_flag" ;;
3426esac
3427reload_cmds='$LD$reload_flag -o $output$reload_objs'
3428case $host_os in
3429  darwin*)
3430    if test "$GCC" = yes; then
3431      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3432    else
3433      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3434    fi
3435    ;;
3436esac
3437
3438echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3439echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3440if test "${lt_cv_path_NM+set}" = set; then
3441  echo $ECHO_N "(cached) $ECHO_C" >&6
3442else
3443  if test -n "$NM"; then
3444  # Let the user override the test.
3445  lt_cv_path_NM="$NM"
3446else
3447  lt_nm_to_check="${ac_tool_prefix}nm"
3448  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3449    lt_nm_to_check="$lt_nm_to_check nm"
3450  fi
3451  for lt_tmp_nm in $lt_nm_to_check; do
3452    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3453    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3454      IFS="$lt_save_ifs"
3455      test -z "$ac_dir" && ac_dir=.
3456      tmp_nm="$ac_dir/$lt_tmp_nm"
3457      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3458	# Check to see if the nm accepts a BSD-compat flag.
3459	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3460	#   nm: unknown option "B" ignored
3461	# Tru64's nm complains that /dev/null is an invalid object file
3462	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3463	*/dev/null* | *'Invalid file or object type'*)
3464	  lt_cv_path_NM="$tmp_nm -B"
3465	  break
3466	  ;;
3467	*)
3468	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3469	  */dev/null*)
3470	    lt_cv_path_NM="$tmp_nm -p"
3471	    break
3472	    ;;
3473	  *)
3474	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3475	    continue # so that we can try to find one that supports BSD flags
3476	    ;;
3477	  esac
3478	  ;;
3479	esac
3480      fi
3481    done
3482    IFS="$lt_save_ifs"
3483  done
3484  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3485fi
3486fi
3487echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3488echo "${ECHO_T}$lt_cv_path_NM" >&6
3489NM="$lt_cv_path_NM"
3490
3491echo "$as_me:$LINENO: checking whether ln -s works" >&5
3492echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3493LN_S=$as_ln_s
3494if test "$LN_S" = "ln -s"; then
3495  echo "$as_me:$LINENO: result: yes" >&5
3496echo "${ECHO_T}yes" >&6
3497else
3498  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3499echo "${ECHO_T}no, using $LN_S" >&6
3500fi
3501
3502echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3503echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3504if test "${lt_cv_deplibs_check_method+set}" = set; then
3505  echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507  lt_cv_file_magic_cmd='$MAGIC_CMD'
3508lt_cv_file_magic_test_file=
3509lt_cv_deplibs_check_method='unknown'
3510# Need to set the preceding variable on all platforms that support
3511# interlibrary dependencies.
3512# 'none' -- dependencies not supported.
3513# `unknown' -- same as none, but documents that we really don't know.
3514# 'pass_all' -- all dependencies passed with no checks.
3515# 'test_compile' -- check by making test program.
3516# 'file_magic [[regex]]' -- check by looking for files in library path
3517# which responds to the $file_magic_cmd with a given extended regex.
3518# If you have `file' or equivalent on your system and you're not sure
3519# whether `pass_all' will *always* work, you probably want this one.
3520
3521case $host_os in
3522aix4* | aix5*)
3523  lt_cv_deplibs_check_method=pass_all
3524  ;;
3525
3526beos*)
3527  lt_cv_deplibs_check_method=pass_all
3528  ;;
3529
3530bsdi[45]*)
3531  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3532  lt_cv_file_magic_cmd='/usr/bin/file -L'
3533  lt_cv_file_magic_test_file=/shlib/libc.so
3534  ;;
3535
3536cygwin*)
3537  # func_win32_libid is a shell function defined in ltmain.sh
3538  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3539  lt_cv_file_magic_cmd='func_win32_libid'
3540  ;;
3541
3542mingw* | pw32*)
3543  # Base MSYS/MinGW do not provide the 'file' command needed by
3544  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3545  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3546  lt_cv_file_magic_cmd='$OBJDUMP -f'
3547  ;;
3548
3549darwin* | rhapsody*)
3550  lt_cv_deplibs_check_method=pass_all
3551  ;;
3552
3553freebsd* | kfreebsd*-gnu | dragonfly*)
3554  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3555    case $host_cpu in
3556    i*86 )
3557      # Not sure whether the presence of OpenBSD here was a mistake.
3558      # Let's accept both of them until this is cleared up.
3559      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3560      lt_cv_file_magic_cmd=/usr/bin/file
3561      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3562      ;;
3563    esac
3564  else
3565    lt_cv_deplibs_check_method=pass_all
3566  fi
3567  ;;
3568
3569gnu*)
3570  lt_cv_deplibs_check_method=pass_all
3571  ;;
3572
3573hpux10.20* | hpux11*)
3574  lt_cv_file_magic_cmd=/usr/bin/file
3575  case $host_cpu in
3576  ia64*)
3577    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3578    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3579    ;;
3580  hppa*64*)
3581    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]'
3582    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3583    ;;
3584  *)
3585    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3586    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3587    ;;
3588  esac
3589  ;;
3590
3591interix3*)
3592  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3593  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3594  ;;
3595
3596irix5* | irix6* | nonstopux*)
3597  case $LD in
3598  *-32|*"-32 ") libmagic=32-bit;;
3599  *-n32|*"-n32 ") libmagic=N32;;
3600  *-64|*"-64 ") libmagic=64-bit;;
3601  *) libmagic=never-match;;
3602  esac
3603  lt_cv_deplibs_check_method=pass_all
3604  ;;
3605
3606# This must be Linux ELF.
3607linux*)
3608  lt_cv_deplibs_check_method=pass_all
3609  ;;
3610
3611netbsd*)
3612  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3613    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3614  else
3615    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3616  fi
3617  ;;
3618
3619newos6*)
3620  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3621  lt_cv_file_magic_cmd=/usr/bin/file
3622  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3623  ;;
3624
3625nto-qnx*)
3626  lt_cv_deplibs_check_method=unknown
3627  ;;
3628
3629openbsd*)
3630  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3631    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3632  else
3633    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3634  fi
3635  ;;
3636
3637osf3* | osf4* | osf5*)
3638  lt_cv_deplibs_check_method=pass_all
3639  ;;
3640
3641solaris*)
3642  lt_cv_deplibs_check_method=pass_all
3643  ;;
3644
3645sysv4 | sysv4.3*)
3646  case $host_vendor in
3647  motorola)
3648    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]'
3649    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3650    ;;
3651  ncr)
3652    lt_cv_deplibs_check_method=pass_all
3653    ;;
3654  sequent)
3655    lt_cv_file_magic_cmd='/bin/file'
3656    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3657    ;;
3658  sni)
3659    lt_cv_file_magic_cmd='/bin/file'
3660    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3661    lt_cv_file_magic_test_file=/lib/libc.so
3662    ;;
3663  siemens)
3664    lt_cv_deplibs_check_method=pass_all
3665    ;;
3666  pc)
3667    lt_cv_deplibs_check_method=pass_all
3668    ;;
3669  esac
3670  ;;
3671
3672sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3673  lt_cv_deplibs_check_method=pass_all
3674  ;;
3675esac
3676
3677fi
3678echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3679echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3680file_magic_cmd=$lt_cv_file_magic_cmd
3681deplibs_check_method=$lt_cv_deplibs_check_method
3682test -z "$deplibs_check_method" && deplibs_check_method=unknown
3683
3684
3685
3686
3687# If no C compiler was specified, use CC.
3688LTCC=${LTCC-"$CC"}
3689
3690# If no C compiler flags were specified, use CFLAGS.
3691LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3692
3693# Allow CC to be a program name with arguments.
3694compiler=$CC
3695
3696
3697# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3698if test "${enable_libtool_lock+set}" = set; then
3699  enableval="$enable_libtool_lock"
3700
3701fi;
3702test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3703
3704# Some flags need to be propagated to the compiler or linker for good
3705# libtool support.
3706case $host in
3707ia64-*-hpux*)
3708  # Find out which ABI we are using.
3709  echo 'int i;' > conftest.$ac_ext
3710  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711  (eval $ac_compile) 2>&5
3712  ac_status=$?
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); }; then
3715    case `/usr/bin/file conftest.$ac_objext` in
3716    *ELF-32*)
3717      HPUX_IA64_MODE="32"
3718      ;;
3719    *ELF-64*)
3720      HPUX_IA64_MODE="64"
3721      ;;
3722    esac
3723  fi
3724  rm -rf conftest*
3725  ;;
3726*-*-irix6*)
3727  # Find out which ABI we are using.
3728  echo '#line 3728 "configure"' > conftest.$ac_ext
3729  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730  (eval $ac_compile) 2>&5
3731  ac_status=$?
3732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733  (exit $ac_status); }; then
3734   if test "$lt_cv_prog_gnu_ld" = yes; then
3735    case `/usr/bin/file conftest.$ac_objext` in
3736    *32-bit*)
3737      LD="${LD-ld} -melf32bsmip"
3738      ;;
3739    *N32*)
3740      LD="${LD-ld} -melf32bmipn32"
3741      ;;
3742    *64-bit*)
3743      LD="${LD-ld} -melf64bmip"
3744      ;;
3745    esac
3746   else
3747    case `/usr/bin/file conftest.$ac_objext` in
3748    *32-bit*)
3749      LD="${LD-ld} -32"
3750      ;;
3751    *N32*)
3752      LD="${LD-ld} -n32"
3753      ;;
3754    *64-bit*)
3755      LD="${LD-ld} -64"
3756      ;;
3757    esac
3758   fi
3759  fi
3760  rm -rf conftest*
3761  ;;
3762
3763x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3764  # Find out which ABI we are using.
3765  echo 'int i;' > conftest.$ac_ext
3766  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767  (eval $ac_compile) 2>&5
3768  ac_status=$?
3769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770  (exit $ac_status); }; then
3771    case `/usr/bin/file conftest.o` in
3772    *32-bit*)
3773      case $host in
3774        x86_64-*linux*)
3775          LD="${LD-ld} -m elf_i386"
3776          ;;
3777        ppc64-*linux*|powerpc64-*linux*)
3778          LD="${LD-ld} -m elf32ppclinux"
3779          ;;
3780        s390x-*linux*)
3781          LD="${LD-ld} -m elf_s390"
3782          ;;
3783        sparc64-*linux*)
3784          LD="${LD-ld} -m elf32_sparc"
3785          ;;
3786      esac
3787      ;;
3788    *64-bit*)
3789      case $host in
3790        x86_64-*linux*)
3791          LD="${LD-ld} -m elf_x86_64"
3792          ;;
3793        ppc*-*linux*|powerpc*-*linux*)
3794          LD="${LD-ld} -m elf64ppc"
3795          ;;
3796        s390*-*linux*)
3797          LD="${LD-ld} -m elf64_s390"
3798          ;;
3799        sparc*-*linux*)
3800          LD="${LD-ld} -m elf64_sparc"
3801          ;;
3802      esac
3803      ;;
3804    esac
3805  fi
3806  rm -rf conftest*
3807  ;;
3808
3809*-*-sco3.2v5*)
3810  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3811  SAVE_CFLAGS="$CFLAGS"
3812  CFLAGS="$CFLAGS -belf"
3813  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3814echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3815if test "${lt_cv_cc_needs_belf+set}" = set; then
3816  echo $ECHO_N "(cached) $ECHO_C" >&6
3817else
3818  ac_ext=c
3819ac_cpp='$CPP $CPPFLAGS'
3820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3822ac_compiler_gnu=$ac_cv_c_compiler_gnu
3823
3824     cat >conftest.$ac_ext <<_ACEOF
3825/* confdefs.h.  */
3826_ACEOF
3827cat confdefs.h >>conftest.$ac_ext
3828cat >>conftest.$ac_ext <<_ACEOF
3829/* end confdefs.h.  */
3830
3831int
3832main ()
3833{
3834
3835  ;
3836  return 0;
3837}
3838_ACEOF
3839rm -f conftest.$ac_objext conftest$ac_exeext
3840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3841  (eval $ac_link) 2>conftest.er1
3842  ac_status=$?
3843  grep -v '^ *+' conftest.er1 >conftest.err
3844  rm -f conftest.er1
3845  cat conftest.err >&5
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); } &&
3848	 { ac_try='test -z "$ac_c_werror_flag"
3849			 || test ! -s conftest.err'
3850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851  (eval $ac_try) 2>&5
3852  ac_status=$?
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); }; } &&
3855	 { ac_try='test -s conftest$ac_exeext'
3856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857  (eval $ac_try) 2>&5
3858  ac_status=$?
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); }; }; then
3861  lt_cv_cc_needs_belf=yes
3862else
3863  echo "$as_me: failed program was:" >&5
3864sed 's/^/| /' conftest.$ac_ext >&5
3865
3866lt_cv_cc_needs_belf=no
3867fi
3868rm -f conftest.err conftest.$ac_objext \
3869      conftest$ac_exeext conftest.$ac_ext
3870     ac_ext=c
3871ac_cpp='$CPP $CPPFLAGS'
3872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
3876fi
3877echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3878echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3879  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3880    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3881    CFLAGS="$SAVE_CFLAGS"
3882  fi
3883  ;;
3884sparc*-*solaris*)
3885  # Find out which ABI we are using.
3886  echo 'int i;' > conftest.$ac_ext
3887  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888  (eval $ac_compile) 2>&5
3889  ac_status=$?
3890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891  (exit $ac_status); }; then
3892    case `/usr/bin/file conftest.o` in
3893    *64-bit*)
3894      case $lt_cv_prog_gnu_ld in
3895      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3896      *)    LD="${LD-ld} -64" ;;
3897      esac
3898      ;;
3899    esac
3900  fi
3901  rm -rf conftest*
3902  ;;
3903
3904
3905esac
3906
3907need_locks="$enable_libtool_lock"
3908
3909
3910ac_ext=c
3911ac_cpp='$CPP $CPPFLAGS'
3912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3916echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3917# On Suns, sometimes $CPP names a directory.
3918if test -n "$CPP" && test -d "$CPP"; then
3919  CPP=
3920fi
3921if test -z "$CPP"; then
3922  if test "${ac_cv_prog_CPP+set}" = set; then
3923  echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925      # Double quotes because CPP needs to be expanded
3926    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3927    do
3928      ac_preproc_ok=false
3929for ac_c_preproc_warn_flag in '' yes
3930do
3931  # Use a header file that comes with gcc, so configuring glibc
3932  # with a fresh cross-compiler works.
3933  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3934  # <limits.h> exists even on freestanding compilers.
3935  # On the NeXT, cc -E runs the code through the compiler's parser,
3936  # not just through cpp. "Syntax error" is here to catch this case.
3937  cat >conftest.$ac_ext <<_ACEOF
3938/* confdefs.h.  */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h.  */
3943#ifdef __STDC__
3944# include <limits.h>
3945#else
3946# include <assert.h>
3947#endif
3948		     Syntax error
3949_ACEOF
3950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3951  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3952  ac_status=$?
3953  grep -v '^ *+' conftest.er1 >conftest.err
3954  rm -f conftest.er1
3955  cat conftest.err >&5
3956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957  (exit $ac_status); } >/dev/null; then
3958  if test -s conftest.err; then
3959    ac_cpp_err=$ac_c_preproc_warn_flag
3960    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3961  else
3962    ac_cpp_err=
3963  fi
3964else
3965  ac_cpp_err=yes
3966fi
3967if test -z "$ac_cpp_err"; then
3968  :
3969else
3970  echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
3973  # Broken: fails on valid input.
3974continue
3975fi
3976rm -f conftest.err conftest.$ac_ext
3977
3978  # OK, works on sane cases.  Now check whether non-existent headers
3979  # can be detected and how.
3980  cat >conftest.$ac_ext <<_ACEOF
3981/* confdefs.h.  */
3982_ACEOF
3983cat confdefs.h >>conftest.$ac_ext
3984cat >>conftest.$ac_ext <<_ACEOF
3985/* end confdefs.h.  */
3986#include <ac_nonexistent.h>
3987_ACEOF
3988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3989  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3990  ac_status=$?
3991  grep -v '^ *+' conftest.er1 >conftest.err
3992  rm -f conftest.er1
3993  cat conftest.err >&5
3994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995  (exit $ac_status); } >/dev/null; then
3996  if test -s conftest.err; then
3997    ac_cpp_err=$ac_c_preproc_warn_flag
3998    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3999  else
4000    ac_cpp_err=
4001  fi
4002else
4003  ac_cpp_err=yes
4004fi
4005if test -z "$ac_cpp_err"; then
4006  # Broken: success on invalid input.
4007continue
4008else
4009  echo "$as_me: failed program was:" >&5
4010sed 's/^/| /' conftest.$ac_ext >&5
4011
4012  # Passes both tests.
4013ac_preproc_ok=:
4014break
4015fi
4016rm -f conftest.err conftest.$ac_ext
4017
4018done
4019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4020rm -f conftest.err conftest.$ac_ext
4021if $ac_preproc_ok; then
4022  break
4023fi
4024
4025    done
4026    ac_cv_prog_CPP=$CPP
4027
4028fi
4029  CPP=$ac_cv_prog_CPP
4030else
4031  ac_cv_prog_CPP=$CPP
4032fi
4033echo "$as_me:$LINENO: result: $CPP" >&5
4034echo "${ECHO_T}$CPP" >&6
4035ac_preproc_ok=false
4036for ac_c_preproc_warn_flag in '' yes
4037do
4038  # Use a header file that comes with gcc, so configuring glibc
4039  # with a fresh cross-compiler works.
4040  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041  # <limits.h> exists even on freestanding compilers.
4042  # On the NeXT, cc -E runs the code through the compiler's parser,
4043  # not just through cpp. "Syntax error" is here to catch this case.
4044  cat >conftest.$ac_ext <<_ACEOF
4045/* confdefs.h.  */
4046_ACEOF
4047cat confdefs.h >>conftest.$ac_ext
4048cat >>conftest.$ac_ext <<_ACEOF
4049/* end confdefs.h.  */
4050#ifdef __STDC__
4051# include <limits.h>
4052#else
4053# include <assert.h>
4054#endif
4055		     Syntax error
4056_ACEOF
4057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4058  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4059  ac_status=$?
4060  grep -v '^ *+' conftest.er1 >conftest.err
4061  rm -f conftest.er1
4062  cat conftest.err >&5
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); } >/dev/null; then
4065  if test -s conftest.err; then
4066    ac_cpp_err=$ac_c_preproc_warn_flag
4067    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4068  else
4069    ac_cpp_err=
4070  fi
4071else
4072  ac_cpp_err=yes
4073fi
4074if test -z "$ac_cpp_err"; then
4075  :
4076else
4077  echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
4080  # Broken: fails on valid input.
4081continue
4082fi
4083rm -f conftest.err conftest.$ac_ext
4084
4085  # OK, works on sane cases.  Now check whether non-existent headers
4086  # can be detected and how.
4087  cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h.  */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h.  */
4093#include <ac_nonexistent.h>
4094_ACEOF
4095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4096  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4097  ac_status=$?
4098  grep -v '^ *+' conftest.er1 >conftest.err
4099  rm -f conftest.er1
4100  cat conftest.err >&5
4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); } >/dev/null; then
4103  if test -s conftest.err; then
4104    ac_cpp_err=$ac_c_preproc_warn_flag
4105    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4106  else
4107    ac_cpp_err=
4108  fi
4109else
4110  ac_cpp_err=yes
4111fi
4112if test -z "$ac_cpp_err"; then
4113  # Broken: success on invalid input.
4114continue
4115else
4116  echo "$as_me: failed program was:" >&5
4117sed 's/^/| /' conftest.$ac_ext >&5
4118
4119  # Passes both tests.
4120ac_preproc_ok=:
4121break
4122fi
4123rm -f conftest.err conftest.$ac_ext
4124
4125done
4126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127rm -f conftest.err conftest.$ac_ext
4128if $ac_preproc_ok; then
4129  :
4130else
4131  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4132See \`config.log' for more details." >&5
4133echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4134See \`config.log' for more details." >&2;}
4135   { (exit 1); exit 1; }; }
4136fi
4137
4138ac_ext=c
4139ac_cpp='$CPP $CPPFLAGS'
4140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
4144
4145echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4146echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4147if test "${ac_cv_header_stdc+set}" = set; then
4148  echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150  cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h.  */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h.  */
4156#include <stdlib.h>
4157#include <stdarg.h>
4158#include <string.h>
4159#include <float.h>
4160
4161int
4162main ()
4163{
4164
4165  ;
4166  return 0;
4167}
4168_ACEOF
4169rm -f conftest.$ac_objext
4170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171  (eval $ac_compile) 2>conftest.er1
4172  ac_status=$?
4173  grep -v '^ *+' conftest.er1 >conftest.err
4174  rm -f conftest.er1
4175  cat conftest.err >&5
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); } &&
4178	 { ac_try='test -z "$ac_c_werror_flag"
4179			 || test ! -s conftest.err'
4180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181  (eval $ac_try) 2>&5
4182  ac_status=$?
4183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184  (exit $ac_status); }; } &&
4185	 { ac_try='test -s conftest.$ac_objext'
4186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187  (eval $ac_try) 2>&5
4188  ac_status=$?
4189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190  (exit $ac_status); }; }; then
4191  ac_cv_header_stdc=yes
4192else
4193  echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196ac_cv_header_stdc=no
4197fi
4198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4199
4200if test $ac_cv_header_stdc = yes; then
4201  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4202  cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h.  */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h.  */
4208#include <string.h>
4209
4210_ACEOF
4211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212  $EGREP "memchr" >/dev/null 2>&1; then
4213  :
4214else
4215  ac_cv_header_stdc=no
4216fi
4217rm -f conftest*
4218
4219fi
4220
4221if test $ac_cv_header_stdc = yes; then
4222  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4223  cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h.  */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h.  */
4229#include <stdlib.h>
4230
4231_ACEOF
4232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233  $EGREP "free" >/dev/null 2>&1; then
4234  :
4235else
4236  ac_cv_header_stdc=no
4237fi
4238rm -f conftest*
4239
4240fi
4241
4242if test $ac_cv_header_stdc = yes; then
4243  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4244  if test "$cross_compiling" = yes; then
4245  :
4246else
4247  cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h.  */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h.  */
4253#include <ctype.h>
4254#if ((' ' & 0x0FF) == 0x020)
4255# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4256# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4257#else
4258# define ISLOWER(c) \
4259		   (('a' <= (c) && (c) <= 'i') \
4260		     || ('j' <= (c) && (c) <= 'r') \
4261		     || ('s' <= (c) && (c) <= 'z'))
4262# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4263#endif
4264
4265#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4266int
4267main ()
4268{
4269  int i;
4270  for (i = 0; i < 256; i++)
4271    if (XOR (islower (i), ISLOWER (i))
4272	|| toupper (i) != TOUPPER (i))
4273      exit(2);
4274  exit (0);
4275}
4276_ACEOF
4277rm -f conftest$ac_exeext
4278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279  (eval $ac_link) 2>&5
4280  ac_status=$?
4281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284  (eval $ac_try) 2>&5
4285  ac_status=$?
4286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287  (exit $ac_status); }; }; then
4288  :
4289else
4290  echo "$as_me: program exited with status $ac_status" >&5
4291echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294( exit $ac_status )
4295ac_cv_header_stdc=no
4296fi
4297rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4298fi
4299fi
4300fi
4301echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4302echo "${ECHO_T}$ac_cv_header_stdc" >&6
4303if test $ac_cv_header_stdc = yes; then
4304
4305cat >>confdefs.h <<\_ACEOF
4306#define STDC_HEADERS 1
4307_ACEOF
4308
4309fi
4310
4311# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322		  inttypes.h stdint.h unistd.h
4323do
4324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325echo "$as_me:$LINENO: checking for $ac_header" >&5
4326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4327if eval "test \"\${$as_ac_Header+set}\" = set"; then
4328  echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330  cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h.  */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h.  */
4336$ac_includes_default
4337
4338#include <$ac_header>
4339_ACEOF
4340rm -f conftest.$ac_objext
4341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342  (eval $ac_compile) 2>conftest.er1
4343  ac_status=$?
4344  grep -v '^ *+' conftest.er1 >conftest.err
4345  rm -f conftest.er1
4346  cat conftest.err >&5
4347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348  (exit $ac_status); } &&
4349	 { ac_try='test -z "$ac_c_werror_flag"
4350			 || test ! -s conftest.err'
4351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352  (eval $ac_try) 2>&5
4353  ac_status=$?
4354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355  (exit $ac_status); }; } &&
4356	 { ac_try='test -s conftest.$ac_objext'
4357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358  (eval $ac_try) 2>&5
4359  ac_status=$?
4360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361  (exit $ac_status); }; }; then
4362  eval "$as_ac_Header=yes"
4363else
4364  echo "$as_me: failed program was:" >&5
4365sed 's/^/| /' conftest.$ac_ext >&5
4366
4367eval "$as_ac_Header=no"
4368fi
4369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4370fi
4371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4373if test `eval echo '${'$as_ac_Header'}'` = yes; then
4374  cat >>confdefs.h <<_ACEOF
4375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4376_ACEOF
4377
4378fi
4379
4380done
4381
4382
4383
4384for ac_header in dlfcn.h
4385do
4386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4387if eval "test \"\${$as_ac_Header+set}\" = set"; then
4388  echo "$as_me:$LINENO: checking for $ac_header" >&5
4389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4390if eval "test \"\${$as_ac_Header+set}\" = set"; then
4391  echo $ECHO_N "(cached) $ECHO_C" >&6
4392fi
4393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4395else
4396  # Is the header compilable?
4397echo "$as_me:$LINENO: checking $ac_header usability" >&5
4398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4399cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h.  */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h.  */
4405$ac_includes_default
4406#include <$ac_header>
4407_ACEOF
4408rm -f conftest.$ac_objext
4409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410  (eval $ac_compile) 2>conftest.er1
4411  ac_status=$?
4412  grep -v '^ *+' conftest.er1 >conftest.err
4413  rm -f conftest.er1
4414  cat conftest.err >&5
4415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416  (exit $ac_status); } &&
4417	 { ac_try='test -z "$ac_c_werror_flag"
4418			 || test ! -s conftest.err'
4419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420  (eval $ac_try) 2>&5
4421  ac_status=$?
4422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423  (exit $ac_status); }; } &&
4424	 { ac_try='test -s conftest.$ac_objext'
4425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426  (eval $ac_try) 2>&5
4427  ac_status=$?
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); }; }; then
4430  ac_header_compiler=yes
4431else
4432  echo "$as_me: failed program was:" >&5
4433sed 's/^/| /' conftest.$ac_ext >&5
4434
4435ac_header_compiler=no
4436fi
4437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4439echo "${ECHO_T}$ac_header_compiler" >&6
4440
4441# Is the header present?
4442echo "$as_me:$LINENO: checking $ac_header presence" >&5
4443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4444cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h.  */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h.  */
4450#include <$ac_header>
4451_ACEOF
4452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4453  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4454  ac_status=$?
4455  grep -v '^ *+' conftest.er1 >conftest.err
4456  rm -f conftest.er1
4457  cat conftest.err >&5
4458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459  (exit $ac_status); } >/dev/null; then
4460  if test -s conftest.err; then
4461    ac_cpp_err=$ac_c_preproc_warn_flag
4462    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4463  else
4464    ac_cpp_err=
4465  fi
4466else
4467  ac_cpp_err=yes
4468fi
4469if test -z "$ac_cpp_err"; then
4470  ac_header_preproc=yes
4471else
4472  echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475  ac_header_preproc=no
4476fi
4477rm -f conftest.err conftest.$ac_ext
4478echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4479echo "${ECHO_T}$ac_header_preproc" >&6
4480
4481# So?  What about this header?
4482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4483  yes:no: )
4484    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4486    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4488    ac_header_preproc=yes
4489    ;;
4490  no:yes:* )
4491    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4493    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4494echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4495    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4497    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4498echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4499    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4501    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4503    (
4504      cat <<\_ASBOX
4505## ---------------------------------------------------------------------- ##
4506## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4507## ---------------------------------------------------------------------- ##
4508_ASBOX
4509    ) |
4510      sed "s/^/$as_me: WARNING:     /" >&2
4511    ;;
4512esac
4513echo "$as_me:$LINENO: checking for $ac_header" >&5
4514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4515if eval "test \"\${$as_ac_Header+set}\" = set"; then
4516  echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518  eval "$as_ac_Header=\$ac_header_preproc"
4519fi
4520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4522
4523fi
4524if test `eval echo '${'$as_ac_Header'}'` = yes; then
4525  cat >>confdefs.h <<_ACEOF
4526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4527_ACEOF
4528
4529fi
4530
4531done
4532
4533ac_ext=cc
4534ac_cpp='$CXXCPP $CPPFLAGS'
4535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4538if test -n "$ac_tool_prefix"; then
4539  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4540  do
4541    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4542set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4543echo "$as_me:$LINENO: checking for $ac_word" >&5
4544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545if test "${ac_cv_prog_CXX+set}" = set; then
4546  echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
4548  if test -n "$CXX"; then
4549  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554  IFS=$as_save_IFS
4555  test -z "$as_dir" && as_dir=.
4556  for ac_exec_ext in '' $ac_executable_extensions; do
4557  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4559    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560    break 2
4561  fi
4562done
4563done
4564
4565fi
4566fi
4567CXX=$ac_cv_prog_CXX
4568if test -n "$CXX"; then
4569  echo "$as_me:$LINENO: result: $CXX" >&5
4570echo "${ECHO_T}$CXX" >&6
4571else
4572  echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574fi
4575
4576    test -n "$CXX" && break
4577  done
4578fi
4579if test -z "$CXX"; then
4580  ac_ct_CXX=$CXX
4581  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4582do
4583  # Extract the first word of "$ac_prog", so it can be a program name with args.
4584set dummy $ac_prog; ac_word=$2
4585echo "$as_me:$LINENO: checking for $ac_word" >&5
4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4588  echo $ECHO_N "(cached) $ECHO_C" >&6
4589else
4590  if test -n "$ac_ct_CXX"; then
4591  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4592else
4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596  IFS=$as_save_IFS
4597  test -z "$as_dir" && as_dir=.
4598  for ac_exec_ext in '' $ac_executable_extensions; do
4599  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600    ac_cv_prog_ac_ct_CXX="$ac_prog"
4601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602    break 2
4603  fi
4604done
4605done
4606
4607fi
4608fi
4609ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4610if test -n "$ac_ct_CXX"; then
4611  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4612echo "${ECHO_T}$ac_ct_CXX" >&6
4613else
4614  echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
4616fi
4617
4618  test -n "$ac_ct_CXX" && break
4619done
4620test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4621
4622  CXX=$ac_ct_CXX
4623fi
4624
4625
4626# Provide some information about the compiler.
4627echo "$as_me:$LINENO:" \
4628     "checking for C++ compiler version" >&5
4629ac_compiler=`set X $ac_compile; echo $2`
4630{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4631  (eval $ac_compiler --version </dev/null >&5) 2>&5
4632  ac_status=$?
4633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634  (exit $ac_status); }
4635{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4636  (eval $ac_compiler -v </dev/null >&5) 2>&5
4637  ac_status=$?
4638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639  (exit $ac_status); }
4640{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4641  (eval $ac_compiler -V </dev/null >&5) 2>&5
4642  ac_status=$?
4643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644  (exit $ac_status); }
4645
4646echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4647echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4648if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4649  echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651  cat >conftest.$ac_ext <<_ACEOF
4652/* confdefs.h.  */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h.  */
4657
4658int
4659main ()
4660{
4661#ifndef __GNUC__
4662       choke me
4663#endif
4664
4665  ;
4666  return 0;
4667}
4668_ACEOF
4669rm -f conftest.$ac_objext
4670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671  (eval $ac_compile) 2>conftest.er1
4672  ac_status=$?
4673  grep -v '^ *+' conftest.er1 >conftest.err
4674  rm -f conftest.er1
4675  cat conftest.err >&5
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); } &&
4678	 { ac_try='test -z "$ac_cxx_werror_flag"
4679			 || test ! -s conftest.err'
4680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681  (eval $ac_try) 2>&5
4682  ac_status=$?
4683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684  (exit $ac_status); }; } &&
4685	 { ac_try='test -s conftest.$ac_objext'
4686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687  (eval $ac_try) 2>&5
4688  ac_status=$?
4689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690  (exit $ac_status); }; }; then
4691  ac_compiler_gnu=yes
4692else
4693  echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696ac_compiler_gnu=no
4697fi
4698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4700
4701fi
4702echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4703echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4704GXX=`test $ac_compiler_gnu = yes && echo yes`
4705ac_test_CXXFLAGS=${CXXFLAGS+set}
4706ac_save_CXXFLAGS=$CXXFLAGS
4707CXXFLAGS="-g"
4708echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4709echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4710if test "${ac_cv_prog_cxx_g+set}" = set; then
4711  echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713  cat >conftest.$ac_ext <<_ACEOF
4714/* confdefs.h.  */
4715_ACEOF
4716cat confdefs.h >>conftest.$ac_ext
4717cat >>conftest.$ac_ext <<_ACEOF
4718/* end confdefs.h.  */
4719
4720int
4721main ()
4722{
4723
4724  ;
4725  return 0;
4726}
4727_ACEOF
4728rm -f conftest.$ac_objext
4729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730  (eval $ac_compile) 2>conftest.er1
4731  ac_status=$?
4732  grep -v '^ *+' conftest.er1 >conftest.err
4733  rm -f conftest.er1
4734  cat conftest.err >&5
4735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736  (exit $ac_status); } &&
4737	 { ac_try='test -z "$ac_cxx_werror_flag"
4738			 || test ! -s conftest.err'
4739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740  (eval $ac_try) 2>&5
4741  ac_status=$?
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); }; } &&
4744	 { ac_try='test -s conftest.$ac_objext'
4745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746  (eval $ac_try) 2>&5
4747  ac_status=$?
4748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749  (exit $ac_status); }; }; then
4750  ac_cv_prog_cxx_g=yes
4751else
4752  echo "$as_me: failed program was:" >&5
4753sed 's/^/| /' conftest.$ac_ext >&5
4754
4755ac_cv_prog_cxx_g=no
4756fi
4757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758fi
4759echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4760echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4761if test "$ac_test_CXXFLAGS" = set; then
4762  CXXFLAGS=$ac_save_CXXFLAGS
4763elif test $ac_cv_prog_cxx_g = yes; then
4764  if test "$GXX" = yes; then
4765    CXXFLAGS="-g -O2"
4766  else
4767    CXXFLAGS="-g"
4768  fi
4769else
4770  if test "$GXX" = yes; then
4771    CXXFLAGS="-O2"
4772  else
4773    CXXFLAGS=
4774  fi
4775fi
4776for ac_declaration in \
4777   '' \
4778   'extern "C" void std::exit (int) throw (); using std::exit;' \
4779   'extern "C" void std::exit (int); using std::exit;' \
4780   'extern "C" void exit (int) throw ();' \
4781   'extern "C" void exit (int);' \
4782   'void exit (int);'
4783do
4784  cat >conftest.$ac_ext <<_ACEOF
4785/* confdefs.h.  */
4786_ACEOF
4787cat confdefs.h >>conftest.$ac_ext
4788cat >>conftest.$ac_ext <<_ACEOF
4789/* end confdefs.h.  */
4790$ac_declaration
4791#include <stdlib.h>
4792int
4793main ()
4794{
4795exit (42);
4796  ;
4797  return 0;
4798}
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802  (eval $ac_compile) 2>conftest.er1
4803  ac_status=$?
4804  grep -v '^ *+' conftest.er1 >conftest.err
4805  rm -f conftest.er1
4806  cat conftest.err >&5
4807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808  (exit $ac_status); } &&
4809	 { ac_try='test -z "$ac_cxx_werror_flag"
4810			 || test ! -s conftest.err'
4811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812  (eval $ac_try) 2>&5
4813  ac_status=$?
4814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815  (exit $ac_status); }; } &&
4816	 { ac_try='test -s conftest.$ac_objext'
4817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818  (eval $ac_try) 2>&5
4819  ac_status=$?
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); }; }; then
4822  :
4823else
4824  echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827continue
4828fi
4829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830  cat >conftest.$ac_ext <<_ACEOF
4831/* confdefs.h.  */
4832_ACEOF
4833cat confdefs.h >>conftest.$ac_ext
4834cat >>conftest.$ac_ext <<_ACEOF
4835/* end confdefs.h.  */
4836$ac_declaration
4837int
4838main ()
4839{
4840exit (42);
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845rm -f conftest.$ac_objext
4846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847  (eval $ac_compile) 2>conftest.er1
4848  ac_status=$?
4849  grep -v '^ *+' conftest.er1 >conftest.err
4850  rm -f conftest.er1
4851  cat conftest.err >&5
4852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853  (exit $ac_status); } &&
4854	 { ac_try='test -z "$ac_cxx_werror_flag"
4855			 || test ! -s conftest.err'
4856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857  (eval $ac_try) 2>&5
4858  ac_status=$?
4859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860  (exit $ac_status); }; } &&
4861	 { ac_try='test -s conftest.$ac_objext'
4862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863  (eval $ac_try) 2>&5
4864  ac_status=$?
4865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866  (exit $ac_status); }; }; then
4867  break
4868else
4869  echo "$as_me: failed program was:" >&5
4870sed 's/^/| /' conftest.$ac_ext >&5
4871
4872fi
4873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4874done
4875rm -f conftest*
4876if test -n "$ac_declaration"; then
4877  echo '#ifdef __cplusplus' >>confdefs.h
4878  echo $ac_declaration      >>confdefs.h
4879  echo '#endif'             >>confdefs.h
4880fi
4881
4882ac_ext=cc
4883ac_cpp='$CXXCPP $CPPFLAGS'
4884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4887
4888depcc="$CXX"  am_compiler_list=
4889
4890echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4891echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4892if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4893  echo $ECHO_N "(cached) $ECHO_C" >&6
4894else
4895  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4896  # We make a subdir and do the tests there.  Otherwise we can end up
4897  # making bogus files that we don't know about and never remove.  For
4898  # instance it was reported that on HP-UX the gcc test will end up
4899  # making a dummy file named `D' -- because `-MD' means `put the output
4900  # in D'.
4901  mkdir conftest.dir
4902  # Copy depcomp to subdir because otherwise we won't find it if we're
4903  # using a relative directory.
4904  cp "$am_depcomp" conftest.dir
4905  cd conftest.dir
4906  # We will build objects and dependencies in a subdirectory because
4907  # it helps to detect inapplicable dependency modes.  For instance
4908  # both Tru64's cc and ICC support -MD to output dependencies as a
4909  # side effect of compilation, but ICC will put the dependencies in
4910  # the current directory while Tru64 will put them in the object
4911  # directory.
4912  mkdir sub
4913
4914  am_cv_CXX_dependencies_compiler_type=none
4915  if test "$am_compiler_list" = ""; then
4916     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4917  fi
4918  for depmode in $am_compiler_list; do
4919    # Setup a source with many dependencies, because some compilers
4920    # like to wrap large dependency lists on column 80 (with \), and
4921    # we should not choose a depcomp mode which is confused by this.
4922    #
4923    # We need to recreate these files for each test, as the compiler may
4924    # overwrite some of them when testing with obscure command lines.
4925    # This happens at least with the AIX C compiler.
4926    : > sub/conftest.c
4927    for i in 1 2 3 4 5 6; do
4928      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4929      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4930      # Solaris 8's {/usr,}/bin/sh.
4931      touch sub/conftst$i.h
4932    done
4933    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4934
4935    case $depmode in
4936    nosideeffect)
4937      # after this tag, mechanisms are not by side-effect, so they'll
4938      # only be used when explicitly requested
4939      if test "x$enable_dependency_tracking" = xyes; then
4940	continue
4941      else
4942	break
4943      fi
4944      ;;
4945    none) break ;;
4946    esac
4947    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4948    # mode.  It turns out that the SunPro C++ compiler does not properly
4949    # handle `-M -o', and we need to detect this.
4950    if depmode=$depmode \
4951       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4952       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4953       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4954         >/dev/null 2>conftest.err &&
4955       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4956       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4957       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4958      # icc doesn't choke on unknown options, it will just issue warnings
4959      # or remarks (even with -Werror).  So we grep stderr for any message
4960      # that says an option was ignored or not supported.
4961      # When given -MP, icc 7.0 and 7.1 complain thusly:
4962      #   icc: Command line warning: ignoring option '-M'; no argument required
4963      # The diagnosis changed in icc 8.0:
4964      #   icc: Command line remark: option '-MP' not supported
4965      if (grep 'ignoring option' conftest.err ||
4966          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4967        am_cv_CXX_dependencies_compiler_type=$depmode
4968        break
4969      fi
4970    fi
4971  done
4972
4973  cd ..
4974  rm -rf conftest.dir
4975else
4976  am_cv_CXX_dependencies_compiler_type=none
4977fi
4978
4979fi
4980echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4981echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4982CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4983
4984
4985
4986if
4987  test "x$enable_dependency_tracking" != xno \
4988  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4989  am__fastdepCXX_TRUE=
4990  am__fastdepCXX_FALSE='#'
4991else
4992  am__fastdepCXX_TRUE='#'
4993  am__fastdepCXX_FALSE=
4994fi
4995
4996
4997
4998
4999if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5000    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5001    (test "X$CXX" != "Xg++"))) ; then
5002  ac_ext=cc
5003ac_cpp='$CXXCPP $CPPFLAGS'
5004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5007echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5008echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5009if test -z "$CXXCPP"; then
5010  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5011  echo $ECHO_N "(cached) $ECHO_C" >&6
5012else
5013      # Double quotes because CXXCPP needs to be expanded
5014    for CXXCPP in "$CXX -E" "/lib/cpp"
5015    do
5016      ac_preproc_ok=false
5017for ac_cxx_preproc_warn_flag in '' yes
5018do
5019  # Use a header file that comes with gcc, so configuring glibc
5020  # with a fresh cross-compiler works.
5021  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022  # <limits.h> exists even on freestanding compilers.
5023  # On the NeXT, cc -E runs the code through the compiler's parser,
5024  # not just through cpp. "Syntax error" is here to catch this case.
5025  cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h.  */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h.  */
5031#ifdef __STDC__
5032# include <limits.h>
5033#else
5034# include <assert.h>
5035#endif
5036		     Syntax error
5037_ACEOF
5038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5039  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5040  ac_status=$?
5041  grep -v '^ *+' conftest.er1 >conftest.err
5042  rm -f conftest.er1
5043  cat conftest.err >&5
5044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); } >/dev/null; then
5046  if test -s conftest.err; then
5047    ac_cpp_err=$ac_cxx_preproc_warn_flag
5048    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5049  else
5050    ac_cpp_err=
5051  fi
5052else
5053  ac_cpp_err=yes
5054fi
5055if test -z "$ac_cpp_err"; then
5056  :
5057else
5058  echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
5061  # Broken: fails on valid input.
5062continue
5063fi
5064rm -f conftest.err conftest.$ac_ext
5065
5066  # OK, works on sane cases.  Now check whether non-existent headers
5067  # can be detected and how.
5068  cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h.  */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h.  */
5074#include <ac_nonexistent.h>
5075_ACEOF
5076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5078  ac_status=$?
5079  grep -v '^ *+' conftest.er1 >conftest.err
5080  rm -f conftest.er1
5081  cat conftest.err >&5
5082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  (exit $ac_status); } >/dev/null; then
5084  if test -s conftest.err; then
5085    ac_cpp_err=$ac_cxx_preproc_warn_flag
5086    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5087  else
5088    ac_cpp_err=
5089  fi
5090else
5091  ac_cpp_err=yes
5092fi
5093if test -z "$ac_cpp_err"; then
5094  # Broken: success on invalid input.
5095continue
5096else
5097  echo "$as_me: failed program was:" >&5
5098sed 's/^/| /' conftest.$ac_ext >&5
5099
5100  # Passes both tests.
5101ac_preproc_ok=:
5102break
5103fi
5104rm -f conftest.err conftest.$ac_ext
5105
5106done
5107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108rm -f conftest.err conftest.$ac_ext
5109if $ac_preproc_ok; then
5110  break
5111fi
5112
5113    done
5114    ac_cv_prog_CXXCPP=$CXXCPP
5115
5116fi
5117  CXXCPP=$ac_cv_prog_CXXCPP
5118else
5119  ac_cv_prog_CXXCPP=$CXXCPP
5120fi
5121echo "$as_me:$LINENO: result: $CXXCPP" >&5
5122echo "${ECHO_T}$CXXCPP" >&6
5123ac_preproc_ok=false
5124for ac_cxx_preproc_warn_flag in '' yes
5125do
5126  # Use a header file that comes with gcc, so configuring glibc
5127  # with a fresh cross-compiler works.
5128  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5129  # <limits.h> exists even on freestanding compilers.
5130  # On the NeXT, cc -E runs the code through the compiler's parser,
5131  # not just through cpp. "Syntax error" is here to catch this case.
5132  cat >conftest.$ac_ext <<_ACEOF
5133/* confdefs.h.  */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h.  */
5138#ifdef __STDC__
5139# include <limits.h>
5140#else
5141# include <assert.h>
5142#endif
5143		     Syntax error
5144_ACEOF
5145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5146  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5147  ac_status=$?
5148  grep -v '^ *+' conftest.er1 >conftest.err
5149  rm -f conftest.er1
5150  cat conftest.err >&5
5151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152  (exit $ac_status); } >/dev/null; then
5153  if test -s conftest.err; then
5154    ac_cpp_err=$ac_cxx_preproc_warn_flag
5155    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5156  else
5157    ac_cpp_err=
5158  fi
5159else
5160  ac_cpp_err=yes
5161fi
5162if test -z "$ac_cpp_err"; then
5163  :
5164else
5165  echo "$as_me: failed program was:" >&5
5166sed 's/^/| /' conftest.$ac_ext >&5
5167
5168  # Broken: fails on valid input.
5169continue
5170fi
5171rm -f conftest.err conftest.$ac_ext
5172
5173  # OK, works on sane cases.  Now check whether non-existent headers
5174  # can be detected and how.
5175  cat >conftest.$ac_ext <<_ACEOF
5176/* confdefs.h.  */
5177_ACEOF
5178cat confdefs.h >>conftest.$ac_ext
5179cat >>conftest.$ac_ext <<_ACEOF
5180/* end confdefs.h.  */
5181#include <ac_nonexistent.h>
5182_ACEOF
5183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5184  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5185  ac_status=$?
5186  grep -v '^ *+' conftest.er1 >conftest.err
5187  rm -f conftest.er1
5188  cat conftest.err >&5
5189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190  (exit $ac_status); } >/dev/null; then
5191  if test -s conftest.err; then
5192    ac_cpp_err=$ac_cxx_preproc_warn_flag
5193    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5194  else
5195    ac_cpp_err=
5196  fi
5197else
5198  ac_cpp_err=yes
5199fi
5200if test -z "$ac_cpp_err"; then
5201  # Broken: success on invalid input.
5202continue
5203else
5204  echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207  # Passes both tests.
5208ac_preproc_ok=:
5209break
5210fi
5211rm -f conftest.err conftest.$ac_ext
5212
5213done
5214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215rm -f conftest.err conftest.$ac_ext
5216if $ac_preproc_ok; then
5217  :
5218else
5219  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5220See \`config.log' for more details." >&5
5221echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5222See \`config.log' for more details." >&2;}
5223   { (exit 1); exit 1; }; }
5224fi
5225
5226ac_ext=cc
5227ac_cpp='$CXXCPP $CPPFLAGS'
5228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5231
5232fi
5233
5234
5235ac_ext=f
5236ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5237ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5239if test -n "$ac_tool_prefix"; then
5240  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5241  do
5242    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5243set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5244echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246if test "${ac_cv_prog_F77+set}" = set; then
5247  echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249  if test -n "$F77"; then
5250  ac_cv_prog_F77="$F77" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255  IFS=$as_save_IFS
5256  test -z "$as_dir" && as_dir=.
5257  for ac_exec_ext in '' $ac_executable_extensions; do
5258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261    break 2
5262  fi
5263done
5264done
5265
5266fi
5267fi
5268F77=$ac_cv_prog_F77
5269if test -n "$F77"; then
5270  echo "$as_me:$LINENO: result: $F77" >&5
5271echo "${ECHO_T}$F77" >&6
5272else
5273  echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
5275fi
5276
5277    test -n "$F77" && break
5278  done
5279fi
5280if test -z "$F77"; then
5281  ac_ct_F77=$F77
5282  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5283do
5284  # Extract the first word of "$ac_prog", so it can be a program name with args.
5285set dummy $ac_prog; ac_word=$2
5286echo "$as_me:$LINENO: checking for $ac_word" >&5
5287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5288if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5289  echo $ECHO_N "(cached) $ECHO_C" >&6
5290else
5291  if test -n "$ac_ct_F77"; then
5292  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5293else
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297  IFS=$as_save_IFS
5298  test -z "$as_dir" && as_dir=.
5299  for ac_exec_ext in '' $ac_executable_extensions; do
5300  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301    ac_cv_prog_ac_ct_F77="$ac_prog"
5302    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303    break 2
5304  fi
5305done
5306done
5307
5308fi
5309fi
5310ac_ct_F77=$ac_cv_prog_ac_ct_F77
5311if test -n "$ac_ct_F77"; then
5312  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5313echo "${ECHO_T}$ac_ct_F77" >&6
5314else
5315  echo "$as_me:$LINENO: result: no" >&5
5316echo "${ECHO_T}no" >&6
5317fi
5318
5319  test -n "$ac_ct_F77" && break
5320done
5321
5322  F77=$ac_ct_F77
5323fi
5324
5325
5326# Provide some information about the compiler.
5327echo "$as_me:5327:" \
5328     "checking for Fortran 77 compiler version" >&5
5329ac_compiler=`set X $ac_compile; echo $2`
5330{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5331  (eval $ac_compiler --version </dev/null >&5) 2>&5
5332  ac_status=$?
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); }
5335{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5336  (eval $ac_compiler -v </dev/null >&5) 2>&5
5337  ac_status=$?
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); }
5340{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5341  (eval $ac_compiler -V </dev/null >&5) 2>&5
5342  ac_status=$?
5343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344  (exit $ac_status); }
5345rm -f a.out
5346
5347# If we don't use `.F' as extension, the preprocessor is not run on the
5348# input file.  (Note that this only needs to work for GNU compilers.)
5349ac_save_ext=$ac_ext
5350ac_ext=F
5351echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5352echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5353if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5354  echo $ECHO_N "(cached) $ECHO_C" >&6
5355else
5356  cat >conftest.$ac_ext <<_ACEOF
5357      program main
5358#ifndef __GNUC__
5359       choke me
5360#endif
5361
5362      end
5363_ACEOF
5364rm -f conftest.$ac_objext
5365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366  (eval $ac_compile) 2>conftest.er1
5367  ac_status=$?
5368  grep -v '^ *+' conftest.er1 >conftest.err
5369  rm -f conftest.er1
5370  cat conftest.err >&5
5371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372  (exit $ac_status); } &&
5373	 { ac_try='test -z "$ac_f77_werror_flag"
5374			 || test ! -s conftest.err'
5375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376  (eval $ac_try) 2>&5
5377  ac_status=$?
5378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379  (exit $ac_status); }; } &&
5380	 { ac_try='test -s conftest.$ac_objext'
5381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382  (eval $ac_try) 2>&5
5383  ac_status=$?
5384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385  (exit $ac_status); }; }; then
5386  ac_compiler_gnu=yes
5387else
5388  echo "$as_me: failed program was:" >&5
5389sed 's/^/| /' conftest.$ac_ext >&5
5390
5391ac_compiler_gnu=no
5392fi
5393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5394ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5395
5396fi
5397echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5398echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5399ac_ext=$ac_save_ext
5400ac_test_FFLAGS=${FFLAGS+set}
5401ac_save_FFLAGS=$FFLAGS
5402FFLAGS=
5403echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5404echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5405if test "${ac_cv_prog_f77_g+set}" = set; then
5406  echo $ECHO_N "(cached) $ECHO_C" >&6
5407else
5408  FFLAGS=-g
5409cat >conftest.$ac_ext <<_ACEOF
5410      program main
5411
5412      end
5413_ACEOF
5414rm -f conftest.$ac_objext
5415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5416  (eval $ac_compile) 2>conftest.er1
5417  ac_status=$?
5418  grep -v '^ *+' conftest.er1 >conftest.err
5419  rm -f conftest.er1
5420  cat conftest.err >&5
5421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422  (exit $ac_status); } &&
5423	 { ac_try='test -z "$ac_f77_werror_flag"
5424			 || test ! -s conftest.err'
5425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426  (eval $ac_try) 2>&5
5427  ac_status=$?
5428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429  (exit $ac_status); }; } &&
5430	 { ac_try='test -s conftest.$ac_objext'
5431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432  (eval $ac_try) 2>&5
5433  ac_status=$?
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); }; }; then
5436  ac_cv_prog_f77_g=yes
5437else
5438  echo "$as_me: failed program was:" >&5
5439sed 's/^/| /' conftest.$ac_ext >&5
5440
5441ac_cv_prog_f77_g=no
5442fi
5443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5444
5445fi
5446echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5447echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5448if test "$ac_test_FFLAGS" = set; then
5449  FFLAGS=$ac_save_FFLAGS
5450elif test $ac_cv_prog_f77_g = yes; then
5451  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5452    FFLAGS="-g -O2"
5453  else
5454    FFLAGS="-g"
5455  fi
5456else
5457  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5458    FFLAGS="-O2"
5459  else
5460    FFLAGS=
5461  fi
5462fi
5463
5464G77=`test $ac_compiler_gnu = yes && echo yes`
5465ac_ext=c
5466ac_cpp='$CPP $CPPFLAGS'
5467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5469ac_compiler_gnu=$ac_cv_c_compiler_gnu
5470
5471
5472
5473# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5474
5475# find the maximum length of command line arguments
5476echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5477echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5478if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5479  echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481    i=0
5482  teststring="ABCD"
5483
5484  case $build_os in
5485  msdosdjgpp*)
5486    # On DJGPP, this test can blow up pretty badly due to problems in libc
5487    # (any single argument exceeding 2000 bytes causes a buffer overrun
5488    # during glob expansion).  Even if it were fixed, the result of this
5489    # check would be larger than it should be.
5490    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5491    ;;
5492
5493  gnu*)
5494    # Under GNU Hurd, this test is not required because there is
5495    # no limit to the length of command line arguments.
5496    # Libtool will interpret -1 as no limit whatsoever
5497    lt_cv_sys_max_cmd_len=-1;
5498    ;;
5499
5500  cygwin* | mingw*)
5501    # On Win9x/ME, this test blows up -- it succeeds, but takes
5502    # about 5 minutes as the teststring grows exponentially.
5503    # Worse, since 9x/ME are not pre-emptively multitasking,
5504    # you end up with a "frozen" computer, even though with patience
5505    # the test eventually succeeds (with a max line length of 256k).
5506    # Instead, let's just punt: use the minimum linelength reported by
5507    # all of the supported platforms: 8192 (on NT/2K/XP).
5508    lt_cv_sys_max_cmd_len=8192;
5509    ;;
5510
5511  amigaos*)
5512    # On AmigaOS with pdksh, this test takes hours, literally.
5513    # So we just punt and use a minimum line length of 8192.
5514    lt_cv_sys_max_cmd_len=8192;
5515    ;;
5516
5517  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5518    # This has been around since 386BSD, at least.  Likely further.
5519    if test -x /sbin/sysctl; then
5520      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5521    elif test -x /usr/sbin/sysctl; then
5522      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5523    else
5524      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5525    fi
5526    # And add a safety zone
5527    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5528    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5529    ;;
5530
5531  interix*)
5532    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5533    lt_cv_sys_max_cmd_len=196608
5534    ;;
5535
5536  osf*)
5537    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5538    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5539    # nice to cause kernel panics so lets avoid the loop below.
5540    # First set a reasonable default.
5541    lt_cv_sys_max_cmd_len=16384
5542    #
5543    if test -x /sbin/sysconfig; then
5544      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5545        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5546      esac
5547    fi
5548    ;;
5549  sco3.2v5*)
5550    lt_cv_sys_max_cmd_len=102400
5551    ;;
5552  sysv5* | sco5v6* | sysv4.2uw2*)
5553    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5554    if test -n "$kargmax"; then
5555      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5556    else
5557      lt_cv_sys_max_cmd_len=32768
5558    fi
5559    ;;
5560  *)
5561    # If test is not a shell built-in, we'll probably end up computing a
5562    # maximum length that is only half of the actual maximum length, but
5563    # we can't tell.
5564    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5565    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5566	       = "XX$teststring") >/dev/null 2>&1 &&
5567	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5568	    lt_cv_sys_max_cmd_len=$new_result &&
5569	    test $i != 17 # 1/2 MB should be enough
5570    do
5571      i=`expr $i + 1`
5572      teststring=$teststring$teststring
5573    done
5574    teststring=
5575    # Add a significant safety factor because C++ compilers can tack on massive
5576    # amounts of additional arguments before passing them to the linker.
5577    # It appears as though 1/2 is a usable value.
5578    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5579    ;;
5580  esac
5581
5582fi
5583
5584if test -n $lt_cv_sys_max_cmd_len ; then
5585  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5586echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5587else
5588  echo "$as_me:$LINENO: result: none" >&5
5589echo "${ECHO_T}none" >&6
5590fi
5591
5592
5593
5594
5595# Check for command to grab the raw symbol name followed by C symbol from nm.
5596echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5597echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5598if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5599  echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601
5602# These are sane defaults that work on at least a few old systems.
5603# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5604
5605# Character class describing NM global symbol codes.
5606symcode='[BCDEGRST]'
5607
5608# Regexp to match symbols that can be accessed directly from C.
5609sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5610
5611# Transform an extracted symbol line into a proper C declaration
5612lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5613
5614# Transform an extracted symbol line into symbol name and symbol address
5615lt_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'"
5616
5617# Define system-specific variables.
5618case $host_os in
5619aix*)
5620  symcode='[BCDT]'
5621  ;;
5622cygwin* | mingw* | pw32*)
5623  symcode='[ABCDGISTW]'
5624  ;;
5625hpux*) # Its linker distinguishes data from code symbols
5626  if test "$host_cpu" = ia64; then
5627    symcode='[ABCDEGRST]'
5628  fi
5629  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5630  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'"
5631  ;;
5632linux*)
5633  if test "$host_cpu" = ia64; then
5634    symcode='[ABCDGIRSTW]'
5635    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5636    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'"
5637  fi
5638  ;;
5639irix* | nonstopux*)
5640  symcode='[BCDEGRST]'
5641  ;;
5642osf*)
5643  symcode='[BCDEGQRST]'
5644  ;;
5645solaris*)
5646  symcode='[BDRT]'
5647  ;;
5648sco3.2v5*)
5649  symcode='[DT]'
5650  ;;
5651sysv4.2uw2*)
5652  symcode='[DT]'
5653  ;;
5654sysv5* | sco5v6* | unixware* | OpenUNIX*)
5655  symcode='[ABDT]'
5656  ;;
5657sysv4)
5658  symcode='[DFNSTU]'
5659  ;;
5660esac
5661
5662# Handle CRLF in mingw tool chain
5663opt_cr=
5664case $build_os in
5665mingw*)
5666  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5667  ;;
5668esac
5669
5670# If we're using GNU nm, then use its standard symbol codes.
5671case `$NM -V 2>&1` in
5672*GNU* | *'with BFD'*)
5673  symcode='[ABCDGIRSTW]' ;;
5674esac
5675
5676# Try without a prefix undercore, then with it.
5677for ac_symprfx in "" "_"; do
5678
5679  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5680  symxfrm="\\1 $ac_symprfx\\2 \\2"
5681
5682  # Write the raw and C identifiers.
5683  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5684
5685  # Check to see that the pipe works correctly.
5686  pipe_works=no
5687
5688  rm -f conftest*
5689  cat > conftest.$ac_ext <<EOF
5690#ifdef __cplusplus
5691extern "C" {
5692#endif
5693char nm_test_var;
5694void nm_test_func(){}
5695#ifdef __cplusplus
5696}
5697#endif
5698int main(){nm_test_var='a';nm_test_func();return(0);}
5699EOF
5700
5701  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5702  (eval $ac_compile) 2>&5
5703  ac_status=$?
5704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); }; then
5706    # Now try to grab the symbols.
5707    nlist=conftest.nm
5708    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5709  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5710  ac_status=$?
5711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); } && test -s "$nlist"; then
5713      # Try sorting and uniquifying the output.
5714      if sort "$nlist" | uniq > "$nlist"T; then
5715	mv -f "$nlist"T "$nlist"
5716      else
5717	rm -f "$nlist"T
5718      fi
5719
5720      # Make sure that we snagged all the symbols we need.
5721      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5722	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5723	  cat <<EOF > conftest.$ac_ext
5724#ifdef __cplusplus
5725extern "C" {
5726#endif
5727
5728EOF
5729	  # Now generate the symbol file.
5730	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5731
5732	  cat <<EOF >> conftest.$ac_ext
5733#if defined (__STDC__) && __STDC__
5734# define lt_ptr_t void *
5735#else
5736# define lt_ptr_t char *
5737# define const
5738#endif
5739
5740/* The mapping between symbol names and symbols. */
5741const struct {
5742  const char *name;
5743  lt_ptr_t address;
5744}
5745lt_preloaded_symbols[] =
5746{
5747EOF
5748	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5749	  cat <<\EOF >> conftest.$ac_ext
5750  {0, (lt_ptr_t) 0}
5751};
5752
5753#ifdef __cplusplus
5754}
5755#endif
5756EOF
5757	  # Now try linking the two files.
5758	  mv conftest.$ac_objext conftstm.$ac_objext
5759	  lt_save_LIBS="$LIBS"
5760	  lt_save_CFLAGS="$CFLAGS"
5761	  LIBS="conftstm.$ac_objext"
5762	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5763	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5764  (eval $ac_link) 2>&5
5765  ac_status=$?
5766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5768	    pipe_works=yes
5769	  fi
5770	  LIBS="$lt_save_LIBS"
5771	  CFLAGS="$lt_save_CFLAGS"
5772	else
5773	  echo "cannot find nm_test_func in $nlist" >&5
5774	fi
5775      else
5776	echo "cannot find nm_test_var in $nlist" >&5
5777      fi
5778    else
5779      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5780    fi
5781  else
5782    echo "$progname: failed program was:" >&5
5783    cat conftest.$ac_ext >&5
5784  fi
5785  rm -f conftest* conftst*
5786
5787  # Do not use the global_symbol_pipe unless it works.
5788  if test "$pipe_works" = yes; then
5789    break
5790  else
5791    lt_cv_sys_global_symbol_pipe=
5792  fi
5793done
5794
5795fi
5796
5797if test -z "$lt_cv_sys_global_symbol_pipe"; then
5798  lt_cv_sys_global_symbol_to_cdecl=
5799fi
5800if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5801  echo "$as_me:$LINENO: result: failed" >&5
5802echo "${ECHO_T}failed" >&6
5803else
5804  echo "$as_me:$LINENO: result: ok" >&5
5805echo "${ECHO_T}ok" >&6
5806fi
5807
5808echo "$as_me:$LINENO: checking for objdir" >&5
5809echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5810if test "${lt_cv_objdir+set}" = set; then
5811  echo $ECHO_N "(cached) $ECHO_C" >&6
5812else
5813  rm -f .libs 2>/dev/null
5814mkdir .libs 2>/dev/null
5815if test -d .libs; then
5816  lt_cv_objdir=.libs
5817else
5818  # MS-DOS does not allow filenames that begin with a dot.
5819  lt_cv_objdir=_libs
5820fi
5821rmdir .libs 2>/dev/null
5822fi
5823echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5824echo "${ECHO_T}$lt_cv_objdir" >&6
5825objdir=$lt_cv_objdir
5826
5827
5828
5829
5830
5831case $host_os in
5832aix3*)
5833  # AIX sometimes has problems with the GCC collect2 program.  For some
5834  # reason, if we set the COLLECT_NAMES environment variable, the problems
5835  # vanish in a puff of smoke.
5836  if test "X${COLLECT_NAMES+set}" != Xset; then
5837    COLLECT_NAMES=
5838    export COLLECT_NAMES
5839  fi
5840  ;;
5841esac
5842
5843# Sed substitution that helps us do robust quoting.  It backslashifies
5844# metacharacters that are still active within double-quoted strings.
5845Xsed='sed -e 1s/^X//'
5846sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5847
5848# Same as above, but do not quote variable references.
5849double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5850
5851# Sed substitution to delay expansion of an escaped shell variable in a
5852# double_quote_subst'ed string.
5853delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5854
5855# Sed substitution to avoid accidental globbing in evaled expressions
5856no_glob_subst='s/\*/\\\*/g'
5857
5858# Constants:
5859rm="rm -f"
5860
5861# Global variables:
5862default_ofile=libtool
5863can_build_shared=yes
5864
5865# All known linkers require a `.a' archive for static linking (except MSVC,
5866# which needs '.lib').
5867libext=a
5868ltmain="$ac_aux_dir/ltmain.sh"
5869ofile="$default_ofile"
5870with_gnu_ld="$lt_cv_prog_gnu_ld"
5871
5872if test -n "$ac_tool_prefix"; then
5873  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5874set dummy ${ac_tool_prefix}ar; ac_word=$2
5875echo "$as_me:$LINENO: checking for $ac_word" >&5
5876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5877if test "${ac_cv_prog_AR+set}" = set; then
5878  echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
5880  if test -n "$AR"; then
5881  ac_cv_prog_AR="$AR" # Let the user override the test.
5882else
5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886  IFS=$as_save_IFS
5887  test -z "$as_dir" && as_dir=.
5888  for ac_exec_ext in '' $ac_executable_extensions; do
5889  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890    ac_cv_prog_AR="${ac_tool_prefix}ar"
5891    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892    break 2
5893  fi
5894done
5895done
5896
5897fi
5898fi
5899AR=$ac_cv_prog_AR
5900if test -n "$AR"; then
5901  echo "$as_me:$LINENO: result: $AR" >&5
5902echo "${ECHO_T}$AR" >&6
5903else
5904  echo "$as_me:$LINENO: result: no" >&5
5905echo "${ECHO_T}no" >&6
5906fi
5907
5908fi
5909if test -z "$ac_cv_prog_AR"; then
5910  ac_ct_AR=$AR
5911  # Extract the first word of "ar", so it can be a program name with args.
5912set dummy ar; ac_word=$2
5913echo "$as_me:$LINENO: checking for $ac_word" >&5
5914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5915if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5916  echo $ECHO_N "(cached) $ECHO_C" >&6
5917else
5918  if test -n "$ac_ct_AR"; then
5919  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5920else
5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924  IFS=$as_save_IFS
5925  test -z "$as_dir" && as_dir=.
5926  for ac_exec_ext in '' $ac_executable_extensions; do
5927  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928    ac_cv_prog_ac_ct_AR="ar"
5929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930    break 2
5931  fi
5932done
5933done
5934
5935  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5936fi
5937fi
5938ac_ct_AR=$ac_cv_prog_ac_ct_AR
5939if test -n "$ac_ct_AR"; then
5940  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5941echo "${ECHO_T}$ac_ct_AR" >&6
5942else
5943  echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
5945fi
5946
5947  AR=$ac_ct_AR
5948else
5949  AR="$ac_cv_prog_AR"
5950fi
5951
5952if test -n "$ac_tool_prefix"; then
5953  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5954set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5955echo "$as_me:$LINENO: checking for $ac_word" >&5
5956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5957if test "${ac_cv_prog_RANLIB+set}" = set; then
5958  echo $ECHO_N "(cached) $ECHO_C" >&6
5959else
5960  if test -n "$RANLIB"; then
5961  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5962else
5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964for as_dir in $PATH
5965do
5966  IFS=$as_save_IFS
5967  test -z "$as_dir" && as_dir=.
5968  for ac_exec_ext in '' $ac_executable_extensions; do
5969  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5970    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972    break 2
5973  fi
5974done
5975done
5976
5977fi
5978fi
5979RANLIB=$ac_cv_prog_RANLIB
5980if test -n "$RANLIB"; then
5981  echo "$as_me:$LINENO: result: $RANLIB" >&5
5982echo "${ECHO_T}$RANLIB" >&6
5983else
5984  echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
5986fi
5987
5988fi
5989if test -z "$ac_cv_prog_RANLIB"; then
5990  ac_ct_RANLIB=$RANLIB
5991  # Extract the first word of "ranlib", so it can be a program name with args.
5992set dummy ranlib; ac_word=$2
5993echo "$as_me:$LINENO: checking for $ac_word" >&5
5994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5995if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5996  echo $ECHO_N "(cached) $ECHO_C" >&6
5997else
5998  if test -n "$ac_ct_RANLIB"; then
5999  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6000else
6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH
6003do
6004  IFS=$as_save_IFS
6005  test -z "$as_dir" && as_dir=.
6006  for ac_exec_ext in '' $ac_executable_extensions; do
6007  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008    ac_cv_prog_ac_ct_RANLIB="ranlib"
6009    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010    break 2
6011  fi
6012done
6013done
6014
6015  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6016fi
6017fi
6018ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6019if test -n "$ac_ct_RANLIB"; then
6020  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6021echo "${ECHO_T}$ac_ct_RANLIB" >&6
6022else
6023  echo "$as_me:$LINENO: result: no" >&5
6024echo "${ECHO_T}no" >&6
6025fi
6026
6027  RANLIB=$ac_ct_RANLIB
6028else
6029  RANLIB="$ac_cv_prog_RANLIB"
6030fi
6031
6032if test -n "$ac_tool_prefix"; then
6033  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6034set dummy ${ac_tool_prefix}strip; ac_word=$2
6035echo "$as_me:$LINENO: checking for $ac_word" >&5
6036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6037if test "${ac_cv_prog_STRIP+set}" = set; then
6038  echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040  if test -n "$STRIP"; then
6041  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6042else
6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044for as_dir in $PATH
6045do
6046  IFS=$as_save_IFS
6047  test -z "$as_dir" && as_dir=.
6048  for ac_exec_ext in '' $ac_executable_extensions; do
6049  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052    break 2
6053  fi
6054done
6055done
6056
6057fi
6058fi
6059STRIP=$ac_cv_prog_STRIP
6060if test -n "$STRIP"; then
6061  echo "$as_me:$LINENO: result: $STRIP" >&5
6062echo "${ECHO_T}$STRIP" >&6
6063else
6064  echo "$as_me:$LINENO: result: no" >&5
6065echo "${ECHO_T}no" >&6
6066fi
6067
6068fi
6069if test -z "$ac_cv_prog_STRIP"; then
6070  ac_ct_STRIP=$STRIP
6071  # Extract the first word of "strip", so it can be a program name with args.
6072set dummy strip; ac_word=$2
6073echo "$as_me:$LINENO: checking for $ac_word" >&5
6074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6075if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6076  echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078  if test -n "$ac_ct_STRIP"; then
6079  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084  IFS=$as_save_IFS
6085  test -z "$as_dir" && as_dir=.
6086  for ac_exec_ext in '' $ac_executable_extensions; do
6087  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088    ac_cv_prog_ac_ct_STRIP="strip"
6089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090    break 2
6091  fi
6092done
6093done
6094
6095  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6096fi
6097fi
6098ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6099if test -n "$ac_ct_STRIP"; then
6100  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6101echo "${ECHO_T}$ac_ct_STRIP" >&6
6102else
6103  echo "$as_me:$LINENO: result: no" >&5
6104echo "${ECHO_T}no" >&6
6105fi
6106
6107  STRIP=$ac_ct_STRIP
6108else
6109  STRIP="$ac_cv_prog_STRIP"
6110fi
6111
6112
6113old_CC="$CC"
6114old_CFLAGS="$CFLAGS"
6115
6116# Set sane defaults for various variables
6117test -z "$AR" && AR=ar
6118test -z "$AR_FLAGS" && AR_FLAGS=cru
6119test -z "$AS" && AS=as
6120test -z "$CC" && CC=cc
6121test -z "$LTCC" && LTCC=$CC
6122test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6123test -z "$DLLTOOL" && DLLTOOL=dlltool
6124test -z "$LD" && LD=ld
6125test -z "$LN_S" && LN_S="ln -s"
6126test -z "$MAGIC_CMD" && MAGIC_CMD=file
6127test -z "$NM" && NM=nm
6128test -z "$SED" && SED=sed
6129test -z "$OBJDUMP" && OBJDUMP=objdump
6130test -z "$RANLIB" && RANLIB=:
6131test -z "$STRIP" && STRIP=:
6132test -z "$ac_objext" && ac_objext=o
6133
6134# Determine commands to create old-style static archives.
6135old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6136old_postinstall_cmds='chmod 644 $oldlib'
6137old_postuninstall_cmds=
6138
6139if test -n "$RANLIB"; then
6140  case $host_os in
6141  openbsd*)
6142    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6143    ;;
6144  *)
6145    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6146    ;;
6147  esac
6148  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6149fi
6150
6151for cc_temp in $compiler""; do
6152  case $cc_temp in
6153    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6154    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6155    \-*) ;;
6156    *) break;;
6157  esac
6158done
6159cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6160
6161
6162# Only perform the check for file, if the check method requires it
6163case $deplibs_check_method in
6164file_magic*)
6165  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6166    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6167echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6168if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6169  echo $ECHO_N "(cached) $ECHO_C" >&6
6170else
6171  case $MAGIC_CMD in
6172[\\/*] |  ?:[\\/]*)
6173  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6174  ;;
6175*)
6176  lt_save_MAGIC_CMD="$MAGIC_CMD"
6177  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6178  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6179  for ac_dir in $ac_dummy; do
6180    IFS="$lt_save_ifs"
6181    test -z "$ac_dir" && ac_dir=.
6182    if test -f $ac_dir/${ac_tool_prefix}file; then
6183      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6184      if test -n "$file_magic_test_file"; then
6185	case $deplibs_check_method in
6186	"file_magic "*)
6187	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6188	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6189	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6190	    $EGREP "$file_magic_regex" > /dev/null; then
6191	    :
6192	  else
6193	    cat <<EOF 1>&2
6194
6195*** Warning: the command libtool uses to detect shared libraries,
6196*** $file_magic_cmd, produces output that libtool cannot recognize.
6197*** The result is that libtool may fail to recognize shared libraries
6198*** as such.  This will affect the creation of libtool libraries that
6199*** depend on shared libraries, but programs linked with such libtool
6200*** libraries will work regardless of this problem.  Nevertheless, you
6201*** may want to report the problem to your system manager and/or to
6202*** bug-libtool@gnu.org
6203
6204EOF
6205	  fi ;;
6206	esac
6207      fi
6208      break
6209    fi
6210  done
6211  IFS="$lt_save_ifs"
6212  MAGIC_CMD="$lt_save_MAGIC_CMD"
6213  ;;
6214esac
6215fi
6216
6217MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6218if test -n "$MAGIC_CMD"; then
6219  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6220echo "${ECHO_T}$MAGIC_CMD" >&6
6221else
6222  echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6
6224fi
6225
6226if test -z "$lt_cv_path_MAGIC_CMD"; then
6227  if test -n "$ac_tool_prefix"; then
6228    echo "$as_me:$LINENO: checking for file" >&5
6229echo $ECHO_N "checking for file... $ECHO_C" >&6
6230if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6231  echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
6233  case $MAGIC_CMD in
6234[\\/*] |  ?:[\\/]*)
6235  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6236  ;;
6237*)
6238  lt_save_MAGIC_CMD="$MAGIC_CMD"
6239  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6240  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6241  for ac_dir in $ac_dummy; do
6242    IFS="$lt_save_ifs"
6243    test -z "$ac_dir" && ac_dir=.
6244    if test -f $ac_dir/file; then
6245      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6246      if test -n "$file_magic_test_file"; then
6247	case $deplibs_check_method in
6248	"file_magic "*)
6249	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6250	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6251	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6252	    $EGREP "$file_magic_regex" > /dev/null; then
6253	    :
6254	  else
6255	    cat <<EOF 1>&2
6256
6257*** Warning: the command libtool uses to detect shared libraries,
6258*** $file_magic_cmd, produces output that libtool cannot recognize.
6259*** The result is that libtool may fail to recognize shared libraries
6260*** as such.  This will affect the creation of libtool libraries that
6261*** depend on shared libraries, but programs linked with such libtool
6262*** libraries will work regardless of this problem.  Nevertheless, you
6263*** may want to report the problem to your system manager and/or to
6264*** bug-libtool@gnu.org
6265
6266EOF
6267	  fi ;;
6268	esac
6269      fi
6270      break
6271    fi
6272  done
6273  IFS="$lt_save_ifs"
6274  MAGIC_CMD="$lt_save_MAGIC_CMD"
6275  ;;
6276esac
6277fi
6278
6279MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6280if test -n "$MAGIC_CMD"; then
6281  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6282echo "${ECHO_T}$MAGIC_CMD" >&6
6283else
6284  echo "$as_me:$LINENO: result: no" >&5
6285echo "${ECHO_T}no" >&6
6286fi
6287
6288  else
6289    MAGIC_CMD=:
6290  fi
6291fi
6292
6293  fi
6294  ;;
6295esac
6296
6297enable_dlopen=no
6298enable_win32_dll=no
6299
6300# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6301if test "${enable_libtool_lock+set}" = set; then
6302  enableval="$enable_libtool_lock"
6303
6304fi;
6305test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6306
6307
6308# Check whether --with-pic or --without-pic was given.
6309if test "${with_pic+set}" = set; then
6310  withval="$with_pic"
6311  pic_mode="$withval"
6312else
6313  pic_mode=default
6314fi;
6315test -z "$pic_mode" && pic_mode=default
6316
6317# Use C for the default configuration in the libtool script
6318tagname=
6319lt_save_CC="$CC"
6320ac_ext=c
6321ac_cpp='$CPP $CPPFLAGS'
6322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325
6326
6327# Source file extension for C test sources.
6328ac_ext=c
6329
6330# Object file extension for compiled C test sources.
6331objext=o
6332objext=$objext
6333
6334# Code to be used in simple compile tests
6335lt_simple_compile_test_code="int some_variable = 0;\n"
6336
6337# Code to be used in simple link tests
6338lt_simple_link_test_code='int main(){return(0);}\n'
6339
6340
6341# If no C compiler was specified, use CC.
6342LTCC=${LTCC-"$CC"}
6343
6344# If no C compiler flags were specified, use CFLAGS.
6345LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6346
6347# Allow CC to be a program name with arguments.
6348compiler=$CC
6349
6350
6351# save warnings/boilerplate of simple test code
6352ac_outfile=conftest.$ac_objext
6353printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6354eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6355_lt_compiler_boilerplate=`cat conftest.err`
6356$rm conftest*
6357
6358ac_outfile=conftest.$ac_objext
6359printf "$lt_simple_link_test_code" >conftest.$ac_ext
6360eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6361_lt_linker_boilerplate=`cat conftest.err`
6362$rm conftest*
6363
6364
6365
6366lt_prog_compiler_no_builtin_flag=
6367
6368if test "$GCC" = yes; then
6369  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6370
6371
6372echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6373echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6374if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6375  echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
6377  lt_cv_prog_compiler_rtti_exceptions=no
6378  ac_outfile=conftest.$ac_objext
6379   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6380   lt_compiler_flag="-fno-rtti -fno-exceptions"
6381   # Insert the option either (1) after the last *FLAGS variable, or
6382   # (2) before a word containing "conftest.", or (3) at the end.
6383   # Note that $ac_compile itself does not contain backslashes and begins
6384   # with a dollar sign (not a hyphen), so the echo should work correctly.
6385   # The option is referenced via a variable to avoid confusing sed.
6386   lt_compile=`echo "$ac_compile" | $SED \
6387   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6388   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6389   -e 's:$: $lt_compiler_flag:'`
6390   (eval echo "\"\$as_me:6390: $lt_compile\"" >&5)
6391   (eval "$lt_compile" 2>conftest.err)
6392   ac_status=$?
6393   cat conftest.err >&5
6394   echo "$as_me:6394: \$? = $ac_status" >&5
6395   if (exit $ac_status) && test -s "$ac_outfile"; then
6396     # The compiler can only warn and ignore the option if not recognized
6397     # So say no if there are warnings other than the usual output.
6398     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6399     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6400     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6401       lt_cv_prog_compiler_rtti_exceptions=yes
6402     fi
6403   fi
6404   $rm conftest*
6405
6406fi
6407echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6408echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6409
6410if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6411    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6412else
6413    :
6414fi
6415
6416fi
6417
6418lt_prog_compiler_wl=
6419lt_prog_compiler_pic=
6420lt_prog_compiler_static=
6421
6422echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6423echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6424
6425  if test "$GCC" = yes; then
6426    lt_prog_compiler_wl='-Wl,'
6427    lt_prog_compiler_static='-static'
6428
6429    case $host_os in
6430      aix*)
6431      # All AIX code is PIC.
6432      if test "$host_cpu" = ia64; then
6433	# AIX 5 now supports IA64 processor
6434	lt_prog_compiler_static='-Bstatic'
6435      fi
6436      ;;
6437
6438    amigaos*)
6439      # FIXME: we need at least 68020 code to build shared libraries, but
6440      # adding the `-m68020' flag to GCC prevents building anything better,
6441      # like `-m68040'.
6442      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6443      ;;
6444
6445    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6446      # PIC is the default for these OSes.
6447      ;;
6448
6449    mingw* | pw32* | os2*)
6450      # This hack is so that the source file can tell whether it is being
6451      # built for inclusion in a dll (and should export symbols for example).
6452      lt_prog_compiler_pic='-DDLL_EXPORT'
6453      ;;
6454
6455    darwin* | rhapsody*)
6456      # PIC is the default on this platform
6457      # Common symbols not allowed in MH_DYLIB files
6458      lt_prog_compiler_pic='-fno-common'
6459      ;;
6460
6461    interix3*)
6462      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6463      # Instead, we relocate shared libraries at runtime.
6464      ;;
6465
6466    msdosdjgpp*)
6467      # Just because we use GCC doesn't mean we suddenly get shared libraries
6468      # on systems that don't support them.
6469      lt_prog_compiler_can_build_shared=no
6470      enable_shared=no
6471      ;;
6472
6473    sysv4*MP*)
6474      if test -d /usr/nec; then
6475	lt_prog_compiler_pic=-Kconform_pic
6476      fi
6477      ;;
6478
6479    hpux*)
6480      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6481      # not for PA HP-UX.
6482      case $host_cpu in
6483      hppa*64*|ia64*)
6484	# +Z the default
6485	;;
6486      *)
6487	lt_prog_compiler_pic='-fPIC'
6488	;;
6489      esac
6490      ;;
6491
6492    *)
6493      lt_prog_compiler_pic='-fPIC'
6494      ;;
6495    esac
6496  else
6497    # PORTME Check for flag to pass linker flags through the system compiler.
6498    case $host_os in
6499    aix*)
6500      lt_prog_compiler_wl='-Wl,'
6501      if test "$host_cpu" = ia64; then
6502	# AIX 5 now supports IA64 processor
6503	lt_prog_compiler_static='-Bstatic'
6504      else
6505	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6506      fi
6507      ;;
6508      darwin*)
6509        # PIC is the default on this platform
6510        # Common symbols not allowed in MH_DYLIB files
6511       case $cc_basename in
6512         xlc*)
6513         lt_prog_compiler_pic='-qnocommon'
6514         lt_prog_compiler_wl='-Wl,'
6515         ;;
6516       esac
6517       ;;
6518
6519    mingw* | pw32* | os2*)
6520      # This hack is so that the source file can tell whether it is being
6521      # built for inclusion in a dll (and should export symbols for example).
6522      lt_prog_compiler_pic='-DDLL_EXPORT'
6523      ;;
6524
6525    hpux9* | hpux10* | hpux11*)
6526      lt_prog_compiler_wl='-Wl,'
6527      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6528      # not for PA HP-UX.
6529      case $host_cpu in
6530      hppa*64*|ia64*)
6531	# +Z the default
6532	;;
6533      *)
6534	lt_prog_compiler_pic='+Z'
6535	;;
6536      esac
6537      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6538      lt_prog_compiler_static='${wl}-a ${wl}archive'
6539      ;;
6540
6541    irix5* | irix6* | nonstopux*)
6542      lt_prog_compiler_wl='-Wl,'
6543      # PIC (with -KPIC) is the default.
6544      lt_prog_compiler_static='-non_shared'
6545      ;;
6546
6547    newsos6)
6548      lt_prog_compiler_pic='-KPIC'
6549      lt_prog_compiler_static='-Bstatic'
6550      ;;
6551
6552    linux*)
6553      case $cc_basename in
6554      icc* | ecc*)
6555	lt_prog_compiler_wl='-Wl,'
6556	lt_prog_compiler_pic='-KPIC'
6557	lt_prog_compiler_static='-static'
6558        ;;
6559      pgcc* | pgf77* | pgf90* | pgf95*)
6560        # Portland Group compilers (*not* the Pentium gcc compiler,
6561	# which looks to be a dead project)
6562	lt_prog_compiler_wl='-Wl,'
6563	lt_prog_compiler_pic='-fpic'
6564	lt_prog_compiler_static='-Bstatic'
6565        ;;
6566      ccc*)
6567        lt_prog_compiler_wl='-Wl,'
6568        # All Alpha code is PIC.
6569        lt_prog_compiler_static='-non_shared'
6570        ;;
6571      esac
6572      ;;
6573
6574    osf3* | osf4* | osf5*)
6575      lt_prog_compiler_wl='-Wl,'
6576      # All OSF/1 code is PIC.
6577      lt_prog_compiler_static='-non_shared'
6578      ;;
6579
6580    solaris*)
6581      lt_prog_compiler_pic='-KPIC'
6582      lt_prog_compiler_static='-Bstatic'
6583      case $cc_basename in
6584      f77* | f90* | f95*)
6585	lt_prog_compiler_wl='-Qoption ld ';;
6586      *)
6587	lt_prog_compiler_wl='-Wl,';;
6588      esac
6589      ;;
6590
6591    sunos4*)
6592      lt_prog_compiler_wl='-Qoption ld '
6593      lt_prog_compiler_pic='-PIC'
6594      lt_prog_compiler_static='-Bstatic'
6595      ;;
6596
6597    sysv4 | sysv4.2uw2* | sysv4.3*)
6598      lt_prog_compiler_wl='-Wl,'
6599      lt_prog_compiler_pic='-KPIC'
6600      lt_prog_compiler_static='-Bstatic'
6601      ;;
6602
6603    sysv4*MP*)
6604      if test -d /usr/nec ;then
6605	lt_prog_compiler_pic='-Kconform_pic'
6606	lt_prog_compiler_static='-Bstatic'
6607      fi
6608      ;;
6609
6610    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6611      lt_prog_compiler_wl='-Wl,'
6612      lt_prog_compiler_pic='-KPIC'
6613      lt_prog_compiler_static='-Bstatic'
6614      ;;
6615
6616    unicos*)
6617      lt_prog_compiler_wl='-Wl,'
6618      lt_prog_compiler_can_build_shared=no
6619      ;;
6620
6621    uts4*)
6622      lt_prog_compiler_pic='-pic'
6623      lt_prog_compiler_static='-Bstatic'
6624      ;;
6625
6626    *)
6627      lt_prog_compiler_can_build_shared=no
6628      ;;
6629    esac
6630  fi
6631
6632echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6633echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6634
6635#
6636# Check to make sure the PIC flag actually works.
6637#
6638if test -n "$lt_prog_compiler_pic"; then
6639
6640echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6641echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6642if test "${lt_prog_compiler_pic_works+set}" = set; then
6643  echo $ECHO_N "(cached) $ECHO_C" >&6
6644else
6645  lt_prog_compiler_pic_works=no
6646  ac_outfile=conftest.$ac_objext
6647   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6648   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6649   # Insert the option either (1) after the last *FLAGS variable, or
6650   # (2) before a word containing "conftest.", or (3) at the end.
6651   # Note that $ac_compile itself does not contain backslashes and begins
6652   # with a dollar sign (not a hyphen), so the echo should work correctly.
6653   # The option is referenced via a variable to avoid confusing sed.
6654   lt_compile=`echo "$ac_compile" | $SED \
6655   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6657   -e 's:$: $lt_compiler_flag:'`
6658   (eval echo "\"\$as_me:6658: $lt_compile\"" >&5)
6659   (eval "$lt_compile" 2>conftest.err)
6660   ac_status=$?
6661   cat conftest.err >&5
6662   echo "$as_me:6662: \$? = $ac_status" >&5
6663   if (exit $ac_status) && test -s "$ac_outfile"; then
6664     # The compiler can only warn and ignore the option if not recognized
6665     # So say no if there are warnings other than the usual output.
6666     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6667     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6668     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6669       lt_prog_compiler_pic_works=yes
6670     fi
6671   fi
6672   $rm conftest*
6673
6674fi
6675echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6676echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6677
6678if test x"$lt_prog_compiler_pic_works" = xyes; then
6679    case $lt_prog_compiler_pic in
6680     "" | " "*) ;;
6681     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6682     esac
6683else
6684    lt_prog_compiler_pic=
6685     lt_prog_compiler_can_build_shared=no
6686fi
6687
6688fi
6689case $host_os in
6690  # For platforms which do not support PIC, -DPIC is meaningless:
6691  *djgpp*)
6692    lt_prog_compiler_pic=
6693    ;;
6694  *)
6695    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6696    ;;
6697esac
6698
6699#
6700# Check to make sure the static flag actually works.
6701#
6702wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6703echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6704echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6705if test "${lt_prog_compiler_static_works+set}" = set; then
6706  echo $ECHO_N "(cached) $ECHO_C" >&6
6707else
6708  lt_prog_compiler_static_works=no
6709   save_LDFLAGS="$LDFLAGS"
6710   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6711   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6712   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6713     # The linker can only warn and ignore the option if not recognized
6714     # So say no if there are warnings
6715     if test -s conftest.err; then
6716       # Append any errors to the config.log.
6717       cat conftest.err 1>&5
6718       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6719       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6720       if diff conftest.exp conftest.er2 >/dev/null; then
6721         lt_prog_compiler_static_works=yes
6722       fi
6723     else
6724       lt_prog_compiler_static_works=yes
6725     fi
6726   fi
6727   $rm conftest*
6728   LDFLAGS="$save_LDFLAGS"
6729
6730fi
6731echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6732echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6733
6734if test x"$lt_prog_compiler_static_works" = xyes; then
6735    :
6736else
6737    lt_prog_compiler_static=
6738fi
6739
6740
6741echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6742echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6743if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6744  echo $ECHO_N "(cached) $ECHO_C" >&6
6745else
6746  lt_cv_prog_compiler_c_o=no
6747   $rm -r conftest 2>/dev/null
6748   mkdir conftest
6749   cd conftest
6750   mkdir out
6751   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6752
6753   lt_compiler_flag="-o out/conftest2.$ac_objext"
6754   # Insert the option either (1) after the last *FLAGS variable, or
6755   # (2) before a word containing "conftest.", or (3) at the end.
6756   # Note that $ac_compile itself does not contain backslashes and begins
6757   # with a dollar sign (not a hyphen), so the echo should work correctly.
6758   lt_compile=`echo "$ac_compile" | $SED \
6759   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6760   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6761   -e 's:$: $lt_compiler_flag:'`
6762   (eval echo "\"\$as_me:6762: $lt_compile\"" >&5)
6763   (eval "$lt_compile" 2>out/conftest.err)
6764   ac_status=$?
6765   cat out/conftest.err >&5
6766   echo "$as_me:6766: \$? = $ac_status" >&5
6767   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6768   then
6769     # The compiler can only warn and ignore the option if not recognized
6770     # So say no if there are warnings
6771     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6772     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6773     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6774       lt_cv_prog_compiler_c_o=yes
6775     fi
6776   fi
6777   chmod u+w . 2>&5
6778   $rm conftest*
6779   # SGI C++ compiler will create directory out/ii_files/ for
6780   # template instantiation
6781   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6782   $rm out/* && rmdir out
6783   cd ..
6784   rmdir conftest
6785   $rm conftest*
6786
6787fi
6788echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6789echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6790
6791
6792hard_links="nottested"
6793if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6794  # do not overwrite the value of need_locks provided by the user
6795  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6796echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6797  hard_links=yes
6798  $rm conftest*
6799  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6800  touch conftest.a
6801  ln conftest.a conftest.b 2>&5 || hard_links=no
6802  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6803  echo "$as_me:$LINENO: result: $hard_links" >&5
6804echo "${ECHO_T}$hard_links" >&6
6805  if test "$hard_links" = no; then
6806    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6807echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6808    need_locks=warn
6809  fi
6810else
6811  need_locks=no
6812fi
6813
6814echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6815echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6816
6817  runpath_var=
6818  allow_undefined_flag=
6819  enable_shared_with_static_runtimes=no
6820  archive_cmds=
6821  archive_expsym_cmds=
6822  old_archive_From_new_cmds=
6823  old_archive_from_expsyms_cmds=
6824  export_dynamic_flag_spec=
6825  whole_archive_flag_spec=
6826  thread_safe_flag_spec=
6827  hardcode_libdir_flag_spec=
6828  hardcode_libdir_flag_spec_ld=
6829  hardcode_libdir_separator=
6830  hardcode_direct=no
6831  hardcode_minus_L=no
6832  hardcode_shlibpath_var=unsupported
6833  link_all_deplibs=unknown
6834  hardcode_automatic=no
6835  module_cmds=
6836  module_expsym_cmds=
6837  always_export_symbols=no
6838  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6839  # include_expsyms should be a list of space-separated symbols to be *always*
6840  # included in the symbol list
6841  include_expsyms=
6842  # exclude_expsyms can be an extended regexp of symbols to exclude
6843  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6844  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6845  # as well as any symbol that contains `d'.
6846  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6847  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6848  # platforms (ab)use it in PIC code, but their linkers get confused if
6849  # the symbol is explicitly referenced.  Since portable code cannot
6850  # rely on this symbol name, it's probably fine to never include it in
6851  # preloaded symbol tables.
6852  extract_expsyms_cmds=
6853  # Just being paranoid about ensuring that cc_basename is set.
6854  for cc_temp in $compiler""; do
6855  case $cc_temp in
6856    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6857    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6858    \-*) ;;
6859    *) break;;
6860  esac
6861done
6862cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6863
6864  case $host_os in
6865  cygwin* | mingw* | pw32*)
6866    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6867    # When not using gcc, we currently assume that we are using
6868    # Microsoft Visual C++.
6869    if test "$GCC" != yes; then
6870      with_gnu_ld=no
6871    fi
6872    ;;
6873  interix*)
6874    # we just hope/assume this is gcc and not c89 (= MSVC++)
6875    with_gnu_ld=yes
6876    ;;
6877  openbsd*)
6878    with_gnu_ld=no
6879    ;;
6880  esac
6881
6882  ld_shlibs=yes
6883  if test "$with_gnu_ld" = yes; then
6884    # If archive_cmds runs LD, not CC, wlarc should be empty
6885    wlarc='${wl}'
6886
6887    # Set some defaults for GNU ld with shared library support. These
6888    # are reset later if shared libraries are not supported. Putting them
6889    # here allows them to be overridden if necessary.
6890    runpath_var=LD_RUN_PATH
6891    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6892    export_dynamic_flag_spec='${wl}--export-dynamic'
6893    # ancient GNU ld didn't support --whole-archive et. al.
6894    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6895	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6896      else
6897  	whole_archive_flag_spec=
6898    fi
6899    supports_anon_versioning=no
6900    case `$LD -v 2>/dev/null` in
6901      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6902      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6903      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6904      *\ 2.11.*) ;; # other 2.11 versions
6905      *) supports_anon_versioning=yes ;;
6906    esac
6907
6908    # See if GNU ld supports shared libraries.
6909    case $host_os in
6910    aix3* | aix4* | aix5*)
6911      # On AIX/PPC, the GNU linker is very broken
6912      if test "$host_cpu" != ia64; then
6913	ld_shlibs=no
6914	cat <<EOF 1>&2
6915
6916*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6917*** to be unable to reliably create shared libraries on AIX.
6918*** Therefore, libtool is disabling shared libraries support.  If you
6919*** really care for shared libraries, you may want to modify your PATH
6920*** so that a non-GNU linker is found, and then restart.
6921
6922EOF
6923      fi
6924      ;;
6925
6926    amigaos*)
6927      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)'
6928      hardcode_libdir_flag_spec='-L$libdir'
6929      hardcode_minus_L=yes
6930
6931      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6932      # that the semantics of dynamic libraries on AmigaOS, at least up
6933      # to version 4, is to share data among multiple programs linked
6934      # with the same dynamic library.  Since this doesn't match the
6935      # behavior of shared libraries on other platforms, we can't use
6936      # them.
6937      ld_shlibs=no
6938      ;;
6939
6940    beos*)
6941      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6942	allow_undefined_flag=unsupported
6943	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6944	# support --undefined.  This deserves some investigation.  FIXME
6945	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6946      else
6947	ld_shlibs=no
6948      fi
6949      ;;
6950
6951    cygwin* | mingw* | pw32*)
6952      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6953      # as there is no search path for DLLs.
6954      hardcode_libdir_flag_spec='-L$libdir'
6955      allow_undefined_flag=unsupported
6956      always_export_symbols=no
6957      enable_shared_with_static_runtimes=yes
6958      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6959
6960      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6961        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6962	# If the export-symbols file already is a .def file (1st line
6963	# is EXPORTS), use it as is; otherwise, prepend...
6964	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6965	  cp $export_symbols $output_objdir/$soname.def;
6966	else
6967	  echo EXPORTS > $output_objdir/$soname.def;
6968	  cat $export_symbols >> $output_objdir/$soname.def;
6969	fi~
6970	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6971      else
6972	ld_shlibs=no
6973      fi
6974      ;;
6975
6976    interix3*)
6977      hardcode_direct=no
6978      hardcode_shlibpath_var=no
6979      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6980      export_dynamic_flag_spec='${wl}-E'
6981      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6982      # Instead, shared libraries are loaded at an image base (0x10000000 by
6983      # default) and relocated if they conflict, which is a slow very memory
6984      # consuming and fragmenting process.  To avoid this, we pick a random,
6985      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6986      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6987      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6988      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'
6989      ;;
6990
6991    linux*)
6992      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6993	tmp_addflag=
6994	case $cc_basename,$host_cpu in
6995	pgcc*)				# Portland Group C compiler
6996	  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'
6997	  tmp_addflag=' $pic_flag'
6998	  ;;
6999	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7000	  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'
7001	  tmp_addflag=' $pic_flag -Mnomain' ;;
7002	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7003	  tmp_addflag=' -i_dynamic' ;;
7004	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7005	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7006	ifc* | ifort*)			# Intel Fortran compiler
7007	  tmp_addflag=' -nofor_main' ;;
7008	esac
7009	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7010
7011	if test $supports_anon_versioning = yes; then
7012	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7013  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7014  $echo "local: *; };" >> $output_objdir/$libname.ver~
7015	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7016	fi
7017      else
7018	ld_shlibs=no
7019      fi
7020      ;;
7021
7022    netbsd*)
7023      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7024	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7025	wlarc=
7026      else
7027	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7028	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7029      fi
7030      ;;
7031
7032    solaris*)
7033      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7034	ld_shlibs=no
7035	cat <<EOF 1>&2
7036
7037*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7038*** create shared libraries on Solaris systems.  Therefore, libtool
7039*** is disabling shared libraries support.  We urge you to upgrade GNU
7040*** binutils to release 2.9.1 or newer.  Another option is to modify
7041*** your PATH or compiler configuration so that the native linker is
7042*** used, and then restart.
7043
7044EOF
7045      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7046	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7047	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7048      else
7049	ld_shlibs=no
7050      fi
7051      ;;
7052
7053    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7054      case `$LD -v 2>&1` in
7055        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7056	ld_shlibs=no
7057	cat <<_LT_EOF 1>&2
7058
7059*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7060*** reliably create shared libraries on SCO systems.  Therefore, libtool
7061*** is disabling shared libraries support.  We urge you to upgrade GNU
7062*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7063*** your PATH or compiler configuration so that the native linker is
7064*** used, and then restart.
7065
7066_LT_EOF
7067	;;
7068	*)
7069	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7070	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7071	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7072	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7073	  else
7074	    ld_shlibs=no
7075	  fi
7076	;;
7077      esac
7078      ;;
7079
7080    sunos4*)
7081      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7082      wlarc=
7083      hardcode_direct=yes
7084      hardcode_shlibpath_var=no
7085      ;;
7086
7087    *)
7088      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7089	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7090	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7091      else
7092	ld_shlibs=no
7093      fi
7094      ;;
7095    esac
7096
7097    if test "$ld_shlibs" = no; then
7098      runpath_var=
7099      hardcode_libdir_flag_spec=
7100      export_dynamic_flag_spec=
7101      whole_archive_flag_spec=
7102    fi
7103  else
7104    # PORTME fill in a description of your system's linker (not GNU ld)
7105    case $host_os in
7106    aix3*)
7107      allow_undefined_flag=unsupported
7108      always_export_symbols=yes
7109      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'
7110      # Note: this linker hardcodes the directories in LIBPATH if there
7111      # are no directories specified by -L.
7112      hardcode_minus_L=yes
7113      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7114	# Neither direct hardcoding nor static linking is supported with a
7115	# broken collect2.
7116	hardcode_direct=unsupported
7117      fi
7118      ;;
7119
7120    aix4* | aix5*)
7121      if test "$host_cpu" = ia64; then
7122	# On IA64, the linker does run time linking by default, so we don't
7123	# have to do anything special.
7124	aix_use_runtimelinking=no
7125	exp_sym_flag='-Bexport'
7126	no_entry_flag=""
7127      else
7128	# If we're using GNU nm, then we don't want the "-C" option.
7129	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7130	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7131	  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'
7132	else
7133	  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'
7134	fi
7135	aix_use_runtimelinking=no
7136
7137	# Test if we are trying to use run time linking or normal
7138	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7139	# need to do runtime linking.
7140	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7141	  for ld_flag in $LDFLAGS; do
7142  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7143  	    aix_use_runtimelinking=yes
7144  	    break
7145  	  fi
7146	  done
7147	  ;;
7148	esac
7149
7150	exp_sym_flag='-bexport'
7151	no_entry_flag='-bnoentry'
7152      fi
7153
7154      # When large executables or shared objects are built, AIX ld can
7155      # have problems creating the table of contents.  If linking a library
7156      # or program results in "error TOC overflow" add -mminimal-toc to
7157      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7158      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7159
7160      archive_cmds=''
7161      hardcode_direct=yes
7162      hardcode_libdir_separator=':'
7163      link_all_deplibs=yes
7164
7165      if test "$GCC" = yes; then
7166	case $host_os in aix4.[012]|aix4.[012].*)
7167	# We only want to do this on AIX 4.2 and lower, the check
7168	# below for broken collect2 doesn't work under 4.3+
7169	  collect2name=`${CC} -print-prog-name=collect2`
7170	  if test -f "$collect2name" && \
7171  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7172	  then
7173  	  # We have reworked collect2
7174  	  hardcode_direct=yes
7175	  else
7176  	  # We have old collect2
7177  	  hardcode_direct=unsupported
7178  	  # It fails to find uninstalled libraries when the uninstalled
7179  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7180  	  # to unsupported forces relinking
7181  	  hardcode_minus_L=yes
7182  	  hardcode_libdir_flag_spec='-L$libdir'
7183  	  hardcode_libdir_separator=
7184	  fi
7185	  ;;
7186	esac
7187	shared_flag='-shared'
7188	if test "$aix_use_runtimelinking" = yes; then
7189	  shared_flag="$shared_flag "'${wl}-G'
7190	fi
7191      else
7192	# not using gcc
7193	if test "$host_cpu" = ia64; then
7194  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7195  	# chokes on -Wl,-G. The following line is correct:
7196	  shared_flag='-G'
7197	else
7198	  if test "$aix_use_runtimelinking" = yes; then
7199	    shared_flag='${wl}-G'
7200	  else
7201	    shared_flag='${wl}-bM:SRE'
7202	  fi
7203	fi
7204      fi
7205
7206      # It seems that -bexpall does not export symbols beginning with
7207      # underscore (_), so it is better to generate a list of symbols to export.
7208      always_export_symbols=yes
7209      if test "$aix_use_runtimelinking" = yes; then
7210	# Warning - without using the other runtime loading flags (-brtl),
7211	# -berok will link without error, but may produce a broken library.
7212	allow_undefined_flag='-berok'
7213       # Determine the default libpath from the value encoded in an empty executable.
7214       cat >conftest.$ac_ext <<_ACEOF
7215/* confdefs.h.  */
7216_ACEOF
7217cat confdefs.h >>conftest.$ac_ext
7218cat >>conftest.$ac_ext <<_ACEOF
7219/* end confdefs.h.  */
7220
7221int
7222main ()
7223{
7224
7225  ;
7226  return 0;
7227}
7228_ACEOF
7229rm -f conftest.$ac_objext conftest$ac_exeext
7230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7231  (eval $ac_link) 2>conftest.er1
7232  ac_status=$?
7233  grep -v '^ *+' conftest.er1 >conftest.err
7234  rm -f conftest.er1
7235  cat conftest.err >&5
7236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237  (exit $ac_status); } &&
7238	 { ac_try='test -z "$ac_c_werror_flag"
7239			 || test ! -s conftest.err'
7240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241  (eval $ac_try) 2>&5
7242  ac_status=$?
7243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244  (exit $ac_status); }; } &&
7245	 { ac_try='test -s conftest$ac_exeext'
7246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247  (eval $ac_try) 2>&5
7248  ac_status=$?
7249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250  (exit $ac_status); }; }; then
7251
7252aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7253}'`
7254# Check for a 64-bit object if we didn't find anything.
7255if 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; }
7256}'`; fi
7257else
7258  echo "$as_me: failed program was:" >&5
7259sed 's/^/| /' conftest.$ac_ext >&5
7260
7261fi
7262rm -f conftest.err conftest.$ac_objext \
7263      conftest$ac_exeext conftest.$ac_ext
7264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7265
7266       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7267	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"
7268       else
7269	if test "$host_cpu" = ia64; then
7270	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7271	  allow_undefined_flag="-z nodefs"
7272	  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"
7273	else
7274	 # Determine the default libpath from the value encoded in an empty executable.
7275	 cat >conftest.$ac_ext <<_ACEOF
7276/* confdefs.h.  */
7277_ACEOF
7278cat confdefs.h >>conftest.$ac_ext
7279cat >>conftest.$ac_ext <<_ACEOF
7280/* end confdefs.h.  */
7281
7282int
7283main ()
7284{
7285
7286  ;
7287  return 0;
7288}
7289_ACEOF
7290rm -f conftest.$ac_objext conftest$ac_exeext
7291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7292  (eval $ac_link) 2>conftest.er1
7293  ac_status=$?
7294  grep -v '^ *+' conftest.er1 >conftest.err
7295  rm -f conftest.er1
7296  cat conftest.err >&5
7297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298  (exit $ac_status); } &&
7299	 { ac_try='test -z "$ac_c_werror_flag"
7300			 || test ! -s conftest.err'
7301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302  (eval $ac_try) 2>&5
7303  ac_status=$?
7304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305  (exit $ac_status); }; } &&
7306	 { ac_try='test -s conftest$ac_exeext'
7307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308  (eval $ac_try) 2>&5
7309  ac_status=$?
7310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311  (exit $ac_status); }; }; then
7312
7313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7314}'`
7315# Check for a 64-bit object if we didn't find anything.
7316if 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; }
7317}'`; fi
7318else
7319  echo "$as_me: failed program was:" >&5
7320sed 's/^/| /' conftest.$ac_ext >&5
7321
7322fi
7323rm -f conftest.err conftest.$ac_objext \
7324      conftest$ac_exeext conftest.$ac_ext
7325if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7326
7327	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7328	  # Warning - without using the other run time loading flags,
7329	  # -berok will link without error, but may produce a broken library.
7330	  no_undefined_flag=' ${wl}-bernotok'
7331	  allow_undefined_flag=' ${wl}-berok'
7332	  # Exported symbols can be pulled into shared objects from archives
7333	  whole_archive_flag_spec='$convenience'
7334	  archive_cmds_need_lc=yes
7335	  # This is similar to how AIX traditionally builds its shared libraries.
7336	  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'
7337	fi
7338      fi
7339      ;;
7340
7341    amigaos*)
7342      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)'
7343      hardcode_libdir_flag_spec='-L$libdir'
7344      hardcode_minus_L=yes
7345      # see comment about different semantics on the GNU ld section
7346      ld_shlibs=no
7347      ;;
7348
7349    bsdi[45]*)
7350      export_dynamic_flag_spec=-rdynamic
7351      ;;
7352
7353    cygwin* | mingw* | pw32*)
7354      # When not using gcc, we currently assume that we are using
7355      # Microsoft Visual C++.
7356      # hardcode_libdir_flag_spec is actually meaningless, as there is
7357      # no search path for DLLs.
7358      hardcode_libdir_flag_spec=' '
7359      allow_undefined_flag=unsupported
7360      # Tell ltmain to make .lib files, not .a files.
7361      libext=lib
7362      # Tell ltmain to make .dll files, not .so files.
7363      shrext_cmds=".dll"
7364      # FIXME: Setting linknames here is a bad hack.
7365      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7366      # The linker will automatically build a .lib file if we build a DLL.
7367      old_archive_From_new_cmds='true'
7368      # FIXME: Should let the user specify the lib program.
7369      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7370      fix_srcfile_path='`cygpath -w "$srcfile"`'
7371      enable_shared_with_static_runtimes=yes
7372      ;;
7373
7374    darwin* | rhapsody*)
7375      case $host_os in
7376        rhapsody* | darwin1.[012])
7377         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7378         ;;
7379       *) # Darwin 1.3 on
7380         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7381           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7382         else
7383           case ${MACOSX_DEPLOYMENT_TARGET} in
7384             10.[012])
7385               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7386               ;;
7387             10.*)
7388               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7389               ;;
7390           esac
7391         fi
7392         ;;
7393      esac
7394      archive_cmds_need_lc=no
7395      hardcode_direct=no
7396      hardcode_automatic=yes
7397      hardcode_shlibpath_var=unsupported
7398      whole_archive_flag_spec=''
7399      link_all_deplibs=yes
7400    if test "$GCC" = yes ; then
7401    	output_verbose_link_cmd='echo'
7402        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7403      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7404      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7405      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}'
7406      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}'
7407    else
7408      case $cc_basename in
7409        xlc*)
7410         output_verbose_link_cmd='echo'
7411         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7412         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7413          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7414         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}'
7415          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}'
7416          ;;
7417       *)
7418         ld_shlibs=no
7419          ;;
7420      esac
7421    fi
7422      ;;
7423
7424    dgux*)
7425      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7426      hardcode_libdir_flag_spec='-L$libdir'
7427      hardcode_shlibpath_var=no
7428      ;;
7429
7430    freebsd1*)
7431      ld_shlibs=no
7432      ;;
7433
7434    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7435    # support.  Future versions do this automatically, but an explicit c++rt0.o
7436    # does not break anything, and helps significantly (at the cost of a little
7437    # extra space).
7438    freebsd2.2*)
7439      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7440      hardcode_libdir_flag_spec='-R$libdir'
7441      hardcode_direct=yes
7442      hardcode_shlibpath_var=no
7443      ;;
7444
7445    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7446    freebsd2*)
7447      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7448      hardcode_direct=yes
7449      hardcode_minus_L=yes
7450      hardcode_shlibpath_var=no
7451      ;;
7452
7453    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7454    freebsd* | kfreebsd*-gnu | dragonfly*)
7455      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7456      hardcode_libdir_flag_spec='-R$libdir'
7457      hardcode_direct=yes
7458      hardcode_shlibpath_var=no
7459      ;;
7460
7461    hpux9*)
7462      if test "$GCC" = yes; then
7463	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'
7464      else
7465	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'
7466      fi
7467      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7468      hardcode_libdir_separator=:
7469      hardcode_direct=yes
7470
7471      # hardcode_minus_L: Not really in the search PATH,
7472      # but as the default location of the library.
7473      hardcode_minus_L=yes
7474      export_dynamic_flag_spec='${wl}-E'
7475      ;;
7476
7477    hpux10*)
7478      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7479	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7480      else
7481	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7482      fi
7483      if test "$with_gnu_ld" = no; then
7484	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7485	hardcode_libdir_separator=:
7486
7487	hardcode_direct=yes
7488	export_dynamic_flag_spec='${wl}-E'
7489
7490	# hardcode_minus_L: Not really in the search PATH,
7491	# but as the default location of the library.
7492	hardcode_minus_L=yes
7493      fi
7494      ;;
7495
7496    hpux11*)
7497      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7498	case $host_cpu in
7499	hppa*64*)
7500	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7501	  ;;
7502	ia64*)
7503	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7504	  ;;
7505	*)
7506	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7507	  ;;
7508	esac
7509      else
7510	case $host_cpu in
7511	hppa*64*)
7512	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7513	  ;;
7514	ia64*)
7515	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7516	  ;;
7517	*)
7518	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7519	  ;;
7520	esac
7521      fi
7522      if test "$with_gnu_ld" = no; then
7523	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7524	hardcode_libdir_separator=:
7525
7526	case $host_cpu in
7527	hppa*64*|ia64*)
7528	  hardcode_libdir_flag_spec_ld='+b $libdir'
7529	  hardcode_direct=no
7530	  hardcode_shlibpath_var=no
7531	  ;;
7532	*)
7533	  hardcode_direct=yes
7534	  export_dynamic_flag_spec='${wl}-E'
7535
7536	  # hardcode_minus_L: Not really in the search PATH,
7537	  # but as the default location of the library.
7538	  hardcode_minus_L=yes
7539	  ;;
7540	esac
7541      fi
7542      ;;
7543
7544    irix5* | irix6* | nonstopux*)
7545      if test "$GCC" = yes; then
7546	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'
7547      else
7548	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'
7549	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7550      fi
7551      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7552      hardcode_libdir_separator=:
7553      link_all_deplibs=yes
7554      ;;
7555
7556    netbsd*)
7557      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7558	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7559      else
7560	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7561      fi
7562      hardcode_libdir_flag_spec='-R$libdir'
7563      hardcode_direct=yes
7564      hardcode_shlibpath_var=no
7565      ;;
7566
7567    newsos6)
7568      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7569      hardcode_direct=yes
7570      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7571      hardcode_libdir_separator=:
7572      hardcode_shlibpath_var=no
7573      ;;
7574
7575    openbsd*)
7576      hardcode_direct=yes
7577      hardcode_shlibpath_var=no
7578      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7579	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7580	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7581	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7582	export_dynamic_flag_spec='${wl}-E'
7583      else
7584       case $host_os in
7585	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7586	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7587	   hardcode_libdir_flag_spec='-R$libdir'
7588	   ;;
7589	 *)
7590	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7591	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7592	   ;;
7593       esac
7594      fi
7595      ;;
7596
7597    os2*)
7598      hardcode_libdir_flag_spec='-L$libdir'
7599      hardcode_minus_L=yes
7600      allow_undefined_flag=unsupported
7601      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'
7602      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7603      ;;
7604
7605    osf3*)
7606      if test "$GCC" = yes; then
7607	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7608	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'
7609      else
7610	allow_undefined_flag=' -expect_unresolved \*'
7611	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'
7612      fi
7613      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7614      hardcode_libdir_separator=:
7615      ;;
7616
7617    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7618      if test "$GCC" = yes; then
7619	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7620	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'
7621	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7622      else
7623	allow_undefined_flag=' -expect_unresolved \*'
7624	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'
7625	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7626	$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'
7627
7628	# Both c and cxx compiler support -rpath directly
7629	hardcode_libdir_flag_spec='-rpath $libdir'
7630      fi
7631      hardcode_libdir_separator=:
7632      ;;
7633
7634    solaris*)
7635      no_undefined_flag=' -z text'
7636      if test "$GCC" = yes; then
7637	wlarc='${wl}'
7638	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7639	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7640	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7641      else
7642	wlarc=''
7643	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7644	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7645  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7646      fi
7647      hardcode_libdir_flag_spec='-R$libdir'
7648      hardcode_shlibpath_var=no
7649      case $host_os in
7650      solaris2.[0-5] | solaris2.[0-5].*) ;;
7651      *)
7652 	# The compiler driver will combine linker options so we
7653 	# cannot just pass the convience library names through
7654 	# without $wl, iff we do not link with $LD.
7655 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7656 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7657 	case $wlarc in
7658 	'')
7659 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7660 	*)
7661 	  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' ;;
7662 	esac ;;
7663      esac
7664      link_all_deplibs=yes
7665      ;;
7666
7667    sunos4*)
7668      if test "x$host_vendor" = xsequent; then
7669	# Use $CC to link under sequent, because it throws in some extra .o
7670	# files that make .init and .fini sections work.
7671	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7672      else
7673	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7674      fi
7675      hardcode_libdir_flag_spec='-L$libdir'
7676      hardcode_direct=yes
7677      hardcode_minus_L=yes
7678      hardcode_shlibpath_var=no
7679      ;;
7680
7681    sysv4)
7682      case $host_vendor in
7683	sni)
7684	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7685	  hardcode_direct=yes # is this really true???
7686	;;
7687	siemens)
7688	  ## LD is ld it makes a PLAMLIB
7689	  ## CC just makes a GrossModule.
7690	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7691	  reload_cmds='$CC -r -o $output$reload_objs'
7692	  hardcode_direct=no
7693        ;;
7694	motorola)
7695	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7696	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7697	;;
7698      esac
7699      runpath_var='LD_RUN_PATH'
7700      hardcode_shlibpath_var=no
7701      ;;
7702
7703    sysv4.3*)
7704      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7705      hardcode_shlibpath_var=no
7706      export_dynamic_flag_spec='-Bexport'
7707      ;;
7708
7709    sysv4*MP*)
7710      if test -d /usr/nec; then
7711	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7712	hardcode_shlibpath_var=no
7713	runpath_var=LD_RUN_PATH
7714	hardcode_runpath_var=yes
7715	ld_shlibs=yes
7716      fi
7717      ;;
7718
7719    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7720      no_undefined_flag='${wl}-z,text'
7721      archive_cmds_need_lc=no
7722      hardcode_shlibpath_var=no
7723      runpath_var='LD_RUN_PATH'
7724
7725      if test "$GCC" = yes; then
7726	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7727	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7728      else
7729	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7730	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7731      fi
7732      ;;
7733
7734    sysv5* | sco3.2v5* | sco5v6*)
7735      # Note: We can NOT use -z defs as we might desire, because we do not
7736      # link with -lc, and that would cause any symbols used from libc to
7737      # always be unresolved, which means just about no library would
7738      # ever link correctly.  If we're not using GNU ld we use -z text
7739      # though, which does catch some bad symbols but isn't as heavy-handed
7740      # as -z defs.
7741      no_undefined_flag='${wl}-z,text'
7742      allow_undefined_flag='${wl}-z,nodefs'
7743      archive_cmds_need_lc=no
7744      hardcode_shlibpath_var=no
7745      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7746      hardcode_libdir_separator=':'
7747      link_all_deplibs=yes
7748      export_dynamic_flag_spec='${wl}-Bexport'
7749      runpath_var='LD_RUN_PATH'
7750
7751      if test "$GCC" = yes; then
7752	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7753	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7754      else
7755	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7756	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7757      fi
7758      ;;
7759
7760    uts4*)
7761      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7762      hardcode_libdir_flag_spec='-L$libdir'
7763      hardcode_shlibpath_var=no
7764      ;;
7765
7766    *)
7767      ld_shlibs=no
7768      ;;
7769    esac
7770  fi
7771
7772echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7773echo "${ECHO_T}$ld_shlibs" >&6
7774test "$ld_shlibs" = no && can_build_shared=no
7775
7776#
7777# Do we need to explicitly link libc?
7778#
7779case "x$archive_cmds_need_lc" in
7780x|xyes)
7781  # Assume -lc should be added
7782  archive_cmds_need_lc=yes
7783
7784  if test "$enable_shared" = yes && test "$GCC" = yes; then
7785    case $archive_cmds in
7786    *'~'*)
7787      # FIXME: we may have to deal with multi-command sequences.
7788      ;;
7789    '$CC '*)
7790      # Test whether the compiler implicitly links with -lc since on some
7791      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7792      # to ld, don't add -lc before -lgcc.
7793      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7794echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7795      $rm conftest*
7796      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7797
7798      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7799  (eval $ac_compile) 2>&5
7800  ac_status=$?
7801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802  (exit $ac_status); } 2>conftest.err; then
7803        soname=conftest
7804        lib=conftest
7805        libobjs=conftest.$ac_objext
7806        deplibs=
7807        wl=$lt_prog_compiler_wl
7808	pic_flag=$lt_prog_compiler_pic
7809        compiler_flags=-v
7810        linker_flags=-v
7811        verstring=
7812        output_objdir=.
7813        libname=conftest
7814        lt_save_allow_undefined_flag=$allow_undefined_flag
7815        allow_undefined_flag=
7816        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7817  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7818  ac_status=$?
7819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820  (exit $ac_status); }
7821        then
7822	  archive_cmds_need_lc=no
7823        else
7824	  archive_cmds_need_lc=yes
7825        fi
7826        allow_undefined_flag=$lt_save_allow_undefined_flag
7827      else
7828        cat conftest.err 1>&5
7829      fi
7830      $rm conftest*
7831      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7832echo "${ECHO_T}$archive_cmds_need_lc" >&6
7833      ;;
7834    esac
7835  fi
7836  ;;
7837esac
7838
7839echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7840echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7841library_names_spec=
7842libname_spec='lib$name'
7843soname_spec=
7844shrext_cmds=".so"
7845postinstall_cmds=
7846postuninstall_cmds=
7847finish_cmds=
7848finish_eval=
7849shlibpath_var=
7850shlibpath_overrides_runpath=unknown
7851version_type=none
7852dynamic_linker="$host_os ld.so"
7853sys_lib_dlsearch_path_spec="/lib /usr/lib"
7854if test "$GCC" = yes; then
7855  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7856  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7857    # if the path contains ";" then we assume it to be the separator
7858    # otherwise default to the standard path separator (i.e. ":") - it is
7859    # assumed that no part of a normal pathname contains ";" but that should
7860    # okay in the real world where ";" in dirpaths is itself problematic.
7861    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7862  else
7863    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7864  fi
7865else
7866  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7867fi
7868need_lib_prefix=unknown
7869hardcode_into_libs=no
7870
7871# when you set need_version to no, make sure it does not cause -set_version
7872# flags to be left without arguments
7873need_version=unknown
7874
7875case $host_os in
7876aix3*)
7877  version_type=linux
7878  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7879  shlibpath_var=LIBPATH
7880
7881  # AIX 3 has no versioning support, so we append a major version to the name.
7882  soname_spec='${libname}${release}${shared_ext}$major'
7883  ;;
7884
7885aix4* | aix5*)
7886  version_type=linux
7887  need_lib_prefix=no
7888  need_version=no
7889  hardcode_into_libs=yes
7890  if test "$host_cpu" = ia64; then
7891    # AIX 5 supports IA64
7892    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7893    shlibpath_var=LD_LIBRARY_PATH
7894  else
7895    # With GCC up to 2.95.x, collect2 would create an import file
7896    # for dependence libraries.  The import file would start with
7897    # the line `#! .'.  This would cause the generated library to
7898    # depend on `.', always an invalid library.  This was fixed in
7899    # development snapshots of GCC prior to 3.0.
7900    case $host_os in
7901      aix4 | aix4.[01] | aix4.[01].*)
7902      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7903	   echo ' yes '
7904	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7905	:
7906      else
7907	can_build_shared=no
7908      fi
7909      ;;
7910    esac
7911    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7912    # soname into executable. Probably we can add versioning support to
7913    # collect2, so additional links can be useful in future.
7914    if test "$aix_use_runtimelinking" = yes; then
7915      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7916      # instead of lib<name>.a to let people know that these are not
7917      # typical AIX shared libraries.
7918      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7919    else
7920      # We preserve .a as extension for shared libraries through AIX4.2
7921      # and later when we are not doing run time linking.
7922      library_names_spec='${libname}${release}.a $libname.a'
7923      soname_spec='${libname}${release}${shared_ext}$major'
7924    fi
7925    shlibpath_var=LIBPATH
7926  fi
7927  ;;
7928
7929amigaos*)
7930  library_names_spec='$libname.ixlibrary $libname.a'
7931  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7932  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'
7933  ;;
7934
7935beos*)
7936  library_names_spec='${libname}${shared_ext}'
7937  dynamic_linker="$host_os ld.so"
7938  shlibpath_var=LIBRARY_PATH
7939  ;;
7940
7941bsdi[45]*)
7942  version_type=linux
7943  need_version=no
7944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7945  soname_spec='${libname}${release}${shared_ext}$major'
7946  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7947  shlibpath_var=LD_LIBRARY_PATH
7948  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7949  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7950  # the default ld.so.conf also contains /usr/contrib/lib and
7951  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7952  # libtool to hard-code these into programs
7953  ;;
7954
7955cygwin* | mingw* | pw32*)
7956  version_type=windows
7957  shrext_cmds=".dll"
7958  need_version=no
7959  need_lib_prefix=no
7960
7961  case $GCC,$host_os in
7962  yes,cygwin* | yes,mingw* | yes,pw32*)
7963    library_names_spec='$libname.dll.a'
7964    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7965    postinstall_cmds='base_file=`basename \${file}`~
7966      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7967      dldir=$destdir/`dirname \$dlpath`~
7968      test -d \$dldir || mkdir -p \$dldir~
7969      $install_prog $dir/$dlname \$dldir/$dlname~
7970      chmod a+x \$dldir/$dlname'
7971    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7972      dlpath=$dir/\$dldll~
7973       $rm \$dlpath'
7974    shlibpath_overrides_runpath=yes
7975
7976    case $host_os in
7977    cygwin*)
7978      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7979      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7980      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7981      ;;
7982    mingw*)
7983      # MinGW DLLs use traditional 'lib' prefix
7984      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7985      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7986      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7987        # It is most probably a Windows format PATH printed by
7988        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7989        # path with ; separators, and with drive letters. We can handle the
7990        # drive letters (cygwin fileutils understands them), so leave them,
7991        # especially as we might pass files found there to a mingw objdump,
7992        # which wouldn't understand a cygwinified path. Ahh.
7993        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7994      else
7995        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7996      fi
7997      ;;
7998    pw32*)
7999      # pw32 DLLs use 'pw' prefix rather than 'lib'
8000      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8001      ;;
8002    esac
8003    ;;
8004
8005  *)
8006    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8007    ;;
8008  esac
8009  dynamic_linker='Win32 ld.exe'
8010  # FIXME: first we should search . and the directory the executable is in
8011  shlibpath_var=PATH
8012  ;;
8013
8014darwin* | rhapsody*)
8015  dynamic_linker="$host_os dyld"
8016  version_type=darwin
8017  need_lib_prefix=no
8018  need_version=no
8019  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8020  soname_spec='${libname}${release}${major}$shared_ext'
8021  shlibpath_overrides_runpath=yes
8022  shlibpath_var=DYLD_LIBRARY_PATH
8023  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8024  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8025  if test "$GCC" = yes; then
8026    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"`
8027  else
8028    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8029  fi
8030  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8031  ;;
8032
8033dgux*)
8034  version_type=linux
8035  need_lib_prefix=no
8036  need_version=no
8037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8038  soname_spec='${libname}${release}${shared_ext}$major'
8039  shlibpath_var=LD_LIBRARY_PATH
8040  ;;
8041
8042freebsd1*)
8043  dynamic_linker=no
8044  ;;
8045
8046kfreebsd*-gnu)
8047  version_type=linux
8048  need_lib_prefix=no
8049  need_version=no
8050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8051  soname_spec='${libname}${release}${shared_ext}$major'
8052  shlibpath_var=LD_LIBRARY_PATH
8053  shlibpath_overrides_runpath=no
8054  hardcode_into_libs=yes
8055  dynamic_linker='GNU ld.so'
8056  ;;
8057
8058freebsd* | dragonfly*)
8059  # DragonFly does not have aout.  When/if they implement a new
8060  # versioning mechanism, adjust this.
8061  if test -x /usr/bin/objformat; then
8062    objformat=`/usr/bin/objformat`
8063  else
8064    case $host_os in
8065    freebsd[123]*) objformat=aout ;;
8066    *) objformat=elf ;;
8067    esac
8068  fi
8069  version_type=freebsd-$objformat
8070  case $version_type in
8071    freebsd-elf*)
8072      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8073      need_version=no
8074      need_lib_prefix=no
8075      ;;
8076    freebsd-*)
8077      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8078      need_version=yes
8079      ;;
8080  esac
8081  shlibpath_var=LD_LIBRARY_PATH
8082  case $host_os in
8083  freebsd2*)
8084    shlibpath_overrides_runpath=yes
8085    ;;
8086  freebsd3.[01]* | freebsdelf3.[01]*)
8087    shlibpath_overrides_runpath=yes
8088    hardcode_into_libs=yes
8089    ;;
8090  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8091  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8092    shlibpath_overrides_runpath=no
8093    hardcode_into_libs=yes
8094    ;;
8095  freebsd*) # from 4.6 on
8096    shlibpath_overrides_runpath=yes
8097    hardcode_into_libs=yes
8098    ;;
8099  esac
8100  ;;
8101
8102gnu*)
8103  version_type=linux
8104  need_lib_prefix=no
8105  need_version=no
8106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8107  soname_spec='${libname}${release}${shared_ext}$major'
8108  shlibpath_var=LD_LIBRARY_PATH
8109  hardcode_into_libs=yes
8110  ;;
8111
8112hpux9* | hpux10* | hpux11*)
8113  # Give a soname corresponding to the major version so that dld.sl refuses to
8114  # link against other versions.
8115  version_type=sunos
8116  need_lib_prefix=no
8117  need_version=no
8118  case $host_cpu in
8119  ia64*)
8120    shrext_cmds='.so'
8121    hardcode_into_libs=yes
8122    dynamic_linker="$host_os dld.so"
8123    shlibpath_var=LD_LIBRARY_PATH
8124    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8125    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8126    soname_spec='${libname}${release}${shared_ext}$major'
8127    if test "X$HPUX_IA64_MODE" = X32; then
8128      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8129    else
8130      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8131    fi
8132    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8133    ;;
8134   hppa*64*)
8135     shrext_cmds='.sl'
8136     hardcode_into_libs=yes
8137     dynamic_linker="$host_os dld.sl"
8138     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8139     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8141     soname_spec='${libname}${release}${shared_ext}$major'
8142     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8143     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8144     ;;
8145   *)
8146    shrext_cmds='.sl'
8147    dynamic_linker="$host_os dld.sl"
8148    shlibpath_var=SHLIB_PATH
8149    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8150    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8151    soname_spec='${libname}${release}${shared_ext}$major'
8152    ;;
8153  esac
8154  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8155  postinstall_cmds='chmod 555 $lib'
8156  ;;
8157
8158interix3*)
8159  version_type=linux
8160  need_lib_prefix=no
8161  need_version=no
8162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8163  soname_spec='${libname}${release}${shared_ext}$major'
8164  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8165  shlibpath_var=LD_LIBRARY_PATH
8166  shlibpath_overrides_runpath=no
8167  hardcode_into_libs=yes
8168  ;;
8169
8170irix5* | irix6* | nonstopux*)
8171  case $host_os in
8172    nonstopux*) version_type=nonstopux ;;
8173    *)
8174	if test "$lt_cv_prog_gnu_ld" = yes; then
8175		version_type=linux
8176	else
8177		version_type=irix
8178	fi ;;
8179  esac
8180  need_lib_prefix=no
8181  need_version=no
8182  soname_spec='${libname}${release}${shared_ext}$major'
8183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8184  case $host_os in
8185  irix5* | nonstopux*)
8186    libsuff= shlibsuff=
8187    ;;
8188  *)
8189    case $LD in # libtool.m4 will add one of these switches to LD
8190    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8191      libsuff= shlibsuff= libmagic=32-bit;;
8192    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8193      libsuff=32 shlibsuff=N32 libmagic=N32;;
8194    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8195      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8196    *) libsuff= shlibsuff= libmagic=never-match;;
8197    esac
8198    ;;
8199  esac
8200  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8201  shlibpath_overrides_runpath=no
8202  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8203  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8204  hardcode_into_libs=yes
8205  ;;
8206
8207# No shared lib support for Linux oldld, aout, or coff.
8208linux*oldld* | linux*aout* | linux*coff*)
8209  dynamic_linker=no
8210  ;;
8211
8212# This must be Linux ELF.
8213linux*)
8214  version_type=linux
8215  need_lib_prefix=no
8216  need_version=no
8217  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8218  soname_spec='${libname}${release}${shared_ext}$major'
8219  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8220  shlibpath_var=LD_LIBRARY_PATH
8221  shlibpath_overrides_runpath=no
8222  # This implies no fast_install, which is unacceptable.
8223  # Some rework will be needed to allow for fast_install
8224  # before this can be enabled.
8225  hardcode_into_libs=yes
8226
8227  # Append ld.so.conf contents to the search path
8228  if test -f /etc/ld.so.conf; then
8229    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' ' '`
8230    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8231  fi
8232
8233  # We used to test for /lib/ld.so.1 and disable shared libraries on
8234  # powerpc, because MkLinux only supported shared libraries with the
8235  # GNU dynamic linker.  Since this was broken with cross compilers,
8236  # most powerpc-linux boxes support dynamic linking these days and
8237  # people can always --disable-shared, the test was removed, and we
8238  # assume the GNU/Linux dynamic linker is in use.
8239  dynamic_linker='GNU/Linux ld.so'
8240  ;;
8241
8242knetbsd*-gnu)
8243  version_type=linux
8244  need_lib_prefix=no
8245  need_version=no
8246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8247  soname_spec='${libname}${release}${shared_ext}$major'
8248  shlibpath_var=LD_LIBRARY_PATH
8249  shlibpath_overrides_runpath=no
8250  hardcode_into_libs=yes
8251  dynamic_linker='GNU ld.so'
8252  ;;
8253
8254netbsd*)
8255  version_type=sunos
8256  need_lib_prefix=no
8257  need_version=no
8258  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8259    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8260    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8261    dynamic_linker='NetBSD (a.out) ld.so'
8262  else
8263    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8264    soname_spec='${libname}${release}${shared_ext}$major'
8265    dynamic_linker='NetBSD ld.elf_so'
8266  fi
8267  shlibpath_var=LD_LIBRARY_PATH
8268  shlibpath_overrides_runpath=yes
8269  hardcode_into_libs=yes
8270  ;;
8271
8272newsos6)
8273  version_type=linux
8274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8275  shlibpath_var=LD_LIBRARY_PATH
8276  shlibpath_overrides_runpath=yes
8277  ;;
8278
8279nto-qnx*)
8280  version_type=linux
8281  need_lib_prefix=no
8282  need_version=no
8283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8284  soname_spec='${libname}${release}${shared_ext}$major'
8285  shlibpath_var=LD_LIBRARY_PATH
8286  shlibpath_overrides_runpath=yes
8287  ;;
8288
8289openbsd*)
8290  version_type=sunos
8291  sys_lib_dlsearch_path_spec="/usr/lib"
8292  need_lib_prefix=no
8293  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8294  case $host_os in
8295    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8296    *)                         need_version=no  ;;
8297  esac
8298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8299  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8300  shlibpath_var=LD_LIBRARY_PATH
8301  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8302    case $host_os in
8303      openbsd2.[89] | openbsd2.[89].*)
8304	shlibpath_overrides_runpath=no
8305	;;
8306      *)
8307	shlibpath_overrides_runpath=yes
8308	;;
8309      esac
8310  else
8311    shlibpath_overrides_runpath=yes
8312  fi
8313  ;;
8314
8315os2*)
8316  libname_spec='$name'
8317  shrext_cmds=".dll"
8318  need_lib_prefix=no
8319  library_names_spec='$libname${shared_ext} $libname.a'
8320  dynamic_linker='OS/2 ld.exe'
8321  shlibpath_var=LIBPATH
8322  ;;
8323
8324osf3* | osf4* | osf5*)
8325  version_type=osf
8326  need_lib_prefix=no
8327  need_version=no
8328  soname_spec='${libname}${release}${shared_ext}$major'
8329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8330  shlibpath_var=LD_LIBRARY_PATH
8331  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8332  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8333  ;;
8334
8335solaris*)
8336  version_type=linux
8337  need_lib_prefix=no
8338  need_version=no
8339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8340  soname_spec='${libname}${release}${shared_ext}$major'
8341  shlibpath_var=LD_LIBRARY_PATH
8342  shlibpath_overrides_runpath=yes
8343  hardcode_into_libs=yes
8344  # ldd complains unless libraries are executable
8345  postinstall_cmds='chmod +x $lib'
8346  ;;
8347
8348sunos4*)
8349  version_type=sunos
8350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8351  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8352  shlibpath_var=LD_LIBRARY_PATH
8353  shlibpath_overrides_runpath=yes
8354  if test "$with_gnu_ld" = yes; then
8355    need_lib_prefix=no
8356  fi
8357  need_version=yes
8358  ;;
8359
8360sysv4 | sysv4.3*)
8361  version_type=linux
8362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8363  soname_spec='${libname}${release}${shared_ext}$major'
8364  shlibpath_var=LD_LIBRARY_PATH
8365  case $host_vendor in
8366    sni)
8367      shlibpath_overrides_runpath=no
8368      need_lib_prefix=no
8369      export_dynamic_flag_spec='${wl}-Blargedynsym'
8370      runpath_var=LD_RUN_PATH
8371      ;;
8372    siemens)
8373      need_lib_prefix=no
8374      ;;
8375    motorola)
8376      need_lib_prefix=no
8377      need_version=no
8378      shlibpath_overrides_runpath=no
8379      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8380      ;;
8381  esac
8382  ;;
8383
8384sysv4*MP*)
8385  if test -d /usr/nec ;then
8386    version_type=linux
8387    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8388    soname_spec='$libname${shared_ext}.$major'
8389    shlibpath_var=LD_LIBRARY_PATH
8390  fi
8391  ;;
8392
8393sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8394  version_type=freebsd-elf
8395  need_lib_prefix=no
8396  need_version=no
8397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8398  soname_spec='${libname}${release}${shared_ext}$major'
8399  shlibpath_var=LD_LIBRARY_PATH
8400  hardcode_into_libs=yes
8401  if test "$with_gnu_ld" = yes; then
8402    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8403    shlibpath_overrides_runpath=no
8404  else
8405    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8406    shlibpath_overrides_runpath=yes
8407    case $host_os in
8408      sco3.2v5*)
8409        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8410	;;
8411    esac
8412  fi
8413  sys_lib_dlsearch_path_spec='/usr/lib'
8414  ;;
8415
8416uts4*)
8417  version_type=linux
8418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8419  soname_spec='${libname}${release}${shared_ext}$major'
8420  shlibpath_var=LD_LIBRARY_PATH
8421  ;;
8422
8423*)
8424  dynamic_linker=no
8425  ;;
8426esac
8427echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8428echo "${ECHO_T}$dynamic_linker" >&6
8429test "$dynamic_linker" = no && can_build_shared=no
8430
8431variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8432if test "$GCC" = yes; then
8433  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8434fi
8435
8436echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8437echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8438hardcode_action=
8439if test -n "$hardcode_libdir_flag_spec" || \
8440   test -n "$runpath_var" || \
8441   test "X$hardcode_automatic" = "Xyes" ; then
8442
8443  # We can hardcode non-existant directories.
8444  if test "$hardcode_direct" != no &&
8445     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8446     # have to relink, otherwise we might link with an installed library
8447     # when we should be linking with a yet-to-be-installed one
8448     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8449     test "$hardcode_minus_L" != no; then
8450    # Linking always hardcodes the temporary library directory.
8451    hardcode_action=relink
8452  else
8453    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8454    hardcode_action=immediate
8455  fi
8456else
8457  # We cannot hardcode anything, or else we can only hardcode existing
8458  # directories.
8459  hardcode_action=unsupported
8460fi
8461echo "$as_me:$LINENO: result: $hardcode_action" >&5
8462echo "${ECHO_T}$hardcode_action" >&6
8463
8464if test "$hardcode_action" = relink; then
8465  # Fast installation is not supported
8466  enable_fast_install=no
8467elif test "$shlibpath_overrides_runpath" = yes ||
8468     test "$enable_shared" = no; then
8469  # Fast installation is not necessary
8470  enable_fast_install=needless
8471fi
8472
8473striplib=
8474old_striplib=
8475echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8476echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8477if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8478  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8479  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8480  echo "$as_me:$LINENO: result: yes" >&5
8481echo "${ECHO_T}yes" >&6
8482else
8483# FIXME - insert some real tests, host_os isn't really good enough
8484  case $host_os in
8485   darwin*)
8486       if test -n "$STRIP" ; then
8487         striplib="$STRIP -x"
8488         echo "$as_me:$LINENO: result: yes" >&5
8489echo "${ECHO_T}yes" >&6
8490       else
8491  echo "$as_me:$LINENO: result: no" >&5
8492echo "${ECHO_T}no" >&6
8493fi
8494       ;;
8495   *)
8496  echo "$as_me:$LINENO: result: no" >&5
8497echo "${ECHO_T}no" >&6
8498    ;;
8499  esac
8500fi
8501
8502if test "x$enable_dlopen" != xyes; then
8503  enable_dlopen=unknown
8504  enable_dlopen_self=unknown
8505  enable_dlopen_self_static=unknown
8506else
8507  lt_cv_dlopen=no
8508  lt_cv_dlopen_libs=
8509
8510  case $host_os in
8511  beos*)
8512    lt_cv_dlopen="load_add_on"
8513    lt_cv_dlopen_libs=
8514    lt_cv_dlopen_self=yes
8515    ;;
8516
8517  mingw* | pw32*)
8518    lt_cv_dlopen="LoadLibrary"
8519    lt_cv_dlopen_libs=
8520   ;;
8521
8522  cygwin*)
8523    lt_cv_dlopen="dlopen"
8524    lt_cv_dlopen_libs=
8525   ;;
8526
8527  darwin*)
8528  # if libdl is installed we need to link against it
8529    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8530echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8531if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8532  echo $ECHO_N "(cached) $ECHO_C" >&6
8533else
8534  ac_check_lib_save_LIBS=$LIBS
8535LIBS="-ldl  $LIBS"
8536cat >conftest.$ac_ext <<_ACEOF
8537/* confdefs.h.  */
8538_ACEOF
8539cat confdefs.h >>conftest.$ac_ext
8540cat >>conftest.$ac_ext <<_ACEOF
8541/* end confdefs.h.  */
8542
8543/* Override any gcc2 internal prototype to avoid an error.  */
8544#ifdef __cplusplus
8545extern "C"
8546#endif
8547/* We use char because int might match the return type of a gcc2
8548   builtin and then its argument prototype would still apply.  */
8549char dlopen ();
8550int
8551main ()
8552{
8553dlopen ();
8554  ;
8555  return 0;
8556}
8557_ACEOF
8558rm -f conftest.$ac_objext conftest$ac_exeext
8559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8560  (eval $ac_link) 2>conftest.er1
8561  ac_status=$?
8562  grep -v '^ *+' conftest.er1 >conftest.err
8563  rm -f conftest.er1
8564  cat conftest.err >&5
8565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566  (exit $ac_status); } &&
8567	 { ac_try='test -z "$ac_c_werror_flag"
8568			 || test ! -s conftest.err'
8569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570  (eval $ac_try) 2>&5
8571  ac_status=$?
8572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573  (exit $ac_status); }; } &&
8574	 { ac_try='test -s conftest$ac_exeext'
8575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576  (eval $ac_try) 2>&5
8577  ac_status=$?
8578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579  (exit $ac_status); }; }; then
8580  ac_cv_lib_dl_dlopen=yes
8581else
8582  echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
8585ac_cv_lib_dl_dlopen=no
8586fi
8587rm -f conftest.err conftest.$ac_objext \
8588      conftest$ac_exeext conftest.$ac_ext
8589LIBS=$ac_check_lib_save_LIBS
8590fi
8591echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8592echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8593if test $ac_cv_lib_dl_dlopen = yes; then
8594  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8595else
8596
8597    lt_cv_dlopen="dyld"
8598    lt_cv_dlopen_libs=
8599    lt_cv_dlopen_self=yes
8600
8601fi
8602
8603   ;;
8604
8605  *)
8606    echo "$as_me:$LINENO: checking for shl_load" >&5
8607echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8608if test "${ac_cv_func_shl_load+set}" = set; then
8609  echo $ECHO_N "(cached) $ECHO_C" >&6
8610else
8611  cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h.  */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h.  */
8617/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8618   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8619#define shl_load innocuous_shl_load
8620
8621/* System header to define __stub macros and hopefully few prototypes,
8622    which can conflict with char shl_load (); below.
8623    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8624    <limits.h> exists even on freestanding compilers.  */
8625
8626#ifdef __STDC__
8627# include <limits.h>
8628#else
8629# include <assert.h>
8630#endif
8631
8632#undef shl_load
8633
8634/* Override any gcc2 internal prototype to avoid an error.  */
8635#ifdef __cplusplus
8636extern "C"
8637{
8638#endif
8639/* We use char because int might match the return type of a gcc2
8640   builtin and then its argument prototype would still apply.  */
8641char shl_load ();
8642/* The GNU C library defines this for functions which it implements
8643    to always fail with ENOSYS.  Some functions are actually named
8644    something starting with __ and the normal name is an alias.  */
8645#if defined (__stub_shl_load) || defined (__stub___shl_load)
8646choke me
8647#else
8648char (*f) () = shl_load;
8649#endif
8650#ifdef __cplusplus
8651}
8652#endif
8653
8654int
8655main ()
8656{
8657return f != shl_load;
8658  ;
8659  return 0;
8660}
8661_ACEOF
8662rm -f conftest.$ac_objext conftest$ac_exeext
8663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664  (eval $ac_link) 2>conftest.er1
8665  ac_status=$?
8666  grep -v '^ *+' conftest.er1 >conftest.err
8667  rm -f conftest.er1
8668  cat conftest.err >&5
8669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670  (exit $ac_status); } &&
8671	 { ac_try='test -z "$ac_c_werror_flag"
8672			 || test ! -s conftest.err'
8673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674  (eval $ac_try) 2>&5
8675  ac_status=$?
8676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677  (exit $ac_status); }; } &&
8678	 { ac_try='test -s conftest$ac_exeext'
8679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680  (eval $ac_try) 2>&5
8681  ac_status=$?
8682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683  (exit $ac_status); }; }; then
8684  ac_cv_func_shl_load=yes
8685else
8686  echo "$as_me: failed program was:" >&5
8687sed 's/^/| /' conftest.$ac_ext >&5
8688
8689ac_cv_func_shl_load=no
8690fi
8691rm -f conftest.err conftest.$ac_objext \
8692      conftest$ac_exeext conftest.$ac_ext
8693fi
8694echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8695echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8696if test $ac_cv_func_shl_load = yes; then
8697  lt_cv_dlopen="shl_load"
8698else
8699  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8700echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8701if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8702  echo $ECHO_N "(cached) $ECHO_C" >&6
8703else
8704  ac_check_lib_save_LIBS=$LIBS
8705LIBS="-ldld  $LIBS"
8706cat >conftest.$ac_ext <<_ACEOF
8707/* confdefs.h.  */
8708_ACEOF
8709cat confdefs.h >>conftest.$ac_ext
8710cat >>conftest.$ac_ext <<_ACEOF
8711/* end confdefs.h.  */
8712
8713/* Override any gcc2 internal prototype to avoid an error.  */
8714#ifdef __cplusplus
8715extern "C"
8716#endif
8717/* We use char because int might match the return type of a gcc2
8718   builtin and then its argument prototype would still apply.  */
8719char shl_load ();
8720int
8721main ()
8722{
8723shl_load ();
8724  ;
8725  return 0;
8726}
8727_ACEOF
8728rm -f conftest.$ac_objext conftest$ac_exeext
8729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730  (eval $ac_link) 2>conftest.er1
8731  ac_status=$?
8732  grep -v '^ *+' conftest.er1 >conftest.err
8733  rm -f conftest.er1
8734  cat conftest.err >&5
8735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736  (exit $ac_status); } &&
8737	 { ac_try='test -z "$ac_c_werror_flag"
8738			 || test ! -s conftest.err'
8739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740  (eval $ac_try) 2>&5
8741  ac_status=$?
8742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743  (exit $ac_status); }; } &&
8744	 { ac_try='test -s conftest$ac_exeext'
8745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746  (eval $ac_try) 2>&5
8747  ac_status=$?
8748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749  (exit $ac_status); }; }; then
8750  ac_cv_lib_dld_shl_load=yes
8751else
8752  echo "$as_me: failed program was:" >&5
8753sed 's/^/| /' conftest.$ac_ext >&5
8754
8755ac_cv_lib_dld_shl_load=no
8756fi
8757rm -f conftest.err conftest.$ac_objext \
8758      conftest$ac_exeext conftest.$ac_ext
8759LIBS=$ac_check_lib_save_LIBS
8760fi
8761echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8762echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8763if test $ac_cv_lib_dld_shl_load = yes; then
8764  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8765else
8766  echo "$as_me:$LINENO: checking for dlopen" >&5
8767echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8768if test "${ac_cv_func_dlopen+set}" = set; then
8769  echo $ECHO_N "(cached) $ECHO_C" >&6
8770else
8771  cat >conftest.$ac_ext <<_ACEOF
8772/* confdefs.h.  */
8773_ACEOF
8774cat confdefs.h >>conftest.$ac_ext
8775cat >>conftest.$ac_ext <<_ACEOF
8776/* end confdefs.h.  */
8777/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8778   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8779#define dlopen innocuous_dlopen
8780
8781/* System header to define __stub macros and hopefully few prototypes,
8782    which can conflict with char dlopen (); below.
8783    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8784    <limits.h> exists even on freestanding compilers.  */
8785
8786#ifdef __STDC__
8787# include <limits.h>
8788#else
8789# include <assert.h>
8790#endif
8791
8792#undef dlopen
8793
8794/* Override any gcc2 internal prototype to avoid an error.  */
8795#ifdef __cplusplus
8796extern "C"
8797{
8798#endif
8799/* We use char because int might match the return type of a gcc2
8800   builtin and then its argument prototype would still apply.  */
8801char dlopen ();
8802/* The GNU C library defines this for functions which it implements
8803    to always fail with ENOSYS.  Some functions are actually named
8804    something starting with __ and the normal name is an alias.  */
8805#if defined (__stub_dlopen) || defined (__stub___dlopen)
8806choke me
8807#else
8808char (*f) () = dlopen;
8809#endif
8810#ifdef __cplusplus
8811}
8812#endif
8813
8814int
8815main ()
8816{
8817return f != dlopen;
8818  ;
8819  return 0;
8820}
8821_ACEOF
8822rm -f conftest.$ac_objext conftest$ac_exeext
8823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824  (eval $ac_link) 2>conftest.er1
8825  ac_status=$?
8826  grep -v '^ *+' conftest.er1 >conftest.err
8827  rm -f conftest.er1
8828  cat conftest.err >&5
8829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830  (exit $ac_status); } &&
8831	 { ac_try='test -z "$ac_c_werror_flag"
8832			 || test ! -s conftest.err'
8833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834  (eval $ac_try) 2>&5
8835  ac_status=$?
8836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837  (exit $ac_status); }; } &&
8838	 { ac_try='test -s conftest$ac_exeext'
8839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840  (eval $ac_try) 2>&5
8841  ac_status=$?
8842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843  (exit $ac_status); }; }; then
8844  ac_cv_func_dlopen=yes
8845else
8846  echo "$as_me: failed program was:" >&5
8847sed 's/^/| /' conftest.$ac_ext >&5
8848
8849ac_cv_func_dlopen=no
8850fi
8851rm -f conftest.err conftest.$ac_objext \
8852      conftest$ac_exeext conftest.$ac_ext
8853fi
8854echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8855echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8856if test $ac_cv_func_dlopen = yes; then
8857  lt_cv_dlopen="dlopen"
8858else
8859  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8860echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8861if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8862  echo $ECHO_N "(cached) $ECHO_C" >&6
8863else
8864  ac_check_lib_save_LIBS=$LIBS
8865LIBS="-ldl  $LIBS"
8866cat >conftest.$ac_ext <<_ACEOF
8867/* confdefs.h.  */
8868_ACEOF
8869cat confdefs.h >>conftest.$ac_ext
8870cat >>conftest.$ac_ext <<_ACEOF
8871/* end confdefs.h.  */
8872
8873/* Override any gcc2 internal prototype to avoid an error.  */
8874#ifdef __cplusplus
8875extern "C"
8876#endif
8877/* We use char because int might match the return type of a gcc2
8878   builtin and then its argument prototype would still apply.  */
8879char dlopen ();
8880int
8881main ()
8882{
8883dlopen ();
8884  ;
8885  return 0;
8886}
8887_ACEOF
8888rm -f conftest.$ac_objext conftest$ac_exeext
8889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8890  (eval $ac_link) 2>conftest.er1
8891  ac_status=$?
8892  grep -v '^ *+' conftest.er1 >conftest.err
8893  rm -f conftest.er1
8894  cat conftest.err >&5
8895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896  (exit $ac_status); } &&
8897	 { ac_try='test -z "$ac_c_werror_flag"
8898			 || test ! -s conftest.err'
8899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900  (eval $ac_try) 2>&5
8901  ac_status=$?
8902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903  (exit $ac_status); }; } &&
8904	 { ac_try='test -s conftest$ac_exeext'
8905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906  (eval $ac_try) 2>&5
8907  ac_status=$?
8908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909  (exit $ac_status); }; }; then
8910  ac_cv_lib_dl_dlopen=yes
8911else
8912  echo "$as_me: failed program was:" >&5
8913sed 's/^/| /' conftest.$ac_ext >&5
8914
8915ac_cv_lib_dl_dlopen=no
8916fi
8917rm -f conftest.err conftest.$ac_objext \
8918      conftest$ac_exeext conftest.$ac_ext
8919LIBS=$ac_check_lib_save_LIBS
8920fi
8921echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8922echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8923if test $ac_cv_lib_dl_dlopen = yes; then
8924  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8925else
8926  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8927echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8928if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8929  echo $ECHO_N "(cached) $ECHO_C" >&6
8930else
8931  ac_check_lib_save_LIBS=$LIBS
8932LIBS="-lsvld  $LIBS"
8933cat >conftest.$ac_ext <<_ACEOF
8934/* confdefs.h.  */
8935_ACEOF
8936cat confdefs.h >>conftest.$ac_ext
8937cat >>conftest.$ac_ext <<_ACEOF
8938/* end confdefs.h.  */
8939
8940/* Override any gcc2 internal prototype to avoid an error.  */
8941#ifdef __cplusplus
8942extern "C"
8943#endif
8944/* We use char because int might match the return type of a gcc2
8945   builtin and then its argument prototype would still apply.  */
8946char dlopen ();
8947int
8948main ()
8949{
8950dlopen ();
8951  ;
8952  return 0;
8953}
8954_ACEOF
8955rm -f conftest.$ac_objext conftest$ac_exeext
8956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957  (eval $ac_link) 2>conftest.er1
8958  ac_status=$?
8959  grep -v '^ *+' conftest.er1 >conftest.err
8960  rm -f conftest.er1
8961  cat conftest.err >&5
8962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963  (exit $ac_status); } &&
8964	 { ac_try='test -z "$ac_c_werror_flag"
8965			 || test ! -s conftest.err'
8966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967  (eval $ac_try) 2>&5
8968  ac_status=$?
8969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970  (exit $ac_status); }; } &&
8971	 { ac_try='test -s conftest$ac_exeext'
8972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973  (eval $ac_try) 2>&5
8974  ac_status=$?
8975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976  (exit $ac_status); }; }; then
8977  ac_cv_lib_svld_dlopen=yes
8978else
8979  echo "$as_me: failed program was:" >&5
8980sed 's/^/| /' conftest.$ac_ext >&5
8981
8982ac_cv_lib_svld_dlopen=no
8983fi
8984rm -f conftest.err conftest.$ac_objext \
8985      conftest$ac_exeext conftest.$ac_ext
8986LIBS=$ac_check_lib_save_LIBS
8987fi
8988echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8989echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8990if test $ac_cv_lib_svld_dlopen = yes; then
8991  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8992else
8993  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8994echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8995if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8996  echo $ECHO_N "(cached) $ECHO_C" >&6
8997else
8998  ac_check_lib_save_LIBS=$LIBS
8999LIBS="-ldld  $LIBS"
9000cat >conftest.$ac_ext <<_ACEOF
9001/* confdefs.h.  */
9002_ACEOF
9003cat confdefs.h >>conftest.$ac_ext
9004cat >>conftest.$ac_ext <<_ACEOF
9005/* end confdefs.h.  */
9006
9007/* Override any gcc2 internal prototype to avoid an error.  */
9008#ifdef __cplusplus
9009extern "C"
9010#endif
9011/* We use char because int might match the return type of a gcc2
9012   builtin and then its argument prototype would still apply.  */
9013char dld_link ();
9014int
9015main ()
9016{
9017dld_link ();
9018  ;
9019  return 0;
9020}
9021_ACEOF
9022rm -f conftest.$ac_objext conftest$ac_exeext
9023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024  (eval $ac_link) 2>conftest.er1
9025  ac_status=$?
9026  grep -v '^ *+' conftest.er1 >conftest.err
9027  rm -f conftest.er1
9028  cat conftest.err >&5
9029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030  (exit $ac_status); } &&
9031	 { ac_try='test -z "$ac_c_werror_flag"
9032			 || test ! -s conftest.err'
9033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034  (eval $ac_try) 2>&5
9035  ac_status=$?
9036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037  (exit $ac_status); }; } &&
9038	 { ac_try='test -s conftest$ac_exeext'
9039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040  (eval $ac_try) 2>&5
9041  ac_status=$?
9042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043  (exit $ac_status); }; }; then
9044  ac_cv_lib_dld_dld_link=yes
9045else
9046  echo "$as_me: failed program was:" >&5
9047sed 's/^/| /' conftest.$ac_ext >&5
9048
9049ac_cv_lib_dld_dld_link=no
9050fi
9051rm -f conftest.err conftest.$ac_objext \
9052      conftest$ac_exeext conftest.$ac_ext
9053LIBS=$ac_check_lib_save_LIBS
9054fi
9055echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9056echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9057if test $ac_cv_lib_dld_dld_link = yes; then
9058  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9059fi
9060
9061
9062fi
9063
9064
9065fi
9066
9067
9068fi
9069
9070
9071fi
9072
9073
9074fi
9075
9076    ;;
9077  esac
9078
9079  if test "x$lt_cv_dlopen" != xno; then
9080    enable_dlopen=yes
9081  else
9082    enable_dlopen=no
9083  fi
9084
9085  case $lt_cv_dlopen in
9086  dlopen)
9087    save_CPPFLAGS="$CPPFLAGS"
9088    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9089
9090    save_LDFLAGS="$LDFLAGS"
9091    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9092
9093    save_LIBS="$LIBS"
9094    LIBS="$lt_cv_dlopen_libs $LIBS"
9095
9096    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9097echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9098if test "${lt_cv_dlopen_self+set}" = set; then
9099  echo $ECHO_N "(cached) $ECHO_C" >&6
9100else
9101  	  if test "$cross_compiling" = yes; then :
9102  lt_cv_dlopen_self=cross
9103else
9104  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9105  lt_status=$lt_dlunknown
9106  cat > conftest.$ac_ext <<EOF
9107#line 9107 "configure"
9108#include "confdefs.h"
9109
9110#if HAVE_DLFCN_H
9111#include <dlfcn.h>
9112#endif
9113
9114#include <stdio.h>
9115
9116#ifdef RTLD_GLOBAL
9117#  define LT_DLGLOBAL		RTLD_GLOBAL
9118#else
9119#  ifdef DL_GLOBAL
9120#    define LT_DLGLOBAL		DL_GLOBAL
9121#  else
9122#    define LT_DLGLOBAL		0
9123#  endif
9124#endif
9125
9126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9127   find out it does not work in some platform. */
9128#ifndef LT_DLLAZY_OR_NOW
9129#  ifdef RTLD_LAZY
9130#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9131#  else
9132#    ifdef DL_LAZY
9133#      define LT_DLLAZY_OR_NOW		DL_LAZY
9134#    else
9135#      ifdef RTLD_NOW
9136#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9137#      else
9138#        ifdef DL_NOW
9139#          define LT_DLLAZY_OR_NOW	DL_NOW
9140#        else
9141#          define LT_DLLAZY_OR_NOW	0
9142#        endif
9143#      endif
9144#    endif
9145#  endif
9146#endif
9147
9148#ifdef __cplusplus
9149extern "C" void exit (int);
9150#endif
9151
9152void fnord() { int i=42;}
9153int main ()
9154{
9155  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9156  int status = $lt_dlunknown;
9157
9158  if (self)
9159    {
9160      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9161      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9162      /* dlclose (self); */
9163    }
9164  else
9165    puts (dlerror ());
9166
9167    exit (status);
9168}
9169EOF
9170  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9171  (eval $ac_link) 2>&5
9172  ac_status=$?
9173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9175    (./conftest; exit; ) >&5 2>/dev/null
9176    lt_status=$?
9177    case x$lt_status in
9178      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9179      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9180      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9181    esac
9182  else :
9183    # compilation failed
9184    lt_cv_dlopen_self=no
9185  fi
9186fi
9187rm -fr conftest*
9188
9189
9190fi
9191echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9192echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9193
9194    if test "x$lt_cv_dlopen_self" = xyes; then
9195      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9196      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9197echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9198if test "${lt_cv_dlopen_self_static+set}" = set; then
9199  echo $ECHO_N "(cached) $ECHO_C" >&6
9200else
9201  	  if test "$cross_compiling" = yes; then :
9202  lt_cv_dlopen_self_static=cross
9203else
9204  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9205  lt_status=$lt_dlunknown
9206  cat > conftest.$ac_ext <<EOF
9207#line 9207 "configure"
9208#include "confdefs.h"
9209
9210#if HAVE_DLFCN_H
9211#include <dlfcn.h>
9212#endif
9213
9214#include <stdio.h>
9215
9216#ifdef RTLD_GLOBAL
9217#  define LT_DLGLOBAL		RTLD_GLOBAL
9218#else
9219#  ifdef DL_GLOBAL
9220#    define LT_DLGLOBAL		DL_GLOBAL
9221#  else
9222#    define LT_DLGLOBAL		0
9223#  endif
9224#endif
9225
9226/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9227   find out it does not work in some platform. */
9228#ifndef LT_DLLAZY_OR_NOW
9229#  ifdef RTLD_LAZY
9230#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9231#  else
9232#    ifdef DL_LAZY
9233#      define LT_DLLAZY_OR_NOW		DL_LAZY
9234#    else
9235#      ifdef RTLD_NOW
9236#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9237#      else
9238#        ifdef DL_NOW
9239#          define LT_DLLAZY_OR_NOW	DL_NOW
9240#        else
9241#          define LT_DLLAZY_OR_NOW	0
9242#        endif
9243#      endif
9244#    endif
9245#  endif
9246#endif
9247
9248#ifdef __cplusplus
9249extern "C" void exit (int);
9250#endif
9251
9252void fnord() { int i=42;}
9253int main ()
9254{
9255  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9256  int status = $lt_dlunknown;
9257
9258  if (self)
9259    {
9260      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9261      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9262      /* dlclose (self); */
9263    }
9264  else
9265    puts (dlerror ());
9266
9267    exit (status);
9268}
9269EOF
9270  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271  (eval $ac_link) 2>&5
9272  ac_status=$?
9273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9275    (./conftest; exit; ) >&5 2>/dev/null
9276    lt_status=$?
9277    case x$lt_status in
9278      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9279      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9280      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9281    esac
9282  else :
9283    # compilation failed
9284    lt_cv_dlopen_self_static=no
9285  fi
9286fi
9287rm -fr conftest*
9288
9289
9290fi
9291echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9292echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9293    fi
9294
9295    CPPFLAGS="$save_CPPFLAGS"
9296    LDFLAGS="$save_LDFLAGS"
9297    LIBS="$save_LIBS"
9298    ;;
9299  esac
9300
9301  case $lt_cv_dlopen_self in
9302  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9303  *) enable_dlopen_self=unknown ;;
9304  esac
9305
9306  case $lt_cv_dlopen_self_static in
9307  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9308  *) enable_dlopen_self_static=unknown ;;
9309  esac
9310fi
9311
9312
9313# Report which library types will actually be built
9314echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9315echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9316echo "$as_me:$LINENO: result: $can_build_shared" >&5
9317echo "${ECHO_T}$can_build_shared" >&6
9318
9319echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9320echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9321test "$can_build_shared" = "no" && enable_shared=no
9322
9323# On AIX, shared libraries and static libraries use the same namespace, and
9324# are all built from PIC.
9325case $host_os in
9326aix3*)
9327  test "$enable_shared" = yes && enable_static=no
9328  if test -n "$RANLIB"; then
9329    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9330    postinstall_cmds='$RANLIB $lib'
9331  fi
9332  ;;
9333
9334aix4* | aix5*)
9335  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9336    test "$enable_shared" = yes && enable_static=no
9337  fi
9338    ;;
9339esac
9340echo "$as_me:$LINENO: result: $enable_shared" >&5
9341echo "${ECHO_T}$enable_shared" >&6
9342
9343echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9344echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9345# Make sure either enable_shared or enable_static is yes.
9346test "$enable_shared" = yes || enable_static=yes
9347echo "$as_me:$LINENO: result: $enable_static" >&5
9348echo "${ECHO_T}$enable_static" >&6
9349
9350# The else clause should only fire when bootstrapping the
9351# libtool distribution, otherwise you forgot to ship ltmain.sh
9352# with your package, and you will get complaints that there are
9353# no rules to generate ltmain.sh.
9354if test -f "$ltmain"; then
9355  # See if we are running on zsh, and set the options which allow our commands through
9356  # without removal of \ escapes.
9357  if test -n "${ZSH_VERSION+set}" ; then
9358    setopt NO_GLOB_SUBST
9359  fi
9360  # Now quote all the things that may contain metacharacters while being
9361  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9362  # variables and quote the copies for generation of the libtool script.
9363  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9364    SED SHELL STRIP \
9365    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9366    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9367    deplibs_check_method reload_flag reload_cmds need_locks \
9368    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9369    lt_cv_sys_global_symbol_to_c_name_address \
9370    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9371    old_postinstall_cmds old_postuninstall_cmds \
9372    compiler \
9373    CC \
9374    LD \
9375    lt_prog_compiler_wl \
9376    lt_prog_compiler_pic \
9377    lt_prog_compiler_static \
9378    lt_prog_compiler_no_builtin_flag \
9379    export_dynamic_flag_spec \
9380    thread_safe_flag_spec \
9381    whole_archive_flag_spec \
9382    enable_shared_with_static_runtimes \
9383    old_archive_cmds \
9384    old_archive_from_new_cmds \
9385    predep_objects \
9386    postdep_objects \
9387    predeps \
9388    postdeps \
9389    compiler_lib_search_path \
9390    archive_cmds \
9391    archive_expsym_cmds \
9392    postinstall_cmds \
9393    postuninstall_cmds \
9394    old_archive_from_expsyms_cmds \
9395    allow_undefined_flag \
9396    no_undefined_flag \
9397    export_symbols_cmds \
9398    hardcode_libdir_flag_spec \
9399    hardcode_libdir_flag_spec_ld \
9400    hardcode_libdir_separator \
9401    hardcode_automatic \
9402    module_cmds \
9403    module_expsym_cmds \
9404    lt_cv_prog_compiler_c_o \
9405    exclude_expsyms \
9406    include_expsyms; do
9407
9408    case $var in
9409    old_archive_cmds | \
9410    old_archive_from_new_cmds | \
9411    archive_cmds | \
9412    archive_expsym_cmds | \
9413    module_cmds | \
9414    module_expsym_cmds | \
9415    old_archive_from_expsyms_cmds | \
9416    export_symbols_cmds | \
9417    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9418    postinstall_cmds | postuninstall_cmds | \
9419    old_postinstall_cmds | old_postuninstall_cmds | \
9420    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9421      # Double-quote double-evaled strings.
9422      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9423      ;;
9424    *)
9425      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9426      ;;
9427    esac
9428  done
9429
9430  case $lt_echo in
9431  *'\$0 --fallback-echo"')
9432    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9433    ;;
9434  esac
9435
9436cfgfile="${ofile}T"
9437  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9438  $rm -f "$cfgfile"
9439  { echo "$as_me:$LINENO: creating $ofile" >&5
9440echo "$as_me: creating $ofile" >&6;}
9441
9442  cat <<__EOF__ >> "$cfgfile"
9443#! $SHELL
9444
9445# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9446# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9447# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9448#
9449# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9450# Free Software Foundation, Inc.
9451#
9452# This file is part of GNU Libtool:
9453# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9454#
9455# This program is free software; you can redistribute it and/or modify
9456# it under the terms of the GNU General Public License as published by
9457# the Free Software Foundation; either version 2 of the License, or
9458# (at your option) any later version.
9459#
9460# This program is distributed in the hope that it will be useful, but
9461# WITHOUT ANY WARRANTY; without even the implied warranty of
9462# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9463# General Public License for more details.
9464#
9465# You should have received a copy of the GNU General Public License
9466# along with this program; if not, write to the Free Software
9467# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9468#
9469# As a special exception to the GNU General Public License, if you
9470# distribute this file as part of a program that contains a
9471# configuration script generated by Autoconf, you may include it under
9472# the same distribution terms that you use for the rest of that program.
9473
9474# A sed program that does not truncate output.
9475SED=$lt_SED
9476
9477# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9478Xsed="$SED -e 1s/^X//"
9479
9480# The HP-UX ksh and POSIX shell print the target directory to stdout
9481# if CDPATH is set.
9482(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9483
9484# The names of the tagged configurations supported by this script.
9485available_tags=
9486
9487# ### BEGIN LIBTOOL CONFIG
9488
9489# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9490
9491# Shell to use when invoking shell scripts.
9492SHELL=$lt_SHELL
9493
9494# Whether or not to build shared libraries.
9495build_libtool_libs=$enable_shared
9496
9497# Whether or not to build static libraries.
9498build_old_libs=$enable_static
9499
9500# Whether or not to add -lc for building shared libraries.
9501build_libtool_need_lc=$archive_cmds_need_lc
9502
9503# Whether or not to disallow shared libs when runtime libs are static
9504allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9505
9506# Whether or not to optimize for fast installation.
9507fast_install=$enable_fast_install
9508
9509# The host system.
9510host_alias=$host_alias
9511host=$host
9512host_os=$host_os
9513
9514# The build system.
9515build_alias=$build_alias
9516build=$build
9517build_os=$build_os
9518
9519# An echo program that does not interpret backslashes.
9520echo=$lt_echo
9521
9522# The archiver.
9523AR=$lt_AR
9524AR_FLAGS=$lt_AR_FLAGS
9525
9526# A C compiler.
9527LTCC=$lt_LTCC
9528
9529# LTCC compiler flags.
9530LTCFLAGS=$lt_LTCFLAGS
9531
9532# A language-specific compiler.
9533CC=$lt_compiler
9534
9535# Is the compiler the GNU C compiler?
9536with_gcc=$GCC
9537
9538# An ERE matcher.
9539EGREP=$lt_EGREP
9540
9541# The linker used to build libraries.
9542LD=$lt_LD
9543
9544# Whether we need hard or soft links.
9545LN_S=$lt_LN_S
9546
9547# A BSD-compatible nm program.
9548NM=$lt_NM
9549
9550# A symbol stripping program
9551STRIP=$lt_STRIP
9552
9553# Used to examine libraries when file_magic_cmd begins "file"
9554MAGIC_CMD=$MAGIC_CMD
9555
9556# Used on cygwin: DLL creation program.
9557DLLTOOL="$DLLTOOL"
9558
9559# Used on cygwin: object dumper.
9560OBJDUMP="$OBJDUMP"
9561
9562# Used on cygwin: assembler.
9563AS="$AS"
9564
9565# The name of the directory that contains temporary libtool files.
9566objdir=$objdir
9567
9568# How to create reloadable object files.
9569reload_flag=$lt_reload_flag
9570reload_cmds=$lt_reload_cmds
9571
9572# How to pass a linker flag through the compiler.
9573wl=$lt_lt_prog_compiler_wl
9574
9575# Object file suffix (normally "o").
9576objext="$ac_objext"
9577
9578# Old archive suffix (normally "a").
9579libext="$libext"
9580
9581# Shared library suffix (normally ".so").
9582shrext_cmds='$shrext_cmds'
9583
9584# Executable file suffix (normally "").
9585exeext="$exeext"
9586
9587# Additional compiler flags for building library objects.
9588pic_flag=$lt_lt_prog_compiler_pic
9589pic_mode=$pic_mode
9590
9591# What is the maximum length of a command?
9592max_cmd_len=$lt_cv_sys_max_cmd_len
9593
9594# Does compiler simultaneously support -c and -o options?
9595compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9596
9597# Must we lock files when doing compilation?
9598need_locks=$lt_need_locks
9599
9600# Do we need the lib prefix for modules?
9601need_lib_prefix=$need_lib_prefix
9602
9603# Do we need a version for libraries?
9604need_version=$need_version
9605
9606# Whether dlopen is supported.
9607dlopen_support=$enable_dlopen
9608
9609# Whether dlopen of programs is supported.
9610dlopen_self=$enable_dlopen_self
9611
9612# Whether dlopen of statically linked programs is supported.
9613dlopen_self_static=$enable_dlopen_self_static
9614
9615# Compiler flag to prevent dynamic linking.
9616link_static_flag=$lt_lt_prog_compiler_static
9617
9618# Compiler flag to turn off builtin functions.
9619no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9620
9621# Compiler flag to allow reflexive dlopens.
9622export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9623
9624# Compiler flag to generate shared objects directly from archives.
9625whole_archive_flag_spec=$lt_whole_archive_flag_spec
9626
9627# Compiler flag to generate thread-safe objects.
9628thread_safe_flag_spec=$lt_thread_safe_flag_spec
9629
9630# Library versioning type.
9631version_type=$version_type
9632
9633# Format of library name prefix.
9634libname_spec=$lt_libname_spec
9635
9636# List of archive names.  First name is the real one, the rest are links.
9637# The last name is the one that the linker finds with -lNAME.
9638library_names_spec=$lt_library_names_spec
9639
9640# The coded name of the library, if different from the real name.
9641soname_spec=$lt_soname_spec
9642
9643# Commands used to build and install an old-style archive.
9644RANLIB=$lt_RANLIB
9645old_archive_cmds=$lt_old_archive_cmds
9646old_postinstall_cmds=$lt_old_postinstall_cmds
9647old_postuninstall_cmds=$lt_old_postuninstall_cmds
9648
9649# Create an old-style archive from a shared archive.
9650old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9651
9652# Create a temporary old-style archive to link instead of a shared archive.
9653old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9654
9655# Commands used to build and install a shared archive.
9656archive_cmds=$lt_archive_cmds
9657archive_expsym_cmds=$lt_archive_expsym_cmds
9658postinstall_cmds=$lt_postinstall_cmds
9659postuninstall_cmds=$lt_postuninstall_cmds
9660
9661# Commands used to build a loadable module (assumed same as above if empty)
9662module_cmds=$lt_module_cmds
9663module_expsym_cmds=$lt_module_expsym_cmds
9664
9665# Commands to strip libraries.
9666old_striplib=$lt_old_striplib
9667striplib=$lt_striplib
9668
9669# Dependencies to place before the objects being linked to create a
9670# shared library.
9671predep_objects=$lt_predep_objects
9672
9673# Dependencies to place after the objects being linked to create a
9674# shared library.
9675postdep_objects=$lt_postdep_objects
9676
9677# Dependencies to place before the objects being linked to create a
9678# shared library.
9679predeps=$lt_predeps
9680
9681# Dependencies to place after the objects being linked to create a
9682# shared library.
9683postdeps=$lt_postdeps
9684
9685# The library search path used internally by the compiler when linking
9686# a shared library.
9687compiler_lib_search_path=$lt_compiler_lib_search_path
9688
9689# Method to check whether dependent libraries are shared objects.
9690deplibs_check_method=$lt_deplibs_check_method
9691
9692# Command to use when deplibs_check_method == file_magic.
9693file_magic_cmd=$lt_file_magic_cmd
9694
9695# Flag that allows shared libraries with undefined symbols to be built.
9696allow_undefined_flag=$lt_allow_undefined_flag
9697
9698# Flag that forces no undefined symbols.
9699no_undefined_flag=$lt_no_undefined_flag
9700
9701# Commands used to finish a libtool library installation in a directory.
9702finish_cmds=$lt_finish_cmds
9703
9704# Same as above, but a single script fragment to be evaled but not shown.
9705finish_eval=$lt_finish_eval
9706
9707# Take the output of nm and produce a listing of raw symbols and C names.
9708global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9709
9710# Transform the output of nm in a proper C declaration
9711global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9712
9713# Transform the output of nm in a C name address pair
9714global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9715
9716# This is the shared library runtime path variable.
9717runpath_var=$runpath_var
9718
9719# This is the shared library path variable.
9720shlibpath_var=$shlibpath_var
9721
9722# Is shlibpath searched before the hard-coded library search path?
9723shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9724
9725# How to hardcode a shared library path into an executable.
9726hardcode_action=$hardcode_action
9727
9728# Whether we should hardcode library paths into libraries.
9729hardcode_into_libs=$hardcode_into_libs
9730
9731# Flag to hardcode \$libdir into a binary during linking.
9732# This must work even if \$libdir does not exist.
9733hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9734
9735# If ld is used when linking, flag to hardcode \$libdir into
9736# a binary during linking. This must work even if \$libdir does
9737# not exist.
9738hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9739
9740# Whether we need a single -rpath flag with a separated argument.
9741hardcode_libdir_separator=$lt_hardcode_libdir_separator
9742
9743# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9744# resulting binary.
9745hardcode_direct=$hardcode_direct
9746
9747# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9748# resulting binary.
9749hardcode_minus_L=$hardcode_minus_L
9750
9751# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9752# the resulting binary.
9753hardcode_shlibpath_var=$hardcode_shlibpath_var
9754
9755# Set to yes if building a shared library automatically hardcodes DIR into the library
9756# and all subsequent libraries and executables linked against it.
9757hardcode_automatic=$hardcode_automatic
9758
9759# Variables whose values should be saved in libtool wrapper scripts and
9760# restored at relink time.
9761variables_saved_for_relink="$variables_saved_for_relink"
9762
9763# Whether libtool must link a program against all its dependency libraries.
9764link_all_deplibs=$link_all_deplibs
9765
9766# Compile-time system search path for libraries
9767sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9768
9769# Run-time system search path for libraries
9770sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9771
9772# Fix the shell variable \$srcfile for the compiler.
9773fix_srcfile_path="$fix_srcfile_path"
9774
9775# Set to yes if exported symbols are required.
9776always_export_symbols=$always_export_symbols
9777
9778# The commands to list exported symbols.
9779export_symbols_cmds=$lt_export_symbols_cmds
9780
9781# The commands to extract the exported symbol list from a shared archive.
9782extract_expsyms_cmds=$lt_extract_expsyms_cmds
9783
9784# Symbols that should not be listed in the preloaded symbols.
9785exclude_expsyms=$lt_exclude_expsyms
9786
9787# Symbols that must always be exported.
9788include_expsyms=$lt_include_expsyms
9789
9790# ### END LIBTOOL CONFIG
9791
9792__EOF__
9793
9794
9795  case $host_os in
9796  aix3*)
9797    cat <<\EOF >> "$cfgfile"
9798
9799# AIX sometimes has problems with the GCC collect2 program.  For some
9800# reason, if we set the COLLECT_NAMES environment variable, the problems
9801# vanish in a puff of smoke.
9802if test "X${COLLECT_NAMES+set}" != Xset; then
9803  COLLECT_NAMES=
9804  export COLLECT_NAMES
9805fi
9806EOF
9807    ;;
9808  esac
9809
9810  # We use sed instead of cat because bash on DJGPP gets confused if
9811  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9812  # text mode, it properly converts lines to CR/LF.  This bash problem
9813  # is reportedly fixed, but why not run on old versions too?
9814  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9815
9816  mv -f "$cfgfile" "$ofile" || \
9817    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9818  chmod +x "$ofile"
9819
9820else
9821  # If there is no Makefile yet, we rely on a make rule to execute
9822  # `config.status --recheck' to rerun these tests and create the
9823  # libtool script then.
9824  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9825  if test -f "$ltmain_in"; then
9826    test -f Makefile && make "$ltmain"
9827  fi
9828fi
9829
9830
9831ac_ext=c
9832ac_cpp='$CPP $CPPFLAGS'
9833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9835ac_compiler_gnu=$ac_cv_c_compiler_gnu
9836
9837CC="$lt_save_CC"
9838
9839
9840# Check whether --with-tags or --without-tags was given.
9841if test "${with_tags+set}" = set; then
9842  withval="$with_tags"
9843  tagnames="$withval"
9844fi;
9845
9846if test -f "$ltmain" && test -n "$tagnames"; then
9847  if test ! -f "${ofile}"; then
9848    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9849echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9850  fi
9851
9852  if test -z "$LTCC"; then
9853    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9854    if test -z "$LTCC"; then
9855      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9856echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9857    else
9858      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9859echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9860    fi
9861  fi
9862  if test -z "$LTCFLAGS"; then
9863    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9864  fi
9865
9866  # Extract list of available tagged configurations in $ofile.
9867  # Note that this assumes the entire list is on one line.
9868  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9869
9870  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9871  for tagname in $tagnames; do
9872    IFS="$lt_save_ifs"
9873    # Check whether tagname contains only valid characters
9874    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9875    "") ;;
9876    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9877echo "$as_me: error: invalid tag name: $tagname" >&2;}
9878   { (exit 1); exit 1; }; }
9879	;;
9880    esac
9881
9882    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9883    then
9884      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9885echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9886   { (exit 1); exit 1; }; }
9887    fi
9888
9889    # Update the list of available tags.
9890    if test -n "$tagname"; then
9891      echo appending configuration tag \"$tagname\" to $ofile
9892
9893      case $tagname in
9894      CXX)
9895	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9896	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9897	    (test "X$CXX" != "Xg++"))) ; then
9898	  ac_ext=cc
9899ac_cpp='$CXXCPP $CPPFLAGS'
9900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9903
9904
9905
9906
9907archive_cmds_need_lc_CXX=no
9908allow_undefined_flag_CXX=
9909always_export_symbols_CXX=no
9910archive_expsym_cmds_CXX=
9911export_dynamic_flag_spec_CXX=
9912hardcode_direct_CXX=no
9913hardcode_libdir_flag_spec_CXX=
9914hardcode_libdir_flag_spec_ld_CXX=
9915hardcode_libdir_separator_CXX=
9916hardcode_minus_L_CXX=no
9917hardcode_shlibpath_var_CXX=unsupported
9918hardcode_automatic_CXX=no
9919module_cmds_CXX=
9920module_expsym_cmds_CXX=
9921link_all_deplibs_CXX=unknown
9922old_archive_cmds_CXX=$old_archive_cmds
9923no_undefined_flag_CXX=
9924whole_archive_flag_spec_CXX=
9925enable_shared_with_static_runtimes_CXX=no
9926
9927# Dependencies to place before and after the object being linked:
9928predep_objects_CXX=
9929postdep_objects_CXX=
9930predeps_CXX=
9931postdeps_CXX=
9932compiler_lib_search_path_CXX=
9933
9934# Source file extension for C++ test sources.
9935ac_ext=cpp
9936
9937# Object file extension for compiled C++ test sources.
9938objext=o
9939objext_CXX=$objext
9940
9941# Code to be used in simple compile tests
9942lt_simple_compile_test_code="int some_variable = 0;\n"
9943
9944# Code to be used in simple link tests
9945lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9946
9947# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9948
9949# If no C compiler was specified, use CC.
9950LTCC=${LTCC-"$CC"}
9951
9952# If no C compiler flags were specified, use CFLAGS.
9953LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9954
9955# Allow CC to be a program name with arguments.
9956compiler=$CC
9957
9958
9959# save warnings/boilerplate of simple test code
9960ac_outfile=conftest.$ac_objext
9961printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9962eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9963_lt_compiler_boilerplate=`cat conftest.err`
9964$rm conftest*
9965
9966ac_outfile=conftest.$ac_objext
9967printf "$lt_simple_link_test_code" >conftest.$ac_ext
9968eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9969_lt_linker_boilerplate=`cat conftest.err`
9970$rm conftest*
9971
9972
9973# Allow CC to be a program name with arguments.
9974lt_save_CC=$CC
9975lt_save_LD=$LD
9976lt_save_GCC=$GCC
9977GCC=$GXX
9978lt_save_with_gnu_ld=$with_gnu_ld
9979lt_save_path_LD=$lt_cv_path_LD
9980if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9981  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9982else
9983  $as_unset lt_cv_prog_gnu_ld
9984fi
9985if test -n "${lt_cv_path_LDCXX+set}"; then
9986  lt_cv_path_LD=$lt_cv_path_LDCXX
9987else
9988  $as_unset lt_cv_path_LD
9989fi
9990test -z "${LDCXX+set}" || LD=$LDCXX
9991CC=${CXX-"c++"}
9992compiler=$CC
9993compiler_CXX=$CC
9994for cc_temp in $compiler""; do
9995  case $cc_temp in
9996    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9997    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9998    \-*) ;;
9999    *) break;;
10000  esac
10001done
10002cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10003
10004
10005# We don't want -fno-exception wen compiling C++ code, so set the
10006# no_builtin_flag separately
10007if test "$GXX" = yes; then
10008  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10009else
10010  lt_prog_compiler_no_builtin_flag_CXX=
10011fi
10012
10013if test "$GXX" = yes; then
10014  # Set up default GNU C++ configuration
10015
10016
10017# Check whether --with-gnu-ld or --without-gnu-ld was given.
10018if test "${with_gnu_ld+set}" = set; then
10019  withval="$with_gnu_ld"
10020  test "$withval" = no || with_gnu_ld=yes
10021else
10022  with_gnu_ld=no
10023fi;
10024ac_prog=ld
10025if test "$GCC" = yes; then
10026  # Check if gcc -print-prog-name=ld gives a path.
10027  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10028echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10029  case $host in
10030  *-*-mingw*)
10031    # gcc leaves a trailing carriage return which upsets mingw
10032    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10033  *)
10034    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10035  esac
10036  case $ac_prog in
10037    # Accept absolute paths.
10038    [\\/]* | ?:[\\/]*)
10039      re_direlt='/[^/][^/]*/\.\./'
10040      # Canonicalize the pathname of ld
10041      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10042      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10043	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10044      done
10045      test -z "$LD" && LD="$ac_prog"
10046      ;;
10047  "")
10048    # If it fails, then pretend we aren't using GCC.
10049    ac_prog=ld
10050    ;;
10051  *)
10052    # If it is relative, then search for the first ld in PATH.
10053    with_gnu_ld=unknown
10054    ;;
10055  esac
10056elif test "$with_gnu_ld" = yes; then
10057  echo "$as_me:$LINENO: checking for GNU ld" >&5
10058echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10059else
10060  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10061echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10062fi
10063if test "${lt_cv_path_LD+set}" = set; then
10064  echo $ECHO_N "(cached) $ECHO_C" >&6
10065else
10066  if test -z "$LD"; then
10067  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10068  for ac_dir in $PATH; do
10069    IFS="$lt_save_ifs"
10070    test -z "$ac_dir" && ac_dir=.
10071    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10072      lt_cv_path_LD="$ac_dir/$ac_prog"
10073      # Check to see if the program is GNU ld.  I'd rather use --version,
10074      # but apparently some variants of GNU ld only accept -v.
10075      # Break only if it was the GNU/non-GNU ld that we prefer.
10076      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10077      *GNU* | *'with BFD'*)
10078	test "$with_gnu_ld" != no && break
10079	;;
10080      *)
10081	test "$with_gnu_ld" != yes && break
10082	;;
10083      esac
10084    fi
10085  done
10086  IFS="$lt_save_ifs"
10087else
10088  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10089fi
10090fi
10091
10092LD="$lt_cv_path_LD"
10093if test -n "$LD"; then
10094  echo "$as_me:$LINENO: result: $LD" >&5
10095echo "${ECHO_T}$LD" >&6
10096else
10097  echo "$as_me:$LINENO: result: no" >&5
10098echo "${ECHO_T}no" >&6
10099fi
10100test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10101echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10102   { (exit 1); exit 1; }; }
10103echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10104echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10105if test "${lt_cv_prog_gnu_ld+set}" = set; then
10106  echo $ECHO_N "(cached) $ECHO_C" >&6
10107else
10108  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10109case `$LD -v 2>&1 </dev/null` in
10110*GNU* | *'with BFD'*)
10111  lt_cv_prog_gnu_ld=yes
10112  ;;
10113*)
10114  lt_cv_prog_gnu_ld=no
10115  ;;
10116esac
10117fi
10118echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10119echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10120with_gnu_ld=$lt_cv_prog_gnu_ld
10121
10122
10123
10124  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10125  # archiving commands below assume that GNU ld is being used.
10126  if test "$with_gnu_ld" = yes; then
10127    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128    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'
10129
10130    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10131    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10132
10133    # If archive_cmds runs LD, not CC, wlarc should be empty
10134    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10135    #     investigate it a little bit more. (MM)
10136    wlarc='${wl}'
10137
10138    # ancient GNU ld didn't support --whole-archive et. al.
10139    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10140	grep 'no-whole-archive' > /dev/null; then
10141      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10142    else
10143      whole_archive_flag_spec_CXX=
10144    fi
10145  else
10146    with_gnu_ld=no
10147    wlarc=
10148
10149    # A generic and very simple default shared library creation
10150    # command for GNU C++ for the case where it uses the native
10151    # linker, instead of GNU ld.  If possible, this setting should
10152    # overridden to take advantage of the native linker features on
10153    # the platform it is being used on.
10154    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10155  fi
10156
10157  # Commands to make compiler produce verbose output that lists
10158  # what "hidden" libraries, object files and flags are used when
10159  # linking a shared library.
10160  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10161
10162else
10163  GXX=no
10164  with_gnu_ld=no
10165  wlarc=
10166fi
10167
10168# PORTME: fill in a description of your system's C++ link characteristics
10169echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10170echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10171ld_shlibs_CXX=yes
10172case $host_os in
10173  aix3*)
10174    # FIXME: insert proper C++ library support
10175    ld_shlibs_CXX=no
10176    ;;
10177  aix4* | aix5*)
10178    if test "$host_cpu" = ia64; then
10179      # On IA64, the linker does run time linking by default, so we don't
10180      # have to do anything special.
10181      aix_use_runtimelinking=no
10182      exp_sym_flag='-Bexport'
10183      no_entry_flag=""
10184    else
10185      aix_use_runtimelinking=no
10186
10187      # Test if we are trying to use run time linking or normal
10188      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10189      # need to do runtime linking.
10190      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10191	for ld_flag in $LDFLAGS; do
10192	  case $ld_flag in
10193	  *-brtl*)
10194	    aix_use_runtimelinking=yes
10195	    break
10196	    ;;
10197	  esac
10198	done
10199	;;
10200      esac
10201
10202      exp_sym_flag='-bexport'
10203      no_entry_flag='-bnoentry'
10204    fi
10205
10206    # When large executables or shared objects are built, AIX ld can
10207    # have problems creating the table of contents.  If linking a library
10208    # or program results in "error TOC overflow" add -mminimal-toc to
10209    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10210    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10211
10212    archive_cmds_CXX=''
10213    hardcode_direct_CXX=yes
10214    hardcode_libdir_separator_CXX=':'
10215    link_all_deplibs_CXX=yes
10216
10217    if test "$GXX" = yes; then
10218      case $host_os in aix4.[012]|aix4.[012].*)
10219      # We only want to do this on AIX 4.2 and lower, the check
10220      # below for broken collect2 doesn't work under 4.3+
10221	collect2name=`${CC} -print-prog-name=collect2`
10222	if test -f "$collect2name" && \
10223	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10224	then
10225	  # We have reworked collect2
10226	  hardcode_direct_CXX=yes
10227	else
10228	  # We have old collect2
10229	  hardcode_direct_CXX=unsupported
10230	  # It fails to find uninstalled libraries when the uninstalled
10231	  # path is not listed in the libpath.  Setting hardcode_minus_L
10232	  # to unsupported forces relinking
10233	  hardcode_minus_L_CXX=yes
10234	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10235	  hardcode_libdir_separator_CXX=
10236	fi
10237	;;
10238      esac
10239      shared_flag='-shared'
10240      if test "$aix_use_runtimelinking" = yes; then
10241	shared_flag="$shared_flag "'${wl}-G'
10242      fi
10243    else
10244      # not using gcc
10245      if test "$host_cpu" = ia64; then
10246	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10247	# chokes on -Wl,-G. The following line is correct:
10248	shared_flag='-G'
10249      else
10250	if test "$aix_use_runtimelinking" = yes; then
10251	  shared_flag='${wl}-G'
10252	else
10253	  shared_flag='${wl}-bM:SRE'
10254	fi
10255      fi
10256    fi
10257
10258    # It seems that -bexpall does not export symbols beginning with
10259    # underscore (_), so it is better to generate a list of symbols to export.
10260    always_export_symbols_CXX=yes
10261    if test "$aix_use_runtimelinking" = yes; then
10262      # Warning - without using the other runtime loading flags (-brtl),
10263      # -berok will link without error, but may produce a broken library.
10264      allow_undefined_flag_CXX='-berok'
10265      # Determine the default libpath from the value encoded in an empty executable.
10266      cat >conftest.$ac_ext <<_ACEOF
10267/* confdefs.h.  */
10268_ACEOF
10269cat confdefs.h >>conftest.$ac_ext
10270cat >>conftest.$ac_ext <<_ACEOF
10271/* end confdefs.h.  */
10272
10273int
10274main ()
10275{
10276
10277  ;
10278  return 0;
10279}
10280_ACEOF
10281rm -f conftest.$ac_objext conftest$ac_exeext
10282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283  (eval $ac_link) 2>conftest.er1
10284  ac_status=$?
10285  grep -v '^ *+' conftest.er1 >conftest.err
10286  rm -f conftest.er1
10287  cat conftest.err >&5
10288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289  (exit $ac_status); } &&
10290	 { ac_try='test -z "$ac_cxx_werror_flag"
10291			 || test ! -s conftest.err'
10292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293  (eval $ac_try) 2>&5
10294  ac_status=$?
10295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296  (exit $ac_status); }; } &&
10297	 { ac_try='test -s conftest$ac_exeext'
10298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299  (eval $ac_try) 2>&5
10300  ac_status=$?
10301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302  (exit $ac_status); }; }; then
10303
10304aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10305}'`
10306# Check for a 64-bit object if we didn't find anything.
10307if 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; }
10308}'`; fi
10309else
10310  echo "$as_me: failed program was:" >&5
10311sed 's/^/| /' conftest.$ac_ext >&5
10312
10313fi
10314rm -f conftest.err conftest.$ac_objext \
10315      conftest$ac_exeext conftest.$ac_ext
10316if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10317
10318      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10319
10320      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"
10321     else
10322      if test "$host_cpu" = ia64; then
10323	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10324	allow_undefined_flag_CXX="-z nodefs"
10325	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"
10326      else
10327	# Determine the default libpath from the value encoded in an empty executable.
10328	cat >conftest.$ac_ext <<_ACEOF
10329/* confdefs.h.  */
10330_ACEOF
10331cat confdefs.h >>conftest.$ac_ext
10332cat >>conftest.$ac_ext <<_ACEOF
10333/* end confdefs.h.  */
10334
10335int
10336main ()
10337{
10338
10339  ;
10340  return 0;
10341}
10342_ACEOF
10343rm -f conftest.$ac_objext conftest$ac_exeext
10344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345  (eval $ac_link) 2>conftest.er1
10346  ac_status=$?
10347  grep -v '^ *+' conftest.er1 >conftest.err
10348  rm -f conftest.er1
10349  cat conftest.err >&5
10350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351  (exit $ac_status); } &&
10352	 { ac_try='test -z "$ac_cxx_werror_flag"
10353			 || test ! -s conftest.err'
10354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355  (eval $ac_try) 2>&5
10356  ac_status=$?
10357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358  (exit $ac_status); }; } &&
10359	 { ac_try='test -s conftest$ac_exeext'
10360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361  (eval $ac_try) 2>&5
10362  ac_status=$?
10363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364  (exit $ac_status); }; }; then
10365
10366aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10367}'`
10368# Check for a 64-bit object if we didn't find anything.
10369if 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; }
10370}'`; fi
10371else
10372  echo "$as_me: failed program was:" >&5
10373sed 's/^/| /' conftest.$ac_ext >&5
10374
10375fi
10376rm -f conftest.err conftest.$ac_objext \
10377      conftest$ac_exeext conftest.$ac_ext
10378if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10379
10380	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10381	# Warning - without using the other run time loading flags,
10382	# -berok will link without error, but may produce a broken library.
10383	no_undefined_flag_CXX=' ${wl}-bernotok'
10384	allow_undefined_flag_CXX=' ${wl}-berok'
10385	# Exported symbols can be pulled into shared objects from archives
10386	whole_archive_flag_spec_CXX='$convenience'
10387	archive_cmds_need_lc_CXX=yes
10388	# This is similar to how AIX traditionally builds its shared libraries.
10389	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'
10390      fi
10391    fi
10392    ;;
10393
10394  beos*)
10395    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10396      allow_undefined_flag_CXX=unsupported
10397      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10398      # support --undefined.  This deserves some investigation.  FIXME
10399      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10400    else
10401      ld_shlibs_CXX=no
10402    fi
10403    ;;
10404
10405  chorus*)
10406    case $cc_basename in
10407      *)
10408	# FIXME: insert proper C++ library support
10409	ld_shlibs_CXX=no
10410	;;
10411    esac
10412    ;;
10413
10414  cygwin* | mingw* | pw32*)
10415    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10416    # as there is no search path for DLLs.
10417    hardcode_libdir_flag_spec_CXX='-L$libdir'
10418    allow_undefined_flag_CXX=unsupported
10419    always_export_symbols_CXX=no
10420    enable_shared_with_static_runtimes_CXX=yes
10421
10422    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10423      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'
10424      # If the export-symbols file already is a .def file (1st line
10425      # is EXPORTS), use it as is; otherwise, prepend...
10426      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10427	cp $export_symbols $output_objdir/$soname.def;
10428      else
10429	echo EXPORTS > $output_objdir/$soname.def;
10430	cat $export_symbols >> $output_objdir/$soname.def;
10431      fi~
10432      $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'
10433    else
10434      ld_shlibs_CXX=no
10435    fi
10436  ;;
10437      darwin* | rhapsody*)
10438        case $host_os in
10439        rhapsody* | darwin1.[012])
10440         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10441         ;;
10442       *) # Darwin 1.3 on
10443         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10444           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10445         else
10446           case ${MACOSX_DEPLOYMENT_TARGET} in
10447             10.[012])
10448               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10449               ;;
10450             10.*)
10451               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10452               ;;
10453           esac
10454         fi
10455         ;;
10456        esac
10457      archive_cmds_need_lc_CXX=no
10458      hardcode_direct_CXX=no
10459      hardcode_automatic_CXX=yes
10460      hardcode_shlibpath_var_CXX=unsupported
10461      whole_archive_flag_spec_CXX=''
10462      link_all_deplibs_CXX=yes
10463
10464    if test "$GXX" = yes ; then
10465      lt_int_apple_cc_single_mod=no
10466      output_verbose_link_cmd='echo'
10467      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10468       lt_int_apple_cc_single_mod=yes
10469      fi
10470      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10471       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10472      else
10473          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'
10474        fi
10475        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10476        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10477          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10478            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}'
10479          else
10480            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}'
10481          fi
10482            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}'
10483      else
10484      case $cc_basename in
10485        xlc*)
10486         output_verbose_link_cmd='echo'
10487          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'
10488          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10489          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10490          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}'
10491          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}'
10492          ;;
10493       *)
10494         ld_shlibs_CXX=no
10495          ;;
10496      esac
10497      fi
10498        ;;
10499
10500  dgux*)
10501    case $cc_basename in
10502      ec++*)
10503	# FIXME: insert proper C++ library support
10504	ld_shlibs_CXX=no
10505	;;
10506      ghcx*)
10507	# Green Hills C++ Compiler
10508	# FIXME: insert proper C++ library support
10509	ld_shlibs_CXX=no
10510	;;
10511      *)
10512	# FIXME: insert proper C++ library support
10513	ld_shlibs_CXX=no
10514	;;
10515    esac
10516    ;;
10517  freebsd[12]*)
10518    # C++ shared libraries reported to be fairly broken before switch to ELF
10519    ld_shlibs_CXX=no
10520    ;;
10521  freebsd-elf*)
10522    archive_cmds_need_lc_CXX=no
10523    ;;
10524  freebsd* | kfreebsd*-gnu | dragonfly*)
10525    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10526    # conventions
10527    ld_shlibs_CXX=yes
10528    ;;
10529  gnu*)
10530    ;;
10531  hpux9*)
10532    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10533    hardcode_libdir_separator_CXX=:
10534    export_dynamic_flag_spec_CXX='${wl}-E'
10535    hardcode_direct_CXX=yes
10536    hardcode_minus_L_CXX=yes # Not in the search PATH,
10537				# but as the default
10538				# location of the library.
10539
10540    case $cc_basename in
10541    CC*)
10542      # FIXME: insert proper C++ library support
10543      ld_shlibs_CXX=no
10544      ;;
10545    aCC*)
10546      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'
10547      # Commands to make compiler produce verbose output that lists
10548      # what "hidden" libraries, object files and flags are used when
10549      # linking a shared library.
10550      #
10551      # There doesn't appear to be a way to prevent this compiler from
10552      # explicitly linking system object files so we need to strip them
10553      # from the output so that they don't get included in the library
10554      # dependencies.
10555      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'
10556      ;;
10557    *)
10558      if test "$GXX" = yes; then
10559        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'
10560      else
10561        # FIXME: insert proper C++ library support
10562        ld_shlibs_CXX=no
10563      fi
10564      ;;
10565    esac
10566    ;;
10567  hpux10*|hpux11*)
10568    if test $with_gnu_ld = no; then
10569      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10570      hardcode_libdir_separator_CXX=:
10571
10572      case $host_cpu in
10573      hppa*64*|ia64*)
10574	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10575        ;;
10576      *)
10577	export_dynamic_flag_spec_CXX='${wl}-E'
10578        ;;
10579      esac
10580    fi
10581    case $host_cpu in
10582    hppa*64*|ia64*)
10583      hardcode_direct_CXX=no
10584      hardcode_shlibpath_var_CXX=no
10585      ;;
10586    *)
10587      hardcode_direct_CXX=yes
10588      hardcode_minus_L_CXX=yes # Not in the search PATH,
10589					      # but as the default
10590					      # location of the library.
10591      ;;
10592    esac
10593
10594    case $cc_basename in
10595      CC*)
10596	# FIXME: insert proper C++ library support
10597	ld_shlibs_CXX=no
10598	;;
10599      aCC*)
10600	case $host_cpu in
10601	hppa*64*)
10602	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10603	  ;;
10604	ia64*)
10605	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10606	  ;;
10607	*)
10608	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10609	  ;;
10610	esac
10611	# Commands to make compiler produce verbose output that lists
10612	# what "hidden" libraries, object files and flags are used when
10613	# linking a shared library.
10614	#
10615	# There doesn't appear to be a way to prevent this compiler from
10616	# explicitly linking system object files so we need to strip them
10617	# from the output so that they don't get included in the library
10618	# dependencies.
10619	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'
10620	;;
10621      *)
10622	if test "$GXX" = yes; then
10623	  if test $with_gnu_ld = no; then
10624	    case $host_cpu in
10625	    hppa*64*)
10626	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10627	      ;;
10628	    ia64*)
10629	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10630	      ;;
10631	    *)
10632	      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'
10633	      ;;
10634	    esac
10635	  fi
10636	else
10637	  # FIXME: insert proper C++ library support
10638	  ld_shlibs_CXX=no
10639	fi
10640	;;
10641    esac
10642    ;;
10643  interix3*)
10644    hardcode_direct_CXX=no
10645    hardcode_shlibpath_var_CXX=no
10646    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10647    export_dynamic_flag_spec_CXX='${wl}-E'
10648    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10649    # Instead, shared libraries are loaded at an image base (0x10000000 by
10650    # default) and relocated if they conflict, which is a slow very memory
10651    # consuming and fragmenting process.  To avoid this, we pick a random,
10652    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10653    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10654    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'
10655    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'
10656    ;;
10657  irix5* | irix6*)
10658    case $cc_basename in
10659      CC*)
10660	# SGI C++
10661	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'
10662
10663	# Archives containing C++ object files must be created using
10664	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10665	# necessary to make sure instantiated templates are included
10666	# in the archive.
10667	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10668	;;
10669      *)
10670	if test "$GXX" = yes; then
10671	  if test "$with_gnu_ld" = no; then
10672	    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'
10673	  else
10674	    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'
10675	  fi
10676	fi
10677	link_all_deplibs_CXX=yes
10678	;;
10679    esac
10680    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10681    hardcode_libdir_separator_CXX=:
10682    ;;
10683  linux*)
10684    case $cc_basename in
10685      KCC*)
10686	# Kuck and Associates, Inc. (KAI) C++ Compiler
10687
10688	# KCC will only create a shared library if the output file
10689	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10690	# to its proper name (with version) after linking.
10691	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'
10692	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'
10693	# Commands to make compiler produce verbose output that lists
10694	# what "hidden" libraries, object files and flags are used when
10695	# linking a shared library.
10696	#
10697	# There doesn't appear to be a way to prevent this compiler from
10698	# explicitly linking system object files so we need to strip them
10699	# from the output so that they don't get included in the library
10700	# dependencies.
10701	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'
10702
10703	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10704	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10705
10706	# Archives containing C++ object files must be created using
10707	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10708	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10709	;;
10710      icpc*)
10711	# Intel C++
10712	with_gnu_ld=yes
10713	# version 8.0 and above of icpc choke on multiply defined symbols
10714	# if we add $predep_objects and $postdep_objects, however 7.1 and
10715	# earlier do not add the objects themselves.
10716	case `$CC -V 2>&1` in
10717	*"Version 7."*)
10718  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10719  	  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'
10720	  ;;
10721	*)  # Version 8.0 or newer
10722	  tmp_idyn=
10723	  case $host_cpu in
10724	    ia64*) tmp_idyn=' -i_dynamic';;
10725	  esac
10726  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10727	  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'
10728	  ;;
10729	esac
10730	archive_cmds_need_lc_CXX=no
10731	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10732	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10733	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10734	;;
10735      pgCC*)
10736        # Portland Group C++ compiler
10737	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10738  	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'
10739
10740	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10741	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10742	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'
10743        ;;
10744      cxx*)
10745	# Compaq C++
10746	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10747	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'
10748
10749	runpath_var=LD_RUN_PATH
10750	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10751	hardcode_libdir_separator_CXX=:
10752
10753	# Commands to make compiler produce verbose output that lists
10754	# what "hidden" libraries, object files and flags are used when
10755	# linking a shared library.
10756	#
10757	# There doesn't appear to be a way to prevent this compiler from
10758	# explicitly linking system object files so we need to strip them
10759	# from the output so that they don't get included in the library
10760	# dependencies.
10761	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'
10762	;;
10763    esac
10764    ;;
10765  lynxos*)
10766    # FIXME: insert proper C++ library support
10767    ld_shlibs_CXX=no
10768    ;;
10769  m88k*)
10770    # FIXME: insert proper C++ library support
10771    ld_shlibs_CXX=no
10772    ;;
10773  mvs*)
10774    case $cc_basename in
10775      cxx*)
10776	# FIXME: insert proper C++ library support
10777	ld_shlibs_CXX=no
10778	;;
10779      *)
10780	# FIXME: insert proper C++ library support
10781	ld_shlibs_CXX=no
10782	;;
10783    esac
10784    ;;
10785  netbsd*)
10786    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10787      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10788      wlarc=
10789      hardcode_libdir_flag_spec_CXX='-R$libdir'
10790      hardcode_direct_CXX=yes
10791      hardcode_shlibpath_var_CXX=no
10792    fi
10793    # Workaround some broken pre-1.5 toolchains
10794    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10795    ;;
10796  openbsd2*)
10797    # C++ shared libraries are fairly broken
10798    ld_shlibs_CXX=no
10799    ;;
10800  openbsd*)
10801    hardcode_direct_CXX=yes
10802    hardcode_shlibpath_var_CXX=no
10803    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10804    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10805    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10806      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10807      export_dynamic_flag_spec_CXX='${wl}-E'
10808      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10809    fi
10810    output_verbose_link_cmd='echo'
10811    ;;
10812  osf3*)
10813    case $cc_basename in
10814      KCC*)
10815	# Kuck and Associates, Inc. (KAI) C++ Compiler
10816
10817	# KCC will only create a shared library if the output file
10818	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10819	# to its proper name (with version) after linking.
10820	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'
10821
10822	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10823	hardcode_libdir_separator_CXX=:
10824
10825	# Archives containing C++ object files must be created using
10826	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10827	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10828
10829	;;
10830      RCC*)
10831	# Rational C++ 2.4.1
10832	# FIXME: insert proper C++ library support
10833	ld_shlibs_CXX=no
10834	;;
10835      cxx*)
10836	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10837	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'
10838
10839	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10840	hardcode_libdir_separator_CXX=:
10841
10842	# Commands to make compiler produce verbose output that lists
10843	# what "hidden" libraries, object files and flags are used when
10844	# linking a shared library.
10845	#
10846	# There doesn't appear to be a way to prevent this compiler from
10847	# explicitly linking system object files so we need to strip them
10848	# from the output so that they don't get included in the library
10849	# dependencies.
10850	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'
10851	;;
10852      *)
10853	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10854	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10855	  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'
10856
10857	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10858	  hardcode_libdir_separator_CXX=:
10859
10860	  # Commands to make compiler produce verbose output that lists
10861	  # what "hidden" libraries, object files and flags are used when
10862	  # linking a shared library.
10863	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10864
10865	else
10866	  # FIXME: insert proper C++ library support
10867	  ld_shlibs_CXX=no
10868	fi
10869	;;
10870    esac
10871    ;;
10872  osf4* | osf5*)
10873    case $cc_basename in
10874      KCC*)
10875	# Kuck and Associates, Inc. (KAI) C++ Compiler
10876
10877	# KCC will only create a shared library if the output file
10878	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10879	# to its proper name (with version) after linking.
10880	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'
10881
10882	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10883	hardcode_libdir_separator_CXX=:
10884
10885	# Archives containing C++ object files must be created using
10886	# the KAI C++ compiler.
10887	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10888	;;
10889      RCC*)
10890	# Rational C++ 2.4.1
10891	# FIXME: insert proper C++ library support
10892	ld_shlibs_CXX=no
10893	;;
10894      cxx*)
10895	allow_undefined_flag_CXX=' -expect_unresolved \*'
10896	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'
10897	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10898	  echo "-hidden">> $lib.exp~
10899	  $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~
10900	  $rm $lib.exp'
10901
10902	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10903	hardcode_libdir_separator_CXX=:
10904
10905	# Commands to make compiler produce verbose output that lists
10906	# what "hidden" libraries, object files and flags are used when
10907	# linking a shared library.
10908	#
10909	# There doesn't appear to be a way to prevent this compiler from
10910	# explicitly linking system object files so we need to strip them
10911	# from the output so that they don't get included in the library
10912	# dependencies.
10913	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'
10914	;;
10915      *)
10916	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10917	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10918	 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'
10919
10920	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10921	  hardcode_libdir_separator_CXX=:
10922
10923	  # Commands to make compiler produce verbose output that lists
10924	  # what "hidden" libraries, object files and flags are used when
10925	  # linking a shared library.
10926	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10927
10928	else
10929	  # FIXME: insert proper C++ library support
10930	  ld_shlibs_CXX=no
10931	fi
10932	;;
10933    esac
10934    ;;
10935  psos*)
10936    # FIXME: insert proper C++ library support
10937    ld_shlibs_CXX=no
10938    ;;
10939  sunos4*)
10940    case $cc_basename in
10941      CC*)
10942	# Sun C++ 4.x
10943	# FIXME: insert proper C++ library support
10944	ld_shlibs_CXX=no
10945	;;
10946      lcc*)
10947	# Lucid
10948	# FIXME: insert proper C++ library support
10949	ld_shlibs_CXX=no
10950	;;
10951      *)
10952	# FIXME: insert proper C++ library support
10953	ld_shlibs_CXX=no
10954	;;
10955    esac
10956    ;;
10957  solaris*)
10958    case $cc_basename in
10959      CC*)
10960	# Sun C++ 4.2, 5.x and Centerline C++
10961        archive_cmds_need_lc_CXX=yes
10962	no_undefined_flag_CXX=' -zdefs'
10963	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10964	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10965	$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'
10966
10967	hardcode_libdir_flag_spec_CXX='-R$libdir'
10968	hardcode_shlibpath_var_CXX=no
10969	case $host_os in
10970	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10971	  *)
10972	    # The C++ compiler is used as linker so we must use $wl
10973	    # flag to pass the commands to the underlying system
10974	    # linker. We must also pass each convience library through
10975	    # to the system linker between allextract/defaultextract.
10976	    # The C++ compiler will combine linker options so we
10977	    # cannot just pass the convience library names through
10978	    # without $wl.
10979	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10980	    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'
10981	    ;;
10982	esac
10983	link_all_deplibs_CXX=yes
10984
10985	output_verbose_link_cmd='echo'
10986
10987	# Archives containing C++ object files must be created using
10988	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10989	# necessary to make sure instantiated templates are included
10990	# in the archive.
10991	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10992	;;
10993      gcx*)
10994	# Green Hills C++ Compiler
10995	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10996
10997	# The C++ compiler must be used to create the archive.
10998	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10999	;;
11000      *)
11001	# GNU C++ compiler with Solaris linker
11002	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11003	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11004	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11005	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11006	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11007		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11008
11009	    # Commands to make compiler produce verbose output that lists
11010	    # what "hidden" libraries, object files and flags are used when
11011	    # linking a shared library.
11012	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11013	  else
11014	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11015	    # platform.
11016	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11017	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11018		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11019
11020	    # Commands to make compiler produce verbose output that lists
11021	    # what "hidden" libraries, object files and flags are used when
11022	    # linking a shared library.
11023	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11024	  fi
11025
11026	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11027	fi
11028	;;
11029    esac
11030    ;;
11031  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11032    no_undefined_flag_CXX='${wl}-z,text'
11033    archive_cmds_need_lc_CXX=no
11034    hardcode_shlibpath_var_CXX=no
11035    runpath_var='LD_RUN_PATH'
11036
11037    case $cc_basename in
11038      CC*)
11039	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11040	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041	;;
11042      *)
11043	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11044	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11045	;;
11046    esac
11047    ;;
11048  sysv5* | sco3.2v5* | sco5v6*)
11049    # Note: We can NOT use -z defs as we might desire, because we do not
11050    # link with -lc, and that would cause any symbols used from libc to
11051    # always be unresolved, which means just about no library would
11052    # ever link correctly.  If we're not using GNU ld we use -z text
11053    # though, which does catch some bad symbols but isn't as heavy-handed
11054    # as -z defs.
11055    # For security reasons, it is highly recommended that you always
11056    # use absolute paths for naming shared libraries, and exclude the
11057    # DT_RUNPATH tag from executables and libraries.  But doing so
11058    # requires that you compile everything twice, which is a pain.
11059    # So that behaviour is only enabled if SCOABSPATH is set to a
11060    # non-empty value in the environment.  Most likely only useful for
11061    # creating official distributions of packages.
11062    # This is a hack until libtool officially supports absolute path
11063    # names for shared libraries.
11064    no_undefined_flag_CXX='${wl}-z,text'
11065    allow_undefined_flag_CXX='${wl}-z,nodefs'
11066    archive_cmds_need_lc_CXX=no
11067    hardcode_shlibpath_var_CXX=no
11068    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11069    hardcode_libdir_separator_CXX=':'
11070    link_all_deplibs_CXX=yes
11071    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11072    runpath_var='LD_RUN_PATH'
11073
11074    case $cc_basename in
11075      CC*)
11076	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11077	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11078	;;
11079      *)
11080	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11081	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11082	;;
11083    esac
11084    ;;
11085  tandem*)
11086    case $cc_basename in
11087      NCC*)
11088	# NonStop-UX NCC 3.20
11089	# FIXME: insert proper C++ library support
11090	ld_shlibs_CXX=no
11091	;;
11092      *)
11093	# FIXME: insert proper C++ library support
11094	ld_shlibs_CXX=no
11095	;;
11096    esac
11097    ;;
11098  vxworks*)
11099    # FIXME: insert proper C++ library support
11100    ld_shlibs_CXX=no
11101    ;;
11102  *)
11103    # FIXME: insert proper C++ library support
11104    ld_shlibs_CXX=no
11105    ;;
11106esac
11107echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11108echo "${ECHO_T}$ld_shlibs_CXX" >&6
11109test "$ld_shlibs_CXX" = no && can_build_shared=no
11110
11111GCC_CXX="$GXX"
11112LD_CXX="$LD"
11113
11114
11115cat > conftest.$ac_ext <<EOF
11116class Foo
11117{
11118public:
11119  Foo (void) { a = 0; }
11120private:
11121  int a;
11122};
11123EOF
11124
11125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11126  (eval $ac_compile) 2>&5
11127  ac_status=$?
11128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129  (exit $ac_status); }; then
11130  # Parse the compiler output and extract the necessary
11131  # objects, libraries and library flags.
11132
11133  # Sentinel used to keep track of whether or not we are before
11134  # the conftest object file.
11135  pre_test_object_deps_done=no
11136
11137  # The `*' in the case matches for architectures that use `case' in
11138  # $output_verbose_cmd can trigger glob expansion during the loop
11139  # eval without this substitution.
11140  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11141
11142  for p in `eval $output_verbose_link_cmd`; do
11143    case $p in
11144
11145    -L* | -R* | -l*)
11146       # Some compilers place space between "-{L,R}" and the path.
11147       # Remove the space.
11148       if test $p = "-L" \
11149	  || test $p = "-R"; then
11150	 prev=$p
11151	 continue
11152       else
11153	 prev=
11154       fi
11155
11156       if test "$pre_test_object_deps_done" = no; then
11157	 case $p in
11158	 -L* | -R*)
11159	   # Internal compiler library paths should come after those
11160	   # provided the user.  The postdeps already come after the
11161	   # user supplied libs so there is no need to process them.
11162	   if test -z "$compiler_lib_search_path_CXX"; then
11163	     compiler_lib_search_path_CXX="${prev}${p}"
11164	   else
11165	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11166	   fi
11167	   ;;
11168	 # The "-l" case would never come before the object being
11169	 # linked, so don't bother handling this case.
11170	 esac
11171       else
11172	 if test -z "$postdeps_CXX"; then
11173	   postdeps_CXX="${prev}${p}"
11174	 else
11175	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11176	 fi
11177       fi
11178       ;;
11179
11180    *.$objext)
11181       # This assumes that the test object file only shows up
11182       # once in the compiler output.
11183       if test "$p" = "conftest.$objext"; then
11184	 pre_test_object_deps_done=yes
11185	 continue
11186       fi
11187
11188       if test "$pre_test_object_deps_done" = no; then
11189	 if test -z "$predep_objects_CXX"; then
11190	   predep_objects_CXX="$p"
11191	 else
11192	   predep_objects_CXX="$predep_objects_CXX $p"
11193	 fi
11194       else
11195	 if test -z "$postdep_objects_CXX"; then
11196	   postdep_objects_CXX="$p"
11197	 else
11198	   postdep_objects_CXX="$postdep_objects_CXX $p"
11199	 fi
11200       fi
11201       ;;
11202
11203    *) ;; # Ignore the rest.
11204
11205    esac
11206  done
11207
11208  # Clean up.
11209  rm -f a.out a.exe
11210else
11211  echo "libtool.m4: error: problem compiling CXX test program"
11212fi
11213
11214$rm -f confest.$objext
11215
11216# PORTME: override above test on systems where it is broken
11217case $host_os in
11218interix3*)
11219  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11220  # hack all around it, let's just trust "g++" to DTRT.
11221  predep_objects_CXX=
11222  postdep_objects_CXX=
11223  postdeps_CXX=
11224  ;;
11225
11226solaris*)
11227  case $cc_basename in
11228  CC*)
11229    # Adding this requires a known-good setup of shared libraries for
11230    # Sun compiler versions before 5.6, else PIC objects from an old
11231    # archive will be linked into the output, leading to subtle bugs.
11232    postdeps_CXX='-lCstd -lCrun'
11233    ;;
11234  esac
11235  ;;
11236esac
11237
11238
11239case " $postdeps_CXX " in
11240*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11241esac
11242
11243lt_prog_compiler_wl_CXX=
11244lt_prog_compiler_pic_CXX=
11245lt_prog_compiler_static_CXX=
11246
11247echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11248echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11249
11250  # C++ specific cases for pic, static, wl, etc.
11251  if test "$GXX" = yes; then
11252    lt_prog_compiler_wl_CXX='-Wl,'
11253    lt_prog_compiler_static_CXX='-static'
11254
11255    case $host_os in
11256    aix*)
11257      # All AIX code is PIC.
11258      if test "$host_cpu" = ia64; then
11259	# AIX 5 now supports IA64 processor
11260	lt_prog_compiler_static_CXX='-Bstatic'
11261      fi
11262      ;;
11263    amigaos*)
11264      # FIXME: we need at least 68020 code to build shared libraries, but
11265      # adding the `-m68020' flag to GCC prevents building anything better,
11266      # like `-m68040'.
11267      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11268      ;;
11269    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11270      # PIC is the default for these OSes.
11271      ;;
11272    mingw* | os2* | pw32*)
11273      # This hack is so that the source file can tell whether it is being
11274      # built for inclusion in a dll (and should export symbols for example).
11275      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11276      ;;
11277    darwin* | rhapsody*)
11278      # PIC is the default on this platform
11279      # Common symbols not allowed in MH_DYLIB files
11280      lt_prog_compiler_pic_CXX='-fno-common'
11281      ;;
11282    *djgpp*)
11283      # DJGPP does not support shared libraries at all
11284      lt_prog_compiler_pic_CXX=
11285      ;;
11286    interix3*)
11287      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11288      # Instead, we relocate shared libraries at runtime.
11289      ;;
11290    sysv4*MP*)
11291      if test -d /usr/nec; then
11292	lt_prog_compiler_pic_CXX=-Kconform_pic
11293      fi
11294      ;;
11295    hpux*)
11296      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11297      # not for PA HP-UX.
11298      case $host_cpu in
11299      hppa*64*|ia64*)
11300	;;
11301      *)
11302	lt_prog_compiler_pic_CXX='-fPIC'
11303	;;
11304      esac
11305      ;;
11306    *)
11307      lt_prog_compiler_pic_CXX='-fPIC'
11308      ;;
11309    esac
11310  else
11311    case $host_os in
11312      aix4* | aix5*)
11313	# All AIX code is PIC.
11314	if test "$host_cpu" = ia64; then
11315	  # AIX 5 now supports IA64 processor
11316	  lt_prog_compiler_static_CXX='-Bstatic'
11317	else
11318	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11319	fi
11320	;;
11321      chorus*)
11322	case $cc_basename in
11323	cxch68*)
11324	  # Green Hills C++ Compiler
11325	  # _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"
11326	  ;;
11327	esac
11328	;;
11329       darwin*)
11330         # PIC is the default on this platform
11331         # Common symbols not allowed in MH_DYLIB files
11332         case $cc_basename in
11333           xlc*)
11334           lt_prog_compiler_pic_CXX='-qnocommon'
11335           lt_prog_compiler_wl_CXX='-Wl,'
11336           ;;
11337         esac
11338       ;;
11339      dgux*)
11340	case $cc_basename in
11341	  ec++*)
11342	    lt_prog_compiler_pic_CXX='-KPIC'
11343	    ;;
11344	  ghcx*)
11345	    # Green Hills C++ Compiler
11346	    lt_prog_compiler_pic_CXX='-pic'
11347	    ;;
11348	  *)
11349	    ;;
11350	esac
11351	;;
11352      freebsd* | kfreebsd*-gnu | dragonfly*)
11353	# FreeBSD uses GNU C++
11354	;;
11355      hpux9* | hpux10* | hpux11*)
11356	case $cc_basename in
11357	  CC*)
11358	    lt_prog_compiler_wl_CXX='-Wl,'
11359	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11360	    if test "$host_cpu" != ia64; then
11361	      lt_prog_compiler_pic_CXX='+Z'
11362	    fi
11363	    ;;
11364	  aCC*)
11365	    lt_prog_compiler_wl_CXX='-Wl,'
11366	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11367	    case $host_cpu in
11368	    hppa*64*|ia64*)
11369	      # +Z the default
11370	      ;;
11371	    *)
11372	      lt_prog_compiler_pic_CXX='+Z'
11373	      ;;
11374	    esac
11375	    ;;
11376	  *)
11377	    ;;
11378	esac
11379	;;
11380      interix*)
11381	# This is c89, which is MS Visual C++ (no shared libs)
11382	# Anyone wants to do a port?
11383	;;
11384      irix5* | irix6* | nonstopux*)
11385	case $cc_basename in
11386	  CC*)
11387	    lt_prog_compiler_wl_CXX='-Wl,'
11388	    lt_prog_compiler_static_CXX='-non_shared'
11389	    # CC pic flag -KPIC is the default.
11390	    ;;
11391	  *)
11392	    ;;
11393	esac
11394	;;
11395      linux*)
11396	case $cc_basename in
11397	  KCC*)
11398	    # KAI C++ Compiler
11399	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11400	    lt_prog_compiler_pic_CXX='-fPIC'
11401	    ;;
11402	  icpc* | ecpc*)
11403	    # Intel C++
11404	    lt_prog_compiler_wl_CXX='-Wl,'
11405	    lt_prog_compiler_pic_CXX='-KPIC'
11406	    lt_prog_compiler_static_CXX='-static'
11407	    ;;
11408	  pgCC*)
11409	    # Portland Group C++ compiler.
11410	    lt_prog_compiler_wl_CXX='-Wl,'
11411	    lt_prog_compiler_pic_CXX='-fpic'
11412	    lt_prog_compiler_static_CXX='-Bstatic'
11413	    ;;
11414	  cxx*)
11415	    # Compaq C++
11416	    # Make sure the PIC flag is empty.  It appears that all Alpha
11417	    # Linux and Compaq Tru64 Unix objects are PIC.
11418	    lt_prog_compiler_pic_CXX=
11419	    lt_prog_compiler_static_CXX='-non_shared'
11420	    ;;
11421	  *)
11422	    ;;
11423	esac
11424	;;
11425      lynxos*)
11426	;;
11427      m88k*)
11428	;;
11429      mvs*)
11430	case $cc_basename in
11431	  cxx*)
11432	    lt_prog_compiler_pic_CXX='-W c,exportall'
11433	    ;;
11434	  *)
11435	    ;;
11436	esac
11437	;;
11438      netbsd*)
11439	;;
11440      osf3* | osf4* | osf5*)
11441	case $cc_basename in
11442	  KCC*)
11443	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11444	    ;;
11445	  RCC*)
11446	    # Rational C++ 2.4.1
11447	    lt_prog_compiler_pic_CXX='-pic'
11448	    ;;
11449	  cxx*)
11450	    # Digital/Compaq C++
11451	    lt_prog_compiler_wl_CXX='-Wl,'
11452	    # Make sure the PIC flag is empty.  It appears that all Alpha
11453	    # Linux and Compaq Tru64 Unix objects are PIC.
11454	    lt_prog_compiler_pic_CXX=
11455	    lt_prog_compiler_static_CXX='-non_shared'
11456	    ;;
11457	  *)
11458	    ;;
11459	esac
11460	;;
11461      psos*)
11462	;;
11463      solaris*)
11464	case $cc_basename in
11465	  CC*)
11466	    # Sun C++ 4.2, 5.x and Centerline C++
11467	    lt_prog_compiler_pic_CXX='-KPIC'
11468	    lt_prog_compiler_static_CXX='-Bstatic'
11469	    lt_prog_compiler_wl_CXX='-Qoption ld '
11470	    ;;
11471	  gcx*)
11472	    # Green Hills C++ Compiler
11473	    lt_prog_compiler_pic_CXX='-PIC'
11474	    ;;
11475	  *)
11476	    ;;
11477	esac
11478	;;
11479      sunos4*)
11480	case $cc_basename in
11481	  CC*)
11482	    # Sun C++ 4.x
11483	    lt_prog_compiler_pic_CXX='-pic'
11484	    lt_prog_compiler_static_CXX='-Bstatic'
11485	    ;;
11486	  lcc*)
11487	    # Lucid
11488	    lt_prog_compiler_pic_CXX='-pic'
11489	    ;;
11490	  *)
11491	    ;;
11492	esac
11493	;;
11494      tandem*)
11495	case $cc_basename in
11496	  NCC*)
11497	    # NonStop-UX NCC 3.20
11498	    lt_prog_compiler_pic_CXX='-KPIC'
11499	    ;;
11500	  *)
11501	    ;;
11502	esac
11503	;;
11504      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11505	case $cc_basename in
11506	  CC*)
11507	    lt_prog_compiler_wl_CXX='-Wl,'
11508	    lt_prog_compiler_pic_CXX='-KPIC'
11509	    lt_prog_compiler_static_CXX='-Bstatic'
11510	    ;;
11511	esac
11512	;;
11513      vxworks*)
11514	;;
11515      *)
11516	lt_prog_compiler_can_build_shared_CXX=no
11517	;;
11518    esac
11519  fi
11520
11521echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11522echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11523
11524#
11525# Check to make sure the PIC flag actually works.
11526#
11527if test -n "$lt_prog_compiler_pic_CXX"; then
11528
11529echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11530echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11531if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11532  echo $ECHO_N "(cached) $ECHO_C" >&6
11533else
11534  lt_prog_compiler_pic_works_CXX=no
11535  ac_outfile=conftest.$ac_objext
11536   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11537   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11538   # Insert the option either (1) after the last *FLAGS variable, or
11539   # (2) before a word containing "conftest.", or (3) at the end.
11540   # Note that $ac_compile itself does not contain backslashes and begins
11541   # with a dollar sign (not a hyphen), so the echo should work correctly.
11542   # The option is referenced via a variable to avoid confusing sed.
11543   lt_compile=`echo "$ac_compile" | $SED \
11544   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11545   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11546   -e 's:$: $lt_compiler_flag:'`
11547   (eval echo "\"\$as_me:11547: $lt_compile\"" >&5)
11548   (eval "$lt_compile" 2>conftest.err)
11549   ac_status=$?
11550   cat conftest.err >&5
11551   echo "$as_me:11551: \$? = $ac_status" >&5
11552   if (exit $ac_status) && test -s "$ac_outfile"; then
11553     # The compiler can only warn and ignore the option if not recognized
11554     # So say no if there are warnings other than the usual output.
11555     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11556     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11557     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11558       lt_prog_compiler_pic_works_CXX=yes
11559     fi
11560   fi
11561   $rm conftest*
11562
11563fi
11564echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11565echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11566
11567if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11568    case $lt_prog_compiler_pic_CXX in
11569     "" | " "*) ;;
11570     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11571     esac
11572else
11573    lt_prog_compiler_pic_CXX=
11574     lt_prog_compiler_can_build_shared_CXX=no
11575fi
11576
11577fi
11578case $host_os in
11579  # For platforms which do not support PIC, -DPIC is meaningless:
11580  *djgpp*)
11581    lt_prog_compiler_pic_CXX=
11582    ;;
11583  *)
11584    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11585    ;;
11586esac
11587
11588#
11589# Check to make sure the static flag actually works.
11590#
11591wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11592echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11593echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11594if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11595  echo $ECHO_N "(cached) $ECHO_C" >&6
11596else
11597  lt_prog_compiler_static_works_CXX=no
11598   save_LDFLAGS="$LDFLAGS"
11599   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11600   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11601   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11602     # The linker can only warn and ignore the option if not recognized
11603     # So say no if there are warnings
11604     if test -s conftest.err; then
11605       # Append any errors to the config.log.
11606       cat conftest.err 1>&5
11607       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11608       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11609       if diff conftest.exp conftest.er2 >/dev/null; then
11610         lt_prog_compiler_static_works_CXX=yes
11611       fi
11612     else
11613       lt_prog_compiler_static_works_CXX=yes
11614     fi
11615   fi
11616   $rm conftest*
11617   LDFLAGS="$save_LDFLAGS"
11618
11619fi
11620echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11621echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11622
11623if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11624    :
11625else
11626    lt_prog_compiler_static_CXX=
11627fi
11628
11629
11630echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11631echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11632if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11633  echo $ECHO_N "(cached) $ECHO_C" >&6
11634else
11635  lt_cv_prog_compiler_c_o_CXX=no
11636   $rm -r conftest 2>/dev/null
11637   mkdir conftest
11638   cd conftest
11639   mkdir out
11640   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11641
11642   lt_compiler_flag="-o out/conftest2.$ac_objext"
11643   # Insert the option either (1) after the last *FLAGS variable, or
11644   # (2) before a word containing "conftest.", or (3) at the end.
11645   # Note that $ac_compile itself does not contain backslashes and begins
11646   # with a dollar sign (not a hyphen), so the echo should work correctly.
11647   lt_compile=`echo "$ac_compile" | $SED \
11648   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11649   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11650   -e 's:$: $lt_compiler_flag:'`
11651   (eval echo "\"\$as_me:11651: $lt_compile\"" >&5)
11652   (eval "$lt_compile" 2>out/conftest.err)
11653   ac_status=$?
11654   cat out/conftest.err >&5
11655   echo "$as_me:11655: \$? = $ac_status" >&5
11656   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11657   then
11658     # The compiler can only warn and ignore the option if not recognized
11659     # So say no if there are warnings
11660     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11661     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11662     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11663       lt_cv_prog_compiler_c_o_CXX=yes
11664     fi
11665   fi
11666   chmod u+w . 2>&5
11667   $rm conftest*
11668   # SGI C++ compiler will create directory out/ii_files/ for
11669   # template instantiation
11670   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11671   $rm out/* && rmdir out
11672   cd ..
11673   rmdir conftest
11674   $rm conftest*
11675
11676fi
11677echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11678echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11679
11680
11681hard_links="nottested"
11682if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11683  # do not overwrite the value of need_locks provided by the user
11684  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11685echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11686  hard_links=yes
11687  $rm conftest*
11688  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11689  touch conftest.a
11690  ln conftest.a conftest.b 2>&5 || hard_links=no
11691  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11692  echo "$as_me:$LINENO: result: $hard_links" >&5
11693echo "${ECHO_T}$hard_links" >&6
11694  if test "$hard_links" = no; then
11695    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11696echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11697    need_locks=warn
11698  fi
11699else
11700  need_locks=no
11701fi
11702
11703echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11704echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11705
11706  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11707  case $host_os in
11708  aix4* | aix5*)
11709    # If we're using GNU nm, then we don't want the "-C" option.
11710    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11711    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11712      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'
11713    else
11714      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'
11715    fi
11716    ;;
11717  pw32*)
11718    export_symbols_cmds_CXX="$ltdll_cmds"
11719  ;;
11720  cygwin* | mingw*)
11721    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'
11722  ;;
11723  *)
11724    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11725  ;;
11726  esac
11727
11728echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11729echo "${ECHO_T}$ld_shlibs_CXX" >&6
11730test "$ld_shlibs_CXX" = no && can_build_shared=no
11731
11732#
11733# Do we need to explicitly link libc?
11734#
11735case "x$archive_cmds_need_lc_CXX" in
11736x|xyes)
11737  # Assume -lc should be added
11738  archive_cmds_need_lc_CXX=yes
11739
11740  if test "$enable_shared" = yes && test "$GCC" = yes; then
11741    case $archive_cmds_CXX in
11742    *'~'*)
11743      # FIXME: we may have to deal with multi-command sequences.
11744      ;;
11745    '$CC '*)
11746      # Test whether the compiler implicitly links with -lc since on some
11747      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11748      # to ld, don't add -lc before -lgcc.
11749      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11750echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11751      $rm conftest*
11752      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11753
11754      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755  (eval $ac_compile) 2>&5
11756  ac_status=$?
11757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758  (exit $ac_status); } 2>conftest.err; then
11759        soname=conftest
11760        lib=conftest
11761        libobjs=conftest.$ac_objext
11762        deplibs=
11763        wl=$lt_prog_compiler_wl_CXX
11764	pic_flag=$lt_prog_compiler_pic_CXX
11765        compiler_flags=-v
11766        linker_flags=-v
11767        verstring=
11768        output_objdir=.
11769        libname=conftest
11770        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11771        allow_undefined_flag_CXX=
11772        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11773  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11774  ac_status=$?
11775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776  (exit $ac_status); }
11777        then
11778	  archive_cmds_need_lc_CXX=no
11779        else
11780	  archive_cmds_need_lc_CXX=yes
11781        fi
11782        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11783      else
11784        cat conftest.err 1>&5
11785      fi
11786      $rm conftest*
11787      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11788echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11789      ;;
11790    esac
11791  fi
11792  ;;
11793esac
11794
11795echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11796echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11797library_names_spec=
11798libname_spec='lib$name'
11799soname_spec=
11800shrext_cmds=".so"
11801postinstall_cmds=
11802postuninstall_cmds=
11803finish_cmds=
11804finish_eval=
11805shlibpath_var=
11806shlibpath_overrides_runpath=unknown
11807version_type=none
11808dynamic_linker="$host_os ld.so"
11809sys_lib_dlsearch_path_spec="/lib /usr/lib"
11810if test "$GCC" = yes; then
11811  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11812  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11813    # if the path contains ";" then we assume it to be the separator
11814    # otherwise default to the standard path separator (i.e. ":") - it is
11815    # assumed that no part of a normal pathname contains ";" but that should
11816    # okay in the real world where ";" in dirpaths is itself problematic.
11817    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11818  else
11819    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11820  fi
11821else
11822  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11823fi
11824need_lib_prefix=unknown
11825hardcode_into_libs=no
11826
11827# when you set need_version to no, make sure it does not cause -set_version
11828# flags to be left without arguments
11829need_version=unknown
11830
11831case $host_os in
11832aix3*)
11833  version_type=linux
11834  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11835  shlibpath_var=LIBPATH
11836
11837  # AIX 3 has no versioning support, so we append a major version to the name.
11838  soname_spec='${libname}${release}${shared_ext}$major'
11839  ;;
11840
11841aix4* | aix5*)
11842  version_type=linux
11843  need_lib_prefix=no
11844  need_version=no
11845  hardcode_into_libs=yes
11846  if test "$host_cpu" = ia64; then
11847    # AIX 5 supports IA64
11848    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11849    shlibpath_var=LD_LIBRARY_PATH
11850  else
11851    # With GCC up to 2.95.x, collect2 would create an import file
11852    # for dependence libraries.  The import file would start with
11853    # the line `#! .'.  This would cause the generated library to
11854    # depend on `.', always an invalid library.  This was fixed in
11855    # development snapshots of GCC prior to 3.0.
11856    case $host_os in
11857      aix4 | aix4.[01] | aix4.[01].*)
11858      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11859	   echo ' yes '
11860	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11861	:
11862      else
11863	can_build_shared=no
11864      fi
11865      ;;
11866    esac
11867    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11868    # soname into executable. Probably we can add versioning support to
11869    # collect2, so additional links can be useful in future.
11870    if test "$aix_use_runtimelinking" = yes; then
11871      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11872      # instead of lib<name>.a to let people know that these are not
11873      # typical AIX shared libraries.
11874      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875    else
11876      # We preserve .a as extension for shared libraries through AIX4.2
11877      # and later when we are not doing run time linking.
11878      library_names_spec='${libname}${release}.a $libname.a'
11879      soname_spec='${libname}${release}${shared_ext}$major'
11880    fi
11881    shlibpath_var=LIBPATH
11882  fi
11883  ;;
11884
11885amigaos*)
11886  library_names_spec='$libname.ixlibrary $libname.a'
11887  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11888  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'
11889  ;;
11890
11891beos*)
11892  library_names_spec='${libname}${shared_ext}'
11893  dynamic_linker="$host_os ld.so"
11894  shlibpath_var=LIBRARY_PATH
11895  ;;
11896
11897bsdi[45]*)
11898  version_type=linux
11899  need_version=no
11900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11901  soname_spec='${libname}${release}${shared_ext}$major'
11902  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11903  shlibpath_var=LD_LIBRARY_PATH
11904  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11905  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11906  # the default ld.so.conf also contains /usr/contrib/lib and
11907  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11908  # libtool to hard-code these into programs
11909  ;;
11910
11911cygwin* | mingw* | pw32*)
11912  version_type=windows
11913  shrext_cmds=".dll"
11914  need_version=no
11915  need_lib_prefix=no
11916
11917  case $GCC,$host_os in
11918  yes,cygwin* | yes,mingw* | yes,pw32*)
11919    library_names_spec='$libname.dll.a'
11920    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11921    postinstall_cmds='base_file=`basename \${file}`~
11922      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11923      dldir=$destdir/`dirname \$dlpath`~
11924      test -d \$dldir || mkdir -p \$dldir~
11925      $install_prog $dir/$dlname \$dldir/$dlname~
11926      chmod a+x \$dldir/$dlname'
11927    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11928      dlpath=$dir/\$dldll~
11929       $rm \$dlpath'
11930    shlibpath_overrides_runpath=yes
11931
11932    case $host_os in
11933    cygwin*)
11934      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11935      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11936      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11937      ;;
11938    mingw*)
11939      # MinGW DLLs use traditional 'lib' prefix
11940      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11941      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11942      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11943        # It is most probably a Windows format PATH printed by
11944        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11945        # path with ; separators, and with drive letters. We can handle the
11946        # drive letters (cygwin fileutils understands them), so leave them,
11947        # especially as we might pass files found there to a mingw objdump,
11948        # which wouldn't understand a cygwinified path. Ahh.
11949        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11950      else
11951        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11952      fi
11953      ;;
11954    pw32*)
11955      # pw32 DLLs use 'pw' prefix rather than 'lib'
11956      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11957      ;;
11958    esac
11959    ;;
11960
11961  *)
11962    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11963    ;;
11964  esac
11965  dynamic_linker='Win32 ld.exe'
11966  # FIXME: first we should search . and the directory the executable is in
11967  shlibpath_var=PATH
11968  ;;
11969
11970darwin* | rhapsody*)
11971  dynamic_linker="$host_os dyld"
11972  version_type=darwin
11973  need_lib_prefix=no
11974  need_version=no
11975  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11976  soname_spec='${libname}${release}${major}$shared_ext'
11977  shlibpath_overrides_runpath=yes
11978  shlibpath_var=DYLD_LIBRARY_PATH
11979  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11980  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11981  if test "$GCC" = yes; then
11982    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"`
11983  else
11984    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11985  fi
11986  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11987  ;;
11988
11989dgux*)
11990  version_type=linux
11991  need_lib_prefix=no
11992  need_version=no
11993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11994  soname_spec='${libname}${release}${shared_ext}$major'
11995  shlibpath_var=LD_LIBRARY_PATH
11996  ;;
11997
11998freebsd1*)
11999  dynamic_linker=no
12000  ;;
12001
12002kfreebsd*-gnu)
12003  version_type=linux
12004  need_lib_prefix=no
12005  need_version=no
12006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12007  soname_spec='${libname}${release}${shared_ext}$major'
12008  shlibpath_var=LD_LIBRARY_PATH
12009  shlibpath_overrides_runpath=no
12010  hardcode_into_libs=yes
12011  dynamic_linker='GNU ld.so'
12012  ;;
12013
12014freebsd* | dragonfly*)
12015  # DragonFly does not have aout.  When/if they implement a new
12016  # versioning mechanism, adjust this.
12017  if test -x /usr/bin/objformat; then
12018    objformat=`/usr/bin/objformat`
12019  else
12020    case $host_os in
12021    freebsd[123]*) objformat=aout ;;
12022    *) objformat=elf ;;
12023    esac
12024  fi
12025  version_type=freebsd-$objformat
12026  case $version_type in
12027    freebsd-elf*)
12028      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12029      need_version=no
12030      need_lib_prefix=no
12031      ;;
12032    freebsd-*)
12033      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12034      need_version=yes
12035      ;;
12036  esac
12037  shlibpath_var=LD_LIBRARY_PATH
12038  case $host_os in
12039  freebsd2*)
12040    shlibpath_overrides_runpath=yes
12041    ;;
12042  freebsd3.[01]* | freebsdelf3.[01]*)
12043    shlibpath_overrides_runpath=yes
12044    hardcode_into_libs=yes
12045    ;;
12046  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12047  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12048    shlibpath_overrides_runpath=no
12049    hardcode_into_libs=yes
12050    ;;
12051  freebsd*) # from 4.6 on
12052    shlibpath_overrides_runpath=yes
12053    hardcode_into_libs=yes
12054    ;;
12055  esac
12056  ;;
12057
12058gnu*)
12059  version_type=linux
12060  need_lib_prefix=no
12061  need_version=no
12062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12063  soname_spec='${libname}${release}${shared_ext}$major'
12064  shlibpath_var=LD_LIBRARY_PATH
12065  hardcode_into_libs=yes
12066  ;;
12067
12068hpux9* | hpux10* | hpux11*)
12069  # Give a soname corresponding to the major version so that dld.sl refuses to
12070  # link against other versions.
12071  version_type=sunos
12072  need_lib_prefix=no
12073  need_version=no
12074  case $host_cpu in
12075  ia64*)
12076    shrext_cmds='.so'
12077    hardcode_into_libs=yes
12078    dynamic_linker="$host_os dld.so"
12079    shlibpath_var=LD_LIBRARY_PATH
12080    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12081    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12082    soname_spec='${libname}${release}${shared_ext}$major'
12083    if test "X$HPUX_IA64_MODE" = X32; then
12084      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12085    else
12086      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12087    fi
12088    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12089    ;;
12090   hppa*64*)
12091     shrext_cmds='.sl'
12092     hardcode_into_libs=yes
12093     dynamic_linker="$host_os dld.sl"
12094     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12095     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097     soname_spec='${libname}${release}${shared_ext}$major'
12098     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12099     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12100     ;;
12101   *)
12102    shrext_cmds='.sl'
12103    dynamic_linker="$host_os dld.sl"
12104    shlibpath_var=SHLIB_PATH
12105    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12106    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12107    soname_spec='${libname}${release}${shared_ext}$major'
12108    ;;
12109  esac
12110  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12111  postinstall_cmds='chmod 555 $lib'
12112  ;;
12113
12114interix3*)
12115  version_type=linux
12116  need_lib_prefix=no
12117  need_version=no
12118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12119  soname_spec='${libname}${release}${shared_ext}$major'
12120  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12121  shlibpath_var=LD_LIBRARY_PATH
12122  shlibpath_overrides_runpath=no
12123  hardcode_into_libs=yes
12124  ;;
12125
12126irix5* | irix6* | nonstopux*)
12127  case $host_os in
12128    nonstopux*) version_type=nonstopux ;;
12129    *)
12130	if test "$lt_cv_prog_gnu_ld" = yes; then
12131		version_type=linux
12132	else
12133		version_type=irix
12134	fi ;;
12135  esac
12136  need_lib_prefix=no
12137  need_version=no
12138  soname_spec='${libname}${release}${shared_ext}$major'
12139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12140  case $host_os in
12141  irix5* | nonstopux*)
12142    libsuff= shlibsuff=
12143    ;;
12144  *)
12145    case $LD in # libtool.m4 will add one of these switches to LD
12146    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12147      libsuff= shlibsuff= libmagic=32-bit;;
12148    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12149      libsuff=32 shlibsuff=N32 libmagic=N32;;
12150    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12151      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12152    *) libsuff= shlibsuff= libmagic=never-match;;
12153    esac
12154    ;;
12155  esac
12156  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12157  shlibpath_overrides_runpath=no
12158  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12159  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12160  hardcode_into_libs=yes
12161  ;;
12162
12163# No shared lib support for Linux oldld, aout, or coff.
12164linux*oldld* | linux*aout* | linux*coff*)
12165  dynamic_linker=no
12166  ;;
12167
12168# This must be Linux ELF.
12169linux*)
12170  version_type=linux
12171  need_lib_prefix=no
12172  need_version=no
12173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174  soname_spec='${libname}${release}${shared_ext}$major'
12175  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12176  shlibpath_var=LD_LIBRARY_PATH
12177  shlibpath_overrides_runpath=no
12178  # This implies no fast_install, which is unacceptable.
12179  # Some rework will be needed to allow for fast_install
12180  # before this can be enabled.
12181  hardcode_into_libs=yes
12182
12183  # Append ld.so.conf contents to the search path
12184  if test -f /etc/ld.so.conf; then
12185    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' ' '`
12186    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12187  fi
12188
12189  # We used to test for /lib/ld.so.1 and disable shared libraries on
12190  # powerpc, because MkLinux only supported shared libraries with the
12191  # GNU dynamic linker.  Since this was broken with cross compilers,
12192  # most powerpc-linux boxes support dynamic linking these days and
12193  # people can always --disable-shared, the test was removed, and we
12194  # assume the GNU/Linux dynamic linker is in use.
12195  dynamic_linker='GNU/Linux ld.so'
12196  ;;
12197
12198knetbsd*-gnu)
12199  version_type=linux
12200  need_lib_prefix=no
12201  need_version=no
12202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12203  soname_spec='${libname}${release}${shared_ext}$major'
12204  shlibpath_var=LD_LIBRARY_PATH
12205  shlibpath_overrides_runpath=no
12206  hardcode_into_libs=yes
12207  dynamic_linker='GNU ld.so'
12208  ;;
12209
12210netbsd*)
12211  version_type=sunos
12212  need_lib_prefix=no
12213  need_version=no
12214  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12215    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12216    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12217    dynamic_linker='NetBSD (a.out) ld.so'
12218  else
12219    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12220    soname_spec='${libname}${release}${shared_ext}$major'
12221    dynamic_linker='NetBSD ld.elf_so'
12222  fi
12223  shlibpath_var=LD_LIBRARY_PATH
12224  shlibpath_overrides_runpath=yes
12225  hardcode_into_libs=yes
12226  ;;
12227
12228newsos6)
12229  version_type=linux
12230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12231  shlibpath_var=LD_LIBRARY_PATH
12232  shlibpath_overrides_runpath=yes
12233  ;;
12234
12235nto-qnx*)
12236  version_type=linux
12237  need_lib_prefix=no
12238  need_version=no
12239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12240  soname_spec='${libname}${release}${shared_ext}$major'
12241  shlibpath_var=LD_LIBRARY_PATH
12242  shlibpath_overrides_runpath=yes
12243  ;;
12244
12245openbsd*)
12246  version_type=sunos
12247  sys_lib_dlsearch_path_spec="/usr/lib"
12248  need_lib_prefix=no
12249  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12250  case $host_os in
12251    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12252    *)                         need_version=no  ;;
12253  esac
12254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12255  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12256  shlibpath_var=LD_LIBRARY_PATH
12257  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12258    case $host_os in
12259      openbsd2.[89] | openbsd2.[89].*)
12260	shlibpath_overrides_runpath=no
12261	;;
12262      *)
12263	shlibpath_overrides_runpath=yes
12264	;;
12265      esac
12266  else
12267    shlibpath_overrides_runpath=yes
12268  fi
12269  ;;
12270
12271os2*)
12272  libname_spec='$name'
12273  shrext_cmds=".dll"
12274  need_lib_prefix=no
12275  library_names_spec='$libname${shared_ext} $libname.a'
12276  dynamic_linker='OS/2 ld.exe'
12277  shlibpath_var=LIBPATH
12278  ;;
12279
12280osf3* | osf4* | osf5*)
12281  version_type=osf
12282  need_lib_prefix=no
12283  need_version=no
12284  soname_spec='${libname}${release}${shared_ext}$major'
12285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12286  shlibpath_var=LD_LIBRARY_PATH
12287  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12288  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12289  ;;
12290
12291solaris*)
12292  version_type=linux
12293  need_lib_prefix=no
12294  need_version=no
12295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12296  soname_spec='${libname}${release}${shared_ext}$major'
12297  shlibpath_var=LD_LIBRARY_PATH
12298  shlibpath_overrides_runpath=yes
12299  hardcode_into_libs=yes
12300  # ldd complains unless libraries are executable
12301  postinstall_cmds='chmod +x $lib'
12302  ;;
12303
12304sunos4*)
12305  version_type=sunos
12306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12307  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12308  shlibpath_var=LD_LIBRARY_PATH
12309  shlibpath_overrides_runpath=yes
12310  if test "$with_gnu_ld" = yes; then
12311    need_lib_prefix=no
12312  fi
12313  need_version=yes
12314  ;;
12315
12316sysv4 | sysv4.3*)
12317  version_type=linux
12318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319  soname_spec='${libname}${release}${shared_ext}$major'
12320  shlibpath_var=LD_LIBRARY_PATH
12321  case $host_vendor in
12322    sni)
12323      shlibpath_overrides_runpath=no
12324      need_lib_prefix=no
12325      export_dynamic_flag_spec='${wl}-Blargedynsym'
12326      runpath_var=LD_RUN_PATH
12327      ;;
12328    siemens)
12329      need_lib_prefix=no
12330      ;;
12331    motorola)
12332      need_lib_prefix=no
12333      need_version=no
12334      shlibpath_overrides_runpath=no
12335      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12336      ;;
12337  esac
12338  ;;
12339
12340sysv4*MP*)
12341  if test -d /usr/nec ;then
12342    version_type=linux
12343    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12344    soname_spec='$libname${shared_ext}.$major'
12345    shlibpath_var=LD_LIBRARY_PATH
12346  fi
12347  ;;
12348
12349sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12350  version_type=freebsd-elf
12351  need_lib_prefix=no
12352  need_version=no
12353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12354  soname_spec='${libname}${release}${shared_ext}$major'
12355  shlibpath_var=LD_LIBRARY_PATH
12356  hardcode_into_libs=yes
12357  if test "$with_gnu_ld" = yes; then
12358    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12359    shlibpath_overrides_runpath=no
12360  else
12361    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12362    shlibpath_overrides_runpath=yes
12363    case $host_os in
12364      sco3.2v5*)
12365        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12366	;;
12367    esac
12368  fi
12369  sys_lib_dlsearch_path_spec='/usr/lib'
12370  ;;
12371
12372uts4*)
12373  version_type=linux
12374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12375  soname_spec='${libname}${release}${shared_ext}$major'
12376  shlibpath_var=LD_LIBRARY_PATH
12377  ;;
12378
12379*)
12380  dynamic_linker=no
12381  ;;
12382esac
12383echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12384echo "${ECHO_T}$dynamic_linker" >&6
12385test "$dynamic_linker" = no && can_build_shared=no
12386
12387variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12388if test "$GCC" = yes; then
12389  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12390fi
12391
12392echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12393echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12394hardcode_action_CXX=
12395if test -n "$hardcode_libdir_flag_spec_CXX" || \
12396   test -n "$runpath_var_CXX" || \
12397   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12398
12399  # We can hardcode non-existant directories.
12400  if test "$hardcode_direct_CXX" != no &&
12401     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12402     # have to relink, otherwise we might link with an installed library
12403     # when we should be linking with a yet-to-be-installed one
12404     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12405     test "$hardcode_minus_L_CXX" != no; then
12406    # Linking always hardcodes the temporary library directory.
12407    hardcode_action_CXX=relink
12408  else
12409    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12410    hardcode_action_CXX=immediate
12411  fi
12412else
12413  # We cannot hardcode anything, or else we can only hardcode existing
12414  # directories.
12415  hardcode_action_CXX=unsupported
12416fi
12417echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12418echo "${ECHO_T}$hardcode_action_CXX" >&6
12419
12420if test "$hardcode_action_CXX" = relink; then
12421  # Fast installation is not supported
12422  enable_fast_install=no
12423elif test "$shlibpath_overrides_runpath" = yes ||
12424     test "$enable_shared" = no; then
12425  # Fast installation is not necessary
12426  enable_fast_install=needless
12427fi
12428
12429
12430# The else clause should only fire when bootstrapping the
12431# libtool distribution, otherwise you forgot to ship ltmain.sh
12432# with your package, and you will get complaints that there are
12433# no rules to generate ltmain.sh.
12434if test -f "$ltmain"; then
12435  # See if we are running on zsh, and set the options which allow our commands through
12436  # without removal of \ escapes.
12437  if test -n "${ZSH_VERSION+set}" ; then
12438    setopt NO_GLOB_SUBST
12439  fi
12440  # Now quote all the things that may contain metacharacters while being
12441  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12442  # variables and quote the copies for generation of the libtool script.
12443  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12444    SED SHELL STRIP \
12445    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12446    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12447    deplibs_check_method reload_flag reload_cmds need_locks \
12448    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12449    lt_cv_sys_global_symbol_to_c_name_address \
12450    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12451    old_postinstall_cmds old_postuninstall_cmds \
12452    compiler_CXX \
12453    CC_CXX \
12454    LD_CXX \
12455    lt_prog_compiler_wl_CXX \
12456    lt_prog_compiler_pic_CXX \
12457    lt_prog_compiler_static_CXX \
12458    lt_prog_compiler_no_builtin_flag_CXX \
12459    export_dynamic_flag_spec_CXX \
12460    thread_safe_flag_spec_CXX \
12461    whole_archive_flag_spec_CXX \
12462    enable_shared_with_static_runtimes_CXX \
12463    old_archive_cmds_CXX \
12464    old_archive_from_new_cmds_CXX \
12465    predep_objects_CXX \
12466    postdep_objects_CXX \
12467    predeps_CXX \
12468    postdeps_CXX \
12469    compiler_lib_search_path_CXX \
12470    archive_cmds_CXX \
12471    archive_expsym_cmds_CXX \
12472    postinstall_cmds_CXX \
12473    postuninstall_cmds_CXX \
12474    old_archive_from_expsyms_cmds_CXX \
12475    allow_undefined_flag_CXX \
12476    no_undefined_flag_CXX \
12477    export_symbols_cmds_CXX \
12478    hardcode_libdir_flag_spec_CXX \
12479    hardcode_libdir_flag_spec_ld_CXX \
12480    hardcode_libdir_separator_CXX \
12481    hardcode_automatic_CXX \
12482    module_cmds_CXX \
12483    module_expsym_cmds_CXX \
12484    lt_cv_prog_compiler_c_o_CXX \
12485    exclude_expsyms_CXX \
12486    include_expsyms_CXX; do
12487
12488    case $var in
12489    old_archive_cmds_CXX | \
12490    old_archive_from_new_cmds_CXX | \
12491    archive_cmds_CXX | \
12492    archive_expsym_cmds_CXX | \
12493    module_cmds_CXX | \
12494    module_expsym_cmds_CXX | \
12495    old_archive_from_expsyms_cmds_CXX | \
12496    export_symbols_cmds_CXX | \
12497    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12498    postinstall_cmds | postuninstall_cmds | \
12499    old_postinstall_cmds | old_postuninstall_cmds | \
12500    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12501      # Double-quote double-evaled strings.
12502      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12503      ;;
12504    *)
12505      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12506      ;;
12507    esac
12508  done
12509
12510  case $lt_echo in
12511  *'\$0 --fallback-echo"')
12512    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12513    ;;
12514  esac
12515
12516cfgfile="$ofile"
12517
12518  cat <<__EOF__ >> "$cfgfile"
12519# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12520
12521# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12522
12523# Shell to use when invoking shell scripts.
12524SHELL=$lt_SHELL
12525
12526# Whether or not to build shared libraries.
12527build_libtool_libs=$enable_shared
12528
12529# Whether or not to build static libraries.
12530build_old_libs=$enable_static
12531
12532# Whether or not to add -lc for building shared libraries.
12533build_libtool_need_lc=$archive_cmds_need_lc_CXX
12534
12535# Whether or not to disallow shared libs when runtime libs are static
12536allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12537
12538# Whether or not to optimize for fast installation.
12539fast_install=$enable_fast_install
12540
12541# The host system.
12542host_alias=$host_alias
12543host=$host
12544host_os=$host_os
12545
12546# The build system.
12547build_alias=$build_alias
12548build=$build
12549build_os=$build_os
12550
12551# An echo program that does not interpret backslashes.
12552echo=$lt_echo
12553
12554# The archiver.
12555AR=$lt_AR
12556AR_FLAGS=$lt_AR_FLAGS
12557
12558# A C compiler.
12559LTCC=$lt_LTCC
12560
12561# LTCC compiler flags.
12562LTCFLAGS=$lt_LTCFLAGS
12563
12564# A language-specific compiler.
12565CC=$lt_compiler_CXX
12566
12567# Is the compiler the GNU C compiler?
12568with_gcc=$GCC_CXX
12569
12570# An ERE matcher.
12571EGREP=$lt_EGREP
12572
12573# The linker used to build libraries.
12574LD=$lt_LD_CXX
12575
12576# Whether we need hard or soft links.
12577LN_S=$lt_LN_S
12578
12579# A BSD-compatible nm program.
12580NM=$lt_NM
12581
12582# A symbol stripping program
12583STRIP=$lt_STRIP
12584
12585# Used to examine libraries when file_magic_cmd begins "file"
12586MAGIC_CMD=$MAGIC_CMD
12587
12588# Used on cygwin: DLL creation program.
12589DLLTOOL="$DLLTOOL"
12590
12591# Used on cygwin: object dumper.
12592OBJDUMP="$OBJDUMP"
12593
12594# Used on cygwin: assembler.
12595AS="$AS"
12596
12597# The name of the directory that contains temporary libtool files.
12598objdir=$objdir
12599
12600# How to create reloadable object files.
12601reload_flag=$lt_reload_flag
12602reload_cmds=$lt_reload_cmds
12603
12604# How to pass a linker flag through the compiler.
12605wl=$lt_lt_prog_compiler_wl_CXX
12606
12607# Object file suffix (normally "o").
12608objext="$ac_objext"
12609
12610# Old archive suffix (normally "a").
12611libext="$libext"
12612
12613# Shared library suffix (normally ".so").
12614shrext_cmds='$shrext_cmds'
12615
12616# Executable file suffix (normally "").
12617exeext="$exeext"
12618
12619# Additional compiler flags for building library objects.
12620pic_flag=$lt_lt_prog_compiler_pic_CXX
12621pic_mode=$pic_mode
12622
12623# What is the maximum length of a command?
12624max_cmd_len=$lt_cv_sys_max_cmd_len
12625
12626# Does compiler simultaneously support -c and -o options?
12627compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12628
12629# Must we lock files when doing compilation?
12630need_locks=$lt_need_locks
12631
12632# Do we need the lib prefix for modules?
12633need_lib_prefix=$need_lib_prefix
12634
12635# Do we need a version for libraries?
12636need_version=$need_version
12637
12638# Whether dlopen is supported.
12639dlopen_support=$enable_dlopen
12640
12641# Whether dlopen of programs is supported.
12642dlopen_self=$enable_dlopen_self
12643
12644# Whether dlopen of statically linked programs is supported.
12645dlopen_self_static=$enable_dlopen_self_static
12646
12647# Compiler flag to prevent dynamic linking.
12648link_static_flag=$lt_lt_prog_compiler_static_CXX
12649
12650# Compiler flag to turn off builtin functions.
12651no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12652
12653# Compiler flag to allow reflexive dlopens.
12654export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12655
12656# Compiler flag to generate shared objects directly from archives.
12657whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12658
12659# Compiler flag to generate thread-safe objects.
12660thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12661
12662# Library versioning type.
12663version_type=$version_type
12664
12665# Format of library name prefix.
12666libname_spec=$lt_libname_spec
12667
12668# List of archive names.  First name is the real one, the rest are links.
12669# The last name is the one that the linker finds with -lNAME.
12670library_names_spec=$lt_library_names_spec
12671
12672# The coded name of the library, if different from the real name.
12673soname_spec=$lt_soname_spec
12674
12675# Commands used to build and install an old-style archive.
12676RANLIB=$lt_RANLIB
12677old_archive_cmds=$lt_old_archive_cmds_CXX
12678old_postinstall_cmds=$lt_old_postinstall_cmds
12679old_postuninstall_cmds=$lt_old_postuninstall_cmds
12680
12681# Create an old-style archive from a shared archive.
12682old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12683
12684# Create a temporary old-style archive to link instead of a shared archive.
12685old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12686
12687# Commands used to build and install a shared archive.
12688archive_cmds=$lt_archive_cmds_CXX
12689archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12690postinstall_cmds=$lt_postinstall_cmds
12691postuninstall_cmds=$lt_postuninstall_cmds
12692
12693# Commands used to build a loadable module (assumed same as above if empty)
12694module_cmds=$lt_module_cmds_CXX
12695module_expsym_cmds=$lt_module_expsym_cmds_CXX
12696
12697# Commands to strip libraries.
12698old_striplib=$lt_old_striplib
12699striplib=$lt_striplib
12700
12701# Dependencies to place before the objects being linked to create a
12702# shared library.
12703predep_objects=$lt_predep_objects_CXX
12704
12705# Dependencies to place after the objects being linked to create a
12706# shared library.
12707postdep_objects=$lt_postdep_objects_CXX
12708
12709# Dependencies to place before the objects being linked to create a
12710# shared library.
12711predeps=$lt_predeps_CXX
12712
12713# Dependencies to place after the objects being linked to create a
12714# shared library.
12715postdeps=$lt_postdeps_CXX
12716
12717# The library search path used internally by the compiler when linking
12718# a shared library.
12719compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12720
12721# Method to check whether dependent libraries are shared objects.
12722deplibs_check_method=$lt_deplibs_check_method
12723
12724# Command to use when deplibs_check_method == file_magic.
12725file_magic_cmd=$lt_file_magic_cmd
12726
12727# Flag that allows shared libraries with undefined symbols to be built.
12728allow_undefined_flag=$lt_allow_undefined_flag_CXX
12729
12730# Flag that forces no undefined symbols.
12731no_undefined_flag=$lt_no_undefined_flag_CXX
12732
12733# Commands used to finish a libtool library installation in a directory.
12734finish_cmds=$lt_finish_cmds
12735
12736# Same as above, but a single script fragment to be evaled but not shown.
12737finish_eval=$lt_finish_eval
12738
12739# Take the output of nm and produce a listing of raw symbols and C names.
12740global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12741
12742# Transform the output of nm in a proper C declaration
12743global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12744
12745# Transform the output of nm in a C name address pair
12746global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12747
12748# This is the shared library runtime path variable.
12749runpath_var=$runpath_var
12750
12751# This is the shared library path variable.
12752shlibpath_var=$shlibpath_var
12753
12754# Is shlibpath searched before the hard-coded library search path?
12755shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12756
12757# How to hardcode a shared library path into an executable.
12758hardcode_action=$hardcode_action_CXX
12759
12760# Whether we should hardcode library paths into libraries.
12761hardcode_into_libs=$hardcode_into_libs
12762
12763# Flag to hardcode \$libdir into a binary during linking.
12764# This must work even if \$libdir does not exist.
12765hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12766
12767# If ld is used when linking, flag to hardcode \$libdir into
12768# a binary during linking. This must work even if \$libdir does
12769# not exist.
12770hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12771
12772# Whether we need a single -rpath flag with a separated argument.
12773hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12774
12775# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12776# resulting binary.
12777hardcode_direct=$hardcode_direct_CXX
12778
12779# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12780# resulting binary.
12781hardcode_minus_L=$hardcode_minus_L_CXX
12782
12783# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12784# the resulting binary.
12785hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12786
12787# Set to yes if building a shared library automatically hardcodes DIR into the library
12788# and all subsequent libraries and executables linked against it.
12789hardcode_automatic=$hardcode_automatic_CXX
12790
12791# Variables whose values should be saved in libtool wrapper scripts and
12792# restored at relink time.
12793variables_saved_for_relink="$variables_saved_for_relink"
12794
12795# Whether libtool must link a program against all its dependency libraries.
12796link_all_deplibs=$link_all_deplibs_CXX
12797
12798# Compile-time system search path for libraries
12799sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12800
12801# Run-time system search path for libraries
12802sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12803
12804# Fix the shell variable \$srcfile for the compiler.
12805fix_srcfile_path="$fix_srcfile_path_CXX"
12806
12807# Set to yes if exported symbols are required.
12808always_export_symbols=$always_export_symbols_CXX
12809
12810# The commands to list exported symbols.
12811export_symbols_cmds=$lt_export_symbols_cmds_CXX
12812
12813# The commands to extract the exported symbol list from a shared archive.
12814extract_expsyms_cmds=$lt_extract_expsyms_cmds
12815
12816# Symbols that should not be listed in the preloaded symbols.
12817exclude_expsyms=$lt_exclude_expsyms_CXX
12818
12819# Symbols that must always be exported.
12820include_expsyms=$lt_include_expsyms_CXX
12821
12822# ### END LIBTOOL TAG CONFIG: $tagname
12823
12824__EOF__
12825
12826
12827else
12828  # If there is no Makefile yet, we rely on a make rule to execute
12829  # `config.status --recheck' to rerun these tests and create the
12830  # libtool script then.
12831  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12832  if test -f "$ltmain_in"; then
12833    test -f Makefile && make "$ltmain"
12834  fi
12835fi
12836
12837
12838ac_ext=c
12839ac_cpp='$CPP $CPPFLAGS'
12840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842ac_compiler_gnu=$ac_cv_c_compiler_gnu
12843
12844CC=$lt_save_CC
12845LDCXX=$LD
12846LD=$lt_save_LD
12847GCC=$lt_save_GCC
12848with_gnu_ldcxx=$with_gnu_ld
12849with_gnu_ld=$lt_save_with_gnu_ld
12850lt_cv_path_LDCXX=$lt_cv_path_LD
12851lt_cv_path_LD=$lt_save_path_LD
12852lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12853lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12854
12855	else
12856	  tagname=""
12857	fi
12858	;;
12859
12860      F77)
12861	if test -n "$F77" && test "X$F77" != "Xno"; then
12862
12863ac_ext=f
12864ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12865ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12867
12868
12869archive_cmds_need_lc_F77=no
12870allow_undefined_flag_F77=
12871always_export_symbols_F77=no
12872archive_expsym_cmds_F77=
12873export_dynamic_flag_spec_F77=
12874hardcode_direct_F77=no
12875hardcode_libdir_flag_spec_F77=
12876hardcode_libdir_flag_spec_ld_F77=
12877hardcode_libdir_separator_F77=
12878hardcode_minus_L_F77=no
12879hardcode_automatic_F77=no
12880module_cmds_F77=
12881module_expsym_cmds_F77=
12882link_all_deplibs_F77=unknown
12883old_archive_cmds_F77=$old_archive_cmds
12884no_undefined_flag_F77=
12885whole_archive_flag_spec_F77=
12886enable_shared_with_static_runtimes_F77=no
12887
12888# Source file extension for f77 test sources.
12889ac_ext=f
12890
12891# Object file extension for compiled f77 test sources.
12892objext=o
12893objext_F77=$objext
12894
12895# Code to be used in simple compile tests
12896lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12897
12898# Code to be used in simple link tests
12899lt_simple_link_test_code="      program t\n      end\n"
12900
12901# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12902
12903# If no C compiler was specified, use CC.
12904LTCC=${LTCC-"$CC"}
12905
12906# If no C compiler flags were specified, use CFLAGS.
12907LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12908
12909# Allow CC to be a program name with arguments.
12910compiler=$CC
12911
12912
12913# save warnings/boilerplate of simple test code
12914ac_outfile=conftest.$ac_objext
12915printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12916eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12917_lt_compiler_boilerplate=`cat conftest.err`
12918$rm conftest*
12919
12920ac_outfile=conftest.$ac_objext
12921printf "$lt_simple_link_test_code" >conftest.$ac_ext
12922eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12923_lt_linker_boilerplate=`cat conftest.err`
12924$rm conftest*
12925
12926
12927# Allow CC to be a program name with arguments.
12928lt_save_CC="$CC"
12929CC=${F77-"f77"}
12930compiler=$CC
12931compiler_F77=$CC
12932for cc_temp in $compiler""; do
12933  case $cc_temp in
12934    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12935    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12936    \-*) ;;
12937    *) break;;
12938  esac
12939done
12940cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12941
12942
12943echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12944echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12945echo "$as_me:$LINENO: result: $can_build_shared" >&5
12946echo "${ECHO_T}$can_build_shared" >&6
12947
12948echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12949echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12950test "$can_build_shared" = "no" && enable_shared=no
12951
12952# On AIX, shared libraries and static libraries use the same namespace, and
12953# are all built from PIC.
12954case $host_os in
12955aix3*)
12956  test "$enable_shared" = yes && enable_static=no
12957  if test -n "$RANLIB"; then
12958    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12959    postinstall_cmds='$RANLIB $lib'
12960  fi
12961  ;;
12962aix4* | aix5*)
12963  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12964    test "$enable_shared" = yes && enable_static=no
12965  fi
12966  ;;
12967esac
12968echo "$as_me:$LINENO: result: $enable_shared" >&5
12969echo "${ECHO_T}$enable_shared" >&6
12970
12971echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12972echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12973# Make sure either enable_shared or enable_static is yes.
12974test "$enable_shared" = yes || enable_static=yes
12975echo "$as_me:$LINENO: result: $enable_static" >&5
12976echo "${ECHO_T}$enable_static" >&6
12977
12978GCC_F77="$G77"
12979LD_F77="$LD"
12980
12981lt_prog_compiler_wl_F77=
12982lt_prog_compiler_pic_F77=
12983lt_prog_compiler_static_F77=
12984
12985echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12986echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12987
12988  if test "$GCC" = yes; then
12989    lt_prog_compiler_wl_F77='-Wl,'
12990    lt_prog_compiler_static_F77='-static'
12991
12992    case $host_os in
12993      aix*)
12994      # All AIX code is PIC.
12995      if test "$host_cpu" = ia64; then
12996	# AIX 5 now supports IA64 processor
12997	lt_prog_compiler_static_F77='-Bstatic'
12998      fi
12999      ;;
13000
13001    amigaos*)
13002      # FIXME: we need at least 68020 code to build shared libraries, but
13003      # adding the `-m68020' flag to GCC prevents building anything better,
13004      # like `-m68040'.
13005      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13006      ;;
13007
13008    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13009      # PIC is the default for these OSes.
13010      ;;
13011
13012    mingw* | pw32* | os2*)
13013      # This hack is so that the source file can tell whether it is being
13014      # built for inclusion in a dll (and should export symbols for example).
13015      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13016      ;;
13017
13018    darwin* | rhapsody*)
13019      # PIC is the default on this platform
13020      # Common symbols not allowed in MH_DYLIB files
13021      lt_prog_compiler_pic_F77='-fno-common'
13022      ;;
13023
13024    interix3*)
13025      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13026      # Instead, we relocate shared libraries at runtime.
13027      ;;
13028
13029    msdosdjgpp*)
13030      # Just because we use GCC doesn't mean we suddenly get shared libraries
13031      # on systems that don't support them.
13032      lt_prog_compiler_can_build_shared_F77=no
13033      enable_shared=no
13034      ;;
13035
13036    sysv4*MP*)
13037      if test -d /usr/nec; then
13038	lt_prog_compiler_pic_F77=-Kconform_pic
13039      fi
13040      ;;
13041
13042    hpux*)
13043      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13044      # not for PA HP-UX.
13045      case $host_cpu in
13046      hppa*64*|ia64*)
13047	# +Z the default
13048	;;
13049      *)
13050	lt_prog_compiler_pic_F77='-fPIC'
13051	;;
13052      esac
13053      ;;
13054
13055    *)
13056      lt_prog_compiler_pic_F77='-fPIC'
13057      ;;
13058    esac
13059  else
13060    # PORTME Check for flag to pass linker flags through the system compiler.
13061    case $host_os in
13062    aix*)
13063      lt_prog_compiler_wl_F77='-Wl,'
13064      if test "$host_cpu" = ia64; then
13065	# AIX 5 now supports IA64 processor
13066	lt_prog_compiler_static_F77='-Bstatic'
13067      else
13068	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13069      fi
13070      ;;
13071      darwin*)
13072        # PIC is the default on this platform
13073        # Common symbols not allowed in MH_DYLIB files
13074       case $cc_basename in
13075         xlc*)
13076         lt_prog_compiler_pic_F77='-qnocommon'
13077         lt_prog_compiler_wl_F77='-Wl,'
13078         ;;
13079       esac
13080       ;;
13081
13082    mingw* | pw32* | os2*)
13083      # This hack is so that the source file can tell whether it is being
13084      # built for inclusion in a dll (and should export symbols for example).
13085      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13086      ;;
13087
13088    hpux9* | hpux10* | hpux11*)
13089      lt_prog_compiler_wl_F77='-Wl,'
13090      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13091      # not for PA HP-UX.
13092      case $host_cpu in
13093      hppa*64*|ia64*)
13094	# +Z the default
13095	;;
13096      *)
13097	lt_prog_compiler_pic_F77='+Z'
13098	;;
13099      esac
13100      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13101      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13102      ;;
13103
13104    irix5* | irix6* | nonstopux*)
13105      lt_prog_compiler_wl_F77='-Wl,'
13106      # PIC (with -KPIC) is the default.
13107      lt_prog_compiler_static_F77='-non_shared'
13108      ;;
13109
13110    newsos6)
13111      lt_prog_compiler_pic_F77='-KPIC'
13112      lt_prog_compiler_static_F77='-Bstatic'
13113      ;;
13114
13115    linux*)
13116      case $cc_basename in
13117      icc* | ecc*)
13118	lt_prog_compiler_wl_F77='-Wl,'
13119	lt_prog_compiler_pic_F77='-KPIC'
13120	lt_prog_compiler_static_F77='-static'
13121        ;;
13122      pgcc* | pgf77* | pgf90* | pgf95*)
13123        # Portland Group compilers (*not* the Pentium gcc compiler,
13124	# which looks to be a dead project)
13125	lt_prog_compiler_wl_F77='-Wl,'
13126	lt_prog_compiler_pic_F77='-fpic'
13127	lt_prog_compiler_static_F77='-Bstatic'
13128        ;;
13129      ccc*)
13130        lt_prog_compiler_wl_F77='-Wl,'
13131        # All Alpha code is PIC.
13132        lt_prog_compiler_static_F77='-non_shared'
13133        ;;
13134      esac
13135      ;;
13136
13137    osf3* | osf4* | osf5*)
13138      lt_prog_compiler_wl_F77='-Wl,'
13139      # All OSF/1 code is PIC.
13140      lt_prog_compiler_static_F77='-non_shared'
13141      ;;
13142
13143    solaris*)
13144      lt_prog_compiler_pic_F77='-KPIC'
13145      lt_prog_compiler_static_F77='-Bstatic'
13146      case $cc_basename in
13147      f77* | f90* | f95*)
13148	lt_prog_compiler_wl_F77='-Qoption ld ';;
13149      *)
13150	lt_prog_compiler_wl_F77='-Wl,';;
13151      esac
13152      ;;
13153
13154    sunos4*)
13155      lt_prog_compiler_wl_F77='-Qoption ld '
13156      lt_prog_compiler_pic_F77='-PIC'
13157      lt_prog_compiler_static_F77='-Bstatic'
13158      ;;
13159
13160    sysv4 | sysv4.2uw2* | sysv4.3*)
13161      lt_prog_compiler_wl_F77='-Wl,'
13162      lt_prog_compiler_pic_F77='-KPIC'
13163      lt_prog_compiler_static_F77='-Bstatic'
13164      ;;
13165
13166    sysv4*MP*)
13167      if test -d /usr/nec ;then
13168	lt_prog_compiler_pic_F77='-Kconform_pic'
13169	lt_prog_compiler_static_F77='-Bstatic'
13170      fi
13171      ;;
13172
13173    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13174      lt_prog_compiler_wl_F77='-Wl,'
13175      lt_prog_compiler_pic_F77='-KPIC'
13176      lt_prog_compiler_static_F77='-Bstatic'
13177      ;;
13178
13179    unicos*)
13180      lt_prog_compiler_wl_F77='-Wl,'
13181      lt_prog_compiler_can_build_shared_F77=no
13182      ;;
13183
13184    uts4*)
13185      lt_prog_compiler_pic_F77='-pic'
13186      lt_prog_compiler_static_F77='-Bstatic'
13187      ;;
13188
13189    *)
13190      lt_prog_compiler_can_build_shared_F77=no
13191      ;;
13192    esac
13193  fi
13194
13195echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13196echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13197
13198#
13199# Check to make sure the PIC flag actually works.
13200#
13201if test -n "$lt_prog_compiler_pic_F77"; then
13202
13203echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13204echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13205if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13206  echo $ECHO_N "(cached) $ECHO_C" >&6
13207else
13208  lt_prog_compiler_pic_works_F77=no
13209  ac_outfile=conftest.$ac_objext
13210   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13211   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13212   # Insert the option either (1) after the last *FLAGS variable, or
13213   # (2) before a word containing "conftest.", or (3) at the end.
13214   # Note that $ac_compile itself does not contain backslashes and begins
13215   # with a dollar sign (not a hyphen), so the echo should work correctly.
13216   # The option is referenced via a variable to avoid confusing sed.
13217   lt_compile=`echo "$ac_compile" | $SED \
13218   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13219   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13220   -e 's:$: $lt_compiler_flag:'`
13221   (eval echo "\"\$as_me:13221: $lt_compile\"" >&5)
13222   (eval "$lt_compile" 2>conftest.err)
13223   ac_status=$?
13224   cat conftest.err >&5
13225   echo "$as_me:13225: \$? = $ac_status" >&5
13226   if (exit $ac_status) && test -s "$ac_outfile"; then
13227     # The compiler can only warn and ignore the option if not recognized
13228     # So say no if there are warnings other than the usual output.
13229     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13230     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13231     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13232       lt_prog_compiler_pic_works_F77=yes
13233     fi
13234   fi
13235   $rm conftest*
13236
13237fi
13238echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13239echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13240
13241if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13242    case $lt_prog_compiler_pic_F77 in
13243     "" | " "*) ;;
13244     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13245     esac
13246else
13247    lt_prog_compiler_pic_F77=
13248     lt_prog_compiler_can_build_shared_F77=no
13249fi
13250
13251fi
13252case $host_os in
13253  # For platforms which do not support PIC, -DPIC is meaningless:
13254  *djgpp*)
13255    lt_prog_compiler_pic_F77=
13256    ;;
13257  *)
13258    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13259    ;;
13260esac
13261
13262#
13263# Check to make sure the static flag actually works.
13264#
13265wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13266echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13267echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13268if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13269  echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
13271  lt_prog_compiler_static_works_F77=no
13272   save_LDFLAGS="$LDFLAGS"
13273   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13274   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13275   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13276     # The linker can only warn and ignore the option if not recognized
13277     # So say no if there are warnings
13278     if test -s conftest.err; then
13279       # Append any errors to the config.log.
13280       cat conftest.err 1>&5
13281       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13282       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13283       if diff conftest.exp conftest.er2 >/dev/null; then
13284         lt_prog_compiler_static_works_F77=yes
13285       fi
13286     else
13287       lt_prog_compiler_static_works_F77=yes
13288     fi
13289   fi
13290   $rm conftest*
13291   LDFLAGS="$save_LDFLAGS"
13292
13293fi
13294echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13295echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13296
13297if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13298    :
13299else
13300    lt_prog_compiler_static_F77=
13301fi
13302
13303
13304echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13305echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13306if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13307  echo $ECHO_N "(cached) $ECHO_C" >&6
13308else
13309  lt_cv_prog_compiler_c_o_F77=no
13310   $rm -r conftest 2>/dev/null
13311   mkdir conftest
13312   cd conftest
13313   mkdir out
13314   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13315
13316   lt_compiler_flag="-o out/conftest2.$ac_objext"
13317   # Insert the option either (1) after the last *FLAGS variable, or
13318   # (2) before a word containing "conftest.", or (3) at the end.
13319   # Note that $ac_compile itself does not contain backslashes and begins
13320   # with a dollar sign (not a hyphen), so the echo should work correctly.
13321   lt_compile=`echo "$ac_compile" | $SED \
13322   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13323   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13324   -e 's:$: $lt_compiler_flag:'`
13325   (eval echo "\"\$as_me:13325: $lt_compile\"" >&5)
13326   (eval "$lt_compile" 2>out/conftest.err)
13327   ac_status=$?
13328   cat out/conftest.err >&5
13329   echo "$as_me:13329: \$? = $ac_status" >&5
13330   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13331   then
13332     # The compiler can only warn and ignore the option if not recognized
13333     # So say no if there are warnings
13334     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13335     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13336     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13337       lt_cv_prog_compiler_c_o_F77=yes
13338     fi
13339   fi
13340   chmod u+w . 2>&5
13341   $rm conftest*
13342   # SGI C++ compiler will create directory out/ii_files/ for
13343   # template instantiation
13344   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13345   $rm out/* && rmdir out
13346   cd ..
13347   rmdir conftest
13348   $rm conftest*
13349
13350fi
13351echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13352echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13353
13354
13355hard_links="nottested"
13356if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13357  # do not overwrite the value of need_locks provided by the user
13358  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13359echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13360  hard_links=yes
13361  $rm conftest*
13362  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13363  touch conftest.a
13364  ln conftest.a conftest.b 2>&5 || hard_links=no
13365  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13366  echo "$as_me:$LINENO: result: $hard_links" >&5
13367echo "${ECHO_T}$hard_links" >&6
13368  if test "$hard_links" = no; then
13369    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13370echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13371    need_locks=warn
13372  fi
13373else
13374  need_locks=no
13375fi
13376
13377echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13378echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13379
13380  runpath_var=
13381  allow_undefined_flag_F77=
13382  enable_shared_with_static_runtimes_F77=no
13383  archive_cmds_F77=
13384  archive_expsym_cmds_F77=
13385  old_archive_From_new_cmds_F77=
13386  old_archive_from_expsyms_cmds_F77=
13387  export_dynamic_flag_spec_F77=
13388  whole_archive_flag_spec_F77=
13389  thread_safe_flag_spec_F77=
13390  hardcode_libdir_flag_spec_F77=
13391  hardcode_libdir_flag_spec_ld_F77=
13392  hardcode_libdir_separator_F77=
13393  hardcode_direct_F77=no
13394  hardcode_minus_L_F77=no
13395  hardcode_shlibpath_var_F77=unsupported
13396  link_all_deplibs_F77=unknown
13397  hardcode_automatic_F77=no
13398  module_cmds_F77=
13399  module_expsym_cmds_F77=
13400  always_export_symbols_F77=no
13401  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13402  # include_expsyms should be a list of space-separated symbols to be *always*
13403  # included in the symbol list
13404  include_expsyms_F77=
13405  # exclude_expsyms can be an extended regexp of symbols to exclude
13406  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13407  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13408  # as well as any symbol that contains `d'.
13409  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13410  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13411  # platforms (ab)use it in PIC code, but their linkers get confused if
13412  # the symbol is explicitly referenced.  Since portable code cannot
13413  # rely on this symbol name, it's probably fine to never include it in
13414  # preloaded symbol tables.
13415  extract_expsyms_cmds=
13416  # Just being paranoid about ensuring that cc_basename is set.
13417  for cc_temp in $compiler""; do
13418  case $cc_temp in
13419    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13420    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13421    \-*) ;;
13422    *) break;;
13423  esac
13424done
13425cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13426
13427  case $host_os in
13428  cygwin* | mingw* | pw32*)
13429    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13430    # When not using gcc, we currently assume that we are using
13431    # Microsoft Visual C++.
13432    if test "$GCC" != yes; then
13433      with_gnu_ld=no
13434    fi
13435    ;;
13436  interix*)
13437    # we just hope/assume this is gcc and not c89 (= MSVC++)
13438    with_gnu_ld=yes
13439    ;;
13440  openbsd*)
13441    with_gnu_ld=no
13442    ;;
13443  esac
13444
13445  ld_shlibs_F77=yes
13446  if test "$with_gnu_ld" = yes; then
13447    # If archive_cmds runs LD, not CC, wlarc should be empty
13448    wlarc='${wl}'
13449
13450    # Set some defaults for GNU ld with shared library support. These
13451    # are reset later if shared libraries are not supported. Putting them
13452    # here allows them to be overridden if necessary.
13453    runpath_var=LD_RUN_PATH
13454    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13455    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13456    # ancient GNU ld didn't support --whole-archive et. al.
13457    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13458	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13459      else
13460  	whole_archive_flag_spec_F77=
13461    fi
13462    supports_anon_versioning=no
13463    case `$LD -v 2>/dev/null` in
13464      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13465      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13466      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13467      *\ 2.11.*) ;; # other 2.11 versions
13468      *) supports_anon_versioning=yes ;;
13469    esac
13470
13471    # See if GNU ld supports shared libraries.
13472    case $host_os in
13473    aix3* | aix4* | aix5*)
13474      # On AIX/PPC, the GNU linker is very broken
13475      if test "$host_cpu" != ia64; then
13476	ld_shlibs_F77=no
13477	cat <<EOF 1>&2
13478
13479*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13480*** to be unable to reliably create shared libraries on AIX.
13481*** Therefore, libtool is disabling shared libraries support.  If you
13482*** really care for shared libraries, you may want to modify your PATH
13483*** so that a non-GNU linker is found, and then restart.
13484
13485EOF
13486      fi
13487      ;;
13488
13489    amigaos*)
13490      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)'
13491      hardcode_libdir_flag_spec_F77='-L$libdir'
13492      hardcode_minus_L_F77=yes
13493
13494      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13495      # that the semantics of dynamic libraries on AmigaOS, at least up
13496      # to version 4, is to share data among multiple programs linked
13497      # with the same dynamic library.  Since this doesn't match the
13498      # behavior of shared libraries on other platforms, we can't use
13499      # them.
13500      ld_shlibs_F77=no
13501      ;;
13502
13503    beos*)
13504      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13505	allow_undefined_flag_F77=unsupported
13506	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13507	# support --undefined.  This deserves some investigation.  FIXME
13508	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13509      else
13510	ld_shlibs_F77=no
13511      fi
13512      ;;
13513
13514    cygwin* | mingw* | pw32*)
13515      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13516      # as there is no search path for DLLs.
13517      hardcode_libdir_flag_spec_F77='-L$libdir'
13518      allow_undefined_flag_F77=unsupported
13519      always_export_symbols_F77=no
13520      enable_shared_with_static_runtimes_F77=yes
13521      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13522
13523      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13524        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13525	# If the export-symbols file already is a .def file (1st line
13526	# is EXPORTS), use it as is; otherwise, prepend...
13527	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13528	  cp $export_symbols $output_objdir/$soname.def;
13529	else
13530	  echo EXPORTS > $output_objdir/$soname.def;
13531	  cat $export_symbols >> $output_objdir/$soname.def;
13532	fi~
13533	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13534      else
13535	ld_shlibs_F77=no
13536      fi
13537      ;;
13538
13539    interix3*)
13540      hardcode_direct_F77=no
13541      hardcode_shlibpath_var_F77=no
13542      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13543      export_dynamic_flag_spec_F77='${wl}-E'
13544      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13545      # Instead, shared libraries are loaded at an image base (0x10000000 by
13546      # default) and relocated if they conflict, which is a slow very memory
13547      # consuming and fragmenting process.  To avoid this, we pick a random,
13548      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13549      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13550      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'
13551      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'
13552      ;;
13553
13554    linux*)
13555      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13556	tmp_addflag=
13557	case $cc_basename,$host_cpu in
13558	pgcc*)				# Portland Group C compiler
13559	  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'
13560	  tmp_addflag=' $pic_flag'
13561	  ;;
13562	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13563	  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'
13564	  tmp_addflag=' $pic_flag -Mnomain' ;;
13565	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13566	  tmp_addflag=' -i_dynamic' ;;
13567	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13568	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13569	ifc* | ifort*)			# Intel Fortran compiler
13570	  tmp_addflag=' -nofor_main' ;;
13571	esac
13572	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13573
13574	if test $supports_anon_versioning = yes; then
13575	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13576  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13577  $echo "local: *; };" >> $output_objdir/$libname.ver~
13578	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13579	fi
13580      else
13581	ld_shlibs_F77=no
13582      fi
13583      ;;
13584
13585    netbsd*)
13586      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13587	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13588	wlarc=
13589      else
13590	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13591	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13592      fi
13593      ;;
13594
13595    solaris*)
13596      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13597	ld_shlibs_F77=no
13598	cat <<EOF 1>&2
13599
13600*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13601*** create shared libraries on Solaris systems.  Therefore, libtool
13602*** is disabling shared libraries support.  We urge you to upgrade GNU
13603*** binutils to release 2.9.1 or newer.  Another option is to modify
13604*** your PATH or compiler configuration so that the native linker is
13605*** used, and then restart.
13606
13607EOF
13608      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13609	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13610	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13611      else
13612	ld_shlibs_F77=no
13613      fi
13614      ;;
13615
13616    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13617      case `$LD -v 2>&1` in
13618        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13619	ld_shlibs_F77=no
13620	cat <<_LT_EOF 1>&2
13621
13622*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13623*** reliably create shared libraries on SCO systems.  Therefore, libtool
13624*** is disabling shared libraries support.  We urge you to upgrade GNU
13625*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13626*** your PATH or compiler configuration so that the native linker is
13627*** used, and then restart.
13628
13629_LT_EOF
13630	;;
13631	*)
13632	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13633	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13634	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13635	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13636	  else
13637	    ld_shlibs_F77=no
13638	  fi
13639	;;
13640      esac
13641      ;;
13642
13643    sunos4*)
13644      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13645      wlarc=
13646      hardcode_direct_F77=yes
13647      hardcode_shlibpath_var_F77=no
13648      ;;
13649
13650    *)
13651      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13652	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13653	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13654      else
13655	ld_shlibs_F77=no
13656      fi
13657      ;;
13658    esac
13659
13660    if test "$ld_shlibs_F77" = no; then
13661      runpath_var=
13662      hardcode_libdir_flag_spec_F77=
13663      export_dynamic_flag_spec_F77=
13664      whole_archive_flag_spec_F77=
13665    fi
13666  else
13667    # PORTME fill in a description of your system's linker (not GNU ld)
13668    case $host_os in
13669    aix3*)
13670      allow_undefined_flag_F77=unsupported
13671      always_export_symbols_F77=yes
13672      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'
13673      # Note: this linker hardcodes the directories in LIBPATH if there
13674      # are no directories specified by -L.
13675      hardcode_minus_L_F77=yes
13676      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13677	# Neither direct hardcoding nor static linking is supported with a
13678	# broken collect2.
13679	hardcode_direct_F77=unsupported
13680      fi
13681      ;;
13682
13683    aix4* | aix5*)
13684      if test "$host_cpu" = ia64; then
13685	# On IA64, the linker does run time linking by default, so we don't
13686	# have to do anything special.
13687	aix_use_runtimelinking=no
13688	exp_sym_flag='-Bexport'
13689	no_entry_flag=""
13690      else
13691	# If we're using GNU nm, then we don't want the "-C" option.
13692	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13693	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13694	  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'
13695	else
13696	  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'
13697	fi
13698	aix_use_runtimelinking=no
13699
13700	# Test if we are trying to use run time linking or normal
13701	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13702	# need to do runtime linking.
13703	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13704	  for ld_flag in $LDFLAGS; do
13705  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13706  	    aix_use_runtimelinking=yes
13707  	    break
13708  	  fi
13709	  done
13710	  ;;
13711	esac
13712
13713	exp_sym_flag='-bexport'
13714	no_entry_flag='-bnoentry'
13715      fi
13716
13717      # When large executables or shared objects are built, AIX ld can
13718      # have problems creating the table of contents.  If linking a library
13719      # or program results in "error TOC overflow" add -mminimal-toc to
13720      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13721      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13722
13723      archive_cmds_F77=''
13724      hardcode_direct_F77=yes
13725      hardcode_libdir_separator_F77=':'
13726      link_all_deplibs_F77=yes
13727
13728      if test "$GCC" = yes; then
13729	case $host_os in aix4.[012]|aix4.[012].*)
13730	# We only want to do this on AIX 4.2 and lower, the check
13731	# below for broken collect2 doesn't work under 4.3+
13732	  collect2name=`${CC} -print-prog-name=collect2`
13733	  if test -f "$collect2name" && \
13734  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13735	  then
13736  	  # We have reworked collect2
13737  	  hardcode_direct_F77=yes
13738	  else
13739  	  # We have old collect2
13740  	  hardcode_direct_F77=unsupported
13741  	  # It fails to find uninstalled libraries when the uninstalled
13742  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13743  	  # to unsupported forces relinking
13744  	  hardcode_minus_L_F77=yes
13745  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13746  	  hardcode_libdir_separator_F77=
13747	  fi
13748	  ;;
13749	esac
13750	shared_flag='-shared'
13751	if test "$aix_use_runtimelinking" = yes; then
13752	  shared_flag="$shared_flag "'${wl}-G'
13753	fi
13754      else
13755	# not using gcc
13756	if test "$host_cpu" = ia64; then
13757  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13758  	# chokes on -Wl,-G. The following line is correct:
13759	  shared_flag='-G'
13760	else
13761	  if test "$aix_use_runtimelinking" = yes; then
13762	    shared_flag='${wl}-G'
13763	  else
13764	    shared_flag='${wl}-bM:SRE'
13765	  fi
13766	fi
13767      fi
13768
13769      # It seems that -bexpall does not export symbols beginning with
13770      # underscore (_), so it is better to generate a list of symbols to export.
13771      always_export_symbols_F77=yes
13772      if test "$aix_use_runtimelinking" = yes; then
13773	# Warning - without using the other runtime loading flags (-brtl),
13774	# -berok will link without error, but may produce a broken library.
13775	allow_undefined_flag_F77='-berok'
13776       # Determine the default libpath from the value encoded in an empty executable.
13777       cat >conftest.$ac_ext <<_ACEOF
13778      program main
13779
13780      end
13781_ACEOF
13782rm -f conftest.$ac_objext conftest$ac_exeext
13783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13784  (eval $ac_link) 2>conftest.er1
13785  ac_status=$?
13786  grep -v '^ *+' conftest.er1 >conftest.err
13787  rm -f conftest.er1
13788  cat conftest.err >&5
13789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790  (exit $ac_status); } &&
13791	 { ac_try='test -z "$ac_f77_werror_flag"
13792			 || test ! -s conftest.err'
13793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794  (eval $ac_try) 2>&5
13795  ac_status=$?
13796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797  (exit $ac_status); }; } &&
13798	 { ac_try='test -s conftest$ac_exeext'
13799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800  (eval $ac_try) 2>&5
13801  ac_status=$?
13802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803  (exit $ac_status); }; }; then
13804
13805aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13806}'`
13807# Check for a 64-bit object if we didn't find anything.
13808if 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; }
13809}'`; fi
13810else
13811  echo "$as_me: failed program was:" >&5
13812sed 's/^/| /' conftest.$ac_ext >&5
13813
13814fi
13815rm -f conftest.err conftest.$ac_objext \
13816      conftest$ac_exeext conftest.$ac_ext
13817if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13818
13819       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13820	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"
13821       else
13822	if test "$host_cpu" = ia64; then
13823	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13824	  allow_undefined_flag_F77="-z nodefs"
13825	  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"
13826	else
13827	 # Determine the default libpath from the value encoded in an empty executable.
13828	 cat >conftest.$ac_ext <<_ACEOF
13829      program main
13830
13831      end
13832_ACEOF
13833rm -f conftest.$ac_objext conftest$ac_exeext
13834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13835  (eval $ac_link) 2>conftest.er1
13836  ac_status=$?
13837  grep -v '^ *+' conftest.er1 >conftest.err
13838  rm -f conftest.er1
13839  cat conftest.err >&5
13840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841  (exit $ac_status); } &&
13842	 { ac_try='test -z "$ac_f77_werror_flag"
13843			 || test ! -s conftest.err'
13844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845  (eval $ac_try) 2>&5
13846  ac_status=$?
13847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848  (exit $ac_status); }; } &&
13849	 { ac_try='test -s conftest$ac_exeext'
13850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851  (eval $ac_try) 2>&5
13852  ac_status=$?
13853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854  (exit $ac_status); }; }; then
13855
13856aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13857}'`
13858# Check for a 64-bit object if we didn't find anything.
13859if 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; }
13860}'`; fi
13861else
13862  echo "$as_me: failed program was:" >&5
13863sed 's/^/| /' conftest.$ac_ext >&5
13864
13865fi
13866rm -f conftest.err conftest.$ac_objext \
13867      conftest$ac_exeext conftest.$ac_ext
13868if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13869
13870	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13871	  # Warning - without using the other run time loading flags,
13872	  # -berok will link without error, but may produce a broken library.
13873	  no_undefined_flag_F77=' ${wl}-bernotok'
13874	  allow_undefined_flag_F77=' ${wl}-berok'
13875	  # Exported symbols can be pulled into shared objects from archives
13876	  whole_archive_flag_spec_F77='$convenience'
13877	  archive_cmds_need_lc_F77=yes
13878	  # This is similar to how AIX traditionally builds its shared libraries.
13879	  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'
13880	fi
13881      fi
13882      ;;
13883
13884    amigaos*)
13885      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)'
13886      hardcode_libdir_flag_spec_F77='-L$libdir'
13887      hardcode_minus_L_F77=yes
13888      # see comment about different semantics on the GNU ld section
13889      ld_shlibs_F77=no
13890      ;;
13891
13892    bsdi[45]*)
13893      export_dynamic_flag_spec_F77=-rdynamic
13894      ;;
13895
13896    cygwin* | mingw* | pw32*)
13897      # When not using gcc, we currently assume that we are using
13898      # Microsoft Visual C++.
13899      # hardcode_libdir_flag_spec is actually meaningless, as there is
13900      # no search path for DLLs.
13901      hardcode_libdir_flag_spec_F77=' '
13902      allow_undefined_flag_F77=unsupported
13903      # Tell ltmain to make .lib files, not .a files.
13904      libext=lib
13905      # Tell ltmain to make .dll files, not .so files.
13906      shrext_cmds=".dll"
13907      # FIXME: Setting linknames here is a bad hack.
13908      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13909      # The linker will automatically build a .lib file if we build a DLL.
13910      old_archive_From_new_cmds_F77='true'
13911      # FIXME: Should let the user specify the lib program.
13912      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13913      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13914      enable_shared_with_static_runtimes_F77=yes
13915      ;;
13916
13917    darwin* | rhapsody*)
13918      case $host_os in
13919        rhapsody* | darwin1.[012])
13920         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13921         ;;
13922       *) # Darwin 1.3 on
13923         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13924           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13925         else
13926           case ${MACOSX_DEPLOYMENT_TARGET} in
13927             10.[012])
13928               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13929               ;;
13930             10.*)
13931               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13932               ;;
13933           esac
13934         fi
13935         ;;
13936      esac
13937      archive_cmds_need_lc_F77=no
13938      hardcode_direct_F77=no
13939      hardcode_automatic_F77=yes
13940      hardcode_shlibpath_var_F77=unsupported
13941      whole_archive_flag_spec_F77=''
13942      link_all_deplibs_F77=yes
13943    if test "$GCC" = yes ; then
13944    	output_verbose_link_cmd='echo'
13945        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13946      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13947      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13948      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}'
13949      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}'
13950    else
13951      case $cc_basename in
13952        xlc*)
13953         output_verbose_link_cmd='echo'
13954         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13955         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13956          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13957         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}'
13958          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}'
13959          ;;
13960       *)
13961         ld_shlibs_F77=no
13962          ;;
13963      esac
13964    fi
13965      ;;
13966
13967    dgux*)
13968      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13969      hardcode_libdir_flag_spec_F77='-L$libdir'
13970      hardcode_shlibpath_var_F77=no
13971      ;;
13972
13973    freebsd1*)
13974      ld_shlibs_F77=no
13975      ;;
13976
13977    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13978    # support.  Future versions do this automatically, but an explicit c++rt0.o
13979    # does not break anything, and helps significantly (at the cost of a little
13980    # extra space).
13981    freebsd2.2*)
13982      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13983      hardcode_libdir_flag_spec_F77='-R$libdir'
13984      hardcode_direct_F77=yes
13985      hardcode_shlibpath_var_F77=no
13986      ;;
13987
13988    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13989    freebsd2*)
13990      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13991      hardcode_direct_F77=yes
13992      hardcode_minus_L_F77=yes
13993      hardcode_shlibpath_var_F77=no
13994      ;;
13995
13996    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13997    freebsd* | kfreebsd*-gnu | dragonfly*)
13998      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13999      hardcode_libdir_flag_spec_F77='-R$libdir'
14000      hardcode_direct_F77=yes
14001      hardcode_shlibpath_var_F77=no
14002      ;;
14003
14004    hpux9*)
14005      if test "$GCC" = yes; then
14006	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'
14007      else
14008	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'
14009      fi
14010      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14011      hardcode_libdir_separator_F77=:
14012      hardcode_direct_F77=yes
14013
14014      # hardcode_minus_L: Not really in the search PATH,
14015      # but as the default location of the library.
14016      hardcode_minus_L_F77=yes
14017      export_dynamic_flag_spec_F77='${wl}-E'
14018      ;;
14019
14020    hpux10*)
14021      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14022	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14023      else
14024	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14025      fi
14026      if test "$with_gnu_ld" = no; then
14027	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14028	hardcode_libdir_separator_F77=:
14029
14030	hardcode_direct_F77=yes
14031	export_dynamic_flag_spec_F77='${wl}-E'
14032
14033	# hardcode_minus_L: Not really in the search PATH,
14034	# but as the default location of the library.
14035	hardcode_minus_L_F77=yes
14036      fi
14037      ;;
14038
14039    hpux11*)
14040      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14041	case $host_cpu in
14042	hppa*64*)
14043	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14044	  ;;
14045	ia64*)
14046	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14047	  ;;
14048	*)
14049	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14050	  ;;
14051	esac
14052      else
14053	case $host_cpu in
14054	hppa*64*)
14055	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14056	  ;;
14057	ia64*)
14058	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14059	  ;;
14060	*)
14061	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14062	  ;;
14063	esac
14064      fi
14065      if test "$with_gnu_ld" = no; then
14066	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14067	hardcode_libdir_separator_F77=:
14068
14069	case $host_cpu in
14070	hppa*64*|ia64*)
14071	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14072	  hardcode_direct_F77=no
14073	  hardcode_shlibpath_var_F77=no
14074	  ;;
14075	*)
14076	  hardcode_direct_F77=yes
14077	  export_dynamic_flag_spec_F77='${wl}-E'
14078
14079	  # hardcode_minus_L: Not really in the search PATH,
14080	  # but as the default location of the library.
14081	  hardcode_minus_L_F77=yes
14082	  ;;
14083	esac
14084      fi
14085      ;;
14086
14087    irix5* | irix6* | nonstopux*)
14088      if test "$GCC" = yes; then
14089	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'
14090      else
14091	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'
14092	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14093      fi
14094      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14095      hardcode_libdir_separator_F77=:
14096      link_all_deplibs_F77=yes
14097      ;;
14098
14099    netbsd*)
14100      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14101	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14102      else
14103	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14104      fi
14105      hardcode_libdir_flag_spec_F77='-R$libdir'
14106      hardcode_direct_F77=yes
14107      hardcode_shlibpath_var_F77=no
14108      ;;
14109
14110    newsos6)
14111      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14112      hardcode_direct_F77=yes
14113      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14114      hardcode_libdir_separator_F77=:
14115      hardcode_shlibpath_var_F77=no
14116      ;;
14117
14118    openbsd*)
14119      hardcode_direct_F77=yes
14120      hardcode_shlibpath_var_F77=no
14121      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14122	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14123	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14124	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14125	export_dynamic_flag_spec_F77='${wl}-E'
14126      else
14127       case $host_os in
14128	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14129	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14130	   hardcode_libdir_flag_spec_F77='-R$libdir'
14131	   ;;
14132	 *)
14133	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14134	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14135	   ;;
14136       esac
14137      fi
14138      ;;
14139
14140    os2*)
14141      hardcode_libdir_flag_spec_F77='-L$libdir'
14142      hardcode_minus_L_F77=yes
14143      allow_undefined_flag_F77=unsupported
14144      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'
14145      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14146      ;;
14147
14148    osf3*)
14149      if test "$GCC" = yes; then
14150	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14151	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'
14152      else
14153	allow_undefined_flag_F77=' -expect_unresolved \*'
14154	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'
14155      fi
14156      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14157      hardcode_libdir_separator_F77=:
14158      ;;
14159
14160    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14161      if test "$GCC" = yes; then
14162	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14163	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'
14164	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14165      else
14166	allow_undefined_flag_F77=' -expect_unresolved \*'
14167	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'
14168	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~
14169	$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'
14170
14171	# Both c and cxx compiler support -rpath directly
14172	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14173      fi
14174      hardcode_libdir_separator_F77=:
14175      ;;
14176
14177    solaris*)
14178      no_undefined_flag_F77=' -z text'
14179      if test "$GCC" = yes; then
14180	wlarc='${wl}'
14181	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14182	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14183	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14184      else
14185	wlarc=''
14186	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14187	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14188  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14189      fi
14190      hardcode_libdir_flag_spec_F77='-R$libdir'
14191      hardcode_shlibpath_var_F77=no
14192      case $host_os in
14193      solaris2.[0-5] | solaris2.[0-5].*) ;;
14194      *)
14195 	# The compiler driver will combine linker options so we
14196 	# cannot just pass the convience library names through
14197 	# without $wl, iff we do not link with $LD.
14198 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14199 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14200 	case $wlarc in
14201 	'')
14202 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14203 	*)
14204 	  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' ;;
14205 	esac ;;
14206      esac
14207      link_all_deplibs_F77=yes
14208      ;;
14209
14210    sunos4*)
14211      if test "x$host_vendor" = xsequent; then
14212	# Use $CC to link under sequent, because it throws in some extra .o
14213	# files that make .init and .fini sections work.
14214	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14215      else
14216	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14217      fi
14218      hardcode_libdir_flag_spec_F77='-L$libdir'
14219      hardcode_direct_F77=yes
14220      hardcode_minus_L_F77=yes
14221      hardcode_shlibpath_var_F77=no
14222      ;;
14223
14224    sysv4)
14225      case $host_vendor in
14226	sni)
14227	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14228	  hardcode_direct_F77=yes # is this really true???
14229	;;
14230	siemens)
14231	  ## LD is ld it makes a PLAMLIB
14232	  ## CC just makes a GrossModule.
14233	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14234	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14235	  hardcode_direct_F77=no
14236        ;;
14237	motorola)
14238	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14239	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14240	;;
14241      esac
14242      runpath_var='LD_RUN_PATH'
14243      hardcode_shlibpath_var_F77=no
14244      ;;
14245
14246    sysv4.3*)
14247      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14248      hardcode_shlibpath_var_F77=no
14249      export_dynamic_flag_spec_F77='-Bexport'
14250      ;;
14251
14252    sysv4*MP*)
14253      if test -d /usr/nec; then
14254	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14255	hardcode_shlibpath_var_F77=no
14256	runpath_var=LD_RUN_PATH
14257	hardcode_runpath_var=yes
14258	ld_shlibs_F77=yes
14259      fi
14260      ;;
14261
14262    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14263      no_undefined_flag_F77='${wl}-z,text'
14264      archive_cmds_need_lc_F77=no
14265      hardcode_shlibpath_var_F77=no
14266      runpath_var='LD_RUN_PATH'
14267
14268      if test "$GCC" = yes; then
14269	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14270	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14271      else
14272	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14273	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14274      fi
14275      ;;
14276
14277    sysv5* | sco3.2v5* | sco5v6*)
14278      # Note: We can NOT use -z defs as we might desire, because we do not
14279      # link with -lc, and that would cause any symbols used from libc to
14280      # always be unresolved, which means just about no library would
14281      # ever link correctly.  If we're not using GNU ld we use -z text
14282      # though, which does catch some bad symbols but isn't as heavy-handed
14283      # as -z defs.
14284      no_undefined_flag_F77='${wl}-z,text'
14285      allow_undefined_flag_F77='${wl}-z,nodefs'
14286      archive_cmds_need_lc_F77=no
14287      hardcode_shlibpath_var_F77=no
14288      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14289      hardcode_libdir_separator_F77=':'
14290      link_all_deplibs_F77=yes
14291      export_dynamic_flag_spec_F77='${wl}-Bexport'
14292      runpath_var='LD_RUN_PATH'
14293
14294      if test "$GCC" = yes; then
14295	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14296	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14297      else
14298	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14299	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14300      fi
14301      ;;
14302
14303    uts4*)
14304      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14305      hardcode_libdir_flag_spec_F77='-L$libdir'
14306      hardcode_shlibpath_var_F77=no
14307      ;;
14308
14309    *)
14310      ld_shlibs_F77=no
14311      ;;
14312    esac
14313  fi
14314
14315echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14316echo "${ECHO_T}$ld_shlibs_F77" >&6
14317test "$ld_shlibs_F77" = no && can_build_shared=no
14318
14319#
14320# Do we need to explicitly link libc?
14321#
14322case "x$archive_cmds_need_lc_F77" in
14323x|xyes)
14324  # Assume -lc should be added
14325  archive_cmds_need_lc_F77=yes
14326
14327  if test "$enable_shared" = yes && test "$GCC" = yes; then
14328    case $archive_cmds_F77 in
14329    *'~'*)
14330      # FIXME: we may have to deal with multi-command sequences.
14331      ;;
14332    '$CC '*)
14333      # Test whether the compiler implicitly links with -lc since on some
14334      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14335      # to ld, don't add -lc before -lgcc.
14336      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14337echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14338      $rm conftest*
14339      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14340
14341      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14342  (eval $ac_compile) 2>&5
14343  ac_status=$?
14344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345  (exit $ac_status); } 2>conftest.err; then
14346        soname=conftest
14347        lib=conftest
14348        libobjs=conftest.$ac_objext
14349        deplibs=
14350        wl=$lt_prog_compiler_wl_F77
14351	pic_flag=$lt_prog_compiler_pic_F77
14352        compiler_flags=-v
14353        linker_flags=-v
14354        verstring=
14355        output_objdir=.
14356        libname=conftest
14357        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14358        allow_undefined_flag_F77=
14359        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14360  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14361  ac_status=$?
14362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363  (exit $ac_status); }
14364        then
14365	  archive_cmds_need_lc_F77=no
14366        else
14367	  archive_cmds_need_lc_F77=yes
14368        fi
14369        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14370      else
14371        cat conftest.err 1>&5
14372      fi
14373      $rm conftest*
14374      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14375echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14376      ;;
14377    esac
14378  fi
14379  ;;
14380esac
14381
14382echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14383echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14384library_names_spec=
14385libname_spec='lib$name'
14386soname_spec=
14387shrext_cmds=".so"
14388postinstall_cmds=
14389postuninstall_cmds=
14390finish_cmds=
14391finish_eval=
14392shlibpath_var=
14393shlibpath_overrides_runpath=unknown
14394version_type=none
14395dynamic_linker="$host_os ld.so"
14396sys_lib_dlsearch_path_spec="/lib /usr/lib"
14397if test "$GCC" = yes; then
14398  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14399  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14400    # if the path contains ";" then we assume it to be the separator
14401    # otherwise default to the standard path separator (i.e. ":") - it is
14402    # assumed that no part of a normal pathname contains ";" but that should
14403    # okay in the real world where ";" in dirpaths is itself problematic.
14404    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14405  else
14406    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14407  fi
14408else
14409  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14410fi
14411need_lib_prefix=unknown
14412hardcode_into_libs=no
14413
14414# when you set need_version to no, make sure it does not cause -set_version
14415# flags to be left without arguments
14416need_version=unknown
14417
14418case $host_os in
14419aix3*)
14420  version_type=linux
14421  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14422  shlibpath_var=LIBPATH
14423
14424  # AIX 3 has no versioning support, so we append a major version to the name.
14425  soname_spec='${libname}${release}${shared_ext}$major'
14426  ;;
14427
14428aix4* | aix5*)
14429  version_type=linux
14430  need_lib_prefix=no
14431  need_version=no
14432  hardcode_into_libs=yes
14433  if test "$host_cpu" = ia64; then
14434    # AIX 5 supports IA64
14435    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14436    shlibpath_var=LD_LIBRARY_PATH
14437  else
14438    # With GCC up to 2.95.x, collect2 would create an import file
14439    # for dependence libraries.  The import file would start with
14440    # the line `#! .'.  This would cause the generated library to
14441    # depend on `.', always an invalid library.  This was fixed in
14442    # development snapshots of GCC prior to 3.0.
14443    case $host_os in
14444      aix4 | aix4.[01] | aix4.[01].*)
14445      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14446	   echo ' yes '
14447	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14448	:
14449      else
14450	can_build_shared=no
14451      fi
14452      ;;
14453    esac
14454    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14455    # soname into executable. Probably we can add versioning support to
14456    # collect2, so additional links can be useful in future.
14457    if test "$aix_use_runtimelinking" = yes; then
14458      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14459      # instead of lib<name>.a to let people know that these are not
14460      # typical AIX shared libraries.
14461      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14462    else
14463      # We preserve .a as extension for shared libraries through AIX4.2
14464      # and later when we are not doing run time linking.
14465      library_names_spec='${libname}${release}.a $libname.a'
14466      soname_spec='${libname}${release}${shared_ext}$major'
14467    fi
14468    shlibpath_var=LIBPATH
14469  fi
14470  ;;
14471
14472amigaos*)
14473  library_names_spec='$libname.ixlibrary $libname.a'
14474  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14475  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'
14476  ;;
14477
14478beos*)
14479  library_names_spec='${libname}${shared_ext}'
14480  dynamic_linker="$host_os ld.so"
14481  shlibpath_var=LIBRARY_PATH
14482  ;;
14483
14484bsdi[45]*)
14485  version_type=linux
14486  need_version=no
14487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488  soname_spec='${libname}${release}${shared_ext}$major'
14489  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14490  shlibpath_var=LD_LIBRARY_PATH
14491  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14492  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14493  # the default ld.so.conf also contains /usr/contrib/lib and
14494  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14495  # libtool to hard-code these into programs
14496  ;;
14497
14498cygwin* | mingw* | pw32*)
14499  version_type=windows
14500  shrext_cmds=".dll"
14501  need_version=no
14502  need_lib_prefix=no
14503
14504  case $GCC,$host_os in
14505  yes,cygwin* | yes,mingw* | yes,pw32*)
14506    library_names_spec='$libname.dll.a'
14507    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14508    postinstall_cmds='base_file=`basename \${file}`~
14509      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14510      dldir=$destdir/`dirname \$dlpath`~
14511      test -d \$dldir || mkdir -p \$dldir~
14512      $install_prog $dir/$dlname \$dldir/$dlname~
14513      chmod a+x \$dldir/$dlname'
14514    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14515      dlpath=$dir/\$dldll~
14516       $rm \$dlpath'
14517    shlibpath_overrides_runpath=yes
14518
14519    case $host_os in
14520    cygwin*)
14521      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14522      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14523      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14524      ;;
14525    mingw*)
14526      # MinGW DLLs use traditional 'lib' prefix
14527      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14528      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14529      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14530        # It is most probably a Windows format PATH printed by
14531        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14532        # path with ; separators, and with drive letters. We can handle the
14533        # drive letters (cygwin fileutils understands them), so leave them,
14534        # especially as we might pass files found there to a mingw objdump,
14535        # which wouldn't understand a cygwinified path. Ahh.
14536        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14537      else
14538        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14539      fi
14540      ;;
14541    pw32*)
14542      # pw32 DLLs use 'pw' prefix rather than 'lib'
14543      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14544      ;;
14545    esac
14546    ;;
14547
14548  *)
14549    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14550    ;;
14551  esac
14552  dynamic_linker='Win32 ld.exe'
14553  # FIXME: first we should search . and the directory the executable is in
14554  shlibpath_var=PATH
14555  ;;
14556
14557darwin* | rhapsody*)
14558  dynamic_linker="$host_os dyld"
14559  version_type=darwin
14560  need_lib_prefix=no
14561  need_version=no
14562  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14563  soname_spec='${libname}${release}${major}$shared_ext'
14564  shlibpath_overrides_runpath=yes
14565  shlibpath_var=DYLD_LIBRARY_PATH
14566  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14567  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14568  if test "$GCC" = yes; then
14569    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"`
14570  else
14571    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14572  fi
14573  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14574  ;;
14575
14576dgux*)
14577  version_type=linux
14578  need_lib_prefix=no
14579  need_version=no
14580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14581  soname_spec='${libname}${release}${shared_ext}$major'
14582  shlibpath_var=LD_LIBRARY_PATH
14583  ;;
14584
14585freebsd1*)
14586  dynamic_linker=no
14587  ;;
14588
14589kfreebsd*-gnu)
14590  version_type=linux
14591  need_lib_prefix=no
14592  need_version=no
14593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14594  soname_spec='${libname}${release}${shared_ext}$major'
14595  shlibpath_var=LD_LIBRARY_PATH
14596  shlibpath_overrides_runpath=no
14597  hardcode_into_libs=yes
14598  dynamic_linker='GNU ld.so'
14599  ;;
14600
14601freebsd* | dragonfly*)
14602  # DragonFly does not have aout.  When/if they implement a new
14603  # versioning mechanism, adjust this.
14604  if test -x /usr/bin/objformat; then
14605    objformat=`/usr/bin/objformat`
14606  else
14607    case $host_os in
14608    freebsd[123]*) objformat=aout ;;
14609    *) objformat=elf ;;
14610    esac
14611  fi
14612  version_type=freebsd-$objformat
14613  case $version_type in
14614    freebsd-elf*)
14615      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14616      need_version=no
14617      need_lib_prefix=no
14618      ;;
14619    freebsd-*)
14620      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14621      need_version=yes
14622      ;;
14623  esac
14624  shlibpath_var=LD_LIBRARY_PATH
14625  case $host_os in
14626  freebsd2*)
14627    shlibpath_overrides_runpath=yes
14628    ;;
14629  freebsd3.[01]* | freebsdelf3.[01]*)
14630    shlibpath_overrides_runpath=yes
14631    hardcode_into_libs=yes
14632    ;;
14633  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14634  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14635    shlibpath_overrides_runpath=no
14636    hardcode_into_libs=yes
14637    ;;
14638  freebsd*) # from 4.6 on
14639    shlibpath_overrides_runpath=yes
14640    hardcode_into_libs=yes
14641    ;;
14642  esac
14643  ;;
14644
14645gnu*)
14646  version_type=linux
14647  need_lib_prefix=no
14648  need_version=no
14649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14650  soname_spec='${libname}${release}${shared_ext}$major'
14651  shlibpath_var=LD_LIBRARY_PATH
14652  hardcode_into_libs=yes
14653  ;;
14654
14655hpux9* | hpux10* | hpux11*)
14656  # Give a soname corresponding to the major version so that dld.sl refuses to
14657  # link against other versions.
14658  version_type=sunos
14659  need_lib_prefix=no
14660  need_version=no
14661  case $host_cpu in
14662  ia64*)
14663    shrext_cmds='.so'
14664    hardcode_into_libs=yes
14665    dynamic_linker="$host_os dld.so"
14666    shlibpath_var=LD_LIBRARY_PATH
14667    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14668    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669    soname_spec='${libname}${release}${shared_ext}$major'
14670    if test "X$HPUX_IA64_MODE" = X32; then
14671      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14672    else
14673      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14674    fi
14675    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14676    ;;
14677   hppa*64*)
14678     shrext_cmds='.sl'
14679     hardcode_into_libs=yes
14680     dynamic_linker="$host_os dld.sl"
14681     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14682     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684     soname_spec='${libname}${release}${shared_ext}$major'
14685     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14686     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14687     ;;
14688   *)
14689    shrext_cmds='.sl'
14690    dynamic_linker="$host_os dld.sl"
14691    shlibpath_var=SHLIB_PATH
14692    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14693    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694    soname_spec='${libname}${release}${shared_ext}$major'
14695    ;;
14696  esac
14697  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14698  postinstall_cmds='chmod 555 $lib'
14699  ;;
14700
14701interix3*)
14702  version_type=linux
14703  need_lib_prefix=no
14704  need_version=no
14705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14706  soname_spec='${libname}${release}${shared_ext}$major'
14707  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14708  shlibpath_var=LD_LIBRARY_PATH
14709  shlibpath_overrides_runpath=no
14710  hardcode_into_libs=yes
14711  ;;
14712
14713irix5* | irix6* | nonstopux*)
14714  case $host_os in
14715    nonstopux*) version_type=nonstopux ;;
14716    *)
14717	if test "$lt_cv_prog_gnu_ld" = yes; then
14718		version_type=linux
14719	else
14720		version_type=irix
14721	fi ;;
14722  esac
14723  need_lib_prefix=no
14724  need_version=no
14725  soname_spec='${libname}${release}${shared_ext}$major'
14726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14727  case $host_os in
14728  irix5* | nonstopux*)
14729    libsuff= shlibsuff=
14730    ;;
14731  *)
14732    case $LD in # libtool.m4 will add one of these switches to LD
14733    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14734      libsuff= shlibsuff= libmagic=32-bit;;
14735    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14736      libsuff=32 shlibsuff=N32 libmagic=N32;;
14737    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14738      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14739    *) libsuff= shlibsuff= libmagic=never-match;;
14740    esac
14741    ;;
14742  esac
14743  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14744  shlibpath_overrides_runpath=no
14745  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14746  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14747  hardcode_into_libs=yes
14748  ;;
14749
14750# No shared lib support for Linux oldld, aout, or coff.
14751linux*oldld* | linux*aout* | linux*coff*)
14752  dynamic_linker=no
14753  ;;
14754
14755# This must be Linux ELF.
14756linux*)
14757  version_type=linux
14758  need_lib_prefix=no
14759  need_version=no
14760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761  soname_spec='${libname}${release}${shared_ext}$major'
14762  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14763  shlibpath_var=LD_LIBRARY_PATH
14764  shlibpath_overrides_runpath=no
14765  # This implies no fast_install, which is unacceptable.
14766  # Some rework will be needed to allow for fast_install
14767  # before this can be enabled.
14768  hardcode_into_libs=yes
14769
14770  # Append ld.so.conf contents to the search path
14771  if test -f /etc/ld.so.conf; then
14772    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' ' '`
14773    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14774  fi
14775
14776  # We used to test for /lib/ld.so.1 and disable shared libraries on
14777  # powerpc, because MkLinux only supported shared libraries with the
14778  # GNU dynamic linker.  Since this was broken with cross compilers,
14779  # most powerpc-linux boxes support dynamic linking these days and
14780  # people can always --disable-shared, the test was removed, and we
14781  # assume the GNU/Linux dynamic linker is in use.
14782  dynamic_linker='GNU/Linux ld.so'
14783  ;;
14784
14785knetbsd*-gnu)
14786  version_type=linux
14787  need_lib_prefix=no
14788  need_version=no
14789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14790  soname_spec='${libname}${release}${shared_ext}$major'
14791  shlibpath_var=LD_LIBRARY_PATH
14792  shlibpath_overrides_runpath=no
14793  hardcode_into_libs=yes
14794  dynamic_linker='GNU ld.so'
14795  ;;
14796
14797netbsd*)
14798  version_type=sunos
14799  need_lib_prefix=no
14800  need_version=no
14801  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14802    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14803    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14804    dynamic_linker='NetBSD (a.out) ld.so'
14805  else
14806    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14807    soname_spec='${libname}${release}${shared_ext}$major'
14808    dynamic_linker='NetBSD ld.elf_so'
14809  fi
14810  shlibpath_var=LD_LIBRARY_PATH
14811  shlibpath_overrides_runpath=yes
14812  hardcode_into_libs=yes
14813  ;;
14814
14815newsos6)
14816  version_type=linux
14817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818  shlibpath_var=LD_LIBRARY_PATH
14819  shlibpath_overrides_runpath=yes
14820  ;;
14821
14822nto-qnx*)
14823  version_type=linux
14824  need_lib_prefix=no
14825  need_version=no
14826  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14827  soname_spec='${libname}${release}${shared_ext}$major'
14828  shlibpath_var=LD_LIBRARY_PATH
14829  shlibpath_overrides_runpath=yes
14830  ;;
14831
14832openbsd*)
14833  version_type=sunos
14834  sys_lib_dlsearch_path_spec="/usr/lib"
14835  need_lib_prefix=no
14836  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14837  case $host_os in
14838    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14839    *)                         need_version=no  ;;
14840  esac
14841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14842  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14843  shlibpath_var=LD_LIBRARY_PATH
14844  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14845    case $host_os in
14846      openbsd2.[89] | openbsd2.[89].*)
14847	shlibpath_overrides_runpath=no
14848	;;
14849      *)
14850	shlibpath_overrides_runpath=yes
14851	;;
14852      esac
14853  else
14854    shlibpath_overrides_runpath=yes
14855  fi
14856  ;;
14857
14858os2*)
14859  libname_spec='$name'
14860  shrext_cmds=".dll"
14861  need_lib_prefix=no
14862  library_names_spec='$libname${shared_ext} $libname.a'
14863  dynamic_linker='OS/2 ld.exe'
14864  shlibpath_var=LIBPATH
14865  ;;
14866
14867osf3* | osf4* | osf5*)
14868  version_type=osf
14869  need_lib_prefix=no
14870  need_version=no
14871  soname_spec='${libname}${release}${shared_ext}$major'
14872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873  shlibpath_var=LD_LIBRARY_PATH
14874  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14875  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14876  ;;
14877
14878solaris*)
14879  version_type=linux
14880  need_lib_prefix=no
14881  need_version=no
14882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883  soname_spec='${libname}${release}${shared_ext}$major'
14884  shlibpath_var=LD_LIBRARY_PATH
14885  shlibpath_overrides_runpath=yes
14886  hardcode_into_libs=yes
14887  # ldd complains unless libraries are executable
14888  postinstall_cmds='chmod +x $lib'
14889  ;;
14890
14891sunos4*)
14892  version_type=sunos
14893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14894  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14895  shlibpath_var=LD_LIBRARY_PATH
14896  shlibpath_overrides_runpath=yes
14897  if test "$with_gnu_ld" = yes; then
14898    need_lib_prefix=no
14899  fi
14900  need_version=yes
14901  ;;
14902
14903sysv4 | sysv4.3*)
14904  version_type=linux
14905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14906  soname_spec='${libname}${release}${shared_ext}$major'
14907  shlibpath_var=LD_LIBRARY_PATH
14908  case $host_vendor in
14909    sni)
14910      shlibpath_overrides_runpath=no
14911      need_lib_prefix=no
14912      export_dynamic_flag_spec='${wl}-Blargedynsym'
14913      runpath_var=LD_RUN_PATH
14914      ;;
14915    siemens)
14916      need_lib_prefix=no
14917      ;;
14918    motorola)
14919      need_lib_prefix=no
14920      need_version=no
14921      shlibpath_overrides_runpath=no
14922      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14923      ;;
14924  esac
14925  ;;
14926
14927sysv4*MP*)
14928  if test -d /usr/nec ;then
14929    version_type=linux
14930    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14931    soname_spec='$libname${shared_ext}.$major'
14932    shlibpath_var=LD_LIBRARY_PATH
14933  fi
14934  ;;
14935
14936sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14937  version_type=freebsd-elf
14938  need_lib_prefix=no
14939  need_version=no
14940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14941  soname_spec='${libname}${release}${shared_ext}$major'
14942  shlibpath_var=LD_LIBRARY_PATH
14943  hardcode_into_libs=yes
14944  if test "$with_gnu_ld" = yes; then
14945    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14946    shlibpath_overrides_runpath=no
14947  else
14948    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14949    shlibpath_overrides_runpath=yes
14950    case $host_os in
14951      sco3.2v5*)
14952        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14953	;;
14954    esac
14955  fi
14956  sys_lib_dlsearch_path_spec='/usr/lib'
14957  ;;
14958
14959uts4*)
14960  version_type=linux
14961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962  soname_spec='${libname}${release}${shared_ext}$major'
14963  shlibpath_var=LD_LIBRARY_PATH
14964  ;;
14965
14966*)
14967  dynamic_linker=no
14968  ;;
14969esac
14970echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14971echo "${ECHO_T}$dynamic_linker" >&6
14972test "$dynamic_linker" = no && can_build_shared=no
14973
14974variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14975if test "$GCC" = yes; then
14976  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14977fi
14978
14979echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14980echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14981hardcode_action_F77=
14982if test -n "$hardcode_libdir_flag_spec_F77" || \
14983   test -n "$runpath_var_F77" || \
14984   test "X$hardcode_automatic_F77" = "Xyes" ; then
14985
14986  # We can hardcode non-existant directories.
14987  if test "$hardcode_direct_F77" != no &&
14988     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14989     # have to relink, otherwise we might link with an installed library
14990     # when we should be linking with a yet-to-be-installed one
14991     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14992     test "$hardcode_minus_L_F77" != no; then
14993    # Linking always hardcodes the temporary library directory.
14994    hardcode_action_F77=relink
14995  else
14996    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14997    hardcode_action_F77=immediate
14998  fi
14999else
15000  # We cannot hardcode anything, or else we can only hardcode existing
15001  # directories.
15002  hardcode_action_F77=unsupported
15003fi
15004echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15005echo "${ECHO_T}$hardcode_action_F77" >&6
15006
15007if test "$hardcode_action_F77" = relink; then
15008  # Fast installation is not supported
15009  enable_fast_install=no
15010elif test "$shlibpath_overrides_runpath" = yes ||
15011     test "$enable_shared" = no; then
15012  # Fast installation is not necessary
15013  enable_fast_install=needless
15014fi
15015
15016
15017# The else clause should only fire when bootstrapping the
15018# libtool distribution, otherwise you forgot to ship ltmain.sh
15019# with your package, and you will get complaints that there are
15020# no rules to generate ltmain.sh.
15021if test -f "$ltmain"; then
15022  # See if we are running on zsh, and set the options which allow our commands through
15023  # without removal of \ escapes.
15024  if test -n "${ZSH_VERSION+set}" ; then
15025    setopt NO_GLOB_SUBST
15026  fi
15027  # Now quote all the things that may contain metacharacters while being
15028  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15029  # variables and quote the copies for generation of the libtool script.
15030  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15031    SED SHELL STRIP \
15032    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15033    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15034    deplibs_check_method reload_flag reload_cmds need_locks \
15035    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15036    lt_cv_sys_global_symbol_to_c_name_address \
15037    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15038    old_postinstall_cmds old_postuninstall_cmds \
15039    compiler_F77 \
15040    CC_F77 \
15041    LD_F77 \
15042    lt_prog_compiler_wl_F77 \
15043    lt_prog_compiler_pic_F77 \
15044    lt_prog_compiler_static_F77 \
15045    lt_prog_compiler_no_builtin_flag_F77 \
15046    export_dynamic_flag_spec_F77 \
15047    thread_safe_flag_spec_F77 \
15048    whole_archive_flag_spec_F77 \
15049    enable_shared_with_static_runtimes_F77 \
15050    old_archive_cmds_F77 \
15051    old_archive_from_new_cmds_F77 \
15052    predep_objects_F77 \
15053    postdep_objects_F77 \
15054    predeps_F77 \
15055    postdeps_F77 \
15056    compiler_lib_search_path_F77 \
15057    archive_cmds_F77 \
15058    archive_expsym_cmds_F77 \
15059    postinstall_cmds_F77 \
15060    postuninstall_cmds_F77 \
15061    old_archive_from_expsyms_cmds_F77 \
15062    allow_undefined_flag_F77 \
15063    no_undefined_flag_F77 \
15064    export_symbols_cmds_F77 \
15065    hardcode_libdir_flag_spec_F77 \
15066    hardcode_libdir_flag_spec_ld_F77 \
15067    hardcode_libdir_separator_F77 \
15068    hardcode_automatic_F77 \
15069    module_cmds_F77 \
15070    module_expsym_cmds_F77 \
15071    lt_cv_prog_compiler_c_o_F77 \
15072    exclude_expsyms_F77 \
15073    include_expsyms_F77; do
15074
15075    case $var in
15076    old_archive_cmds_F77 | \
15077    old_archive_from_new_cmds_F77 | \
15078    archive_cmds_F77 | \
15079    archive_expsym_cmds_F77 | \
15080    module_cmds_F77 | \
15081    module_expsym_cmds_F77 | \
15082    old_archive_from_expsyms_cmds_F77 | \
15083    export_symbols_cmds_F77 | \
15084    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15085    postinstall_cmds | postuninstall_cmds | \
15086    old_postinstall_cmds | old_postuninstall_cmds | \
15087    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15088      # Double-quote double-evaled strings.
15089      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15090      ;;
15091    *)
15092      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15093      ;;
15094    esac
15095  done
15096
15097  case $lt_echo in
15098  *'\$0 --fallback-echo"')
15099    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15100    ;;
15101  esac
15102
15103cfgfile="$ofile"
15104
15105  cat <<__EOF__ >> "$cfgfile"
15106# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15107
15108# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15109
15110# Shell to use when invoking shell scripts.
15111SHELL=$lt_SHELL
15112
15113# Whether or not to build shared libraries.
15114build_libtool_libs=$enable_shared
15115
15116# Whether or not to build static libraries.
15117build_old_libs=$enable_static
15118
15119# Whether or not to add -lc for building shared libraries.
15120build_libtool_need_lc=$archive_cmds_need_lc_F77
15121
15122# Whether or not to disallow shared libs when runtime libs are static
15123allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15124
15125# Whether or not to optimize for fast installation.
15126fast_install=$enable_fast_install
15127
15128# The host system.
15129host_alias=$host_alias
15130host=$host
15131host_os=$host_os
15132
15133# The build system.
15134build_alias=$build_alias
15135build=$build
15136build_os=$build_os
15137
15138# An echo program that does not interpret backslashes.
15139echo=$lt_echo
15140
15141# The archiver.
15142AR=$lt_AR
15143AR_FLAGS=$lt_AR_FLAGS
15144
15145# A C compiler.
15146LTCC=$lt_LTCC
15147
15148# LTCC compiler flags.
15149LTCFLAGS=$lt_LTCFLAGS
15150
15151# A language-specific compiler.
15152CC=$lt_compiler_F77
15153
15154# Is the compiler the GNU C compiler?
15155with_gcc=$GCC_F77
15156
15157# An ERE matcher.
15158EGREP=$lt_EGREP
15159
15160# The linker used to build libraries.
15161LD=$lt_LD_F77
15162
15163# Whether we need hard or soft links.
15164LN_S=$lt_LN_S
15165
15166# A BSD-compatible nm program.
15167NM=$lt_NM
15168
15169# A symbol stripping program
15170STRIP=$lt_STRIP
15171
15172# Used to examine libraries when file_magic_cmd begins "file"
15173MAGIC_CMD=$MAGIC_CMD
15174
15175# Used on cygwin: DLL creation program.
15176DLLTOOL="$DLLTOOL"
15177
15178# Used on cygwin: object dumper.
15179OBJDUMP="$OBJDUMP"
15180
15181# Used on cygwin: assembler.
15182AS="$AS"
15183
15184# The name of the directory that contains temporary libtool files.
15185objdir=$objdir
15186
15187# How to create reloadable object files.
15188reload_flag=$lt_reload_flag
15189reload_cmds=$lt_reload_cmds
15190
15191# How to pass a linker flag through the compiler.
15192wl=$lt_lt_prog_compiler_wl_F77
15193
15194# Object file suffix (normally "o").
15195objext="$ac_objext"
15196
15197# Old archive suffix (normally "a").
15198libext="$libext"
15199
15200# Shared library suffix (normally ".so").
15201shrext_cmds='$shrext_cmds'
15202
15203# Executable file suffix (normally "").
15204exeext="$exeext"
15205
15206# Additional compiler flags for building library objects.
15207pic_flag=$lt_lt_prog_compiler_pic_F77
15208pic_mode=$pic_mode
15209
15210# What is the maximum length of a command?
15211max_cmd_len=$lt_cv_sys_max_cmd_len
15212
15213# Does compiler simultaneously support -c and -o options?
15214compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15215
15216# Must we lock files when doing compilation?
15217need_locks=$lt_need_locks
15218
15219# Do we need the lib prefix for modules?
15220need_lib_prefix=$need_lib_prefix
15221
15222# Do we need a version for libraries?
15223need_version=$need_version
15224
15225# Whether dlopen is supported.
15226dlopen_support=$enable_dlopen
15227
15228# Whether dlopen of programs is supported.
15229dlopen_self=$enable_dlopen_self
15230
15231# Whether dlopen of statically linked programs is supported.
15232dlopen_self_static=$enable_dlopen_self_static
15233
15234# Compiler flag to prevent dynamic linking.
15235link_static_flag=$lt_lt_prog_compiler_static_F77
15236
15237# Compiler flag to turn off builtin functions.
15238no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15239
15240# Compiler flag to allow reflexive dlopens.
15241export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15242
15243# Compiler flag to generate shared objects directly from archives.
15244whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15245
15246# Compiler flag to generate thread-safe objects.
15247thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15248
15249# Library versioning type.
15250version_type=$version_type
15251
15252# Format of library name prefix.
15253libname_spec=$lt_libname_spec
15254
15255# List of archive names.  First name is the real one, the rest are links.
15256# The last name is the one that the linker finds with -lNAME.
15257library_names_spec=$lt_library_names_spec
15258
15259# The coded name of the library, if different from the real name.
15260soname_spec=$lt_soname_spec
15261
15262# Commands used to build and install an old-style archive.
15263RANLIB=$lt_RANLIB
15264old_archive_cmds=$lt_old_archive_cmds_F77
15265old_postinstall_cmds=$lt_old_postinstall_cmds
15266old_postuninstall_cmds=$lt_old_postuninstall_cmds
15267
15268# Create an old-style archive from a shared archive.
15269old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15270
15271# Create a temporary old-style archive to link instead of a shared archive.
15272old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15273
15274# Commands used to build and install a shared archive.
15275archive_cmds=$lt_archive_cmds_F77
15276archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15277postinstall_cmds=$lt_postinstall_cmds
15278postuninstall_cmds=$lt_postuninstall_cmds
15279
15280# Commands used to build a loadable module (assumed same as above if empty)
15281module_cmds=$lt_module_cmds_F77
15282module_expsym_cmds=$lt_module_expsym_cmds_F77
15283
15284# Commands to strip libraries.
15285old_striplib=$lt_old_striplib
15286striplib=$lt_striplib
15287
15288# Dependencies to place before the objects being linked to create a
15289# shared library.
15290predep_objects=$lt_predep_objects_F77
15291
15292# Dependencies to place after the objects being linked to create a
15293# shared library.
15294postdep_objects=$lt_postdep_objects_F77
15295
15296# Dependencies to place before the objects being linked to create a
15297# shared library.
15298predeps=$lt_predeps_F77
15299
15300# Dependencies to place after the objects being linked to create a
15301# shared library.
15302postdeps=$lt_postdeps_F77
15303
15304# The library search path used internally by the compiler when linking
15305# a shared library.
15306compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15307
15308# Method to check whether dependent libraries are shared objects.
15309deplibs_check_method=$lt_deplibs_check_method
15310
15311# Command to use when deplibs_check_method == file_magic.
15312file_magic_cmd=$lt_file_magic_cmd
15313
15314# Flag that allows shared libraries with undefined symbols to be built.
15315allow_undefined_flag=$lt_allow_undefined_flag_F77
15316
15317# Flag that forces no undefined symbols.
15318no_undefined_flag=$lt_no_undefined_flag_F77
15319
15320# Commands used to finish a libtool library installation in a directory.
15321finish_cmds=$lt_finish_cmds
15322
15323# Same as above, but a single script fragment to be evaled but not shown.
15324finish_eval=$lt_finish_eval
15325
15326# Take the output of nm and produce a listing of raw symbols and C names.
15327global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15328
15329# Transform the output of nm in a proper C declaration
15330global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15331
15332# Transform the output of nm in a C name address pair
15333global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15334
15335# This is the shared library runtime path variable.
15336runpath_var=$runpath_var
15337
15338# This is the shared library path variable.
15339shlibpath_var=$shlibpath_var
15340
15341# Is shlibpath searched before the hard-coded library search path?
15342shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15343
15344# How to hardcode a shared library path into an executable.
15345hardcode_action=$hardcode_action_F77
15346
15347# Whether we should hardcode library paths into libraries.
15348hardcode_into_libs=$hardcode_into_libs
15349
15350# Flag to hardcode \$libdir into a binary during linking.
15351# This must work even if \$libdir does not exist.
15352hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15353
15354# If ld is used when linking, flag to hardcode \$libdir into
15355# a binary during linking. This must work even if \$libdir does
15356# not exist.
15357hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15358
15359# Whether we need a single -rpath flag with a separated argument.
15360hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15361
15362# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15363# resulting binary.
15364hardcode_direct=$hardcode_direct_F77
15365
15366# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15367# resulting binary.
15368hardcode_minus_L=$hardcode_minus_L_F77
15369
15370# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15371# the resulting binary.
15372hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15373
15374# Set to yes if building a shared library automatically hardcodes DIR into the library
15375# and all subsequent libraries and executables linked against it.
15376hardcode_automatic=$hardcode_automatic_F77
15377
15378# Variables whose values should be saved in libtool wrapper scripts and
15379# restored at relink time.
15380variables_saved_for_relink="$variables_saved_for_relink"
15381
15382# Whether libtool must link a program against all its dependency libraries.
15383link_all_deplibs=$link_all_deplibs_F77
15384
15385# Compile-time system search path for libraries
15386sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15387
15388# Run-time system search path for libraries
15389sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15390
15391# Fix the shell variable \$srcfile for the compiler.
15392fix_srcfile_path="$fix_srcfile_path_F77"
15393
15394# Set to yes if exported symbols are required.
15395always_export_symbols=$always_export_symbols_F77
15396
15397# The commands to list exported symbols.
15398export_symbols_cmds=$lt_export_symbols_cmds_F77
15399
15400# The commands to extract the exported symbol list from a shared archive.
15401extract_expsyms_cmds=$lt_extract_expsyms_cmds
15402
15403# Symbols that should not be listed in the preloaded symbols.
15404exclude_expsyms=$lt_exclude_expsyms_F77
15405
15406# Symbols that must always be exported.
15407include_expsyms=$lt_include_expsyms_F77
15408
15409# ### END LIBTOOL TAG CONFIG: $tagname
15410
15411__EOF__
15412
15413
15414else
15415  # If there is no Makefile yet, we rely on a make rule to execute
15416  # `config.status --recheck' to rerun these tests and create the
15417  # libtool script then.
15418  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15419  if test -f "$ltmain_in"; then
15420    test -f Makefile && make "$ltmain"
15421  fi
15422fi
15423
15424
15425ac_ext=c
15426ac_cpp='$CPP $CPPFLAGS'
15427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15429ac_compiler_gnu=$ac_cv_c_compiler_gnu
15430
15431CC="$lt_save_CC"
15432
15433	else
15434	  tagname=""
15435	fi
15436	;;
15437
15438      GCJ)
15439	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15440
15441
15442
15443# Source file extension for Java test sources.
15444ac_ext=java
15445
15446# Object file extension for compiled Java test sources.
15447objext=o
15448objext_GCJ=$objext
15449
15450# Code to be used in simple compile tests
15451lt_simple_compile_test_code="class foo {}\n"
15452
15453# Code to be used in simple link tests
15454lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15455
15456# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15457
15458# If no C compiler was specified, use CC.
15459LTCC=${LTCC-"$CC"}
15460
15461# If no C compiler flags were specified, use CFLAGS.
15462LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15463
15464# Allow CC to be a program name with arguments.
15465compiler=$CC
15466
15467
15468# save warnings/boilerplate of simple test code
15469ac_outfile=conftest.$ac_objext
15470printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15471eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15472_lt_compiler_boilerplate=`cat conftest.err`
15473$rm conftest*
15474
15475ac_outfile=conftest.$ac_objext
15476printf "$lt_simple_link_test_code" >conftest.$ac_ext
15477eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15478_lt_linker_boilerplate=`cat conftest.err`
15479$rm conftest*
15480
15481
15482# Allow CC to be a program name with arguments.
15483lt_save_CC="$CC"
15484CC=${GCJ-"gcj"}
15485compiler=$CC
15486compiler_GCJ=$CC
15487for cc_temp in $compiler""; do
15488  case $cc_temp in
15489    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15490    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15491    \-*) ;;
15492    *) break;;
15493  esac
15494done
15495cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15496
15497
15498# GCJ did not exist at the time GCC didn't implicitly link libc in.
15499archive_cmds_need_lc_GCJ=no
15500
15501old_archive_cmds_GCJ=$old_archive_cmds
15502
15503
15504lt_prog_compiler_no_builtin_flag_GCJ=
15505
15506if test "$GCC" = yes; then
15507  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15508
15509
15510echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15511echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15512if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15513  echo $ECHO_N "(cached) $ECHO_C" >&6
15514else
15515  lt_cv_prog_compiler_rtti_exceptions=no
15516  ac_outfile=conftest.$ac_objext
15517   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15518   lt_compiler_flag="-fno-rtti -fno-exceptions"
15519   # Insert the option either (1) after the last *FLAGS variable, or
15520   # (2) before a word containing "conftest.", or (3) at the end.
15521   # Note that $ac_compile itself does not contain backslashes and begins
15522   # with a dollar sign (not a hyphen), so the echo should work correctly.
15523   # The option is referenced via a variable to avoid confusing sed.
15524   lt_compile=`echo "$ac_compile" | $SED \
15525   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15526   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15527   -e 's:$: $lt_compiler_flag:'`
15528   (eval echo "\"\$as_me:15528: $lt_compile\"" >&5)
15529   (eval "$lt_compile" 2>conftest.err)
15530   ac_status=$?
15531   cat conftest.err >&5
15532   echo "$as_me:15532: \$? = $ac_status" >&5
15533   if (exit $ac_status) && test -s "$ac_outfile"; then
15534     # The compiler can only warn and ignore the option if not recognized
15535     # So say no if there are warnings other than the usual output.
15536     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15537     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15538     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15539       lt_cv_prog_compiler_rtti_exceptions=yes
15540     fi
15541   fi
15542   $rm conftest*
15543
15544fi
15545echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15546echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15547
15548if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15549    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15550else
15551    :
15552fi
15553
15554fi
15555
15556lt_prog_compiler_wl_GCJ=
15557lt_prog_compiler_pic_GCJ=
15558lt_prog_compiler_static_GCJ=
15559
15560echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15561echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15562
15563  if test "$GCC" = yes; then
15564    lt_prog_compiler_wl_GCJ='-Wl,'
15565    lt_prog_compiler_static_GCJ='-static'
15566
15567    case $host_os in
15568      aix*)
15569      # All AIX code is PIC.
15570      if test "$host_cpu" = ia64; then
15571	# AIX 5 now supports IA64 processor
15572	lt_prog_compiler_static_GCJ='-Bstatic'
15573      fi
15574      ;;
15575
15576    amigaos*)
15577      # FIXME: we need at least 68020 code to build shared libraries, but
15578      # adding the `-m68020' flag to GCC prevents building anything better,
15579      # like `-m68040'.
15580      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15581      ;;
15582
15583    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15584      # PIC is the default for these OSes.
15585      ;;
15586
15587    mingw* | pw32* | os2*)
15588      # This hack is so that the source file can tell whether it is being
15589      # built for inclusion in a dll (and should export symbols for example).
15590      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15591      ;;
15592
15593    darwin* | rhapsody*)
15594      # PIC is the default on this platform
15595      # Common symbols not allowed in MH_DYLIB files
15596      lt_prog_compiler_pic_GCJ='-fno-common'
15597      ;;
15598
15599    interix3*)
15600      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15601      # Instead, we relocate shared libraries at runtime.
15602      ;;
15603
15604    msdosdjgpp*)
15605      # Just because we use GCC doesn't mean we suddenly get shared libraries
15606      # on systems that don't support them.
15607      lt_prog_compiler_can_build_shared_GCJ=no
15608      enable_shared=no
15609      ;;
15610
15611    sysv4*MP*)
15612      if test -d /usr/nec; then
15613	lt_prog_compiler_pic_GCJ=-Kconform_pic
15614      fi
15615      ;;
15616
15617    hpux*)
15618      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15619      # not for PA HP-UX.
15620      case $host_cpu in
15621      hppa*64*|ia64*)
15622	# +Z the default
15623	;;
15624      *)
15625	lt_prog_compiler_pic_GCJ='-fPIC'
15626	;;
15627      esac
15628      ;;
15629
15630    *)
15631      lt_prog_compiler_pic_GCJ='-fPIC'
15632      ;;
15633    esac
15634  else
15635    # PORTME Check for flag to pass linker flags through the system compiler.
15636    case $host_os in
15637    aix*)
15638      lt_prog_compiler_wl_GCJ='-Wl,'
15639      if test "$host_cpu" = ia64; then
15640	# AIX 5 now supports IA64 processor
15641	lt_prog_compiler_static_GCJ='-Bstatic'
15642      else
15643	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15644      fi
15645      ;;
15646      darwin*)
15647        # PIC is the default on this platform
15648        # Common symbols not allowed in MH_DYLIB files
15649       case $cc_basename in
15650         xlc*)
15651         lt_prog_compiler_pic_GCJ='-qnocommon'
15652         lt_prog_compiler_wl_GCJ='-Wl,'
15653         ;;
15654       esac
15655       ;;
15656
15657    mingw* | pw32* | os2*)
15658      # This hack is so that the source file can tell whether it is being
15659      # built for inclusion in a dll (and should export symbols for example).
15660      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15661      ;;
15662
15663    hpux9* | hpux10* | hpux11*)
15664      lt_prog_compiler_wl_GCJ='-Wl,'
15665      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15666      # not for PA HP-UX.
15667      case $host_cpu in
15668      hppa*64*|ia64*)
15669	# +Z the default
15670	;;
15671      *)
15672	lt_prog_compiler_pic_GCJ='+Z'
15673	;;
15674      esac
15675      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15676      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15677      ;;
15678
15679    irix5* | irix6* | nonstopux*)
15680      lt_prog_compiler_wl_GCJ='-Wl,'
15681      # PIC (with -KPIC) is the default.
15682      lt_prog_compiler_static_GCJ='-non_shared'
15683      ;;
15684
15685    newsos6)
15686      lt_prog_compiler_pic_GCJ='-KPIC'
15687      lt_prog_compiler_static_GCJ='-Bstatic'
15688      ;;
15689
15690    linux*)
15691      case $cc_basename in
15692      icc* | ecc*)
15693	lt_prog_compiler_wl_GCJ='-Wl,'
15694	lt_prog_compiler_pic_GCJ='-KPIC'
15695	lt_prog_compiler_static_GCJ='-static'
15696        ;;
15697      pgcc* | pgf77* | pgf90* | pgf95*)
15698        # Portland Group compilers (*not* the Pentium gcc compiler,
15699	# which looks to be a dead project)
15700	lt_prog_compiler_wl_GCJ='-Wl,'
15701	lt_prog_compiler_pic_GCJ='-fpic'
15702	lt_prog_compiler_static_GCJ='-Bstatic'
15703        ;;
15704      ccc*)
15705        lt_prog_compiler_wl_GCJ='-Wl,'
15706        # All Alpha code is PIC.
15707        lt_prog_compiler_static_GCJ='-non_shared'
15708        ;;
15709      esac
15710      ;;
15711
15712    osf3* | osf4* | osf5*)
15713      lt_prog_compiler_wl_GCJ='-Wl,'
15714      # All OSF/1 code is PIC.
15715      lt_prog_compiler_static_GCJ='-non_shared'
15716      ;;
15717
15718    solaris*)
15719      lt_prog_compiler_pic_GCJ='-KPIC'
15720      lt_prog_compiler_static_GCJ='-Bstatic'
15721      case $cc_basename in
15722      f77* | f90* | f95*)
15723	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15724      *)
15725	lt_prog_compiler_wl_GCJ='-Wl,';;
15726      esac
15727      ;;
15728
15729    sunos4*)
15730      lt_prog_compiler_wl_GCJ='-Qoption ld '
15731      lt_prog_compiler_pic_GCJ='-PIC'
15732      lt_prog_compiler_static_GCJ='-Bstatic'
15733      ;;
15734
15735    sysv4 | sysv4.2uw2* | sysv4.3*)
15736      lt_prog_compiler_wl_GCJ='-Wl,'
15737      lt_prog_compiler_pic_GCJ='-KPIC'
15738      lt_prog_compiler_static_GCJ='-Bstatic'
15739      ;;
15740
15741    sysv4*MP*)
15742      if test -d /usr/nec ;then
15743	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15744	lt_prog_compiler_static_GCJ='-Bstatic'
15745      fi
15746      ;;
15747
15748    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15749      lt_prog_compiler_wl_GCJ='-Wl,'
15750      lt_prog_compiler_pic_GCJ='-KPIC'
15751      lt_prog_compiler_static_GCJ='-Bstatic'
15752      ;;
15753
15754    unicos*)
15755      lt_prog_compiler_wl_GCJ='-Wl,'
15756      lt_prog_compiler_can_build_shared_GCJ=no
15757      ;;
15758
15759    uts4*)
15760      lt_prog_compiler_pic_GCJ='-pic'
15761      lt_prog_compiler_static_GCJ='-Bstatic'
15762      ;;
15763
15764    *)
15765      lt_prog_compiler_can_build_shared_GCJ=no
15766      ;;
15767    esac
15768  fi
15769
15770echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15771echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15772
15773#
15774# Check to make sure the PIC flag actually works.
15775#
15776if test -n "$lt_prog_compiler_pic_GCJ"; then
15777
15778echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15779echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15780if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15781  echo $ECHO_N "(cached) $ECHO_C" >&6
15782else
15783  lt_prog_compiler_pic_works_GCJ=no
15784  ac_outfile=conftest.$ac_objext
15785   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15786   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15787   # Insert the option either (1) after the last *FLAGS variable, or
15788   # (2) before a word containing "conftest.", or (3) at the end.
15789   # Note that $ac_compile itself does not contain backslashes and begins
15790   # with a dollar sign (not a hyphen), so the echo should work correctly.
15791   # The option is referenced via a variable to avoid confusing sed.
15792   lt_compile=`echo "$ac_compile" | $SED \
15793   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15794   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15795   -e 's:$: $lt_compiler_flag:'`
15796   (eval echo "\"\$as_me:15796: $lt_compile\"" >&5)
15797   (eval "$lt_compile" 2>conftest.err)
15798   ac_status=$?
15799   cat conftest.err >&5
15800   echo "$as_me:15800: \$? = $ac_status" >&5
15801   if (exit $ac_status) && test -s "$ac_outfile"; then
15802     # The compiler can only warn and ignore the option if not recognized
15803     # So say no if there are warnings other than the usual output.
15804     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15805     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15806     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15807       lt_prog_compiler_pic_works_GCJ=yes
15808     fi
15809   fi
15810   $rm conftest*
15811
15812fi
15813echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15814echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15815
15816if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15817    case $lt_prog_compiler_pic_GCJ in
15818     "" | " "*) ;;
15819     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15820     esac
15821else
15822    lt_prog_compiler_pic_GCJ=
15823     lt_prog_compiler_can_build_shared_GCJ=no
15824fi
15825
15826fi
15827case $host_os in
15828  # For platforms which do not support PIC, -DPIC is meaningless:
15829  *djgpp*)
15830    lt_prog_compiler_pic_GCJ=
15831    ;;
15832  *)
15833    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15834    ;;
15835esac
15836
15837#
15838# Check to make sure the static flag actually works.
15839#
15840wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15841echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15842echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15843if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15844  echo $ECHO_N "(cached) $ECHO_C" >&6
15845else
15846  lt_prog_compiler_static_works_GCJ=no
15847   save_LDFLAGS="$LDFLAGS"
15848   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15849   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15850   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15851     # The linker can only warn and ignore the option if not recognized
15852     # So say no if there are warnings
15853     if test -s conftest.err; then
15854       # Append any errors to the config.log.
15855       cat conftest.err 1>&5
15856       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15857       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15858       if diff conftest.exp conftest.er2 >/dev/null; then
15859         lt_prog_compiler_static_works_GCJ=yes
15860       fi
15861     else
15862       lt_prog_compiler_static_works_GCJ=yes
15863     fi
15864   fi
15865   $rm conftest*
15866   LDFLAGS="$save_LDFLAGS"
15867
15868fi
15869echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15870echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15871
15872if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15873    :
15874else
15875    lt_prog_compiler_static_GCJ=
15876fi
15877
15878
15879echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15880echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15881if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15882  echo $ECHO_N "(cached) $ECHO_C" >&6
15883else
15884  lt_cv_prog_compiler_c_o_GCJ=no
15885   $rm -r conftest 2>/dev/null
15886   mkdir conftest
15887   cd conftest
15888   mkdir out
15889   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15890
15891   lt_compiler_flag="-o out/conftest2.$ac_objext"
15892   # Insert the option either (1) after the last *FLAGS variable, or
15893   # (2) before a word containing "conftest.", or (3) at the end.
15894   # Note that $ac_compile itself does not contain backslashes and begins
15895   # with a dollar sign (not a hyphen), so the echo should work correctly.
15896   lt_compile=`echo "$ac_compile" | $SED \
15897   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15898   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15899   -e 's:$: $lt_compiler_flag:'`
15900   (eval echo "\"\$as_me:15900: $lt_compile\"" >&5)
15901   (eval "$lt_compile" 2>out/conftest.err)
15902   ac_status=$?
15903   cat out/conftest.err >&5
15904   echo "$as_me:15904: \$? = $ac_status" >&5
15905   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15906   then
15907     # The compiler can only warn and ignore the option if not recognized
15908     # So say no if there are warnings
15909     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15910     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15911     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15912       lt_cv_prog_compiler_c_o_GCJ=yes
15913     fi
15914   fi
15915   chmod u+w . 2>&5
15916   $rm conftest*
15917   # SGI C++ compiler will create directory out/ii_files/ for
15918   # template instantiation
15919   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15920   $rm out/* && rmdir out
15921   cd ..
15922   rmdir conftest
15923   $rm conftest*
15924
15925fi
15926echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15927echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15928
15929
15930hard_links="nottested"
15931if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15932  # do not overwrite the value of need_locks provided by the user
15933  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15934echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15935  hard_links=yes
15936  $rm conftest*
15937  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15938  touch conftest.a
15939  ln conftest.a conftest.b 2>&5 || hard_links=no
15940  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15941  echo "$as_me:$LINENO: result: $hard_links" >&5
15942echo "${ECHO_T}$hard_links" >&6
15943  if test "$hard_links" = no; then
15944    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15945echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15946    need_locks=warn
15947  fi
15948else
15949  need_locks=no
15950fi
15951
15952echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15953echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15954
15955  runpath_var=
15956  allow_undefined_flag_GCJ=
15957  enable_shared_with_static_runtimes_GCJ=no
15958  archive_cmds_GCJ=
15959  archive_expsym_cmds_GCJ=
15960  old_archive_From_new_cmds_GCJ=
15961  old_archive_from_expsyms_cmds_GCJ=
15962  export_dynamic_flag_spec_GCJ=
15963  whole_archive_flag_spec_GCJ=
15964  thread_safe_flag_spec_GCJ=
15965  hardcode_libdir_flag_spec_GCJ=
15966  hardcode_libdir_flag_spec_ld_GCJ=
15967  hardcode_libdir_separator_GCJ=
15968  hardcode_direct_GCJ=no
15969  hardcode_minus_L_GCJ=no
15970  hardcode_shlibpath_var_GCJ=unsupported
15971  link_all_deplibs_GCJ=unknown
15972  hardcode_automatic_GCJ=no
15973  module_cmds_GCJ=
15974  module_expsym_cmds_GCJ=
15975  always_export_symbols_GCJ=no
15976  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15977  # include_expsyms should be a list of space-separated symbols to be *always*
15978  # included in the symbol list
15979  include_expsyms_GCJ=
15980  # exclude_expsyms can be an extended regexp of symbols to exclude
15981  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15982  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15983  # as well as any symbol that contains `d'.
15984  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15985  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15986  # platforms (ab)use it in PIC code, but their linkers get confused if
15987  # the symbol is explicitly referenced.  Since portable code cannot
15988  # rely on this symbol name, it's probably fine to never include it in
15989  # preloaded symbol tables.
15990  extract_expsyms_cmds=
15991  # Just being paranoid about ensuring that cc_basename is set.
15992  for cc_temp in $compiler""; do
15993  case $cc_temp in
15994    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15995    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15996    \-*) ;;
15997    *) break;;
15998  esac
15999done
16000cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16001
16002  case $host_os in
16003  cygwin* | mingw* | pw32*)
16004    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16005    # When not using gcc, we currently assume that we are using
16006    # Microsoft Visual C++.
16007    if test "$GCC" != yes; then
16008      with_gnu_ld=no
16009    fi
16010    ;;
16011  interix*)
16012    # we just hope/assume this is gcc and not c89 (= MSVC++)
16013    with_gnu_ld=yes
16014    ;;
16015  openbsd*)
16016    with_gnu_ld=no
16017    ;;
16018  esac
16019
16020  ld_shlibs_GCJ=yes
16021  if test "$with_gnu_ld" = yes; then
16022    # If archive_cmds runs LD, not CC, wlarc should be empty
16023    wlarc='${wl}'
16024
16025    # Set some defaults for GNU ld with shared library support. These
16026    # are reset later if shared libraries are not supported. Putting them
16027    # here allows them to be overridden if necessary.
16028    runpath_var=LD_RUN_PATH
16029    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16030    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16031    # ancient GNU ld didn't support --whole-archive et. al.
16032    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16033	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16034      else
16035  	whole_archive_flag_spec_GCJ=
16036    fi
16037    supports_anon_versioning=no
16038    case `$LD -v 2>/dev/null` in
16039      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16040      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16041      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16042      *\ 2.11.*) ;; # other 2.11 versions
16043      *) supports_anon_versioning=yes ;;
16044    esac
16045
16046    # See if GNU ld supports shared libraries.
16047    case $host_os in
16048    aix3* | aix4* | aix5*)
16049      # On AIX/PPC, the GNU linker is very broken
16050      if test "$host_cpu" != ia64; then
16051	ld_shlibs_GCJ=no
16052	cat <<EOF 1>&2
16053
16054*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16055*** to be unable to reliably create shared libraries on AIX.
16056*** Therefore, libtool is disabling shared libraries support.  If you
16057*** really care for shared libraries, you may want to modify your PATH
16058*** so that a non-GNU linker is found, and then restart.
16059
16060EOF
16061      fi
16062      ;;
16063
16064    amigaos*)
16065      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)'
16066      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16067      hardcode_minus_L_GCJ=yes
16068
16069      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16070      # that the semantics of dynamic libraries on AmigaOS, at least up
16071      # to version 4, is to share data among multiple programs linked
16072      # with the same dynamic library.  Since this doesn't match the
16073      # behavior of shared libraries on other platforms, we can't use
16074      # them.
16075      ld_shlibs_GCJ=no
16076      ;;
16077
16078    beos*)
16079      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16080	allow_undefined_flag_GCJ=unsupported
16081	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16082	# support --undefined.  This deserves some investigation.  FIXME
16083	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16084      else
16085	ld_shlibs_GCJ=no
16086      fi
16087      ;;
16088
16089    cygwin* | mingw* | pw32*)
16090      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16091      # as there is no search path for DLLs.
16092      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16093      allow_undefined_flag_GCJ=unsupported
16094      always_export_symbols_GCJ=no
16095      enable_shared_with_static_runtimes_GCJ=yes
16096      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16097
16098      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16099        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16100	# If the export-symbols file already is a .def file (1st line
16101	# is EXPORTS), use it as is; otherwise, prepend...
16102	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16103	  cp $export_symbols $output_objdir/$soname.def;
16104	else
16105	  echo EXPORTS > $output_objdir/$soname.def;
16106	  cat $export_symbols >> $output_objdir/$soname.def;
16107	fi~
16108	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16109      else
16110	ld_shlibs_GCJ=no
16111      fi
16112      ;;
16113
16114    interix3*)
16115      hardcode_direct_GCJ=no
16116      hardcode_shlibpath_var_GCJ=no
16117      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16118      export_dynamic_flag_spec_GCJ='${wl}-E'
16119      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16120      # Instead, shared libraries are loaded at an image base (0x10000000 by
16121      # default) and relocated if they conflict, which is a slow very memory
16122      # consuming and fragmenting process.  To avoid this, we pick a random,
16123      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16124      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16125      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'
16126      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'
16127      ;;
16128
16129    linux*)
16130      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16131	tmp_addflag=
16132	case $cc_basename,$host_cpu in
16133	pgcc*)				# Portland Group C compiler
16134	  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'
16135	  tmp_addflag=' $pic_flag'
16136	  ;;
16137	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16138	  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'
16139	  tmp_addflag=' $pic_flag -Mnomain' ;;
16140	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16141	  tmp_addflag=' -i_dynamic' ;;
16142	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16143	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16144	ifc* | ifort*)			# Intel Fortran compiler
16145	  tmp_addflag=' -nofor_main' ;;
16146	esac
16147	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16148
16149	if test $supports_anon_versioning = yes; then
16150	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16151  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16152  $echo "local: *; };" >> $output_objdir/$libname.ver~
16153	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16154	fi
16155      else
16156	ld_shlibs_GCJ=no
16157      fi
16158      ;;
16159
16160    netbsd*)
16161      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16162	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16163	wlarc=
16164      else
16165	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16166	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16167      fi
16168      ;;
16169
16170    solaris*)
16171      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16172	ld_shlibs_GCJ=no
16173	cat <<EOF 1>&2
16174
16175*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16176*** create shared libraries on Solaris systems.  Therefore, libtool
16177*** is disabling shared libraries support.  We urge you to upgrade GNU
16178*** binutils to release 2.9.1 or newer.  Another option is to modify
16179*** your PATH or compiler configuration so that the native linker is
16180*** used, and then restart.
16181
16182EOF
16183      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16184	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16185	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16186      else
16187	ld_shlibs_GCJ=no
16188      fi
16189      ;;
16190
16191    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16192      case `$LD -v 2>&1` in
16193        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16194	ld_shlibs_GCJ=no
16195	cat <<_LT_EOF 1>&2
16196
16197*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16198*** reliably create shared libraries on SCO systems.  Therefore, libtool
16199*** is disabling shared libraries support.  We urge you to upgrade GNU
16200*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16201*** your PATH or compiler configuration so that the native linker is
16202*** used, and then restart.
16203
16204_LT_EOF
16205	;;
16206	*)
16207	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16208	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16209	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16210	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16211	  else
16212	    ld_shlibs_GCJ=no
16213	  fi
16214	;;
16215      esac
16216      ;;
16217
16218    sunos4*)
16219      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16220      wlarc=
16221      hardcode_direct_GCJ=yes
16222      hardcode_shlibpath_var_GCJ=no
16223      ;;
16224
16225    *)
16226      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16227	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16228	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16229      else
16230	ld_shlibs_GCJ=no
16231      fi
16232      ;;
16233    esac
16234
16235    if test "$ld_shlibs_GCJ" = no; then
16236      runpath_var=
16237      hardcode_libdir_flag_spec_GCJ=
16238      export_dynamic_flag_spec_GCJ=
16239      whole_archive_flag_spec_GCJ=
16240    fi
16241  else
16242    # PORTME fill in a description of your system's linker (not GNU ld)
16243    case $host_os in
16244    aix3*)
16245      allow_undefined_flag_GCJ=unsupported
16246      always_export_symbols_GCJ=yes
16247      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'
16248      # Note: this linker hardcodes the directories in LIBPATH if there
16249      # are no directories specified by -L.
16250      hardcode_minus_L_GCJ=yes
16251      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16252	# Neither direct hardcoding nor static linking is supported with a
16253	# broken collect2.
16254	hardcode_direct_GCJ=unsupported
16255      fi
16256      ;;
16257
16258    aix4* | aix5*)
16259      if test "$host_cpu" = ia64; then
16260	# On IA64, the linker does run time linking by default, so we don't
16261	# have to do anything special.
16262	aix_use_runtimelinking=no
16263	exp_sym_flag='-Bexport'
16264	no_entry_flag=""
16265      else
16266	# If we're using GNU nm, then we don't want the "-C" option.
16267	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16268	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16269	  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'
16270	else
16271	  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'
16272	fi
16273	aix_use_runtimelinking=no
16274
16275	# Test if we are trying to use run time linking or normal
16276	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16277	# need to do runtime linking.
16278	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16279	  for ld_flag in $LDFLAGS; do
16280  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16281  	    aix_use_runtimelinking=yes
16282  	    break
16283  	  fi
16284	  done
16285	  ;;
16286	esac
16287
16288	exp_sym_flag='-bexport'
16289	no_entry_flag='-bnoentry'
16290      fi
16291
16292      # When large executables or shared objects are built, AIX ld can
16293      # have problems creating the table of contents.  If linking a library
16294      # or program results in "error TOC overflow" add -mminimal-toc to
16295      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16296      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16297
16298      archive_cmds_GCJ=''
16299      hardcode_direct_GCJ=yes
16300      hardcode_libdir_separator_GCJ=':'
16301      link_all_deplibs_GCJ=yes
16302
16303      if test "$GCC" = yes; then
16304	case $host_os in aix4.[012]|aix4.[012].*)
16305	# We only want to do this on AIX 4.2 and lower, the check
16306	# below for broken collect2 doesn't work under 4.3+
16307	  collect2name=`${CC} -print-prog-name=collect2`
16308	  if test -f "$collect2name" && \
16309  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16310	  then
16311  	  # We have reworked collect2
16312  	  hardcode_direct_GCJ=yes
16313	  else
16314  	  # We have old collect2
16315  	  hardcode_direct_GCJ=unsupported
16316  	  # It fails to find uninstalled libraries when the uninstalled
16317  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16318  	  # to unsupported forces relinking
16319  	  hardcode_minus_L_GCJ=yes
16320  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16321  	  hardcode_libdir_separator_GCJ=
16322	  fi
16323	  ;;
16324	esac
16325	shared_flag='-shared'
16326	if test "$aix_use_runtimelinking" = yes; then
16327	  shared_flag="$shared_flag "'${wl}-G'
16328	fi
16329      else
16330	# not using gcc
16331	if test "$host_cpu" = ia64; then
16332  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16333  	# chokes on -Wl,-G. The following line is correct:
16334	  shared_flag='-G'
16335	else
16336	  if test "$aix_use_runtimelinking" = yes; then
16337	    shared_flag='${wl}-G'
16338	  else
16339	    shared_flag='${wl}-bM:SRE'
16340	  fi
16341	fi
16342      fi
16343
16344      # It seems that -bexpall does not export symbols beginning with
16345      # underscore (_), so it is better to generate a list of symbols to export.
16346      always_export_symbols_GCJ=yes
16347      if test "$aix_use_runtimelinking" = yes; then
16348	# Warning - without using the other runtime loading flags (-brtl),
16349	# -berok will link without error, but may produce a broken library.
16350	allow_undefined_flag_GCJ='-berok'
16351       # Determine the default libpath from the value encoded in an empty executable.
16352       cat >conftest.$ac_ext <<_ACEOF
16353/* confdefs.h.  */
16354_ACEOF
16355cat confdefs.h >>conftest.$ac_ext
16356cat >>conftest.$ac_ext <<_ACEOF
16357/* end confdefs.h.  */
16358
16359int
16360main ()
16361{
16362
16363  ;
16364  return 0;
16365}
16366_ACEOF
16367rm -f conftest.$ac_objext conftest$ac_exeext
16368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16369  (eval $ac_link) 2>conftest.er1
16370  ac_status=$?
16371  grep -v '^ *+' conftest.er1 >conftest.err
16372  rm -f conftest.er1
16373  cat conftest.err >&5
16374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375  (exit $ac_status); } &&
16376	 { ac_try='test -z "$ac_c_werror_flag"
16377			 || test ! -s conftest.err'
16378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379  (eval $ac_try) 2>&5
16380  ac_status=$?
16381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382  (exit $ac_status); }; } &&
16383	 { ac_try='test -s conftest$ac_exeext'
16384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385  (eval $ac_try) 2>&5
16386  ac_status=$?
16387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388  (exit $ac_status); }; }; then
16389
16390aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16391}'`
16392# Check for a 64-bit object if we didn't find anything.
16393if 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; }
16394}'`; fi
16395else
16396  echo "$as_me: failed program was:" >&5
16397sed 's/^/| /' conftest.$ac_ext >&5
16398
16399fi
16400rm -f conftest.err conftest.$ac_objext \
16401      conftest$ac_exeext conftest.$ac_ext
16402if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16403
16404       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16405	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"
16406       else
16407	if test "$host_cpu" = ia64; then
16408	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16409	  allow_undefined_flag_GCJ="-z nodefs"
16410	  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"
16411	else
16412	 # Determine the default libpath from the value encoded in an empty executable.
16413	 cat >conftest.$ac_ext <<_ACEOF
16414/* confdefs.h.  */
16415_ACEOF
16416cat confdefs.h >>conftest.$ac_ext
16417cat >>conftest.$ac_ext <<_ACEOF
16418/* end confdefs.h.  */
16419
16420int
16421main ()
16422{
16423
16424  ;
16425  return 0;
16426}
16427_ACEOF
16428rm -f conftest.$ac_objext conftest$ac_exeext
16429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16430  (eval $ac_link) 2>conftest.er1
16431  ac_status=$?
16432  grep -v '^ *+' conftest.er1 >conftest.err
16433  rm -f conftest.er1
16434  cat conftest.err >&5
16435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436  (exit $ac_status); } &&
16437	 { ac_try='test -z "$ac_c_werror_flag"
16438			 || test ! -s conftest.err'
16439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440  (eval $ac_try) 2>&5
16441  ac_status=$?
16442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443  (exit $ac_status); }; } &&
16444	 { ac_try='test -s conftest$ac_exeext'
16445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446  (eval $ac_try) 2>&5
16447  ac_status=$?
16448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449  (exit $ac_status); }; }; then
16450
16451aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16452}'`
16453# Check for a 64-bit object if we didn't find anything.
16454if 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; }
16455}'`; fi
16456else
16457  echo "$as_me: failed program was:" >&5
16458sed 's/^/| /' conftest.$ac_ext >&5
16459
16460fi
16461rm -f conftest.err conftest.$ac_objext \
16462      conftest$ac_exeext conftest.$ac_ext
16463if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16464
16465	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16466	  # Warning - without using the other run time loading flags,
16467	  # -berok will link without error, but may produce a broken library.
16468	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16469	  allow_undefined_flag_GCJ=' ${wl}-berok'
16470	  # Exported symbols can be pulled into shared objects from archives
16471	  whole_archive_flag_spec_GCJ='$convenience'
16472	  archive_cmds_need_lc_GCJ=yes
16473	  # This is similar to how AIX traditionally builds its shared libraries.
16474	  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'
16475	fi
16476      fi
16477      ;;
16478
16479    amigaos*)
16480      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)'
16481      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16482      hardcode_minus_L_GCJ=yes
16483      # see comment about different semantics on the GNU ld section
16484      ld_shlibs_GCJ=no
16485      ;;
16486
16487    bsdi[45]*)
16488      export_dynamic_flag_spec_GCJ=-rdynamic
16489      ;;
16490
16491    cygwin* | mingw* | pw32*)
16492      # When not using gcc, we currently assume that we are using
16493      # Microsoft Visual C++.
16494      # hardcode_libdir_flag_spec is actually meaningless, as there is
16495      # no search path for DLLs.
16496      hardcode_libdir_flag_spec_GCJ=' '
16497      allow_undefined_flag_GCJ=unsupported
16498      # Tell ltmain to make .lib files, not .a files.
16499      libext=lib
16500      # Tell ltmain to make .dll files, not .so files.
16501      shrext_cmds=".dll"
16502      # FIXME: Setting linknames here is a bad hack.
16503      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16504      # The linker will automatically build a .lib file if we build a DLL.
16505      old_archive_From_new_cmds_GCJ='true'
16506      # FIXME: Should let the user specify the lib program.
16507      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16508      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16509      enable_shared_with_static_runtimes_GCJ=yes
16510      ;;
16511
16512    darwin* | rhapsody*)
16513      case $host_os in
16514        rhapsody* | darwin1.[012])
16515         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16516         ;;
16517       *) # Darwin 1.3 on
16518         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16519           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16520         else
16521           case ${MACOSX_DEPLOYMENT_TARGET} in
16522             10.[012])
16523               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16524               ;;
16525             10.*)
16526               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16527               ;;
16528           esac
16529         fi
16530         ;;
16531      esac
16532      archive_cmds_need_lc_GCJ=no
16533      hardcode_direct_GCJ=no
16534      hardcode_automatic_GCJ=yes
16535      hardcode_shlibpath_var_GCJ=unsupported
16536      whole_archive_flag_spec_GCJ=''
16537      link_all_deplibs_GCJ=yes
16538    if test "$GCC" = yes ; then
16539    	output_verbose_link_cmd='echo'
16540        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16541      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16542      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16543      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}'
16544      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}'
16545    else
16546      case $cc_basename in
16547        xlc*)
16548         output_verbose_link_cmd='echo'
16549         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16550         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16551          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16552         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}'
16553          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}'
16554          ;;
16555       *)
16556         ld_shlibs_GCJ=no
16557          ;;
16558      esac
16559    fi
16560      ;;
16561
16562    dgux*)
16563      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16564      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16565      hardcode_shlibpath_var_GCJ=no
16566      ;;
16567
16568    freebsd1*)
16569      ld_shlibs_GCJ=no
16570      ;;
16571
16572    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16573    # support.  Future versions do this automatically, but an explicit c++rt0.o
16574    # does not break anything, and helps significantly (at the cost of a little
16575    # extra space).
16576    freebsd2.2*)
16577      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16578      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16579      hardcode_direct_GCJ=yes
16580      hardcode_shlibpath_var_GCJ=no
16581      ;;
16582
16583    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16584    freebsd2*)
16585      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16586      hardcode_direct_GCJ=yes
16587      hardcode_minus_L_GCJ=yes
16588      hardcode_shlibpath_var_GCJ=no
16589      ;;
16590
16591    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16592    freebsd* | kfreebsd*-gnu | dragonfly*)
16593      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16594      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16595      hardcode_direct_GCJ=yes
16596      hardcode_shlibpath_var_GCJ=no
16597      ;;
16598
16599    hpux9*)
16600      if test "$GCC" = yes; then
16601	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'
16602      else
16603	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'
16604      fi
16605      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16606      hardcode_libdir_separator_GCJ=:
16607      hardcode_direct_GCJ=yes
16608
16609      # hardcode_minus_L: Not really in the search PATH,
16610      # but as the default location of the library.
16611      hardcode_minus_L_GCJ=yes
16612      export_dynamic_flag_spec_GCJ='${wl}-E'
16613      ;;
16614
16615    hpux10*)
16616      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16617	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16618      else
16619	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16620      fi
16621      if test "$with_gnu_ld" = no; then
16622	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16623	hardcode_libdir_separator_GCJ=:
16624
16625	hardcode_direct_GCJ=yes
16626	export_dynamic_flag_spec_GCJ='${wl}-E'
16627
16628	# hardcode_minus_L: Not really in the search PATH,
16629	# but as the default location of the library.
16630	hardcode_minus_L_GCJ=yes
16631      fi
16632      ;;
16633
16634    hpux11*)
16635      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16636	case $host_cpu in
16637	hppa*64*)
16638	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16639	  ;;
16640	ia64*)
16641	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16642	  ;;
16643	*)
16644	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16645	  ;;
16646	esac
16647      else
16648	case $host_cpu in
16649	hppa*64*)
16650	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16651	  ;;
16652	ia64*)
16653	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16654	  ;;
16655	*)
16656	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16657	  ;;
16658	esac
16659      fi
16660      if test "$with_gnu_ld" = no; then
16661	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16662	hardcode_libdir_separator_GCJ=:
16663
16664	case $host_cpu in
16665	hppa*64*|ia64*)
16666	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16667	  hardcode_direct_GCJ=no
16668	  hardcode_shlibpath_var_GCJ=no
16669	  ;;
16670	*)
16671	  hardcode_direct_GCJ=yes
16672	  export_dynamic_flag_spec_GCJ='${wl}-E'
16673
16674	  # hardcode_minus_L: Not really in the search PATH,
16675	  # but as the default location of the library.
16676	  hardcode_minus_L_GCJ=yes
16677	  ;;
16678	esac
16679      fi
16680      ;;
16681
16682    irix5* | irix6* | nonstopux*)
16683      if test "$GCC" = yes; then
16684	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'
16685      else
16686	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'
16687	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16688      fi
16689      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16690      hardcode_libdir_separator_GCJ=:
16691      link_all_deplibs_GCJ=yes
16692      ;;
16693
16694    netbsd*)
16695      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16696	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16697      else
16698	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16699      fi
16700      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16701      hardcode_direct_GCJ=yes
16702      hardcode_shlibpath_var_GCJ=no
16703      ;;
16704
16705    newsos6)
16706      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16707      hardcode_direct_GCJ=yes
16708      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16709      hardcode_libdir_separator_GCJ=:
16710      hardcode_shlibpath_var_GCJ=no
16711      ;;
16712
16713    openbsd*)
16714      hardcode_direct_GCJ=yes
16715      hardcode_shlibpath_var_GCJ=no
16716      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16717	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16718	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16719	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16720	export_dynamic_flag_spec_GCJ='${wl}-E'
16721      else
16722       case $host_os in
16723	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16724	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16725	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16726	   ;;
16727	 *)
16728	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16729	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16730	   ;;
16731       esac
16732      fi
16733      ;;
16734
16735    os2*)
16736      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16737      hardcode_minus_L_GCJ=yes
16738      allow_undefined_flag_GCJ=unsupported
16739      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'
16740      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16741      ;;
16742
16743    osf3*)
16744      if test "$GCC" = yes; then
16745	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16746	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'
16747      else
16748	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16749	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'
16750      fi
16751      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16752      hardcode_libdir_separator_GCJ=:
16753      ;;
16754
16755    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16756      if test "$GCC" = yes; then
16757	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16758	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'
16759	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16760      else
16761	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16762	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'
16763	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~
16764	$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'
16765
16766	# Both c and cxx compiler support -rpath directly
16767	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16768      fi
16769      hardcode_libdir_separator_GCJ=:
16770      ;;
16771
16772    solaris*)
16773      no_undefined_flag_GCJ=' -z text'
16774      if test "$GCC" = yes; then
16775	wlarc='${wl}'
16776	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16777	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16778	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16779      else
16780	wlarc=''
16781	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16782	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16783  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16784      fi
16785      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16786      hardcode_shlibpath_var_GCJ=no
16787      case $host_os in
16788      solaris2.[0-5] | solaris2.[0-5].*) ;;
16789      *)
16790 	# The compiler driver will combine linker options so we
16791 	# cannot just pass the convience library names through
16792 	# without $wl, iff we do not link with $LD.
16793 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16794 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16795 	case $wlarc in
16796 	'')
16797 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16798 	*)
16799 	  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' ;;
16800 	esac ;;
16801      esac
16802      link_all_deplibs_GCJ=yes
16803      ;;
16804
16805    sunos4*)
16806      if test "x$host_vendor" = xsequent; then
16807	# Use $CC to link under sequent, because it throws in some extra .o
16808	# files that make .init and .fini sections work.
16809	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16810      else
16811	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16812      fi
16813      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16814      hardcode_direct_GCJ=yes
16815      hardcode_minus_L_GCJ=yes
16816      hardcode_shlibpath_var_GCJ=no
16817      ;;
16818
16819    sysv4)
16820      case $host_vendor in
16821	sni)
16822	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16823	  hardcode_direct_GCJ=yes # is this really true???
16824	;;
16825	siemens)
16826	  ## LD is ld it makes a PLAMLIB
16827	  ## CC just makes a GrossModule.
16828	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16829	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16830	  hardcode_direct_GCJ=no
16831        ;;
16832	motorola)
16833	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16834	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16835	;;
16836      esac
16837      runpath_var='LD_RUN_PATH'
16838      hardcode_shlibpath_var_GCJ=no
16839      ;;
16840
16841    sysv4.3*)
16842      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843      hardcode_shlibpath_var_GCJ=no
16844      export_dynamic_flag_spec_GCJ='-Bexport'
16845      ;;
16846
16847    sysv4*MP*)
16848      if test -d /usr/nec; then
16849	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16850	hardcode_shlibpath_var_GCJ=no
16851	runpath_var=LD_RUN_PATH
16852	hardcode_runpath_var=yes
16853	ld_shlibs_GCJ=yes
16854      fi
16855      ;;
16856
16857    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16858      no_undefined_flag_GCJ='${wl}-z,text'
16859      archive_cmds_need_lc_GCJ=no
16860      hardcode_shlibpath_var_GCJ=no
16861      runpath_var='LD_RUN_PATH'
16862
16863      if test "$GCC" = yes; then
16864	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16865	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16866      else
16867	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16868	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16869      fi
16870      ;;
16871
16872    sysv5* | sco3.2v5* | sco5v6*)
16873      # Note: We can NOT use -z defs as we might desire, because we do not
16874      # link with -lc, and that would cause any symbols used from libc to
16875      # always be unresolved, which means just about no library would
16876      # ever link correctly.  If we're not using GNU ld we use -z text
16877      # though, which does catch some bad symbols but isn't as heavy-handed
16878      # as -z defs.
16879      no_undefined_flag_GCJ='${wl}-z,text'
16880      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16881      archive_cmds_need_lc_GCJ=no
16882      hardcode_shlibpath_var_GCJ=no
16883      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16884      hardcode_libdir_separator_GCJ=':'
16885      link_all_deplibs_GCJ=yes
16886      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16887      runpath_var='LD_RUN_PATH'
16888
16889      if test "$GCC" = yes; then
16890	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16891	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16892      else
16893	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16894	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16895      fi
16896      ;;
16897
16898    uts4*)
16899      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16900      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16901      hardcode_shlibpath_var_GCJ=no
16902      ;;
16903
16904    *)
16905      ld_shlibs_GCJ=no
16906      ;;
16907    esac
16908  fi
16909
16910echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16911echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16912test "$ld_shlibs_GCJ" = no && can_build_shared=no
16913
16914#
16915# Do we need to explicitly link libc?
16916#
16917case "x$archive_cmds_need_lc_GCJ" in
16918x|xyes)
16919  # Assume -lc should be added
16920  archive_cmds_need_lc_GCJ=yes
16921
16922  if test "$enable_shared" = yes && test "$GCC" = yes; then
16923    case $archive_cmds_GCJ in
16924    *'~'*)
16925      # FIXME: we may have to deal with multi-command sequences.
16926      ;;
16927    '$CC '*)
16928      # Test whether the compiler implicitly links with -lc since on some
16929      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16930      # to ld, don't add -lc before -lgcc.
16931      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16932echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16933      $rm conftest*
16934      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16935
16936      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16937  (eval $ac_compile) 2>&5
16938  ac_status=$?
16939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940  (exit $ac_status); } 2>conftest.err; then
16941        soname=conftest
16942        lib=conftest
16943        libobjs=conftest.$ac_objext
16944        deplibs=
16945        wl=$lt_prog_compiler_wl_GCJ
16946	pic_flag=$lt_prog_compiler_pic_GCJ
16947        compiler_flags=-v
16948        linker_flags=-v
16949        verstring=
16950        output_objdir=.
16951        libname=conftest
16952        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16953        allow_undefined_flag_GCJ=
16954        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16955  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16956  ac_status=$?
16957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958  (exit $ac_status); }
16959        then
16960	  archive_cmds_need_lc_GCJ=no
16961        else
16962	  archive_cmds_need_lc_GCJ=yes
16963        fi
16964        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16965      else
16966        cat conftest.err 1>&5
16967      fi
16968      $rm conftest*
16969      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16970echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16971      ;;
16972    esac
16973  fi
16974  ;;
16975esac
16976
16977echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16978echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16979library_names_spec=
16980libname_spec='lib$name'
16981soname_spec=
16982shrext_cmds=".so"
16983postinstall_cmds=
16984postuninstall_cmds=
16985finish_cmds=
16986finish_eval=
16987shlibpath_var=
16988shlibpath_overrides_runpath=unknown
16989version_type=none
16990dynamic_linker="$host_os ld.so"
16991sys_lib_dlsearch_path_spec="/lib /usr/lib"
16992if test "$GCC" = yes; then
16993  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16994  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16995    # if the path contains ";" then we assume it to be the separator
16996    # otherwise default to the standard path separator (i.e. ":") - it is
16997    # assumed that no part of a normal pathname contains ";" but that should
16998    # okay in the real world where ";" in dirpaths is itself problematic.
16999    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17000  else
17001    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17002  fi
17003else
17004  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17005fi
17006need_lib_prefix=unknown
17007hardcode_into_libs=no
17008
17009# when you set need_version to no, make sure it does not cause -set_version
17010# flags to be left without arguments
17011need_version=unknown
17012
17013case $host_os in
17014aix3*)
17015  version_type=linux
17016  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17017  shlibpath_var=LIBPATH
17018
17019  # AIX 3 has no versioning support, so we append a major version to the name.
17020  soname_spec='${libname}${release}${shared_ext}$major'
17021  ;;
17022
17023aix4* | aix5*)
17024  version_type=linux
17025  need_lib_prefix=no
17026  need_version=no
17027  hardcode_into_libs=yes
17028  if test "$host_cpu" = ia64; then
17029    # AIX 5 supports IA64
17030    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17031    shlibpath_var=LD_LIBRARY_PATH
17032  else
17033    # With GCC up to 2.95.x, collect2 would create an import file
17034    # for dependence libraries.  The import file would start with
17035    # the line `#! .'.  This would cause the generated library to
17036    # depend on `.', always an invalid library.  This was fixed in
17037    # development snapshots of GCC prior to 3.0.
17038    case $host_os in
17039      aix4 | aix4.[01] | aix4.[01].*)
17040      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17041	   echo ' yes '
17042	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17043	:
17044      else
17045	can_build_shared=no
17046      fi
17047      ;;
17048    esac
17049    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17050    # soname into executable. Probably we can add versioning support to
17051    # collect2, so additional links can be useful in future.
17052    if test "$aix_use_runtimelinking" = yes; then
17053      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17054      # instead of lib<name>.a to let people know that these are not
17055      # typical AIX shared libraries.
17056      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17057    else
17058      # We preserve .a as extension for shared libraries through AIX4.2
17059      # and later when we are not doing run time linking.
17060      library_names_spec='${libname}${release}.a $libname.a'
17061      soname_spec='${libname}${release}${shared_ext}$major'
17062    fi
17063    shlibpath_var=LIBPATH
17064  fi
17065  ;;
17066
17067amigaos*)
17068  library_names_spec='$libname.ixlibrary $libname.a'
17069  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17070  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'
17071  ;;
17072
17073beos*)
17074  library_names_spec='${libname}${shared_ext}'
17075  dynamic_linker="$host_os ld.so"
17076  shlibpath_var=LIBRARY_PATH
17077  ;;
17078
17079bsdi[45]*)
17080  version_type=linux
17081  need_version=no
17082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17083  soname_spec='${libname}${release}${shared_ext}$major'
17084  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17085  shlibpath_var=LD_LIBRARY_PATH
17086  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17087  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17088  # the default ld.so.conf also contains /usr/contrib/lib and
17089  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17090  # libtool to hard-code these into programs
17091  ;;
17092
17093cygwin* | mingw* | pw32*)
17094  version_type=windows
17095  shrext_cmds=".dll"
17096  need_version=no
17097  need_lib_prefix=no
17098
17099  case $GCC,$host_os in
17100  yes,cygwin* | yes,mingw* | yes,pw32*)
17101    library_names_spec='$libname.dll.a'
17102    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17103    postinstall_cmds='base_file=`basename \${file}`~
17104      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17105      dldir=$destdir/`dirname \$dlpath`~
17106      test -d \$dldir || mkdir -p \$dldir~
17107      $install_prog $dir/$dlname \$dldir/$dlname~
17108      chmod a+x \$dldir/$dlname'
17109    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17110      dlpath=$dir/\$dldll~
17111       $rm \$dlpath'
17112    shlibpath_overrides_runpath=yes
17113
17114    case $host_os in
17115    cygwin*)
17116      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17117      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17118      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17119      ;;
17120    mingw*)
17121      # MinGW DLLs use traditional 'lib' prefix
17122      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17123      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17124      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17125        # It is most probably a Windows format PATH printed by
17126        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17127        # path with ; separators, and with drive letters. We can handle the
17128        # drive letters (cygwin fileutils understands them), so leave them,
17129        # especially as we might pass files found there to a mingw objdump,
17130        # which wouldn't understand a cygwinified path. Ahh.
17131        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17132      else
17133        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17134      fi
17135      ;;
17136    pw32*)
17137      # pw32 DLLs use 'pw' prefix rather than 'lib'
17138      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17139      ;;
17140    esac
17141    ;;
17142
17143  *)
17144    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17145    ;;
17146  esac
17147  dynamic_linker='Win32 ld.exe'
17148  # FIXME: first we should search . and the directory the executable is in
17149  shlibpath_var=PATH
17150  ;;
17151
17152darwin* | rhapsody*)
17153  dynamic_linker="$host_os dyld"
17154  version_type=darwin
17155  need_lib_prefix=no
17156  need_version=no
17157  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17158  soname_spec='${libname}${release}${major}$shared_ext'
17159  shlibpath_overrides_runpath=yes
17160  shlibpath_var=DYLD_LIBRARY_PATH
17161  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17162  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17163  if test "$GCC" = yes; then
17164    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"`
17165  else
17166    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17167  fi
17168  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17169  ;;
17170
17171dgux*)
17172  version_type=linux
17173  need_lib_prefix=no
17174  need_version=no
17175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17176  soname_spec='${libname}${release}${shared_ext}$major'
17177  shlibpath_var=LD_LIBRARY_PATH
17178  ;;
17179
17180freebsd1*)
17181  dynamic_linker=no
17182  ;;
17183
17184kfreebsd*-gnu)
17185  version_type=linux
17186  need_lib_prefix=no
17187  need_version=no
17188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17189  soname_spec='${libname}${release}${shared_ext}$major'
17190  shlibpath_var=LD_LIBRARY_PATH
17191  shlibpath_overrides_runpath=no
17192  hardcode_into_libs=yes
17193  dynamic_linker='GNU ld.so'
17194  ;;
17195
17196freebsd* | dragonfly*)
17197  # DragonFly does not have aout.  When/if they implement a new
17198  # versioning mechanism, adjust this.
17199  if test -x /usr/bin/objformat; then
17200    objformat=`/usr/bin/objformat`
17201  else
17202    case $host_os in
17203    freebsd[123]*) objformat=aout ;;
17204    *) objformat=elf ;;
17205    esac
17206  fi
17207  version_type=freebsd-$objformat
17208  case $version_type in
17209    freebsd-elf*)
17210      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17211      need_version=no
17212      need_lib_prefix=no
17213      ;;
17214    freebsd-*)
17215      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17216      need_version=yes
17217      ;;
17218  esac
17219  shlibpath_var=LD_LIBRARY_PATH
17220  case $host_os in
17221  freebsd2*)
17222    shlibpath_overrides_runpath=yes
17223    ;;
17224  freebsd3.[01]* | freebsdelf3.[01]*)
17225    shlibpath_overrides_runpath=yes
17226    hardcode_into_libs=yes
17227    ;;
17228  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17229  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17230    shlibpath_overrides_runpath=no
17231    hardcode_into_libs=yes
17232    ;;
17233  freebsd*) # from 4.6 on
17234    shlibpath_overrides_runpath=yes
17235    hardcode_into_libs=yes
17236    ;;
17237  esac
17238  ;;
17239
17240gnu*)
17241  version_type=linux
17242  need_lib_prefix=no
17243  need_version=no
17244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17245  soname_spec='${libname}${release}${shared_ext}$major'
17246  shlibpath_var=LD_LIBRARY_PATH
17247  hardcode_into_libs=yes
17248  ;;
17249
17250hpux9* | hpux10* | hpux11*)
17251  # Give a soname corresponding to the major version so that dld.sl refuses to
17252  # link against other versions.
17253  version_type=sunos
17254  need_lib_prefix=no
17255  need_version=no
17256  case $host_cpu in
17257  ia64*)
17258    shrext_cmds='.so'
17259    hardcode_into_libs=yes
17260    dynamic_linker="$host_os dld.so"
17261    shlibpath_var=LD_LIBRARY_PATH
17262    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17263    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17264    soname_spec='${libname}${release}${shared_ext}$major'
17265    if test "X$HPUX_IA64_MODE" = X32; then
17266      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17267    else
17268      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17269    fi
17270    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17271    ;;
17272   hppa*64*)
17273     shrext_cmds='.sl'
17274     hardcode_into_libs=yes
17275     dynamic_linker="$host_os dld.sl"
17276     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17277     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17278     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279     soname_spec='${libname}${release}${shared_ext}$major'
17280     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17281     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17282     ;;
17283   *)
17284    shrext_cmds='.sl'
17285    dynamic_linker="$host_os dld.sl"
17286    shlibpath_var=SHLIB_PATH
17287    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17288    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289    soname_spec='${libname}${release}${shared_ext}$major'
17290    ;;
17291  esac
17292  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17293  postinstall_cmds='chmod 555 $lib'
17294  ;;
17295
17296interix3*)
17297  version_type=linux
17298  need_lib_prefix=no
17299  need_version=no
17300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17301  soname_spec='${libname}${release}${shared_ext}$major'
17302  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17303  shlibpath_var=LD_LIBRARY_PATH
17304  shlibpath_overrides_runpath=no
17305  hardcode_into_libs=yes
17306  ;;
17307
17308irix5* | irix6* | nonstopux*)
17309  case $host_os in
17310    nonstopux*) version_type=nonstopux ;;
17311    *)
17312	if test "$lt_cv_prog_gnu_ld" = yes; then
17313		version_type=linux
17314	else
17315		version_type=irix
17316	fi ;;
17317  esac
17318  need_lib_prefix=no
17319  need_version=no
17320  soname_spec='${libname}${release}${shared_ext}$major'
17321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17322  case $host_os in
17323  irix5* | nonstopux*)
17324    libsuff= shlibsuff=
17325    ;;
17326  *)
17327    case $LD in # libtool.m4 will add one of these switches to LD
17328    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17329      libsuff= shlibsuff= libmagic=32-bit;;
17330    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17331      libsuff=32 shlibsuff=N32 libmagic=N32;;
17332    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17333      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17334    *) libsuff= shlibsuff= libmagic=never-match;;
17335    esac
17336    ;;
17337  esac
17338  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17339  shlibpath_overrides_runpath=no
17340  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17341  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17342  hardcode_into_libs=yes
17343  ;;
17344
17345# No shared lib support for Linux oldld, aout, or coff.
17346linux*oldld* | linux*aout* | linux*coff*)
17347  dynamic_linker=no
17348  ;;
17349
17350# This must be Linux ELF.
17351linux*)
17352  version_type=linux
17353  need_lib_prefix=no
17354  need_version=no
17355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356  soname_spec='${libname}${release}${shared_ext}$major'
17357  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17358  shlibpath_var=LD_LIBRARY_PATH
17359  shlibpath_overrides_runpath=no
17360  # This implies no fast_install, which is unacceptable.
17361  # Some rework will be needed to allow for fast_install
17362  # before this can be enabled.
17363  hardcode_into_libs=yes
17364
17365  # Append ld.so.conf contents to the search path
17366  if test -f /etc/ld.so.conf; then
17367    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' ' '`
17368    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17369  fi
17370
17371  # We used to test for /lib/ld.so.1 and disable shared libraries on
17372  # powerpc, because MkLinux only supported shared libraries with the
17373  # GNU dynamic linker.  Since this was broken with cross compilers,
17374  # most powerpc-linux boxes support dynamic linking these days and
17375  # people can always --disable-shared, the test was removed, and we
17376  # assume the GNU/Linux dynamic linker is in use.
17377  dynamic_linker='GNU/Linux ld.so'
17378  ;;
17379
17380knetbsd*-gnu)
17381  version_type=linux
17382  need_lib_prefix=no
17383  need_version=no
17384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17385  soname_spec='${libname}${release}${shared_ext}$major'
17386  shlibpath_var=LD_LIBRARY_PATH
17387  shlibpath_overrides_runpath=no
17388  hardcode_into_libs=yes
17389  dynamic_linker='GNU ld.so'
17390  ;;
17391
17392netbsd*)
17393  version_type=sunos
17394  need_lib_prefix=no
17395  need_version=no
17396  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17397    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17398    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17399    dynamic_linker='NetBSD (a.out) ld.so'
17400  else
17401    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17402    soname_spec='${libname}${release}${shared_ext}$major'
17403    dynamic_linker='NetBSD ld.elf_so'
17404  fi
17405  shlibpath_var=LD_LIBRARY_PATH
17406  shlibpath_overrides_runpath=yes
17407  hardcode_into_libs=yes
17408  ;;
17409
17410newsos6)
17411  version_type=linux
17412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17413  shlibpath_var=LD_LIBRARY_PATH
17414  shlibpath_overrides_runpath=yes
17415  ;;
17416
17417nto-qnx*)
17418  version_type=linux
17419  need_lib_prefix=no
17420  need_version=no
17421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17422  soname_spec='${libname}${release}${shared_ext}$major'
17423  shlibpath_var=LD_LIBRARY_PATH
17424  shlibpath_overrides_runpath=yes
17425  ;;
17426
17427openbsd*)
17428  version_type=sunos
17429  sys_lib_dlsearch_path_spec="/usr/lib"
17430  need_lib_prefix=no
17431  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17432  case $host_os in
17433    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17434    *)                         need_version=no  ;;
17435  esac
17436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17437  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17438  shlibpath_var=LD_LIBRARY_PATH
17439  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17440    case $host_os in
17441      openbsd2.[89] | openbsd2.[89].*)
17442	shlibpath_overrides_runpath=no
17443	;;
17444      *)
17445	shlibpath_overrides_runpath=yes
17446	;;
17447      esac
17448  else
17449    shlibpath_overrides_runpath=yes
17450  fi
17451  ;;
17452
17453os2*)
17454  libname_spec='$name'
17455  shrext_cmds=".dll"
17456  need_lib_prefix=no
17457  library_names_spec='$libname${shared_ext} $libname.a'
17458  dynamic_linker='OS/2 ld.exe'
17459  shlibpath_var=LIBPATH
17460  ;;
17461
17462osf3* | osf4* | osf5*)
17463  version_type=osf
17464  need_lib_prefix=no
17465  need_version=no
17466  soname_spec='${libname}${release}${shared_ext}$major'
17467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17468  shlibpath_var=LD_LIBRARY_PATH
17469  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17470  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17471  ;;
17472
17473solaris*)
17474  version_type=linux
17475  need_lib_prefix=no
17476  need_version=no
17477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17478  soname_spec='${libname}${release}${shared_ext}$major'
17479  shlibpath_var=LD_LIBRARY_PATH
17480  shlibpath_overrides_runpath=yes
17481  hardcode_into_libs=yes
17482  # ldd complains unless libraries are executable
17483  postinstall_cmds='chmod +x $lib'
17484  ;;
17485
17486sunos4*)
17487  version_type=sunos
17488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17489  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17490  shlibpath_var=LD_LIBRARY_PATH
17491  shlibpath_overrides_runpath=yes
17492  if test "$with_gnu_ld" = yes; then
17493    need_lib_prefix=no
17494  fi
17495  need_version=yes
17496  ;;
17497
17498sysv4 | sysv4.3*)
17499  version_type=linux
17500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501  soname_spec='${libname}${release}${shared_ext}$major'
17502  shlibpath_var=LD_LIBRARY_PATH
17503  case $host_vendor in
17504    sni)
17505      shlibpath_overrides_runpath=no
17506      need_lib_prefix=no
17507      export_dynamic_flag_spec='${wl}-Blargedynsym'
17508      runpath_var=LD_RUN_PATH
17509      ;;
17510    siemens)
17511      need_lib_prefix=no
17512      ;;
17513    motorola)
17514      need_lib_prefix=no
17515      need_version=no
17516      shlibpath_overrides_runpath=no
17517      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17518      ;;
17519  esac
17520  ;;
17521
17522sysv4*MP*)
17523  if test -d /usr/nec ;then
17524    version_type=linux
17525    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17526    soname_spec='$libname${shared_ext}.$major'
17527    shlibpath_var=LD_LIBRARY_PATH
17528  fi
17529  ;;
17530
17531sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17532  version_type=freebsd-elf
17533  need_lib_prefix=no
17534  need_version=no
17535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17536  soname_spec='${libname}${release}${shared_ext}$major'
17537  shlibpath_var=LD_LIBRARY_PATH
17538  hardcode_into_libs=yes
17539  if test "$with_gnu_ld" = yes; then
17540    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17541    shlibpath_overrides_runpath=no
17542  else
17543    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17544    shlibpath_overrides_runpath=yes
17545    case $host_os in
17546      sco3.2v5*)
17547        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17548	;;
17549    esac
17550  fi
17551  sys_lib_dlsearch_path_spec='/usr/lib'
17552  ;;
17553
17554uts4*)
17555  version_type=linux
17556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557  soname_spec='${libname}${release}${shared_ext}$major'
17558  shlibpath_var=LD_LIBRARY_PATH
17559  ;;
17560
17561*)
17562  dynamic_linker=no
17563  ;;
17564esac
17565echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17566echo "${ECHO_T}$dynamic_linker" >&6
17567test "$dynamic_linker" = no && can_build_shared=no
17568
17569variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17570if test "$GCC" = yes; then
17571  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17572fi
17573
17574echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17575echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17576hardcode_action_GCJ=
17577if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17578   test -n "$runpath_var_GCJ" || \
17579   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17580
17581  # We can hardcode non-existant directories.
17582  if test "$hardcode_direct_GCJ" != no &&
17583     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17584     # have to relink, otherwise we might link with an installed library
17585     # when we should be linking with a yet-to-be-installed one
17586     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17587     test "$hardcode_minus_L_GCJ" != no; then
17588    # Linking always hardcodes the temporary library directory.
17589    hardcode_action_GCJ=relink
17590  else
17591    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17592    hardcode_action_GCJ=immediate
17593  fi
17594else
17595  # We cannot hardcode anything, or else we can only hardcode existing
17596  # directories.
17597  hardcode_action_GCJ=unsupported
17598fi
17599echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17600echo "${ECHO_T}$hardcode_action_GCJ" >&6
17601
17602if test "$hardcode_action_GCJ" = relink; then
17603  # Fast installation is not supported
17604  enable_fast_install=no
17605elif test "$shlibpath_overrides_runpath" = yes ||
17606     test "$enable_shared" = no; then
17607  # Fast installation is not necessary
17608  enable_fast_install=needless
17609fi
17610
17611
17612# The else clause should only fire when bootstrapping the
17613# libtool distribution, otherwise you forgot to ship ltmain.sh
17614# with your package, and you will get complaints that there are
17615# no rules to generate ltmain.sh.
17616if test -f "$ltmain"; then
17617  # See if we are running on zsh, and set the options which allow our commands through
17618  # without removal of \ escapes.
17619  if test -n "${ZSH_VERSION+set}" ; then
17620    setopt NO_GLOB_SUBST
17621  fi
17622  # Now quote all the things that may contain metacharacters while being
17623  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17624  # variables and quote the copies for generation of the libtool script.
17625  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17626    SED SHELL STRIP \
17627    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17628    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17629    deplibs_check_method reload_flag reload_cmds need_locks \
17630    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17631    lt_cv_sys_global_symbol_to_c_name_address \
17632    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17633    old_postinstall_cmds old_postuninstall_cmds \
17634    compiler_GCJ \
17635    CC_GCJ \
17636    LD_GCJ \
17637    lt_prog_compiler_wl_GCJ \
17638    lt_prog_compiler_pic_GCJ \
17639    lt_prog_compiler_static_GCJ \
17640    lt_prog_compiler_no_builtin_flag_GCJ \
17641    export_dynamic_flag_spec_GCJ \
17642    thread_safe_flag_spec_GCJ \
17643    whole_archive_flag_spec_GCJ \
17644    enable_shared_with_static_runtimes_GCJ \
17645    old_archive_cmds_GCJ \
17646    old_archive_from_new_cmds_GCJ \
17647    predep_objects_GCJ \
17648    postdep_objects_GCJ \
17649    predeps_GCJ \
17650    postdeps_GCJ \
17651    compiler_lib_search_path_GCJ \
17652    archive_cmds_GCJ \
17653    archive_expsym_cmds_GCJ \
17654    postinstall_cmds_GCJ \
17655    postuninstall_cmds_GCJ \
17656    old_archive_from_expsyms_cmds_GCJ \
17657    allow_undefined_flag_GCJ \
17658    no_undefined_flag_GCJ \
17659    export_symbols_cmds_GCJ \
17660    hardcode_libdir_flag_spec_GCJ \
17661    hardcode_libdir_flag_spec_ld_GCJ \
17662    hardcode_libdir_separator_GCJ \
17663    hardcode_automatic_GCJ \
17664    module_cmds_GCJ \
17665    module_expsym_cmds_GCJ \
17666    lt_cv_prog_compiler_c_o_GCJ \
17667    exclude_expsyms_GCJ \
17668    include_expsyms_GCJ; do
17669
17670    case $var in
17671    old_archive_cmds_GCJ | \
17672    old_archive_from_new_cmds_GCJ | \
17673    archive_cmds_GCJ | \
17674    archive_expsym_cmds_GCJ | \
17675    module_cmds_GCJ | \
17676    module_expsym_cmds_GCJ | \
17677    old_archive_from_expsyms_cmds_GCJ | \
17678    export_symbols_cmds_GCJ | \
17679    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17680    postinstall_cmds | postuninstall_cmds | \
17681    old_postinstall_cmds | old_postuninstall_cmds | \
17682    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17683      # Double-quote double-evaled strings.
17684      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17685      ;;
17686    *)
17687      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17688      ;;
17689    esac
17690  done
17691
17692  case $lt_echo in
17693  *'\$0 --fallback-echo"')
17694    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17695    ;;
17696  esac
17697
17698cfgfile="$ofile"
17699
17700  cat <<__EOF__ >> "$cfgfile"
17701# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17702
17703# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17704
17705# Shell to use when invoking shell scripts.
17706SHELL=$lt_SHELL
17707
17708# Whether or not to build shared libraries.
17709build_libtool_libs=$enable_shared
17710
17711# Whether or not to build static libraries.
17712build_old_libs=$enable_static
17713
17714# Whether or not to add -lc for building shared libraries.
17715build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17716
17717# Whether or not to disallow shared libs when runtime libs are static
17718allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17719
17720# Whether or not to optimize for fast installation.
17721fast_install=$enable_fast_install
17722
17723# The host system.
17724host_alias=$host_alias
17725host=$host
17726host_os=$host_os
17727
17728# The build system.
17729build_alias=$build_alias
17730build=$build
17731build_os=$build_os
17732
17733# An echo program that does not interpret backslashes.
17734echo=$lt_echo
17735
17736# The archiver.
17737AR=$lt_AR
17738AR_FLAGS=$lt_AR_FLAGS
17739
17740# A C compiler.
17741LTCC=$lt_LTCC
17742
17743# LTCC compiler flags.
17744LTCFLAGS=$lt_LTCFLAGS
17745
17746# A language-specific compiler.
17747CC=$lt_compiler_GCJ
17748
17749# Is the compiler the GNU C compiler?
17750with_gcc=$GCC_GCJ
17751
17752# An ERE matcher.
17753EGREP=$lt_EGREP
17754
17755# The linker used to build libraries.
17756LD=$lt_LD_GCJ
17757
17758# Whether we need hard or soft links.
17759LN_S=$lt_LN_S
17760
17761# A BSD-compatible nm program.
17762NM=$lt_NM
17763
17764# A symbol stripping program
17765STRIP=$lt_STRIP
17766
17767# Used to examine libraries when file_magic_cmd begins "file"
17768MAGIC_CMD=$MAGIC_CMD
17769
17770# Used on cygwin: DLL creation program.
17771DLLTOOL="$DLLTOOL"
17772
17773# Used on cygwin: object dumper.
17774OBJDUMP="$OBJDUMP"
17775
17776# Used on cygwin: assembler.
17777AS="$AS"
17778
17779# The name of the directory that contains temporary libtool files.
17780objdir=$objdir
17781
17782# How to create reloadable object files.
17783reload_flag=$lt_reload_flag
17784reload_cmds=$lt_reload_cmds
17785
17786# How to pass a linker flag through the compiler.
17787wl=$lt_lt_prog_compiler_wl_GCJ
17788
17789# Object file suffix (normally "o").
17790objext="$ac_objext"
17791
17792# Old archive suffix (normally "a").
17793libext="$libext"
17794
17795# Shared library suffix (normally ".so").
17796shrext_cmds='$shrext_cmds'
17797
17798# Executable file suffix (normally "").
17799exeext="$exeext"
17800
17801# Additional compiler flags for building library objects.
17802pic_flag=$lt_lt_prog_compiler_pic_GCJ
17803pic_mode=$pic_mode
17804
17805# What is the maximum length of a command?
17806max_cmd_len=$lt_cv_sys_max_cmd_len
17807
17808# Does compiler simultaneously support -c and -o options?
17809compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17810
17811# Must we lock files when doing compilation?
17812need_locks=$lt_need_locks
17813
17814# Do we need the lib prefix for modules?
17815need_lib_prefix=$need_lib_prefix
17816
17817# Do we need a version for libraries?
17818need_version=$need_version
17819
17820# Whether dlopen is supported.
17821dlopen_support=$enable_dlopen
17822
17823# Whether dlopen of programs is supported.
17824dlopen_self=$enable_dlopen_self
17825
17826# Whether dlopen of statically linked programs is supported.
17827dlopen_self_static=$enable_dlopen_self_static
17828
17829# Compiler flag to prevent dynamic linking.
17830link_static_flag=$lt_lt_prog_compiler_static_GCJ
17831
17832# Compiler flag to turn off builtin functions.
17833no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17834
17835# Compiler flag to allow reflexive dlopens.
17836export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17837
17838# Compiler flag to generate shared objects directly from archives.
17839whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17840
17841# Compiler flag to generate thread-safe objects.
17842thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17843
17844# Library versioning type.
17845version_type=$version_type
17846
17847# Format of library name prefix.
17848libname_spec=$lt_libname_spec
17849
17850# List of archive names.  First name is the real one, the rest are links.
17851# The last name is the one that the linker finds with -lNAME.
17852library_names_spec=$lt_library_names_spec
17853
17854# The coded name of the library, if different from the real name.
17855soname_spec=$lt_soname_spec
17856
17857# Commands used to build and install an old-style archive.
17858RANLIB=$lt_RANLIB
17859old_archive_cmds=$lt_old_archive_cmds_GCJ
17860old_postinstall_cmds=$lt_old_postinstall_cmds
17861old_postuninstall_cmds=$lt_old_postuninstall_cmds
17862
17863# Create an old-style archive from a shared archive.
17864old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17865
17866# Create a temporary old-style archive to link instead of a shared archive.
17867old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17868
17869# Commands used to build and install a shared archive.
17870archive_cmds=$lt_archive_cmds_GCJ
17871archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17872postinstall_cmds=$lt_postinstall_cmds
17873postuninstall_cmds=$lt_postuninstall_cmds
17874
17875# Commands used to build a loadable module (assumed same as above if empty)
17876module_cmds=$lt_module_cmds_GCJ
17877module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17878
17879# Commands to strip libraries.
17880old_striplib=$lt_old_striplib
17881striplib=$lt_striplib
17882
17883# Dependencies to place before the objects being linked to create a
17884# shared library.
17885predep_objects=$lt_predep_objects_GCJ
17886
17887# Dependencies to place after the objects being linked to create a
17888# shared library.
17889postdep_objects=$lt_postdep_objects_GCJ
17890
17891# Dependencies to place before the objects being linked to create a
17892# shared library.
17893predeps=$lt_predeps_GCJ
17894
17895# Dependencies to place after the objects being linked to create a
17896# shared library.
17897postdeps=$lt_postdeps_GCJ
17898
17899# The library search path used internally by the compiler when linking
17900# a shared library.
17901compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17902
17903# Method to check whether dependent libraries are shared objects.
17904deplibs_check_method=$lt_deplibs_check_method
17905
17906# Command to use when deplibs_check_method == file_magic.
17907file_magic_cmd=$lt_file_magic_cmd
17908
17909# Flag that allows shared libraries with undefined symbols to be built.
17910allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17911
17912# Flag that forces no undefined symbols.
17913no_undefined_flag=$lt_no_undefined_flag_GCJ
17914
17915# Commands used to finish a libtool library installation in a directory.
17916finish_cmds=$lt_finish_cmds
17917
17918# Same as above, but a single script fragment to be evaled but not shown.
17919finish_eval=$lt_finish_eval
17920
17921# Take the output of nm and produce a listing of raw symbols and C names.
17922global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17923
17924# Transform the output of nm in a proper C declaration
17925global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17926
17927# Transform the output of nm in a C name address pair
17928global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17929
17930# This is the shared library runtime path variable.
17931runpath_var=$runpath_var
17932
17933# This is the shared library path variable.
17934shlibpath_var=$shlibpath_var
17935
17936# Is shlibpath searched before the hard-coded library search path?
17937shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17938
17939# How to hardcode a shared library path into an executable.
17940hardcode_action=$hardcode_action_GCJ
17941
17942# Whether we should hardcode library paths into libraries.
17943hardcode_into_libs=$hardcode_into_libs
17944
17945# Flag to hardcode \$libdir into a binary during linking.
17946# This must work even if \$libdir does not exist.
17947hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17948
17949# If ld is used when linking, flag to hardcode \$libdir into
17950# a binary during linking. This must work even if \$libdir does
17951# not exist.
17952hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17953
17954# Whether we need a single -rpath flag with a separated argument.
17955hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17956
17957# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17958# resulting binary.
17959hardcode_direct=$hardcode_direct_GCJ
17960
17961# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17962# resulting binary.
17963hardcode_minus_L=$hardcode_minus_L_GCJ
17964
17965# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17966# the resulting binary.
17967hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17968
17969# Set to yes if building a shared library automatically hardcodes DIR into the library
17970# and all subsequent libraries and executables linked against it.
17971hardcode_automatic=$hardcode_automatic_GCJ
17972
17973# Variables whose values should be saved in libtool wrapper scripts and
17974# restored at relink time.
17975variables_saved_for_relink="$variables_saved_for_relink"
17976
17977# Whether libtool must link a program against all its dependency libraries.
17978link_all_deplibs=$link_all_deplibs_GCJ
17979
17980# Compile-time system search path for libraries
17981sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17982
17983# Run-time system search path for libraries
17984sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17985
17986# Fix the shell variable \$srcfile for the compiler.
17987fix_srcfile_path="$fix_srcfile_path_GCJ"
17988
17989# Set to yes if exported symbols are required.
17990always_export_symbols=$always_export_symbols_GCJ
17991
17992# The commands to list exported symbols.
17993export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17994
17995# The commands to extract the exported symbol list from a shared archive.
17996extract_expsyms_cmds=$lt_extract_expsyms_cmds
17997
17998# Symbols that should not be listed in the preloaded symbols.
17999exclude_expsyms=$lt_exclude_expsyms_GCJ
18000
18001# Symbols that must always be exported.
18002include_expsyms=$lt_include_expsyms_GCJ
18003
18004# ### END LIBTOOL TAG CONFIG: $tagname
18005
18006__EOF__
18007
18008
18009else
18010  # If there is no Makefile yet, we rely on a make rule to execute
18011  # `config.status --recheck' to rerun these tests and create the
18012  # libtool script then.
18013  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18014  if test -f "$ltmain_in"; then
18015    test -f Makefile && make "$ltmain"
18016  fi
18017fi
18018
18019
18020ac_ext=c
18021ac_cpp='$CPP $CPPFLAGS'
18022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18024ac_compiler_gnu=$ac_cv_c_compiler_gnu
18025
18026CC="$lt_save_CC"
18027
18028	else
18029	  tagname=""
18030	fi
18031	;;
18032
18033      RC)
18034
18035
18036
18037# Source file extension for RC test sources.
18038ac_ext=rc
18039
18040# Object file extension for compiled RC test sources.
18041objext=o
18042objext_RC=$objext
18043
18044# Code to be used in simple compile tests
18045lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18046
18047# Code to be used in simple link tests
18048lt_simple_link_test_code="$lt_simple_compile_test_code"
18049
18050# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18051
18052# If no C compiler was specified, use CC.
18053LTCC=${LTCC-"$CC"}
18054
18055# If no C compiler flags were specified, use CFLAGS.
18056LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18057
18058# Allow CC to be a program name with arguments.
18059compiler=$CC
18060
18061
18062# save warnings/boilerplate of simple test code
18063ac_outfile=conftest.$ac_objext
18064printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18065eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18066_lt_compiler_boilerplate=`cat conftest.err`
18067$rm conftest*
18068
18069ac_outfile=conftest.$ac_objext
18070printf "$lt_simple_link_test_code" >conftest.$ac_ext
18071eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18072_lt_linker_boilerplate=`cat conftest.err`
18073$rm conftest*
18074
18075
18076# Allow CC to be a program name with arguments.
18077lt_save_CC="$CC"
18078CC=${RC-"windres"}
18079compiler=$CC
18080compiler_RC=$CC
18081for cc_temp in $compiler""; do
18082  case $cc_temp in
18083    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18084    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18085    \-*) ;;
18086    *) break;;
18087  esac
18088done
18089cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18090
18091lt_cv_prog_compiler_c_o_RC=yes
18092
18093# The else clause should only fire when bootstrapping the
18094# libtool distribution, otherwise you forgot to ship ltmain.sh
18095# with your package, and you will get complaints that there are
18096# no rules to generate ltmain.sh.
18097if test -f "$ltmain"; then
18098  # See if we are running on zsh, and set the options which allow our commands through
18099  # without removal of \ escapes.
18100  if test -n "${ZSH_VERSION+set}" ; then
18101    setopt NO_GLOB_SUBST
18102  fi
18103  # Now quote all the things that may contain metacharacters while being
18104  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18105  # variables and quote the copies for generation of the libtool script.
18106  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18107    SED SHELL STRIP \
18108    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18109    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18110    deplibs_check_method reload_flag reload_cmds need_locks \
18111    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18112    lt_cv_sys_global_symbol_to_c_name_address \
18113    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18114    old_postinstall_cmds old_postuninstall_cmds \
18115    compiler_RC \
18116    CC_RC \
18117    LD_RC \
18118    lt_prog_compiler_wl_RC \
18119    lt_prog_compiler_pic_RC \
18120    lt_prog_compiler_static_RC \
18121    lt_prog_compiler_no_builtin_flag_RC \
18122    export_dynamic_flag_spec_RC \
18123    thread_safe_flag_spec_RC \
18124    whole_archive_flag_spec_RC \
18125    enable_shared_with_static_runtimes_RC \
18126    old_archive_cmds_RC \
18127    old_archive_from_new_cmds_RC \
18128    predep_objects_RC \
18129    postdep_objects_RC \
18130    predeps_RC \
18131    postdeps_RC \
18132    compiler_lib_search_path_RC \
18133    archive_cmds_RC \
18134    archive_expsym_cmds_RC \
18135    postinstall_cmds_RC \
18136    postuninstall_cmds_RC \
18137    old_archive_from_expsyms_cmds_RC \
18138    allow_undefined_flag_RC \
18139    no_undefined_flag_RC \
18140    export_symbols_cmds_RC \
18141    hardcode_libdir_flag_spec_RC \
18142    hardcode_libdir_flag_spec_ld_RC \
18143    hardcode_libdir_separator_RC \
18144    hardcode_automatic_RC \
18145    module_cmds_RC \
18146    module_expsym_cmds_RC \
18147    lt_cv_prog_compiler_c_o_RC \
18148    exclude_expsyms_RC \
18149    include_expsyms_RC; do
18150
18151    case $var in
18152    old_archive_cmds_RC | \
18153    old_archive_from_new_cmds_RC | \
18154    archive_cmds_RC | \
18155    archive_expsym_cmds_RC | \
18156    module_cmds_RC | \
18157    module_expsym_cmds_RC | \
18158    old_archive_from_expsyms_cmds_RC | \
18159    export_symbols_cmds_RC | \
18160    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18161    postinstall_cmds | postuninstall_cmds | \
18162    old_postinstall_cmds | old_postuninstall_cmds | \
18163    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18164      # Double-quote double-evaled strings.
18165      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18166      ;;
18167    *)
18168      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18169      ;;
18170    esac
18171  done
18172
18173  case $lt_echo in
18174  *'\$0 --fallback-echo"')
18175    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18176    ;;
18177  esac
18178
18179cfgfile="$ofile"
18180
18181  cat <<__EOF__ >> "$cfgfile"
18182# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18183
18184# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18185
18186# Shell to use when invoking shell scripts.
18187SHELL=$lt_SHELL
18188
18189# Whether or not to build shared libraries.
18190build_libtool_libs=$enable_shared
18191
18192# Whether or not to build static libraries.
18193build_old_libs=$enable_static
18194
18195# Whether or not to add -lc for building shared libraries.
18196build_libtool_need_lc=$archive_cmds_need_lc_RC
18197
18198# Whether or not to disallow shared libs when runtime libs are static
18199allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18200
18201# Whether or not to optimize for fast installation.
18202fast_install=$enable_fast_install
18203
18204# The host system.
18205host_alias=$host_alias
18206host=$host
18207host_os=$host_os
18208
18209# The build system.
18210build_alias=$build_alias
18211build=$build
18212build_os=$build_os
18213
18214# An echo program that does not interpret backslashes.
18215echo=$lt_echo
18216
18217# The archiver.
18218AR=$lt_AR
18219AR_FLAGS=$lt_AR_FLAGS
18220
18221# A C compiler.
18222LTCC=$lt_LTCC
18223
18224# LTCC compiler flags.
18225LTCFLAGS=$lt_LTCFLAGS
18226
18227# A language-specific compiler.
18228CC=$lt_compiler_RC
18229
18230# Is the compiler the GNU C compiler?
18231with_gcc=$GCC_RC
18232
18233# An ERE matcher.
18234EGREP=$lt_EGREP
18235
18236# The linker used to build libraries.
18237LD=$lt_LD_RC
18238
18239# Whether we need hard or soft links.
18240LN_S=$lt_LN_S
18241
18242# A BSD-compatible nm program.
18243NM=$lt_NM
18244
18245# A symbol stripping program
18246STRIP=$lt_STRIP
18247
18248# Used to examine libraries when file_magic_cmd begins "file"
18249MAGIC_CMD=$MAGIC_CMD
18250
18251# Used on cygwin: DLL creation program.
18252DLLTOOL="$DLLTOOL"
18253
18254# Used on cygwin: object dumper.
18255OBJDUMP="$OBJDUMP"
18256
18257# Used on cygwin: assembler.
18258AS="$AS"
18259
18260# The name of the directory that contains temporary libtool files.
18261objdir=$objdir
18262
18263# How to create reloadable object files.
18264reload_flag=$lt_reload_flag
18265reload_cmds=$lt_reload_cmds
18266
18267# How to pass a linker flag through the compiler.
18268wl=$lt_lt_prog_compiler_wl_RC
18269
18270# Object file suffix (normally "o").
18271objext="$ac_objext"
18272
18273# Old archive suffix (normally "a").
18274libext="$libext"
18275
18276# Shared library suffix (normally ".so").
18277shrext_cmds='$shrext_cmds'
18278
18279# Executable file suffix (normally "").
18280exeext="$exeext"
18281
18282# Additional compiler flags for building library objects.
18283pic_flag=$lt_lt_prog_compiler_pic_RC
18284pic_mode=$pic_mode
18285
18286# What is the maximum length of a command?
18287max_cmd_len=$lt_cv_sys_max_cmd_len
18288
18289# Does compiler simultaneously support -c and -o options?
18290compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18291
18292# Must we lock files when doing compilation?
18293need_locks=$lt_need_locks
18294
18295# Do we need the lib prefix for modules?
18296need_lib_prefix=$need_lib_prefix
18297
18298# Do we need a version for libraries?
18299need_version=$need_version
18300
18301# Whether dlopen is supported.
18302dlopen_support=$enable_dlopen
18303
18304# Whether dlopen of programs is supported.
18305dlopen_self=$enable_dlopen_self
18306
18307# Whether dlopen of statically linked programs is supported.
18308dlopen_self_static=$enable_dlopen_self_static
18309
18310# Compiler flag to prevent dynamic linking.
18311link_static_flag=$lt_lt_prog_compiler_static_RC
18312
18313# Compiler flag to turn off builtin functions.
18314no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18315
18316# Compiler flag to allow reflexive dlopens.
18317export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18318
18319# Compiler flag to generate shared objects directly from archives.
18320whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18321
18322# Compiler flag to generate thread-safe objects.
18323thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18324
18325# Library versioning type.
18326version_type=$version_type
18327
18328# Format of library name prefix.
18329libname_spec=$lt_libname_spec
18330
18331# List of archive names.  First name is the real one, the rest are links.
18332# The last name is the one that the linker finds with -lNAME.
18333library_names_spec=$lt_library_names_spec
18334
18335# The coded name of the library, if different from the real name.
18336soname_spec=$lt_soname_spec
18337
18338# Commands used to build and install an old-style archive.
18339RANLIB=$lt_RANLIB
18340old_archive_cmds=$lt_old_archive_cmds_RC
18341old_postinstall_cmds=$lt_old_postinstall_cmds
18342old_postuninstall_cmds=$lt_old_postuninstall_cmds
18343
18344# Create an old-style archive from a shared archive.
18345old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18346
18347# Create a temporary old-style archive to link instead of a shared archive.
18348old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18349
18350# Commands used to build and install a shared archive.
18351archive_cmds=$lt_archive_cmds_RC
18352archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18353postinstall_cmds=$lt_postinstall_cmds
18354postuninstall_cmds=$lt_postuninstall_cmds
18355
18356# Commands used to build a loadable module (assumed same as above if empty)
18357module_cmds=$lt_module_cmds_RC
18358module_expsym_cmds=$lt_module_expsym_cmds_RC
18359
18360# Commands to strip libraries.
18361old_striplib=$lt_old_striplib
18362striplib=$lt_striplib
18363
18364# Dependencies to place before the objects being linked to create a
18365# shared library.
18366predep_objects=$lt_predep_objects_RC
18367
18368# Dependencies to place after the objects being linked to create a
18369# shared library.
18370postdep_objects=$lt_postdep_objects_RC
18371
18372# Dependencies to place before the objects being linked to create a
18373# shared library.
18374predeps=$lt_predeps_RC
18375
18376# Dependencies to place after the objects being linked to create a
18377# shared library.
18378postdeps=$lt_postdeps_RC
18379
18380# The library search path used internally by the compiler when linking
18381# a shared library.
18382compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18383
18384# Method to check whether dependent libraries are shared objects.
18385deplibs_check_method=$lt_deplibs_check_method
18386
18387# Command to use when deplibs_check_method == file_magic.
18388file_magic_cmd=$lt_file_magic_cmd
18389
18390# Flag that allows shared libraries with undefined symbols to be built.
18391allow_undefined_flag=$lt_allow_undefined_flag_RC
18392
18393# Flag that forces no undefined symbols.
18394no_undefined_flag=$lt_no_undefined_flag_RC
18395
18396# Commands used to finish a libtool library installation in a directory.
18397finish_cmds=$lt_finish_cmds
18398
18399# Same as above, but a single script fragment to be evaled but not shown.
18400finish_eval=$lt_finish_eval
18401
18402# Take the output of nm and produce a listing of raw symbols and C names.
18403global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18404
18405# Transform the output of nm in a proper C declaration
18406global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18407
18408# Transform the output of nm in a C name address pair
18409global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18410
18411# This is the shared library runtime path variable.
18412runpath_var=$runpath_var
18413
18414# This is the shared library path variable.
18415shlibpath_var=$shlibpath_var
18416
18417# Is shlibpath searched before the hard-coded library search path?
18418shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18419
18420# How to hardcode a shared library path into an executable.
18421hardcode_action=$hardcode_action_RC
18422
18423# Whether we should hardcode library paths into libraries.
18424hardcode_into_libs=$hardcode_into_libs
18425
18426# Flag to hardcode \$libdir into a binary during linking.
18427# This must work even if \$libdir does not exist.
18428hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18429
18430# If ld is used when linking, flag to hardcode \$libdir into
18431# a binary during linking. This must work even if \$libdir does
18432# not exist.
18433hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18434
18435# Whether we need a single -rpath flag with a separated argument.
18436hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18437
18438# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18439# resulting binary.
18440hardcode_direct=$hardcode_direct_RC
18441
18442# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18443# resulting binary.
18444hardcode_minus_L=$hardcode_minus_L_RC
18445
18446# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18447# the resulting binary.
18448hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18449
18450# Set to yes if building a shared library automatically hardcodes DIR into the library
18451# and all subsequent libraries and executables linked against it.
18452hardcode_automatic=$hardcode_automatic_RC
18453
18454# Variables whose values should be saved in libtool wrapper scripts and
18455# restored at relink time.
18456variables_saved_for_relink="$variables_saved_for_relink"
18457
18458# Whether libtool must link a program against all its dependency libraries.
18459link_all_deplibs=$link_all_deplibs_RC
18460
18461# Compile-time system search path for libraries
18462sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18463
18464# Run-time system search path for libraries
18465sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18466
18467# Fix the shell variable \$srcfile for the compiler.
18468fix_srcfile_path="$fix_srcfile_path_RC"
18469
18470# Set to yes if exported symbols are required.
18471always_export_symbols=$always_export_symbols_RC
18472
18473# The commands to list exported symbols.
18474export_symbols_cmds=$lt_export_symbols_cmds_RC
18475
18476# The commands to extract the exported symbol list from a shared archive.
18477extract_expsyms_cmds=$lt_extract_expsyms_cmds
18478
18479# Symbols that should not be listed in the preloaded symbols.
18480exclude_expsyms=$lt_exclude_expsyms_RC
18481
18482# Symbols that must always be exported.
18483include_expsyms=$lt_include_expsyms_RC
18484
18485# ### END LIBTOOL TAG CONFIG: $tagname
18486
18487__EOF__
18488
18489
18490else
18491  # If there is no Makefile yet, we rely on a make rule to execute
18492  # `config.status --recheck' to rerun these tests and create the
18493  # libtool script then.
18494  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18495  if test -f "$ltmain_in"; then
18496    test -f Makefile && make "$ltmain"
18497  fi
18498fi
18499
18500
18501ac_ext=c
18502ac_cpp='$CPP $CPPFLAGS'
18503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18505ac_compiler_gnu=$ac_cv_c_compiler_gnu
18506
18507CC="$lt_save_CC"
18508
18509	;;
18510
18511      *)
18512	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18513echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18514   { (exit 1); exit 1; }; }
18515	;;
18516      esac
18517
18518      # Append the new tag name to the list of available tags.
18519      if test -n "$tagname" ; then
18520      available_tags="$available_tags $tagname"
18521    fi
18522    fi
18523  done
18524  IFS="$lt_save_ifs"
18525
18526  # Now substitute the updated list of available tags.
18527  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18528    mv "${ofile}T" "$ofile"
18529    chmod +x "$ofile"
18530  else
18531    rm -f "${ofile}T"
18532    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18533echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18534   { (exit 1); exit 1; }; }
18535  fi
18536fi
18537
18538
18539
18540# This can be used to rebuild libtool when needed
18541LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18542
18543# Always use our own libtool.
18544LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18545
18546# Prevent multiple expansion
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567ac_ext=c
18568ac_cpp='$CPP $CPPFLAGS'
18569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18571ac_compiler_gnu=$ac_cv_c_compiler_gnu
18572if test -n "$ac_tool_prefix"; then
18573  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18574set dummy ${ac_tool_prefix}gcc; ac_word=$2
18575echo "$as_me:$LINENO: checking for $ac_word" >&5
18576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18577if test "${ac_cv_prog_CC+set}" = set; then
18578  echo $ECHO_N "(cached) $ECHO_C" >&6
18579else
18580  if test -n "$CC"; then
18581  ac_cv_prog_CC="$CC" # Let the user override the test.
18582else
18583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584for as_dir in $PATH
18585do
18586  IFS=$as_save_IFS
18587  test -z "$as_dir" && as_dir=.
18588  for ac_exec_ext in '' $ac_executable_extensions; do
18589  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18590    ac_cv_prog_CC="${ac_tool_prefix}gcc"
18591    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18592    break 2
18593  fi
18594done
18595done
18596
18597fi
18598fi
18599CC=$ac_cv_prog_CC
18600if test -n "$CC"; then
18601  echo "$as_me:$LINENO: result: $CC" >&5
18602echo "${ECHO_T}$CC" >&6
18603else
18604  echo "$as_me:$LINENO: result: no" >&5
18605echo "${ECHO_T}no" >&6
18606fi
18607
18608fi
18609if test -z "$ac_cv_prog_CC"; then
18610  ac_ct_CC=$CC
18611  # Extract the first word of "gcc", so it can be a program name with args.
18612set dummy gcc; ac_word=$2
18613echo "$as_me:$LINENO: checking for $ac_word" >&5
18614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18615if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18616  echo $ECHO_N "(cached) $ECHO_C" >&6
18617else
18618  if test -n "$ac_ct_CC"; then
18619  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18620else
18621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18622for as_dir in $PATH
18623do
18624  IFS=$as_save_IFS
18625  test -z "$as_dir" && as_dir=.
18626  for ac_exec_ext in '' $ac_executable_extensions; do
18627  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18628    ac_cv_prog_ac_ct_CC="gcc"
18629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18630    break 2
18631  fi
18632done
18633done
18634
18635fi
18636fi
18637ac_ct_CC=$ac_cv_prog_ac_ct_CC
18638if test -n "$ac_ct_CC"; then
18639  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18640echo "${ECHO_T}$ac_ct_CC" >&6
18641else
18642  echo "$as_me:$LINENO: result: no" >&5
18643echo "${ECHO_T}no" >&6
18644fi
18645
18646  CC=$ac_ct_CC
18647else
18648  CC="$ac_cv_prog_CC"
18649fi
18650
18651if test -z "$CC"; then
18652  if test -n "$ac_tool_prefix"; then
18653  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18654set dummy ${ac_tool_prefix}cc; ac_word=$2
18655echo "$as_me:$LINENO: checking for $ac_word" >&5
18656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18657if test "${ac_cv_prog_CC+set}" = set; then
18658  echo $ECHO_N "(cached) $ECHO_C" >&6
18659else
18660  if test -n "$CC"; then
18661  ac_cv_prog_CC="$CC" # Let the user override the test.
18662else
18663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18664for as_dir in $PATH
18665do
18666  IFS=$as_save_IFS
18667  test -z "$as_dir" && as_dir=.
18668  for ac_exec_ext in '' $ac_executable_extensions; do
18669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18670    ac_cv_prog_CC="${ac_tool_prefix}cc"
18671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18672    break 2
18673  fi
18674done
18675done
18676
18677fi
18678fi
18679CC=$ac_cv_prog_CC
18680if test -n "$CC"; then
18681  echo "$as_me:$LINENO: result: $CC" >&5
18682echo "${ECHO_T}$CC" >&6
18683else
18684  echo "$as_me:$LINENO: result: no" >&5
18685echo "${ECHO_T}no" >&6
18686fi
18687
18688fi
18689if test -z "$ac_cv_prog_CC"; then
18690  ac_ct_CC=$CC
18691  # Extract the first word of "cc", so it can be a program name with args.
18692set dummy cc; ac_word=$2
18693echo "$as_me:$LINENO: checking for $ac_word" >&5
18694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18695if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18696  echo $ECHO_N "(cached) $ECHO_C" >&6
18697else
18698  if test -n "$ac_ct_CC"; then
18699  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18700else
18701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18702for as_dir in $PATH
18703do
18704  IFS=$as_save_IFS
18705  test -z "$as_dir" && as_dir=.
18706  for ac_exec_ext in '' $ac_executable_extensions; do
18707  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18708    ac_cv_prog_ac_ct_CC="cc"
18709    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18710    break 2
18711  fi
18712done
18713done
18714
18715fi
18716fi
18717ac_ct_CC=$ac_cv_prog_ac_ct_CC
18718if test -n "$ac_ct_CC"; then
18719  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18720echo "${ECHO_T}$ac_ct_CC" >&6
18721else
18722  echo "$as_me:$LINENO: result: no" >&5
18723echo "${ECHO_T}no" >&6
18724fi
18725
18726  CC=$ac_ct_CC
18727else
18728  CC="$ac_cv_prog_CC"
18729fi
18730
18731fi
18732if test -z "$CC"; then
18733  # Extract the first word of "cc", so it can be a program name with args.
18734set dummy cc; ac_word=$2
18735echo "$as_me:$LINENO: checking for $ac_word" >&5
18736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18737if test "${ac_cv_prog_CC+set}" = set; then
18738  echo $ECHO_N "(cached) $ECHO_C" >&6
18739else
18740  if test -n "$CC"; then
18741  ac_cv_prog_CC="$CC" # Let the user override the test.
18742else
18743  ac_prog_rejected=no
18744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18745for as_dir in $PATH
18746do
18747  IFS=$as_save_IFS
18748  test -z "$as_dir" && as_dir=.
18749  for ac_exec_ext in '' $ac_executable_extensions; do
18750  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18751    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18752       ac_prog_rejected=yes
18753       continue
18754     fi
18755    ac_cv_prog_CC="cc"
18756    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18757    break 2
18758  fi
18759done
18760done
18761
18762if test $ac_prog_rejected = yes; then
18763  # We found a bogon in the path, so make sure we never use it.
18764  set dummy $ac_cv_prog_CC
18765  shift
18766  if test $# != 0; then
18767    # We chose a different compiler from the bogus one.
18768    # However, it has the same basename, so the bogon will be chosen
18769    # first if we set CC to just the basename; use the full file name.
18770    shift
18771    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18772  fi
18773fi
18774fi
18775fi
18776CC=$ac_cv_prog_CC
18777if test -n "$CC"; then
18778  echo "$as_me:$LINENO: result: $CC" >&5
18779echo "${ECHO_T}$CC" >&6
18780else
18781  echo "$as_me:$LINENO: result: no" >&5
18782echo "${ECHO_T}no" >&6
18783fi
18784
18785fi
18786if test -z "$CC"; then
18787  if test -n "$ac_tool_prefix"; then
18788  for ac_prog in cl
18789  do
18790    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18792echo "$as_me:$LINENO: checking for $ac_word" >&5
18793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18794if test "${ac_cv_prog_CC+set}" = set; then
18795  echo $ECHO_N "(cached) $ECHO_C" >&6
18796else
18797  if test -n "$CC"; then
18798  ac_cv_prog_CC="$CC" # Let the user override the test.
18799else
18800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18801for as_dir in $PATH
18802do
18803  IFS=$as_save_IFS
18804  test -z "$as_dir" && as_dir=.
18805  for ac_exec_ext in '' $ac_executable_extensions; do
18806  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18807    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18808    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18809    break 2
18810  fi
18811done
18812done
18813
18814fi
18815fi
18816CC=$ac_cv_prog_CC
18817if test -n "$CC"; then
18818  echo "$as_me:$LINENO: result: $CC" >&5
18819echo "${ECHO_T}$CC" >&6
18820else
18821  echo "$as_me:$LINENO: result: no" >&5
18822echo "${ECHO_T}no" >&6
18823fi
18824
18825    test -n "$CC" && break
18826  done
18827fi
18828if test -z "$CC"; then
18829  ac_ct_CC=$CC
18830  for ac_prog in cl
18831do
18832  # Extract the first word of "$ac_prog", so it can be a program name with args.
18833set dummy $ac_prog; ac_word=$2
18834echo "$as_me:$LINENO: checking for $ac_word" >&5
18835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18836if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18837  echo $ECHO_N "(cached) $ECHO_C" >&6
18838else
18839  if test -n "$ac_ct_CC"; then
18840  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18841else
18842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18843for as_dir in $PATH
18844do
18845  IFS=$as_save_IFS
18846  test -z "$as_dir" && as_dir=.
18847  for ac_exec_ext in '' $ac_executable_extensions; do
18848  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18849    ac_cv_prog_ac_ct_CC="$ac_prog"
18850    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18851    break 2
18852  fi
18853done
18854done
18855
18856fi
18857fi
18858ac_ct_CC=$ac_cv_prog_ac_ct_CC
18859if test -n "$ac_ct_CC"; then
18860  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18861echo "${ECHO_T}$ac_ct_CC" >&6
18862else
18863  echo "$as_me:$LINENO: result: no" >&5
18864echo "${ECHO_T}no" >&6
18865fi
18866
18867  test -n "$ac_ct_CC" && break
18868done
18869
18870  CC=$ac_ct_CC
18871fi
18872
18873fi
18874
18875
18876test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18877See \`config.log' for more details." >&5
18878echo "$as_me: error: no acceptable C compiler found in \$PATH
18879See \`config.log' for more details." >&2;}
18880   { (exit 1); exit 1; }; }
18881
18882# Provide some information about the compiler.
18883echo "$as_me:$LINENO:" \
18884     "checking for C compiler version" >&5
18885ac_compiler=`set X $ac_compile; echo $2`
18886{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18887  (eval $ac_compiler --version </dev/null >&5) 2>&5
18888  ac_status=$?
18889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890  (exit $ac_status); }
18891{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18892  (eval $ac_compiler -v </dev/null >&5) 2>&5
18893  ac_status=$?
18894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895  (exit $ac_status); }
18896{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18897  (eval $ac_compiler -V </dev/null >&5) 2>&5
18898  ac_status=$?
18899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900  (exit $ac_status); }
18901
18902echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
18903echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18904if test "${ac_cv_c_compiler_gnu+set}" = set; then
18905  echo $ECHO_N "(cached) $ECHO_C" >&6
18906else
18907  cat >conftest.$ac_ext <<_ACEOF
18908/* confdefs.h.  */
18909_ACEOF
18910cat confdefs.h >>conftest.$ac_ext
18911cat >>conftest.$ac_ext <<_ACEOF
18912/* end confdefs.h.  */
18913
18914int
18915main ()
18916{
18917#ifndef __GNUC__
18918       choke me
18919#endif
18920
18921  ;
18922  return 0;
18923}
18924_ACEOF
18925rm -f conftest.$ac_objext
18926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927  (eval $ac_compile) 2>conftest.er1
18928  ac_status=$?
18929  grep -v '^ *+' conftest.er1 >conftest.err
18930  rm -f conftest.er1
18931  cat conftest.err >&5
18932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933  (exit $ac_status); } &&
18934	 { ac_try='test -z "$ac_c_werror_flag"
18935			 || test ! -s conftest.err'
18936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937  (eval $ac_try) 2>&5
18938  ac_status=$?
18939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940  (exit $ac_status); }; } &&
18941	 { ac_try='test -s conftest.$ac_objext'
18942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943  (eval $ac_try) 2>&5
18944  ac_status=$?
18945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946  (exit $ac_status); }; }; then
18947  ac_compiler_gnu=yes
18948else
18949  echo "$as_me: failed program was:" >&5
18950sed 's/^/| /' conftest.$ac_ext >&5
18951
18952ac_compiler_gnu=no
18953fi
18954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18955ac_cv_c_compiler_gnu=$ac_compiler_gnu
18956
18957fi
18958echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
18959echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18960GCC=`test $ac_compiler_gnu = yes && echo yes`
18961ac_test_CFLAGS=${CFLAGS+set}
18962ac_save_CFLAGS=$CFLAGS
18963CFLAGS="-g"
18964echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18965echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18966if test "${ac_cv_prog_cc_g+set}" = set; then
18967  echo $ECHO_N "(cached) $ECHO_C" >&6
18968else
18969  cat >conftest.$ac_ext <<_ACEOF
18970/* confdefs.h.  */
18971_ACEOF
18972cat confdefs.h >>conftest.$ac_ext
18973cat >>conftest.$ac_ext <<_ACEOF
18974/* end confdefs.h.  */
18975
18976int
18977main ()
18978{
18979
18980  ;
18981  return 0;
18982}
18983_ACEOF
18984rm -f conftest.$ac_objext
18985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18986  (eval $ac_compile) 2>conftest.er1
18987  ac_status=$?
18988  grep -v '^ *+' conftest.er1 >conftest.err
18989  rm -f conftest.er1
18990  cat conftest.err >&5
18991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992  (exit $ac_status); } &&
18993	 { ac_try='test -z "$ac_c_werror_flag"
18994			 || test ! -s conftest.err'
18995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18996  (eval $ac_try) 2>&5
18997  ac_status=$?
18998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999  (exit $ac_status); }; } &&
19000	 { ac_try='test -s conftest.$ac_objext'
19001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002  (eval $ac_try) 2>&5
19003  ac_status=$?
19004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005  (exit $ac_status); }; }; then
19006  ac_cv_prog_cc_g=yes
19007else
19008  echo "$as_me: failed program was:" >&5
19009sed 's/^/| /' conftest.$ac_ext >&5
19010
19011ac_cv_prog_cc_g=no
19012fi
19013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19014fi
19015echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19016echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19017if test "$ac_test_CFLAGS" = set; then
19018  CFLAGS=$ac_save_CFLAGS
19019elif test $ac_cv_prog_cc_g = yes; then
19020  if test "$GCC" = yes; then
19021    CFLAGS="-g -O2"
19022  else
19023    CFLAGS="-g"
19024  fi
19025else
19026  if test "$GCC" = yes; then
19027    CFLAGS="-O2"
19028  else
19029    CFLAGS=
19030  fi
19031fi
19032echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19033echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19034if test "${ac_cv_prog_cc_stdc+set}" = set; then
19035  echo $ECHO_N "(cached) $ECHO_C" >&6
19036else
19037  ac_cv_prog_cc_stdc=no
19038ac_save_CC=$CC
19039cat >conftest.$ac_ext <<_ACEOF
19040/* confdefs.h.  */
19041_ACEOF
19042cat confdefs.h >>conftest.$ac_ext
19043cat >>conftest.$ac_ext <<_ACEOF
19044/* end confdefs.h.  */
19045#include <stdarg.h>
19046#include <stdio.h>
19047#include <sys/types.h>
19048#include <sys/stat.h>
19049/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19050struct buf { int x; };
19051FILE * (*rcsopen) (struct buf *, struct stat *, int);
19052static char *e (p, i)
19053     char **p;
19054     int i;
19055{
19056  return p[i];
19057}
19058static char *f (char * (*g) (char **, int), char **p, ...)
19059{
19060  char *s;
19061  va_list v;
19062  va_start (v,p);
19063  s = g (p, va_arg (v,int));
19064  va_end (v);
19065  return s;
19066}
19067
19068/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19069   function prototypes and stuff, but not '\xHH' hex character constants.
19070   These don't provoke an error unfortunately, instead are silently treated
19071   as 'x'.  The following induces an error, until -std1 is added to get
19072   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19073   array size at least.  It's necessary to write '\x00'==0 to get something
19074   that's true only with -std1.  */
19075int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19076
19077int test (int i, double x);
19078struct s1 {int (*f) (int a);};
19079struct s2 {int (*f) (double a);};
19080int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19081int argc;
19082char **argv;
19083int
19084main ()
19085{
19086return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19087  ;
19088  return 0;
19089}
19090_ACEOF
19091# Don't try gcc -ansi; that turns off useful extensions and
19092# breaks some systems' header files.
19093# AIX			-qlanglvl=ansi
19094# Ultrix and OSF/1	-std1
19095# HP-UX 10.20 and later	-Ae
19096# HP-UX older versions	-Aa -D_HPUX_SOURCE
19097# SVR4			-Xc -D__EXTENSIONS__
19098for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19099do
19100  CC="$ac_save_CC $ac_arg"
19101  rm -f conftest.$ac_objext
19102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19103  (eval $ac_compile) 2>conftest.er1
19104  ac_status=$?
19105  grep -v '^ *+' conftest.er1 >conftest.err
19106  rm -f conftest.er1
19107  cat conftest.err >&5
19108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109  (exit $ac_status); } &&
19110	 { ac_try='test -z "$ac_c_werror_flag"
19111			 || test ! -s conftest.err'
19112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113  (eval $ac_try) 2>&5
19114  ac_status=$?
19115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116  (exit $ac_status); }; } &&
19117	 { ac_try='test -s conftest.$ac_objext'
19118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119  (eval $ac_try) 2>&5
19120  ac_status=$?
19121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122  (exit $ac_status); }; }; then
19123  ac_cv_prog_cc_stdc=$ac_arg
19124break
19125else
19126  echo "$as_me: failed program was:" >&5
19127sed 's/^/| /' conftest.$ac_ext >&5
19128
19129fi
19130rm -f conftest.err conftest.$ac_objext
19131done
19132rm -f conftest.$ac_ext conftest.$ac_objext
19133CC=$ac_save_CC
19134
19135fi
19136
19137case "x$ac_cv_prog_cc_stdc" in
19138  x|xno)
19139    echo "$as_me:$LINENO: result: none needed" >&5
19140echo "${ECHO_T}none needed" >&6 ;;
19141  *)
19142    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19143echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19144    CC="$CC $ac_cv_prog_cc_stdc" ;;
19145esac
19146
19147# Some people use a C++ compiler to compile C.  Since we use `exit',
19148# in C++ we need to declare it.  In case someone uses the same compiler
19149# for both compiling C and C++ we need to have the C++ compiler decide
19150# the declaration of exit, since it's the most demanding environment.
19151cat >conftest.$ac_ext <<_ACEOF
19152#ifndef __cplusplus
19153  choke me
19154#endif
19155_ACEOF
19156rm -f conftest.$ac_objext
19157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19158  (eval $ac_compile) 2>conftest.er1
19159  ac_status=$?
19160  grep -v '^ *+' conftest.er1 >conftest.err
19161  rm -f conftest.er1
19162  cat conftest.err >&5
19163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164  (exit $ac_status); } &&
19165	 { ac_try='test -z "$ac_c_werror_flag"
19166			 || test ! -s conftest.err'
19167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168  (eval $ac_try) 2>&5
19169  ac_status=$?
19170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171  (exit $ac_status); }; } &&
19172	 { ac_try='test -s conftest.$ac_objext'
19173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174  (eval $ac_try) 2>&5
19175  ac_status=$?
19176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177  (exit $ac_status); }; }; then
19178  for ac_declaration in \
19179   '' \
19180   'extern "C" void std::exit (int) throw (); using std::exit;' \
19181   'extern "C" void std::exit (int); using std::exit;' \
19182   'extern "C" void exit (int) throw ();' \
19183   'extern "C" void exit (int);' \
19184   'void exit (int);'
19185do
19186  cat >conftest.$ac_ext <<_ACEOF
19187/* confdefs.h.  */
19188_ACEOF
19189cat confdefs.h >>conftest.$ac_ext
19190cat >>conftest.$ac_ext <<_ACEOF
19191/* end confdefs.h.  */
19192$ac_declaration
19193#include <stdlib.h>
19194int
19195main ()
19196{
19197exit (42);
19198  ;
19199  return 0;
19200}
19201_ACEOF
19202rm -f conftest.$ac_objext
19203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19204  (eval $ac_compile) 2>conftest.er1
19205  ac_status=$?
19206  grep -v '^ *+' conftest.er1 >conftest.err
19207  rm -f conftest.er1
19208  cat conftest.err >&5
19209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210  (exit $ac_status); } &&
19211	 { ac_try='test -z "$ac_c_werror_flag"
19212			 || test ! -s conftest.err'
19213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214  (eval $ac_try) 2>&5
19215  ac_status=$?
19216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217  (exit $ac_status); }; } &&
19218	 { ac_try='test -s conftest.$ac_objext'
19219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220  (eval $ac_try) 2>&5
19221  ac_status=$?
19222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223  (exit $ac_status); }; }; then
19224  :
19225else
19226  echo "$as_me: failed program was:" >&5
19227sed 's/^/| /' conftest.$ac_ext >&5
19228
19229continue
19230fi
19231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19232  cat >conftest.$ac_ext <<_ACEOF
19233/* confdefs.h.  */
19234_ACEOF
19235cat confdefs.h >>conftest.$ac_ext
19236cat >>conftest.$ac_ext <<_ACEOF
19237/* end confdefs.h.  */
19238$ac_declaration
19239int
19240main ()
19241{
19242exit (42);
19243  ;
19244  return 0;
19245}
19246_ACEOF
19247rm -f conftest.$ac_objext
19248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19249  (eval $ac_compile) 2>conftest.er1
19250  ac_status=$?
19251  grep -v '^ *+' conftest.er1 >conftest.err
19252  rm -f conftest.er1
19253  cat conftest.err >&5
19254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255  (exit $ac_status); } &&
19256	 { ac_try='test -z "$ac_c_werror_flag"
19257			 || test ! -s conftest.err'
19258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259  (eval $ac_try) 2>&5
19260  ac_status=$?
19261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262  (exit $ac_status); }; } &&
19263	 { ac_try='test -s conftest.$ac_objext'
19264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265  (eval $ac_try) 2>&5
19266  ac_status=$?
19267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268  (exit $ac_status); }; }; then
19269  break
19270else
19271  echo "$as_me: failed program was:" >&5
19272sed 's/^/| /' conftest.$ac_ext >&5
19273
19274fi
19275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19276done
19277rm -f conftest*
19278if test -n "$ac_declaration"; then
19279  echo '#ifdef __cplusplus' >>confdefs.h
19280  echo $ac_declaration      >>confdefs.h
19281  echo '#endif'             >>confdefs.h
19282fi
19283
19284else
19285  echo "$as_me: failed program was:" >&5
19286sed 's/^/| /' conftest.$ac_ext >&5
19287
19288fi
19289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19290ac_ext=c
19291ac_cpp='$CPP $CPPFLAGS'
19292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19294ac_compiler_gnu=$ac_cv_c_compiler_gnu
19295
19296depcc="$CC"   am_compiler_list=
19297
19298echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19299echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19300if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19301  echo $ECHO_N "(cached) $ECHO_C" >&6
19302else
19303  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19304  # We make a subdir and do the tests there.  Otherwise we can end up
19305  # making bogus files that we don't know about and never remove.  For
19306  # instance it was reported that on HP-UX the gcc test will end up
19307  # making a dummy file named `D' -- because `-MD' means `put the output
19308  # in D'.
19309  mkdir conftest.dir
19310  # Copy depcomp to subdir because otherwise we won't find it if we're
19311  # using a relative directory.
19312  cp "$am_depcomp" conftest.dir
19313  cd conftest.dir
19314  # We will build objects and dependencies in a subdirectory because
19315  # it helps to detect inapplicable dependency modes.  For instance
19316  # both Tru64's cc and ICC support -MD to output dependencies as a
19317  # side effect of compilation, but ICC will put the dependencies in
19318  # the current directory while Tru64 will put them in the object
19319  # directory.
19320  mkdir sub
19321
19322  am_cv_CC_dependencies_compiler_type=none
19323  if test "$am_compiler_list" = ""; then
19324     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19325  fi
19326  for depmode in $am_compiler_list; do
19327    # Setup a source with many dependencies, because some compilers
19328    # like to wrap large dependency lists on column 80 (with \), and
19329    # we should not choose a depcomp mode which is confused by this.
19330    #
19331    # We need to recreate these files for each test, as the compiler may
19332    # overwrite some of them when testing with obscure command lines.
19333    # This happens at least with the AIX C compiler.
19334    : > sub/conftest.c
19335    for i in 1 2 3 4 5 6; do
19336      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19337      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19338      # Solaris 8's {/usr,}/bin/sh.
19339      touch sub/conftst$i.h
19340    done
19341    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19342
19343    case $depmode in
19344    nosideeffect)
19345      # after this tag, mechanisms are not by side-effect, so they'll
19346      # only be used when explicitly requested
19347      if test "x$enable_dependency_tracking" = xyes; then
19348	continue
19349      else
19350	break
19351      fi
19352      ;;
19353    none) break ;;
19354    esac
19355    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19356    # mode.  It turns out that the SunPro C++ compiler does not properly
19357    # handle `-M -o', and we need to detect this.
19358    if depmode=$depmode \
19359       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19360       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19361       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19362         >/dev/null 2>conftest.err &&
19363       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19364       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19365       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19366      # icc doesn't choke on unknown options, it will just issue warnings
19367      # or remarks (even with -Werror).  So we grep stderr for any message
19368      # that says an option was ignored or not supported.
19369      # When given -MP, icc 7.0 and 7.1 complain thusly:
19370      #   icc: Command line warning: ignoring option '-M'; no argument required
19371      # The diagnosis changed in icc 8.0:
19372      #   icc: Command line remark: option '-MP' not supported
19373      if (grep 'ignoring option' conftest.err ||
19374          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19375        am_cv_CC_dependencies_compiler_type=$depmode
19376        break
19377      fi
19378    fi
19379  done
19380
19381  cd ..
19382  rm -rf conftest.dir
19383else
19384  am_cv_CC_dependencies_compiler_type=none
19385fi
19386
19387fi
19388echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19389echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19390CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19391
19392
19393
19394if
19395  test "x$enable_dependency_tracking" != xno \
19396  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19397  am__fastdepCC_TRUE=
19398  am__fastdepCC_FALSE='#'
19399else
19400  am__fastdepCC_TRUE='#'
19401  am__fastdepCC_FALSE=
19402fi
19403
19404
19405
19406
19407
19408
19409
19410# Check whether --with-xorg-module-dir or --without-xorg-module-dir was given.
19411if test "${with_xorg_module_dir+set}" = set; then
19412  withval="$with_xorg_module_dir"
19413  moduledir="$withval"
19414else
19415  moduledir="$libdir/xorg/modules"
19416fi;
19417
19418# Checks for extensions
19419#XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
19420#XORG_DRIVER_CHECK_EXT(RENDER, renderproto)
19421#XORG_DRIVER_CHECK_EXT(XV, videoproto)
19422
19423# Checks for pkg-config packages
19424
19425
19426if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19427	if test -n "$ac_tool_prefix"; then
19428  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19429set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19430echo "$as_me:$LINENO: checking for $ac_word" >&5
19431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19432if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19433  echo $ECHO_N "(cached) $ECHO_C" >&6
19434else
19435  case $PKG_CONFIG in
19436  [\\/]* | ?:[\\/]*)
19437  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19438  ;;
19439  *)
19440  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19441for as_dir in $PATH
19442do
19443  IFS=$as_save_IFS
19444  test -z "$as_dir" && as_dir=.
19445  for ac_exec_ext in '' $ac_executable_extensions; do
19446  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19447    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19448    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19449    break 2
19450  fi
19451done
19452done
19453
19454  ;;
19455esac
19456fi
19457PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19458
19459if test -n "$PKG_CONFIG"; then
19460  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19461echo "${ECHO_T}$PKG_CONFIG" >&6
19462else
19463  echo "$as_me:$LINENO: result: no" >&5
19464echo "${ECHO_T}no" >&6
19465fi
19466
19467fi
19468if test -z "$ac_cv_path_PKG_CONFIG"; then
19469  ac_pt_PKG_CONFIG=$PKG_CONFIG
19470  # Extract the first word of "pkg-config", so it can be a program name with args.
19471set dummy pkg-config; ac_word=$2
19472echo "$as_me:$LINENO: checking for $ac_word" >&5
19473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19474if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19475  echo $ECHO_N "(cached) $ECHO_C" >&6
19476else
19477  case $ac_pt_PKG_CONFIG in
19478  [\\/]* | ?:[\\/]*)
19479  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19480  ;;
19481  *)
19482  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19483for as_dir in $PATH
19484do
19485  IFS=$as_save_IFS
19486  test -z "$as_dir" && as_dir=.
19487  for ac_exec_ext in '' $ac_executable_extensions; do
19488  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19489    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19491    break 2
19492  fi
19493done
19494done
19495
19496  ;;
19497esac
19498fi
19499ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19500
19501if test -n "$ac_pt_PKG_CONFIG"; then
19502  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19503echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19504else
19505  echo "$as_me:$LINENO: result: no" >&5
19506echo "${ECHO_T}no" >&6
19507fi
19508
19509  PKG_CONFIG=$ac_pt_PKG_CONFIG
19510else
19511  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19512fi
19513
19514fi
19515if test -n "$PKG_CONFIG"; then
19516	_pkg_min_version=0.9.0
19517	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19518echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19519	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19520		echo "$as_me:$LINENO: result: yes" >&5
19521echo "${ECHO_T}yes" >&6
19522	else
19523		echo "$as_me:$LINENO: result: no" >&5
19524echo "${ECHO_T}no" >&6
19525		PKG_CONFIG=""
19526	fi
19527
19528fi
19529
19530pkg_failed=no
19531echo "$as_me:$LINENO: checking for XORG" >&5
19532echo $ECHO_N "checking for XORG... $ECHO_C" >&6
19533
19534if test -n "$PKG_CONFIG"; then
19535        if test -n "$PKG_CONFIG" && \
19536    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\"") >&5
19537  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
19538  ac_status=$?
19539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540  (exit $ac_status); }; then
19541  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
19542else
19543  pkg_failed=yes
19544fi
19545else
19546	pkg_failed=untried
19547fi
19548if test -n "$PKG_CONFIG"; then
19549        if test -n "$PKG_CONFIG" && \
19550    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\"") >&5
19551  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
19552  ac_status=$?
19553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554  (exit $ac_status); }; then
19555  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
19556else
19557  pkg_failed=yes
19558fi
19559else
19560	pkg_failed=untried
19561fi
19562
19563if test $pkg_failed = yes; then
19564	XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES"`
19565	# Put the nasty error message in config.log where it belongs
19566	echo "$XORG_PKG_ERRORS" 1>&5
19567
19568	{ { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met.
19569Consider adjusting the PKG_CONFIG_PATH environment variable if you
19570installed software in a non-standard prefix.
19571
19572Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables
19573to avoid the need to call pkg-config.  See the pkg-config man page for
19574more details." >&5
19575echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met.
19576Consider adjusting the PKG_CONFIG_PATH environment variable if you
19577installed software in a non-standard prefix.
19578
19579Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables
19580to avoid the need to call pkg-config.  See the pkg-config man page for
19581more details." >&2;}
19582   { (exit 1); exit 1; }; }
19583elif test $pkg_failed = untried; then
19584	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19585is in your PATH or set the PKG_CONFIG environment variable to the full
19586path to pkg-config.
19587
19588Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables
19589to avoid the need to call pkg-config.  See the pkg-config man page for
19590more details.
19591
19592To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19593See \`config.log' for more details." >&5
19594echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19595is in your PATH or set the PKG_CONFIG environment variable to the full
19596path to pkg-config.
19597
19598Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables
19599to avoid the need to call pkg-config.  See the pkg-config man page for
19600more details.
19601
19602To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19603See \`config.log' for more details." >&2;}
19604   { (exit 1); exit 1; }; }
19605else
19606	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19607	XORG_LIBS=$pkg_cv_XORG_LIBS
19608        echo "$as_me:$LINENO: result: yes" >&5
19609echo "${ECHO_T}yes" >&6
19610	:
19611fi
19612sdkdir=$(pkg-config --variable=sdkdir xorg-server)
19613
19614# Checks for libraries.
19615
19616# Checks for header files.
19617echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19618echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19619if test "${ac_cv_header_stdc+set}" = set; then
19620  echo $ECHO_N "(cached) $ECHO_C" >&6
19621else
19622  cat >conftest.$ac_ext <<_ACEOF
19623/* confdefs.h.  */
19624_ACEOF
19625cat confdefs.h >>conftest.$ac_ext
19626cat >>conftest.$ac_ext <<_ACEOF
19627/* end confdefs.h.  */
19628#include <stdlib.h>
19629#include <stdarg.h>
19630#include <string.h>
19631#include <float.h>
19632
19633int
19634main ()
19635{
19636
19637  ;
19638  return 0;
19639}
19640_ACEOF
19641rm -f conftest.$ac_objext
19642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643  (eval $ac_compile) 2>conftest.er1
19644  ac_status=$?
19645  grep -v '^ *+' conftest.er1 >conftest.err
19646  rm -f conftest.er1
19647  cat conftest.err >&5
19648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649  (exit $ac_status); } &&
19650	 { ac_try='test -z "$ac_c_werror_flag"
19651			 || test ! -s conftest.err'
19652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653  (eval $ac_try) 2>&5
19654  ac_status=$?
19655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656  (exit $ac_status); }; } &&
19657	 { ac_try='test -s conftest.$ac_objext'
19658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659  (eval $ac_try) 2>&5
19660  ac_status=$?
19661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662  (exit $ac_status); }; }; then
19663  ac_cv_header_stdc=yes
19664else
19665  echo "$as_me: failed program was:" >&5
19666sed 's/^/| /' conftest.$ac_ext >&5
19667
19668ac_cv_header_stdc=no
19669fi
19670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19671
19672if test $ac_cv_header_stdc = yes; then
19673  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19674  cat >conftest.$ac_ext <<_ACEOF
19675/* confdefs.h.  */
19676_ACEOF
19677cat confdefs.h >>conftest.$ac_ext
19678cat >>conftest.$ac_ext <<_ACEOF
19679/* end confdefs.h.  */
19680#include <string.h>
19681
19682_ACEOF
19683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19684  $EGREP "memchr" >/dev/null 2>&1; then
19685  :
19686else
19687  ac_cv_header_stdc=no
19688fi
19689rm -f conftest*
19690
19691fi
19692
19693if test $ac_cv_header_stdc = yes; then
19694  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19695  cat >conftest.$ac_ext <<_ACEOF
19696/* confdefs.h.  */
19697_ACEOF
19698cat confdefs.h >>conftest.$ac_ext
19699cat >>conftest.$ac_ext <<_ACEOF
19700/* end confdefs.h.  */
19701#include <stdlib.h>
19702
19703_ACEOF
19704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19705  $EGREP "free" >/dev/null 2>&1; then
19706  :
19707else
19708  ac_cv_header_stdc=no
19709fi
19710rm -f conftest*
19711
19712fi
19713
19714if test $ac_cv_header_stdc = yes; then
19715  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19716  if test "$cross_compiling" = yes; then
19717  :
19718else
19719  cat >conftest.$ac_ext <<_ACEOF
19720/* confdefs.h.  */
19721_ACEOF
19722cat confdefs.h >>conftest.$ac_ext
19723cat >>conftest.$ac_ext <<_ACEOF
19724/* end confdefs.h.  */
19725#include <ctype.h>
19726#if ((' ' & 0x0FF) == 0x020)
19727# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19728# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19729#else
19730# define ISLOWER(c) \
19731		   (('a' <= (c) && (c) <= 'i') \
19732		     || ('j' <= (c) && (c) <= 'r') \
19733		     || ('s' <= (c) && (c) <= 'z'))
19734# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19735#endif
19736
19737#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19738int
19739main ()
19740{
19741  int i;
19742  for (i = 0; i < 256; i++)
19743    if (XOR (islower (i), ISLOWER (i))
19744	|| toupper (i) != TOUPPER (i))
19745      exit(2);
19746  exit (0);
19747}
19748_ACEOF
19749rm -f conftest$ac_exeext
19750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19751  (eval $ac_link) 2>&5
19752  ac_status=$?
19753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756  (eval $ac_try) 2>&5
19757  ac_status=$?
19758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759  (exit $ac_status); }; }; then
19760  :
19761else
19762  echo "$as_me: program exited with status $ac_status" >&5
19763echo "$as_me: failed program was:" >&5
19764sed 's/^/| /' conftest.$ac_ext >&5
19765
19766( exit $ac_status )
19767ac_cv_header_stdc=no
19768fi
19769rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19770fi
19771fi
19772fi
19773echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19774echo "${ECHO_T}$ac_cv_header_stdc" >&6
19775if test $ac_cv_header_stdc = yes; then
19776
19777cat >>confdefs.h <<\_ACEOF
19778#define STDC_HEADERS 1
19779_ACEOF
19780
19781fi
19782
19783
19784
19785
19786
19787DRIVER_NAME=wsfb
19788
19789
19790
19791
19792
19793if test x$APP_MAN_SUFFIX = x    ; then
19794    APP_MAN_SUFFIX=1
19795fi
19796if test x$APP_MAN_DIR = x    ; then
19797    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19798fi
19799
19800if test x$LIB_MAN_SUFFIX = x    ; then
19801    LIB_MAN_SUFFIX=3
19802fi
19803if test x$LIB_MAN_DIR = x    ; then
19804    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19805fi
19806
19807if test x$FILE_MAN_SUFFIX = x    ; then
19808    case $host_os in
19809	solaris*)	FILE_MAN_SUFFIX=4  ;;
19810	*)		FILE_MAN_SUFFIX=5  ;;
19811    esac
19812fi
19813if test x$FILE_MAN_DIR = x    ; then
19814    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19815fi
19816
19817if test x$MISC_MAN_SUFFIX = x    ; then
19818    case $host_os in
19819	solaris*)	MISC_MAN_SUFFIX=5  ;;
19820	*)		MISC_MAN_SUFFIX=7  ;;
19821    esac
19822fi
19823if test x$MISC_MAN_DIR = x    ; then
19824    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19825fi
19826
19827if test x$DRIVER_MAN_SUFFIX = x    ; then
19828    case $host_os in
19829	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
19830	*)		DRIVER_MAN_SUFFIX=4  ;;
19831    esac
19832fi
19833if test x$DRIVER_MAN_DIR = x    ; then
19834    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19835fi
19836
19837if test x$ADMIN_MAN_SUFFIX = x    ; then
19838    case $host_os in
19839	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
19840	*)		ADMIN_MAN_SUFFIX=8  ;;
19841    esac
19842fi
19843if test x$ADMIN_MAN_DIR = x    ; then
19844    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19845fi
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863# Check whether --with-release-version or --without-release-version was given.
19864if test "${with_release_version+set}" = set; then
19865  withval="$with_release_version"
19866  RELEASE_VERSION="$withval"
19867else
19868  RELEASE_VERSION=""
19869fi;
19870	if test "x$RELEASE_VERSION" != "x"; then
19871		PACKAGE="$PACKAGE-$RELEASE_VERSION"
19872		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
19873		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
19874echo "$as_me: Building with package name set to $PACKAGE" >&6;}
19875	fi
19876
19877cat >>confdefs.h <<_ACEOF
19878#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19879_ACEOF
19880
19881	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
19882	if test "x$PVM" = "x"; then
19883		PVM="0"
19884	fi
19885
19886cat >>confdefs.h <<_ACEOF
19887#define PACKAGE_VERSION_MINOR $PVM
19888_ACEOF
19889
19890	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
19891	if test "x$PVP" = "x"; then
19892		PVP="0"
19893	fi
19894
19895cat >>confdefs.h <<_ACEOF
19896#define PACKAGE_VERSION_PATCHLEVEL $PVP
19897_ACEOF
19898
19899
19900
19901                              ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19902cat >confcache <<\_ACEOF
19903# This file is a shell script that caches the results of configure
19904# tests run on this system so they can be shared between configure
19905# scripts and configure runs, see configure's option --config-cache.
19906# It is not useful on other systems.  If it contains results you don't
19907# want to keep, you may remove or edit it.
19908#
19909# config.status only pays attention to the cache file if you give it
19910# the --recheck option to rerun configure.
19911#
19912# `ac_cv_env_foo' variables (set or unset) will be overridden when
19913# loading this file, other *unset* `ac_cv_foo' will be assigned the
19914# following values.
19915
19916_ACEOF
19917
19918# The following way of writing the cache mishandles newlines in values,
19919# but we know of no workaround that is simple, portable, and efficient.
19920# So, don't put newlines in cache variables' values.
19921# Ultrix sh set writes to stderr and can't be redirected directly,
19922# and sets the high bit in the cache file unless we assign to the vars.
19923{
19924  (set) 2>&1 |
19925    case `(ac_space=' '; set | grep ac_space) 2>&1` in
19926    *ac_space=\ *)
19927      # `set' does not quote correctly, so add quotes (double-quote
19928      # substitution turns \\\\ into \\, and sed turns \\ into \).
19929      sed -n \
19930	"s/'/'\\\\''/g;
19931	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19932      ;;
19933    *)
19934      # `set' quotes correctly as required by POSIX, so do not add quotes.
19935      sed -n \
19936	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19937      ;;
19938    esac;
19939} |
19940  sed '
19941     t clear
19942     : clear
19943     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19944     t end
19945     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19946     : end' >>confcache
19947if diff $cache_file confcache >/dev/null 2>&1; then :; else
19948  if test -w $cache_file; then
19949    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19950    cat confcache >$cache_file
19951  else
19952    echo "not updating unwritable cache $cache_file"
19953  fi
19954fi
19955rm -f confcache
19956
19957test "x$prefix" = xNONE && prefix=$ac_default_prefix
19958# Let make expand exec_prefix.
19959test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19960
19961# VPATH may cause trouble with some makes, so we remove $(srcdir),
19962# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19963# trailing colons and then remove the whole line if VPATH becomes empty
19964# (actually we leave an empty line to preserve line numbers).
19965if test "x$srcdir" = x.; then
19966  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19967s/:*\$(srcdir):*/:/;
19968s/:*\${srcdir}:*/:/;
19969s/:*@srcdir@:*/:/;
19970s/^\([^=]*=[	 ]*\):*/\1/;
19971s/:*$//;
19972s/^[^=]*=[	 ]*$//;
19973}'
19974fi
19975
19976DEFS=-DHAVE_CONFIG_H
19977
19978ac_libobjs=
19979ac_ltlibobjs=
19980for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19981  # 1. Remove the extension, and $U if already installed.
19982  ac_i=`echo "$ac_i" |
19983	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19984  # 2. Add them.
19985  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19986  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19987done
19988LIBOBJS=$ac_libobjs
19989
19990LTLIBOBJS=$ac_ltlibobjs
19991
19992
19993if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19994  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19995Usually this means the macro was only invoked conditionally." >&5
19996echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19997Usually this means the macro was only invoked conditionally." >&2;}
19998   { (exit 1); exit 1; }; }
19999fi
20000if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20001  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20002Usually this means the macro was only invoked conditionally." >&5
20003echo "$as_me: error: conditional \"AMDEP\" was never defined.
20004Usually this means the macro was only invoked conditionally." >&2;}
20005   { (exit 1); exit 1; }; }
20006fi
20007if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20008  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20009Usually this means the macro was only invoked conditionally." >&5
20010echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20011Usually this means the macro was only invoked conditionally." >&2;}
20012   { (exit 1); exit 1; }; }
20013fi
20014if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20015  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20016Usually this means the macro was only invoked conditionally." >&5
20017echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20018Usually this means the macro was only invoked conditionally." >&2;}
20019   { (exit 1); exit 1; }; }
20020fi
20021if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20022  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20023Usually this means the macro was only invoked conditionally." >&5
20024echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20025Usually this means the macro was only invoked conditionally." >&2;}
20026   { (exit 1); exit 1; }; }
20027fi
20028
20029: ${CONFIG_STATUS=./config.status}
20030ac_clean_files_save=$ac_clean_files
20031ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20032{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20033echo "$as_me: creating $CONFIG_STATUS" >&6;}
20034cat >$CONFIG_STATUS <<_ACEOF
20035#! $SHELL
20036# Generated by $as_me.
20037# Run this file to recreate the current configuration.
20038# Compiler output produced by configure, useful for debugging
20039# configure, is in config.log if it exists.
20040
20041debug=false
20042ac_cs_recheck=false
20043ac_cs_silent=false
20044SHELL=\${CONFIG_SHELL-$SHELL}
20045_ACEOF
20046
20047cat >>$CONFIG_STATUS <<\_ACEOF
20048## --------------------- ##
20049## M4sh Initialization.  ##
20050## --------------------- ##
20051
20052# Be Bourne compatible
20053if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20054  emulate sh
20055  NULLCMD=:
20056  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20057  # is contrary to our usage.  Disable this feature.
20058  alias -g '${1+"$@"}'='"$@"'
20059elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20060  set -o posix
20061fi
20062DUALCASE=1; export DUALCASE # for MKS sh
20063
20064# Support unset when possible.
20065if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20066  as_unset=unset
20067else
20068  as_unset=false
20069fi
20070
20071
20072# Work around bugs in pre-3.0 UWIN ksh.
20073$as_unset ENV MAIL MAILPATH
20074PS1='$ '
20075PS2='> '
20076PS4='+ '
20077
20078# NLS nuisances.
20079for as_var in \
20080  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20081  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20082  LC_TELEPHONE LC_TIME
20083do
20084  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20085    eval $as_var=C; export $as_var
20086  else
20087    $as_unset $as_var
20088  fi
20089done
20090
20091# Required to use basename.
20092if expr a : '\(a\)' >/dev/null 2>&1; then
20093  as_expr=expr
20094else
20095  as_expr=false
20096fi
20097
20098if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20099  as_basename=basename
20100else
20101  as_basename=false
20102fi
20103
20104
20105# Name of the executable.
20106as_me=`$as_basename "$0" ||
20107$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20108	 X"$0" : 'X\(//\)$' \| \
20109	 X"$0" : 'X\(/\)$' \| \
20110	 .     : '\(.\)' 2>/dev/null ||
20111echo X/"$0" |
20112    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20113  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20114  	  /^X\/\(\/\).*/{ s//\1/; q; }
20115  	  s/.*/./; q'`
20116
20117
20118# PATH needs CR, and LINENO needs CR and PATH.
20119# Avoid depending upon Character Ranges.
20120as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20121as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20122as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20123as_cr_digits='0123456789'
20124as_cr_alnum=$as_cr_Letters$as_cr_digits
20125
20126# The user is always right.
20127if test "${PATH_SEPARATOR+set}" != set; then
20128  echo "#! /bin/sh" >conf$$.sh
20129  echo  "exit 0"   >>conf$$.sh
20130  chmod +x conf$$.sh
20131  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20132    PATH_SEPARATOR=';'
20133  else
20134    PATH_SEPARATOR=:
20135  fi
20136  rm -f conf$$.sh
20137fi
20138
20139
20140  as_lineno_1=$LINENO
20141  as_lineno_2=$LINENO
20142  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20143  test "x$as_lineno_1" != "x$as_lineno_2" &&
20144  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20145  # Find who we are.  Look in the path if we contain no path at all
20146  # relative or not.
20147  case $0 in
20148    *[\\/]* ) as_myself=$0 ;;
20149    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20150for as_dir in $PATH
20151do
20152  IFS=$as_save_IFS
20153  test -z "$as_dir" && as_dir=.
20154  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20155done
20156
20157       ;;
20158  esac
20159  # We did not find ourselves, most probably we were run as `sh COMMAND'
20160  # in which case we are not to be found in the path.
20161  if test "x$as_myself" = x; then
20162    as_myself=$0
20163  fi
20164  if test ! -f "$as_myself"; then
20165    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20166echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20167   { (exit 1); exit 1; }; }
20168  fi
20169  case $CONFIG_SHELL in
20170  '')
20171    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20172for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20173do
20174  IFS=$as_save_IFS
20175  test -z "$as_dir" && as_dir=.
20176  for as_base in sh bash ksh sh5; do
20177	 case $as_dir in
20178	 /*)
20179	   if ("$as_dir/$as_base" -c '
20180  as_lineno_1=$LINENO
20181  as_lineno_2=$LINENO
20182  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20183  test "x$as_lineno_1" != "x$as_lineno_2" &&
20184  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20185	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20186	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20187	     CONFIG_SHELL=$as_dir/$as_base
20188	     export CONFIG_SHELL
20189	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20190	   fi;;
20191	 esac
20192       done
20193done
20194;;
20195  esac
20196
20197  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20198  # uniformly replaced by the line number.  The first 'sed' inserts a
20199  # line-number line before each line; the second 'sed' does the real
20200  # work.  The second script uses 'N' to pair each line-number line
20201  # with the numbered line, and appends trailing '-' during
20202  # substitution so that $LINENO is not a special case at line end.
20203  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20204  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20205  sed '=' <$as_myself |
20206    sed '
20207      N
20208      s,$,-,
20209      : loop
20210      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20211      t loop
20212      s,-$,,
20213      s,^['$as_cr_digits']*\n,,
20214    ' >$as_me.lineno &&
20215  chmod +x $as_me.lineno ||
20216    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20217echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20218   { (exit 1); exit 1; }; }
20219
20220  # Don't try to exec as it changes $[0], causing all sort of problems
20221  # (the dirname of $[0] is not the place where we might find the
20222  # original and so on.  Autoconf is especially sensible to this).
20223  . ./$as_me.lineno
20224  # Exit status is that of the last command.
20225  exit
20226}
20227
20228
20229case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20230  *c*,-n*) ECHO_N= ECHO_C='
20231' ECHO_T='	' ;;
20232  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20233  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20234esac
20235
20236if expr a : '\(a\)' >/dev/null 2>&1; then
20237  as_expr=expr
20238else
20239  as_expr=false
20240fi
20241
20242rm -f conf$$ conf$$.exe conf$$.file
20243echo >conf$$.file
20244if ln -s conf$$.file conf$$ 2>/dev/null; then
20245  # We could just check for DJGPP; but this test a) works b) is more generic
20246  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20247  if test -f conf$$.exe; then
20248    # Don't use ln at all; we don't have any links
20249    as_ln_s='cp -p'
20250  else
20251    as_ln_s='ln -s'
20252  fi
20253elif ln conf$$.file conf$$ 2>/dev/null; then
20254  as_ln_s=ln
20255else
20256  as_ln_s='cp -p'
20257fi
20258rm -f conf$$ conf$$.exe conf$$.file
20259
20260if mkdir -p . 2>/dev/null; then
20261  as_mkdir_p=:
20262else
20263  test -d ./-p && rmdir ./-p
20264  as_mkdir_p=false
20265fi
20266
20267as_executable_p="test -f"
20268
20269# Sed expression to map a string onto a valid CPP name.
20270as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20271
20272# Sed expression to map a string onto a valid variable name.
20273as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20274
20275
20276# IFS
20277# We need space, tab and new line, in precisely that order.
20278as_nl='
20279'
20280IFS=" 	$as_nl"
20281
20282# CDPATH.
20283$as_unset CDPATH
20284
20285exec 6>&1
20286
20287# Open the log real soon, to keep \$[0] and so on meaningful, and to
20288# report actual input values of CONFIG_FILES etc. instead of their
20289# values after options handling.  Logging --version etc. is OK.
20290exec 5>>config.log
20291{
20292  echo
20293  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20294## Running $as_me. ##
20295_ASBOX
20296} >&5
20297cat >&5 <<_CSEOF
20298
20299This file was extended by xf86-video-wsfb $as_me 0.2.1, which was
20300generated by GNU Autoconf 2.59.  Invocation command line was
20301
20302  CONFIG_FILES    = $CONFIG_FILES
20303  CONFIG_HEADERS  = $CONFIG_HEADERS
20304  CONFIG_LINKS    = $CONFIG_LINKS
20305  CONFIG_COMMANDS = $CONFIG_COMMANDS
20306  $ $0 $@
20307
20308_CSEOF
20309echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20310echo >&5
20311_ACEOF
20312
20313# Files that config.status was made for.
20314if test -n "$ac_config_files"; then
20315  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20316fi
20317
20318if test -n "$ac_config_headers"; then
20319  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20320fi
20321
20322if test -n "$ac_config_links"; then
20323  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20324fi
20325
20326if test -n "$ac_config_commands"; then
20327  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20328fi
20329
20330cat >>$CONFIG_STATUS <<\_ACEOF
20331
20332ac_cs_usage="\
20333\`$as_me' instantiates files from templates according to the
20334current configuration.
20335
20336Usage: $0 [OPTIONS] [FILE]...
20337
20338  -h, --help       print this help, then exit
20339  -V, --version    print version number, then exit
20340  -q, --quiet      do not print progress messages
20341  -d, --debug      don't remove temporary files
20342      --recheck    update $as_me by reconfiguring in the same conditions
20343  --file=FILE[:TEMPLATE]
20344		   instantiate the configuration file FILE
20345  --header=FILE[:TEMPLATE]
20346		   instantiate the configuration header FILE
20347
20348Configuration files:
20349$config_files
20350
20351Configuration headers:
20352$config_headers
20353
20354Configuration commands:
20355$config_commands
20356
20357Report bugs to <bug-autoconf@gnu.org>."
20358_ACEOF
20359
20360cat >>$CONFIG_STATUS <<_ACEOF
20361ac_cs_version="\\
20362xf86-video-wsfb config.status 0.2.1
20363configured by $0, generated by GNU Autoconf 2.59,
20364  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20365
20366Copyright (C) 2003 Free Software Foundation, Inc.
20367This config.status script is free software; the Free Software Foundation
20368gives unlimited permission to copy, distribute and modify it."
20369srcdir=$srcdir
20370INSTALL="$INSTALL"
20371_ACEOF
20372
20373cat >>$CONFIG_STATUS <<\_ACEOF
20374# If no file are specified by the user, then we need to provide default
20375# value.  By we need to know if files were specified by the user.
20376ac_need_defaults=:
20377while test $# != 0
20378do
20379  case $1 in
20380  --*=*)
20381    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20382    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20383    ac_shift=:
20384    ;;
20385  -*)
20386    ac_option=$1
20387    ac_optarg=$2
20388    ac_shift=shift
20389    ;;
20390  *) # This is not an option, so the user has probably given explicit
20391     # arguments.
20392     ac_option=$1
20393     ac_need_defaults=false;;
20394  esac
20395
20396  case $ac_option in
20397  # Handling of the options.
20398_ACEOF
20399cat >>$CONFIG_STATUS <<\_ACEOF
20400  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20401    ac_cs_recheck=: ;;
20402  --version | --vers* | -V )
20403    echo "$ac_cs_version"; exit 0 ;;
20404  --he | --h)
20405    # Conflict between --help and --header
20406    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20407Try \`$0 --help' for more information." >&5
20408echo "$as_me: error: ambiguous option: $1
20409Try \`$0 --help' for more information." >&2;}
20410   { (exit 1); exit 1; }; };;
20411  --help | --hel | -h )
20412    echo "$ac_cs_usage"; exit 0 ;;
20413  --debug | --d* | -d )
20414    debug=: ;;
20415  --file | --fil | --fi | --f )
20416    $ac_shift
20417    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20418    ac_need_defaults=false;;
20419  --header | --heade | --head | --hea )
20420    $ac_shift
20421    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20422    ac_need_defaults=false;;
20423  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20424  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20425    ac_cs_silent=: ;;
20426
20427  # This is an error.
20428  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20429Try \`$0 --help' for more information." >&5
20430echo "$as_me: error: unrecognized option: $1
20431Try \`$0 --help' for more information." >&2;}
20432   { (exit 1); exit 1; }; } ;;
20433
20434  *) ac_config_targets="$ac_config_targets $1" ;;
20435
20436  esac
20437  shift
20438done
20439
20440ac_configure_extra_args=
20441
20442if $ac_cs_silent; then
20443  exec 6>/dev/null
20444  ac_configure_extra_args="$ac_configure_extra_args --silent"
20445fi
20446
20447_ACEOF
20448cat >>$CONFIG_STATUS <<_ACEOF
20449if \$ac_cs_recheck; then
20450  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20451  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20452fi
20453
20454_ACEOF
20455
20456cat >>$CONFIG_STATUS <<_ACEOF
20457#
20458# INIT-COMMANDS section.
20459#
20460
20461AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20462
20463_ACEOF
20464
20465
20466
20467cat >>$CONFIG_STATUS <<\_ACEOF
20468for ac_config_target in $ac_config_targets
20469do
20470  case "$ac_config_target" in
20471  # Handling of arguments.
20472  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20473  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20474  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20475  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20476  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20477  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20478echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20479   { (exit 1); exit 1; }; };;
20480  esac
20481done
20482
20483# If the user did not use the arguments to specify the items to instantiate,
20484# then the envvar interface is used.  Set only those that are not.
20485# We use the long form for the default assignment because of an extremely
20486# bizarre bug on SunOS 4.1.3.
20487if $ac_need_defaults; then
20488  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20489  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20490  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20491fi
20492
20493# Have a temporary directory for convenience.  Make it in the build tree
20494# simply because there is no reason to put it here, and in addition,
20495# creating and moving files from /tmp can sometimes cause problems.
20496# Create a temporary directory, and hook for its removal unless debugging.
20497$debug ||
20498{
20499  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20500  trap '{ (exit 1); exit 1; }' 1 2 13 15
20501}
20502
20503# Create a (secure) tmp directory for tmp files.
20504
20505{
20506  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20507  test -n "$tmp" && test -d "$tmp"
20508}  ||
20509{
20510  tmp=./confstat$$-$RANDOM
20511  (umask 077 && mkdir $tmp)
20512} ||
20513{
20514   echo "$me: cannot create a temporary directory in ." >&2
20515   { (exit 1); exit 1; }
20516}
20517
20518_ACEOF
20519
20520cat >>$CONFIG_STATUS <<_ACEOF
20521
20522#
20523# CONFIG_FILES section.
20524#
20525
20526# No need to generate the scripts if there are no CONFIG_FILES.
20527# This happens for instance when ./config.status config.h
20528if test -n "\$CONFIG_FILES"; then
20529  # Protect against being on the right side of a sed subst in config.status.
20530  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20531   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20532s,@SHELL@,$SHELL,;t t
20533s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20534s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20535s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20536s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20537s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20538s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20539s,@exec_prefix@,$exec_prefix,;t t
20540s,@prefix@,$prefix,;t t
20541s,@program_transform_name@,$program_transform_name,;t t
20542s,@bindir@,$bindir,;t t
20543s,@sbindir@,$sbindir,;t t
20544s,@libexecdir@,$libexecdir,;t t
20545s,@datadir@,$datadir,;t t
20546s,@sysconfdir@,$sysconfdir,;t t
20547s,@sharedstatedir@,$sharedstatedir,;t t
20548s,@localstatedir@,$localstatedir,;t t
20549s,@libdir@,$libdir,;t t
20550s,@includedir@,$includedir,;t t
20551s,@oldincludedir@,$oldincludedir,;t t
20552s,@infodir@,$infodir,;t t
20553s,@mandir@,$mandir,;t t
20554s,@build_alias@,$build_alias,;t t
20555s,@host_alias@,$host_alias,;t t
20556s,@target_alias@,$target_alias,;t t
20557s,@DEFS@,$DEFS,;t t
20558s,@ECHO_C@,$ECHO_C,;t t
20559s,@ECHO_N@,$ECHO_N,;t t
20560s,@ECHO_T@,$ECHO_T,;t t
20561s,@LIBS@,$LIBS,;t t
20562s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20563s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20564s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20565s,@CYGPATH_W@,$CYGPATH_W,;t t
20566s,@PACKAGE@,$PACKAGE,;t t
20567s,@VERSION@,$VERSION,;t t
20568s,@ACLOCAL@,$ACLOCAL,;t t
20569s,@AUTOCONF@,$AUTOCONF,;t t
20570s,@AUTOMAKE@,$AUTOMAKE,;t t
20571s,@AUTOHEADER@,$AUTOHEADER,;t t
20572s,@MAKEINFO@,$MAKEINFO,;t t
20573s,@install_sh@,$install_sh,;t t
20574s,@STRIP@,$STRIP,;t t
20575s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20576s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20577s,@mkdir_p@,$mkdir_p,;t t
20578s,@AWK@,$AWK,;t t
20579s,@SET_MAKE@,$SET_MAKE,;t t
20580s,@am__leading_dot@,$am__leading_dot,;t t
20581s,@AMTAR@,$AMTAR,;t t
20582s,@am__tar@,$am__tar,;t t
20583s,@am__untar@,$am__untar,;t t
20584s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20585s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20586s,@MAINT@,$MAINT,;t t
20587s,@build@,$build,;t t
20588s,@build_cpu@,$build_cpu,;t t
20589s,@build_vendor@,$build_vendor,;t t
20590s,@build_os@,$build_os,;t t
20591s,@host@,$host,;t t
20592s,@host_cpu@,$host_cpu,;t t
20593s,@host_vendor@,$host_vendor,;t t
20594s,@host_os@,$host_os,;t t
20595s,@CC@,$CC,;t t
20596s,@CFLAGS@,$CFLAGS,;t t
20597s,@LDFLAGS@,$LDFLAGS,;t t
20598s,@CPPFLAGS@,$CPPFLAGS,;t t
20599s,@ac_ct_CC@,$ac_ct_CC,;t t
20600s,@EXEEXT@,$EXEEXT,;t t
20601s,@OBJEXT@,$OBJEXT,;t t
20602s,@DEPDIR@,$DEPDIR,;t t
20603s,@am__include@,$am__include,;t t
20604s,@am__quote@,$am__quote,;t t
20605s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20606s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20607s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20608s,@CCDEPMODE@,$CCDEPMODE,;t t
20609s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20610s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20611s,@EGREP@,$EGREP,;t t
20612s,@LN_S@,$LN_S,;t t
20613s,@ECHO@,$ECHO,;t t
20614s,@AR@,$AR,;t t
20615s,@ac_ct_AR@,$ac_ct_AR,;t t
20616s,@RANLIB@,$RANLIB,;t t
20617s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20618s,@CPP@,$CPP,;t t
20619s,@CXX@,$CXX,;t t
20620s,@CXXFLAGS@,$CXXFLAGS,;t t
20621s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20622s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20623s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20624s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20625s,@CXXCPP@,$CXXCPP,;t t
20626s,@F77@,$F77,;t t
20627s,@FFLAGS@,$FFLAGS,;t t
20628s,@ac_ct_F77@,$ac_ct_F77,;t t
20629s,@LIBTOOL@,$LIBTOOL,;t t
20630s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20631s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20632s,@XORG_CFLAGS@,$XORG_CFLAGS,;t t
20633s,@XORG_LIBS@,$XORG_LIBS,;t t
20634s,@moduledir@,$moduledir,;t t
20635s,@DRIVER_NAME@,$DRIVER_NAME,;t t
20636s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
20637s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
20638s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
20639s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
20640s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
20641s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
20642s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
20643s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
20644s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
20645s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
20646s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
20647s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
20648s,@LIBOBJS@,$LIBOBJS,;t t
20649s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20650CEOF
20651
20652_ACEOF
20653
20654  cat >>$CONFIG_STATUS <<\_ACEOF
20655  # Split the substitutions into bite-sized pieces for seds with
20656  # small command number limits, like on Digital OSF/1 and HP-UX.
20657  ac_max_sed_lines=48
20658  ac_sed_frag=1 # Number of current file.
20659  ac_beg=1 # First line for current file.
20660  ac_end=$ac_max_sed_lines # Line after last line for current file.
20661  ac_more_lines=:
20662  ac_sed_cmds=
20663  while $ac_more_lines; do
20664    if test $ac_beg -gt 1; then
20665      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20666    else
20667      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20668    fi
20669    if test ! -s $tmp/subs.frag; then
20670      ac_more_lines=false
20671    else
20672      # The purpose of the label and of the branching condition is to
20673      # speed up the sed processing (if there are no `@' at all, there
20674      # is no need to browse any of the substitutions).
20675      # These are the two extra sed commands mentioned above.
20676      (echo ':t
20677  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20678      if test -z "$ac_sed_cmds"; then
20679	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20680      else
20681	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20682      fi
20683      ac_sed_frag=`expr $ac_sed_frag + 1`
20684      ac_beg=$ac_end
20685      ac_end=`expr $ac_end + $ac_max_sed_lines`
20686    fi
20687  done
20688  if test -z "$ac_sed_cmds"; then
20689    ac_sed_cmds=cat
20690  fi
20691fi # test -n "$CONFIG_FILES"
20692
20693_ACEOF
20694cat >>$CONFIG_STATUS <<\_ACEOF
20695for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20696  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20697  case $ac_file in
20698  - | *:- | *:-:* ) # input from stdin
20699	cat >$tmp/stdin
20700	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20701	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20702  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20703	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20704  * )   ac_file_in=$ac_file.in ;;
20705  esac
20706
20707  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20708  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20709$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20710	 X"$ac_file" : 'X\(//\)[^/]' \| \
20711	 X"$ac_file" : 'X\(//\)$' \| \
20712	 X"$ac_file" : 'X\(/\)' \| \
20713	 .     : '\(.\)' 2>/dev/null ||
20714echo X"$ac_file" |
20715    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20716  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20717  	  /^X\(\/\/\)$/{ s//\1/; q; }
20718  	  /^X\(\/\).*/{ s//\1/; q; }
20719  	  s/.*/./; q'`
20720  { if $as_mkdir_p; then
20721    mkdir -p "$ac_dir"
20722  else
20723    as_dir="$ac_dir"
20724    as_dirs=
20725    while test ! -d "$as_dir"; do
20726      as_dirs="$as_dir $as_dirs"
20727      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20728$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20729	 X"$as_dir" : 'X\(//\)[^/]' \| \
20730	 X"$as_dir" : 'X\(//\)$' \| \
20731	 X"$as_dir" : 'X\(/\)' \| \
20732	 .     : '\(.\)' 2>/dev/null ||
20733echo X"$as_dir" |
20734    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20735  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20736  	  /^X\(\/\/\)$/{ s//\1/; q; }
20737  	  /^X\(\/\).*/{ s//\1/; q; }
20738  	  s/.*/./; q'`
20739    done
20740    test ! -n "$as_dirs" || mkdir $as_dirs
20741  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20742echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20743   { (exit 1); exit 1; }; }; }
20744
20745  ac_builddir=.
20746
20747if test "$ac_dir" != .; then
20748  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20749  # A "../" for each directory in $ac_dir_suffix.
20750  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20751else
20752  ac_dir_suffix= ac_top_builddir=
20753fi
20754
20755case $srcdir in
20756  .)  # No --srcdir option.  We are building in place.
20757    ac_srcdir=.
20758    if test -z "$ac_top_builddir"; then
20759       ac_top_srcdir=.
20760    else
20761       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20762    fi ;;
20763  [\\/]* | ?:[\\/]* )  # Absolute path.
20764    ac_srcdir=$srcdir$ac_dir_suffix;
20765    ac_top_srcdir=$srcdir ;;
20766  *) # Relative path.
20767    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20768    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20769esac
20770
20771# Do not use `cd foo && pwd` to compute absolute paths, because
20772# the directories may not exist.
20773case `pwd` in
20774.) ac_abs_builddir="$ac_dir";;
20775*)
20776  case "$ac_dir" in
20777  .) ac_abs_builddir=`pwd`;;
20778  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20779  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20780  esac;;
20781esac
20782case $ac_abs_builddir in
20783.) ac_abs_top_builddir=${ac_top_builddir}.;;
20784*)
20785  case ${ac_top_builddir}. in
20786  .) ac_abs_top_builddir=$ac_abs_builddir;;
20787  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20788  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20789  esac;;
20790esac
20791case $ac_abs_builddir in
20792.) ac_abs_srcdir=$ac_srcdir;;
20793*)
20794  case $ac_srcdir in
20795  .) ac_abs_srcdir=$ac_abs_builddir;;
20796  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20797  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20798  esac;;
20799esac
20800case $ac_abs_builddir in
20801.) ac_abs_top_srcdir=$ac_top_srcdir;;
20802*)
20803  case $ac_top_srcdir in
20804  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20805  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20806  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20807  esac;;
20808esac
20809
20810
20811  case $INSTALL in
20812  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20813  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20814  esac
20815
20816  if test x"$ac_file" != x-; then
20817    { echo "$as_me:$LINENO: creating $ac_file" >&5
20818echo "$as_me: creating $ac_file" >&6;}
20819    rm -f "$ac_file"
20820  fi
20821  # Let's still pretend it is `configure' which instantiates (i.e., don't
20822  # use $as_me), people would be surprised to read:
20823  #    /* config.h.  Generated by config.status.  */
20824  if test x"$ac_file" = x-; then
20825    configure_input=
20826  else
20827    configure_input="$ac_file.  "
20828  fi
20829  configure_input=$configure_input"Generated from `echo $ac_file_in |
20830				     sed 's,.*/,,'` by configure."
20831
20832  # First look for the input files in the build tree, otherwise in the
20833  # src tree.
20834  ac_file_inputs=`IFS=:
20835    for f in $ac_file_in; do
20836      case $f in
20837      -) echo $tmp/stdin ;;
20838      [\\/$]*)
20839	 # Absolute (can't be DOS-style, as IFS=:)
20840	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20841echo "$as_me: error: cannot find input file: $f" >&2;}
20842   { (exit 1); exit 1; }; }
20843	 echo "$f";;
20844      *) # Relative
20845	 if test -f "$f"; then
20846	   # Build tree
20847	   echo "$f"
20848	 elif test -f "$srcdir/$f"; then
20849	   # Source tree
20850	   echo "$srcdir/$f"
20851	 else
20852	   # /dev/null tree
20853	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20854echo "$as_me: error: cannot find input file: $f" >&2;}
20855   { (exit 1); exit 1; }; }
20856	 fi;;
20857      esac
20858    done` || { (exit 1); exit 1; }
20859_ACEOF
20860cat >>$CONFIG_STATUS <<_ACEOF
20861  sed "$ac_vpsub
20862$extrasub
20863_ACEOF
20864cat >>$CONFIG_STATUS <<\_ACEOF
20865:t
20866/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20867s,@configure_input@,$configure_input,;t t
20868s,@srcdir@,$ac_srcdir,;t t
20869s,@abs_srcdir@,$ac_abs_srcdir,;t t
20870s,@top_srcdir@,$ac_top_srcdir,;t t
20871s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20872s,@builddir@,$ac_builddir,;t t
20873s,@abs_builddir@,$ac_abs_builddir,;t t
20874s,@top_builddir@,$ac_top_builddir,;t t
20875s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20876s,@INSTALL@,$ac_INSTALL,;t t
20877" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20878  rm -f $tmp/stdin
20879  if test x"$ac_file" != x-; then
20880    mv $tmp/out $ac_file
20881  else
20882    cat $tmp/out
20883    rm -f $tmp/out
20884  fi
20885
20886done
20887_ACEOF
20888cat >>$CONFIG_STATUS <<\_ACEOF
20889
20890#
20891# CONFIG_HEADER section.
20892#
20893
20894# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20895# NAME is the cpp macro being defined and VALUE is the value it is being given.
20896#
20897# ac_d sets the value in "#define NAME VALUE" lines.
20898ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
20899ac_dB='[	 ].*$,\1#\2'
20900ac_dC=' '
20901ac_dD=',;t'
20902# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20903ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
20904ac_uB='$,\1#\2define\3'
20905ac_uC=' '
20906ac_uD=',;t'
20907
20908for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20909  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20910  case $ac_file in
20911  - | *:- | *:-:* ) # input from stdin
20912	cat >$tmp/stdin
20913	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20914	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20915  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20916	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20917  * )   ac_file_in=$ac_file.in ;;
20918  esac
20919
20920  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20921echo "$as_me: creating $ac_file" >&6;}
20922
20923  # First look for the input files in the build tree, otherwise in the
20924  # src tree.
20925  ac_file_inputs=`IFS=:
20926    for f in $ac_file_in; do
20927      case $f in
20928      -) echo $tmp/stdin ;;
20929      [\\/$]*)
20930	 # Absolute (can't be DOS-style, as IFS=:)
20931	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20932echo "$as_me: error: cannot find input file: $f" >&2;}
20933   { (exit 1); exit 1; }; }
20934	 # Do quote $f, to prevent DOS paths from being IFS'd.
20935	 echo "$f";;
20936      *) # Relative
20937	 if test -f "$f"; then
20938	   # Build tree
20939	   echo "$f"
20940	 elif test -f "$srcdir/$f"; then
20941	   # Source tree
20942	   echo "$srcdir/$f"
20943	 else
20944	   # /dev/null tree
20945	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20946echo "$as_me: error: cannot find input file: $f" >&2;}
20947   { (exit 1); exit 1; }; }
20948	 fi;;
20949      esac
20950    done` || { (exit 1); exit 1; }
20951  # Remove the trailing spaces.
20952  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
20953
20954_ACEOF
20955
20956# Transform confdefs.h into two sed scripts, `conftest.defines' and
20957# `conftest.undefs', that substitutes the proper values into
20958# config.h.in to produce config.h.  The first handles `#define'
20959# templates, and the second `#undef' templates.
20960# And first: Protect against being on the right side of a sed subst in
20961# config.status.  Protect against being in an unquoted here document
20962# in config.status.
20963rm -f conftest.defines conftest.undefs
20964# Using a here document instead of a string reduces the quoting nightmare.
20965# Putting comments in sed scripts is not portable.
20966#
20967# `end' is used to avoid that the second main sed command (meant for
20968# 0-ary CPP macros) applies to n-ary macro definitions.
20969# See the Autoconf documentation for `clear'.
20970cat >confdef2sed.sed <<\_ACEOF
20971s/[\\&,]/\\&/g
20972s,[\\$`],\\&,g
20973t clear
20974: clear
20975s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20976t end
20977s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20978: end
20979_ACEOF
20980# If some macros were called several times there might be several times
20981# the same #defines, which is useless.  Nevertheless, we may not want to
20982# sort them, since we want the *last* AC-DEFINE to be honored.
20983uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20984sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20985rm -f confdef2sed.sed
20986
20987# This sed command replaces #undef with comments.  This is necessary, for
20988# example, in the case of _POSIX_SOURCE, which is predefined and required
20989# on some systems where configure will not decide to define it.
20990cat >>conftest.undefs <<\_ACEOF
20991s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20992_ACEOF
20993
20994# Break up conftest.defines because some shells have a limit on the size
20995# of here documents, and old seds have small limits too (100 cmds).
20996echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20997echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20998echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20999echo '  :' >>$CONFIG_STATUS
21000rm -f conftest.tail
21001while grep . conftest.defines >/dev/null
21002do
21003  # Write a limited-size here document to $tmp/defines.sed.
21004  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21005  # Speed up: don't consider the non `#define' lines.
21006  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21007  # Work around the forget-to-reset-the-flag bug.
21008  echo 't clr' >>$CONFIG_STATUS
21009  echo ': clr' >>$CONFIG_STATUS
21010  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21011  echo 'CEOF
21012  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21013  rm -f $tmp/in
21014  mv $tmp/out $tmp/in
21015' >>$CONFIG_STATUS
21016  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21017  rm -f conftest.defines
21018  mv conftest.tail conftest.defines
21019done
21020rm -f conftest.defines
21021echo '  fi # grep' >>$CONFIG_STATUS
21022echo >>$CONFIG_STATUS
21023
21024# Break up conftest.undefs because some shells have a limit on the size
21025# of here documents, and old seds have small limits too (100 cmds).
21026echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21027rm -f conftest.tail
21028while grep . conftest.undefs >/dev/null
21029do
21030  # Write a limited-size here document to $tmp/undefs.sed.
21031  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21032  # Speed up: don't consider the non `#undef'
21033  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21034  # Work around the forget-to-reset-the-flag bug.
21035  echo 't clr' >>$CONFIG_STATUS
21036  echo ': clr' >>$CONFIG_STATUS
21037  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21038  echo 'CEOF
21039  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21040  rm -f $tmp/in
21041  mv $tmp/out $tmp/in
21042' >>$CONFIG_STATUS
21043  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21044  rm -f conftest.undefs
21045  mv conftest.tail conftest.undefs
21046done
21047rm -f conftest.undefs
21048
21049cat >>$CONFIG_STATUS <<\_ACEOF
21050  # Let's still pretend it is `configure' which instantiates (i.e., don't
21051  # use $as_me), people would be surprised to read:
21052  #    /* config.h.  Generated by config.status.  */
21053  if test x"$ac_file" = x-; then
21054    echo "/* Generated by configure.  */" >$tmp/config.h
21055  else
21056    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21057  fi
21058  cat $tmp/in >>$tmp/config.h
21059  rm -f $tmp/in
21060  if test x"$ac_file" != x-; then
21061    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21062      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21063echo "$as_me: $ac_file is unchanged" >&6;}
21064    else
21065      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21066$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21067	 X"$ac_file" : 'X\(//\)[^/]' \| \
21068	 X"$ac_file" : 'X\(//\)$' \| \
21069	 X"$ac_file" : 'X\(/\)' \| \
21070	 .     : '\(.\)' 2>/dev/null ||
21071echo X"$ac_file" |
21072    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21073  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21074  	  /^X\(\/\/\)$/{ s//\1/; q; }
21075  	  /^X\(\/\).*/{ s//\1/; q; }
21076  	  s/.*/./; q'`
21077      { if $as_mkdir_p; then
21078    mkdir -p "$ac_dir"
21079  else
21080    as_dir="$ac_dir"
21081    as_dirs=
21082    while test ! -d "$as_dir"; do
21083      as_dirs="$as_dir $as_dirs"
21084      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21085$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21086	 X"$as_dir" : 'X\(//\)[^/]' \| \
21087	 X"$as_dir" : 'X\(//\)$' \| \
21088	 X"$as_dir" : 'X\(/\)' \| \
21089	 .     : '\(.\)' 2>/dev/null ||
21090echo X"$as_dir" |
21091    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21092  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21093  	  /^X\(\/\/\)$/{ s//\1/; q; }
21094  	  /^X\(\/\).*/{ s//\1/; q; }
21095  	  s/.*/./; q'`
21096    done
21097    test ! -n "$as_dirs" || mkdir $as_dirs
21098  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21099echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21100   { (exit 1); exit 1; }; }; }
21101
21102      rm -f $ac_file
21103      mv $tmp/config.h $ac_file
21104    fi
21105  else
21106    cat $tmp/config.h
21107    rm -f $tmp/config.h
21108  fi
21109# Compute $ac_file's index in $config_headers.
21110_am_stamp_count=1
21111for _am_header in $config_headers :; do
21112  case $_am_header in
21113    $ac_file | $ac_file:* )
21114      break ;;
21115    * )
21116      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21117  esac
21118done
21119echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21120$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21121	 X$ac_file : 'X\(//\)[^/]' \| \
21122	 X$ac_file : 'X\(//\)$' \| \
21123	 X$ac_file : 'X\(/\)' \| \
21124	 .     : '\(.\)' 2>/dev/null ||
21125echo X$ac_file |
21126    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21127  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21128  	  /^X\(\/\/\)$/{ s//\1/; q; }
21129  	  /^X\(\/\).*/{ s//\1/; q; }
21130  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21131done
21132_ACEOF
21133cat >>$CONFIG_STATUS <<\_ACEOF
21134
21135#
21136# CONFIG_COMMANDS section.
21137#
21138for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21139  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21140  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21141  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21142$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21143	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21144	 X"$ac_dest" : 'X\(//\)$' \| \
21145	 X"$ac_dest" : 'X\(/\)' \| \
21146	 .     : '\(.\)' 2>/dev/null ||
21147echo X"$ac_dest" |
21148    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21149  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21150  	  /^X\(\/\/\)$/{ s//\1/; q; }
21151  	  /^X\(\/\).*/{ s//\1/; q; }
21152  	  s/.*/./; q'`
21153  { if $as_mkdir_p; then
21154    mkdir -p "$ac_dir"
21155  else
21156    as_dir="$ac_dir"
21157    as_dirs=
21158    while test ! -d "$as_dir"; do
21159      as_dirs="$as_dir $as_dirs"
21160      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21161$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21162	 X"$as_dir" : 'X\(//\)[^/]' \| \
21163	 X"$as_dir" : 'X\(//\)$' \| \
21164	 X"$as_dir" : 'X\(/\)' \| \
21165	 .     : '\(.\)' 2>/dev/null ||
21166echo X"$as_dir" |
21167    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21168  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21169  	  /^X\(\/\/\)$/{ s//\1/; q; }
21170  	  /^X\(\/\).*/{ s//\1/; q; }
21171  	  s/.*/./; q'`
21172    done
21173    test ! -n "$as_dirs" || mkdir $as_dirs
21174  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21175echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21176   { (exit 1); exit 1; }; }; }
21177
21178  ac_builddir=.
21179
21180if test "$ac_dir" != .; then
21181  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21182  # A "../" for each directory in $ac_dir_suffix.
21183  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21184else
21185  ac_dir_suffix= ac_top_builddir=
21186fi
21187
21188case $srcdir in
21189  .)  # No --srcdir option.  We are building in place.
21190    ac_srcdir=.
21191    if test -z "$ac_top_builddir"; then
21192       ac_top_srcdir=.
21193    else
21194       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21195    fi ;;
21196  [\\/]* | ?:[\\/]* )  # Absolute path.
21197    ac_srcdir=$srcdir$ac_dir_suffix;
21198    ac_top_srcdir=$srcdir ;;
21199  *) # Relative path.
21200    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21201    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21202esac
21203
21204# Do not use `cd foo && pwd` to compute absolute paths, because
21205# the directories may not exist.
21206case `pwd` in
21207.) ac_abs_builddir="$ac_dir";;
21208*)
21209  case "$ac_dir" in
21210  .) ac_abs_builddir=`pwd`;;
21211  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21212  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21213  esac;;
21214esac
21215case $ac_abs_builddir in
21216.) ac_abs_top_builddir=${ac_top_builddir}.;;
21217*)
21218  case ${ac_top_builddir}. in
21219  .) ac_abs_top_builddir=$ac_abs_builddir;;
21220  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21221  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21222  esac;;
21223esac
21224case $ac_abs_builddir in
21225.) ac_abs_srcdir=$ac_srcdir;;
21226*)
21227  case $ac_srcdir in
21228  .) ac_abs_srcdir=$ac_abs_builddir;;
21229  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21230  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21231  esac;;
21232esac
21233case $ac_abs_builddir in
21234.) ac_abs_top_srcdir=$ac_top_srcdir;;
21235*)
21236  case $ac_top_srcdir in
21237  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21238  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21239  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21240  esac;;
21241esac
21242
21243
21244  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21245echo "$as_me: executing $ac_dest commands" >&6;}
21246  case $ac_dest in
21247    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21248  # Strip MF so we end up with the name of the file.
21249  mf=`echo "$mf" | sed -e 's/:.*$//'`
21250  # Check whether this is an Automake generated Makefile or not.
21251  # We used to match only the files named `Makefile.in', but
21252  # some people rename them; so instead we look at the file content.
21253  # Grep'ing the first line is not enough: some people post-process
21254  # each Makefile.in and add a new line on top of each file to say so.
21255  # So let's grep whole file.
21256  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21257    dirpart=`(dirname "$mf") 2>/dev/null ||
21258$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21259	 X"$mf" : 'X\(//\)[^/]' \| \
21260	 X"$mf" : 'X\(//\)$' \| \
21261	 X"$mf" : 'X\(/\)' \| \
21262	 .     : '\(.\)' 2>/dev/null ||
21263echo X"$mf" |
21264    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21265  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21266  	  /^X\(\/\/\)$/{ s//\1/; q; }
21267  	  /^X\(\/\).*/{ s//\1/; q; }
21268  	  s/.*/./; q'`
21269  else
21270    continue
21271  fi
21272  # Extract the definition of DEPDIR, am__include, and am__quote
21273  # from the Makefile without running `make'.
21274  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21275  test -z "$DEPDIR" && continue
21276  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21277  test -z "am__include" && continue
21278  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21279  # When using ansi2knr, U may be empty or an underscore; expand it
21280  U=`sed -n 's/^U = //p' < "$mf"`
21281  # Find all dependency output files, they are included files with
21282  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21283  # simplest approach to changing $(DEPDIR) to its actual value in the
21284  # expansion.
21285  for file in `sed -n "
21286    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21287       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21288    # Make sure the directory exists.
21289    test -f "$dirpart/$file" && continue
21290    fdir=`(dirname "$file") 2>/dev/null ||
21291$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21292	 X"$file" : 'X\(//\)[^/]' \| \
21293	 X"$file" : 'X\(//\)$' \| \
21294	 X"$file" : 'X\(/\)' \| \
21295	 .     : '\(.\)' 2>/dev/null ||
21296echo X"$file" |
21297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21298  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21299  	  /^X\(\/\/\)$/{ s//\1/; q; }
21300  	  /^X\(\/\).*/{ s//\1/; q; }
21301  	  s/.*/./; q'`
21302    { if $as_mkdir_p; then
21303    mkdir -p $dirpart/$fdir
21304  else
21305    as_dir=$dirpart/$fdir
21306    as_dirs=
21307    while test ! -d "$as_dir"; do
21308      as_dirs="$as_dir $as_dirs"
21309      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21311	 X"$as_dir" : 'X\(//\)[^/]' \| \
21312	 X"$as_dir" : 'X\(//\)$' \| \
21313	 X"$as_dir" : 'X\(/\)' \| \
21314	 .     : '\(.\)' 2>/dev/null ||
21315echo X"$as_dir" |
21316    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21317  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21318  	  /^X\(\/\/\)$/{ s//\1/; q; }
21319  	  /^X\(\/\).*/{ s//\1/; q; }
21320  	  s/.*/./; q'`
21321    done
21322    test ! -n "$as_dirs" || mkdir $as_dirs
21323  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21324echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21325   { (exit 1); exit 1; }; }; }
21326
21327    # echo "creating $dirpart/$file"
21328    echo '# dummy' > "$dirpart/$file"
21329  done
21330done
21331 ;;
21332  esac
21333done
21334_ACEOF
21335
21336cat >>$CONFIG_STATUS <<\_ACEOF
21337
21338{ (exit 0); exit 0; }
21339_ACEOF
21340chmod +x $CONFIG_STATUS
21341ac_clean_files=$ac_clean_files_save
21342
21343
21344# configure is writing to config.log, and then calls config.status.
21345# config.status does its own redirection, appending to config.log.
21346# Unfortunately, on DOS this fails, as config.log is still kept open
21347# by configure, so config.status won't be able to write to it; its
21348# output is simply discarded.  So we exec the FD to /dev/null,
21349# effectively closing config.log, so it can be properly (re)opened and
21350# appended to by config.status.  When coming back to configure, we
21351# need to make the FD available again.
21352if test "$no_create" != yes; then
21353  ac_cs_success=:
21354  ac_config_status_args=
21355  test "$silent" = yes &&
21356    ac_config_status_args="$ac_config_status_args --quiet"
21357  exec 5>/dev/null
21358  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21359  exec 5>>config.log
21360  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21361  # would make configure fail if this is the last instruction.
21362  $ac_cs_success || { (exit 1); exit 1; }
21363fi
21364
21365