1219820Sjeff#! /bin/sh
2219820Sjeff# Guess values for system-dependent variables and create Makefiles.
3219820Sjeff# Generated by GNU Autoconf 2.59 for libibcm 1.0.5.
4219820Sjeff#
5219820Sjeff# Report bugs to <general@lists@openfabrics.org>.
6219820Sjeff#
7219820Sjeff# Copyright (C) 2003 Free Software Foundation, Inc.
8219820Sjeff# This configure script is free software; the Free Software Foundation
9219820Sjeff# gives unlimited permission to copy, distribute and modify it.
10219820Sjeff## --------------------- ##
11219820Sjeff## M4sh Initialization.  ##
12219820Sjeff## --------------------- ##
13219820Sjeff
14219820Sjeff# Be Bourne compatible
15219820Sjeffif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16219820Sjeff  emulate sh
17219820Sjeff  NULLCMD=:
18219820Sjeff  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19219820Sjeff  # is contrary to our usage.  Disable this feature.
20219820Sjeff  alias -g '${1+"$@"}'='"$@"'
21219820Sjeffelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22219820Sjeff  set -o posix
23219820Sjefffi
24219820SjeffDUALCASE=1; export DUALCASE # for MKS sh
25219820Sjeff
26219820Sjeff# Support unset when possible.
27219820Sjeffif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28219820Sjeff  as_unset=unset
29219820Sjeffelse
30219820Sjeff  as_unset=false
31219820Sjefffi
32219820Sjeff
33219820Sjeff
34219820Sjeff# Work around bugs in pre-3.0 UWIN ksh.
35219820Sjeff$as_unset ENV MAIL MAILPATH
36219820SjeffPS1='$ '
37219820SjeffPS2='> '
38219820SjeffPS4='+ '
39219820Sjeff
40219820Sjeff# NLS nuisances.
41219820Sjefffor as_var in \
42219820Sjeff  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43219820Sjeff  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44219820Sjeff  LC_TELEPHONE LC_TIME
45219820Sjeffdo
46219820Sjeff  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47219820Sjeff    eval $as_var=C; export $as_var
48219820Sjeff  else
49219820Sjeff    $as_unset $as_var
50219820Sjeff  fi
51219820Sjeffdone
52219820Sjeff
53219820Sjeff# Required to use basename.
54219820Sjeffif expr a : '\(a\)' >/dev/null 2>&1; then
55219820Sjeff  as_expr=expr
56219820Sjeffelse
57219820Sjeff  as_expr=false
58219820Sjefffi
59219820Sjeff
60219820Sjeffif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61219820Sjeff  as_basename=basename
62219820Sjeffelse
63219820Sjeff  as_basename=false
64219820Sjefffi
65219820Sjeff
66219820Sjeff
67219820Sjeff# Name of the executable.
68219820Sjeffas_me=`$as_basename "$0" ||
69219820Sjeff$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70219820Sjeff	 X"$0" : 'X\(//\)$' \| \
71219820Sjeff	 X"$0" : 'X\(/\)$' \| \
72219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
73219820Sjeffecho X/"$0" |
74219820Sjeff    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75219820Sjeff  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76219820Sjeff  	  /^X\/\(\/\).*/{ s//\1/; q; }
77219820Sjeff  	  s/.*/./; q'`
78219820Sjeff
79219820Sjeff
80219820Sjeff# PATH needs CR, and LINENO needs CR and PATH.
81219820Sjeff# Avoid depending upon Character Ranges.
82219820Sjeffas_cr_letters='abcdefghijklmnopqrstuvwxyz'
83219820Sjeffas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84219820Sjeffas_cr_Letters=$as_cr_letters$as_cr_LETTERS
85219820Sjeffas_cr_digits='0123456789'
86219820Sjeffas_cr_alnum=$as_cr_Letters$as_cr_digits
87219820Sjeff
88219820Sjeff# The user is always right.
89219820Sjeffif test "${PATH_SEPARATOR+set}" != set; then
90219820Sjeff  echo "#! /bin/sh" >conf$$.sh
91219820Sjeff  echo  "exit 0"   >>conf$$.sh
92219820Sjeff  chmod +x conf$$.sh
93219820Sjeff  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94219820Sjeff    PATH_SEPARATOR=';'
95219820Sjeff  else
96219820Sjeff    PATH_SEPARATOR=:
97219820Sjeff  fi
98219820Sjeff  rm -f conf$$.sh
99219820Sjefffi
100219820Sjeff
101219820Sjeff
102219820Sjeff  as_lineno_1=$LINENO
103219820Sjeff  as_lineno_2=$LINENO
104219820Sjeff  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105219820Sjeff  test "x$as_lineno_1" != "x$as_lineno_2" &&
106219820Sjeff  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107219820Sjeff  # Find who we are.  Look in the path if we contain no path at all
108219820Sjeff  # relative or not.
109219820Sjeff  case $0 in
110219820Sjeff    *[\\/]* ) as_myself=$0 ;;
111219820Sjeff    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112219820Sjefffor as_dir in $PATH
113219820Sjeffdo
114219820Sjeff  IFS=$as_save_IFS
115219820Sjeff  test -z "$as_dir" && as_dir=.
116219820Sjeff  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117219820Sjeffdone
118219820Sjeff
119219820Sjeff       ;;
120219820Sjeff  esac
121219820Sjeff  # We did not find ourselves, most probably we were run as `sh COMMAND'
122219820Sjeff  # in which case we are not to be found in the path.
123219820Sjeff  if test "x$as_myself" = x; then
124219820Sjeff    as_myself=$0
125219820Sjeff  fi
126219820Sjeff  if test ! -f "$as_myself"; then
127219820Sjeff    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128219820Sjeff   { (exit 1); exit 1; }; }
129219820Sjeff  fi
130219820Sjeff  case $CONFIG_SHELL in
131219820Sjeff  '')
132219820Sjeff    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133219820Sjefffor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134219820Sjeffdo
135219820Sjeff  IFS=$as_save_IFS
136219820Sjeff  test -z "$as_dir" && as_dir=.
137219820Sjeff  for as_base in sh bash ksh sh5; do
138219820Sjeff	 case $as_dir in
139219820Sjeff	 /*)
140219820Sjeff	   if ("$as_dir/$as_base" -c '
141219820Sjeff  as_lineno_1=$LINENO
142219820Sjeff  as_lineno_2=$LINENO
143219820Sjeff  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144219820Sjeff  test "x$as_lineno_1" != "x$as_lineno_2" &&
145219820Sjeff  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146219820Sjeff	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147219820Sjeff	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148219820Sjeff	     CONFIG_SHELL=$as_dir/$as_base
149219820Sjeff	     export CONFIG_SHELL
150219820Sjeff	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151219820Sjeff	   fi;;
152219820Sjeff	 esac
153219820Sjeff       done
154219820Sjeffdone
155219820Sjeff;;
156219820Sjeff  esac
157219820Sjeff
158219820Sjeff  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159219820Sjeff  # uniformly replaced by the line number.  The first 'sed' inserts a
160219820Sjeff  # line-number line before each line; the second 'sed' does the real
161219820Sjeff  # work.  The second script uses 'N' to pair each line-number line
162219820Sjeff  # with the numbered line, and appends trailing '-' during
163219820Sjeff  # substitution so that $LINENO is not a special case at line end.
164219820Sjeff  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165219820Sjeff  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166219820Sjeff  sed '=' <$as_myself |
167219820Sjeff    sed '
168219820Sjeff      N
169219820Sjeff      s,$,-,
170219820Sjeff      : loop
171219820Sjeff      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172219820Sjeff      t loop
173219820Sjeff      s,-$,,
174219820Sjeff      s,^['$as_cr_digits']*\n,,
175219820Sjeff    ' >$as_me.lineno &&
176219820Sjeff  chmod +x $as_me.lineno ||
177219820Sjeff    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178219820Sjeff   { (exit 1); exit 1; }; }
179219820Sjeff
180219820Sjeff  # Don't try to exec as it changes $[0], causing all sort of problems
181219820Sjeff  # (the dirname of $[0] is not the place where we might find the
182219820Sjeff  # original and so on.  Autoconf is especially sensible to this).
183219820Sjeff  . ./$as_me.lineno
184219820Sjeff  # Exit status is that of the last command.
185219820Sjeff  exit
186219820Sjeff}
187219820Sjeff
188219820Sjeff
189219820Sjeffcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190219820Sjeff  *c*,-n*) ECHO_N= ECHO_C='
191219820Sjeff' ECHO_T='	' ;;
192219820Sjeff  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193219820Sjeff  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194219820Sjeffesac
195219820Sjeff
196219820Sjeffif expr a : '\(a\)' >/dev/null 2>&1; then
197219820Sjeff  as_expr=expr
198219820Sjeffelse
199219820Sjeff  as_expr=false
200219820Sjefffi
201219820Sjeff
202219820Sjeffrm -f conf$$ conf$$.exe conf$$.file
203219820Sjeffecho >conf$$.file
204219820Sjeffif ln -s conf$$.file conf$$ 2>/dev/null; then
205219820Sjeff  # We could just check for DJGPP; but this test a) works b) is more generic
206219820Sjeff  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207219820Sjeff  if test -f conf$$.exe; then
208219820Sjeff    # Don't use ln at all; we don't have any links
209219820Sjeff    as_ln_s='cp -p'
210219820Sjeff  else
211219820Sjeff    as_ln_s='ln -s'
212219820Sjeff  fi
213219820Sjeffelif ln conf$$.file conf$$ 2>/dev/null; then
214219820Sjeff  as_ln_s=ln
215219820Sjeffelse
216219820Sjeff  as_ln_s='cp -p'
217219820Sjefffi
218219820Sjeffrm -f conf$$ conf$$.exe conf$$.file
219219820Sjeff
220219820Sjeffif mkdir -p . 2>/dev/null; then
221219820Sjeff  as_mkdir_p=:
222219820Sjeffelse
223219820Sjeff  test -d ./-p && rmdir ./-p
224219820Sjeff  as_mkdir_p=false
225219820Sjefffi
226219820Sjeff
227219820Sjeffas_executable_p="test -f"
228219820Sjeff
229219820Sjeff# Sed expression to map a string onto a valid CPP name.
230219820Sjeffas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231219820Sjeff
232219820Sjeff# Sed expression to map a string onto a valid variable name.
233219820Sjeffas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234219820Sjeff
235219820Sjeff
236219820Sjeff# IFS
237219820Sjeff# We need space, tab and new line, in precisely that order.
238219820Sjeffas_nl='
239219820Sjeff'
240219820SjeffIFS=" 	$as_nl"
241219820Sjeff
242219820Sjeff# CDPATH.
243219820Sjeff$as_unset CDPATH
244219820Sjeff
245219820Sjeff
246219820Sjeff
247219820Sjeff# Check that we are running under the correct shell.
248219820SjeffSHELL=${CONFIG_SHELL-/bin/sh}
249219820Sjeff
250219820Sjeffcase X$ECHO in
251219820SjeffX*--fallback-echo)
252219820Sjeff  # Remove one level of quotation (which was required for Make).
253219820Sjeff  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254219820Sjeff  ;;
255219820Sjeffesac
256219820Sjeff
257219820Sjeffecho=${ECHO-echo}
258219820Sjeffif test "X$1" = X--no-reexec; then
259219820Sjeff  # Discard the --no-reexec flag, and continue.
260219820Sjeff  shift
261219820Sjeffelif test "X$1" = X--fallback-echo; then
262219820Sjeff  # Avoid inline document here, it may be left over
263219820Sjeff  :
264219820Sjeffelif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265219820Sjeff  # Yippee, $echo works!
266219820Sjeff  :
267219820Sjeffelse
268219820Sjeff  # Restart under the correct shell.
269219820Sjeff  exec $SHELL "$0" --no-reexec ${1+"$@"}
270219820Sjefffi
271219820Sjeff
272219820Sjeffif test "X$1" = X--fallback-echo; then
273219820Sjeff  # used as fallback echo
274219820Sjeff  shift
275219820Sjeff  cat <<EOF
276219820Sjeff$*
277219820SjeffEOF
278219820Sjeff  exit 0
279219820Sjefffi
280219820Sjeff
281219820Sjeff# The HP-UX ksh and POSIX shell print the target directory to stdout
282219820Sjeff# if CDPATH is set.
283219820Sjeff(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284219820Sjeff
285219820Sjeffif test -z "$ECHO"; then
286219820Sjeffif test "X${echo_test_string+set}" != Xset; then
287219820Sjeff# find a string as large as possible, as long as the shell can cope with it
288219820Sjeff  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289219820Sjeff    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290219820Sjeff    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291219820Sjeff       echo_test_string=`eval $cmd` &&
292219820Sjeff       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293219820Sjeff    then
294219820Sjeff      break
295219820Sjeff    fi
296219820Sjeff  done
297219820Sjefffi
298219820Sjeff
299219820Sjeffif test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300219820Sjeff   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301219820Sjeff   test "X$echo_testing_string" = "X$echo_test_string"; then
302219820Sjeff  :
303219820Sjeffelse
304219820Sjeff  # The Solaris, AIX, and Digital Unix default echo programs unquote
305219820Sjeff  # backslashes.  This makes it impossible to quote backslashes using
306219820Sjeff  #   echo "$something" | sed 's/\\/\\\\/g'
307219820Sjeff  #
308219820Sjeff  # So, first we look for a working echo in the user's PATH.
309219820Sjeff
310219820Sjeff  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311219820Sjeff  for dir in $PATH /usr/ucb; do
312219820Sjeff    IFS="$lt_save_ifs"
313219820Sjeff    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314219820Sjeff       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315219820Sjeff       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316219820Sjeff       test "X$echo_testing_string" = "X$echo_test_string"; then
317219820Sjeff      echo="$dir/echo"
318219820Sjeff      break
319219820Sjeff    fi
320219820Sjeff  done
321219820Sjeff  IFS="$lt_save_ifs"
322219820Sjeff
323219820Sjeff  if test "X$echo" = Xecho; then
324219820Sjeff    # We didn't find a better echo, so look for alternatives.
325219820Sjeff    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326219820Sjeff       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327219820Sjeff       test "X$echo_testing_string" = "X$echo_test_string"; then
328219820Sjeff      # This shell has a builtin print -r that does the trick.
329219820Sjeff      echo='print -r'
330219820Sjeff    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331219820Sjeff	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332219820Sjeff      # If we have ksh, try running configure again with it.
333219820Sjeff      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334219820Sjeff      export ORIGINAL_CONFIG_SHELL
335219820Sjeff      CONFIG_SHELL=/bin/ksh
336219820Sjeff      export CONFIG_SHELL
337219820Sjeff      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338219820Sjeff    else
339219820Sjeff      # Try using printf.
340219820Sjeff      echo='printf %s\n'
341219820Sjeff      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342219820Sjeff	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343219820Sjeff	 test "X$echo_testing_string" = "X$echo_test_string"; then
344219820Sjeff	# Cool, printf works
345219820Sjeff	:
346219820Sjeff      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347219820Sjeff	   test "X$echo_testing_string" = 'X\t' &&
348219820Sjeff	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349219820Sjeff	   test "X$echo_testing_string" = "X$echo_test_string"; then
350219820Sjeff	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351219820Sjeff	export CONFIG_SHELL
352219820Sjeff	SHELL="$CONFIG_SHELL"
353219820Sjeff	export SHELL
354219820Sjeff	echo="$CONFIG_SHELL $0 --fallback-echo"
355219820Sjeff      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356219820Sjeff	   test "X$echo_testing_string" = 'X\t' &&
357219820Sjeff	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358219820Sjeff	   test "X$echo_testing_string" = "X$echo_test_string"; then
359219820Sjeff	echo="$CONFIG_SHELL $0 --fallback-echo"
360219820Sjeff      else
361219820Sjeff	# maybe with a smaller string...
362219820Sjeff	prev=:
363219820Sjeff
364219820Sjeff	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365219820Sjeff	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366219820Sjeff	  then
367219820Sjeff	    break
368219820Sjeff	  fi
369219820Sjeff	  prev="$cmd"
370219820Sjeff	done
371219820Sjeff
372219820Sjeff	if test "$prev" != 'sed 50q "$0"'; then
373219820Sjeff	  echo_test_string=`eval $prev`
374219820Sjeff	  export echo_test_string
375219820Sjeff	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376219820Sjeff	else
377219820Sjeff	  # Oops.  We lost completely, so just stick with echo.
378219820Sjeff	  echo=echo
379219820Sjeff	fi
380219820Sjeff      fi
381219820Sjeff    fi
382219820Sjeff  fi
383219820Sjefffi
384219820Sjefffi
385219820Sjeff
386219820Sjeff# Copy echo and quote the copy suitably for passing to libtool from
387219820Sjeff# the Makefile, instead of quoting the original, which is used later.
388219820SjeffECHO=$echo
389219820Sjeffif test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390219820Sjeff   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391219820Sjefffi
392219820Sjeff
393219820Sjeff
394219820Sjeff
395219820Sjeff
396219820Sjefftagnames=${tagnames+${tagnames},}CXX
397219820Sjeff
398219820Sjefftagnames=${tagnames+${tagnames},}F77
399219820Sjeff
400219820Sjeff# Name of the host.
401219820Sjeff# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402219820Sjeff# so uname gets run too.
403219820Sjeffac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404219820Sjeff
405219820Sjeffexec 6>&1
406219820Sjeff
407219820Sjeff#
408219820Sjeff# Initializations.
409219820Sjeff#
410219820Sjeffac_default_prefix=/usr/local
411219820Sjeffac_config_libobj_dir=.
412219820Sjeffcross_compiling=no
413219820Sjeffsubdirs=
414219820SjeffMFLAGS=
415219820SjeffMAKEFLAGS=
416219820SjeffSHELL=${CONFIG_SHELL-/bin/sh}
417219820Sjeff
418219820Sjeff# Maximum number of lines to put in a shell here document.
419219820Sjeff# This variable seems obsolete.  It should probably be removed, and
420219820Sjeff# only ac_max_sed_lines should be used.
421219820Sjeff: ${ac_max_here_lines=38}
422219820Sjeff
423219820Sjeff# Identity of this package.
424219820SjeffPACKAGE_NAME='libibcm'
425219820SjeffPACKAGE_TARNAME='libibcm'
426219820SjeffPACKAGE_VERSION='1.0.5'
427219820SjeffPACKAGE_STRING='libibcm 1.0.5'
428219820SjeffPACKAGE_BUGREPORT='general@lists@openfabrics.org'
429219820Sjeff
430219820Sjeffac_unique_file="src/cm.c"
431219820Sjeff# Factoring default headers for most tests.
432219820Sjeffac_includes_default="\
433219820Sjeff#include <stdio.h>
434219820Sjeff#if HAVE_SYS_TYPES_H
435219820Sjeff# include <sys/types.h>
436219820Sjeff#endif
437219820Sjeff#if HAVE_SYS_STAT_H
438219820Sjeff# include <sys/stat.h>
439219820Sjeff#endif
440219820Sjeff#if STDC_HEADERS
441219820Sjeff# include <stdlib.h>
442219820Sjeff# include <stddef.h>
443219820Sjeff#else
444219820Sjeff# if HAVE_STDLIB_H
445219820Sjeff#  include <stdlib.h>
446219820Sjeff# endif
447219820Sjeff#endif
448219820Sjeff#if HAVE_STRING_H
449219820Sjeff# if !STDC_HEADERS && HAVE_MEMORY_H
450219820Sjeff#  include <memory.h>
451219820Sjeff# endif
452219820Sjeff# include <string.h>
453219820Sjeff#endif
454219820Sjeff#if HAVE_STRINGS_H
455219820Sjeff# include <strings.h>
456219820Sjeff#endif
457219820Sjeff#if HAVE_INTTYPES_H
458219820Sjeff# include <inttypes.h>
459219820Sjeff#else
460219820Sjeff# if HAVE_STDINT_H
461219820Sjeff#  include <stdint.h>
462219820Sjeff# endif
463219820Sjeff#endif
464219820Sjeff#if HAVE_UNISTD_H
465219820Sjeff# include <unistd.h>
466219820Sjeff#endif"
467219820Sjeff
468219820Sjeffac_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 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 HAVE_LD_VERSION_SCRIPT_TRUE HAVE_LD_VERSION_SCRIPT_FALSE LIBOBJS LTLIBOBJS'
469219820Sjeffac_subst_files=''
470219820Sjeff
471219820Sjeff# Initialize some variables set by options.
472219820Sjeffac_init_help=
473219820Sjeffac_init_version=false
474219820Sjeff# The variables have the same names as the options, with
475219820Sjeff# dashes changed to underlines.
476219820Sjeffcache_file=/dev/null
477219820Sjeffexec_prefix=NONE
478219820Sjeffno_create=
479219820Sjeffno_recursion=
480219820Sjeffprefix=NONE
481219820Sjeffprogram_prefix=NONE
482219820Sjeffprogram_suffix=NONE
483219820Sjeffprogram_transform_name=s,x,x,
484219820Sjeffsilent=
485219820Sjeffsite=
486219820Sjeffsrcdir=
487219820Sjeffverbose=
488219820Sjeffx_includes=NONE
489219820Sjeffx_libraries=NONE
490219820Sjeff
491219820Sjeff# Installation directory options.
492219820Sjeff# These are left unexpanded so users can "make install exec_prefix=/foo"
493219820Sjeff# and all the variables that are supposed to be based on exec_prefix
494219820Sjeff# by default will actually change.
495219820Sjeff# Use braces instead of parens because sh, perl, etc. also accept them.
496219820Sjeffbindir='${exec_prefix}/bin'
497219820Sjeffsbindir='${exec_prefix}/sbin'
498219820Sjefflibexecdir='${exec_prefix}/libexec'
499219820Sjeffdatadir='${prefix}/share'
500219820Sjeffsysconfdir='${prefix}/etc'
501219820Sjeffsharedstatedir='${prefix}/com'
502219820Sjefflocalstatedir='${prefix}/var'
503219820Sjefflibdir='${exec_prefix}/lib'
504219820Sjeffincludedir='${prefix}/include'
505219820Sjeffoldincludedir='/usr/include'
506219820Sjeffinfodir='${prefix}/info'
507219820Sjeffmandir='${prefix}/man'
508219820Sjeff
509219820Sjeffac_prev=
510219820Sjefffor ac_option
511219820Sjeffdo
512219820Sjeff  # If the previous option needs an argument, assign it.
513219820Sjeff  if test -n "$ac_prev"; then
514219820Sjeff    eval "$ac_prev=\$ac_option"
515219820Sjeff    ac_prev=
516219820Sjeff    continue
517219820Sjeff  fi
518219820Sjeff
519219820Sjeff  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520219820Sjeff
521219820Sjeff  # Accept the important Cygnus configure options, so we can diagnose typos.
522219820Sjeff
523219820Sjeff  case $ac_option in
524219820Sjeff
525219820Sjeff  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526219820Sjeff    ac_prev=bindir ;;
527219820Sjeff  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528219820Sjeff    bindir=$ac_optarg ;;
529219820Sjeff
530219820Sjeff  -build | --build | --buil | --bui | --bu)
531219820Sjeff    ac_prev=build_alias ;;
532219820Sjeff  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533219820Sjeff    build_alias=$ac_optarg ;;
534219820Sjeff
535219820Sjeff  -cache-file | --cache-file | --cache-fil | --cache-fi \
536219820Sjeff  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537219820Sjeff    ac_prev=cache_file ;;
538219820Sjeff  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539219820Sjeff  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540219820Sjeff    cache_file=$ac_optarg ;;
541219820Sjeff
542219820Sjeff  --config-cache | -C)
543219820Sjeff    cache_file=config.cache ;;
544219820Sjeff
545219820Sjeff  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546219820Sjeff    ac_prev=datadir ;;
547219820Sjeff  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548219820Sjeff  | --da=*)
549219820Sjeff    datadir=$ac_optarg ;;
550219820Sjeff
551219820Sjeff  -disable-* | --disable-*)
552219820Sjeff    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553219820Sjeff    # Reject names that are not valid shell variable names.
554219820Sjeff    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555219820Sjeff      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556219820Sjeff   { (exit 1); exit 1; }; }
557219820Sjeff    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558219820Sjeff    eval "enable_$ac_feature=no" ;;
559219820Sjeff
560219820Sjeff  -enable-* | --enable-*)
561219820Sjeff    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562219820Sjeff    # Reject names that are not valid shell variable names.
563219820Sjeff    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564219820Sjeff      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565219820Sjeff   { (exit 1); exit 1; }; }
566219820Sjeff    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567219820Sjeff    case $ac_option in
568219820Sjeff      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569219820Sjeff      *) ac_optarg=yes ;;
570219820Sjeff    esac
571219820Sjeff    eval "enable_$ac_feature='$ac_optarg'" ;;
572219820Sjeff
573219820Sjeff  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574219820Sjeff  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575219820Sjeff  | --exec | --exe | --ex)
576219820Sjeff    ac_prev=exec_prefix ;;
577219820Sjeff  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578219820Sjeff  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579219820Sjeff  | --exec=* | --exe=* | --ex=*)
580219820Sjeff    exec_prefix=$ac_optarg ;;
581219820Sjeff
582219820Sjeff  -gas | --gas | --ga | --g)
583219820Sjeff    # Obsolete; use --with-gas.
584219820Sjeff    with_gas=yes ;;
585219820Sjeff
586219820Sjeff  -help | --help | --hel | --he | -h)
587219820Sjeff    ac_init_help=long ;;
588219820Sjeff  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589219820Sjeff    ac_init_help=recursive ;;
590219820Sjeff  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591219820Sjeff    ac_init_help=short ;;
592219820Sjeff
593219820Sjeff  -host | --host | --hos | --ho)
594219820Sjeff    ac_prev=host_alias ;;
595219820Sjeff  -host=* | --host=* | --hos=* | --ho=*)
596219820Sjeff    host_alias=$ac_optarg ;;
597219820Sjeff
598219820Sjeff  -includedir | --includedir | --includedi | --included | --include \
599219820Sjeff  | --includ | --inclu | --incl | --inc)
600219820Sjeff    ac_prev=includedir ;;
601219820Sjeff  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602219820Sjeff  | --includ=* | --inclu=* | --incl=* | --inc=*)
603219820Sjeff    includedir=$ac_optarg ;;
604219820Sjeff
605219820Sjeff  -infodir | --infodir | --infodi | --infod | --info | --inf)
606219820Sjeff    ac_prev=infodir ;;
607219820Sjeff  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608219820Sjeff    infodir=$ac_optarg ;;
609219820Sjeff
610219820Sjeff  -libdir | --libdir | --libdi | --libd)
611219820Sjeff    ac_prev=libdir ;;
612219820Sjeff  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613219820Sjeff    libdir=$ac_optarg ;;
614219820Sjeff
615219820Sjeff  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616219820Sjeff  | --libexe | --libex | --libe)
617219820Sjeff    ac_prev=libexecdir ;;
618219820Sjeff  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619219820Sjeff  | --libexe=* | --libex=* | --libe=*)
620219820Sjeff    libexecdir=$ac_optarg ;;
621219820Sjeff
622219820Sjeff  -localstatedir | --localstatedir | --localstatedi | --localstated \
623219820Sjeff  | --localstate | --localstat | --localsta | --localst \
624219820Sjeff  | --locals | --local | --loca | --loc | --lo)
625219820Sjeff    ac_prev=localstatedir ;;
626219820Sjeff  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627219820Sjeff  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628219820Sjeff  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629219820Sjeff    localstatedir=$ac_optarg ;;
630219820Sjeff
631219820Sjeff  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632219820Sjeff    ac_prev=mandir ;;
633219820Sjeff  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634219820Sjeff    mandir=$ac_optarg ;;
635219820Sjeff
636219820Sjeff  -nfp | --nfp | --nf)
637219820Sjeff    # Obsolete; use --without-fp.
638219820Sjeff    with_fp=no ;;
639219820Sjeff
640219820Sjeff  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641219820Sjeff  | --no-cr | --no-c | -n)
642219820Sjeff    no_create=yes ;;
643219820Sjeff
644219820Sjeff  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645219820Sjeff  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646219820Sjeff    no_recursion=yes ;;
647219820Sjeff
648219820Sjeff  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649219820Sjeff  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650219820Sjeff  | --oldin | --oldi | --old | --ol | --o)
651219820Sjeff    ac_prev=oldincludedir ;;
652219820Sjeff  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653219820Sjeff  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654219820Sjeff  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655219820Sjeff    oldincludedir=$ac_optarg ;;
656219820Sjeff
657219820Sjeff  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658219820Sjeff    ac_prev=prefix ;;
659219820Sjeff  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660219820Sjeff    prefix=$ac_optarg ;;
661219820Sjeff
662219820Sjeff  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663219820Sjeff  | --program-pre | --program-pr | --program-p)
664219820Sjeff    ac_prev=program_prefix ;;
665219820Sjeff  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666219820Sjeff  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667219820Sjeff    program_prefix=$ac_optarg ;;
668219820Sjeff
669219820Sjeff  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670219820Sjeff  | --program-suf | --program-su | --program-s)
671219820Sjeff    ac_prev=program_suffix ;;
672219820Sjeff  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673219820Sjeff  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674219820Sjeff    program_suffix=$ac_optarg ;;
675219820Sjeff
676219820Sjeff  -program-transform-name | --program-transform-name \
677219820Sjeff  | --program-transform-nam | --program-transform-na \
678219820Sjeff  | --program-transform-n | --program-transform- \
679219820Sjeff  | --program-transform | --program-transfor \
680219820Sjeff  | --program-transfo | --program-transf \
681219820Sjeff  | --program-trans | --program-tran \
682219820Sjeff  | --progr-tra | --program-tr | --program-t)
683219820Sjeff    ac_prev=program_transform_name ;;
684219820Sjeff  -program-transform-name=* | --program-transform-name=* \
685219820Sjeff  | --program-transform-nam=* | --program-transform-na=* \
686219820Sjeff  | --program-transform-n=* | --program-transform-=* \
687219820Sjeff  | --program-transform=* | --program-transfor=* \
688219820Sjeff  | --program-transfo=* | --program-transf=* \
689219820Sjeff  | --program-trans=* | --program-tran=* \
690219820Sjeff  | --progr-tra=* | --program-tr=* | --program-t=*)
691219820Sjeff    program_transform_name=$ac_optarg ;;
692219820Sjeff
693219820Sjeff  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694219820Sjeff  | -silent | --silent | --silen | --sile | --sil)
695219820Sjeff    silent=yes ;;
696219820Sjeff
697219820Sjeff  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698219820Sjeff    ac_prev=sbindir ;;
699219820Sjeff  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700219820Sjeff  | --sbi=* | --sb=*)
701219820Sjeff    sbindir=$ac_optarg ;;
702219820Sjeff
703219820Sjeff  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704219820Sjeff  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705219820Sjeff  | --sharedst | --shareds | --shared | --share | --shar \
706219820Sjeff  | --sha | --sh)
707219820Sjeff    ac_prev=sharedstatedir ;;
708219820Sjeff  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709219820Sjeff  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710219820Sjeff  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711219820Sjeff  | --sha=* | --sh=*)
712219820Sjeff    sharedstatedir=$ac_optarg ;;
713219820Sjeff
714219820Sjeff  -site | --site | --sit)
715219820Sjeff    ac_prev=site ;;
716219820Sjeff  -site=* | --site=* | --sit=*)
717219820Sjeff    site=$ac_optarg ;;
718219820Sjeff
719219820Sjeff  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720219820Sjeff    ac_prev=srcdir ;;
721219820Sjeff  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722219820Sjeff    srcdir=$ac_optarg ;;
723219820Sjeff
724219820Sjeff  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725219820Sjeff  | --syscon | --sysco | --sysc | --sys | --sy)
726219820Sjeff    ac_prev=sysconfdir ;;
727219820Sjeff  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728219820Sjeff  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729219820Sjeff    sysconfdir=$ac_optarg ;;
730219820Sjeff
731219820Sjeff  -target | --target | --targe | --targ | --tar | --ta | --t)
732219820Sjeff    ac_prev=target_alias ;;
733219820Sjeff  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734219820Sjeff    target_alias=$ac_optarg ;;
735219820Sjeff
736219820Sjeff  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737219820Sjeff    verbose=yes ;;
738219820Sjeff
739219820Sjeff  -version | --version | --versio | --versi | --vers | -V)
740219820Sjeff    ac_init_version=: ;;
741219820Sjeff
742219820Sjeff  -with-* | --with-*)
743219820Sjeff    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744219820Sjeff    # Reject names that are not valid shell variable names.
745219820Sjeff    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746219820Sjeff      { echo "$as_me: error: invalid package name: $ac_package" >&2
747219820Sjeff   { (exit 1); exit 1; }; }
748219820Sjeff    ac_package=`echo $ac_package| sed 's/-/_/g'`
749219820Sjeff    case $ac_option in
750219820Sjeff      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751219820Sjeff      *) ac_optarg=yes ;;
752219820Sjeff    esac
753219820Sjeff    eval "with_$ac_package='$ac_optarg'" ;;
754219820Sjeff
755219820Sjeff  -without-* | --without-*)
756219820Sjeff    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757219820Sjeff    # Reject names that are not valid shell variable names.
758219820Sjeff    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759219820Sjeff      { echo "$as_me: error: invalid package name: $ac_package" >&2
760219820Sjeff   { (exit 1); exit 1; }; }
761219820Sjeff    ac_package=`echo $ac_package | sed 's/-/_/g'`
762219820Sjeff    eval "with_$ac_package=no" ;;
763219820Sjeff
764219820Sjeff  --x)
765219820Sjeff    # Obsolete; use --with-x.
766219820Sjeff    with_x=yes ;;
767219820Sjeff
768219820Sjeff  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769219820Sjeff  | --x-incl | --x-inc | --x-in | --x-i)
770219820Sjeff    ac_prev=x_includes ;;
771219820Sjeff  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772219820Sjeff  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773219820Sjeff    x_includes=$ac_optarg ;;
774219820Sjeff
775219820Sjeff  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776219820Sjeff  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777219820Sjeff    ac_prev=x_libraries ;;
778219820Sjeff  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779219820Sjeff  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780219820Sjeff    x_libraries=$ac_optarg ;;
781219820Sjeff
782219820Sjeff  -*) { echo "$as_me: error: unrecognized option: $ac_option
783219820SjeffTry \`$0 --help' for more information." >&2
784219820Sjeff   { (exit 1); exit 1; }; }
785219820Sjeff    ;;
786219820Sjeff
787219820Sjeff  *=*)
788219820Sjeff    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789219820Sjeff    # Reject names that are not valid shell variable names.
790219820Sjeff    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791219820Sjeff      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792219820Sjeff   { (exit 1); exit 1; }; }
793219820Sjeff    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794219820Sjeff    eval "$ac_envvar='$ac_optarg'"
795219820Sjeff    export $ac_envvar ;;
796219820Sjeff
797219820Sjeff  *)
798219820Sjeff    # FIXME: should be removed in autoconf 3.0.
799219820Sjeff    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800219820Sjeff    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801219820Sjeff      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802219820Sjeff    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803219820Sjeff    ;;
804219820Sjeff
805219820Sjeff  esac
806219820Sjeffdone
807219820Sjeff
808219820Sjeffif test -n "$ac_prev"; then
809219820Sjeff  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810219820Sjeff  { echo "$as_me: error: missing argument to $ac_option" >&2
811219820Sjeff   { (exit 1); exit 1; }; }
812219820Sjefffi
813219820Sjeff
814219820Sjeff# Be sure to have absolute paths.
815219820Sjefffor ac_var in exec_prefix prefix
816219820Sjeffdo
817219820Sjeff  eval ac_val=$`echo $ac_var`
818219820Sjeff  case $ac_val in
819219820Sjeff    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820219820Sjeff    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821219820Sjeff   { (exit 1); exit 1; }; };;
822219820Sjeff  esac
823219820Sjeffdone
824219820Sjeff
825219820Sjeff# Be sure to have absolute paths.
826219820Sjefffor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827219820Sjeff	      localstatedir libdir includedir oldincludedir infodir mandir
828219820Sjeffdo
829219820Sjeff  eval ac_val=$`echo $ac_var`
830219820Sjeff  case $ac_val in
831219820Sjeff    [\\/$]* | ?:[\\/]* ) ;;
832219820Sjeff    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833219820Sjeff   { (exit 1); exit 1; }; };;
834219820Sjeff  esac
835219820Sjeffdone
836219820Sjeff
837219820Sjeff# There might be people who depend on the old broken behavior: `$host'
838219820Sjeff# used to hold the argument of --host etc.
839219820Sjeff# FIXME: To remove some day.
840219820Sjeffbuild=$build_alias
841219820Sjeffhost=$host_alias
842219820Sjefftarget=$target_alias
843219820Sjeff
844219820Sjeff# FIXME: To remove some day.
845219820Sjeffif test "x$host_alias" != x; then
846219820Sjeff  if test "x$build_alias" = x; then
847219820Sjeff    cross_compiling=maybe
848219820Sjeff    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849219820Sjeff    If a cross compiler is detected then cross compile mode will be used." >&2
850219820Sjeff  elif test "x$build_alias" != "x$host_alias"; then
851219820Sjeff    cross_compiling=yes
852219820Sjeff  fi
853219820Sjefffi
854219820Sjeff
855219820Sjeffac_tool_prefix=
856219820Sjefftest -n "$host_alias" && ac_tool_prefix=$host_alias-
857219820Sjeff
858219820Sjefftest "$silent" = yes && exec 6>/dev/null
859219820Sjeff
860219820Sjeff
861219820Sjeff# Find the source files, if location was not specified.
862219820Sjeffif test -z "$srcdir"; then
863219820Sjeff  ac_srcdir_defaulted=yes
864219820Sjeff  # Try the directory containing this script, then its parent.
865219820Sjeff  ac_confdir=`(dirname "$0") 2>/dev/null ||
866219820Sjeff$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867219820Sjeff	 X"$0" : 'X\(//\)[^/]' \| \
868219820Sjeff	 X"$0" : 'X\(//\)$' \| \
869219820Sjeff	 X"$0" : 'X\(/\)' \| \
870219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
871219820Sjeffecho X"$0" |
872219820Sjeff    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873219820Sjeff  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874219820Sjeff  	  /^X\(\/\/\)$/{ s//\1/; q; }
875219820Sjeff  	  /^X\(\/\).*/{ s//\1/; q; }
876219820Sjeff  	  s/.*/./; q'`
877219820Sjeff  srcdir=$ac_confdir
878219820Sjeff  if test ! -r $srcdir/$ac_unique_file; then
879219820Sjeff    srcdir=..
880219820Sjeff  fi
881219820Sjeffelse
882219820Sjeff  ac_srcdir_defaulted=no
883219820Sjefffi
884219820Sjeffif test ! -r $srcdir/$ac_unique_file; then
885219820Sjeff  if test "$ac_srcdir_defaulted" = yes; then
886219820Sjeff    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887219820Sjeff   { (exit 1); exit 1; }; }
888219820Sjeff  else
889219820Sjeff    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890219820Sjeff   { (exit 1); exit 1; }; }
891219820Sjeff  fi
892219820Sjefffi
893219820Sjeff(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894219820Sjeff  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895219820Sjeff   { (exit 1); exit 1; }; }
896219820Sjeffsrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897219820Sjeffac_env_build_alias_set=${build_alias+set}
898219820Sjeffac_env_build_alias_value=$build_alias
899219820Sjeffac_cv_env_build_alias_set=${build_alias+set}
900219820Sjeffac_cv_env_build_alias_value=$build_alias
901219820Sjeffac_env_host_alias_set=${host_alias+set}
902219820Sjeffac_env_host_alias_value=$host_alias
903219820Sjeffac_cv_env_host_alias_set=${host_alias+set}
904219820Sjeffac_cv_env_host_alias_value=$host_alias
905219820Sjeffac_env_target_alias_set=${target_alias+set}
906219820Sjeffac_env_target_alias_value=$target_alias
907219820Sjeffac_cv_env_target_alias_set=${target_alias+set}
908219820Sjeffac_cv_env_target_alias_value=$target_alias
909219820Sjeffac_env_CC_set=${CC+set}
910219820Sjeffac_env_CC_value=$CC
911219820Sjeffac_cv_env_CC_set=${CC+set}
912219820Sjeffac_cv_env_CC_value=$CC
913219820Sjeffac_env_CFLAGS_set=${CFLAGS+set}
914219820Sjeffac_env_CFLAGS_value=$CFLAGS
915219820Sjeffac_cv_env_CFLAGS_set=${CFLAGS+set}
916219820Sjeffac_cv_env_CFLAGS_value=$CFLAGS
917219820Sjeffac_env_LDFLAGS_set=${LDFLAGS+set}
918219820Sjeffac_env_LDFLAGS_value=$LDFLAGS
919219820Sjeffac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920219820Sjeffac_cv_env_LDFLAGS_value=$LDFLAGS
921219820Sjeffac_env_CPPFLAGS_set=${CPPFLAGS+set}
922219820Sjeffac_env_CPPFLAGS_value=$CPPFLAGS
923219820Sjeffac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924219820Sjeffac_cv_env_CPPFLAGS_value=$CPPFLAGS
925219820Sjeffac_env_CPP_set=${CPP+set}
926219820Sjeffac_env_CPP_value=$CPP
927219820Sjeffac_cv_env_CPP_set=${CPP+set}
928219820Sjeffac_cv_env_CPP_value=$CPP
929219820Sjeffac_env_CXX_set=${CXX+set}
930219820Sjeffac_env_CXX_value=$CXX
931219820Sjeffac_cv_env_CXX_set=${CXX+set}
932219820Sjeffac_cv_env_CXX_value=$CXX
933219820Sjeffac_env_CXXFLAGS_set=${CXXFLAGS+set}
934219820Sjeffac_env_CXXFLAGS_value=$CXXFLAGS
935219820Sjeffac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936219820Sjeffac_cv_env_CXXFLAGS_value=$CXXFLAGS
937219820Sjeffac_env_CXXCPP_set=${CXXCPP+set}
938219820Sjeffac_env_CXXCPP_value=$CXXCPP
939219820Sjeffac_cv_env_CXXCPP_set=${CXXCPP+set}
940219820Sjeffac_cv_env_CXXCPP_value=$CXXCPP
941219820Sjeffac_env_F77_set=${F77+set}
942219820Sjeffac_env_F77_value=$F77
943219820Sjeffac_cv_env_F77_set=${F77+set}
944219820Sjeffac_cv_env_F77_value=$F77
945219820Sjeffac_env_FFLAGS_set=${FFLAGS+set}
946219820Sjeffac_env_FFLAGS_value=$FFLAGS
947219820Sjeffac_cv_env_FFLAGS_set=${FFLAGS+set}
948219820Sjeffac_cv_env_FFLAGS_value=$FFLAGS
949219820Sjeff
950219820Sjeff#
951219820Sjeff# Report the --help message.
952219820Sjeff#
953219820Sjeffif test "$ac_init_help" = "long"; then
954219820Sjeff  # Omit some internal or obsolete options to make the list less imposing.
955219820Sjeff  # This message is too long to be a string in the A/UX 3.1 sh.
956219820Sjeff  cat <<_ACEOF
957219820Sjeff\`configure' configures libibcm 1.0.5 to adapt to many kinds of systems.
958219820Sjeff
959219820SjeffUsage: $0 [OPTION]... [VAR=VALUE]...
960219820Sjeff
961219820SjeffTo assign environment variables (e.g., CC, CFLAGS...), specify them as
962219820SjeffVAR=VALUE.  See below for descriptions of some of the useful variables.
963219820Sjeff
964219820SjeffDefaults for the options are specified in brackets.
965219820Sjeff
966219820SjeffConfiguration:
967219820Sjeff  -h, --help              display this help and exit
968219820Sjeff      --help=short        display options specific to this package
969219820Sjeff      --help=recursive    display the short help of all the included packages
970219820Sjeff  -V, --version           display version information and exit
971219820Sjeff  -q, --quiet, --silent   do not print \`checking...' messages
972219820Sjeff      --cache-file=FILE   cache test results in FILE [disabled]
973219820Sjeff  -C, --config-cache      alias for \`--cache-file=config.cache'
974219820Sjeff  -n, --no-create         do not create output files
975219820Sjeff      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976219820Sjeff
977219820Sjeff_ACEOF
978219820Sjeff
979219820Sjeff  cat <<_ACEOF
980219820SjeffInstallation directories:
981219820Sjeff  --prefix=PREFIX         install architecture-independent files in PREFIX
982219820Sjeff			  [$ac_default_prefix]
983219820Sjeff  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984219820Sjeff			  [PREFIX]
985219820Sjeff
986219820SjeffBy default, \`make install' will install all the files in
987219820Sjeff\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988219820Sjeffan installation prefix other than \`$ac_default_prefix' using \`--prefix',
989219820Sjefffor instance \`--prefix=\$HOME'.
990219820Sjeff
991219820SjeffFor better control, use the options below.
992219820Sjeff
993219820SjeffFine tuning of the installation directories:
994219820Sjeff  --bindir=DIR           user executables [EPREFIX/bin]
995219820Sjeff  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996219820Sjeff  --libexecdir=DIR       program executables [EPREFIX/libexec]
997219820Sjeff  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998219820Sjeff  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999219820Sjeff  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000219820Sjeff  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001219820Sjeff  --libdir=DIR           object code libraries [EPREFIX/lib]
1002219820Sjeff  --includedir=DIR       C header files [PREFIX/include]
1003219820Sjeff  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004219820Sjeff  --infodir=DIR          info documentation [PREFIX/info]
1005219820Sjeff  --mandir=DIR           man documentation [PREFIX/man]
1006219820Sjeff_ACEOF
1007219820Sjeff
1008219820Sjeff  cat <<\_ACEOF
1009219820Sjeff
1010219820SjeffProgram names:
1011219820Sjeff  --program-prefix=PREFIX            prepend PREFIX to installed program names
1012219820Sjeff  --program-suffix=SUFFIX            append SUFFIX to installed program names
1013219820Sjeff  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014219820Sjeff
1015219820SjeffSystem types:
1016219820Sjeff  --build=BUILD     configure for building on BUILD [guessed]
1017219820Sjeff  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018219820Sjeff_ACEOF
1019219820Sjefffi
1020219820Sjeff
1021219820Sjeffif test -n "$ac_init_help"; then
1022219820Sjeff  case $ac_init_help in
1023219820Sjeff     short | recursive ) echo "Configuration of libibcm 1.0.5:";;
1024219820Sjeff   esac
1025219820Sjeff  cat <<\_ACEOF
1026219820Sjeff
1027219820SjeffOptional Features:
1028219820Sjeff  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029219820Sjeff  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030219820Sjeff  --enable-shared[=PKGS]
1031219820Sjeff                          build shared libraries [default=yes]
1032219820Sjeff  --enable-static[=PKGS]
1033219820Sjeff                          build static libraries [default=yes]
1034219820Sjeff  --enable-fast-install[=PKGS]
1035219820Sjeff                          optimize for fast installation [default=yes]
1036219820Sjeff  --disable-dependency-tracking  speeds up one-time build
1037219820Sjeff  --enable-dependency-tracking   do not reject slow dependency extractors
1038219820Sjeff  --disable-libtool-lock  avoid locking (might break parallel builds)
1039219820Sjeff  --disable-libcheck      do not test for presence of ib libraries
1040219820Sjeff
1041219820SjeffOptional Packages:
1042219820Sjeff  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1043219820Sjeff  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1044219820Sjeff  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1045219820Sjeff  --with-pic              try to use only PIC/non-PIC objects [default=use
1046219820Sjeff                          both]
1047219820Sjeff  --with-tags[=TAGS]
1048219820Sjeff                          include additional configurations [automatic]
1049219820Sjeff  --with-valgrind         Enable valgrind annotations - default NO
1050219820Sjeff
1051219820SjeffSome influential environment variables:
1052219820Sjeff  CC          C compiler command
1053219820Sjeff  CFLAGS      C compiler flags
1054219820Sjeff  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055219820Sjeff              nonstandard directory <lib dir>
1056219820Sjeff  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057219820Sjeff              headers in a nonstandard directory <include dir>
1058219820Sjeff  CPP         C preprocessor
1059219820Sjeff  CXX         C++ compiler command
1060219820Sjeff  CXXFLAGS    C++ compiler flags
1061219820Sjeff  CXXCPP      C++ preprocessor
1062219820Sjeff  F77         Fortran 77 compiler command
1063219820Sjeff  FFLAGS      Fortran 77 compiler flags
1064219820Sjeff
1065219820SjeffUse these variables to override the choices made by `configure' or to help
1066219820Sjeffit to find libraries and programs with nonstandard names/locations.
1067219820Sjeff
1068219820SjeffReport bugs to <general@lists@openfabrics.org>.
1069219820Sjeff_ACEOF
1070219820Sjefffi
1071219820Sjeff
1072219820Sjeffif test "$ac_init_help" = "recursive"; then
1073219820Sjeff  # If there are subdirs, report their specific --help.
1074219820Sjeff  ac_popdir=`pwd`
1075219820Sjeff  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076219820Sjeff    test -d $ac_dir || continue
1077219820Sjeff    ac_builddir=.
1078219820Sjeff
1079219820Sjeffif test "$ac_dir" != .; then
1080219820Sjeff  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081219820Sjeff  # A "../" for each directory in $ac_dir_suffix.
1082219820Sjeff  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083219820Sjeffelse
1084219820Sjeff  ac_dir_suffix= ac_top_builddir=
1085219820Sjefffi
1086219820Sjeff
1087219820Sjeffcase $srcdir in
1088219820Sjeff  .)  # No --srcdir option.  We are building in place.
1089219820Sjeff    ac_srcdir=.
1090219820Sjeff    if test -z "$ac_top_builddir"; then
1091219820Sjeff       ac_top_srcdir=.
1092219820Sjeff    else
1093219820Sjeff       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094219820Sjeff    fi ;;
1095219820Sjeff  [\\/]* | ?:[\\/]* )  # Absolute path.
1096219820Sjeff    ac_srcdir=$srcdir$ac_dir_suffix;
1097219820Sjeff    ac_top_srcdir=$srcdir ;;
1098219820Sjeff  *) # Relative path.
1099219820Sjeff    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100219820Sjeff    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101219820Sjeffesac
1102219820Sjeff
1103219820Sjeff# Do not use `cd foo && pwd` to compute absolute paths, because
1104219820Sjeff# the directories may not exist.
1105219820Sjeffcase `pwd` in
1106219820Sjeff.) ac_abs_builddir="$ac_dir";;
1107219820Sjeff*)
1108219820Sjeff  case "$ac_dir" in
1109219820Sjeff  .) ac_abs_builddir=`pwd`;;
1110219820Sjeff  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111219820Sjeff  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112219820Sjeff  esac;;
1113219820Sjeffesac
1114219820Sjeffcase $ac_abs_builddir in
1115219820Sjeff.) ac_abs_top_builddir=${ac_top_builddir}.;;
1116219820Sjeff*)
1117219820Sjeff  case ${ac_top_builddir}. in
1118219820Sjeff  .) ac_abs_top_builddir=$ac_abs_builddir;;
1119219820Sjeff  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120219820Sjeff  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121219820Sjeff  esac;;
1122219820Sjeffesac
1123219820Sjeffcase $ac_abs_builddir in
1124219820Sjeff.) ac_abs_srcdir=$ac_srcdir;;
1125219820Sjeff*)
1126219820Sjeff  case $ac_srcdir in
1127219820Sjeff  .) ac_abs_srcdir=$ac_abs_builddir;;
1128219820Sjeff  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129219820Sjeff  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130219820Sjeff  esac;;
1131219820Sjeffesac
1132219820Sjeffcase $ac_abs_builddir in
1133219820Sjeff.) ac_abs_top_srcdir=$ac_top_srcdir;;
1134219820Sjeff*)
1135219820Sjeff  case $ac_top_srcdir in
1136219820Sjeff  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137219820Sjeff  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138219820Sjeff  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139219820Sjeff  esac;;
1140219820Sjeffesac
1141219820Sjeff
1142219820Sjeff    cd $ac_dir
1143219820Sjeff    # Check for guested configure; otherwise get Cygnus style configure.
1144219820Sjeff    if test -f $ac_srcdir/configure.gnu; then
1145219820Sjeff      echo
1146219820Sjeff      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1147219820Sjeff    elif test -f $ac_srcdir/configure; then
1148219820Sjeff      echo
1149219820Sjeff      $SHELL $ac_srcdir/configure  --help=recursive
1150219820Sjeff    elif test -f $ac_srcdir/configure.ac ||
1151219820Sjeff	   test -f $ac_srcdir/configure.in; then
1152219820Sjeff      echo
1153219820Sjeff      $ac_configure --help
1154219820Sjeff    else
1155219820Sjeff      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156219820Sjeff    fi
1157219820Sjeff    cd "$ac_popdir"
1158219820Sjeff  done
1159219820Sjefffi
1160219820Sjeff
1161219820Sjefftest -n "$ac_init_help" && exit 0
1162219820Sjeffif $ac_init_version; then
1163219820Sjeff  cat <<\_ACEOF
1164219820Sjefflibibcm configure 1.0.5
1165219820Sjeffgenerated by GNU Autoconf 2.59
1166219820Sjeff
1167219820SjeffCopyright (C) 2003 Free Software Foundation, Inc.
1168219820SjeffThis configure script is free software; the Free Software Foundation
1169219820Sjeffgives unlimited permission to copy, distribute and modify it.
1170219820Sjeff_ACEOF
1171219820Sjeff  exit 0
1172219820Sjefffi
1173219820Sjeffexec 5>config.log
1174219820Sjeffcat >&5 <<_ACEOF
1175219820SjeffThis file contains any messages produced by compilers while
1176219820Sjeffrunning configure, to aid debugging if configure makes a mistake.
1177219820Sjeff
1178219820SjeffIt was created by libibcm $as_me 1.0.5, which was
1179219820Sjeffgenerated by GNU Autoconf 2.59.  Invocation command line was
1180219820Sjeff
1181219820Sjeff  $ $0 $@
1182219820Sjeff
1183219820Sjeff_ACEOF
1184219820Sjeff{
1185219820Sjeffcat <<_ASUNAME
1186219820Sjeff## --------- ##
1187219820Sjeff## Platform. ##
1188219820Sjeff## --------- ##
1189219820Sjeff
1190219820Sjeffhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191219820Sjeffuname -m = `(uname -m) 2>/dev/null || echo unknown`
1192219820Sjeffuname -r = `(uname -r) 2>/dev/null || echo unknown`
1193219820Sjeffuname -s = `(uname -s) 2>/dev/null || echo unknown`
1194219820Sjeffuname -v = `(uname -v) 2>/dev/null || echo unknown`
1195219820Sjeff
1196219820Sjeff/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197219820Sjeff/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1198219820Sjeff
1199219820Sjeff/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1200219820Sjeff/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1201219820Sjeff/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202219820Sjeffhostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1203219820Sjeff/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1204219820Sjeff/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1205219820Sjeff/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1206219820Sjeff
1207219820Sjeff_ASUNAME
1208219820Sjeff
1209219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210219820Sjefffor as_dir in $PATH
1211219820Sjeffdo
1212219820Sjeff  IFS=$as_save_IFS
1213219820Sjeff  test -z "$as_dir" && as_dir=.
1214219820Sjeff  echo "PATH: $as_dir"
1215219820Sjeffdone
1216219820Sjeff
1217219820Sjeff} >&5
1218219820Sjeff
1219219820Sjeffcat >&5 <<_ACEOF
1220219820Sjeff
1221219820Sjeff
1222219820Sjeff## ----------- ##
1223219820Sjeff## Core tests. ##
1224219820Sjeff## ----------- ##
1225219820Sjeff
1226219820Sjeff_ACEOF
1227219820Sjeff
1228219820Sjeff
1229219820Sjeff# Keep a trace of the command line.
1230219820Sjeff# Strip out --no-create and --no-recursion so they do not pile up.
1231219820Sjeff# Strip out --silent because we don't want to record it for future runs.
1232219820Sjeff# Also quote any args containing shell meta-characters.
1233219820Sjeff# Make two passes to allow for proper duplicate-argument suppression.
1234219820Sjeffac_configure_args=
1235219820Sjeffac_configure_args0=
1236219820Sjeffac_configure_args1=
1237219820Sjeffac_sep=
1238219820Sjeffac_must_keep_next=false
1239219820Sjefffor ac_pass in 1 2
1240219820Sjeffdo
1241219820Sjeff  for ac_arg
1242219820Sjeff  do
1243219820Sjeff    case $ac_arg in
1244219820Sjeff    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245219820Sjeff    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246219820Sjeff    | -silent | --silent | --silen | --sile | --sil)
1247219820Sjeff      continue ;;
1248219820Sjeff    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249219820Sjeff      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250219820Sjeff    esac
1251219820Sjeff    case $ac_pass in
1252219820Sjeff    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253219820Sjeff    2)
1254219820Sjeff      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255219820Sjeff      if test $ac_must_keep_next = true; then
1256219820Sjeff	ac_must_keep_next=false # Got value, back to normal.
1257219820Sjeff      else
1258219820Sjeff	case $ac_arg in
1259219820Sjeff	  *=* | --config-cache | -C | -disable-* | --disable-* \
1260219820Sjeff	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261219820Sjeff	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262219820Sjeff	  | -with-* | --with-* | -without-* | --without-* | --x)
1263219820Sjeff	    case "$ac_configure_args0 " in
1264219820Sjeff	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265219820Sjeff	    esac
1266219820Sjeff	    ;;
1267219820Sjeff	  -* ) ac_must_keep_next=true ;;
1268219820Sjeff	esac
1269219820Sjeff      fi
1270219820Sjeff      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271219820Sjeff      # Get rid of the leading space.
1272219820Sjeff      ac_sep=" "
1273219820Sjeff      ;;
1274219820Sjeff    esac
1275219820Sjeff  done
1276219820Sjeffdone
1277219820Sjeff$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278219820Sjeff$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279219820Sjeff
1280219820Sjeff# When interrupted or exit'd, cleanup temporary files, and complete
1281219820Sjeff# config.log.  We remove comments because anyway the quotes in there
1282219820Sjeff# would cause problems or look ugly.
1283219820Sjeff# WARNING: Be sure not to use single quotes in there, as some shells,
1284219820Sjeff# such as our DU 5.0 friend, will then `close' the trap.
1285219820Sjefftrap 'exit_status=$?
1286219820Sjeff  # Save into config.log some information that might help in debugging.
1287219820Sjeff  {
1288219820Sjeff    echo
1289219820Sjeff
1290219820Sjeff    cat <<\_ASBOX
1291219820Sjeff## ---------------- ##
1292219820Sjeff## Cache variables. ##
1293219820Sjeff## ---------------- ##
1294219820Sjeff_ASBOX
1295219820Sjeff    echo
1296219820Sjeff    # The following way of writing the cache mishandles newlines in values,
1297219820Sjeff{
1298219820Sjeff  (set) 2>&1 |
1299219820Sjeff    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300219820Sjeff    *ac_space=\ *)
1301219820Sjeff      sed -n \
1302219820Sjeff	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303219820Sjeff	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304219820Sjeff      ;;
1305219820Sjeff    *)
1306219820Sjeff      sed -n \
1307219820Sjeff	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308219820Sjeff      ;;
1309219820Sjeff    esac;
1310219820Sjeff}
1311219820Sjeff    echo
1312219820Sjeff
1313219820Sjeff    cat <<\_ASBOX
1314219820Sjeff## ----------------- ##
1315219820Sjeff## Output variables. ##
1316219820Sjeff## ----------------- ##
1317219820Sjeff_ASBOX
1318219820Sjeff    echo
1319219820Sjeff    for ac_var in $ac_subst_vars
1320219820Sjeff    do
1321219820Sjeff      eval ac_val=$`echo $ac_var`
1322219820Sjeff      echo "$ac_var='"'"'$ac_val'"'"'"
1323219820Sjeff    done | sort
1324219820Sjeff    echo
1325219820Sjeff
1326219820Sjeff    if test -n "$ac_subst_files"; then
1327219820Sjeff      cat <<\_ASBOX
1328219820Sjeff## ------------- ##
1329219820Sjeff## Output files. ##
1330219820Sjeff## ------------- ##
1331219820Sjeff_ASBOX
1332219820Sjeff      echo
1333219820Sjeff      for ac_var in $ac_subst_files
1334219820Sjeff      do
1335219820Sjeff	eval ac_val=$`echo $ac_var`
1336219820Sjeff	echo "$ac_var='"'"'$ac_val'"'"'"
1337219820Sjeff      done | sort
1338219820Sjeff      echo
1339219820Sjeff    fi
1340219820Sjeff
1341219820Sjeff    if test -s confdefs.h; then
1342219820Sjeff      cat <<\_ASBOX
1343219820Sjeff## ----------- ##
1344219820Sjeff## confdefs.h. ##
1345219820Sjeff## ----------- ##
1346219820Sjeff_ASBOX
1347219820Sjeff      echo
1348219820Sjeff      sed "/^$/d" confdefs.h | sort
1349219820Sjeff      echo
1350219820Sjeff    fi
1351219820Sjeff    test "$ac_signal" != 0 &&
1352219820Sjeff      echo "$as_me: caught signal $ac_signal"
1353219820Sjeff    echo "$as_me: exit $exit_status"
1354219820Sjeff  } >&5
1355219820Sjeff  rm -f core *.core &&
1356219820Sjeff  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357219820Sjeff    exit $exit_status
1358219820Sjeff     ' 0
1359219820Sjefffor ac_signal in 1 2 13 15; do
1360219820Sjeff  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361219820Sjeffdone
1362219820Sjeffac_signal=0
1363219820Sjeff
1364219820Sjeff# confdefs.h avoids OS command line length limits that DEFS can exceed.
1365219820Sjeffrm -rf conftest* confdefs.h
1366219820Sjeff# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367219820Sjeffecho >confdefs.h
1368219820Sjeff
1369219820Sjeff# Predefined preprocessor variables.
1370219820Sjeff
1371219820Sjeffcat >>confdefs.h <<_ACEOF
1372219820Sjeff#define PACKAGE_NAME "$PACKAGE_NAME"
1373219820Sjeff_ACEOF
1374219820Sjeff
1375219820Sjeff
1376219820Sjeffcat >>confdefs.h <<_ACEOF
1377219820Sjeff#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378219820Sjeff_ACEOF
1379219820Sjeff
1380219820Sjeff
1381219820Sjeffcat >>confdefs.h <<_ACEOF
1382219820Sjeff#define PACKAGE_VERSION "$PACKAGE_VERSION"
1383219820Sjeff_ACEOF
1384219820Sjeff
1385219820Sjeff
1386219820Sjeffcat >>confdefs.h <<_ACEOF
1387219820Sjeff#define PACKAGE_STRING "$PACKAGE_STRING"
1388219820Sjeff_ACEOF
1389219820Sjeff
1390219820Sjeff
1391219820Sjeffcat >>confdefs.h <<_ACEOF
1392219820Sjeff#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393219820Sjeff_ACEOF
1394219820Sjeff
1395219820Sjeff
1396219820Sjeff# Let the site file select an alternate cache file if it wants to.
1397219820Sjeff# Prefer explicitly selected file to automatically selected ones.
1398219820Sjeffif test -z "$CONFIG_SITE"; then
1399219820Sjeff  if test "x$prefix" != xNONE; then
1400219820Sjeff    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401219820Sjeff  else
1402219820Sjeff    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403219820Sjeff  fi
1404219820Sjefffi
1405219820Sjefffor ac_site_file in $CONFIG_SITE; do
1406219820Sjeff  if test -r "$ac_site_file"; then
1407219820Sjeff    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408219820Sjeffecho "$as_me: loading site script $ac_site_file" >&6;}
1409219820Sjeff    sed 's/^/| /' "$ac_site_file" >&5
1410219820Sjeff    . "$ac_site_file"
1411219820Sjeff  fi
1412219820Sjeffdone
1413219820Sjeff
1414219820Sjeffif test -r "$cache_file"; then
1415219820Sjeff  # Some versions of bash will fail to source /dev/null (special
1416219820Sjeff  # files actually), so we avoid doing that.
1417219820Sjeff  if test -f "$cache_file"; then
1418219820Sjeff    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419219820Sjeffecho "$as_me: loading cache $cache_file" >&6;}
1420219820Sjeff    case $cache_file in
1421219820Sjeff      [\\/]* | ?:[\\/]* ) . $cache_file;;
1422219820Sjeff      *)                      . ./$cache_file;;
1423219820Sjeff    esac
1424219820Sjeff  fi
1425219820Sjeffelse
1426219820Sjeff  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427219820Sjeffecho "$as_me: creating cache $cache_file" >&6;}
1428219820Sjeff  >$cache_file
1429219820Sjefffi
1430219820Sjeff
1431219820Sjeff# Check that the precious variables saved in the cache have kept the same
1432219820Sjeff# value.
1433219820Sjeffac_cache_corrupted=false
1434219820Sjefffor ac_var in `(set) 2>&1 |
1435219820Sjeff	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436219820Sjeff  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437219820Sjeff  eval ac_new_set=\$ac_env_${ac_var}_set
1438219820Sjeff  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439219820Sjeff  eval ac_new_val="\$ac_env_${ac_var}_value"
1440219820Sjeff  case $ac_old_set,$ac_new_set in
1441219820Sjeff    set,)
1442219820Sjeff      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443219820Sjeffecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444219820Sjeff      ac_cache_corrupted=: ;;
1445219820Sjeff    ,set)
1446219820Sjeff      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447219820Sjeffecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448219820Sjeff      ac_cache_corrupted=: ;;
1449219820Sjeff    ,);;
1450219820Sjeff    *)
1451219820Sjeff      if test "x$ac_old_val" != "x$ac_new_val"; then
1452219820Sjeff	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453219820Sjeffecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454219820Sjeff	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1455219820Sjeffecho "$as_me:   former value:  $ac_old_val" >&2;}
1456219820Sjeff	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1457219820Sjeffecho "$as_me:   current value: $ac_new_val" >&2;}
1458219820Sjeff	ac_cache_corrupted=:
1459219820Sjeff      fi;;
1460219820Sjeff  esac
1461219820Sjeff  # Pass precious variables to config.status.
1462219820Sjeff  if test "$ac_new_set" = set; then
1463219820Sjeff    case $ac_new_val in
1464219820Sjeff    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465219820Sjeff      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466219820Sjeff    *) ac_arg=$ac_var=$ac_new_val ;;
1467219820Sjeff    esac
1468219820Sjeff    case " $ac_configure_args " in
1469219820Sjeff      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1470219820Sjeff      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471219820Sjeff    esac
1472219820Sjeff  fi
1473219820Sjeffdone
1474219820Sjeffif $ac_cache_corrupted; then
1475219820Sjeff  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476219820Sjeffecho "$as_me: error: changes in the environment can compromise the build" >&2;}
1477219820Sjeff  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478219820Sjeffecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479219820Sjeff   { (exit 1); exit 1; }; }
1480219820Sjefffi
1481219820Sjeff
1482219820Sjeffac_ext=c
1483219820Sjeffac_cpp='$CPP $CPPFLAGS'
1484219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
1487219820Sjeff
1488219820Sjeff
1489219820Sjeff
1490219820Sjeff
1491219820Sjeff
1492219820Sjeff
1493219820Sjeff
1494219820Sjeff
1495219820Sjeff
1496219820Sjeff
1497219820Sjeff
1498219820Sjeff
1499219820Sjeff
1500219820Sjeff
1501219820Sjeff
1502219820Sjeff
1503219820Sjeff
1504219820Sjeff
1505219820Sjeff
1506219820Sjeff
1507219820Sjeff
1508219820Sjeff
1509219820Sjeff
1510219820Sjeff
1511219820Sjeff
1512219820Sjeff
1513219820Sjeff
1514219820Sjeff
1515219820Sjeffac_aux_dir=
1516219820Sjefffor ac_dir in config $srcdir/config; do
1517219820Sjeff  if test -f $ac_dir/install-sh; then
1518219820Sjeff    ac_aux_dir=$ac_dir
1519219820Sjeff    ac_install_sh="$ac_aux_dir/install-sh -c"
1520219820Sjeff    break
1521219820Sjeff  elif test -f $ac_dir/install.sh; then
1522219820Sjeff    ac_aux_dir=$ac_dir
1523219820Sjeff    ac_install_sh="$ac_aux_dir/install.sh -c"
1524219820Sjeff    break
1525219820Sjeff  elif test -f $ac_dir/shtool; then
1526219820Sjeff    ac_aux_dir=$ac_dir
1527219820Sjeff    ac_install_sh="$ac_aux_dir/shtool install -c"
1528219820Sjeff    break
1529219820Sjeff  fi
1530219820Sjeffdone
1531219820Sjeffif test -z "$ac_aux_dir"; then
1532219820Sjeff  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1533219820Sjeffecho "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1534219820Sjeff   { (exit 1); exit 1; }; }
1535219820Sjefffi
1536219820Sjeffac_config_guess="$SHELL $ac_aux_dir/config.guess"
1537219820Sjeffac_config_sub="$SHELL $ac_aux_dir/config.sub"
1538219820Sjeffac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1539219820Sjeff
1540219820Sjeff          ac_config_headers="$ac_config_headers config.h"
1541219820Sjeff
1542219820Sjeffam__api_version="1.9"
1543219820Sjeff# Find a good install program.  We prefer a C program (faster),
1544219820Sjeff# so one script is as good as another.  But avoid the broken or
1545219820Sjeff# incompatible versions:
1546219820Sjeff# SysV /etc/install, /usr/sbin/install
1547219820Sjeff# SunOS /usr/etc/install
1548219820Sjeff# IRIX /sbin/install
1549219820Sjeff# AIX /bin/install
1550219820Sjeff# AmigaOS /C/install, which installs bootblocks on floppy discs
1551219820Sjeff# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1552219820Sjeff# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1553219820Sjeff# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1554219820Sjeff# OS/2's system install, which has a completely different semantic
1555219820Sjeff# ./install, which can be erroneously created by make from ./install.sh.
1556219820Sjeffecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1557219820Sjeffecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1558219820Sjeffif test -z "$INSTALL"; then
1559219820Sjeffif test "${ac_cv_path_install+set}" = set; then
1560219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
1561219820Sjeffelse
1562219820Sjeff  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563219820Sjefffor as_dir in $PATH
1564219820Sjeffdo
1565219820Sjeff  IFS=$as_save_IFS
1566219820Sjeff  test -z "$as_dir" && as_dir=.
1567219820Sjeff  # Account for people who put trailing slashes in PATH elements.
1568219820Sjeffcase $as_dir/ in
1569219820Sjeff  ./ | .// | /cC/* | \
1570219820Sjeff  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1571219820Sjeff  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1572219820Sjeff  /usr/ucb/* ) ;;
1573219820Sjeff  *)
1574219820Sjeff    # OSF1 and SCO ODT 3.0 have their own names for install.
1575219820Sjeff    # Don't use installbsd from OSF since it installs stuff as root
1576219820Sjeff    # by default.
1577219820Sjeff    for ac_prog in ginstall scoinst install; do
1578219820Sjeff      for ac_exec_ext in '' $ac_executable_extensions; do
1579219820Sjeff	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1580219820Sjeff	  if test $ac_prog = install &&
1581219820Sjeff	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1582219820Sjeff	    # AIX install.  It has an incompatible calling convention.
1583219820Sjeff	    :
1584219820Sjeff	  elif test $ac_prog = install &&
1585219820Sjeff	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586219820Sjeff	    # program-specific install script used by HP pwplus--don't use.
1587219820Sjeff	    :
1588219820Sjeff	  else
1589219820Sjeff	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1590219820Sjeff	    break 3
1591219820Sjeff	  fi
1592219820Sjeff	fi
1593219820Sjeff      done
1594219820Sjeff    done
1595219820Sjeff    ;;
1596219820Sjeffesac
1597219820Sjeffdone
1598219820Sjeff
1599219820Sjeff
1600219820Sjefffi
1601219820Sjeff  if test "${ac_cv_path_install+set}" = set; then
1602219820Sjeff    INSTALL=$ac_cv_path_install
1603219820Sjeff  else
1604219820Sjeff    # As a last resort, use the slow shell script.  We don't cache a
1605219820Sjeff    # path for INSTALL within a source directory, because that will
1606219820Sjeff    # break other packages using the cache if that directory is
1607219820Sjeff    # removed, or if the path is relative.
1608219820Sjeff    INSTALL=$ac_install_sh
1609219820Sjeff  fi
1610219820Sjefffi
1611219820Sjeffecho "$as_me:$LINENO: result: $INSTALL" >&5
1612219820Sjeffecho "${ECHO_T}$INSTALL" >&6
1613219820Sjeff
1614219820Sjeff# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1615219820Sjeff# It thinks the first close brace ends the variable substitution.
1616219820Sjefftest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1617219820Sjeff
1618219820Sjefftest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1619219820Sjeff
1620219820Sjefftest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1621219820Sjeff
1622219820Sjeffecho "$as_me:$LINENO: checking whether build environment is sane" >&5
1623219820Sjeffecho $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1624219820Sjeff# Just in case
1625219820Sjeffsleep 1
1626219820Sjeffecho timestamp > conftest.file
1627219820Sjeff# Do `set' in a subshell so we don't clobber the current shell's
1628219820Sjeff# arguments.  Must try -L first in case configure is actually a
1629219820Sjeff# symlink; some systems play weird games with the mod time of symlinks
1630219820Sjeff# (eg FreeBSD returns the mod time of the symlink's containing
1631219820Sjeff# directory).
1632219820Sjeffif (
1633219820Sjeff   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1634219820Sjeff   if test "$*" = "X"; then
1635219820Sjeff      # -L didn't work.
1636219820Sjeff      set X `ls -t $srcdir/configure conftest.file`
1637219820Sjeff   fi
1638219820Sjeff   rm -f conftest.file
1639219820Sjeff   if test "$*" != "X $srcdir/configure conftest.file" \
1640219820Sjeff      && test "$*" != "X conftest.file $srcdir/configure"; then
1641219820Sjeff
1642219820Sjeff      # If neither matched, then we have a broken ls.  This can happen
1643219820Sjeff      # if, for instance, CONFIG_SHELL is bash and it inherits a
1644219820Sjeff      # broken ls alias from the environment.  This has actually
1645219820Sjeff      # happened.  Such a system could not be considered "sane".
1646219820Sjeff      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1647219820Sjeffalias in your environment" >&5
1648219820Sjeffecho "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1649219820Sjeffalias in your environment" >&2;}
1650219820Sjeff   { (exit 1); exit 1; }; }
1651219820Sjeff   fi
1652219820Sjeff
1653219820Sjeff   test "$2" = conftest.file
1654219820Sjeff   )
1655219820Sjeffthen
1656219820Sjeff   # Ok.
1657219820Sjeff   :
1658219820Sjeffelse
1659219820Sjeff   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1660219820SjeffCheck your system clock" >&5
1661219820Sjeffecho "$as_me: error: newly created file is older than distributed files!
1662219820SjeffCheck your system clock" >&2;}
1663219820Sjeff   { (exit 1); exit 1; }; }
1664219820Sjefffi
1665219820Sjeffecho "$as_me:$LINENO: result: yes" >&5
1666219820Sjeffecho "${ECHO_T}yes" >&6
1667219820Sjefftest "$program_prefix" != NONE &&
1668219820Sjeff  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1669219820Sjeff# Use a double $ so make ignores it.
1670219820Sjefftest "$program_suffix" != NONE &&
1671219820Sjeff  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1672219820Sjeff# Double any \ or $.  echo might interpret backslashes.
1673219820Sjeff# By default was `s,x,x', remove it if useless.
1674219820Sjeffcat <<\_ACEOF >conftest.sed
1675219820Sjeffs/[\\$]/&&/g;s/;s,x,x,$//
1676219820Sjeff_ACEOF
1677219820Sjeffprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1678219820Sjeffrm conftest.sed
1679219820Sjeff
1680219820Sjeff# expand $ac_aux_dir to an absolute path
1681219820Sjeffam_aux_dir=`cd $ac_aux_dir && pwd`
1682219820Sjeff
1683219820Sjefftest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1684219820Sjeff# Use eval to expand $SHELL
1685219820Sjeffif eval "$MISSING --run true"; then
1686219820Sjeff  am_missing_run="$MISSING --run "
1687219820Sjeffelse
1688219820Sjeff  am_missing_run=
1689219820Sjeff  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1690219820Sjeffecho "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1691219820Sjefffi
1692219820Sjeff
1693219820Sjeffif mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1694219820Sjeff  # We used to keeping the `.' as first argument, in order to
1695219820Sjeff  # allow $(mkdir_p) to be used without argument.  As in
1696219820Sjeff  #   $(mkdir_p) $(somedir)
1697219820Sjeff  # where $(somedir) is conditionally defined.  However this is wrong
1698219820Sjeff  # for two reasons:
1699219820Sjeff  #  1. if the package is installed by a user who cannot write `.'
1700219820Sjeff  #     make install will fail,
1701219820Sjeff  #  2. the above comment should most certainly read
1702219820Sjeff  #     $(mkdir_p) $(DESTDIR)$(somedir)
1703219820Sjeff  #     so it does not work when $(somedir) is undefined and
1704219820Sjeff  #     $(DESTDIR) is not.
1705219820Sjeff  #  To support the latter case, we have to write
1706219820Sjeff  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1707219820Sjeff  #  so the `.' trick is pointless.
1708219820Sjeff  mkdir_p='mkdir -p --'
1709219820Sjeffelse
1710219820Sjeff  # On NextStep and OpenStep, the `mkdir' command does not
1711219820Sjeff  # recognize any option.  It will interpret all options as
1712219820Sjeff  # directories to create, and then abort because `.' already
1713219820Sjeff  # exists.
1714219820Sjeff  for d in ./-p ./--version;
1715219820Sjeff  do
1716219820Sjeff    test -d $d && rmdir $d
1717219820Sjeff  done
1718219820Sjeff  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1719219820Sjeff  if test -f "$ac_aux_dir/mkinstalldirs"; then
1720219820Sjeff    mkdir_p='$(mkinstalldirs)'
1721219820Sjeff  else
1722219820Sjeff    mkdir_p='$(install_sh) -d'
1723219820Sjeff  fi
1724219820Sjefffi
1725219820Sjeff
1726219820Sjefffor ac_prog in gawk mawk nawk awk
1727219820Sjeffdo
1728219820Sjeff  # Extract the first word of "$ac_prog", so it can be a program name with args.
1729219820Sjeffset dummy $ac_prog; ac_word=$2
1730219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
1731219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732219820Sjeffif test "${ac_cv_prog_AWK+set}" = set; then
1733219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
1734219820Sjeffelse
1735219820Sjeff  if test -n "$AWK"; then
1736219820Sjeff  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1737219820Sjeffelse
1738219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739219820Sjefffor as_dir in $PATH
1740219820Sjeffdo
1741219820Sjeff  IFS=$as_save_IFS
1742219820Sjeff  test -z "$as_dir" && as_dir=.
1743219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
1744219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745219820Sjeff    ac_cv_prog_AWK="$ac_prog"
1746219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747219820Sjeff    break 2
1748219820Sjeff  fi
1749219820Sjeffdone
1750219820Sjeffdone
1751219820Sjeff
1752219820Sjefffi
1753219820Sjefffi
1754219820SjeffAWK=$ac_cv_prog_AWK
1755219820Sjeffif test -n "$AWK"; then
1756219820Sjeff  echo "$as_me:$LINENO: result: $AWK" >&5
1757219820Sjeffecho "${ECHO_T}$AWK" >&6
1758219820Sjeffelse
1759219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
1760219820Sjeffecho "${ECHO_T}no" >&6
1761219820Sjefffi
1762219820Sjeff
1763219820Sjeff  test -n "$AWK" && break
1764219820Sjeffdone
1765219820Sjeff
1766219820Sjeffecho "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1767219820Sjeffecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1768219820Sjeffset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1769219820Sjeffif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1770219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
1771219820Sjeffelse
1772219820Sjeff  cat >conftest.make <<\_ACEOF
1773219820Sjeffall:
1774219820Sjeff	@echo 'ac_maketemp="$(MAKE)"'
1775219820Sjeff_ACEOF
1776219820Sjeff# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1777219820Sjeffeval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1778219820Sjeffif test -n "$ac_maketemp"; then
1779219820Sjeff  eval ac_cv_prog_make_${ac_make}_set=yes
1780219820Sjeffelse
1781219820Sjeff  eval ac_cv_prog_make_${ac_make}_set=no
1782219820Sjefffi
1783219820Sjeffrm -f conftest.make
1784219820Sjefffi
1785219820Sjeffif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1786219820Sjeff  echo "$as_me:$LINENO: result: yes" >&5
1787219820Sjeffecho "${ECHO_T}yes" >&6
1788219820Sjeff  SET_MAKE=
1789219820Sjeffelse
1790219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
1791219820Sjeffecho "${ECHO_T}no" >&6
1792219820Sjeff  SET_MAKE="MAKE=${MAKE-make}"
1793219820Sjefffi
1794219820Sjeff
1795219820Sjeffrm -rf .tst 2>/dev/null
1796219820Sjeffmkdir .tst 2>/dev/null
1797219820Sjeffif test -d .tst; then
1798219820Sjeff  am__leading_dot=.
1799219820Sjeffelse
1800219820Sjeff  am__leading_dot=_
1801219820Sjefffi
1802219820Sjeffrmdir .tst 2>/dev/null
1803219820Sjeff
1804219820Sjeff# test to see if srcdir already configured
1805219820Sjeffif test "`cd $srcdir && pwd`" != "`pwd`" &&
1806219820Sjeff   test -f $srcdir/config.status; then
1807219820Sjeff  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1808219820Sjeffecho "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1809219820Sjeff   { (exit 1); exit 1; }; }
1810219820Sjefffi
1811219820Sjeff
1812219820Sjeff# test whether we have cygpath
1813219820Sjeffif test -z "$CYGPATH_W"; then
1814219820Sjeff  if (cygpath --version) >/dev/null 2>/dev/null; then
1815219820Sjeff    CYGPATH_W='cygpath -w'
1816219820Sjeff  else
1817219820Sjeff    CYGPATH_W=echo
1818219820Sjeff  fi
1819219820Sjefffi
1820219820Sjeff
1821219820Sjeff
1822219820Sjeff# Define the identity of the package.
1823219820Sjeff PACKAGE=libibcm
1824219820Sjeff VERSION=1.0.5
1825219820Sjeff
1826219820Sjeff
1827219820Sjeffcat >>confdefs.h <<_ACEOF
1828219820Sjeff#define PACKAGE "$PACKAGE"
1829219820Sjeff_ACEOF
1830219820Sjeff
1831219820Sjeff
1832219820Sjeffcat >>confdefs.h <<_ACEOF
1833219820Sjeff#define VERSION "$VERSION"
1834219820Sjeff_ACEOF
1835219820Sjeff
1836219820Sjeff# Some tools Automake needs.
1837219820Sjeff
1838219820SjeffACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1839219820Sjeff
1840219820Sjeff
1841219820SjeffAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1842219820Sjeff
1843219820Sjeff
1844219820SjeffAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1845219820Sjeff
1846219820Sjeff
1847219820SjeffAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1848219820Sjeff
1849219820Sjeff
1850219820SjeffMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1851219820Sjeff
1852219820Sjeffinstall_sh=${install_sh-"$am_aux_dir/install-sh"}
1853219820Sjeff
1854219820Sjeff# Installed binaries are usually stripped using `strip' when the user
1855219820Sjeff# run `make install-strip'.  However `strip' might not be the right
1856219820Sjeff# tool to use in cross-compilation environments, therefore Automake
1857219820Sjeff# will honor the `STRIP' environment variable to overrule this program.
1858219820Sjeffif test "$cross_compiling" != no; then
1859219820Sjeff  if test -n "$ac_tool_prefix"; then
1860219820Sjeff  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1861219820Sjeffset dummy ${ac_tool_prefix}strip; ac_word=$2
1862219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
1863219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864219820Sjeffif test "${ac_cv_prog_STRIP+set}" = set; then
1865219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
1866219820Sjeffelse
1867219820Sjeff  if test -n "$STRIP"; then
1868219820Sjeff  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1869219820Sjeffelse
1870219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871219820Sjefffor as_dir in $PATH
1872219820Sjeffdo
1873219820Sjeff  IFS=$as_save_IFS
1874219820Sjeff  test -z "$as_dir" && as_dir=.
1875219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
1876219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877219820Sjeff    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1878219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879219820Sjeff    break 2
1880219820Sjeff  fi
1881219820Sjeffdone
1882219820Sjeffdone
1883219820Sjeff
1884219820Sjefffi
1885219820Sjefffi
1886219820SjeffSTRIP=$ac_cv_prog_STRIP
1887219820Sjeffif test -n "$STRIP"; then
1888219820Sjeff  echo "$as_me:$LINENO: result: $STRIP" >&5
1889219820Sjeffecho "${ECHO_T}$STRIP" >&6
1890219820Sjeffelse
1891219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
1892219820Sjeffecho "${ECHO_T}no" >&6
1893219820Sjefffi
1894219820Sjeff
1895219820Sjefffi
1896219820Sjeffif test -z "$ac_cv_prog_STRIP"; then
1897219820Sjeff  ac_ct_STRIP=$STRIP
1898219820Sjeff  # Extract the first word of "strip", so it can be a program name with args.
1899219820Sjeffset dummy strip; ac_word=$2
1900219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
1901219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902219820Sjeffif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1903219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
1904219820Sjeffelse
1905219820Sjeff  if test -n "$ac_ct_STRIP"; then
1906219820Sjeff  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1907219820Sjeffelse
1908219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909219820Sjefffor as_dir in $PATH
1910219820Sjeffdo
1911219820Sjeff  IFS=$as_save_IFS
1912219820Sjeff  test -z "$as_dir" && as_dir=.
1913219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
1914219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915219820Sjeff    ac_cv_prog_ac_ct_STRIP="strip"
1916219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917219820Sjeff    break 2
1918219820Sjeff  fi
1919219820Sjeffdone
1920219820Sjeffdone
1921219820Sjeff
1922219820Sjeff  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1923219820Sjefffi
1924219820Sjefffi
1925219820Sjeffac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1926219820Sjeffif test -n "$ac_ct_STRIP"; then
1927219820Sjeff  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1928219820Sjeffecho "${ECHO_T}$ac_ct_STRIP" >&6
1929219820Sjeffelse
1930219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
1931219820Sjeffecho "${ECHO_T}no" >&6
1932219820Sjefffi
1933219820Sjeff
1934219820Sjeff  STRIP=$ac_ct_STRIP
1935219820Sjeffelse
1936219820Sjeff  STRIP="$ac_cv_prog_STRIP"
1937219820Sjefffi
1938219820Sjeff
1939219820Sjefffi
1940219820SjeffINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1941219820Sjeff
1942219820Sjeff# We need awk for the "check" target.  The system "awk" is bad on
1943219820Sjeff# some platforms.
1944219820Sjeff# Always define AMTAR for backward compatibility.
1945219820Sjeff
1946219820SjeffAMTAR=${AMTAR-"${am_missing_run}tar"}
1947219820Sjeff
1948219820Sjeffam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1949219820Sjeff
1950219820Sjeff
1951219820Sjeff
1952219820Sjeff
1953219820Sjeff
1954219820Sjeff
1955219820Sjeff# Check whether --enable-shared or --disable-shared was given.
1956219820Sjeffif test "${enable_shared+set}" = set; then
1957219820Sjeff  enableval="$enable_shared"
1958219820Sjeff  p=${PACKAGE-default}
1959219820Sjeff    case $enableval in
1960219820Sjeff    yes) enable_shared=yes ;;
1961219820Sjeff    no) enable_shared=no ;;
1962219820Sjeff    *)
1963219820Sjeff      enable_shared=no
1964219820Sjeff      # Look at the argument we got.  We use all the common list separators.
1965219820Sjeff      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1966219820Sjeff      for pkg in $enableval; do
1967219820Sjeff	IFS="$lt_save_ifs"
1968219820Sjeff	if test "X$pkg" = "X$p"; then
1969219820Sjeff	  enable_shared=yes
1970219820Sjeff	fi
1971219820Sjeff      done
1972219820Sjeff      IFS="$lt_save_ifs"
1973219820Sjeff      ;;
1974219820Sjeff    esac
1975219820Sjeffelse
1976219820Sjeff  enable_shared=yes
1977219820Sjefffi;
1978219820Sjeff
1979219820Sjeff# Check whether --enable-static or --disable-static was given.
1980219820Sjeffif test "${enable_static+set}" = set; then
1981219820Sjeff  enableval="$enable_static"
1982219820Sjeff  p=${PACKAGE-default}
1983219820Sjeff    case $enableval in
1984219820Sjeff    yes) enable_static=yes ;;
1985219820Sjeff    no) enable_static=no ;;
1986219820Sjeff    *)
1987219820Sjeff     enable_static=no
1988219820Sjeff      # Look at the argument we got.  We use all the common list separators.
1989219820Sjeff      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1990219820Sjeff      for pkg in $enableval; do
1991219820Sjeff	IFS="$lt_save_ifs"
1992219820Sjeff	if test "X$pkg" = "X$p"; then
1993219820Sjeff	  enable_static=yes
1994219820Sjeff	fi
1995219820Sjeff      done
1996219820Sjeff      IFS="$lt_save_ifs"
1997219820Sjeff      ;;
1998219820Sjeff    esac
1999219820Sjeffelse
2000219820Sjeff  enable_static=yes
2001219820Sjefffi;
2002219820Sjeff
2003219820Sjeff# Check whether --enable-fast-install or --disable-fast-install was given.
2004219820Sjeffif test "${enable_fast_install+set}" = set; then
2005219820Sjeff  enableval="$enable_fast_install"
2006219820Sjeff  p=${PACKAGE-default}
2007219820Sjeff    case $enableval in
2008219820Sjeff    yes) enable_fast_install=yes ;;
2009219820Sjeff    no) enable_fast_install=no ;;
2010219820Sjeff    *)
2011219820Sjeff      enable_fast_install=no
2012219820Sjeff      # Look at the argument we got.  We use all the common list separators.
2013219820Sjeff      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2014219820Sjeff      for pkg in $enableval; do
2015219820Sjeff	IFS="$lt_save_ifs"
2016219820Sjeff	if test "X$pkg" = "X$p"; then
2017219820Sjeff	  enable_fast_install=yes
2018219820Sjeff	fi
2019219820Sjeff      done
2020219820Sjeff      IFS="$lt_save_ifs"
2021219820Sjeff      ;;
2022219820Sjeff    esac
2023219820Sjeffelse
2024219820Sjeff  enable_fast_install=yes
2025219820Sjefffi;
2026219820Sjeff
2027219820Sjeff# Make sure we can run config.sub.
2028219820Sjeff$ac_config_sub sun4 >/dev/null 2>&1 ||
2029219820Sjeff  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2030219820Sjeffecho "$as_me: error: cannot run $ac_config_sub" >&2;}
2031219820Sjeff   { (exit 1); exit 1; }; }
2032219820Sjeff
2033219820Sjeffecho "$as_me:$LINENO: checking build system type" >&5
2034219820Sjeffecho $ECHO_N "checking build system type... $ECHO_C" >&6
2035219820Sjeffif test "${ac_cv_build+set}" = set; then
2036219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2037219820Sjeffelse
2038219820Sjeff  ac_cv_build_alias=$build_alias
2039219820Sjefftest -z "$ac_cv_build_alias" &&
2040219820Sjeff  ac_cv_build_alias=`$ac_config_guess`
2041219820Sjefftest -z "$ac_cv_build_alias" &&
2042219820Sjeff  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2043219820Sjeffecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
2044219820Sjeff   { (exit 1); exit 1; }; }
2045219820Sjeffac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2046219820Sjeff  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2047219820Sjeffecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2048219820Sjeff   { (exit 1); exit 1; }; }
2049219820Sjeff
2050219820Sjefffi
2051219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_build" >&5
2052219820Sjeffecho "${ECHO_T}$ac_cv_build" >&6
2053219820Sjeffbuild=$ac_cv_build
2054219820Sjeffbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2055219820Sjeffbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2056219820Sjeffbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2057219820Sjeff
2058219820Sjeff
2059219820Sjeffecho "$as_me:$LINENO: checking host system type" >&5
2060219820Sjeffecho $ECHO_N "checking host system type... $ECHO_C" >&6
2061219820Sjeffif test "${ac_cv_host+set}" = set; then
2062219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2063219820Sjeffelse
2064219820Sjeff  ac_cv_host_alias=$host_alias
2065219820Sjefftest -z "$ac_cv_host_alias" &&
2066219820Sjeff  ac_cv_host_alias=$ac_cv_build_alias
2067219820Sjeffac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2068219820Sjeff  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2069219820Sjeffecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2070219820Sjeff   { (exit 1); exit 1; }; }
2071219820Sjeff
2072219820Sjefffi
2073219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_host" >&5
2074219820Sjeffecho "${ECHO_T}$ac_cv_host" >&6
2075219820Sjeffhost=$ac_cv_host
2076219820Sjeffhost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2077219820Sjeffhost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2078219820Sjeffhost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2079219820Sjeff
2080219820Sjeff
2081219820SjeffDEPDIR="${am__leading_dot}deps"
2082219820Sjeff
2083219820Sjeff          ac_config_commands="$ac_config_commands depfiles"
2084219820Sjeff
2085219820Sjeff
2086219820Sjeffam_make=${MAKE-make}
2087219820Sjeffcat > confinc << 'END'
2088219820Sjeffam__doit:
2089219820Sjeff	@echo done
2090219820Sjeff.PHONY: am__doit
2091219820SjeffEND
2092219820Sjeff# If we don't find an include directive, just comment out the code.
2093219820Sjeffecho "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2094219820Sjeffecho $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2095219820Sjeffam__include="#"
2096219820Sjeffam__quote=
2097219820Sjeff_am_result=none
2098219820Sjeff# First try GNU make style include.
2099219820Sjeffecho "include confinc" > confmf
2100219820Sjeff# We grep out `Entering directory' and `Leaving directory'
2101219820Sjeff# messages which can occur if `w' ends up in MAKEFLAGS.
2102219820Sjeff# In particular we don't look at `^make:' because GNU make might
2103219820Sjeff# be invoked under some other name (usually "gmake"), in which
2104219820Sjeff# case it prints its new name instead of `make'.
2105219820Sjeffif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2106219820Sjeff   am__include=include
2107219820Sjeff   am__quote=
2108219820Sjeff   _am_result=GNU
2109219820Sjefffi
2110219820Sjeff# Now try BSD make style include.
2111219820Sjeffif test "$am__include" = "#"; then
2112219820Sjeff   echo '.include "confinc"' > confmf
2113219820Sjeff   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2114219820Sjeff      am__include=.include
2115219820Sjeff      am__quote="\""
2116219820Sjeff      _am_result=BSD
2117219820Sjeff   fi
2118219820Sjefffi
2119219820Sjeff
2120219820Sjeff
2121219820Sjeffecho "$as_me:$LINENO: result: $_am_result" >&5
2122219820Sjeffecho "${ECHO_T}$_am_result" >&6
2123219820Sjeffrm -f confinc confmf
2124219820Sjeff
2125219820Sjeff# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2126219820Sjeffif test "${enable_dependency_tracking+set}" = set; then
2127219820Sjeff  enableval="$enable_dependency_tracking"
2128219820Sjeff
2129219820Sjefffi;
2130219820Sjeffif test "x$enable_dependency_tracking" != xno; then
2131219820Sjeff  am_depcomp="$ac_aux_dir/depcomp"
2132219820Sjeff  AMDEPBACKSLASH='\'
2133219820Sjefffi
2134219820Sjeff
2135219820Sjeff
2136219820Sjeffif test "x$enable_dependency_tracking" != xno; then
2137219820Sjeff  AMDEP_TRUE=
2138219820Sjeff  AMDEP_FALSE='#'
2139219820Sjeffelse
2140219820Sjeff  AMDEP_TRUE='#'
2141219820Sjeff  AMDEP_FALSE=
2142219820Sjefffi
2143219820Sjeff
2144219820Sjeff
2145219820Sjeff
2146219820Sjeffac_ext=c
2147219820Sjeffac_cpp='$CPP $CPPFLAGS'
2148219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
2151219820Sjeffif test -n "$ac_tool_prefix"; then
2152219820Sjeff  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2153219820Sjeffset dummy ${ac_tool_prefix}gcc; ac_word=$2
2154219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
2155219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156219820Sjeffif test "${ac_cv_prog_CC+set}" = set; then
2157219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2158219820Sjeffelse
2159219820Sjeff  if test -n "$CC"; then
2160219820Sjeff  ac_cv_prog_CC="$CC" # Let the user override the test.
2161219820Sjeffelse
2162219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163219820Sjefffor as_dir in $PATH
2164219820Sjeffdo
2165219820Sjeff  IFS=$as_save_IFS
2166219820Sjeff  test -z "$as_dir" && as_dir=.
2167219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
2168219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169219820Sjeff    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2170219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171219820Sjeff    break 2
2172219820Sjeff  fi
2173219820Sjeffdone
2174219820Sjeffdone
2175219820Sjeff
2176219820Sjefffi
2177219820Sjefffi
2178219820SjeffCC=$ac_cv_prog_CC
2179219820Sjeffif test -n "$CC"; then
2180219820Sjeff  echo "$as_me:$LINENO: result: $CC" >&5
2181219820Sjeffecho "${ECHO_T}$CC" >&6
2182219820Sjeffelse
2183219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
2184219820Sjeffecho "${ECHO_T}no" >&6
2185219820Sjefffi
2186219820Sjeff
2187219820Sjefffi
2188219820Sjeffif test -z "$ac_cv_prog_CC"; then
2189219820Sjeff  ac_ct_CC=$CC
2190219820Sjeff  # Extract the first word of "gcc", so it can be a program name with args.
2191219820Sjeffset dummy gcc; ac_word=$2
2192219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
2193219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194219820Sjeffif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2195219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2196219820Sjeffelse
2197219820Sjeff  if test -n "$ac_ct_CC"; then
2198219820Sjeff  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2199219820Sjeffelse
2200219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201219820Sjefffor as_dir in $PATH
2202219820Sjeffdo
2203219820Sjeff  IFS=$as_save_IFS
2204219820Sjeff  test -z "$as_dir" && as_dir=.
2205219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
2206219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2207219820Sjeff    ac_cv_prog_ac_ct_CC="gcc"
2208219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209219820Sjeff    break 2
2210219820Sjeff  fi
2211219820Sjeffdone
2212219820Sjeffdone
2213219820Sjeff
2214219820Sjefffi
2215219820Sjefffi
2216219820Sjeffac_ct_CC=$ac_cv_prog_ac_ct_CC
2217219820Sjeffif test -n "$ac_ct_CC"; then
2218219820Sjeff  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2219219820Sjeffecho "${ECHO_T}$ac_ct_CC" >&6
2220219820Sjeffelse
2221219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
2222219820Sjeffecho "${ECHO_T}no" >&6
2223219820Sjefffi
2224219820Sjeff
2225219820Sjeff  CC=$ac_ct_CC
2226219820Sjeffelse
2227219820Sjeff  CC="$ac_cv_prog_CC"
2228219820Sjefffi
2229219820Sjeff
2230219820Sjeffif test -z "$CC"; then
2231219820Sjeff  if test -n "$ac_tool_prefix"; then
2232219820Sjeff  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2233219820Sjeffset dummy ${ac_tool_prefix}cc; ac_word=$2
2234219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
2235219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236219820Sjeffif test "${ac_cv_prog_CC+set}" = set; then
2237219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2238219820Sjeffelse
2239219820Sjeff  if test -n "$CC"; then
2240219820Sjeff  ac_cv_prog_CC="$CC" # Let the user override the test.
2241219820Sjeffelse
2242219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243219820Sjefffor as_dir in $PATH
2244219820Sjeffdo
2245219820Sjeff  IFS=$as_save_IFS
2246219820Sjeff  test -z "$as_dir" && as_dir=.
2247219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
2248219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249219820Sjeff    ac_cv_prog_CC="${ac_tool_prefix}cc"
2250219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251219820Sjeff    break 2
2252219820Sjeff  fi
2253219820Sjeffdone
2254219820Sjeffdone
2255219820Sjeff
2256219820Sjefffi
2257219820Sjefffi
2258219820SjeffCC=$ac_cv_prog_CC
2259219820Sjeffif test -n "$CC"; then
2260219820Sjeff  echo "$as_me:$LINENO: result: $CC" >&5
2261219820Sjeffecho "${ECHO_T}$CC" >&6
2262219820Sjeffelse
2263219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
2264219820Sjeffecho "${ECHO_T}no" >&6
2265219820Sjefffi
2266219820Sjeff
2267219820Sjefffi
2268219820Sjeffif test -z "$ac_cv_prog_CC"; then
2269219820Sjeff  ac_ct_CC=$CC
2270219820Sjeff  # Extract the first word of "cc", so it can be a program name with args.
2271219820Sjeffset dummy cc; ac_word=$2
2272219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
2273219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2274219820Sjeffif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2276219820Sjeffelse
2277219820Sjeff  if test -n "$ac_ct_CC"; then
2278219820Sjeff  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279219820Sjeffelse
2280219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281219820Sjefffor as_dir in $PATH
2282219820Sjeffdo
2283219820Sjeff  IFS=$as_save_IFS
2284219820Sjeff  test -z "$as_dir" && as_dir=.
2285219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
2286219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2287219820Sjeff    ac_cv_prog_ac_ct_CC="cc"
2288219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289219820Sjeff    break 2
2290219820Sjeff  fi
2291219820Sjeffdone
2292219820Sjeffdone
2293219820Sjeff
2294219820Sjefffi
2295219820Sjefffi
2296219820Sjeffac_ct_CC=$ac_cv_prog_ac_ct_CC
2297219820Sjeffif test -n "$ac_ct_CC"; then
2298219820Sjeff  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299219820Sjeffecho "${ECHO_T}$ac_ct_CC" >&6
2300219820Sjeffelse
2301219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
2302219820Sjeffecho "${ECHO_T}no" >&6
2303219820Sjefffi
2304219820Sjeff
2305219820Sjeff  CC=$ac_ct_CC
2306219820Sjeffelse
2307219820Sjeff  CC="$ac_cv_prog_CC"
2308219820Sjefffi
2309219820Sjeff
2310219820Sjefffi
2311219820Sjeffif test -z "$CC"; then
2312219820Sjeff  # Extract the first word of "cc", so it can be a program name with args.
2313219820Sjeffset dummy cc; ac_word=$2
2314219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
2315219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2316219820Sjeffif test "${ac_cv_prog_CC+set}" = set; then
2317219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2318219820Sjeffelse
2319219820Sjeff  if test -n "$CC"; then
2320219820Sjeff  ac_cv_prog_CC="$CC" # Let the user override the test.
2321219820Sjeffelse
2322219820Sjeff  ac_prog_rejected=no
2323219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324219820Sjefffor as_dir in $PATH
2325219820Sjeffdo
2326219820Sjeff  IFS=$as_save_IFS
2327219820Sjeff  test -z "$as_dir" && as_dir=.
2328219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
2329219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330219820Sjeff    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2331219820Sjeff       ac_prog_rejected=yes
2332219820Sjeff       continue
2333219820Sjeff     fi
2334219820Sjeff    ac_cv_prog_CC="cc"
2335219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336219820Sjeff    break 2
2337219820Sjeff  fi
2338219820Sjeffdone
2339219820Sjeffdone
2340219820Sjeff
2341219820Sjeffif test $ac_prog_rejected = yes; then
2342219820Sjeff  # We found a bogon in the path, so make sure we never use it.
2343219820Sjeff  set dummy $ac_cv_prog_CC
2344219820Sjeff  shift
2345219820Sjeff  if test $# != 0; then
2346219820Sjeff    # We chose a different compiler from the bogus one.
2347219820Sjeff    # However, it has the same basename, so the bogon will be chosen
2348219820Sjeff    # first if we set CC to just the basename; use the full file name.
2349219820Sjeff    shift
2350219820Sjeff    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2351219820Sjeff  fi
2352219820Sjefffi
2353219820Sjefffi
2354219820Sjefffi
2355219820SjeffCC=$ac_cv_prog_CC
2356219820Sjeffif test -n "$CC"; then
2357219820Sjeff  echo "$as_me:$LINENO: result: $CC" >&5
2358219820Sjeffecho "${ECHO_T}$CC" >&6
2359219820Sjeffelse
2360219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
2361219820Sjeffecho "${ECHO_T}no" >&6
2362219820Sjefffi
2363219820Sjeff
2364219820Sjefffi
2365219820Sjeffif test -z "$CC"; then
2366219820Sjeff  if test -n "$ac_tool_prefix"; then
2367219820Sjeff  for ac_prog in cl
2368219820Sjeff  do
2369219820Sjeff    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2370219820Sjeffset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2371219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
2372219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373219820Sjeffif test "${ac_cv_prog_CC+set}" = set; then
2374219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2375219820Sjeffelse
2376219820Sjeff  if test -n "$CC"; then
2377219820Sjeff  ac_cv_prog_CC="$CC" # Let the user override the test.
2378219820Sjeffelse
2379219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380219820Sjefffor as_dir in $PATH
2381219820Sjeffdo
2382219820Sjeff  IFS=$as_save_IFS
2383219820Sjeff  test -z "$as_dir" && as_dir=.
2384219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
2385219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386219820Sjeff    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2387219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388219820Sjeff    break 2
2389219820Sjeff  fi
2390219820Sjeffdone
2391219820Sjeffdone
2392219820Sjeff
2393219820Sjefffi
2394219820Sjefffi
2395219820SjeffCC=$ac_cv_prog_CC
2396219820Sjeffif test -n "$CC"; then
2397219820Sjeff  echo "$as_me:$LINENO: result: $CC" >&5
2398219820Sjeffecho "${ECHO_T}$CC" >&6
2399219820Sjeffelse
2400219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
2401219820Sjeffecho "${ECHO_T}no" >&6
2402219820Sjefffi
2403219820Sjeff
2404219820Sjeff    test -n "$CC" && break
2405219820Sjeff  done
2406219820Sjefffi
2407219820Sjeffif test -z "$CC"; then
2408219820Sjeff  ac_ct_CC=$CC
2409219820Sjeff  for ac_prog in cl
2410219820Sjeffdo
2411219820Sjeff  # Extract the first word of "$ac_prog", so it can be a program name with args.
2412219820Sjeffset dummy $ac_prog; ac_word=$2
2413219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
2414219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2415219820Sjeffif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2416219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2417219820Sjeffelse
2418219820Sjeff  if test -n "$ac_ct_CC"; then
2419219820Sjeff  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2420219820Sjeffelse
2421219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422219820Sjefffor as_dir in $PATH
2423219820Sjeffdo
2424219820Sjeff  IFS=$as_save_IFS
2425219820Sjeff  test -z "$as_dir" && as_dir=.
2426219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
2427219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2428219820Sjeff    ac_cv_prog_ac_ct_CC="$ac_prog"
2429219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430219820Sjeff    break 2
2431219820Sjeff  fi
2432219820Sjeffdone
2433219820Sjeffdone
2434219820Sjeff
2435219820Sjefffi
2436219820Sjefffi
2437219820Sjeffac_ct_CC=$ac_cv_prog_ac_ct_CC
2438219820Sjeffif test -n "$ac_ct_CC"; then
2439219820Sjeff  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2440219820Sjeffecho "${ECHO_T}$ac_ct_CC" >&6
2441219820Sjeffelse
2442219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
2443219820Sjeffecho "${ECHO_T}no" >&6
2444219820Sjefffi
2445219820Sjeff
2446219820Sjeff  test -n "$ac_ct_CC" && break
2447219820Sjeffdone
2448219820Sjeff
2449219820Sjeff  CC=$ac_ct_CC
2450219820Sjefffi
2451219820Sjeff
2452219820Sjefffi
2453219820Sjeff
2454219820Sjeff
2455219820Sjefftest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2456219820SjeffSee \`config.log' for more details." >&5
2457219820Sjeffecho "$as_me: error: no acceptable C compiler found in \$PATH
2458219820SjeffSee \`config.log' for more details." >&2;}
2459219820Sjeff   { (exit 1); exit 1; }; }
2460219820Sjeff
2461219820Sjeff# Provide some information about the compiler.
2462219820Sjeffecho "$as_me:$LINENO:" \
2463219820Sjeff     "checking for C compiler version" >&5
2464219820Sjeffac_compiler=`set X $ac_compile; echo $2`
2465219820Sjeff{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2466219820Sjeff  (eval $ac_compiler --version </dev/null >&5) 2>&5
2467219820Sjeff  ac_status=$?
2468219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469219820Sjeff  (exit $ac_status); }
2470219820Sjeff{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2471219820Sjeff  (eval $ac_compiler -v </dev/null >&5) 2>&5
2472219820Sjeff  ac_status=$?
2473219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474219820Sjeff  (exit $ac_status); }
2475219820Sjeff{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2476219820Sjeff  (eval $ac_compiler -V </dev/null >&5) 2>&5
2477219820Sjeff  ac_status=$?
2478219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479219820Sjeff  (exit $ac_status); }
2480219820Sjeff
2481219820Sjeffcat >conftest.$ac_ext <<_ACEOF
2482219820Sjeff/* confdefs.h.  */
2483219820Sjeff_ACEOF
2484219820Sjeffcat confdefs.h >>conftest.$ac_ext
2485219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
2486219820Sjeff/* end confdefs.h.  */
2487219820Sjeff
2488219820Sjeffint
2489219820Sjeffmain ()
2490219820Sjeff{
2491219820Sjeff
2492219820Sjeff  ;
2493219820Sjeff  return 0;
2494219820Sjeff}
2495219820Sjeff_ACEOF
2496219820Sjeffac_clean_files_save=$ac_clean_files
2497219820Sjeffac_clean_files="$ac_clean_files a.out a.exe b.out"
2498219820Sjeff# Try to create an executable without -o first, disregard a.out.
2499219820Sjeff# It will help us diagnose broken compilers, and finding out an intuition
2500219820Sjeff# of exeext.
2501219820Sjeffecho "$as_me:$LINENO: checking for C compiler default output file name" >&5
2502219820Sjeffecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2503219820Sjeffac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2505219820Sjeff  (eval $ac_link_default) 2>&5
2506219820Sjeff  ac_status=$?
2507219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508219820Sjeff  (exit $ac_status); }; then
2509219820Sjeff  # Find the output, starting from the most likely.  This scheme is
2510219820Sjeff# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2511219820Sjeff# resort.
2512219820Sjeff
2513219820Sjeff# Be careful to initialize this variable, since it used to be cached.
2514219820Sjeff# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2515219820Sjeffac_cv_exeext=
2516219820Sjeff# b.out is created by i960 compilers.
2517219820Sjefffor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2518219820Sjeffdo
2519219820Sjeff  test -f "$ac_file" || continue
2520219820Sjeff  case $ac_file in
2521219820Sjeff    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2522219820Sjeff	;;
2523219820Sjeff    conftest.$ac_ext )
2524219820Sjeff	# This is the source file.
2525219820Sjeff	;;
2526219820Sjeff    [ab].out )
2527219820Sjeff	# We found the default executable, but exeext='' is most
2528219820Sjeff	# certainly right.
2529219820Sjeff	break;;
2530219820Sjeff    *.* )
2531219820Sjeff	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532219820Sjeff	# FIXME: I believe we export ac_cv_exeext for Libtool,
2533219820Sjeff	# but it would be cool to find out if it's true.  Does anybody
2534219820Sjeff	# maintain Libtool? --akim.
2535219820Sjeff	export ac_cv_exeext
2536219820Sjeff	break;;
2537219820Sjeff    * )
2538219820Sjeff	break;;
2539219820Sjeff  esac
2540219820Sjeffdone
2541219820Sjeffelse
2542219820Sjeff  echo "$as_me: failed program was:" >&5
2543219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
2544219820Sjeff
2545219820Sjeff{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2546219820SjeffSee \`config.log' for more details." >&5
2547219820Sjeffecho "$as_me: error: C compiler cannot create executables
2548219820SjeffSee \`config.log' for more details." >&2;}
2549219820Sjeff   { (exit 77); exit 77; }; }
2550219820Sjefffi
2551219820Sjeff
2552219820Sjeffac_exeext=$ac_cv_exeext
2553219820Sjeffecho "$as_me:$LINENO: result: $ac_file" >&5
2554219820Sjeffecho "${ECHO_T}$ac_file" >&6
2555219820Sjeff
2556219820Sjeff# Check the compiler produces executables we can run.  If not, either
2557219820Sjeff# the compiler is broken, or we cross compile.
2558219820Sjeffecho "$as_me:$LINENO: checking whether the C compiler works" >&5
2559219820Sjeffecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2560219820Sjeff# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2561219820Sjeff# If not cross compiling, check that we can run a simple program.
2562219820Sjeffif test "$cross_compiling" != yes; then
2563219820Sjeff  if { ac_try='./$ac_file'
2564219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565219820Sjeff  (eval $ac_try) 2>&5
2566219820Sjeff  ac_status=$?
2567219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568219820Sjeff  (exit $ac_status); }; }; then
2569219820Sjeff    cross_compiling=no
2570219820Sjeff  else
2571219820Sjeff    if test "$cross_compiling" = maybe; then
2572219820Sjeff	cross_compiling=yes
2573219820Sjeff    else
2574219820Sjeff	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2575219820SjeffIf you meant to cross compile, use \`--host'.
2576219820SjeffSee \`config.log' for more details." >&5
2577219820Sjeffecho "$as_me: error: cannot run C compiled programs.
2578219820SjeffIf you meant to cross compile, use \`--host'.
2579219820SjeffSee \`config.log' for more details." >&2;}
2580219820Sjeff   { (exit 1); exit 1; }; }
2581219820Sjeff    fi
2582219820Sjeff  fi
2583219820Sjefffi
2584219820Sjeffecho "$as_me:$LINENO: result: yes" >&5
2585219820Sjeffecho "${ECHO_T}yes" >&6
2586219820Sjeff
2587219820Sjeffrm -f a.out a.exe conftest$ac_cv_exeext b.out
2588219820Sjeffac_clean_files=$ac_clean_files_save
2589219820Sjeff# Check the compiler produces executables we can run.  If not, either
2590219820Sjeff# the compiler is broken, or we cross compile.
2591219820Sjeffecho "$as_me:$LINENO: checking whether we are cross compiling" >&5
2592219820Sjeffecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2593219820Sjeffecho "$as_me:$LINENO: result: $cross_compiling" >&5
2594219820Sjeffecho "${ECHO_T}$cross_compiling" >&6
2595219820Sjeff
2596219820Sjeffecho "$as_me:$LINENO: checking for suffix of executables" >&5
2597219820Sjeffecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2598219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599219820Sjeff  (eval $ac_link) 2>&5
2600219820Sjeff  ac_status=$?
2601219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602219820Sjeff  (exit $ac_status); }; then
2603219820Sjeff  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2604219820Sjeff# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2605219820Sjeff# work properly (i.e., refer to `conftest.exe'), while it won't with
2606219820Sjeff# `rm'.
2607219820Sjefffor ac_file in conftest.exe conftest conftest.*; do
2608219820Sjeff  test -f "$ac_file" || continue
2609219820Sjeff  case $ac_file in
2610219820Sjeff    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2611219820Sjeff    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2612219820Sjeff	  export ac_cv_exeext
2613219820Sjeff	  break;;
2614219820Sjeff    * ) break;;
2615219820Sjeff  esac
2616219820Sjeffdone
2617219820Sjeffelse
2618219820Sjeff  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2619219820SjeffSee \`config.log' for more details." >&5
2620219820Sjeffecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
2621219820SjeffSee \`config.log' for more details." >&2;}
2622219820Sjeff   { (exit 1); exit 1; }; }
2623219820Sjefffi
2624219820Sjeff
2625219820Sjeffrm -f conftest$ac_cv_exeext
2626219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2627219820Sjeffecho "${ECHO_T}$ac_cv_exeext" >&6
2628219820Sjeff
2629219820Sjeffrm -f conftest.$ac_ext
2630219820SjeffEXEEXT=$ac_cv_exeext
2631219820Sjeffac_exeext=$EXEEXT
2632219820Sjeffecho "$as_me:$LINENO: checking for suffix of object files" >&5
2633219820Sjeffecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2634219820Sjeffif test "${ac_cv_objext+set}" = set; then
2635219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2636219820Sjeffelse
2637219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
2638219820Sjeff/* confdefs.h.  */
2639219820Sjeff_ACEOF
2640219820Sjeffcat confdefs.h >>conftest.$ac_ext
2641219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
2642219820Sjeff/* end confdefs.h.  */
2643219820Sjeff
2644219820Sjeffint
2645219820Sjeffmain ()
2646219820Sjeff{
2647219820Sjeff
2648219820Sjeff  ;
2649219820Sjeff  return 0;
2650219820Sjeff}
2651219820Sjeff_ACEOF
2652219820Sjeffrm -f conftest.o conftest.obj
2653219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654219820Sjeff  (eval $ac_compile) 2>&5
2655219820Sjeff  ac_status=$?
2656219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657219820Sjeff  (exit $ac_status); }; then
2658219820Sjeff  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2659219820Sjeff  case $ac_file in
2660219820Sjeff    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2661219820Sjeff    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2662219820Sjeff       break;;
2663219820Sjeff  esac
2664219820Sjeffdone
2665219820Sjeffelse
2666219820Sjeff  echo "$as_me: failed program was:" >&5
2667219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
2668219820Sjeff
2669219820Sjeff{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2670219820SjeffSee \`config.log' for more details." >&5
2671219820Sjeffecho "$as_me: error: cannot compute suffix of object files: cannot compile
2672219820SjeffSee \`config.log' for more details." >&2;}
2673219820Sjeff   { (exit 1); exit 1; }; }
2674219820Sjefffi
2675219820Sjeff
2676219820Sjeffrm -f conftest.$ac_cv_objext conftest.$ac_ext
2677219820Sjefffi
2678219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_objext" >&5
2679219820Sjeffecho "${ECHO_T}$ac_cv_objext" >&6
2680219820SjeffOBJEXT=$ac_cv_objext
2681219820Sjeffac_objext=$OBJEXT
2682219820Sjeffecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2683219820Sjeffecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2684219820Sjeffif test "${ac_cv_c_compiler_gnu+set}" = set; then
2685219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2686219820Sjeffelse
2687219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
2688219820Sjeff/* confdefs.h.  */
2689219820Sjeff_ACEOF
2690219820Sjeffcat confdefs.h >>conftest.$ac_ext
2691219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
2692219820Sjeff/* end confdefs.h.  */
2693219820Sjeff
2694219820Sjeffint
2695219820Sjeffmain ()
2696219820Sjeff{
2697219820Sjeff#ifndef __GNUC__
2698219820Sjeff       choke me
2699219820Sjeff#endif
2700219820Sjeff
2701219820Sjeff  ;
2702219820Sjeff  return 0;
2703219820Sjeff}
2704219820Sjeff_ACEOF
2705219820Sjeffrm -f conftest.$ac_objext
2706219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707219820Sjeff  (eval $ac_compile) 2>conftest.er1
2708219820Sjeff  ac_status=$?
2709219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
2710219820Sjeff  rm -f conftest.er1
2711219820Sjeff  cat conftest.err >&5
2712219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713219820Sjeff  (exit $ac_status); } &&
2714219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2715219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716219820Sjeff  (eval $ac_try) 2>&5
2717219820Sjeff  ac_status=$?
2718219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719219820Sjeff  (exit $ac_status); }; } &&
2720219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
2721219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722219820Sjeff  (eval $ac_try) 2>&5
2723219820Sjeff  ac_status=$?
2724219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725219820Sjeff  (exit $ac_status); }; }; then
2726219820Sjeff  ac_compiler_gnu=yes
2727219820Sjeffelse
2728219820Sjeff  echo "$as_me: failed program was:" >&5
2729219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
2730219820Sjeff
2731219820Sjeffac_compiler_gnu=no
2732219820Sjefffi
2733219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734219820Sjeffac_cv_c_compiler_gnu=$ac_compiler_gnu
2735219820Sjeff
2736219820Sjefffi
2737219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2738219820Sjeffecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2739219820SjeffGCC=`test $ac_compiler_gnu = yes && echo yes`
2740219820Sjeffac_test_CFLAGS=${CFLAGS+set}
2741219820Sjeffac_save_CFLAGS=$CFLAGS
2742219820SjeffCFLAGS="-g"
2743219820Sjeffecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2744219820Sjeffecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2745219820Sjeffif test "${ac_cv_prog_cc_g+set}" = set; then
2746219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2747219820Sjeffelse
2748219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
2749219820Sjeff/* confdefs.h.  */
2750219820Sjeff_ACEOF
2751219820Sjeffcat confdefs.h >>conftest.$ac_ext
2752219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
2753219820Sjeff/* end confdefs.h.  */
2754219820Sjeff
2755219820Sjeffint
2756219820Sjeffmain ()
2757219820Sjeff{
2758219820Sjeff
2759219820Sjeff  ;
2760219820Sjeff  return 0;
2761219820Sjeff}
2762219820Sjeff_ACEOF
2763219820Sjeffrm -f conftest.$ac_objext
2764219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765219820Sjeff  (eval $ac_compile) 2>conftest.er1
2766219820Sjeff  ac_status=$?
2767219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
2768219820Sjeff  rm -f conftest.er1
2769219820Sjeff  cat conftest.err >&5
2770219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771219820Sjeff  (exit $ac_status); } &&
2772219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2773219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774219820Sjeff  (eval $ac_try) 2>&5
2775219820Sjeff  ac_status=$?
2776219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777219820Sjeff  (exit $ac_status); }; } &&
2778219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
2779219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780219820Sjeff  (eval $ac_try) 2>&5
2781219820Sjeff  ac_status=$?
2782219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783219820Sjeff  (exit $ac_status); }; }; then
2784219820Sjeff  ac_cv_prog_cc_g=yes
2785219820Sjeffelse
2786219820Sjeff  echo "$as_me: failed program was:" >&5
2787219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
2788219820Sjeff
2789219820Sjeffac_cv_prog_cc_g=no
2790219820Sjefffi
2791219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792219820Sjefffi
2793219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2794219820Sjeffecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
2795219820Sjeffif test "$ac_test_CFLAGS" = set; then
2796219820Sjeff  CFLAGS=$ac_save_CFLAGS
2797219820Sjeffelif test $ac_cv_prog_cc_g = yes; then
2798219820Sjeff  if test "$GCC" = yes; then
2799219820Sjeff    CFLAGS="-g -O2"
2800219820Sjeff  else
2801219820Sjeff    CFLAGS="-g"
2802219820Sjeff  fi
2803219820Sjeffelse
2804219820Sjeff  if test "$GCC" = yes; then
2805219820Sjeff    CFLAGS="-O2"
2806219820Sjeff  else
2807219820Sjeff    CFLAGS=
2808219820Sjeff  fi
2809219820Sjefffi
2810219820Sjeffecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2811219820Sjeffecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2812219820Sjeffif test "${ac_cv_prog_cc_stdc+set}" = set; then
2813219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
2814219820Sjeffelse
2815219820Sjeff  ac_cv_prog_cc_stdc=no
2816219820Sjeffac_save_CC=$CC
2817219820Sjeffcat >conftest.$ac_ext <<_ACEOF
2818219820Sjeff/* confdefs.h.  */
2819219820Sjeff_ACEOF
2820219820Sjeffcat confdefs.h >>conftest.$ac_ext
2821219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
2822219820Sjeff/* end confdefs.h.  */
2823219820Sjeff#include <stdarg.h>
2824219820Sjeff#include <stdio.h>
2825219820Sjeff#include <sys/types.h>
2826219820Sjeff#include <sys/stat.h>
2827219820Sjeff/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2828219820Sjeffstruct buf { int x; };
2829219820SjeffFILE * (*rcsopen) (struct buf *, struct stat *, int);
2830219820Sjeffstatic char *e (p, i)
2831219820Sjeff     char **p;
2832219820Sjeff     int i;
2833219820Sjeff{
2834219820Sjeff  return p[i];
2835219820Sjeff}
2836219820Sjeffstatic char *f (char * (*g) (char **, int), char **p, ...)
2837219820Sjeff{
2838219820Sjeff  char *s;
2839219820Sjeff  va_list v;
2840219820Sjeff  va_start (v,p);
2841219820Sjeff  s = g (p, va_arg (v,int));
2842219820Sjeff  va_end (v);
2843219820Sjeff  return s;
2844219820Sjeff}
2845219820Sjeff
2846219820Sjeff/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2847219820Sjeff   function prototypes and stuff, but not '\xHH' hex character constants.
2848219820Sjeff   These don't provoke an error unfortunately, instead are silently treated
2849219820Sjeff   as 'x'.  The following induces an error, until -std1 is added to get
2850219820Sjeff   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2851219820Sjeff   array size at least.  It's necessary to write '\x00'==0 to get something
2852219820Sjeff   that's true only with -std1.  */
2853219820Sjeffint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2854219820Sjeff
2855219820Sjeffint test (int i, double x);
2856219820Sjeffstruct s1 {int (*f) (int a);};
2857219820Sjeffstruct s2 {int (*f) (double a);};
2858219820Sjeffint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2859219820Sjeffint argc;
2860219820Sjeffchar **argv;
2861219820Sjeffint
2862219820Sjeffmain ()
2863219820Sjeff{
2864219820Sjeffreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2865219820Sjeff  ;
2866219820Sjeff  return 0;
2867219820Sjeff}
2868219820Sjeff_ACEOF
2869219820Sjeff# Don't try gcc -ansi; that turns off useful extensions and
2870219820Sjeff# breaks some systems' header files.
2871219820Sjeff# AIX			-qlanglvl=ansi
2872219820Sjeff# Ultrix and OSF/1	-std1
2873219820Sjeff# HP-UX 10.20 and later	-Ae
2874219820Sjeff# HP-UX older versions	-Aa -D_HPUX_SOURCE
2875219820Sjeff# SVR4			-Xc -D__EXTENSIONS__
2876219820Sjefffor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2877219820Sjeffdo
2878219820Sjeff  CC="$ac_save_CC $ac_arg"
2879219820Sjeff  rm -f conftest.$ac_objext
2880219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881219820Sjeff  (eval $ac_compile) 2>conftest.er1
2882219820Sjeff  ac_status=$?
2883219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
2884219820Sjeff  rm -f conftest.er1
2885219820Sjeff  cat conftest.err >&5
2886219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887219820Sjeff  (exit $ac_status); } &&
2888219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2889219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890219820Sjeff  (eval $ac_try) 2>&5
2891219820Sjeff  ac_status=$?
2892219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893219820Sjeff  (exit $ac_status); }; } &&
2894219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
2895219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896219820Sjeff  (eval $ac_try) 2>&5
2897219820Sjeff  ac_status=$?
2898219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899219820Sjeff  (exit $ac_status); }; }; then
2900219820Sjeff  ac_cv_prog_cc_stdc=$ac_arg
2901219820Sjeffbreak
2902219820Sjeffelse
2903219820Sjeff  echo "$as_me: failed program was:" >&5
2904219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
2905219820Sjeff
2906219820Sjefffi
2907219820Sjeffrm -f conftest.err conftest.$ac_objext
2908219820Sjeffdone
2909219820Sjeffrm -f conftest.$ac_ext conftest.$ac_objext
2910219820SjeffCC=$ac_save_CC
2911219820Sjeff
2912219820Sjefffi
2913219820Sjeff
2914219820Sjeffcase "x$ac_cv_prog_cc_stdc" in
2915219820Sjeff  x|xno)
2916219820Sjeff    echo "$as_me:$LINENO: result: none needed" >&5
2917219820Sjeffecho "${ECHO_T}none needed" >&6 ;;
2918219820Sjeff  *)
2919219820Sjeff    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2920219820Sjeffecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2921219820Sjeff    CC="$CC $ac_cv_prog_cc_stdc" ;;
2922219820Sjeffesac
2923219820Sjeff
2924219820Sjeff# Some people use a C++ compiler to compile C.  Since we use `exit',
2925219820Sjeff# in C++ we need to declare it.  In case someone uses the same compiler
2926219820Sjeff# for both compiling C and C++ we need to have the C++ compiler decide
2927219820Sjeff# the declaration of exit, since it's the most demanding environment.
2928219820Sjeffcat >conftest.$ac_ext <<_ACEOF
2929219820Sjeff#ifndef __cplusplus
2930219820Sjeff  choke me
2931219820Sjeff#endif
2932219820Sjeff_ACEOF
2933219820Sjeffrm -f conftest.$ac_objext
2934219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935219820Sjeff  (eval $ac_compile) 2>conftest.er1
2936219820Sjeff  ac_status=$?
2937219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
2938219820Sjeff  rm -f conftest.er1
2939219820Sjeff  cat conftest.err >&5
2940219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941219820Sjeff  (exit $ac_status); } &&
2942219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2943219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944219820Sjeff  (eval $ac_try) 2>&5
2945219820Sjeff  ac_status=$?
2946219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947219820Sjeff  (exit $ac_status); }; } &&
2948219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
2949219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950219820Sjeff  (eval $ac_try) 2>&5
2951219820Sjeff  ac_status=$?
2952219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953219820Sjeff  (exit $ac_status); }; }; then
2954219820Sjeff  for ac_declaration in \
2955219820Sjeff   '' \
2956219820Sjeff   'extern "C" void std::exit (int) throw (); using std::exit;' \
2957219820Sjeff   'extern "C" void std::exit (int); using std::exit;' \
2958219820Sjeff   'extern "C" void exit (int) throw ();' \
2959219820Sjeff   'extern "C" void exit (int);' \
2960219820Sjeff   'void exit (int);'
2961219820Sjeffdo
2962219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
2963219820Sjeff/* confdefs.h.  */
2964219820Sjeff_ACEOF
2965219820Sjeffcat confdefs.h >>conftest.$ac_ext
2966219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
2967219820Sjeff/* end confdefs.h.  */
2968219820Sjeff$ac_declaration
2969219820Sjeff#include <stdlib.h>
2970219820Sjeffint
2971219820Sjeffmain ()
2972219820Sjeff{
2973219820Sjeffexit (42);
2974219820Sjeff  ;
2975219820Sjeff  return 0;
2976219820Sjeff}
2977219820Sjeff_ACEOF
2978219820Sjeffrm -f conftest.$ac_objext
2979219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980219820Sjeff  (eval $ac_compile) 2>conftest.er1
2981219820Sjeff  ac_status=$?
2982219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
2983219820Sjeff  rm -f conftest.er1
2984219820Sjeff  cat conftest.err >&5
2985219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986219820Sjeff  (exit $ac_status); } &&
2987219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2988219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989219820Sjeff  (eval $ac_try) 2>&5
2990219820Sjeff  ac_status=$?
2991219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992219820Sjeff  (exit $ac_status); }; } &&
2993219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
2994219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995219820Sjeff  (eval $ac_try) 2>&5
2996219820Sjeff  ac_status=$?
2997219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998219820Sjeff  (exit $ac_status); }; }; then
2999219820Sjeff  :
3000219820Sjeffelse
3001219820Sjeff  echo "$as_me: failed program was:" >&5
3002219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
3003219820Sjeff
3004219820Sjeffcontinue
3005219820Sjefffi
3006219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
3008219820Sjeff/* confdefs.h.  */
3009219820Sjeff_ACEOF
3010219820Sjeffcat confdefs.h >>conftest.$ac_ext
3011219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
3012219820Sjeff/* end confdefs.h.  */
3013219820Sjeff$ac_declaration
3014219820Sjeffint
3015219820Sjeffmain ()
3016219820Sjeff{
3017219820Sjeffexit (42);
3018219820Sjeff  ;
3019219820Sjeff  return 0;
3020219820Sjeff}
3021219820Sjeff_ACEOF
3022219820Sjeffrm -f conftest.$ac_objext
3023219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024219820Sjeff  (eval $ac_compile) 2>conftest.er1
3025219820Sjeff  ac_status=$?
3026219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
3027219820Sjeff  rm -f conftest.er1
3028219820Sjeff  cat conftest.err >&5
3029219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030219820Sjeff  (exit $ac_status); } &&
3031219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3032219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033219820Sjeff  (eval $ac_try) 2>&5
3034219820Sjeff  ac_status=$?
3035219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036219820Sjeff  (exit $ac_status); }; } &&
3037219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
3038219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039219820Sjeff  (eval $ac_try) 2>&5
3040219820Sjeff  ac_status=$?
3041219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042219820Sjeff  (exit $ac_status); }; }; then
3043219820Sjeff  break
3044219820Sjeffelse
3045219820Sjeff  echo "$as_me: failed program was:" >&5
3046219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
3047219820Sjeff
3048219820Sjefffi
3049219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050219820Sjeffdone
3051219820Sjeffrm -f conftest*
3052219820Sjeffif test -n "$ac_declaration"; then
3053219820Sjeff  echo '#ifdef __cplusplus' >>confdefs.h
3054219820Sjeff  echo $ac_declaration      >>confdefs.h
3055219820Sjeff  echo '#endif'             >>confdefs.h
3056219820Sjefffi
3057219820Sjeff
3058219820Sjeffelse
3059219820Sjeff  echo "$as_me: failed program was:" >&5
3060219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
3061219820Sjeff
3062219820Sjefffi
3063219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064219820Sjeffac_ext=c
3065219820Sjeffac_cpp='$CPP $CPPFLAGS'
3066219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
3069219820Sjeff
3070219820Sjeffdepcc="$CC"   am_compiler_list=
3071219820Sjeff
3072219820Sjeffecho "$as_me:$LINENO: checking dependency style of $depcc" >&5
3073219820Sjeffecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3074219820Sjeffif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3075219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
3076219820Sjeffelse
3077219820Sjeff  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3078219820Sjeff  # We make a subdir and do the tests there.  Otherwise we can end up
3079219820Sjeff  # making bogus files that we don't know about and never remove.  For
3080219820Sjeff  # instance it was reported that on HP-UX the gcc test will end up
3081219820Sjeff  # making a dummy file named `D' -- because `-MD' means `put the output
3082219820Sjeff  # in D'.
3083219820Sjeff  mkdir conftest.dir
3084219820Sjeff  # Copy depcomp to subdir because otherwise we won't find it if we're
3085219820Sjeff  # using a relative directory.
3086219820Sjeff  cp "$am_depcomp" conftest.dir
3087219820Sjeff  cd conftest.dir
3088219820Sjeff  # We will build objects and dependencies in a subdirectory because
3089219820Sjeff  # it helps to detect inapplicable dependency modes.  For instance
3090219820Sjeff  # both Tru64's cc and ICC support -MD to output dependencies as a
3091219820Sjeff  # side effect of compilation, but ICC will put the dependencies in
3092219820Sjeff  # the current directory while Tru64 will put them in the object
3093219820Sjeff  # directory.
3094219820Sjeff  mkdir sub
3095219820Sjeff
3096219820Sjeff  am_cv_CC_dependencies_compiler_type=none
3097219820Sjeff  if test "$am_compiler_list" = ""; then
3098219820Sjeff     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3099219820Sjeff  fi
3100219820Sjeff  for depmode in $am_compiler_list; do
3101219820Sjeff    # Setup a source with many dependencies, because some compilers
3102219820Sjeff    # like to wrap large dependency lists on column 80 (with \), and
3103219820Sjeff    # we should not choose a depcomp mode which is confused by this.
3104219820Sjeff    #
3105219820Sjeff    # We need to recreate these files for each test, as the compiler may
3106219820Sjeff    # overwrite some of them when testing with obscure command lines.
3107219820Sjeff    # This happens at least with the AIX C compiler.
3108219820Sjeff    : > sub/conftest.c
3109219820Sjeff    for i in 1 2 3 4 5 6; do
3110219820Sjeff      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3111219820Sjeff      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3112219820Sjeff      # Solaris 8's {/usr,}/bin/sh.
3113219820Sjeff      touch sub/conftst$i.h
3114219820Sjeff    done
3115219820Sjeff    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3116219820Sjeff
3117219820Sjeff    case $depmode in
3118219820Sjeff    nosideeffect)
3119219820Sjeff      # after this tag, mechanisms are not by side-effect, so they'll
3120219820Sjeff      # only be used when explicitly requested
3121219820Sjeff      if test "x$enable_dependency_tracking" = xyes; then
3122219820Sjeff	continue
3123219820Sjeff      else
3124219820Sjeff	break
3125219820Sjeff      fi
3126219820Sjeff      ;;
3127219820Sjeff    none) break ;;
3128219820Sjeff    esac
3129219820Sjeff    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3130219820Sjeff    # mode.  It turns out that the SunPro C++ compiler does not properly
3131219820Sjeff    # handle `-M -o', and we need to detect this.
3132219820Sjeff    if depmode=$depmode \
3133219820Sjeff       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3134219820Sjeff       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3135219820Sjeff       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3136219820Sjeff         >/dev/null 2>conftest.err &&
3137219820Sjeff       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3138219820Sjeff       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3139219820Sjeff       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3140219820Sjeff      # icc doesn't choke on unknown options, it will just issue warnings
3141219820Sjeff      # or remarks (even with -Werror).  So we grep stderr for any message
3142219820Sjeff      # that says an option was ignored or not supported.
3143219820Sjeff      # When given -MP, icc 7.0 and 7.1 complain thusly:
3144219820Sjeff      #   icc: Command line warning: ignoring option '-M'; no argument required
3145219820Sjeff      # The diagnosis changed in icc 8.0:
3146219820Sjeff      #   icc: Command line remark: option '-MP' not supported
3147219820Sjeff      if (grep 'ignoring option' conftest.err ||
3148219820Sjeff          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3149219820Sjeff        am_cv_CC_dependencies_compiler_type=$depmode
3150219820Sjeff        break
3151219820Sjeff      fi
3152219820Sjeff    fi
3153219820Sjeff  done
3154219820Sjeff
3155219820Sjeff  cd ..
3156219820Sjeff  rm -rf conftest.dir
3157219820Sjeffelse
3158219820Sjeff  am_cv_CC_dependencies_compiler_type=none
3159219820Sjefffi
3160219820Sjeff
3161219820Sjefffi
3162219820Sjeffecho "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3163219820Sjeffecho "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3164219820SjeffCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3165219820Sjeff
3166219820Sjeff
3167219820Sjeff
3168219820Sjeffif
3169219820Sjeff  test "x$enable_dependency_tracking" != xno \
3170219820Sjeff  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3171219820Sjeff  am__fastdepCC_TRUE=
3172219820Sjeff  am__fastdepCC_FALSE='#'
3173219820Sjeffelse
3174219820Sjeff  am__fastdepCC_TRUE='#'
3175219820Sjeff  am__fastdepCC_FALSE=
3176219820Sjefffi
3177219820Sjeff
3178219820Sjeff
3179219820Sjeffecho "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3180219820Sjeffecho $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3181219820Sjeffif test "${lt_cv_path_SED+set}" = set; then
3182219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
3183219820Sjeffelse
3184219820Sjeff  # Loop through the user's path and test for sed and gsed.
3185219820Sjeff# Then use that list of sed's as ones to test for truncation.
3186219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187219820Sjefffor as_dir in $PATH
3188219820Sjeffdo
3189219820Sjeff  IFS=$as_save_IFS
3190219820Sjeff  test -z "$as_dir" && as_dir=.
3191219820Sjeff  for lt_ac_prog in sed gsed; do
3192219820Sjeff    for ac_exec_ext in '' $ac_executable_extensions; do
3193219820Sjeff      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3194219820Sjeff        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3195219820Sjeff      fi
3196219820Sjeff    done
3197219820Sjeff  done
3198219820Sjeffdone
3199219820Sjefflt_ac_max=0
3200219820Sjefflt_ac_count=0
3201219820Sjeff# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3202219820Sjeff# along with /bin/sed that truncates output.
3203219820Sjefffor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3204219820Sjeff  test ! -f $lt_ac_sed && continue
3205219820Sjeff  cat /dev/null > conftest.in
3206219820Sjeff  lt_ac_count=0
3207219820Sjeff  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3208219820Sjeff  # Check for GNU sed and select it if it is found.
3209219820Sjeff  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3210219820Sjeff    lt_cv_path_SED=$lt_ac_sed
3211219820Sjeff    break
3212219820Sjeff  fi
3213219820Sjeff  while true; do
3214219820Sjeff    cat conftest.in conftest.in >conftest.tmp
3215219820Sjeff    mv conftest.tmp conftest.in
3216219820Sjeff    cp conftest.in conftest.nl
3217219820Sjeff    echo >>conftest.nl
3218219820Sjeff    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3219219820Sjeff    cmp -s conftest.out conftest.nl || break
3220219820Sjeff    # 10000 chars as input seems more than enough
3221219820Sjeff    test $lt_ac_count -gt 10 && break
3222219820Sjeff    lt_ac_count=`expr $lt_ac_count + 1`
3223219820Sjeff    if test $lt_ac_count -gt $lt_ac_max; then
3224219820Sjeff      lt_ac_max=$lt_ac_count
3225219820Sjeff      lt_cv_path_SED=$lt_ac_sed
3226219820Sjeff    fi
3227219820Sjeff  done
3228219820Sjeffdone
3229219820Sjeff
3230219820Sjefffi
3231219820Sjeff
3232219820SjeffSED=$lt_cv_path_SED
3233219820Sjeffecho "$as_me:$LINENO: result: $SED" >&5
3234219820Sjeffecho "${ECHO_T}$SED" >&6
3235219820Sjeff
3236219820Sjeffecho "$as_me:$LINENO: checking for egrep" >&5
3237219820Sjeffecho $ECHO_N "checking for egrep... $ECHO_C" >&6
3238219820Sjeffif test "${ac_cv_prog_egrep+set}" = set; then
3239219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
3240219820Sjeffelse
3241219820Sjeff  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3242219820Sjeff    then ac_cv_prog_egrep='grep -E'
3243219820Sjeff    else ac_cv_prog_egrep='egrep'
3244219820Sjeff    fi
3245219820Sjefffi
3246219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3247219820Sjeffecho "${ECHO_T}$ac_cv_prog_egrep" >&6
3248219820Sjeff EGREP=$ac_cv_prog_egrep
3249219820Sjeff
3250219820Sjeff
3251219820Sjeff
3252219820Sjeff# Check whether --with-gnu-ld or --without-gnu-ld was given.
3253219820Sjeffif test "${with_gnu_ld+set}" = set; then
3254219820Sjeff  withval="$with_gnu_ld"
3255219820Sjeff  test "$withval" = no || with_gnu_ld=yes
3256219820Sjeffelse
3257219820Sjeff  with_gnu_ld=no
3258219820Sjefffi;
3259219820Sjeffac_prog=ld
3260219820Sjeffif test "$GCC" = yes; then
3261219820Sjeff  # Check if gcc -print-prog-name=ld gives a path.
3262219820Sjeff  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3263219820Sjeffecho $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3264219820Sjeff  case $host in
3265219820Sjeff  *-*-mingw*)
3266219820Sjeff    # gcc leaves a trailing carriage return which upsets mingw
3267219820Sjeff    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3268219820Sjeff  *)
3269219820Sjeff    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3270219820Sjeff  esac
3271219820Sjeff  case $ac_prog in
3272219820Sjeff    # Accept absolute paths.
3273219820Sjeff    [\\/]* | ?:[\\/]*)
3274219820Sjeff      re_direlt='/[^/][^/]*/\.\./'
3275219820Sjeff      # Canonicalize the pathname of ld
3276219820Sjeff      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3277219820Sjeff      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3278219820Sjeff	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3279219820Sjeff      done
3280219820Sjeff      test -z "$LD" && LD="$ac_prog"
3281219820Sjeff      ;;
3282219820Sjeff  "")
3283219820Sjeff    # If it fails, then pretend we aren't using GCC.
3284219820Sjeff    ac_prog=ld
3285219820Sjeff    ;;
3286219820Sjeff  *)
3287219820Sjeff    # If it is relative, then search for the first ld in PATH.
3288219820Sjeff    with_gnu_ld=unknown
3289219820Sjeff    ;;
3290219820Sjeff  esac
3291219820Sjeffelif test "$with_gnu_ld" = yes; then
3292219820Sjeff  echo "$as_me:$LINENO: checking for GNU ld" >&5
3293219820Sjeffecho $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3294219820Sjeffelse
3295219820Sjeff  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3296219820Sjeffecho $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3297219820Sjefffi
3298219820Sjeffif test "${lt_cv_path_LD+set}" = set; then
3299219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
3300219820Sjeffelse
3301219820Sjeff  if test -z "$LD"; then
3302219820Sjeff  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3303219820Sjeff  for ac_dir in $PATH; do
3304219820Sjeff    IFS="$lt_save_ifs"
3305219820Sjeff    test -z "$ac_dir" && ac_dir=.
3306219820Sjeff    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3307219820Sjeff      lt_cv_path_LD="$ac_dir/$ac_prog"
3308219820Sjeff      # Check to see if the program is GNU ld.  I'd rather use --version,
3309219820Sjeff      # but apparently some variants of GNU ld only accept -v.
3310219820Sjeff      # Break only if it was the GNU/non-GNU ld that we prefer.
3311219820Sjeff      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3312219820Sjeff      *GNU* | *'with BFD'*)
3313219820Sjeff	test "$with_gnu_ld" != no && break
3314219820Sjeff	;;
3315219820Sjeff      *)
3316219820Sjeff	test "$with_gnu_ld" != yes && break
3317219820Sjeff	;;
3318219820Sjeff      esac
3319219820Sjeff    fi
3320219820Sjeff  done
3321219820Sjeff  IFS="$lt_save_ifs"
3322219820Sjeffelse
3323219820Sjeff  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3324219820Sjefffi
3325219820Sjefffi
3326219820Sjeff
3327219820SjeffLD="$lt_cv_path_LD"
3328219820Sjeffif test -n "$LD"; then
3329219820Sjeff  echo "$as_me:$LINENO: result: $LD" >&5
3330219820Sjeffecho "${ECHO_T}$LD" >&6
3331219820Sjeffelse
3332219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
3333219820Sjeffecho "${ECHO_T}no" >&6
3334219820Sjefffi
3335219820Sjefftest -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3336219820Sjeffecho "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3337219820Sjeff   { (exit 1); exit 1; }; }
3338219820Sjeffecho "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3339219820Sjeffecho $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3340219820Sjeffif test "${lt_cv_prog_gnu_ld+set}" = set; then
3341219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
3342219820Sjeffelse
3343219820Sjeff  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3344219820Sjeffcase `$LD -v 2>&1 </dev/null` in
3345219820Sjeff*GNU* | *'with BFD'*)
3346219820Sjeff  lt_cv_prog_gnu_ld=yes
3347219820Sjeff  ;;
3348219820Sjeff*)
3349219820Sjeff  lt_cv_prog_gnu_ld=no
3350219820Sjeff  ;;
3351219820Sjeffesac
3352219820Sjefffi
3353219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3354219820Sjeffecho "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3355219820Sjeffwith_gnu_ld=$lt_cv_prog_gnu_ld
3356219820Sjeff
3357219820Sjeff
3358219820Sjeffecho "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3359219820Sjeffecho $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3360219820Sjeffif test "${lt_cv_ld_reload_flag+set}" = set; then
3361219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
3362219820Sjeffelse
3363219820Sjeff  lt_cv_ld_reload_flag='-r'
3364219820Sjefffi
3365219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3366219820Sjeffecho "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3367219820Sjeffreload_flag=$lt_cv_ld_reload_flag
3368219820Sjeffcase $reload_flag in
3369219820Sjeff"" | " "*) ;;
3370219820Sjeff*) reload_flag=" $reload_flag" ;;
3371219820Sjeffesac
3372219820Sjeffreload_cmds='$LD$reload_flag -o $output$reload_objs'
3373219820Sjeffcase $host_os in
3374219820Sjeff  darwin*)
3375219820Sjeff    if test "$GCC" = yes; then
3376219820Sjeff      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3377219820Sjeff    else
3378219820Sjeff      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3379219820Sjeff    fi
3380219820Sjeff    ;;
3381219820Sjeffesac
3382219820Sjeff
3383219820Sjeffecho "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3384219820Sjeffecho $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3385219820Sjeffif test "${lt_cv_path_NM+set}" = set; then
3386219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
3387219820Sjeffelse
3388219820Sjeff  if test -n "$NM"; then
3389219820Sjeff  # Let the user override the test.
3390219820Sjeff  lt_cv_path_NM="$NM"
3391219820Sjeffelse
3392219820Sjeff  lt_nm_to_check="${ac_tool_prefix}nm"
3393219820Sjeff  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3394219820Sjeff    lt_nm_to_check="$lt_nm_to_check nm"
3395219820Sjeff  fi
3396219820Sjeff  for lt_tmp_nm in $lt_nm_to_check; do
3397219820Sjeff    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3398219820Sjeff    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3399219820Sjeff      IFS="$lt_save_ifs"
3400219820Sjeff      test -z "$ac_dir" && ac_dir=.
3401219820Sjeff      tmp_nm="$ac_dir/$lt_tmp_nm"
3402219820Sjeff      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3403219820Sjeff	# Check to see if the nm accepts a BSD-compat flag.
3404219820Sjeff	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3405219820Sjeff	#   nm: unknown option "B" ignored
3406219820Sjeff	# Tru64's nm complains that /dev/null is an invalid object file
3407219820Sjeff	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3408219820Sjeff	*/dev/null* | *'Invalid file or object type'*)
3409219820Sjeff	  lt_cv_path_NM="$tmp_nm -B"
3410219820Sjeff	  break
3411219820Sjeff	  ;;
3412219820Sjeff	*)
3413219820Sjeff	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3414219820Sjeff	  */dev/null*)
3415219820Sjeff	    lt_cv_path_NM="$tmp_nm -p"
3416219820Sjeff	    break
3417219820Sjeff	    ;;
3418219820Sjeff	  *)
3419219820Sjeff	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3420219820Sjeff	    continue # so that we can try to find one that supports BSD flags
3421219820Sjeff	    ;;
3422219820Sjeff	  esac
3423219820Sjeff	  ;;
3424219820Sjeff	esac
3425219820Sjeff      fi
3426219820Sjeff    done
3427219820Sjeff    IFS="$lt_save_ifs"
3428219820Sjeff  done
3429219820Sjeff  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3430219820Sjefffi
3431219820Sjefffi
3432219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3433219820Sjeffecho "${ECHO_T}$lt_cv_path_NM" >&6
3434219820SjeffNM="$lt_cv_path_NM"
3435219820Sjeff
3436219820Sjeffecho "$as_me:$LINENO: checking whether ln -s works" >&5
3437219820Sjeffecho $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3438219820SjeffLN_S=$as_ln_s
3439219820Sjeffif test "$LN_S" = "ln -s"; then
3440219820Sjeff  echo "$as_me:$LINENO: result: yes" >&5
3441219820Sjeffecho "${ECHO_T}yes" >&6
3442219820Sjeffelse
3443219820Sjeff  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3444219820Sjeffecho "${ECHO_T}no, using $LN_S" >&6
3445219820Sjefffi
3446219820Sjeff
3447219820Sjeffecho "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3448219820Sjeffecho $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3449219820Sjeffif test "${lt_cv_deplibs_check_method+set}" = set; then
3450219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
3451219820Sjeffelse
3452219820Sjeff  lt_cv_file_magic_cmd='$MAGIC_CMD'
3453219820Sjefflt_cv_file_magic_test_file=
3454219820Sjefflt_cv_deplibs_check_method='unknown'
3455219820Sjeff# Need to set the preceding variable on all platforms that support
3456219820Sjeff# interlibrary dependencies.
3457219820Sjeff# 'none' -- dependencies not supported.
3458219820Sjeff# `unknown' -- same as none, but documents that we really don't know.
3459219820Sjeff# 'pass_all' -- all dependencies passed with no checks.
3460219820Sjeff# 'test_compile' -- check by making test program.
3461219820Sjeff# 'file_magic [[regex]]' -- check by looking for files in library path
3462219820Sjeff# which responds to the $file_magic_cmd with a given extended regex.
3463219820Sjeff# If you have `file' or equivalent on your system and you're not sure
3464219820Sjeff# whether `pass_all' will *always* work, you probably want this one.
3465219820Sjeff
3466219820Sjeffcase $host_os in
3467219820Sjeffaix4* | aix5*)
3468219820Sjeff  lt_cv_deplibs_check_method=pass_all
3469219820Sjeff  ;;
3470219820Sjeff
3471219820Sjeffbeos*)
3472219820Sjeff  lt_cv_deplibs_check_method=pass_all
3473219820Sjeff  ;;
3474219820Sjeff
3475219820Sjeffbsdi[45]*)
3476219820Sjeff  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3477219820Sjeff  lt_cv_file_magic_cmd='/usr/bin/file -L'
3478219820Sjeff  lt_cv_file_magic_test_file=/shlib/libc.so
3479219820Sjeff  ;;
3480219820Sjeff
3481219820Sjeffcygwin*)
3482219820Sjeff  # func_win32_libid is a shell function defined in ltmain.sh
3483219820Sjeff  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3484219820Sjeff  lt_cv_file_magic_cmd='func_win32_libid'
3485219820Sjeff  ;;
3486219820Sjeff
3487219820Sjeffmingw* | pw32*)
3488219820Sjeff  # Base MSYS/MinGW do not provide the 'file' command needed by
3489219820Sjeff  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3490219820Sjeff  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3491219820Sjeff  lt_cv_file_magic_cmd='$OBJDUMP -f'
3492219820Sjeff  ;;
3493219820Sjeff
3494219820Sjeffdarwin* | rhapsody*)
3495219820Sjeff  lt_cv_deplibs_check_method=pass_all
3496219820Sjeff  ;;
3497219820Sjeff
3498219820Sjefffreebsd* | kfreebsd*-gnu | dragonfly*)
3499219820Sjeff  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3500219820Sjeff    case $host_cpu in
3501219820Sjeff    i*86 )
3502219820Sjeff      # Not sure whether the presence of OpenBSD here was a mistake.
3503219820Sjeff      # Let's accept both of them until this is cleared up.
3504219820Sjeff      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3505219820Sjeff      lt_cv_file_magic_cmd=/usr/bin/file
3506219820Sjeff      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3507219820Sjeff      ;;
3508219820Sjeff    esac
3509219820Sjeff  else
3510219820Sjeff    lt_cv_deplibs_check_method=pass_all
3511219820Sjeff  fi
3512219820Sjeff  ;;
3513219820Sjeff
3514219820Sjeffgnu*)
3515219820Sjeff  lt_cv_deplibs_check_method=pass_all
3516219820Sjeff  ;;
3517219820Sjeff
3518219820Sjeffhpux10.20* | hpux11*)
3519219820Sjeff  lt_cv_file_magic_cmd=/usr/bin/file
3520219820Sjeff  case $host_cpu in
3521219820Sjeff  ia64*)
3522219820Sjeff    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3523219820Sjeff    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3524219820Sjeff    ;;
3525219820Sjeff  hppa*64*)
3526219820Sjeff    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]'
3527219820Sjeff    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3528219820Sjeff    ;;
3529219820Sjeff  *)
3530219820Sjeff    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3531219820Sjeff    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3532219820Sjeff    ;;
3533219820Sjeff  esac
3534219820Sjeff  ;;
3535219820Sjeff
3536219820Sjeffinterix3*)
3537219820Sjeff  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3538219820Sjeff  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3539219820Sjeff  ;;
3540219820Sjeff
3541219820Sjeffirix5* | irix6* | nonstopux*)
3542219820Sjeff  case $LD in
3543219820Sjeff  *-32|*"-32 ") libmagic=32-bit;;
3544219820Sjeff  *-n32|*"-n32 ") libmagic=N32;;
3545219820Sjeff  *-64|*"-64 ") libmagic=64-bit;;
3546219820Sjeff  *) libmagic=never-match;;
3547219820Sjeff  esac
3548219820Sjeff  lt_cv_deplibs_check_method=pass_all
3549219820Sjeff  ;;
3550219820Sjeff
3551219820Sjeff# This must be Linux ELF.
3552219820Sjefflinux*)
3553219820Sjeff  lt_cv_deplibs_check_method=pass_all
3554219820Sjeff  ;;
3555219820Sjeff
3556219820Sjeffnetbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3557219820Sjeff  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3558219820Sjeff    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3559219820Sjeff  else
3560219820Sjeff    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3561219820Sjeff  fi
3562219820Sjeff  ;;
3563219820Sjeff
3564219820Sjeffnewos6*)
3565219820Sjeff  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3566219820Sjeff  lt_cv_file_magic_cmd=/usr/bin/file
3567219820Sjeff  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3568219820Sjeff  ;;
3569219820Sjeff
3570219820Sjeffnto-qnx*)
3571219820Sjeff  lt_cv_deplibs_check_method=unknown
3572219820Sjeff  ;;
3573219820Sjeff
3574219820Sjeffopenbsd*)
3575219820Sjeff  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3576219820Sjeff    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3577219820Sjeff  else
3578219820Sjeff    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3579219820Sjeff  fi
3580219820Sjeff  ;;
3581219820Sjeff
3582219820Sjeffosf3* | osf4* | osf5*)
3583219820Sjeff  lt_cv_deplibs_check_method=pass_all
3584219820Sjeff  ;;
3585219820Sjeff
3586219820Sjeffsolaris*)
3587219820Sjeff  lt_cv_deplibs_check_method=pass_all
3588219820Sjeff  ;;
3589219820Sjeff
3590219820Sjeffsysv4 | sysv4.3*)
3591219820Sjeff  case $host_vendor in
3592219820Sjeff  motorola)
3593219820Sjeff    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]'
3594219820Sjeff    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3595219820Sjeff    ;;
3596219820Sjeff  ncr)
3597219820Sjeff    lt_cv_deplibs_check_method=pass_all
3598219820Sjeff    ;;
3599219820Sjeff  sequent)
3600219820Sjeff    lt_cv_file_magic_cmd='/bin/file'
3601219820Sjeff    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3602219820Sjeff    ;;
3603219820Sjeff  sni)
3604219820Sjeff    lt_cv_file_magic_cmd='/bin/file'
3605219820Sjeff    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3606219820Sjeff    lt_cv_file_magic_test_file=/lib/libc.so
3607219820Sjeff    ;;
3608219820Sjeff  siemens)
3609219820Sjeff    lt_cv_deplibs_check_method=pass_all
3610219820Sjeff    ;;
3611219820Sjeff  pc)
3612219820Sjeff    lt_cv_deplibs_check_method=pass_all
3613219820Sjeff    ;;
3614219820Sjeff  esac
3615219820Sjeff  ;;
3616219820Sjeff
3617219820Sjeffsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3618219820Sjeff  lt_cv_deplibs_check_method=pass_all
3619219820Sjeff  ;;
3620219820Sjeffesac
3621219820Sjeff
3622219820Sjefffi
3623219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3624219820Sjeffecho "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3625219820Sjefffile_magic_cmd=$lt_cv_file_magic_cmd
3626219820Sjeffdeplibs_check_method=$lt_cv_deplibs_check_method
3627219820Sjefftest -z "$deplibs_check_method" && deplibs_check_method=unknown
3628219820Sjeff
3629219820Sjeff
3630219820Sjeff
3631219820Sjeff
3632219820Sjeff# If no C compiler was specified, use CC.
3633219820SjeffLTCC=${LTCC-"$CC"}
3634219820Sjeff
3635219820Sjeff# If no C compiler flags were specified, use CFLAGS.
3636219820SjeffLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3637219820Sjeff
3638219820Sjeff# Allow CC to be a program name with arguments.
3639219820Sjeffcompiler=$CC
3640219820Sjeff
3641219820Sjeff
3642219820Sjeff# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3643219820Sjeffif test "${enable_libtool_lock+set}" = set; then
3644219820Sjeff  enableval="$enable_libtool_lock"
3645219820Sjeff
3646219820Sjefffi;
3647219820Sjefftest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3648219820Sjeff
3649219820Sjeff# Some flags need to be propagated to the compiler or linker for good
3650219820Sjeff# libtool support.
3651219820Sjeffcase $host in
3652219820Sjeffia64-*-hpux*)
3653219820Sjeff  # Find out which ABI we are using.
3654219820Sjeff  echo 'int i;' > conftest.$ac_ext
3655219820Sjeff  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3656219820Sjeff  (eval $ac_compile) 2>&5
3657219820Sjeff  ac_status=$?
3658219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659219820Sjeff  (exit $ac_status); }; then
3660219820Sjeff    case `/usr/bin/file conftest.$ac_objext` in
3661219820Sjeff    *ELF-32*)
3662219820Sjeff      HPUX_IA64_MODE="32"
3663219820Sjeff      ;;
3664219820Sjeff    *ELF-64*)
3665219820Sjeff      HPUX_IA64_MODE="64"
3666219820Sjeff      ;;
3667219820Sjeff    esac
3668219820Sjeff  fi
3669219820Sjeff  rm -rf conftest*
3670219820Sjeff  ;;
3671219820Sjeff*-*-irix6*)
3672219820Sjeff  # Find out which ABI we are using.
3673219820Sjeff  echo '#line 3673 "configure"' > conftest.$ac_ext
3674219820Sjeff  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675219820Sjeff  (eval $ac_compile) 2>&5
3676219820Sjeff  ac_status=$?
3677219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678219820Sjeff  (exit $ac_status); }; then
3679219820Sjeff   if test "$lt_cv_prog_gnu_ld" = yes; then
3680219820Sjeff    case `/usr/bin/file conftest.$ac_objext` in
3681219820Sjeff    *32-bit*)
3682219820Sjeff      LD="${LD-ld} -melf32bsmip"
3683219820Sjeff      ;;
3684219820Sjeff    *N32*)
3685219820Sjeff      LD="${LD-ld} -melf32bmipn32"
3686219820Sjeff      ;;
3687219820Sjeff    *64-bit*)
3688219820Sjeff      LD="${LD-ld} -melf64bmip"
3689219820Sjeff      ;;
3690219820Sjeff    esac
3691219820Sjeff   else
3692219820Sjeff    case `/usr/bin/file conftest.$ac_objext` in
3693219820Sjeff    *32-bit*)
3694219820Sjeff      LD="${LD-ld} -32"
3695219820Sjeff      ;;
3696219820Sjeff    *N32*)
3697219820Sjeff      LD="${LD-ld} -n32"
3698219820Sjeff      ;;
3699219820Sjeff    *64-bit*)
3700219820Sjeff      LD="${LD-ld} -64"
3701219820Sjeff      ;;
3702219820Sjeff    esac
3703219820Sjeff   fi
3704219820Sjeff  fi
3705219820Sjeff  rm -rf conftest*
3706219820Sjeff  ;;
3707219820Sjeff
3708219820Sjeffx86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3709219820Sjeff  # Find out which ABI we are using.
3710219820Sjeff  echo 'int i;' > conftest.$ac_ext
3711219820Sjeff  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712219820Sjeff  (eval $ac_compile) 2>&5
3713219820Sjeff  ac_status=$?
3714219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715219820Sjeff  (exit $ac_status); }; then
3716219820Sjeff    case `/usr/bin/file conftest.o` in
3717219820Sjeff    *32-bit*)
3718219820Sjeff      case $host in
3719219820Sjeff        x86_64-*linux*)
3720219820Sjeff          LD="${LD-ld} -m elf_i386"
3721219820Sjeff          ;;
3722219820Sjeff        ppc64-*linux*|powerpc64-*linux*)
3723219820Sjeff          LD="${LD-ld} -m elf32ppclinux"
3724219820Sjeff          ;;
3725219820Sjeff        s390x-*linux*)
3726219820Sjeff          LD="${LD-ld} -m elf_s390"
3727219820Sjeff          ;;
3728219820Sjeff        sparc64-*linux*)
3729219820Sjeff          LD="${LD-ld} -m elf32_sparc"
3730219820Sjeff          ;;
3731219820Sjeff      esac
3732219820Sjeff      ;;
3733219820Sjeff    *64-bit*)
3734219820Sjeff      case $host in
3735219820Sjeff        x86_64-*linux*)
3736219820Sjeff          LD="${LD-ld} -m elf_x86_64"
3737219820Sjeff          ;;
3738219820Sjeff        ppc*-*linux*|powerpc*-*linux*)
3739219820Sjeff          LD="${LD-ld} -m elf64ppc"
3740219820Sjeff          ;;
3741219820Sjeff        s390*-*linux*)
3742219820Sjeff          LD="${LD-ld} -m elf64_s390"
3743219820Sjeff          ;;
3744219820Sjeff        sparc*-*linux*)
3745219820Sjeff          LD="${LD-ld} -m elf64_sparc"
3746219820Sjeff          ;;
3747219820Sjeff      esac
3748219820Sjeff      ;;
3749219820Sjeff    esac
3750219820Sjeff  fi
3751219820Sjeff  rm -rf conftest*
3752219820Sjeff  ;;
3753219820Sjeff
3754219820Sjeff*-*-sco3.2v5*)
3755219820Sjeff  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3756219820Sjeff  SAVE_CFLAGS="$CFLAGS"
3757219820Sjeff  CFLAGS="$CFLAGS -belf"
3758219820Sjeff  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3759219820Sjeffecho $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3760219820Sjeffif test "${lt_cv_cc_needs_belf+set}" = set; then
3761219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
3762219820Sjeffelse
3763219820Sjeff  ac_ext=c
3764219820Sjeffac_cpp='$CPP $CPPFLAGS'
3765219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
3768219820Sjeff
3769219820Sjeff     cat >conftest.$ac_ext <<_ACEOF
3770219820Sjeff/* confdefs.h.  */
3771219820Sjeff_ACEOF
3772219820Sjeffcat confdefs.h >>conftest.$ac_ext
3773219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
3774219820Sjeff/* end confdefs.h.  */
3775219820Sjeff
3776219820Sjeffint
3777219820Sjeffmain ()
3778219820Sjeff{
3779219820Sjeff
3780219820Sjeff  ;
3781219820Sjeff  return 0;
3782219820Sjeff}
3783219820Sjeff_ACEOF
3784219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
3785219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3786219820Sjeff  (eval $ac_link) 2>conftest.er1
3787219820Sjeff  ac_status=$?
3788219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
3789219820Sjeff  rm -f conftest.er1
3790219820Sjeff  cat conftest.err >&5
3791219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792219820Sjeff  (exit $ac_status); } &&
3793219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3794219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795219820Sjeff  (eval $ac_try) 2>&5
3796219820Sjeff  ac_status=$?
3797219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798219820Sjeff  (exit $ac_status); }; } &&
3799219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
3800219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801219820Sjeff  (eval $ac_try) 2>&5
3802219820Sjeff  ac_status=$?
3803219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804219820Sjeff  (exit $ac_status); }; }; then
3805219820Sjeff  lt_cv_cc_needs_belf=yes
3806219820Sjeffelse
3807219820Sjeff  echo "$as_me: failed program was:" >&5
3808219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
3809219820Sjeff
3810219820Sjefflt_cv_cc_needs_belf=no
3811219820Sjefffi
3812219820Sjeffrm -f conftest.err conftest.$ac_objext \
3813219820Sjeff      conftest$ac_exeext conftest.$ac_ext
3814219820Sjeff     ac_ext=c
3815219820Sjeffac_cpp='$CPP $CPPFLAGS'
3816219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
3819219820Sjeff
3820219820Sjefffi
3821219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3822219820Sjeffecho "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3823219820Sjeff  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3824219820Sjeff    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3825219820Sjeff    CFLAGS="$SAVE_CFLAGS"
3826219820Sjeff  fi
3827219820Sjeff  ;;
3828219820Sjeffsparc*-*solaris*)
3829219820Sjeff  # Find out which ABI we are using.
3830219820Sjeff  echo 'int i;' > conftest.$ac_ext
3831219820Sjeff  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832219820Sjeff  (eval $ac_compile) 2>&5
3833219820Sjeff  ac_status=$?
3834219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835219820Sjeff  (exit $ac_status); }; then
3836219820Sjeff    case `/usr/bin/file conftest.o` in
3837219820Sjeff    *64-bit*)
3838219820Sjeff      case $lt_cv_prog_gnu_ld in
3839219820Sjeff      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3840219820Sjeff      *)    LD="${LD-ld} -64" ;;
3841219820Sjeff      esac
3842219820Sjeff      ;;
3843219820Sjeff    esac
3844219820Sjeff  fi
3845219820Sjeff  rm -rf conftest*
3846219820Sjeff  ;;
3847219820Sjeff
3848219820Sjeff
3849219820Sjeffesac
3850219820Sjeff
3851219820Sjeffneed_locks="$enable_libtool_lock"
3852219820Sjeff
3853219820Sjeff
3854219820Sjeffac_ext=c
3855219820Sjeffac_cpp='$CPP $CPPFLAGS'
3856219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
3859219820Sjeffecho "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3860219820Sjeffecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3861219820Sjeff# On Suns, sometimes $CPP names a directory.
3862219820Sjeffif test -n "$CPP" && test -d "$CPP"; then
3863219820Sjeff  CPP=
3864219820Sjefffi
3865219820Sjeffif test -z "$CPP"; then
3866219820Sjeff  if test "${ac_cv_prog_CPP+set}" = set; then
3867219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
3868219820Sjeffelse
3869219820Sjeff      # Double quotes because CPP needs to be expanded
3870219820Sjeff    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3871219820Sjeff    do
3872219820Sjeff      ac_preproc_ok=false
3873219820Sjefffor ac_c_preproc_warn_flag in '' yes
3874219820Sjeffdo
3875219820Sjeff  # Use a header file that comes with gcc, so configuring glibc
3876219820Sjeff  # with a fresh cross-compiler works.
3877219820Sjeff  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3878219820Sjeff  # <limits.h> exists even on freestanding compilers.
3879219820Sjeff  # On the NeXT, cc -E runs the code through the compiler's parser,
3880219820Sjeff  # not just through cpp. "Syntax error" is here to catch this case.
3881219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
3882219820Sjeff/* confdefs.h.  */
3883219820Sjeff_ACEOF
3884219820Sjeffcat confdefs.h >>conftest.$ac_ext
3885219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
3886219820Sjeff/* end confdefs.h.  */
3887219820Sjeff#ifdef __STDC__
3888219820Sjeff# include <limits.h>
3889219820Sjeff#else
3890219820Sjeff# include <assert.h>
3891219820Sjeff#endif
3892219820Sjeff		     Syntax error
3893219820Sjeff_ACEOF
3894219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895219820Sjeff  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3896219820Sjeff  ac_status=$?
3897219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
3898219820Sjeff  rm -f conftest.er1
3899219820Sjeff  cat conftest.err >&5
3900219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901219820Sjeff  (exit $ac_status); } >/dev/null; then
3902219820Sjeff  if test -s conftest.err; then
3903219820Sjeff    ac_cpp_err=$ac_c_preproc_warn_flag
3904219820Sjeff    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3905219820Sjeff  else
3906219820Sjeff    ac_cpp_err=
3907219820Sjeff  fi
3908219820Sjeffelse
3909219820Sjeff  ac_cpp_err=yes
3910219820Sjefffi
3911219820Sjeffif test -z "$ac_cpp_err"; then
3912219820Sjeff  :
3913219820Sjeffelse
3914219820Sjeff  echo "$as_me: failed program was:" >&5
3915219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
3916219820Sjeff
3917219820Sjeff  # Broken: fails on valid input.
3918219820Sjeffcontinue
3919219820Sjefffi
3920219820Sjeffrm -f conftest.err conftest.$ac_ext
3921219820Sjeff
3922219820Sjeff  # OK, works on sane cases.  Now check whether non-existent headers
3923219820Sjeff  # can be detected and how.
3924219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
3925219820Sjeff/* confdefs.h.  */
3926219820Sjeff_ACEOF
3927219820Sjeffcat confdefs.h >>conftest.$ac_ext
3928219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
3929219820Sjeff/* end confdefs.h.  */
3930219820Sjeff#include <ac_nonexistent.h>
3931219820Sjeff_ACEOF
3932219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3933219820Sjeff  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3934219820Sjeff  ac_status=$?
3935219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
3936219820Sjeff  rm -f conftest.er1
3937219820Sjeff  cat conftest.err >&5
3938219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939219820Sjeff  (exit $ac_status); } >/dev/null; then
3940219820Sjeff  if test -s conftest.err; then
3941219820Sjeff    ac_cpp_err=$ac_c_preproc_warn_flag
3942219820Sjeff    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3943219820Sjeff  else
3944219820Sjeff    ac_cpp_err=
3945219820Sjeff  fi
3946219820Sjeffelse
3947219820Sjeff  ac_cpp_err=yes
3948219820Sjefffi
3949219820Sjeffif test -z "$ac_cpp_err"; then
3950219820Sjeff  # Broken: success on invalid input.
3951219820Sjeffcontinue
3952219820Sjeffelse
3953219820Sjeff  echo "$as_me: failed program was:" >&5
3954219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
3955219820Sjeff
3956219820Sjeff  # Passes both tests.
3957219820Sjeffac_preproc_ok=:
3958219820Sjeffbreak
3959219820Sjefffi
3960219820Sjeffrm -f conftest.err conftest.$ac_ext
3961219820Sjeff
3962219820Sjeffdone
3963219820Sjeff# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3964219820Sjeffrm -f conftest.err conftest.$ac_ext
3965219820Sjeffif $ac_preproc_ok; then
3966219820Sjeff  break
3967219820Sjefffi
3968219820Sjeff
3969219820Sjeff    done
3970219820Sjeff    ac_cv_prog_CPP=$CPP
3971219820Sjeff
3972219820Sjefffi
3973219820Sjeff  CPP=$ac_cv_prog_CPP
3974219820Sjeffelse
3975219820Sjeff  ac_cv_prog_CPP=$CPP
3976219820Sjefffi
3977219820Sjeffecho "$as_me:$LINENO: result: $CPP" >&5
3978219820Sjeffecho "${ECHO_T}$CPP" >&6
3979219820Sjeffac_preproc_ok=false
3980219820Sjefffor ac_c_preproc_warn_flag in '' yes
3981219820Sjeffdo
3982219820Sjeff  # Use a header file that comes with gcc, so configuring glibc
3983219820Sjeff  # with a fresh cross-compiler works.
3984219820Sjeff  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3985219820Sjeff  # <limits.h> exists even on freestanding compilers.
3986219820Sjeff  # On the NeXT, cc -E runs the code through the compiler's parser,
3987219820Sjeff  # not just through cpp. "Syntax error" is here to catch this case.
3988219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
3989219820Sjeff/* confdefs.h.  */
3990219820Sjeff_ACEOF
3991219820Sjeffcat confdefs.h >>conftest.$ac_ext
3992219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
3993219820Sjeff/* end confdefs.h.  */
3994219820Sjeff#ifdef __STDC__
3995219820Sjeff# include <limits.h>
3996219820Sjeff#else
3997219820Sjeff# include <assert.h>
3998219820Sjeff#endif
3999219820Sjeff		     Syntax error
4000219820Sjeff_ACEOF
4001219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002219820Sjeff  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4003219820Sjeff  ac_status=$?
4004219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
4005219820Sjeff  rm -f conftest.er1
4006219820Sjeff  cat conftest.err >&5
4007219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008219820Sjeff  (exit $ac_status); } >/dev/null; then
4009219820Sjeff  if test -s conftest.err; then
4010219820Sjeff    ac_cpp_err=$ac_c_preproc_warn_flag
4011219820Sjeff    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4012219820Sjeff  else
4013219820Sjeff    ac_cpp_err=
4014219820Sjeff  fi
4015219820Sjeffelse
4016219820Sjeff  ac_cpp_err=yes
4017219820Sjefffi
4018219820Sjeffif test -z "$ac_cpp_err"; then
4019219820Sjeff  :
4020219820Sjeffelse
4021219820Sjeff  echo "$as_me: failed program was:" >&5
4022219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
4023219820Sjeff
4024219820Sjeff  # Broken: fails on valid input.
4025219820Sjeffcontinue
4026219820Sjefffi
4027219820Sjeffrm -f conftest.err conftest.$ac_ext
4028219820Sjeff
4029219820Sjeff  # OK, works on sane cases.  Now check whether non-existent headers
4030219820Sjeff  # can be detected and how.
4031219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
4032219820Sjeff/* confdefs.h.  */
4033219820Sjeff_ACEOF
4034219820Sjeffcat confdefs.h >>conftest.$ac_ext
4035219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4036219820Sjeff/* end confdefs.h.  */
4037219820Sjeff#include <ac_nonexistent.h>
4038219820Sjeff_ACEOF
4039219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4040219820Sjeff  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4041219820Sjeff  ac_status=$?
4042219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
4043219820Sjeff  rm -f conftest.er1
4044219820Sjeff  cat conftest.err >&5
4045219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046219820Sjeff  (exit $ac_status); } >/dev/null; then
4047219820Sjeff  if test -s conftest.err; then
4048219820Sjeff    ac_cpp_err=$ac_c_preproc_warn_flag
4049219820Sjeff    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4050219820Sjeff  else
4051219820Sjeff    ac_cpp_err=
4052219820Sjeff  fi
4053219820Sjeffelse
4054219820Sjeff  ac_cpp_err=yes
4055219820Sjefffi
4056219820Sjeffif test -z "$ac_cpp_err"; then
4057219820Sjeff  # Broken: success on invalid input.
4058219820Sjeffcontinue
4059219820Sjeffelse
4060219820Sjeff  echo "$as_me: failed program was:" >&5
4061219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
4062219820Sjeff
4063219820Sjeff  # Passes both tests.
4064219820Sjeffac_preproc_ok=:
4065219820Sjeffbreak
4066219820Sjefffi
4067219820Sjeffrm -f conftest.err conftest.$ac_ext
4068219820Sjeff
4069219820Sjeffdone
4070219820Sjeff# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4071219820Sjeffrm -f conftest.err conftest.$ac_ext
4072219820Sjeffif $ac_preproc_ok; then
4073219820Sjeff  :
4074219820Sjeffelse
4075219820Sjeff  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4076219820SjeffSee \`config.log' for more details." >&5
4077219820Sjeffecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4078219820SjeffSee \`config.log' for more details." >&2;}
4079219820Sjeff   { (exit 1); exit 1; }; }
4080219820Sjefffi
4081219820Sjeff
4082219820Sjeffac_ext=c
4083219820Sjeffac_cpp='$CPP $CPPFLAGS'
4084219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
4087219820Sjeff
4088219820Sjeff
4089219820Sjeffecho "$as_me:$LINENO: checking for ANSI C header files" >&5
4090219820Sjeffecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4091219820Sjeffif test "${ac_cv_header_stdc+set}" = set; then
4092219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
4093219820Sjeffelse
4094219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
4095219820Sjeff/* confdefs.h.  */
4096219820Sjeff_ACEOF
4097219820Sjeffcat confdefs.h >>conftest.$ac_ext
4098219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4099219820Sjeff/* end confdefs.h.  */
4100219820Sjeff#include <stdlib.h>
4101219820Sjeff#include <stdarg.h>
4102219820Sjeff#include <string.h>
4103219820Sjeff#include <float.h>
4104219820Sjeff
4105219820Sjeffint
4106219820Sjeffmain ()
4107219820Sjeff{
4108219820Sjeff
4109219820Sjeff  ;
4110219820Sjeff  return 0;
4111219820Sjeff}
4112219820Sjeff_ACEOF
4113219820Sjeffrm -f conftest.$ac_objext
4114219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4115219820Sjeff  (eval $ac_compile) 2>conftest.er1
4116219820Sjeff  ac_status=$?
4117219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
4118219820Sjeff  rm -f conftest.er1
4119219820Sjeff  cat conftest.err >&5
4120219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121219820Sjeff  (exit $ac_status); } &&
4122219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4123219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124219820Sjeff  (eval $ac_try) 2>&5
4125219820Sjeff  ac_status=$?
4126219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127219820Sjeff  (exit $ac_status); }; } &&
4128219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
4129219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130219820Sjeff  (eval $ac_try) 2>&5
4131219820Sjeff  ac_status=$?
4132219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133219820Sjeff  (exit $ac_status); }; }; then
4134219820Sjeff  ac_cv_header_stdc=yes
4135219820Sjeffelse
4136219820Sjeff  echo "$as_me: failed program was:" >&5
4137219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
4138219820Sjeff
4139219820Sjeffac_cv_header_stdc=no
4140219820Sjefffi
4141219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4142219820Sjeff
4143219820Sjeffif test $ac_cv_header_stdc = yes; then
4144219820Sjeff  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4145219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
4146219820Sjeff/* confdefs.h.  */
4147219820Sjeff_ACEOF
4148219820Sjeffcat confdefs.h >>conftest.$ac_ext
4149219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4150219820Sjeff/* end confdefs.h.  */
4151219820Sjeff#include <string.h>
4152219820Sjeff
4153219820Sjeff_ACEOF
4154219820Sjeffif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155219820Sjeff  $EGREP "memchr" >/dev/null 2>&1; then
4156219820Sjeff  :
4157219820Sjeffelse
4158219820Sjeff  ac_cv_header_stdc=no
4159219820Sjefffi
4160219820Sjeffrm -f conftest*
4161219820Sjeff
4162219820Sjefffi
4163219820Sjeff
4164219820Sjeffif test $ac_cv_header_stdc = yes; then
4165219820Sjeff  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4166219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
4167219820Sjeff/* confdefs.h.  */
4168219820Sjeff_ACEOF
4169219820Sjeffcat confdefs.h >>conftest.$ac_ext
4170219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4171219820Sjeff/* end confdefs.h.  */
4172219820Sjeff#include <stdlib.h>
4173219820Sjeff
4174219820Sjeff_ACEOF
4175219820Sjeffif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176219820Sjeff  $EGREP "free" >/dev/null 2>&1; then
4177219820Sjeff  :
4178219820Sjeffelse
4179219820Sjeff  ac_cv_header_stdc=no
4180219820Sjefffi
4181219820Sjeffrm -f conftest*
4182219820Sjeff
4183219820Sjefffi
4184219820Sjeff
4185219820Sjeffif test $ac_cv_header_stdc = yes; then
4186219820Sjeff  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4187219820Sjeff  if test "$cross_compiling" = yes; then
4188219820Sjeff  :
4189219820Sjeffelse
4190219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
4191219820Sjeff/* confdefs.h.  */
4192219820Sjeff_ACEOF
4193219820Sjeffcat confdefs.h >>conftest.$ac_ext
4194219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4195219820Sjeff/* end confdefs.h.  */
4196219820Sjeff#include <ctype.h>
4197219820Sjeff#if ((' ' & 0x0FF) == 0x020)
4198219820Sjeff# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4199219820Sjeff# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4200219820Sjeff#else
4201219820Sjeff# define ISLOWER(c) \
4202219820Sjeff		   (('a' <= (c) && (c) <= 'i') \
4203219820Sjeff		     || ('j' <= (c) && (c) <= 'r') \
4204219820Sjeff		     || ('s' <= (c) && (c) <= 'z'))
4205219820Sjeff# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4206219820Sjeff#endif
4207219820Sjeff
4208219820Sjeff#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4209219820Sjeffint
4210219820Sjeffmain ()
4211219820Sjeff{
4212219820Sjeff  int i;
4213219820Sjeff  for (i = 0; i < 256; i++)
4214219820Sjeff    if (XOR (islower (i), ISLOWER (i))
4215219820Sjeff	|| toupper (i) != TOUPPER (i))
4216219820Sjeff      exit(2);
4217219820Sjeff  exit (0);
4218219820Sjeff}
4219219820Sjeff_ACEOF
4220219820Sjeffrm -f conftest$ac_exeext
4221219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4222219820Sjeff  (eval $ac_link) 2>&5
4223219820Sjeff  ac_status=$?
4224219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225219820Sjeff  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4226219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227219820Sjeff  (eval $ac_try) 2>&5
4228219820Sjeff  ac_status=$?
4229219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230219820Sjeff  (exit $ac_status); }; }; then
4231219820Sjeff  :
4232219820Sjeffelse
4233219820Sjeff  echo "$as_me: program exited with status $ac_status" >&5
4234219820Sjeffecho "$as_me: failed program was:" >&5
4235219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
4236219820Sjeff
4237219820Sjeff( exit $ac_status )
4238219820Sjeffac_cv_header_stdc=no
4239219820Sjefffi
4240219820Sjeffrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4241219820Sjefffi
4242219820Sjefffi
4243219820Sjefffi
4244219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4245219820Sjeffecho "${ECHO_T}$ac_cv_header_stdc" >&6
4246219820Sjeffif test $ac_cv_header_stdc = yes; then
4247219820Sjeff
4248219820Sjeffcat >>confdefs.h <<\_ACEOF
4249219820Sjeff#define STDC_HEADERS 1
4250219820Sjeff_ACEOF
4251219820Sjeff
4252219820Sjefffi
4253219820Sjeff
4254219820Sjeff# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4255219820Sjeff
4256219820Sjeff
4257219820Sjeff
4258219820Sjeff
4259219820Sjeff
4260219820Sjeff
4261219820Sjeff
4262219820Sjeff
4263219820Sjeff
4264219820Sjefffor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4265219820Sjeff		  inttypes.h stdint.h unistd.h
4266219820Sjeffdo
4267219820Sjeffas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4268219820Sjeffecho "$as_me:$LINENO: checking for $ac_header" >&5
4269219820Sjeffecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4270219820Sjeffif eval "test \"\${$as_ac_Header+set}\" = set"; then
4271219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
4272219820Sjeffelse
4273219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
4274219820Sjeff/* confdefs.h.  */
4275219820Sjeff_ACEOF
4276219820Sjeffcat confdefs.h >>conftest.$ac_ext
4277219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4278219820Sjeff/* end confdefs.h.  */
4279219820Sjeff$ac_includes_default
4280219820Sjeff
4281219820Sjeff#include <$ac_header>
4282219820Sjeff_ACEOF
4283219820Sjeffrm -f conftest.$ac_objext
4284219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285219820Sjeff  (eval $ac_compile) 2>conftest.er1
4286219820Sjeff  ac_status=$?
4287219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
4288219820Sjeff  rm -f conftest.er1
4289219820Sjeff  cat conftest.err >&5
4290219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291219820Sjeff  (exit $ac_status); } &&
4292219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4293219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294219820Sjeff  (eval $ac_try) 2>&5
4295219820Sjeff  ac_status=$?
4296219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297219820Sjeff  (exit $ac_status); }; } &&
4298219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
4299219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300219820Sjeff  (eval $ac_try) 2>&5
4301219820Sjeff  ac_status=$?
4302219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303219820Sjeff  (exit $ac_status); }; }; then
4304219820Sjeff  eval "$as_ac_Header=yes"
4305219820Sjeffelse
4306219820Sjeff  echo "$as_me: failed program was:" >&5
4307219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
4308219820Sjeff
4309219820Sjeffeval "$as_ac_Header=no"
4310219820Sjefffi
4311219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4312219820Sjefffi
4313219820Sjeffecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4314219820Sjeffecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4315219820Sjeffif test `eval echo '${'$as_ac_Header'}'` = yes; then
4316219820Sjeff  cat >>confdefs.h <<_ACEOF
4317219820Sjeff#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318219820Sjeff_ACEOF
4319219820Sjeff
4320219820Sjefffi
4321219820Sjeff
4322219820Sjeffdone
4323219820Sjeff
4324219820Sjeff
4325219820Sjeff
4326219820Sjefffor ac_header in dlfcn.h
4327219820Sjeffdo
4328219820Sjeffas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329219820Sjeffif eval "test \"\${$as_ac_Header+set}\" = set"; then
4330219820Sjeff  echo "$as_me:$LINENO: checking for $ac_header" >&5
4331219820Sjeffecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332219820Sjeffif eval "test \"\${$as_ac_Header+set}\" = set"; then
4333219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
4334219820Sjefffi
4335219820Sjeffecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4336219820Sjeffecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4337219820Sjeffelse
4338219820Sjeff  # Is the header compilable?
4339219820Sjeffecho "$as_me:$LINENO: checking $ac_header usability" >&5
4340219820Sjeffecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4341219820Sjeffcat >conftest.$ac_ext <<_ACEOF
4342219820Sjeff/* confdefs.h.  */
4343219820Sjeff_ACEOF
4344219820Sjeffcat confdefs.h >>conftest.$ac_ext
4345219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4346219820Sjeff/* end confdefs.h.  */
4347219820Sjeff$ac_includes_default
4348219820Sjeff#include <$ac_header>
4349219820Sjeff_ACEOF
4350219820Sjeffrm -f conftest.$ac_objext
4351219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352219820Sjeff  (eval $ac_compile) 2>conftest.er1
4353219820Sjeff  ac_status=$?
4354219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
4355219820Sjeff  rm -f conftest.er1
4356219820Sjeff  cat conftest.err >&5
4357219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358219820Sjeff  (exit $ac_status); } &&
4359219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4360219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361219820Sjeff  (eval $ac_try) 2>&5
4362219820Sjeff  ac_status=$?
4363219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364219820Sjeff  (exit $ac_status); }; } &&
4365219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
4366219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367219820Sjeff  (eval $ac_try) 2>&5
4368219820Sjeff  ac_status=$?
4369219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370219820Sjeff  (exit $ac_status); }; }; then
4371219820Sjeff  ac_header_compiler=yes
4372219820Sjeffelse
4373219820Sjeff  echo "$as_me: failed program was:" >&5
4374219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
4375219820Sjeff
4376219820Sjeffac_header_compiler=no
4377219820Sjefffi
4378219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379219820Sjeffecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
4380219820Sjeffecho "${ECHO_T}$ac_header_compiler" >&6
4381219820Sjeff
4382219820Sjeff# Is the header present?
4383219820Sjeffecho "$as_me:$LINENO: checking $ac_header presence" >&5
4384219820Sjeffecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4385219820Sjeffcat >conftest.$ac_ext <<_ACEOF
4386219820Sjeff/* confdefs.h.  */
4387219820Sjeff_ACEOF
4388219820Sjeffcat confdefs.h >>conftest.$ac_ext
4389219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4390219820Sjeff/* end confdefs.h.  */
4391219820Sjeff#include <$ac_header>
4392219820Sjeff_ACEOF
4393219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4394219820Sjeff  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4395219820Sjeff  ac_status=$?
4396219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
4397219820Sjeff  rm -f conftest.er1
4398219820Sjeff  cat conftest.err >&5
4399219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400219820Sjeff  (exit $ac_status); } >/dev/null; then
4401219820Sjeff  if test -s conftest.err; then
4402219820Sjeff    ac_cpp_err=$ac_c_preproc_warn_flag
4403219820Sjeff    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4404219820Sjeff  else
4405219820Sjeff    ac_cpp_err=
4406219820Sjeff  fi
4407219820Sjeffelse
4408219820Sjeff  ac_cpp_err=yes
4409219820Sjefffi
4410219820Sjeffif test -z "$ac_cpp_err"; then
4411219820Sjeff  ac_header_preproc=yes
4412219820Sjeffelse
4413219820Sjeff  echo "$as_me: failed program was:" >&5
4414219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
4415219820Sjeff
4416219820Sjeff  ac_header_preproc=no
4417219820Sjefffi
4418219820Sjeffrm -f conftest.err conftest.$ac_ext
4419219820Sjeffecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
4420219820Sjeffecho "${ECHO_T}$ac_header_preproc" >&6
4421219820Sjeff
4422219820Sjeff# So?  What about this header?
4423219820Sjeffcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4424219820Sjeff  yes:no: )
4425219820Sjeff    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4426219820Sjeffecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4427219820Sjeff    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4428219820Sjeffecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4429219820Sjeff    ac_header_preproc=yes
4430219820Sjeff    ;;
4431219820Sjeff  no:yes:* )
4432219820Sjeff    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4433219820Sjeffecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4434219820Sjeff    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4435219820Sjeffecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4436219820Sjeff    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4437219820Sjeffecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4438219820Sjeff    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4439219820Sjeffecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4440219820Sjeff    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4441219820Sjeffecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4442219820Sjeff    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4443219820Sjeffecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4444219820Sjeff    (
4445219820Sjeff      cat <<\_ASBOX
4446219820Sjeff## -------------------------------------------- ##
4447219820Sjeff## Report this to general@lists@openfabrics.org ##
4448219820Sjeff## -------------------------------------------- ##
4449219820Sjeff_ASBOX
4450219820Sjeff    ) |
4451219820Sjeff      sed "s/^/$as_me: WARNING:     /" >&2
4452219820Sjeff    ;;
4453219820Sjeffesac
4454219820Sjeffecho "$as_me:$LINENO: checking for $ac_header" >&5
4455219820Sjeffecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4456219820Sjeffif eval "test \"\${$as_ac_Header+set}\" = set"; then
4457219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
4458219820Sjeffelse
4459219820Sjeff  eval "$as_ac_Header=\$ac_header_preproc"
4460219820Sjefffi
4461219820Sjeffecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4462219820Sjeffecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4463219820Sjeff
4464219820Sjefffi
4465219820Sjeffif test `eval echo '${'$as_ac_Header'}'` = yes; then
4466219820Sjeff  cat >>confdefs.h <<_ACEOF
4467219820Sjeff#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4468219820Sjeff_ACEOF
4469219820Sjeff
4470219820Sjefffi
4471219820Sjeff
4472219820Sjeffdone
4473219820Sjeff
4474219820Sjeffac_ext=cc
4475219820Sjeffac_cpp='$CXXCPP $CPPFLAGS'
4476219820Sjeffac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477219820Sjeffac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478219820Sjeffac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4479219820Sjeffif test -n "$ac_tool_prefix"; then
4480219820Sjeff  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4481219820Sjeff  do
4482219820Sjeff    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4483219820Sjeffset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4484219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
4485219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4486219820Sjeffif test "${ac_cv_prog_CXX+set}" = set; then
4487219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
4488219820Sjeffelse
4489219820Sjeff  if test -n "$CXX"; then
4490219820Sjeff  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4491219820Sjeffelse
4492219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493219820Sjefffor as_dir in $PATH
4494219820Sjeffdo
4495219820Sjeff  IFS=$as_save_IFS
4496219820Sjeff  test -z "$as_dir" && as_dir=.
4497219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
4498219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499219820Sjeff    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4500219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501219820Sjeff    break 2
4502219820Sjeff  fi
4503219820Sjeffdone
4504219820Sjeffdone
4505219820Sjeff
4506219820Sjefffi
4507219820Sjefffi
4508219820SjeffCXX=$ac_cv_prog_CXX
4509219820Sjeffif test -n "$CXX"; then
4510219820Sjeff  echo "$as_me:$LINENO: result: $CXX" >&5
4511219820Sjeffecho "${ECHO_T}$CXX" >&6
4512219820Sjeffelse
4513219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
4514219820Sjeffecho "${ECHO_T}no" >&6
4515219820Sjefffi
4516219820Sjeff
4517219820Sjeff    test -n "$CXX" && break
4518219820Sjeff  done
4519219820Sjefffi
4520219820Sjeffif test -z "$CXX"; then
4521219820Sjeff  ac_ct_CXX=$CXX
4522219820Sjeff  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4523219820Sjeffdo
4524219820Sjeff  # Extract the first word of "$ac_prog", so it can be a program name with args.
4525219820Sjeffset dummy $ac_prog; ac_word=$2
4526219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
4527219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4528219820Sjeffif test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4529219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
4530219820Sjeffelse
4531219820Sjeff  if test -n "$ac_ct_CXX"; then
4532219820Sjeff  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4533219820Sjeffelse
4534219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535219820Sjefffor as_dir in $PATH
4536219820Sjeffdo
4537219820Sjeff  IFS=$as_save_IFS
4538219820Sjeff  test -z "$as_dir" && as_dir=.
4539219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
4540219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541219820Sjeff    ac_cv_prog_ac_ct_CXX="$ac_prog"
4542219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543219820Sjeff    break 2
4544219820Sjeff  fi
4545219820Sjeffdone
4546219820Sjeffdone
4547219820Sjeff
4548219820Sjefffi
4549219820Sjefffi
4550219820Sjeffac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4551219820Sjeffif test -n "$ac_ct_CXX"; then
4552219820Sjeff  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4553219820Sjeffecho "${ECHO_T}$ac_ct_CXX" >&6
4554219820Sjeffelse
4555219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
4556219820Sjeffecho "${ECHO_T}no" >&6
4557219820Sjefffi
4558219820Sjeff
4559219820Sjeff  test -n "$ac_ct_CXX" && break
4560219820Sjeffdone
4561219820Sjefftest -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4562219820Sjeff
4563219820Sjeff  CXX=$ac_ct_CXX
4564219820Sjefffi
4565219820Sjeff
4566219820Sjeff
4567219820Sjeff# Provide some information about the compiler.
4568219820Sjeffecho "$as_me:$LINENO:" \
4569219820Sjeff     "checking for C++ compiler version" >&5
4570219820Sjeffac_compiler=`set X $ac_compile; echo $2`
4571219820Sjeff{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4572219820Sjeff  (eval $ac_compiler --version </dev/null >&5) 2>&5
4573219820Sjeff  ac_status=$?
4574219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575219820Sjeff  (exit $ac_status); }
4576219820Sjeff{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4577219820Sjeff  (eval $ac_compiler -v </dev/null >&5) 2>&5
4578219820Sjeff  ac_status=$?
4579219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580219820Sjeff  (exit $ac_status); }
4581219820Sjeff{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4582219820Sjeff  (eval $ac_compiler -V </dev/null >&5) 2>&5
4583219820Sjeff  ac_status=$?
4584219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585219820Sjeff  (exit $ac_status); }
4586219820Sjeff
4587219820Sjeffecho "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4588219820Sjeffecho $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4589219820Sjeffif test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4590219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
4591219820Sjeffelse
4592219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
4593219820Sjeff/* confdefs.h.  */
4594219820Sjeff_ACEOF
4595219820Sjeffcat confdefs.h >>conftest.$ac_ext
4596219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4597219820Sjeff/* end confdefs.h.  */
4598219820Sjeff
4599219820Sjeffint
4600219820Sjeffmain ()
4601219820Sjeff{
4602219820Sjeff#ifndef __GNUC__
4603219820Sjeff       choke me
4604219820Sjeff#endif
4605219820Sjeff
4606219820Sjeff  ;
4607219820Sjeff  return 0;
4608219820Sjeff}
4609219820Sjeff_ACEOF
4610219820Sjeffrm -f conftest.$ac_objext
4611219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612219820Sjeff  (eval $ac_compile) 2>conftest.er1
4613219820Sjeff  ac_status=$?
4614219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
4615219820Sjeff  rm -f conftest.er1
4616219820Sjeff  cat conftest.err >&5
4617219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618219820Sjeff  (exit $ac_status); } &&
4619219820Sjeff	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4620219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621219820Sjeff  (eval $ac_try) 2>&5
4622219820Sjeff  ac_status=$?
4623219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624219820Sjeff  (exit $ac_status); }; } &&
4625219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
4626219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627219820Sjeff  (eval $ac_try) 2>&5
4628219820Sjeff  ac_status=$?
4629219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630219820Sjeff  (exit $ac_status); }; }; then
4631219820Sjeff  ac_compiler_gnu=yes
4632219820Sjeffelse
4633219820Sjeff  echo "$as_me: failed program was:" >&5
4634219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
4635219820Sjeff
4636219820Sjeffac_compiler_gnu=no
4637219820Sjefffi
4638219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639219820Sjeffac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4640219820Sjeff
4641219820Sjefffi
4642219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4643219820Sjeffecho "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4644219820SjeffGXX=`test $ac_compiler_gnu = yes && echo yes`
4645219820Sjeffac_test_CXXFLAGS=${CXXFLAGS+set}
4646219820Sjeffac_save_CXXFLAGS=$CXXFLAGS
4647219820SjeffCXXFLAGS="-g"
4648219820Sjeffecho "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4649219820Sjeffecho $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4650219820Sjeffif test "${ac_cv_prog_cxx_g+set}" = set; then
4651219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
4652219820Sjeffelse
4653219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
4654219820Sjeff/* confdefs.h.  */
4655219820Sjeff_ACEOF
4656219820Sjeffcat confdefs.h >>conftest.$ac_ext
4657219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4658219820Sjeff/* end confdefs.h.  */
4659219820Sjeff
4660219820Sjeffint
4661219820Sjeffmain ()
4662219820Sjeff{
4663219820Sjeff
4664219820Sjeff  ;
4665219820Sjeff  return 0;
4666219820Sjeff}
4667219820Sjeff_ACEOF
4668219820Sjeffrm -f conftest.$ac_objext
4669219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670219820Sjeff  (eval $ac_compile) 2>conftest.er1
4671219820Sjeff  ac_status=$?
4672219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
4673219820Sjeff  rm -f conftest.er1
4674219820Sjeff  cat conftest.err >&5
4675219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676219820Sjeff  (exit $ac_status); } &&
4677219820Sjeff	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4678219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679219820Sjeff  (eval $ac_try) 2>&5
4680219820Sjeff  ac_status=$?
4681219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682219820Sjeff  (exit $ac_status); }; } &&
4683219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
4684219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685219820Sjeff  (eval $ac_try) 2>&5
4686219820Sjeff  ac_status=$?
4687219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688219820Sjeff  (exit $ac_status); }; }; then
4689219820Sjeff  ac_cv_prog_cxx_g=yes
4690219820Sjeffelse
4691219820Sjeff  echo "$as_me: failed program was:" >&5
4692219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
4693219820Sjeff
4694219820Sjeffac_cv_prog_cxx_g=no
4695219820Sjefffi
4696219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697219820Sjefffi
4698219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4699219820Sjeffecho "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4700219820Sjeffif test "$ac_test_CXXFLAGS" = set; then
4701219820Sjeff  CXXFLAGS=$ac_save_CXXFLAGS
4702219820Sjeffelif test $ac_cv_prog_cxx_g = yes; then
4703219820Sjeff  if test "$GXX" = yes; then
4704219820Sjeff    CXXFLAGS="-g -O2"
4705219820Sjeff  else
4706219820Sjeff    CXXFLAGS="-g"
4707219820Sjeff  fi
4708219820Sjeffelse
4709219820Sjeff  if test "$GXX" = yes; then
4710219820Sjeff    CXXFLAGS="-O2"
4711219820Sjeff  else
4712219820Sjeff    CXXFLAGS=
4713219820Sjeff  fi
4714219820Sjefffi
4715219820Sjefffor ac_declaration in \
4716219820Sjeff   '' \
4717219820Sjeff   'extern "C" void std::exit (int) throw (); using std::exit;' \
4718219820Sjeff   'extern "C" void std::exit (int); using std::exit;' \
4719219820Sjeff   'extern "C" void exit (int) throw ();' \
4720219820Sjeff   'extern "C" void exit (int);' \
4721219820Sjeff   'void exit (int);'
4722219820Sjeffdo
4723219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
4724219820Sjeff/* confdefs.h.  */
4725219820Sjeff_ACEOF
4726219820Sjeffcat confdefs.h >>conftest.$ac_ext
4727219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4728219820Sjeff/* end confdefs.h.  */
4729219820Sjeff$ac_declaration
4730219820Sjeff#include <stdlib.h>
4731219820Sjeffint
4732219820Sjeffmain ()
4733219820Sjeff{
4734219820Sjeffexit (42);
4735219820Sjeff  ;
4736219820Sjeff  return 0;
4737219820Sjeff}
4738219820Sjeff_ACEOF
4739219820Sjeffrm -f conftest.$ac_objext
4740219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741219820Sjeff  (eval $ac_compile) 2>conftest.er1
4742219820Sjeff  ac_status=$?
4743219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
4744219820Sjeff  rm -f conftest.er1
4745219820Sjeff  cat conftest.err >&5
4746219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747219820Sjeff  (exit $ac_status); } &&
4748219820Sjeff	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4749219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750219820Sjeff  (eval $ac_try) 2>&5
4751219820Sjeff  ac_status=$?
4752219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753219820Sjeff  (exit $ac_status); }; } &&
4754219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
4755219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756219820Sjeff  (eval $ac_try) 2>&5
4757219820Sjeff  ac_status=$?
4758219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759219820Sjeff  (exit $ac_status); }; }; then
4760219820Sjeff  :
4761219820Sjeffelse
4762219820Sjeff  echo "$as_me: failed program was:" >&5
4763219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
4764219820Sjeff
4765219820Sjeffcontinue
4766219820Sjefffi
4767219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4768219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
4769219820Sjeff/* confdefs.h.  */
4770219820Sjeff_ACEOF
4771219820Sjeffcat confdefs.h >>conftest.$ac_ext
4772219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4773219820Sjeff/* end confdefs.h.  */
4774219820Sjeff$ac_declaration
4775219820Sjeffint
4776219820Sjeffmain ()
4777219820Sjeff{
4778219820Sjeffexit (42);
4779219820Sjeff  ;
4780219820Sjeff  return 0;
4781219820Sjeff}
4782219820Sjeff_ACEOF
4783219820Sjeffrm -f conftest.$ac_objext
4784219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785219820Sjeff  (eval $ac_compile) 2>conftest.er1
4786219820Sjeff  ac_status=$?
4787219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
4788219820Sjeff  rm -f conftest.er1
4789219820Sjeff  cat conftest.err >&5
4790219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791219820Sjeff  (exit $ac_status); } &&
4792219820Sjeff	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4793219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794219820Sjeff  (eval $ac_try) 2>&5
4795219820Sjeff  ac_status=$?
4796219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797219820Sjeff  (exit $ac_status); }; } &&
4798219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
4799219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800219820Sjeff  (eval $ac_try) 2>&5
4801219820Sjeff  ac_status=$?
4802219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803219820Sjeff  (exit $ac_status); }; }; then
4804219820Sjeff  break
4805219820Sjeffelse
4806219820Sjeff  echo "$as_me: failed program was:" >&5
4807219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
4808219820Sjeff
4809219820Sjefffi
4810219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4811219820Sjeffdone
4812219820Sjeffrm -f conftest*
4813219820Sjeffif test -n "$ac_declaration"; then
4814219820Sjeff  echo '#ifdef __cplusplus' >>confdefs.h
4815219820Sjeff  echo $ac_declaration      >>confdefs.h
4816219820Sjeff  echo '#endif'             >>confdefs.h
4817219820Sjefffi
4818219820Sjeff
4819219820Sjeffac_ext=cc
4820219820Sjeffac_cpp='$CXXCPP $CPPFLAGS'
4821219820Sjeffac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822219820Sjeffac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823219820Sjeffac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4824219820Sjeff
4825219820Sjeffdepcc="$CXX"  am_compiler_list=
4826219820Sjeff
4827219820Sjeffecho "$as_me:$LINENO: checking dependency style of $depcc" >&5
4828219820Sjeffecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4829219820Sjeffif test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4830219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
4831219820Sjeffelse
4832219820Sjeff  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4833219820Sjeff  # We make a subdir and do the tests there.  Otherwise we can end up
4834219820Sjeff  # making bogus files that we don't know about and never remove.  For
4835219820Sjeff  # instance it was reported that on HP-UX the gcc test will end up
4836219820Sjeff  # making a dummy file named `D' -- because `-MD' means `put the output
4837219820Sjeff  # in D'.
4838219820Sjeff  mkdir conftest.dir
4839219820Sjeff  # Copy depcomp to subdir because otherwise we won't find it if we're
4840219820Sjeff  # using a relative directory.
4841219820Sjeff  cp "$am_depcomp" conftest.dir
4842219820Sjeff  cd conftest.dir
4843219820Sjeff  # We will build objects and dependencies in a subdirectory because
4844219820Sjeff  # it helps to detect inapplicable dependency modes.  For instance
4845219820Sjeff  # both Tru64's cc and ICC support -MD to output dependencies as a
4846219820Sjeff  # side effect of compilation, but ICC will put the dependencies in
4847219820Sjeff  # the current directory while Tru64 will put them in the object
4848219820Sjeff  # directory.
4849219820Sjeff  mkdir sub
4850219820Sjeff
4851219820Sjeff  am_cv_CXX_dependencies_compiler_type=none
4852219820Sjeff  if test "$am_compiler_list" = ""; then
4853219820Sjeff     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4854219820Sjeff  fi
4855219820Sjeff  for depmode in $am_compiler_list; do
4856219820Sjeff    # Setup a source with many dependencies, because some compilers
4857219820Sjeff    # like to wrap large dependency lists on column 80 (with \), and
4858219820Sjeff    # we should not choose a depcomp mode which is confused by this.
4859219820Sjeff    #
4860219820Sjeff    # We need to recreate these files for each test, as the compiler may
4861219820Sjeff    # overwrite some of them when testing with obscure command lines.
4862219820Sjeff    # This happens at least with the AIX C compiler.
4863219820Sjeff    : > sub/conftest.c
4864219820Sjeff    for i in 1 2 3 4 5 6; do
4865219820Sjeff      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4866219820Sjeff      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4867219820Sjeff      # Solaris 8's {/usr,}/bin/sh.
4868219820Sjeff      touch sub/conftst$i.h
4869219820Sjeff    done
4870219820Sjeff    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4871219820Sjeff
4872219820Sjeff    case $depmode in
4873219820Sjeff    nosideeffect)
4874219820Sjeff      # after this tag, mechanisms are not by side-effect, so they'll
4875219820Sjeff      # only be used when explicitly requested
4876219820Sjeff      if test "x$enable_dependency_tracking" = xyes; then
4877219820Sjeff	continue
4878219820Sjeff      else
4879219820Sjeff	break
4880219820Sjeff      fi
4881219820Sjeff      ;;
4882219820Sjeff    none) break ;;
4883219820Sjeff    esac
4884219820Sjeff    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4885219820Sjeff    # mode.  It turns out that the SunPro C++ compiler does not properly
4886219820Sjeff    # handle `-M -o', and we need to detect this.
4887219820Sjeff    if depmode=$depmode \
4888219820Sjeff       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4889219820Sjeff       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4890219820Sjeff       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4891219820Sjeff         >/dev/null 2>conftest.err &&
4892219820Sjeff       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4893219820Sjeff       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4894219820Sjeff       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4895219820Sjeff      # icc doesn't choke on unknown options, it will just issue warnings
4896219820Sjeff      # or remarks (even with -Werror).  So we grep stderr for any message
4897219820Sjeff      # that says an option was ignored or not supported.
4898219820Sjeff      # When given -MP, icc 7.0 and 7.1 complain thusly:
4899219820Sjeff      #   icc: Command line warning: ignoring option '-M'; no argument required
4900219820Sjeff      # The diagnosis changed in icc 8.0:
4901219820Sjeff      #   icc: Command line remark: option '-MP' not supported
4902219820Sjeff      if (grep 'ignoring option' conftest.err ||
4903219820Sjeff          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4904219820Sjeff        am_cv_CXX_dependencies_compiler_type=$depmode
4905219820Sjeff        break
4906219820Sjeff      fi
4907219820Sjeff    fi
4908219820Sjeff  done
4909219820Sjeff
4910219820Sjeff  cd ..
4911219820Sjeff  rm -rf conftest.dir
4912219820Sjeffelse
4913219820Sjeff  am_cv_CXX_dependencies_compiler_type=none
4914219820Sjefffi
4915219820Sjeff
4916219820Sjefffi
4917219820Sjeffecho "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4918219820Sjeffecho "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4919219820SjeffCXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4920219820Sjeff
4921219820Sjeff
4922219820Sjeff
4923219820Sjeffif
4924219820Sjeff  test "x$enable_dependency_tracking" != xno \
4925219820Sjeff  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4926219820Sjeff  am__fastdepCXX_TRUE=
4927219820Sjeff  am__fastdepCXX_FALSE='#'
4928219820Sjeffelse
4929219820Sjeff  am__fastdepCXX_TRUE='#'
4930219820Sjeff  am__fastdepCXX_FALSE=
4931219820Sjefffi
4932219820Sjeff
4933219820Sjeff
4934219820Sjeff
4935219820Sjeff
4936219820Sjeffif test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4937219820Sjeff    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4938219820Sjeff    (test "X$CXX" != "Xg++"))) ; then
4939219820Sjeff  ac_ext=cc
4940219820Sjeffac_cpp='$CXXCPP $CPPFLAGS'
4941219820Sjeffac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942219820Sjeffac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943219820Sjeffac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4944219820Sjeffecho "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4945219820Sjeffecho $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4946219820Sjeffif test -z "$CXXCPP"; then
4947219820Sjeff  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4948219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
4949219820Sjeffelse
4950219820Sjeff      # Double quotes because CXXCPP needs to be expanded
4951219820Sjeff    for CXXCPP in "$CXX -E" "/lib/cpp"
4952219820Sjeff    do
4953219820Sjeff      ac_preproc_ok=false
4954219820Sjefffor ac_cxx_preproc_warn_flag in '' yes
4955219820Sjeffdo
4956219820Sjeff  # Use a header file that comes with gcc, so configuring glibc
4957219820Sjeff  # with a fresh cross-compiler works.
4958219820Sjeff  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4959219820Sjeff  # <limits.h> exists even on freestanding compilers.
4960219820Sjeff  # On the NeXT, cc -E runs the code through the compiler's parser,
4961219820Sjeff  # not just through cpp. "Syntax error" is here to catch this case.
4962219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
4963219820Sjeff/* confdefs.h.  */
4964219820Sjeff_ACEOF
4965219820Sjeffcat confdefs.h >>conftest.$ac_ext
4966219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
4967219820Sjeff/* end confdefs.h.  */
4968219820Sjeff#ifdef __STDC__
4969219820Sjeff# include <limits.h>
4970219820Sjeff#else
4971219820Sjeff# include <assert.h>
4972219820Sjeff#endif
4973219820Sjeff		     Syntax error
4974219820Sjeff_ACEOF
4975219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4976219820Sjeff  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4977219820Sjeff  ac_status=$?
4978219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
4979219820Sjeff  rm -f conftest.er1
4980219820Sjeff  cat conftest.err >&5
4981219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982219820Sjeff  (exit $ac_status); } >/dev/null; then
4983219820Sjeff  if test -s conftest.err; then
4984219820Sjeff    ac_cpp_err=$ac_cxx_preproc_warn_flag
4985219820Sjeff    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4986219820Sjeff  else
4987219820Sjeff    ac_cpp_err=
4988219820Sjeff  fi
4989219820Sjeffelse
4990219820Sjeff  ac_cpp_err=yes
4991219820Sjefffi
4992219820Sjeffif test -z "$ac_cpp_err"; then
4993219820Sjeff  :
4994219820Sjeffelse
4995219820Sjeff  echo "$as_me: failed program was:" >&5
4996219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
4997219820Sjeff
4998219820Sjeff  # Broken: fails on valid input.
4999219820Sjeffcontinue
5000219820Sjefffi
5001219820Sjeffrm -f conftest.err conftest.$ac_ext
5002219820Sjeff
5003219820Sjeff  # OK, works on sane cases.  Now check whether non-existent headers
5004219820Sjeff  # can be detected and how.
5005219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
5006219820Sjeff/* confdefs.h.  */
5007219820Sjeff_ACEOF
5008219820Sjeffcat confdefs.h >>conftest.$ac_ext
5009219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
5010219820Sjeff/* end confdefs.h.  */
5011219820Sjeff#include <ac_nonexistent.h>
5012219820Sjeff_ACEOF
5013219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5014219820Sjeff  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5015219820Sjeff  ac_status=$?
5016219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
5017219820Sjeff  rm -f conftest.er1
5018219820Sjeff  cat conftest.err >&5
5019219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020219820Sjeff  (exit $ac_status); } >/dev/null; then
5021219820Sjeff  if test -s conftest.err; then
5022219820Sjeff    ac_cpp_err=$ac_cxx_preproc_warn_flag
5023219820Sjeff    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5024219820Sjeff  else
5025219820Sjeff    ac_cpp_err=
5026219820Sjeff  fi
5027219820Sjeffelse
5028219820Sjeff  ac_cpp_err=yes
5029219820Sjefffi
5030219820Sjeffif test -z "$ac_cpp_err"; then
5031219820Sjeff  # Broken: success on invalid input.
5032219820Sjeffcontinue
5033219820Sjeffelse
5034219820Sjeff  echo "$as_me: failed program was:" >&5
5035219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
5036219820Sjeff
5037219820Sjeff  # Passes both tests.
5038219820Sjeffac_preproc_ok=:
5039219820Sjeffbreak
5040219820Sjefffi
5041219820Sjeffrm -f conftest.err conftest.$ac_ext
5042219820Sjeff
5043219820Sjeffdone
5044219820Sjeff# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5045219820Sjeffrm -f conftest.err conftest.$ac_ext
5046219820Sjeffif $ac_preproc_ok; then
5047219820Sjeff  break
5048219820Sjefffi
5049219820Sjeff
5050219820Sjeff    done
5051219820Sjeff    ac_cv_prog_CXXCPP=$CXXCPP
5052219820Sjeff
5053219820Sjefffi
5054219820Sjeff  CXXCPP=$ac_cv_prog_CXXCPP
5055219820Sjeffelse
5056219820Sjeff  ac_cv_prog_CXXCPP=$CXXCPP
5057219820Sjefffi
5058219820Sjeffecho "$as_me:$LINENO: result: $CXXCPP" >&5
5059219820Sjeffecho "${ECHO_T}$CXXCPP" >&6
5060219820Sjeffac_preproc_ok=false
5061219820Sjefffor ac_cxx_preproc_warn_flag in '' yes
5062219820Sjeffdo
5063219820Sjeff  # Use a header file that comes with gcc, so configuring glibc
5064219820Sjeff  # with a fresh cross-compiler works.
5065219820Sjeff  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5066219820Sjeff  # <limits.h> exists even on freestanding compilers.
5067219820Sjeff  # On the NeXT, cc -E runs the code through the compiler's parser,
5068219820Sjeff  # not just through cpp. "Syntax error" is here to catch this case.
5069219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
5070219820Sjeff/* confdefs.h.  */
5071219820Sjeff_ACEOF
5072219820Sjeffcat confdefs.h >>conftest.$ac_ext
5073219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
5074219820Sjeff/* end confdefs.h.  */
5075219820Sjeff#ifdef __STDC__
5076219820Sjeff# include <limits.h>
5077219820Sjeff#else
5078219820Sjeff# include <assert.h>
5079219820Sjeff#endif
5080219820Sjeff		     Syntax error
5081219820Sjeff_ACEOF
5082219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5083219820Sjeff  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5084219820Sjeff  ac_status=$?
5085219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
5086219820Sjeff  rm -f conftest.er1
5087219820Sjeff  cat conftest.err >&5
5088219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089219820Sjeff  (exit $ac_status); } >/dev/null; then
5090219820Sjeff  if test -s conftest.err; then
5091219820Sjeff    ac_cpp_err=$ac_cxx_preproc_warn_flag
5092219820Sjeff    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5093219820Sjeff  else
5094219820Sjeff    ac_cpp_err=
5095219820Sjeff  fi
5096219820Sjeffelse
5097219820Sjeff  ac_cpp_err=yes
5098219820Sjefffi
5099219820Sjeffif test -z "$ac_cpp_err"; then
5100219820Sjeff  :
5101219820Sjeffelse
5102219820Sjeff  echo "$as_me: failed program was:" >&5
5103219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
5104219820Sjeff
5105219820Sjeff  # Broken: fails on valid input.
5106219820Sjeffcontinue
5107219820Sjefffi
5108219820Sjeffrm -f conftest.err conftest.$ac_ext
5109219820Sjeff
5110219820Sjeff  # OK, works on sane cases.  Now check whether non-existent headers
5111219820Sjeff  # can be detected and how.
5112219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
5113219820Sjeff/* confdefs.h.  */
5114219820Sjeff_ACEOF
5115219820Sjeffcat confdefs.h >>conftest.$ac_ext
5116219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
5117219820Sjeff/* end confdefs.h.  */
5118219820Sjeff#include <ac_nonexistent.h>
5119219820Sjeff_ACEOF
5120219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121219820Sjeff  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122219820Sjeff  ac_status=$?
5123219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
5124219820Sjeff  rm -f conftest.er1
5125219820Sjeff  cat conftest.err >&5
5126219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127219820Sjeff  (exit $ac_status); } >/dev/null; then
5128219820Sjeff  if test -s conftest.err; then
5129219820Sjeff    ac_cpp_err=$ac_cxx_preproc_warn_flag
5130219820Sjeff    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5131219820Sjeff  else
5132219820Sjeff    ac_cpp_err=
5133219820Sjeff  fi
5134219820Sjeffelse
5135219820Sjeff  ac_cpp_err=yes
5136219820Sjefffi
5137219820Sjeffif test -z "$ac_cpp_err"; then
5138219820Sjeff  # Broken: success on invalid input.
5139219820Sjeffcontinue
5140219820Sjeffelse
5141219820Sjeff  echo "$as_me: failed program was:" >&5
5142219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
5143219820Sjeff
5144219820Sjeff  # Passes both tests.
5145219820Sjeffac_preproc_ok=:
5146219820Sjeffbreak
5147219820Sjefffi
5148219820Sjeffrm -f conftest.err conftest.$ac_ext
5149219820Sjeff
5150219820Sjeffdone
5151219820Sjeff# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5152219820Sjeffrm -f conftest.err conftest.$ac_ext
5153219820Sjeffif $ac_preproc_ok; then
5154219820Sjeff  :
5155219820Sjeffelse
5156219820Sjeff  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5157219820SjeffSee \`config.log' for more details." >&5
5158219820Sjeffecho "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5159219820SjeffSee \`config.log' for more details." >&2;}
5160219820Sjeff   { (exit 1); exit 1; }; }
5161219820Sjefffi
5162219820Sjeff
5163219820Sjeffac_ext=cc
5164219820Sjeffac_cpp='$CXXCPP $CPPFLAGS'
5165219820Sjeffac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166219820Sjeffac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167219820Sjeffac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5168219820Sjeff
5169219820Sjefffi
5170219820Sjeff
5171219820Sjeff
5172219820Sjeffac_ext=f
5173219820Sjeffac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5174219820Sjeffac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175219820Sjeffac_compiler_gnu=$ac_cv_f77_compiler_gnu
5176219820Sjeffif test -n "$ac_tool_prefix"; then
5177219820Sjeff  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5178219820Sjeff  do
5179219820Sjeff    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180219820Sjeffset dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
5182219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183219820Sjeffif test "${ac_cv_prog_F77+set}" = set; then
5184219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
5185219820Sjeffelse
5186219820Sjeff  if test -n "$F77"; then
5187219820Sjeff  ac_cv_prog_F77="$F77" # Let the user override the test.
5188219820Sjeffelse
5189219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190219820Sjefffor as_dir in $PATH
5191219820Sjeffdo
5192219820Sjeff  IFS=$as_save_IFS
5193219820Sjeff  test -z "$as_dir" && as_dir=.
5194219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
5195219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196219820Sjeff    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5197219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198219820Sjeff    break 2
5199219820Sjeff  fi
5200219820Sjeffdone
5201219820Sjeffdone
5202219820Sjeff
5203219820Sjefffi
5204219820Sjefffi
5205219820SjeffF77=$ac_cv_prog_F77
5206219820Sjeffif test -n "$F77"; then
5207219820Sjeff  echo "$as_me:$LINENO: result: $F77" >&5
5208219820Sjeffecho "${ECHO_T}$F77" >&6
5209219820Sjeffelse
5210219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
5211219820Sjeffecho "${ECHO_T}no" >&6
5212219820Sjefffi
5213219820Sjeff
5214219820Sjeff    test -n "$F77" && break
5215219820Sjeff  done
5216219820Sjefffi
5217219820Sjeffif test -z "$F77"; then
5218219820Sjeff  ac_ct_F77=$F77
5219219820Sjeff  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5220219820Sjeffdo
5221219820Sjeff  # Extract the first word of "$ac_prog", so it can be a program name with args.
5222219820Sjeffset dummy $ac_prog; ac_word=$2
5223219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
5224219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225219820Sjeffif test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5226219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
5227219820Sjeffelse
5228219820Sjeff  if test -n "$ac_ct_F77"; then
5229219820Sjeff  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5230219820Sjeffelse
5231219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232219820Sjefffor as_dir in $PATH
5233219820Sjeffdo
5234219820Sjeff  IFS=$as_save_IFS
5235219820Sjeff  test -z "$as_dir" && as_dir=.
5236219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
5237219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238219820Sjeff    ac_cv_prog_ac_ct_F77="$ac_prog"
5239219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240219820Sjeff    break 2
5241219820Sjeff  fi
5242219820Sjeffdone
5243219820Sjeffdone
5244219820Sjeff
5245219820Sjefffi
5246219820Sjefffi
5247219820Sjeffac_ct_F77=$ac_cv_prog_ac_ct_F77
5248219820Sjeffif test -n "$ac_ct_F77"; then
5249219820Sjeff  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5250219820Sjeffecho "${ECHO_T}$ac_ct_F77" >&6
5251219820Sjeffelse
5252219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
5253219820Sjeffecho "${ECHO_T}no" >&6
5254219820Sjefffi
5255219820Sjeff
5256219820Sjeff  test -n "$ac_ct_F77" && break
5257219820Sjeffdone
5258219820Sjeff
5259219820Sjeff  F77=$ac_ct_F77
5260219820Sjefffi
5261219820Sjeff
5262219820Sjeff
5263219820Sjeff# Provide some information about the compiler.
5264219820Sjeffecho "$as_me:5264:" \
5265219820Sjeff     "checking for Fortran 77 compiler version" >&5
5266219820Sjeffac_compiler=`set X $ac_compile; echo $2`
5267219820Sjeff{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5268219820Sjeff  (eval $ac_compiler --version </dev/null >&5) 2>&5
5269219820Sjeff  ac_status=$?
5270219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271219820Sjeff  (exit $ac_status); }
5272219820Sjeff{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5273219820Sjeff  (eval $ac_compiler -v </dev/null >&5) 2>&5
5274219820Sjeff  ac_status=$?
5275219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276219820Sjeff  (exit $ac_status); }
5277219820Sjeff{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5278219820Sjeff  (eval $ac_compiler -V </dev/null >&5) 2>&5
5279219820Sjeff  ac_status=$?
5280219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281219820Sjeff  (exit $ac_status); }
5282219820Sjeffrm -f a.out
5283219820Sjeff
5284219820Sjeff# If we don't use `.F' as extension, the preprocessor is not run on the
5285219820Sjeff# input file.  (Note that this only needs to work for GNU compilers.)
5286219820Sjeffac_save_ext=$ac_ext
5287219820Sjeffac_ext=F
5288219820Sjeffecho "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5289219820Sjeffecho $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5290219820Sjeffif test "${ac_cv_f77_compiler_gnu+set}" = set; then
5291219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
5292219820Sjeffelse
5293219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
5294219820Sjeff      program main
5295219820Sjeff#ifndef __GNUC__
5296219820Sjeff       choke me
5297219820Sjeff#endif
5298219820Sjeff
5299219820Sjeff      end
5300219820Sjeff_ACEOF
5301219820Sjeffrm -f conftest.$ac_objext
5302219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303219820Sjeff  (eval $ac_compile) 2>conftest.er1
5304219820Sjeff  ac_status=$?
5305219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
5306219820Sjeff  rm -f conftest.er1
5307219820Sjeff  cat conftest.err >&5
5308219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309219820Sjeff  (exit $ac_status); } &&
5310219820Sjeff	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5311219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312219820Sjeff  (eval $ac_try) 2>&5
5313219820Sjeff  ac_status=$?
5314219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315219820Sjeff  (exit $ac_status); }; } &&
5316219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
5317219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318219820Sjeff  (eval $ac_try) 2>&5
5319219820Sjeff  ac_status=$?
5320219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321219820Sjeff  (exit $ac_status); }; }; then
5322219820Sjeff  ac_compiler_gnu=yes
5323219820Sjeffelse
5324219820Sjeff  echo "$as_me: failed program was:" >&5
5325219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
5326219820Sjeff
5327219820Sjeffac_compiler_gnu=no
5328219820Sjefffi
5329219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5330219820Sjeffac_cv_f77_compiler_gnu=$ac_compiler_gnu
5331219820Sjeff
5332219820Sjefffi
5333219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5334219820Sjeffecho "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5335219820Sjeffac_ext=$ac_save_ext
5336219820Sjeffac_test_FFLAGS=${FFLAGS+set}
5337219820Sjeffac_save_FFLAGS=$FFLAGS
5338219820SjeffFFLAGS=
5339219820Sjeffecho "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5340219820Sjeffecho $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5341219820Sjeffif test "${ac_cv_prog_f77_g+set}" = set; then
5342219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
5343219820Sjeffelse
5344219820Sjeff  FFLAGS=-g
5345219820Sjeffcat >conftest.$ac_ext <<_ACEOF
5346219820Sjeff      program main
5347219820Sjeff
5348219820Sjeff      end
5349219820Sjeff_ACEOF
5350219820Sjeffrm -f conftest.$ac_objext
5351219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352219820Sjeff  (eval $ac_compile) 2>conftest.er1
5353219820Sjeff  ac_status=$?
5354219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
5355219820Sjeff  rm -f conftest.er1
5356219820Sjeff  cat conftest.err >&5
5357219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358219820Sjeff  (exit $ac_status); } &&
5359219820Sjeff	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5360219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361219820Sjeff  (eval $ac_try) 2>&5
5362219820Sjeff  ac_status=$?
5363219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364219820Sjeff  (exit $ac_status); }; } &&
5365219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
5366219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367219820Sjeff  (eval $ac_try) 2>&5
5368219820Sjeff  ac_status=$?
5369219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370219820Sjeff  (exit $ac_status); }; }; then
5371219820Sjeff  ac_cv_prog_f77_g=yes
5372219820Sjeffelse
5373219820Sjeff  echo "$as_me: failed program was:" >&5
5374219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
5375219820Sjeff
5376219820Sjeffac_cv_prog_f77_g=no
5377219820Sjefffi
5378219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5379219820Sjeff
5380219820Sjefffi
5381219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5382219820Sjeffecho "${ECHO_T}$ac_cv_prog_f77_g" >&6
5383219820Sjeffif test "$ac_test_FFLAGS" = set; then
5384219820Sjeff  FFLAGS=$ac_save_FFLAGS
5385219820Sjeffelif test $ac_cv_prog_f77_g = yes; then
5386219820Sjeff  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5387219820Sjeff    FFLAGS="-g -O2"
5388219820Sjeff  else
5389219820Sjeff    FFLAGS="-g"
5390219820Sjeff  fi
5391219820Sjeffelse
5392219820Sjeff  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5393219820Sjeff    FFLAGS="-O2"
5394219820Sjeff  else
5395219820Sjeff    FFLAGS=
5396219820Sjeff  fi
5397219820Sjefffi
5398219820Sjeff
5399219820SjeffG77=`test $ac_compiler_gnu = yes && echo yes`
5400219820Sjeffac_ext=c
5401219820Sjeffac_cpp='$CPP $CPPFLAGS'
5402219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
5405219820Sjeff
5406219820Sjeff
5407219820Sjeff
5408219820Sjeff# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5409219820Sjeff
5410219820Sjeff# find the maximum length of command line arguments
5411219820Sjeffecho "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5412219820Sjeffecho $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5413219820Sjeffif test "${lt_cv_sys_max_cmd_len+set}" = set; then
5414219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
5415219820Sjeffelse
5416219820Sjeff    i=0
5417219820Sjeff  teststring="ABCD"
5418219820Sjeff
5419219820Sjeff  case $build_os in
5420219820Sjeff  msdosdjgpp*)
5421219820Sjeff    # On DJGPP, this test can blow up pretty badly due to problems in libc
5422219820Sjeff    # (any single argument exceeding 2000 bytes causes a buffer overrun
5423219820Sjeff    # during glob expansion).  Even if it were fixed, the result of this
5424219820Sjeff    # check would be larger than it should be.
5425219820Sjeff    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5426219820Sjeff    ;;
5427219820Sjeff
5428219820Sjeff  gnu*)
5429219820Sjeff    # Under GNU Hurd, this test is not required because there is
5430219820Sjeff    # no limit to the length of command line arguments.
5431219820Sjeff    # Libtool will interpret -1 as no limit whatsoever
5432219820Sjeff    lt_cv_sys_max_cmd_len=-1;
5433219820Sjeff    ;;
5434219820Sjeff
5435219820Sjeff  cygwin* | mingw*)
5436219820Sjeff    # On Win9x/ME, this test blows up -- it succeeds, but takes
5437219820Sjeff    # about 5 minutes as the teststring grows exponentially.
5438219820Sjeff    # Worse, since 9x/ME are not pre-emptively multitasking,
5439219820Sjeff    # you end up with a "frozen" computer, even though with patience
5440219820Sjeff    # the test eventually succeeds (with a max line length of 256k).
5441219820Sjeff    # Instead, let's just punt: use the minimum linelength reported by
5442219820Sjeff    # all of the supported platforms: 8192 (on NT/2K/XP).
5443219820Sjeff    lt_cv_sys_max_cmd_len=8192;
5444219820Sjeff    ;;
5445219820Sjeff
5446219820Sjeff  amigaos*)
5447219820Sjeff    # On AmigaOS with pdksh, this test takes hours, literally.
5448219820Sjeff    # So we just punt and use a minimum line length of 8192.
5449219820Sjeff    lt_cv_sys_max_cmd_len=8192;
5450219820Sjeff    ;;
5451219820Sjeff
5452219820Sjeff  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5453219820Sjeff    # This has been around since 386BSD, at least.  Likely further.
5454219820Sjeff    if test -x /sbin/sysctl; then
5455219820Sjeff      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5456219820Sjeff    elif test -x /usr/sbin/sysctl; then
5457219820Sjeff      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5458219820Sjeff    else
5459219820Sjeff      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5460219820Sjeff    fi
5461219820Sjeff    # And add a safety zone
5462219820Sjeff    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5463219820Sjeff    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5464219820Sjeff    ;;
5465219820Sjeff
5466219820Sjeff  interix*)
5467219820Sjeff    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5468219820Sjeff    lt_cv_sys_max_cmd_len=196608
5469219820Sjeff    ;;
5470219820Sjeff
5471219820Sjeff  osf*)
5472219820Sjeff    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5473219820Sjeff    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5474219820Sjeff    # nice to cause kernel panics so lets avoid the loop below.
5475219820Sjeff    # First set a reasonable default.
5476219820Sjeff    lt_cv_sys_max_cmd_len=16384
5477219820Sjeff    #
5478219820Sjeff    if test -x /sbin/sysconfig; then
5479219820Sjeff      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5480219820Sjeff        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5481219820Sjeff      esac
5482219820Sjeff    fi
5483219820Sjeff    ;;
5484219820Sjeff  sco3.2v5*)
5485219820Sjeff    lt_cv_sys_max_cmd_len=102400
5486219820Sjeff    ;;
5487219820Sjeff  sysv5* | sco5v6* | sysv4.2uw2*)
5488219820Sjeff    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5489219820Sjeff    if test -n "$kargmax"; then
5490219820Sjeff      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5491219820Sjeff    else
5492219820Sjeff      lt_cv_sys_max_cmd_len=32768
5493219820Sjeff    fi
5494219820Sjeff    ;;
5495219820Sjeff  *)
5496219820Sjeff    # If test is not a shell built-in, we'll probably end up computing a
5497219820Sjeff    # maximum length that is only half of the actual maximum length, but
5498219820Sjeff    # we can't tell.
5499219820Sjeff    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5500219820Sjeff    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5501219820Sjeff	       = "XX$teststring") >/dev/null 2>&1 &&
5502219820Sjeff	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5503219820Sjeff	    lt_cv_sys_max_cmd_len=$new_result &&
5504219820Sjeff	    test $i != 17 # 1/2 MB should be enough
5505219820Sjeff    do
5506219820Sjeff      i=`expr $i + 1`
5507219820Sjeff      teststring=$teststring$teststring
5508219820Sjeff    done
5509219820Sjeff    teststring=
5510219820Sjeff    # Add a significant safety factor because C++ compilers can tack on massive
5511219820Sjeff    # amounts of additional arguments before passing them to the linker.
5512219820Sjeff    # It appears as though 1/2 is a usable value.
5513219820Sjeff    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5514219820Sjeff    ;;
5515219820Sjeff  esac
5516219820Sjeff
5517219820Sjefffi
5518219820Sjeff
5519219820Sjeffif test -n $lt_cv_sys_max_cmd_len ; then
5520219820Sjeff  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5521219820Sjeffecho "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5522219820Sjeffelse
5523219820Sjeff  echo "$as_me:$LINENO: result: none" >&5
5524219820Sjeffecho "${ECHO_T}none" >&6
5525219820Sjefffi
5526219820Sjeff
5527219820Sjeff
5528219820Sjeff
5529219820Sjeff
5530219820Sjeff# Check for command to grab the raw symbol name followed by C symbol from nm.
5531219820Sjeffecho "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5532219820Sjeffecho $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5533219820Sjeffif test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5534219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
5535219820Sjeffelse
5536219820Sjeff
5537219820Sjeff# These are sane defaults that work on at least a few old systems.
5538219820Sjeff# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5539219820Sjeff
5540219820Sjeff# Character class describing NM global symbol codes.
5541219820Sjeffsymcode='[BCDEGRST]'
5542219820Sjeff
5543219820Sjeff# Regexp to match symbols that can be accessed directly from C.
5544219820Sjeffsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5545219820Sjeff
5546219820Sjeff# Transform an extracted symbol line into a proper C declaration
5547219820Sjefflt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5548219820Sjeff
5549219820Sjeff# Transform an extracted symbol line into symbol name and symbol address
5550219820Sjefflt_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'"
5551219820Sjeff
5552219820Sjeff# Define system-specific variables.
5553219820Sjeffcase $host_os in
5554219820Sjeffaix*)
5555219820Sjeff  symcode='[BCDT]'
5556219820Sjeff  ;;
5557219820Sjeffcygwin* | mingw* | pw32*)
5558219820Sjeff  symcode='[ABCDGISTW]'
5559219820Sjeff  ;;
5560219820Sjeffhpux*) # Its linker distinguishes data from code symbols
5561219820Sjeff  if test "$host_cpu" = ia64; then
5562219820Sjeff    symcode='[ABCDEGRST]'
5563219820Sjeff  fi
5564219820Sjeff  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5565219820Sjeff  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'"
5566219820Sjeff  ;;
5567219820Sjefflinux*)
5568219820Sjeff  if test "$host_cpu" = ia64; then
5569219820Sjeff    symcode='[ABCDGIRSTW]'
5570219820Sjeff    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5571219820Sjeff    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'"
5572219820Sjeff  fi
5573219820Sjeff  ;;
5574219820Sjeffirix* | nonstopux*)
5575219820Sjeff  symcode='[BCDEGRST]'
5576219820Sjeff  ;;
5577219820Sjeffosf*)
5578219820Sjeff  symcode='[BCDEGQRST]'
5579219820Sjeff  ;;
5580219820Sjeffsolaris*)
5581219820Sjeff  symcode='[BDRT]'
5582219820Sjeff  ;;
5583219820Sjeffsco3.2v5*)
5584219820Sjeff  symcode='[DT]'
5585219820Sjeff  ;;
5586219820Sjeffsysv4.2uw2*)
5587219820Sjeff  symcode='[DT]'
5588219820Sjeff  ;;
5589219820Sjeffsysv5* | sco5v6* | unixware* | OpenUNIX*)
5590219820Sjeff  symcode='[ABDT]'
5591219820Sjeff  ;;
5592219820Sjeffsysv4)
5593219820Sjeff  symcode='[DFNSTU]'
5594219820Sjeff  ;;
5595219820Sjeffesac
5596219820Sjeff
5597219820Sjeff# Handle CRLF in mingw tool chain
5598219820Sjeffopt_cr=
5599219820Sjeffcase $build_os in
5600219820Sjeffmingw*)
5601219820Sjeff  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5602219820Sjeff  ;;
5603219820Sjeffesac
5604219820Sjeff
5605219820Sjeff# If we're using GNU nm, then use its standard symbol codes.
5606219820Sjeffcase `$NM -V 2>&1` in
5607219820Sjeff*GNU* | *'with BFD'*)
5608219820Sjeff  symcode='[ABCDGIRSTW]' ;;
5609219820Sjeffesac
5610219820Sjeff
5611219820Sjeff# Try without a prefix undercore, then with it.
5612219820Sjefffor ac_symprfx in "" "_"; do
5613219820Sjeff
5614219820Sjeff  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5615219820Sjeff  symxfrm="\\1 $ac_symprfx\\2 \\2"
5616219820Sjeff
5617219820Sjeff  # Write the raw and C identifiers.
5618219820Sjeff  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5619219820Sjeff
5620219820Sjeff  # Check to see that the pipe works correctly.
5621219820Sjeff  pipe_works=no
5622219820Sjeff
5623219820Sjeff  rm -f conftest*
5624219820Sjeff  cat > conftest.$ac_ext <<EOF
5625219820Sjeff#ifdef __cplusplus
5626219820Sjeffextern "C" {
5627219820Sjeff#endif
5628219820Sjeffchar nm_test_var;
5629219820Sjeffvoid nm_test_func(){}
5630219820Sjeff#ifdef __cplusplus
5631219820Sjeff}
5632219820Sjeff#endif
5633219820Sjeffint main(){nm_test_var='a';nm_test_func();return(0);}
5634219820SjeffEOF
5635219820Sjeff
5636219820Sjeff  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637219820Sjeff  (eval $ac_compile) 2>&5
5638219820Sjeff  ac_status=$?
5639219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640219820Sjeff  (exit $ac_status); }; then
5641219820Sjeff    # Now try to grab the symbols.
5642219820Sjeff    nlist=conftest.nm
5643219820Sjeff    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5644219820Sjeff  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5645219820Sjeff  ac_status=$?
5646219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647219820Sjeff  (exit $ac_status); } && test -s "$nlist"; then
5648219820Sjeff      # Try sorting and uniquifying the output.
5649219820Sjeff      if sort "$nlist" | uniq > "$nlist"T; then
5650219820Sjeff	mv -f "$nlist"T "$nlist"
5651219820Sjeff      else
5652219820Sjeff	rm -f "$nlist"T
5653219820Sjeff      fi
5654219820Sjeff
5655219820Sjeff      # Make sure that we snagged all the symbols we need.
5656219820Sjeff      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5657219820Sjeff	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5658219820Sjeff	  cat <<EOF > conftest.$ac_ext
5659219820Sjeff#ifdef __cplusplus
5660219820Sjeffextern "C" {
5661219820Sjeff#endif
5662219820Sjeff
5663219820SjeffEOF
5664219820Sjeff	  # Now generate the symbol file.
5665219820Sjeff	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5666219820Sjeff
5667219820Sjeff	  cat <<EOF >> conftest.$ac_ext
5668219820Sjeff#if defined (__STDC__) && __STDC__
5669219820Sjeff# define lt_ptr_t void *
5670219820Sjeff#else
5671219820Sjeff# define lt_ptr_t char *
5672219820Sjeff# define const
5673219820Sjeff#endif
5674219820Sjeff
5675219820Sjeff/* The mapping between symbol names and symbols. */
5676219820Sjeffconst struct {
5677219820Sjeff  const char *name;
5678219820Sjeff  lt_ptr_t address;
5679219820Sjeff}
5680219820Sjefflt_preloaded_symbols[] =
5681219820Sjeff{
5682219820SjeffEOF
5683219820Sjeff	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5684219820Sjeff	  cat <<\EOF >> conftest.$ac_ext
5685219820Sjeff  {0, (lt_ptr_t) 0}
5686219820Sjeff};
5687219820Sjeff
5688219820Sjeff#ifdef __cplusplus
5689219820Sjeff}
5690219820Sjeff#endif
5691219820SjeffEOF
5692219820Sjeff	  # Now try linking the two files.
5693219820Sjeff	  mv conftest.$ac_objext conftstm.$ac_objext
5694219820Sjeff	  lt_save_LIBS="$LIBS"
5695219820Sjeff	  lt_save_CFLAGS="$CFLAGS"
5696219820Sjeff	  LIBS="conftstm.$ac_objext"
5697219820Sjeff	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5698219820Sjeff	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5699219820Sjeff  (eval $ac_link) 2>&5
5700219820Sjeff  ac_status=$?
5701219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702219820Sjeff  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5703219820Sjeff	    pipe_works=yes
5704219820Sjeff	  fi
5705219820Sjeff	  LIBS="$lt_save_LIBS"
5706219820Sjeff	  CFLAGS="$lt_save_CFLAGS"
5707219820Sjeff	else
5708219820Sjeff	  echo "cannot find nm_test_func in $nlist" >&5
5709219820Sjeff	fi
5710219820Sjeff      else
5711219820Sjeff	echo "cannot find nm_test_var in $nlist" >&5
5712219820Sjeff      fi
5713219820Sjeff    else
5714219820Sjeff      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5715219820Sjeff    fi
5716219820Sjeff  else
5717219820Sjeff    echo "$progname: failed program was:" >&5
5718219820Sjeff    cat conftest.$ac_ext >&5
5719219820Sjeff  fi
5720219820Sjeff  rm -f conftest* conftst*
5721219820Sjeff
5722219820Sjeff  # Do not use the global_symbol_pipe unless it works.
5723219820Sjeff  if test "$pipe_works" = yes; then
5724219820Sjeff    break
5725219820Sjeff  else
5726219820Sjeff    lt_cv_sys_global_symbol_pipe=
5727219820Sjeff  fi
5728219820Sjeffdone
5729219820Sjeff
5730219820Sjefffi
5731219820Sjeff
5732219820Sjeffif test -z "$lt_cv_sys_global_symbol_pipe"; then
5733219820Sjeff  lt_cv_sys_global_symbol_to_cdecl=
5734219820Sjefffi
5735219820Sjeffif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5736219820Sjeff  echo "$as_me:$LINENO: result: failed" >&5
5737219820Sjeffecho "${ECHO_T}failed" >&6
5738219820Sjeffelse
5739219820Sjeff  echo "$as_me:$LINENO: result: ok" >&5
5740219820Sjeffecho "${ECHO_T}ok" >&6
5741219820Sjefffi
5742219820Sjeff
5743219820Sjeffecho "$as_me:$LINENO: checking for objdir" >&5
5744219820Sjeffecho $ECHO_N "checking for objdir... $ECHO_C" >&6
5745219820Sjeffif test "${lt_cv_objdir+set}" = set; then
5746219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
5747219820Sjeffelse
5748219820Sjeff  rm -f .libs 2>/dev/null
5749219820Sjeffmkdir .libs 2>/dev/null
5750219820Sjeffif test -d .libs; then
5751219820Sjeff  lt_cv_objdir=.libs
5752219820Sjeffelse
5753219820Sjeff  # MS-DOS does not allow filenames that begin with a dot.
5754219820Sjeff  lt_cv_objdir=_libs
5755219820Sjefffi
5756219820Sjeffrmdir .libs 2>/dev/null
5757219820Sjefffi
5758219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5759219820Sjeffecho "${ECHO_T}$lt_cv_objdir" >&6
5760219820Sjeffobjdir=$lt_cv_objdir
5761219820Sjeff
5762219820Sjeff
5763219820Sjeff
5764219820Sjeff
5765219820Sjeff
5766219820Sjeffcase $host_os in
5767219820Sjeffaix3*)
5768219820Sjeff  # AIX sometimes has problems with the GCC collect2 program.  For some
5769219820Sjeff  # reason, if we set the COLLECT_NAMES environment variable, the problems
5770219820Sjeff  # vanish in a puff of smoke.
5771219820Sjeff  if test "X${COLLECT_NAMES+set}" != Xset; then
5772219820Sjeff    COLLECT_NAMES=
5773219820Sjeff    export COLLECT_NAMES
5774219820Sjeff  fi
5775219820Sjeff  ;;
5776219820Sjeffesac
5777219820Sjeff
5778219820Sjeff# Sed substitution that helps us do robust quoting.  It backslashifies
5779219820Sjeff# metacharacters that are still active within double-quoted strings.
5780219820SjeffXsed='sed -e 1s/^X//'
5781219820Sjeffsed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5782219820Sjeff
5783219820Sjeff# Same as above, but do not quote variable references.
5784219820Sjeffdouble_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5785219820Sjeff
5786219820Sjeff# Sed substitution to delay expansion of an escaped shell variable in a
5787219820Sjeff# double_quote_subst'ed string.
5788219820Sjeffdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5789219820Sjeff
5790219820Sjeff# Sed substitution to avoid accidental globbing in evaled expressions
5791219820Sjeffno_glob_subst='s/\*/\\\*/g'
5792219820Sjeff
5793219820Sjeff# Constants:
5794219820Sjeffrm="rm -f"
5795219820Sjeff
5796219820Sjeff# Global variables:
5797219820Sjeffdefault_ofile=libtool
5798219820Sjeffcan_build_shared=yes
5799219820Sjeff
5800219820Sjeff# All known linkers require a `.a' archive for static linking (except MSVC,
5801219820Sjeff# which needs '.lib').
5802219820Sjefflibext=a
5803219820Sjeffltmain="$ac_aux_dir/ltmain.sh"
5804219820Sjeffofile="$default_ofile"
5805219820Sjeffwith_gnu_ld="$lt_cv_prog_gnu_ld"
5806219820Sjeff
5807219820Sjeffif test -n "$ac_tool_prefix"; then
5808219820Sjeff  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5809219820Sjeffset dummy ${ac_tool_prefix}ar; ac_word=$2
5810219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
5811219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812219820Sjeffif test "${ac_cv_prog_AR+set}" = set; then
5813219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
5814219820Sjeffelse
5815219820Sjeff  if test -n "$AR"; then
5816219820Sjeff  ac_cv_prog_AR="$AR" # Let the user override the test.
5817219820Sjeffelse
5818219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819219820Sjefffor as_dir in $PATH
5820219820Sjeffdo
5821219820Sjeff  IFS=$as_save_IFS
5822219820Sjeff  test -z "$as_dir" && as_dir=.
5823219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
5824219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825219820Sjeff    ac_cv_prog_AR="${ac_tool_prefix}ar"
5826219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827219820Sjeff    break 2
5828219820Sjeff  fi
5829219820Sjeffdone
5830219820Sjeffdone
5831219820Sjeff
5832219820Sjefffi
5833219820Sjefffi
5834219820SjeffAR=$ac_cv_prog_AR
5835219820Sjeffif test -n "$AR"; then
5836219820Sjeff  echo "$as_me:$LINENO: result: $AR" >&5
5837219820Sjeffecho "${ECHO_T}$AR" >&6
5838219820Sjeffelse
5839219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
5840219820Sjeffecho "${ECHO_T}no" >&6
5841219820Sjefffi
5842219820Sjeff
5843219820Sjefffi
5844219820Sjeffif test -z "$ac_cv_prog_AR"; then
5845219820Sjeff  ac_ct_AR=$AR
5846219820Sjeff  # Extract the first word of "ar", so it can be a program name with args.
5847219820Sjeffset dummy ar; ac_word=$2
5848219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
5849219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850219820Sjeffif test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5851219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
5852219820Sjeffelse
5853219820Sjeff  if test -n "$ac_ct_AR"; then
5854219820Sjeff  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5855219820Sjeffelse
5856219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857219820Sjefffor as_dir in $PATH
5858219820Sjeffdo
5859219820Sjeff  IFS=$as_save_IFS
5860219820Sjeff  test -z "$as_dir" && as_dir=.
5861219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
5862219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863219820Sjeff    ac_cv_prog_ac_ct_AR="ar"
5864219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865219820Sjeff    break 2
5866219820Sjeff  fi
5867219820Sjeffdone
5868219820Sjeffdone
5869219820Sjeff
5870219820Sjeff  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5871219820Sjefffi
5872219820Sjefffi
5873219820Sjeffac_ct_AR=$ac_cv_prog_ac_ct_AR
5874219820Sjeffif test -n "$ac_ct_AR"; then
5875219820Sjeff  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5876219820Sjeffecho "${ECHO_T}$ac_ct_AR" >&6
5877219820Sjeffelse
5878219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
5879219820Sjeffecho "${ECHO_T}no" >&6
5880219820Sjefffi
5881219820Sjeff
5882219820Sjeff  AR=$ac_ct_AR
5883219820Sjeffelse
5884219820Sjeff  AR="$ac_cv_prog_AR"
5885219820Sjefffi
5886219820Sjeff
5887219820Sjeffif test -n "$ac_tool_prefix"; then
5888219820Sjeff  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5889219820Sjeffset dummy ${ac_tool_prefix}ranlib; ac_word=$2
5890219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
5891219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892219820Sjeffif test "${ac_cv_prog_RANLIB+set}" = set; then
5893219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
5894219820Sjeffelse
5895219820Sjeff  if test -n "$RANLIB"; then
5896219820Sjeff  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5897219820Sjeffelse
5898219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899219820Sjefffor as_dir in $PATH
5900219820Sjeffdo
5901219820Sjeff  IFS=$as_save_IFS
5902219820Sjeff  test -z "$as_dir" && as_dir=.
5903219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
5904219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905219820Sjeff    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5906219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907219820Sjeff    break 2
5908219820Sjeff  fi
5909219820Sjeffdone
5910219820Sjeffdone
5911219820Sjeff
5912219820Sjefffi
5913219820Sjefffi
5914219820SjeffRANLIB=$ac_cv_prog_RANLIB
5915219820Sjeffif test -n "$RANLIB"; then
5916219820Sjeff  echo "$as_me:$LINENO: result: $RANLIB" >&5
5917219820Sjeffecho "${ECHO_T}$RANLIB" >&6
5918219820Sjeffelse
5919219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
5920219820Sjeffecho "${ECHO_T}no" >&6
5921219820Sjefffi
5922219820Sjeff
5923219820Sjefffi
5924219820Sjeffif test -z "$ac_cv_prog_RANLIB"; then
5925219820Sjeff  ac_ct_RANLIB=$RANLIB
5926219820Sjeff  # Extract the first word of "ranlib", so it can be a program name with args.
5927219820Sjeffset dummy ranlib; ac_word=$2
5928219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
5929219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930219820Sjeffif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5931219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
5932219820Sjeffelse
5933219820Sjeff  if test -n "$ac_ct_RANLIB"; then
5934219820Sjeff  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5935219820Sjeffelse
5936219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937219820Sjefffor as_dir in $PATH
5938219820Sjeffdo
5939219820Sjeff  IFS=$as_save_IFS
5940219820Sjeff  test -z "$as_dir" && as_dir=.
5941219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
5942219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943219820Sjeff    ac_cv_prog_ac_ct_RANLIB="ranlib"
5944219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945219820Sjeff    break 2
5946219820Sjeff  fi
5947219820Sjeffdone
5948219820Sjeffdone
5949219820Sjeff
5950219820Sjeff  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5951219820Sjefffi
5952219820Sjefffi
5953219820Sjeffac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5954219820Sjeffif test -n "$ac_ct_RANLIB"; then
5955219820Sjeff  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5956219820Sjeffecho "${ECHO_T}$ac_ct_RANLIB" >&6
5957219820Sjeffelse
5958219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
5959219820Sjeffecho "${ECHO_T}no" >&6
5960219820Sjefffi
5961219820Sjeff
5962219820Sjeff  RANLIB=$ac_ct_RANLIB
5963219820Sjeffelse
5964219820Sjeff  RANLIB="$ac_cv_prog_RANLIB"
5965219820Sjefffi
5966219820Sjeff
5967219820Sjeffif test -n "$ac_tool_prefix"; then
5968219820Sjeff  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5969219820Sjeffset dummy ${ac_tool_prefix}strip; ac_word=$2
5970219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
5971219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5972219820Sjeffif test "${ac_cv_prog_STRIP+set}" = set; then
5973219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
5974219820Sjeffelse
5975219820Sjeff  if test -n "$STRIP"; then
5976219820Sjeff  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5977219820Sjeffelse
5978219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979219820Sjefffor as_dir in $PATH
5980219820Sjeffdo
5981219820Sjeff  IFS=$as_save_IFS
5982219820Sjeff  test -z "$as_dir" && as_dir=.
5983219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
5984219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985219820Sjeff    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5986219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987219820Sjeff    break 2
5988219820Sjeff  fi
5989219820Sjeffdone
5990219820Sjeffdone
5991219820Sjeff
5992219820Sjefffi
5993219820Sjefffi
5994219820SjeffSTRIP=$ac_cv_prog_STRIP
5995219820Sjeffif test -n "$STRIP"; then
5996219820Sjeff  echo "$as_me:$LINENO: result: $STRIP" >&5
5997219820Sjeffecho "${ECHO_T}$STRIP" >&6
5998219820Sjeffelse
5999219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
6000219820Sjeffecho "${ECHO_T}no" >&6
6001219820Sjefffi
6002219820Sjeff
6003219820Sjefffi
6004219820Sjeffif test -z "$ac_cv_prog_STRIP"; then
6005219820Sjeff  ac_ct_STRIP=$STRIP
6006219820Sjeff  # Extract the first word of "strip", so it can be a program name with args.
6007219820Sjeffset dummy strip; ac_word=$2
6008219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
6009219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010219820Sjeffif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6011219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
6012219820Sjeffelse
6013219820Sjeff  if test -n "$ac_ct_STRIP"; then
6014219820Sjeff  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6015219820Sjeffelse
6016219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017219820Sjefffor as_dir in $PATH
6018219820Sjeffdo
6019219820Sjeff  IFS=$as_save_IFS
6020219820Sjeff  test -z "$as_dir" && as_dir=.
6021219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
6022219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023219820Sjeff    ac_cv_prog_ac_ct_STRIP="strip"
6024219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025219820Sjeff    break 2
6026219820Sjeff  fi
6027219820Sjeffdone
6028219820Sjeffdone
6029219820Sjeff
6030219820Sjeff  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6031219820Sjefffi
6032219820Sjefffi
6033219820Sjeffac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6034219820Sjeffif test -n "$ac_ct_STRIP"; then
6035219820Sjeff  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6036219820Sjeffecho "${ECHO_T}$ac_ct_STRIP" >&6
6037219820Sjeffelse
6038219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
6039219820Sjeffecho "${ECHO_T}no" >&6
6040219820Sjefffi
6041219820Sjeff
6042219820Sjeff  STRIP=$ac_ct_STRIP
6043219820Sjeffelse
6044219820Sjeff  STRIP="$ac_cv_prog_STRIP"
6045219820Sjefffi
6046219820Sjeff
6047219820Sjeff
6048219820Sjeffold_CC="$CC"
6049219820Sjeffold_CFLAGS="$CFLAGS"
6050219820Sjeff
6051219820Sjeff# Set sane defaults for various variables
6052219820Sjefftest -z "$AR" && AR=ar
6053219820Sjefftest -z "$AR_FLAGS" && AR_FLAGS=cru
6054219820Sjefftest -z "$AS" && AS=as
6055219820Sjefftest -z "$CC" && CC=cc
6056219820Sjefftest -z "$LTCC" && LTCC=$CC
6057219820Sjefftest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6058219820Sjefftest -z "$DLLTOOL" && DLLTOOL=dlltool
6059219820Sjefftest -z "$LD" && LD=ld
6060219820Sjefftest -z "$LN_S" && LN_S="ln -s"
6061219820Sjefftest -z "$MAGIC_CMD" && MAGIC_CMD=file
6062219820Sjefftest -z "$NM" && NM=nm
6063219820Sjefftest -z "$SED" && SED=sed
6064219820Sjefftest -z "$OBJDUMP" && OBJDUMP=objdump
6065219820Sjefftest -z "$RANLIB" && RANLIB=:
6066219820Sjefftest -z "$STRIP" && STRIP=:
6067219820Sjefftest -z "$ac_objext" && ac_objext=o
6068219820Sjeff
6069219820Sjeff# Determine commands to create old-style static archives.
6070219820Sjeffold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6071219820Sjeffold_postinstall_cmds='chmod 644 $oldlib'
6072219820Sjeffold_postuninstall_cmds=
6073219820Sjeff
6074219820Sjeffif test -n "$RANLIB"; then
6075219820Sjeff  case $host_os in
6076219820Sjeff  openbsd*)
6077219820Sjeff    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6078219820Sjeff    ;;
6079219820Sjeff  *)
6080219820Sjeff    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6081219820Sjeff    ;;
6082219820Sjeff  esac
6083219820Sjeff  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6084219820Sjefffi
6085219820Sjeff
6086219820Sjefffor cc_temp in $compiler""; do
6087219820Sjeff  case $cc_temp in
6088219820Sjeff    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6089219820Sjeff    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6090219820Sjeff    \-*) ;;
6091219820Sjeff    *) break;;
6092219820Sjeff  esac
6093219820Sjeffdone
6094219820Sjeffcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6095219820Sjeff
6096219820Sjeff
6097219820Sjeff# Only perform the check for file, if the check method requires it
6098219820Sjeffcase $deplibs_check_method in
6099219820Sjefffile_magic*)
6100219820Sjeff  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6101219820Sjeff    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6102219820Sjeffecho $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6103219820Sjeffif test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6104219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
6105219820Sjeffelse
6106219820Sjeff  case $MAGIC_CMD in
6107219820Sjeff[\\/*] |  ?:[\\/]*)
6108219820Sjeff  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6109219820Sjeff  ;;
6110219820Sjeff*)
6111219820Sjeff  lt_save_MAGIC_CMD="$MAGIC_CMD"
6112219820Sjeff  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6113219820Sjeff  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6114219820Sjeff  for ac_dir in $ac_dummy; do
6115219820Sjeff    IFS="$lt_save_ifs"
6116219820Sjeff    test -z "$ac_dir" && ac_dir=.
6117219820Sjeff    if test -f $ac_dir/${ac_tool_prefix}file; then
6118219820Sjeff      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6119219820Sjeff      if test -n "$file_magic_test_file"; then
6120219820Sjeff	case $deplibs_check_method in
6121219820Sjeff	"file_magic "*)
6122219820Sjeff	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6123219820Sjeff	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6124219820Sjeff	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6125219820Sjeff	    $EGREP "$file_magic_regex" > /dev/null; then
6126219820Sjeff	    :
6127219820Sjeff	  else
6128219820Sjeff	    cat <<EOF 1>&2
6129219820Sjeff
6130219820Sjeff*** Warning: the command libtool uses to detect shared libraries,
6131219820Sjeff*** $file_magic_cmd, produces output that libtool cannot recognize.
6132219820Sjeff*** The result is that libtool may fail to recognize shared libraries
6133219820Sjeff*** as such.  This will affect the creation of libtool libraries that
6134219820Sjeff*** depend on shared libraries, but programs linked with such libtool
6135219820Sjeff*** libraries will work regardless of this problem.  Nevertheless, you
6136219820Sjeff*** may want to report the problem to your system manager and/or to
6137219820Sjeff*** bug-libtool@gnu.org
6138219820Sjeff
6139219820SjeffEOF
6140219820Sjeff	  fi ;;
6141219820Sjeff	esac
6142219820Sjeff      fi
6143219820Sjeff      break
6144219820Sjeff    fi
6145219820Sjeff  done
6146219820Sjeff  IFS="$lt_save_ifs"
6147219820Sjeff  MAGIC_CMD="$lt_save_MAGIC_CMD"
6148219820Sjeff  ;;
6149219820Sjeffesac
6150219820Sjefffi
6151219820Sjeff
6152219820SjeffMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6153219820Sjeffif test -n "$MAGIC_CMD"; then
6154219820Sjeff  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6155219820Sjeffecho "${ECHO_T}$MAGIC_CMD" >&6
6156219820Sjeffelse
6157219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
6158219820Sjeffecho "${ECHO_T}no" >&6
6159219820Sjefffi
6160219820Sjeff
6161219820Sjeffif test -z "$lt_cv_path_MAGIC_CMD"; then
6162219820Sjeff  if test -n "$ac_tool_prefix"; then
6163219820Sjeff    echo "$as_me:$LINENO: checking for file" >&5
6164219820Sjeffecho $ECHO_N "checking for file... $ECHO_C" >&6
6165219820Sjeffif test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6166219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
6167219820Sjeffelse
6168219820Sjeff  case $MAGIC_CMD in
6169219820Sjeff[\\/*] |  ?:[\\/]*)
6170219820Sjeff  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6171219820Sjeff  ;;
6172219820Sjeff*)
6173219820Sjeff  lt_save_MAGIC_CMD="$MAGIC_CMD"
6174219820Sjeff  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6175219820Sjeff  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6176219820Sjeff  for ac_dir in $ac_dummy; do
6177219820Sjeff    IFS="$lt_save_ifs"
6178219820Sjeff    test -z "$ac_dir" && ac_dir=.
6179219820Sjeff    if test -f $ac_dir/file; then
6180219820Sjeff      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6181219820Sjeff      if test -n "$file_magic_test_file"; then
6182219820Sjeff	case $deplibs_check_method in
6183219820Sjeff	"file_magic "*)
6184219820Sjeff	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6185219820Sjeff	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6186219820Sjeff	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6187219820Sjeff	    $EGREP "$file_magic_regex" > /dev/null; then
6188219820Sjeff	    :
6189219820Sjeff	  else
6190219820Sjeff	    cat <<EOF 1>&2
6191219820Sjeff
6192219820Sjeff*** Warning: the command libtool uses to detect shared libraries,
6193219820Sjeff*** $file_magic_cmd, produces output that libtool cannot recognize.
6194219820Sjeff*** The result is that libtool may fail to recognize shared libraries
6195219820Sjeff*** as such.  This will affect the creation of libtool libraries that
6196219820Sjeff*** depend on shared libraries, but programs linked with such libtool
6197219820Sjeff*** libraries will work regardless of this problem.  Nevertheless, you
6198219820Sjeff*** may want to report the problem to your system manager and/or to
6199219820Sjeff*** bug-libtool@gnu.org
6200219820Sjeff
6201219820SjeffEOF
6202219820Sjeff	  fi ;;
6203219820Sjeff	esac
6204219820Sjeff      fi
6205219820Sjeff      break
6206219820Sjeff    fi
6207219820Sjeff  done
6208219820Sjeff  IFS="$lt_save_ifs"
6209219820Sjeff  MAGIC_CMD="$lt_save_MAGIC_CMD"
6210219820Sjeff  ;;
6211219820Sjeffesac
6212219820Sjefffi
6213219820Sjeff
6214219820SjeffMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6215219820Sjeffif test -n "$MAGIC_CMD"; then
6216219820Sjeff  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6217219820Sjeffecho "${ECHO_T}$MAGIC_CMD" >&6
6218219820Sjeffelse
6219219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
6220219820Sjeffecho "${ECHO_T}no" >&6
6221219820Sjefffi
6222219820Sjeff
6223219820Sjeff  else
6224219820Sjeff    MAGIC_CMD=:
6225219820Sjeff  fi
6226219820Sjefffi
6227219820Sjeff
6228219820Sjeff  fi
6229219820Sjeff  ;;
6230219820Sjeffesac
6231219820Sjeff
6232219820Sjeffenable_dlopen=no
6233219820Sjeffenable_win32_dll=no
6234219820Sjeff
6235219820Sjeff# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6236219820Sjeffif test "${enable_libtool_lock+set}" = set; then
6237219820Sjeff  enableval="$enable_libtool_lock"
6238219820Sjeff
6239219820Sjefffi;
6240219820Sjefftest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6241219820Sjeff
6242219820Sjeff
6243219820Sjeff# Check whether --with-pic or --without-pic was given.
6244219820Sjeffif test "${with_pic+set}" = set; then
6245219820Sjeff  withval="$with_pic"
6246219820Sjeff  pic_mode="$withval"
6247219820Sjeffelse
6248219820Sjeff  pic_mode=default
6249219820Sjefffi;
6250219820Sjefftest -z "$pic_mode" && pic_mode=default
6251219820Sjeff
6252219820Sjeff# Use C for the default configuration in the libtool script
6253219820Sjefftagname=
6254219820Sjefflt_save_CC="$CC"
6255219820Sjeffac_ext=c
6256219820Sjeffac_cpp='$CPP $CPPFLAGS'
6257219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6258219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6259219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
6260219820Sjeff
6261219820Sjeff
6262219820Sjeff# Source file extension for C test sources.
6263219820Sjeffac_ext=c
6264219820Sjeff
6265219820Sjeff# Object file extension for compiled C test sources.
6266219820Sjeffobjext=o
6267219820Sjeffobjext=$objext
6268219820Sjeff
6269219820Sjeff# Code to be used in simple compile tests
6270219820Sjefflt_simple_compile_test_code="int some_variable = 0;\n"
6271219820Sjeff
6272219820Sjeff# Code to be used in simple link tests
6273219820Sjefflt_simple_link_test_code='int main(){return(0);}\n'
6274219820Sjeff
6275219820Sjeff
6276219820Sjeff# If no C compiler was specified, use CC.
6277219820SjeffLTCC=${LTCC-"$CC"}
6278219820Sjeff
6279219820Sjeff# If no C compiler flags were specified, use CFLAGS.
6280219820SjeffLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6281219820Sjeff
6282219820Sjeff# Allow CC to be a program name with arguments.
6283219820Sjeffcompiler=$CC
6284219820Sjeff
6285219820Sjeff
6286219820Sjeff# save warnings/boilerplate of simple test code
6287219820Sjeffac_outfile=conftest.$ac_objext
6288219820Sjeffprintf "$lt_simple_compile_test_code" >conftest.$ac_ext
6289219820Sjeffeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6290219820Sjeff_lt_compiler_boilerplate=`cat conftest.err`
6291219820Sjeff$rm conftest*
6292219820Sjeff
6293219820Sjeffac_outfile=conftest.$ac_objext
6294219820Sjeffprintf "$lt_simple_link_test_code" >conftest.$ac_ext
6295219820Sjeffeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6296219820Sjeff_lt_linker_boilerplate=`cat conftest.err`
6297219820Sjeff$rm conftest*
6298219820Sjeff
6299219820Sjeff
6300219820Sjeff
6301219820Sjefflt_prog_compiler_no_builtin_flag=
6302219820Sjeff
6303219820Sjeffif test "$GCC" = yes; then
6304219820Sjeff  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6305219820Sjeff
6306219820Sjeff
6307219820Sjeffecho "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6308219820Sjeffecho $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6309219820Sjeffif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6310219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
6311219820Sjeffelse
6312219820Sjeff  lt_cv_prog_compiler_rtti_exceptions=no
6313219820Sjeff  ac_outfile=conftest.$ac_objext
6314219820Sjeff   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6315219820Sjeff   lt_compiler_flag="-fno-rtti -fno-exceptions"
6316219820Sjeff   # Insert the option either (1) after the last *FLAGS variable, or
6317219820Sjeff   # (2) before a word containing "conftest.", or (3) at the end.
6318219820Sjeff   # Note that $ac_compile itself does not contain backslashes and begins
6319219820Sjeff   # with a dollar sign (not a hyphen), so the echo should work correctly.
6320219820Sjeff   # The option is referenced via a variable to avoid confusing sed.
6321219820Sjeff   lt_compile=`echo "$ac_compile" | $SED \
6322219820Sjeff   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6323219820Sjeff   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6324219820Sjeff   -e 's:$: $lt_compiler_flag:'`
6325219820Sjeff   (eval echo "\"\$as_me:6325: $lt_compile\"" >&5)
6326219820Sjeff   (eval "$lt_compile" 2>conftest.err)
6327219820Sjeff   ac_status=$?
6328219820Sjeff   cat conftest.err >&5
6329219820Sjeff   echo "$as_me:6329: \$? = $ac_status" >&5
6330219820Sjeff   if (exit $ac_status) && test -s "$ac_outfile"; then
6331219820Sjeff     # The compiler can only warn and ignore the option if not recognized
6332219820Sjeff     # So say no if there are warnings other than the usual output.
6333219820Sjeff     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6334219820Sjeff     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6335219820Sjeff     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6336219820Sjeff       lt_cv_prog_compiler_rtti_exceptions=yes
6337219820Sjeff     fi
6338219820Sjeff   fi
6339219820Sjeff   $rm conftest*
6340219820Sjeff
6341219820Sjefffi
6342219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6343219820Sjeffecho "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6344219820Sjeff
6345219820Sjeffif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6346219820Sjeff    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6347219820Sjeffelse
6348219820Sjeff    :
6349219820Sjefffi
6350219820Sjeff
6351219820Sjefffi
6352219820Sjeff
6353219820Sjefflt_prog_compiler_wl=
6354219820Sjefflt_prog_compiler_pic=
6355219820Sjefflt_prog_compiler_static=
6356219820Sjeff
6357219820Sjeffecho "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6358219820Sjeffecho $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6359219820Sjeff
6360219820Sjeff  if test "$GCC" = yes; then
6361219820Sjeff    lt_prog_compiler_wl='-Wl,'
6362219820Sjeff    lt_prog_compiler_static='-static'
6363219820Sjeff
6364219820Sjeff    case $host_os in
6365219820Sjeff      aix*)
6366219820Sjeff      # All AIX code is PIC.
6367219820Sjeff      if test "$host_cpu" = ia64; then
6368219820Sjeff	# AIX 5 now supports IA64 processor
6369219820Sjeff	lt_prog_compiler_static='-Bstatic'
6370219820Sjeff      fi
6371219820Sjeff      ;;
6372219820Sjeff
6373219820Sjeff    amigaos*)
6374219820Sjeff      # FIXME: we need at least 68020 code to build shared libraries, but
6375219820Sjeff      # adding the `-m68020' flag to GCC prevents building anything better,
6376219820Sjeff      # like `-m68040'.
6377219820Sjeff      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6378219820Sjeff      ;;
6379219820Sjeff
6380219820Sjeff    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6381219820Sjeff      # PIC is the default for these OSes.
6382219820Sjeff      ;;
6383219820Sjeff
6384219820Sjeff    mingw* | pw32* | os2*)
6385219820Sjeff      # This hack is so that the source file can tell whether it is being
6386219820Sjeff      # built for inclusion in a dll (and should export symbols for example).
6387219820Sjeff      lt_prog_compiler_pic='-DDLL_EXPORT'
6388219820Sjeff      ;;
6389219820Sjeff
6390219820Sjeff    darwin* | rhapsody*)
6391219820Sjeff      # PIC is the default on this platform
6392219820Sjeff      # Common symbols not allowed in MH_DYLIB files
6393219820Sjeff      lt_prog_compiler_pic='-fno-common'
6394219820Sjeff      ;;
6395219820Sjeff
6396219820Sjeff    interix3*)
6397219820Sjeff      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6398219820Sjeff      # Instead, we relocate shared libraries at runtime.
6399219820Sjeff      ;;
6400219820Sjeff
6401219820Sjeff    msdosdjgpp*)
6402219820Sjeff      # Just because we use GCC doesn't mean we suddenly get shared libraries
6403219820Sjeff      # on systems that don't support them.
6404219820Sjeff      lt_prog_compiler_can_build_shared=no
6405219820Sjeff      enable_shared=no
6406219820Sjeff      ;;
6407219820Sjeff
6408219820Sjeff    sysv4*MP*)
6409219820Sjeff      if test -d /usr/nec; then
6410219820Sjeff	lt_prog_compiler_pic=-Kconform_pic
6411219820Sjeff      fi
6412219820Sjeff      ;;
6413219820Sjeff
6414219820Sjeff    hpux*)
6415219820Sjeff      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6416219820Sjeff      # not for PA HP-UX.
6417219820Sjeff      case $host_cpu in
6418219820Sjeff      hppa*64*|ia64*)
6419219820Sjeff	# +Z the default
6420219820Sjeff	;;
6421219820Sjeff      *)
6422219820Sjeff	lt_prog_compiler_pic='-fPIC'
6423219820Sjeff	;;
6424219820Sjeff      esac
6425219820Sjeff      ;;
6426219820Sjeff
6427219820Sjeff    *)
6428219820Sjeff      lt_prog_compiler_pic='-fPIC'
6429219820Sjeff      ;;
6430219820Sjeff    esac
6431219820Sjeff  else
6432219820Sjeff    # PORTME Check for flag to pass linker flags through the system compiler.
6433219820Sjeff    case $host_os in
6434219820Sjeff    aix*)
6435219820Sjeff      lt_prog_compiler_wl='-Wl,'
6436219820Sjeff      if test "$host_cpu" = ia64; then
6437219820Sjeff	# AIX 5 now supports IA64 processor
6438219820Sjeff	lt_prog_compiler_static='-Bstatic'
6439219820Sjeff      else
6440219820Sjeff	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6441219820Sjeff      fi
6442219820Sjeff      ;;
6443219820Sjeff      darwin*)
6444219820Sjeff        # PIC is the default on this platform
6445219820Sjeff        # Common symbols not allowed in MH_DYLIB files
6446219820Sjeff       case $cc_basename in
6447219820Sjeff         xlc*)
6448219820Sjeff         lt_prog_compiler_pic='-qnocommon'
6449219820Sjeff         lt_prog_compiler_wl='-Wl,'
6450219820Sjeff         ;;
6451219820Sjeff       esac
6452219820Sjeff       ;;
6453219820Sjeff
6454219820Sjeff    mingw* | pw32* | os2*)
6455219820Sjeff      # This hack is so that the source file can tell whether it is being
6456219820Sjeff      # built for inclusion in a dll (and should export symbols for example).
6457219820Sjeff      lt_prog_compiler_pic='-DDLL_EXPORT'
6458219820Sjeff      ;;
6459219820Sjeff
6460219820Sjeff    hpux9* | hpux10* | hpux11*)
6461219820Sjeff      lt_prog_compiler_wl='-Wl,'
6462219820Sjeff      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6463219820Sjeff      # not for PA HP-UX.
6464219820Sjeff      case $host_cpu in
6465219820Sjeff      hppa*64*|ia64*)
6466219820Sjeff	# +Z the default
6467219820Sjeff	;;
6468219820Sjeff      *)
6469219820Sjeff	lt_prog_compiler_pic='+Z'
6470219820Sjeff	;;
6471219820Sjeff      esac
6472219820Sjeff      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6473219820Sjeff      lt_prog_compiler_static='${wl}-a ${wl}archive'
6474219820Sjeff      ;;
6475219820Sjeff
6476219820Sjeff    irix5* | irix6* | nonstopux*)
6477219820Sjeff      lt_prog_compiler_wl='-Wl,'
6478219820Sjeff      # PIC (with -KPIC) is the default.
6479219820Sjeff      lt_prog_compiler_static='-non_shared'
6480219820Sjeff      ;;
6481219820Sjeff
6482219820Sjeff    newsos6)
6483219820Sjeff      lt_prog_compiler_pic='-KPIC'
6484219820Sjeff      lt_prog_compiler_static='-Bstatic'
6485219820Sjeff      ;;
6486219820Sjeff
6487219820Sjeff    linux*)
6488219820Sjeff      case $cc_basename in
6489219820Sjeff      icc* | ecc*)
6490219820Sjeff	lt_prog_compiler_wl='-Wl,'
6491219820Sjeff	lt_prog_compiler_pic='-KPIC'
6492219820Sjeff	lt_prog_compiler_static='-static'
6493219820Sjeff        ;;
6494219820Sjeff      pgcc* | pgf77* | pgf90* | pgf95*)
6495219820Sjeff        # Portland Group compilers (*not* the Pentium gcc compiler,
6496219820Sjeff	# which looks to be a dead project)
6497219820Sjeff	lt_prog_compiler_wl='-Wl,'
6498219820Sjeff	lt_prog_compiler_pic='-fpic'
6499219820Sjeff	lt_prog_compiler_static='-Bstatic'
6500219820Sjeff        ;;
6501219820Sjeff      ccc*)
6502219820Sjeff        lt_prog_compiler_wl='-Wl,'
6503219820Sjeff        # All Alpha code is PIC.
6504219820Sjeff        lt_prog_compiler_static='-non_shared'
6505219820Sjeff        ;;
6506219820Sjeff      esac
6507219820Sjeff      ;;
6508219820Sjeff
6509219820Sjeff    osf3* | osf4* | osf5*)
6510219820Sjeff      lt_prog_compiler_wl='-Wl,'
6511219820Sjeff      # All OSF/1 code is PIC.
6512219820Sjeff      lt_prog_compiler_static='-non_shared'
6513219820Sjeff      ;;
6514219820Sjeff
6515219820Sjeff    solaris*)
6516219820Sjeff      lt_prog_compiler_pic='-KPIC'
6517219820Sjeff      lt_prog_compiler_static='-Bstatic'
6518219820Sjeff      case $cc_basename in
6519219820Sjeff      f77* | f90* | f95*)
6520219820Sjeff	lt_prog_compiler_wl='-Qoption ld ';;
6521219820Sjeff      *)
6522219820Sjeff	lt_prog_compiler_wl='-Wl,';;
6523219820Sjeff      esac
6524219820Sjeff      ;;
6525219820Sjeff
6526219820Sjeff    sunos4*)
6527219820Sjeff      lt_prog_compiler_wl='-Qoption ld '
6528219820Sjeff      lt_prog_compiler_pic='-PIC'
6529219820Sjeff      lt_prog_compiler_static='-Bstatic'
6530219820Sjeff      ;;
6531219820Sjeff
6532219820Sjeff    sysv4 | sysv4.2uw2* | sysv4.3*)
6533219820Sjeff      lt_prog_compiler_wl='-Wl,'
6534219820Sjeff      lt_prog_compiler_pic='-KPIC'
6535219820Sjeff      lt_prog_compiler_static='-Bstatic'
6536219820Sjeff      ;;
6537219820Sjeff
6538219820Sjeff    sysv4*MP*)
6539219820Sjeff      if test -d /usr/nec ;then
6540219820Sjeff	lt_prog_compiler_pic='-Kconform_pic'
6541219820Sjeff	lt_prog_compiler_static='-Bstatic'
6542219820Sjeff      fi
6543219820Sjeff      ;;
6544219820Sjeff
6545219820Sjeff    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6546219820Sjeff      lt_prog_compiler_wl='-Wl,'
6547219820Sjeff      lt_prog_compiler_pic='-KPIC'
6548219820Sjeff      lt_prog_compiler_static='-Bstatic'
6549219820Sjeff      ;;
6550219820Sjeff
6551219820Sjeff    unicos*)
6552219820Sjeff      lt_prog_compiler_wl='-Wl,'
6553219820Sjeff      lt_prog_compiler_can_build_shared=no
6554219820Sjeff      ;;
6555219820Sjeff
6556219820Sjeff    uts4*)
6557219820Sjeff      lt_prog_compiler_pic='-pic'
6558219820Sjeff      lt_prog_compiler_static='-Bstatic'
6559219820Sjeff      ;;
6560219820Sjeff
6561219820Sjeff    *)
6562219820Sjeff      lt_prog_compiler_can_build_shared=no
6563219820Sjeff      ;;
6564219820Sjeff    esac
6565219820Sjeff  fi
6566219820Sjeff
6567219820Sjeffecho "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6568219820Sjeffecho "${ECHO_T}$lt_prog_compiler_pic" >&6
6569219820Sjeff
6570219820Sjeff#
6571219820Sjeff# Check to make sure the PIC flag actually works.
6572219820Sjeff#
6573219820Sjeffif test -n "$lt_prog_compiler_pic"; then
6574219820Sjeff
6575219820Sjeffecho "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6576219820Sjeffecho $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6577219820Sjeffif test "${lt_prog_compiler_pic_works+set}" = set; then
6578219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
6579219820Sjeffelse
6580219820Sjeff  lt_prog_compiler_pic_works=no
6581219820Sjeff  ac_outfile=conftest.$ac_objext
6582219820Sjeff   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6583219820Sjeff   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6584219820Sjeff   # Insert the option either (1) after the last *FLAGS variable, or
6585219820Sjeff   # (2) before a word containing "conftest.", or (3) at the end.
6586219820Sjeff   # Note that $ac_compile itself does not contain backslashes and begins
6587219820Sjeff   # with a dollar sign (not a hyphen), so the echo should work correctly.
6588219820Sjeff   # The option is referenced via a variable to avoid confusing sed.
6589219820Sjeff   lt_compile=`echo "$ac_compile" | $SED \
6590219820Sjeff   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6591219820Sjeff   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6592219820Sjeff   -e 's:$: $lt_compiler_flag:'`
6593219820Sjeff   (eval echo "\"\$as_me:6593: $lt_compile\"" >&5)
6594219820Sjeff   (eval "$lt_compile" 2>conftest.err)
6595219820Sjeff   ac_status=$?
6596219820Sjeff   cat conftest.err >&5
6597219820Sjeff   echo "$as_me:6597: \$? = $ac_status" >&5
6598219820Sjeff   if (exit $ac_status) && test -s "$ac_outfile"; then
6599219820Sjeff     # The compiler can only warn and ignore the option if not recognized
6600219820Sjeff     # So say no if there are warnings other than the usual output.
6601219820Sjeff     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6602219820Sjeff     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6603219820Sjeff     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6604219820Sjeff       lt_prog_compiler_pic_works=yes
6605219820Sjeff     fi
6606219820Sjeff   fi
6607219820Sjeff   $rm conftest*
6608219820Sjeff
6609219820Sjefffi
6610219820Sjeffecho "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6611219820Sjeffecho "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6612219820Sjeff
6613219820Sjeffif test x"$lt_prog_compiler_pic_works" = xyes; then
6614219820Sjeff    case $lt_prog_compiler_pic in
6615219820Sjeff     "" | " "*) ;;
6616219820Sjeff     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6617219820Sjeff     esac
6618219820Sjeffelse
6619219820Sjeff    lt_prog_compiler_pic=
6620219820Sjeff     lt_prog_compiler_can_build_shared=no
6621219820Sjefffi
6622219820Sjeff
6623219820Sjefffi
6624219820Sjeffcase $host_os in
6625219820Sjeff  # For platforms which do not support PIC, -DPIC is meaningless:
6626219820Sjeff  *djgpp*)
6627219820Sjeff    lt_prog_compiler_pic=
6628219820Sjeff    ;;
6629219820Sjeff  *)
6630219820Sjeff    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6631219820Sjeff    ;;
6632219820Sjeffesac
6633219820Sjeff
6634219820Sjeff#
6635219820Sjeff# Check to make sure the static flag actually works.
6636219820Sjeff#
6637219820Sjeffwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6638219820Sjeffecho "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6639219820Sjeffecho $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6640219820Sjeffif test "${lt_prog_compiler_static_works+set}" = set; then
6641219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
6642219820Sjeffelse
6643219820Sjeff  lt_prog_compiler_static_works=no
6644219820Sjeff   save_LDFLAGS="$LDFLAGS"
6645219820Sjeff   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6646219820Sjeff   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6647219820Sjeff   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6648219820Sjeff     # The linker can only warn and ignore the option if not recognized
6649219820Sjeff     # So say no if there are warnings
6650219820Sjeff     if test -s conftest.err; then
6651219820Sjeff       # Append any errors to the config.log.
6652219820Sjeff       cat conftest.err 1>&5
6653219820Sjeff       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6654219820Sjeff       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6655219820Sjeff       if diff conftest.exp conftest.er2 >/dev/null; then
6656219820Sjeff         lt_prog_compiler_static_works=yes
6657219820Sjeff       fi
6658219820Sjeff     else
6659219820Sjeff       lt_prog_compiler_static_works=yes
6660219820Sjeff     fi
6661219820Sjeff   fi
6662219820Sjeff   $rm conftest*
6663219820Sjeff   LDFLAGS="$save_LDFLAGS"
6664219820Sjeff
6665219820Sjefffi
6666219820Sjeffecho "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6667219820Sjeffecho "${ECHO_T}$lt_prog_compiler_static_works" >&6
6668219820Sjeff
6669219820Sjeffif test x"$lt_prog_compiler_static_works" = xyes; then
6670219820Sjeff    :
6671219820Sjeffelse
6672219820Sjeff    lt_prog_compiler_static=
6673219820Sjefffi
6674219820Sjeff
6675219820Sjeff
6676219820Sjeffecho "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6677219820Sjeffecho $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6678219820Sjeffif test "${lt_cv_prog_compiler_c_o+set}" = set; then
6679219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
6680219820Sjeffelse
6681219820Sjeff  lt_cv_prog_compiler_c_o=no
6682219820Sjeff   $rm -r conftest 2>/dev/null
6683219820Sjeff   mkdir conftest
6684219820Sjeff   cd conftest
6685219820Sjeff   mkdir out
6686219820Sjeff   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6687219820Sjeff
6688219820Sjeff   lt_compiler_flag="-o out/conftest2.$ac_objext"
6689219820Sjeff   # Insert the option either (1) after the last *FLAGS variable, or
6690219820Sjeff   # (2) before a word containing "conftest.", or (3) at the end.
6691219820Sjeff   # Note that $ac_compile itself does not contain backslashes and begins
6692219820Sjeff   # with a dollar sign (not a hyphen), so the echo should work correctly.
6693219820Sjeff   lt_compile=`echo "$ac_compile" | $SED \
6694219820Sjeff   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6695219820Sjeff   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6696219820Sjeff   -e 's:$: $lt_compiler_flag:'`
6697219820Sjeff   (eval echo "\"\$as_me:6697: $lt_compile\"" >&5)
6698219820Sjeff   (eval "$lt_compile" 2>out/conftest.err)
6699219820Sjeff   ac_status=$?
6700219820Sjeff   cat out/conftest.err >&5
6701219820Sjeff   echo "$as_me:6701: \$? = $ac_status" >&5
6702219820Sjeff   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6703219820Sjeff   then
6704219820Sjeff     # The compiler can only warn and ignore the option if not recognized
6705219820Sjeff     # So say no if there are warnings
6706219820Sjeff     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6707219820Sjeff     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6708219820Sjeff     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6709219820Sjeff       lt_cv_prog_compiler_c_o=yes
6710219820Sjeff     fi
6711219820Sjeff   fi
6712219820Sjeff   chmod u+w . 2>&5
6713219820Sjeff   $rm conftest*
6714219820Sjeff   # SGI C++ compiler will create directory out/ii_files/ for
6715219820Sjeff   # template instantiation
6716219820Sjeff   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6717219820Sjeff   $rm out/* && rmdir out
6718219820Sjeff   cd ..
6719219820Sjeff   rmdir conftest
6720219820Sjeff   $rm conftest*
6721219820Sjeff
6722219820Sjefffi
6723219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6724219820Sjeffecho "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6725219820Sjeff
6726219820Sjeff
6727219820Sjeffhard_links="nottested"
6728219820Sjeffif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6729219820Sjeff  # do not overwrite the value of need_locks provided by the user
6730219820Sjeff  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6731219820Sjeffecho $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6732219820Sjeff  hard_links=yes
6733219820Sjeff  $rm conftest*
6734219820Sjeff  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6735219820Sjeff  touch conftest.a
6736219820Sjeff  ln conftest.a conftest.b 2>&5 || hard_links=no
6737219820Sjeff  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6738219820Sjeff  echo "$as_me:$LINENO: result: $hard_links" >&5
6739219820Sjeffecho "${ECHO_T}$hard_links" >&6
6740219820Sjeff  if test "$hard_links" = no; then
6741219820Sjeff    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6742219820Sjeffecho "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6743219820Sjeff    need_locks=warn
6744219820Sjeff  fi
6745219820Sjeffelse
6746219820Sjeff  need_locks=no
6747219820Sjefffi
6748219820Sjeff
6749219820Sjeffecho "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6750219820Sjeffecho $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6751219820Sjeff
6752219820Sjeff  runpath_var=
6753219820Sjeff  allow_undefined_flag=
6754219820Sjeff  enable_shared_with_static_runtimes=no
6755219820Sjeff  archive_cmds=
6756219820Sjeff  archive_expsym_cmds=
6757219820Sjeff  old_archive_From_new_cmds=
6758219820Sjeff  old_archive_from_expsyms_cmds=
6759219820Sjeff  export_dynamic_flag_spec=
6760219820Sjeff  whole_archive_flag_spec=
6761219820Sjeff  thread_safe_flag_spec=
6762219820Sjeff  hardcode_libdir_flag_spec=
6763219820Sjeff  hardcode_libdir_flag_spec_ld=
6764219820Sjeff  hardcode_libdir_separator=
6765219820Sjeff  hardcode_direct=no
6766219820Sjeff  hardcode_minus_L=no
6767219820Sjeff  hardcode_shlibpath_var=unsupported
6768219820Sjeff  link_all_deplibs=unknown
6769219820Sjeff  hardcode_automatic=no
6770219820Sjeff  module_cmds=
6771219820Sjeff  module_expsym_cmds=
6772219820Sjeff  always_export_symbols=no
6773219820Sjeff  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6774219820Sjeff  # include_expsyms should be a list of space-separated symbols to be *always*
6775219820Sjeff  # included in the symbol list
6776219820Sjeff  include_expsyms=
6777219820Sjeff  # exclude_expsyms can be an extended regexp of symbols to exclude
6778219820Sjeff  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6779219820Sjeff  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6780219820Sjeff  # as well as any symbol that contains `d'.
6781219820Sjeff  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6782219820Sjeff  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6783219820Sjeff  # platforms (ab)use it in PIC code, but their linkers get confused if
6784219820Sjeff  # the symbol is explicitly referenced.  Since portable code cannot
6785219820Sjeff  # rely on this symbol name, it's probably fine to never include it in
6786219820Sjeff  # preloaded symbol tables.
6787219820Sjeff  extract_expsyms_cmds=
6788219820Sjeff  # Just being paranoid about ensuring that cc_basename is set.
6789219820Sjeff  for cc_temp in $compiler""; do
6790219820Sjeff  case $cc_temp in
6791219820Sjeff    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6792219820Sjeff    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6793219820Sjeff    \-*) ;;
6794219820Sjeff    *) break;;
6795219820Sjeff  esac
6796219820Sjeffdone
6797219820Sjeffcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6798219820Sjeff
6799219820Sjeff  case $host_os in
6800219820Sjeff  cygwin* | mingw* | pw32*)
6801219820Sjeff    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6802219820Sjeff    # When not using gcc, we currently assume that we are using
6803219820Sjeff    # Microsoft Visual C++.
6804219820Sjeff    if test "$GCC" != yes; then
6805219820Sjeff      with_gnu_ld=no
6806219820Sjeff    fi
6807219820Sjeff    ;;
6808219820Sjeff  interix*)
6809219820Sjeff    # we just hope/assume this is gcc and not c89 (= MSVC++)
6810219820Sjeff    with_gnu_ld=yes
6811219820Sjeff    ;;
6812219820Sjeff  openbsd*)
6813219820Sjeff    with_gnu_ld=no
6814219820Sjeff    ;;
6815219820Sjeff  esac
6816219820Sjeff
6817219820Sjeff  ld_shlibs=yes
6818219820Sjeff  if test "$with_gnu_ld" = yes; then
6819219820Sjeff    # If archive_cmds runs LD, not CC, wlarc should be empty
6820219820Sjeff    wlarc='${wl}'
6821219820Sjeff
6822219820Sjeff    # Set some defaults for GNU ld with shared library support. These
6823219820Sjeff    # are reset later if shared libraries are not supported. Putting them
6824219820Sjeff    # here allows them to be overridden if necessary.
6825219820Sjeff    runpath_var=LD_RUN_PATH
6826219820Sjeff    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6827219820Sjeff    export_dynamic_flag_spec='${wl}--export-dynamic'
6828219820Sjeff    # ancient GNU ld didn't support --whole-archive et. al.
6829219820Sjeff    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6830219820Sjeff	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6831219820Sjeff      else
6832219820Sjeff  	whole_archive_flag_spec=
6833219820Sjeff    fi
6834219820Sjeff    supports_anon_versioning=no
6835219820Sjeff    case `$LD -v 2>/dev/null` in
6836219820Sjeff      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6837219820Sjeff      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6838219820Sjeff      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6839219820Sjeff      *\ 2.11.*) ;; # other 2.11 versions
6840219820Sjeff      *) supports_anon_versioning=yes ;;
6841219820Sjeff    esac
6842219820Sjeff
6843219820Sjeff    # See if GNU ld supports shared libraries.
6844219820Sjeff    case $host_os in
6845219820Sjeff    aix3* | aix4* | aix5*)
6846219820Sjeff      # On AIX/PPC, the GNU linker is very broken
6847219820Sjeff      if test "$host_cpu" != ia64; then
6848219820Sjeff	ld_shlibs=no
6849219820Sjeff	cat <<EOF 1>&2
6850219820Sjeff
6851219820Sjeff*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6852219820Sjeff*** to be unable to reliably create shared libraries on AIX.
6853219820Sjeff*** Therefore, libtool is disabling shared libraries support.  If you
6854219820Sjeff*** really care for shared libraries, you may want to modify your PATH
6855219820Sjeff*** so that a non-GNU linker is found, and then restart.
6856219820Sjeff
6857219820SjeffEOF
6858219820Sjeff      fi
6859219820Sjeff      ;;
6860219820Sjeff
6861219820Sjeff    amigaos*)
6862219820Sjeff      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)'
6863219820Sjeff      hardcode_libdir_flag_spec='-L$libdir'
6864219820Sjeff      hardcode_minus_L=yes
6865219820Sjeff
6866219820Sjeff      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6867219820Sjeff      # that the semantics of dynamic libraries on AmigaOS, at least up
6868219820Sjeff      # to version 4, is to share data among multiple programs linked
6869219820Sjeff      # with the same dynamic library.  Since this doesn't match the
6870219820Sjeff      # behavior of shared libraries on other platforms, we can't use
6871219820Sjeff      # them.
6872219820Sjeff      ld_shlibs=no
6873219820Sjeff      ;;
6874219820Sjeff
6875219820Sjeff    beos*)
6876219820Sjeff      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6877219820Sjeff	allow_undefined_flag=unsupported
6878219820Sjeff	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6879219820Sjeff	# support --undefined.  This deserves some investigation.  FIXME
6880219820Sjeff	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6881219820Sjeff      else
6882219820Sjeff	ld_shlibs=no
6883219820Sjeff      fi
6884219820Sjeff      ;;
6885219820Sjeff
6886219820Sjeff    cygwin* | mingw* | pw32*)
6887219820Sjeff      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6888219820Sjeff      # as there is no search path for DLLs.
6889219820Sjeff      hardcode_libdir_flag_spec='-L$libdir'
6890219820Sjeff      allow_undefined_flag=unsupported
6891219820Sjeff      always_export_symbols=no
6892219820Sjeff      enable_shared_with_static_runtimes=yes
6893219820Sjeff      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6894219820Sjeff
6895219820Sjeff      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6896219820Sjeff        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6897219820Sjeff	# If the export-symbols file already is a .def file (1st line
6898219820Sjeff	# is EXPORTS), use it as is; otherwise, prepend...
6899219820Sjeff	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6900219820Sjeff	  cp $export_symbols $output_objdir/$soname.def;
6901219820Sjeff	else
6902219820Sjeff	  echo EXPORTS > $output_objdir/$soname.def;
6903219820Sjeff	  cat $export_symbols >> $output_objdir/$soname.def;
6904219820Sjeff	fi~
6905219820Sjeff	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6906219820Sjeff      else
6907219820Sjeff	ld_shlibs=no
6908219820Sjeff      fi
6909219820Sjeff      ;;
6910219820Sjeff
6911219820Sjeff    interix3*)
6912219820Sjeff      hardcode_direct=no
6913219820Sjeff      hardcode_shlibpath_var=no
6914219820Sjeff      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6915219820Sjeff      export_dynamic_flag_spec='${wl}-E'
6916219820Sjeff      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6917219820Sjeff      # Instead, shared libraries are loaded at an image base (0x10000000 by
6918219820Sjeff      # default) and relocated if they conflict, which is a slow very memory
6919219820Sjeff      # consuming and fragmenting process.  To avoid this, we pick a random,
6920219820Sjeff      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6921219820Sjeff      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6922219820Sjeff      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6923219820Sjeff      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'
6924219820Sjeff      ;;
6925219820Sjeff
6926219820Sjeff    linux*)
6927219820Sjeff      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6928219820Sjeff	tmp_addflag=
6929219820Sjeff	case $cc_basename,$host_cpu in
6930219820Sjeff	pgcc*)				# Portland Group C compiler
6931219820Sjeff	  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'
6932219820Sjeff	  tmp_addflag=' $pic_flag'
6933219820Sjeff	  ;;
6934219820Sjeff	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6935219820Sjeff	  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'
6936219820Sjeff	  tmp_addflag=' $pic_flag -Mnomain' ;;
6937219820Sjeff	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6938219820Sjeff	  tmp_addflag=' -i_dynamic' ;;
6939219820Sjeff	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6940219820Sjeff	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6941219820Sjeff	ifc* | ifort*)			# Intel Fortran compiler
6942219820Sjeff	  tmp_addflag=' -nofor_main' ;;
6943219820Sjeff	esac
6944219820Sjeff	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6945219820Sjeff
6946219820Sjeff	if test $supports_anon_versioning = yes; then
6947219820Sjeff	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6948219820Sjeff  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6949219820Sjeff  $echo "local: *; };" >> $output_objdir/$libname.ver~
6950219820Sjeff	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6951219820Sjeff	fi
6952219820Sjeff	link_all_deplibs=no
6953219820Sjeff      else
6954219820Sjeff	ld_shlibs=no
6955219820Sjeff      fi
6956219820Sjeff      ;;
6957219820Sjeff
6958219820Sjeff    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6959219820Sjeff      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6960219820Sjeff	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6961219820Sjeff	wlarc=
6962219820Sjeff      else
6963219820Sjeff	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6964219820Sjeff	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6965219820Sjeff      fi
6966219820Sjeff      ;;
6967219820Sjeff
6968219820Sjeff    solaris*)
6969219820Sjeff      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6970219820Sjeff	ld_shlibs=no
6971219820Sjeff	cat <<EOF 1>&2
6972219820Sjeff
6973219820Sjeff*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6974219820Sjeff*** create shared libraries on Solaris systems.  Therefore, libtool
6975219820Sjeff*** is disabling shared libraries support.  We urge you to upgrade GNU
6976219820Sjeff*** binutils to release 2.9.1 or newer.  Another option is to modify
6977219820Sjeff*** your PATH or compiler configuration so that the native linker is
6978219820Sjeff*** used, and then restart.
6979219820Sjeff
6980219820SjeffEOF
6981219820Sjeff      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6982219820Sjeff	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6983219820Sjeff	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6984219820Sjeff      else
6985219820Sjeff	ld_shlibs=no
6986219820Sjeff      fi
6987219820Sjeff      ;;
6988219820Sjeff
6989219820Sjeff    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6990219820Sjeff      case `$LD -v 2>&1` in
6991219820Sjeff        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6992219820Sjeff	ld_shlibs=no
6993219820Sjeff	cat <<_LT_EOF 1>&2
6994219820Sjeff
6995219820Sjeff*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6996219820Sjeff*** reliably create shared libraries on SCO systems.  Therefore, libtool
6997219820Sjeff*** is disabling shared libraries support.  We urge you to upgrade GNU
6998219820Sjeff*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6999219820Sjeff*** your PATH or compiler configuration so that the native linker is
7000219820Sjeff*** used, and then restart.
7001219820Sjeff
7002219820Sjeff_LT_EOF
7003219820Sjeff	;;
7004219820Sjeff	*)
7005219820Sjeff	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7006219820Sjeff	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7007219820Sjeff	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7008219820Sjeff	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7009219820Sjeff	  else
7010219820Sjeff	    ld_shlibs=no
7011219820Sjeff	  fi
7012219820Sjeff	;;
7013219820Sjeff      esac
7014219820Sjeff      ;;
7015219820Sjeff
7016219820Sjeff    sunos4*)
7017219820Sjeff      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7018219820Sjeff      wlarc=
7019219820Sjeff      hardcode_direct=yes
7020219820Sjeff      hardcode_shlibpath_var=no
7021219820Sjeff      ;;
7022219820Sjeff
7023219820Sjeff    *)
7024219820Sjeff      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7025219820Sjeff	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7026219820Sjeff	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7027219820Sjeff      else
7028219820Sjeff	ld_shlibs=no
7029219820Sjeff      fi
7030219820Sjeff      ;;
7031219820Sjeff    esac
7032219820Sjeff
7033219820Sjeff    if test "$ld_shlibs" = no; then
7034219820Sjeff      runpath_var=
7035219820Sjeff      hardcode_libdir_flag_spec=
7036219820Sjeff      export_dynamic_flag_spec=
7037219820Sjeff      whole_archive_flag_spec=
7038219820Sjeff    fi
7039219820Sjeff  else
7040219820Sjeff    # PORTME fill in a description of your system's linker (not GNU ld)
7041219820Sjeff    case $host_os in
7042219820Sjeff    aix3*)
7043219820Sjeff      allow_undefined_flag=unsupported
7044219820Sjeff      always_export_symbols=yes
7045219820Sjeff      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'
7046219820Sjeff      # Note: this linker hardcodes the directories in LIBPATH if there
7047219820Sjeff      # are no directories specified by -L.
7048219820Sjeff      hardcode_minus_L=yes
7049219820Sjeff      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7050219820Sjeff	# Neither direct hardcoding nor static linking is supported with a
7051219820Sjeff	# broken collect2.
7052219820Sjeff	hardcode_direct=unsupported
7053219820Sjeff      fi
7054219820Sjeff      ;;
7055219820Sjeff
7056219820Sjeff    aix4* | aix5*)
7057219820Sjeff      if test "$host_cpu" = ia64; then
7058219820Sjeff	# On IA64, the linker does run time linking by default, so we don't
7059219820Sjeff	# have to do anything special.
7060219820Sjeff	aix_use_runtimelinking=no
7061219820Sjeff	exp_sym_flag='-Bexport'
7062219820Sjeff	no_entry_flag=""
7063219820Sjeff      else
7064219820Sjeff	# If we're using GNU nm, then we don't want the "-C" option.
7065219820Sjeff	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7066219820Sjeff	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7067219820Sjeff	  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'
7068219820Sjeff	else
7069219820Sjeff	  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'
7070219820Sjeff	fi
7071219820Sjeff	aix_use_runtimelinking=no
7072219820Sjeff
7073219820Sjeff	# Test if we are trying to use run time linking or normal
7074219820Sjeff	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7075219820Sjeff	# need to do runtime linking.
7076219820Sjeff	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7077219820Sjeff	  for ld_flag in $LDFLAGS; do
7078219820Sjeff  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7079219820Sjeff  	    aix_use_runtimelinking=yes
7080219820Sjeff  	    break
7081219820Sjeff  	  fi
7082219820Sjeff	  done
7083219820Sjeff	  ;;
7084219820Sjeff	esac
7085219820Sjeff
7086219820Sjeff	exp_sym_flag='-bexport'
7087219820Sjeff	no_entry_flag='-bnoentry'
7088219820Sjeff      fi
7089219820Sjeff
7090219820Sjeff      # When large executables or shared objects are built, AIX ld can
7091219820Sjeff      # have problems creating the table of contents.  If linking a library
7092219820Sjeff      # or program results in "error TOC overflow" add -mminimal-toc to
7093219820Sjeff      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7094219820Sjeff      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7095219820Sjeff
7096219820Sjeff      archive_cmds=''
7097219820Sjeff      hardcode_direct=yes
7098219820Sjeff      hardcode_libdir_separator=':'
7099219820Sjeff      link_all_deplibs=yes
7100219820Sjeff
7101219820Sjeff      if test "$GCC" = yes; then
7102219820Sjeff	case $host_os in aix4.[012]|aix4.[012].*)
7103219820Sjeff	# We only want to do this on AIX 4.2 and lower, the check
7104219820Sjeff	# below for broken collect2 doesn't work under 4.3+
7105219820Sjeff	  collect2name=`${CC} -print-prog-name=collect2`
7106219820Sjeff	  if test -f "$collect2name" && \
7107219820Sjeff  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7108219820Sjeff	  then
7109219820Sjeff  	  # We have reworked collect2
7110219820Sjeff  	  hardcode_direct=yes
7111219820Sjeff	  else
7112219820Sjeff  	  # We have old collect2
7113219820Sjeff  	  hardcode_direct=unsupported
7114219820Sjeff  	  # It fails to find uninstalled libraries when the uninstalled
7115219820Sjeff  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7116219820Sjeff  	  # to unsupported forces relinking
7117219820Sjeff  	  hardcode_minus_L=yes
7118219820Sjeff  	  hardcode_libdir_flag_spec='-L$libdir'
7119219820Sjeff  	  hardcode_libdir_separator=
7120219820Sjeff	  fi
7121219820Sjeff	  ;;
7122219820Sjeff	esac
7123219820Sjeff	shared_flag='-shared'
7124219820Sjeff	if test "$aix_use_runtimelinking" = yes; then
7125219820Sjeff	  shared_flag="$shared_flag "'${wl}-G'
7126219820Sjeff	fi
7127219820Sjeff      else
7128219820Sjeff	# not using gcc
7129219820Sjeff	if test "$host_cpu" = ia64; then
7130219820Sjeff  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7131219820Sjeff  	# chokes on -Wl,-G. The following line is correct:
7132219820Sjeff	  shared_flag='-G'
7133219820Sjeff	else
7134219820Sjeff	  if test "$aix_use_runtimelinking" = yes; then
7135219820Sjeff	    shared_flag='${wl}-G'
7136219820Sjeff	  else
7137219820Sjeff	    shared_flag='${wl}-bM:SRE'
7138219820Sjeff	  fi
7139219820Sjeff	fi
7140219820Sjeff      fi
7141219820Sjeff
7142219820Sjeff      # It seems that -bexpall does not export symbols beginning with
7143219820Sjeff      # underscore (_), so it is better to generate a list of symbols to export.
7144219820Sjeff      always_export_symbols=yes
7145219820Sjeff      if test "$aix_use_runtimelinking" = yes; then
7146219820Sjeff	# Warning - without using the other runtime loading flags (-brtl),
7147219820Sjeff	# -berok will link without error, but may produce a broken library.
7148219820Sjeff	allow_undefined_flag='-berok'
7149219820Sjeff       # Determine the default libpath from the value encoded in an empty executable.
7150219820Sjeff       cat >conftest.$ac_ext <<_ACEOF
7151219820Sjeff/* confdefs.h.  */
7152219820Sjeff_ACEOF
7153219820Sjeffcat confdefs.h >>conftest.$ac_ext
7154219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
7155219820Sjeff/* end confdefs.h.  */
7156219820Sjeff
7157219820Sjeffint
7158219820Sjeffmain ()
7159219820Sjeff{
7160219820Sjeff
7161219820Sjeff  ;
7162219820Sjeff  return 0;
7163219820Sjeff}
7164219820Sjeff_ACEOF
7165219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
7166219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7167219820Sjeff  (eval $ac_link) 2>conftest.er1
7168219820Sjeff  ac_status=$?
7169219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
7170219820Sjeff  rm -f conftest.er1
7171219820Sjeff  cat conftest.err >&5
7172219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173219820Sjeff  (exit $ac_status); } &&
7174219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7175219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176219820Sjeff  (eval $ac_try) 2>&5
7177219820Sjeff  ac_status=$?
7178219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179219820Sjeff  (exit $ac_status); }; } &&
7180219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
7181219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182219820Sjeff  (eval $ac_try) 2>&5
7183219820Sjeff  ac_status=$?
7184219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185219820Sjeff  (exit $ac_status); }; }; then
7186219820Sjeff
7187219820Sjeffaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7188219820Sjeff}'`
7189219820Sjeff# Check for a 64-bit object if we didn't find anything.
7190219820Sjeffif 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; }
7191219820Sjeff}'`; fi
7192219820Sjeffelse
7193219820Sjeff  echo "$as_me: failed program was:" >&5
7194219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
7195219820Sjeff
7196219820Sjefffi
7197219820Sjeffrm -f conftest.err conftest.$ac_objext \
7198219820Sjeff      conftest$ac_exeext conftest.$ac_ext
7199219820Sjeffif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7200219820Sjeff
7201219820Sjeff       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7202219820Sjeff	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"
7203219820Sjeff       else
7204219820Sjeff	if test "$host_cpu" = ia64; then
7205219820Sjeff	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7206219820Sjeff	  allow_undefined_flag="-z nodefs"
7207219820Sjeff	  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"
7208219820Sjeff	else
7209219820Sjeff	 # Determine the default libpath from the value encoded in an empty executable.
7210219820Sjeff	 cat >conftest.$ac_ext <<_ACEOF
7211219820Sjeff/* confdefs.h.  */
7212219820Sjeff_ACEOF
7213219820Sjeffcat confdefs.h >>conftest.$ac_ext
7214219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
7215219820Sjeff/* end confdefs.h.  */
7216219820Sjeff
7217219820Sjeffint
7218219820Sjeffmain ()
7219219820Sjeff{
7220219820Sjeff
7221219820Sjeff  ;
7222219820Sjeff  return 0;
7223219820Sjeff}
7224219820Sjeff_ACEOF
7225219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
7226219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7227219820Sjeff  (eval $ac_link) 2>conftest.er1
7228219820Sjeff  ac_status=$?
7229219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
7230219820Sjeff  rm -f conftest.er1
7231219820Sjeff  cat conftest.err >&5
7232219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233219820Sjeff  (exit $ac_status); } &&
7234219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7235219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236219820Sjeff  (eval $ac_try) 2>&5
7237219820Sjeff  ac_status=$?
7238219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239219820Sjeff  (exit $ac_status); }; } &&
7240219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
7241219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242219820Sjeff  (eval $ac_try) 2>&5
7243219820Sjeff  ac_status=$?
7244219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245219820Sjeff  (exit $ac_status); }; }; then
7246219820Sjeff
7247219820Sjeffaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7248219820Sjeff}'`
7249219820Sjeff# Check for a 64-bit object if we didn't find anything.
7250219820Sjeffif 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; }
7251219820Sjeff}'`; fi
7252219820Sjeffelse
7253219820Sjeff  echo "$as_me: failed program was:" >&5
7254219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
7255219820Sjeff
7256219820Sjefffi
7257219820Sjeffrm -f conftest.err conftest.$ac_objext \
7258219820Sjeff      conftest$ac_exeext conftest.$ac_ext
7259219820Sjeffif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7260219820Sjeff
7261219820Sjeff	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7262219820Sjeff	  # Warning - without using the other run time loading flags,
7263219820Sjeff	  # -berok will link without error, but may produce a broken library.
7264219820Sjeff	  no_undefined_flag=' ${wl}-bernotok'
7265219820Sjeff	  allow_undefined_flag=' ${wl}-berok'
7266219820Sjeff	  # Exported symbols can be pulled into shared objects from archives
7267219820Sjeff	  whole_archive_flag_spec='$convenience'
7268219820Sjeff	  archive_cmds_need_lc=yes
7269219820Sjeff	  # This is similar to how AIX traditionally builds its shared libraries.
7270219820Sjeff	  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'
7271219820Sjeff	fi
7272219820Sjeff      fi
7273219820Sjeff      ;;
7274219820Sjeff
7275219820Sjeff    amigaos*)
7276219820Sjeff      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)'
7277219820Sjeff      hardcode_libdir_flag_spec='-L$libdir'
7278219820Sjeff      hardcode_minus_L=yes
7279219820Sjeff      # see comment about different semantics on the GNU ld section
7280219820Sjeff      ld_shlibs=no
7281219820Sjeff      ;;
7282219820Sjeff
7283219820Sjeff    bsdi[45]*)
7284219820Sjeff      export_dynamic_flag_spec=-rdynamic
7285219820Sjeff      ;;
7286219820Sjeff
7287219820Sjeff    cygwin* | mingw* | pw32*)
7288219820Sjeff      # When not using gcc, we currently assume that we are using
7289219820Sjeff      # Microsoft Visual C++.
7290219820Sjeff      # hardcode_libdir_flag_spec is actually meaningless, as there is
7291219820Sjeff      # no search path for DLLs.
7292219820Sjeff      hardcode_libdir_flag_spec=' '
7293219820Sjeff      allow_undefined_flag=unsupported
7294219820Sjeff      # Tell ltmain to make .lib files, not .a files.
7295219820Sjeff      libext=lib
7296219820Sjeff      # Tell ltmain to make .dll files, not .so files.
7297219820Sjeff      shrext_cmds=".dll"
7298219820Sjeff      # FIXME: Setting linknames here is a bad hack.
7299219820Sjeff      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7300219820Sjeff      # The linker will automatically build a .lib file if we build a DLL.
7301219820Sjeff      old_archive_From_new_cmds='true'
7302219820Sjeff      # FIXME: Should let the user specify the lib program.
7303219820Sjeff      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7304219820Sjeff      fix_srcfile_path='`cygpath -w "$srcfile"`'
7305219820Sjeff      enable_shared_with_static_runtimes=yes
7306219820Sjeff      ;;
7307219820Sjeff
7308219820Sjeff    darwin* | rhapsody*)
7309219820Sjeff      case $host_os in
7310219820Sjeff        rhapsody* | darwin1.[012])
7311219820Sjeff         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7312219820Sjeff         ;;
7313219820Sjeff       *) # Darwin 1.3 on
7314219820Sjeff         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7315219820Sjeff           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7316219820Sjeff         else
7317219820Sjeff           case ${MACOSX_DEPLOYMENT_TARGET} in
7318219820Sjeff             10.[012])
7319219820Sjeff               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7320219820Sjeff               ;;
7321219820Sjeff             10.*)
7322219820Sjeff               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7323219820Sjeff               ;;
7324219820Sjeff           esac
7325219820Sjeff         fi
7326219820Sjeff         ;;
7327219820Sjeff      esac
7328219820Sjeff      archive_cmds_need_lc=no
7329219820Sjeff      hardcode_direct=no
7330219820Sjeff      hardcode_automatic=yes
7331219820Sjeff      hardcode_shlibpath_var=unsupported
7332219820Sjeff      whole_archive_flag_spec=''
7333219820Sjeff      link_all_deplibs=yes
7334219820Sjeff    if test "$GCC" = yes ; then
7335219820Sjeff    	output_verbose_link_cmd='echo'
7336219820Sjeff        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7337219820Sjeff      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7338219820Sjeff      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7339219820Sjeff      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}'
7340219820Sjeff      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}'
7341219820Sjeff    else
7342219820Sjeff      case $cc_basename in
7343219820Sjeff        xlc*)
7344219820Sjeff         output_verbose_link_cmd='echo'
7345219820Sjeff         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7346219820Sjeff         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7347219820Sjeff          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7348219820Sjeff         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}'
7349219820Sjeff          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}'
7350219820Sjeff          ;;
7351219820Sjeff       *)
7352219820Sjeff         ld_shlibs=no
7353219820Sjeff          ;;
7354219820Sjeff      esac
7355219820Sjeff    fi
7356219820Sjeff      ;;
7357219820Sjeff
7358219820Sjeff    dgux*)
7359219820Sjeff      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360219820Sjeff      hardcode_libdir_flag_spec='-L$libdir'
7361219820Sjeff      hardcode_shlibpath_var=no
7362219820Sjeff      ;;
7363219820Sjeff
7364219820Sjeff    freebsd1*)
7365219820Sjeff      ld_shlibs=no
7366219820Sjeff      ;;
7367219820Sjeff
7368219820Sjeff    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7369219820Sjeff    # support.  Future versions do this automatically, but an explicit c++rt0.o
7370219820Sjeff    # does not break anything, and helps significantly (at the cost of a little
7371219820Sjeff    # extra space).
7372219820Sjeff    freebsd2.2*)
7373219820Sjeff      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7374219820Sjeff      hardcode_libdir_flag_spec='-R$libdir'
7375219820Sjeff      hardcode_direct=yes
7376219820Sjeff      hardcode_shlibpath_var=no
7377219820Sjeff      ;;
7378219820Sjeff
7379219820Sjeff    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7380219820Sjeff    freebsd2*)
7381219820Sjeff      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7382219820Sjeff      hardcode_direct=yes
7383219820Sjeff      hardcode_minus_L=yes
7384219820Sjeff      hardcode_shlibpath_var=no
7385219820Sjeff      ;;
7386219820Sjeff
7387219820Sjeff    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7388219820Sjeff    freebsd* | dragonfly*)
7389219820Sjeff      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7390219820Sjeff      hardcode_libdir_flag_spec='-R$libdir'
7391219820Sjeff      hardcode_direct=yes
7392219820Sjeff      hardcode_shlibpath_var=no
7393219820Sjeff      ;;
7394219820Sjeff
7395219820Sjeff    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7396219820Sjeff    kfreebsd*-gnu)
7397219820Sjeff      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7398219820Sjeff      hardcode_libdir_flag_spec='-R$libdir'
7399219820Sjeff      hardcode_direct=yes
7400219820Sjeff      hardcode_shlibpath_var=no
7401219820Sjeff      link_all_deplibs=no
7402219820Sjeff      ;;
7403219820Sjeff
7404219820Sjeff    hpux9*)
7405219820Sjeff      if test "$GCC" = yes; then
7406219820Sjeff	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'
7407219820Sjeff      else
7408219820Sjeff	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'
7409219820Sjeff      fi
7410219820Sjeff      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7411219820Sjeff      hardcode_libdir_separator=:
7412219820Sjeff      hardcode_direct=yes
7413219820Sjeff
7414219820Sjeff      # hardcode_minus_L: Not really in the search PATH,
7415219820Sjeff      # but as the default location of the library.
7416219820Sjeff      hardcode_minus_L=yes
7417219820Sjeff      export_dynamic_flag_spec='${wl}-E'
7418219820Sjeff      ;;
7419219820Sjeff
7420219820Sjeff    hpux10*)
7421219820Sjeff      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7422219820Sjeff	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7423219820Sjeff      else
7424219820Sjeff	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7425219820Sjeff      fi
7426219820Sjeff      if test "$with_gnu_ld" = no; then
7427219820Sjeff	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7428219820Sjeff	hardcode_libdir_separator=:
7429219820Sjeff
7430219820Sjeff	hardcode_direct=yes
7431219820Sjeff	export_dynamic_flag_spec='${wl}-E'
7432219820Sjeff
7433219820Sjeff	# hardcode_minus_L: Not really in the search PATH,
7434219820Sjeff	# but as the default location of the library.
7435219820Sjeff	hardcode_minus_L=yes
7436219820Sjeff      fi
7437219820Sjeff      ;;
7438219820Sjeff
7439219820Sjeff    hpux11*)
7440219820Sjeff      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7441219820Sjeff	case $host_cpu in
7442219820Sjeff	hppa*64*)
7443219820Sjeff	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7444219820Sjeff	  ;;
7445219820Sjeff	ia64*)
7446219820Sjeff	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7447219820Sjeff	  ;;
7448219820Sjeff	*)
7449219820Sjeff	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7450219820Sjeff	  ;;
7451219820Sjeff	esac
7452219820Sjeff      else
7453219820Sjeff	case $host_cpu in
7454219820Sjeff	hppa*64*)
7455219820Sjeff	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7456219820Sjeff	  ;;
7457219820Sjeff	ia64*)
7458219820Sjeff	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7459219820Sjeff	  ;;
7460219820Sjeff	*)
7461219820Sjeff	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7462219820Sjeff	  ;;
7463219820Sjeff	esac
7464219820Sjeff      fi
7465219820Sjeff      if test "$with_gnu_ld" = no; then
7466219820Sjeff	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7467219820Sjeff	hardcode_libdir_separator=:
7468219820Sjeff
7469219820Sjeff	case $host_cpu in
7470219820Sjeff	hppa*64*|ia64*)
7471219820Sjeff	  hardcode_libdir_flag_spec_ld='+b $libdir'
7472219820Sjeff	  hardcode_direct=no
7473219820Sjeff	  hardcode_shlibpath_var=no
7474219820Sjeff	  ;;
7475219820Sjeff	*)
7476219820Sjeff	  hardcode_direct=yes
7477219820Sjeff	  export_dynamic_flag_spec='${wl}-E'
7478219820Sjeff
7479219820Sjeff	  # hardcode_minus_L: Not really in the search PATH,
7480219820Sjeff	  # but as the default location of the library.
7481219820Sjeff	  hardcode_minus_L=yes
7482219820Sjeff	  ;;
7483219820Sjeff	esac
7484219820Sjeff      fi
7485219820Sjeff      ;;
7486219820Sjeff
7487219820Sjeff    irix5* | irix6* | nonstopux*)
7488219820Sjeff      if test "$GCC" = yes; then
7489219820Sjeff	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'
7490219820Sjeff      else
7491219820Sjeff	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'
7492219820Sjeff	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7493219820Sjeff      fi
7494219820Sjeff      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7495219820Sjeff      hardcode_libdir_separator=:
7496219820Sjeff      link_all_deplibs=yes
7497219820Sjeff      ;;
7498219820Sjeff
7499219820Sjeff    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7500219820Sjeff      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7501219820Sjeff	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7502219820Sjeff      else
7503219820Sjeff	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7504219820Sjeff      fi
7505219820Sjeff      hardcode_libdir_flag_spec='-R$libdir'
7506219820Sjeff      hardcode_direct=yes
7507219820Sjeff      hardcode_shlibpath_var=no
7508219820Sjeff      ;;
7509219820Sjeff
7510219820Sjeff    newsos6)
7511219820Sjeff      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7512219820Sjeff      hardcode_direct=yes
7513219820Sjeff      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7514219820Sjeff      hardcode_libdir_separator=:
7515219820Sjeff      hardcode_shlibpath_var=no
7516219820Sjeff      ;;
7517219820Sjeff
7518219820Sjeff    openbsd*)
7519219820Sjeff      hardcode_direct=yes
7520219820Sjeff      hardcode_shlibpath_var=no
7521219820Sjeff      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7522219820Sjeff	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7523219820Sjeff	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7524219820Sjeff	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7525219820Sjeff	export_dynamic_flag_spec='${wl}-E'
7526219820Sjeff      else
7527219820Sjeff       case $host_os in
7528219820Sjeff	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7529219820Sjeff	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7530219820Sjeff	   hardcode_libdir_flag_spec='-R$libdir'
7531219820Sjeff	   ;;
7532219820Sjeff	 *)
7533219820Sjeff	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7534219820Sjeff	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7535219820Sjeff	   ;;
7536219820Sjeff       esac
7537219820Sjeff      fi
7538219820Sjeff      ;;
7539219820Sjeff
7540219820Sjeff    os2*)
7541219820Sjeff      hardcode_libdir_flag_spec='-L$libdir'
7542219820Sjeff      hardcode_minus_L=yes
7543219820Sjeff      allow_undefined_flag=unsupported
7544219820Sjeff      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'
7545219820Sjeff      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7546219820Sjeff      ;;
7547219820Sjeff
7548219820Sjeff    osf3*)
7549219820Sjeff      if test "$GCC" = yes; then
7550219820Sjeff	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7551219820Sjeff	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'
7552219820Sjeff      else
7553219820Sjeff	allow_undefined_flag=' -expect_unresolved \*'
7554219820Sjeff	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'
7555219820Sjeff      fi
7556219820Sjeff      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7557219820Sjeff      hardcode_libdir_separator=:
7558219820Sjeff      ;;
7559219820Sjeff
7560219820Sjeff    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7561219820Sjeff      if test "$GCC" = yes; then
7562219820Sjeff	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7563219820Sjeff	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'
7564219820Sjeff	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7565219820Sjeff      else
7566219820Sjeff	allow_undefined_flag=' -expect_unresolved \*'
7567219820Sjeff	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'
7568219820Sjeff	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7569219820Sjeff	$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'
7570219820Sjeff
7571219820Sjeff	# Both c and cxx compiler support -rpath directly
7572219820Sjeff	hardcode_libdir_flag_spec='-rpath $libdir'
7573219820Sjeff      fi
7574219820Sjeff      hardcode_libdir_separator=:
7575219820Sjeff      ;;
7576219820Sjeff
7577219820Sjeff    solaris*)
7578219820Sjeff      no_undefined_flag=' -z text'
7579219820Sjeff      if test "$GCC" = yes; then
7580219820Sjeff	wlarc='${wl}'
7581219820Sjeff	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7582219820Sjeff	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7583219820Sjeff	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7584219820Sjeff      else
7585219820Sjeff	wlarc=''
7586219820Sjeff	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7587219820Sjeff	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7588219820Sjeff  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7589219820Sjeff      fi
7590219820Sjeff      hardcode_libdir_flag_spec='-R$libdir'
7591219820Sjeff      hardcode_shlibpath_var=no
7592219820Sjeff      case $host_os in
7593219820Sjeff      solaris2.[0-5] | solaris2.[0-5].*) ;;
7594219820Sjeff      *)
7595219820Sjeff 	# The compiler driver will combine linker options so we
7596219820Sjeff 	# cannot just pass the convience library names through
7597219820Sjeff 	# without $wl, iff we do not link with $LD.
7598219820Sjeff 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7599219820Sjeff 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7600219820Sjeff 	case $wlarc in
7601219820Sjeff 	'')
7602219820Sjeff 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7603219820Sjeff 	*)
7604219820Sjeff 	  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' ;;
7605219820Sjeff 	esac ;;
7606219820Sjeff      esac
7607219820Sjeff      link_all_deplibs=yes
7608219820Sjeff      ;;
7609219820Sjeff
7610219820Sjeff    sunos4*)
7611219820Sjeff      if test "x$host_vendor" = xsequent; then
7612219820Sjeff	# Use $CC to link under sequent, because it throws in some extra .o
7613219820Sjeff	# files that make .init and .fini sections work.
7614219820Sjeff	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7615219820Sjeff      else
7616219820Sjeff	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7617219820Sjeff      fi
7618219820Sjeff      hardcode_libdir_flag_spec='-L$libdir'
7619219820Sjeff      hardcode_direct=yes
7620219820Sjeff      hardcode_minus_L=yes
7621219820Sjeff      hardcode_shlibpath_var=no
7622219820Sjeff      ;;
7623219820Sjeff
7624219820Sjeff    sysv4)
7625219820Sjeff      case $host_vendor in
7626219820Sjeff	sni)
7627219820Sjeff	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7628219820Sjeff	  hardcode_direct=yes # is this really true???
7629219820Sjeff	;;
7630219820Sjeff	siemens)
7631219820Sjeff	  ## LD is ld it makes a PLAMLIB
7632219820Sjeff	  ## CC just makes a GrossModule.
7633219820Sjeff	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7634219820Sjeff	  reload_cmds='$CC -r -o $output$reload_objs'
7635219820Sjeff	  hardcode_direct=no
7636219820Sjeff        ;;
7637219820Sjeff	motorola)
7638219820Sjeff	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7639219820Sjeff	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7640219820Sjeff	;;
7641219820Sjeff      esac
7642219820Sjeff      runpath_var='LD_RUN_PATH'
7643219820Sjeff      hardcode_shlibpath_var=no
7644219820Sjeff      ;;
7645219820Sjeff
7646219820Sjeff    sysv4.3*)
7647219820Sjeff      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7648219820Sjeff      hardcode_shlibpath_var=no
7649219820Sjeff      export_dynamic_flag_spec='-Bexport'
7650219820Sjeff      ;;
7651219820Sjeff
7652219820Sjeff    sysv4*MP*)
7653219820Sjeff      if test -d /usr/nec; then
7654219820Sjeff	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7655219820Sjeff	hardcode_shlibpath_var=no
7656219820Sjeff	runpath_var=LD_RUN_PATH
7657219820Sjeff	hardcode_runpath_var=yes
7658219820Sjeff	ld_shlibs=yes
7659219820Sjeff      fi
7660219820Sjeff      ;;
7661219820Sjeff
7662219820Sjeff    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7663219820Sjeff      no_undefined_flag='${wl}-z,text'
7664219820Sjeff      archive_cmds_need_lc=no
7665219820Sjeff      hardcode_shlibpath_var=no
7666219820Sjeff      runpath_var='LD_RUN_PATH'
7667219820Sjeff
7668219820Sjeff      if test "$GCC" = yes; then
7669219820Sjeff	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7670219820Sjeff	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7671219820Sjeff      else
7672219820Sjeff	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7673219820Sjeff	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7674219820Sjeff      fi
7675219820Sjeff      ;;
7676219820Sjeff
7677219820Sjeff    sysv5* | sco3.2v5* | sco5v6*)
7678219820Sjeff      # Note: We can NOT use -z defs as we might desire, because we do not
7679219820Sjeff      # link with -lc, and that would cause any symbols used from libc to
7680219820Sjeff      # always be unresolved, which means just about no library would
7681219820Sjeff      # ever link correctly.  If we're not using GNU ld we use -z text
7682219820Sjeff      # though, which does catch some bad symbols but isn't as heavy-handed
7683219820Sjeff      # as -z defs.
7684219820Sjeff      no_undefined_flag='${wl}-z,text'
7685219820Sjeff      allow_undefined_flag='${wl}-z,nodefs'
7686219820Sjeff      archive_cmds_need_lc=no
7687219820Sjeff      hardcode_shlibpath_var=no
7688219820Sjeff      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7689219820Sjeff      hardcode_libdir_separator=':'
7690219820Sjeff      link_all_deplibs=yes
7691219820Sjeff      export_dynamic_flag_spec='${wl}-Bexport'
7692219820Sjeff      runpath_var='LD_RUN_PATH'
7693219820Sjeff
7694219820Sjeff      if test "$GCC" = yes; then
7695219820Sjeff	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7696219820Sjeff	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7697219820Sjeff      else
7698219820Sjeff	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7699219820Sjeff	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7700219820Sjeff      fi
7701219820Sjeff      ;;
7702219820Sjeff
7703219820Sjeff    uts4*)
7704219820Sjeff      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7705219820Sjeff      hardcode_libdir_flag_spec='-L$libdir'
7706219820Sjeff      hardcode_shlibpath_var=no
7707219820Sjeff      ;;
7708219820Sjeff
7709219820Sjeff    *)
7710219820Sjeff      ld_shlibs=no
7711219820Sjeff      ;;
7712219820Sjeff    esac
7713219820Sjeff  fi
7714219820Sjeff
7715219820Sjeffecho "$as_me:$LINENO: result: $ld_shlibs" >&5
7716219820Sjeffecho "${ECHO_T}$ld_shlibs" >&6
7717219820Sjefftest "$ld_shlibs" = no && can_build_shared=no
7718219820Sjeff
7719219820Sjeff#
7720219820Sjeff# Do we need to explicitly link libc?
7721219820Sjeff#
7722219820Sjeffcase "x$archive_cmds_need_lc" in
7723219820Sjeffx|xyes)
7724219820Sjeff  # Assume -lc should be added
7725219820Sjeff  archive_cmds_need_lc=yes
7726219820Sjeff
7727219820Sjeff  if test "$enable_shared" = yes && test "$GCC" = yes; then
7728219820Sjeff    case $archive_cmds in
7729219820Sjeff    *'~'*)
7730219820Sjeff      # FIXME: we may have to deal with multi-command sequences.
7731219820Sjeff      ;;
7732219820Sjeff    '$CC '*)
7733219820Sjeff      # Test whether the compiler implicitly links with -lc since on some
7734219820Sjeff      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7735219820Sjeff      # to ld, don't add -lc before -lgcc.
7736219820Sjeff      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7737219820Sjeffecho $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7738219820Sjeff      $rm conftest*
7739219820Sjeff      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7740219820Sjeff
7741219820Sjeff      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742219820Sjeff  (eval $ac_compile) 2>&5
7743219820Sjeff  ac_status=$?
7744219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745219820Sjeff  (exit $ac_status); } 2>conftest.err; then
7746219820Sjeff        soname=conftest
7747219820Sjeff        lib=conftest
7748219820Sjeff        libobjs=conftest.$ac_objext
7749219820Sjeff        deplibs=
7750219820Sjeff        wl=$lt_prog_compiler_wl
7751219820Sjeff	pic_flag=$lt_prog_compiler_pic
7752219820Sjeff        compiler_flags=-v
7753219820Sjeff        linker_flags=-v
7754219820Sjeff        verstring=
7755219820Sjeff        output_objdir=.
7756219820Sjeff        libname=conftest
7757219820Sjeff        lt_save_allow_undefined_flag=$allow_undefined_flag
7758219820Sjeff        allow_undefined_flag=
7759219820Sjeff        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7760219820Sjeff  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7761219820Sjeff  ac_status=$?
7762219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763219820Sjeff  (exit $ac_status); }
7764219820Sjeff        then
7765219820Sjeff	  archive_cmds_need_lc=no
7766219820Sjeff        else
7767219820Sjeff	  archive_cmds_need_lc=yes
7768219820Sjeff        fi
7769219820Sjeff        allow_undefined_flag=$lt_save_allow_undefined_flag
7770219820Sjeff      else
7771219820Sjeff        cat conftest.err 1>&5
7772219820Sjeff      fi
7773219820Sjeff      $rm conftest*
7774219820Sjeff      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7775219820Sjeffecho "${ECHO_T}$archive_cmds_need_lc" >&6
7776219820Sjeff      ;;
7777219820Sjeff    esac
7778219820Sjeff  fi
7779219820Sjeff  ;;
7780219820Sjeffesac
7781219820Sjeff
7782219820Sjeffecho "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7783219820Sjeffecho $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7784219820Sjefflibrary_names_spec=
7785219820Sjefflibname_spec='lib$name'
7786219820Sjeffsoname_spec=
7787219820Sjeffshrext_cmds=".so"
7788219820Sjeffpostinstall_cmds=
7789219820Sjeffpostuninstall_cmds=
7790219820Sjefffinish_cmds=
7791219820Sjefffinish_eval=
7792219820Sjeffshlibpath_var=
7793219820Sjeffshlibpath_overrides_runpath=unknown
7794219820Sjeffversion_type=none
7795219820Sjeffdynamic_linker="$host_os ld.so"
7796219820Sjeffsys_lib_dlsearch_path_spec="/lib /usr/lib"
7797219820Sjeffif test "$GCC" = yes; then
7798219820Sjeff  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7799219820Sjeff  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7800219820Sjeff    # if the path contains ";" then we assume it to be the separator
7801219820Sjeff    # otherwise default to the standard path separator (i.e. ":") - it is
7802219820Sjeff    # assumed that no part of a normal pathname contains ";" but that should
7803219820Sjeff    # okay in the real world where ";" in dirpaths is itself problematic.
7804219820Sjeff    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7805219820Sjeff  else
7806219820Sjeff    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7807219820Sjeff  fi
7808219820Sjeffelse
7809219820Sjeff  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7810219820Sjefffi
7811219820Sjeffneed_lib_prefix=unknown
7812219820Sjeffhardcode_into_libs=no
7813219820Sjeff
7814219820Sjeff# when you set need_version to no, make sure it does not cause -set_version
7815219820Sjeff# flags to be left without arguments
7816219820Sjeffneed_version=unknown
7817219820Sjeff
7818219820Sjeffcase $host_os in
7819219820Sjeffaix3*)
7820219820Sjeff  version_type=linux
7821219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7822219820Sjeff  shlibpath_var=LIBPATH
7823219820Sjeff
7824219820Sjeff  # AIX 3 has no versioning support, so we append a major version to the name.
7825219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
7826219820Sjeff  ;;
7827219820Sjeff
7828219820Sjeffaix4* | aix5*)
7829219820Sjeff  version_type=linux
7830219820Sjeff  need_lib_prefix=no
7831219820Sjeff  need_version=no
7832219820Sjeff  hardcode_into_libs=yes
7833219820Sjeff  if test "$host_cpu" = ia64; then
7834219820Sjeff    # AIX 5 supports IA64
7835219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7836219820Sjeff    shlibpath_var=LD_LIBRARY_PATH
7837219820Sjeff  else
7838219820Sjeff    # With GCC up to 2.95.x, collect2 would create an import file
7839219820Sjeff    # for dependence libraries.  The import file would start with
7840219820Sjeff    # the line `#! .'.  This would cause the generated library to
7841219820Sjeff    # depend on `.', always an invalid library.  This was fixed in
7842219820Sjeff    # development snapshots of GCC prior to 3.0.
7843219820Sjeff    case $host_os in
7844219820Sjeff      aix4 | aix4.[01] | aix4.[01].*)
7845219820Sjeff      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7846219820Sjeff	   echo ' yes '
7847219820Sjeff	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7848219820Sjeff	:
7849219820Sjeff      else
7850219820Sjeff	can_build_shared=no
7851219820Sjeff      fi
7852219820Sjeff      ;;
7853219820Sjeff    esac
7854219820Sjeff    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7855219820Sjeff    # soname into executable. Probably we can add versioning support to
7856219820Sjeff    # collect2, so additional links can be useful in future.
7857219820Sjeff    if test "$aix_use_runtimelinking" = yes; then
7858219820Sjeff      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7859219820Sjeff      # instead of lib<name>.a to let people know that these are not
7860219820Sjeff      # typical AIX shared libraries.
7861219820Sjeff      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7862219820Sjeff    else
7863219820Sjeff      # We preserve .a as extension for shared libraries through AIX4.2
7864219820Sjeff      # and later when we are not doing run time linking.
7865219820Sjeff      library_names_spec='${libname}${release}.a $libname.a'
7866219820Sjeff      soname_spec='${libname}${release}${shared_ext}$major'
7867219820Sjeff    fi
7868219820Sjeff    shlibpath_var=LIBPATH
7869219820Sjeff  fi
7870219820Sjeff  ;;
7871219820Sjeff
7872219820Sjeffamigaos*)
7873219820Sjeff  library_names_spec='$libname.ixlibrary $libname.a'
7874219820Sjeff  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7875219820Sjeff  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'
7876219820Sjeff  ;;
7877219820Sjeff
7878219820Sjeffbeos*)
7879219820Sjeff  library_names_spec='${libname}${shared_ext}'
7880219820Sjeff  dynamic_linker="$host_os ld.so"
7881219820Sjeff  shlibpath_var=LIBRARY_PATH
7882219820Sjeff  ;;
7883219820Sjeff
7884219820Sjeffbsdi[45]*)
7885219820Sjeff  version_type=linux
7886219820Sjeff  need_version=no
7887219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
7889219820Sjeff  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7890219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
7891219820Sjeff  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7892219820Sjeff  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7893219820Sjeff  # the default ld.so.conf also contains /usr/contrib/lib and
7894219820Sjeff  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7895219820Sjeff  # libtool to hard-code these into programs
7896219820Sjeff  ;;
7897219820Sjeff
7898219820Sjeffcygwin* | mingw* | pw32*)
7899219820Sjeff  version_type=windows
7900219820Sjeff  shrext_cmds=".dll"
7901219820Sjeff  need_version=no
7902219820Sjeff  need_lib_prefix=no
7903219820Sjeff
7904219820Sjeff  case $GCC,$host_os in
7905219820Sjeff  yes,cygwin* | yes,mingw* | yes,pw32*)
7906219820Sjeff    library_names_spec='$libname.dll.a'
7907219820Sjeff    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7908219820Sjeff    postinstall_cmds='base_file=`basename \${file}`~
7909219820Sjeff      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7910219820Sjeff      dldir=$destdir/`dirname \$dlpath`~
7911219820Sjeff      test -d \$dldir || mkdir -p \$dldir~
7912219820Sjeff      $install_prog $dir/$dlname \$dldir/$dlname~
7913219820Sjeff      chmod a+x \$dldir/$dlname'
7914219820Sjeff    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7915219820Sjeff      dlpath=$dir/\$dldll~
7916219820Sjeff       $rm \$dlpath'
7917219820Sjeff    shlibpath_overrides_runpath=yes
7918219820Sjeff
7919219820Sjeff    case $host_os in
7920219820Sjeff    cygwin*)
7921219820Sjeff      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7922219820Sjeff      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7923219820Sjeff      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7924219820Sjeff      ;;
7925219820Sjeff    mingw*)
7926219820Sjeff      # MinGW DLLs use traditional 'lib' prefix
7927219820Sjeff      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7928219820Sjeff      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7929219820Sjeff      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7930219820Sjeff        # It is most probably a Windows format PATH printed by
7931219820Sjeff        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7932219820Sjeff        # path with ; separators, and with drive letters. We can handle the
7933219820Sjeff        # drive letters (cygwin fileutils understands them), so leave them,
7934219820Sjeff        # especially as we might pass files found there to a mingw objdump,
7935219820Sjeff        # which wouldn't understand a cygwinified path. Ahh.
7936219820Sjeff        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7937219820Sjeff      else
7938219820Sjeff        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7939219820Sjeff      fi
7940219820Sjeff      ;;
7941219820Sjeff    pw32*)
7942219820Sjeff      # pw32 DLLs use 'pw' prefix rather than 'lib'
7943219820Sjeff      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7944219820Sjeff      ;;
7945219820Sjeff    esac
7946219820Sjeff    ;;
7947219820Sjeff
7948219820Sjeff  *)
7949219820Sjeff    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7950219820Sjeff    ;;
7951219820Sjeff  esac
7952219820Sjeff  dynamic_linker='Win32 ld.exe'
7953219820Sjeff  # FIXME: first we should search . and the directory the executable is in
7954219820Sjeff  shlibpath_var=PATH
7955219820Sjeff  ;;
7956219820Sjeff
7957219820Sjeffdarwin* | rhapsody*)
7958219820Sjeff  dynamic_linker="$host_os dyld"
7959219820Sjeff  version_type=darwin
7960219820Sjeff  need_lib_prefix=no
7961219820Sjeff  need_version=no
7962219820Sjeff  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7963219820Sjeff  soname_spec='${libname}${release}${major}$shared_ext'
7964219820Sjeff  shlibpath_overrides_runpath=yes
7965219820Sjeff  shlibpath_var=DYLD_LIBRARY_PATH
7966219820Sjeff  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7967219820Sjeff  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7968219820Sjeff  if test "$GCC" = yes; then
7969219820Sjeff    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"`
7970219820Sjeff  else
7971219820Sjeff    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7972219820Sjeff  fi
7973219820Sjeff  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7974219820Sjeff  ;;
7975219820Sjeff
7976219820Sjeffdgux*)
7977219820Sjeff  version_type=linux
7978219820Sjeff  need_lib_prefix=no
7979219820Sjeff  need_version=no
7980219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7981219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
7982219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
7983219820Sjeff  ;;
7984219820Sjeff
7985219820Sjefffreebsd1*)
7986219820Sjeff  dynamic_linker=no
7987219820Sjeff  ;;
7988219820Sjeff
7989219820Sjeffkfreebsd*-gnu)
7990219820Sjeff  version_type=linux
7991219820Sjeff  need_lib_prefix=no
7992219820Sjeff  need_version=no
7993219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7994219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
7995219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
7996219820Sjeff  shlibpath_overrides_runpath=no
7997219820Sjeff  hardcode_into_libs=yes
7998219820Sjeff  dynamic_linker='GNU ld.so'
7999219820Sjeff  ;;
8000219820Sjeff
8001219820Sjefffreebsd* | dragonfly*)
8002219820Sjeff  # DragonFly does not have aout.  When/if they implement a new
8003219820Sjeff  # versioning mechanism, adjust this.
8004219820Sjeff  if test -x /usr/bin/objformat; then
8005219820Sjeff    objformat=`/usr/bin/objformat`
8006219820Sjeff  else
8007219820Sjeff    case $host_os in
8008219820Sjeff    freebsd[123]*) objformat=aout ;;
8009219820Sjeff    *) objformat=elf ;;
8010219820Sjeff    esac
8011219820Sjeff  fi
8012219820Sjeff  version_type=freebsd-$objformat
8013219820Sjeff  case $version_type in
8014219820Sjeff    freebsd-elf*)
8015219820Sjeff      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8016219820Sjeff      need_version=no
8017219820Sjeff      need_lib_prefix=no
8018219820Sjeff      ;;
8019219820Sjeff    freebsd-*)
8020219820Sjeff      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8021219820Sjeff      need_version=yes
8022219820Sjeff      ;;
8023219820Sjeff  esac
8024219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8025219820Sjeff  case $host_os in
8026219820Sjeff  freebsd2*)
8027219820Sjeff    shlibpath_overrides_runpath=yes
8028219820Sjeff    ;;
8029219820Sjeff  freebsd3.[01]* | freebsdelf3.[01]*)
8030219820Sjeff    shlibpath_overrides_runpath=yes
8031219820Sjeff    hardcode_into_libs=yes
8032219820Sjeff    ;;
8033219820Sjeff  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8034219820Sjeff  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8035219820Sjeff    shlibpath_overrides_runpath=no
8036219820Sjeff    hardcode_into_libs=yes
8037219820Sjeff    ;;
8038219820Sjeff  freebsd*) # from 4.6 on
8039219820Sjeff    shlibpath_overrides_runpath=yes
8040219820Sjeff    hardcode_into_libs=yes
8041219820Sjeff    ;;
8042219820Sjeff  esac
8043219820Sjeff  ;;
8044219820Sjeff
8045219820Sjeffgnu*)
8046219820Sjeff  version_type=linux
8047219820Sjeff  need_lib_prefix=no
8048219820Sjeff  need_version=no
8049219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8050219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
8051219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8052219820Sjeff  hardcode_into_libs=yes
8053219820Sjeff  ;;
8054219820Sjeff
8055219820Sjeffhpux9* | hpux10* | hpux11*)
8056219820Sjeff  # Give a soname corresponding to the major version so that dld.sl refuses to
8057219820Sjeff  # link against other versions.
8058219820Sjeff  version_type=sunos
8059219820Sjeff  need_lib_prefix=no
8060219820Sjeff  need_version=no
8061219820Sjeff  case $host_cpu in
8062219820Sjeff  ia64*)
8063219820Sjeff    shrext_cmds='.so'
8064219820Sjeff    hardcode_into_libs=yes
8065219820Sjeff    dynamic_linker="$host_os dld.so"
8066219820Sjeff    shlibpath_var=LD_LIBRARY_PATH
8067219820Sjeff    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8068219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8069219820Sjeff    soname_spec='${libname}${release}${shared_ext}$major'
8070219820Sjeff    if test "X$HPUX_IA64_MODE" = X32; then
8071219820Sjeff      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8072219820Sjeff    else
8073219820Sjeff      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8074219820Sjeff    fi
8075219820Sjeff    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8076219820Sjeff    ;;
8077219820Sjeff   hppa*64*)
8078219820Sjeff     shrext_cmds='.sl'
8079219820Sjeff     hardcode_into_libs=yes
8080219820Sjeff     dynamic_linker="$host_os dld.sl"
8081219820Sjeff     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8082219820Sjeff     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8083219820Sjeff     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8084219820Sjeff     soname_spec='${libname}${release}${shared_ext}$major'
8085219820Sjeff     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8086219820Sjeff     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8087219820Sjeff     ;;
8088219820Sjeff   *)
8089219820Sjeff    shrext_cmds='.sl'
8090219820Sjeff    dynamic_linker="$host_os dld.sl"
8091219820Sjeff    shlibpath_var=SHLIB_PATH
8092219820Sjeff    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8093219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8094219820Sjeff    soname_spec='${libname}${release}${shared_ext}$major'
8095219820Sjeff    ;;
8096219820Sjeff  esac
8097219820Sjeff  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8098219820Sjeff  postinstall_cmds='chmod 555 $lib'
8099219820Sjeff  ;;
8100219820Sjeff
8101219820Sjeffinterix3*)
8102219820Sjeff  version_type=linux
8103219820Sjeff  need_lib_prefix=no
8104219820Sjeff  need_version=no
8105219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8106219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
8107219820Sjeff  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8108219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8109219820Sjeff  shlibpath_overrides_runpath=no
8110219820Sjeff  hardcode_into_libs=yes
8111219820Sjeff  ;;
8112219820Sjeff
8113219820Sjeffirix5* | irix6* | nonstopux*)
8114219820Sjeff  case $host_os in
8115219820Sjeff    nonstopux*) version_type=nonstopux ;;
8116219820Sjeff    *)
8117219820Sjeff	if test "$lt_cv_prog_gnu_ld" = yes; then
8118219820Sjeff		version_type=linux
8119219820Sjeff	else
8120219820Sjeff		version_type=irix
8121219820Sjeff	fi ;;
8122219820Sjeff  esac
8123219820Sjeff  need_lib_prefix=no
8124219820Sjeff  need_version=no
8125219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
8126219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8127219820Sjeff  case $host_os in
8128219820Sjeff  irix5* | nonstopux*)
8129219820Sjeff    libsuff= shlibsuff=
8130219820Sjeff    ;;
8131219820Sjeff  *)
8132219820Sjeff    case $LD in # libtool.m4 will add one of these switches to LD
8133219820Sjeff    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8134219820Sjeff      libsuff= shlibsuff= libmagic=32-bit;;
8135219820Sjeff    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8136219820Sjeff      libsuff=32 shlibsuff=N32 libmagic=N32;;
8137219820Sjeff    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8138219820Sjeff      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8139219820Sjeff    *) libsuff= shlibsuff= libmagic=never-match;;
8140219820Sjeff    esac
8141219820Sjeff    ;;
8142219820Sjeff  esac
8143219820Sjeff  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8144219820Sjeff  shlibpath_overrides_runpath=no
8145219820Sjeff  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8146219820Sjeff  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8147219820Sjeff  hardcode_into_libs=yes
8148219820Sjeff  ;;
8149219820Sjeff
8150219820Sjeff# No shared lib support for Linux oldld, aout, or coff.
8151219820Sjefflinux*oldld* | linux*aout* | linux*coff*)
8152219820Sjeff  dynamic_linker=no
8153219820Sjeff  ;;
8154219820Sjeff
8155219820Sjeff# This must be Linux ELF.
8156219820Sjefflinux*)
8157219820Sjeff  version_type=linux
8158219820Sjeff  need_lib_prefix=no
8159219820Sjeff  need_version=no
8160219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
8162219820Sjeff  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8163219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8164219820Sjeff  shlibpath_overrides_runpath=no
8165219820Sjeff  # This implies no fast_install, which is unacceptable.
8166219820Sjeff  # Some rework will be needed to allow for fast_install
8167219820Sjeff  # before this can be enabled.
8168219820Sjeff  hardcode_into_libs=yes
8169219820Sjeff
8170219820Sjeff  # Append ld.so.conf contents to the search path
8171219820Sjeff  if test -f /etc/ld.so.conf; then
8172219820Sjeff    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' ' '`
8173219820Sjeff    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8174219820Sjeff  fi
8175219820Sjeff
8176219820Sjeff  # We used to test for /lib/ld.so.1 and disable shared libraries on
8177219820Sjeff  # powerpc, because MkLinux only supported shared libraries with the
8178219820Sjeff  # GNU dynamic linker.  Since this was broken with cross compilers,
8179219820Sjeff  # most powerpc-linux boxes support dynamic linking these days and
8180219820Sjeff  # people can always --disable-shared, the test was removed, and we
8181219820Sjeff  # assume the GNU/Linux dynamic linker is in use.
8182219820Sjeff  dynamic_linker='GNU/Linux ld.so'
8183219820Sjeff  ;;
8184219820Sjeff
8185219820Sjeffnetbsdelf*-gnu)
8186219820Sjeff  version_type=linux
8187219820Sjeff  need_lib_prefix=no
8188219820Sjeff  need_version=no
8189219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8190219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
8191219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8192219820Sjeff  shlibpath_overrides_runpath=no
8193219820Sjeff  hardcode_into_libs=yes
8194219820Sjeff  dynamic_linker='NetBSD ld.elf_so'
8195219820Sjeff  ;;
8196219820Sjeff
8197219820Sjeffknetbsd*-gnu)
8198219820Sjeff  version_type=linux
8199219820Sjeff  need_lib_prefix=no
8200219820Sjeff  need_version=no
8201219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8202219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
8203219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8204219820Sjeff  shlibpath_overrides_runpath=no
8205219820Sjeff  hardcode_into_libs=yes
8206219820Sjeff  dynamic_linker='GNU ld.so'
8207219820Sjeff  ;;
8208219820Sjeff
8209219820Sjeffnetbsd*)
8210219820Sjeff  version_type=sunos
8211219820Sjeff  need_lib_prefix=no
8212219820Sjeff  need_version=no
8213219820Sjeff  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8214219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8215219820Sjeff    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8216219820Sjeff    dynamic_linker='NetBSD (a.out) ld.so'
8217219820Sjeff  else
8218219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8219219820Sjeff    soname_spec='${libname}${release}${shared_ext}$major'
8220219820Sjeff    dynamic_linker='NetBSD ld.elf_so'
8221219820Sjeff  fi
8222219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8223219820Sjeff  shlibpath_overrides_runpath=yes
8224219820Sjeff  hardcode_into_libs=yes
8225219820Sjeff  ;;
8226219820Sjeff
8227219820Sjeffnewsos6)
8228219820Sjeff  version_type=linux
8229219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8230219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8231219820Sjeff  shlibpath_overrides_runpath=yes
8232219820Sjeff  ;;
8233219820Sjeff
8234219820Sjeffnto-qnx*)
8235219820Sjeff  version_type=linux
8236219820Sjeff  need_lib_prefix=no
8237219820Sjeff  need_version=no
8238219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8239219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
8240219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8241219820Sjeff  shlibpath_overrides_runpath=yes
8242219820Sjeff  ;;
8243219820Sjeff
8244219820Sjeffopenbsd*)
8245219820Sjeff  version_type=sunos
8246219820Sjeff  sys_lib_dlsearch_path_spec="/usr/lib"
8247219820Sjeff  need_lib_prefix=no
8248219820Sjeff  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8249219820Sjeff  case $host_os in
8250219820Sjeff    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8251219820Sjeff    *)                         need_version=no  ;;
8252219820Sjeff  esac
8253219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8254219820Sjeff  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8255219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8256219820Sjeff  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8257219820Sjeff    case $host_os in
8258219820Sjeff      openbsd2.[89] | openbsd2.[89].*)
8259219820Sjeff	shlibpath_overrides_runpath=no
8260219820Sjeff	;;
8261219820Sjeff      *)
8262219820Sjeff	shlibpath_overrides_runpath=yes
8263219820Sjeff	;;
8264219820Sjeff      esac
8265219820Sjeff  else
8266219820Sjeff    shlibpath_overrides_runpath=yes
8267219820Sjeff  fi
8268219820Sjeff  ;;
8269219820Sjeff
8270219820Sjeffos2*)
8271219820Sjeff  libname_spec='$name'
8272219820Sjeff  shrext_cmds=".dll"
8273219820Sjeff  need_lib_prefix=no
8274219820Sjeff  library_names_spec='$libname${shared_ext} $libname.a'
8275219820Sjeff  dynamic_linker='OS/2 ld.exe'
8276219820Sjeff  shlibpath_var=LIBPATH
8277219820Sjeff  ;;
8278219820Sjeff
8279219820Sjeffosf3* | osf4* | osf5*)
8280219820Sjeff  version_type=osf
8281219820Sjeff  need_lib_prefix=no
8282219820Sjeff  need_version=no
8283219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
8284219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8286219820Sjeff  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8287219820Sjeff  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8288219820Sjeff  ;;
8289219820Sjeff
8290219820Sjeffsolaris*)
8291219820Sjeff  version_type=linux
8292219820Sjeff  need_lib_prefix=no
8293219820Sjeff  need_version=no
8294219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
8296219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8297219820Sjeff  shlibpath_overrides_runpath=yes
8298219820Sjeff  hardcode_into_libs=yes
8299219820Sjeff  # ldd complains unless libraries are executable
8300219820Sjeff  postinstall_cmds='chmod +x $lib'
8301219820Sjeff  ;;
8302219820Sjeff
8303219820Sjeffsunos4*)
8304219820Sjeff  version_type=sunos
8305219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8306219820Sjeff  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8307219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8308219820Sjeff  shlibpath_overrides_runpath=yes
8309219820Sjeff  if test "$with_gnu_ld" = yes; then
8310219820Sjeff    need_lib_prefix=no
8311219820Sjeff  fi
8312219820Sjeff  need_version=yes
8313219820Sjeff  ;;
8314219820Sjeff
8315219820Sjeffsysv4 | sysv4.3*)
8316219820Sjeff  version_type=linux
8317219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8318219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
8319219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8320219820Sjeff  case $host_vendor in
8321219820Sjeff    sni)
8322219820Sjeff      shlibpath_overrides_runpath=no
8323219820Sjeff      need_lib_prefix=no
8324219820Sjeff      export_dynamic_flag_spec='${wl}-Blargedynsym'
8325219820Sjeff      runpath_var=LD_RUN_PATH
8326219820Sjeff      ;;
8327219820Sjeff    siemens)
8328219820Sjeff      need_lib_prefix=no
8329219820Sjeff      ;;
8330219820Sjeff    motorola)
8331219820Sjeff      need_lib_prefix=no
8332219820Sjeff      need_version=no
8333219820Sjeff      shlibpath_overrides_runpath=no
8334219820Sjeff      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8335219820Sjeff      ;;
8336219820Sjeff  esac
8337219820Sjeff  ;;
8338219820Sjeff
8339219820Sjeffsysv4*MP*)
8340219820Sjeff  if test -d /usr/nec ;then
8341219820Sjeff    version_type=linux
8342219820Sjeff    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8343219820Sjeff    soname_spec='$libname${shared_ext}.$major'
8344219820Sjeff    shlibpath_var=LD_LIBRARY_PATH
8345219820Sjeff  fi
8346219820Sjeff  ;;
8347219820Sjeff
8348219820Sjeffsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8349219820Sjeff  version_type=freebsd-elf
8350219820Sjeff  need_lib_prefix=no
8351219820Sjeff  need_version=no
8352219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8353219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
8354219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8355219820Sjeff  hardcode_into_libs=yes
8356219820Sjeff  if test "$with_gnu_ld" = yes; then
8357219820Sjeff    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8358219820Sjeff    shlibpath_overrides_runpath=no
8359219820Sjeff  else
8360219820Sjeff    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8361219820Sjeff    shlibpath_overrides_runpath=yes
8362219820Sjeff    case $host_os in
8363219820Sjeff      sco3.2v5*)
8364219820Sjeff        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8365219820Sjeff	;;
8366219820Sjeff    esac
8367219820Sjeff  fi
8368219820Sjeff  sys_lib_dlsearch_path_spec='/usr/lib'
8369219820Sjeff  ;;
8370219820Sjeff
8371219820Sjeffuts4*)
8372219820Sjeff  version_type=linux
8373219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8374219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
8375219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
8376219820Sjeff  ;;
8377219820Sjeff
8378219820Sjeff*)
8379219820Sjeff  dynamic_linker=no
8380219820Sjeff  ;;
8381219820Sjeffesac
8382219820Sjeffecho "$as_me:$LINENO: result: $dynamic_linker" >&5
8383219820Sjeffecho "${ECHO_T}$dynamic_linker" >&6
8384219820Sjefftest "$dynamic_linker" = no && can_build_shared=no
8385219820Sjeff
8386219820Sjeffvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8387219820Sjeffif test "$GCC" = yes; then
8388219820Sjeff  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8389219820Sjefffi
8390219820Sjeff
8391219820Sjeffecho "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8392219820Sjeffecho $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8393219820Sjeffhardcode_action=
8394219820Sjeffif test -n "$hardcode_libdir_flag_spec" || \
8395219820Sjeff   test -n "$runpath_var" || \
8396219820Sjeff   test "X$hardcode_automatic" = "Xyes" ; then
8397219820Sjeff
8398219820Sjeff  # We can hardcode non-existant directories.
8399219820Sjeff  if test "$hardcode_direct" != no &&
8400219820Sjeff     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8401219820Sjeff     # have to relink, otherwise we might link with an installed library
8402219820Sjeff     # when we should be linking with a yet-to-be-installed one
8403219820Sjeff     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8404219820Sjeff     test "$hardcode_minus_L" != no; then
8405219820Sjeff    # Linking always hardcodes the temporary library directory.
8406219820Sjeff    hardcode_action=relink
8407219820Sjeff  else
8408219820Sjeff    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8409219820Sjeff    hardcode_action=immediate
8410219820Sjeff  fi
8411219820Sjeffelse
8412219820Sjeff  # We cannot hardcode anything, or else we can only hardcode existing
8413219820Sjeff  # directories.
8414219820Sjeff  hardcode_action=unsupported
8415219820Sjefffi
8416219820Sjeffecho "$as_me:$LINENO: result: $hardcode_action" >&5
8417219820Sjeffecho "${ECHO_T}$hardcode_action" >&6
8418219820Sjeff
8419219820Sjeffif test "$hardcode_action" = relink; then
8420219820Sjeff  # Fast installation is not supported
8421219820Sjeff  enable_fast_install=no
8422219820Sjeffelif test "$shlibpath_overrides_runpath" = yes ||
8423219820Sjeff     test "$enable_shared" = no; then
8424219820Sjeff  # Fast installation is not necessary
8425219820Sjeff  enable_fast_install=needless
8426219820Sjefffi
8427219820Sjeff
8428219820Sjeffstriplib=
8429219820Sjeffold_striplib=
8430219820Sjeffecho "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8431219820Sjeffecho $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8432219820Sjeffif test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8433219820Sjeff  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8434219820Sjeff  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8435219820Sjeff  echo "$as_me:$LINENO: result: yes" >&5
8436219820Sjeffecho "${ECHO_T}yes" >&6
8437219820Sjeffelse
8438219820Sjeff# FIXME - insert some real tests, host_os isn't really good enough
8439219820Sjeff  case $host_os in
8440219820Sjeff   darwin*)
8441219820Sjeff       if test -n "$STRIP" ; then
8442219820Sjeff         striplib="$STRIP -x"
8443219820Sjeff         echo "$as_me:$LINENO: result: yes" >&5
8444219820Sjeffecho "${ECHO_T}yes" >&6
8445219820Sjeff       else
8446219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
8447219820Sjeffecho "${ECHO_T}no" >&6
8448219820Sjefffi
8449219820Sjeff       ;;
8450219820Sjeff   *)
8451219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
8452219820Sjeffecho "${ECHO_T}no" >&6
8453219820Sjeff    ;;
8454219820Sjeff  esac
8455219820Sjefffi
8456219820Sjeff
8457219820Sjeffif test "x$enable_dlopen" != xyes; then
8458219820Sjeff  enable_dlopen=unknown
8459219820Sjeff  enable_dlopen_self=unknown
8460219820Sjeff  enable_dlopen_self_static=unknown
8461219820Sjeffelse
8462219820Sjeff  lt_cv_dlopen=no
8463219820Sjeff  lt_cv_dlopen_libs=
8464219820Sjeff
8465219820Sjeff  case $host_os in
8466219820Sjeff  beos*)
8467219820Sjeff    lt_cv_dlopen="load_add_on"
8468219820Sjeff    lt_cv_dlopen_libs=
8469219820Sjeff    lt_cv_dlopen_self=yes
8470219820Sjeff    ;;
8471219820Sjeff
8472219820Sjeff  mingw* | pw32*)
8473219820Sjeff    lt_cv_dlopen="LoadLibrary"
8474219820Sjeff    lt_cv_dlopen_libs=
8475219820Sjeff   ;;
8476219820Sjeff
8477219820Sjeff  cygwin*)
8478219820Sjeff    lt_cv_dlopen="dlopen"
8479219820Sjeff    lt_cv_dlopen_libs=
8480219820Sjeff   ;;
8481219820Sjeff
8482219820Sjeff  darwin*)
8483219820Sjeff  # if libdl is installed we need to link against it
8484219820Sjeff    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8485219820Sjeffecho $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8486219820Sjeffif test "${ac_cv_lib_dl_dlopen+set}" = set; then
8487219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
8488219820Sjeffelse
8489219820Sjeff  ac_check_lib_save_LIBS=$LIBS
8490219820SjeffLIBS="-ldl  $LIBS"
8491219820Sjeffcat >conftest.$ac_ext <<_ACEOF
8492219820Sjeff/* confdefs.h.  */
8493219820Sjeff_ACEOF
8494219820Sjeffcat confdefs.h >>conftest.$ac_ext
8495219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
8496219820Sjeff/* end confdefs.h.  */
8497219820Sjeff
8498219820Sjeff/* Override any gcc2 internal prototype to avoid an error.  */
8499219820Sjeff#ifdef __cplusplus
8500219820Sjeffextern "C"
8501219820Sjeff#endif
8502219820Sjeff/* We use char because int might match the return type of a gcc2
8503219820Sjeff   builtin and then its argument prototype would still apply.  */
8504219820Sjeffchar dlopen ();
8505219820Sjeffint
8506219820Sjeffmain ()
8507219820Sjeff{
8508219820Sjeffdlopen ();
8509219820Sjeff  ;
8510219820Sjeff  return 0;
8511219820Sjeff}
8512219820Sjeff_ACEOF
8513219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
8514219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515219820Sjeff  (eval $ac_link) 2>conftest.er1
8516219820Sjeff  ac_status=$?
8517219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
8518219820Sjeff  rm -f conftest.er1
8519219820Sjeff  cat conftest.err >&5
8520219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521219820Sjeff  (exit $ac_status); } &&
8522219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8523219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524219820Sjeff  (eval $ac_try) 2>&5
8525219820Sjeff  ac_status=$?
8526219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527219820Sjeff  (exit $ac_status); }; } &&
8528219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
8529219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530219820Sjeff  (eval $ac_try) 2>&5
8531219820Sjeff  ac_status=$?
8532219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533219820Sjeff  (exit $ac_status); }; }; then
8534219820Sjeff  ac_cv_lib_dl_dlopen=yes
8535219820Sjeffelse
8536219820Sjeff  echo "$as_me: failed program was:" >&5
8537219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
8538219820Sjeff
8539219820Sjeffac_cv_lib_dl_dlopen=no
8540219820Sjefffi
8541219820Sjeffrm -f conftest.err conftest.$ac_objext \
8542219820Sjeff      conftest$ac_exeext conftest.$ac_ext
8543219820SjeffLIBS=$ac_check_lib_save_LIBS
8544219820Sjefffi
8545219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8546219820Sjeffecho "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8547219820Sjeffif test $ac_cv_lib_dl_dlopen = yes; then
8548219820Sjeff  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8549219820Sjeffelse
8550219820Sjeff
8551219820Sjeff    lt_cv_dlopen="dyld"
8552219820Sjeff    lt_cv_dlopen_libs=
8553219820Sjeff    lt_cv_dlopen_self=yes
8554219820Sjeff
8555219820Sjefffi
8556219820Sjeff
8557219820Sjeff   ;;
8558219820Sjeff
8559219820Sjeff  *)
8560219820Sjeff    echo "$as_me:$LINENO: checking for shl_load" >&5
8561219820Sjeffecho $ECHO_N "checking for shl_load... $ECHO_C" >&6
8562219820Sjeffif test "${ac_cv_func_shl_load+set}" = set; then
8563219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
8564219820Sjeffelse
8565219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
8566219820Sjeff/* confdefs.h.  */
8567219820Sjeff_ACEOF
8568219820Sjeffcat confdefs.h >>conftest.$ac_ext
8569219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
8570219820Sjeff/* end confdefs.h.  */
8571219820Sjeff/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8572219820Sjeff   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8573219820Sjeff#define shl_load innocuous_shl_load
8574219820Sjeff
8575219820Sjeff/* System header to define __stub macros and hopefully few prototypes,
8576219820Sjeff    which can conflict with char shl_load (); below.
8577219820Sjeff    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8578219820Sjeff    <limits.h> exists even on freestanding compilers.  */
8579219820Sjeff
8580219820Sjeff#ifdef __STDC__
8581219820Sjeff# include <limits.h>
8582219820Sjeff#else
8583219820Sjeff# include <assert.h>
8584219820Sjeff#endif
8585219820Sjeff
8586219820Sjeff#undef shl_load
8587219820Sjeff
8588219820Sjeff/* Override any gcc2 internal prototype to avoid an error.  */
8589219820Sjeff#ifdef __cplusplus
8590219820Sjeffextern "C"
8591219820Sjeff{
8592219820Sjeff#endif
8593219820Sjeff/* We use char because int might match the return type of a gcc2
8594219820Sjeff   builtin and then its argument prototype would still apply.  */
8595219820Sjeffchar shl_load ();
8596219820Sjeff/* The GNU C library defines this for functions which it implements
8597219820Sjeff    to always fail with ENOSYS.  Some functions are actually named
8598219820Sjeff    something starting with __ and the normal name is an alias.  */
8599219820Sjeff#if defined (__stub_shl_load) || defined (__stub___shl_load)
8600219820Sjeffchoke me
8601219820Sjeff#else
8602219820Sjeffchar (*f) () = shl_load;
8603219820Sjeff#endif
8604219820Sjeff#ifdef __cplusplus
8605219820Sjeff}
8606219820Sjeff#endif
8607219820Sjeff
8608219820Sjeffint
8609219820Sjeffmain ()
8610219820Sjeff{
8611219820Sjeffreturn f != shl_load;
8612219820Sjeff  ;
8613219820Sjeff  return 0;
8614219820Sjeff}
8615219820Sjeff_ACEOF
8616219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
8617219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8618219820Sjeff  (eval $ac_link) 2>conftest.er1
8619219820Sjeff  ac_status=$?
8620219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
8621219820Sjeff  rm -f conftest.er1
8622219820Sjeff  cat conftest.err >&5
8623219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624219820Sjeff  (exit $ac_status); } &&
8625219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8626219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627219820Sjeff  (eval $ac_try) 2>&5
8628219820Sjeff  ac_status=$?
8629219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630219820Sjeff  (exit $ac_status); }; } &&
8631219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
8632219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633219820Sjeff  (eval $ac_try) 2>&5
8634219820Sjeff  ac_status=$?
8635219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636219820Sjeff  (exit $ac_status); }; }; then
8637219820Sjeff  ac_cv_func_shl_load=yes
8638219820Sjeffelse
8639219820Sjeff  echo "$as_me: failed program was:" >&5
8640219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
8641219820Sjeff
8642219820Sjeffac_cv_func_shl_load=no
8643219820Sjefffi
8644219820Sjeffrm -f conftest.err conftest.$ac_objext \
8645219820Sjeff      conftest$ac_exeext conftest.$ac_ext
8646219820Sjefffi
8647219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8648219820Sjeffecho "${ECHO_T}$ac_cv_func_shl_load" >&6
8649219820Sjeffif test $ac_cv_func_shl_load = yes; then
8650219820Sjeff  lt_cv_dlopen="shl_load"
8651219820Sjeffelse
8652219820Sjeff  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8653219820Sjeffecho $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8654219820Sjeffif test "${ac_cv_lib_dld_shl_load+set}" = set; then
8655219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
8656219820Sjeffelse
8657219820Sjeff  ac_check_lib_save_LIBS=$LIBS
8658219820SjeffLIBS="-ldld  $LIBS"
8659219820Sjeffcat >conftest.$ac_ext <<_ACEOF
8660219820Sjeff/* confdefs.h.  */
8661219820Sjeff_ACEOF
8662219820Sjeffcat confdefs.h >>conftest.$ac_ext
8663219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
8664219820Sjeff/* end confdefs.h.  */
8665219820Sjeff
8666219820Sjeff/* Override any gcc2 internal prototype to avoid an error.  */
8667219820Sjeff#ifdef __cplusplus
8668219820Sjeffextern "C"
8669219820Sjeff#endif
8670219820Sjeff/* We use char because int might match the return type of a gcc2
8671219820Sjeff   builtin and then its argument prototype would still apply.  */
8672219820Sjeffchar shl_load ();
8673219820Sjeffint
8674219820Sjeffmain ()
8675219820Sjeff{
8676219820Sjeffshl_load ();
8677219820Sjeff  ;
8678219820Sjeff  return 0;
8679219820Sjeff}
8680219820Sjeff_ACEOF
8681219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
8682219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683219820Sjeff  (eval $ac_link) 2>conftest.er1
8684219820Sjeff  ac_status=$?
8685219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
8686219820Sjeff  rm -f conftest.er1
8687219820Sjeff  cat conftest.err >&5
8688219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689219820Sjeff  (exit $ac_status); } &&
8690219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8691219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692219820Sjeff  (eval $ac_try) 2>&5
8693219820Sjeff  ac_status=$?
8694219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695219820Sjeff  (exit $ac_status); }; } &&
8696219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
8697219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698219820Sjeff  (eval $ac_try) 2>&5
8699219820Sjeff  ac_status=$?
8700219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701219820Sjeff  (exit $ac_status); }; }; then
8702219820Sjeff  ac_cv_lib_dld_shl_load=yes
8703219820Sjeffelse
8704219820Sjeff  echo "$as_me: failed program was:" >&5
8705219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
8706219820Sjeff
8707219820Sjeffac_cv_lib_dld_shl_load=no
8708219820Sjefffi
8709219820Sjeffrm -f conftest.err conftest.$ac_objext \
8710219820Sjeff      conftest$ac_exeext conftest.$ac_ext
8711219820SjeffLIBS=$ac_check_lib_save_LIBS
8712219820Sjefffi
8713219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8714219820Sjeffecho "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8715219820Sjeffif test $ac_cv_lib_dld_shl_load = yes; then
8716219820Sjeff  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8717219820Sjeffelse
8718219820Sjeff  echo "$as_me:$LINENO: checking for dlopen" >&5
8719219820Sjeffecho $ECHO_N "checking for dlopen... $ECHO_C" >&6
8720219820Sjeffif test "${ac_cv_func_dlopen+set}" = set; then
8721219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
8722219820Sjeffelse
8723219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
8724219820Sjeff/* confdefs.h.  */
8725219820Sjeff_ACEOF
8726219820Sjeffcat confdefs.h >>conftest.$ac_ext
8727219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
8728219820Sjeff/* end confdefs.h.  */
8729219820Sjeff/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8730219820Sjeff   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8731219820Sjeff#define dlopen innocuous_dlopen
8732219820Sjeff
8733219820Sjeff/* System header to define __stub macros and hopefully few prototypes,
8734219820Sjeff    which can conflict with char dlopen (); below.
8735219820Sjeff    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8736219820Sjeff    <limits.h> exists even on freestanding compilers.  */
8737219820Sjeff
8738219820Sjeff#ifdef __STDC__
8739219820Sjeff# include <limits.h>
8740219820Sjeff#else
8741219820Sjeff# include <assert.h>
8742219820Sjeff#endif
8743219820Sjeff
8744219820Sjeff#undef dlopen
8745219820Sjeff
8746219820Sjeff/* Override any gcc2 internal prototype to avoid an error.  */
8747219820Sjeff#ifdef __cplusplus
8748219820Sjeffextern "C"
8749219820Sjeff{
8750219820Sjeff#endif
8751219820Sjeff/* We use char because int might match the return type of a gcc2
8752219820Sjeff   builtin and then its argument prototype would still apply.  */
8753219820Sjeffchar dlopen ();
8754219820Sjeff/* The GNU C library defines this for functions which it implements
8755219820Sjeff    to always fail with ENOSYS.  Some functions are actually named
8756219820Sjeff    something starting with __ and the normal name is an alias.  */
8757219820Sjeff#if defined (__stub_dlopen) || defined (__stub___dlopen)
8758219820Sjeffchoke me
8759219820Sjeff#else
8760219820Sjeffchar (*f) () = dlopen;
8761219820Sjeff#endif
8762219820Sjeff#ifdef __cplusplus
8763219820Sjeff}
8764219820Sjeff#endif
8765219820Sjeff
8766219820Sjeffint
8767219820Sjeffmain ()
8768219820Sjeff{
8769219820Sjeffreturn f != dlopen;
8770219820Sjeff  ;
8771219820Sjeff  return 0;
8772219820Sjeff}
8773219820Sjeff_ACEOF
8774219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
8775219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776219820Sjeff  (eval $ac_link) 2>conftest.er1
8777219820Sjeff  ac_status=$?
8778219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
8779219820Sjeff  rm -f conftest.er1
8780219820Sjeff  cat conftest.err >&5
8781219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782219820Sjeff  (exit $ac_status); } &&
8783219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8784219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785219820Sjeff  (eval $ac_try) 2>&5
8786219820Sjeff  ac_status=$?
8787219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788219820Sjeff  (exit $ac_status); }; } &&
8789219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
8790219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791219820Sjeff  (eval $ac_try) 2>&5
8792219820Sjeff  ac_status=$?
8793219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794219820Sjeff  (exit $ac_status); }; }; then
8795219820Sjeff  ac_cv_func_dlopen=yes
8796219820Sjeffelse
8797219820Sjeff  echo "$as_me: failed program was:" >&5
8798219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
8799219820Sjeff
8800219820Sjeffac_cv_func_dlopen=no
8801219820Sjefffi
8802219820Sjeffrm -f conftest.err conftest.$ac_objext \
8803219820Sjeff      conftest$ac_exeext conftest.$ac_ext
8804219820Sjefffi
8805219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8806219820Sjeffecho "${ECHO_T}$ac_cv_func_dlopen" >&6
8807219820Sjeffif test $ac_cv_func_dlopen = yes; then
8808219820Sjeff  lt_cv_dlopen="dlopen"
8809219820Sjeffelse
8810219820Sjeff  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8811219820Sjeffecho $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8812219820Sjeffif test "${ac_cv_lib_dl_dlopen+set}" = set; then
8813219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
8814219820Sjeffelse
8815219820Sjeff  ac_check_lib_save_LIBS=$LIBS
8816219820SjeffLIBS="-ldl  $LIBS"
8817219820Sjeffcat >conftest.$ac_ext <<_ACEOF
8818219820Sjeff/* confdefs.h.  */
8819219820Sjeff_ACEOF
8820219820Sjeffcat confdefs.h >>conftest.$ac_ext
8821219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
8822219820Sjeff/* end confdefs.h.  */
8823219820Sjeff
8824219820Sjeff/* Override any gcc2 internal prototype to avoid an error.  */
8825219820Sjeff#ifdef __cplusplus
8826219820Sjeffextern "C"
8827219820Sjeff#endif
8828219820Sjeff/* We use char because int might match the return type of a gcc2
8829219820Sjeff   builtin and then its argument prototype would still apply.  */
8830219820Sjeffchar dlopen ();
8831219820Sjeffint
8832219820Sjeffmain ()
8833219820Sjeff{
8834219820Sjeffdlopen ();
8835219820Sjeff  ;
8836219820Sjeff  return 0;
8837219820Sjeff}
8838219820Sjeff_ACEOF
8839219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
8840219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841219820Sjeff  (eval $ac_link) 2>conftest.er1
8842219820Sjeff  ac_status=$?
8843219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
8844219820Sjeff  rm -f conftest.er1
8845219820Sjeff  cat conftest.err >&5
8846219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847219820Sjeff  (exit $ac_status); } &&
8848219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8849219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850219820Sjeff  (eval $ac_try) 2>&5
8851219820Sjeff  ac_status=$?
8852219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853219820Sjeff  (exit $ac_status); }; } &&
8854219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
8855219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856219820Sjeff  (eval $ac_try) 2>&5
8857219820Sjeff  ac_status=$?
8858219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859219820Sjeff  (exit $ac_status); }; }; then
8860219820Sjeff  ac_cv_lib_dl_dlopen=yes
8861219820Sjeffelse
8862219820Sjeff  echo "$as_me: failed program was:" >&5
8863219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
8864219820Sjeff
8865219820Sjeffac_cv_lib_dl_dlopen=no
8866219820Sjefffi
8867219820Sjeffrm -f conftest.err conftest.$ac_objext \
8868219820Sjeff      conftest$ac_exeext conftest.$ac_ext
8869219820SjeffLIBS=$ac_check_lib_save_LIBS
8870219820Sjefffi
8871219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8872219820Sjeffecho "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8873219820Sjeffif test $ac_cv_lib_dl_dlopen = yes; then
8874219820Sjeff  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8875219820Sjeffelse
8876219820Sjeff  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8877219820Sjeffecho $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8878219820Sjeffif test "${ac_cv_lib_svld_dlopen+set}" = set; then
8879219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
8880219820Sjeffelse
8881219820Sjeff  ac_check_lib_save_LIBS=$LIBS
8882219820SjeffLIBS="-lsvld  $LIBS"
8883219820Sjeffcat >conftest.$ac_ext <<_ACEOF
8884219820Sjeff/* confdefs.h.  */
8885219820Sjeff_ACEOF
8886219820Sjeffcat confdefs.h >>conftest.$ac_ext
8887219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
8888219820Sjeff/* end confdefs.h.  */
8889219820Sjeff
8890219820Sjeff/* Override any gcc2 internal prototype to avoid an error.  */
8891219820Sjeff#ifdef __cplusplus
8892219820Sjeffextern "C"
8893219820Sjeff#endif
8894219820Sjeff/* We use char because int might match the return type of a gcc2
8895219820Sjeff   builtin and then its argument prototype would still apply.  */
8896219820Sjeffchar dlopen ();
8897219820Sjeffint
8898219820Sjeffmain ()
8899219820Sjeff{
8900219820Sjeffdlopen ();
8901219820Sjeff  ;
8902219820Sjeff  return 0;
8903219820Sjeff}
8904219820Sjeff_ACEOF
8905219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
8906219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907219820Sjeff  (eval $ac_link) 2>conftest.er1
8908219820Sjeff  ac_status=$?
8909219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
8910219820Sjeff  rm -f conftest.er1
8911219820Sjeff  cat conftest.err >&5
8912219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913219820Sjeff  (exit $ac_status); } &&
8914219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8915219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916219820Sjeff  (eval $ac_try) 2>&5
8917219820Sjeff  ac_status=$?
8918219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919219820Sjeff  (exit $ac_status); }; } &&
8920219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
8921219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922219820Sjeff  (eval $ac_try) 2>&5
8923219820Sjeff  ac_status=$?
8924219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925219820Sjeff  (exit $ac_status); }; }; then
8926219820Sjeff  ac_cv_lib_svld_dlopen=yes
8927219820Sjeffelse
8928219820Sjeff  echo "$as_me: failed program was:" >&5
8929219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
8930219820Sjeff
8931219820Sjeffac_cv_lib_svld_dlopen=no
8932219820Sjefffi
8933219820Sjeffrm -f conftest.err conftest.$ac_objext \
8934219820Sjeff      conftest$ac_exeext conftest.$ac_ext
8935219820SjeffLIBS=$ac_check_lib_save_LIBS
8936219820Sjefffi
8937219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8938219820Sjeffecho "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8939219820Sjeffif test $ac_cv_lib_svld_dlopen = yes; then
8940219820Sjeff  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8941219820Sjeffelse
8942219820Sjeff  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8943219820Sjeffecho $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8944219820Sjeffif test "${ac_cv_lib_dld_dld_link+set}" = set; then
8945219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
8946219820Sjeffelse
8947219820Sjeff  ac_check_lib_save_LIBS=$LIBS
8948219820SjeffLIBS="-ldld  $LIBS"
8949219820Sjeffcat >conftest.$ac_ext <<_ACEOF
8950219820Sjeff/* confdefs.h.  */
8951219820Sjeff_ACEOF
8952219820Sjeffcat confdefs.h >>conftest.$ac_ext
8953219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
8954219820Sjeff/* end confdefs.h.  */
8955219820Sjeff
8956219820Sjeff/* Override any gcc2 internal prototype to avoid an error.  */
8957219820Sjeff#ifdef __cplusplus
8958219820Sjeffextern "C"
8959219820Sjeff#endif
8960219820Sjeff/* We use char because int might match the return type of a gcc2
8961219820Sjeff   builtin and then its argument prototype would still apply.  */
8962219820Sjeffchar dld_link ();
8963219820Sjeffint
8964219820Sjeffmain ()
8965219820Sjeff{
8966219820Sjeffdld_link ();
8967219820Sjeff  ;
8968219820Sjeff  return 0;
8969219820Sjeff}
8970219820Sjeff_ACEOF
8971219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
8972219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973219820Sjeff  (eval $ac_link) 2>conftest.er1
8974219820Sjeff  ac_status=$?
8975219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
8976219820Sjeff  rm -f conftest.er1
8977219820Sjeff  cat conftest.err >&5
8978219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979219820Sjeff  (exit $ac_status); } &&
8980219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8981219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982219820Sjeff  (eval $ac_try) 2>&5
8983219820Sjeff  ac_status=$?
8984219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985219820Sjeff  (exit $ac_status); }; } &&
8986219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
8987219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988219820Sjeff  (eval $ac_try) 2>&5
8989219820Sjeff  ac_status=$?
8990219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991219820Sjeff  (exit $ac_status); }; }; then
8992219820Sjeff  ac_cv_lib_dld_dld_link=yes
8993219820Sjeffelse
8994219820Sjeff  echo "$as_me: failed program was:" >&5
8995219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
8996219820Sjeff
8997219820Sjeffac_cv_lib_dld_dld_link=no
8998219820Sjefffi
8999219820Sjeffrm -f conftest.err conftest.$ac_objext \
9000219820Sjeff      conftest$ac_exeext conftest.$ac_ext
9001219820SjeffLIBS=$ac_check_lib_save_LIBS
9002219820Sjefffi
9003219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9004219820Sjeffecho "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9005219820Sjeffif test $ac_cv_lib_dld_dld_link = yes; then
9006219820Sjeff  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9007219820Sjefffi
9008219820Sjeff
9009219820Sjeff
9010219820Sjefffi
9011219820Sjeff
9012219820Sjeff
9013219820Sjefffi
9014219820Sjeff
9015219820Sjeff
9016219820Sjefffi
9017219820Sjeff
9018219820Sjeff
9019219820Sjefffi
9020219820Sjeff
9021219820Sjeff
9022219820Sjefffi
9023219820Sjeff
9024219820Sjeff    ;;
9025219820Sjeff  esac
9026219820Sjeff
9027219820Sjeff  if test "x$lt_cv_dlopen" != xno; then
9028219820Sjeff    enable_dlopen=yes
9029219820Sjeff  else
9030219820Sjeff    enable_dlopen=no
9031219820Sjeff  fi
9032219820Sjeff
9033219820Sjeff  case $lt_cv_dlopen in
9034219820Sjeff  dlopen)
9035219820Sjeff    save_CPPFLAGS="$CPPFLAGS"
9036219820Sjeff    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9037219820Sjeff
9038219820Sjeff    save_LDFLAGS="$LDFLAGS"
9039219820Sjeff    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9040219820Sjeff
9041219820Sjeff    save_LIBS="$LIBS"
9042219820Sjeff    LIBS="$lt_cv_dlopen_libs $LIBS"
9043219820Sjeff
9044219820Sjeff    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9045219820Sjeffecho $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9046219820Sjeffif test "${lt_cv_dlopen_self+set}" = set; then
9047219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
9048219820Sjeffelse
9049219820Sjeff  	  if test "$cross_compiling" = yes; then :
9050219820Sjeff  lt_cv_dlopen_self=cross
9051219820Sjeffelse
9052219820Sjeff  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9053219820Sjeff  lt_status=$lt_dlunknown
9054219820Sjeff  cat > conftest.$ac_ext <<EOF
9055219820Sjeff#line 9055 "configure"
9056219820Sjeff#include "confdefs.h"
9057219820Sjeff
9058219820Sjeff#if HAVE_DLFCN_H
9059219820Sjeff#include <dlfcn.h>
9060219820Sjeff#endif
9061219820Sjeff
9062219820Sjeff#include <stdio.h>
9063219820Sjeff
9064219820Sjeff#ifdef RTLD_GLOBAL
9065219820Sjeff#  define LT_DLGLOBAL		RTLD_GLOBAL
9066219820Sjeff#else
9067219820Sjeff#  ifdef DL_GLOBAL
9068219820Sjeff#    define LT_DLGLOBAL		DL_GLOBAL
9069219820Sjeff#  else
9070219820Sjeff#    define LT_DLGLOBAL		0
9071219820Sjeff#  endif
9072219820Sjeff#endif
9073219820Sjeff
9074219820Sjeff/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9075219820Sjeff   find out it does not work in some platform. */
9076219820Sjeff#ifndef LT_DLLAZY_OR_NOW
9077219820Sjeff#  ifdef RTLD_LAZY
9078219820Sjeff#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9079219820Sjeff#  else
9080219820Sjeff#    ifdef DL_LAZY
9081219820Sjeff#      define LT_DLLAZY_OR_NOW		DL_LAZY
9082219820Sjeff#    else
9083219820Sjeff#      ifdef RTLD_NOW
9084219820Sjeff#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9085219820Sjeff#      else
9086219820Sjeff#        ifdef DL_NOW
9087219820Sjeff#          define LT_DLLAZY_OR_NOW	DL_NOW
9088219820Sjeff#        else
9089219820Sjeff#          define LT_DLLAZY_OR_NOW	0
9090219820Sjeff#        endif
9091219820Sjeff#      endif
9092219820Sjeff#    endif
9093219820Sjeff#  endif
9094219820Sjeff#endif
9095219820Sjeff
9096219820Sjeff#ifdef __cplusplus
9097219820Sjeffextern "C" void exit (int);
9098219820Sjeff#endif
9099219820Sjeff
9100219820Sjeffvoid fnord() { int i=42;}
9101219820Sjeffint main ()
9102219820Sjeff{
9103219820Sjeff  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9104219820Sjeff  int status = $lt_dlunknown;
9105219820Sjeff
9106219820Sjeff  if (self)
9107219820Sjeff    {
9108219820Sjeff      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9109219820Sjeff      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9110219820Sjeff      /* dlclose (self); */
9111219820Sjeff    }
9112219820Sjeff  else
9113219820Sjeff    puts (dlerror ());
9114219820Sjeff
9115219820Sjeff    exit (status);
9116219820Sjeff}
9117219820SjeffEOF
9118219820Sjeff  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119219820Sjeff  (eval $ac_link) 2>&5
9120219820Sjeff  ac_status=$?
9121219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122219820Sjeff  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9123219820Sjeff    (./conftest; exit; ) >&5 2>/dev/null
9124219820Sjeff    lt_status=$?
9125219820Sjeff    case x$lt_status in
9126219820Sjeff      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9127219820Sjeff      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9128219820Sjeff      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9129219820Sjeff    esac
9130219820Sjeff  else :
9131219820Sjeff    # compilation failed
9132219820Sjeff    lt_cv_dlopen_self=no
9133219820Sjeff  fi
9134219820Sjefffi
9135219820Sjeffrm -fr conftest*
9136219820Sjeff
9137219820Sjeff
9138219820Sjefffi
9139219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9140219820Sjeffecho "${ECHO_T}$lt_cv_dlopen_self" >&6
9141219820Sjeff
9142219820Sjeff    if test "x$lt_cv_dlopen_self" = xyes; then
9143219820Sjeff      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9144219820Sjeff      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9145219820Sjeffecho $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9146219820Sjeffif test "${lt_cv_dlopen_self_static+set}" = set; then
9147219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
9148219820Sjeffelse
9149219820Sjeff  	  if test "$cross_compiling" = yes; then :
9150219820Sjeff  lt_cv_dlopen_self_static=cross
9151219820Sjeffelse
9152219820Sjeff  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9153219820Sjeff  lt_status=$lt_dlunknown
9154219820Sjeff  cat > conftest.$ac_ext <<EOF
9155219820Sjeff#line 9155 "configure"
9156219820Sjeff#include "confdefs.h"
9157219820Sjeff
9158219820Sjeff#if HAVE_DLFCN_H
9159219820Sjeff#include <dlfcn.h>
9160219820Sjeff#endif
9161219820Sjeff
9162219820Sjeff#include <stdio.h>
9163219820Sjeff
9164219820Sjeff#ifdef RTLD_GLOBAL
9165219820Sjeff#  define LT_DLGLOBAL		RTLD_GLOBAL
9166219820Sjeff#else
9167219820Sjeff#  ifdef DL_GLOBAL
9168219820Sjeff#    define LT_DLGLOBAL		DL_GLOBAL
9169219820Sjeff#  else
9170219820Sjeff#    define LT_DLGLOBAL		0
9171219820Sjeff#  endif
9172219820Sjeff#endif
9173219820Sjeff
9174219820Sjeff/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9175219820Sjeff   find out it does not work in some platform. */
9176219820Sjeff#ifndef LT_DLLAZY_OR_NOW
9177219820Sjeff#  ifdef RTLD_LAZY
9178219820Sjeff#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9179219820Sjeff#  else
9180219820Sjeff#    ifdef DL_LAZY
9181219820Sjeff#      define LT_DLLAZY_OR_NOW		DL_LAZY
9182219820Sjeff#    else
9183219820Sjeff#      ifdef RTLD_NOW
9184219820Sjeff#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9185219820Sjeff#      else
9186219820Sjeff#        ifdef DL_NOW
9187219820Sjeff#          define LT_DLLAZY_OR_NOW	DL_NOW
9188219820Sjeff#        else
9189219820Sjeff#          define LT_DLLAZY_OR_NOW	0
9190219820Sjeff#        endif
9191219820Sjeff#      endif
9192219820Sjeff#    endif
9193219820Sjeff#  endif
9194219820Sjeff#endif
9195219820Sjeff
9196219820Sjeff#ifdef __cplusplus
9197219820Sjeffextern "C" void exit (int);
9198219820Sjeff#endif
9199219820Sjeff
9200219820Sjeffvoid fnord() { int i=42;}
9201219820Sjeffint main ()
9202219820Sjeff{
9203219820Sjeff  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9204219820Sjeff  int status = $lt_dlunknown;
9205219820Sjeff
9206219820Sjeff  if (self)
9207219820Sjeff    {
9208219820Sjeff      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9209219820Sjeff      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9210219820Sjeff      /* dlclose (self); */
9211219820Sjeff    }
9212219820Sjeff  else
9213219820Sjeff    puts (dlerror ());
9214219820Sjeff
9215219820Sjeff    exit (status);
9216219820Sjeff}
9217219820SjeffEOF
9218219820Sjeff  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219219820Sjeff  (eval $ac_link) 2>&5
9220219820Sjeff  ac_status=$?
9221219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222219820Sjeff  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9223219820Sjeff    (./conftest; exit; ) >&5 2>/dev/null
9224219820Sjeff    lt_status=$?
9225219820Sjeff    case x$lt_status in
9226219820Sjeff      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9227219820Sjeff      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9228219820Sjeff      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9229219820Sjeff    esac
9230219820Sjeff  else :
9231219820Sjeff    # compilation failed
9232219820Sjeff    lt_cv_dlopen_self_static=no
9233219820Sjeff  fi
9234219820Sjefffi
9235219820Sjeffrm -fr conftest*
9236219820Sjeff
9237219820Sjeff
9238219820Sjefffi
9239219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9240219820Sjeffecho "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9241219820Sjeff    fi
9242219820Sjeff
9243219820Sjeff    CPPFLAGS="$save_CPPFLAGS"
9244219820Sjeff    LDFLAGS="$save_LDFLAGS"
9245219820Sjeff    LIBS="$save_LIBS"
9246219820Sjeff    ;;
9247219820Sjeff  esac
9248219820Sjeff
9249219820Sjeff  case $lt_cv_dlopen_self in
9250219820Sjeff  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9251219820Sjeff  *) enable_dlopen_self=unknown ;;
9252219820Sjeff  esac
9253219820Sjeff
9254219820Sjeff  case $lt_cv_dlopen_self_static in
9255219820Sjeff  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9256219820Sjeff  *) enable_dlopen_self_static=unknown ;;
9257219820Sjeff  esac
9258219820Sjefffi
9259219820Sjeff
9260219820Sjeff
9261219820Sjeff# Report which library types will actually be built
9262219820Sjeffecho "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9263219820Sjeffecho $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9264219820Sjeffecho "$as_me:$LINENO: result: $can_build_shared" >&5
9265219820Sjeffecho "${ECHO_T}$can_build_shared" >&6
9266219820Sjeff
9267219820Sjeffecho "$as_me:$LINENO: checking whether to build shared libraries" >&5
9268219820Sjeffecho $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9269219820Sjefftest "$can_build_shared" = "no" && enable_shared=no
9270219820Sjeff
9271219820Sjeff# On AIX, shared libraries and static libraries use the same namespace, and
9272219820Sjeff# are all built from PIC.
9273219820Sjeffcase $host_os in
9274219820Sjeffaix3*)
9275219820Sjeff  test "$enable_shared" = yes && enable_static=no
9276219820Sjeff  if test -n "$RANLIB"; then
9277219820Sjeff    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9278219820Sjeff    postinstall_cmds='$RANLIB $lib'
9279219820Sjeff  fi
9280219820Sjeff  ;;
9281219820Sjeff
9282219820Sjeffaix4* | aix5*)
9283219820Sjeff  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9284219820Sjeff    test "$enable_shared" = yes && enable_static=no
9285219820Sjeff  fi
9286219820Sjeff    ;;
9287219820Sjeffesac
9288219820Sjeffecho "$as_me:$LINENO: result: $enable_shared" >&5
9289219820Sjeffecho "${ECHO_T}$enable_shared" >&6
9290219820Sjeff
9291219820Sjeffecho "$as_me:$LINENO: checking whether to build static libraries" >&5
9292219820Sjeffecho $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9293219820Sjeff# Make sure either enable_shared or enable_static is yes.
9294219820Sjefftest "$enable_shared" = yes || enable_static=yes
9295219820Sjeffecho "$as_me:$LINENO: result: $enable_static" >&5
9296219820Sjeffecho "${ECHO_T}$enable_static" >&6
9297219820Sjeff
9298219820Sjeff# The else clause should only fire when bootstrapping the
9299219820Sjeff# libtool distribution, otherwise you forgot to ship ltmain.sh
9300219820Sjeff# with your package, and you will get complaints that there are
9301219820Sjeff# no rules to generate ltmain.sh.
9302219820Sjeffif test -f "$ltmain"; then
9303219820Sjeff  # See if we are running on zsh, and set the options which allow our commands through
9304219820Sjeff  # without removal of \ escapes.
9305219820Sjeff  if test -n "${ZSH_VERSION+set}" ; then
9306219820Sjeff    setopt NO_GLOB_SUBST
9307219820Sjeff  fi
9308219820Sjeff  # Now quote all the things that may contain metacharacters while being
9309219820Sjeff  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9310219820Sjeff  # variables and quote the copies for generation of the libtool script.
9311219820Sjeff  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9312219820Sjeff    SED SHELL STRIP \
9313219820Sjeff    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9314219820Sjeff    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9315219820Sjeff    deplibs_check_method reload_flag reload_cmds need_locks \
9316219820Sjeff    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9317219820Sjeff    lt_cv_sys_global_symbol_to_c_name_address \
9318219820Sjeff    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9319219820Sjeff    old_postinstall_cmds old_postuninstall_cmds \
9320219820Sjeff    compiler \
9321219820Sjeff    CC \
9322219820Sjeff    LD \
9323219820Sjeff    lt_prog_compiler_wl \
9324219820Sjeff    lt_prog_compiler_pic \
9325219820Sjeff    lt_prog_compiler_static \
9326219820Sjeff    lt_prog_compiler_no_builtin_flag \
9327219820Sjeff    export_dynamic_flag_spec \
9328219820Sjeff    thread_safe_flag_spec \
9329219820Sjeff    whole_archive_flag_spec \
9330219820Sjeff    enable_shared_with_static_runtimes \
9331219820Sjeff    old_archive_cmds \
9332219820Sjeff    old_archive_from_new_cmds \
9333219820Sjeff    predep_objects \
9334219820Sjeff    postdep_objects \
9335219820Sjeff    predeps \
9336219820Sjeff    postdeps \
9337219820Sjeff    compiler_lib_search_path \
9338219820Sjeff    archive_cmds \
9339219820Sjeff    archive_expsym_cmds \
9340219820Sjeff    postinstall_cmds \
9341219820Sjeff    postuninstall_cmds \
9342219820Sjeff    old_archive_from_expsyms_cmds \
9343219820Sjeff    allow_undefined_flag \
9344219820Sjeff    no_undefined_flag \
9345219820Sjeff    export_symbols_cmds \
9346219820Sjeff    hardcode_libdir_flag_spec \
9347219820Sjeff    hardcode_libdir_flag_spec_ld \
9348219820Sjeff    hardcode_libdir_separator \
9349219820Sjeff    hardcode_automatic \
9350219820Sjeff    module_cmds \
9351219820Sjeff    module_expsym_cmds \
9352219820Sjeff    lt_cv_prog_compiler_c_o \
9353219820Sjeff    exclude_expsyms \
9354219820Sjeff    include_expsyms; do
9355219820Sjeff
9356219820Sjeff    case $var in
9357219820Sjeff    old_archive_cmds | \
9358219820Sjeff    old_archive_from_new_cmds | \
9359219820Sjeff    archive_cmds | \
9360219820Sjeff    archive_expsym_cmds | \
9361219820Sjeff    module_cmds | \
9362219820Sjeff    module_expsym_cmds | \
9363219820Sjeff    old_archive_from_expsyms_cmds | \
9364219820Sjeff    export_symbols_cmds | \
9365219820Sjeff    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9366219820Sjeff    postinstall_cmds | postuninstall_cmds | \
9367219820Sjeff    old_postinstall_cmds | old_postuninstall_cmds | \
9368219820Sjeff    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9369219820Sjeff      # Double-quote double-evaled strings.
9370219820Sjeff      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9371219820Sjeff      ;;
9372219820Sjeff    *)
9373219820Sjeff      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9374219820Sjeff      ;;
9375219820Sjeff    esac
9376219820Sjeff  done
9377219820Sjeff
9378219820Sjeff  case $lt_echo in
9379219820Sjeff  *'\$0 --fallback-echo"')
9380219820Sjeff    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9381219820Sjeff    ;;
9382219820Sjeff  esac
9383219820Sjeff
9384219820Sjeffcfgfile="${ofile}T"
9385219820Sjeff  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9386219820Sjeff  $rm -f "$cfgfile"
9387219820Sjeff  { echo "$as_me:$LINENO: creating $ofile" >&5
9388219820Sjeffecho "$as_me: creating $ofile" >&6;}
9389219820Sjeff
9390219820Sjeff  cat <<__EOF__ >> "$cfgfile"
9391219820Sjeff#! $SHELL
9392219820Sjeff
9393219820Sjeff# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9394219820Sjeff# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9395219820Sjeff# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9396219820Sjeff#
9397219820Sjeff# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9398219820Sjeff# Free Software Foundation, Inc.
9399219820Sjeff#
9400219820Sjeff# This file is part of GNU Libtool:
9401219820Sjeff# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9402219820Sjeff#
9403219820Sjeff# This program is free software; you can redistribute it and/or modify
9404219820Sjeff# it under the terms of the GNU General Public License as published by
9405219820Sjeff# the Free Software Foundation; either version 2 of the License, or
9406219820Sjeff# (at your option) any later version.
9407219820Sjeff#
9408219820Sjeff# This program is distributed in the hope that it will be useful, but
9409219820Sjeff# WITHOUT ANY WARRANTY; without even the implied warranty of
9410219820Sjeff# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9411219820Sjeff# General Public License for more details.
9412219820Sjeff#
9413219820Sjeff# You should have received a copy of the GNU General Public License
9414219820Sjeff# along with this program; if not, write to the Free Software
9415219820Sjeff# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9416219820Sjeff#
9417219820Sjeff# As a special exception to the GNU General Public License, if you
9418219820Sjeff# distribute this file as part of a program that contains a
9419219820Sjeff# configuration script generated by Autoconf, you may include it under
9420219820Sjeff# the same distribution terms that you use for the rest of that program.
9421219820Sjeff
9422219820Sjeff# A sed program that does not truncate output.
9423219820SjeffSED=$lt_SED
9424219820Sjeff
9425219820Sjeff# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9426219820SjeffXsed="$SED -e 1s/^X//"
9427219820Sjeff
9428219820Sjeff# The HP-UX ksh and POSIX shell print the target directory to stdout
9429219820Sjeff# if CDPATH is set.
9430219820Sjeff(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9431219820Sjeff
9432219820Sjeff# The names of the tagged configurations supported by this script.
9433219820Sjeffavailable_tags=
9434219820Sjeff
9435219820Sjeff# ### BEGIN LIBTOOL CONFIG
9436219820Sjeff
9437219820Sjeff# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9438219820Sjeff
9439219820Sjeff# Shell to use when invoking shell scripts.
9440219820SjeffSHELL=$lt_SHELL
9441219820Sjeff
9442219820Sjeff# Whether or not to build shared libraries.
9443219820Sjeffbuild_libtool_libs=$enable_shared
9444219820Sjeff
9445219820Sjeff# Whether or not to build static libraries.
9446219820Sjeffbuild_old_libs=$enable_static
9447219820Sjeff
9448219820Sjeff# Whether or not to add -lc for building shared libraries.
9449219820Sjeffbuild_libtool_need_lc=$archive_cmds_need_lc
9450219820Sjeff
9451219820Sjeff# Whether or not to disallow shared libs when runtime libs are static
9452219820Sjeffallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9453219820Sjeff
9454219820Sjeff# Whether or not to optimize for fast installation.
9455219820Sjefffast_install=$enable_fast_install
9456219820Sjeff
9457219820Sjeff# The host system.
9458219820Sjeffhost_alias=$host_alias
9459219820Sjeffhost=$host
9460219820Sjeffhost_os=$host_os
9461219820Sjeff
9462219820Sjeff# The build system.
9463219820Sjeffbuild_alias=$build_alias
9464219820Sjeffbuild=$build
9465219820Sjeffbuild_os=$build_os
9466219820Sjeff
9467219820Sjeff# An echo program that does not interpret backslashes.
9468219820Sjeffecho=$lt_echo
9469219820Sjeff
9470219820Sjeff# The archiver.
9471219820SjeffAR=$lt_AR
9472219820SjeffAR_FLAGS=$lt_AR_FLAGS
9473219820Sjeff
9474219820Sjeff# A C compiler.
9475219820SjeffLTCC=$lt_LTCC
9476219820Sjeff
9477219820Sjeff# LTCC compiler flags.
9478219820SjeffLTCFLAGS=$lt_LTCFLAGS
9479219820Sjeff
9480219820Sjeff# A language-specific compiler.
9481219820SjeffCC=$lt_compiler
9482219820Sjeff
9483219820Sjeff# Is the compiler the GNU C compiler?
9484219820Sjeffwith_gcc=$GCC
9485219820Sjeff
9486219820Sjeff# An ERE matcher.
9487219820SjeffEGREP=$lt_EGREP
9488219820Sjeff
9489219820Sjeff# The linker used to build libraries.
9490219820SjeffLD=$lt_LD
9491219820Sjeff
9492219820Sjeff# Whether we need hard or soft links.
9493219820SjeffLN_S=$lt_LN_S
9494219820Sjeff
9495219820Sjeff# A BSD-compatible nm program.
9496219820SjeffNM=$lt_NM
9497219820Sjeff
9498219820Sjeff# A symbol stripping program
9499219820SjeffSTRIP=$lt_STRIP
9500219820Sjeff
9501219820Sjeff# Used to examine libraries when file_magic_cmd begins "file"
9502219820SjeffMAGIC_CMD=$MAGIC_CMD
9503219820Sjeff
9504219820Sjeff# Used on cygwin: DLL creation program.
9505219820SjeffDLLTOOL="$DLLTOOL"
9506219820Sjeff
9507219820Sjeff# Used on cygwin: object dumper.
9508219820SjeffOBJDUMP="$OBJDUMP"
9509219820Sjeff
9510219820Sjeff# Used on cygwin: assembler.
9511219820SjeffAS="$AS"
9512219820Sjeff
9513219820Sjeff# The name of the directory that contains temporary libtool files.
9514219820Sjeffobjdir=$objdir
9515219820Sjeff
9516219820Sjeff# How to create reloadable object files.
9517219820Sjeffreload_flag=$lt_reload_flag
9518219820Sjeffreload_cmds=$lt_reload_cmds
9519219820Sjeff
9520219820Sjeff# How to pass a linker flag through the compiler.
9521219820Sjeffwl=$lt_lt_prog_compiler_wl
9522219820Sjeff
9523219820Sjeff# Object file suffix (normally "o").
9524219820Sjeffobjext="$ac_objext"
9525219820Sjeff
9526219820Sjeff# Old archive suffix (normally "a").
9527219820Sjefflibext="$libext"
9528219820Sjeff
9529219820Sjeff# Shared library suffix (normally ".so").
9530219820Sjeffshrext_cmds='$shrext_cmds'
9531219820Sjeff
9532219820Sjeff# Executable file suffix (normally "").
9533219820Sjeffexeext="$exeext"
9534219820Sjeff
9535219820Sjeff# Additional compiler flags for building library objects.
9536219820Sjeffpic_flag=$lt_lt_prog_compiler_pic
9537219820Sjeffpic_mode=$pic_mode
9538219820Sjeff
9539219820Sjeff# What is the maximum length of a command?
9540219820Sjeffmax_cmd_len=$lt_cv_sys_max_cmd_len
9541219820Sjeff
9542219820Sjeff# Does compiler simultaneously support -c and -o options?
9543219820Sjeffcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
9544219820Sjeff
9545219820Sjeff# Must we lock files when doing compilation?
9546219820Sjeffneed_locks=$lt_need_locks
9547219820Sjeff
9548219820Sjeff# Do we need the lib prefix for modules?
9549219820Sjeffneed_lib_prefix=$need_lib_prefix
9550219820Sjeff
9551219820Sjeff# Do we need a version for libraries?
9552219820Sjeffneed_version=$need_version
9553219820Sjeff
9554219820Sjeff# Whether dlopen is supported.
9555219820Sjeffdlopen_support=$enable_dlopen
9556219820Sjeff
9557219820Sjeff# Whether dlopen of programs is supported.
9558219820Sjeffdlopen_self=$enable_dlopen_self
9559219820Sjeff
9560219820Sjeff# Whether dlopen of statically linked programs is supported.
9561219820Sjeffdlopen_self_static=$enable_dlopen_self_static
9562219820Sjeff
9563219820Sjeff# Compiler flag to prevent dynamic linking.
9564219820Sjefflink_static_flag=$lt_lt_prog_compiler_static
9565219820Sjeff
9566219820Sjeff# Compiler flag to turn off builtin functions.
9567219820Sjeffno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9568219820Sjeff
9569219820Sjeff# Compiler flag to allow reflexive dlopens.
9570219820Sjeffexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9571219820Sjeff
9572219820Sjeff# Compiler flag to generate shared objects directly from archives.
9573219820Sjeffwhole_archive_flag_spec=$lt_whole_archive_flag_spec
9574219820Sjeff
9575219820Sjeff# Compiler flag to generate thread-safe objects.
9576219820Sjeffthread_safe_flag_spec=$lt_thread_safe_flag_spec
9577219820Sjeff
9578219820Sjeff# Library versioning type.
9579219820Sjeffversion_type=$version_type
9580219820Sjeff
9581219820Sjeff# Format of library name prefix.
9582219820Sjefflibname_spec=$lt_libname_spec
9583219820Sjeff
9584219820Sjeff# List of archive names.  First name is the real one, the rest are links.
9585219820Sjeff# The last name is the one that the linker finds with -lNAME.
9586219820Sjefflibrary_names_spec=$lt_library_names_spec
9587219820Sjeff
9588219820Sjeff# The coded name of the library, if different from the real name.
9589219820Sjeffsoname_spec=$lt_soname_spec
9590219820Sjeff
9591219820Sjeff# Commands used to build and install an old-style archive.
9592219820SjeffRANLIB=$lt_RANLIB
9593219820Sjeffold_archive_cmds=$lt_old_archive_cmds
9594219820Sjeffold_postinstall_cmds=$lt_old_postinstall_cmds
9595219820Sjeffold_postuninstall_cmds=$lt_old_postuninstall_cmds
9596219820Sjeff
9597219820Sjeff# Create an old-style archive from a shared archive.
9598219820Sjeffold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9599219820Sjeff
9600219820Sjeff# Create a temporary old-style archive to link instead of a shared archive.
9601219820Sjeffold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9602219820Sjeff
9603219820Sjeff# Commands used to build and install a shared archive.
9604219820Sjeffarchive_cmds=$lt_archive_cmds
9605219820Sjeffarchive_expsym_cmds=$lt_archive_expsym_cmds
9606219820Sjeffpostinstall_cmds=$lt_postinstall_cmds
9607219820Sjeffpostuninstall_cmds=$lt_postuninstall_cmds
9608219820Sjeff
9609219820Sjeff# Commands used to build a loadable module (assumed same as above if empty)
9610219820Sjeffmodule_cmds=$lt_module_cmds
9611219820Sjeffmodule_expsym_cmds=$lt_module_expsym_cmds
9612219820Sjeff
9613219820Sjeff# Commands to strip libraries.
9614219820Sjeffold_striplib=$lt_old_striplib
9615219820Sjeffstriplib=$lt_striplib
9616219820Sjeff
9617219820Sjeff# Dependencies to place before the objects being linked to create a
9618219820Sjeff# shared library.
9619219820Sjeffpredep_objects=$lt_predep_objects
9620219820Sjeff
9621219820Sjeff# Dependencies to place after the objects being linked to create a
9622219820Sjeff# shared library.
9623219820Sjeffpostdep_objects=$lt_postdep_objects
9624219820Sjeff
9625219820Sjeff# Dependencies to place before the objects being linked to create a
9626219820Sjeff# shared library.
9627219820Sjeffpredeps=$lt_predeps
9628219820Sjeff
9629219820Sjeff# Dependencies to place after the objects being linked to create a
9630219820Sjeff# shared library.
9631219820Sjeffpostdeps=$lt_postdeps
9632219820Sjeff
9633219820Sjeff# The library search path used internally by the compiler when linking
9634219820Sjeff# a shared library.
9635219820Sjeffcompiler_lib_search_path=$lt_compiler_lib_search_path
9636219820Sjeff
9637219820Sjeff# Method to check whether dependent libraries are shared objects.
9638219820Sjeffdeplibs_check_method=$lt_deplibs_check_method
9639219820Sjeff
9640219820Sjeff# Command to use when deplibs_check_method == file_magic.
9641219820Sjefffile_magic_cmd=$lt_file_magic_cmd
9642219820Sjeff
9643219820Sjeff# Flag that allows shared libraries with undefined symbols to be built.
9644219820Sjeffallow_undefined_flag=$lt_allow_undefined_flag
9645219820Sjeff
9646219820Sjeff# Flag that forces no undefined symbols.
9647219820Sjeffno_undefined_flag=$lt_no_undefined_flag
9648219820Sjeff
9649219820Sjeff# Commands used to finish a libtool library installation in a directory.
9650219820Sjefffinish_cmds=$lt_finish_cmds
9651219820Sjeff
9652219820Sjeff# Same as above, but a single script fragment to be evaled but not shown.
9653219820Sjefffinish_eval=$lt_finish_eval
9654219820Sjeff
9655219820Sjeff# Take the output of nm and produce a listing of raw symbols and C names.
9656219820Sjeffglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9657219820Sjeff
9658219820Sjeff# Transform the output of nm in a proper C declaration
9659219820Sjeffglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9660219820Sjeff
9661219820Sjeff# Transform the output of nm in a C name address pair
9662219820Sjeffglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9663219820Sjeff
9664219820Sjeff# This is the shared library runtime path variable.
9665219820Sjeffrunpath_var=$runpath_var
9666219820Sjeff
9667219820Sjeff# This is the shared library path variable.
9668219820Sjeffshlibpath_var=$shlibpath_var
9669219820Sjeff
9670219820Sjeff# Is shlibpath searched before the hard-coded library search path?
9671219820Sjeffshlibpath_overrides_runpath=$shlibpath_overrides_runpath
9672219820Sjeff
9673219820Sjeff# How to hardcode a shared library path into an executable.
9674219820Sjeffhardcode_action=$hardcode_action
9675219820Sjeff
9676219820Sjeff# Whether we should hardcode library paths into libraries.
9677219820Sjeffhardcode_into_libs=$hardcode_into_libs
9678219820Sjeff
9679219820Sjeff# Flag to hardcode \$libdir into a binary during linking.
9680219820Sjeff# This must work even if \$libdir does not exist.
9681219820Sjeffhardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9682219820Sjeff
9683219820Sjeff# If ld is used when linking, flag to hardcode \$libdir into
9684219820Sjeff# a binary during linking. This must work even if \$libdir does
9685219820Sjeff# not exist.
9686219820Sjeffhardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9687219820Sjeff
9688219820Sjeff# Whether we need a single -rpath flag with a separated argument.
9689219820Sjeffhardcode_libdir_separator=$lt_hardcode_libdir_separator
9690219820Sjeff
9691219820Sjeff# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9692219820Sjeff# resulting binary.
9693219820Sjeffhardcode_direct=$hardcode_direct
9694219820Sjeff
9695219820Sjeff# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9696219820Sjeff# resulting binary.
9697219820Sjeffhardcode_minus_L=$hardcode_minus_L
9698219820Sjeff
9699219820Sjeff# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9700219820Sjeff# the resulting binary.
9701219820Sjeffhardcode_shlibpath_var=$hardcode_shlibpath_var
9702219820Sjeff
9703219820Sjeff# Set to yes if building a shared library automatically hardcodes DIR into the library
9704219820Sjeff# and all subsequent libraries and executables linked against it.
9705219820Sjeffhardcode_automatic=$hardcode_automatic
9706219820Sjeff
9707219820Sjeff# Variables whose values should be saved in libtool wrapper scripts and
9708219820Sjeff# restored at relink time.
9709219820Sjeffvariables_saved_for_relink="$variables_saved_for_relink"
9710219820Sjeff
9711219820Sjeff# Whether libtool must link a program against all its dependency libraries.
9712219820Sjefflink_all_deplibs=$link_all_deplibs
9713219820Sjeff
9714219820Sjeff# Compile-time system search path for libraries
9715219820Sjeffsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9716219820Sjeff
9717219820Sjeff# Run-time system search path for libraries
9718219820Sjeffsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9719219820Sjeff
9720219820Sjeff# Fix the shell variable \$srcfile for the compiler.
9721219820Sjefffix_srcfile_path="$fix_srcfile_path"
9722219820Sjeff
9723219820Sjeff# Set to yes if exported symbols are required.
9724219820Sjeffalways_export_symbols=$always_export_symbols
9725219820Sjeff
9726219820Sjeff# The commands to list exported symbols.
9727219820Sjeffexport_symbols_cmds=$lt_export_symbols_cmds
9728219820Sjeff
9729219820Sjeff# The commands to extract the exported symbol list from a shared archive.
9730219820Sjeffextract_expsyms_cmds=$lt_extract_expsyms_cmds
9731219820Sjeff
9732219820Sjeff# Symbols that should not be listed in the preloaded symbols.
9733219820Sjeffexclude_expsyms=$lt_exclude_expsyms
9734219820Sjeff
9735219820Sjeff# Symbols that must always be exported.
9736219820Sjeffinclude_expsyms=$lt_include_expsyms
9737219820Sjeff
9738219820Sjeff# ### END LIBTOOL CONFIG
9739219820Sjeff
9740219820Sjeff__EOF__
9741219820Sjeff
9742219820Sjeff
9743219820Sjeff  case $host_os in
9744219820Sjeff  aix3*)
9745219820Sjeff    cat <<\EOF >> "$cfgfile"
9746219820Sjeff
9747219820Sjeff# AIX sometimes has problems with the GCC collect2 program.  For some
9748219820Sjeff# reason, if we set the COLLECT_NAMES environment variable, the problems
9749219820Sjeff# vanish in a puff of smoke.
9750219820Sjeffif test "X${COLLECT_NAMES+set}" != Xset; then
9751219820Sjeff  COLLECT_NAMES=
9752219820Sjeff  export COLLECT_NAMES
9753219820Sjefffi
9754219820SjeffEOF
9755219820Sjeff    ;;
9756219820Sjeff  esac
9757219820Sjeff
9758219820Sjeff  # We use sed instead of cat because bash on DJGPP gets confused if
9759219820Sjeff  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9760219820Sjeff  # text mode, it properly converts lines to CR/LF.  This bash problem
9761219820Sjeff  # is reportedly fixed, but why not run on old versions too?
9762219820Sjeff  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9763219820Sjeff
9764219820Sjeff  mv -f "$cfgfile" "$ofile" || \
9765219820Sjeff    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9766219820Sjeff  chmod +x "$ofile"
9767219820Sjeff
9768219820Sjeffelse
9769219820Sjeff  # If there is no Makefile yet, we rely on a make rule to execute
9770219820Sjeff  # `config.status --recheck' to rerun these tests and create the
9771219820Sjeff  # libtool script then.
9772219820Sjeff  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9773219820Sjeff  if test -f "$ltmain_in"; then
9774219820Sjeff    test -f Makefile && make "$ltmain"
9775219820Sjeff  fi
9776219820Sjefffi
9777219820Sjeff
9778219820Sjeff
9779219820Sjeffac_ext=c
9780219820Sjeffac_cpp='$CPP $CPPFLAGS'
9781219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9782219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9783219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
9784219820Sjeff
9785219820SjeffCC="$lt_save_CC"
9786219820Sjeff
9787219820Sjeff
9788219820Sjeff# Check whether --with-tags or --without-tags was given.
9789219820Sjeffif test "${with_tags+set}" = set; then
9790219820Sjeff  withval="$with_tags"
9791219820Sjeff  tagnames="$withval"
9792219820Sjefffi;
9793219820Sjeff
9794219820Sjeffif test -f "$ltmain" && test -n "$tagnames"; then
9795219820Sjeff  if test ! -f "${ofile}"; then
9796219820Sjeff    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9797219820Sjeffecho "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9798219820Sjeff  fi
9799219820Sjeff
9800219820Sjeff  if test -z "$LTCC"; then
9801219820Sjeff    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9802219820Sjeff    if test -z "$LTCC"; then
9803219820Sjeff      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9804219820Sjeffecho "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9805219820Sjeff    else
9806219820Sjeff      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9807219820Sjeffecho "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9808219820Sjeff    fi
9809219820Sjeff  fi
9810219820Sjeff  if test -z "$LTCFLAGS"; then
9811219820Sjeff    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9812219820Sjeff  fi
9813219820Sjeff
9814219820Sjeff  # Extract list of available tagged configurations in $ofile.
9815219820Sjeff  # Note that this assumes the entire list is on one line.
9816219820Sjeff  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9817219820Sjeff
9818219820Sjeff  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9819219820Sjeff  for tagname in $tagnames; do
9820219820Sjeff    IFS="$lt_save_ifs"
9821219820Sjeff    # Check whether tagname contains only valid characters
9822219820Sjeff    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9823219820Sjeff    "") ;;
9824219820Sjeff    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9825219820Sjeffecho "$as_me: error: invalid tag name: $tagname" >&2;}
9826219820Sjeff   { (exit 1); exit 1; }; }
9827219820Sjeff	;;
9828219820Sjeff    esac
9829219820Sjeff
9830219820Sjeff    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9831219820Sjeff    then
9832219820Sjeff      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9833219820Sjeffecho "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9834219820Sjeff   { (exit 1); exit 1; }; }
9835219820Sjeff    fi
9836219820Sjeff
9837219820Sjeff    # Update the list of available tags.
9838219820Sjeff    if test -n "$tagname"; then
9839219820Sjeff      echo appending configuration tag \"$tagname\" to $ofile
9840219820Sjeff
9841219820Sjeff      case $tagname in
9842219820Sjeff      CXX)
9843219820Sjeff	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9844219820Sjeff	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9845219820Sjeff	    (test "X$CXX" != "Xg++"))) ; then
9846219820Sjeff	  ac_ext=cc
9847219820Sjeffac_cpp='$CXXCPP $CPPFLAGS'
9848219820Sjeffac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9849219820Sjeffac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9850219820Sjeffac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9851219820Sjeff
9852219820Sjeff
9853219820Sjeff
9854219820Sjeff
9855219820Sjeffarchive_cmds_need_lc_CXX=no
9856219820Sjeffallow_undefined_flag_CXX=
9857219820Sjeffalways_export_symbols_CXX=no
9858219820Sjeffarchive_expsym_cmds_CXX=
9859219820Sjeffexport_dynamic_flag_spec_CXX=
9860219820Sjeffhardcode_direct_CXX=no
9861219820Sjeffhardcode_libdir_flag_spec_CXX=
9862219820Sjeffhardcode_libdir_flag_spec_ld_CXX=
9863219820Sjeffhardcode_libdir_separator_CXX=
9864219820Sjeffhardcode_minus_L_CXX=no
9865219820Sjeffhardcode_shlibpath_var_CXX=unsupported
9866219820Sjeffhardcode_automatic_CXX=no
9867219820Sjeffmodule_cmds_CXX=
9868219820Sjeffmodule_expsym_cmds_CXX=
9869219820Sjefflink_all_deplibs_CXX=unknown
9870219820Sjeffold_archive_cmds_CXX=$old_archive_cmds
9871219820Sjeffno_undefined_flag_CXX=
9872219820Sjeffwhole_archive_flag_spec_CXX=
9873219820Sjeffenable_shared_with_static_runtimes_CXX=no
9874219820Sjeff
9875219820Sjeff# Dependencies to place before and after the object being linked:
9876219820Sjeffpredep_objects_CXX=
9877219820Sjeffpostdep_objects_CXX=
9878219820Sjeffpredeps_CXX=
9879219820Sjeffpostdeps_CXX=
9880219820Sjeffcompiler_lib_search_path_CXX=
9881219820Sjeff
9882219820Sjeff# Source file extension for C++ test sources.
9883219820Sjeffac_ext=cpp
9884219820Sjeff
9885219820Sjeff# Object file extension for compiled C++ test sources.
9886219820Sjeffobjext=o
9887219820Sjeffobjext_CXX=$objext
9888219820Sjeff
9889219820Sjeff# Code to be used in simple compile tests
9890219820Sjefflt_simple_compile_test_code="int some_variable = 0;\n"
9891219820Sjeff
9892219820Sjeff# Code to be used in simple link tests
9893219820Sjefflt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9894219820Sjeff
9895219820Sjeff# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9896219820Sjeff
9897219820Sjeff# If no C compiler was specified, use CC.
9898219820SjeffLTCC=${LTCC-"$CC"}
9899219820Sjeff
9900219820Sjeff# If no C compiler flags were specified, use CFLAGS.
9901219820SjeffLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9902219820Sjeff
9903219820Sjeff# Allow CC to be a program name with arguments.
9904219820Sjeffcompiler=$CC
9905219820Sjeff
9906219820Sjeff
9907219820Sjeff# save warnings/boilerplate of simple test code
9908219820Sjeffac_outfile=conftest.$ac_objext
9909219820Sjeffprintf "$lt_simple_compile_test_code" >conftest.$ac_ext
9910219820Sjeffeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9911219820Sjeff_lt_compiler_boilerplate=`cat conftest.err`
9912219820Sjeff$rm conftest*
9913219820Sjeff
9914219820Sjeffac_outfile=conftest.$ac_objext
9915219820Sjeffprintf "$lt_simple_link_test_code" >conftest.$ac_ext
9916219820Sjeffeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9917219820Sjeff_lt_linker_boilerplate=`cat conftest.err`
9918219820Sjeff$rm conftest*
9919219820Sjeff
9920219820Sjeff
9921219820Sjeff# Allow CC to be a program name with arguments.
9922219820Sjefflt_save_CC=$CC
9923219820Sjefflt_save_LD=$LD
9924219820Sjefflt_save_GCC=$GCC
9925219820SjeffGCC=$GXX
9926219820Sjefflt_save_with_gnu_ld=$with_gnu_ld
9927219820Sjefflt_save_path_LD=$lt_cv_path_LD
9928219820Sjeffif test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9929219820Sjeff  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9930219820Sjeffelse
9931219820Sjeff  $as_unset lt_cv_prog_gnu_ld
9932219820Sjefffi
9933219820Sjeffif test -n "${lt_cv_path_LDCXX+set}"; then
9934219820Sjeff  lt_cv_path_LD=$lt_cv_path_LDCXX
9935219820Sjeffelse
9936219820Sjeff  $as_unset lt_cv_path_LD
9937219820Sjefffi
9938219820Sjefftest -z "${LDCXX+set}" || LD=$LDCXX
9939219820SjeffCC=${CXX-"c++"}
9940219820Sjeffcompiler=$CC
9941219820Sjeffcompiler_CXX=$CC
9942219820Sjefffor cc_temp in $compiler""; do
9943219820Sjeff  case $cc_temp in
9944219820Sjeff    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9945219820Sjeff    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9946219820Sjeff    \-*) ;;
9947219820Sjeff    *) break;;
9948219820Sjeff  esac
9949219820Sjeffdone
9950219820Sjeffcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9951219820Sjeff
9952219820Sjeff
9953219820Sjeff# We don't want -fno-exception wen compiling C++ code, so set the
9954219820Sjeff# no_builtin_flag separately
9955219820Sjeffif test "$GXX" = yes; then
9956219820Sjeff  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9957219820Sjeffelse
9958219820Sjeff  lt_prog_compiler_no_builtin_flag_CXX=
9959219820Sjefffi
9960219820Sjeff
9961219820Sjeffif test "$GXX" = yes; then
9962219820Sjeff  # Set up default GNU C++ configuration
9963219820Sjeff
9964219820Sjeff
9965219820Sjeff# Check whether --with-gnu-ld or --without-gnu-ld was given.
9966219820Sjeffif test "${with_gnu_ld+set}" = set; then
9967219820Sjeff  withval="$with_gnu_ld"
9968219820Sjeff  test "$withval" = no || with_gnu_ld=yes
9969219820Sjeffelse
9970219820Sjeff  with_gnu_ld=no
9971219820Sjefffi;
9972219820Sjeffac_prog=ld
9973219820Sjeffif test "$GCC" = yes; then
9974219820Sjeff  # Check if gcc -print-prog-name=ld gives a path.
9975219820Sjeff  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9976219820Sjeffecho $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9977219820Sjeff  case $host in
9978219820Sjeff  *-*-mingw*)
9979219820Sjeff    # gcc leaves a trailing carriage return which upsets mingw
9980219820Sjeff    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9981219820Sjeff  *)
9982219820Sjeff    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9983219820Sjeff  esac
9984219820Sjeff  case $ac_prog in
9985219820Sjeff    # Accept absolute paths.
9986219820Sjeff    [\\/]* | ?:[\\/]*)
9987219820Sjeff      re_direlt='/[^/][^/]*/\.\./'
9988219820Sjeff      # Canonicalize the pathname of ld
9989219820Sjeff      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9990219820Sjeff      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9991219820Sjeff	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9992219820Sjeff      done
9993219820Sjeff      test -z "$LD" && LD="$ac_prog"
9994219820Sjeff      ;;
9995219820Sjeff  "")
9996219820Sjeff    # If it fails, then pretend we aren't using GCC.
9997219820Sjeff    ac_prog=ld
9998219820Sjeff    ;;
9999219820Sjeff  *)
10000219820Sjeff    # If it is relative, then search for the first ld in PATH.
10001219820Sjeff    with_gnu_ld=unknown
10002219820Sjeff    ;;
10003219820Sjeff  esac
10004219820Sjeffelif test "$with_gnu_ld" = yes; then
10005219820Sjeff  echo "$as_me:$LINENO: checking for GNU ld" >&5
10006219820Sjeffecho $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10007219820Sjeffelse
10008219820Sjeff  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10009219820Sjeffecho $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10010219820Sjefffi
10011219820Sjeffif test "${lt_cv_path_LD+set}" = set; then
10012219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
10013219820Sjeffelse
10014219820Sjeff  if test -z "$LD"; then
10015219820Sjeff  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10016219820Sjeff  for ac_dir in $PATH; do
10017219820Sjeff    IFS="$lt_save_ifs"
10018219820Sjeff    test -z "$ac_dir" && ac_dir=.
10019219820Sjeff    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10020219820Sjeff      lt_cv_path_LD="$ac_dir/$ac_prog"
10021219820Sjeff      # Check to see if the program is GNU ld.  I'd rather use --version,
10022219820Sjeff      # but apparently some variants of GNU ld only accept -v.
10023219820Sjeff      # Break only if it was the GNU/non-GNU ld that we prefer.
10024219820Sjeff      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10025219820Sjeff      *GNU* | *'with BFD'*)
10026219820Sjeff	test "$with_gnu_ld" != no && break
10027219820Sjeff	;;
10028219820Sjeff      *)
10029219820Sjeff	test "$with_gnu_ld" != yes && break
10030219820Sjeff	;;
10031219820Sjeff      esac
10032219820Sjeff    fi
10033219820Sjeff  done
10034219820Sjeff  IFS="$lt_save_ifs"
10035219820Sjeffelse
10036219820Sjeff  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10037219820Sjefffi
10038219820Sjefffi
10039219820Sjeff
10040219820SjeffLD="$lt_cv_path_LD"
10041219820Sjeffif test -n "$LD"; then
10042219820Sjeff  echo "$as_me:$LINENO: result: $LD" >&5
10043219820Sjeffecho "${ECHO_T}$LD" >&6
10044219820Sjeffelse
10045219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
10046219820Sjeffecho "${ECHO_T}no" >&6
10047219820Sjefffi
10048219820Sjefftest -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10049219820Sjeffecho "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10050219820Sjeff   { (exit 1); exit 1; }; }
10051219820Sjeffecho "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10052219820Sjeffecho $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10053219820Sjeffif test "${lt_cv_prog_gnu_ld+set}" = set; then
10054219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
10055219820Sjeffelse
10056219820Sjeff  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10057219820Sjeffcase `$LD -v 2>&1 </dev/null` in
10058219820Sjeff*GNU* | *'with BFD'*)
10059219820Sjeff  lt_cv_prog_gnu_ld=yes
10060219820Sjeff  ;;
10061219820Sjeff*)
10062219820Sjeff  lt_cv_prog_gnu_ld=no
10063219820Sjeff  ;;
10064219820Sjeffesac
10065219820Sjefffi
10066219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10067219820Sjeffecho "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10068219820Sjeffwith_gnu_ld=$lt_cv_prog_gnu_ld
10069219820Sjeff
10070219820Sjeff
10071219820Sjeff
10072219820Sjeff  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10073219820Sjeff  # archiving commands below assume that GNU ld is being used.
10074219820Sjeff  if test "$with_gnu_ld" = yes; then
10075219820Sjeff    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076219820Sjeff    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'
10077219820Sjeff
10078219820Sjeff    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10079219820Sjeff    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10080219820Sjeff
10081219820Sjeff    # If archive_cmds runs LD, not CC, wlarc should be empty
10082219820Sjeff    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10083219820Sjeff    #     investigate it a little bit more. (MM)
10084219820Sjeff    wlarc='${wl}'
10085219820Sjeff
10086219820Sjeff    # ancient GNU ld didn't support --whole-archive et. al.
10087219820Sjeff    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10088219820Sjeff	grep 'no-whole-archive' > /dev/null; then
10089219820Sjeff      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10090219820Sjeff    else
10091219820Sjeff      whole_archive_flag_spec_CXX=
10092219820Sjeff    fi
10093219820Sjeff  else
10094219820Sjeff    with_gnu_ld=no
10095219820Sjeff    wlarc=
10096219820Sjeff
10097219820Sjeff    # A generic and very simple default shared library creation
10098219820Sjeff    # command for GNU C++ for the case where it uses the native
10099219820Sjeff    # linker, instead of GNU ld.  If possible, this setting should
10100219820Sjeff    # overridden to take advantage of the native linker features on
10101219820Sjeff    # the platform it is being used on.
10102219820Sjeff    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10103219820Sjeff  fi
10104219820Sjeff
10105219820Sjeff  # Commands to make compiler produce verbose output that lists
10106219820Sjeff  # what "hidden" libraries, object files and flags are used when
10107219820Sjeff  # linking a shared library.
10108219820Sjeff  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10109219820Sjeff
10110219820Sjeffelse
10111219820Sjeff  GXX=no
10112219820Sjeff  with_gnu_ld=no
10113219820Sjeff  wlarc=
10114219820Sjefffi
10115219820Sjeff
10116219820Sjeff# PORTME: fill in a description of your system's C++ link characteristics
10117219820Sjeffecho "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10118219820Sjeffecho $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10119219820Sjeffld_shlibs_CXX=yes
10120219820Sjeffcase $host_os in
10121219820Sjeff  aix3*)
10122219820Sjeff    # FIXME: insert proper C++ library support
10123219820Sjeff    ld_shlibs_CXX=no
10124219820Sjeff    ;;
10125219820Sjeff  aix4* | aix5*)
10126219820Sjeff    if test "$host_cpu" = ia64; then
10127219820Sjeff      # On IA64, the linker does run time linking by default, so we don't
10128219820Sjeff      # have to do anything special.
10129219820Sjeff      aix_use_runtimelinking=no
10130219820Sjeff      exp_sym_flag='-Bexport'
10131219820Sjeff      no_entry_flag=""
10132219820Sjeff    else
10133219820Sjeff      aix_use_runtimelinking=no
10134219820Sjeff
10135219820Sjeff      # Test if we are trying to use run time linking or normal
10136219820Sjeff      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10137219820Sjeff      # need to do runtime linking.
10138219820Sjeff      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10139219820Sjeff	for ld_flag in $LDFLAGS; do
10140219820Sjeff	  case $ld_flag in
10141219820Sjeff	  *-brtl*)
10142219820Sjeff	    aix_use_runtimelinking=yes
10143219820Sjeff	    break
10144219820Sjeff	    ;;
10145219820Sjeff	  esac
10146219820Sjeff	done
10147219820Sjeff	;;
10148219820Sjeff      esac
10149219820Sjeff
10150219820Sjeff      exp_sym_flag='-bexport'
10151219820Sjeff      no_entry_flag='-bnoentry'
10152219820Sjeff    fi
10153219820Sjeff
10154219820Sjeff    # When large executables or shared objects are built, AIX ld can
10155219820Sjeff    # have problems creating the table of contents.  If linking a library
10156219820Sjeff    # or program results in "error TOC overflow" add -mminimal-toc to
10157219820Sjeff    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10158219820Sjeff    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10159219820Sjeff
10160219820Sjeff    archive_cmds_CXX=''
10161219820Sjeff    hardcode_direct_CXX=yes
10162219820Sjeff    hardcode_libdir_separator_CXX=':'
10163219820Sjeff    link_all_deplibs_CXX=yes
10164219820Sjeff
10165219820Sjeff    if test "$GXX" = yes; then
10166219820Sjeff      case $host_os in aix4.[012]|aix4.[012].*)
10167219820Sjeff      # We only want to do this on AIX 4.2 and lower, the check
10168219820Sjeff      # below for broken collect2 doesn't work under 4.3+
10169219820Sjeff	collect2name=`${CC} -print-prog-name=collect2`
10170219820Sjeff	if test -f "$collect2name" && \
10171219820Sjeff	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10172219820Sjeff	then
10173219820Sjeff	  # We have reworked collect2
10174219820Sjeff	  hardcode_direct_CXX=yes
10175219820Sjeff	else
10176219820Sjeff	  # We have old collect2
10177219820Sjeff	  hardcode_direct_CXX=unsupported
10178219820Sjeff	  # It fails to find uninstalled libraries when the uninstalled
10179219820Sjeff	  # path is not listed in the libpath.  Setting hardcode_minus_L
10180219820Sjeff	  # to unsupported forces relinking
10181219820Sjeff	  hardcode_minus_L_CXX=yes
10182219820Sjeff	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10183219820Sjeff	  hardcode_libdir_separator_CXX=
10184219820Sjeff	fi
10185219820Sjeff	;;
10186219820Sjeff      esac
10187219820Sjeff      shared_flag='-shared'
10188219820Sjeff      if test "$aix_use_runtimelinking" = yes; then
10189219820Sjeff	shared_flag="$shared_flag "'${wl}-G'
10190219820Sjeff      fi
10191219820Sjeff    else
10192219820Sjeff      # not using gcc
10193219820Sjeff      if test "$host_cpu" = ia64; then
10194219820Sjeff	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10195219820Sjeff	# chokes on -Wl,-G. The following line is correct:
10196219820Sjeff	shared_flag='-G'
10197219820Sjeff      else
10198219820Sjeff	if test "$aix_use_runtimelinking" = yes; then
10199219820Sjeff	  shared_flag='${wl}-G'
10200219820Sjeff	else
10201219820Sjeff	  shared_flag='${wl}-bM:SRE'
10202219820Sjeff	fi
10203219820Sjeff      fi
10204219820Sjeff    fi
10205219820Sjeff
10206219820Sjeff    # It seems that -bexpall does not export symbols beginning with
10207219820Sjeff    # underscore (_), so it is better to generate a list of symbols to export.
10208219820Sjeff    always_export_symbols_CXX=yes
10209219820Sjeff    if test "$aix_use_runtimelinking" = yes; then
10210219820Sjeff      # Warning - without using the other runtime loading flags (-brtl),
10211219820Sjeff      # -berok will link without error, but may produce a broken library.
10212219820Sjeff      allow_undefined_flag_CXX='-berok'
10213219820Sjeff      # Determine the default libpath from the value encoded in an empty executable.
10214219820Sjeff      cat >conftest.$ac_ext <<_ACEOF
10215219820Sjeff/* confdefs.h.  */
10216219820Sjeff_ACEOF
10217219820Sjeffcat confdefs.h >>conftest.$ac_ext
10218219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
10219219820Sjeff/* end confdefs.h.  */
10220219820Sjeff
10221219820Sjeffint
10222219820Sjeffmain ()
10223219820Sjeff{
10224219820Sjeff
10225219820Sjeff  ;
10226219820Sjeff  return 0;
10227219820Sjeff}
10228219820Sjeff_ACEOF
10229219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
10230219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231219820Sjeff  (eval $ac_link) 2>conftest.er1
10232219820Sjeff  ac_status=$?
10233219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
10234219820Sjeff  rm -f conftest.er1
10235219820Sjeff  cat conftest.err >&5
10236219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237219820Sjeff  (exit $ac_status); } &&
10238219820Sjeff	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10239219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240219820Sjeff  (eval $ac_try) 2>&5
10241219820Sjeff  ac_status=$?
10242219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243219820Sjeff  (exit $ac_status); }; } &&
10244219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
10245219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246219820Sjeff  (eval $ac_try) 2>&5
10247219820Sjeff  ac_status=$?
10248219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249219820Sjeff  (exit $ac_status); }; }; then
10250219820Sjeff
10251219820Sjeffaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10252219820Sjeff}'`
10253219820Sjeff# Check for a 64-bit object if we didn't find anything.
10254219820Sjeffif 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; }
10255219820Sjeff}'`; fi
10256219820Sjeffelse
10257219820Sjeff  echo "$as_me: failed program was:" >&5
10258219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
10259219820Sjeff
10260219820Sjefffi
10261219820Sjeffrm -f conftest.err conftest.$ac_objext \
10262219820Sjeff      conftest$ac_exeext conftest.$ac_ext
10263219820Sjeffif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10264219820Sjeff
10265219820Sjeff      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10266219820Sjeff
10267219820Sjeff      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"
10268219820Sjeff     else
10269219820Sjeff      if test "$host_cpu" = ia64; then
10270219820Sjeff	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10271219820Sjeff	allow_undefined_flag_CXX="-z nodefs"
10272219820Sjeff	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"
10273219820Sjeff      else
10274219820Sjeff	# Determine the default libpath from the value encoded in an empty executable.
10275219820Sjeff	cat >conftest.$ac_ext <<_ACEOF
10276219820Sjeff/* confdefs.h.  */
10277219820Sjeff_ACEOF
10278219820Sjeffcat confdefs.h >>conftest.$ac_ext
10279219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
10280219820Sjeff/* end confdefs.h.  */
10281219820Sjeff
10282219820Sjeffint
10283219820Sjeffmain ()
10284219820Sjeff{
10285219820Sjeff
10286219820Sjeff  ;
10287219820Sjeff  return 0;
10288219820Sjeff}
10289219820Sjeff_ACEOF
10290219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
10291219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10292219820Sjeff  (eval $ac_link) 2>conftest.er1
10293219820Sjeff  ac_status=$?
10294219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
10295219820Sjeff  rm -f conftest.er1
10296219820Sjeff  cat conftest.err >&5
10297219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298219820Sjeff  (exit $ac_status); } &&
10299219820Sjeff	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10300219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301219820Sjeff  (eval $ac_try) 2>&5
10302219820Sjeff  ac_status=$?
10303219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304219820Sjeff  (exit $ac_status); }; } &&
10305219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
10306219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307219820Sjeff  (eval $ac_try) 2>&5
10308219820Sjeff  ac_status=$?
10309219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310219820Sjeff  (exit $ac_status); }; }; then
10311219820Sjeff
10312219820Sjeffaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10313219820Sjeff}'`
10314219820Sjeff# Check for a 64-bit object if we didn't find anything.
10315219820Sjeffif 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; }
10316219820Sjeff}'`; fi
10317219820Sjeffelse
10318219820Sjeff  echo "$as_me: failed program was:" >&5
10319219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
10320219820Sjeff
10321219820Sjefffi
10322219820Sjeffrm -f conftest.err conftest.$ac_objext \
10323219820Sjeff      conftest$ac_exeext conftest.$ac_ext
10324219820Sjeffif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10325219820Sjeff
10326219820Sjeff	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10327219820Sjeff	# Warning - without using the other run time loading flags,
10328219820Sjeff	# -berok will link without error, but may produce a broken library.
10329219820Sjeff	no_undefined_flag_CXX=' ${wl}-bernotok'
10330219820Sjeff	allow_undefined_flag_CXX=' ${wl}-berok'
10331219820Sjeff	# Exported symbols can be pulled into shared objects from archives
10332219820Sjeff	whole_archive_flag_spec_CXX='$convenience'
10333219820Sjeff	archive_cmds_need_lc_CXX=yes
10334219820Sjeff	# This is similar to how AIX traditionally builds its shared libraries.
10335219820Sjeff	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'
10336219820Sjeff      fi
10337219820Sjeff    fi
10338219820Sjeff    ;;
10339219820Sjeff
10340219820Sjeff  beos*)
10341219820Sjeff    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10342219820Sjeff      allow_undefined_flag_CXX=unsupported
10343219820Sjeff      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10344219820Sjeff      # support --undefined.  This deserves some investigation.  FIXME
10345219820Sjeff      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10346219820Sjeff    else
10347219820Sjeff      ld_shlibs_CXX=no
10348219820Sjeff    fi
10349219820Sjeff    ;;
10350219820Sjeff
10351219820Sjeff  chorus*)
10352219820Sjeff    case $cc_basename in
10353219820Sjeff      *)
10354219820Sjeff	# FIXME: insert proper C++ library support
10355219820Sjeff	ld_shlibs_CXX=no
10356219820Sjeff	;;
10357219820Sjeff    esac
10358219820Sjeff    ;;
10359219820Sjeff
10360219820Sjeff  cygwin* | mingw* | pw32*)
10361219820Sjeff    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10362219820Sjeff    # as there is no search path for DLLs.
10363219820Sjeff    hardcode_libdir_flag_spec_CXX='-L$libdir'
10364219820Sjeff    allow_undefined_flag_CXX=unsupported
10365219820Sjeff    always_export_symbols_CXX=no
10366219820Sjeff    enable_shared_with_static_runtimes_CXX=yes
10367219820Sjeff
10368219820Sjeff    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10369219820Sjeff      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'
10370219820Sjeff      # If the export-symbols file already is a .def file (1st line
10371219820Sjeff      # is EXPORTS), use it as is; otherwise, prepend...
10372219820Sjeff      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10373219820Sjeff	cp $export_symbols $output_objdir/$soname.def;
10374219820Sjeff      else
10375219820Sjeff	echo EXPORTS > $output_objdir/$soname.def;
10376219820Sjeff	cat $export_symbols >> $output_objdir/$soname.def;
10377219820Sjeff      fi~
10378219820Sjeff      $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'
10379219820Sjeff    else
10380219820Sjeff      ld_shlibs_CXX=no
10381219820Sjeff    fi
10382219820Sjeff  ;;
10383219820Sjeff      darwin* | rhapsody*)
10384219820Sjeff        case $host_os in
10385219820Sjeff        rhapsody* | darwin1.[012])
10386219820Sjeff         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10387219820Sjeff         ;;
10388219820Sjeff       *) # Darwin 1.3 on
10389219820Sjeff         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10390219820Sjeff           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10391219820Sjeff         else
10392219820Sjeff           case ${MACOSX_DEPLOYMENT_TARGET} in
10393219820Sjeff             10.[012])
10394219820Sjeff               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10395219820Sjeff               ;;
10396219820Sjeff             10.*)
10397219820Sjeff               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10398219820Sjeff               ;;
10399219820Sjeff           esac
10400219820Sjeff         fi
10401219820Sjeff         ;;
10402219820Sjeff        esac
10403219820Sjeff      archive_cmds_need_lc_CXX=no
10404219820Sjeff      hardcode_direct_CXX=no
10405219820Sjeff      hardcode_automatic_CXX=yes
10406219820Sjeff      hardcode_shlibpath_var_CXX=unsupported
10407219820Sjeff      whole_archive_flag_spec_CXX=''
10408219820Sjeff      link_all_deplibs_CXX=yes
10409219820Sjeff
10410219820Sjeff    if test "$GXX" = yes ; then
10411219820Sjeff      lt_int_apple_cc_single_mod=no
10412219820Sjeff      output_verbose_link_cmd='echo'
10413219820Sjeff      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10414219820Sjeff       lt_int_apple_cc_single_mod=yes
10415219820Sjeff      fi
10416219820Sjeff      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10417219820Sjeff       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10418219820Sjeff      else
10419219820Sjeff          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'
10420219820Sjeff        fi
10421219820Sjeff        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10422219820Sjeff        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10423219820Sjeff          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10424219820Sjeff            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}'
10425219820Sjeff          else
10426219820Sjeff            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}'
10427219820Sjeff          fi
10428219820Sjeff            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}'
10429219820Sjeff      else
10430219820Sjeff      case $cc_basename in
10431219820Sjeff        xlc*)
10432219820Sjeff         output_verbose_link_cmd='echo'
10433219820Sjeff          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'
10434219820Sjeff          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10435219820Sjeff          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10436219820Sjeff          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}'
10437219820Sjeff          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}'
10438219820Sjeff          ;;
10439219820Sjeff       *)
10440219820Sjeff         ld_shlibs_CXX=no
10441219820Sjeff          ;;
10442219820Sjeff      esac
10443219820Sjeff      fi
10444219820Sjeff        ;;
10445219820Sjeff
10446219820Sjeff  dgux*)
10447219820Sjeff    case $cc_basename in
10448219820Sjeff      ec++*)
10449219820Sjeff	# FIXME: insert proper C++ library support
10450219820Sjeff	ld_shlibs_CXX=no
10451219820Sjeff	;;
10452219820Sjeff      ghcx*)
10453219820Sjeff	# Green Hills C++ Compiler
10454219820Sjeff	# FIXME: insert proper C++ library support
10455219820Sjeff	ld_shlibs_CXX=no
10456219820Sjeff	;;
10457219820Sjeff      *)
10458219820Sjeff	# FIXME: insert proper C++ library support
10459219820Sjeff	ld_shlibs_CXX=no
10460219820Sjeff	;;
10461219820Sjeff    esac
10462219820Sjeff    ;;
10463219820Sjeff  freebsd[12]*)
10464219820Sjeff    # C++ shared libraries reported to be fairly broken before switch to ELF
10465219820Sjeff    ld_shlibs_CXX=no
10466219820Sjeff    ;;
10467219820Sjeff  freebsd-elf*)
10468219820Sjeff    archive_cmds_need_lc_CXX=no
10469219820Sjeff    ;;
10470219820Sjeff  freebsd* | kfreebsd*-gnu | dragonfly*)
10471219820Sjeff    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10472219820Sjeff    # conventions
10473219820Sjeff    ld_shlibs_CXX=yes
10474219820Sjeff    ;;
10475219820Sjeff  gnu*)
10476219820Sjeff    ;;
10477219820Sjeff  hpux9*)
10478219820Sjeff    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10479219820Sjeff    hardcode_libdir_separator_CXX=:
10480219820Sjeff    export_dynamic_flag_spec_CXX='${wl}-E'
10481219820Sjeff    hardcode_direct_CXX=yes
10482219820Sjeff    hardcode_minus_L_CXX=yes # Not in the search PATH,
10483219820Sjeff				# but as the default
10484219820Sjeff				# location of the library.
10485219820Sjeff
10486219820Sjeff    case $cc_basename in
10487219820Sjeff    CC*)
10488219820Sjeff      # FIXME: insert proper C++ library support
10489219820Sjeff      ld_shlibs_CXX=no
10490219820Sjeff      ;;
10491219820Sjeff    aCC*)
10492219820Sjeff      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'
10493219820Sjeff      # Commands to make compiler produce verbose output that lists
10494219820Sjeff      # what "hidden" libraries, object files and flags are used when
10495219820Sjeff      # linking a shared library.
10496219820Sjeff      #
10497219820Sjeff      # There doesn't appear to be a way to prevent this compiler from
10498219820Sjeff      # explicitly linking system object files so we need to strip them
10499219820Sjeff      # from the output so that they don't get included in the library
10500219820Sjeff      # dependencies.
10501219820Sjeff      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'
10502219820Sjeff      ;;
10503219820Sjeff    *)
10504219820Sjeff      if test "$GXX" = yes; then
10505219820Sjeff        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'
10506219820Sjeff      else
10507219820Sjeff        # FIXME: insert proper C++ library support
10508219820Sjeff        ld_shlibs_CXX=no
10509219820Sjeff      fi
10510219820Sjeff      ;;
10511219820Sjeff    esac
10512219820Sjeff    ;;
10513219820Sjeff  hpux10*|hpux11*)
10514219820Sjeff    if test $with_gnu_ld = no; then
10515219820Sjeff      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10516219820Sjeff      hardcode_libdir_separator_CXX=:
10517219820Sjeff
10518219820Sjeff      case $host_cpu in
10519219820Sjeff      hppa*64*|ia64*)
10520219820Sjeff	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10521219820Sjeff        ;;
10522219820Sjeff      *)
10523219820Sjeff	export_dynamic_flag_spec_CXX='${wl}-E'
10524219820Sjeff        ;;
10525219820Sjeff      esac
10526219820Sjeff    fi
10527219820Sjeff    case $host_cpu in
10528219820Sjeff    hppa*64*|ia64*)
10529219820Sjeff      hardcode_direct_CXX=no
10530219820Sjeff      hardcode_shlibpath_var_CXX=no
10531219820Sjeff      ;;
10532219820Sjeff    *)
10533219820Sjeff      hardcode_direct_CXX=yes
10534219820Sjeff      hardcode_minus_L_CXX=yes # Not in the search PATH,
10535219820Sjeff					      # but as the default
10536219820Sjeff					      # location of the library.
10537219820Sjeff      ;;
10538219820Sjeff    esac
10539219820Sjeff
10540219820Sjeff    case $cc_basename in
10541219820Sjeff      CC*)
10542219820Sjeff	# FIXME: insert proper C++ library support
10543219820Sjeff	ld_shlibs_CXX=no
10544219820Sjeff	;;
10545219820Sjeff      aCC*)
10546219820Sjeff	case $host_cpu in
10547219820Sjeff	hppa*64*)
10548219820Sjeff	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10549219820Sjeff	  ;;
10550219820Sjeff	ia64*)
10551219820Sjeff	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10552219820Sjeff	  ;;
10553219820Sjeff	*)
10554219820Sjeff	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10555219820Sjeff	  ;;
10556219820Sjeff	esac
10557219820Sjeff	# Commands to make compiler produce verbose output that lists
10558219820Sjeff	# what "hidden" libraries, object files and flags are used when
10559219820Sjeff	# linking a shared library.
10560219820Sjeff	#
10561219820Sjeff	# There doesn't appear to be a way to prevent this compiler from
10562219820Sjeff	# explicitly linking system object files so we need to strip them
10563219820Sjeff	# from the output so that they don't get included in the library
10564219820Sjeff	# dependencies.
10565219820Sjeff	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'
10566219820Sjeff	;;
10567219820Sjeff      *)
10568219820Sjeff	if test "$GXX" = yes; then
10569219820Sjeff	  if test $with_gnu_ld = no; then
10570219820Sjeff	    case $host_cpu in
10571219820Sjeff	    hppa*64*)
10572219820Sjeff	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10573219820Sjeff	      ;;
10574219820Sjeff	    ia64*)
10575219820Sjeff	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10576219820Sjeff	      ;;
10577219820Sjeff	    *)
10578219820Sjeff	      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'
10579219820Sjeff	      ;;
10580219820Sjeff	    esac
10581219820Sjeff	  fi
10582219820Sjeff	else
10583219820Sjeff	  # FIXME: insert proper C++ library support
10584219820Sjeff	  ld_shlibs_CXX=no
10585219820Sjeff	fi
10586219820Sjeff	;;
10587219820Sjeff    esac
10588219820Sjeff    ;;
10589219820Sjeff  interix3*)
10590219820Sjeff    hardcode_direct_CXX=no
10591219820Sjeff    hardcode_shlibpath_var_CXX=no
10592219820Sjeff    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10593219820Sjeff    export_dynamic_flag_spec_CXX='${wl}-E'
10594219820Sjeff    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10595219820Sjeff    # Instead, shared libraries are loaded at an image base (0x10000000 by
10596219820Sjeff    # default) and relocated if they conflict, which is a slow very memory
10597219820Sjeff    # consuming and fragmenting process.  To avoid this, we pick a random,
10598219820Sjeff    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10599219820Sjeff    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10600219820Sjeff    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'
10601219820Sjeff    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'
10602219820Sjeff    ;;
10603219820Sjeff  irix5* | irix6*)
10604219820Sjeff    case $cc_basename in
10605219820Sjeff      CC*)
10606219820Sjeff	# SGI C++
10607219820Sjeff	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'
10608219820Sjeff
10609219820Sjeff	# Archives containing C++ object files must be created using
10610219820Sjeff	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10611219820Sjeff	# necessary to make sure instantiated templates are included
10612219820Sjeff	# in the archive.
10613219820Sjeff	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10614219820Sjeff	;;
10615219820Sjeff      *)
10616219820Sjeff	if test "$GXX" = yes; then
10617219820Sjeff	  if test "$with_gnu_ld" = no; then
10618219820Sjeff	    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'
10619219820Sjeff	  else
10620219820Sjeff	    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'
10621219820Sjeff	  fi
10622219820Sjeff	fi
10623219820Sjeff	link_all_deplibs_CXX=yes
10624219820Sjeff	;;
10625219820Sjeff    esac
10626219820Sjeff    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10627219820Sjeff    hardcode_libdir_separator_CXX=:
10628219820Sjeff    ;;
10629219820Sjeff  linux*)
10630219820Sjeff    case $cc_basename in
10631219820Sjeff      KCC*)
10632219820Sjeff	# Kuck and Associates, Inc. (KAI) C++ Compiler
10633219820Sjeff
10634219820Sjeff	# KCC will only create a shared library if the output file
10635219820Sjeff	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10636219820Sjeff	# to its proper name (with version) after linking.
10637219820Sjeff	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'
10638219820Sjeff	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'
10639219820Sjeff	# Commands to make compiler produce verbose output that lists
10640219820Sjeff	# what "hidden" libraries, object files and flags are used when
10641219820Sjeff	# linking a shared library.
10642219820Sjeff	#
10643219820Sjeff	# There doesn't appear to be a way to prevent this compiler from
10644219820Sjeff	# explicitly linking system object files so we need to strip them
10645219820Sjeff	# from the output so that they don't get included in the library
10646219820Sjeff	# dependencies.
10647219820Sjeff	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'
10648219820Sjeff
10649219820Sjeff	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10650219820Sjeff	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10651219820Sjeff
10652219820Sjeff	# Archives containing C++ object files must be created using
10653219820Sjeff	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10654219820Sjeff	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10655219820Sjeff	;;
10656219820Sjeff      icpc*)
10657219820Sjeff	# Intel C++
10658219820Sjeff	with_gnu_ld=yes
10659219820Sjeff	# version 8.0 and above of icpc choke on multiply defined symbols
10660219820Sjeff	# if we add $predep_objects and $postdep_objects, however 7.1 and
10661219820Sjeff	# earlier do not add the objects themselves.
10662219820Sjeff	case `$CC -V 2>&1` in
10663219820Sjeff	*"Version 7."*)
10664219820Sjeff  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10665219820Sjeff  	  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'
10666219820Sjeff	  ;;
10667219820Sjeff	*)  # Version 8.0 or newer
10668219820Sjeff	  tmp_idyn=
10669219820Sjeff	  case $host_cpu in
10670219820Sjeff	    ia64*) tmp_idyn=' -i_dynamic';;
10671219820Sjeff	  esac
10672219820Sjeff  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10673219820Sjeff	  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'
10674219820Sjeff	  ;;
10675219820Sjeff	esac
10676219820Sjeff	archive_cmds_need_lc_CXX=no
10677219820Sjeff	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10678219820Sjeff	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10679219820Sjeff	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10680219820Sjeff	;;
10681219820Sjeff      pgCC*)
10682219820Sjeff        # Portland Group C++ compiler
10683219820Sjeff	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10684219820Sjeff  	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'
10685219820Sjeff
10686219820Sjeff	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10687219820Sjeff	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10688219820Sjeff	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'
10689219820Sjeff        ;;
10690219820Sjeff      cxx*)
10691219820Sjeff	# Compaq C++
10692219820Sjeff	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693219820Sjeff	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'
10694219820Sjeff
10695219820Sjeff	runpath_var=LD_RUN_PATH
10696219820Sjeff	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10697219820Sjeff	hardcode_libdir_separator_CXX=:
10698219820Sjeff
10699219820Sjeff	# Commands to make compiler produce verbose output that lists
10700219820Sjeff	# what "hidden" libraries, object files and flags are used when
10701219820Sjeff	# linking a shared library.
10702219820Sjeff	#
10703219820Sjeff	# There doesn't appear to be a way to prevent this compiler from
10704219820Sjeff	# explicitly linking system object files so we need to strip them
10705219820Sjeff	# from the output so that they don't get included in the library
10706219820Sjeff	# dependencies.
10707219820Sjeff	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'
10708219820Sjeff	;;
10709219820Sjeff    esac
10710219820Sjeff    ;;
10711219820Sjeff  lynxos*)
10712219820Sjeff    # FIXME: insert proper C++ library support
10713219820Sjeff    ld_shlibs_CXX=no
10714219820Sjeff    ;;
10715219820Sjeff  m88k*)
10716219820Sjeff    # FIXME: insert proper C++ library support
10717219820Sjeff    ld_shlibs_CXX=no
10718219820Sjeff    ;;
10719219820Sjeff  mvs*)
10720219820Sjeff    case $cc_basename in
10721219820Sjeff      cxx*)
10722219820Sjeff	# FIXME: insert proper C++ library support
10723219820Sjeff	ld_shlibs_CXX=no
10724219820Sjeff	;;
10725219820Sjeff      *)
10726219820Sjeff	# FIXME: insert proper C++ library support
10727219820Sjeff	ld_shlibs_CXX=no
10728219820Sjeff	;;
10729219820Sjeff    esac
10730219820Sjeff    ;;
10731219820Sjeff  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10732219820Sjeff    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10733219820Sjeff      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10734219820Sjeff      wlarc=
10735219820Sjeff      hardcode_libdir_flag_spec_CXX='-R$libdir'
10736219820Sjeff      hardcode_direct_CXX=yes
10737219820Sjeff      hardcode_shlibpath_var_CXX=no
10738219820Sjeff    fi
10739219820Sjeff    # Workaround some broken pre-1.5 toolchains
10740219820Sjeff    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10741219820Sjeff    ;;
10742219820Sjeff  openbsd2*)
10743219820Sjeff    # C++ shared libraries are fairly broken
10744219820Sjeff    ld_shlibs_CXX=no
10745219820Sjeff    ;;
10746219820Sjeff  openbsd*)
10747219820Sjeff    hardcode_direct_CXX=yes
10748219820Sjeff    hardcode_shlibpath_var_CXX=no
10749219820Sjeff    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10750219820Sjeff    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10751219820Sjeff    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10752219820Sjeff      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10753219820Sjeff      export_dynamic_flag_spec_CXX='${wl}-E'
10754219820Sjeff      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10755219820Sjeff    fi
10756219820Sjeff    output_verbose_link_cmd='echo'
10757219820Sjeff    ;;
10758219820Sjeff  osf3*)
10759219820Sjeff    case $cc_basename in
10760219820Sjeff      KCC*)
10761219820Sjeff	# Kuck and Associates, Inc. (KAI) C++ Compiler
10762219820Sjeff
10763219820Sjeff	# KCC will only create a shared library if the output file
10764219820Sjeff	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10765219820Sjeff	# to its proper name (with version) after linking.
10766219820Sjeff	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'
10767219820Sjeff
10768219820Sjeff	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10769219820Sjeff	hardcode_libdir_separator_CXX=:
10770219820Sjeff
10771219820Sjeff	# Archives containing C++ object files must be created using
10772219820Sjeff	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10773219820Sjeff	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10774219820Sjeff
10775219820Sjeff	;;
10776219820Sjeff      RCC*)
10777219820Sjeff	# Rational C++ 2.4.1
10778219820Sjeff	# FIXME: insert proper C++ library support
10779219820Sjeff	ld_shlibs_CXX=no
10780219820Sjeff	;;
10781219820Sjeff      cxx*)
10782219820Sjeff	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10783219820Sjeff	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'
10784219820Sjeff
10785219820Sjeff	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10786219820Sjeff	hardcode_libdir_separator_CXX=:
10787219820Sjeff
10788219820Sjeff	# Commands to make compiler produce verbose output that lists
10789219820Sjeff	# what "hidden" libraries, object files and flags are used when
10790219820Sjeff	# linking a shared library.
10791219820Sjeff	#
10792219820Sjeff	# There doesn't appear to be a way to prevent this compiler from
10793219820Sjeff	# explicitly linking system object files so we need to strip them
10794219820Sjeff	# from the output so that they don't get included in the library
10795219820Sjeff	# dependencies.
10796219820Sjeff	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'
10797219820Sjeff	;;
10798219820Sjeff      *)
10799219820Sjeff	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10800219820Sjeff	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10801219820Sjeff	  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'
10802219820Sjeff
10803219820Sjeff	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10804219820Sjeff	  hardcode_libdir_separator_CXX=:
10805219820Sjeff
10806219820Sjeff	  # Commands to make compiler produce verbose output that lists
10807219820Sjeff	  # what "hidden" libraries, object files and flags are used when
10808219820Sjeff	  # linking a shared library.
10809219820Sjeff	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10810219820Sjeff
10811219820Sjeff	else
10812219820Sjeff	  # FIXME: insert proper C++ library support
10813219820Sjeff	  ld_shlibs_CXX=no
10814219820Sjeff	fi
10815219820Sjeff	;;
10816219820Sjeff    esac
10817219820Sjeff    ;;
10818219820Sjeff  osf4* | osf5*)
10819219820Sjeff    case $cc_basename in
10820219820Sjeff      KCC*)
10821219820Sjeff	# Kuck and Associates, Inc. (KAI) C++ Compiler
10822219820Sjeff
10823219820Sjeff	# KCC will only create a shared library if the output file
10824219820Sjeff	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10825219820Sjeff	# to its proper name (with version) after linking.
10826219820Sjeff	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'
10827219820Sjeff
10828219820Sjeff	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10829219820Sjeff	hardcode_libdir_separator_CXX=:
10830219820Sjeff
10831219820Sjeff	# Archives containing C++ object files must be created using
10832219820Sjeff	# the KAI C++ compiler.
10833219820Sjeff	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10834219820Sjeff	;;
10835219820Sjeff      RCC*)
10836219820Sjeff	# Rational C++ 2.4.1
10837219820Sjeff	# FIXME: insert proper C++ library support
10838219820Sjeff	ld_shlibs_CXX=no
10839219820Sjeff	;;
10840219820Sjeff      cxx*)
10841219820Sjeff	allow_undefined_flag_CXX=' -expect_unresolved \*'
10842219820Sjeff	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'
10843219820Sjeff	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10844219820Sjeff	  echo "-hidden">> $lib.exp~
10845219820Sjeff	  $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~
10846219820Sjeff	  $rm $lib.exp'
10847219820Sjeff
10848219820Sjeff	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10849219820Sjeff	hardcode_libdir_separator_CXX=:
10850219820Sjeff
10851219820Sjeff	# Commands to make compiler produce verbose output that lists
10852219820Sjeff	# what "hidden" libraries, object files and flags are used when
10853219820Sjeff	# linking a shared library.
10854219820Sjeff	#
10855219820Sjeff	# There doesn't appear to be a way to prevent this compiler from
10856219820Sjeff	# explicitly linking system object files so we need to strip them
10857219820Sjeff	# from the output so that they don't get included in the library
10858219820Sjeff	# dependencies.
10859219820Sjeff	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'
10860219820Sjeff	;;
10861219820Sjeff      *)
10862219820Sjeff	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10863219820Sjeff	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10864219820Sjeff	 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'
10865219820Sjeff
10866219820Sjeff	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10867219820Sjeff	  hardcode_libdir_separator_CXX=:
10868219820Sjeff
10869219820Sjeff	  # Commands to make compiler produce verbose output that lists
10870219820Sjeff	  # what "hidden" libraries, object files and flags are used when
10871219820Sjeff	  # linking a shared library.
10872219820Sjeff	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10873219820Sjeff
10874219820Sjeff	else
10875219820Sjeff	  # FIXME: insert proper C++ library support
10876219820Sjeff	  ld_shlibs_CXX=no
10877219820Sjeff	fi
10878219820Sjeff	;;
10879219820Sjeff    esac
10880219820Sjeff    ;;
10881219820Sjeff  psos*)
10882219820Sjeff    # FIXME: insert proper C++ library support
10883219820Sjeff    ld_shlibs_CXX=no
10884219820Sjeff    ;;
10885219820Sjeff  sunos4*)
10886219820Sjeff    case $cc_basename in
10887219820Sjeff      CC*)
10888219820Sjeff	# Sun C++ 4.x
10889219820Sjeff	# FIXME: insert proper C++ library support
10890219820Sjeff	ld_shlibs_CXX=no
10891219820Sjeff	;;
10892219820Sjeff      lcc*)
10893219820Sjeff	# Lucid
10894219820Sjeff	# FIXME: insert proper C++ library support
10895219820Sjeff	ld_shlibs_CXX=no
10896219820Sjeff	;;
10897219820Sjeff      *)
10898219820Sjeff	# FIXME: insert proper C++ library support
10899219820Sjeff	ld_shlibs_CXX=no
10900219820Sjeff	;;
10901219820Sjeff    esac
10902219820Sjeff    ;;
10903219820Sjeff  solaris*)
10904219820Sjeff    case $cc_basename in
10905219820Sjeff      CC*)
10906219820Sjeff	# Sun C++ 4.2, 5.x and Centerline C++
10907219820Sjeff        archive_cmds_need_lc_CXX=yes
10908219820Sjeff	no_undefined_flag_CXX=' -zdefs'
10909219820Sjeff	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10910219820Sjeff	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10911219820Sjeff	$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'
10912219820Sjeff
10913219820Sjeff	hardcode_libdir_flag_spec_CXX='-R$libdir'
10914219820Sjeff	hardcode_shlibpath_var_CXX=no
10915219820Sjeff	case $host_os in
10916219820Sjeff	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10917219820Sjeff	  *)
10918219820Sjeff	    # The C++ compiler is used as linker so we must use $wl
10919219820Sjeff	    # flag to pass the commands to the underlying system
10920219820Sjeff	    # linker. We must also pass each convience library through
10921219820Sjeff	    # to the system linker between allextract/defaultextract.
10922219820Sjeff	    # The C++ compiler will combine linker options so we
10923219820Sjeff	    # cannot just pass the convience library names through
10924219820Sjeff	    # without $wl.
10925219820Sjeff	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10926219820Sjeff	    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'
10927219820Sjeff	    ;;
10928219820Sjeff	esac
10929219820Sjeff	link_all_deplibs_CXX=yes
10930219820Sjeff
10931219820Sjeff	output_verbose_link_cmd='echo'
10932219820Sjeff
10933219820Sjeff	# Archives containing C++ object files must be created using
10934219820Sjeff	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10935219820Sjeff	# necessary to make sure instantiated templates are included
10936219820Sjeff	# in the archive.
10937219820Sjeff	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10938219820Sjeff	;;
10939219820Sjeff      gcx*)
10940219820Sjeff	# Green Hills C++ Compiler
10941219820Sjeff	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10942219820Sjeff
10943219820Sjeff	# The C++ compiler must be used to create the archive.
10944219820Sjeff	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10945219820Sjeff	;;
10946219820Sjeff      *)
10947219820Sjeff	# GNU C++ compiler with Solaris linker
10948219820Sjeff	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10949219820Sjeff	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10950219820Sjeff	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10951219820Sjeff	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10952219820Sjeff	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10953219820Sjeff		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10954219820Sjeff
10955219820Sjeff	    # Commands to make compiler produce verbose output that lists
10956219820Sjeff	    # what "hidden" libraries, object files and flags are used when
10957219820Sjeff	    # linking a shared library.
10958219820Sjeff	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10959219820Sjeff	  else
10960219820Sjeff	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10961219820Sjeff	    # platform.
10962219820Sjeff	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10963219820Sjeff	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10964219820Sjeff		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10965219820Sjeff
10966219820Sjeff	    # Commands to make compiler produce verbose output that lists
10967219820Sjeff	    # what "hidden" libraries, object files and flags are used when
10968219820Sjeff	    # linking a shared library.
10969219820Sjeff	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10970219820Sjeff	  fi
10971219820Sjeff
10972219820Sjeff	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10973219820Sjeff	fi
10974219820Sjeff	;;
10975219820Sjeff    esac
10976219820Sjeff    ;;
10977219820Sjeff  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10978219820Sjeff    no_undefined_flag_CXX='${wl}-z,text'
10979219820Sjeff    archive_cmds_need_lc_CXX=no
10980219820Sjeff    hardcode_shlibpath_var_CXX=no
10981219820Sjeff    runpath_var='LD_RUN_PATH'
10982219820Sjeff
10983219820Sjeff    case $cc_basename in
10984219820Sjeff      CC*)
10985219820Sjeff	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10986219820Sjeff	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987219820Sjeff	;;
10988219820Sjeff      *)
10989219820Sjeff	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990219820Sjeff	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10991219820Sjeff	;;
10992219820Sjeff    esac
10993219820Sjeff    ;;
10994219820Sjeff  sysv5* | sco3.2v5* | sco5v6*)
10995219820Sjeff    # Note: We can NOT use -z defs as we might desire, because we do not
10996219820Sjeff    # link with -lc, and that would cause any symbols used from libc to
10997219820Sjeff    # always be unresolved, which means just about no library would
10998219820Sjeff    # ever link correctly.  If we're not using GNU ld we use -z text
10999219820Sjeff    # though, which does catch some bad symbols but isn't as heavy-handed
11000219820Sjeff    # as -z defs.
11001219820Sjeff    # For security reasons, it is highly recommended that you always
11002219820Sjeff    # use absolute paths for naming shared libraries, and exclude the
11003219820Sjeff    # DT_RUNPATH tag from executables and libraries.  But doing so
11004219820Sjeff    # requires that you compile everything twice, which is a pain.
11005219820Sjeff    # So that behaviour is only enabled if SCOABSPATH is set to a
11006219820Sjeff    # non-empty value in the environment.  Most likely only useful for
11007219820Sjeff    # creating official distributions of packages.
11008219820Sjeff    # This is a hack until libtool officially supports absolute path
11009219820Sjeff    # names for shared libraries.
11010219820Sjeff    no_undefined_flag_CXX='${wl}-z,text'
11011219820Sjeff    allow_undefined_flag_CXX='${wl}-z,nodefs'
11012219820Sjeff    archive_cmds_need_lc_CXX=no
11013219820Sjeff    hardcode_shlibpath_var_CXX=no
11014219820Sjeff    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11015219820Sjeff    hardcode_libdir_separator_CXX=':'
11016219820Sjeff    link_all_deplibs_CXX=yes
11017219820Sjeff    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11018219820Sjeff    runpath_var='LD_RUN_PATH'
11019219820Sjeff
11020219820Sjeff    case $cc_basename in
11021219820Sjeff      CC*)
11022219820Sjeff	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11023219820Sjeff	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11024219820Sjeff	;;
11025219820Sjeff      *)
11026219820Sjeff	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11027219820Sjeff	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11028219820Sjeff	;;
11029219820Sjeff    esac
11030219820Sjeff    ;;
11031219820Sjeff  tandem*)
11032219820Sjeff    case $cc_basename in
11033219820Sjeff      NCC*)
11034219820Sjeff	# NonStop-UX NCC 3.20
11035219820Sjeff	# FIXME: insert proper C++ library support
11036219820Sjeff	ld_shlibs_CXX=no
11037219820Sjeff	;;
11038219820Sjeff      *)
11039219820Sjeff	# FIXME: insert proper C++ library support
11040219820Sjeff	ld_shlibs_CXX=no
11041219820Sjeff	;;
11042219820Sjeff    esac
11043219820Sjeff    ;;
11044219820Sjeff  vxworks*)
11045219820Sjeff    # FIXME: insert proper C++ library support
11046219820Sjeff    ld_shlibs_CXX=no
11047219820Sjeff    ;;
11048219820Sjeff  *)
11049219820Sjeff    # FIXME: insert proper C++ library support
11050219820Sjeff    ld_shlibs_CXX=no
11051219820Sjeff    ;;
11052219820Sjeffesac
11053219820Sjeffecho "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11054219820Sjeffecho "${ECHO_T}$ld_shlibs_CXX" >&6
11055219820Sjefftest "$ld_shlibs_CXX" = no && can_build_shared=no
11056219820Sjeff
11057219820SjeffGCC_CXX="$GXX"
11058219820SjeffLD_CXX="$LD"
11059219820Sjeff
11060219820Sjeff
11061219820Sjeffcat > conftest.$ac_ext <<EOF
11062219820Sjeffclass Foo
11063219820Sjeff{
11064219820Sjeffpublic:
11065219820Sjeff  Foo (void) { a = 0; }
11066219820Sjeffprivate:
11067219820Sjeff  int a;
11068219820Sjeff};
11069219820SjeffEOF
11070219820Sjeff
11071219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072219820Sjeff  (eval $ac_compile) 2>&5
11073219820Sjeff  ac_status=$?
11074219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075219820Sjeff  (exit $ac_status); }; then
11076219820Sjeff  # Parse the compiler output and extract the necessary
11077219820Sjeff  # objects, libraries and library flags.
11078219820Sjeff
11079219820Sjeff  # Sentinel used to keep track of whether or not we are before
11080219820Sjeff  # the conftest object file.
11081219820Sjeff  pre_test_object_deps_done=no
11082219820Sjeff
11083219820Sjeff  # The `*' in the case matches for architectures that use `case' in
11084219820Sjeff  # $output_verbose_cmd can trigger glob expansion during the loop
11085219820Sjeff  # eval without this substitution.
11086219820Sjeff  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11087219820Sjeff
11088219820Sjeff  for p in `eval $output_verbose_link_cmd`; do
11089219820Sjeff    case $p in
11090219820Sjeff
11091219820Sjeff    -L* | -R* | -l*)
11092219820Sjeff       # Some compilers place space between "-{L,R}" and the path.
11093219820Sjeff       # Remove the space.
11094219820Sjeff       if test $p = "-L" \
11095219820Sjeff	  || test $p = "-R"; then
11096219820Sjeff	 prev=$p
11097219820Sjeff	 continue
11098219820Sjeff       else
11099219820Sjeff	 prev=
11100219820Sjeff       fi
11101219820Sjeff
11102219820Sjeff       if test "$pre_test_object_deps_done" = no; then
11103219820Sjeff	 case $p in
11104219820Sjeff	 -L* | -R*)
11105219820Sjeff	   # Internal compiler library paths should come after those
11106219820Sjeff	   # provided the user.  The postdeps already come after the
11107219820Sjeff	   # user supplied libs so there is no need to process them.
11108219820Sjeff	   if test -z "$compiler_lib_search_path_CXX"; then
11109219820Sjeff	     compiler_lib_search_path_CXX="${prev}${p}"
11110219820Sjeff	   else
11111219820Sjeff	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11112219820Sjeff	   fi
11113219820Sjeff	   ;;
11114219820Sjeff	 # The "-l" case would never come before the object being
11115219820Sjeff	 # linked, so don't bother handling this case.
11116219820Sjeff	 esac
11117219820Sjeff       else
11118219820Sjeff	 if test -z "$postdeps_CXX"; then
11119219820Sjeff	   postdeps_CXX="${prev}${p}"
11120219820Sjeff	 else
11121219820Sjeff	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11122219820Sjeff	 fi
11123219820Sjeff       fi
11124219820Sjeff       ;;
11125219820Sjeff
11126219820Sjeff    *.$objext)
11127219820Sjeff       # This assumes that the test object file only shows up
11128219820Sjeff       # once in the compiler output.
11129219820Sjeff       if test "$p" = "conftest.$objext"; then
11130219820Sjeff	 pre_test_object_deps_done=yes
11131219820Sjeff	 continue
11132219820Sjeff       fi
11133219820Sjeff
11134219820Sjeff       if test "$pre_test_object_deps_done" = no; then
11135219820Sjeff	 if test -z "$predep_objects_CXX"; then
11136219820Sjeff	   predep_objects_CXX="$p"
11137219820Sjeff	 else
11138219820Sjeff	   predep_objects_CXX="$predep_objects_CXX $p"
11139219820Sjeff	 fi
11140219820Sjeff       else
11141219820Sjeff	 if test -z "$postdep_objects_CXX"; then
11142219820Sjeff	   postdep_objects_CXX="$p"
11143219820Sjeff	 else
11144219820Sjeff	   postdep_objects_CXX="$postdep_objects_CXX $p"
11145219820Sjeff	 fi
11146219820Sjeff       fi
11147219820Sjeff       ;;
11148219820Sjeff
11149219820Sjeff    *) ;; # Ignore the rest.
11150219820Sjeff
11151219820Sjeff    esac
11152219820Sjeff  done
11153219820Sjeff
11154219820Sjeff  # Clean up.
11155219820Sjeff  rm -f a.out a.exe
11156219820Sjeffelse
11157219820Sjeff  echo "libtool.m4: error: problem compiling CXX test program"
11158219820Sjefffi
11159219820Sjeff
11160219820Sjeff$rm -f confest.$objext
11161219820Sjeff
11162219820Sjeff# PORTME: override above test on systems where it is broken
11163219820Sjeffcase $host_os in
11164219820Sjeffinterix3*)
11165219820Sjeff  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11166219820Sjeff  # hack all around it, let's just trust "g++" to DTRT.
11167219820Sjeff  predep_objects_CXX=
11168219820Sjeff  postdep_objects_CXX=
11169219820Sjeff  postdeps_CXX=
11170219820Sjeff  ;;
11171219820Sjeff
11172219820Sjeffsolaris*)
11173219820Sjeff  case $cc_basename in
11174219820Sjeff  CC*)
11175219820Sjeff    # Adding this requires a known-good setup of shared libraries for
11176219820Sjeff    # Sun compiler versions before 5.6, else PIC objects from an old
11177219820Sjeff    # archive will be linked into the output, leading to subtle bugs.
11178219820Sjeff    postdeps_CXX='-lCstd -lCrun'
11179219820Sjeff    ;;
11180219820Sjeff  esac
11181219820Sjeff  ;;
11182219820Sjeffesac
11183219820Sjeff
11184219820Sjeff
11185219820Sjeffcase " $postdeps_CXX " in
11186219820Sjeff*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11187219820Sjeffesac
11188219820Sjeff
11189219820Sjefflt_prog_compiler_wl_CXX=
11190219820Sjefflt_prog_compiler_pic_CXX=
11191219820Sjefflt_prog_compiler_static_CXX=
11192219820Sjeff
11193219820Sjeffecho "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11194219820Sjeffecho $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11195219820Sjeff
11196219820Sjeff  # C++ specific cases for pic, static, wl, etc.
11197219820Sjeff  if test "$GXX" = yes; then
11198219820Sjeff    lt_prog_compiler_wl_CXX='-Wl,'
11199219820Sjeff    lt_prog_compiler_static_CXX='-static'
11200219820Sjeff
11201219820Sjeff    case $host_os in
11202219820Sjeff    aix*)
11203219820Sjeff      # All AIX code is PIC.
11204219820Sjeff      if test "$host_cpu" = ia64; then
11205219820Sjeff	# AIX 5 now supports IA64 processor
11206219820Sjeff	lt_prog_compiler_static_CXX='-Bstatic'
11207219820Sjeff      fi
11208219820Sjeff      ;;
11209219820Sjeff    amigaos*)
11210219820Sjeff      # FIXME: we need at least 68020 code to build shared libraries, but
11211219820Sjeff      # adding the `-m68020' flag to GCC prevents building anything better,
11212219820Sjeff      # like `-m68040'.
11213219820Sjeff      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11214219820Sjeff      ;;
11215219820Sjeff    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11216219820Sjeff      # PIC is the default for these OSes.
11217219820Sjeff      ;;
11218219820Sjeff    mingw* | os2* | pw32*)
11219219820Sjeff      # This hack is so that the source file can tell whether it is being
11220219820Sjeff      # built for inclusion in a dll (and should export symbols for example).
11221219820Sjeff      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11222219820Sjeff      ;;
11223219820Sjeff    darwin* | rhapsody*)
11224219820Sjeff      # PIC is the default on this platform
11225219820Sjeff      # Common symbols not allowed in MH_DYLIB files
11226219820Sjeff      lt_prog_compiler_pic_CXX='-fno-common'
11227219820Sjeff      ;;
11228219820Sjeff    *djgpp*)
11229219820Sjeff      # DJGPP does not support shared libraries at all
11230219820Sjeff      lt_prog_compiler_pic_CXX=
11231219820Sjeff      ;;
11232219820Sjeff    interix3*)
11233219820Sjeff      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11234219820Sjeff      # Instead, we relocate shared libraries at runtime.
11235219820Sjeff      ;;
11236219820Sjeff    sysv4*MP*)
11237219820Sjeff      if test -d /usr/nec; then
11238219820Sjeff	lt_prog_compiler_pic_CXX=-Kconform_pic
11239219820Sjeff      fi
11240219820Sjeff      ;;
11241219820Sjeff    hpux*)
11242219820Sjeff      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11243219820Sjeff      # not for PA HP-UX.
11244219820Sjeff      case $host_cpu in
11245219820Sjeff      hppa*64*|ia64*)
11246219820Sjeff	;;
11247219820Sjeff      *)
11248219820Sjeff	lt_prog_compiler_pic_CXX='-fPIC'
11249219820Sjeff	;;
11250219820Sjeff      esac
11251219820Sjeff      ;;
11252219820Sjeff    *)
11253219820Sjeff      lt_prog_compiler_pic_CXX='-fPIC'
11254219820Sjeff      ;;
11255219820Sjeff    esac
11256219820Sjeff  else
11257219820Sjeff    case $host_os in
11258219820Sjeff      aix4* | aix5*)
11259219820Sjeff	# All AIX code is PIC.
11260219820Sjeff	if test "$host_cpu" = ia64; then
11261219820Sjeff	  # AIX 5 now supports IA64 processor
11262219820Sjeff	  lt_prog_compiler_static_CXX='-Bstatic'
11263219820Sjeff	else
11264219820Sjeff	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11265219820Sjeff	fi
11266219820Sjeff	;;
11267219820Sjeff      chorus*)
11268219820Sjeff	case $cc_basename in
11269219820Sjeff	cxch68*)
11270219820Sjeff	  # Green Hills C++ Compiler
11271219820Sjeff	  # _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"
11272219820Sjeff	  ;;
11273219820Sjeff	esac
11274219820Sjeff	;;
11275219820Sjeff       darwin*)
11276219820Sjeff         # PIC is the default on this platform
11277219820Sjeff         # Common symbols not allowed in MH_DYLIB files
11278219820Sjeff         case $cc_basename in
11279219820Sjeff           xlc*)
11280219820Sjeff           lt_prog_compiler_pic_CXX='-qnocommon'
11281219820Sjeff           lt_prog_compiler_wl_CXX='-Wl,'
11282219820Sjeff           ;;
11283219820Sjeff         esac
11284219820Sjeff       ;;
11285219820Sjeff      dgux*)
11286219820Sjeff	case $cc_basename in
11287219820Sjeff	  ec++*)
11288219820Sjeff	    lt_prog_compiler_pic_CXX='-KPIC'
11289219820Sjeff	    ;;
11290219820Sjeff	  ghcx*)
11291219820Sjeff	    # Green Hills C++ Compiler
11292219820Sjeff	    lt_prog_compiler_pic_CXX='-pic'
11293219820Sjeff	    ;;
11294219820Sjeff	  *)
11295219820Sjeff	    ;;
11296219820Sjeff	esac
11297219820Sjeff	;;
11298219820Sjeff      freebsd* | kfreebsd*-gnu | dragonfly*)
11299219820Sjeff	# FreeBSD uses GNU C++
11300219820Sjeff	;;
11301219820Sjeff      hpux9* | hpux10* | hpux11*)
11302219820Sjeff	case $cc_basename in
11303219820Sjeff	  CC*)
11304219820Sjeff	    lt_prog_compiler_wl_CXX='-Wl,'
11305219820Sjeff	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11306219820Sjeff	    if test "$host_cpu" != ia64; then
11307219820Sjeff	      lt_prog_compiler_pic_CXX='+Z'
11308219820Sjeff	    fi
11309219820Sjeff	    ;;
11310219820Sjeff	  aCC*)
11311219820Sjeff	    lt_prog_compiler_wl_CXX='-Wl,'
11312219820Sjeff	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11313219820Sjeff	    case $host_cpu in
11314219820Sjeff	    hppa*64*|ia64*)
11315219820Sjeff	      # +Z the default
11316219820Sjeff	      ;;
11317219820Sjeff	    *)
11318219820Sjeff	      lt_prog_compiler_pic_CXX='+Z'
11319219820Sjeff	      ;;
11320219820Sjeff	    esac
11321219820Sjeff	    ;;
11322219820Sjeff	  *)
11323219820Sjeff	    ;;
11324219820Sjeff	esac
11325219820Sjeff	;;
11326219820Sjeff      interix*)
11327219820Sjeff	# This is c89, which is MS Visual C++ (no shared libs)
11328219820Sjeff	# Anyone wants to do a port?
11329219820Sjeff	;;
11330219820Sjeff      irix5* | irix6* | nonstopux*)
11331219820Sjeff	case $cc_basename in
11332219820Sjeff	  CC*)
11333219820Sjeff	    lt_prog_compiler_wl_CXX='-Wl,'
11334219820Sjeff	    lt_prog_compiler_static_CXX='-non_shared'
11335219820Sjeff	    # CC pic flag -KPIC is the default.
11336219820Sjeff	    ;;
11337219820Sjeff	  *)
11338219820Sjeff	    ;;
11339219820Sjeff	esac
11340219820Sjeff	;;
11341219820Sjeff      linux*)
11342219820Sjeff	case $cc_basename in
11343219820Sjeff	  KCC*)
11344219820Sjeff	    # KAI C++ Compiler
11345219820Sjeff	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11346219820Sjeff	    lt_prog_compiler_pic_CXX='-fPIC'
11347219820Sjeff	    ;;
11348219820Sjeff	  icpc* | ecpc*)
11349219820Sjeff	    # Intel C++
11350219820Sjeff	    lt_prog_compiler_wl_CXX='-Wl,'
11351219820Sjeff	    lt_prog_compiler_pic_CXX='-KPIC'
11352219820Sjeff	    lt_prog_compiler_static_CXX='-static'
11353219820Sjeff	    ;;
11354219820Sjeff	  pgCC*)
11355219820Sjeff	    # Portland Group C++ compiler.
11356219820Sjeff	    lt_prog_compiler_wl_CXX='-Wl,'
11357219820Sjeff	    lt_prog_compiler_pic_CXX='-fpic'
11358219820Sjeff	    lt_prog_compiler_static_CXX='-Bstatic'
11359219820Sjeff	    ;;
11360219820Sjeff	  cxx*)
11361219820Sjeff	    # Compaq C++
11362219820Sjeff	    # Make sure the PIC flag is empty.  It appears that all Alpha
11363219820Sjeff	    # Linux and Compaq Tru64 Unix objects are PIC.
11364219820Sjeff	    lt_prog_compiler_pic_CXX=
11365219820Sjeff	    lt_prog_compiler_static_CXX='-non_shared'
11366219820Sjeff	    ;;
11367219820Sjeff	  *)
11368219820Sjeff	    ;;
11369219820Sjeff	esac
11370219820Sjeff	;;
11371219820Sjeff      lynxos*)
11372219820Sjeff	;;
11373219820Sjeff      m88k*)
11374219820Sjeff	;;
11375219820Sjeff      mvs*)
11376219820Sjeff	case $cc_basename in
11377219820Sjeff	  cxx*)
11378219820Sjeff	    lt_prog_compiler_pic_CXX='-W c,exportall'
11379219820Sjeff	    ;;
11380219820Sjeff	  *)
11381219820Sjeff	    ;;
11382219820Sjeff	esac
11383219820Sjeff	;;
11384219820Sjeff      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11385219820Sjeff	;;
11386219820Sjeff      osf3* | osf4* | osf5*)
11387219820Sjeff	case $cc_basename in
11388219820Sjeff	  KCC*)
11389219820Sjeff	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11390219820Sjeff	    ;;
11391219820Sjeff	  RCC*)
11392219820Sjeff	    # Rational C++ 2.4.1
11393219820Sjeff	    lt_prog_compiler_pic_CXX='-pic'
11394219820Sjeff	    ;;
11395219820Sjeff	  cxx*)
11396219820Sjeff	    # Digital/Compaq C++
11397219820Sjeff	    lt_prog_compiler_wl_CXX='-Wl,'
11398219820Sjeff	    # Make sure the PIC flag is empty.  It appears that all Alpha
11399219820Sjeff	    # Linux and Compaq Tru64 Unix objects are PIC.
11400219820Sjeff	    lt_prog_compiler_pic_CXX=
11401219820Sjeff	    lt_prog_compiler_static_CXX='-non_shared'
11402219820Sjeff	    ;;
11403219820Sjeff	  *)
11404219820Sjeff	    ;;
11405219820Sjeff	esac
11406219820Sjeff	;;
11407219820Sjeff      psos*)
11408219820Sjeff	;;
11409219820Sjeff      solaris*)
11410219820Sjeff	case $cc_basename in
11411219820Sjeff	  CC*)
11412219820Sjeff	    # Sun C++ 4.2, 5.x and Centerline C++
11413219820Sjeff	    lt_prog_compiler_pic_CXX='-KPIC'
11414219820Sjeff	    lt_prog_compiler_static_CXX='-Bstatic'
11415219820Sjeff	    lt_prog_compiler_wl_CXX='-Qoption ld '
11416219820Sjeff	    ;;
11417219820Sjeff	  gcx*)
11418219820Sjeff	    # Green Hills C++ Compiler
11419219820Sjeff	    lt_prog_compiler_pic_CXX='-PIC'
11420219820Sjeff	    ;;
11421219820Sjeff	  *)
11422219820Sjeff	    ;;
11423219820Sjeff	esac
11424219820Sjeff	;;
11425219820Sjeff      sunos4*)
11426219820Sjeff	case $cc_basename in
11427219820Sjeff	  CC*)
11428219820Sjeff	    # Sun C++ 4.x
11429219820Sjeff	    lt_prog_compiler_pic_CXX='-pic'
11430219820Sjeff	    lt_prog_compiler_static_CXX='-Bstatic'
11431219820Sjeff	    ;;
11432219820Sjeff	  lcc*)
11433219820Sjeff	    # Lucid
11434219820Sjeff	    lt_prog_compiler_pic_CXX='-pic'
11435219820Sjeff	    ;;
11436219820Sjeff	  *)
11437219820Sjeff	    ;;
11438219820Sjeff	esac
11439219820Sjeff	;;
11440219820Sjeff      tandem*)
11441219820Sjeff	case $cc_basename in
11442219820Sjeff	  NCC*)
11443219820Sjeff	    # NonStop-UX NCC 3.20
11444219820Sjeff	    lt_prog_compiler_pic_CXX='-KPIC'
11445219820Sjeff	    ;;
11446219820Sjeff	  *)
11447219820Sjeff	    ;;
11448219820Sjeff	esac
11449219820Sjeff	;;
11450219820Sjeff      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11451219820Sjeff	case $cc_basename in
11452219820Sjeff	  CC*)
11453219820Sjeff	    lt_prog_compiler_wl_CXX='-Wl,'
11454219820Sjeff	    lt_prog_compiler_pic_CXX='-KPIC'
11455219820Sjeff	    lt_prog_compiler_static_CXX='-Bstatic'
11456219820Sjeff	    ;;
11457219820Sjeff	esac
11458219820Sjeff	;;
11459219820Sjeff      vxworks*)
11460219820Sjeff	;;
11461219820Sjeff      *)
11462219820Sjeff	lt_prog_compiler_can_build_shared_CXX=no
11463219820Sjeff	;;
11464219820Sjeff    esac
11465219820Sjeff  fi
11466219820Sjeff
11467219820Sjeffecho "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11468219820Sjeffecho "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11469219820Sjeff
11470219820Sjeff#
11471219820Sjeff# Check to make sure the PIC flag actually works.
11472219820Sjeff#
11473219820Sjeffif test -n "$lt_prog_compiler_pic_CXX"; then
11474219820Sjeff
11475219820Sjeffecho "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11476219820Sjeffecho $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11477219820Sjeffif test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11478219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
11479219820Sjeffelse
11480219820Sjeff  lt_prog_compiler_pic_works_CXX=no
11481219820Sjeff  ac_outfile=conftest.$ac_objext
11482219820Sjeff   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11483219820Sjeff   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11484219820Sjeff   # Insert the option either (1) after the last *FLAGS variable, or
11485219820Sjeff   # (2) before a word containing "conftest.", or (3) at the end.
11486219820Sjeff   # Note that $ac_compile itself does not contain backslashes and begins
11487219820Sjeff   # with a dollar sign (not a hyphen), so the echo should work correctly.
11488219820Sjeff   # The option is referenced via a variable to avoid confusing sed.
11489219820Sjeff   lt_compile=`echo "$ac_compile" | $SED \
11490219820Sjeff   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11491219820Sjeff   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11492219820Sjeff   -e 's:$: $lt_compiler_flag:'`
11493219820Sjeff   (eval echo "\"\$as_me:11493: $lt_compile\"" >&5)
11494219820Sjeff   (eval "$lt_compile" 2>conftest.err)
11495219820Sjeff   ac_status=$?
11496219820Sjeff   cat conftest.err >&5
11497219820Sjeff   echo "$as_me:11497: \$? = $ac_status" >&5
11498219820Sjeff   if (exit $ac_status) && test -s "$ac_outfile"; then
11499219820Sjeff     # The compiler can only warn and ignore the option if not recognized
11500219820Sjeff     # So say no if there are warnings other than the usual output.
11501219820Sjeff     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11502219820Sjeff     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11503219820Sjeff     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11504219820Sjeff       lt_prog_compiler_pic_works_CXX=yes
11505219820Sjeff     fi
11506219820Sjeff   fi
11507219820Sjeff   $rm conftest*
11508219820Sjeff
11509219820Sjefffi
11510219820Sjeffecho "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11511219820Sjeffecho "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11512219820Sjeff
11513219820Sjeffif test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11514219820Sjeff    case $lt_prog_compiler_pic_CXX in
11515219820Sjeff     "" | " "*) ;;
11516219820Sjeff     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11517219820Sjeff     esac
11518219820Sjeffelse
11519219820Sjeff    lt_prog_compiler_pic_CXX=
11520219820Sjeff     lt_prog_compiler_can_build_shared_CXX=no
11521219820Sjefffi
11522219820Sjeff
11523219820Sjefffi
11524219820Sjeffcase $host_os in
11525219820Sjeff  # For platforms which do not support PIC, -DPIC is meaningless:
11526219820Sjeff  *djgpp*)
11527219820Sjeff    lt_prog_compiler_pic_CXX=
11528219820Sjeff    ;;
11529219820Sjeff  *)
11530219820Sjeff    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11531219820Sjeff    ;;
11532219820Sjeffesac
11533219820Sjeff
11534219820Sjeff#
11535219820Sjeff# Check to make sure the static flag actually works.
11536219820Sjeff#
11537219820Sjeffwl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11538219820Sjeffecho "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11539219820Sjeffecho $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11540219820Sjeffif test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11541219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
11542219820Sjeffelse
11543219820Sjeff  lt_prog_compiler_static_works_CXX=no
11544219820Sjeff   save_LDFLAGS="$LDFLAGS"
11545219820Sjeff   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11546219820Sjeff   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11547219820Sjeff   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11548219820Sjeff     # The linker can only warn and ignore the option if not recognized
11549219820Sjeff     # So say no if there are warnings
11550219820Sjeff     if test -s conftest.err; then
11551219820Sjeff       # Append any errors to the config.log.
11552219820Sjeff       cat conftest.err 1>&5
11553219820Sjeff       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11554219820Sjeff       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11555219820Sjeff       if diff conftest.exp conftest.er2 >/dev/null; then
11556219820Sjeff         lt_prog_compiler_static_works_CXX=yes
11557219820Sjeff       fi
11558219820Sjeff     else
11559219820Sjeff       lt_prog_compiler_static_works_CXX=yes
11560219820Sjeff     fi
11561219820Sjeff   fi
11562219820Sjeff   $rm conftest*
11563219820Sjeff   LDFLAGS="$save_LDFLAGS"
11564219820Sjeff
11565219820Sjefffi
11566219820Sjeffecho "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11567219820Sjeffecho "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11568219820Sjeff
11569219820Sjeffif test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11570219820Sjeff    :
11571219820Sjeffelse
11572219820Sjeff    lt_prog_compiler_static_CXX=
11573219820Sjefffi
11574219820Sjeff
11575219820Sjeff
11576219820Sjeffecho "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11577219820Sjeffecho $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11578219820Sjeffif test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11579219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
11580219820Sjeffelse
11581219820Sjeff  lt_cv_prog_compiler_c_o_CXX=no
11582219820Sjeff   $rm -r conftest 2>/dev/null
11583219820Sjeff   mkdir conftest
11584219820Sjeff   cd conftest
11585219820Sjeff   mkdir out
11586219820Sjeff   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11587219820Sjeff
11588219820Sjeff   lt_compiler_flag="-o out/conftest2.$ac_objext"
11589219820Sjeff   # Insert the option either (1) after the last *FLAGS variable, or
11590219820Sjeff   # (2) before a word containing "conftest.", or (3) at the end.
11591219820Sjeff   # Note that $ac_compile itself does not contain backslashes and begins
11592219820Sjeff   # with a dollar sign (not a hyphen), so the echo should work correctly.
11593219820Sjeff   lt_compile=`echo "$ac_compile" | $SED \
11594219820Sjeff   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11595219820Sjeff   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11596219820Sjeff   -e 's:$: $lt_compiler_flag:'`
11597219820Sjeff   (eval echo "\"\$as_me:11597: $lt_compile\"" >&5)
11598219820Sjeff   (eval "$lt_compile" 2>out/conftest.err)
11599219820Sjeff   ac_status=$?
11600219820Sjeff   cat out/conftest.err >&5
11601219820Sjeff   echo "$as_me:11601: \$? = $ac_status" >&5
11602219820Sjeff   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11603219820Sjeff   then
11604219820Sjeff     # The compiler can only warn and ignore the option if not recognized
11605219820Sjeff     # So say no if there are warnings
11606219820Sjeff     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11607219820Sjeff     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11608219820Sjeff     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11609219820Sjeff       lt_cv_prog_compiler_c_o_CXX=yes
11610219820Sjeff     fi
11611219820Sjeff   fi
11612219820Sjeff   chmod u+w . 2>&5
11613219820Sjeff   $rm conftest*
11614219820Sjeff   # SGI C++ compiler will create directory out/ii_files/ for
11615219820Sjeff   # template instantiation
11616219820Sjeff   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11617219820Sjeff   $rm out/* && rmdir out
11618219820Sjeff   cd ..
11619219820Sjeff   rmdir conftest
11620219820Sjeff   $rm conftest*
11621219820Sjeff
11622219820Sjefffi
11623219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11624219820Sjeffecho "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11625219820Sjeff
11626219820Sjeff
11627219820Sjeffhard_links="nottested"
11628219820Sjeffif test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11629219820Sjeff  # do not overwrite the value of need_locks provided by the user
11630219820Sjeff  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11631219820Sjeffecho $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11632219820Sjeff  hard_links=yes
11633219820Sjeff  $rm conftest*
11634219820Sjeff  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11635219820Sjeff  touch conftest.a
11636219820Sjeff  ln conftest.a conftest.b 2>&5 || hard_links=no
11637219820Sjeff  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11638219820Sjeff  echo "$as_me:$LINENO: result: $hard_links" >&5
11639219820Sjeffecho "${ECHO_T}$hard_links" >&6
11640219820Sjeff  if test "$hard_links" = no; then
11641219820Sjeff    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11642219820Sjeffecho "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11643219820Sjeff    need_locks=warn
11644219820Sjeff  fi
11645219820Sjeffelse
11646219820Sjeff  need_locks=no
11647219820Sjefffi
11648219820Sjeff
11649219820Sjeffecho "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11650219820Sjeffecho $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11651219820Sjeff
11652219820Sjeff  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11653219820Sjeff  case $host_os in
11654219820Sjeff  aix4* | aix5*)
11655219820Sjeff    # If we're using GNU nm, then we don't want the "-C" option.
11656219820Sjeff    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11657219820Sjeff    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11658219820Sjeff      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'
11659219820Sjeff    else
11660219820Sjeff      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'
11661219820Sjeff    fi
11662219820Sjeff    ;;
11663219820Sjeff  pw32*)
11664219820Sjeff    export_symbols_cmds_CXX="$ltdll_cmds"
11665219820Sjeff  ;;
11666219820Sjeff  cygwin* | mingw*)
11667219820Sjeff    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'
11668219820Sjeff  ;;
11669219820Sjeff  kfreebsd*-gnu)
11670219820Sjeff    link_all_deplibs_CXX=no
11671219820Sjeff  ;;
11672219820Sjeff  linux*)
11673219820Sjeff    link_all_deplibs_CXX=no
11674219820Sjeff  ;;
11675219820Sjeff  *)
11676219820Sjeff    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11677219820Sjeff  ;;
11678219820Sjeff  esac
11679219820Sjeff
11680219820Sjeffecho "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11681219820Sjeffecho "${ECHO_T}$ld_shlibs_CXX" >&6
11682219820Sjefftest "$ld_shlibs_CXX" = no && can_build_shared=no
11683219820Sjeff
11684219820Sjeff#
11685219820Sjeff# Do we need to explicitly link libc?
11686219820Sjeff#
11687219820Sjeffcase "x$archive_cmds_need_lc_CXX" in
11688219820Sjeffx|xyes)
11689219820Sjeff  # Assume -lc should be added
11690219820Sjeff  archive_cmds_need_lc_CXX=yes
11691219820Sjeff
11692219820Sjeff  if test "$enable_shared" = yes && test "$GCC" = yes; then
11693219820Sjeff    case $archive_cmds_CXX in
11694219820Sjeff    *'~'*)
11695219820Sjeff      # FIXME: we may have to deal with multi-command sequences.
11696219820Sjeff      ;;
11697219820Sjeff    '$CC '*)
11698219820Sjeff      # Test whether the compiler implicitly links with -lc since on some
11699219820Sjeff      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11700219820Sjeff      # to ld, don't add -lc before -lgcc.
11701219820Sjeff      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11702219820Sjeffecho $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11703219820Sjeff      $rm conftest*
11704219820Sjeff      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11705219820Sjeff
11706219820Sjeff      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11707219820Sjeff  (eval $ac_compile) 2>&5
11708219820Sjeff  ac_status=$?
11709219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710219820Sjeff  (exit $ac_status); } 2>conftest.err; then
11711219820Sjeff        soname=conftest
11712219820Sjeff        lib=conftest
11713219820Sjeff        libobjs=conftest.$ac_objext
11714219820Sjeff        deplibs=
11715219820Sjeff        wl=$lt_prog_compiler_wl_CXX
11716219820Sjeff	pic_flag=$lt_prog_compiler_pic_CXX
11717219820Sjeff        compiler_flags=-v
11718219820Sjeff        linker_flags=-v
11719219820Sjeff        verstring=
11720219820Sjeff        output_objdir=.
11721219820Sjeff        libname=conftest
11722219820Sjeff        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11723219820Sjeff        allow_undefined_flag_CXX=
11724219820Sjeff        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11725219820Sjeff  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11726219820Sjeff  ac_status=$?
11727219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728219820Sjeff  (exit $ac_status); }
11729219820Sjeff        then
11730219820Sjeff	  archive_cmds_need_lc_CXX=no
11731219820Sjeff        else
11732219820Sjeff	  archive_cmds_need_lc_CXX=yes
11733219820Sjeff        fi
11734219820Sjeff        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11735219820Sjeff      else
11736219820Sjeff        cat conftest.err 1>&5
11737219820Sjeff      fi
11738219820Sjeff      $rm conftest*
11739219820Sjeff      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11740219820Sjeffecho "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11741219820Sjeff      ;;
11742219820Sjeff    esac
11743219820Sjeff  fi
11744219820Sjeff  ;;
11745219820Sjeffesac
11746219820Sjeff
11747219820Sjeffecho "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11748219820Sjeffecho $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11749219820Sjefflibrary_names_spec=
11750219820Sjefflibname_spec='lib$name'
11751219820Sjeffsoname_spec=
11752219820Sjeffshrext_cmds=".so"
11753219820Sjeffpostinstall_cmds=
11754219820Sjeffpostuninstall_cmds=
11755219820Sjefffinish_cmds=
11756219820Sjefffinish_eval=
11757219820Sjeffshlibpath_var=
11758219820Sjeffshlibpath_overrides_runpath=unknown
11759219820Sjeffversion_type=none
11760219820Sjeffdynamic_linker="$host_os ld.so"
11761219820Sjeffsys_lib_dlsearch_path_spec="/lib /usr/lib"
11762219820Sjeffif test "$GCC" = yes; then
11763219820Sjeff  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11764219820Sjeff  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11765219820Sjeff    # if the path contains ";" then we assume it to be the separator
11766219820Sjeff    # otherwise default to the standard path separator (i.e. ":") - it is
11767219820Sjeff    # assumed that no part of a normal pathname contains ";" but that should
11768219820Sjeff    # okay in the real world where ";" in dirpaths is itself problematic.
11769219820Sjeff    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11770219820Sjeff  else
11771219820Sjeff    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11772219820Sjeff  fi
11773219820Sjeffelse
11774219820Sjeff  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11775219820Sjefffi
11776219820Sjeffneed_lib_prefix=unknown
11777219820Sjeffhardcode_into_libs=no
11778219820Sjeff
11779219820Sjeff# when you set need_version to no, make sure it does not cause -set_version
11780219820Sjeff# flags to be left without arguments
11781219820Sjeffneed_version=unknown
11782219820Sjeff
11783219820Sjeffcase $host_os in
11784219820Sjeffaix3*)
11785219820Sjeff  version_type=linux
11786219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11787219820Sjeff  shlibpath_var=LIBPATH
11788219820Sjeff
11789219820Sjeff  # AIX 3 has no versioning support, so we append a major version to the name.
11790219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
11791219820Sjeff  ;;
11792219820Sjeff
11793219820Sjeffaix4* | aix5*)
11794219820Sjeff  version_type=linux
11795219820Sjeff  need_lib_prefix=no
11796219820Sjeff  need_version=no
11797219820Sjeff  hardcode_into_libs=yes
11798219820Sjeff  if test "$host_cpu" = ia64; then
11799219820Sjeff    # AIX 5 supports IA64
11800219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11801219820Sjeff    shlibpath_var=LD_LIBRARY_PATH
11802219820Sjeff  else
11803219820Sjeff    # With GCC up to 2.95.x, collect2 would create an import file
11804219820Sjeff    # for dependence libraries.  The import file would start with
11805219820Sjeff    # the line `#! .'.  This would cause the generated library to
11806219820Sjeff    # depend on `.', always an invalid library.  This was fixed in
11807219820Sjeff    # development snapshots of GCC prior to 3.0.
11808219820Sjeff    case $host_os in
11809219820Sjeff      aix4 | aix4.[01] | aix4.[01].*)
11810219820Sjeff      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11811219820Sjeff	   echo ' yes '
11812219820Sjeff	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11813219820Sjeff	:
11814219820Sjeff      else
11815219820Sjeff	can_build_shared=no
11816219820Sjeff      fi
11817219820Sjeff      ;;
11818219820Sjeff    esac
11819219820Sjeff    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11820219820Sjeff    # soname into executable. Probably we can add versioning support to
11821219820Sjeff    # collect2, so additional links can be useful in future.
11822219820Sjeff    if test "$aix_use_runtimelinking" = yes; then
11823219820Sjeff      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11824219820Sjeff      # instead of lib<name>.a to let people know that these are not
11825219820Sjeff      # typical AIX shared libraries.
11826219820Sjeff      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827219820Sjeff    else
11828219820Sjeff      # We preserve .a as extension for shared libraries through AIX4.2
11829219820Sjeff      # and later when we are not doing run time linking.
11830219820Sjeff      library_names_spec='${libname}${release}.a $libname.a'
11831219820Sjeff      soname_spec='${libname}${release}${shared_ext}$major'
11832219820Sjeff    fi
11833219820Sjeff    shlibpath_var=LIBPATH
11834219820Sjeff  fi
11835219820Sjeff  ;;
11836219820Sjeff
11837219820Sjeffamigaos*)
11838219820Sjeff  library_names_spec='$libname.ixlibrary $libname.a'
11839219820Sjeff  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11840219820Sjeff  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'
11841219820Sjeff  ;;
11842219820Sjeff
11843219820Sjeffbeos*)
11844219820Sjeff  library_names_spec='${libname}${shared_ext}'
11845219820Sjeff  dynamic_linker="$host_os ld.so"
11846219820Sjeff  shlibpath_var=LIBRARY_PATH
11847219820Sjeff  ;;
11848219820Sjeff
11849219820Sjeffbsdi[45]*)
11850219820Sjeff  version_type=linux
11851219820Sjeff  need_version=no
11852219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
11854219820Sjeff  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11855219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
11856219820Sjeff  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11857219820Sjeff  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11858219820Sjeff  # the default ld.so.conf also contains /usr/contrib/lib and
11859219820Sjeff  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11860219820Sjeff  # libtool to hard-code these into programs
11861219820Sjeff  ;;
11862219820Sjeff
11863219820Sjeffcygwin* | mingw* | pw32*)
11864219820Sjeff  version_type=windows
11865219820Sjeff  shrext_cmds=".dll"
11866219820Sjeff  need_version=no
11867219820Sjeff  need_lib_prefix=no
11868219820Sjeff
11869219820Sjeff  case $GCC,$host_os in
11870219820Sjeff  yes,cygwin* | yes,mingw* | yes,pw32*)
11871219820Sjeff    library_names_spec='$libname.dll.a'
11872219820Sjeff    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11873219820Sjeff    postinstall_cmds='base_file=`basename \${file}`~
11874219820Sjeff      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11875219820Sjeff      dldir=$destdir/`dirname \$dlpath`~
11876219820Sjeff      test -d \$dldir || mkdir -p \$dldir~
11877219820Sjeff      $install_prog $dir/$dlname \$dldir/$dlname~
11878219820Sjeff      chmod a+x \$dldir/$dlname'
11879219820Sjeff    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11880219820Sjeff      dlpath=$dir/\$dldll~
11881219820Sjeff       $rm \$dlpath'
11882219820Sjeff    shlibpath_overrides_runpath=yes
11883219820Sjeff
11884219820Sjeff    case $host_os in
11885219820Sjeff    cygwin*)
11886219820Sjeff      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11887219820Sjeff      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11888219820Sjeff      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11889219820Sjeff      ;;
11890219820Sjeff    mingw*)
11891219820Sjeff      # MinGW DLLs use traditional 'lib' prefix
11892219820Sjeff      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11893219820Sjeff      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11894219820Sjeff      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11895219820Sjeff        # It is most probably a Windows format PATH printed by
11896219820Sjeff        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11897219820Sjeff        # path with ; separators, and with drive letters. We can handle the
11898219820Sjeff        # drive letters (cygwin fileutils understands them), so leave them,
11899219820Sjeff        # especially as we might pass files found there to a mingw objdump,
11900219820Sjeff        # which wouldn't understand a cygwinified path. Ahh.
11901219820Sjeff        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11902219820Sjeff      else
11903219820Sjeff        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11904219820Sjeff      fi
11905219820Sjeff      ;;
11906219820Sjeff    pw32*)
11907219820Sjeff      # pw32 DLLs use 'pw' prefix rather than 'lib'
11908219820Sjeff      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11909219820Sjeff      ;;
11910219820Sjeff    esac
11911219820Sjeff    ;;
11912219820Sjeff
11913219820Sjeff  *)
11914219820Sjeff    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11915219820Sjeff    ;;
11916219820Sjeff  esac
11917219820Sjeff  dynamic_linker='Win32 ld.exe'
11918219820Sjeff  # FIXME: first we should search . and the directory the executable is in
11919219820Sjeff  shlibpath_var=PATH
11920219820Sjeff  ;;
11921219820Sjeff
11922219820Sjeffdarwin* | rhapsody*)
11923219820Sjeff  dynamic_linker="$host_os dyld"
11924219820Sjeff  version_type=darwin
11925219820Sjeff  need_lib_prefix=no
11926219820Sjeff  need_version=no
11927219820Sjeff  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11928219820Sjeff  soname_spec='${libname}${release}${major}$shared_ext'
11929219820Sjeff  shlibpath_overrides_runpath=yes
11930219820Sjeff  shlibpath_var=DYLD_LIBRARY_PATH
11931219820Sjeff  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11932219820Sjeff  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11933219820Sjeff  if test "$GCC" = yes; then
11934219820Sjeff    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"`
11935219820Sjeff  else
11936219820Sjeff    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11937219820Sjeff  fi
11938219820Sjeff  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11939219820Sjeff  ;;
11940219820Sjeff
11941219820Sjeffdgux*)
11942219820Sjeff  version_type=linux
11943219820Sjeff  need_lib_prefix=no
11944219820Sjeff  need_version=no
11945219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11946219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
11947219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
11948219820Sjeff  ;;
11949219820Sjeff
11950219820Sjefffreebsd1*)
11951219820Sjeff  dynamic_linker=no
11952219820Sjeff  ;;
11953219820Sjeff
11954219820Sjeffkfreebsd*-gnu)
11955219820Sjeff  version_type=linux
11956219820Sjeff  need_lib_prefix=no
11957219820Sjeff  need_version=no
11958219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11959219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
11960219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
11961219820Sjeff  shlibpath_overrides_runpath=no
11962219820Sjeff  hardcode_into_libs=yes
11963219820Sjeff  dynamic_linker='GNU ld.so'
11964219820Sjeff  ;;
11965219820Sjeff
11966219820Sjefffreebsd* | dragonfly*)
11967219820Sjeff  # DragonFly does not have aout.  When/if they implement a new
11968219820Sjeff  # versioning mechanism, adjust this.
11969219820Sjeff  if test -x /usr/bin/objformat; then
11970219820Sjeff    objformat=`/usr/bin/objformat`
11971219820Sjeff  else
11972219820Sjeff    case $host_os in
11973219820Sjeff    freebsd[123]*) objformat=aout ;;
11974219820Sjeff    *) objformat=elf ;;
11975219820Sjeff    esac
11976219820Sjeff  fi
11977219820Sjeff  version_type=freebsd-$objformat
11978219820Sjeff  case $version_type in
11979219820Sjeff    freebsd-elf*)
11980219820Sjeff      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11981219820Sjeff      need_version=no
11982219820Sjeff      need_lib_prefix=no
11983219820Sjeff      ;;
11984219820Sjeff    freebsd-*)
11985219820Sjeff      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11986219820Sjeff      need_version=yes
11987219820Sjeff      ;;
11988219820Sjeff  esac
11989219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
11990219820Sjeff  case $host_os in
11991219820Sjeff  freebsd2*)
11992219820Sjeff    shlibpath_overrides_runpath=yes
11993219820Sjeff    ;;
11994219820Sjeff  freebsd3.[01]* | freebsdelf3.[01]*)
11995219820Sjeff    shlibpath_overrides_runpath=yes
11996219820Sjeff    hardcode_into_libs=yes
11997219820Sjeff    ;;
11998219820Sjeff  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11999219820Sjeff  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12000219820Sjeff    shlibpath_overrides_runpath=no
12001219820Sjeff    hardcode_into_libs=yes
12002219820Sjeff    ;;
12003219820Sjeff  freebsd*) # from 4.6 on
12004219820Sjeff    shlibpath_overrides_runpath=yes
12005219820Sjeff    hardcode_into_libs=yes
12006219820Sjeff    ;;
12007219820Sjeff  esac
12008219820Sjeff  ;;
12009219820Sjeff
12010219820Sjeffgnu*)
12011219820Sjeff  version_type=linux
12012219820Sjeff  need_lib_prefix=no
12013219820Sjeff  need_version=no
12014219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12015219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
12016219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12017219820Sjeff  hardcode_into_libs=yes
12018219820Sjeff  ;;
12019219820Sjeff
12020219820Sjeffhpux9* | hpux10* | hpux11*)
12021219820Sjeff  # Give a soname corresponding to the major version so that dld.sl refuses to
12022219820Sjeff  # link against other versions.
12023219820Sjeff  version_type=sunos
12024219820Sjeff  need_lib_prefix=no
12025219820Sjeff  need_version=no
12026219820Sjeff  case $host_cpu in
12027219820Sjeff  ia64*)
12028219820Sjeff    shrext_cmds='.so'
12029219820Sjeff    hardcode_into_libs=yes
12030219820Sjeff    dynamic_linker="$host_os dld.so"
12031219820Sjeff    shlibpath_var=LD_LIBRARY_PATH
12032219820Sjeff    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12033219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034219820Sjeff    soname_spec='${libname}${release}${shared_ext}$major'
12035219820Sjeff    if test "X$HPUX_IA64_MODE" = X32; then
12036219820Sjeff      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12037219820Sjeff    else
12038219820Sjeff      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12039219820Sjeff    fi
12040219820Sjeff    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12041219820Sjeff    ;;
12042219820Sjeff   hppa*64*)
12043219820Sjeff     shrext_cmds='.sl'
12044219820Sjeff     hardcode_into_libs=yes
12045219820Sjeff     dynamic_linker="$host_os dld.sl"
12046219820Sjeff     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12047219820Sjeff     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12048219820Sjeff     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049219820Sjeff     soname_spec='${libname}${release}${shared_ext}$major'
12050219820Sjeff     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12051219820Sjeff     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12052219820Sjeff     ;;
12053219820Sjeff   *)
12054219820Sjeff    shrext_cmds='.sl'
12055219820Sjeff    dynamic_linker="$host_os dld.sl"
12056219820Sjeff    shlibpath_var=SHLIB_PATH
12057219820Sjeff    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12058219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12059219820Sjeff    soname_spec='${libname}${release}${shared_ext}$major'
12060219820Sjeff    ;;
12061219820Sjeff  esac
12062219820Sjeff  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12063219820Sjeff  postinstall_cmds='chmod 555 $lib'
12064219820Sjeff  ;;
12065219820Sjeff
12066219820Sjeffinterix3*)
12067219820Sjeff  version_type=linux
12068219820Sjeff  need_lib_prefix=no
12069219820Sjeff  need_version=no
12070219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12071219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
12072219820Sjeff  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12073219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12074219820Sjeff  shlibpath_overrides_runpath=no
12075219820Sjeff  hardcode_into_libs=yes
12076219820Sjeff  ;;
12077219820Sjeff
12078219820Sjeffirix5* | irix6* | nonstopux*)
12079219820Sjeff  case $host_os in
12080219820Sjeff    nonstopux*) version_type=nonstopux ;;
12081219820Sjeff    *)
12082219820Sjeff	if test "$lt_cv_prog_gnu_ld" = yes; then
12083219820Sjeff		version_type=linux
12084219820Sjeff	else
12085219820Sjeff		version_type=irix
12086219820Sjeff	fi ;;
12087219820Sjeff  esac
12088219820Sjeff  need_lib_prefix=no
12089219820Sjeff  need_version=no
12090219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
12091219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12092219820Sjeff  case $host_os in
12093219820Sjeff  irix5* | nonstopux*)
12094219820Sjeff    libsuff= shlibsuff=
12095219820Sjeff    ;;
12096219820Sjeff  *)
12097219820Sjeff    case $LD in # libtool.m4 will add one of these switches to LD
12098219820Sjeff    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12099219820Sjeff      libsuff= shlibsuff= libmagic=32-bit;;
12100219820Sjeff    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12101219820Sjeff      libsuff=32 shlibsuff=N32 libmagic=N32;;
12102219820Sjeff    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12103219820Sjeff      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12104219820Sjeff    *) libsuff= shlibsuff= libmagic=never-match;;
12105219820Sjeff    esac
12106219820Sjeff    ;;
12107219820Sjeff  esac
12108219820Sjeff  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12109219820Sjeff  shlibpath_overrides_runpath=no
12110219820Sjeff  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12111219820Sjeff  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12112219820Sjeff  hardcode_into_libs=yes
12113219820Sjeff  ;;
12114219820Sjeff
12115219820Sjeff# No shared lib support for Linux oldld, aout, or coff.
12116219820Sjefflinux*oldld* | linux*aout* | linux*coff*)
12117219820Sjeff  dynamic_linker=no
12118219820Sjeff  ;;
12119219820Sjeff
12120219820Sjeff# This must be Linux ELF.
12121219820Sjefflinux*)
12122219820Sjeff  version_type=linux
12123219820Sjeff  need_lib_prefix=no
12124219820Sjeff  need_version=no
12125219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12126219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
12127219820Sjeff  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12128219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12129219820Sjeff  shlibpath_overrides_runpath=no
12130219820Sjeff  # This implies no fast_install, which is unacceptable.
12131219820Sjeff  # Some rework will be needed to allow for fast_install
12132219820Sjeff  # before this can be enabled.
12133219820Sjeff  hardcode_into_libs=yes
12134219820Sjeff
12135219820Sjeff  # Append ld.so.conf contents to the search path
12136219820Sjeff  if test -f /etc/ld.so.conf; then
12137219820Sjeff    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' ' '`
12138219820Sjeff    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12139219820Sjeff  fi
12140219820Sjeff
12141219820Sjeff  # We used to test for /lib/ld.so.1 and disable shared libraries on
12142219820Sjeff  # powerpc, because MkLinux only supported shared libraries with the
12143219820Sjeff  # GNU dynamic linker.  Since this was broken with cross compilers,
12144219820Sjeff  # most powerpc-linux boxes support dynamic linking these days and
12145219820Sjeff  # people can always --disable-shared, the test was removed, and we
12146219820Sjeff  # assume the GNU/Linux dynamic linker is in use.
12147219820Sjeff  dynamic_linker='GNU/Linux ld.so'
12148219820Sjeff  ;;
12149219820Sjeff
12150219820Sjeffnetbsdelf*-gnu)
12151219820Sjeff  version_type=linux
12152219820Sjeff  need_lib_prefix=no
12153219820Sjeff  need_version=no
12154219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12155219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
12156219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12157219820Sjeff  shlibpath_overrides_runpath=no
12158219820Sjeff  hardcode_into_libs=yes
12159219820Sjeff  dynamic_linker='NetBSD ld.elf_so'
12160219820Sjeff  ;;
12161219820Sjeff
12162219820Sjeffknetbsd*-gnu)
12163219820Sjeff  version_type=linux
12164219820Sjeff  need_lib_prefix=no
12165219820Sjeff  need_version=no
12166219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12167219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
12168219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12169219820Sjeff  shlibpath_overrides_runpath=no
12170219820Sjeff  hardcode_into_libs=yes
12171219820Sjeff  dynamic_linker='GNU ld.so'
12172219820Sjeff  ;;
12173219820Sjeff
12174219820Sjeffnetbsd*)
12175219820Sjeff  version_type=sunos
12176219820Sjeff  need_lib_prefix=no
12177219820Sjeff  need_version=no
12178219820Sjeff  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12179219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12180219820Sjeff    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12181219820Sjeff    dynamic_linker='NetBSD (a.out) ld.so'
12182219820Sjeff  else
12183219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12184219820Sjeff    soname_spec='${libname}${release}${shared_ext}$major'
12185219820Sjeff    dynamic_linker='NetBSD ld.elf_so'
12186219820Sjeff  fi
12187219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12188219820Sjeff  shlibpath_overrides_runpath=yes
12189219820Sjeff  hardcode_into_libs=yes
12190219820Sjeff  ;;
12191219820Sjeff
12192219820Sjeffnewsos6)
12193219820Sjeff  version_type=linux
12194219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12196219820Sjeff  shlibpath_overrides_runpath=yes
12197219820Sjeff  ;;
12198219820Sjeff
12199219820Sjeffnto-qnx*)
12200219820Sjeff  version_type=linux
12201219820Sjeff  need_lib_prefix=no
12202219820Sjeff  need_version=no
12203219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12204219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
12205219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12206219820Sjeff  shlibpath_overrides_runpath=yes
12207219820Sjeff  ;;
12208219820Sjeff
12209219820Sjeffopenbsd*)
12210219820Sjeff  version_type=sunos
12211219820Sjeff  sys_lib_dlsearch_path_spec="/usr/lib"
12212219820Sjeff  need_lib_prefix=no
12213219820Sjeff  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12214219820Sjeff  case $host_os in
12215219820Sjeff    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12216219820Sjeff    *)                         need_version=no  ;;
12217219820Sjeff  esac
12218219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12219219820Sjeff  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12220219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12221219820Sjeff  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12222219820Sjeff    case $host_os in
12223219820Sjeff      openbsd2.[89] | openbsd2.[89].*)
12224219820Sjeff	shlibpath_overrides_runpath=no
12225219820Sjeff	;;
12226219820Sjeff      *)
12227219820Sjeff	shlibpath_overrides_runpath=yes
12228219820Sjeff	;;
12229219820Sjeff      esac
12230219820Sjeff  else
12231219820Sjeff    shlibpath_overrides_runpath=yes
12232219820Sjeff  fi
12233219820Sjeff  ;;
12234219820Sjeff
12235219820Sjeffos2*)
12236219820Sjeff  libname_spec='$name'
12237219820Sjeff  shrext_cmds=".dll"
12238219820Sjeff  need_lib_prefix=no
12239219820Sjeff  library_names_spec='$libname${shared_ext} $libname.a'
12240219820Sjeff  dynamic_linker='OS/2 ld.exe'
12241219820Sjeff  shlibpath_var=LIBPATH
12242219820Sjeff  ;;
12243219820Sjeff
12244219820Sjeffosf3* | osf4* | osf5*)
12245219820Sjeff  version_type=osf
12246219820Sjeff  need_lib_prefix=no
12247219820Sjeff  need_version=no
12248219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
12249219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12250219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12251219820Sjeff  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12252219820Sjeff  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12253219820Sjeff  ;;
12254219820Sjeff
12255219820Sjeffsolaris*)
12256219820Sjeff  version_type=linux
12257219820Sjeff  need_lib_prefix=no
12258219820Sjeff  need_version=no
12259219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
12261219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12262219820Sjeff  shlibpath_overrides_runpath=yes
12263219820Sjeff  hardcode_into_libs=yes
12264219820Sjeff  # ldd complains unless libraries are executable
12265219820Sjeff  postinstall_cmds='chmod +x $lib'
12266219820Sjeff  ;;
12267219820Sjeff
12268219820Sjeffsunos4*)
12269219820Sjeff  version_type=sunos
12270219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12271219820Sjeff  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12272219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12273219820Sjeff  shlibpath_overrides_runpath=yes
12274219820Sjeff  if test "$with_gnu_ld" = yes; then
12275219820Sjeff    need_lib_prefix=no
12276219820Sjeff  fi
12277219820Sjeff  need_version=yes
12278219820Sjeff  ;;
12279219820Sjeff
12280219820Sjeffsysv4 | sysv4.3*)
12281219820Sjeff  version_type=linux
12282219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12283219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
12284219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12285219820Sjeff  case $host_vendor in
12286219820Sjeff    sni)
12287219820Sjeff      shlibpath_overrides_runpath=no
12288219820Sjeff      need_lib_prefix=no
12289219820Sjeff      export_dynamic_flag_spec='${wl}-Blargedynsym'
12290219820Sjeff      runpath_var=LD_RUN_PATH
12291219820Sjeff      ;;
12292219820Sjeff    siemens)
12293219820Sjeff      need_lib_prefix=no
12294219820Sjeff      ;;
12295219820Sjeff    motorola)
12296219820Sjeff      need_lib_prefix=no
12297219820Sjeff      need_version=no
12298219820Sjeff      shlibpath_overrides_runpath=no
12299219820Sjeff      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12300219820Sjeff      ;;
12301219820Sjeff  esac
12302219820Sjeff  ;;
12303219820Sjeff
12304219820Sjeffsysv4*MP*)
12305219820Sjeff  if test -d /usr/nec ;then
12306219820Sjeff    version_type=linux
12307219820Sjeff    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12308219820Sjeff    soname_spec='$libname${shared_ext}.$major'
12309219820Sjeff    shlibpath_var=LD_LIBRARY_PATH
12310219820Sjeff  fi
12311219820Sjeff  ;;
12312219820Sjeff
12313219820Sjeffsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12314219820Sjeff  version_type=freebsd-elf
12315219820Sjeff  need_lib_prefix=no
12316219820Sjeff  need_version=no
12317219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12318219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
12319219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12320219820Sjeff  hardcode_into_libs=yes
12321219820Sjeff  if test "$with_gnu_ld" = yes; then
12322219820Sjeff    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12323219820Sjeff    shlibpath_overrides_runpath=no
12324219820Sjeff  else
12325219820Sjeff    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12326219820Sjeff    shlibpath_overrides_runpath=yes
12327219820Sjeff    case $host_os in
12328219820Sjeff      sco3.2v5*)
12329219820Sjeff        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12330219820Sjeff	;;
12331219820Sjeff    esac
12332219820Sjeff  fi
12333219820Sjeff  sys_lib_dlsearch_path_spec='/usr/lib'
12334219820Sjeff  ;;
12335219820Sjeff
12336219820Sjeffuts4*)
12337219820Sjeff  version_type=linux
12338219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
12340219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
12341219820Sjeff  ;;
12342219820Sjeff
12343219820Sjeff*)
12344219820Sjeff  dynamic_linker=no
12345219820Sjeff  ;;
12346219820Sjeffesac
12347219820Sjeffecho "$as_me:$LINENO: result: $dynamic_linker" >&5
12348219820Sjeffecho "${ECHO_T}$dynamic_linker" >&6
12349219820Sjefftest "$dynamic_linker" = no && can_build_shared=no
12350219820Sjeff
12351219820Sjeffvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12352219820Sjeffif test "$GCC" = yes; then
12353219820Sjeff  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12354219820Sjefffi
12355219820Sjeff
12356219820Sjeffecho "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12357219820Sjeffecho $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12358219820Sjeffhardcode_action_CXX=
12359219820Sjeffif test -n "$hardcode_libdir_flag_spec_CXX" || \
12360219820Sjeff   test -n "$runpath_var_CXX" || \
12361219820Sjeff   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12362219820Sjeff
12363219820Sjeff  # We can hardcode non-existant directories.
12364219820Sjeff  if test "$hardcode_direct_CXX" != no &&
12365219820Sjeff     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12366219820Sjeff     # have to relink, otherwise we might link with an installed library
12367219820Sjeff     # when we should be linking with a yet-to-be-installed one
12368219820Sjeff     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12369219820Sjeff     test "$hardcode_minus_L_CXX" != no; then
12370219820Sjeff    # Linking always hardcodes the temporary library directory.
12371219820Sjeff    hardcode_action_CXX=relink
12372219820Sjeff  else
12373219820Sjeff    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12374219820Sjeff    hardcode_action_CXX=immediate
12375219820Sjeff  fi
12376219820Sjeffelse
12377219820Sjeff  # We cannot hardcode anything, or else we can only hardcode existing
12378219820Sjeff  # directories.
12379219820Sjeff  hardcode_action_CXX=unsupported
12380219820Sjefffi
12381219820Sjeffecho "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12382219820Sjeffecho "${ECHO_T}$hardcode_action_CXX" >&6
12383219820Sjeff
12384219820Sjeffif test "$hardcode_action_CXX" = relink; then
12385219820Sjeff  # Fast installation is not supported
12386219820Sjeff  enable_fast_install=no
12387219820Sjeffelif test "$shlibpath_overrides_runpath" = yes ||
12388219820Sjeff     test "$enable_shared" = no; then
12389219820Sjeff  # Fast installation is not necessary
12390219820Sjeff  enable_fast_install=needless
12391219820Sjefffi
12392219820Sjeff
12393219820Sjeff
12394219820Sjeff# The else clause should only fire when bootstrapping the
12395219820Sjeff# libtool distribution, otherwise you forgot to ship ltmain.sh
12396219820Sjeff# with your package, and you will get complaints that there are
12397219820Sjeff# no rules to generate ltmain.sh.
12398219820Sjeffif test -f "$ltmain"; then
12399219820Sjeff  # See if we are running on zsh, and set the options which allow our commands through
12400219820Sjeff  # without removal of \ escapes.
12401219820Sjeff  if test -n "${ZSH_VERSION+set}" ; then
12402219820Sjeff    setopt NO_GLOB_SUBST
12403219820Sjeff  fi
12404219820Sjeff  # Now quote all the things that may contain metacharacters while being
12405219820Sjeff  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12406219820Sjeff  # variables and quote the copies for generation of the libtool script.
12407219820Sjeff  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12408219820Sjeff    SED SHELL STRIP \
12409219820Sjeff    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12410219820Sjeff    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12411219820Sjeff    deplibs_check_method reload_flag reload_cmds need_locks \
12412219820Sjeff    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12413219820Sjeff    lt_cv_sys_global_symbol_to_c_name_address \
12414219820Sjeff    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12415219820Sjeff    old_postinstall_cmds old_postuninstall_cmds \
12416219820Sjeff    compiler_CXX \
12417219820Sjeff    CC_CXX \
12418219820Sjeff    LD_CXX \
12419219820Sjeff    lt_prog_compiler_wl_CXX \
12420219820Sjeff    lt_prog_compiler_pic_CXX \
12421219820Sjeff    lt_prog_compiler_static_CXX \
12422219820Sjeff    lt_prog_compiler_no_builtin_flag_CXX \
12423219820Sjeff    export_dynamic_flag_spec_CXX \
12424219820Sjeff    thread_safe_flag_spec_CXX \
12425219820Sjeff    whole_archive_flag_spec_CXX \
12426219820Sjeff    enable_shared_with_static_runtimes_CXX \
12427219820Sjeff    old_archive_cmds_CXX \
12428219820Sjeff    old_archive_from_new_cmds_CXX \
12429219820Sjeff    predep_objects_CXX \
12430219820Sjeff    postdep_objects_CXX \
12431219820Sjeff    predeps_CXX \
12432219820Sjeff    postdeps_CXX \
12433219820Sjeff    compiler_lib_search_path_CXX \
12434219820Sjeff    archive_cmds_CXX \
12435219820Sjeff    archive_expsym_cmds_CXX \
12436219820Sjeff    postinstall_cmds_CXX \
12437219820Sjeff    postuninstall_cmds_CXX \
12438219820Sjeff    old_archive_from_expsyms_cmds_CXX \
12439219820Sjeff    allow_undefined_flag_CXX \
12440219820Sjeff    no_undefined_flag_CXX \
12441219820Sjeff    export_symbols_cmds_CXX \
12442219820Sjeff    hardcode_libdir_flag_spec_CXX \
12443219820Sjeff    hardcode_libdir_flag_spec_ld_CXX \
12444219820Sjeff    hardcode_libdir_separator_CXX \
12445219820Sjeff    hardcode_automatic_CXX \
12446219820Sjeff    module_cmds_CXX \
12447219820Sjeff    module_expsym_cmds_CXX \
12448219820Sjeff    lt_cv_prog_compiler_c_o_CXX \
12449219820Sjeff    exclude_expsyms_CXX \
12450219820Sjeff    include_expsyms_CXX; do
12451219820Sjeff
12452219820Sjeff    case $var in
12453219820Sjeff    old_archive_cmds_CXX | \
12454219820Sjeff    old_archive_from_new_cmds_CXX | \
12455219820Sjeff    archive_cmds_CXX | \
12456219820Sjeff    archive_expsym_cmds_CXX | \
12457219820Sjeff    module_cmds_CXX | \
12458219820Sjeff    module_expsym_cmds_CXX | \
12459219820Sjeff    old_archive_from_expsyms_cmds_CXX | \
12460219820Sjeff    export_symbols_cmds_CXX | \
12461219820Sjeff    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12462219820Sjeff    postinstall_cmds | postuninstall_cmds | \
12463219820Sjeff    old_postinstall_cmds | old_postuninstall_cmds | \
12464219820Sjeff    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12465219820Sjeff      # Double-quote double-evaled strings.
12466219820Sjeff      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12467219820Sjeff      ;;
12468219820Sjeff    *)
12469219820Sjeff      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12470219820Sjeff      ;;
12471219820Sjeff    esac
12472219820Sjeff  done
12473219820Sjeff
12474219820Sjeff  case $lt_echo in
12475219820Sjeff  *'\$0 --fallback-echo"')
12476219820Sjeff    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12477219820Sjeff    ;;
12478219820Sjeff  esac
12479219820Sjeff
12480219820Sjeffcfgfile="$ofile"
12481219820Sjeff
12482219820Sjeff  cat <<__EOF__ >> "$cfgfile"
12483219820Sjeff# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12484219820Sjeff
12485219820Sjeff# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12486219820Sjeff
12487219820Sjeff# Shell to use when invoking shell scripts.
12488219820SjeffSHELL=$lt_SHELL
12489219820Sjeff
12490219820Sjeff# Whether or not to build shared libraries.
12491219820Sjeffbuild_libtool_libs=$enable_shared
12492219820Sjeff
12493219820Sjeff# Whether or not to build static libraries.
12494219820Sjeffbuild_old_libs=$enable_static
12495219820Sjeff
12496219820Sjeff# Whether or not to add -lc for building shared libraries.
12497219820Sjeffbuild_libtool_need_lc=$archive_cmds_need_lc_CXX
12498219820Sjeff
12499219820Sjeff# Whether or not to disallow shared libs when runtime libs are static
12500219820Sjeffallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12501219820Sjeff
12502219820Sjeff# Whether or not to optimize for fast installation.
12503219820Sjefffast_install=$enable_fast_install
12504219820Sjeff
12505219820Sjeff# The host system.
12506219820Sjeffhost_alias=$host_alias
12507219820Sjeffhost=$host
12508219820Sjeffhost_os=$host_os
12509219820Sjeff
12510219820Sjeff# The build system.
12511219820Sjeffbuild_alias=$build_alias
12512219820Sjeffbuild=$build
12513219820Sjeffbuild_os=$build_os
12514219820Sjeff
12515219820Sjeff# An echo program that does not interpret backslashes.
12516219820Sjeffecho=$lt_echo
12517219820Sjeff
12518219820Sjeff# The archiver.
12519219820SjeffAR=$lt_AR
12520219820SjeffAR_FLAGS=$lt_AR_FLAGS
12521219820Sjeff
12522219820Sjeff# A C compiler.
12523219820SjeffLTCC=$lt_LTCC
12524219820Sjeff
12525219820Sjeff# LTCC compiler flags.
12526219820SjeffLTCFLAGS=$lt_LTCFLAGS
12527219820Sjeff
12528219820Sjeff# A language-specific compiler.
12529219820SjeffCC=$lt_compiler_CXX
12530219820Sjeff
12531219820Sjeff# Is the compiler the GNU C compiler?
12532219820Sjeffwith_gcc=$GCC_CXX
12533219820Sjeff
12534219820Sjeff# An ERE matcher.
12535219820SjeffEGREP=$lt_EGREP
12536219820Sjeff
12537219820Sjeff# The linker used to build libraries.
12538219820SjeffLD=$lt_LD_CXX
12539219820Sjeff
12540219820Sjeff# Whether we need hard or soft links.
12541219820SjeffLN_S=$lt_LN_S
12542219820Sjeff
12543219820Sjeff# A BSD-compatible nm program.
12544219820SjeffNM=$lt_NM
12545219820Sjeff
12546219820Sjeff# A symbol stripping program
12547219820SjeffSTRIP=$lt_STRIP
12548219820Sjeff
12549219820Sjeff# Used to examine libraries when file_magic_cmd begins "file"
12550219820SjeffMAGIC_CMD=$MAGIC_CMD
12551219820Sjeff
12552219820Sjeff# Used on cygwin: DLL creation program.
12553219820SjeffDLLTOOL="$DLLTOOL"
12554219820Sjeff
12555219820Sjeff# Used on cygwin: object dumper.
12556219820SjeffOBJDUMP="$OBJDUMP"
12557219820Sjeff
12558219820Sjeff# Used on cygwin: assembler.
12559219820SjeffAS="$AS"
12560219820Sjeff
12561219820Sjeff# The name of the directory that contains temporary libtool files.
12562219820Sjeffobjdir=$objdir
12563219820Sjeff
12564219820Sjeff# How to create reloadable object files.
12565219820Sjeffreload_flag=$lt_reload_flag
12566219820Sjeffreload_cmds=$lt_reload_cmds
12567219820Sjeff
12568219820Sjeff# How to pass a linker flag through the compiler.
12569219820Sjeffwl=$lt_lt_prog_compiler_wl_CXX
12570219820Sjeff
12571219820Sjeff# Object file suffix (normally "o").
12572219820Sjeffobjext="$ac_objext"
12573219820Sjeff
12574219820Sjeff# Old archive suffix (normally "a").
12575219820Sjefflibext="$libext"
12576219820Sjeff
12577219820Sjeff# Shared library suffix (normally ".so").
12578219820Sjeffshrext_cmds='$shrext_cmds'
12579219820Sjeff
12580219820Sjeff# Executable file suffix (normally "").
12581219820Sjeffexeext="$exeext"
12582219820Sjeff
12583219820Sjeff# Additional compiler flags for building library objects.
12584219820Sjeffpic_flag=$lt_lt_prog_compiler_pic_CXX
12585219820Sjeffpic_mode=$pic_mode
12586219820Sjeff
12587219820Sjeff# What is the maximum length of a command?
12588219820Sjeffmax_cmd_len=$lt_cv_sys_max_cmd_len
12589219820Sjeff
12590219820Sjeff# Does compiler simultaneously support -c and -o options?
12591219820Sjeffcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12592219820Sjeff
12593219820Sjeff# Must we lock files when doing compilation?
12594219820Sjeffneed_locks=$lt_need_locks
12595219820Sjeff
12596219820Sjeff# Do we need the lib prefix for modules?
12597219820Sjeffneed_lib_prefix=$need_lib_prefix
12598219820Sjeff
12599219820Sjeff# Do we need a version for libraries?
12600219820Sjeffneed_version=$need_version
12601219820Sjeff
12602219820Sjeff# Whether dlopen is supported.
12603219820Sjeffdlopen_support=$enable_dlopen
12604219820Sjeff
12605219820Sjeff# Whether dlopen of programs is supported.
12606219820Sjeffdlopen_self=$enable_dlopen_self
12607219820Sjeff
12608219820Sjeff# Whether dlopen of statically linked programs is supported.
12609219820Sjeffdlopen_self_static=$enable_dlopen_self_static
12610219820Sjeff
12611219820Sjeff# Compiler flag to prevent dynamic linking.
12612219820Sjefflink_static_flag=$lt_lt_prog_compiler_static_CXX
12613219820Sjeff
12614219820Sjeff# Compiler flag to turn off builtin functions.
12615219820Sjeffno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12616219820Sjeff
12617219820Sjeff# Compiler flag to allow reflexive dlopens.
12618219820Sjeffexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12619219820Sjeff
12620219820Sjeff# Compiler flag to generate shared objects directly from archives.
12621219820Sjeffwhole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12622219820Sjeff
12623219820Sjeff# Compiler flag to generate thread-safe objects.
12624219820Sjeffthread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12625219820Sjeff
12626219820Sjeff# Library versioning type.
12627219820Sjeffversion_type=$version_type
12628219820Sjeff
12629219820Sjeff# Format of library name prefix.
12630219820Sjefflibname_spec=$lt_libname_spec
12631219820Sjeff
12632219820Sjeff# List of archive names.  First name is the real one, the rest are links.
12633219820Sjeff# The last name is the one that the linker finds with -lNAME.
12634219820Sjefflibrary_names_spec=$lt_library_names_spec
12635219820Sjeff
12636219820Sjeff# The coded name of the library, if different from the real name.
12637219820Sjeffsoname_spec=$lt_soname_spec
12638219820Sjeff
12639219820Sjeff# Commands used to build and install an old-style archive.
12640219820SjeffRANLIB=$lt_RANLIB
12641219820Sjeffold_archive_cmds=$lt_old_archive_cmds_CXX
12642219820Sjeffold_postinstall_cmds=$lt_old_postinstall_cmds
12643219820Sjeffold_postuninstall_cmds=$lt_old_postuninstall_cmds
12644219820Sjeff
12645219820Sjeff# Create an old-style archive from a shared archive.
12646219820Sjeffold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12647219820Sjeff
12648219820Sjeff# Create a temporary old-style archive to link instead of a shared archive.
12649219820Sjeffold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12650219820Sjeff
12651219820Sjeff# Commands used to build and install a shared archive.
12652219820Sjeffarchive_cmds=$lt_archive_cmds_CXX
12653219820Sjeffarchive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12654219820Sjeffpostinstall_cmds=$lt_postinstall_cmds
12655219820Sjeffpostuninstall_cmds=$lt_postuninstall_cmds
12656219820Sjeff
12657219820Sjeff# Commands used to build a loadable module (assumed same as above if empty)
12658219820Sjeffmodule_cmds=$lt_module_cmds_CXX
12659219820Sjeffmodule_expsym_cmds=$lt_module_expsym_cmds_CXX
12660219820Sjeff
12661219820Sjeff# Commands to strip libraries.
12662219820Sjeffold_striplib=$lt_old_striplib
12663219820Sjeffstriplib=$lt_striplib
12664219820Sjeff
12665219820Sjeff# Dependencies to place before the objects being linked to create a
12666219820Sjeff# shared library.
12667219820Sjeffpredep_objects=$lt_predep_objects_CXX
12668219820Sjeff
12669219820Sjeff# Dependencies to place after the objects being linked to create a
12670219820Sjeff# shared library.
12671219820Sjeffpostdep_objects=$lt_postdep_objects_CXX
12672219820Sjeff
12673219820Sjeff# Dependencies to place before the objects being linked to create a
12674219820Sjeff# shared library.
12675219820Sjeffpredeps=$lt_predeps_CXX
12676219820Sjeff
12677219820Sjeff# Dependencies to place after the objects being linked to create a
12678219820Sjeff# shared library.
12679219820Sjeffpostdeps=$lt_postdeps_CXX
12680219820Sjeff
12681219820Sjeff# The library search path used internally by the compiler when linking
12682219820Sjeff# a shared library.
12683219820Sjeffcompiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12684219820Sjeff
12685219820Sjeff# Method to check whether dependent libraries are shared objects.
12686219820Sjeffdeplibs_check_method=$lt_deplibs_check_method
12687219820Sjeff
12688219820Sjeff# Command to use when deplibs_check_method == file_magic.
12689219820Sjefffile_magic_cmd=$lt_file_magic_cmd
12690219820Sjeff
12691219820Sjeff# Flag that allows shared libraries with undefined symbols to be built.
12692219820Sjeffallow_undefined_flag=$lt_allow_undefined_flag_CXX
12693219820Sjeff
12694219820Sjeff# Flag that forces no undefined symbols.
12695219820Sjeffno_undefined_flag=$lt_no_undefined_flag_CXX
12696219820Sjeff
12697219820Sjeff# Commands used to finish a libtool library installation in a directory.
12698219820Sjefffinish_cmds=$lt_finish_cmds
12699219820Sjeff
12700219820Sjeff# Same as above, but a single script fragment to be evaled but not shown.
12701219820Sjefffinish_eval=$lt_finish_eval
12702219820Sjeff
12703219820Sjeff# Take the output of nm and produce a listing of raw symbols and C names.
12704219820Sjeffglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12705219820Sjeff
12706219820Sjeff# Transform the output of nm in a proper C declaration
12707219820Sjeffglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12708219820Sjeff
12709219820Sjeff# Transform the output of nm in a C name address pair
12710219820Sjeffglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12711219820Sjeff
12712219820Sjeff# This is the shared library runtime path variable.
12713219820Sjeffrunpath_var=$runpath_var
12714219820Sjeff
12715219820Sjeff# This is the shared library path variable.
12716219820Sjeffshlibpath_var=$shlibpath_var
12717219820Sjeff
12718219820Sjeff# Is shlibpath searched before the hard-coded library search path?
12719219820Sjeffshlibpath_overrides_runpath=$shlibpath_overrides_runpath
12720219820Sjeff
12721219820Sjeff# How to hardcode a shared library path into an executable.
12722219820Sjeffhardcode_action=$hardcode_action_CXX
12723219820Sjeff
12724219820Sjeff# Whether we should hardcode library paths into libraries.
12725219820Sjeffhardcode_into_libs=$hardcode_into_libs
12726219820Sjeff
12727219820Sjeff# Flag to hardcode \$libdir into a binary during linking.
12728219820Sjeff# This must work even if \$libdir does not exist.
12729219820Sjeffhardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12730219820Sjeff
12731219820Sjeff# If ld is used when linking, flag to hardcode \$libdir into
12732219820Sjeff# a binary during linking. This must work even if \$libdir does
12733219820Sjeff# not exist.
12734219820Sjeffhardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12735219820Sjeff
12736219820Sjeff# Whether we need a single -rpath flag with a separated argument.
12737219820Sjeffhardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12738219820Sjeff
12739219820Sjeff# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12740219820Sjeff# resulting binary.
12741219820Sjeffhardcode_direct=$hardcode_direct_CXX
12742219820Sjeff
12743219820Sjeff# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12744219820Sjeff# resulting binary.
12745219820Sjeffhardcode_minus_L=$hardcode_minus_L_CXX
12746219820Sjeff
12747219820Sjeff# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12748219820Sjeff# the resulting binary.
12749219820Sjeffhardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12750219820Sjeff
12751219820Sjeff# Set to yes if building a shared library automatically hardcodes DIR into the library
12752219820Sjeff# and all subsequent libraries and executables linked against it.
12753219820Sjeffhardcode_automatic=$hardcode_automatic_CXX
12754219820Sjeff
12755219820Sjeff# Variables whose values should be saved in libtool wrapper scripts and
12756219820Sjeff# restored at relink time.
12757219820Sjeffvariables_saved_for_relink="$variables_saved_for_relink"
12758219820Sjeff
12759219820Sjeff# Whether libtool must link a program against all its dependency libraries.
12760219820Sjefflink_all_deplibs=$link_all_deplibs_CXX
12761219820Sjeff
12762219820Sjeff# Compile-time system search path for libraries
12763219820Sjeffsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12764219820Sjeff
12765219820Sjeff# Run-time system search path for libraries
12766219820Sjeffsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12767219820Sjeff
12768219820Sjeff# Fix the shell variable \$srcfile for the compiler.
12769219820Sjefffix_srcfile_path="$fix_srcfile_path_CXX"
12770219820Sjeff
12771219820Sjeff# Set to yes if exported symbols are required.
12772219820Sjeffalways_export_symbols=$always_export_symbols_CXX
12773219820Sjeff
12774219820Sjeff# The commands to list exported symbols.
12775219820Sjeffexport_symbols_cmds=$lt_export_symbols_cmds_CXX
12776219820Sjeff
12777219820Sjeff# The commands to extract the exported symbol list from a shared archive.
12778219820Sjeffextract_expsyms_cmds=$lt_extract_expsyms_cmds
12779219820Sjeff
12780219820Sjeff# Symbols that should not be listed in the preloaded symbols.
12781219820Sjeffexclude_expsyms=$lt_exclude_expsyms_CXX
12782219820Sjeff
12783219820Sjeff# Symbols that must always be exported.
12784219820Sjeffinclude_expsyms=$lt_include_expsyms_CXX
12785219820Sjeff
12786219820Sjeff# ### END LIBTOOL TAG CONFIG: $tagname
12787219820Sjeff
12788219820Sjeff__EOF__
12789219820Sjeff
12790219820Sjeff
12791219820Sjeffelse
12792219820Sjeff  # If there is no Makefile yet, we rely on a make rule to execute
12793219820Sjeff  # `config.status --recheck' to rerun these tests and create the
12794219820Sjeff  # libtool script then.
12795219820Sjeff  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12796219820Sjeff  if test -f "$ltmain_in"; then
12797219820Sjeff    test -f Makefile && make "$ltmain"
12798219820Sjeff  fi
12799219820Sjefffi
12800219820Sjeff
12801219820Sjeff
12802219820Sjeffac_ext=c
12803219820Sjeffac_cpp='$CPP $CPPFLAGS'
12804219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12805219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12806219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
12807219820Sjeff
12808219820SjeffCC=$lt_save_CC
12809219820SjeffLDCXX=$LD
12810219820SjeffLD=$lt_save_LD
12811219820SjeffGCC=$lt_save_GCC
12812219820Sjeffwith_gnu_ldcxx=$with_gnu_ld
12813219820Sjeffwith_gnu_ld=$lt_save_with_gnu_ld
12814219820Sjefflt_cv_path_LDCXX=$lt_cv_path_LD
12815219820Sjefflt_cv_path_LD=$lt_save_path_LD
12816219820Sjefflt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12817219820Sjefflt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12818219820Sjeff
12819219820Sjeff	else
12820219820Sjeff	  tagname=""
12821219820Sjeff	fi
12822219820Sjeff	;;
12823219820Sjeff
12824219820Sjeff      F77)
12825219820Sjeff	if test -n "$F77" && test "X$F77" != "Xno"; then
12826219820Sjeff
12827219820Sjeffac_ext=f
12828219820Sjeffac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12829219820Sjeffac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12830219820Sjeffac_compiler_gnu=$ac_cv_f77_compiler_gnu
12831219820Sjeff
12832219820Sjeff
12833219820Sjeffarchive_cmds_need_lc_F77=no
12834219820Sjeffallow_undefined_flag_F77=
12835219820Sjeffalways_export_symbols_F77=no
12836219820Sjeffarchive_expsym_cmds_F77=
12837219820Sjeffexport_dynamic_flag_spec_F77=
12838219820Sjeffhardcode_direct_F77=no
12839219820Sjeffhardcode_libdir_flag_spec_F77=
12840219820Sjeffhardcode_libdir_flag_spec_ld_F77=
12841219820Sjeffhardcode_libdir_separator_F77=
12842219820Sjeffhardcode_minus_L_F77=no
12843219820Sjeffhardcode_automatic_F77=no
12844219820Sjeffmodule_cmds_F77=
12845219820Sjeffmodule_expsym_cmds_F77=
12846219820Sjefflink_all_deplibs_F77=unknown
12847219820Sjeffold_archive_cmds_F77=$old_archive_cmds
12848219820Sjeffno_undefined_flag_F77=
12849219820Sjeffwhole_archive_flag_spec_F77=
12850219820Sjeffenable_shared_with_static_runtimes_F77=no
12851219820Sjeff
12852219820Sjeff# Source file extension for f77 test sources.
12853219820Sjeffac_ext=f
12854219820Sjeff
12855219820Sjeff# Object file extension for compiled f77 test sources.
12856219820Sjeffobjext=o
12857219820Sjeffobjext_F77=$objext
12858219820Sjeff
12859219820Sjeff# Code to be used in simple compile tests
12860219820Sjefflt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12861219820Sjeff
12862219820Sjeff# Code to be used in simple link tests
12863219820Sjefflt_simple_link_test_code="      program t\n      end\n"
12864219820Sjeff
12865219820Sjeff# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12866219820Sjeff
12867219820Sjeff# If no C compiler was specified, use CC.
12868219820SjeffLTCC=${LTCC-"$CC"}
12869219820Sjeff
12870219820Sjeff# If no C compiler flags were specified, use CFLAGS.
12871219820SjeffLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12872219820Sjeff
12873219820Sjeff# Allow CC to be a program name with arguments.
12874219820Sjeffcompiler=$CC
12875219820Sjeff
12876219820Sjeff
12877219820Sjeff# save warnings/boilerplate of simple test code
12878219820Sjeffac_outfile=conftest.$ac_objext
12879219820Sjeffprintf "$lt_simple_compile_test_code" >conftest.$ac_ext
12880219820Sjeffeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12881219820Sjeff_lt_compiler_boilerplate=`cat conftest.err`
12882219820Sjeff$rm conftest*
12883219820Sjeff
12884219820Sjeffac_outfile=conftest.$ac_objext
12885219820Sjeffprintf "$lt_simple_link_test_code" >conftest.$ac_ext
12886219820Sjeffeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12887219820Sjeff_lt_linker_boilerplate=`cat conftest.err`
12888219820Sjeff$rm conftest*
12889219820Sjeff
12890219820Sjeff
12891219820Sjeff# Allow CC to be a program name with arguments.
12892219820Sjefflt_save_CC="$CC"
12893219820SjeffCC=${F77-"f77"}
12894219820Sjeffcompiler=$CC
12895219820Sjeffcompiler_F77=$CC
12896219820Sjefffor cc_temp in $compiler""; do
12897219820Sjeff  case $cc_temp in
12898219820Sjeff    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12899219820Sjeff    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12900219820Sjeff    \-*) ;;
12901219820Sjeff    *) break;;
12902219820Sjeff  esac
12903219820Sjeffdone
12904219820Sjeffcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12905219820Sjeff
12906219820Sjeff
12907219820Sjeffecho "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12908219820Sjeffecho $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12909219820Sjeffecho "$as_me:$LINENO: result: $can_build_shared" >&5
12910219820Sjeffecho "${ECHO_T}$can_build_shared" >&6
12911219820Sjeff
12912219820Sjeffecho "$as_me:$LINENO: checking whether to build shared libraries" >&5
12913219820Sjeffecho $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12914219820Sjefftest "$can_build_shared" = "no" && enable_shared=no
12915219820Sjeff
12916219820Sjeff# On AIX, shared libraries and static libraries use the same namespace, and
12917219820Sjeff# are all built from PIC.
12918219820Sjeffcase $host_os in
12919219820Sjeffaix3*)
12920219820Sjeff  test "$enable_shared" = yes && enable_static=no
12921219820Sjeff  if test -n "$RANLIB"; then
12922219820Sjeff    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12923219820Sjeff    postinstall_cmds='$RANLIB $lib'
12924219820Sjeff  fi
12925219820Sjeff  ;;
12926219820Sjeffaix4* | aix5*)
12927219820Sjeff  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12928219820Sjeff    test "$enable_shared" = yes && enable_static=no
12929219820Sjeff  fi
12930219820Sjeff  ;;
12931219820Sjeffesac
12932219820Sjeffecho "$as_me:$LINENO: result: $enable_shared" >&5
12933219820Sjeffecho "${ECHO_T}$enable_shared" >&6
12934219820Sjeff
12935219820Sjeffecho "$as_me:$LINENO: checking whether to build static libraries" >&5
12936219820Sjeffecho $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12937219820Sjeff# Make sure either enable_shared or enable_static is yes.
12938219820Sjefftest "$enable_shared" = yes || enable_static=yes
12939219820Sjeffecho "$as_me:$LINENO: result: $enable_static" >&5
12940219820Sjeffecho "${ECHO_T}$enable_static" >&6
12941219820Sjeff
12942219820SjeffGCC_F77="$G77"
12943219820SjeffLD_F77="$LD"
12944219820Sjeff
12945219820Sjefflt_prog_compiler_wl_F77=
12946219820Sjefflt_prog_compiler_pic_F77=
12947219820Sjefflt_prog_compiler_static_F77=
12948219820Sjeff
12949219820Sjeffecho "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12950219820Sjeffecho $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12951219820Sjeff
12952219820Sjeff  if test "$GCC" = yes; then
12953219820Sjeff    lt_prog_compiler_wl_F77='-Wl,'
12954219820Sjeff    lt_prog_compiler_static_F77='-static'
12955219820Sjeff
12956219820Sjeff    case $host_os in
12957219820Sjeff      aix*)
12958219820Sjeff      # All AIX code is PIC.
12959219820Sjeff      if test "$host_cpu" = ia64; then
12960219820Sjeff	# AIX 5 now supports IA64 processor
12961219820Sjeff	lt_prog_compiler_static_F77='-Bstatic'
12962219820Sjeff      fi
12963219820Sjeff      ;;
12964219820Sjeff
12965219820Sjeff    amigaos*)
12966219820Sjeff      # FIXME: we need at least 68020 code to build shared libraries, but
12967219820Sjeff      # adding the `-m68020' flag to GCC prevents building anything better,
12968219820Sjeff      # like `-m68040'.
12969219820Sjeff      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12970219820Sjeff      ;;
12971219820Sjeff
12972219820Sjeff    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12973219820Sjeff      # PIC is the default for these OSes.
12974219820Sjeff      ;;
12975219820Sjeff
12976219820Sjeff    mingw* | pw32* | os2*)
12977219820Sjeff      # This hack is so that the source file can tell whether it is being
12978219820Sjeff      # built for inclusion in a dll (and should export symbols for example).
12979219820Sjeff      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12980219820Sjeff      ;;
12981219820Sjeff
12982219820Sjeff    darwin* | rhapsody*)
12983219820Sjeff      # PIC is the default on this platform
12984219820Sjeff      # Common symbols not allowed in MH_DYLIB files
12985219820Sjeff      lt_prog_compiler_pic_F77='-fno-common'
12986219820Sjeff      ;;
12987219820Sjeff
12988219820Sjeff    interix3*)
12989219820Sjeff      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12990219820Sjeff      # Instead, we relocate shared libraries at runtime.
12991219820Sjeff      ;;
12992219820Sjeff
12993219820Sjeff    msdosdjgpp*)
12994219820Sjeff      # Just because we use GCC doesn't mean we suddenly get shared libraries
12995219820Sjeff      # on systems that don't support them.
12996219820Sjeff      lt_prog_compiler_can_build_shared_F77=no
12997219820Sjeff      enable_shared=no
12998219820Sjeff      ;;
12999219820Sjeff
13000219820Sjeff    sysv4*MP*)
13001219820Sjeff      if test -d /usr/nec; then
13002219820Sjeff	lt_prog_compiler_pic_F77=-Kconform_pic
13003219820Sjeff      fi
13004219820Sjeff      ;;
13005219820Sjeff
13006219820Sjeff    hpux*)
13007219820Sjeff      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13008219820Sjeff      # not for PA HP-UX.
13009219820Sjeff      case $host_cpu in
13010219820Sjeff      hppa*64*|ia64*)
13011219820Sjeff	# +Z the default
13012219820Sjeff	;;
13013219820Sjeff      *)
13014219820Sjeff	lt_prog_compiler_pic_F77='-fPIC'
13015219820Sjeff	;;
13016219820Sjeff      esac
13017219820Sjeff      ;;
13018219820Sjeff
13019219820Sjeff    *)
13020219820Sjeff      lt_prog_compiler_pic_F77='-fPIC'
13021219820Sjeff      ;;
13022219820Sjeff    esac
13023219820Sjeff  else
13024219820Sjeff    # PORTME Check for flag to pass linker flags through the system compiler.
13025219820Sjeff    case $host_os in
13026219820Sjeff    aix*)
13027219820Sjeff      lt_prog_compiler_wl_F77='-Wl,'
13028219820Sjeff      if test "$host_cpu" = ia64; then
13029219820Sjeff	# AIX 5 now supports IA64 processor
13030219820Sjeff	lt_prog_compiler_static_F77='-Bstatic'
13031219820Sjeff      else
13032219820Sjeff	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13033219820Sjeff      fi
13034219820Sjeff      ;;
13035219820Sjeff      darwin*)
13036219820Sjeff        # PIC is the default on this platform
13037219820Sjeff        # Common symbols not allowed in MH_DYLIB files
13038219820Sjeff       case $cc_basename in
13039219820Sjeff         xlc*)
13040219820Sjeff         lt_prog_compiler_pic_F77='-qnocommon'
13041219820Sjeff         lt_prog_compiler_wl_F77='-Wl,'
13042219820Sjeff         ;;
13043219820Sjeff       esac
13044219820Sjeff       ;;
13045219820Sjeff
13046219820Sjeff    mingw* | pw32* | os2*)
13047219820Sjeff      # This hack is so that the source file can tell whether it is being
13048219820Sjeff      # built for inclusion in a dll (and should export symbols for example).
13049219820Sjeff      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13050219820Sjeff      ;;
13051219820Sjeff
13052219820Sjeff    hpux9* | hpux10* | hpux11*)
13053219820Sjeff      lt_prog_compiler_wl_F77='-Wl,'
13054219820Sjeff      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13055219820Sjeff      # not for PA HP-UX.
13056219820Sjeff      case $host_cpu in
13057219820Sjeff      hppa*64*|ia64*)
13058219820Sjeff	# +Z the default
13059219820Sjeff	;;
13060219820Sjeff      *)
13061219820Sjeff	lt_prog_compiler_pic_F77='+Z'
13062219820Sjeff	;;
13063219820Sjeff      esac
13064219820Sjeff      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13065219820Sjeff      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13066219820Sjeff      ;;
13067219820Sjeff
13068219820Sjeff    irix5* | irix6* | nonstopux*)
13069219820Sjeff      lt_prog_compiler_wl_F77='-Wl,'
13070219820Sjeff      # PIC (with -KPIC) is the default.
13071219820Sjeff      lt_prog_compiler_static_F77='-non_shared'
13072219820Sjeff      ;;
13073219820Sjeff
13074219820Sjeff    newsos6)
13075219820Sjeff      lt_prog_compiler_pic_F77='-KPIC'
13076219820Sjeff      lt_prog_compiler_static_F77='-Bstatic'
13077219820Sjeff      ;;
13078219820Sjeff
13079219820Sjeff    linux*)
13080219820Sjeff      case $cc_basename in
13081219820Sjeff      icc* | ecc*)
13082219820Sjeff	lt_prog_compiler_wl_F77='-Wl,'
13083219820Sjeff	lt_prog_compiler_pic_F77='-KPIC'
13084219820Sjeff	lt_prog_compiler_static_F77='-static'
13085219820Sjeff        ;;
13086219820Sjeff      pgcc* | pgf77* | pgf90* | pgf95*)
13087219820Sjeff        # Portland Group compilers (*not* the Pentium gcc compiler,
13088219820Sjeff	# which looks to be a dead project)
13089219820Sjeff	lt_prog_compiler_wl_F77='-Wl,'
13090219820Sjeff	lt_prog_compiler_pic_F77='-fpic'
13091219820Sjeff	lt_prog_compiler_static_F77='-Bstatic'
13092219820Sjeff        ;;
13093219820Sjeff      ccc*)
13094219820Sjeff        lt_prog_compiler_wl_F77='-Wl,'
13095219820Sjeff        # All Alpha code is PIC.
13096219820Sjeff        lt_prog_compiler_static_F77='-non_shared'
13097219820Sjeff        ;;
13098219820Sjeff      esac
13099219820Sjeff      ;;
13100219820Sjeff
13101219820Sjeff    osf3* | osf4* | osf5*)
13102219820Sjeff      lt_prog_compiler_wl_F77='-Wl,'
13103219820Sjeff      # All OSF/1 code is PIC.
13104219820Sjeff      lt_prog_compiler_static_F77='-non_shared'
13105219820Sjeff      ;;
13106219820Sjeff
13107219820Sjeff    solaris*)
13108219820Sjeff      lt_prog_compiler_pic_F77='-KPIC'
13109219820Sjeff      lt_prog_compiler_static_F77='-Bstatic'
13110219820Sjeff      case $cc_basename in
13111219820Sjeff      f77* | f90* | f95*)
13112219820Sjeff	lt_prog_compiler_wl_F77='-Qoption ld ';;
13113219820Sjeff      *)
13114219820Sjeff	lt_prog_compiler_wl_F77='-Wl,';;
13115219820Sjeff      esac
13116219820Sjeff      ;;
13117219820Sjeff
13118219820Sjeff    sunos4*)
13119219820Sjeff      lt_prog_compiler_wl_F77='-Qoption ld '
13120219820Sjeff      lt_prog_compiler_pic_F77='-PIC'
13121219820Sjeff      lt_prog_compiler_static_F77='-Bstatic'
13122219820Sjeff      ;;
13123219820Sjeff
13124219820Sjeff    sysv4 | sysv4.2uw2* | sysv4.3*)
13125219820Sjeff      lt_prog_compiler_wl_F77='-Wl,'
13126219820Sjeff      lt_prog_compiler_pic_F77='-KPIC'
13127219820Sjeff      lt_prog_compiler_static_F77='-Bstatic'
13128219820Sjeff      ;;
13129219820Sjeff
13130219820Sjeff    sysv4*MP*)
13131219820Sjeff      if test -d /usr/nec ;then
13132219820Sjeff	lt_prog_compiler_pic_F77='-Kconform_pic'
13133219820Sjeff	lt_prog_compiler_static_F77='-Bstatic'
13134219820Sjeff      fi
13135219820Sjeff      ;;
13136219820Sjeff
13137219820Sjeff    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13138219820Sjeff      lt_prog_compiler_wl_F77='-Wl,'
13139219820Sjeff      lt_prog_compiler_pic_F77='-KPIC'
13140219820Sjeff      lt_prog_compiler_static_F77='-Bstatic'
13141219820Sjeff      ;;
13142219820Sjeff
13143219820Sjeff    unicos*)
13144219820Sjeff      lt_prog_compiler_wl_F77='-Wl,'
13145219820Sjeff      lt_prog_compiler_can_build_shared_F77=no
13146219820Sjeff      ;;
13147219820Sjeff
13148219820Sjeff    uts4*)
13149219820Sjeff      lt_prog_compiler_pic_F77='-pic'
13150219820Sjeff      lt_prog_compiler_static_F77='-Bstatic'
13151219820Sjeff      ;;
13152219820Sjeff
13153219820Sjeff    *)
13154219820Sjeff      lt_prog_compiler_can_build_shared_F77=no
13155219820Sjeff      ;;
13156219820Sjeff    esac
13157219820Sjeff  fi
13158219820Sjeff
13159219820Sjeffecho "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13160219820Sjeffecho "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13161219820Sjeff
13162219820Sjeff#
13163219820Sjeff# Check to make sure the PIC flag actually works.
13164219820Sjeff#
13165219820Sjeffif test -n "$lt_prog_compiler_pic_F77"; then
13166219820Sjeff
13167219820Sjeffecho "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13168219820Sjeffecho $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13169219820Sjeffif test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13170219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
13171219820Sjeffelse
13172219820Sjeff  lt_prog_compiler_pic_works_F77=no
13173219820Sjeff  ac_outfile=conftest.$ac_objext
13174219820Sjeff   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13175219820Sjeff   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13176219820Sjeff   # Insert the option either (1) after the last *FLAGS variable, or
13177219820Sjeff   # (2) before a word containing "conftest.", or (3) at the end.
13178219820Sjeff   # Note that $ac_compile itself does not contain backslashes and begins
13179219820Sjeff   # with a dollar sign (not a hyphen), so the echo should work correctly.
13180219820Sjeff   # The option is referenced via a variable to avoid confusing sed.
13181219820Sjeff   lt_compile=`echo "$ac_compile" | $SED \
13182219820Sjeff   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13183219820Sjeff   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13184219820Sjeff   -e 's:$: $lt_compiler_flag:'`
13185219820Sjeff   (eval echo "\"\$as_me:13185: $lt_compile\"" >&5)
13186219820Sjeff   (eval "$lt_compile" 2>conftest.err)
13187219820Sjeff   ac_status=$?
13188219820Sjeff   cat conftest.err >&5
13189219820Sjeff   echo "$as_me:13189: \$? = $ac_status" >&5
13190219820Sjeff   if (exit $ac_status) && test -s "$ac_outfile"; then
13191219820Sjeff     # The compiler can only warn and ignore the option if not recognized
13192219820Sjeff     # So say no if there are warnings other than the usual output.
13193219820Sjeff     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13194219820Sjeff     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13195219820Sjeff     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13196219820Sjeff       lt_prog_compiler_pic_works_F77=yes
13197219820Sjeff     fi
13198219820Sjeff   fi
13199219820Sjeff   $rm conftest*
13200219820Sjeff
13201219820Sjefffi
13202219820Sjeffecho "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13203219820Sjeffecho "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13204219820Sjeff
13205219820Sjeffif test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13206219820Sjeff    case $lt_prog_compiler_pic_F77 in
13207219820Sjeff     "" | " "*) ;;
13208219820Sjeff     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13209219820Sjeff     esac
13210219820Sjeffelse
13211219820Sjeff    lt_prog_compiler_pic_F77=
13212219820Sjeff     lt_prog_compiler_can_build_shared_F77=no
13213219820Sjefffi
13214219820Sjeff
13215219820Sjefffi
13216219820Sjeffcase $host_os in
13217219820Sjeff  # For platforms which do not support PIC, -DPIC is meaningless:
13218219820Sjeff  *djgpp*)
13219219820Sjeff    lt_prog_compiler_pic_F77=
13220219820Sjeff    ;;
13221219820Sjeff  *)
13222219820Sjeff    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13223219820Sjeff    ;;
13224219820Sjeffesac
13225219820Sjeff
13226219820Sjeff#
13227219820Sjeff# Check to make sure the static flag actually works.
13228219820Sjeff#
13229219820Sjeffwl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13230219820Sjeffecho "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13231219820Sjeffecho $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13232219820Sjeffif test "${lt_prog_compiler_static_works_F77+set}" = set; then
13233219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
13234219820Sjeffelse
13235219820Sjeff  lt_prog_compiler_static_works_F77=no
13236219820Sjeff   save_LDFLAGS="$LDFLAGS"
13237219820Sjeff   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13238219820Sjeff   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13239219820Sjeff   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13240219820Sjeff     # The linker can only warn and ignore the option if not recognized
13241219820Sjeff     # So say no if there are warnings
13242219820Sjeff     if test -s conftest.err; then
13243219820Sjeff       # Append any errors to the config.log.
13244219820Sjeff       cat conftest.err 1>&5
13245219820Sjeff       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13246219820Sjeff       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13247219820Sjeff       if diff conftest.exp conftest.er2 >/dev/null; then
13248219820Sjeff         lt_prog_compiler_static_works_F77=yes
13249219820Sjeff       fi
13250219820Sjeff     else
13251219820Sjeff       lt_prog_compiler_static_works_F77=yes
13252219820Sjeff     fi
13253219820Sjeff   fi
13254219820Sjeff   $rm conftest*
13255219820Sjeff   LDFLAGS="$save_LDFLAGS"
13256219820Sjeff
13257219820Sjefffi
13258219820Sjeffecho "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13259219820Sjeffecho "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13260219820Sjeff
13261219820Sjeffif test x"$lt_prog_compiler_static_works_F77" = xyes; then
13262219820Sjeff    :
13263219820Sjeffelse
13264219820Sjeff    lt_prog_compiler_static_F77=
13265219820Sjefffi
13266219820Sjeff
13267219820Sjeff
13268219820Sjeffecho "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13269219820Sjeffecho $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13270219820Sjeffif test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13271219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
13272219820Sjeffelse
13273219820Sjeff  lt_cv_prog_compiler_c_o_F77=no
13274219820Sjeff   $rm -r conftest 2>/dev/null
13275219820Sjeff   mkdir conftest
13276219820Sjeff   cd conftest
13277219820Sjeff   mkdir out
13278219820Sjeff   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13279219820Sjeff
13280219820Sjeff   lt_compiler_flag="-o out/conftest2.$ac_objext"
13281219820Sjeff   # Insert the option either (1) after the last *FLAGS variable, or
13282219820Sjeff   # (2) before a word containing "conftest.", or (3) at the end.
13283219820Sjeff   # Note that $ac_compile itself does not contain backslashes and begins
13284219820Sjeff   # with a dollar sign (not a hyphen), so the echo should work correctly.
13285219820Sjeff   lt_compile=`echo "$ac_compile" | $SED \
13286219820Sjeff   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13287219820Sjeff   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13288219820Sjeff   -e 's:$: $lt_compiler_flag:'`
13289219820Sjeff   (eval echo "\"\$as_me:13289: $lt_compile\"" >&5)
13290219820Sjeff   (eval "$lt_compile" 2>out/conftest.err)
13291219820Sjeff   ac_status=$?
13292219820Sjeff   cat out/conftest.err >&5
13293219820Sjeff   echo "$as_me:13293: \$? = $ac_status" >&5
13294219820Sjeff   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13295219820Sjeff   then
13296219820Sjeff     # The compiler can only warn and ignore the option if not recognized
13297219820Sjeff     # So say no if there are warnings
13298219820Sjeff     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13299219820Sjeff     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13300219820Sjeff     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13301219820Sjeff       lt_cv_prog_compiler_c_o_F77=yes
13302219820Sjeff     fi
13303219820Sjeff   fi
13304219820Sjeff   chmod u+w . 2>&5
13305219820Sjeff   $rm conftest*
13306219820Sjeff   # SGI C++ compiler will create directory out/ii_files/ for
13307219820Sjeff   # template instantiation
13308219820Sjeff   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13309219820Sjeff   $rm out/* && rmdir out
13310219820Sjeff   cd ..
13311219820Sjeff   rmdir conftest
13312219820Sjeff   $rm conftest*
13313219820Sjeff
13314219820Sjefffi
13315219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13316219820Sjeffecho "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13317219820Sjeff
13318219820Sjeff
13319219820Sjeffhard_links="nottested"
13320219820Sjeffif test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13321219820Sjeff  # do not overwrite the value of need_locks provided by the user
13322219820Sjeff  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13323219820Sjeffecho $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13324219820Sjeff  hard_links=yes
13325219820Sjeff  $rm conftest*
13326219820Sjeff  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13327219820Sjeff  touch conftest.a
13328219820Sjeff  ln conftest.a conftest.b 2>&5 || hard_links=no
13329219820Sjeff  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13330219820Sjeff  echo "$as_me:$LINENO: result: $hard_links" >&5
13331219820Sjeffecho "${ECHO_T}$hard_links" >&6
13332219820Sjeff  if test "$hard_links" = no; then
13333219820Sjeff    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13334219820Sjeffecho "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13335219820Sjeff    need_locks=warn
13336219820Sjeff  fi
13337219820Sjeffelse
13338219820Sjeff  need_locks=no
13339219820Sjefffi
13340219820Sjeff
13341219820Sjeffecho "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13342219820Sjeffecho $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13343219820Sjeff
13344219820Sjeff  runpath_var=
13345219820Sjeff  allow_undefined_flag_F77=
13346219820Sjeff  enable_shared_with_static_runtimes_F77=no
13347219820Sjeff  archive_cmds_F77=
13348219820Sjeff  archive_expsym_cmds_F77=
13349219820Sjeff  old_archive_From_new_cmds_F77=
13350219820Sjeff  old_archive_from_expsyms_cmds_F77=
13351219820Sjeff  export_dynamic_flag_spec_F77=
13352219820Sjeff  whole_archive_flag_spec_F77=
13353219820Sjeff  thread_safe_flag_spec_F77=
13354219820Sjeff  hardcode_libdir_flag_spec_F77=
13355219820Sjeff  hardcode_libdir_flag_spec_ld_F77=
13356219820Sjeff  hardcode_libdir_separator_F77=
13357219820Sjeff  hardcode_direct_F77=no
13358219820Sjeff  hardcode_minus_L_F77=no
13359219820Sjeff  hardcode_shlibpath_var_F77=unsupported
13360219820Sjeff  link_all_deplibs_F77=unknown
13361219820Sjeff  hardcode_automatic_F77=no
13362219820Sjeff  module_cmds_F77=
13363219820Sjeff  module_expsym_cmds_F77=
13364219820Sjeff  always_export_symbols_F77=no
13365219820Sjeff  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13366219820Sjeff  # include_expsyms should be a list of space-separated symbols to be *always*
13367219820Sjeff  # included in the symbol list
13368219820Sjeff  include_expsyms_F77=
13369219820Sjeff  # exclude_expsyms can be an extended regexp of symbols to exclude
13370219820Sjeff  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13371219820Sjeff  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13372219820Sjeff  # as well as any symbol that contains `d'.
13373219820Sjeff  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13374219820Sjeff  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13375219820Sjeff  # platforms (ab)use it in PIC code, but their linkers get confused if
13376219820Sjeff  # the symbol is explicitly referenced.  Since portable code cannot
13377219820Sjeff  # rely on this symbol name, it's probably fine to never include it in
13378219820Sjeff  # preloaded symbol tables.
13379219820Sjeff  extract_expsyms_cmds=
13380219820Sjeff  # Just being paranoid about ensuring that cc_basename is set.
13381219820Sjeff  for cc_temp in $compiler""; do
13382219820Sjeff  case $cc_temp in
13383219820Sjeff    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13384219820Sjeff    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13385219820Sjeff    \-*) ;;
13386219820Sjeff    *) break;;
13387219820Sjeff  esac
13388219820Sjeffdone
13389219820Sjeffcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13390219820Sjeff
13391219820Sjeff  case $host_os in
13392219820Sjeff  cygwin* | mingw* | pw32*)
13393219820Sjeff    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13394219820Sjeff    # When not using gcc, we currently assume that we are using
13395219820Sjeff    # Microsoft Visual C++.
13396219820Sjeff    if test "$GCC" != yes; then
13397219820Sjeff      with_gnu_ld=no
13398219820Sjeff    fi
13399219820Sjeff    ;;
13400219820Sjeff  interix*)
13401219820Sjeff    # we just hope/assume this is gcc and not c89 (= MSVC++)
13402219820Sjeff    with_gnu_ld=yes
13403219820Sjeff    ;;
13404219820Sjeff  openbsd*)
13405219820Sjeff    with_gnu_ld=no
13406219820Sjeff    ;;
13407219820Sjeff  esac
13408219820Sjeff
13409219820Sjeff  ld_shlibs_F77=yes
13410219820Sjeff  if test "$with_gnu_ld" = yes; then
13411219820Sjeff    # If archive_cmds runs LD, not CC, wlarc should be empty
13412219820Sjeff    wlarc='${wl}'
13413219820Sjeff
13414219820Sjeff    # Set some defaults for GNU ld with shared library support. These
13415219820Sjeff    # are reset later if shared libraries are not supported. Putting them
13416219820Sjeff    # here allows them to be overridden if necessary.
13417219820Sjeff    runpath_var=LD_RUN_PATH
13418219820Sjeff    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13419219820Sjeff    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13420219820Sjeff    # ancient GNU ld didn't support --whole-archive et. al.
13421219820Sjeff    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13422219820Sjeff	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13423219820Sjeff      else
13424219820Sjeff  	whole_archive_flag_spec_F77=
13425219820Sjeff    fi
13426219820Sjeff    supports_anon_versioning=no
13427219820Sjeff    case `$LD -v 2>/dev/null` in
13428219820Sjeff      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13429219820Sjeff      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13430219820Sjeff      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13431219820Sjeff      *\ 2.11.*) ;; # other 2.11 versions
13432219820Sjeff      *) supports_anon_versioning=yes ;;
13433219820Sjeff    esac
13434219820Sjeff
13435219820Sjeff    # See if GNU ld supports shared libraries.
13436219820Sjeff    case $host_os in
13437219820Sjeff    aix3* | aix4* | aix5*)
13438219820Sjeff      # On AIX/PPC, the GNU linker is very broken
13439219820Sjeff      if test "$host_cpu" != ia64; then
13440219820Sjeff	ld_shlibs_F77=no
13441219820Sjeff	cat <<EOF 1>&2
13442219820Sjeff
13443219820Sjeff*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13444219820Sjeff*** to be unable to reliably create shared libraries on AIX.
13445219820Sjeff*** Therefore, libtool is disabling shared libraries support.  If you
13446219820Sjeff*** really care for shared libraries, you may want to modify your PATH
13447219820Sjeff*** so that a non-GNU linker is found, and then restart.
13448219820Sjeff
13449219820SjeffEOF
13450219820Sjeff      fi
13451219820Sjeff      ;;
13452219820Sjeff
13453219820Sjeff    amigaos*)
13454219820Sjeff      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)'
13455219820Sjeff      hardcode_libdir_flag_spec_F77='-L$libdir'
13456219820Sjeff      hardcode_minus_L_F77=yes
13457219820Sjeff
13458219820Sjeff      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13459219820Sjeff      # that the semantics of dynamic libraries on AmigaOS, at least up
13460219820Sjeff      # to version 4, is to share data among multiple programs linked
13461219820Sjeff      # with the same dynamic library.  Since this doesn't match the
13462219820Sjeff      # behavior of shared libraries on other platforms, we can't use
13463219820Sjeff      # them.
13464219820Sjeff      ld_shlibs_F77=no
13465219820Sjeff      ;;
13466219820Sjeff
13467219820Sjeff    beos*)
13468219820Sjeff      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13469219820Sjeff	allow_undefined_flag_F77=unsupported
13470219820Sjeff	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13471219820Sjeff	# support --undefined.  This deserves some investigation.  FIXME
13472219820Sjeff	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13473219820Sjeff      else
13474219820Sjeff	ld_shlibs_F77=no
13475219820Sjeff      fi
13476219820Sjeff      ;;
13477219820Sjeff
13478219820Sjeff    cygwin* | mingw* | pw32*)
13479219820Sjeff      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13480219820Sjeff      # as there is no search path for DLLs.
13481219820Sjeff      hardcode_libdir_flag_spec_F77='-L$libdir'
13482219820Sjeff      allow_undefined_flag_F77=unsupported
13483219820Sjeff      always_export_symbols_F77=no
13484219820Sjeff      enable_shared_with_static_runtimes_F77=yes
13485219820Sjeff      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13486219820Sjeff
13487219820Sjeff      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13488219820Sjeff        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13489219820Sjeff	# If the export-symbols file already is a .def file (1st line
13490219820Sjeff	# is EXPORTS), use it as is; otherwise, prepend...
13491219820Sjeff	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13492219820Sjeff	  cp $export_symbols $output_objdir/$soname.def;
13493219820Sjeff	else
13494219820Sjeff	  echo EXPORTS > $output_objdir/$soname.def;
13495219820Sjeff	  cat $export_symbols >> $output_objdir/$soname.def;
13496219820Sjeff	fi~
13497219820Sjeff	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13498219820Sjeff      else
13499219820Sjeff	ld_shlibs_F77=no
13500219820Sjeff      fi
13501219820Sjeff      ;;
13502219820Sjeff
13503219820Sjeff    interix3*)
13504219820Sjeff      hardcode_direct_F77=no
13505219820Sjeff      hardcode_shlibpath_var_F77=no
13506219820Sjeff      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13507219820Sjeff      export_dynamic_flag_spec_F77='${wl}-E'
13508219820Sjeff      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13509219820Sjeff      # Instead, shared libraries are loaded at an image base (0x10000000 by
13510219820Sjeff      # default) and relocated if they conflict, which is a slow very memory
13511219820Sjeff      # consuming and fragmenting process.  To avoid this, we pick a random,
13512219820Sjeff      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13513219820Sjeff      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13514219820Sjeff      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'
13515219820Sjeff      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'
13516219820Sjeff      ;;
13517219820Sjeff
13518219820Sjeff    linux*)
13519219820Sjeff      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13520219820Sjeff	tmp_addflag=
13521219820Sjeff	case $cc_basename,$host_cpu in
13522219820Sjeff	pgcc*)				# Portland Group C compiler
13523219820Sjeff	  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'
13524219820Sjeff	  tmp_addflag=' $pic_flag'
13525219820Sjeff	  ;;
13526219820Sjeff	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13527219820Sjeff	  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'
13528219820Sjeff	  tmp_addflag=' $pic_flag -Mnomain' ;;
13529219820Sjeff	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13530219820Sjeff	  tmp_addflag=' -i_dynamic' ;;
13531219820Sjeff	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13532219820Sjeff	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13533219820Sjeff	ifc* | ifort*)			# Intel Fortran compiler
13534219820Sjeff	  tmp_addflag=' -nofor_main' ;;
13535219820Sjeff	esac
13536219820Sjeff	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13537219820Sjeff
13538219820Sjeff	if test $supports_anon_versioning = yes; then
13539219820Sjeff	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13540219820Sjeff  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13541219820Sjeff  $echo "local: *; };" >> $output_objdir/$libname.ver~
13542219820Sjeff	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13543219820Sjeff	fi
13544219820Sjeff	link_all_deplibs_F77=no
13545219820Sjeff      else
13546219820Sjeff	ld_shlibs_F77=no
13547219820Sjeff      fi
13548219820Sjeff      ;;
13549219820Sjeff
13550219820Sjeff    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13551219820Sjeff      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13552219820Sjeff	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13553219820Sjeff	wlarc=
13554219820Sjeff      else
13555219820Sjeff	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13556219820Sjeff	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13557219820Sjeff      fi
13558219820Sjeff      ;;
13559219820Sjeff
13560219820Sjeff    solaris*)
13561219820Sjeff      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13562219820Sjeff	ld_shlibs_F77=no
13563219820Sjeff	cat <<EOF 1>&2
13564219820Sjeff
13565219820Sjeff*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13566219820Sjeff*** create shared libraries on Solaris systems.  Therefore, libtool
13567219820Sjeff*** is disabling shared libraries support.  We urge you to upgrade GNU
13568219820Sjeff*** binutils to release 2.9.1 or newer.  Another option is to modify
13569219820Sjeff*** your PATH or compiler configuration so that the native linker is
13570219820Sjeff*** used, and then restart.
13571219820Sjeff
13572219820SjeffEOF
13573219820Sjeff      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13574219820Sjeff	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575219820Sjeff	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13576219820Sjeff      else
13577219820Sjeff	ld_shlibs_F77=no
13578219820Sjeff      fi
13579219820Sjeff      ;;
13580219820Sjeff
13581219820Sjeff    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13582219820Sjeff      case `$LD -v 2>&1` in
13583219820Sjeff        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13584219820Sjeff	ld_shlibs_F77=no
13585219820Sjeff	cat <<_LT_EOF 1>&2
13586219820Sjeff
13587219820Sjeff*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13588219820Sjeff*** reliably create shared libraries on SCO systems.  Therefore, libtool
13589219820Sjeff*** is disabling shared libraries support.  We urge you to upgrade GNU
13590219820Sjeff*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13591219820Sjeff*** your PATH or compiler configuration so that the native linker is
13592219820Sjeff*** used, and then restart.
13593219820Sjeff
13594219820Sjeff_LT_EOF
13595219820Sjeff	;;
13596219820Sjeff	*)
13597219820Sjeff	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13598219820Sjeff	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13599219820Sjeff	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13600219820Sjeff	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13601219820Sjeff	  else
13602219820Sjeff	    ld_shlibs_F77=no
13603219820Sjeff	  fi
13604219820Sjeff	;;
13605219820Sjeff      esac
13606219820Sjeff      ;;
13607219820Sjeff
13608219820Sjeff    sunos4*)
13609219820Sjeff      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13610219820Sjeff      wlarc=
13611219820Sjeff      hardcode_direct_F77=yes
13612219820Sjeff      hardcode_shlibpath_var_F77=no
13613219820Sjeff      ;;
13614219820Sjeff
13615219820Sjeff    *)
13616219820Sjeff      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13617219820Sjeff	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618219820Sjeff	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13619219820Sjeff      else
13620219820Sjeff	ld_shlibs_F77=no
13621219820Sjeff      fi
13622219820Sjeff      ;;
13623219820Sjeff    esac
13624219820Sjeff
13625219820Sjeff    if test "$ld_shlibs_F77" = no; then
13626219820Sjeff      runpath_var=
13627219820Sjeff      hardcode_libdir_flag_spec_F77=
13628219820Sjeff      export_dynamic_flag_spec_F77=
13629219820Sjeff      whole_archive_flag_spec_F77=
13630219820Sjeff    fi
13631219820Sjeff  else
13632219820Sjeff    # PORTME fill in a description of your system's linker (not GNU ld)
13633219820Sjeff    case $host_os in
13634219820Sjeff    aix3*)
13635219820Sjeff      allow_undefined_flag_F77=unsupported
13636219820Sjeff      always_export_symbols_F77=yes
13637219820Sjeff      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'
13638219820Sjeff      # Note: this linker hardcodes the directories in LIBPATH if there
13639219820Sjeff      # are no directories specified by -L.
13640219820Sjeff      hardcode_minus_L_F77=yes
13641219820Sjeff      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13642219820Sjeff	# Neither direct hardcoding nor static linking is supported with a
13643219820Sjeff	# broken collect2.
13644219820Sjeff	hardcode_direct_F77=unsupported
13645219820Sjeff      fi
13646219820Sjeff      ;;
13647219820Sjeff
13648219820Sjeff    aix4* | aix5*)
13649219820Sjeff      if test "$host_cpu" = ia64; then
13650219820Sjeff	# On IA64, the linker does run time linking by default, so we don't
13651219820Sjeff	# have to do anything special.
13652219820Sjeff	aix_use_runtimelinking=no
13653219820Sjeff	exp_sym_flag='-Bexport'
13654219820Sjeff	no_entry_flag=""
13655219820Sjeff      else
13656219820Sjeff	# If we're using GNU nm, then we don't want the "-C" option.
13657219820Sjeff	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13658219820Sjeff	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13659219820Sjeff	  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'
13660219820Sjeff	else
13661219820Sjeff	  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'
13662219820Sjeff	fi
13663219820Sjeff	aix_use_runtimelinking=no
13664219820Sjeff
13665219820Sjeff	# Test if we are trying to use run time linking or normal
13666219820Sjeff	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13667219820Sjeff	# need to do runtime linking.
13668219820Sjeff	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13669219820Sjeff	  for ld_flag in $LDFLAGS; do
13670219820Sjeff  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13671219820Sjeff  	    aix_use_runtimelinking=yes
13672219820Sjeff  	    break
13673219820Sjeff  	  fi
13674219820Sjeff	  done
13675219820Sjeff	  ;;
13676219820Sjeff	esac
13677219820Sjeff
13678219820Sjeff	exp_sym_flag='-bexport'
13679219820Sjeff	no_entry_flag='-bnoentry'
13680219820Sjeff      fi
13681219820Sjeff
13682219820Sjeff      # When large executables or shared objects are built, AIX ld can
13683219820Sjeff      # have problems creating the table of contents.  If linking a library
13684219820Sjeff      # or program results in "error TOC overflow" add -mminimal-toc to
13685219820Sjeff      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13686219820Sjeff      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13687219820Sjeff
13688219820Sjeff      archive_cmds_F77=''
13689219820Sjeff      hardcode_direct_F77=yes
13690219820Sjeff      hardcode_libdir_separator_F77=':'
13691219820Sjeff      link_all_deplibs_F77=yes
13692219820Sjeff
13693219820Sjeff      if test "$GCC" = yes; then
13694219820Sjeff	case $host_os in aix4.[012]|aix4.[012].*)
13695219820Sjeff	# We only want to do this on AIX 4.2 and lower, the check
13696219820Sjeff	# below for broken collect2 doesn't work under 4.3+
13697219820Sjeff	  collect2name=`${CC} -print-prog-name=collect2`
13698219820Sjeff	  if test -f "$collect2name" && \
13699219820Sjeff  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13700219820Sjeff	  then
13701219820Sjeff  	  # We have reworked collect2
13702219820Sjeff  	  hardcode_direct_F77=yes
13703219820Sjeff	  else
13704219820Sjeff  	  # We have old collect2
13705219820Sjeff  	  hardcode_direct_F77=unsupported
13706219820Sjeff  	  # It fails to find uninstalled libraries when the uninstalled
13707219820Sjeff  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13708219820Sjeff  	  # to unsupported forces relinking
13709219820Sjeff  	  hardcode_minus_L_F77=yes
13710219820Sjeff  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13711219820Sjeff  	  hardcode_libdir_separator_F77=
13712219820Sjeff	  fi
13713219820Sjeff	  ;;
13714219820Sjeff	esac
13715219820Sjeff	shared_flag='-shared'
13716219820Sjeff	if test "$aix_use_runtimelinking" = yes; then
13717219820Sjeff	  shared_flag="$shared_flag "'${wl}-G'
13718219820Sjeff	fi
13719219820Sjeff      else
13720219820Sjeff	# not using gcc
13721219820Sjeff	if test "$host_cpu" = ia64; then
13722219820Sjeff  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13723219820Sjeff  	# chokes on -Wl,-G. The following line is correct:
13724219820Sjeff	  shared_flag='-G'
13725219820Sjeff	else
13726219820Sjeff	  if test "$aix_use_runtimelinking" = yes; then
13727219820Sjeff	    shared_flag='${wl}-G'
13728219820Sjeff	  else
13729219820Sjeff	    shared_flag='${wl}-bM:SRE'
13730219820Sjeff	  fi
13731219820Sjeff	fi
13732219820Sjeff      fi
13733219820Sjeff
13734219820Sjeff      # It seems that -bexpall does not export symbols beginning with
13735219820Sjeff      # underscore (_), so it is better to generate a list of symbols to export.
13736219820Sjeff      always_export_symbols_F77=yes
13737219820Sjeff      if test "$aix_use_runtimelinking" = yes; then
13738219820Sjeff	# Warning - without using the other runtime loading flags (-brtl),
13739219820Sjeff	# -berok will link without error, but may produce a broken library.
13740219820Sjeff	allow_undefined_flag_F77='-berok'
13741219820Sjeff       # Determine the default libpath from the value encoded in an empty executable.
13742219820Sjeff       cat >conftest.$ac_ext <<_ACEOF
13743219820Sjeff      program main
13744219820Sjeff
13745219820Sjeff      end
13746219820Sjeff_ACEOF
13747219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
13748219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13749219820Sjeff  (eval $ac_link) 2>conftest.er1
13750219820Sjeff  ac_status=$?
13751219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
13752219820Sjeff  rm -f conftest.er1
13753219820Sjeff  cat conftest.err >&5
13754219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755219820Sjeff  (exit $ac_status); } &&
13756219820Sjeff	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
13757219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758219820Sjeff  (eval $ac_try) 2>&5
13759219820Sjeff  ac_status=$?
13760219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761219820Sjeff  (exit $ac_status); }; } &&
13762219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
13763219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764219820Sjeff  (eval $ac_try) 2>&5
13765219820Sjeff  ac_status=$?
13766219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767219820Sjeff  (exit $ac_status); }; }; then
13768219820Sjeff
13769219820Sjeffaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13770219820Sjeff}'`
13771219820Sjeff# Check for a 64-bit object if we didn't find anything.
13772219820Sjeffif 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; }
13773219820Sjeff}'`; fi
13774219820Sjeffelse
13775219820Sjeff  echo "$as_me: failed program was:" >&5
13776219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
13777219820Sjeff
13778219820Sjefffi
13779219820Sjeffrm -f conftest.err conftest.$ac_objext \
13780219820Sjeff      conftest$ac_exeext conftest.$ac_ext
13781219820Sjeffif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13782219820Sjeff
13783219820Sjeff       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13784219820Sjeff	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"
13785219820Sjeff       else
13786219820Sjeff	if test "$host_cpu" = ia64; then
13787219820Sjeff	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13788219820Sjeff	  allow_undefined_flag_F77="-z nodefs"
13789219820Sjeff	  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"
13790219820Sjeff	else
13791219820Sjeff	 # Determine the default libpath from the value encoded in an empty executable.
13792219820Sjeff	 cat >conftest.$ac_ext <<_ACEOF
13793219820Sjeff      program main
13794219820Sjeff
13795219820Sjeff      end
13796219820Sjeff_ACEOF
13797219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
13798219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799219820Sjeff  (eval $ac_link) 2>conftest.er1
13800219820Sjeff  ac_status=$?
13801219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
13802219820Sjeff  rm -f conftest.er1
13803219820Sjeff  cat conftest.err >&5
13804219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805219820Sjeff  (exit $ac_status); } &&
13806219820Sjeff	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
13807219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808219820Sjeff  (eval $ac_try) 2>&5
13809219820Sjeff  ac_status=$?
13810219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811219820Sjeff  (exit $ac_status); }; } &&
13812219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
13813219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814219820Sjeff  (eval $ac_try) 2>&5
13815219820Sjeff  ac_status=$?
13816219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817219820Sjeff  (exit $ac_status); }; }; then
13818219820Sjeff
13819219820Sjeffaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13820219820Sjeff}'`
13821219820Sjeff# Check for a 64-bit object if we didn't find anything.
13822219820Sjeffif 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; }
13823219820Sjeff}'`; fi
13824219820Sjeffelse
13825219820Sjeff  echo "$as_me: failed program was:" >&5
13826219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
13827219820Sjeff
13828219820Sjefffi
13829219820Sjeffrm -f conftest.err conftest.$ac_objext \
13830219820Sjeff      conftest$ac_exeext conftest.$ac_ext
13831219820Sjeffif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13832219820Sjeff
13833219820Sjeff	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13834219820Sjeff	  # Warning - without using the other run time loading flags,
13835219820Sjeff	  # -berok will link without error, but may produce a broken library.
13836219820Sjeff	  no_undefined_flag_F77=' ${wl}-bernotok'
13837219820Sjeff	  allow_undefined_flag_F77=' ${wl}-berok'
13838219820Sjeff	  # Exported symbols can be pulled into shared objects from archives
13839219820Sjeff	  whole_archive_flag_spec_F77='$convenience'
13840219820Sjeff	  archive_cmds_need_lc_F77=yes
13841219820Sjeff	  # This is similar to how AIX traditionally builds its shared libraries.
13842219820Sjeff	  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'
13843219820Sjeff	fi
13844219820Sjeff      fi
13845219820Sjeff      ;;
13846219820Sjeff
13847219820Sjeff    amigaos*)
13848219820Sjeff      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)'
13849219820Sjeff      hardcode_libdir_flag_spec_F77='-L$libdir'
13850219820Sjeff      hardcode_minus_L_F77=yes
13851219820Sjeff      # see comment about different semantics on the GNU ld section
13852219820Sjeff      ld_shlibs_F77=no
13853219820Sjeff      ;;
13854219820Sjeff
13855219820Sjeff    bsdi[45]*)
13856219820Sjeff      export_dynamic_flag_spec_F77=-rdynamic
13857219820Sjeff      ;;
13858219820Sjeff
13859219820Sjeff    cygwin* | mingw* | pw32*)
13860219820Sjeff      # When not using gcc, we currently assume that we are using
13861219820Sjeff      # Microsoft Visual C++.
13862219820Sjeff      # hardcode_libdir_flag_spec is actually meaningless, as there is
13863219820Sjeff      # no search path for DLLs.
13864219820Sjeff      hardcode_libdir_flag_spec_F77=' '
13865219820Sjeff      allow_undefined_flag_F77=unsupported
13866219820Sjeff      # Tell ltmain to make .lib files, not .a files.
13867219820Sjeff      libext=lib
13868219820Sjeff      # Tell ltmain to make .dll files, not .so files.
13869219820Sjeff      shrext_cmds=".dll"
13870219820Sjeff      # FIXME: Setting linknames here is a bad hack.
13871219820Sjeff      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13872219820Sjeff      # The linker will automatically build a .lib file if we build a DLL.
13873219820Sjeff      old_archive_From_new_cmds_F77='true'
13874219820Sjeff      # FIXME: Should let the user specify the lib program.
13875219820Sjeff      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13876219820Sjeff      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13877219820Sjeff      enable_shared_with_static_runtimes_F77=yes
13878219820Sjeff      ;;
13879219820Sjeff
13880219820Sjeff    darwin* | rhapsody*)
13881219820Sjeff      case $host_os in
13882219820Sjeff        rhapsody* | darwin1.[012])
13883219820Sjeff         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13884219820Sjeff         ;;
13885219820Sjeff       *) # Darwin 1.3 on
13886219820Sjeff         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13887219820Sjeff           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13888219820Sjeff         else
13889219820Sjeff           case ${MACOSX_DEPLOYMENT_TARGET} in
13890219820Sjeff             10.[012])
13891219820Sjeff               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13892219820Sjeff               ;;
13893219820Sjeff             10.*)
13894219820Sjeff               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13895219820Sjeff               ;;
13896219820Sjeff           esac
13897219820Sjeff         fi
13898219820Sjeff         ;;
13899219820Sjeff      esac
13900219820Sjeff      archive_cmds_need_lc_F77=no
13901219820Sjeff      hardcode_direct_F77=no
13902219820Sjeff      hardcode_automatic_F77=yes
13903219820Sjeff      hardcode_shlibpath_var_F77=unsupported
13904219820Sjeff      whole_archive_flag_spec_F77=''
13905219820Sjeff      link_all_deplibs_F77=yes
13906219820Sjeff    if test "$GCC" = yes ; then
13907219820Sjeff    	output_verbose_link_cmd='echo'
13908219820Sjeff        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13909219820Sjeff      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13910219820Sjeff      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13911219820Sjeff      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}'
13912219820Sjeff      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}'
13913219820Sjeff    else
13914219820Sjeff      case $cc_basename in
13915219820Sjeff        xlc*)
13916219820Sjeff         output_verbose_link_cmd='echo'
13917219820Sjeff         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13918219820Sjeff         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13919219820Sjeff          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13920219820Sjeff         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}'
13921219820Sjeff          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}'
13922219820Sjeff          ;;
13923219820Sjeff       *)
13924219820Sjeff         ld_shlibs_F77=no
13925219820Sjeff          ;;
13926219820Sjeff      esac
13927219820Sjeff    fi
13928219820Sjeff      ;;
13929219820Sjeff
13930219820Sjeff    dgux*)
13931219820Sjeff      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13932219820Sjeff      hardcode_libdir_flag_spec_F77='-L$libdir'
13933219820Sjeff      hardcode_shlibpath_var_F77=no
13934219820Sjeff      ;;
13935219820Sjeff
13936219820Sjeff    freebsd1*)
13937219820Sjeff      ld_shlibs_F77=no
13938219820Sjeff      ;;
13939219820Sjeff
13940219820Sjeff    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13941219820Sjeff    # support.  Future versions do this automatically, but an explicit c++rt0.o
13942219820Sjeff    # does not break anything, and helps significantly (at the cost of a little
13943219820Sjeff    # extra space).
13944219820Sjeff    freebsd2.2*)
13945219820Sjeff      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13946219820Sjeff      hardcode_libdir_flag_spec_F77='-R$libdir'
13947219820Sjeff      hardcode_direct_F77=yes
13948219820Sjeff      hardcode_shlibpath_var_F77=no
13949219820Sjeff      ;;
13950219820Sjeff
13951219820Sjeff    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13952219820Sjeff    freebsd2*)
13953219820Sjeff      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13954219820Sjeff      hardcode_direct_F77=yes
13955219820Sjeff      hardcode_minus_L_F77=yes
13956219820Sjeff      hardcode_shlibpath_var_F77=no
13957219820Sjeff      ;;
13958219820Sjeff
13959219820Sjeff    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13960219820Sjeff    freebsd* | dragonfly*)
13961219820Sjeff      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13962219820Sjeff      hardcode_libdir_flag_spec_F77='-R$libdir'
13963219820Sjeff      hardcode_direct_F77=yes
13964219820Sjeff      hardcode_shlibpath_var_F77=no
13965219820Sjeff      ;;
13966219820Sjeff
13967219820Sjeff    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
13968219820Sjeff    kfreebsd*-gnu)
13969219820Sjeff      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13970219820Sjeff      hardcode_libdir_flag_spec_F77='-R$libdir'
13971219820Sjeff      hardcode_direct_F77=yes
13972219820Sjeff      hardcode_shlibpath_var_F77=no
13973219820Sjeff      link_all_deplibs_F77=no
13974219820Sjeff      ;;
13975219820Sjeff
13976219820Sjeff    hpux9*)
13977219820Sjeff      if test "$GCC" = yes; then
13978219820Sjeff	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'
13979219820Sjeff      else
13980219820Sjeff	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'
13981219820Sjeff      fi
13982219820Sjeff      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13983219820Sjeff      hardcode_libdir_separator_F77=:
13984219820Sjeff      hardcode_direct_F77=yes
13985219820Sjeff
13986219820Sjeff      # hardcode_minus_L: Not really in the search PATH,
13987219820Sjeff      # but as the default location of the library.
13988219820Sjeff      hardcode_minus_L_F77=yes
13989219820Sjeff      export_dynamic_flag_spec_F77='${wl}-E'
13990219820Sjeff      ;;
13991219820Sjeff
13992219820Sjeff    hpux10*)
13993219820Sjeff      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13994219820Sjeff	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13995219820Sjeff      else
13996219820Sjeff	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13997219820Sjeff      fi
13998219820Sjeff      if test "$with_gnu_ld" = no; then
13999219820Sjeff	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14000219820Sjeff	hardcode_libdir_separator_F77=:
14001219820Sjeff
14002219820Sjeff	hardcode_direct_F77=yes
14003219820Sjeff	export_dynamic_flag_spec_F77='${wl}-E'
14004219820Sjeff
14005219820Sjeff	# hardcode_minus_L: Not really in the search PATH,
14006219820Sjeff	# but as the default location of the library.
14007219820Sjeff	hardcode_minus_L_F77=yes
14008219820Sjeff      fi
14009219820Sjeff      ;;
14010219820Sjeff
14011219820Sjeff    hpux11*)
14012219820Sjeff      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14013219820Sjeff	case $host_cpu in
14014219820Sjeff	hppa*64*)
14015219820Sjeff	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14016219820Sjeff	  ;;
14017219820Sjeff	ia64*)
14018219820Sjeff	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14019219820Sjeff	  ;;
14020219820Sjeff	*)
14021219820Sjeff	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14022219820Sjeff	  ;;
14023219820Sjeff	esac
14024219820Sjeff      else
14025219820Sjeff	case $host_cpu in
14026219820Sjeff	hppa*64*)
14027219820Sjeff	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14028219820Sjeff	  ;;
14029219820Sjeff	ia64*)
14030219820Sjeff	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14031219820Sjeff	  ;;
14032219820Sjeff	*)
14033219820Sjeff	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14034219820Sjeff	  ;;
14035219820Sjeff	esac
14036219820Sjeff      fi
14037219820Sjeff      if test "$with_gnu_ld" = no; then
14038219820Sjeff	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14039219820Sjeff	hardcode_libdir_separator_F77=:
14040219820Sjeff
14041219820Sjeff	case $host_cpu in
14042219820Sjeff	hppa*64*|ia64*)
14043219820Sjeff	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14044219820Sjeff	  hardcode_direct_F77=no
14045219820Sjeff	  hardcode_shlibpath_var_F77=no
14046219820Sjeff	  ;;
14047219820Sjeff	*)
14048219820Sjeff	  hardcode_direct_F77=yes
14049219820Sjeff	  export_dynamic_flag_spec_F77='${wl}-E'
14050219820Sjeff
14051219820Sjeff	  # hardcode_minus_L: Not really in the search PATH,
14052219820Sjeff	  # but as the default location of the library.
14053219820Sjeff	  hardcode_minus_L_F77=yes
14054219820Sjeff	  ;;
14055219820Sjeff	esac
14056219820Sjeff      fi
14057219820Sjeff      ;;
14058219820Sjeff
14059219820Sjeff    irix5* | irix6* | nonstopux*)
14060219820Sjeff      if test "$GCC" = yes; then
14061219820Sjeff	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'
14062219820Sjeff      else
14063219820Sjeff	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'
14064219820Sjeff	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14065219820Sjeff      fi
14066219820Sjeff      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14067219820Sjeff      hardcode_libdir_separator_F77=:
14068219820Sjeff      link_all_deplibs_F77=yes
14069219820Sjeff      ;;
14070219820Sjeff
14071219820Sjeff    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14072219820Sjeff      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14073219820Sjeff	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14074219820Sjeff      else
14075219820Sjeff	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14076219820Sjeff      fi
14077219820Sjeff      hardcode_libdir_flag_spec_F77='-R$libdir'
14078219820Sjeff      hardcode_direct_F77=yes
14079219820Sjeff      hardcode_shlibpath_var_F77=no
14080219820Sjeff      ;;
14081219820Sjeff
14082219820Sjeff    newsos6)
14083219820Sjeff      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14084219820Sjeff      hardcode_direct_F77=yes
14085219820Sjeff      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14086219820Sjeff      hardcode_libdir_separator_F77=:
14087219820Sjeff      hardcode_shlibpath_var_F77=no
14088219820Sjeff      ;;
14089219820Sjeff
14090219820Sjeff    openbsd*)
14091219820Sjeff      hardcode_direct_F77=yes
14092219820Sjeff      hardcode_shlibpath_var_F77=no
14093219820Sjeff      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14094219820Sjeff	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14095219820Sjeff	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14096219820Sjeff	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14097219820Sjeff	export_dynamic_flag_spec_F77='${wl}-E'
14098219820Sjeff      else
14099219820Sjeff       case $host_os in
14100219820Sjeff	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14101219820Sjeff	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14102219820Sjeff	   hardcode_libdir_flag_spec_F77='-R$libdir'
14103219820Sjeff	   ;;
14104219820Sjeff	 *)
14105219820Sjeff	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14106219820Sjeff	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14107219820Sjeff	   ;;
14108219820Sjeff       esac
14109219820Sjeff      fi
14110219820Sjeff      ;;
14111219820Sjeff
14112219820Sjeff    os2*)
14113219820Sjeff      hardcode_libdir_flag_spec_F77='-L$libdir'
14114219820Sjeff      hardcode_minus_L_F77=yes
14115219820Sjeff      allow_undefined_flag_F77=unsupported
14116219820Sjeff      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'
14117219820Sjeff      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14118219820Sjeff      ;;
14119219820Sjeff
14120219820Sjeff    osf3*)
14121219820Sjeff      if test "$GCC" = yes; then
14122219820Sjeff	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14123219820Sjeff	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'
14124219820Sjeff      else
14125219820Sjeff	allow_undefined_flag_F77=' -expect_unresolved \*'
14126219820Sjeff	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'
14127219820Sjeff      fi
14128219820Sjeff      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14129219820Sjeff      hardcode_libdir_separator_F77=:
14130219820Sjeff      ;;
14131219820Sjeff
14132219820Sjeff    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14133219820Sjeff      if test "$GCC" = yes; then
14134219820Sjeff	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14135219820Sjeff	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'
14136219820Sjeff	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14137219820Sjeff      else
14138219820Sjeff	allow_undefined_flag_F77=' -expect_unresolved \*'
14139219820Sjeff	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'
14140219820Sjeff	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~
14141219820Sjeff	$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'
14142219820Sjeff
14143219820Sjeff	# Both c and cxx compiler support -rpath directly
14144219820Sjeff	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14145219820Sjeff      fi
14146219820Sjeff      hardcode_libdir_separator_F77=:
14147219820Sjeff      ;;
14148219820Sjeff
14149219820Sjeff    solaris*)
14150219820Sjeff      no_undefined_flag_F77=' -z text'
14151219820Sjeff      if test "$GCC" = yes; then
14152219820Sjeff	wlarc='${wl}'
14153219820Sjeff	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14154219820Sjeff	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14155219820Sjeff	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14156219820Sjeff      else
14157219820Sjeff	wlarc=''
14158219820Sjeff	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159219820Sjeff	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14160219820Sjeff  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14161219820Sjeff      fi
14162219820Sjeff      hardcode_libdir_flag_spec_F77='-R$libdir'
14163219820Sjeff      hardcode_shlibpath_var_F77=no
14164219820Sjeff      case $host_os in
14165219820Sjeff      solaris2.[0-5] | solaris2.[0-5].*) ;;
14166219820Sjeff      *)
14167219820Sjeff 	# The compiler driver will combine linker options so we
14168219820Sjeff 	# cannot just pass the convience library names through
14169219820Sjeff 	# without $wl, iff we do not link with $LD.
14170219820Sjeff 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14171219820Sjeff 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14172219820Sjeff 	case $wlarc in
14173219820Sjeff 	'')
14174219820Sjeff 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14175219820Sjeff 	*)
14176219820Sjeff 	  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' ;;
14177219820Sjeff 	esac ;;
14178219820Sjeff      esac
14179219820Sjeff      link_all_deplibs_F77=yes
14180219820Sjeff      ;;
14181219820Sjeff
14182219820Sjeff    sunos4*)
14183219820Sjeff      if test "x$host_vendor" = xsequent; then
14184219820Sjeff	# Use $CC to link under sequent, because it throws in some extra .o
14185219820Sjeff	# files that make .init and .fini sections work.
14186219820Sjeff	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14187219820Sjeff      else
14188219820Sjeff	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14189219820Sjeff      fi
14190219820Sjeff      hardcode_libdir_flag_spec_F77='-L$libdir'
14191219820Sjeff      hardcode_direct_F77=yes
14192219820Sjeff      hardcode_minus_L_F77=yes
14193219820Sjeff      hardcode_shlibpath_var_F77=no
14194219820Sjeff      ;;
14195219820Sjeff
14196219820Sjeff    sysv4)
14197219820Sjeff      case $host_vendor in
14198219820Sjeff	sni)
14199219820Sjeff	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14200219820Sjeff	  hardcode_direct_F77=yes # is this really true???
14201219820Sjeff	;;
14202219820Sjeff	siemens)
14203219820Sjeff	  ## LD is ld it makes a PLAMLIB
14204219820Sjeff	  ## CC just makes a GrossModule.
14205219820Sjeff	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14206219820Sjeff	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14207219820Sjeff	  hardcode_direct_F77=no
14208219820Sjeff        ;;
14209219820Sjeff	motorola)
14210219820Sjeff	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14211219820Sjeff	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14212219820Sjeff	;;
14213219820Sjeff      esac
14214219820Sjeff      runpath_var='LD_RUN_PATH'
14215219820Sjeff      hardcode_shlibpath_var_F77=no
14216219820Sjeff      ;;
14217219820Sjeff
14218219820Sjeff    sysv4.3*)
14219219820Sjeff      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220219820Sjeff      hardcode_shlibpath_var_F77=no
14221219820Sjeff      export_dynamic_flag_spec_F77='-Bexport'
14222219820Sjeff      ;;
14223219820Sjeff
14224219820Sjeff    sysv4*MP*)
14225219820Sjeff      if test -d /usr/nec; then
14226219820Sjeff	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227219820Sjeff	hardcode_shlibpath_var_F77=no
14228219820Sjeff	runpath_var=LD_RUN_PATH
14229219820Sjeff	hardcode_runpath_var=yes
14230219820Sjeff	ld_shlibs_F77=yes
14231219820Sjeff      fi
14232219820Sjeff      ;;
14233219820Sjeff
14234219820Sjeff    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14235219820Sjeff      no_undefined_flag_F77='${wl}-z,text'
14236219820Sjeff      archive_cmds_need_lc_F77=no
14237219820Sjeff      hardcode_shlibpath_var_F77=no
14238219820Sjeff      runpath_var='LD_RUN_PATH'
14239219820Sjeff
14240219820Sjeff      if test "$GCC" = yes; then
14241219820Sjeff	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14242219820Sjeff	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14243219820Sjeff      else
14244219820Sjeff	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14245219820Sjeff	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14246219820Sjeff      fi
14247219820Sjeff      ;;
14248219820Sjeff
14249219820Sjeff    sysv5* | sco3.2v5* | sco5v6*)
14250219820Sjeff      # Note: We can NOT use -z defs as we might desire, because we do not
14251219820Sjeff      # link with -lc, and that would cause any symbols used from libc to
14252219820Sjeff      # always be unresolved, which means just about no library would
14253219820Sjeff      # ever link correctly.  If we're not using GNU ld we use -z text
14254219820Sjeff      # though, which does catch some bad symbols but isn't as heavy-handed
14255219820Sjeff      # as -z defs.
14256219820Sjeff      no_undefined_flag_F77='${wl}-z,text'
14257219820Sjeff      allow_undefined_flag_F77='${wl}-z,nodefs'
14258219820Sjeff      archive_cmds_need_lc_F77=no
14259219820Sjeff      hardcode_shlibpath_var_F77=no
14260219820Sjeff      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14261219820Sjeff      hardcode_libdir_separator_F77=':'
14262219820Sjeff      link_all_deplibs_F77=yes
14263219820Sjeff      export_dynamic_flag_spec_F77='${wl}-Bexport'
14264219820Sjeff      runpath_var='LD_RUN_PATH'
14265219820Sjeff
14266219820Sjeff      if test "$GCC" = yes; then
14267219820Sjeff	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14268219820Sjeff	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14269219820Sjeff      else
14270219820Sjeff	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14271219820Sjeff	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14272219820Sjeff      fi
14273219820Sjeff      ;;
14274219820Sjeff
14275219820Sjeff    uts4*)
14276219820Sjeff      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14277219820Sjeff      hardcode_libdir_flag_spec_F77='-L$libdir'
14278219820Sjeff      hardcode_shlibpath_var_F77=no
14279219820Sjeff      ;;
14280219820Sjeff
14281219820Sjeff    *)
14282219820Sjeff      ld_shlibs_F77=no
14283219820Sjeff      ;;
14284219820Sjeff    esac
14285219820Sjeff  fi
14286219820Sjeff
14287219820Sjeffecho "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14288219820Sjeffecho "${ECHO_T}$ld_shlibs_F77" >&6
14289219820Sjefftest "$ld_shlibs_F77" = no && can_build_shared=no
14290219820Sjeff
14291219820Sjeff#
14292219820Sjeff# Do we need to explicitly link libc?
14293219820Sjeff#
14294219820Sjeffcase "x$archive_cmds_need_lc_F77" in
14295219820Sjeffx|xyes)
14296219820Sjeff  # Assume -lc should be added
14297219820Sjeff  archive_cmds_need_lc_F77=yes
14298219820Sjeff
14299219820Sjeff  if test "$enable_shared" = yes && test "$GCC" = yes; then
14300219820Sjeff    case $archive_cmds_F77 in
14301219820Sjeff    *'~'*)
14302219820Sjeff      # FIXME: we may have to deal with multi-command sequences.
14303219820Sjeff      ;;
14304219820Sjeff    '$CC '*)
14305219820Sjeff      # Test whether the compiler implicitly links with -lc since on some
14306219820Sjeff      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14307219820Sjeff      # to ld, don't add -lc before -lgcc.
14308219820Sjeff      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14309219820Sjeffecho $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14310219820Sjeff      $rm conftest*
14311219820Sjeff      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14312219820Sjeff
14313219820Sjeff      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314219820Sjeff  (eval $ac_compile) 2>&5
14315219820Sjeff  ac_status=$?
14316219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317219820Sjeff  (exit $ac_status); } 2>conftest.err; then
14318219820Sjeff        soname=conftest
14319219820Sjeff        lib=conftest
14320219820Sjeff        libobjs=conftest.$ac_objext
14321219820Sjeff        deplibs=
14322219820Sjeff        wl=$lt_prog_compiler_wl_F77
14323219820Sjeff	pic_flag=$lt_prog_compiler_pic_F77
14324219820Sjeff        compiler_flags=-v
14325219820Sjeff        linker_flags=-v
14326219820Sjeff        verstring=
14327219820Sjeff        output_objdir=.
14328219820Sjeff        libname=conftest
14329219820Sjeff        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14330219820Sjeff        allow_undefined_flag_F77=
14331219820Sjeff        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14332219820Sjeff  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14333219820Sjeff  ac_status=$?
14334219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335219820Sjeff  (exit $ac_status); }
14336219820Sjeff        then
14337219820Sjeff	  archive_cmds_need_lc_F77=no
14338219820Sjeff        else
14339219820Sjeff	  archive_cmds_need_lc_F77=yes
14340219820Sjeff        fi
14341219820Sjeff        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14342219820Sjeff      else
14343219820Sjeff        cat conftest.err 1>&5
14344219820Sjeff      fi
14345219820Sjeff      $rm conftest*
14346219820Sjeff      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14347219820Sjeffecho "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14348219820Sjeff      ;;
14349219820Sjeff    esac
14350219820Sjeff  fi
14351219820Sjeff  ;;
14352219820Sjeffesac
14353219820Sjeff
14354219820Sjeffecho "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14355219820Sjeffecho $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14356219820Sjefflibrary_names_spec=
14357219820Sjefflibname_spec='lib$name'
14358219820Sjeffsoname_spec=
14359219820Sjeffshrext_cmds=".so"
14360219820Sjeffpostinstall_cmds=
14361219820Sjeffpostuninstall_cmds=
14362219820Sjefffinish_cmds=
14363219820Sjefffinish_eval=
14364219820Sjeffshlibpath_var=
14365219820Sjeffshlibpath_overrides_runpath=unknown
14366219820Sjeffversion_type=none
14367219820Sjeffdynamic_linker="$host_os ld.so"
14368219820Sjeffsys_lib_dlsearch_path_spec="/lib /usr/lib"
14369219820Sjeffif test "$GCC" = yes; then
14370219820Sjeff  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14371219820Sjeff  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14372219820Sjeff    # if the path contains ";" then we assume it to be the separator
14373219820Sjeff    # otherwise default to the standard path separator (i.e. ":") - it is
14374219820Sjeff    # assumed that no part of a normal pathname contains ";" but that should
14375219820Sjeff    # okay in the real world where ";" in dirpaths is itself problematic.
14376219820Sjeff    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14377219820Sjeff  else
14378219820Sjeff    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14379219820Sjeff  fi
14380219820Sjeffelse
14381219820Sjeff  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14382219820Sjefffi
14383219820Sjeffneed_lib_prefix=unknown
14384219820Sjeffhardcode_into_libs=no
14385219820Sjeff
14386219820Sjeff# when you set need_version to no, make sure it does not cause -set_version
14387219820Sjeff# flags to be left without arguments
14388219820Sjeffneed_version=unknown
14389219820Sjeff
14390219820Sjeffcase $host_os in
14391219820Sjeffaix3*)
14392219820Sjeff  version_type=linux
14393219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14394219820Sjeff  shlibpath_var=LIBPATH
14395219820Sjeff
14396219820Sjeff  # AIX 3 has no versioning support, so we append a major version to the name.
14397219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14398219820Sjeff  ;;
14399219820Sjeff
14400219820Sjeffaix4* | aix5*)
14401219820Sjeff  version_type=linux
14402219820Sjeff  need_lib_prefix=no
14403219820Sjeff  need_version=no
14404219820Sjeff  hardcode_into_libs=yes
14405219820Sjeff  if test "$host_cpu" = ia64; then
14406219820Sjeff    # AIX 5 supports IA64
14407219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14408219820Sjeff    shlibpath_var=LD_LIBRARY_PATH
14409219820Sjeff  else
14410219820Sjeff    # With GCC up to 2.95.x, collect2 would create an import file
14411219820Sjeff    # for dependence libraries.  The import file would start with
14412219820Sjeff    # the line `#! .'.  This would cause the generated library to
14413219820Sjeff    # depend on `.', always an invalid library.  This was fixed in
14414219820Sjeff    # development snapshots of GCC prior to 3.0.
14415219820Sjeff    case $host_os in
14416219820Sjeff      aix4 | aix4.[01] | aix4.[01].*)
14417219820Sjeff      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14418219820Sjeff	   echo ' yes '
14419219820Sjeff	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14420219820Sjeff	:
14421219820Sjeff      else
14422219820Sjeff	can_build_shared=no
14423219820Sjeff      fi
14424219820Sjeff      ;;
14425219820Sjeff    esac
14426219820Sjeff    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14427219820Sjeff    # soname into executable. Probably we can add versioning support to
14428219820Sjeff    # collect2, so additional links can be useful in future.
14429219820Sjeff    if test "$aix_use_runtimelinking" = yes; then
14430219820Sjeff      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14431219820Sjeff      # instead of lib<name>.a to let people know that these are not
14432219820Sjeff      # typical AIX shared libraries.
14433219820Sjeff      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434219820Sjeff    else
14435219820Sjeff      # We preserve .a as extension for shared libraries through AIX4.2
14436219820Sjeff      # and later when we are not doing run time linking.
14437219820Sjeff      library_names_spec='${libname}${release}.a $libname.a'
14438219820Sjeff      soname_spec='${libname}${release}${shared_ext}$major'
14439219820Sjeff    fi
14440219820Sjeff    shlibpath_var=LIBPATH
14441219820Sjeff  fi
14442219820Sjeff  ;;
14443219820Sjeff
14444219820Sjeffamigaos*)
14445219820Sjeff  library_names_spec='$libname.ixlibrary $libname.a'
14446219820Sjeff  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14447219820Sjeff  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'
14448219820Sjeff  ;;
14449219820Sjeff
14450219820Sjeffbeos*)
14451219820Sjeff  library_names_spec='${libname}${shared_ext}'
14452219820Sjeff  dynamic_linker="$host_os ld.so"
14453219820Sjeff  shlibpath_var=LIBRARY_PATH
14454219820Sjeff  ;;
14455219820Sjeff
14456219820Sjeffbsdi[45]*)
14457219820Sjeff  version_type=linux
14458219820Sjeff  need_version=no
14459219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14461219820Sjeff  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14462219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14463219820Sjeff  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14464219820Sjeff  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14465219820Sjeff  # the default ld.so.conf also contains /usr/contrib/lib and
14466219820Sjeff  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14467219820Sjeff  # libtool to hard-code these into programs
14468219820Sjeff  ;;
14469219820Sjeff
14470219820Sjeffcygwin* | mingw* | pw32*)
14471219820Sjeff  version_type=windows
14472219820Sjeff  shrext_cmds=".dll"
14473219820Sjeff  need_version=no
14474219820Sjeff  need_lib_prefix=no
14475219820Sjeff
14476219820Sjeff  case $GCC,$host_os in
14477219820Sjeff  yes,cygwin* | yes,mingw* | yes,pw32*)
14478219820Sjeff    library_names_spec='$libname.dll.a'
14479219820Sjeff    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14480219820Sjeff    postinstall_cmds='base_file=`basename \${file}`~
14481219820Sjeff      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14482219820Sjeff      dldir=$destdir/`dirname \$dlpath`~
14483219820Sjeff      test -d \$dldir || mkdir -p \$dldir~
14484219820Sjeff      $install_prog $dir/$dlname \$dldir/$dlname~
14485219820Sjeff      chmod a+x \$dldir/$dlname'
14486219820Sjeff    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14487219820Sjeff      dlpath=$dir/\$dldll~
14488219820Sjeff       $rm \$dlpath'
14489219820Sjeff    shlibpath_overrides_runpath=yes
14490219820Sjeff
14491219820Sjeff    case $host_os in
14492219820Sjeff    cygwin*)
14493219820Sjeff      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14494219820Sjeff      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14495219820Sjeff      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14496219820Sjeff      ;;
14497219820Sjeff    mingw*)
14498219820Sjeff      # MinGW DLLs use traditional 'lib' prefix
14499219820Sjeff      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14500219820Sjeff      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14501219820Sjeff      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14502219820Sjeff        # It is most probably a Windows format PATH printed by
14503219820Sjeff        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14504219820Sjeff        # path with ; separators, and with drive letters. We can handle the
14505219820Sjeff        # drive letters (cygwin fileutils understands them), so leave them,
14506219820Sjeff        # especially as we might pass files found there to a mingw objdump,
14507219820Sjeff        # which wouldn't understand a cygwinified path. Ahh.
14508219820Sjeff        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14509219820Sjeff      else
14510219820Sjeff        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14511219820Sjeff      fi
14512219820Sjeff      ;;
14513219820Sjeff    pw32*)
14514219820Sjeff      # pw32 DLLs use 'pw' prefix rather than 'lib'
14515219820Sjeff      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14516219820Sjeff      ;;
14517219820Sjeff    esac
14518219820Sjeff    ;;
14519219820Sjeff
14520219820Sjeff  *)
14521219820Sjeff    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14522219820Sjeff    ;;
14523219820Sjeff  esac
14524219820Sjeff  dynamic_linker='Win32 ld.exe'
14525219820Sjeff  # FIXME: first we should search . and the directory the executable is in
14526219820Sjeff  shlibpath_var=PATH
14527219820Sjeff  ;;
14528219820Sjeff
14529219820Sjeffdarwin* | rhapsody*)
14530219820Sjeff  dynamic_linker="$host_os dyld"
14531219820Sjeff  version_type=darwin
14532219820Sjeff  need_lib_prefix=no
14533219820Sjeff  need_version=no
14534219820Sjeff  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14535219820Sjeff  soname_spec='${libname}${release}${major}$shared_ext'
14536219820Sjeff  shlibpath_overrides_runpath=yes
14537219820Sjeff  shlibpath_var=DYLD_LIBRARY_PATH
14538219820Sjeff  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14539219820Sjeff  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14540219820Sjeff  if test "$GCC" = yes; then
14541219820Sjeff    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"`
14542219820Sjeff  else
14543219820Sjeff    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14544219820Sjeff  fi
14545219820Sjeff  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14546219820Sjeff  ;;
14547219820Sjeff
14548219820Sjeffdgux*)
14549219820Sjeff  version_type=linux
14550219820Sjeff  need_lib_prefix=no
14551219820Sjeff  need_version=no
14552219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14553219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14554219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14555219820Sjeff  ;;
14556219820Sjeff
14557219820Sjefffreebsd1*)
14558219820Sjeff  dynamic_linker=no
14559219820Sjeff  ;;
14560219820Sjeff
14561219820Sjeffkfreebsd*-gnu)
14562219820Sjeff  version_type=linux
14563219820Sjeff  need_lib_prefix=no
14564219820Sjeff  need_version=no
14565219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14566219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14567219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14568219820Sjeff  shlibpath_overrides_runpath=no
14569219820Sjeff  hardcode_into_libs=yes
14570219820Sjeff  dynamic_linker='GNU ld.so'
14571219820Sjeff  ;;
14572219820Sjeff
14573219820Sjefffreebsd* | dragonfly*)
14574219820Sjeff  # DragonFly does not have aout.  When/if they implement a new
14575219820Sjeff  # versioning mechanism, adjust this.
14576219820Sjeff  if test -x /usr/bin/objformat; then
14577219820Sjeff    objformat=`/usr/bin/objformat`
14578219820Sjeff  else
14579219820Sjeff    case $host_os in
14580219820Sjeff    freebsd[123]*) objformat=aout ;;
14581219820Sjeff    *) objformat=elf ;;
14582219820Sjeff    esac
14583219820Sjeff  fi
14584219820Sjeff  version_type=freebsd-$objformat
14585219820Sjeff  case $version_type in
14586219820Sjeff    freebsd-elf*)
14587219820Sjeff      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14588219820Sjeff      need_version=no
14589219820Sjeff      need_lib_prefix=no
14590219820Sjeff      ;;
14591219820Sjeff    freebsd-*)
14592219820Sjeff      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14593219820Sjeff      need_version=yes
14594219820Sjeff      ;;
14595219820Sjeff  esac
14596219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14597219820Sjeff  case $host_os in
14598219820Sjeff  freebsd2*)
14599219820Sjeff    shlibpath_overrides_runpath=yes
14600219820Sjeff    ;;
14601219820Sjeff  freebsd3.[01]* | freebsdelf3.[01]*)
14602219820Sjeff    shlibpath_overrides_runpath=yes
14603219820Sjeff    hardcode_into_libs=yes
14604219820Sjeff    ;;
14605219820Sjeff  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14606219820Sjeff  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14607219820Sjeff    shlibpath_overrides_runpath=no
14608219820Sjeff    hardcode_into_libs=yes
14609219820Sjeff    ;;
14610219820Sjeff  freebsd*) # from 4.6 on
14611219820Sjeff    shlibpath_overrides_runpath=yes
14612219820Sjeff    hardcode_into_libs=yes
14613219820Sjeff    ;;
14614219820Sjeff  esac
14615219820Sjeff  ;;
14616219820Sjeff
14617219820Sjeffgnu*)
14618219820Sjeff  version_type=linux
14619219820Sjeff  need_lib_prefix=no
14620219820Sjeff  need_version=no
14621219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14622219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14623219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14624219820Sjeff  hardcode_into_libs=yes
14625219820Sjeff  ;;
14626219820Sjeff
14627219820Sjeffhpux9* | hpux10* | hpux11*)
14628219820Sjeff  # Give a soname corresponding to the major version so that dld.sl refuses to
14629219820Sjeff  # link against other versions.
14630219820Sjeff  version_type=sunos
14631219820Sjeff  need_lib_prefix=no
14632219820Sjeff  need_version=no
14633219820Sjeff  case $host_cpu in
14634219820Sjeff  ia64*)
14635219820Sjeff    shrext_cmds='.so'
14636219820Sjeff    hardcode_into_libs=yes
14637219820Sjeff    dynamic_linker="$host_os dld.so"
14638219820Sjeff    shlibpath_var=LD_LIBRARY_PATH
14639219820Sjeff    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14640219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641219820Sjeff    soname_spec='${libname}${release}${shared_ext}$major'
14642219820Sjeff    if test "X$HPUX_IA64_MODE" = X32; then
14643219820Sjeff      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14644219820Sjeff    else
14645219820Sjeff      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14646219820Sjeff    fi
14647219820Sjeff    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14648219820Sjeff    ;;
14649219820Sjeff   hppa*64*)
14650219820Sjeff     shrext_cmds='.sl'
14651219820Sjeff     hardcode_into_libs=yes
14652219820Sjeff     dynamic_linker="$host_os dld.sl"
14653219820Sjeff     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14654219820Sjeff     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14655219820Sjeff     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656219820Sjeff     soname_spec='${libname}${release}${shared_ext}$major'
14657219820Sjeff     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14658219820Sjeff     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14659219820Sjeff     ;;
14660219820Sjeff   *)
14661219820Sjeff    shrext_cmds='.sl'
14662219820Sjeff    dynamic_linker="$host_os dld.sl"
14663219820Sjeff    shlibpath_var=SHLIB_PATH
14664219820Sjeff    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14665219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666219820Sjeff    soname_spec='${libname}${release}${shared_ext}$major'
14667219820Sjeff    ;;
14668219820Sjeff  esac
14669219820Sjeff  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14670219820Sjeff  postinstall_cmds='chmod 555 $lib'
14671219820Sjeff  ;;
14672219820Sjeff
14673219820Sjeffinterix3*)
14674219820Sjeff  version_type=linux
14675219820Sjeff  need_lib_prefix=no
14676219820Sjeff  need_version=no
14677219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14678219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14679219820Sjeff  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14680219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14681219820Sjeff  shlibpath_overrides_runpath=no
14682219820Sjeff  hardcode_into_libs=yes
14683219820Sjeff  ;;
14684219820Sjeff
14685219820Sjeffirix5* | irix6* | nonstopux*)
14686219820Sjeff  case $host_os in
14687219820Sjeff    nonstopux*) version_type=nonstopux ;;
14688219820Sjeff    *)
14689219820Sjeff	if test "$lt_cv_prog_gnu_ld" = yes; then
14690219820Sjeff		version_type=linux
14691219820Sjeff	else
14692219820Sjeff		version_type=irix
14693219820Sjeff	fi ;;
14694219820Sjeff  esac
14695219820Sjeff  need_lib_prefix=no
14696219820Sjeff  need_version=no
14697219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14698219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14699219820Sjeff  case $host_os in
14700219820Sjeff  irix5* | nonstopux*)
14701219820Sjeff    libsuff= shlibsuff=
14702219820Sjeff    ;;
14703219820Sjeff  *)
14704219820Sjeff    case $LD in # libtool.m4 will add one of these switches to LD
14705219820Sjeff    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14706219820Sjeff      libsuff= shlibsuff= libmagic=32-bit;;
14707219820Sjeff    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14708219820Sjeff      libsuff=32 shlibsuff=N32 libmagic=N32;;
14709219820Sjeff    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14710219820Sjeff      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14711219820Sjeff    *) libsuff= shlibsuff= libmagic=never-match;;
14712219820Sjeff    esac
14713219820Sjeff    ;;
14714219820Sjeff  esac
14715219820Sjeff  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14716219820Sjeff  shlibpath_overrides_runpath=no
14717219820Sjeff  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14718219820Sjeff  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14719219820Sjeff  hardcode_into_libs=yes
14720219820Sjeff  ;;
14721219820Sjeff
14722219820Sjeff# No shared lib support for Linux oldld, aout, or coff.
14723219820Sjefflinux*oldld* | linux*aout* | linux*coff*)
14724219820Sjeff  dynamic_linker=no
14725219820Sjeff  ;;
14726219820Sjeff
14727219820Sjeff# This must be Linux ELF.
14728219820Sjefflinux*)
14729219820Sjeff  version_type=linux
14730219820Sjeff  need_lib_prefix=no
14731219820Sjeff  need_version=no
14732219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14733219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14734219820Sjeff  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14735219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14736219820Sjeff  shlibpath_overrides_runpath=no
14737219820Sjeff  # This implies no fast_install, which is unacceptable.
14738219820Sjeff  # Some rework will be needed to allow for fast_install
14739219820Sjeff  # before this can be enabled.
14740219820Sjeff  hardcode_into_libs=yes
14741219820Sjeff
14742219820Sjeff  # Append ld.so.conf contents to the search path
14743219820Sjeff  if test -f /etc/ld.so.conf; then
14744219820Sjeff    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' ' '`
14745219820Sjeff    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14746219820Sjeff  fi
14747219820Sjeff
14748219820Sjeff  # We used to test for /lib/ld.so.1 and disable shared libraries on
14749219820Sjeff  # powerpc, because MkLinux only supported shared libraries with the
14750219820Sjeff  # GNU dynamic linker.  Since this was broken with cross compilers,
14751219820Sjeff  # most powerpc-linux boxes support dynamic linking these days and
14752219820Sjeff  # people can always --disable-shared, the test was removed, and we
14753219820Sjeff  # assume the GNU/Linux dynamic linker is in use.
14754219820Sjeff  dynamic_linker='GNU/Linux ld.so'
14755219820Sjeff  ;;
14756219820Sjeff
14757219820Sjeffnetbsdelf*-gnu)
14758219820Sjeff  version_type=linux
14759219820Sjeff  need_lib_prefix=no
14760219820Sjeff  need_version=no
14761219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14762219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14763219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14764219820Sjeff  shlibpath_overrides_runpath=no
14765219820Sjeff  hardcode_into_libs=yes
14766219820Sjeff  dynamic_linker='NetBSD ld.elf_so'
14767219820Sjeff  ;;
14768219820Sjeff
14769219820Sjeffknetbsd*-gnu)
14770219820Sjeff  version_type=linux
14771219820Sjeff  need_lib_prefix=no
14772219820Sjeff  need_version=no
14773219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14774219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14775219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14776219820Sjeff  shlibpath_overrides_runpath=no
14777219820Sjeff  hardcode_into_libs=yes
14778219820Sjeff  dynamic_linker='GNU ld.so'
14779219820Sjeff  ;;
14780219820Sjeff
14781219820Sjeffnetbsd*)
14782219820Sjeff  version_type=sunos
14783219820Sjeff  need_lib_prefix=no
14784219820Sjeff  need_version=no
14785219820Sjeff  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14786219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14787219820Sjeff    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14788219820Sjeff    dynamic_linker='NetBSD (a.out) ld.so'
14789219820Sjeff  else
14790219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14791219820Sjeff    soname_spec='${libname}${release}${shared_ext}$major'
14792219820Sjeff    dynamic_linker='NetBSD ld.elf_so'
14793219820Sjeff  fi
14794219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14795219820Sjeff  shlibpath_overrides_runpath=yes
14796219820Sjeff  hardcode_into_libs=yes
14797219820Sjeff  ;;
14798219820Sjeff
14799219820Sjeffnewsos6)
14800219820Sjeff  version_type=linux
14801219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14802219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14803219820Sjeff  shlibpath_overrides_runpath=yes
14804219820Sjeff  ;;
14805219820Sjeff
14806219820Sjeffnto-qnx*)
14807219820Sjeff  version_type=linux
14808219820Sjeff  need_lib_prefix=no
14809219820Sjeff  need_version=no
14810219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14812219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14813219820Sjeff  shlibpath_overrides_runpath=yes
14814219820Sjeff  ;;
14815219820Sjeff
14816219820Sjeffopenbsd*)
14817219820Sjeff  version_type=sunos
14818219820Sjeff  sys_lib_dlsearch_path_spec="/usr/lib"
14819219820Sjeff  need_lib_prefix=no
14820219820Sjeff  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14821219820Sjeff  case $host_os in
14822219820Sjeff    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14823219820Sjeff    *)                         need_version=no  ;;
14824219820Sjeff  esac
14825219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14826219820Sjeff  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14827219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14828219820Sjeff  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14829219820Sjeff    case $host_os in
14830219820Sjeff      openbsd2.[89] | openbsd2.[89].*)
14831219820Sjeff	shlibpath_overrides_runpath=no
14832219820Sjeff	;;
14833219820Sjeff      *)
14834219820Sjeff	shlibpath_overrides_runpath=yes
14835219820Sjeff	;;
14836219820Sjeff      esac
14837219820Sjeff  else
14838219820Sjeff    shlibpath_overrides_runpath=yes
14839219820Sjeff  fi
14840219820Sjeff  ;;
14841219820Sjeff
14842219820Sjeffos2*)
14843219820Sjeff  libname_spec='$name'
14844219820Sjeff  shrext_cmds=".dll"
14845219820Sjeff  need_lib_prefix=no
14846219820Sjeff  library_names_spec='$libname${shared_ext} $libname.a'
14847219820Sjeff  dynamic_linker='OS/2 ld.exe'
14848219820Sjeff  shlibpath_var=LIBPATH
14849219820Sjeff  ;;
14850219820Sjeff
14851219820Sjeffosf3* | osf4* | osf5*)
14852219820Sjeff  version_type=osf
14853219820Sjeff  need_lib_prefix=no
14854219820Sjeff  need_version=no
14855219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14856219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14858219820Sjeff  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14859219820Sjeff  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14860219820Sjeff  ;;
14861219820Sjeff
14862219820Sjeffsolaris*)
14863219820Sjeff  version_type=linux
14864219820Sjeff  need_lib_prefix=no
14865219820Sjeff  need_version=no
14866219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14868219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14869219820Sjeff  shlibpath_overrides_runpath=yes
14870219820Sjeff  hardcode_into_libs=yes
14871219820Sjeff  # ldd complains unless libraries are executable
14872219820Sjeff  postinstall_cmds='chmod +x $lib'
14873219820Sjeff  ;;
14874219820Sjeff
14875219820Sjeffsunos4*)
14876219820Sjeff  version_type=sunos
14877219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14878219820Sjeff  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14879219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14880219820Sjeff  shlibpath_overrides_runpath=yes
14881219820Sjeff  if test "$with_gnu_ld" = yes; then
14882219820Sjeff    need_lib_prefix=no
14883219820Sjeff  fi
14884219820Sjeff  need_version=yes
14885219820Sjeff  ;;
14886219820Sjeff
14887219820Sjeffsysv4 | sysv4.3*)
14888219820Sjeff  version_type=linux
14889219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14891219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14892219820Sjeff  case $host_vendor in
14893219820Sjeff    sni)
14894219820Sjeff      shlibpath_overrides_runpath=no
14895219820Sjeff      need_lib_prefix=no
14896219820Sjeff      export_dynamic_flag_spec='${wl}-Blargedynsym'
14897219820Sjeff      runpath_var=LD_RUN_PATH
14898219820Sjeff      ;;
14899219820Sjeff    siemens)
14900219820Sjeff      need_lib_prefix=no
14901219820Sjeff      ;;
14902219820Sjeff    motorola)
14903219820Sjeff      need_lib_prefix=no
14904219820Sjeff      need_version=no
14905219820Sjeff      shlibpath_overrides_runpath=no
14906219820Sjeff      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14907219820Sjeff      ;;
14908219820Sjeff  esac
14909219820Sjeff  ;;
14910219820Sjeff
14911219820Sjeffsysv4*MP*)
14912219820Sjeff  if test -d /usr/nec ;then
14913219820Sjeff    version_type=linux
14914219820Sjeff    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14915219820Sjeff    soname_spec='$libname${shared_ext}.$major'
14916219820Sjeff    shlibpath_var=LD_LIBRARY_PATH
14917219820Sjeff  fi
14918219820Sjeff  ;;
14919219820Sjeff
14920219820Sjeffsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14921219820Sjeff  version_type=freebsd-elf
14922219820Sjeff  need_lib_prefix=no
14923219820Sjeff  need_version=no
14924219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14925219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14926219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14927219820Sjeff  hardcode_into_libs=yes
14928219820Sjeff  if test "$with_gnu_ld" = yes; then
14929219820Sjeff    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14930219820Sjeff    shlibpath_overrides_runpath=no
14931219820Sjeff  else
14932219820Sjeff    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14933219820Sjeff    shlibpath_overrides_runpath=yes
14934219820Sjeff    case $host_os in
14935219820Sjeff      sco3.2v5*)
14936219820Sjeff        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14937219820Sjeff	;;
14938219820Sjeff    esac
14939219820Sjeff  fi
14940219820Sjeff  sys_lib_dlsearch_path_spec='/usr/lib'
14941219820Sjeff  ;;
14942219820Sjeff
14943219820Sjeffuts4*)
14944219820Sjeff  version_type=linux
14945219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
14947219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
14948219820Sjeff  ;;
14949219820Sjeff
14950219820Sjeff*)
14951219820Sjeff  dynamic_linker=no
14952219820Sjeff  ;;
14953219820Sjeffesac
14954219820Sjeffecho "$as_me:$LINENO: result: $dynamic_linker" >&5
14955219820Sjeffecho "${ECHO_T}$dynamic_linker" >&6
14956219820Sjefftest "$dynamic_linker" = no && can_build_shared=no
14957219820Sjeff
14958219820Sjeffvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14959219820Sjeffif test "$GCC" = yes; then
14960219820Sjeff  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14961219820Sjefffi
14962219820Sjeff
14963219820Sjeffecho "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14964219820Sjeffecho $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14965219820Sjeffhardcode_action_F77=
14966219820Sjeffif test -n "$hardcode_libdir_flag_spec_F77" || \
14967219820Sjeff   test -n "$runpath_var_F77" || \
14968219820Sjeff   test "X$hardcode_automatic_F77" = "Xyes" ; then
14969219820Sjeff
14970219820Sjeff  # We can hardcode non-existant directories.
14971219820Sjeff  if test "$hardcode_direct_F77" != no &&
14972219820Sjeff     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14973219820Sjeff     # have to relink, otherwise we might link with an installed library
14974219820Sjeff     # when we should be linking with a yet-to-be-installed one
14975219820Sjeff     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14976219820Sjeff     test "$hardcode_minus_L_F77" != no; then
14977219820Sjeff    # Linking always hardcodes the temporary library directory.
14978219820Sjeff    hardcode_action_F77=relink
14979219820Sjeff  else
14980219820Sjeff    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14981219820Sjeff    hardcode_action_F77=immediate
14982219820Sjeff  fi
14983219820Sjeffelse
14984219820Sjeff  # We cannot hardcode anything, or else we can only hardcode existing
14985219820Sjeff  # directories.
14986219820Sjeff  hardcode_action_F77=unsupported
14987219820Sjefffi
14988219820Sjeffecho "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14989219820Sjeffecho "${ECHO_T}$hardcode_action_F77" >&6
14990219820Sjeff
14991219820Sjeffif test "$hardcode_action_F77" = relink; then
14992219820Sjeff  # Fast installation is not supported
14993219820Sjeff  enable_fast_install=no
14994219820Sjeffelif test "$shlibpath_overrides_runpath" = yes ||
14995219820Sjeff     test "$enable_shared" = no; then
14996219820Sjeff  # Fast installation is not necessary
14997219820Sjeff  enable_fast_install=needless
14998219820Sjefffi
14999219820Sjeff
15000219820Sjeff
15001219820Sjeff# The else clause should only fire when bootstrapping the
15002219820Sjeff# libtool distribution, otherwise you forgot to ship ltmain.sh
15003219820Sjeff# with your package, and you will get complaints that there are
15004219820Sjeff# no rules to generate ltmain.sh.
15005219820Sjeffif test -f "$ltmain"; then
15006219820Sjeff  # See if we are running on zsh, and set the options which allow our commands through
15007219820Sjeff  # without removal of \ escapes.
15008219820Sjeff  if test -n "${ZSH_VERSION+set}" ; then
15009219820Sjeff    setopt NO_GLOB_SUBST
15010219820Sjeff  fi
15011219820Sjeff  # Now quote all the things that may contain metacharacters while being
15012219820Sjeff  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15013219820Sjeff  # variables and quote the copies for generation of the libtool script.
15014219820Sjeff  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15015219820Sjeff    SED SHELL STRIP \
15016219820Sjeff    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15017219820Sjeff    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15018219820Sjeff    deplibs_check_method reload_flag reload_cmds need_locks \
15019219820Sjeff    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15020219820Sjeff    lt_cv_sys_global_symbol_to_c_name_address \
15021219820Sjeff    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15022219820Sjeff    old_postinstall_cmds old_postuninstall_cmds \
15023219820Sjeff    compiler_F77 \
15024219820Sjeff    CC_F77 \
15025219820Sjeff    LD_F77 \
15026219820Sjeff    lt_prog_compiler_wl_F77 \
15027219820Sjeff    lt_prog_compiler_pic_F77 \
15028219820Sjeff    lt_prog_compiler_static_F77 \
15029219820Sjeff    lt_prog_compiler_no_builtin_flag_F77 \
15030219820Sjeff    export_dynamic_flag_spec_F77 \
15031219820Sjeff    thread_safe_flag_spec_F77 \
15032219820Sjeff    whole_archive_flag_spec_F77 \
15033219820Sjeff    enable_shared_with_static_runtimes_F77 \
15034219820Sjeff    old_archive_cmds_F77 \
15035219820Sjeff    old_archive_from_new_cmds_F77 \
15036219820Sjeff    predep_objects_F77 \
15037219820Sjeff    postdep_objects_F77 \
15038219820Sjeff    predeps_F77 \
15039219820Sjeff    postdeps_F77 \
15040219820Sjeff    compiler_lib_search_path_F77 \
15041219820Sjeff    archive_cmds_F77 \
15042219820Sjeff    archive_expsym_cmds_F77 \
15043219820Sjeff    postinstall_cmds_F77 \
15044219820Sjeff    postuninstall_cmds_F77 \
15045219820Sjeff    old_archive_from_expsyms_cmds_F77 \
15046219820Sjeff    allow_undefined_flag_F77 \
15047219820Sjeff    no_undefined_flag_F77 \
15048219820Sjeff    export_symbols_cmds_F77 \
15049219820Sjeff    hardcode_libdir_flag_spec_F77 \
15050219820Sjeff    hardcode_libdir_flag_spec_ld_F77 \
15051219820Sjeff    hardcode_libdir_separator_F77 \
15052219820Sjeff    hardcode_automatic_F77 \
15053219820Sjeff    module_cmds_F77 \
15054219820Sjeff    module_expsym_cmds_F77 \
15055219820Sjeff    lt_cv_prog_compiler_c_o_F77 \
15056219820Sjeff    exclude_expsyms_F77 \
15057219820Sjeff    include_expsyms_F77; do
15058219820Sjeff
15059219820Sjeff    case $var in
15060219820Sjeff    old_archive_cmds_F77 | \
15061219820Sjeff    old_archive_from_new_cmds_F77 | \
15062219820Sjeff    archive_cmds_F77 | \
15063219820Sjeff    archive_expsym_cmds_F77 | \
15064219820Sjeff    module_cmds_F77 | \
15065219820Sjeff    module_expsym_cmds_F77 | \
15066219820Sjeff    old_archive_from_expsyms_cmds_F77 | \
15067219820Sjeff    export_symbols_cmds_F77 | \
15068219820Sjeff    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15069219820Sjeff    postinstall_cmds | postuninstall_cmds | \
15070219820Sjeff    old_postinstall_cmds | old_postuninstall_cmds | \
15071219820Sjeff    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15072219820Sjeff      # Double-quote double-evaled strings.
15073219820Sjeff      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15074219820Sjeff      ;;
15075219820Sjeff    *)
15076219820Sjeff      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15077219820Sjeff      ;;
15078219820Sjeff    esac
15079219820Sjeff  done
15080219820Sjeff
15081219820Sjeff  case $lt_echo in
15082219820Sjeff  *'\$0 --fallback-echo"')
15083219820Sjeff    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15084219820Sjeff    ;;
15085219820Sjeff  esac
15086219820Sjeff
15087219820Sjeffcfgfile="$ofile"
15088219820Sjeff
15089219820Sjeff  cat <<__EOF__ >> "$cfgfile"
15090219820Sjeff# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15091219820Sjeff
15092219820Sjeff# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15093219820Sjeff
15094219820Sjeff# Shell to use when invoking shell scripts.
15095219820SjeffSHELL=$lt_SHELL
15096219820Sjeff
15097219820Sjeff# Whether or not to build shared libraries.
15098219820Sjeffbuild_libtool_libs=$enable_shared
15099219820Sjeff
15100219820Sjeff# Whether or not to build static libraries.
15101219820Sjeffbuild_old_libs=$enable_static
15102219820Sjeff
15103219820Sjeff# Whether or not to add -lc for building shared libraries.
15104219820Sjeffbuild_libtool_need_lc=$archive_cmds_need_lc_F77
15105219820Sjeff
15106219820Sjeff# Whether or not to disallow shared libs when runtime libs are static
15107219820Sjeffallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15108219820Sjeff
15109219820Sjeff# Whether or not to optimize for fast installation.
15110219820Sjefffast_install=$enable_fast_install
15111219820Sjeff
15112219820Sjeff# The host system.
15113219820Sjeffhost_alias=$host_alias
15114219820Sjeffhost=$host
15115219820Sjeffhost_os=$host_os
15116219820Sjeff
15117219820Sjeff# The build system.
15118219820Sjeffbuild_alias=$build_alias
15119219820Sjeffbuild=$build
15120219820Sjeffbuild_os=$build_os
15121219820Sjeff
15122219820Sjeff# An echo program that does not interpret backslashes.
15123219820Sjeffecho=$lt_echo
15124219820Sjeff
15125219820Sjeff# The archiver.
15126219820SjeffAR=$lt_AR
15127219820SjeffAR_FLAGS=$lt_AR_FLAGS
15128219820Sjeff
15129219820Sjeff# A C compiler.
15130219820SjeffLTCC=$lt_LTCC
15131219820Sjeff
15132219820Sjeff# LTCC compiler flags.
15133219820SjeffLTCFLAGS=$lt_LTCFLAGS
15134219820Sjeff
15135219820Sjeff# A language-specific compiler.
15136219820SjeffCC=$lt_compiler_F77
15137219820Sjeff
15138219820Sjeff# Is the compiler the GNU C compiler?
15139219820Sjeffwith_gcc=$GCC_F77
15140219820Sjeff
15141219820Sjeff# An ERE matcher.
15142219820SjeffEGREP=$lt_EGREP
15143219820Sjeff
15144219820Sjeff# The linker used to build libraries.
15145219820SjeffLD=$lt_LD_F77
15146219820Sjeff
15147219820Sjeff# Whether we need hard or soft links.
15148219820SjeffLN_S=$lt_LN_S
15149219820Sjeff
15150219820Sjeff# A BSD-compatible nm program.
15151219820SjeffNM=$lt_NM
15152219820Sjeff
15153219820Sjeff# A symbol stripping program
15154219820SjeffSTRIP=$lt_STRIP
15155219820Sjeff
15156219820Sjeff# Used to examine libraries when file_magic_cmd begins "file"
15157219820SjeffMAGIC_CMD=$MAGIC_CMD
15158219820Sjeff
15159219820Sjeff# Used on cygwin: DLL creation program.
15160219820SjeffDLLTOOL="$DLLTOOL"
15161219820Sjeff
15162219820Sjeff# Used on cygwin: object dumper.
15163219820SjeffOBJDUMP="$OBJDUMP"
15164219820Sjeff
15165219820Sjeff# Used on cygwin: assembler.
15166219820SjeffAS="$AS"
15167219820Sjeff
15168219820Sjeff# The name of the directory that contains temporary libtool files.
15169219820Sjeffobjdir=$objdir
15170219820Sjeff
15171219820Sjeff# How to create reloadable object files.
15172219820Sjeffreload_flag=$lt_reload_flag
15173219820Sjeffreload_cmds=$lt_reload_cmds
15174219820Sjeff
15175219820Sjeff# How to pass a linker flag through the compiler.
15176219820Sjeffwl=$lt_lt_prog_compiler_wl_F77
15177219820Sjeff
15178219820Sjeff# Object file suffix (normally "o").
15179219820Sjeffobjext="$ac_objext"
15180219820Sjeff
15181219820Sjeff# Old archive suffix (normally "a").
15182219820Sjefflibext="$libext"
15183219820Sjeff
15184219820Sjeff# Shared library suffix (normally ".so").
15185219820Sjeffshrext_cmds='$shrext_cmds'
15186219820Sjeff
15187219820Sjeff# Executable file suffix (normally "").
15188219820Sjeffexeext="$exeext"
15189219820Sjeff
15190219820Sjeff# Additional compiler flags for building library objects.
15191219820Sjeffpic_flag=$lt_lt_prog_compiler_pic_F77
15192219820Sjeffpic_mode=$pic_mode
15193219820Sjeff
15194219820Sjeff# What is the maximum length of a command?
15195219820Sjeffmax_cmd_len=$lt_cv_sys_max_cmd_len
15196219820Sjeff
15197219820Sjeff# Does compiler simultaneously support -c and -o options?
15198219820Sjeffcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15199219820Sjeff
15200219820Sjeff# Must we lock files when doing compilation?
15201219820Sjeffneed_locks=$lt_need_locks
15202219820Sjeff
15203219820Sjeff# Do we need the lib prefix for modules?
15204219820Sjeffneed_lib_prefix=$need_lib_prefix
15205219820Sjeff
15206219820Sjeff# Do we need a version for libraries?
15207219820Sjeffneed_version=$need_version
15208219820Sjeff
15209219820Sjeff# Whether dlopen is supported.
15210219820Sjeffdlopen_support=$enable_dlopen
15211219820Sjeff
15212219820Sjeff# Whether dlopen of programs is supported.
15213219820Sjeffdlopen_self=$enable_dlopen_self
15214219820Sjeff
15215219820Sjeff# Whether dlopen of statically linked programs is supported.
15216219820Sjeffdlopen_self_static=$enable_dlopen_self_static
15217219820Sjeff
15218219820Sjeff# Compiler flag to prevent dynamic linking.
15219219820Sjefflink_static_flag=$lt_lt_prog_compiler_static_F77
15220219820Sjeff
15221219820Sjeff# Compiler flag to turn off builtin functions.
15222219820Sjeffno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15223219820Sjeff
15224219820Sjeff# Compiler flag to allow reflexive dlopens.
15225219820Sjeffexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15226219820Sjeff
15227219820Sjeff# Compiler flag to generate shared objects directly from archives.
15228219820Sjeffwhole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15229219820Sjeff
15230219820Sjeff# Compiler flag to generate thread-safe objects.
15231219820Sjeffthread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15232219820Sjeff
15233219820Sjeff# Library versioning type.
15234219820Sjeffversion_type=$version_type
15235219820Sjeff
15236219820Sjeff# Format of library name prefix.
15237219820Sjefflibname_spec=$lt_libname_spec
15238219820Sjeff
15239219820Sjeff# List of archive names.  First name is the real one, the rest are links.
15240219820Sjeff# The last name is the one that the linker finds with -lNAME.
15241219820Sjefflibrary_names_spec=$lt_library_names_spec
15242219820Sjeff
15243219820Sjeff# The coded name of the library, if different from the real name.
15244219820Sjeffsoname_spec=$lt_soname_spec
15245219820Sjeff
15246219820Sjeff# Commands used to build and install an old-style archive.
15247219820SjeffRANLIB=$lt_RANLIB
15248219820Sjeffold_archive_cmds=$lt_old_archive_cmds_F77
15249219820Sjeffold_postinstall_cmds=$lt_old_postinstall_cmds
15250219820Sjeffold_postuninstall_cmds=$lt_old_postuninstall_cmds
15251219820Sjeff
15252219820Sjeff# Create an old-style archive from a shared archive.
15253219820Sjeffold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15254219820Sjeff
15255219820Sjeff# Create a temporary old-style archive to link instead of a shared archive.
15256219820Sjeffold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15257219820Sjeff
15258219820Sjeff# Commands used to build and install a shared archive.
15259219820Sjeffarchive_cmds=$lt_archive_cmds_F77
15260219820Sjeffarchive_expsym_cmds=$lt_archive_expsym_cmds_F77
15261219820Sjeffpostinstall_cmds=$lt_postinstall_cmds
15262219820Sjeffpostuninstall_cmds=$lt_postuninstall_cmds
15263219820Sjeff
15264219820Sjeff# Commands used to build a loadable module (assumed same as above if empty)
15265219820Sjeffmodule_cmds=$lt_module_cmds_F77
15266219820Sjeffmodule_expsym_cmds=$lt_module_expsym_cmds_F77
15267219820Sjeff
15268219820Sjeff# Commands to strip libraries.
15269219820Sjeffold_striplib=$lt_old_striplib
15270219820Sjeffstriplib=$lt_striplib
15271219820Sjeff
15272219820Sjeff# Dependencies to place before the objects being linked to create a
15273219820Sjeff# shared library.
15274219820Sjeffpredep_objects=$lt_predep_objects_F77
15275219820Sjeff
15276219820Sjeff# Dependencies to place after the objects being linked to create a
15277219820Sjeff# shared library.
15278219820Sjeffpostdep_objects=$lt_postdep_objects_F77
15279219820Sjeff
15280219820Sjeff# Dependencies to place before the objects being linked to create a
15281219820Sjeff# shared library.
15282219820Sjeffpredeps=$lt_predeps_F77
15283219820Sjeff
15284219820Sjeff# Dependencies to place after the objects being linked to create a
15285219820Sjeff# shared library.
15286219820Sjeffpostdeps=$lt_postdeps_F77
15287219820Sjeff
15288219820Sjeff# The library search path used internally by the compiler when linking
15289219820Sjeff# a shared library.
15290219820Sjeffcompiler_lib_search_path=$lt_compiler_lib_search_path_F77
15291219820Sjeff
15292219820Sjeff# Method to check whether dependent libraries are shared objects.
15293219820Sjeffdeplibs_check_method=$lt_deplibs_check_method
15294219820Sjeff
15295219820Sjeff# Command to use when deplibs_check_method == file_magic.
15296219820Sjefffile_magic_cmd=$lt_file_magic_cmd
15297219820Sjeff
15298219820Sjeff# Flag that allows shared libraries with undefined symbols to be built.
15299219820Sjeffallow_undefined_flag=$lt_allow_undefined_flag_F77
15300219820Sjeff
15301219820Sjeff# Flag that forces no undefined symbols.
15302219820Sjeffno_undefined_flag=$lt_no_undefined_flag_F77
15303219820Sjeff
15304219820Sjeff# Commands used to finish a libtool library installation in a directory.
15305219820Sjefffinish_cmds=$lt_finish_cmds
15306219820Sjeff
15307219820Sjeff# Same as above, but a single script fragment to be evaled but not shown.
15308219820Sjefffinish_eval=$lt_finish_eval
15309219820Sjeff
15310219820Sjeff# Take the output of nm and produce a listing of raw symbols and C names.
15311219820Sjeffglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15312219820Sjeff
15313219820Sjeff# Transform the output of nm in a proper C declaration
15314219820Sjeffglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15315219820Sjeff
15316219820Sjeff# Transform the output of nm in a C name address pair
15317219820Sjeffglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15318219820Sjeff
15319219820Sjeff# This is the shared library runtime path variable.
15320219820Sjeffrunpath_var=$runpath_var
15321219820Sjeff
15322219820Sjeff# This is the shared library path variable.
15323219820Sjeffshlibpath_var=$shlibpath_var
15324219820Sjeff
15325219820Sjeff# Is shlibpath searched before the hard-coded library search path?
15326219820Sjeffshlibpath_overrides_runpath=$shlibpath_overrides_runpath
15327219820Sjeff
15328219820Sjeff# How to hardcode a shared library path into an executable.
15329219820Sjeffhardcode_action=$hardcode_action_F77
15330219820Sjeff
15331219820Sjeff# Whether we should hardcode library paths into libraries.
15332219820Sjeffhardcode_into_libs=$hardcode_into_libs
15333219820Sjeff
15334219820Sjeff# Flag to hardcode \$libdir into a binary during linking.
15335219820Sjeff# This must work even if \$libdir does not exist.
15336219820Sjeffhardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15337219820Sjeff
15338219820Sjeff# If ld is used when linking, flag to hardcode \$libdir into
15339219820Sjeff# a binary during linking. This must work even if \$libdir does
15340219820Sjeff# not exist.
15341219820Sjeffhardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15342219820Sjeff
15343219820Sjeff# Whether we need a single -rpath flag with a separated argument.
15344219820Sjeffhardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15345219820Sjeff
15346219820Sjeff# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15347219820Sjeff# resulting binary.
15348219820Sjeffhardcode_direct=$hardcode_direct_F77
15349219820Sjeff
15350219820Sjeff# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15351219820Sjeff# resulting binary.
15352219820Sjeffhardcode_minus_L=$hardcode_minus_L_F77
15353219820Sjeff
15354219820Sjeff# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15355219820Sjeff# the resulting binary.
15356219820Sjeffhardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15357219820Sjeff
15358219820Sjeff# Set to yes if building a shared library automatically hardcodes DIR into the library
15359219820Sjeff# and all subsequent libraries and executables linked against it.
15360219820Sjeffhardcode_automatic=$hardcode_automatic_F77
15361219820Sjeff
15362219820Sjeff# Variables whose values should be saved in libtool wrapper scripts and
15363219820Sjeff# restored at relink time.
15364219820Sjeffvariables_saved_for_relink="$variables_saved_for_relink"
15365219820Sjeff
15366219820Sjeff# Whether libtool must link a program against all its dependency libraries.
15367219820Sjefflink_all_deplibs=$link_all_deplibs_F77
15368219820Sjeff
15369219820Sjeff# Compile-time system search path for libraries
15370219820Sjeffsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15371219820Sjeff
15372219820Sjeff# Run-time system search path for libraries
15373219820Sjeffsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15374219820Sjeff
15375219820Sjeff# Fix the shell variable \$srcfile for the compiler.
15376219820Sjefffix_srcfile_path="$fix_srcfile_path_F77"
15377219820Sjeff
15378219820Sjeff# Set to yes if exported symbols are required.
15379219820Sjeffalways_export_symbols=$always_export_symbols_F77
15380219820Sjeff
15381219820Sjeff# The commands to list exported symbols.
15382219820Sjeffexport_symbols_cmds=$lt_export_symbols_cmds_F77
15383219820Sjeff
15384219820Sjeff# The commands to extract the exported symbol list from a shared archive.
15385219820Sjeffextract_expsyms_cmds=$lt_extract_expsyms_cmds
15386219820Sjeff
15387219820Sjeff# Symbols that should not be listed in the preloaded symbols.
15388219820Sjeffexclude_expsyms=$lt_exclude_expsyms_F77
15389219820Sjeff
15390219820Sjeff# Symbols that must always be exported.
15391219820Sjeffinclude_expsyms=$lt_include_expsyms_F77
15392219820Sjeff
15393219820Sjeff# ### END LIBTOOL TAG CONFIG: $tagname
15394219820Sjeff
15395219820Sjeff__EOF__
15396219820Sjeff
15397219820Sjeff
15398219820Sjeffelse
15399219820Sjeff  # If there is no Makefile yet, we rely on a make rule to execute
15400219820Sjeff  # `config.status --recheck' to rerun these tests and create the
15401219820Sjeff  # libtool script then.
15402219820Sjeff  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15403219820Sjeff  if test -f "$ltmain_in"; then
15404219820Sjeff    test -f Makefile && make "$ltmain"
15405219820Sjeff  fi
15406219820Sjefffi
15407219820Sjeff
15408219820Sjeff
15409219820Sjeffac_ext=c
15410219820Sjeffac_cpp='$CPP $CPPFLAGS'
15411219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15412219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15413219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
15414219820Sjeff
15415219820SjeffCC="$lt_save_CC"
15416219820Sjeff
15417219820Sjeff	else
15418219820Sjeff	  tagname=""
15419219820Sjeff	fi
15420219820Sjeff	;;
15421219820Sjeff
15422219820Sjeff      GCJ)
15423219820Sjeff	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15424219820Sjeff
15425219820Sjeff
15426219820Sjeff
15427219820Sjeff# Source file extension for Java test sources.
15428219820Sjeffac_ext=java
15429219820Sjeff
15430219820Sjeff# Object file extension for compiled Java test sources.
15431219820Sjeffobjext=o
15432219820Sjeffobjext_GCJ=$objext
15433219820Sjeff
15434219820Sjeff# Code to be used in simple compile tests
15435219820Sjefflt_simple_compile_test_code="class foo {}\n"
15436219820Sjeff
15437219820Sjeff# Code to be used in simple link tests
15438219820Sjefflt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15439219820Sjeff
15440219820Sjeff# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15441219820Sjeff
15442219820Sjeff# If no C compiler was specified, use CC.
15443219820SjeffLTCC=${LTCC-"$CC"}
15444219820Sjeff
15445219820Sjeff# If no C compiler flags were specified, use CFLAGS.
15446219820SjeffLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15447219820Sjeff
15448219820Sjeff# Allow CC to be a program name with arguments.
15449219820Sjeffcompiler=$CC
15450219820Sjeff
15451219820Sjeff
15452219820Sjeff# save warnings/boilerplate of simple test code
15453219820Sjeffac_outfile=conftest.$ac_objext
15454219820Sjeffprintf "$lt_simple_compile_test_code" >conftest.$ac_ext
15455219820Sjeffeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15456219820Sjeff_lt_compiler_boilerplate=`cat conftest.err`
15457219820Sjeff$rm conftest*
15458219820Sjeff
15459219820Sjeffac_outfile=conftest.$ac_objext
15460219820Sjeffprintf "$lt_simple_link_test_code" >conftest.$ac_ext
15461219820Sjeffeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15462219820Sjeff_lt_linker_boilerplate=`cat conftest.err`
15463219820Sjeff$rm conftest*
15464219820Sjeff
15465219820Sjeff
15466219820Sjeff# Allow CC to be a program name with arguments.
15467219820Sjefflt_save_CC="$CC"
15468219820SjeffCC=${GCJ-"gcj"}
15469219820Sjeffcompiler=$CC
15470219820Sjeffcompiler_GCJ=$CC
15471219820Sjefffor cc_temp in $compiler""; do
15472219820Sjeff  case $cc_temp in
15473219820Sjeff    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15474219820Sjeff    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15475219820Sjeff    \-*) ;;
15476219820Sjeff    *) break;;
15477219820Sjeff  esac
15478219820Sjeffdone
15479219820Sjeffcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15480219820Sjeff
15481219820Sjeff
15482219820Sjeff# GCJ did not exist at the time GCC didn't implicitly link libc in.
15483219820Sjeffarchive_cmds_need_lc_GCJ=no
15484219820Sjeff
15485219820Sjeffold_archive_cmds_GCJ=$old_archive_cmds
15486219820Sjeff
15487219820Sjeff
15488219820Sjefflt_prog_compiler_no_builtin_flag_GCJ=
15489219820Sjeff
15490219820Sjeffif test "$GCC" = yes; then
15491219820Sjeff  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15492219820Sjeff
15493219820Sjeff
15494219820Sjeffecho "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15495219820Sjeffecho $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15496219820Sjeffif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15497219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
15498219820Sjeffelse
15499219820Sjeff  lt_cv_prog_compiler_rtti_exceptions=no
15500219820Sjeff  ac_outfile=conftest.$ac_objext
15501219820Sjeff   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15502219820Sjeff   lt_compiler_flag="-fno-rtti -fno-exceptions"
15503219820Sjeff   # Insert the option either (1) after the last *FLAGS variable, or
15504219820Sjeff   # (2) before a word containing "conftest.", or (3) at the end.
15505219820Sjeff   # Note that $ac_compile itself does not contain backslashes and begins
15506219820Sjeff   # with a dollar sign (not a hyphen), so the echo should work correctly.
15507219820Sjeff   # The option is referenced via a variable to avoid confusing sed.
15508219820Sjeff   lt_compile=`echo "$ac_compile" | $SED \
15509219820Sjeff   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15510219820Sjeff   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15511219820Sjeff   -e 's:$: $lt_compiler_flag:'`
15512219820Sjeff   (eval echo "\"\$as_me:15512: $lt_compile\"" >&5)
15513219820Sjeff   (eval "$lt_compile" 2>conftest.err)
15514219820Sjeff   ac_status=$?
15515219820Sjeff   cat conftest.err >&5
15516219820Sjeff   echo "$as_me:15516: \$? = $ac_status" >&5
15517219820Sjeff   if (exit $ac_status) && test -s "$ac_outfile"; then
15518219820Sjeff     # The compiler can only warn and ignore the option if not recognized
15519219820Sjeff     # So say no if there are warnings other than the usual output.
15520219820Sjeff     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15521219820Sjeff     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15522219820Sjeff     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15523219820Sjeff       lt_cv_prog_compiler_rtti_exceptions=yes
15524219820Sjeff     fi
15525219820Sjeff   fi
15526219820Sjeff   $rm conftest*
15527219820Sjeff
15528219820Sjefffi
15529219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15530219820Sjeffecho "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15531219820Sjeff
15532219820Sjeffif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15533219820Sjeff    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15534219820Sjeffelse
15535219820Sjeff    :
15536219820Sjefffi
15537219820Sjeff
15538219820Sjefffi
15539219820Sjeff
15540219820Sjefflt_prog_compiler_wl_GCJ=
15541219820Sjefflt_prog_compiler_pic_GCJ=
15542219820Sjefflt_prog_compiler_static_GCJ=
15543219820Sjeff
15544219820Sjeffecho "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15545219820Sjeffecho $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15546219820Sjeff
15547219820Sjeff  if test "$GCC" = yes; then
15548219820Sjeff    lt_prog_compiler_wl_GCJ='-Wl,'
15549219820Sjeff    lt_prog_compiler_static_GCJ='-static'
15550219820Sjeff
15551219820Sjeff    case $host_os in
15552219820Sjeff      aix*)
15553219820Sjeff      # All AIX code is PIC.
15554219820Sjeff      if test "$host_cpu" = ia64; then
15555219820Sjeff	# AIX 5 now supports IA64 processor
15556219820Sjeff	lt_prog_compiler_static_GCJ='-Bstatic'
15557219820Sjeff      fi
15558219820Sjeff      ;;
15559219820Sjeff
15560219820Sjeff    amigaos*)
15561219820Sjeff      # FIXME: we need at least 68020 code to build shared libraries, but
15562219820Sjeff      # adding the `-m68020' flag to GCC prevents building anything better,
15563219820Sjeff      # like `-m68040'.
15564219820Sjeff      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15565219820Sjeff      ;;
15566219820Sjeff
15567219820Sjeff    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15568219820Sjeff      # PIC is the default for these OSes.
15569219820Sjeff      ;;
15570219820Sjeff
15571219820Sjeff    mingw* | pw32* | os2*)
15572219820Sjeff      # This hack is so that the source file can tell whether it is being
15573219820Sjeff      # built for inclusion in a dll (and should export symbols for example).
15574219820Sjeff      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15575219820Sjeff      ;;
15576219820Sjeff
15577219820Sjeff    darwin* | rhapsody*)
15578219820Sjeff      # PIC is the default on this platform
15579219820Sjeff      # Common symbols not allowed in MH_DYLIB files
15580219820Sjeff      lt_prog_compiler_pic_GCJ='-fno-common'
15581219820Sjeff      ;;
15582219820Sjeff
15583219820Sjeff    interix3*)
15584219820Sjeff      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15585219820Sjeff      # Instead, we relocate shared libraries at runtime.
15586219820Sjeff      ;;
15587219820Sjeff
15588219820Sjeff    msdosdjgpp*)
15589219820Sjeff      # Just because we use GCC doesn't mean we suddenly get shared libraries
15590219820Sjeff      # on systems that don't support them.
15591219820Sjeff      lt_prog_compiler_can_build_shared_GCJ=no
15592219820Sjeff      enable_shared=no
15593219820Sjeff      ;;
15594219820Sjeff
15595219820Sjeff    sysv4*MP*)
15596219820Sjeff      if test -d /usr/nec; then
15597219820Sjeff	lt_prog_compiler_pic_GCJ=-Kconform_pic
15598219820Sjeff      fi
15599219820Sjeff      ;;
15600219820Sjeff
15601219820Sjeff    hpux*)
15602219820Sjeff      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15603219820Sjeff      # not for PA HP-UX.
15604219820Sjeff      case $host_cpu in
15605219820Sjeff      hppa*64*|ia64*)
15606219820Sjeff	# +Z the default
15607219820Sjeff	;;
15608219820Sjeff      *)
15609219820Sjeff	lt_prog_compiler_pic_GCJ='-fPIC'
15610219820Sjeff	;;
15611219820Sjeff      esac
15612219820Sjeff      ;;
15613219820Sjeff
15614219820Sjeff    *)
15615219820Sjeff      lt_prog_compiler_pic_GCJ='-fPIC'
15616219820Sjeff      ;;
15617219820Sjeff    esac
15618219820Sjeff  else
15619219820Sjeff    # PORTME Check for flag to pass linker flags through the system compiler.
15620219820Sjeff    case $host_os in
15621219820Sjeff    aix*)
15622219820Sjeff      lt_prog_compiler_wl_GCJ='-Wl,'
15623219820Sjeff      if test "$host_cpu" = ia64; then
15624219820Sjeff	# AIX 5 now supports IA64 processor
15625219820Sjeff	lt_prog_compiler_static_GCJ='-Bstatic'
15626219820Sjeff      else
15627219820Sjeff	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15628219820Sjeff      fi
15629219820Sjeff      ;;
15630219820Sjeff      darwin*)
15631219820Sjeff        # PIC is the default on this platform
15632219820Sjeff        # Common symbols not allowed in MH_DYLIB files
15633219820Sjeff       case $cc_basename in
15634219820Sjeff         xlc*)
15635219820Sjeff         lt_prog_compiler_pic_GCJ='-qnocommon'
15636219820Sjeff         lt_prog_compiler_wl_GCJ='-Wl,'
15637219820Sjeff         ;;
15638219820Sjeff       esac
15639219820Sjeff       ;;
15640219820Sjeff
15641219820Sjeff    mingw* | pw32* | os2*)
15642219820Sjeff      # This hack is so that the source file can tell whether it is being
15643219820Sjeff      # built for inclusion in a dll (and should export symbols for example).
15644219820Sjeff      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15645219820Sjeff      ;;
15646219820Sjeff
15647219820Sjeff    hpux9* | hpux10* | hpux11*)
15648219820Sjeff      lt_prog_compiler_wl_GCJ='-Wl,'
15649219820Sjeff      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15650219820Sjeff      # not for PA HP-UX.
15651219820Sjeff      case $host_cpu in
15652219820Sjeff      hppa*64*|ia64*)
15653219820Sjeff	# +Z the default
15654219820Sjeff	;;
15655219820Sjeff      *)
15656219820Sjeff	lt_prog_compiler_pic_GCJ='+Z'
15657219820Sjeff	;;
15658219820Sjeff      esac
15659219820Sjeff      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15660219820Sjeff      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15661219820Sjeff      ;;
15662219820Sjeff
15663219820Sjeff    irix5* | irix6* | nonstopux*)
15664219820Sjeff      lt_prog_compiler_wl_GCJ='-Wl,'
15665219820Sjeff      # PIC (with -KPIC) is the default.
15666219820Sjeff      lt_prog_compiler_static_GCJ='-non_shared'
15667219820Sjeff      ;;
15668219820Sjeff
15669219820Sjeff    newsos6)
15670219820Sjeff      lt_prog_compiler_pic_GCJ='-KPIC'
15671219820Sjeff      lt_prog_compiler_static_GCJ='-Bstatic'
15672219820Sjeff      ;;
15673219820Sjeff
15674219820Sjeff    linux*)
15675219820Sjeff      case $cc_basename in
15676219820Sjeff      icc* | ecc*)
15677219820Sjeff	lt_prog_compiler_wl_GCJ='-Wl,'
15678219820Sjeff	lt_prog_compiler_pic_GCJ='-KPIC'
15679219820Sjeff	lt_prog_compiler_static_GCJ='-static'
15680219820Sjeff        ;;
15681219820Sjeff      pgcc* | pgf77* | pgf90* | pgf95*)
15682219820Sjeff        # Portland Group compilers (*not* the Pentium gcc compiler,
15683219820Sjeff	# which looks to be a dead project)
15684219820Sjeff	lt_prog_compiler_wl_GCJ='-Wl,'
15685219820Sjeff	lt_prog_compiler_pic_GCJ='-fpic'
15686219820Sjeff	lt_prog_compiler_static_GCJ='-Bstatic'
15687219820Sjeff        ;;
15688219820Sjeff      ccc*)
15689219820Sjeff        lt_prog_compiler_wl_GCJ='-Wl,'
15690219820Sjeff        # All Alpha code is PIC.
15691219820Sjeff        lt_prog_compiler_static_GCJ='-non_shared'
15692219820Sjeff        ;;
15693219820Sjeff      esac
15694219820Sjeff      ;;
15695219820Sjeff
15696219820Sjeff    osf3* | osf4* | osf5*)
15697219820Sjeff      lt_prog_compiler_wl_GCJ='-Wl,'
15698219820Sjeff      # All OSF/1 code is PIC.
15699219820Sjeff      lt_prog_compiler_static_GCJ='-non_shared'
15700219820Sjeff      ;;
15701219820Sjeff
15702219820Sjeff    solaris*)
15703219820Sjeff      lt_prog_compiler_pic_GCJ='-KPIC'
15704219820Sjeff      lt_prog_compiler_static_GCJ='-Bstatic'
15705219820Sjeff      case $cc_basename in
15706219820Sjeff      f77* | f90* | f95*)
15707219820Sjeff	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15708219820Sjeff      *)
15709219820Sjeff	lt_prog_compiler_wl_GCJ='-Wl,';;
15710219820Sjeff      esac
15711219820Sjeff      ;;
15712219820Sjeff
15713219820Sjeff    sunos4*)
15714219820Sjeff      lt_prog_compiler_wl_GCJ='-Qoption ld '
15715219820Sjeff      lt_prog_compiler_pic_GCJ='-PIC'
15716219820Sjeff      lt_prog_compiler_static_GCJ='-Bstatic'
15717219820Sjeff      ;;
15718219820Sjeff
15719219820Sjeff    sysv4 | sysv4.2uw2* | sysv4.3*)
15720219820Sjeff      lt_prog_compiler_wl_GCJ='-Wl,'
15721219820Sjeff      lt_prog_compiler_pic_GCJ='-KPIC'
15722219820Sjeff      lt_prog_compiler_static_GCJ='-Bstatic'
15723219820Sjeff      ;;
15724219820Sjeff
15725219820Sjeff    sysv4*MP*)
15726219820Sjeff      if test -d /usr/nec ;then
15727219820Sjeff	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15728219820Sjeff	lt_prog_compiler_static_GCJ='-Bstatic'
15729219820Sjeff      fi
15730219820Sjeff      ;;
15731219820Sjeff
15732219820Sjeff    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15733219820Sjeff      lt_prog_compiler_wl_GCJ='-Wl,'
15734219820Sjeff      lt_prog_compiler_pic_GCJ='-KPIC'
15735219820Sjeff      lt_prog_compiler_static_GCJ='-Bstatic'
15736219820Sjeff      ;;
15737219820Sjeff
15738219820Sjeff    unicos*)
15739219820Sjeff      lt_prog_compiler_wl_GCJ='-Wl,'
15740219820Sjeff      lt_prog_compiler_can_build_shared_GCJ=no
15741219820Sjeff      ;;
15742219820Sjeff
15743219820Sjeff    uts4*)
15744219820Sjeff      lt_prog_compiler_pic_GCJ='-pic'
15745219820Sjeff      lt_prog_compiler_static_GCJ='-Bstatic'
15746219820Sjeff      ;;
15747219820Sjeff
15748219820Sjeff    *)
15749219820Sjeff      lt_prog_compiler_can_build_shared_GCJ=no
15750219820Sjeff      ;;
15751219820Sjeff    esac
15752219820Sjeff  fi
15753219820Sjeff
15754219820Sjeffecho "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15755219820Sjeffecho "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15756219820Sjeff
15757219820Sjeff#
15758219820Sjeff# Check to make sure the PIC flag actually works.
15759219820Sjeff#
15760219820Sjeffif test -n "$lt_prog_compiler_pic_GCJ"; then
15761219820Sjeff
15762219820Sjeffecho "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15763219820Sjeffecho $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15764219820Sjeffif test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15765219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
15766219820Sjeffelse
15767219820Sjeff  lt_prog_compiler_pic_works_GCJ=no
15768219820Sjeff  ac_outfile=conftest.$ac_objext
15769219820Sjeff   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15770219820Sjeff   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15771219820Sjeff   # Insert the option either (1) after the last *FLAGS variable, or
15772219820Sjeff   # (2) before a word containing "conftest.", or (3) at the end.
15773219820Sjeff   # Note that $ac_compile itself does not contain backslashes and begins
15774219820Sjeff   # with a dollar sign (not a hyphen), so the echo should work correctly.
15775219820Sjeff   # The option is referenced via a variable to avoid confusing sed.
15776219820Sjeff   lt_compile=`echo "$ac_compile" | $SED \
15777219820Sjeff   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15778219820Sjeff   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15779219820Sjeff   -e 's:$: $lt_compiler_flag:'`
15780219820Sjeff   (eval echo "\"\$as_me:15780: $lt_compile\"" >&5)
15781219820Sjeff   (eval "$lt_compile" 2>conftest.err)
15782219820Sjeff   ac_status=$?
15783219820Sjeff   cat conftest.err >&5
15784219820Sjeff   echo "$as_me:15784: \$? = $ac_status" >&5
15785219820Sjeff   if (exit $ac_status) && test -s "$ac_outfile"; then
15786219820Sjeff     # The compiler can only warn and ignore the option if not recognized
15787219820Sjeff     # So say no if there are warnings other than the usual output.
15788219820Sjeff     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15789219820Sjeff     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15790219820Sjeff     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15791219820Sjeff       lt_prog_compiler_pic_works_GCJ=yes
15792219820Sjeff     fi
15793219820Sjeff   fi
15794219820Sjeff   $rm conftest*
15795219820Sjeff
15796219820Sjefffi
15797219820Sjeffecho "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15798219820Sjeffecho "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15799219820Sjeff
15800219820Sjeffif test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15801219820Sjeff    case $lt_prog_compiler_pic_GCJ in
15802219820Sjeff     "" | " "*) ;;
15803219820Sjeff     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15804219820Sjeff     esac
15805219820Sjeffelse
15806219820Sjeff    lt_prog_compiler_pic_GCJ=
15807219820Sjeff     lt_prog_compiler_can_build_shared_GCJ=no
15808219820Sjefffi
15809219820Sjeff
15810219820Sjefffi
15811219820Sjeffcase $host_os in
15812219820Sjeff  # For platforms which do not support PIC, -DPIC is meaningless:
15813219820Sjeff  *djgpp*)
15814219820Sjeff    lt_prog_compiler_pic_GCJ=
15815219820Sjeff    ;;
15816219820Sjeff  *)
15817219820Sjeff    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15818219820Sjeff    ;;
15819219820Sjeffesac
15820219820Sjeff
15821219820Sjeff#
15822219820Sjeff# Check to make sure the static flag actually works.
15823219820Sjeff#
15824219820Sjeffwl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15825219820Sjeffecho "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15826219820Sjeffecho $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15827219820Sjeffif test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15828219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
15829219820Sjeffelse
15830219820Sjeff  lt_prog_compiler_static_works_GCJ=no
15831219820Sjeff   save_LDFLAGS="$LDFLAGS"
15832219820Sjeff   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15833219820Sjeff   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15834219820Sjeff   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15835219820Sjeff     # The linker can only warn and ignore the option if not recognized
15836219820Sjeff     # So say no if there are warnings
15837219820Sjeff     if test -s conftest.err; then
15838219820Sjeff       # Append any errors to the config.log.
15839219820Sjeff       cat conftest.err 1>&5
15840219820Sjeff       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15841219820Sjeff       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15842219820Sjeff       if diff conftest.exp conftest.er2 >/dev/null; then
15843219820Sjeff         lt_prog_compiler_static_works_GCJ=yes
15844219820Sjeff       fi
15845219820Sjeff     else
15846219820Sjeff       lt_prog_compiler_static_works_GCJ=yes
15847219820Sjeff     fi
15848219820Sjeff   fi
15849219820Sjeff   $rm conftest*
15850219820Sjeff   LDFLAGS="$save_LDFLAGS"
15851219820Sjeff
15852219820Sjefffi
15853219820Sjeffecho "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15854219820Sjeffecho "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15855219820Sjeff
15856219820Sjeffif test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15857219820Sjeff    :
15858219820Sjeffelse
15859219820Sjeff    lt_prog_compiler_static_GCJ=
15860219820Sjefffi
15861219820Sjeff
15862219820Sjeff
15863219820Sjeffecho "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15864219820Sjeffecho $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15865219820Sjeffif test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15866219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
15867219820Sjeffelse
15868219820Sjeff  lt_cv_prog_compiler_c_o_GCJ=no
15869219820Sjeff   $rm -r conftest 2>/dev/null
15870219820Sjeff   mkdir conftest
15871219820Sjeff   cd conftest
15872219820Sjeff   mkdir out
15873219820Sjeff   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15874219820Sjeff
15875219820Sjeff   lt_compiler_flag="-o out/conftest2.$ac_objext"
15876219820Sjeff   # Insert the option either (1) after the last *FLAGS variable, or
15877219820Sjeff   # (2) before a word containing "conftest.", or (3) at the end.
15878219820Sjeff   # Note that $ac_compile itself does not contain backslashes and begins
15879219820Sjeff   # with a dollar sign (not a hyphen), so the echo should work correctly.
15880219820Sjeff   lt_compile=`echo "$ac_compile" | $SED \
15881219820Sjeff   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15882219820Sjeff   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15883219820Sjeff   -e 's:$: $lt_compiler_flag:'`
15884219820Sjeff   (eval echo "\"\$as_me:15884: $lt_compile\"" >&5)
15885219820Sjeff   (eval "$lt_compile" 2>out/conftest.err)
15886219820Sjeff   ac_status=$?
15887219820Sjeff   cat out/conftest.err >&5
15888219820Sjeff   echo "$as_me:15888: \$? = $ac_status" >&5
15889219820Sjeff   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15890219820Sjeff   then
15891219820Sjeff     # The compiler can only warn and ignore the option if not recognized
15892219820Sjeff     # So say no if there are warnings
15893219820Sjeff     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15894219820Sjeff     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15895219820Sjeff     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15896219820Sjeff       lt_cv_prog_compiler_c_o_GCJ=yes
15897219820Sjeff     fi
15898219820Sjeff   fi
15899219820Sjeff   chmod u+w . 2>&5
15900219820Sjeff   $rm conftest*
15901219820Sjeff   # SGI C++ compiler will create directory out/ii_files/ for
15902219820Sjeff   # template instantiation
15903219820Sjeff   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15904219820Sjeff   $rm out/* && rmdir out
15905219820Sjeff   cd ..
15906219820Sjeff   rmdir conftest
15907219820Sjeff   $rm conftest*
15908219820Sjeff
15909219820Sjefffi
15910219820Sjeffecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15911219820Sjeffecho "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15912219820Sjeff
15913219820Sjeff
15914219820Sjeffhard_links="nottested"
15915219820Sjeffif test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15916219820Sjeff  # do not overwrite the value of need_locks provided by the user
15917219820Sjeff  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15918219820Sjeffecho $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15919219820Sjeff  hard_links=yes
15920219820Sjeff  $rm conftest*
15921219820Sjeff  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15922219820Sjeff  touch conftest.a
15923219820Sjeff  ln conftest.a conftest.b 2>&5 || hard_links=no
15924219820Sjeff  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15925219820Sjeff  echo "$as_me:$LINENO: result: $hard_links" >&5
15926219820Sjeffecho "${ECHO_T}$hard_links" >&6
15927219820Sjeff  if test "$hard_links" = no; then
15928219820Sjeff    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15929219820Sjeffecho "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15930219820Sjeff    need_locks=warn
15931219820Sjeff  fi
15932219820Sjeffelse
15933219820Sjeff  need_locks=no
15934219820Sjefffi
15935219820Sjeff
15936219820Sjeffecho "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15937219820Sjeffecho $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15938219820Sjeff
15939219820Sjeff  runpath_var=
15940219820Sjeff  allow_undefined_flag_GCJ=
15941219820Sjeff  enable_shared_with_static_runtimes_GCJ=no
15942219820Sjeff  archive_cmds_GCJ=
15943219820Sjeff  archive_expsym_cmds_GCJ=
15944219820Sjeff  old_archive_From_new_cmds_GCJ=
15945219820Sjeff  old_archive_from_expsyms_cmds_GCJ=
15946219820Sjeff  export_dynamic_flag_spec_GCJ=
15947219820Sjeff  whole_archive_flag_spec_GCJ=
15948219820Sjeff  thread_safe_flag_spec_GCJ=
15949219820Sjeff  hardcode_libdir_flag_spec_GCJ=
15950219820Sjeff  hardcode_libdir_flag_spec_ld_GCJ=
15951219820Sjeff  hardcode_libdir_separator_GCJ=
15952219820Sjeff  hardcode_direct_GCJ=no
15953219820Sjeff  hardcode_minus_L_GCJ=no
15954219820Sjeff  hardcode_shlibpath_var_GCJ=unsupported
15955219820Sjeff  link_all_deplibs_GCJ=unknown
15956219820Sjeff  hardcode_automatic_GCJ=no
15957219820Sjeff  module_cmds_GCJ=
15958219820Sjeff  module_expsym_cmds_GCJ=
15959219820Sjeff  always_export_symbols_GCJ=no
15960219820Sjeff  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15961219820Sjeff  # include_expsyms should be a list of space-separated symbols to be *always*
15962219820Sjeff  # included in the symbol list
15963219820Sjeff  include_expsyms_GCJ=
15964219820Sjeff  # exclude_expsyms can be an extended regexp of symbols to exclude
15965219820Sjeff  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15966219820Sjeff  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15967219820Sjeff  # as well as any symbol that contains `d'.
15968219820Sjeff  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15969219820Sjeff  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15970219820Sjeff  # platforms (ab)use it in PIC code, but their linkers get confused if
15971219820Sjeff  # the symbol is explicitly referenced.  Since portable code cannot
15972219820Sjeff  # rely on this symbol name, it's probably fine to never include it in
15973219820Sjeff  # preloaded symbol tables.
15974219820Sjeff  extract_expsyms_cmds=
15975219820Sjeff  # Just being paranoid about ensuring that cc_basename is set.
15976219820Sjeff  for cc_temp in $compiler""; do
15977219820Sjeff  case $cc_temp in
15978219820Sjeff    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15979219820Sjeff    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15980219820Sjeff    \-*) ;;
15981219820Sjeff    *) break;;
15982219820Sjeff  esac
15983219820Sjeffdone
15984219820Sjeffcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15985219820Sjeff
15986219820Sjeff  case $host_os in
15987219820Sjeff  cygwin* | mingw* | pw32*)
15988219820Sjeff    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15989219820Sjeff    # When not using gcc, we currently assume that we are using
15990219820Sjeff    # Microsoft Visual C++.
15991219820Sjeff    if test "$GCC" != yes; then
15992219820Sjeff      with_gnu_ld=no
15993219820Sjeff    fi
15994219820Sjeff    ;;
15995219820Sjeff  interix*)
15996219820Sjeff    # we just hope/assume this is gcc and not c89 (= MSVC++)
15997219820Sjeff    with_gnu_ld=yes
15998219820Sjeff    ;;
15999219820Sjeff  openbsd*)
16000219820Sjeff    with_gnu_ld=no
16001219820Sjeff    ;;
16002219820Sjeff  esac
16003219820Sjeff
16004219820Sjeff  ld_shlibs_GCJ=yes
16005219820Sjeff  if test "$with_gnu_ld" = yes; then
16006219820Sjeff    # If archive_cmds runs LD, not CC, wlarc should be empty
16007219820Sjeff    wlarc='${wl}'
16008219820Sjeff
16009219820Sjeff    # Set some defaults for GNU ld with shared library support. These
16010219820Sjeff    # are reset later if shared libraries are not supported. Putting them
16011219820Sjeff    # here allows them to be overridden if necessary.
16012219820Sjeff    runpath_var=LD_RUN_PATH
16013219820Sjeff    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16014219820Sjeff    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16015219820Sjeff    # ancient GNU ld didn't support --whole-archive et. al.
16016219820Sjeff    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16017219820Sjeff	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16018219820Sjeff      else
16019219820Sjeff  	whole_archive_flag_spec_GCJ=
16020219820Sjeff    fi
16021219820Sjeff    supports_anon_versioning=no
16022219820Sjeff    case `$LD -v 2>/dev/null` in
16023219820Sjeff      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16024219820Sjeff      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16025219820Sjeff      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16026219820Sjeff      *\ 2.11.*) ;; # other 2.11 versions
16027219820Sjeff      *) supports_anon_versioning=yes ;;
16028219820Sjeff    esac
16029219820Sjeff
16030219820Sjeff    # See if GNU ld supports shared libraries.
16031219820Sjeff    case $host_os in
16032219820Sjeff    aix3* | aix4* | aix5*)
16033219820Sjeff      # On AIX/PPC, the GNU linker is very broken
16034219820Sjeff      if test "$host_cpu" != ia64; then
16035219820Sjeff	ld_shlibs_GCJ=no
16036219820Sjeff	cat <<EOF 1>&2
16037219820Sjeff
16038219820Sjeff*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16039219820Sjeff*** to be unable to reliably create shared libraries on AIX.
16040219820Sjeff*** Therefore, libtool is disabling shared libraries support.  If you
16041219820Sjeff*** really care for shared libraries, you may want to modify your PATH
16042219820Sjeff*** so that a non-GNU linker is found, and then restart.
16043219820Sjeff
16044219820SjeffEOF
16045219820Sjeff      fi
16046219820Sjeff      ;;
16047219820Sjeff
16048219820Sjeff    amigaos*)
16049219820Sjeff      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)'
16050219820Sjeff      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16051219820Sjeff      hardcode_minus_L_GCJ=yes
16052219820Sjeff
16053219820Sjeff      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16054219820Sjeff      # that the semantics of dynamic libraries on AmigaOS, at least up
16055219820Sjeff      # to version 4, is to share data among multiple programs linked
16056219820Sjeff      # with the same dynamic library.  Since this doesn't match the
16057219820Sjeff      # behavior of shared libraries on other platforms, we can't use
16058219820Sjeff      # them.
16059219820Sjeff      ld_shlibs_GCJ=no
16060219820Sjeff      ;;
16061219820Sjeff
16062219820Sjeff    beos*)
16063219820Sjeff      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16064219820Sjeff	allow_undefined_flag_GCJ=unsupported
16065219820Sjeff	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16066219820Sjeff	# support --undefined.  This deserves some investigation.  FIXME
16067219820Sjeff	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16068219820Sjeff      else
16069219820Sjeff	ld_shlibs_GCJ=no
16070219820Sjeff      fi
16071219820Sjeff      ;;
16072219820Sjeff
16073219820Sjeff    cygwin* | mingw* | pw32*)
16074219820Sjeff      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16075219820Sjeff      # as there is no search path for DLLs.
16076219820Sjeff      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16077219820Sjeff      allow_undefined_flag_GCJ=unsupported
16078219820Sjeff      always_export_symbols_GCJ=no
16079219820Sjeff      enable_shared_with_static_runtimes_GCJ=yes
16080219820Sjeff      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16081219820Sjeff
16082219820Sjeff      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16083219820Sjeff        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16084219820Sjeff	# If the export-symbols file already is a .def file (1st line
16085219820Sjeff	# is EXPORTS), use it as is; otherwise, prepend...
16086219820Sjeff	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16087219820Sjeff	  cp $export_symbols $output_objdir/$soname.def;
16088219820Sjeff	else
16089219820Sjeff	  echo EXPORTS > $output_objdir/$soname.def;
16090219820Sjeff	  cat $export_symbols >> $output_objdir/$soname.def;
16091219820Sjeff	fi~
16092219820Sjeff	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16093219820Sjeff      else
16094219820Sjeff	ld_shlibs_GCJ=no
16095219820Sjeff      fi
16096219820Sjeff      ;;
16097219820Sjeff
16098219820Sjeff    interix3*)
16099219820Sjeff      hardcode_direct_GCJ=no
16100219820Sjeff      hardcode_shlibpath_var_GCJ=no
16101219820Sjeff      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16102219820Sjeff      export_dynamic_flag_spec_GCJ='${wl}-E'
16103219820Sjeff      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16104219820Sjeff      # Instead, shared libraries are loaded at an image base (0x10000000 by
16105219820Sjeff      # default) and relocated if they conflict, which is a slow very memory
16106219820Sjeff      # consuming and fragmenting process.  To avoid this, we pick a random,
16107219820Sjeff      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16108219820Sjeff      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16109219820Sjeff      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'
16110219820Sjeff      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'
16111219820Sjeff      ;;
16112219820Sjeff
16113219820Sjeff    linux*)
16114219820Sjeff      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16115219820Sjeff	tmp_addflag=
16116219820Sjeff	case $cc_basename,$host_cpu in
16117219820Sjeff	pgcc*)				# Portland Group C compiler
16118219820Sjeff	  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'
16119219820Sjeff	  tmp_addflag=' $pic_flag'
16120219820Sjeff	  ;;
16121219820Sjeff	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16122219820Sjeff	  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'
16123219820Sjeff	  tmp_addflag=' $pic_flag -Mnomain' ;;
16124219820Sjeff	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16125219820Sjeff	  tmp_addflag=' -i_dynamic' ;;
16126219820Sjeff	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16127219820Sjeff	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16128219820Sjeff	ifc* | ifort*)			# Intel Fortran compiler
16129219820Sjeff	  tmp_addflag=' -nofor_main' ;;
16130219820Sjeff	esac
16131219820Sjeff	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16132219820Sjeff
16133219820Sjeff	if test $supports_anon_versioning = yes; then
16134219820Sjeff	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16135219820Sjeff  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16136219820Sjeff  $echo "local: *; };" >> $output_objdir/$libname.ver~
16137219820Sjeff	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16138219820Sjeff	fi
16139219820Sjeff	link_all_deplibs_GCJ=no
16140219820Sjeff      else
16141219820Sjeff	ld_shlibs_GCJ=no
16142219820Sjeff      fi
16143219820Sjeff      ;;
16144219820Sjeff
16145219820Sjeff    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16146219820Sjeff      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16147219820Sjeff	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16148219820Sjeff	wlarc=
16149219820Sjeff      else
16150219820Sjeff	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16151219820Sjeff	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16152219820Sjeff      fi
16153219820Sjeff      ;;
16154219820Sjeff
16155219820Sjeff    solaris*)
16156219820Sjeff      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16157219820Sjeff	ld_shlibs_GCJ=no
16158219820Sjeff	cat <<EOF 1>&2
16159219820Sjeff
16160219820Sjeff*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16161219820Sjeff*** create shared libraries on Solaris systems.  Therefore, libtool
16162219820Sjeff*** is disabling shared libraries support.  We urge you to upgrade GNU
16163219820Sjeff*** binutils to release 2.9.1 or newer.  Another option is to modify
16164219820Sjeff*** your PATH or compiler configuration so that the native linker is
16165219820Sjeff*** used, and then restart.
16166219820Sjeff
16167219820SjeffEOF
16168219820Sjeff      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16169219820Sjeff	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170219820Sjeff	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16171219820Sjeff      else
16172219820Sjeff	ld_shlibs_GCJ=no
16173219820Sjeff      fi
16174219820Sjeff      ;;
16175219820Sjeff
16176219820Sjeff    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16177219820Sjeff      case `$LD -v 2>&1` in
16178219820Sjeff        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16179219820Sjeff	ld_shlibs_GCJ=no
16180219820Sjeff	cat <<_LT_EOF 1>&2
16181219820Sjeff
16182219820Sjeff*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16183219820Sjeff*** reliably create shared libraries on SCO systems.  Therefore, libtool
16184219820Sjeff*** is disabling shared libraries support.  We urge you to upgrade GNU
16185219820Sjeff*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16186219820Sjeff*** your PATH or compiler configuration so that the native linker is
16187219820Sjeff*** used, and then restart.
16188219820Sjeff
16189219820Sjeff_LT_EOF
16190219820Sjeff	;;
16191219820Sjeff	*)
16192219820Sjeff	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16193219820Sjeff	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16194219820Sjeff	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16195219820Sjeff	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16196219820Sjeff	  else
16197219820Sjeff	    ld_shlibs_GCJ=no
16198219820Sjeff	  fi
16199219820Sjeff	;;
16200219820Sjeff      esac
16201219820Sjeff      ;;
16202219820Sjeff
16203219820Sjeff    sunos4*)
16204219820Sjeff      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16205219820Sjeff      wlarc=
16206219820Sjeff      hardcode_direct_GCJ=yes
16207219820Sjeff      hardcode_shlibpath_var_GCJ=no
16208219820Sjeff      ;;
16209219820Sjeff
16210219820Sjeff    *)
16211219820Sjeff      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16212219820Sjeff	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213219820Sjeff	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16214219820Sjeff      else
16215219820Sjeff	ld_shlibs_GCJ=no
16216219820Sjeff      fi
16217219820Sjeff      ;;
16218219820Sjeff    esac
16219219820Sjeff
16220219820Sjeff    if test "$ld_shlibs_GCJ" = no; then
16221219820Sjeff      runpath_var=
16222219820Sjeff      hardcode_libdir_flag_spec_GCJ=
16223219820Sjeff      export_dynamic_flag_spec_GCJ=
16224219820Sjeff      whole_archive_flag_spec_GCJ=
16225219820Sjeff    fi
16226219820Sjeff  else
16227219820Sjeff    # PORTME fill in a description of your system's linker (not GNU ld)
16228219820Sjeff    case $host_os in
16229219820Sjeff    aix3*)
16230219820Sjeff      allow_undefined_flag_GCJ=unsupported
16231219820Sjeff      always_export_symbols_GCJ=yes
16232219820Sjeff      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'
16233219820Sjeff      # Note: this linker hardcodes the directories in LIBPATH if there
16234219820Sjeff      # are no directories specified by -L.
16235219820Sjeff      hardcode_minus_L_GCJ=yes
16236219820Sjeff      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16237219820Sjeff	# Neither direct hardcoding nor static linking is supported with a
16238219820Sjeff	# broken collect2.
16239219820Sjeff	hardcode_direct_GCJ=unsupported
16240219820Sjeff      fi
16241219820Sjeff      ;;
16242219820Sjeff
16243219820Sjeff    aix4* | aix5*)
16244219820Sjeff      if test "$host_cpu" = ia64; then
16245219820Sjeff	# On IA64, the linker does run time linking by default, so we don't
16246219820Sjeff	# have to do anything special.
16247219820Sjeff	aix_use_runtimelinking=no
16248219820Sjeff	exp_sym_flag='-Bexport'
16249219820Sjeff	no_entry_flag=""
16250219820Sjeff      else
16251219820Sjeff	# If we're using GNU nm, then we don't want the "-C" option.
16252219820Sjeff	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16253219820Sjeff	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16254219820Sjeff	  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'
16255219820Sjeff	else
16256219820Sjeff	  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'
16257219820Sjeff	fi
16258219820Sjeff	aix_use_runtimelinking=no
16259219820Sjeff
16260219820Sjeff	# Test if we are trying to use run time linking or normal
16261219820Sjeff	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16262219820Sjeff	# need to do runtime linking.
16263219820Sjeff	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16264219820Sjeff	  for ld_flag in $LDFLAGS; do
16265219820Sjeff  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16266219820Sjeff  	    aix_use_runtimelinking=yes
16267219820Sjeff  	    break
16268219820Sjeff  	  fi
16269219820Sjeff	  done
16270219820Sjeff	  ;;
16271219820Sjeff	esac
16272219820Sjeff
16273219820Sjeff	exp_sym_flag='-bexport'
16274219820Sjeff	no_entry_flag='-bnoentry'
16275219820Sjeff      fi
16276219820Sjeff
16277219820Sjeff      # When large executables or shared objects are built, AIX ld can
16278219820Sjeff      # have problems creating the table of contents.  If linking a library
16279219820Sjeff      # or program results in "error TOC overflow" add -mminimal-toc to
16280219820Sjeff      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16281219820Sjeff      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16282219820Sjeff
16283219820Sjeff      archive_cmds_GCJ=''
16284219820Sjeff      hardcode_direct_GCJ=yes
16285219820Sjeff      hardcode_libdir_separator_GCJ=':'
16286219820Sjeff      link_all_deplibs_GCJ=yes
16287219820Sjeff
16288219820Sjeff      if test "$GCC" = yes; then
16289219820Sjeff	case $host_os in aix4.[012]|aix4.[012].*)
16290219820Sjeff	# We only want to do this on AIX 4.2 and lower, the check
16291219820Sjeff	# below for broken collect2 doesn't work under 4.3+
16292219820Sjeff	  collect2name=`${CC} -print-prog-name=collect2`
16293219820Sjeff	  if test -f "$collect2name" && \
16294219820Sjeff  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16295219820Sjeff	  then
16296219820Sjeff  	  # We have reworked collect2
16297219820Sjeff  	  hardcode_direct_GCJ=yes
16298219820Sjeff	  else
16299219820Sjeff  	  # We have old collect2
16300219820Sjeff  	  hardcode_direct_GCJ=unsupported
16301219820Sjeff  	  # It fails to find uninstalled libraries when the uninstalled
16302219820Sjeff  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16303219820Sjeff  	  # to unsupported forces relinking
16304219820Sjeff  	  hardcode_minus_L_GCJ=yes
16305219820Sjeff  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16306219820Sjeff  	  hardcode_libdir_separator_GCJ=
16307219820Sjeff	  fi
16308219820Sjeff	  ;;
16309219820Sjeff	esac
16310219820Sjeff	shared_flag='-shared'
16311219820Sjeff	if test "$aix_use_runtimelinking" = yes; then
16312219820Sjeff	  shared_flag="$shared_flag "'${wl}-G'
16313219820Sjeff	fi
16314219820Sjeff      else
16315219820Sjeff	# not using gcc
16316219820Sjeff	if test "$host_cpu" = ia64; then
16317219820Sjeff  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16318219820Sjeff  	# chokes on -Wl,-G. The following line is correct:
16319219820Sjeff	  shared_flag='-G'
16320219820Sjeff	else
16321219820Sjeff	  if test "$aix_use_runtimelinking" = yes; then
16322219820Sjeff	    shared_flag='${wl}-G'
16323219820Sjeff	  else
16324219820Sjeff	    shared_flag='${wl}-bM:SRE'
16325219820Sjeff	  fi
16326219820Sjeff	fi
16327219820Sjeff      fi
16328219820Sjeff
16329219820Sjeff      # It seems that -bexpall does not export symbols beginning with
16330219820Sjeff      # underscore (_), so it is better to generate a list of symbols to export.
16331219820Sjeff      always_export_symbols_GCJ=yes
16332219820Sjeff      if test "$aix_use_runtimelinking" = yes; then
16333219820Sjeff	# Warning - without using the other runtime loading flags (-brtl),
16334219820Sjeff	# -berok will link without error, but may produce a broken library.
16335219820Sjeff	allow_undefined_flag_GCJ='-berok'
16336219820Sjeff       # Determine the default libpath from the value encoded in an empty executable.
16337219820Sjeff       cat >conftest.$ac_ext <<_ACEOF
16338219820Sjeff/* confdefs.h.  */
16339219820Sjeff_ACEOF
16340219820Sjeffcat confdefs.h >>conftest.$ac_ext
16341219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
16342219820Sjeff/* end confdefs.h.  */
16343219820Sjeff
16344219820Sjeffint
16345219820Sjeffmain ()
16346219820Sjeff{
16347219820Sjeff
16348219820Sjeff  ;
16349219820Sjeff  return 0;
16350219820Sjeff}
16351219820Sjeff_ACEOF
16352219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
16353219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16354219820Sjeff  (eval $ac_link) 2>conftest.er1
16355219820Sjeff  ac_status=$?
16356219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
16357219820Sjeff  rm -f conftest.er1
16358219820Sjeff  cat conftest.err >&5
16359219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360219820Sjeff  (exit $ac_status); } &&
16361219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16362219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363219820Sjeff  (eval $ac_try) 2>&5
16364219820Sjeff  ac_status=$?
16365219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366219820Sjeff  (exit $ac_status); }; } &&
16367219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
16368219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369219820Sjeff  (eval $ac_try) 2>&5
16370219820Sjeff  ac_status=$?
16371219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372219820Sjeff  (exit $ac_status); }; }; then
16373219820Sjeff
16374219820Sjeffaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16375219820Sjeff}'`
16376219820Sjeff# Check for a 64-bit object if we didn't find anything.
16377219820Sjeffif 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; }
16378219820Sjeff}'`; fi
16379219820Sjeffelse
16380219820Sjeff  echo "$as_me: failed program was:" >&5
16381219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
16382219820Sjeff
16383219820Sjefffi
16384219820Sjeffrm -f conftest.err conftest.$ac_objext \
16385219820Sjeff      conftest$ac_exeext conftest.$ac_ext
16386219820Sjeffif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16387219820Sjeff
16388219820Sjeff       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16389219820Sjeff	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"
16390219820Sjeff       else
16391219820Sjeff	if test "$host_cpu" = ia64; then
16392219820Sjeff	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16393219820Sjeff	  allow_undefined_flag_GCJ="-z nodefs"
16394219820Sjeff	  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"
16395219820Sjeff	else
16396219820Sjeff	 # Determine the default libpath from the value encoded in an empty executable.
16397219820Sjeff	 cat >conftest.$ac_ext <<_ACEOF
16398219820Sjeff/* confdefs.h.  */
16399219820Sjeff_ACEOF
16400219820Sjeffcat confdefs.h >>conftest.$ac_ext
16401219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
16402219820Sjeff/* end confdefs.h.  */
16403219820Sjeff
16404219820Sjeffint
16405219820Sjeffmain ()
16406219820Sjeff{
16407219820Sjeff
16408219820Sjeff  ;
16409219820Sjeff  return 0;
16410219820Sjeff}
16411219820Sjeff_ACEOF
16412219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
16413219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16414219820Sjeff  (eval $ac_link) 2>conftest.er1
16415219820Sjeff  ac_status=$?
16416219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
16417219820Sjeff  rm -f conftest.er1
16418219820Sjeff  cat conftest.err >&5
16419219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420219820Sjeff  (exit $ac_status); } &&
16421219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16422219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423219820Sjeff  (eval $ac_try) 2>&5
16424219820Sjeff  ac_status=$?
16425219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426219820Sjeff  (exit $ac_status); }; } &&
16427219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
16428219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429219820Sjeff  (eval $ac_try) 2>&5
16430219820Sjeff  ac_status=$?
16431219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432219820Sjeff  (exit $ac_status); }; }; then
16433219820Sjeff
16434219820Sjeffaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16435219820Sjeff}'`
16436219820Sjeff# Check for a 64-bit object if we didn't find anything.
16437219820Sjeffif 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; }
16438219820Sjeff}'`; fi
16439219820Sjeffelse
16440219820Sjeff  echo "$as_me: failed program was:" >&5
16441219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
16442219820Sjeff
16443219820Sjefffi
16444219820Sjeffrm -f conftest.err conftest.$ac_objext \
16445219820Sjeff      conftest$ac_exeext conftest.$ac_ext
16446219820Sjeffif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16447219820Sjeff
16448219820Sjeff	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16449219820Sjeff	  # Warning - without using the other run time loading flags,
16450219820Sjeff	  # -berok will link without error, but may produce a broken library.
16451219820Sjeff	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16452219820Sjeff	  allow_undefined_flag_GCJ=' ${wl}-berok'
16453219820Sjeff	  # Exported symbols can be pulled into shared objects from archives
16454219820Sjeff	  whole_archive_flag_spec_GCJ='$convenience'
16455219820Sjeff	  archive_cmds_need_lc_GCJ=yes
16456219820Sjeff	  # This is similar to how AIX traditionally builds its shared libraries.
16457219820Sjeff	  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'
16458219820Sjeff	fi
16459219820Sjeff      fi
16460219820Sjeff      ;;
16461219820Sjeff
16462219820Sjeff    amigaos*)
16463219820Sjeff      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)'
16464219820Sjeff      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16465219820Sjeff      hardcode_minus_L_GCJ=yes
16466219820Sjeff      # see comment about different semantics on the GNU ld section
16467219820Sjeff      ld_shlibs_GCJ=no
16468219820Sjeff      ;;
16469219820Sjeff
16470219820Sjeff    bsdi[45]*)
16471219820Sjeff      export_dynamic_flag_spec_GCJ=-rdynamic
16472219820Sjeff      ;;
16473219820Sjeff
16474219820Sjeff    cygwin* | mingw* | pw32*)
16475219820Sjeff      # When not using gcc, we currently assume that we are using
16476219820Sjeff      # Microsoft Visual C++.
16477219820Sjeff      # hardcode_libdir_flag_spec is actually meaningless, as there is
16478219820Sjeff      # no search path for DLLs.
16479219820Sjeff      hardcode_libdir_flag_spec_GCJ=' '
16480219820Sjeff      allow_undefined_flag_GCJ=unsupported
16481219820Sjeff      # Tell ltmain to make .lib files, not .a files.
16482219820Sjeff      libext=lib
16483219820Sjeff      # Tell ltmain to make .dll files, not .so files.
16484219820Sjeff      shrext_cmds=".dll"
16485219820Sjeff      # FIXME: Setting linknames here is a bad hack.
16486219820Sjeff      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16487219820Sjeff      # The linker will automatically build a .lib file if we build a DLL.
16488219820Sjeff      old_archive_From_new_cmds_GCJ='true'
16489219820Sjeff      # FIXME: Should let the user specify the lib program.
16490219820Sjeff      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16491219820Sjeff      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16492219820Sjeff      enable_shared_with_static_runtimes_GCJ=yes
16493219820Sjeff      ;;
16494219820Sjeff
16495219820Sjeff    darwin* | rhapsody*)
16496219820Sjeff      case $host_os in
16497219820Sjeff        rhapsody* | darwin1.[012])
16498219820Sjeff         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16499219820Sjeff         ;;
16500219820Sjeff       *) # Darwin 1.3 on
16501219820Sjeff         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16502219820Sjeff           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16503219820Sjeff         else
16504219820Sjeff           case ${MACOSX_DEPLOYMENT_TARGET} in
16505219820Sjeff             10.[012])
16506219820Sjeff               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16507219820Sjeff               ;;
16508219820Sjeff             10.*)
16509219820Sjeff               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16510219820Sjeff               ;;
16511219820Sjeff           esac
16512219820Sjeff         fi
16513219820Sjeff         ;;
16514219820Sjeff      esac
16515219820Sjeff      archive_cmds_need_lc_GCJ=no
16516219820Sjeff      hardcode_direct_GCJ=no
16517219820Sjeff      hardcode_automatic_GCJ=yes
16518219820Sjeff      hardcode_shlibpath_var_GCJ=unsupported
16519219820Sjeff      whole_archive_flag_spec_GCJ=''
16520219820Sjeff      link_all_deplibs_GCJ=yes
16521219820Sjeff    if test "$GCC" = yes ; then
16522219820Sjeff    	output_verbose_link_cmd='echo'
16523219820Sjeff        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16524219820Sjeff      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16525219820Sjeff      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16526219820Sjeff      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}'
16527219820Sjeff      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}'
16528219820Sjeff    else
16529219820Sjeff      case $cc_basename in
16530219820Sjeff        xlc*)
16531219820Sjeff         output_verbose_link_cmd='echo'
16532219820Sjeff         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16533219820Sjeff         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16534219820Sjeff          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16535219820Sjeff         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}'
16536219820Sjeff          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}'
16537219820Sjeff          ;;
16538219820Sjeff       *)
16539219820Sjeff         ld_shlibs_GCJ=no
16540219820Sjeff          ;;
16541219820Sjeff      esac
16542219820Sjeff    fi
16543219820Sjeff      ;;
16544219820Sjeff
16545219820Sjeff    dgux*)
16546219820Sjeff      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16547219820Sjeff      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16548219820Sjeff      hardcode_shlibpath_var_GCJ=no
16549219820Sjeff      ;;
16550219820Sjeff
16551219820Sjeff    freebsd1*)
16552219820Sjeff      ld_shlibs_GCJ=no
16553219820Sjeff      ;;
16554219820Sjeff
16555219820Sjeff    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16556219820Sjeff    # support.  Future versions do this automatically, but an explicit c++rt0.o
16557219820Sjeff    # does not break anything, and helps significantly (at the cost of a little
16558219820Sjeff    # extra space).
16559219820Sjeff    freebsd2.2*)
16560219820Sjeff      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16561219820Sjeff      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16562219820Sjeff      hardcode_direct_GCJ=yes
16563219820Sjeff      hardcode_shlibpath_var_GCJ=no
16564219820Sjeff      ;;
16565219820Sjeff
16566219820Sjeff    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16567219820Sjeff    freebsd2*)
16568219820Sjeff      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16569219820Sjeff      hardcode_direct_GCJ=yes
16570219820Sjeff      hardcode_minus_L_GCJ=yes
16571219820Sjeff      hardcode_shlibpath_var_GCJ=no
16572219820Sjeff      ;;
16573219820Sjeff
16574219820Sjeff    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16575219820Sjeff    freebsd* | dragonfly*)
16576219820Sjeff      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16577219820Sjeff      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16578219820Sjeff      hardcode_direct_GCJ=yes
16579219820Sjeff      hardcode_shlibpath_var_GCJ=no
16580219820Sjeff      ;;
16581219820Sjeff
16582219820Sjeff    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16583219820Sjeff    kfreebsd*-gnu)
16584219820Sjeff      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16585219820Sjeff      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16586219820Sjeff      hardcode_direct_GCJ=yes
16587219820Sjeff      hardcode_shlibpath_var_GCJ=no
16588219820Sjeff      link_all_deplibs_GCJ=no
16589219820Sjeff      ;;
16590219820Sjeff
16591219820Sjeff    hpux9*)
16592219820Sjeff      if test "$GCC" = yes; then
16593219820Sjeff	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'
16594219820Sjeff      else
16595219820Sjeff	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'
16596219820Sjeff      fi
16597219820Sjeff      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16598219820Sjeff      hardcode_libdir_separator_GCJ=:
16599219820Sjeff      hardcode_direct_GCJ=yes
16600219820Sjeff
16601219820Sjeff      # hardcode_minus_L: Not really in the search PATH,
16602219820Sjeff      # but as the default location of the library.
16603219820Sjeff      hardcode_minus_L_GCJ=yes
16604219820Sjeff      export_dynamic_flag_spec_GCJ='${wl}-E'
16605219820Sjeff      ;;
16606219820Sjeff
16607219820Sjeff    hpux10*)
16608219820Sjeff      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16609219820Sjeff	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16610219820Sjeff      else
16611219820Sjeff	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16612219820Sjeff      fi
16613219820Sjeff      if test "$with_gnu_ld" = no; then
16614219820Sjeff	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16615219820Sjeff	hardcode_libdir_separator_GCJ=:
16616219820Sjeff
16617219820Sjeff	hardcode_direct_GCJ=yes
16618219820Sjeff	export_dynamic_flag_spec_GCJ='${wl}-E'
16619219820Sjeff
16620219820Sjeff	# hardcode_minus_L: Not really in the search PATH,
16621219820Sjeff	# but as the default location of the library.
16622219820Sjeff	hardcode_minus_L_GCJ=yes
16623219820Sjeff      fi
16624219820Sjeff      ;;
16625219820Sjeff
16626219820Sjeff    hpux11*)
16627219820Sjeff      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16628219820Sjeff	case $host_cpu in
16629219820Sjeff	hppa*64*)
16630219820Sjeff	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16631219820Sjeff	  ;;
16632219820Sjeff	ia64*)
16633219820Sjeff	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16634219820Sjeff	  ;;
16635219820Sjeff	*)
16636219820Sjeff	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16637219820Sjeff	  ;;
16638219820Sjeff	esac
16639219820Sjeff      else
16640219820Sjeff	case $host_cpu in
16641219820Sjeff	hppa*64*)
16642219820Sjeff	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16643219820Sjeff	  ;;
16644219820Sjeff	ia64*)
16645219820Sjeff	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16646219820Sjeff	  ;;
16647219820Sjeff	*)
16648219820Sjeff	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16649219820Sjeff	  ;;
16650219820Sjeff	esac
16651219820Sjeff      fi
16652219820Sjeff      if test "$with_gnu_ld" = no; then
16653219820Sjeff	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16654219820Sjeff	hardcode_libdir_separator_GCJ=:
16655219820Sjeff
16656219820Sjeff	case $host_cpu in
16657219820Sjeff	hppa*64*|ia64*)
16658219820Sjeff	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16659219820Sjeff	  hardcode_direct_GCJ=no
16660219820Sjeff	  hardcode_shlibpath_var_GCJ=no
16661219820Sjeff	  ;;
16662219820Sjeff	*)
16663219820Sjeff	  hardcode_direct_GCJ=yes
16664219820Sjeff	  export_dynamic_flag_spec_GCJ='${wl}-E'
16665219820Sjeff
16666219820Sjeff	  # hardcode_minus_L: Not really in the search PATH,
16667219820Sjeff	  # but as the default location of the library.
16668219820Sjeff	  hardcode_minus_L_GCJ=yes
16669219820Sjeff	  ;;
16670219820Sjeff	esac
16671219820Sjeff      fi
16672219820Sjeff      ;;
16673219820Sjeff
16674219820Sjeff    irix5* | irix6* | nonstopux*)
16675219820Sjeff      if test "$GCC" = yes; then
16676219820Sjeff	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'
16677219820Sjeff      else
16678219820Sjeff	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'
16679219820Sjeff	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16680219820Sjeff      fi
16681219820Sjeff      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16682219820Sjeff      hardcode_libdir_separator_GCJ=:
16683219820Sjeff      link_all_deplibs_GCJ=yes
16684219820Sjeff      ;;
16685219820Sjeff
16686219820Sjeff    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16687219820Sjeff      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16688219820Sjeff	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16689219820Sjeff      else
16690219820Sjeff	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16691219820Sjeff      fi
16692219820Sjeff      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16693219820Sjeff      hardcode_direct_GCJ=yes
16694219820Sjeff      hardcode_shlibpath_var_GCJ=no
16695219820Sjeff      ;;
16696219820Sjeff
16697219820Sjeff    newsos6)
16698219820Sjeff      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699219820Sjeff      hardcode_direct_GCJ=yes
16700219820Sjeff      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16701219820Sjeff      hardcode_libdir_separator_GCJ=:
16702219820Sjeff      hardcode_shlibpath_var_GCJ=no
16703219820Sjeff      ;;
16704219820Sjeff
16705219820Sjeff    openbsd*)
16706219820Sjeff      hardcode_direct_GCJ=yes
16707219820Sjeff      hardcode_shlibpath_var_GCJ=no
16708219820Sjeff      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16709219820Sjeff	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16710219820Sjeff	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16711219820Sjeff	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16712219820Sjeff	export_dynamic_flag_spec_GCJ='${wl}-E'
16713219820Sjeff      else
16714219820Sjeff       case $host_os in
16715219820Sjeff	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16716219820Sjeff	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16717219820Sjeff	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16718219820Sjeff	   ;;
16719219820Sjeff	 *)
16720219820Sjeff	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16721219820Sjeff	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16722219820Sjeff	   ;;
16723219820Sjeff       esac
16724219820Sjeff      fi
16725219820Sjeff      ;;
16726219820Sjeff
16727219820Sjeff    os2*)
16728219820Sjeff      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16729219820Sjeff      hardcode_minus_L_GCJ=yes
16730219820Sjeff      allow_undefined_flag_GCJ=unsupported
16731219820Sjeff      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'
16732219820Sjeff      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16733219820Sjeff      ;;
16734219820Sjeff
16735219820Sjeff    osf3*)
16736219820Sjeff      if test "$GCC" = yes; then
16737219820Sjeff	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16738219820Sjeff	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'
16739219820Sjeff      else
16740219820Sjeff	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16741219820Sjeff	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'
16742219820Sjeff      fi
16743219820Sjeff      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16744219820Sjeff      hardcode_libdir_separator_GCJ=:
16745219820Sjeff      ;;
16746219820Sjeff
16747219820Sjeff    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16748219820Sjeff      if test "$GCC" = yes; then
16749219820Sjeff	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16750219820Sjeff	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'
16751219820Sjeff	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16752219820Sjeff      else
16753219820Sjeff	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16754219820Sjeff	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'
16755219820Sjeff	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~
16756219820Sjeff	$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'
16757219820Sjeff
16758219820Sjeff	# Both c and cxx compiler support -rpath directly
16759219820Sjeff	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16760219820Sjeff      fi
16761219820Sjeff      hardcode_libdir_separator_GCJ=:
16762219820Sjeff      ;;
16763219820Sjeff
16764219820Sjeff    solaris*)
16765219820Sjeff      no_undefined_flag_GCJ=' -z text'
16766219820Sjeff      if test "$GCC" = yes; then
16767219820Sjeff	wlarc='${wl}'
16768219820Sjeff	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16769219820Sjeff	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16770219820Sjeff	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16771219820Sjeff      else
16772219820Sjeff	wlarc=''
16773219820Sjeff	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774219820Sjeff	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16775219820Sjeff  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16776219820Sjeff      fi
16777219820Sjeff      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16778219820Sjeff      hardcode_shlibpath_var_GCJ=no
16779219820Sjeff      case $host_os in
16780219820Sjeff      solaris2.[0-5] | solaris2.[0-5].*) ;;
16781219820Sjeff      *)
16782219820Sjeff 	# The compiler driver will combine linker options so we
16783219820Sjeff 	# cannot just pass the convience library names through
16784219820Sjeff 	# without $wl, iff we do not link with $LD.
16785219820Sjeff 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16786219820Sjeff 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16787219820Sjeff 	case $wlarc in
16788219820Sjeff 	'')
16789219820Sjeff 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16790219820Sjeff 	*)
16791219820Sjeff 	  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' ;;
16792219820Sjeff 	esac ;;
16793219820Sjeff      esac
16794219820Sjeff      link_all_deplibs_GCJ=yes
16795219820Sjeff      ;;
16796219820Sjeff
16797219820Sjeff    sunos4*)
16798219820Sjeff      if test "x$host_vendor" = xsequent; then
16799219820Sjeff	# Use $CC to link under sequent, because it throws in some extra .o
16800219820Sjeff	# files that make .init and .fini sections work.
16801219820Sjeff	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16802219820Sjeff      else
16803219820Sjeff	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16804219820Sjeff      fi
16805219820Sjeff      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16806219820Sjeff      hardcode_direct_GCJ=yes
16807219820Sjeff      hardcode_minus_L_GCJ=yes
16808219820Sjeff      hardcode_shlibpath_var_GCJ=no
16809219820Sjeff      ;;
16810219820Sjeff
16811219820Sjeff    sysv4)
16812219820Sjeff      case $host_vendor in
16813219820Sjeff	sni)
16814219820Sjeff	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815219820Sjeff	  hardcode_direct_GCJ=yes # is this really true???
16816219820Sjeff	;;
16817219820Sjeff	siemens)
16818219820Sjeff	  ## LD is ld it makes a PLAMLIB
16819219820Sjeff	  ## CC just makes a GrossModule.
16820219820Sjeff	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16821219820Sjeff	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16822219820Sjeff	  hardcode_direct_GCJ=no
16823219820Sjeff        ;;
16824219820Sjeff	motorola)
16825219820Sjeff	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16826219820Sjeff	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16827219820Sjeff	;;
16828219820Sjeff      esac
16829219820Sjeff      runpath_var='LD_RUN_PATH'
16830219820Sjeff      hardcode_shlibpath_var_GCJ=no
16831219820Sjeff      ;;
16832219820Sjeff
16833219820Sjeff    sysv4.3*)
16834219820Sjeff      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16835219820Sjeff      hardcode_shlibpath_var_GCJ=no
16836219820Sjeff      export_dynamic_flag_spec_GCJ='-Bexport'
16837219820Sjeff      ;;
16838219820Sjeff
16839219820Sjeff    sysv4*MP*)
16840219820Sjeff      if test -d /usr/nec; then
16841219820Sjeff	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842219820Sjeff	hardcode_shlibpath_var_GCJ=no
16843219820Sjeff	runpath_var=LD_RUN_PATH
16844219820Sjeff	hardcode_runpath_var=yes
16845219820Sjeff	ld_shlibs_GCJ=yes
16846219820Sjeff      fi
16847219820Sjeff      ;;
16848219820Sjeff
16849219820Sjeff    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16850219820Sjeff      no_undefined_flag_GCJ='${wl}-z,text'
16851219820Sjeff      archive_cmds_need_lc_GCJ=no
16852219820Sjeff      hardcode_shlibpath_var_GCJ=no
16853219820Sjeff      runpath_var='LD_RUN_PATH'
16854219820Sjeff
16855219820Sjeff      if test "$GCC" = yes; then
16856219820Sjeff	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16857219820Sjeff	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16858219820Sjeff      else
16859219820Sjeff	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16860219820Sjeff	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16861219820Sjeff      fi
16862219820Sjeff      ;;
16863219820Sjeff
16864219820Sjeff    sysv5* | sco3.2v5* | sco5v6*)
16865219820Sjeff      # Note: We can NOT use -z defs as we might desire, because we do not
16866219820Sjeff      # link with -lc, and that would cause any symbols used from libc to
16867219820Sjeff      # always be unresolved, which means just about no library would
16868219820Sjeff      # ever link correctly.  If we're not using GNU ld we use -z text
16869219820Sjeff      # though, which does catch some bad symbols but isn't as heavy-handed
16870219820Sjeff      # as -z defs.
16871219820Sjeff      no_undefined_flag_GCJ='${wl}-z,text'
16872219820Sjeff      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16873219820Sjeff      archive_cmds_need_lc_GCJ=no
16874219820Sjeff      hardcode_shlibpath_var_GCJ=no
16875219820Sjeff      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16876219820Sjeff      hardcode_libdir_separator_GCJ=':'
16877219820Sjeff      link_all_deplibs_GCJ=yes
16878219820Sjeff      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16879219820Sjeff      runpath_var='LD_RUN_PATH'
16880219820Sjeff
16881219820Sjeff      if test "$GCC" = yes; then
16882219820Sjeff	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16883219820Sjeff	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16884219820Sjeff      else
16885219820Sjeff	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16886219820Sjeff	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16887219820Sjeff      fi
16888219820Sjeff      ;;
16889219820Sjeff
16890219820Sjeff    uts4*)
16891219820Sjeff      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16892219820Sjeff      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16893219820Sjeff      hardcode_shlibpath_var_GCJ=no
16894219820Sjeff      ;;
16895219820Sjeff
16896219820Sjeff    *)
16897219820Sjeff      ld_shlibs_GCJ=no
16898219820Sjeff      ;;
16899219820Sjeff    esac
16900219820Sjeff  fi
16901219820Sjeff
16902219820Sjeffecho "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16903219820Sjeffecho "${ECHO_T}$ld_shlibs_GCJ" >&6
16904219820Sjefftest "$ld_shlibs_GCJ" = no && can_build_shared=no
16905219820Sjeff
16906219820Sjeff#
16907219820Sjeff# Do we need to explicitly link libc?
16908219820Sjeff#
16909219820Sjeffcase "x$archive_cmds_need_lc_GCJ" in
16910219820Sjeffx|xyes)
16911219820Sjeff  # Assume -lc should be added
16912219820Sjeff  archive_cmds_need_lc_GCJ=yes
16913219820Sjeff
16914219820Sjeff  if test "$enable_shared" = yes && test "$GCC" = yes; then
16915219820Sjeff    case $archive_cmds_GCJ in
16916219820Sjeff    *'~'*)
16917219820Sjeff      # FIXME: we may have to deal with multi-command sequences.
16918219820Sjeff      ;;
16919219820Sjeff    '$CC '*)
16920219820Sjeff      # Test whether the compiler implicitly links with -lc since on some
16921219820Sjeff      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16922219820Sjeff      # to ld, don't add -lc before -lgcc.
16923219820Sjeff      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16924219820Sjeffecho $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16925219820Sjeff      $rm conftest*
16926219820Sjeff      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16927219820Sjeff
16928219820Sjeff      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16929219820Sjeff  (eval $ac_compile) 2>&5
16930219820Sjeff  ac_status=$?
16931219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932219820Sjeff  (exit $ac_status); } 2>conftest.err; then
16933219820Sjeff        soname=conftest
16934219820Sjeff        lib=conftest
16935219820Sjeff        libobjs=conftest.$ac_objext
16936219820Sjeff        deplibs=
16937219820Sjeff        wl=$lt_prog_compiler_wl_GCJ
16938219820Sjeff	pic_flag=$lt_prog_compiler_pic_GCJ
16939219820Sjeff        compiler_flags=-v
16940219820Sjeff        linker_flags=-v
16941219820Sjeff        verstring=
16942219820Sjeff        output_objdir=.
16943219820Sjeff        libname=conftest
16944219820Sjeff        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16945219820Sjeff        allow_undefined_flag_GCJ=
16946219820Sjeff        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16947219820Sjeff  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16948219820Sjeff  ac_status=$?
16949219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950219820Sjeff  (exit $ac_status); }
16951219820Sjeff        then
16952219820Sjeff	  archive_cmds_need_lc_GCJ=no
16953219820Sjeff        else
16954219820Sjeff	  archive_cmds_need_lc_GCJ=yes
16955219820Sjeff        fi
16956219820Sjeff        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16957219820Sjeff      else
16958219820Sjeff        cat conftest.err 1>&5
16959219820Sjeff      fi
16960219820Sjeff      $rm conftest*
16961219820Sjeff      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16962219820Sjeffecho "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16963219820Sjeff      ;;
16964219820Sjeff    esac
16965219820Sjeff  fi
16966219820Sjeff  ;;
16967219820Sjeffesac
16968219820Sjeff
16969219820Sjeffecho "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16970219820Sjeffecho $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16971219820Sjefflibrary_names_spec=
16972219820Sjefflibname_spec='lib$name'
16973219820Sjeffsoname_spec=
16974219820Sjeffshrext_cmds=".so"
16975219820Sjeffpostinstall_cmds=
16976219820Sjeffpostuninstall_cmds=
16977219820Sjefffinish_cmds=
16978219820Sjefffinish_eval=
16979219820Sjeffshlibpath_var=
16980219820Sjeffshlibpath_overrides_runpath=unknown
16981219820Sjeffversion_type=none
16982219820Sjeffdynamic_linker="$host_os ld.so"
16983219820Sjeffsys_lib_dlsearch_path_spec="/lib /usr/lib"
16984219820Sjeffif test "$GCC" = yes; then
16985219820Sjeff  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16986219820Sjeff  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16987219820Sjeff    # if the path contains ";" then we assume it to be the separator
16988219820Sjeff    # otherwise default to the standard path separator (i.e. ":") - it is
16989219820Sjeff    # assumed that no part of a normal pathname contains ";" but that should
16990219820Sjeff    # okay in the real world where ";" in dirpaths is itself problematic.
16991219820Sjeff    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16992219820Sjeff  else
16993219820Sjeff    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16994219820Sjeff  fi
16995219820Sjeffelse
16996219820Sjeff  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16997219820Sjefffi
16998219820Sjeffneed_lib_prefix=unknown
16999219820Sjeffhardcode_into_libs=no
17000219820Sjeff
17001219820Sjeff# when you set need_version to no, make sure it does not cause -set_version
17002219820Sjeff# flags to be left without arguments
17003219820Sjeffneed_version=unknown
17004219820Sjeff
17005219820Sjeffcase $host_os in
17006219820Sjeffaix3*)
17007219820Sjeff  version_type=linux
17008219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17009219820Sjeff  shlibpath_var=LIBPATH
17010219820Sjeff
17011219820Sjeff  # AIX 3 has no versioning support, so we append a major version to the name.
17012219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17013219820Sjeff  ;;
17014219820Sjeff
17015219820Sjeffaix4* | aix5*)
17016219820Sjeff  version_type=linux
17017219820Sjeff  need_lib_prefix=no
17018219820Sjeff  need_version=no
17019219820Sjeff  hardcode_into_libs=yes
17020219820Sjeff  if test "$host_cpu" = ia64; then
17021219820Sjeff    # AIX 5 supports IA64
17022219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17023219820Sjeff    shlibpath_var=LD_LIBRARY_PATH
17024219820Sjeff  else
17025219820Sjeff    # With GCC up to 2.95.x, collect2 would create an import file
17026219820Sjeff    # for dependence libraries.  The import file would start with
17027219820Sjeff    # the line `#! .'.  This would cause the generated library to
17028219820Sjeff    # depend on `.', always an invalid library.  This was fixed in
17029219820Sjeff    # development snapshots of GCC prior to 3.0.
17030219820Sjeff    case $host_os in
17031219820Sjeff      aix4 | aix4.[01] | aix4.[01].*)
17032219820Sjeff      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17033219820Sjeff	   echo ' yes '
17034219820Sjeff	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17035219820Sjeff	:
17036219820Sjeff      else
17037219820Sjeff	can_build_shared=no
17038219820Sjeff      fi
17039219820Sjeff      ;;
17040219820Sjeff    esac
17041219820Sjeff    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17042219820Sjeff    # soname into executable. Probably we can add versioning support to
17043219820Sjeff    # collect2, so additional links can be useful in future.
17044219820Sjeff    if test "$aix_use_runtimelinking" = yes; then
17045219820Sjeff      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17046219820Sjeff      # instead of lib<name>.a to let people know that these are not
17047219820Sjeff      # typical AIX shared libraries.
17048219820Sjeff      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049219820Sjeff    else
17050219820Sjeff      # We preserve .a as extension for shared libraries through AIX4.2
17051219820Sjeff      # and later when we are not doing run time linking.
17052219820Sjeff      library_names_spec='${libname}${release}.a $libname.a'
17053219820Sjeff      soname_spec='${libname}${release}${shared_ext}$major'
17054219820Sjeff    fi
17055219820Sjeff    shlibpath_var=LIBPATH
17056219820Sjeff  fi
17057219820Sjeff  ;;
17058219820Sjeff
17059219820Sjeffamigaos*)
17060219820Sjeff  library_names_spec='$libname.ixlibrary $libname.a'
17061219820Sjeff  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17062219820Sjeff  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'
17063219820Sjeff  ;;
17064219820Sjeff
17065219820Sjeffbeos*)
17066219820Sjeff  library_names_spec='${libname}${shared_ext}'
17067219820Sjeff  dynamic_linker="$host_os ld.so"
17068219820Sjeff  shlibpath_var=LIBRARY_PATH
17069219820Sjeff  ;;
17070219820Sjeff
17071219820Sjeffbsdi[45]*)
17072219820Sjeff  version_type=linux
17073219820Sjeff  need_version=no
17074219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17076219820Sjeff  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17077219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17078219820Sjeff  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17079219820Sjeff  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17080219820Sjeff  # the default ld.so.conf also contains /usr/contrib/lib and
17081219820Sjeff  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17082219820Sjeff  # libtool to hard-code these into programs
17083219820Sjeff  ;;
17084219820Sjeff
17085219820Sjeffcygwin* | mingw* | pw32*)
17086219820Sjeff  version_type=windows
17087219820Sjeff  shrext_cmds=".dll"
17088219820Sjeff  need_version=no
17089219820Sjeff  need_lib_prefix=no
17090219820Sjeff
17091219820Sjeff  case $GCC,$host_os in
17092219820Sjeff  yes,cygwin* | yes,mingw* | yes,pw32*)
17093219820Sjeff    library_names_spec='$libname.dll.a'
17094219820Sjeff    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17095219820Sjeff    postinstall_cmds='base_file=`basename \${file}`~
17096219820Sjeff      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17097219820Sjeff      dldir=$destdir/`dirname \$dlpath`~
17098219820Sjeff      test -d \$dldir || mkdir -p \$dldir~
17099219820Sjeff      $install_prog $dir/$dlname \$dldir/$dlname~
17100219820Sjeff      chmod a+x \$dldir/$dlname'
17101219820Sjeff    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17102219820Sjeff      dlpath=$dir/\$dldll~
17103219820Sjeff       $rm \$dlpath'
17104219820Sjeff    shlibpath_overrides_runpath=yes
17105219820Sjeff
17106219820Sjeff    case $host_os in
17107219820Sjeff    cygwin*)
17108219820Sjeff      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17109219820Sjeff      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17110219820Sjeff      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17111219820Sjeff      ;;
17112219820Sjeff    mingw*)
17113219820Sjeff      # MinGW DLLs use traditional 'lib' prefix
17114219820Sjeff      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17115219820Sjeff      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17116219820Sjeff      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17117219820Sjeff        # It is most probably a Windows format PATH printed by
17118219820Sjeff        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17119219820Sjeff        # path with ; separators, and with drive letters. We can handle the
17120219820Sjeff        # drive letters (cygwin fileutils understands them), so leave them,
17121219820Sjeff        # especially as we might pass files found there to a mingw objdump,
17122219820Sjeff        # which wouldn't understand a cygwinified path. Ahh.
17123219820Sjeff        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17124219820Sjeff      else
17125219820Sjeff        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17126219820Sjeff      fi
17127219820Sjeff      ;;
17128219820Sjeff    pw32*)
17129219820Sjeff      # pw32 DLLs use 'pw' prefix rather than 'lib'
17130219820Sjeff      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17131219820Sjeff      ;;
17132219820Sjeff    esac
17133219820Sjeff    ;;
17134219820Sjeff
17135219820Sjeff  *)
17136219820Sjeff    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17137219820Sjeff    ;;
17138219820Sjeff  esac
17139219820Sjeff  dynamic_linker='Win32 ld.exe'
17140219820Sjeff  # FIXME: first we should search . and the directory the executable is in
17141219820Sjeff  shlibpath_var=PATH
17142219820Sjeff  ;;
17143219820Sjeff
17144219820Sjeffdarwin* | rhapsody*)
17145219820Sjeff  dynamic_linker="$host_os dyld"
17146219820Sjeff  version_type=darwin
17147219820Sjeff  need_lib_prefix=no
17148219820Sjeff  need_version=no
17149219820Sjeff  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17150219820Sjeff  soname_spec='${libname}${release}${major}$shared_ext'
17151219820Sjeff  shlibpath_overrides_runpath=yes
17152219820Sjeff  shlibpath_var=DYLD_LIBRARY_PATH
17153219820Sjeff  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17154219820Sjeff  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17155219820Sjeff  if test "$GCC" = yes; then
17156219820Sjeff    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"`
17157219820Sjeff  else
17158219820Sjeff    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17159219820Sjeff  fi
17160219820Sjeff  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17161219820Sjeff  ;;
17162219820Sjeff
17163219820Sjeffdgux*)
17164219820Sjeff  version_type=linux
17165219820Sjeff  need_lib_prefix=no
17166219820Sjeff  need_version=no
17167219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17168219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17169219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17170219820Sjeff  ;;
17171219820Sjeff
17172219820Sjefffreebsd1*)
17173219820Sjeff  dynamic_linker=no
17174219820Sjeff  ;;
17175219820Sjeff
17176219820Sjeffkfreebsd*-gnu)
17177219820Sjeff  version_type=linux
17178219820Sjeff  need_lib_prefix=no
17179219820Sjeff  need_version=no
17180219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17181219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17182219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17183219820Sjeff  shlibpath_overrides_runpath=no
17184219820Sjeff  hardcode_into_libs=yes
17185219820Sjeff  dynamic_linker='GNU ld.so'
17186219820Sjeff  ;;
17187219820Sjeff
17188219820Sjefffreebsd* | dragonfly*)
17189219820Sjeff  # DragonFly does not have aout.  When/if they implement a new
17190219820Sjeff  # versioning mechanism, adjust this.
17191219820Sjeff  if test -x /usr/bin/objformat; then
17192219820Sjeff    objformat=`/usr/bin/objformat`
17193219820Sjeff  else
17194219820Sjeff    case $host_os in
17195219820Sjeff    freebsd[123]*) objformat=aout ;;
17196219820Sjeff    *) objformat=elf ;;
17197219820Sjeff    esac
17198219820Sjeff  fi
17199219820Sjeff  version_type=freebsd-$objformat
17200219820Sjeff  case $version_type in
17201219820Sjeff    freebsd-elf*)
17202219820Sjeff      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17203219820Sjeff      need_version=no
17204219820Sjeff      need_lib_prefix=no
17205219820Sjeff      ;;
17206219820Sjeff    freebsd-*)
17207219820Sjeff      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17208219820Sjeff      need_version=yes
17209219820Sjeff      ;;
17210219820Sjeff  esac
17211219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17212219820Sjeff  case $host_os in
17213219820Sjeff  freebsd2*)
17214219820Sjeff    shlibpath_overrides_runpath=yes
17215219820Sjeff    ;;
17216219820Sjeff  freebsd3.[01]* | freebsdelf3.[01]*)
17217219820Sjeff    shlibpath_overrides_runpath=yes
17218219820Sjeff    hardcode_into_libs=yes
17219219820Sjeff    ;;
17220219820Sjeff  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17221219820Sjeff  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17222219820Sjeff    shlibpath_overrides_runpath=no
17223219820Sjeff    hardcode_into_libs=yes
17224219820Sjeff    ;;
17225219820Sjeff  freebsd*) # from 4.6 on
17226219820Sjeff    shlibpath_overrides_runpath=yes
17227219820Sjeff    hardcode_into_libs=yes
17228219820Sjeff    ;;
17229219820Sjeff  esac
17230219820Sjeff  ;;
17231219820Sjeff
17232219820Sjeffgnu*)
17233219820Sjeff  version_type=linux
17234219820Sjeff  need_lib_prefix=no
17235219820Sjeff  need_version=no
17236219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17237219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17238219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17239219820Sjeff  hardcode_into_libs=yes
17240219820Sjeff  ;;
17241219820Sjeff
17242219820Sjeffhpux9* | hpux10* | hpux11*)
17243219820Sjeff  # Give a soname corresponding to the major version so that dld.sl refuses to
17244219820Sjeff  # link against other versions.
17245219820Sjeff  version_type=sunos
17246219820Sjeff  need_lib_prefix=no
17247219820Sjeff  need_version=no
17248219820Sjeff  case $host_cpu in
17249219820Sjeff  ia64*)
17250219820Sjeff    shrext_cmds='.so'
17251219820Sjeff    hardcode_into_libs=yes
17252219820Sjeff    dynamic_linker="$host_os dld.so"
17253219820Sjeff    shlibpath_var=LD_LIBRARY_PATH
17254219820Sjeff    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17255219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256219820Sjeff    soname_spec='${libname}${release}${shared_ext}$major'
17257219820Sjeff    if test "X$HPUX_IA64_MODE" = X32; then
17258219820Sjeff      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17259219820Sjeff    else
17260219820Sjeff      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17261219820Sjeff    fi
17262219820Sjeff    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17263219820Sjeff    ;;
17264219820Sjeff   hppa*64*)
17265219820Sjeff     shrext_cmds='.sl'
17266219820Sjeff     hardcode_into_libs=yes
17267219820Sjeff     dynamic_linker="$host_os dld.sl"
17268219820Sjeff     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17269219820Sjeff     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17270219820Sjeff     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271219820Sjeff     soname_spec='${libname}${release}${shared_ext}$major'
17272219820Sjeff     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17273219820Sjeff     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17274219820Sjeff     ;;
17275219820Sjeff   *)
17276219820Sjeff    shrext_cmds='.sl'
17277219820Sjeff    dynamic_linker="$host_os dld.sl"
17278219820Sjeff    shlibpath_var=SHLIB_PATH
17279219820Sjeff    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17280219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281219820Sjeff    soname_spec='${libname}${release}${shared_ext}$major'
17282219820Sjeff    ;;
17283219820Sjeff  esac
17284219820Sjeff  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17285219820Sjeff  postinstall_cmds='chmod 555 $lib'
17286219820Sjeff  ;;
17287219820Sjeff
17288219820Sjeffinterix3*)
17289219820Sjeff  version_type=linux
17290219820Sjeff  need_lib_prefix=no
17291219820Sjeff  need_version=no
17292219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17293219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17294219820Sjeff  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17295219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17296219820Sjeff  shlibpath_overrides_runpath=no
17297219820Sjeff  hardcode_into_libs=yes
17298219820Sjeff  ;;
17299219820Sjeff
17300219820Sjeffirix5* | irix6* | nonstopux*)
17301219820Sjeff  case $host_os in
17302219820Sjeff    nonstopux*) version_type=nonstopux ;;
17303219820Sjeff    *)
17304219820Sjeff	if test "$lt_cv_prog_gnu_ld" = yes; then
17305219820Sjeff		version_type=linux
17306219820Sjeff	else
17307219820Sjeff		version_type=irix
17308219820Sjeff	fi ;;
17309219820Sjeff  esac
17310219820Sjeff  need_lib_prefix=no
17311219820Sjeff  need_version=no
17312219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17313219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17314219820Sjeff  case $host_os in
17315219820Sjeff  irix5* | nonstopux*)
17316219820Sjeff    libsuff= shlibsuff=
17317219820Sjeff    ;;
17318219820Sjeff  *)
17319219820Sjeff    case $LD in # libtool.m4 will add one of these switches to LD
17320219820Sjeff    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17321219820Sjeff      libsuff= shlibsuff= libmagic=32-bit;;
17322219820Sjeff    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17323219820Sjeff      libsuff=32 shlibsuff=N32 libmagic=N32;;
17324219820Sjeff    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17325219820Sjeff      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17326219820Sjeff    *) libsuff= shlibsuff= libmagic=never-match;;
17327219820Sjeff    esac
17328219820Sjeff    ;;
17329219820Sjeff  esac
17330219820Sjeff  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17331219820Sjeff  shlibpath_overrides_runpath=no
17332219820Sjeff  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17333219820Sjeff  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17334219820Sjeff  hardcode_into_libs=yes
17335219820Sjeff  ;;
17336219820Sjeff
17337219820Sjeff# No shared lib support for Linux oldld, aout, or coff.
17338219820Sjefflinux*oldld* | linux*aout* | linux*coff*)
17339219820Sjeff  dynamic_linker=no
17340219820Sjeff  ;;
17341219820Sjeff
17342219820Sjeff# This must be Linux ELF.
17343219820Sjefflinux*)
17344219820Sjeff  version_type=linux
17345219820Sjeff  need_lib_prefix=no
17346219820Sjeff  need_version=no
17347219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17349219820Sjeff  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17350219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17351219820Sjeff  shlibpath_overrides_runpath=no
17352219820Sjeff  # This implies no fast_install, which is unacceptable.
17353219820Sjeff  # Some rework will be needed to allow for fast_install
17354219820Sjeff  # before this can be enabled.
17355219820Sjeff  hardcode_into_libs=yes
17356219820Sjeff
17357219820Sjeff  # Append ld.so.conf contents to the search path
17358219820Sjeff  if test -f /etc/ld.so.conf; then
17359219820Sjeff    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' ' '`
17360219820Sjeff    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17361219820Sjeff  fi
17362219820Sjeff
17363219820Sjeff  # We used to test for /lib/ld.so.1 and disable shared libraries on
17364219820Sjeff  # powerpc, because MkLinux only supported shared libraries with the
17365219820Sjeff  # GNU dynamic linker.  Since this was broken with cross compilers,
17366219820Sjeff  # most powerpc-linux boxes support dynamic linking these days and
17367219820Sjeff  # people can always --disable-shared, the test was removed, and we
17368219820Sjeff  # assume the GNU/Linux dynamic linker is in use.
17369219820Sjeff  dynamic_linker='GNU/Linux ld.so'
17370219820Sjeff  ;;
17371219820Sjeff
17372219820Sjeffnetbsdelf*-gnu)
17373219820Sjeff  version_type=linux
17374219820Sjeff  need_lib_prefix=no
17375219820Sjeff  need_version=no
17376219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17377219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17378219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17379219820Sjeff  shlibpath_overrides_runpath=no
17380219820Sjeff  hardcode_into_libs=yes
17381219820Sjeff  dynamic_linker='NetBSD ld.elf_so'
17382219820Sjeff  ;;
17383219820Sjeff
17384219820Sjeffknetbsd*-gnu)
17385219820Sjeff  version_type=linux
17386219820Sjeff  need_lib_prefix=no
17387219820Sjeff  need_version=no
17388219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17389219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17390219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17391219820Sjeff  shlibpath_overrides_runpath=no
17392219820Sjeff  hardcode_into_libs=yes
17393219820Sjeff  dynamic_linker='GNU ld.so'
17394219820Sjeff  ;;
17395219820Sjeff
17396219820Sjeffnetbsd*)
17397219820Sjeff  version_type=sunos
17398219820Sjeff  need_lib_prefix=no
17399219820Sjeff  need_version=no
17400219820Sjeff  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17401219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402219820Sjeff    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17403219820Sjeff    dynamic_linker='NetBSD (a.out) ld.so'
17404219820Sjeff  else
17405219820Sjeff    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17406219820Sjeff    soname_spec='${libname}${release}${shared_ext}$major'
17407219820Sjeff    dynamic_linker='NetBSD ld.elf_so'
17408219820Sjeff  fi
17409219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17410219820Sjeff  shlibpath_overrides_runpath=yes
17411219820Sjeff  hardcode_into_libs=yes
17412219820Sjeff  ;;
17413219820Sjeff
17414219820Sjeffnewsos6)
17415219820Sjeff  version_type=linux
17416219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17417219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17418219820Sjeff  shlibpath_overrides_runpath=yes
17419219820Sjeff  ;;
17420219820Sjeff
17421219820Sjeffnto-qnx*)
17422219820Sjeff  version_type=linux
17423219820Sjeff  need_lib_prefix=no
17424219820Sjeff  need_version=no
17425219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17427219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17428219820Sjeff  shlibpath_overrides_runpath=yes
17429219820Sjeff  ;;
17430219820Sjeff
17431219820Sjeffopenbsd*)
17432219820Sjeff  version_type=sunos
17433219820Sjeff  sys_lib_dlsearch_path_spec="/usr/lib"
17434219820Sjeff  need_lib_prefix=no
17435219820Sjeff  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17436219820Sjeff  case $host_os in
17437219820Sjeff    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17438219820Sjeff    *)                         need_version=no  ;;
17439219820Sjeff  esac
17440219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17441219820Sjeff  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17442219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17443219820Sjeff  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17444219820Sjeff    case $host_os in
17445219820Sjeff      openbsd2.[89] | openbsd2.[89].*)
17446219820Sjeff	shlibpath_overrides_runpath=no
17447219820Sjeff	;;
17448219820Sjeff      *)
17449219820Sjeff	shlibpath_overrides_runpath=yes
17450219820Sjeff	;;
17451219820Sjeff      esac
17452219820Sjeff  else
17453219820Sjeff    shlibpath_overrides_runpath=yes
17454219820Sjeff  fi
17455219820Sjeff  ;;
17456219820Sjeff
17457219820Sjeffos2*)
17458219820Sjeff  libname_spec='$name'
17459219820Sjeff  shrext_cmds=".dll"
17460219820Sjeff  need_lib_prefix=no
17461219820Sjeff  library_names_spec='$libname${shared_ext} $libname.a'
17462219820Sjeff  dynamic_linker='OS/2 ld.exe'
17463219820Sjeff  shlibpath_var=LIBPATH
17464219820Sjeff  ;;
17465219820Sjeff
17466219820Sjeffosf3* | osf4* | osf5*)
17467219820Sjeff  version_type=osf
17468219820Sjeff  need_lib_prefix=no
17469219820Sjeff  need_version=no
17470219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17471219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17472219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17473219820Sjeff  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17474219820Sjeff  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17475219820Sjeff  ;;
17476219820Sjeff
17477219820Sjeffsolaris*)
17478219820Sjeff  version_type=linux
17479219820Sjeff  need_lib_prefix=no
17480219820Sjeff  need_version=no
17481219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17482219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17483219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17484219820Sjeff  shlibpath_overrides_runpath=yes
17485219820Sjeff  hardcode_into_libs=yes
17486219820Sjeff  # ldd complains unless libraries are executable
17487219820Sjeff  postinstall_cmds='chmod +x $lib'
17488219820Sjeff  ;;
17489219820Sjeff
17490219820Sjeffsunos4*)
17491219820Sjeff  version_type=sunos
17492219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17493219820Sjeff  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17494219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17495219820Sjeff  shlibpath_overrides_runpath=yes
17496219820Sjeff  if test "$with_gnu_ld" = yes; then
17497219820Sjeff    need_lib_prefix=no
17498219820Sjeff  fi
17499219820Sjeff  need_version=yes
17500219820Sjeff  ;;
17501219820Sjeff
17502219820Sjeffsysv4 | sysv4.3*)
17503219820Sjeff  version_type=linux
17504219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17506219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17507219820Sjeff  case $host_vendor in
17508219820Sjeff    sni)
17509219820Sjeff      shlibpath_overrides_runpath=no
17510219820Sjeff      need_lib_prefix=no
17511219820Sjeff      export_dynamic_flag_spec='${wl}-Blargedynsym'
17512219820Sjeff      runpath_var=LD_RUN_PATH
17513219820Sjeff      ;;
17514219820Sjeff    siemens)
17515219820Sjeff      need_lib_prefix=no
17516219820Sjeff      ;;
17517219820Sjeff    motorola)
17518219820Sjeff      need_lib_prefix=no
17519219820Sjeff      need_version=no
17520219820Sjeff      shlibpath_overrides_runpath=no
17521219820Sjeff      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17522219820Sjeff      ;;
17523219820Sjeff  esac
17524219820Sjeff  ;;
17525219820Sjeff
17526219820Sjeffsysv4*MP*)
17527219820Sjeff  if test -d /usr/nec ;then
17528219820Sjeff    version_type=linux
17529219820Sjeff    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17530219820Sjeff    soname_spec='$libname${shared_ext}.$major'
17531219820Sjeff    shlibpath_var=LD_LIBRARY_PATH
17532219820Sjeff  fi
17533219820Sjeff  ;;
17534219820Sjeff
17535219820Sjeffsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17536219820Sjeff  version_type=freebsd-elf
17537219820Sjeff  need_lib_prefix=no
17538219820Sjeff  need_version=no
17539219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17540219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17541219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17542219820Sjeff  hardcode_into_libs=yes
17543219820Sjeff  if test "$with_gnu_ld" = yes; then
17544219820Sjeff    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17545219820Sjeff    shlibpath_overrides_runpath=no
17546219820Sjeff  else
17547219820Sjeff    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17548219820Sjeff    shlibpath_overrides_runpath=yes
17549219820Sjeff    case $host_os in
17550219820Sjeff      sco3.2v5*)
17551219820Sjeff        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17552219820Sjeff	;;
17553219820Sjeff    esac
17554219820Sjeff  fi
17555219820Sjeff  sys_lib_dlsearch_path_spec='/usr/lib'
17556219820Sjeff  ;;
17557219820Sjeff
17558219820Sjeffuts4*)
17559219820Sjeff  version_type=linux
17560219820Sjeff  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561219820Sjeff  soname_spec='${libname}${release}${shared_ext}$major'
17562219820Sjeff  shlibpath_var=LD_LIBRARY_PATH
17563219820Sjeff  ;;
17564219820Sjeff
17565219820Sjeff*)
17566219820Sjeff  dynamic_linker=no
17567219820Sjeff  ;;
17568219820Sjeffesac
17569219820Sjeffecho "$as_me:$LINENO: result: $dynamic_linker" >&5
17570219820Sjeffecho "${ECHO_T}$dynamic_linker" >&6
17571219820Sjefftest "$dynamic_linker" = no && can_build_shared=no
17572219820Sjeff
17573219820Sjeffvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17574219820Sjeffif test "$GCC" = yes; then
17575219820Sjeff  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17576219820Sjefffi
17577219820Sjeff
17578219820Sjeffecho "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17579219820Sjeffecho $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17580219820Sjeffhardcode_action_GCJ=
17581219820Sjeffif test -n "$hardcode_libdir_flag_spec_GCJ" || \
17582219820Sjeff   test -n "$runpath_var_GCJ" || \
17583219820Sjeff   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17584219820Sjeff
17585219820Sjeff  # We can hardcode non-existant directories.
17586219820Sjeff  if test "$hardcode_direct_GCJ" != no &&
17587219820Sjeff     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17588219820Sjeff     # have to relink, otherwise we might link with an installed library
17589219820Sjeff     # when we should be linking with a yet-to-be-installed one
17590219820Sjeff     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17591219820Sjeff     test "$hardcode_minus_L_GCJ" != no; then
17592219820Sjeff    # Linking always hardcodes the temporary library directory.
17593219820Sjeff    hardcode_action_GCJ=relink
17594219820Sjeff  else
17595219820Sjeff    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17596219820Sjeff    hardcode_action_GCJ=immediate
17597219820Sjeff  fi
17598219820Sjeffelse
17599219820Sjeff  # We cannot hardcode anything, or else we can only hardcode existing
17600219820Sjeff  # directories.
17601219820Sjeff  hardcode_action_GCJ=unsupported
17602219820Sjefffi
17603219820Sjeffecho "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17604219820Sjeffecho "${ECHO_T}$hardcode_action_GCJ" >&6
17605219820Sjeff
17606219820Sjeffif test "$hardcode_action_GCJ" = relink; then
17607219820Sjeff  # Fast installation is not supported
17608219820Sjeff  enable_fast_install=no
17609219820Sjeffelif test "$shlibpath_overrides_runpath" = yes ||
17610219820Sjeff     test "$enable_shared" = no; then
17611219820Sjeff  # Fast installation is not necessary
17612219820Sjeff  enable_fast_install=needless
17613219820Sjefffi
17614219820Sjeff
17615219820Sjeff
17616219820Sjeff# The else clause should only fire when bootstrapping the
17617219820Sjeff# libtool distribution, otherwise you forgot to ship ltmain.sh
17618219820Sjeff# with your package, and you will get complaints that there are
17619219820Sjeff# no rules to generate ltmain.sh.
17620219820Sjeffif test -f "$ltmain"; then
17621219820Sjeff  # See if we are running on zsh, and set the options which allow our commands through
17622219820Sjeff  # without removal of \ escapes.
17623219820Sjeff  if test -n "${ZSH_VERSION+set}" ; then
17624219820Sjeff    setopt NO_GLOB_SUBST
17625219820Sjeff  fi
17626219820Sjeff  # Now quote all the things that may contain metacharacters while being
17627219820Sjeff  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17628219820Sjeff  # variables and quote the copies for generation of the libtool script.
17629219820Sjeff  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17630219820Sjeff    SED SHELL STRIP \
17631219820Sjeff    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17632219820Sjeff    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17633219820Sjeff    deplibs_check_method reload_flag reload_cmds need_locks \
17634219820Sjeff    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17635219820Sjeff    lt_cv_sys_global_symbol_to_c_name_address \
17636219820Sjeff    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17637219820Sjeff    old_postinstall_cmds old_postuninstall_cmds \
17638219820Sjeff    compiler_GCJ \
17639219820Sjeff    CC_GCJ \
17640219820Sjeff    LD_GCJ \
17641219820Sjeff    lt_prog_compiler_wl_GCJ \
17642219820Sjeff    lt_prog_compiler_pic_GCJ \
17643219820Sjeff    lt_prog_compiler_static_GCJ \
17644219820Sjeff    lt_prog_compiler_no_builtin_flag_GCJ \
17645219820Sjeff    export_dynamic_flag_spec_GCJ \
17646219820Sjeff    thread_safe_flag_spec_GCJ \
17647219820Sjeff    whole_archive_flag_spec_GCJ \
17648219820Sjeff    enable_shared_with_static_runtimes_GCJ \
17649219820Sjeff    old_archive_cmds_GCJ \
17650219820Sjeff    old_archive_from_new_cmds_GCJ \
17651219820Sjeff    predep_objects_GCJ \
17652219820Sjeff    postdep_objects_GCJ \
17653219820Sjeff    predeps_GCJ \
17654219820Sjeff    postdeps_GCJ \
17655219820Sjeff    compiler_lib_search_path_GCJ \
17656219820Sjeff    archive_cmds_GCJ \
17657219820Sjeff    archive_expsym_cmds_GCJ \
17658219820Sjeff    postinstall_cmds_GCJ \
17659219820Sjeff    postuninstall_cmds_GCJ \
17660219820Sjeff    old_archive_from_expsyms_cmds_GCJ \
17661219820Sjeff    allow_undefined_flag_GCJ \
17662219820Sjeff    no_undefined_flag_GCJ \
17663219820Sjeff    export_symbols_cmds_GCJ \
17664219820Sjeff    hardcode_libdir_flag_spec_GCJ \
17665219820Sjeff    hardcode_libdir_flag_spec_ld_GCJ \
17666219820Sjeff    hardcode_libdir_separator_GCJ \
17667219820Sjeff    hardcode_automatic_GCJ \
17668219820Sjeff    module_cmds_GCJ \
17669219820Sjeff    module_expsym_cmds_GCJ \
17670219820Sjeff    lt_cv_prog_compiler_c_o_GCJ \
17671219820Sjeff    exclude_expsyms_GCJ \
17672219820Sjeff    include_expsyms_GCJ; do
17673219820Sjeff
17674219820Sjeff    case $var in
17675219820Sjeff    old_archive_cmds_GCJ | \
17676219820Sjeff    old_archive_from_new_cmds_GCJ | \
17677219820Sjeff    archive_cmds_GCJ | \
17678219820Sjeff    archive_expsym_cmds_GCJ | \
17679219820Sjeff    module_cmds_GCJ | \
17680219820Sjeff    module_expsym_cmds_GCJ | \
17681219820Sjeff    old_archive_from_expsyms_cmds_GCJ | \
17682219820Sjeff    export_symbols_cmds_GCJ | \
17683219820Sjeff    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17684219820Sjeff    postinstall_cmds | postuninstall_cmds | \
17685219820Sjeff    old_postinstall_cmds | old_postuninstall_cmds | \
17686219820Sjeff    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17687219820Sjeff      # Double-quote double-evaled strings.
17688219820Sjeff      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17689219820Sjeff      ;;
17690219820Sjeff    *)
17691219820Sjeff      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17692219820Sjeff      ;;
17693219820Sjeff    esac
17694219820Sjeff  done
17695219820Sjeff
17696219820Sjeff  case $lt_echo in
17697219820Sjeff  *'\$0 --fallback-echo"')
17698219820Sjeff    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17699219820Sjeff    ;;
17700219820Sjeff  esac
17701219820Sjeff
17702219820Sjeffcfgfile="$ofile"
17703219820Sjeff
17704219820Sjeff  cat <<__EOF__ >> "$cfgfile"
17705219820Sjeff# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17706219820Sjeff
17707219820Sjeff# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17708219820Sjeff
17709219820Sjeff# Shell to use when invoking shell scripts.
17710219820SjeffSHELL=$lt_SHELL
17711219820Sjeff
17712219820Sjeff# Whether or not to build shared libraries.
17713219820Sjeffbuild_libtool_libs=$enable_shared
17714219820Sjeff
17715219820Sjeff# Whether or not to build static libraries.
17716219820Sjeffbuild_old_libs=$enable_static
17717219820Sjeff
17718219820Sjeff# Whether or not to add -lc for building shared libraries.
17719219820Sjeffbuild_libtool_need_lc=$archive_cmds_need_lc_GCJ
17720219820Sjeff
17721219820Sjeff# Whether or not to disallow shared libs when runtime libs are static
17722219820Sjeffallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17723219820Sjeff
17724219820Sjeff# Whether or not to optimize for fast installation.
17725219820Sjefffast_install=$enable_fast_install
17726219820Sjeff
17727219820Sjeff# The host system.
17728219820Sjeffhost_alias=$host_alias
17729219820Sjeffhost=$host
17730219820Sjeffhost_os=$host_os
17731219820Sjeff
17732219820Sjeff# The build system.
17733219820Sjeffbuild_alias=$build_alias
17734219820Sjeffbuild=$build
17735219820Sjeffbuild_os=$build_os
17736219820Sjeff
17737219820Sjeff# An echo program that does not interpret backslashes.
17738219820Sjeffecho=$lt_echo
17739219820Sjeff
17740219820Sjeff# The archiver.
17741219820SjeffAR=$lt_AR
17742219820SjeffAR_FLAGS=$lt_AR_FLAGS
17743219820Sjeff
17744219820Sjeff# A C compiler.
17745219820SjeffLTCC=$lt_LTCC
17746219820Sjeff
17747219820Sjeff# LTCC compiler flags.
17748219820SjeffLTCFLAGS=$lt_LTCFLAGS
17749219820Sjeff
17750219820Sjeff# A language-specific compiler.
17751219820SjeffCC=$lt_compiler_GCJ
17752219820Sjeff
17753219820Sjeff# Is the compiler the GNU C compiler?
17754219820Sjeffwith_gcc=$GCC_GCJ
17755219820Sjeff
17756219820Sjeff# An ERE matcher.
17757219820SjeffEGREP=$lt_EGREP
17758219820Sjeff
17759219820Sjeff# The linker used to build libraries.
17760219820SjeffLD=$lt_LD_GCJ
17761219820Sjeff
17762219820Sjeff# Whether we need hard or soft links.
17763219820SjeffLN_S=$lt_LN_S
17764219820Sjeff
17765219820Sjeff# A BSD-compatible nm program.
17766219820SjeffNM=$lt_NM
17767219820Sjeff
17768219820Sjeff# A symbol stripping program
17769219820SjeffSTRIP=$lt_STRIP
17770219820Sjeff
17771219820Sjeff# Used to examine libraries when file_magic_cmd begins "file"
17772219820SjeffMAGIC_CMD=$MAGIC_CMD
17773219820Sjeff
17774219820Sjeff# Used on cygwin: DLL creation program.
17775219820SjeffDLLTOOL="$DLLTOOL"
17776219820Sjeff
17777219820Sjeff# Used on cygwin: object dumper.
17778219820SjeffOBJDUMP="$OBJDUMP"
17779219820Sjeff
17780219820Sjeff# Used on cygwin: assembler.
17781219820SjeffAS="$AS"
17782219820Sjeff
17783219820Sjeff# The name of the directory that contains temporary libtool files.
17784219820Sjeffobjdir=$objdir
17785219820Sjeff
17786219820Sjeff# How to create reloadable object files.
17787219820Sjeffreload_flag=$lt_reload_flag
17788219820Sjeffreload_cmds=$lt_reload_cmds
17789219820Sjeff
17790219820Sjeff# How to pass a linker flag through the compiler.
17791219820Sjeffwl=$lt_lt_prog_compiler_wl_GCJ
17792219820Sjeff
17793219820Sjeff# Object file suffix (normally "o").
17794219820Sjeffobjext="$ac_objext"
17795219820Sjeff
17796219820Sjeff# Old archive suffix (normally "a").
17797219820Sjefflibext="$libext"
17798219820Sjeff
17799219820Sjeff# Shared library suffix (normally ".so").
17800219820Sjeffshrext_cmds='$shrext_cmds'
17801219820Sjeff
17802219820Sjeff# Executable file suffix (normally "").
17803219820Sjeffexeext="$exeext"
17804219820Sjeff
17805219820Sjeff# Additional compiler flags for building library objects.
17806219820Sjeffpic_flag=$lt_lt_prog_compiler_pic_GCJ
17807219820Sjeffpic_mode=$pic_mode
17808219820Sjeff
17809219820Sjeff# What is the maximum length of a command?
17810219820Sjeffmax_cmd_len=$lt_cv_sys_max_cmd_len
17811219820Sjeff
17812219820Sjeff# Does compiler simultaneously support -c and -o options?
17813219820Sjeffcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17814219820Sjeff
17815219820Sjeff# Must we lock files when doing compilation?
17816219820Sjeffneed_locks=$lt_need_locks
17817219820Sjeff
17818219820Sjeff# Do we need the lib prefix for modules?
17819219820Sjeffneed_lib_prefix=$need_lib_prefix
17820219820Sjeff
17821219820Sjeff# Do we need a version for libraries?
17822219820Sjeffneed_version=$need_version
17823219820Sjeff
17824219820Sjeff# Whether dlopen is supported.
17825219820Sjeffdlopen_support=$enable_dlopen
17826219820Sjeff
17827219820Sjeff# Whether dlopen of programs is supported.
17828219820Sjeffdlopen_self=$enable_dlopen_self
17829219820Sjeff
17830219820Sjeff# Whether dlopen of statically linked programs is supported.
17831219820Sjeffdlopen_self_static=$enable_dlopen_self_static
17832219820Sjeff
17833219820Sjeff# Compiler flag to prevent dynamic linking.
17834219820Sjefflink_static_flag=$lt_lt_prog_compiler_static_GCJ
17835219820Sjeff
17836219820Sjeff# Compiler flag to turn off builtin functions.
17837219820Sjeffno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17838219820Sjeff
17839219820Sjeff# Compiler flag to allow reflexive dlopens.
17840219820Sjeffexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17841219820Sjeff
17842219820Sjeff# Compiler flag to generate shared objects directly from archives.
17843219820Sjeffwhole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17844219820Sjeff
17845219820Sjeff# Compiler flag to generate thread-safe objects.
17846219820Sjeffthread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17847219820Sjeff
17848219820Sjeff# Library versioning type.
17849219820Sjeffversion_type=$version_type
17850219820Sjeff
17851219820Sjeff# Format of library name prefix.
17852219820Sjefflibname_spec=$lt_libname_spec
17853219820Sjeff
17854219820Sjeff# List of archive names.  First name is the real one, the rest are links.
17855219820Sjeff# The last name is the one that the linker finds with -lNAME.
17856219820Sjefflibrary_names_spec=$lt_library_names_spec
17857219820Sjeff
17858219820Sjeff# The coded name of the library, if different from the real name.
17859219820Sjeffsoname_spec=$lt_soname_spec
17860219820Sjeff
17861219820Sjeff# Commands used to build and install an old-style archive.
17862219820SjeffRANLIB=$lt_RANLIB
17863219820Sjeffold_archive_cmds=$lt_old_archive_cmds_GCJ
17864219820Sjeffold_postinstall_cmds=$lt_old_postinstall_cmds
17865219820Sjeffold_postuninstall_cmds=$lt_old_postuninstall_cmds
17866219820Sjeff
17867219820Sjeff# Create an old-style archive from a shared archive.
17868219820Sjeffold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17869219820Sjeff
17870219820Sjeff# Create a temporary old-style archive to link instead of a shared archive.
17871219820Sjeffold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17872219820Sjeff
17873219820Sjeff# Commands used to build and install a shared archive.
17874219820Sjeffarchive_cmds=$lt_archive_cmds_GCJ
17875219820Sjeffarchive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17876219820Sjeffpostinstall_cmds=$lt_postinstall_cmds
17877219820Sjeffpostuninstall_cmds=$lt_postuninstall_cmds
17878219820Sjeff
17879219820Sjeff# Commands used to build a loadable module (assumed same as above if empty)
17880219820Sjeffmodule_cmds=$lt_module_cmds_GCJ
17881219820Sjeffmodule_expsym_cmds=$lt_module_expsym_cmds_GCJ
17882219820Sjeff
17883219820Sjeff# Commands to strip libraries.
17884219820Sjeffold_striplib=$lt_old_striplib
17885219820Sjeffstriplib=$lt_striplib
17886219820Sjeff
17887219820Sjeff# Dependencies to place before the objects being linked to create a
17888219820Sjeff# shared library.
17889219820Sjeffpredep_objects=$lt_predep_objects_GCJ
17890219820Sjeff
17891219820Sjeff# Dependencies to place after the objects being linked to create a
17892219820Sjeff# shared library.
17893219820Sjeffpostdep_objects=$lt_postdep_objects_GCJ
17894219820Sjeff
17895219820Sjeff# Dependencies to place before the objects being linked to create a
17896219820Sjeff# shared library.
17897219820Sjeffpredeps=$lt_predeps_GCJ
17898219820Sjeff
17899219820Sjeff# Dependencies to place after the objects being linked to create a
17900219820Sjeff# shared library.
17901219820Sjeffpostdeps=$lt_postdeps_GCJ
17902219820Sjeff
17903219820Sjeff# The library search path used internally by the compiler when linking
17904219820Sjeff# a shared library.
17905219820Sjeffcompiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17906219820Sjeff
17907219820Sjeff# Method to check whether dependent libraries are shared objects.
17908219820Sjeffdeplibs_check_method=$lt_deplibs_check_method
17909219820Sjeff
17910219820Sjeff# Command to use when deplibs_check_method == file_magic.
17911219820Sjefffile_magic_cmd=$lt_file_magic_cmd
17912219820Sjeff
17913219820Sjeff# Flag that allows shared libraries with undefined symbols to be built.
17914219820Sjeffallow_undefined_flag=$lt_allow_undefined_flag_GCJ
17915219820Sjeff
17916219820Sjeff# Flag that forces no undefined symbols.
17917219820Sjeffno_undefined_flag=$lt_no_undefined_flag_GCJ
17918219820Sjeff
17919219820Sjeff# Commands used to finish a libtool library installation in a directory.
17920219820Sjefffinish_cmds=$lt_finish_cmds
17921219820Sjeff
17922219820Sjeff# Same as above, but a single script fragment to be evaled but not shown.
17923219820Sjefffinish_eval=$lt_finish_eval
17924219820Sjeff
17925219820Sjeff# Take the output of nm and produce a listing of raw symbols and C names.
17926219820Sjeffglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17927219820Sjeff
17928219820Sjeff# Transform the output of nm in a proper C declaration
17929219820Sjeffglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17930219820Sjeff
17931219820Sjeff# Transform the output of nm in a C name address pair
17932219820Sjeffglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17933219820Sjeff
17934219820Sjeff# This is the shared library runtime path variable.
17935219820Sjeffrunpath_var=$runpath_var
17936219820Sjeff
17937219820Sjeff# This is the shared library path variable.
17938219820Sjeffshlibpath_var=$shlibpath_var
17939219820Sjeff
17940219820Sjeff# Is shlibpath searched before the hard-coded library search path?
17941219820Sjeffshlibpath_overrides_runpath=$shlibpath_overrides_runpath
17942219820Sjeff
17943219820Sjeff# How to hardcode a shared library path into an executable.
17944219820Sjeffhardcode_action=$hardcode_action_GCJ
17945219820Sjeff
17946219820Sjeff# Whether we should hardcode library paths into libraries.
17947219820Sjeffhardcode_into_libs=$hardcode_into_libs
17948219820Sjeff
17949219820Sjeff# Flag to hardcode \$libdir into a binary during linking.
17950219820Sjeff# This must work even if \$libdir does not exist.
17951219820Sjeffhardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17952219820Sjeff
17953219820Sjeff# If ld is used when linking, flag to hardcode \$libdir into
17954219820Sjeff# a binary during linking. This must work even if \$libdir does
17955219820Sjeff# not exist.
17956219820Sjeffhardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17957219820Sjeff
17958219820Sjeff# Whether we need a single -rpath flag with a separated argument.
17959219820Sjeffhardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17960219820Sjeff
17961219820Sjeff# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17962219820Sjeff# resulting binary.
17963219820Sjeffhardcode_direct=$hardcode_direct_GCJ
17964219820Sjeff
17965219820Sjeff# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17966219820Sjeff# resulting binary.
17967219820Sjeffhardcode_minus_L=$hardcode_minus_L_GCJ
17968219820Sjeff
17969219820Sjeff# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17970219820Sjeff# the resulting binary.
17971219820Sjeffhardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17972219820Sjeff
17973219820Sjeff# Set to yes if building a shared library automatically hardcodes DIR into the library
17974219820Sjeff# and all subsequent libraries and executables linked against it.
17975219820Sjeffhardcode_automatic=$hardcode_automatic_GCJ
17976219820Sjeff
17977219820Sjeff# Variables whose values should be saved in libtool wrapper scripts and
17978219820Sjeff# restored at relink time.
17979219820Sjeffvariables_saved_for_relink="$variables_saved_for_relink"
17980219820Sjeff
17981219820Sjeff# Whether libtool must link a program against all its dependency libraries.
17982219820Sjefflink_all_deplibs=$link_all_deplibs_GCJ
17983219820Sjeff
17984219820Sjeff# Compile-time system search path for libraries
17985219820Sjeffsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17986219820Sjeff
17987219820Sjeff# Run-time system search path for libraries
17988219820Sjeffsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17989219820Sjeff
17990219820Sjeff# Fix the shell variable \$srcfile for the compiler.
17991219820Sjefffix_srcfile_path="$fix_srcfile_path_GCJ"
17992219820Sjeff
17993219820Sjeff# Set to yes if exported symbols are required.
17994219820Sjeffalways_export_symbols=$always_export_symbols_GCJ
17995219820Sjeff
17996219820Sjeff# The commands to list exported symbols.
17997219820Sjeffexport_symbols_cmds=$lt_export_symbols_cmds_GCJ
17998219820Sjeff
17999219820Sjeff# The commands to extract the exported symbol list from a shared archive.
18000219820Sjeffextract_expsyms_cmds=$lt_extract_expsyms_cmds
18001219820Sjeff
18002219820Sjeff# Symbols that should not be listed in the preloaded symbols.
18003219820Sjeffexclude_expsyms=$lt_exclude_expsyms_GCJ
18004219820Sjeff
18005219820Sjeff# Symbols that must always be exported.
18006219820Sjeffinclude_expsyms=$lt_include_expsyms_GCJ
18007219820Sjeff
18008219820Sjeff# ### END LIBTOOL TAG CONFIG: $tagname
18009219820Sjeff
18010219820Sjeff__EOF__
18011219820Sjeff
18012219820Sjeff
18013219820Sjeffelse
18014219820Sjeff  # If there is no Makefile yet, we rely on a make rule to execute
18015219820Sjeff  # `config.status --recheck' to rerun these tests and create the
18016219820Sjeff  # libtool script then.
18017219820Sjeff  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18018219820Sjeff  if test -f "$ltmain_in"; then
18019219820Sjeff    test -f Makefile && make "$ltmain"
18020219820Sjeff  fi
18021219820Sjefffi
18022219820Sjeff
18023219820Sjeff
18024219820Sjeffac_ext=c
18025219820Sjeffac_cpp='$CPP $CPPFLAGS'
18026219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
18029219820Sjeff
18030219820SjeffCC="$lt_save_CC"
18031219820Sjeff
18032219820Sjeff	else
18033219820Sjeff	  tagname=""
18034219820Sjeff	fi
18035219820Sjeff	;;
18036219820Sjeff
18037219820Sjeff      RC)
18038219820Sjeff
18039219820Sjeff
18040219820Sjeff
18041219820Sjeff# Source file extension for RC test sources.
18042219820Sjeffac_ext=rc
18043219820Sjeff
18044219820Sjeff# Object file extension for compiled RC test sources.
18045219820Sjeffobjext=o
18046219820Sjeffobjext_RC=$objext
18047219820Sjeff
18048219820Sjeff# Code to be used in simple compile tests
18049219820Sjefflt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18050219820Sjeff
18051219820Sjeff# Code to be used in simple link tests
18052219820Sjefflt_simple_link_test_code="$lt_simple_compile_test_code"
18053219820Sjeff
18054219820Sjeff# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18055219820Sjeff
18056219820Sjeff# If no C compiler was specified, use CC.
18057219820SjeffLTCC=${LTCC-"$CC"}
18058219820Sjeff
18059219820Sjeff# If no C compiler flags were specified, use CFLAGS.
18060219820SjeffLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18061219820Sjeff
18062219820Sjeff# Allow CC to be a program name with arguments.
18063219820Sjeffcompiler=$CC
18064219820Sjeff
18065219820Sjeff
18066219820Sjeff# save warnings/boilerplate of simple test code
18067219820Sjeffac_outfile=conftest.$ac_objext
18068219820Sjeffprintf "$lt_simple_compile_test_code" >conftest.$ac_ext
18069219820Sjeffeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18070219820Sjeff_lt_compiler_boilerplate=`cat conftest.err`
18071219820Sjeff$rm conftest*
18072219820Sjeff
18073219820Sjeffac_outfile=conftest.$ac_objext
18074219820Sjeffprintf "$lt_simple_link_test_code" >conftest.$ac_ext
18075219820Sjeffeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18076219820Sjeff_lt_linker_boilerplate=`cat conftest.err`
18077219820Sjeff$rm conftest*
18078219820Sjeff
18079219820Sjeff
18080219820Sjeff# Allow CC to be a program name with arguments.
18081219820Sjefflt_save_CC="$CC"
18082219820SjeffCC=${RC-"windres"}
18083219820Sjeffcompiler=$CC
18084219820Sjeffcompiler_RC=$CC
18085219820Sjefffor cc_temp in $compiler""; do
18086219820Sjeff  case $cc_temp in
18087219820Sjeff    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18088219820Sjeff    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18089219820Sjeff    \-*) ;;
18090219820Sjeff    *) break;;
18091219820Sjeff  esac
18092219820Sjeffdone
18093219820Sjeffcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18094219820Sjeff
18095219820Sjefflt_cv_prog_compiler_c_o_RC=yes
18096219820Sjeff
18097219820Sjeff# The else clause should only fire when bootstrapping the
18098219820Sjeff# libtool distribution, otherwise you forgot to ship ltmain.sh
18099219820Sjeff# with your package, and you will get complaints that there are
18100219820Sjeff# no rules to generate ltmain.sh.
18101219820Sjeffif test -f "$ltmain"; then
18102219820Sjeff  # See if we are running on zsh, and set the options which allow our commands through
18103219820Sjeff  # without removal of \ escapes.
18104219820Sjeff  if test -n "${ZSH_VERSION+set}" ; then
18105219820Sjeff    setopt NO_GLOB_SUBST
18106219820Sjeff  fi
18107219820Sjeff  # Now quote all the things that may contain metacharacters while being
18108219820Sjeff  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18109219820Sjeff  # variables and quote the copies for generation of the libtool script.
18110219820Sjeff  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18111219820Sjeff    SED SHELL STRIP \
18112219820Sjeff    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18113219820Sjeff    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18114219820Sjeff    deplibs_check_method reload_flag reload_cmds need_locks \
18115219820Sjeff    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18116219820Sjeff    lt_cv_sys_global_symbol_to_c_name_address \
18117219820Sjeff    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18118219820Sjeff    old_postinstall_cmds old_postuninstall_cmds \
18119219820Sjeff    compiler_RC \
18120219820Sjeff    CC_RC \
18121219820Sjeff    LD_RC \
18122219820Sjeff    lt_prog_compiler_wl_RC \
18123219820Sjeff    lt_prog_compiler_pic_RC \
18124219820Sjeff    lt_prog_compiler_static_RC \
18125219820Sjeff    lt_prog_compiler_no_builtin_flag_RC \
18126219820Sjeff    export_dynamic_flag_spec_RC \
18127219820Sjeff    thread_safe_flag_spec_RC \
18128219820Sjeff    whole_archive_flag_spec_RC \
18129219820Sjeff    enable_shared_with_static_runtimes_RC \
18130219820Sjeff    old_archive_cmds_RC \
18131219820Sjeff    old_archive_from_new_cmds_RC \
18132219820Sjeff    predep_objects_RC \
18133219820Sjeff    postdep_objects_RC \
18134219820Sjeff    predeps_RC \
18135219820Sjeff    postdeps_RC \
18136219820Sjeff    compiler_lib_search_path_RC \
18137219820Sjeff    archive_cmds_RC \
18138219820Sjeff    archive_expsym_cmds_RC \
18139219820Sjeff    postinstall_cmds_RC \
18140219820Sjeff    postuninstall_cmds_RC \
18141219820Sjeff    old_archive_from_expsyms_cmds_RC \
18142219820Sjeff    allow_undefined_flag_RC \
18143219820Sjeff    no_undefined_flag_RC \
18144219820Sjeff    export_symbols_cmds_RC \
18145219820Sjeff    hardcode_libdir_flag_spec_RC \
18146219820Sjeff    hardcode_libdir_flag_spec_ld_RC \
18147219820Sjeff    hardcode_libdir_separator_RC \
18148219820Sjeff    hardcode_automatic_RC \
18149219820Sjeff    module_cmds_RC \
18150219820Sjeff    module_expsym_cmds_RC \
18151219820Sjeff    lt_cv_prog_compiler_c_o_RC \
18152219820Sjeff    exclude_expsyms_RC \
18153219820Sjeff    include_expsyms_RC; do
18154219820Sjeff
18155219820Sjeff    case $var in
18156219820Sjeff    old_archive_cmds_RC | \
18157219820Sjeff    old_archive_from_new_cmds_RC | \
18158219820Sjeff    archive_cmds_RC | \
18159219820Sjeff    archive_expsym_cmds_RC | \
18160219820Sjeff    module_cmds_RC | \
18161219820Sjeff    module_expsym_cmds_RC | \
18162219820Sjeff    old_archive_from_expsyms_cmds_RC | \
18163219820Sjeff    export_symbols_cmds_RC | \
18164219820Sjeff    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18165219820Sjeff    postinstall_cmds | postuninstall_cmds | \
18166219820Sjeff    old_postinstall_cmds | old_postuninstall_cmds | \
18167219820Sjeff    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18168219820Sjeff      # Double-quote double-evaled strings.
18169219820Sjeff      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18170219820Sjeff      ;;
18171219820Sjeff    *)
18172219820Sjeff      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18173219820Sjeff      ;;
18174219820Sjeff    esac
18175219820Sjeff  done
18176219820Sjeff
18177219820Sjeff  case $lt_echo in
18178219820Sjeff  *'\$0 --fallback-echo"')
18179219820Sjeff    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18180219820Sjeff    ;;
18181219820Sjeff  esac
18182219820Sjeff
18183219820Sjeffcfgfile="$ofile"
18184219820Sjeff
18185219820Sjeff  cat <<__EOF__ >> "$cfgfile"
18186219820Sjeff# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18187219820Sjeff
18188219820Sjeff# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18189219820Sjeff
18190219820Sjeff# Shell to use when invoking shell scripts.
18191219820SjeffSHELL=$lt_SHELL
18192219820Sjeff
18193219820Sjeff# Whether or not to build shared libraries.
18194219820Sjeffbuild_libtool_libs=$enable_shared
18195219820Sjeff
18196219820Sjeff# Whether or not to build static libraries.
18197219820Sjeffbuild_old_libs=$enable_static
18198219820Sjeff
18199219820Sjeff# Whether or not to add -lc for building shared libraries.
18200219820Sjeffbuild_libtool_need_lc=$archive_cmds_need_lc_RC
18201219820Sjeff
18202219820Sjeff# Whether or not to disallow shared libs when runtime libs are static
18203219820Sjeffallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18204219820Sjeff
18205219820Sjeff# Whether or not to optimize for fast installation.
18206219820Sjefffast_install=$enable_fast_install
18207219820Sjeff
18208219820Sjeff# The host system.
18209219820Sjeffhost_alias=$host_alias
18210219820Sjeffhost=$host
18211219820Sjeffhost_os=$host_os
18212219820Sjeff
18213219820Sjeff# The build system.
18214219820Sjeffbuild_alias=$build_alias
18215219820Sjeffbuild=$build
18216219820Sjeffbuild_os=$build_os
18217219820Sjeff
18218219820Sjeff# An echo program that does not interpret backslashes.
18219219820Sjeffecho=$lt_echo
18220219820Sjeff
18221219820Sjeff# The archiver.
18222219820SjeffAR=$lt_AR
18223219820SjeffAR_FLAGS=$lt_AR_FLAGS
18224219820Sjeff
18225219820Sjeff# A C compiler.
18226219820SjeffLTCC=$lt_LTCC
18227219820Sjeff
18228219820Sjeff# LTCC compiler flags.
18229219820SjeffLTCFLAGS=$lt_LTCFLAGS
18230219820Sjeff
18231219820Sjeff# A language-specific compiler.
18232219820SjeffCC=$lt_compiler_RC
18233219820Sjeff
18234219820Sjeff# Is the compiler the GNU C compiler?
18235219820Sjeffwith_gcc=$GCC_RC
18236219820Sjeff
18237219820Sjeff# An ERE matcher.
18238219820SjeffEGREP=$lt_EGREP
18239219820Sjeff
18240219820Sjeff# The linker used to build libraries.
18241219820SjeffLD=$lt_LD_RC
18242219820Sjeff
18243219820Sjeff# Whether we need hard or soft links.
18244219820SjeffLN_S=$lt_LN_S
18245219820Sjeff
18246219820Sjeff# A BSD-compatible nm program.
18247219820SjeffNM=$lt_NM
18248219820Sjeff
18249219820Sjeff# A symbol stripping program
18250219820SjeffSTRIP=$lt_STRIP
18251219820Sjeff
18252219820Sjeff# Used to examine libraries when file_magic_cmd begins "file"
18253219820SjeffMAGIC_CMD=$MAGIC_CMD
18254219820Sjeff
18255219820Sjeff# Used on cygwin: DLL creation program.
18256219820SjeffDLLTOOL="$DLLTOOL"
18257219820Sjeff
18258219820Sjeff# Used on cygwin: object dumper.
18259219820SjeffOBJDUMP="$OBJDUMP"
18260219820Sjeff
18261219820Sjeff# Used on cygwin: assembler.
18262219820SjeffAS="$AS"
18263219820Sjeff
18264219820Sjeff# The name of the directory that contains temporary libtool files.
18265219820Sjeffobjdir=$objdir
18266219820Sjeff
18267219820Sjeff# How to create reloadable object files.
18268219820Sjeffreload_flag=$lt_reload_flag
18269219820Sjeffreload_cmds=$lt_reload_cmds
18270219820Sjeff
18271219820Sjeff# How to pass a linker flag through the compiler.
18272219820Sjeffwl=$lt_lt_prog_compiler_wl_RC
18273219820Sjeff
18274219820Sjeff# Object file suffix (normally "o").
18275219820Sjeffobjext="$ac_objext"
18276219820Sjeff
18277219820Sjeff# Old archive suffix (normally "a").
18278219820Sjefflibext="$libext"
18279219820Sjeff
18280219820Sjeff# Shared library suffix (normally ".so").
18281219820Sjeffshrext_cmds='$shrext_cmds'
18282219820Sjeff
18283219820Sjeff# Executable file suffix (normally "").
18284219820Sjeffexeext="$exeext"
18285219820Sjeff
18286219820Sjeff# Additional compiler flags for building library objects.
18287219820Sjeffpic_flag=$lt_lt_prog_compiler_pic_RC
18288219820Sjeffpic_mode=$pic_mode
18289219820Sjeff
18290219820Sjeff# What is the maximum length of a command?
18291219820Sjeffmax_cmd_len=$lt_cv_sys_max_cmd_len
18292219820Sjeff
18293219820Sjeff# Does compiler simultaneously support -c and -o options?
18294219820Sjeffcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18295219820Sjeff
18296219820Sjeff# Must we lock files when doing compilation?
18297219820Sjeffneed_locks=$lt_need_locks
18298219820Sjeff
18299219820Sjeff# Do we need the lib prefix for modules?
18300219820Sjeffneed_lib_prefix=$need_lib_prefix
18301219820Sjeff
18302219820Sjeff# Do we need a version for libraries?
18303219820Sjeffneed_version=$need_version
18304219820Sjeff
18305219820Sjeff# Whether dlopen is supported.
18306219820Sjeffdlopen_support=$enable_dlopen
18307219820Sjeff
18308219820Sjeff# Whether dlopen of programs is supported.
18309219820Sjeffdlopen_self=$enable_dlopen_self
18310219820Sjeff
18311219820Sjeff# Whether dlopen of statically linked programs is supported.
18312219820Sjeffdlopen_self_static=$enable_dlopen_self_static
18313219820Sjeff
18314219820Sjeff# Compiler flag to prevent dynamic linking.
18315219820Sjefflink_static_flag=$lt_lt_prog_compiler_static_RC
18316219820Sjeff
18317219820Sjeff# Compiler flag to turn off builtin functions.
18318219820Sjeffno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18319219820Sjeff
18320219820Sjeff# Compiler flag to allow reflexive dlopens.
18321219820Sjeffexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18322219820Sjeff
18323219820Sjeff# Compiler flag to generate shared objects directly from archives.
18324219820Sjeffwhole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18325219820Sjeff
18326219820Sjeff# Compiler flag to generate thread-safe objects.
18327219820Sjeffthread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18328219820Sjeff
18329219820Sjeff# Library versioning type.
18330219820Sjeffversion_type=$version_type
18331219820Sjeff
18332219820Sjeff# Format of library name prefix.
18333219820Sjefflibname_spec=$lt_libname_spec
18334219820Sjeff
18335219820Sjeff# List of archive names.  First name is the real one, the rest are links.
18336219820Sjeff# The last name is the one that the linker finds with -lNAME.
18337219820Sjefflibrary_names_spec=$lt_library_names_spec
18338219820Sjeff
18339219820Sjeff# The coded name of the library, if different from the real name.
18340219820Sjeffsoname_spec=$lt_soname_spec
18341219820Sjeff
18342219820Sjeff# Commands used to build and install an old-style archive.
18343219820SjeffRANLIB=$lt_RANLIB
18344219820Sjeffold_archive_cmds=$lt_old_archive_cmds_RC
18345219820Sjeffold_postinstall_cmds=$lt_old_postinstall_cmds
18346219820Sjeffold_postuninstall_cmds=$lt_old_postuninstall_cmds
18347219820Sjeff
18348219820Sjeff# Create an old-style archive from a shared archive.
18349219820Sjeffold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18350219820Sjeff
18351219820Sjeff# Create a temporary old-style archive to link instead of a shared archive.
18352219820Sjeffold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18353219820Sjeff
18354219820Sjeff# Commands used to build and install a shared archive.
18355219820Sjeffarchive_cmds=$lt_archive_cmds_RC
18356219820Sjeffarchive_expsym_cmds=$lt_archive_expsym_cmds_RC
18357219820Sjeffpostinstall_cmds=$lt_postinstall_cmds
18358219820Sjeffpostuninstall_cmds=$lt_postuninstall_cmds
18359219820Sjeff
18360219820Sjeff# Commands used to build a loadable module (assumed same as above if empty)
18361219820Sjeffmodule_cmds=$lt_module_cmds_RC
18362219820Sjeffmodule_expsym_cmds=$lt_module_expsym_cmds_RC
18363219820Sjeff
18364219820Sjeff# Commands to strip libraries.
18365219820Sjeffold_striplib=$lt_old_striplib
18366219820Sjeffstriplib=$lt_striplib
18367219820Sjeff
18368219820Sjeff# Dependencies to place before the objects being linked to create a
18369219820Sjeff# shared library.
18370219820Sjeffpredep_objects=$lt_predep_objects_RC
18371219820Sjeff
18372219820Sjeff# Dependencies to place after the objects being linked to create a
18373219820Sjeff# shared library.
18374219820Sjeffpostdep_objects=$lt_postdep_objects_RC
18375219820Sjeff
18376219820Sjeff# Dependencies to place before the objects being linked to create a
18377219820Sjeff# shared library.
18378219820Sjeffpredeps=$lt_predeps_RC
18379219820Sjeff
18380219820Sjeff# Dependencies to place after the objects being linked to create a
18381219820Sjeff# shared library.
18382219820Sjeffpostdeps=$lt_postdeps_RC
18383219820Sjeff
18384219820Sjeff# The library search path used internally by the compiler when linking
18385219820Sjeff# a shared library.
18386219820Sjeffcompiler_lib_search_path=$lt_compiler_lib_search_path_RC
18387219820Sjeff
18388219820Sjeff# Method to check whether dependent libraries are shared objects.
18389219820Sjeffdeplibs_check_method=$lt_deplibs_check_method
18390219820Sjeff
18391219820Sjeff# Command to use when deplibs_check_method == file_magic.
18392219820Sjefffile_magic_cmd=$lt_file_magic_cmd
18393219820Sjeff
18394219820Sjeff# Flag that allows shared libraries with undefined symbols to be built.
18395219820Sjeffallow_undefined_flag=$lt_allow_undefined_flag_RC
18396219820Sjeff
18397219820Sjeff# Flag that forces no undefined symbols.
18398219820Sjeffno_undefined_flag=$lt_no_undefined_flag_RC
18399219820Sjeff
18400219820Sjeff# Commands used to finish a libtool library installation in a directory.
18401219820Sjefffinish_cmds=$lt_finish_cmds
18402219820Sjeff
18403219820Sjeff# Same as above, but a single script fragment to be evaled but not shown.
18404219820Sjefffinish_eval=$lt_finish_eval
18405219820Sjeff
18406219820Sjeff# Take the output of nm and produce a listing of raw symbols and C names.
18407219820Sjeffglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18408219820Sjeff
18409219820Sjeff# Transform the output of nm in a proper C declaration
18410219820Sjeffglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18411219820Sjeff
18412219820Sjeff# Transform the output of nm in a C name address pair
18413219820Sjeffglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18414219820Sjeff
18415219820Sjeff# This is the shared library runtime path variable.
18416219820Sjeffrunpath_var=$runpath_var
18417219820Sjeff
18418219820Sjeff# This is the shared library path variable.
18419219820Sjeffshlibpath_var=$shlibpath_var
18420219820Sjeff
18421219820Sjeff# Is shlibpath searched before the hard-coded library search path?
18422219820Sjeffshlibpath_overrides_runpath=$shlibpath_overrides_runpath
18423219820Sjeff
18424219820Sjeff# How to hardcode a shared library path into an executable.
18425219820Sjeffhardcode_action=$hardcode_action_RC
18426219820Sjeff
18427219820Sjeff# Whether we should hardcode library paths into libraries.
18428219820Sjeffhardcode_into_libs=$hardcode_into_libs
18429219820Sjeff
18430219820Sjeff# Flag to hardcode \$libdir into a binary during linking.
18431219820Sjeff# This must work even if \$libdir does not exist.
18432219820Sjeffhardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18433219820Sjeff
18434219820Sjeff# If ld is used when linking, flag to hardcode \$libdir into
18435219820Sjeff# a binary during linking. This must work even if \$libdir does
18436219820Sjeff# not exist.
18437219820Sjeffhardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18438219820Sjeff
18439219820Sjeff# Whether we need a single -rpath flag with a separated argument.
18440219820Sjeffhardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18441219820Sjeff
18442219820Sjeff# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18443219820Sjeff# resulting binary.
18444219820Sjeffhardcode_direct=$hardcode_direct_RC
18445219820Sjeff
18446219820Sjeff# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18447219820Sjeff# resulting binary.
18448219820Sjeffhardcode_minus_L=$hardcode_minus_L_RC
18449219820Sjeff
18450219820Sjeff# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18451219820Sjeff# the resulting binary.
18452219820Sjeffhardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18453219820Sjeff
18454219820Sjeff# Set to yes if building a shared library automatically hardcodes DIR into the library
18455219820Sjeff# and all subsequent libraries and executables linked against it.
18456219820Sjeffhardcode_automatic=$hardcode_automatic_RC
18457219820Sjeff
18458219820Sjeff# Variables whose values should be saved in libtool wrapper scripts and
18459219820Sjeff# restored at relink time.
18460219820Sjeffvariables_saved_for_relink="$variables_saved_for_relink"
18461219820Sjeff
18462219820Sjeff# Whether libtool must link a program against all its dependency libraries.
18463219820Sjefflink_all_deplibs=$link_all_deplibs_RC
18464219820Sjeff
18465219820Sjeff# Compile-time system search path for libraries
18466219820Sjeffsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18467219820Sjeff
18468219820Sjeff# Run-time system search path for libraries
18469219820Sjeffsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18470219820Sjeff
18471219820Sjeff# Fix the shell variable \$srcfile for the compiler.
18472219820Sjefffix_srcfile_path="$fix_srcfile_path_RC"
18473219820Sjeff
18474219820Sjeff# Set to yes if exported symbols are required.
18475219820Sjeffalways_export_symbols=$always_export_symbols_RC
18476219820Sjeff
18477219820Sjeff# The commands to list exported symbols.
18478219820Sjeffexport_symbols_cmds=$lt_export_symbols_cmds_RC
18479219820Sjeff
18480219820Sjeff# The commands to extract the exported symbol list from a shared archive.
18481219820Sjeffextract_expsyms_cmds=$lt_extract_expsyms_cmds
18482219820Sjeff
18483219820Sjeff# Symbols that should not be listed in the preloaded symbols.
18484219820Sjeffexclude_expsyms=$lt_exclude_expsyms_RC
18485219820Sjeff
18486219820Sjeff# Symbols that must always be exported.
18487219820Sjeffinclude_expsyms=$lt_include_expsyms_RC
18488219820Sjeff
18489219820Sjeff# ### END LIBTOOL TAG CONFIG: $tagname
18490219820Sjeff
18491219820Sjeff__EOF__
18492219820Sjeff
18493219820Sjeff
18494219820Sjeffelse
18495219820Sjeff  # If there is no Makefile yet, we rely on a make rule to execute
18496219820Sjeff  # `config.status --recheck' to rerun these tests and create the
18497219820Sjeff  # libtool script then.
18498219820Sjeff  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18499219820Sjeff  if test -f "$ltmain_in"; then
18500219820Sjeff    test -f Makefile && make "$ltmain"
18501219820Sjeff  fi
18502219820Sjefffi
18503219820Sjeff
18504219820Sjeff
18505219820Sjeffac_ext=c
18506219820Sjeffac_cpp='$CPP $CPPFLAGS'
18507219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
18510219820Sjeff
18511219820SjeffCC="$lt_save_CC"
18512219820Sjeff
18513219820Sjeff	;;
18514219820Sjeff
18515219820Sjeff      *)
18516219820Sjeff	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18517219820Sjeffecho "$as_me: error: Unsupported tag name: $tagname" >&2;}
18518219820Sjeff   { (exit 1); exit 1; }; }
18519219820Sjeff	;;
18520219820Sjeff      esac
18521219820Sjeff
18522219820Sjeff      # Append the new tag name to the list of available tags.
18523219820Sjeff      if test -n "$tagname" ; then
18524219820Sjeff      available_tags="$available_tags $tagname"
18525219820Sjeff    fi
18526219820Sjeff    fi
18527219820Sjeff  done
18528219820Sjeff  IFS="$lt_save_ifs"
18529219820Sjeff
18530219820Sjeff  # Now substitute the updated list of available tags.
18531219820Sjeff  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18532219820Sjeff    mv "${ofile}T" "$ofile"
18533219820Sjeff    chmod +x "$ofile"
18534219820Sjeff  else
18535219820Sjeff    rm -f "${ofile}T"
18536219820Sjeff    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18537219820Sjeffecho "$as_me: error: unable to update list of available tagged configurations." >&2;}
18538219820Sjeff   { (exit 1); exit 1; }; }
18539219820Sjeff  fi
18540219820Sjefffi
18541219820Sjeff
18542219820Sjeff
18543219820Sjeff
18544219820Sjeff# This can be used to rebuild libtool when needed
18545219820SjeffLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18546219820Sjeff
18547219820Sjeff# Always use our own libtool.
18548219820SjeffLIBTOOL='$(SHELL) $(top_builddir)/libtool'
18549219820Sjeff
18550219820Sjeff# Prevent multiple expansion
18551219820Sjeff
18552219820Sjeff
18553219820Sjeff
18554219820Sjeff
18555219820Sjeff
18556219820Sjeff
18557219820Sjeff
18558219820Sjeff
18559219820Sjeff
18560219820Sjeff
18561219820Sjeff
18562219820Sjeff
18563219820Sjeff
18564219820Sjeff
18565219820Sjeff
18566219820Sjeff
18567219820Sjeff
18568219820Sjeff
18569219820Sjeff
18570219820Sjeff
18571219820Sjeff
18572219820Sjeff
18573219820Sjeff# Check whether --with-valgrind or --without-valgrind was given.
18574219820Sjeffif test "${with_valgrind+set}" = set; then
18575219820Sjeff  withval="$with_valgrind"
18576219820Sjeff
18577219820Sjefffi;
18578219820Sjeff
18579219820Sjeffif test "$with_valgrind" != "" && test "$with_valgrind" != "no"; then
18580219820Sjeff
18581219820Sjeffcat >>confdefs.h <<\_ACEOF
18582219820Sjeff#define INCLUDE_VALGRIND 1
18583219820Sjeff_ACEOF
18584219820Sjeff
18585219820Sjeff	if test -d $with_valgrind; then
18586219820Sjeff		CPPFLAGS="$CPPLFAGS -I$with_valgrind/include"
18587219820Sjeff	fi
18588219820Sjefffi
18589219820Sjeff
18590219820Sjeff# Check whether --enable-libcheck or --disable-libcheck was given.
18591219820Sjeffif test "${enable_libcheck+set}" = set; then
18592219820Sjeff  enableval="$enable_libcheck"
18593219820Sjeff         if test "$enableval" = "no"; then
18594219820Sjeff                disable_libcheck=yes
18595219820Sjeff        fi
18596219820Sjeff
18597219820Sjefffi;
18598219820Sjeff
18599219820Sjeffac_ext=c
18600219820Sjeffac_cpp='$CPP $CPPFLAGS'
18601219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18602219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18603219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
18604219820Sjeffif test -n "$ac_tool_prefix"; then
18605219820Sjeff  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18606219820Sjeffset dummy ${ac_tool_prefix}gcc; ac_word=$2
18607219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
18608219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18609219820Sjeffif test "${ac_cv_prog_CC+set}" = set; then
18610219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
18611219820Sjeffelse
18612219820Sjeff  if test -n "$CC"; then
18613219820Sjeff  ac_cv_prog_CC="$CC" # Let the user override the test.
18614219820Sjeffelse
18615219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616219820Sjefffor as_dir in $PATH
18617219820Sjeffdo
18618219820Sjeff  IFS=$as_save_IFS
18619219820Sjeff  test -z "$as_dir" && as_dir=.
18620219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
18621219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18622219820Sjeff    ac_cv_prog_CC="${ac_tool_prefix}gcc"
18623219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18624219820Sjeff    break 2
18625219820Sjeff  fi
18626219820Sjeffdone
18627219820Sjeffdone
18628219820Sjeff
18629219820Sjefffi
18630219820Sjefffi
18631219820SjeffCC=$ac_cv_prog_CC
18632219820Sjeffif test -n "$CC"; then
18633219820Sjeff  echo "$as_me:$LINENO: result: $CC" >&5
18634219820Sjeffecho "${ECHO_T}$CC" >&6
18635219820Sjeffelse
18636219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
18637219820Sjeffecho "${ECHO_T}no" >&6
18638219820Sjefffi
18639219820Sjeff
18640219820Sjefffi
18641219820Sjeffif test -z "$ac_cv_prog_CC"; then
18642219820Sjeff  ac_ct_CC=$CC
18643219820Sjeff  # Extract the first word of "gcc", so it can be a program name with args.
18644219820Sjeffset dummy gcc; ac_word=$2
18645219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
18646219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18647219820Sjeffif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18648219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
18649219820Sjeffelse
18650219820Sjeff  if test -n "$ac_ct_CC"; then
18651219820Sjeff  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18652219820Sjeffelse
18653219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18654219820Sjefffor as_dir in $PATH
18655219820Sjeffdo
18656219820Sjeff  IFS=$as_save_IFS
18657219820Sjeff  test -z "$as_dir" && as_dir=.
18658219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
18659219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18660219820Sjeff    ac_cv_prog_ac_ct_CC="gcc"
18661219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18662219820Sjeff    break 2
18663219820Sjeff  fi
18664219820Sjeffdone
18665219820Sjeffdone
18666219820Sjeff
18667219820Sjefffi
18668219820Sjefffi
18669219820Sjeffac_ct_CC=$ac_cv_prog_ac_ct_CC
18670219820Sjeffif test -n "$ac_ct_CC"; then
18671219820Sjeff  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18672219820Sjeffecho "${ECHO_T}$ac_ct_CC" >&6
18673219820Sjeffelse
18674219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
18675219820Sjeffecho "${ECHO_T}no" >&6
18676219820Sjefffi
18677219820Sjeff
18678219820Sjeff  CC=$ac_ct_CC
18679219820Sjeffelse
18680219820Sjeff  CC="$ac_cv_prog_CC"
18681219820Sjefffi
18682219820Sjeff
18683219820Sjeffif test -z "$CC"; then
18684219820Sjeff  if test -n "$ac_tool_prefix"; then
18685219820Sjeff  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18686219820Sjeffset dummy ${ac_tool_prefix}cc; ac_word=$2
18687219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
18688219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18689219820Sjeffif test "${ac_cv_prog_CC+set}" = set; then
18690219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
18691219820Sjeffelse
18692219820Sjeff  if test -n "$CC"; then
18693219820Sjeff  ac_cv_prog_CC="$CC" # Let the user override the test.
18694219820Sjeffelse
18695219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18696219820Sjefffor as_dir in $PATH
18697219820Sjeffdo
18698219820Sjeff  IFS=$as_save_IFS
18699219820Sjeff  test -z "$as_dir" && as_dir=.
18700219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
18701219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18702219820Sjeff    ac_cv_prog_CC="${ac_tool_prefix}cc"
18703219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18704219820Sjeff    break 2
18705219820Sjeff  fi
18706219820Sjeffdone
18707219820Sjeffdone
18708219820Sjeff
18709219820Sjefffi
18710219820Sjefffi
18711219820SjeffCC=$ac_cv_prog_CC
18712219820Sjeffif test -n "$CC"; then
18713219820Sjeff  echo "$as_me:$LINENO: result: $CC" >&5
18714219820Sjeffecho "${ECHO_T}$CC" >&6
18715219820Sjeffelse
18716219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
18717219820Sjeffecho "${ECHO_T}no" >&6
18718219820Sjefffi
18719219820Sjeff
18720219820Sjefffi
18721219820Sjeffif test -z "$ac_cv_prog_CC"; then
18722219820Sjeff  ac_ct_CC=$CC
18723219820Sjeff  # Extract the first word of "cc", so it can be a program name with args.
18724219820Sjeffset dummy cc; ac_word=$2
18725219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
18726219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18727219820Sjeffif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18728219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
18729219820Sjeffelse
18730219820Sjeff  if test -n "$ac_ct_CC"; then
18731219820Sjeff  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18732219820Sjeffelse
18733219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18734219820Sjefffor as_dir in $PATH
18735219820Sjeffdo
18736219820Sjeff  IFS=$as_save_IFS
18737219820Sjeff  test -z "$as_dir" && as_dir=.
18738219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
18739219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18740219820Sjeff    ac_cv_prog_ac_ct_CC="cc"
18741219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18742219820Sjeff    break 2
18743219820Sjeff  fi
18744219820Sjeffdone
18745219820Sjeffdone
18746219820Sjeff
18747219820Sjefffi
18748219820Sjefffi
18749219820Sjeffac_ct_CC=$ac_cv_prog_ac_ct_CC
18750219820Sjeffif test -n "$ac_ct_CC"; then
18751219820Sjeff  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18752219820Sjeffecho "${ECHO_T}$ac_ct_CC" >&6
18753219820Sjeffelse
18754219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
18755219820Sjeffecho "${ECHO_T}no" >&6
18756219820Sjefffi
18757219820Sjeff
18758219820Sjeff  CC=$ac_ct_CC
18759219820Sjeffelse
18760219820Sjeff  CC="$ac_cv_prog_CC"
18761219820Sjefffi
18762219820Sjeff
18763219820Sjefffi
18764219820Sjeffif test -z "$CC"; then
18765219820Sjeff  # Extract the first word of "cc", so it can be a program name with args.
18766219820Sjeffset dummy cc; ac_word=$2
18767219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
18768219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18769219820Sjeffif test "${ac_cv_prog_CC+set}" = set; then
18770219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
18771219820Sjeffelse
18772219820Sjeff  if test -n "$CC"; then
18773219820Sjeff  ac_cv_prog_CC="$CC" # Let the user override the test.
18774219820Sjeffelse
18775219820Sjeff  ac_prog_rejected=no
18776219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18777219820Sjefffor as_dir in $PATH
18778219820Sjeffdo
18779219820Sjeff  IFS=$as_save_IFS
18780219820Sjeff  test -z "$as_dir" && as_dir=.
18781219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
18782219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18783219820Sjeff    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18784219820Sjeff       ac_prog_rejected=yes
18785219820Sjeff       continue
18786219820Sjeff     fi
18787219820Sjeff    ac_cv_prog_CC="cc"
18788219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18789219820Sjeff    break 2
18790219820Sjeff  fi
18791219820Sjeffdone
18792219820Sjeffdone
18793219820Sjeff
18794219820Sjeffif test $ac_prog_rejected = yes; then
18795219820Sjeff  # We found a bogon in the path, so make sure we never use it.
18796219820Sjeff  set dummy $ac_cv_prog_CC
18797219820Sjeff  shift
18798219820Sjeff  if test $# != 0; then
18799219820Sjeff    # We chose a different compiler from the bogus one.
18800219820Sjeff    # However, it has the same basename, so the bogon will be chosen
18801219820Sjeff    # first if we set CC to just the basename; use the full file name.
18802219820Sjeff    shift
18803219820Sjeff    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18804219820Sjeff  fi
18805219820Sjefffi
18806219820Sjefffi
18807219820Sjefffi
18808219820SjeffCC=$ac_cv_prog_CC
18809219820Sjeffif test -n "$CC"; then
18810219820Sjeff  echo "$as_me:$LINENO: result: $CC" >&5
18811219820Sjeffecho "${ECHO_T}$CC" >&6
18812219820Sjeffelse
18813219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
18814219820Sjeffecho "${ECHO_T}no" >&6
18815219820Sjefffi
18816219820Sjeff
18817219820Sjefffi
18818219820Sjeffif test -z "$CC"; then
18819219820Sjeff  if test -n "$ac_tool_prefix"; then
18820219820Sjeff  for ac_prog in cl
18821219820Sjeff  do
18822219820Sjeff    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18823219820Sjeffset dummy $ac_tool_prefix$ac_prog; ac_word=$2
18824219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
18825219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18826219820Sjeffif test "${ac_cv_prog_CC+set}" = set; then
18827219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
18828219820Sjeffelse
18829219820Sjeff  if test -n "$CC"; then
18830219820Sjeff  ac_cv_prog_CC="$CC" # Let the user override the test.
18831219820Sjeffelse
18832219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18833219820Sjefffor as_dir in $PATH
18834219820Sjeffdo
18835219820Sjeff  IFS=$as_save_IFS
18836219820Sjeff  test -z "$as_dir" && as_dir=.
18837219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
18838219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18839219820Sjeff    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18840219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18841219820Sjeff    break 2
18842219820Sjeff  fi
18843219820Sjeffdone
18844219820Sjeffdone
18845219820Sjeff
18846219820Sjefffi
18847219820Sjefffi
18848219820SjeffCC=$ac_cv_prog_CC
18849219820Sjeffif test -n "$CC"; then
18850219820Sjeff  echo "$as_me:$LINENO: result: $CC" >&5
18851219820Sjeffecho "${ECHO_T}$CC" >&6
18852219820Sjeffelse
18853219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
18854219820Sjeffecho "${ECHO_T}no" >&6
18855219820Sjefffi
18856219820Sjeff
18857219820Sjeff    test -n "$CC" && break
18858219820Sjeff  done
18859219820Sjefffi
18860219820Sjeffif test -z "$CC"; then
18861219820Sjeff  ac_ct_CC=$CC
18862219820Sjeff  for ac_prog in cl
18863219820Sjeffdo
18864219820Sjeff  # Extract the first word of "$ac_prog", so it can be a program name with args.
18865219820Sjeffset dummy $ac_prog; ac_word=$2
18866219820Sjeffecho "$as_me:$LINENO: checking for $ac_word" >&5
18867219820Sjeffecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18868219820Sjeffif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18869219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
18870219820Sjeffelse
18871219820Sjeff  if test -n "$ac_ct_CC"; then
18872219820Sjeff  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18873219820Sjeffelse
18874219820Sjeffas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18875219820Sjefffor as_dir in $PATH
18876219820Sjeffdo
18877219820Sjeff  IFS=$as_save_IFS
18878219820Sjeff  test -z "$as_dir" && as_dir=.
18879219820Sjeff  for ac_exec_ext in '' $ac_executable_extensions; do
18880219820Sjeff  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18881219820Sjeff    ac_cv_prog_ac_ct_CC="$ac_prog"
18882219820Sjeff    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18883219820Sjeff    break 2
18884219820Sjeff  fi
18885219820Sjeffdone
18886219820Sjeffdone
18887219820Sjeff
18888219820Sjefffi
18889219820Sjefffi
18890219820Sjeffac_ct_CC=$ac_cv_prog_ac_ct_CC
18891219820Sjeffif test -n "$ac_ct_CC"; then
18892219820Sjeff  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18893219820Sjeffecho "${ECHO_T}$ac_ct_CC" >&6
18894219820Sjeffelse
18895219820Sjeff  echo "$as_me:$LINENO: result: no" >&5
18896219820Sjeffecho "${ECHO_T}no" >&6
18897219820Sjefffi
18898219820Sjeff
18899219820Sjeff  test -n "$ac_ct_CC" && break
18900219820Sjeffdone
18901219820Sjeff
18902219820Sjeff  CC=$ac_ct_CC
18903219820Sjefffi
18904219820Sjeff
18905219820Sjefffi
18906219820Sjeff
18907219820Sjeff
18908219820Sjefftest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18909219820SjeffSee \`config.log' for more details." >&5
18910219820Sjeffecho "$as_me: error: no acceptable C compiler found in \$PATH
18911219820SjeffSee \`config.log' for more details." >&2;}
18912219820Sjeff   { (exit 1); exit 1; }; }
18913219820Sjeff
18914219820Sjeff# Provide some information about the compiler.
18915219820Sjeffecho "$as_me:$LINENO:" \
18916219820Sjeff     "checking for C compiler version" >&5
18917219820Sjeffac_compiler=`set X $ac_compile; echo $2`
18918219820Sjeff{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18919219820Sjeff  (eval $ac_compiler --version </dev/null >&5) 2>&5
18920219820Sjeff  ac_status=$?
18921219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922219820Sjeff  (exit $ac_status); }
18923219820Sjeff{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18924219820Sjeff  (eval $ac_compiler -v </dev/null >&5) 2>&5
18925219820Sjeff  ac_status=$?
18926219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927219820Sjeff  (exit $ac_status); }
18928219820Sjeff{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18929219820Sjeff  (eval $ac_compiler -V </dev/null >&5) 2>&5
18930219820Sjeff  ac_status=$?
18931219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932219820Sjeff  (exit $ac_status); }
18933219820Sjeff
18934219820Sjeffecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
18935219820Sjeffecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18936219820Sjeffif test "${ac_cv_c_compiler_gnu+set}" = set; then
18937219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
18938219820Sjeffelse
18939219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
18940219820Sjeff/* confdefs.h.  */
18941219820Sjeff_ACEOF
18942219820Sjeffcat confdefs.h >>conftest.$ac_ext
18943219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
18944219820Sjeff/* end confdefs.h.  */
18945219820Sjeff
18946219820Sjeffint
18947219820Sjeffmain ()
18948219820Sjeff{
18949219820Sjeff#ifndef __GNUC__
18950219820Sjeff       choke me
18951219820Sjeff#endif
18952219820Sjeff
18953219820Sjeff  ;
18954219820Sjeff  return 0;
18955219820Sjeff}
18956219820Sjeff_ACEOF
18957219820Sjeffrm -f conftest.$ac_objext
18958219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18959219820Sjeff  (eval $ac_compile) 2>conftest.er1
18960219820Sjeff  ac_status=$?
18961219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
18962219820Sjeff  rm -f conftest.er1
18963219820Sjeff  cat conftest.err >&5
18964219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965219820Sjeff  (exit $ac_status); } &&
18966219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18967219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968219820Sjeff  (eval $ac_try) 2>&5
18969219820Sjeff  ac_status=$?
18970219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971219820Sjeff  (exit $ac_status); }; } &&
18972219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
18973219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974219820Sjeff  (eval $ac_try) 2>&5
18975219820Sjeff  ac_status=$?
18976219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977219820Sjeff  (exit $ac_status); }; }; then
18978219820Sjeff  ac_compiler_gnu=yes
18979219820Sjeffelse
18980219820Sjeff  echo "$as_me: failed program was:" >&5
18981219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
18982219820Sjeff
18983219820Sjeffac_compiler_gnu=no
18984219820Sjefffi
18985219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18986219820Sjeffac_cv_c_compiler_gnu=$ac_compiler_gnu
18987219820Sjeff
18988219820Sjefffi
18989219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
18990219820Sjeffecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18991219820SjeffGCC=`test $ac_compiler_gnu = yes && echo yes`
18992219820Sjeffac_test_CFLAGS=${CFLAGS+set}
18993219820Sjeffac_save_CFLAGS=$CFLAGS
18994219820SjeffCFLAGS="-g"
18995219820Sjeffecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18996219820Sjeffecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18997219820Sjeffif test "${ac_cv_prog_cc_g+set}" = set; then
18998219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
18999219820Sjeffelse
19000219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
19001219820Sjeff/* confdefs.h.  */
19002219820Sjeff_ACEOF
19003219820Sjeffcat confdefs.h >>conftest.$ac_ext
19004219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19005219820Sjeff/* end confdefs.h.  */
19006219820Sjeff
19007219820Sjeffint
19008219820Sjeffmain ()
19009219820Sjeff{
19010219820Sjeff
19011219820Sjeff  ;
19012219820Sjeff  return 0;
19013219820Sjeff}
19014219820Sjeff_ACEOF
19015219820Sjeffrm -f conftest.$ac_objext
19016219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19017219820Sjeff  (eval $ac_compile) 2>conftest.er1
19018219820Sjeff  ac_status=$?
19019219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19020219820Sjeff  rm -f conftest.er1
19021219820Sjeff  cat conftest.err >&5
19022219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023219820Sjeff  (exit $ac_status); } &&
19024219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19025219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026219820Sjeff  (eval $ac_try) 2>&5
19027219820Sjeff  ac_status=$?
19028219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029219820Sjeff  (exit $ac_status); }; } &&
19030219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
19031219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032219820Sjeff  (eval $ac_try) 2>&5
19033219820Sjeff  ac_status=$?
19034219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035219820Sjeff  (exit $ac_status); }; }; then
19036219820Sjeff  ac_cv_prog_cc_g=yes
19037219820Sjeffelse
19038219820Sjeff  echo "$as_me: failed program was:" >&5
19039219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19040219820Sjeff
19041219820Sjeffac_cv_prog_cc_g=no
19042219820Sjefffi
19043219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19044219820Sjefffi
19045219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19046219820Sjeffecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
19047219820Sjeffif test "$ac_test_CFLAGS" = set; then
19048219820Sjeff  CFLAGS=$ac_save_CFLAGS
19049219820Sjeffelif test $ac_cv_prog_cc_g = yes; then
19050219820Sjeff  if test "$GCC" = yes; then
19051219820Sjeff    CFLAGS="-g -O2"
19052219820Sjeff  else
19053219820Sjeff    CFLAGS="-g"
19054219820Sjeff  fi
19055219820Sjeffelse
19056219820Sjeff  if test "$GCC" = yes; then
19057219820Sjeff    CFLAGS="-O2"
19058219820Sjeff  else
19059219820Sjeff    CFLAGS=
19060219820Sjeff  fi
19061219820Sjefffi
19062219820Sjeffecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19063219820Sjeffecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19064219820Sjeffif test "${ac_cv_prog_cc_stdc+set}" = set; then
19065219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
19066219820Sjeffelse
19067219820Sjeff  ac_cv_prog_cc_stdc=no
19068219820Sjeffac_save_CC=$CC
19069219820Sjeffcat >conftest.$ac_ext <<_ACEOF
19070219820Sjeff/* confdefs.h.  */
19071219820Sjeff_ACEOF
19072219820Sjeffcat confdefs.h >>conftest.$ac_ext
19073219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19074219820Sjeff/* end confdefs.h.  */
19075219820Sjeff#include <stdarg.h>
19076219820Sjeff#include <stdio.h>
19077219820Sjeff#include <sys/types.h>
19078219820Sjeff#include <sys/stat.h>
19079219820Sjeff/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19080219820Sjeffstruct buf { int x; };
19081219820SjeffFILE * (*rcsopen) (struct buf *, struct stat *, int);
19082219820Sjeffstatic char *e (p, i)
19083219820Sjeff     char **p;
19084219820Sjeff     int i;
19085219820Sjeff{
19086219820Sjeff  return p[i];
19087219820Sjeff}
19088219820Sjeffstatic char *f (char * (*g) (char **, int), char **p, ...)
19089219820Sjeff{
19090219820Sjeff  char *s;
19091219820Sjeff  va_list v;
19092219820Sjeff  va_start (v,p);
19093219820Sjeff  s = g (p, va_arg (v,int));
19094219820Sjeff  va_end (v);
19095219820Sjeff  return s;
19096219820Sjeff}
19097219820Sjeff
19098219820Sjeff/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19099219820Sjeff   function prototypes and stuff, but not '\xHH' hex character constants.
19100219820Sjeff   These don't provoke an error unfortunately, instead are silently treated
19101219820Sjeff   as 'x'.  The following induces an error, until -std1 is added to get
19102219820Sjeff   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19103219820Sjeff   array size at least.  It's necessary to write '\x00'==0 to get something
19104219820Sjeff   that's true only with -std1.  */
19105219820Sjeffint osf4_cc_array ['\x00' == 0 ? 1 : -1];
19106219820Sjeff
19107219820Sjeffint test (int i, double x);
19108219820Sjeffstruct s1 {int (*f) (int a);};
19109219820Sjeffstruct s2 {int (*f) (double a);};
19110219820Sjeffint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19111219820Sjeffint argc;
19112219820Sjeffchar **argv;
19113219820Sjeffint
19114219820Sjeffmain ()
19115219820Sjeff{
19116219820Sjeffreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19117219820Sjeff  ;
19118219820Sjeff  return 0;
19119219820Sjeff}
19120219820Sjeff_ACEOF
19121219820Sjeff# Don't try gcc -ansi; that turns off useful extensions and
19122219820Sjeff# breaks some systems' header files.
19123219820Sjeff# AIX			-qlanglvl=ansi
19124219820Sjeff# Ultrix and OSF/1	-std1
19125219820Sjeff# HP-UX 10.20 and later	-Ae
19126219820Sjeff# HP-UX older versions	-Aa -D_HPUX_SOURCE
19127219820Sjeff# SVR4			-Xc -D__EXTENSIONS__
19128219820Sjefffor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19129219820Sjeffdo
19130219820Sjeff  CC="$ac_save_CC $ac_arg"
19131219820Sjeff  rm -f conftest.$ac_objext
19132219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19133219820Sjeff  (eval $ac_compile) 2>conftest.er1
19134219820Sjeff  ac_status=$?
19135219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19136219820Sjeff  rm -f conftest.er1
19137219820Sjeff  cat conftest.err >&5
19138219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139219820Sjeff  (exit $ac_status); } &&
19140219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19141219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142219820Sjeff  (eval $ac_try) 2>&5
19143219820Sjeff  ac_status=$?
19144219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145219820Sjeff  (exit $ac_status); }; } &&
19146219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
19147219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148219820Sjeff  (eval $ac_try) 2>&5
19149219820Sjeff  ac_status=$?
19150219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151219820Sjeff  (exit $ac_status); }; }; then
19152219820Sjeff  ac_cv_prog_cc_stdc=$ac_arg
19153219820Sjeffbreak
19154219820Sjeffelse
19155219820Sjeff  echo "$as_me: failed program was:" >&5
19156219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19157219820Sjeff
19158219820Sjefffi
19159219820Sjeffrm -f conftest.err conftest.$ac_objext
19160219820Sjeffdone
19161219820Sjeffrm -f conftest.$ac_ext conftest.$ac_objext
19162219820SjeffCC=$ac_save_CC
19163219820Sjeff
19164219820Sjefffi
19165219820Sjeff
19166219820Sjeffcase "x$ac_cv_prog_cc_stdc" in
19167219820Sjeff  x|xno)
19168219820Sjeff    echo "$as_me:$LINENO: result: none needed" >&5
19169219820Sjeffecho "${ECHO_T}none needed" >&6 ;;
19170219820Sjeff  *)
19171219820Sjeff    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19172219820Sjeffecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19173219820Sjeff    CC="$CC $ac_cv_prog_cc_stdc" ;;
19174219820Sjeffesac
19175219820Sjeff
19176219820Sjeff# Some people use a C++ compiler to compile C.  Since we use `exit',
19177219820Sjeff# in C++ we need to declare it.  In case someone uses the same compiler
19178219820Sjeff# for both compiling C and C++ we need to have the C++ compiler decide
19179219820Sjeff# the declaration of exit, since it's the most demanding environment.
19180219820Sjeffcat >conftest.$ac_ext <<_ACEOF
19181219820Sjeff#ifndef __cplusplus
19182219820Sjeff  choke me
19183219820Sjeff#endif
19184219820Sjeff_ACEOF
19185219820Sjeffrm -f conftest.$ac_objext
19186219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187219820Sjeff  (eval $ac_compile) 2>conftest.er1
19188219820Sjeff  ac_status=$?
19189219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19190219820Sjeff  rm -f conftest.er1
19191219820Sjeff  cat conftest.err >&5
19192219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193219820Sjeff  (exit $ac_status); } &&
19194219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19195219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196219820Sjeff  (eval $ac_try) 2>&5
19197219820Sjeff  ac_status=$?
19198219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199219820Sjeff  (exit $ac_status); }; } &&
19200219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
19201219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202219820Sjeff  (eval $ac_try) 2>&5
19203219820Sjeff  ac_status=$?
19204219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205219820Sjeff  (exit $ac_status); }; }; then
19206219820Sjeff  for ac_declaration in \
19207219820Sjeff   '' \
19208219820Sjeff   'extern "C" void std::exit (int) throw (); using std::exit;' \
19209219820Sjeff   'extern "C" void std::exit (int); using std::exit;' \
19210219820Sjeff   'extern "C" void exit (int) throw ();' \
19211219820Sjeff   'extern "C" void exit (int);' \
19212219820Sjeff   'void exit (int);'
19213219820Sjeffdo
19214219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
19215219820Sjeff/* confdefs.h.  */
19216219820Sjeff_ACEOF
19217219820Sjeffcat confdefs.h >>conftest.$ac_ext
19218219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19219219820Sjeff/* end confdefs.h.  */
19220219820Sjeff$ac_declaration
19221219820Sjeff#include <stdlib.h>
19222219820Sjeffint
19223219820Sjeffmain ()
19224219820Sjeff{
19225219820Sjeffexit (42);
19226219820Sjeff  ;
19227219820Sjeff  return 0;
19228219820Sjeff}
19229219820Sjeff_ACEOF
19230219820Sjeffrm -f conftest.$ac_objext
19231219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232219820Sjeff  (eval $ac_compile) 2>conftest.er1
19233219820Sjeff  ac_status=$?
19234219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19235219820Sjeff  rm -f conftest.er1
19236219820Sjeff  cat conftest.err >&5
19237219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238219820Sjeff  (exit $ac_status); } &&
19239219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19240219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241219820Sjeff  (eval $ac_try) 2>&5
19242219820Sjeff  ac_status=$?
19243219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244219820Sjeff  (exit $ac_status); }; } &&
19245219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
19246219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247219820Sjeff  (eval $ac_try) 2>&5
19248219820Sjeff  ac_status=$?
19249219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250219820Sjeff  (exit $ac_status); }; }; then
19251219820Sjeff  :
19252219820Sjeffelse
19253219820Sjeff  echo "$as_me: failed program was:" >&5
19254219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19255219820Sjeff
19256219820Sjeffcontinue
19257219820Sjefffi
19258219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19259219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
19260219820Sjeff/* confdefs.h.  */
19261219820Sjeff_ACEOF
19262219820Sjeffcat confdefs.h >>conftest.$ac_ext
19263219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19264219820Sjeff/* end confdefs.h.  */
19265219820Sjeff$ac_declaration
19266219820Sjeffint
19267219820Sjeffmain ()
19268219820Sjeff{
19269219820Sjeffexit (42);
19270219820Sjeff  ;
19271219820Sjeff  return 0;
19272219820Sjeff}
19273219820Sjeff_ACEOF
19274219820Sjeffrm -f conftest.$ac_objext
19275219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276219820Sjeff  (eval $ac_compile) 2>conftest.er1
19277219820Sjeff  ac_status=$?
19278219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19279219820Sjeff  rm -f conftest.er1
19280219820Sjeff  cat conftest.err >&5
19281219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282219820Sjeff  (exit $ac_status); } &&
19283219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19284219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285219820Sjeff  (eval $ac_try) 2>&5
19286219820Sjeff  ac_status=$?
19287219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288219820Sjeff  (exit $ac_status); }; } &&
19289219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
19290219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291219820Sjeff  (eval $ac_try) 2>&5
19292219820Sjeff  ac_status=$?
19293219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294219820Sjeff  (exit $ac_status); }; }; then
19295219820Sjeff  break
19296219820Sjeffelse
19297219820Sjeff  echo "$as_me: failed program was:" >&5
19298219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19299219820Sjeff
19300219820Sjefffi
19301219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19302219820Sjeffdone
19303219820Sjeffrm -f conftest*
19304219820Sjeffif test -n "$ac_declaration"; then
19305219820Sjeff  echo '#ifdef __cplusplus' >>confdefs.h
19306219820Sjeff  echo $ac_declaration      >>confdefs.h
19307219820Sjeff  echo '#endif'             >>confdefs.h
19308219820Sjefffi
19309219820Sjeff
19310219820Sjeffelse
19311219820Sjeff  echo "$as_me: failed program was:" >&5
19312219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19313219820Sjeff
19314219820Sjefffi
19315219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19316219820Sjeffac_ext=c
19317219820Sjeffac_cpp='$CPP $CPPFLAGS'
19318219820Sjeffac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19319219820Sjeffac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19320219820Sjeffac_compiler_gnu=$ac_cv_c_compiler_gnu
19321219820Sjeff
19322219820Sjeffdepcc="$CC"   am_compiler_list=
19323219820Sjeff
19324219820Sjeffecho "$as_me:$LINENO: checking dependency style of $depcc" >&5
19325219820Sjeffecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19326219820Sjeffif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19327219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
19328219820Sjeffelse
19329219820Sjeff  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19330219820Sjeff  # We make a subdir and do the tests there.  Otherwise we can end up
19331219820Sjeff  # making bogus files that we don't know about and never remove.  For
19332219820Sjeff  # instance it was reported that on HP-UX the gcc test will end up
19333219820Sjeff  # making a dummy file named `D' -- because `-MD' means `put the output
19334219820Sjeff  # in D'.
19335219820Sjeff  mkdir conftest.dir
19336219820Sjeff  # Copy depcomp to subdir because otherwise we won't find it if we're
19337219820Sjeff  # using a relative directory.
19338219820Sjeff  cp "$am_depcomp" conftest.dir
19339219820Sjeff  cd conftest.dir
19340219820Sjeff  # We will build objects and dependencies in a subdirectory because
19341219820Sjeff  # it helps to detect inapplicable dependency modes.  For instance
19342219820Sjeff  # both Tru64's cc and ICC support -MD to output dependencies as a
19343219820Sjeff  # side effect of compilation, but ICC will put the dependencies in
19344219820Sjeff  # the current directory while Tru64 will put them in the object
19345219820Sjeff  # directory.
19346219820Sjeff  mkdir sub
19347219820Sjeff
19348219820Sjeff  am_cv_CC_dependencies_compiler_type=none
19349219820Sjeff  if test "$am_compiler_list" = ""; then
19350219820Sjeff     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19351219820Sjeff  fi
19352219820Sjeff  for depmode in $am_compiler_list; do
19353219820Sjeff    # Setup a source with many dependencies, because some compilers
19354219820Sjeff    # like to wrap large dependency lists on column 80 (with \), and
19355219820Sjeff    # we should not choose a depcomp mode which is confused by this.
19356219820Sjeff    #
19357219820Sjeff    # We need to recreate these files for each test, as the compiler may
19358219820Sjeff    # overwrite some of them when testing with obscure command lines.
19359219820Sjeff    # This happens at least with the AIX C compiler.
19360219820Sjeff    : > sub/conftest.c
19361219820Sjeff    for i in 1 2 3 4 5 6; do
19362219820Sjeff      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19363219820Sjeff      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19364219820Sjeff      # Solaris 8's {/usr,}/bin/sh.
19365219820Sjeff      touch sub/conftst$i.h
19366219820Sjeff    done
19367219820Sjeff    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19368219820Sjeff
19369219820Sjeff    case $depmode in
19370219820Sjeff    nosideeffect)
19371219820Sjeff      # after this tag, mechanisms are not by side-effect, so they'll
19372219820Sjeff      # only be used when explicitly requested
19373219820Sjeff      if test "x$enable_dependency_tracking" = xyes; then
19374219820Sjeff	continue
19375219820Sjeff      else
19376219820Sjeff	break
19377219820Sjeff      fi
19378219820Sjeff      ;;
19379219820Sjeff    none) break ;;
19380219820Sjeff    esac
19381219820Sjeff    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19382219820Sjeff    # mode.  It turns out that the SunPro C++ compiler does not properly
19383219820Sjeff    # handle `-M -o', and we need to detect this.
19384219820Sjeff    if depmode=$depmode \
19385219820Sjeff       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19386219820Sjeff       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19387219820Sjeff       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19388219820Sjeff         >/dev/null 2>conftest.err &&
19389219820Sjeff       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19390219820Sjeff       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19391219820Sjeff       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19392219820Sjeff      # icc doesn't choke on unknown options, it will just issue warnings
19393219820Sjeff      # or remarks (even with -Werror).  So we grep stderr for any message
19394219820Sjeff      # that says an option was ignored or not supported.
19395219820Sjeff      # When given -MP, icc 7.0 and 7.1 complain thusly:
19396219820Sjeff      #   icc: Command line warning: ignoring option '-M'; no argument required
19397219820Sjeff      # The diagnosis changed in icc 8.0:
19398219820Sjeff      #   icc: Command line remark: option '-MP' not supported
19399219820Sjeff      if (grep 'ignoring option' conftest.err ||
19400219820Sjeff          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19401219820Sjeff        am_cv_CC_dependencies_compiler_type=$depmode
19402219820Sjeff        break
19403219820Sjeff      fi
19404219820Sjeff    fi
19405219820Sjeff  done
19406219820Sjeff
19407219820Sjeff  cd ..
19408219820Sjeff  rm -rf conftest.dir
19409219820Sjeffelse
19410219820Sjeff  am_cv_CC_dependencies_compiler_type=none
19411219820Sjefffi
19412219820Sjeff
19413219820Sjefffi
19414219820Sjeffecho "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19415219820Sjeffecho "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19416219820SjeffCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19417219820Sjeff
19418219820Sjeff
19419219820Sjeff
19420219820Sjeffif
19421219820Sjeff  test "x$enable_dependency_tracking" != xno \
19422219820Sjeff  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19423219820Sjeff  am__fastdepCC_TRUE=
19424219820Sjeff  am__fastdepCC_FALSE='#'
19425219820Sjeffelse
19426219820Sjeff  am__fastdepCC_TRUE='#'
19427219820Sjeff  am__fastdepCC_FALSE=
19428219820Sjefffi
19429219820Sjeff
19430219820Sjeff
19431219820Sjeff
19432219820Sjeffecho "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19433219820Sjeffecho $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19434219820Sjeffif test "${ac_cv_c_const+set}" = set; then
19435219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
19436219820Sjeffelse
19437219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
19438219820Sjeff/* confdefs.h.  */
19439219820Sjeff_ACEOF
19440219820Sjeffcat confdefs.h >>conftest.$ac_ext
19441219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19442219820Sjeff/* end confdefs.h.  */
19443219820Sjeff
19444219820Sjeffint
19445219820Sjeffmain ()
19446219820Sjeff{
19447219820Sjeff/* FIXME: Include the comments suggested by Paul. */
19448219820Sjeff#ifndef __cplusplus
19449219820Sjeff  /* Ultrix mips cc rejects this.  */
19450219820Sjeff  typedef int charset[2];
19451219820Sjeff  const charset x;
19452219820Sjeff  /* SunOS 4.1.1 cc rejects this.  */
19453219820Sjeff  char const *const *ccp;
19454219820Sjeff  char **p;
19455219820Sjeff  /* NEC SVR4.0.2 mips cc rejects this.  */
19456219820Sjeff  struct point {int x, y;};
19457219820Sjeff  static struct point const zero = {0,0};
19458219820Sjeff  /* AIX XL C 1.02.0.0 rejects this.
19459219820Sjeff     It does not let you subtract one const X* pointer from another in
19460219820Sjeff     an arm of an if-expression whose if-part is not a constant
19461219820Sjeff     expression */
19462219820Sjeff  const char *g = "string";
19463219820Sjeff  ccp = &g + (g ? g-g : 0);
19464219820Sjeff  /* HPUX 7.0 cc rejects these. */
19465219820Sjeff  ++ccp;
19466219820Sjeff  p = (char**) ccp;
19467219820Sjeff  ccp = (char const *const *) p;
19468219820Sjeff  { /* SCO 3.2v4 cc rejects this.  */
19469219820Sjeff    char *t;
19470219820Sjeff    char const *s = 0 ? (char *) 0 : (char const *) 0;
19471219820Sjeff
19472219820Sjeff    *t++ = 0;
19473219820Sjeff  }
19474219820Sjeff  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19475219820Sjeff    int x[] = {25, 17};
19476219820Sjeff    const int *foo = &x[0];
19477219820Sjeff    ++foo;
19478219820Sjeff  }
19479219820Sjeff  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19480219820Sjeff    typedef const int *iptr;
19481219820Sjeff    iptr p = 0;
19482219820Sjeff    ++p;
19483219820Sjeff  }
19484219820Sjeff  { /* AIX XL C 1.02.0.0 rejects this saying
19485219820Sjeff       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19486219820Sjeff    struct s { int j; const int *ap[3]; };
19487219820Sjeff    struct s *b; b->j = 5;
19488219820Sjeff  }
19489219820Sjeff  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19490219820Sjeff    const int foo = 10;
19491219820Sjeff  }
19492219820Sjeff#endif
19493219820Sjeff
19494219820Sjeff  ;
19495219820Sjeff  return 0;
19496219820Sjeff}
19497219820Sjeff_ACEOF
19498219820Sjeffrm -f conftest.$ac_objext
19499219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19500219820Sjeff  (eval $ac_compile) 2>conftest.er1
19501219820Sjeff  ac_status=$?
19502219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19503219820Sjeff  rm -f conftest.er1
19504219820Sjeff  cat conftest.err >&5
19505219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506219820Sjeff  (exit $ac_status); } &&
19507219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19508219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509219820Sjeff  (eval $ac_try) 2>&5
19510219820Sjeff  ac_status=$?
19511219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512219820Sjeff  (exit $ac_status); }; } &&
19513219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
19514219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515219820Sjeff  (eval $ac_try) 2>&5
19516219820Sjeff  ac_status=$?
19517219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518219820Sjeff  (exit $ac_status); }; }; then
19519219820Sjeff  ac_cv_c_const=yes
19520219820Sjeffelse
19521219820Sjeff  echo "$as_me: failed program was:" >&5
19522219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19523219820Sjeff
19524219820Sjeffac_cv_c_const=no
19525219820Sjefffi
19526219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19527219820Sjefffi
19528219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19529219820Sjeffecho "${ECHO_T}$ac_cv_c_const" >&6
19530219820Sjeffif test $ac_cv_c_const = no; then
19531219820Sjeff
19532219820Sjeffcat >>confdefs.h <<\_ACEOF
19533219820Sjeff#define const
19534219820Sjeff_ACEOF
19535219820Sjeff
19536219820Sjefffi
19537219820Sjeff
19538219820Sjeffecho "$as_me:$LINENO: checking for long" >&5
19539219820Sjeffecho $ECHO_N "checking for long... $ECHO_C" >&6
19540219820Sjeffif test "${ac_cv_type_long+set}" = set; then
19541219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
19542219820Sjeffelse
19543219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
19544219820Sjeff/* confdefs.h.  */
19545219820Sjeff_ACEOF
19546219820Sjeffcat confdefs.h >>conftest.$ac_ext
19547219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19548219820Sjeff/* end confdefs.h.  */
19549219820Sjeff$ac_includes_default
19550219820Sjeffint
19551219820Sjeffmain ()
19552219820Sjeff{
19553219820Sjeffif ((long *) 0)
19554219820Sjeff  return 0;
19555219820Sjeffif (sizeof (long))
19556219820Sjeff  return 0;
19557219820Sjeff  ;
19558219820Sjeff  return 0;
19559219820Sjeff}
19560219820Sjeff_ACEOF
19561219820Sjeffrm -f conftest.$ac_objext
19562219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563219820Sjeff  (eval $ac_compile) 2>conftest.er1
19564219820Sjeff  ac_status=$?
19565219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19566219820Sjeff  rm -f conftest.er1
19567219820Sjeff  cat conftest.err >&5
19568219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569219820Sjeff  (exit $ac_status); } &&
19570219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19571219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572219820Sjeff  (eval $ac_try) 2>&5
19573219820Sjeff  ac_status=$?
19574219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575219820Sjeff  (exit $ac_status); }; } &&
19576219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
19577219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578219820Sjeff  (eval $ac_try) 2>&5
19579219820Sjeff  ac_status=$?
19580219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581219820Sjeff  (exit $ac_status); }; }; then
19582219820Sjeff  ac_cv_type_long=yes
19583219820Sjeffelse
19584219820Sjeff  echo "$as_me: failed program was:" >&5
19585219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19586219820Sjeff
19587219820Sjeffac_cv_type_long=no
19588219820Sjefffi
19589219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19590219820Sjefffi
19591219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19592219820Sjeffecho "${ECHO_T}$ac_cv_type_long" >&6
19593219820Sjeff
19594219820Sjeffecho "$as_me:$LINENO: checking size of long" >&5
19595219820Sjeffecho $ECHO_N "checking size of long... $ECHO_C" >&6
19596219820Sjeffif test "${ac_cv_sizeof_long+set}" = set; then
19597219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
19598219820Sjeffelse
19599219820Sjeff  if test "$ac_cv_type_long" = yes; then
19600219820Sjeff  # The cast to unsigned long works around a bug in the HP C Compiler
19601219820Sjeff  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19602219820Sjeff  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19603219820Sjeff  # This bug is HP SR number 8606223364.
19604219820Sjeff  if test "$cross_compiling" = yes; then
19605219820Sjeff  # Depending upon the size, compute the lo and hi bounds.
19606219820Sjeffcat >conftest.$ac_ext <<_ACEOF
19607219820Sjeff/* confdefs.h.  */
19608219820Sjeff_ACEOF
19609219820Sjeffcat confdefs.h >>conftest.$ac_ext
19610219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19611219820Sjeff/* end confdefs.h.  */
19612219820Sjeff$ac_includes_default
19613219820Sjeffint
19614219820Sjeffmain ()
19615219820Sjeff{
19616219820Sjeffstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19617219820Sjefftest_array [0] = 0
19618219820Sjeff
19619219820Sjeff  ;
19620219820Sjeff  return 0;
19621219820Sjeff}
19622219820Sjeff_ACEOF
19623219820Sjeffrm -f conftest.$ac_objext
19624219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19625219820Sjeff  (eval $ac_compile) 2>conftest.er1
19626219820Sjeff  ac_status=$?
19627219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19628219820Sjeff  rm -f conftest.er1
19629219820Sjeff  cat conftest.err >&5
19630219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631219820Sjeff  (exit $ac_status); } &&
19632219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19633219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634219820Sjeff  (eval $ac_try) 2>&5
19635219820Sjeff  ac_status=$?
19636219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637219820Sjeff  (exit $ac_status); }; } &&
19638219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
19639219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640219820Sjeff  (eval $ac_try) 2>&5
19641219820Sjeff  ac_status=$?
19642219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643219820Sjeff  (exit $ac_status); }; }; then
19644219820Sjeff  ac_lo=0 ac_mid=0
19645219820Sjeff  while :; do
19646219820Sjeff    cat >conftest.$ac_ext <<_ACEOF
19647219820Sjeff/* confdefs.h.  */
19648219820Sjeff_ACEOF
19649219820Sjeffcat confdefs.h >>conftest.$ac_ext
19650219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19651219820Sjeff/* end confdefs.h.  */
19652219820Sjeff$ac_includes_default
19653219820Sjeffint
19654219820Sjeffmain ()
19655219820Sjeff{
19656219820Sjeffstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19657219820Sjefftest_array [0] = 0
19658219820Sjeff
19659219820Sjeff  ;
19660219820Sjeff  return 0;
19661219820Sjeff}
19662219820Sjeff_ACEOF
19663219820Sjeffrm -f conftest.$ac_objext
19664219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19665219820Sjeff  (eval $ac_compile) 2>conftest.er1
19666219820Sjeff  ac_status=$?
19667219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19668219820Sjeff  rm -f conftest.er1
19669219820Sjeff  cat conftest.err >&5
19670219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671219820Sjeff  (exit $ac_status); } &&
19672219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19673219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674219820Sjeff  (eval $ac_try) 2>&5
19675219820Sjeff  ac_status=$?
19676219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677219820Sjeff  (exit $ac_status); }; } &&
19678219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
19679219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680219820Sjeff  (eval $ac_try) 2>&5
19681219820Sjeff  ac_status=$?
19682219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683219820Sjeff  (exit $ac_status); }; }; then
19684219820Sjeff  ac_hi=$ac_mid; break
19685219820Sjeffelse
19686219820Sjeff  echo "$as_me: failed program was:" >&5
19687219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19688219820Sjeff
19689219820Sjeffac_lo=`expr $ac_mid + 1`
19690219820Sjeff		    if test $ac_lo -le $ac_mid; then
19691219820Sjeff		      ac_lo= ac_hi=
19692219820Sjeff		      break
19693219820Sjeff		    fi
19694219820Sjeff		    ac_mid=`expr 2 '*' $ac_mid + 1`
19695219820Sjefffi
19696219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19697219820Sjeff  done
19698219820Sjeffelse
19699219820Sjeff  echo "$as_me: failed program was:" >&5
19700219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19701219820Sjeff
19702219820Sjeffcat >conftest.$ac_ext <<_ACEOF
19703219820Sjeff/* confdefs.h.  */
19704219820Sjeff_ACEOF
19705219820Sjeffcat confdefs.h >>conftest.$ac_ext
19706219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19707219820Sjeff/* end confdefs.h.  */
19708219820Sjeff$ac_includes_default
19709219820Sjeffint
19710219820Sjeffmain ()
19711219820Sjeff{
19712219820Sjeffstatic int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19713219820Sjefftest_array [0] = 0
19714219820Sjeff
19715219820Sjeff  ;
19716219820Sjeff  return 0;
19717219820Sjeff}
19718219820Sjeff_ACEOF
19719219820Sjeffrm -f conftest.$ac_objext
19720219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19721219820Sjeff  (eval $ac_compile) 2>conftest.er1
19722219820Sjeff  ac_status=$?
19723219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19724219820Sjeff  rm -f conftest.er1
19725219820Sjeff  cat conftest.err >&5
19726219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727219820Sjeff  (exit $ac_status); } &&
19728219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19729219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730219820Sjeff  (eval $ac_try) 2>&5
19731219820Sjeff  ac_status=$?
19732219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733219820Sjeff  (exit $ac_status); }; } &&
19734219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
19735219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736219820Sjeff  (eval $ac_try) 2>&5
19737219820Sjeff  ac_status=$?
19738219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739219820Sjeff  (exit $ac_status); }; }; then
19740219820Sjeff  ac_hi=-1 ac_mid=-1
19741219820Sjeff  while :; do
19742219820Sjeff    cat >conftest.$ac_ext <<_ACEOF
19743219820Sjeff/* confdefs.h.  */
19744219820Sjeff_ACEOF
19745219820Sjeffcat confdefs.h >>conftest.$ac_ext
19746219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19747219820Sjeff/* end confdefs.h.  */
19748219820Sjeff$ac_includes_default
19749219820Sjeffint
19750219820Sjeffmain ()
19751219820Sjeff{
19752219820Sjeffstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19753219820Sjefftest_array [0] = 0
19754219820Sjeff
19755219820Sjeff  ;
19756219820Sjeff  return 0;
19757219820Sjeff}
19758219820Sjeff_ACEOF
19759219820Sjeffrm -f conftest.$ac_objext
19760219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761219820Sjeff  (eval $ac_compile) 2>conftest.er1
19762219820Sjeff  ac_status=$?
19763219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19764219820Sjeff  rm -f conftest.er1
19765219820Sjeff  cat conftest.err >&5
19766219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767219820Sjeff  (exit $ac_status); } &&
19768219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19769219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770219820Sjeff  (eval $ac_try) 2>&5
19771219820Sjeff  ac_status=$?
19772219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773219820Sjeff  (exit $ac_status); }; } &&
19774219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
19775219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776219820Sjeff  (eval $ac_try) 2>&5
19777219820Sjeff  ac_status=$?
19778219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779219820Sjeff  (exit $ac_status); }; }; then
19780219820Sjeff  ac_lo=$ac_mid; break
19781219820Sjeffelse
19782219820Sjeff  echo "$as_me: failed program was:" >&5
19783219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19784219820Sjeff
19785219820Sjeffac_hi=`expr '(' $ac_mid ')' - 1`
19786219820Sjeff		       if test $ac_mid -le $ac_hi; then
19787219820Sjeff			 ac_lo= ac_hi=
19788219820Sjeff			 break
19789219820Sjeff		       fi
19790219820Sjeff		       ac_mid=`expr 2 '*' $ac_mid`
19791219820Sjefffi
19792219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19793219820Sjeff  done
19794219820Sjeffelse
19795219820Sjeff  echo "$as_me: failed program was:" >&5
19796219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19797219820Sjeff
19798219820Sjeffac_lo= ac_hi=
19799219820Sjefffi
19800219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19801219820Sjefffi
19802219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19803219820Sjeff# Binary search between lo and hi bounds.
19804219820Sjeffwhile test "x$ac_lo" != "x$ac_hi"; do
19805219820Sjeff  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19806219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
19807219820Sjeff/* confdefs.h.  */
19808219820Sjeff_ACEOF
19809219820Sjeffcat confdefs.h >>conftest.$ac_ext
19810219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19811219820Sjeff/* end confdefs.h.  */
19812219820Sjeff$ac_includes_default
19813219820Sjeffint
19814219820Sjeffmain ()
19815219820Sjeff{
19816219820Sjeffstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19817219820Sjefftest_array [0] = 0
19818219820Sjeff
19819219820Sjeff  ;
19820219820Sjeff  return 0;
19821219820Sjeff}
19822219820Sjeff_ACEOF
19823219820Sjeffrm -f conftest.$ac_objext
19824219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19825219820Sjeff  (eval $ac_compile) 2>conftest.er1
19826219820Sjeff  ac_status=$?
19827219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19828219820Sjeff  rm -f conftest.er1
19829219820Sjeff  cat conftest.err >&5
19830219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831219820Sjeff  (exit $ac_status); } &&
19832219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19833219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834219820Sjeff  (eval $ac_try) 2>&5
19835219820Sjeff  ac_status=$?
19836219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837219820Sjeff  (exit $ac_status); }; } &&
19838219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
19839219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840219820Sjeff  (eval $ac_try) 2>&5
19841219820Sjeff  ac_status=$?
19842219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843219820Sjeff  (exit $ac_status); }; }; then
19844219820Sjeff  ac_hi=$ac_mid
19845219820Sjeffelse
19846219820Sjeff  echo "$as_me: failed program was:" >&5
19847219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19848219820Sjeff
19849219820Sjeffac_lo=`expr '(' $ac_mid ')' + 1`
19850219820Sjefffi
19851219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19852219820Sjeffdone
19853219820Sjeffcase $ac_lo in
19854219820Sjeff?*) ac_cv_sizeof_long=$ac_lo;;
19855219820Sjeff'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19856219820SjeffSee \`config.log' for more details." >&5
19857219820Sjeffecho "$as_me: error: cannot compute sizeof (long), 77
19858219820SjeffSee \`config.log' for more details." >&2;}
19859219820Sjeff   { (exit 1); exit 1; }; } ;;
19860219820Sjeffesac
19861219820Sjeffelse
19862219820Sjeff  if test "$cross_compiling" = yes; then
19863219820Sjeff  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19864219820Sjeffecho "$as_me: error: internal error: not reached in cross-compile" >&2;}
19865219820Sjeff   { (exit 1); exit 1; }; }
19866219820Sjeffelse
19867219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
19868219820Sjeff/* confdefs.h.  */
19869219820Sjeff_ACEOF
19870219820Sjeffcat confdefs.h >>conftest.$ac_ext
19871219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19872219820Sjeff/* end confdefs.h.  */
19873219820Sjeff$ac_includes_default
19874219820Sjefflong longval () { return (long) (sizeof (long)); }
19875219820Sjeffunsigned long ulongval () { return (long) (sizeof (long)); }
19876219820Sjeff#include <stdio.h>
19877219820Sjeff#include <stdlib.h>
19878219820Sjeffint
19879219820Sjeffmain ()
19880219820Sjeff{
19881219820Sjeff
19882219820Sjeff  FILE *f = fopen ("conftest.val", "w");
19883219820Sjeff  if (! f)
19884219820Sjeff    exit (1);
19885219820Sjeff  if (((long) (sizeof (long))) < 0)
19886219820Sjeff    {
19887219820Sjeff      long i = longval ();
19888219820Sjeff      if (i != ((long) (sizeof (long))))
19889219820Sjeff	exit (1);
19890219820Sjeff      fprintf (f, "%ld\n", i);
19891219820Sjeff    }
19892219820Sjeff  else
19893219820Sjeff    {
19894219820Sjeff      unsigned long i = ulongval ();
19895219820Sjeff      if (i != ((long) (sizeof (long))))
19896219820Sjeff	exit (1);
19897219820Sjeff      fprintf (f, "%lu\n", i);
19898219820Sjeff    }
19899219820Sjeff  exit (ferror (f) || fclose (f) != 0);
19900219820Sjeff
19901219820Sjeff  ;
19902219820Sjeff  return 0;
19903219820Sjeff}
19904219820Sjeff_ACEOF
19905219820Sjeffrm -f conftest$ac_exeext
19906219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19907219820Sjeff  (eval $ac_link) 2>&5
19908219820Sjeff  ac_status=$?
19909219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910219820Sjeff  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19911219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912219820Sjeff  (eval $ac_try) 2>&5
19913219820Sjeff  ac_status=$?
19914219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915219820Sjeff  (exit $ac_status); }; }; then
19916219820Sjeff  ac_cv_sizeof_long=`cat conftest.val`
19917219820Sjeffelse
19918219820Sjeff  echo "$as_me: program exited with status $ac_status" >&5
19919219820Sjeffecho "$as_me: failed program was:" >&5
19920219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
19921219820Sjeff
19922219820Sjeff( exit $ac_status )
19923219820Sjeff{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19924219820SjeffSee \`config.log' for more details." >&5
19925219820Sjeffecho "$as_me: error: cannot compute sizeof (long), 77
19926219820SjeffSee \`config.log' for more details." >&2;}
19927219820Sjeff   { (exit 1); exit 1; }; }
19928219820Sjefffi
19929219820Sjeffrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19930219820Sjefffi
19931219820Sjefffi
19932219820Sjeffrm -f conftest.val
19933219820Sjeffelse
19934219820Sjeff  ac_cv_sizeof_long=0
19935219820Sjefffi
19936219820Sjefffi
19937219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19938219820Sjeffecho "${ECHO_T}$ac_cv_sizeof_long" >&6
19939219820Sjeffcat >>confdefs.h <<_ACEOF
19940219820Sjeff#define SIZEOF_LONG $ac_cv_sizeof_long
19941219820Sjeff_ACEOF
19942219820Sjeff
19943219820Sjeff
19944219820Sjeff
19945219820Sjeffif test "$disable_libcheck" != "yes"; then
19946219820Sjeff
19947219820Sjeffecho "$as_me:$LINENO: checking for ibv_get_device_list in -libverbs" >&5
19948219820Sjeffecho $ECHO_N "checking for ibv_get_device_list in -libverbs... $ECHO_C" >&6
19949219820Sjeffif test "${ac_cv_lib_ibverbs_ibv_get_device_list+set}" = set; then
19950219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
19951219820Sjeffelse
19952219820Sjeff  ac_check_lib_save_LIBS=$LIBS
19953219820SjeffLIBS="-libverbs  $LIBS"
19954219820Sjeffcat >conftest.$ac_ext <<_ACEOF
19955219820Sjeff/* confdefs.h.  */
19956219820Sjeff_ACEOF
19957219820Sjeffcat confdefs.h >>conftest.$ac_ext
19958219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
19959219820Sjeff/* end confdefs.h.  */
19960219820Sjeff
19961219820Sjeff/* Override any gcc2 internal prototype to avoid an error.  */
19962219820Sjeff#ifdef __cplusplus
19963219820Sjeffextern "C"
19964219820Sjeff#endif
19965219820Sjeff/* We use char because int might match the return type of a gcc2
19966219820Sjeff   builtin and then its argument prototype would still apply.  */
19967219820Sjeffchar ibv_get_device_list ();
19968219820Sjeffint
19969219820Sjeffmain ()
19970219820Sjeff{
19971219820Sjeffibv_get_device_list ();
19972219820Sjeff  ;
19973219820Sjeff  return 0;
19974219820Sjeff}
19975219820Sjeff_ACEOF
19976219820Sjeffrm -f conftest.$ac_objext conftest$ac_exeext
19977219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19978219820Sjeff  (eval $ac_link) 2>conftest.er1
19979219820Sjeff  ac_status=$?
19980219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
19981219820Sjeff  rm -f conftest.er1
19982219820Sjeff  cat conftest.err >&5
19983219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984219820Sjeff  (exit $ac_status); } &&
19985219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19986219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987219820Sjeff  (eval $ac_try) 2>&5
19988219820Sjeff  ac_status=$?
19989219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990219820Sjeff  (exit $ac_status); }; } &&
19991219820Sjeff	 { ac_try='test -s conftest$ac_exeext'
19992219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993219820Sjeff  (eval $ac_try) 2>&5
19994219820Sjeff  ac_status=$?
19995219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996219820Sjeff  (exit $ac_status); }; }; then
19997219820Sjeff  ac_cv_lib_ibverbs_ibv_get_device_list=yes
19998219820Sjeffelse
19999219820Sjeff  echo "$as_me: failed program was:" >&5
20000219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
20001219820Sjeff
20002219820Sjeffac_cv_lib_ibverbs_ibv_get_device_list=no
20003219820Sjefffi
20004219820Sjeffrm -f conftest.err conftest.$ac_objext \
20005219820Sjeff      conftest$ac_exeext conftest.$ac_ext
20006219820SjeffLIBS=$ac_check_lib_save_LIBS
20007219820Sjefffi
20008219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
20009219820Sjeffecho "${ECHO_T}$ac_cv_lib_ibverbs_ibv_get_device_list" >&6
20010219820Sjeffif test $ac_cv_lib_ibverbs_ibv_get_device_list = yes; then
20011219820Sjeff  cat >>confdefs.h <<_ACEOF
20012219820Sjeff#define HAVE_LIBIBVERBS 1
20013219820Sjeff_ACEOF
20014219820Sjeff
20015219820Sjeff  LIBS="-libverbs $LIBS"
20016219820Sjeff
20017219820Sjeffelse
20018219820Sjeff  { { echo "$as_me:$LINENO: error: ibv_get_device_list() not found.  libibcm requires libibverbs." >&5
20019219820Sjeffecho "$as_me: error: ibv_get_device_list() not found.  libibcm requires libibverbs." >&2;}
20020219820Sjeff   { (exit 1); exit 1; }; }
20021219820Sjefffi
20022219820Sjeff
20023219820Sjeff#Need librdmacm for cmpost test program.
20024219820Sjeff#AC_CHECK_LIB(rdmacm, rdma_create_id, [],
20025219820Sjeff#    AC_MSG_ERROR([rdma_create_id() not found.  ucmpost requires librdmacm.]))
20026219820Sjefffi
20027219820Sjeff
20028219820Sjeffecho "$as_me:$LINENO: checking for ANSI C header files" >&5
20029219820Sjeffecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20030219820Sjeffif test "${ac_cv_header_stdc+set}" = set; then
20031219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
20032219820Sjeffelse
20033219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
20034219820Sjeff/* confdefs.h.  */
20035219820Sjeff_ACEOF
20036219820Sjeffcat confdefs.h >>conftest.$ac_ext
20037219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
20038219820Sjeff/* end confdefs.h.  */
20039219820Sjeff#include <stdlib.h>
20040219820Sjeff#include <stdarg.h>
20041219820Sjeff#include <string.h>
20042219820Sjeff#include <float.h>
20043219820Sjeff
20044219820Sjeffint
20045219820Sjeffmain ()
20046219820Sjeff{
20047219820Sjeff
20048219820Sjeff  ;
20049219820Sjeff  return 0;
20050219820Sjeff}
20051219820Sjeff_ACEOF
20052219820Sjeffrm -f conftest.$ac_objext
20053219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20054219820Sjeff  (eval $ac_compile) 2>conftest.er1
20055219820Sjeff  ac_status=$?
20056219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
20057219820Sjeff  rm -f conftest.er1
20058219820Sjeff  cat conftest.err >&5
20059219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060219820Sjeff  (exit $ac_status); } &&
20061219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20062219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063219820Sjeff  (eval $ac_try) 2>&5
20064219820Sjeff  ac_status=$?
20065219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066219820Sjeff  (exit $ac_status); }; } &&
20067219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
20068219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069219820Sjeff  (eval $ac_try) 2>&5
20070219820Sjeff  ac_status=$?
20071219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072219820Sjeff  (exit $ac_status); }; }; then
20073219820Sjeff  ac_cv_header_stdc=yes
20074219820Sjeffelse
20075219820Sjeff  echo "$as_me: failed program was:" >&5
20076219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
20077219820Sjeff
20078219820Sjeffac_cv_header_stdc=no
20079219820Sjefffi
20080219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20081219820Sjeff
20082219820Sjeffif test $ac_cv_header_stdc = yes; then
20083219820Sjeff  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20084219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
20085219820Sjeff/* confdefs.h.  */
20086219820Sjeff_ACEOF
20087219820Sjeffcat confdefs.h >>conftest.$ac_ext
20088219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
20089219820Sjeff/* end confdefs.h.  */
20090219820Sjeff#include <string.h>
20091219820Sjeff
20092219820Sjeff_ACEOF
20093219820Sjeffif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20094219820Sjeff  $EGREP "memchr" >/dev/null 2>&1; then
20095219820Sjeff  :
20096219820Sjeffelse
20097219820Sjeff  ac_cv_header_stdc=no
20098219820Sjefffi
20099219820Sjeffrm -f conftest*
20100219820Sjeff
20101219820Sjefffi
20102219820Sjeff
20103219820Sjeffif test $ac_cv_header_stdc = yes; then
20104219820Sjeff  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20105219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
20106219820Sjeff/* confdefs.h.  */
20107219820Sjeff_ACEOF
20108219820Sjeffcat confdefs.h >>conftest.$ac_ext
20109219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
20110219820Sjeff/* end confdefs.h.  */
20111219820Sjeff#include <stdlib.h>
20112219820Sjeff
20113219820Sjeff_ACEOF
20114219820Sjeffif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20115219820Sjeff  $EGREP "free" >/dev/null 2>&1; then
20116219820Sjeff  :
20117219820Sjeffelse
20118219820Sjeff  ac_cv_header_stdc=no
20119219820Sjefffi
20120219820Sjeffrm -f conftest*
20121219820Sjeff
20122219820Sjefffi
20123219820Sjeff
20124219820Sjeffif test $ac_cv_header_stdc = yes; then
20125219820Sjeff  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20126219820Sjeff  if test "$cross_compiling" = yes; then
20127219820Sjeff  :
20128219820Sjeffelse
20129219820Sjeff  cat >conftest.$ac_ext <<_ACEOF
20130219820Sjeff/* confdefs.h.  */
20131219820Sjeff_ACEOF
20132219820Sjeffcat confdefs.h >>conftest.$ac_ext
20133219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
20134219820Sjeff/* end confdefs.h.  */
20135219820Sjeff#include <ctype.h>
20136219820Sjeff#if ((' ' & 0x0FF) == 0x020)
20137219820Sjeff# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20138219820Sjeff# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20139219820Sjeff#else
20140219820Sjeff# define ISLOWER(c) \
20141219820Sjeff		   (('a' <= (c) && (c) <= 'i') \
20142219820Sjeff		     || ('j' <= (c) && (c) <= 'r') \
20143219820Sjeff		     || ('s' <= (c) && (c) <= 'z'))
20144219820Sjeff# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20145219820Sjeff#endif
20146219820Sjeff
20147219820Sjeff#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20148219820Sjeffint
20149219820Sjeffmain ()
20150219820Sjeff{
20151219820Sjeff  int i;
20152219820Sjeff  for (i = 0; i < 256; i++)
20153219820Sjeff    if (XOR (islower (i), ISLOWER (i))
20154219820Sjeff	|| toupper (i) != TOUPPER (i))
20155219820Sjeff      exit(2);
20156219820Sjeff  exit (0);
20157219820Sjeff}
20158219820Sjeff_ACEOF
20159219820Sjeffrm -f conftest$ac_exeext
20160219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20161219820Sjeff  (eval $ac_link) 2>&5
20162219820Sjeff  ac_status=$?
20163219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164219820Sjeff  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20165219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166219820Sjeff  (eval $ac_try) 2>&5
20167219820Sjeff  ac_status=$?
20168219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169219820Sjeff  (exit $ac_status); }; }; then
20170219820Sjeff  :
20171219820Sjeffelse
20172219820Sjeff  echo "$as_me: program exited with status $ac_status" >&5
20173219820Sjeffecho "$as_me: failed program was:" >&5
20174219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
20175219820Sjeff
20176219820Sjeff( exit $ac_status )
20177219820Sjeffac_cv_header_stdc=no
20178219820Sjefffi
20179219820Sjeffrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20180219820Sjefffi
20181219820Sjefffi
20182219820Sjefffi
20183219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20184219820Sjeffecho "${ECHO_T}$ac_cv_header_stdc" >&6
20185219820Sjeffif test $ac_cv_header_stdc = yes; then
20186219820Sjeff
20187219820Sjeffcat >>confdefs.h <<\_ACEOF
20188219820Sjeff#define STDC_HEADERS 1
20189219820Sjeff_ACEOF
20190219820Sjeff
20191219820Sjefffi
20192219820Sjeff
20193219820Sjeffif test "$disable_libcheck" != "yes"; then
20194219820Sjeffif test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
20195219820Sjeff  echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
20196219820Sjeffecho $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
20197219820Sjeffif test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
20198219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
20199219820Sjefffi
20200219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
20201219820Sjeffecho "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6
20202219820Sjeffelse
20203219820Sjeff  # Is the header compilable?
20204219820Sjeffecho "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
20205219820Sjeffecho $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6
20206219820Sjeffcat >conftest.$ac_ext <<_ACEOF
20207219820Sjeff/* confdefs.h.  */
20208219820Sjeff_ACEOF
20209219820Sjeffcat confdefs.h >>conftest.$ac_ext
20210219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
20211219820Sjeff/* end confdefs.h.  */
20212219820Sjeff$ac_includes_default
20213219820Sjeff#include <infiniband/verbs.h>
20214219820Sjeff_ACEOF
20215219820Sjeffrm -f conftest.$ac_objext
20216219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20217219820Sjeff  (eval $ac_compile) 2>conftest.er1
20218219820Sjeff  ac_status=$?
20219219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
20220219820Sjeff  rm -f conftest.er1
20221219820Sjeff  cat conftest.err >&5
20222219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223219820Sjeff  (exit $ac_status); } &&
20224219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20225219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226219820Sjeff  (eval $ac_try) 2>&5
20227219820Sjeff  ac_status=$?
20228219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229219820Sjeff  (exit $ac_status); }; } &&
20230219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
20231219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232219820Sjeff  (eval $ac_try) 2>&5
20233219820Sjeff  ac_status=$?
20234219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235219820Sjeff  (exit $ac_status); }; }; then
20236219820Sjeff  ac_header_compiler=yes
20237219820Sjeffelse
20238219820Sjeff  echo "$as_me: failed program was:" >&5
20239219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
20240219820Sjeff
20241219820Sjeffac_header_compiler=no
20242219820Sjefffi
20243219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20244219820Sjeffecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
20245219820Sjeffecho "${ECHO_T}$ac_header_compiler" >&6
20246219820Sjeff
20247219820Sjeff# Is the header present?
20248219820Sjeffecho "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
20249219820Sjeffecho $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6
20250219820Sjeffcat >conftest.$ac_ext <<_ACEOF
20251219820Sjeff/* confdefs.h.  */
20252219820Sjeff_ACEOF
20253219820Sjeffcat confdefs.h >>conftest.$ac_ext
20254219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
20255219820Sjeff/* end confdefs.h.  */
20256219820Sjeff#include <infiniband/verbs.h>
20257219820Sjeff_ACEOF
20258219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20259219820Sjeff  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20260219820Sjeff  ac_status=$?
20261219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
20262219820Sjeff  rm -f conftest.er1
20263219820Sjeff  cat conftest.err >&5
20264219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265219820Sjeff  (exit $ac_status); } >/dev/null; then
20266219820Sjeff  if test -s conftest.err; then
20267219820Sjeff    ac_cpp_err=$ac_c_preproc_warn_flag
20268219820Sjeff    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20269219820Sjeff  else
20270219820Sjeff    ac_cpp_err=
20271219820Sjeff  fi
20272219820Sjeffelse
20273219820Sjeff  ac_cpp_err=yes
20274219820Sjefffi
20275219820Sjeffif test -z "$ac_cpp_err"; then
20276219820Sjeff  ac_header_preproc=yes
20277219820Sjeffelse
20278219820Sjeff  echo "$as_me: failed program was:" >&5
20279219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
20280219820Sjeff
20281219820Sjeff  ac_header_preproc=no
20282219820Sjefffi
20283219820Sjeffrm -f conftest.err conftest.$ac_ext
20284219820Sjeffecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
20285219820Sjeffecho "${ECHO_T}$ac_header_preproc" >&6
20286219820Sjeff
20287219820Sjeff# So?  What about this header?
20288219820Sjeffcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20289219820Sjeff  yes:no: )
20290219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20291219820Sjeffecho "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20292219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
20293219820Sjeffecho "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
20294219820Sjeff    ac_header_preproc=yes
20295219820Sjeff    ;;
20296219820Sjeff  no:yes:* )
20297219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
20298219820Sjeffecho "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
20299219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&5
20300219820Sjeffecho "$as_me: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&2;}
20301219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
20302219820Sjeffecho "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
20303219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&5
20304219820Sjeffecho "$as_me: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20305219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
20306219820Sjeffecho "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
20307219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
20308219820Sjeffecho "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;}
20309219820Sjeff    (
20310219820Sjeff      cat <<\_ASBOX
20311219820Sjeff## -------------------------------------------- ##
20312219820Sjeff## Report this to general@lists@openfabrics.org ##
20313219820Sjeff## -------------------------------------------- ##
20314219820Sjeff_ASBOX
20315219820Sjeff    ) |
20316219820Sjeff      sed "s/^/$as_me: WARNING:     /" >&2
20317219820Sjeff    ;;
20318219820Sjeffesac
20319219820Sjeffecho "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
20320219820Sjeffecho $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
20321219820Sjeffif test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
20322219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
20323219820Sjeffelse
20324219820Sjeff  ac_cv_header_infiniband_verbs_h=$ac_header_preproc
20325219820Sjefffi
20326219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
20327219820Sjeffecho "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6
20328219820Sjeff
20329219820Sjefffi
20330219820Sjeffif test $ac_cv_header_infiniband_verbs_h = yes; then
20331219820Sjeff  :
20332219820Sjeffelse
20333219820Sjeff  { { echo "$as_me:$LINENO: error: <infiniband/verbs.h> not found.  Is libibverbs installed?" >&5
20334219820Sjeffecho "$as_me: error: <infiniband/verbs.h> not found.  Is libibverbs installed?" >&2;}
20335219820Sjeff   { (exit 1); exit 1; }; }
20336219820Sjefffi
20337219820Sjeff
20338219820Sjeff
20339219820Sjeffif test "${ac_cv_header_infiniband_marshall_h+set}" = set; then
20340219820Sjeff  echo "$as_me:$LINENO: checking for infiniband/marshall.h" >&5
20341219820Sjeffecho $ECHO_N "checking for infiniband/marshall.h... $ECHO_C" >&6
20342219820Sjeffif test "${ac_cv_header_infiniband_marshall_h+set}" = set; then
20343219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
20344219820Sjefffi
20345219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_header_infiniband_marshall_h" >&5
20346219820Sjeffecho "${ECHO_T}$ac_cv_header_infiniband_marshall_h" >&6
20347219820Sjeffelse
20348219820Sjeff  # Is the header compilable?
20349219820Sjeffecho "$as_me:$LINENO: checking infiniband/marshall.h usability" >&5
20350219820Sjeffecho $ECHO_N "checking infiniband/marshall.h usability... $ECHO_C" >&6
20351219820Sjeffcat >conftest.$ac_ext <<_ACEOF
20352219820Sjeff/* confdefs.h.  */
20353219820Sjeff_ACEOF
20354219820Sjeffcat confdefs.h >>conftest.$ac_ext
20355219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
20356219820Sjeff/* end confdefs.h.  */
20357219820Sjeff$ac_includes_default
20358219820Sjeff#include <infiniband/marshall.h>
20359219820Sjeff_ACEOF
20360219820Sjeffrm -f conftest.$ac_objext
20361219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20362219820Sjeff  (eval $ac_compile) 2>conftest.er1
20363219820Sjeff  ac_status=$?
20364219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
20365219820Sjeff  rm -f conftest.er1
20366219820Sjeff  cat conftest.err >&5
20367219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368219820Sjeff  (exit $ac_status); } &&
20369219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20370219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371219820Sjeff  (eval $ac_try) 2>&5
20372219820Sjeff  ac_status=$?
20373219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374219820Sjeff  (exit $ac_status); }; } &&
20375219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
20376219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377219820Sjeff  (eval $ac_try) 2>&5
20378219820Sjeff  ac_status=$?
20379219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380219820Sjeff  (exit $ac_status); }; }; then
20381219820Sjeff  ac_header_compiler=yes
20382219820Sjeffelse
20383219820Sjeff  echo "$as_me: failed program was:" >&5
20384219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
20385219820Sjeff
20386219820Sjeffac_header_compiler=no
20387219820Sjefffi
20388219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20389219820Sjeffecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
20390219820Sjeffecho "${ECHO_T}$ac_header_compiler" >&6
20391219820Sjeff
20392219820Sjeff# Is the header present?
20393219820Sjeffecho "$as_me:$LINENO: checking infiniband/marshall.h presence" >&5
20394219820Sjeffecho $ECHO_N "checking infiniband/marshall.h presence... $ECHO_C" >&6
20395219820Sjeffcat >conftest.$ac_ext <<_ACEOF
20396219820Sjeff/* confdefs.h.  */
20397219820Sjeff_ACEOF
20398219820Sjeffcat confdefs.h >>conftest.$ac_ext
20399219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
20400219820Sjeff/* end confdefs.h.  */
20401219820Sjeff#include <infiniband/marshall.h>
20402219820Sjeff_ACEOF
20403219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20404219820Sjeff  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20405219820Sjeff  ac_status=$?
20406219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
20407219820Sjeff  rm -f conftest.er1
20408219820Sjeff  cat conftest.err >&5
20409219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410219820Sjeff  (exit $ac_status); } >/dev/null; then
20411219820Sjeff  if test -s conftest.err; then
20412219820Sjeff    ac_cpp_err=$ac_c_preproc_warn_flag
20413219820Sjeff    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20414219820Sjeff  else
20415219820Sjeff    ac_cpp_err=
20416219820Sjeff  fi
20417219820Sjeffelse
20418219820Sjeff  ac_cpp_err=yes
20419219820Sjefffi
20420219820Sjeffif test -z "$ac_cpp_err"; then
20421219820Sjeff  ac_header_preproc=yes
20422219820Sjeffelse
20423219820Sjeff  echo "$as_me: failed program was:" >&5
20424219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
20425219820Sjeff
20426219820Sjeff  ac_header_preproc=no
20427219820Sjefffi
20428219820Sjeffrm -f conftest.err conftest.$ac_ext
20429219820Sjeffecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
20430219820Sjeffecho "${ECHO_T}$ac_header_preproc" >&6
20431219820Sjeff
20432219820Sjeff# So?  What about this header?
20433219820Sjeffcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20434219820Sjeff  yes:no: )
20435219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/marshall.h: accepted by the compiler, rejected by the preprocessor!" >&5
20436219820Sjeffecho "$as_me: WARNING: infiniband/marshall.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20437219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/marshall.h: proceeding with the compiler's result" >&5
20438219820Sjeffecho "$as_me: WARNING: infiniband/marshall.h: proceeding with the compiler's result" >&2;}
20439219820Sjeff    ac_header_preproc=yes
20440219820Sjeff    ;;
20441219820Sjeff  no:yes:* )
20442219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/marshall.h: present but cannot be compiled" >&5
20443219820Sjeffecho "$as_me: WARNING: infiniband/marshall.h: present but cannot be compiled" >&2;}
20444219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/marshall.h:     check for missing prerequisite headers?" >&5
20445219820Sjeffecho "$as_me: WARNING: infiniband/marshall.h:     check for missing prerequisite headers?" >&2;}
20446219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/marshall.h: see the Autoconf documentation" >&5
20447219820Sjeffecho "$as_me: WARNING: infiniband/marshall.h: see the Autoconf documentation" >&2;}
20448219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/marshall.h:     section \"Present But Cannot Be Compiled\"" >&5
20449219820Sjeffecho "$as_me: WARNING: infiniband/marshall.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20450219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/marshall.h: proceeding with the preprocessor's result" >&5
20451219820Sjeffecho "$as_me: WARNING: infiniband/marshall.h: proceeding with the preprocessor's result" >&2;}
20452219820Sjeff    { echo "$as_me:$LINENO: WARNING: infiniband/marshall.h: in the future, the compiler will take precedence" >&5
20453219820Sjeffecho "$as_me: WARNING: infiniband/marshall.h: in the future, the compiler will take precedence" >&2;}
20454219820Sjeff    (
20455219820Sjeff      cat <<\_ASBOX
20456219820Sjeff## -------------------------------------------- ##
20457219820Sjeff## Report this to general@lists@openfabrics.org ##
20458219820Sjeff## -------------------------------------------- ##
20459219820Sjeff_ASBOX
20460219820Sjeff    ) |
20461219820Sjeff      sed "s/^/$as_me: WARNING:     /" >&2
20462219820Sjeff    ;;
20463219820Sjeffesac
20464219820Sjeffecho "$as_me:$LINENO: checking for infiniband/marshall.h" >&5
20465219820Sjeffecho $ECHO_N "checking for infiniband/marshall.h... $ECHO_C" >&6
20466219820Sjeffif test "${ac_cv_header_infiniband_marshall_h+set}" = set; then
20467219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
20468219820Sjeffelse
20469219820Sjeff  ac_cv_header_infiniband_marshall_h=$ac_header_preproc
20470219820Sjefffi
20471219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_header_infiniband_marshall_h" >&5
20472219820Sjeffecho "${ECHO_T}$ac_cv_header_infiniband_marshall_h" >&6
20473219820Sjeff
20474219820Sjefffi
20475219820Sjeffif test $ac_cv_header_infiniband_marshall_h = yes; then
20476219820Sjeff  :
20477219820Sjeffelse
20478219820Sjeff  { { echo "$as_me:$LINENO: error: <infiniband/marshall.h> not found.  Is libibverbs installed?" >&5
20479219820Sjeffecho "$as_me: error: <infiniband/marshall.h> not found.  Is libibverbs installed?" >&2;}
20480219820Sjeff   { (exit 1); exit 1; }; }
20481219820Sjefffi
20482219820Sjeff
20483219820Sjeff
20484219820Sjeff
20485219820Sjeffif test "$with_valgrind" != "" && test "$with_valgrind" != "no"; then
20486219820Sjeffif test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
20487219820Sjeff  echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
20488219820Sjeffecho $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6
20489219820Sjeffif test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
20490219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
20491219820Sjefffi
20492219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
20493219820Sjeffecho "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6
20494219820Sjeffelse
20495219820Sjeff  # Is the header compilable?
20496219820Sjeffecho "$as_me:$LINENO: checking valgrind/memcheck.h usability" >&5
20497219820Sjeffecho $ECHO_N "checking valgrind/memcheck.h usability... $ECHO_C" >&6
20498219820Sjeffcat >conftest.$ac_ext <<_ACEOF
20499219820Sjeff/* confdefs.h.  */
20500219820Sjeff_ACEOF
20501219820Sjeffcat confdefs.h >>conftest.$ac_ext
20502219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
20503219820Sjeff/* end confdefs.h.  */
20504219820Sjeff$ac_includes_default
20505219820Sjeff#include <valgrind/memcheck.h>
20506219820Sjeff_ACEOF
20507219820Sjeffrm -f conftest.$ac_objext
20508219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20509219820Sjeff  (eval $ac_compile) 2>conftest.er1
20510219820Sjeff  ac_status=$?
20511219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
20512219820Sjeff  rm -f conftest.er1
20513219820Sjeff  cat conftest.err >&5
20514219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515219820Sjeff  (exit $ac_status); } &&
20516219820Sjeff	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20517219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518219820Sjeff  (eval $ac_try) 2>&5
20519219820Sjeff  ac_status=$?
20520219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521219820Sjeff  (exit $ac_status); }; } &&
20522219820Sjeff	 { ac_try='test -s conftest.$ac_objext'
20523219820Sjeff  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524219820Sjeff  (eval $ac_try) 2>&5
20525219820Sjeff  ac_status=$?
20526219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527219820Sjeff  (exit $ac_status); }; }; then
20528219820Sjeff  ac_header_compiler=yes
20529219820Sjeffelse
20530219820Sjeff  echo "$as_me: failed program was:" >&5
20531219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
20532219820Sjeff
20533219820Sjeffac_header_compiler=no
20534219820Sjefffi
20535219820Sjeffrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20536219820Sjeffecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
20537219820Sjeffecho "${ECHO_T}$ac_header_compiler" >&6
20538219820Sjeff
20539219820Sjeff# Is the header present?
20540219820Sjeffecho "$as_me:$LINENO: checking valgrind/memcheck.h presence" >&5
20541219820Sjeffecho $ECHO_N "checking valgrind/memcheck.h presence... $ECHO_C" >&6
20542219820Sjeffcat >conftest.$ac_ext <<_ACEOF
20543219820Sjeff/* confdefs.h.  */
20544219820Sjeff_ACEOF
20545219820Sjeffcat confdefs.h >>conftest.$ac_ext
20546219820Sjeffcat >>conftest.$ac_ext <<_ACEOF
20547219820Sjeff/* end confdefs.h.  */
20548219820Sjeff#include <valgrind/memcheck.h>
20549219820Sjeff_ACEOF
20550219820Sjeffif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20551219820Sjeff  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20552219820Sjeff  ac_status=$?
20553219820Sjeff  grep -v '^ *+' conftest.er1 >conftest.err
20554219820Sjeff  rm -f conftest.er1
20555219820Sjeff  cat conftest.err >&5
20556219820Sjeff  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557219820Sjeff  (exit $ac_status); } >/dev/null; then
20558219820Sjeff  if test -s conftest.err; then
20559219820Sjeff    ac_cpp_err=$ac_c_preproc_warn_flag
20560219820Sjeff    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20561219820Sjeff  else
20562219820Sjeff    ac_cpp_err=
20563219820Sjeff  fi
20564219820Sjeffelse
20565219820Sjeff  ac_cpp_err=yes
20566219820Sjefffi
20567219820Sjeffif test -z "$ac_cpp_err"; then
20568219820Sjeff  ac_header_preproc=yes
20569219820Sjeffelse
20570219820Sjeff  echo "$as_me: failed program was:" >&5
20571219820Sjeffsed 's/^/| /' conftest.$ac_ext >&5
20572219820Sjeff
20573219820Sjeff  ac_header_preproc=no
20574219820Sjefffi
20575219820Sjeffrm -f conftest.err conftest.$ac_ext
20576219820Sjeffecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
20577219820Sjeffecho "${ECHO_T}$ac_header_preproc" >&6
20578219820Sjeff
20579219820Sjeff# So?  What about this header?
20580219820Sjeffcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20581219820Sjeff  yes:no: )
20582219820Sjeff    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&5
20583219820Sjeffecho "$as_me: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20584219820Sjeff    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&5
20585219820Sjeffecho "$as_me: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&2;}
20586219820Sjeff    ac_header_preproc=yes
20587219820Sjeff    ;;
20588219820Sjeff  no:yes:* )
20589219820Sjeff    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: present but cannot be compiled" >&5
20590219820Sjeffecho "$as_me: WARNING: valgrind/memcheck.h: present but cannot be compiled" >&2;}
20591219820Sjeff    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h:     check for missing prerequisite headers?" >&5
20592219820Sjeffecho "$as_me: WARNING: valgrind/memcheck.h:     check for missing prerequisite headers?" >&2;}
20593219820Sjeff    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: see the Autoconf documentation" >&5
20594219820Sjeffecho "$as_me: WARNING: valgrind/memcheck.h: see the Autoconf documentation" >&2;}
20595219820Sjeff    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h:     section \"Present But Cannot Be Compiled\"" >&5
20596219820Sjeffecho "$as_me: WARNING: valgrind/memcheck.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20597219820Sjeff    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the preprocessor's result" >&5
20598219820Sjeffecho "$as_me: WARNING: valgrind/memcheck.h: proceeding with the preprocessor's result" >&2;}
20599219820Sjeff    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: in the future, the compiler will take precedence" >&5
20600219820Sjeffecho "$as_me: WARNING: valgrind/memcheck.h: in the future, the compiler will take precedence" >&2;}
20601219820Sjeff    (
20602219820Sjeff      cat <<\_ASBOX
20603219820Sjeff## -------------------------------------------- ##
20604219820Sjeff## Report this to general@lists@openfabrics.org ##
20605219820Sjeff## -------------------------------------------- ##
20606219820Sjeff_ASBOX
20607219820Sjeff    ) |
20608219820Sjeff      sed "s/^/$as_me: WARNING:     /" >&2
20609219820Sjeff    ;;
20610219820Sjeffesac
20611219820Sjeffecho "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
20612219820Sjeffecho $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6
20613219820Sjeffif test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
20614219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
20615219820Sjeffelse
20616219820Sjeff  ac_cv_header_valgrind_memcheck_h=$ac_header_preproc
20617219820Sjefffi
20618219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
20619219820Sjeffecho "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6
20620219820Sjeff
20621219820Sjefffi
20622219820Sjeffif test $ac_cv_header_valgrind_memcheck_h = yes; then
20623219820Sjeff  :
20624219820Sjeffelse
20625219820Sjeff  { { echo "$as_me:$LINENO: error: valgrind requested but <valgrind/memcheck.h> not found." >&5
20626219820Sjeffecho "$as_me: error: valgrind requested but <valgrind/memcheck.h> not found." >&2;}
20627219820Sjeff   { (exit 1); exit 1; }; }
20628219820Sjefffi
20629219820Sjeff
20630219820Sjeff
20631219820Sjefffi
20632219820Sjeff
20633219820Sjefffi
20634219820Sjeff
20635219820Sjeffecho "$as_me:$LINENO: checking whether ld accepts --version-script" >&5
20636219820Sjeffecho $ECHO_N "checking whether ld accepts --version-script... $ECHO_C" >&6
20637219820Sjeffif test "${ac_cv_version_script+set}" = set; then
20638219820Sjeff  echo $ECHO_N "(cached) $ECHO_C" >&6
20639219820Sjeffelse
20640219820Sjeff  if test -n "`$LD --help < /dev/null 2>/dev/null | grep version-script`"; then
20641219820Sjeff        ac_cv_version_script=yes
20642219820Sjeff    else
20643219820Sjeff        ac_cv_version_script=no
20644219820Sjeff    fi
20645219820Sjefffi
20646219820Sjeffecho "$as_me:$LINENO: result: $ac_cv_version_script" >&5
20647219820Sjeffecho "${ECHO_T}$ac_cv_version_script" >&6
20648219820Sjeff
20649219820Sjeff
20650219820Sjeff
20651219820Sjeffif test "$ac_cv_version_script" = "yes"; then
20652219820Sjeff  HAVE_LD_VERSION_SCRIPT_TRUE=
20653219820Sjeff  HAVE_LD_VERSION_SCRIPT_FALSE='#'
20654219820Sjeffelse
20655219820Sjeff  HAVE_LD_VERSION_SCRIPT_TRUE='#'
20656219820Sjeff  HAVE_LD_VERSION_SCRIPT_FALSE=
20657219820Sjefffi
20658219820Sjeff
20659219820Sjeff
20660219820Sjeff                    ac_config_files="$ac_config_files Makefile libibcm.spec"
20661219820Sjeff
20662219820Sjeffcat >confcache <<\_ACEOF
20663219820Sjeff# This file is a shell script that caches the results of configure
20664219820Sjeff# tests run on this system so they can be shared between configure
20665219820Sjeff# scripts and configure runs, see configure's option --config-cache.
20666219820Sjeff# It is not useful on other systems.  If it contains results you don't
20667219820Sjeff# want to keep, you may remove or edit it.
20668219820Sjeff#
20669219820Sjeff# config.status only pays attention to the cache file if you give it
20670219820Sjeff# the --recheck option to rerun configure.
20671219820Sjeff#
20672219820Sjeff# `ac_cv_env_foo' variables (set or unset) will be overridden when
20673219820Sjeff# loading this file, other *unset* `ac_cv_foo' will be assigned the
20674219820Sjeff# following values.
20675219820Sjeff
20676219820Sjeff_ACEOF
20677219820Sjeff
20678219820Sjeff# The following way of writing the cache mishandles newlines in values,
20679219820Sjeff# but we know of no workaround that is simple, portable, and efficient.
20680219820Sjeff# So, don't put newlines in cache variables' values.
20681219820Sjeff# Ultrix sh set writes to stderr and can't be redirected directly,
20682219820Sjeff# and sets the high bit in the cache file unless we assign to the vars.
20683219820Sjeff{
20684219820Sjeff  (set) 2>&1 |
20685219820Sjeff    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20686219820Sjeff    *ac_space=\ *)
20687219820Sjeff      # `set' does not quote correctly, so add quotes (double-quote
20688219820Sjeff      # substitution turns \\\\ into \\, and sed turns \\ into \).
20689219820Sjeff      sed -n \
20690219820Sjeff	"s/'/'\\\\''/g;
20691219820Sjeff	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20692219820Sjeff      ;;
20693219820Sjeff    *)
20694219820Sjeff      # `set' quotes correctly as required by POSIX, so do not add quotes.
20695219820Sjeff      sed -n \
20696219820Sjeff	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20697219820Sjeff      ;;
20698219820Sjeff    esac;
20699219820Sjeff} |
20700219820Sjeff  sed '
20701219820Sjeff     t clear
20702219820Sjeff     : clear
20703219820Sjeff     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20704219820Sjeff     t end
20705219820Sjeff     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20706219820Sjeff     : end' >>confcache
20707219820Sjeffif diff $cache_file confcache >/dev/null 2>&1; then :; else
20708219820Sjeff  if test -w $cache_file; then
20709219820Sjeff    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20710219820Sjeff    cat confcache >$cache_file
20711219820Sjeff  else
20712219820Sjeff    echo "not updating unwritable cache $cache_file"
20713219820Sjeff  fi
20714219820Sjefffi
20715219820Sjeffrm -f confcache
20716219820Sjeff
20717219820Sjefftest "x$prefix" = xNONE && prefix=$ac_default_prefix
20718219820Sjeff# Let make expand exec_prefix.
20719219820Sjefftest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20720219820Sjeff
20721219820Sjeff# VPATH may cause trouble with some makes, so we remove $(srcdir),
20722219820Sjeff# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20723219820Sjeff# trailing colons and then remove the whole line if VPATH becomes empty
20724219820Sjeff# (actually we leave an empty line to preserve line numbers).
20725219820Sjeffif test "x$srcdir" = x.; then
20726219820Sjeff  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20727219820Sjeffs/:*\$(srcdir):*/:/;
20728219820Sjeffs/:*\${srcdir}:*/:/;
20729219820Sjeffs/:*@srcdir@:*/:/;
20730219820Sjeffs/^\([^=]*=[	 ]*\):*/\1/;
20731219820Sjeffs/:*$//;
20732219820Sjeffs/^[^=]*=[	 ]*$//;
20733219820Sjeff}'
20734219820Sjefffi
20735219820Sjeff
20736219820SjeffDEFS=-DHAVE_CONFIG_H
20737219820Sjeff
20738219820Sjeffac_libobjs=
20739219820Sjeffac_ltlibobjs=
20740219820Sjefffor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20741219820Sjeff  # 1. Remove the extension, and $U if already installed.
20742219820Sjeff  ac_i=`echo "$ac_i" |
20743219820Sjeff	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20744219820Sjeff  # 2. Add them.
20745219820Sjeff  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20746219820Sjeff  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20747219820Sjeffdone
20748219820SjeffLIBOBJS=$ac_libobjs
20749219820Sjeff
20750219820SjeffLTLIBOBJS=$ac_ltlibobjs
20751219820Sjeff
20752219820Sjeff
20753219820Sjeffif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20754219820Sjeff  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20755219820SjeffUsually this means the macro was only invoked conditionally." >&5
20756219820Sjeffecho "$as_me: error: conditional \"AMDEP\" was never defined.
20757219820SjeffUsually this means the macro was only invoked conditionally." >&2;}
20758219820Sjeff   { (exit 1); exit 1; }; }
20759219820Sjefffi
20760219820Sjeffif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20761219820Sjeff  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20762219820SjeffUsually this means the macro was only invoked conditionally." >&5
20763219820Sjeffecho "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20764219820SjeffUsually this means the macro was only invoked conditionally." >&2;}
20765219820Sjeff   { (exit 1); exit 1; }; }
20766219820Sjefffi
20767219820Sjeffif test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20768219820Sjeff  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20769219820SjeffUsually this means the macro was only invoked conditionally." >&5
20770219820Sjeffecho "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20771219820SjeffUsually this means the macro was only invoked conditionally." >&2;}
20772219820Sjeff   { (exit 1); exit 1; }; }
20773219820Sjefffi
20774219820Sjeffif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20775219820Sjeff  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20776219820SjeffUsually this means the macro was only invoked conditionally." >&5
20777219820Sjeffecho "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20778219820SjeffUsually this means the macro was only invoked conditionally." >&2;}
20779219820Sjeff   { (exit 1); exit 1; }; }
20780219820Sjefffi
20781219820Sjeffif test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20782219820Sjeff  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20783219820SjeffUsually this means the macro was only invoked conditionally." >&5
20784219820Sjeffecho "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20785219820SjeffUsually this means the macro was only invoked conditionally." >&2;}
20786219820Sjeff   { (exit 1); exit 1; }; }
20787219820Sjefffi
20788219820Sjeff
20789219820Sjeff: ${CONFIG_STATUS=./config.status}
20790219820Sjeffac_clean_files_save=$ac_clean_files
20791219820Sjeffac_clean_files="$ac_clean_files $CONFIG_STATUS"
20792219820Sjeff{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20793219820Sjeffecho "$as_me: creating $CONFIG_STATUS" >&6;}
20794219820Sjeffcat >$CONFIG_STATUS <<_ACEOF
20795219820Sjeff#! $SHELL
20796219820Sjeff# Generated by $as_me.
20797219820Sjeff# Run this file to recreate the current configuration.
20798219820Sjeff# Compiler output produced by configure, useful for debugging
20799219820Sjeff# configure, is in config.log if it exists.
20800219820Sjeff
20801219820Sjeffdebug=false
20802219820Sjeffac_cs_recheck=false
20803219820Sjeffac_cs_silent=false
20804219820SjeffSHELL=\${CONFIG_SHELL-$SHELL}
20805219820Sjeff_ACEOF
20806219820Sjeff
20807219820Sjeffcat >>$CONFIG_STATUS <<\_ACEOF
20808219820Sjeff## --------------------- ##
20809219820Sjeff## M4sh Initialization.  ##
20810219820Sjeff## --------------------- ##
20811219820Sjeff
20812219820Sjeff# Be Bourne compatible
20813219820Sjeffif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20814219820Sjeff  emulate sh
20815219820Sjeff  NULLCMD=:
20816219820Sjeff  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20817219820Sjeff  # is contrary to our usage.  Disable this feature.
20818219820Sjeff  alias -g '${1+"$@"}'='"$@"'
20819219820Sjeffelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20820219820Sjeff  set -o posix
20821219820Sjefffi
20822219820SjeffDUALCASE=1; export DUALCASE # for MKS sh
20823219820Sjeff
20824219820Sjeff# Support unset when possible.
20825219820Sjeffif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20826219820Sjeff  as_unset=unset
20827219820Sjeffelse
20828219820Sjeff  as_unset=false
20829219820Sjefffi
20830219820Sjeff
20831219820Sjeff
20832219820Sjeff# Work around bugs in pre-3.0 UWIN ksh.
20833219820Sjeff$as_unset ENV MAIL MAILPATH
20834219820SjeffPS1='$ '
20835219820SjeffPS2='> '
20836219820SjeffPS4='+ '
20837219820Sjeff
20838219820Sjeff# NLS nuisances.
20839219820Sjefffor as_var in \
20840219820Sjeff  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20841219820Sjeff  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20842219820Sjeff  LC_TELEPHONE LC_TIME
20843219820Sjeffdo
20844219820Sjeff  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20845219820Sjeff    eval $as_var=C; export $as_var
20846219820Sjeff  else
20847219820Sjeff    $as_unset $as_var
20848219820Sjeff  fi
20849219820Sjeffdone
20850219820Sjeff
20851219820Sjeff# Required to use basename.
20852219820Sjeffif expr a : '\(a\)' >/dev/null 2>&1; then
20853219820Sjeff  as_expr=expr
20854219820Sjeffelse
20855219820Sjeff  as_expr=false
20856219820Sjefffi
20857219820Sjeff
20858219820Sjeffif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20859219820Sjeff  as_basename=basename
20860219820Sjeffelse
20861219820Sjeff  as_basename=false
20862219820Sjefffi
20863219820Sjeff
20864219820Sjeff
20865219820Sjeff# Name of the executable.
20866219820Sjeffas_me=`$as_basename "$0" ||
20867219820Sjeff$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20868219820Sjeff	 X"$0" : 'X\(//\)$' \| \
20869219820Sjeff	 X"$0" : 'X\(/\)$' \| \
20870219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
20871219820Sjeffecho X/"$0" |
20872219820Sjeff    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20873219820Sjeff  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20874219820Sjeff  	  /^X\/\(\/\).*/{ s//\1/; q; }
20875219820Sjeff  	  s/.*/./; q'`
20876219820Sjeff
20877219820Sjeff
20878219820Sjeff# PATH needs CR, and LINENO needs CR and PATH.
20879219820Sjeff# Avoid depending upon Character Ranges.
20880219820Sjeffas_cr_letters='abcdefghijklmnopqrstuvwxyz'
20881219820Sjeffas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20882219820Sjeffas_cr_Letters=$as_cr_letters$as_cr_LETTERS
20883219820Sjeffas_cr_digits='0123456789'
20884219820Sjeffas_cr_alnum=$as_cr_Letters$as_cr_digits
20885219820Sjeff
20886219820Sjeff# The user is always right.
20887219820Sjeffif test "${PATH_SEPARATOR+set}" != set; then
20888219820Sjeff  echo "#! /bin/sh" >conf$$.sh
20889219820Sjeff  echo  "exit 0"   >>conf$$.sh
20890219820Sjeff  chmod +x conf$$.sh
20891219820Sjeff  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20892219820Sjeff    PATH_SEPARATOR=';'
20893219820Sjeff  else
20894219820Sjeff    PATH_SEPARATOR=:
20895219820Sjeff  fi
20896219820Sjeff  rm -f conf$$.sh
20897219820Sjefffi
20898219820Sjeff
20899219820Sjeff
20900219820Sjeff  as_lineno_1=$LINENO
20901219820Sjeff  as_lineno_2=$LINENO
20902219820Sjeff  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20903219820Sjeff  test "x$as_lineno_1" != "x$as_lineno_2" &&
20904219820Sjeff  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20905219820Sjeff  # Find who we are.  Look in the path if we contain no path at all
20906219820Sjeff  # relative or not.
20907219820Sjeff  case $0 in
20908219820Sjeff    *[\\/]* ) as_myself=$0 ;;
20909219820Sjeff    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20910219820Sjefffor as_dir in $PATH
20911219820Sjeffdo
20912219820Sjeff  IFS=$as_save_IFS
20913219820Sjeff  test -z "$as_dir" && as_dir=.
20914219820Sjeff  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20915219820Sjeffdone
20916219820Sjeff
20917219820Sjeff       ;;
20918219820Sjeff  esac
20919219820Sjeff  # We did not find ourselves, most probably we were run as `sh COMMAND'
20920219820Sjeff  # in which case we are not to be found in the path.
20921219820Sjeff  if test "x$as_myself" = x; then
20922219820Sjeff    as_myself=$0
20923219820Sjeff  fi
20924219820Sjeff  if test ! -f "$as_myself"; then
20925219820Sjeff    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20926219820Sjeffecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20927219820Sjeff   { (exit 1); exit 1; }; }
20928219820Sjeff  fi
20929219820Sjeff  case $CONFIG_SHELL in
20930219820Sjeff  '')
20931219820Sjeff    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20932219820Sjefffor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20933219820Sjeffdo
20934219820Sjeff  IFS=$as_save_IFS
20935219820Sjeff  test -z "$as_dir" && as_dir=.
20936219820Sjeff  for as_base in sh bash ksh sh5; do
20937219820Sjeff	 case $as_dir in
20938219820Sjeff	 /*)
20939219820Sjeff	   if ("$as_dir/$as_base" -c '
20940219820Sjeff  as_lineno_1=$LINENO
20941219820Sjeff  as_lineno_2=$LINENO
20942219820Sjeff  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20943219820Sjeff  test "x$as_lineno_1" != "x$as_lineno_2" &&
20944219820Sjeff  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20945219820Sjeff	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20946219820Sjeff	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20947219820Sjeff	     CONFIG_SHELL=$as_dir/$as_base
20948219820Sjeff	     export CONFIG_SHELL
20949219820Sjeff	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20950219820Sjeff	   fi;;
20951219820Sjeff	 esac
20952219820Sjeff       done
20953219820Sjeffdone
20954219820Sjeff;;
20955219820Sjeff  esac
20956219820Sjeff
20957219820Sjeff  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20958219820Sjeff  # uniformly replaced by the line number.  The first 'sed' inserts a
20959219820Sjeff  # line-number line before each line; the second 'sed' does the real
20960219820Sjeff  # work.  The second script uses 'N' to pair each line-number line
20961219820Sjeff  # with the numbered line, and appends trailing '-' during
20962219820Sjeff  # substitution so that $LINENO is not a special case at line end.
20963219820Sjeff  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20964219820Sjeff  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20965219820Sjeff  sed '=' <$as_myself |
20966219820Sjeff    sed '
20967219820Sjeff      N
20968219820Sjeff      s,$,-,
20969219820Sjeff      : loop
20970219820Sjeff      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20971219820Sjeff      t loop
20972219820Sjeff      s,-$,,
20973219820Sjeff      s,^['$as_cr_digits']*\n,,
20974219820Sjeff    ' >$as_me.lineno &&
20975219820Sjeff  chmod +x $as_me.lineno ||
20976219820Sjeff    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20977219820Sjeffecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20978219820Sjeff   { (exit 1); exit 1; }; }
20979219820Sjeff
20980219820Sjeff  # Don't try to exec as it changes $[0], causing all sort of problems
20981219820Sjeff  # (the dirname of $[0] is not the place where we might find the
20982219820Sjeff  # original and so on.  Autoconf is especially sensible to this).
20983219820Sjeff  . ./$as_me.lineno
20984219820Sjeff  # Exit status is that of the last command.
20985219820Sjeff  exit
20986219820Sjeff}
20987219820Sjeff
20988219820Sjeff
20989219820Sjeffcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20990219820Sjeff  *c*,-n*) ECHO_N= ECHO_C='
20991219820Sjeff' ECHO_T='	' ;;
20992219820Sjeff  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20993219820Sjeff  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20994219820Sjeffesac
20995219820Sjeff
20996219820Sjeffif expr a : '\(a\)' >/dev/null 2>&1; then
20997219820Sjeff  as_expr=expr
20998219820Sjeffelse
20999219820Sjeff  as_expr=false
21000219820Sjefffi
21001219820Sjeff
21002219820Sjeffrm -f conf$$ conf$$.exe conf$$.file
21003219820Sjeffecho >conf$$.file
21004219820Sjeffif ln -s conf$$.file conf$$ 2>/dev/null; then
21005219820Sjeff  # We could just check for DJGPP; but this test a) works b) is more generic
21006219820Sjeff  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21007219820Sjeff  if test -f conf$$.exe; then
21008219820Sjeff    # Don't use ln at all; we don't have any links
21009219820Sjeff    as_ln_s='cp -p'
21010219820Sjeff  else
21011219820Sjeff    as_ln_s='ln -s'
21012219820Sjeff  fi
21013219820Sjeffelif ln conf$$.file conf$$ 2>/dev/null; then
21014219820Sjeff  as_ln_s=ln
21015219820Sjeffelse
21016219820Sjeff  as_ln_s='cp -p'
21017219820Sjefffi
21018219820Sjeffrm -f conf$$ conf$$.exe conf$$.file
21019219820Sjeff
21020219820Sjeffif mkdir -p . 2>/dev/null; then
21021219820Sjeff  as_mkdir_p=:
21022219820Sjeffelse
21023219820Sjeff  test -d ./-p && rmdir ./-p
21024219820Sjeff  as_mkdir_p=false
21025219820Sjefffi
21026219820Sjeff
21027219820Sjeffas_executable_p="test -f"
21028219820Sjeff
21029219820Sjeff# Sed expression to map a string onto a valid CPP name.
21030219820Sjeffas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21031219820Sjeff
21032219820Sjeff# Sed expression to map a string onto a valid variable name.
21033219820Sjeffas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21034219820Sjeff
21035219820Sjeff
21036219820Sjeff# IFS
21037219820Sjeff# We need space, tab and new line, in precisely that order.
21038219820Sjeffas_nl='
21039219820Sjeff'
21040219820SjeffIFS=" 	$as_nl"
21041219820Sjeff
21042219820Sjeff# CDPATH.
21043219820Sjeff$as_unset CDPATH
21044219820Sjeff
21045219820Sjeffexec 6>&1
21046219820Sjeff
21047219820Sjeff# Open the log real soon, to keep \$[0] and so on meaningful, and to
21048219820Sjeff# report actual input values of CONFIG_FILES etc. instead of their
21049219820Sjeff# values after options handling.  Logging --version etc. is OK.
21050219820Sjeffexec 5>>config.log
21051219820Sjeff{
21052219820Sjeff  echo
21053219820Sjeff  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21054219820Sjeff## Running $as_me. ##
21055219820Sjeff_ASBOX
21056219820Sjeff} >&5
21057219820Sjeffcat >&5 <<_CSEOF
21058219820Sjeff
21059219820SjeffThis file was extended by libibcm $as_me 1.0.5, which was
21060219820Sjeffgenerated by GNU Autoconf 2.59.  Invocation command line was
21061219820Sjeff
21062219820Sjeff  CONFIG_FILES    = $CONFIG_FILES
21063219820Sjeff  CONFIG_HEADERS  = $CONFIG_HEADERS
21064219820Sjeff  CONFIG_LINKS    = $CONFIG_LINKS
21065219820Sjeff  CONFIG_COMMANDS = $CONFIG_COMMANDS
21066219820Sjeff  $ $0 $@
21067219820Sjeff
21068219820Sjeff_CSEOF
21069219820Sjeffecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21070219820Sjeffecho >&5
21071219820Sjeff_ACEOF
21072219820Sjeff
21073219820Sjeff# Files that config.status was made for.
21074219820Sjeffif test -n "$ac_config_files"; then
21075219820Sjeff  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21076219820Sjefffi
21077219820Sjeff
21078219820Sjeffif test -n "$ac_config_headers"; then
21079219820Sjeff  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21080219820Sjefffi
21081219820Sjeff
21082219820Sjeffif test -n "$ac_config_links"; then
21083219820Sjeff  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21084219820Sjefffi
21085219820Sjeff
21086219820Sjeffif test -n "$ac_config_commands"; then
21087219820Sjeff  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21088219820Sjefffi
21089219820Sjeff
21090219820Sjeffcat >>$CONFIG_STATUS <<\_ACEOF
21091219820Sjeff
21092219820Sjeffac_cs_usage="\
21093219820Sjeff\`$as_me' instantiates files from templates according to the
21094219820Sjeffcurrent configuration.
21095219820Sjeff
21096219820SjeffUsage: $0 [OPTIONS] [FILE]...
21097219820Sjeff
21098219820Sjeff  -h, --help       print this help, then exit
21099219820Sjeff  -V, --version    print version number, then exit
21100219820Sjeff  -q, --quiet      do not print progress messages
21101219820Sjeff  -d, --debug      don't remove temporary files
21102219820Sjeff      --recheck    update $as_me by reconfiguring in the same conditions
21103219820Sjeff  --file=FILE[:TEMPLATE]
21104219820Sjeff		   instantiate the configuration file FILE
21105219820Sjeff  --header=FILE[:TEMPLATE]
21106219820Sjeff		   instantiate the configuration header FILE
21107219820Sjeff
21108219820SjeffConfiguration files:
21109219820Sjeff$config_files
21110219820Sjeff
21111219820SjeffConfiguration headers:
21112219820Sjeff$config_headers
21113219820Sjeff
21114219820SjeffConfiguration commands:
21115219820Sjeff$config_commands
21116219820Sjeff
21117219820SjeffReport bugs to <bug-autoconf@gnu.org>."
21118219820Sjeff_ACEOF
21119219820Sjeff
21120219820Sjeffcat >>$CONFIG_STATUS <<_ACEOF
21121219820Sjeffac_cs_version="\\
21122219820Sjefflibibcm config.status 1.0.5
21123219820Sjeffconfigured by $0, generated by GNU Autoconf 2.59,
21124219820Sjeff  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21125219820Sjeff
21126219820SjeffCopyright (C) 2003 Free Software Foundation, Inc.
21127219820SjeffThis config.status script is free software; the Free Software Foundation
21128219820Sjeffgives unlimited permission to copy, distribute and modify it."
21129219820Sjeffsrcdir=$srcdir
21130219820SjeffINSTALL="$INSTALL"
21131219820Sjeff_ACEOF
21132219820Sjeff
21133219820Sjeffcat >>$CONFIG_STATUS <<\_ACEOF
21134219820Sjeff# If no file are specified by the user, then we need to provide default
21135219820Sjeff# value.  By we need to know if files were specified by the user.
21136219820Sjeffac_need_defaults=:
21137219820Sjeffwhile test $# != 0
21138219820Sjeffdo
21139219820Sjeff  case $1 in
21140219820Sjeff  --*=*)
21141219820Sjeff    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21142219820Sjeff    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21143219820Sjeff    ac_shift=:
21144219820Sjeff    ;;
21145219820Sjeff  -*)
21146219820Sjeff    ac_option=$1
21147219820Sjeff    ac_optarg=$2
21148219820Sjeff    ac_shift=shift
21149219820Sjeff    ;;
21150219820Sjeff  *) # This is not an option, so the user has probably given explicit
21151219820Sjeff     # arguments.
21152219820Sjeff     ac_option=$1
21153219820Sjeff     ac_need_defaults=false;;
21154219820Sjeff  esac
21155219820Sjeff
21156219820Sjeff  case $ac_option in
21157219820Sjeff  # Handling of the options.
21158219820Sjeff_ACEOF
21159219820Sjeffcat >>$CONFIG_STATUS <<\_ACEOF
21160219820Sjeff  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21161219820Sjeff    ac_cs_recheck=: ;;
21162219820Sjeff  --version | --vers* | -V )
21163219820Sjeff    echo "$ac_cs_version"; exit 0 ;;
21164219820Sjeff  --he | --h)
21165219820Sjeff    # Conflict between --help and --header
21166219820Sjeff    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21167219820SjeffTry \`$0 --help' for more information." >&5
21168219820Sjeffecho "$as_me: error: ambiguous option: $1
21169219820SjeffTry \`$0 --help' for more information." >&2;}
21170219820Sjeff   { (exit 1); exit 1; }; };;
21171219820Sjeff  --help | --hel | -h )
21172219820Sjeff    echo "$ac_cs_usage"; exit 0 ;;
21173219820Sjeff  --debug | --d* | -d )
21174219820Sjeff    debug=: ;;
21175219820Sjeff  --file | --fil | --fi | --f )
21176219820Sjeff    $ac_shift
21177219820Sjeff    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21178219820Sjeff    ac_need_defaults=false;;
21179219820Sjeff  --header | --heade | --head | --hea )
21180219820Sjeff    $ac_shift
21181219820Sjeff    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21182219820Sjeff    ac_need_defaults=false;;
21183219820Sjeff  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21184219820Sjeff  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21185219820Sjeff    ac_cs_silent=: ;;
21186219820Sjeff
21187219820Sjeff  # This is an error.
21188219820Sjeff  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21189219820SjeffTry \`$0 --help' for more information." >&5
21190219820Sjeffecho "$as_me: error: unrecognized option: $1
21191219820SjeffTry \`$0 --help' for more information." >&2;}
21192219820Sjeff   { (exit 1); exit 1; }; } ;;
21193219820Sjeff
21194219820Sjeff  *) ac_config_targets="$ac_config_targets $1" ;;
21195219820Sjeff
21196219820Sjeff  esac
21197219820Sjeff  shift
21198219820Sjeffdone
21199219820Sjeff
21200219820Sjeffac_configure_extra_args=
21201219820Sjeff
21202219820Sjeffif $ac_cs_silent; then
21203219820Sjeff  exec 6>/dev/null
21204219820Sjeff  ac_configure_extra_args="$ac_configure_extra_args --silent"
21205219820Sjefffi
21206219820Sjeff
21207219820Sjeff_ACEOF
21208219820Sjeffcat >>$CONFIG_STATUS <<_ACEOF
21209219820Sjeffif \$ac_cs_recheck; then
21210219820Sjeff  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21211219820Sjeff  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21212219820Sjefffi
21213219820Sjeff
21214219820Sjeff_ACEOF
21215219820Sjeff
21216219820Sjeffcat >>$CONFIG_STATUS <<_ACEOF
21217219820Sjeff#
21218219820Sjeff# INIT-COMMANDS section.
21219219820Sjeff#
21220219820Sjeff
21221219820SjeffAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21222219820Sjeff
21223219820Sjeff_ACEOF
21224219820Sjeff
21225219820Sjeff
21226219820Sjeff
21227219820Sjeffcat >>$CONFIG_STATUS <<\_ACEOF
21228219820Sjefffor ac_config_target in $ac_config_targets
21229219820Sjeffdo
21230219820Sjeff  case "$ac_config_target" in
21231219820Sjeff  # Handling of arguments.
21232219820Sjeff  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21233219820Sjeff  "libibcm.spec" ) CONFIG_FILES="$CONFIG_FILES libibcm.spec" ;;
21234219820Sjeff  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21235219820Sjeff  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21236219820Sjeff  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21237219820Sjeffecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
21238219820Sjeff   { (exit 1); exit 1; }; };;
21239219820Sjeff  esac
21240219820Sjeffdone
21241219820Sjeff
21242219820Sjeff# If the user did not use the arguments to specify the items to instantiate,
21243219820Sjeff# then the envvar interface is used.  Set only those that are not.
21244219820Sjeff# We use the long form for the default assignment because of an extremely
21245219820Sjeff# bizarre bug on SunOS 4.1.3.
21246219820Sjeffif $ac_need_defaults; then
21247219820Sjeff  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21248219820Sjeff  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21249219820Sjeff  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21250219820Sjefffi
21251219820Sjeff
21252219820Sjeff# Have a temporary directory for convenience.  Make it in the build tree
21253219820Sjeff# simply because there is no reason to put it here, and in addition,
21254219820Sjeff# creating and moving files from /tmp can sometimes cause problems.
21255219820Sjeff# Create a temporary directory, and hook for its removal unless debugging.
21256219820Sjeff$debug ||
21257219820Sjeff{
21258219820Sjeff  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21259219820Sjeff  trap '{ (exit 1); exit 1; }' 1 2 13 15
21260219820Sjeff}
21261219820Sjeff
21262219820Sjeff# Create a (secure) tmp directory for tmp files.
21263219820Sjeff
21264219820Sjeff{
21265219820Sjeff  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21266219820Sjeff  test -n "$tmp" && test -d "$tmp"
21267219820Sjeff}  ||
21268219820Sjeff{
21269219820Sjeff  tmp=./confstat$$-$RANDOM
21270219820Sjeff  (umask 077 && mkdir $tmp)
21271219820Sjeff} ||
21272219820Sjeff{
21273219820Sjeff   echo "$me: cannot create a temporary directory in ." >&2
21274219820Sjeff   { (exit 1); exit 1; }
21275219820Sjeff}
21276219820Sjeff
21277219820Sjeff_ACEOF
21278219820Sjeff
21279219820Sjeffcat >>$CONFIG_STATUS <<_ACEOF
21280219820Sjeff
21281219820Sjeff#
21282219820Sjeff# CONFIG_FILES section.
21283219820Sjeff#
21284219820Sjeff
21285219820Sjeff# No need to generate the scripts if there are no CONFIG_FILES.
21286219820Sjeff# This happens for instance when ./config.status config.h
21287219820Sjeffif test -n "\$CONFIG_FILES"; then
21288219820Sjeff  # Protect against being on the right side of a sed subst in config.status.
21289219820Sjeff  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21290219820Sjeff   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21291219820Sjeffs,@SHELL@,$SHELL,;t t
21292219820Sjeffs,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21293219820Sjeffs,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21294219820Sjeffs,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21295219820Sjeffs,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21296219820Sjeffs,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21297219820Sjeffs,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21298219820Sjeffs,@exec_prefix@,$exec_prefix,;t t
21299219820Sjeffs,@prefix@,$prefix,;t t
21300219820Sjeffs,@program_transform_name@,$program_transform_name,;t t
21301219820Sjeffs,@bindir@,$bindir,;t t
21302219820Sjeffs,@sbindir@,$sbindir,;t t
21303219820Sjeffs,@libexecdir@,$libexecdir,;t t
21304219820Sjeffs,@datadir@,$datadir,;t t
21305219820Sjeffs,@sysconfdir@,$sysconfdir,;t t
21306219820Sjeffs,@sharedstatedir@,$sharedstatedir,;t t
21307219820Sjeffs,@localstatedir@,$localstatedir,;t t
21308219820Sjeffs,@libdir@,$libdir,;t t
21309219820Sjeffs,@includedir@,$includedir,;t t
21310219820Sjeffs,@oldincludedir@,$oldincludedir,;t t
21311219820Sjeffs,@infodir@,$infodir,;t t
21312219820Sjeffs,@mandir@,$mandir,;t t
21313219820Sjeffs,@build_alias@,$build_alias,;t t
21314219820Sjeffs,@host_alias@,$host_alias,;t t
21315219820Sjeffs,@target_alias@,$target_alias,;t t
21316219820Sjeffs,@DEFS@,$DEFS,;t t
21317219820Sjeffs,@ECHO_C@,$ECHO_C,;t t
21318219820Sjeffs,@ECHO_N@,$ECHO_N,;t t
21319219820Sjeffs,@ECHO_T@,$ECHO_T,;t t
21320219820Sjeffs,@LIBS@,$LIBS,;t t
21321219820Sjeffs,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21322219820Sjeffs,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21323219820Sjeffs,@INSTALL_DATA@,$INSTALL_DATA,;t t
21324219820Sjeffs,@CYGPATH_W@,$CYGPATH_W,;t t
21325219820Sjeffs,@PACKAGE@,$PACKAGE,;t t
21326219820Sjeffs,@VERSION@,$VERSION,;t t
21327219820Sjeffs,@ACLOCAL@,$ACLOCAL,;t t
21328219820Sjeffs,@AUTOCONF@,$AUTOCONF,;t t
21329219820Sjeffs,@AUTOMAKE@,$AUTOMAKE,;t t
21330219820Sjeffs,@AUTOHEADER@,$AUTOHEADER,;t t
21331219820Sjeffs,@MAKEINFO@,$MAKEINFO,;t t
21332219820Sjeffs,@install_sh@,$install_sh,;t t
21333219820Sjeffs,@STRIP@,$STRIP,;t t
21334219820Sjeffs,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21335219820Sjeffs,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21336219820Sjeffs,@mkdir_p@,$mkdir_p,;t t
21337219820Sjeffs,@AWK@,$AWK,;t t
21338219820Sjeffs,@SET_MAKE@,$SET_MAKE,;t t
21339219820Sjeffs,@am__leading_dot@,$am__leading_dot,;t t
21340219820Sjeffs,@AMTAR@,$AMTAR,;t t
21341219820Sjeffs,@am__tar@,$am__tar,;t t
21342219820Sjeffs,@am__untar@,$am__untar,;t t
21343219820Sjeffs,@build@,$build,;t t
21344219820Sjeffs,@build_cpu@,$build_cpu,;t t
21345219820Sjeffs,@build_vendor@,$build_vendor,;t t
21346219820Sjeffs,@build_os@,$build_os,;t t
21347219820Sjeffs,@host@,$host,;t t
21348219820Sjeffs,@host_cpu@,$host_cpu,;t t
21349219820Sjeffs,@host_vendor@,$host_vendor,;t t
21350219820Sjeffs,@host_os@,$host_os,;t t
21351219820Sjeffs,@CC@,$CC,;t t
21352219820Sjeffs,@CFLAGS@,$CFLAGS,;t t
21353219820Sjeffs,@LDFLAGS@,$LDFLAGS,;t t
21354219820Sjeffs,@CPPFLAGS@,$CPPFLAGS,;t t
21355219820Sjeffs,@ac_ct_CC@,$ac_ct_CC,;t t
21356219820Sjeffs,@EXEEXT@,$EXEEXT,;t t
21357219820Sjeffs,@OBJEXT@,$OBJEXT,;t t
21358219820Sjeffs,@DEPDIR@,$DEPDIR,;t t
21359219820Sjeffs,@am__include@,$am__include,;t t
21360219820Sjeffs,@am__quote@,$am__quote,;t t
21361219820Sjeffs,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21362219820Sjeffs,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21363219820Sjeffs,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21364219820Sjeffs,@CCDEPMODE@,$CCDEPMODE,;t t
21365219820Sjeffs,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21366219820Sjeffs,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21367219820Sjeffs,@EGREP@,$EGREP,;t t
21368219820Sjeffs,@LN_S@,$LN_S,;t t
21369219820Sjeffs,@ECHO@,$ECHO,;t t
21370219820Sjeffs,@AR@,$AR,;t t
21371219820Sjeffs,@ac_ct_AR@,$ac_ct_AR,;t t
21372219820Sjeffs,@RANLIB@,$RANLIB,;t t
21373219820Sjeffs,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21374219820Sjeffs,@CPP@,$CPP,;t t
21375219820Sjeffs,@CXX@,$CXX,;t t
21376219820Sjeffs,@CXXFLAGS@,$CXXFLAGS,;t t
21377219820Sjeffs,@ac_ct_CXX@,$ac_ct_CXX,;t t
21378219820Sjeffs,@CXXDEPMODE@,$CXXDEPMODE,;t t
21379219820Sjeffs,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21380219820Sjeffs,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21381219820Sjeffs,@CXXCPP@,$CXXCPP,;t t
21382219820Sjeffs,@F77@,$F77,;t t
21383219820Sjeffs,@FFLAGS@,$FFLAGS,;t t
21384219820Sjeffs,@ac_ct_F77@,$ac_ct_F77,;t t
21385219820Sjeffs,@LIBTOOL@,$LIBTOOL,;t t
21386219820Sjeffs,@HAVE_LD_VERSION_SCRIPT_TRUE@,$HAVE_LD_VERSION_SCRIPT_TRUE,;t t
21387219820Sjeffs,@HAVE_LD_VERSION_SCRIPT_FALSE@,$HAVE_LD_VERSION_SCRIPT_FALSE,;t t
21388219820Sjeffs,@LIBOBJS@,$LIBOBJS,;t t
21389219820Sjeffs,@LTLIBOBJS@,$LTLIBOBJS,;t t
21390219820SjeffCEOF
21391219820Sjeff
21392219820Sjeff_ACEOF
21393219820Sjeff
21394219820Sjeff  cat >>$CONFIG_STATUS <<\_ACEOF
21395219820Sjeff  # Split the substitutions into bite-sized pieces for seds with
21396219820Sjeff  # small command number limits, like on Digital OSF/1 and HP-UX.
21397219820Sjeff  ac_max_sed_lines=48
21398219820Sjeff  ac_sed_frag=1 # Number of current file.
21399219820Sjeff  ac_beg=1 # First line for current file.
21400219820Sjeff  ac_end=$ac_max_sed_lines # Line after last line for current file.
21401219820Sjeff  ac_more_lines=:
21402219820Sjeff  ac_sed_cmds=
21403219820Sjeff  while $ac_more_lines; do
21404219820Sjeff    if test $ac_beg -gt 1; then
21405219820Sjeff      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21406219820Sjeff    else
21407219820Sjeff      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21408219820Sjeff    fi
21409219820Sjeff    if test ! -s $tmp/subs.frag; then
21410219820Sjeff      ac_more_lines=false
21411219820Sjeff    else
21412219820Sjeff      # The purpose of the label and of the branching condition is to
21413219820Sjeff      # speed up the sed processing (if there are no `@' at all, there
21414219820Sjeff      # is no need to browse any of the substitutions).
21415219820Sjeff      # These are the two extra sed commands mentioned above.
21416219820Sjeff      (echo ':t
21417219820Sjeff  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21418219820Sjeff      if test -z "$ac_sed_cmds"; then
21419219820Sjeff	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21420219820Sjeff      else
21421219820Sjeff	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21422219820Sjeff      fi
21423219820Sjeff      ac_sed_frag=`expr $ac_sed_frag + 1`
21424219820Sjeff      ac_beg=$ac_end
21425219820Sjeff      ac_end=`expr $ac_end + $ac_max_sed_lines`
21426219820Sjeff    fi
21427219820Sjeff  done
21428219820Sjeff  if test -z "$ac_sed_cmds"; then
21429219820Sjeff    ac_sed_cmds=cat
21430219820Sjeff  fi
21431219820Sjefffi # test -n "$CONFIG_FILES"
21432219820Sjeff
21433219820Sjeff_ACEOF
21434219820Sjeffcat >>$CONFIG_STATUS <<\_ACEOF
21435219820Sjefffor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21436219820Sjeff  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21437219820Sjeff  case $ac_file in
21438219820Sjeff  - | *:- | *:-:* ) # input from stdin
21439219820Sjeff	cat >$tmp/stdin
21440219820Sjeff	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21441219820Sjeff	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21442219820Sjeff  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21443219820Sjeff	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21444219820Sjeff  * )   ac_file_in=$ac_file.in ;;
21445219820Sjeff  esac
21446219820Sjeff
21447219820Sjeff  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21448219820Sjeff  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21449219820Sjeff$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21450219820Sjeff	 X"$ac_file" : 'X\(//\)[^/]' \| \
21451219820Sjeff	 X"$ac_file" : 'X\(//\)$' \| \
21452219820Sjeff	 X"$ac_file" : 'X\(/\)' \| \
21453219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
21454219820Sjeffecho X"$ac_file" |
21455219820Sjeff    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21456219820Sjeff  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21457219820Sjeff  	  /^X\(\/\/\)$/{ s//\1/; q; }
21458219820Sjeff  	  /^X\(\/\).*/{ s//\1/; q; }
21459219820Sjeff  	  s/.*/./; q'`
21460219820Sjeff  { if $as_mkdir_p; then
21461219820Sjeff    mkdir -p "$ac_dir"
21462219820Sjeff  else
21463219820Sjeff    as_dir="$ac_dir"
21464219820Sjeff    as_dirs=
21465219820Sjeff    while test ! -d "$as_dir"; do
21466219820Sjeff      as_dirs="$as_dir $as_dirs"
21467219820Sjeff      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21468219820Sjeff$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21469219820Sjeff	 X"$as_dir" : 'X\(//\)[^/]' \| \
21470219820Sjeff	 X"$as_dir" : 'X\(//\)$' \| \
21471219820Sjeff	 X"$as_dir" : 'X\(/\)' \| \
21472219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
21473219820Sjeffecho X"$as_dir" |
21474219820Sjeff    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21475219820Sjeff  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21476219820Sjeff  	  /^X\(\/\/\)$/{ s//\1/; q; }
21477219820Sjeff  	  /^X\(\/\).*/{ s//\1/; q; }
21478219820Sjeff  	  s/.*/./; q'`
21479219820Sjeff    done
21480219820Sjeff    test ! -n "$as_dirs" || mkdir $as_dirs
21481219820Sjeff  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21482219820Sjeffecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21483219820Sjeff   { (exit 1); exit 1; }; }; }
21484219820Sjeff
21485219820Sjeff  ac_builddir=.
21486219820Sjeff
21487219820Sjeffif test "$ac_dir" != .; then
21488219820Sjeff  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21489219820Sjeff  # A "../" for each directory in $ac_dir_suffix.
21490219820Sjeff  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21491219820Sjeffelse
21492219820Sjeff  ac_dir_suffix= ac_top_builddir=
21493219820Sjefffi
21494219820Sjeff
21495219820Sjeffcase $srcdir in
21496219820Sjeff  .)  # No --srcdir option.  We are building in place.
21497219820Sjeff    ac_srcdir=.
21498219820Sjeff    if test -z "$ac_top_builddir"; then
21499219820Sjeff       ac_top_srcdir=.
21500219820Sjeff    else
21501219820Sjeff       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21502219820Sjeff    fi ;;
21503219820Sjeff  [\\/]* | ?:[\\/]* )  # Absolute path.
21504219820Sjeff    ac_srcdir=$srcdir$ac_dir_suffix;
21505219820Sjeff    ac_top_srcdir=$srcdir ;;
21506219820Sjeff  *) # Relative path.
21507219820Sjeff    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21508219820Sjeff    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21509219820Sjeffesac
21510219820Sjeff
21511219820Sjeff# Do not use `cd foo && pwd` to compute absolute paths, because
21512219820Sjeff# the directories may not exist.
21513219820Sjeffcase `pwd` in
21514219820Sjeff.) ac_abs_builddir="$ac_dir";;
21515219820Sjeff*)
21516219820Sjeff  case "$ac_dir" in
21517219820Sjeff  .) ac_abs_builddir=`pwd`;;
21518219820Sjeff  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21519219820Sjeff  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21520219820Sjeff  esac;;
21521219820Sjeffesac
21522219820Sjeffcase $ac_abs_builddir in
21523219820Sjeff.) ac_abs_top_builddir=${ac_top_builddir}.;;
21524219820Sjeff*)
21525219820Sjeff  case ${ac_top_builddir}. in
21526219820Sjeff  .) ac_abs_top_builddir=$ac_abs_builddir;;
21527219820Sjeff  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21528219820Sjeff  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21529219820Sjeff  esac;;
21530219820Sjeffesac
21531219820Sjeffcase $ac_abs_builddir in
21532219820Sjeff.) ac_abs_srcdir=$ac_srcdir;;
21533219820Sjeff*)
21534219820Sjeff  case $ac_srcdir in
21535219820Sjeff  .) ac_abs_srcdir=$ac_abs_builddir;;
21536219820Sjeff  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21537219820Sjeff  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21538219820Sjeff  esac;;
21539219820Sjeffesac
21540219820Sjeffcase $ac_abs_builddir in
21541219820Sjeff.) ac_abs_top_srcdir=$ac_top_srcdir;;
21542219820Sjeff*)
21543219820Sjeff  case $ac_top_srcdir in
21544219820Sjeff  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21545219820Sjeff  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21546219820Sjeff  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21547219820Sjeff  esac;;
21548219820Sjeffesac
21549219820Sjeff
21550219820Sjeff
21551219820Sjeff  case $INSTALL in
21552219820Sjeff  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21553219820Sjeff  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21554219820Sjeff  esac
21555219820Sjeff
21556219820Sjeff  # Let's still pretend it is `configure' which instantiates (i.e., don't
21557219820Sjeff  # use $as_me), people would be surprised to read:
21558219820Sjeff  #    /* config.h.  Generated by config.status.  */
21559219820Sjeff  if test x"$ac_file" = x-; then
21560219820Sjeff    configure_input=
21561219820Sjeff  else
21562219820Sjeff    configure_input="$ac_file.  "
21563219820Sjeff  fi
21564219820Sjeff  configure_input=$configure_input"Generated from `echo $ac_file_in |
21565219820Sjeff				     sed 's,.*/,,'` by configure."
21566219820Sjeff
21567219820Sjeff  # First look for the input files in the build tree, otherwise in the
21568219820Sjeff  # src tree.
21569219820Sjeff  ac_file_inputs=`IFS=:
21570219820Sjeff    for f in $ac_file_in; do
21571219820Sjeff      case $f in
21572219820Sjeff      -) echo $tmp/stdin ;;
21573219820Sjeff      [\\/$]*)
21574219820Sjeff	 # Absolute (can't be DOS-style, as IFS=:)
21575219820Sjeff	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21576219820Sjeffecho "$as_me: error: cannot find input file: $f" >&2;}
21577219820Sjeff   { (exit 1); exit 1; }; }
21578219820Sjeff	 echo "$f";;
21579219820Sjeff      *) # Relative
21580219820Sjeff	 if test -f "$f"; then
21581219820Sjeff	   # Build tree
21582219820Sjeff	   echo "$f"
21583219820Sjeff	 elif test -f "$srcdir/$f"; then
21584219820Sjeff	   # Source tree
21585219820Sjeff	   echo "$srcdir/$f"
21586219820Sjeff	 else
21587219820Sjeff	   # /dev/null tree
21588219820Sjeff	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21589219820Sjeffecho "$as_me: error: cannot find input file: $f" >&2;}
21590219820Sjeff   { (exit 1); exit 1; }; }
21591219820Sjeff	 fi;;
21592219820Sjeff      esac
21593219820Sjeff    done` || { (exit 1); exit 1; }
21594219820Sjeff
21595219820Sjeff  if test x"$ac_file" != x-; then
21596219820Sjeff    { echo "$as_me:$LINENO: creating $ac_file" >&5
21597219820Sjeffecho "$as_me: creating $ac_file" >&6;}
21598219820Sjeff    rm -f "$ac_file"
21599219820Sjeff  fi
21600219820Sjeff_ACEOF
21601219820Sjeffcat >>$CONFIG_STATUS <<_ACEOF
21602219820Sjeff  sed "$ac_vpsub
21603219820Sjeff$extrasub
21604219820Sjeff_ACEOF
21605219820Sjeffcat >>$CONFIG_STATUS <<\_ACEOF
21606219820Sjeff:t
21607219820Sjeff/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21608219820Sjeffs,@configure_input@,$configure_input,;t t
21609219820Sjeffs,@srcdir@,$ac_srcdir,;t t
21610219820Sjeffs,@abs_srcdir@,$ac_abs_srcdir,;t t
21611219820Sjeffs,@top_srcdir@,$ac_top_srcdir,;t t
21612219820Sjeffs,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21613219820Sjeffs,@builddir@,$ac_builddir,;t t
21614219820Sjeffs,@abs_builddir@,$ac_abs_builddir,;t t
21615219820Sjeffs,@top_builddir@,$ac_top_builddir,;t t
21616219820Sjeffs,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21617219820Sjeffs,@INSTALL@,$ac_INSTALL,;t t
21618219820Sjeff" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21619219820Sjeff  rm -f $tmp/stdin
21620219820Sjeff  if test x"$ac_file" != x-; then
21621219820Sjeff    mv $tmp/out $ac_file
21622219820Sjeff  else
21623219820Sjeff    cat $tmp/out
21624219820Sjeff    rm -f $tmp/out
21625219820Sjeff  fi
21626219820Sjeff
21627219820Sjeffdone
21628219820Sjeff_ACEOF
21629219820Sjeffcat >>$CONFIG_STATUS <<\_ACEOF
21630219820Sjeff
21631219820Sjeff#
21632219820Sjeff# CONFIG_HEADER section.
21633219820Sjeff#
21634219820Sjeff
21635219820Sjeff# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21636219820Sjeff# NAME is the cpp macro being defined and VALUE is the value it is being given.
21637219820Sjeff#
21638219820Sjeff# ac_d sets the value in "#define NAME VALUE" lines.
21639219820Sjeffac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21640219820Sjeffac_dB='[	 ].*$,\1#\2'
21641219820Sjeffac_dC=' '
21642219820Sjeffac_dD=',;t'
21643219820Sjeff# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21644219820Sjeffac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21645219820Sjeffac_uB='$,\1#\2define\3'
21646219820Sjeffac_uC=' '
21647219820Sjeffac_uD=',;t'
21648219820Sjeff
21649219820Sjefffor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21650219820Sjeff  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21651219820Sjeff  case $ac_file in
21652219820Sjeff  - | *:- | *:-:* ) # input from stdin
21653219820Sjeff	cat >$tmp/stdin
21654219820Sjeff	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21655219820Sjeff	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21656219820Sjeff  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21657219820Sjeff	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21658219820Sjeff  * )   ac_file_in=$ac_file.in ;;
21659219820Sjeff  esac
21660219820Sjeff
21661219820Sjeff  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21662219820Sjeffecho "$as_me: creating $ac_file" >&6;}
21663219820Sjeff
21664219820Sjeff  # First look for the input files in the build tree, otherwise in the
21665219820Sjeff  # src tree.
21666219820Sjeff  ac_file_inputs=`IFS=:
21667219820Sjeff    for f in $ac_file_in; do
21668219820Sjeff      case $f in
21669219820Sjeff      -) echo $tmp/stdin ;;
21670219820Sjeff      [\\/$]*)
21671219820Sjeff	 # Absolute (can't be DOS-style, as IFS=:)
21672219820Sjeff	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21673219820Sjeffecho "$as_me: error: cannot find input file: $f" >&2;}
21674219820Sjeff   { (exit 1); exit 1; }; }
21675219820Sjeff	 # Do quote $f, to prevent DOS paths from being IFS'd.
21676219820Sjeff	 echo "$f";;
21677219820Sjeff      *) # Relative
21678219820Sjeff	 if test -f "$f"; then
21679219820Sjeff	   # Build tree
21680219820Sjeff	   echo "$f"
21681219820Sjeff	 elif test -f "$srcdir/$f"; then
21682219820Sjeff	   # Source tree
21683219820Sjeff	   echo "$srcdir/$f"
21684219820Sjeff	 else
21685219820Sjeff	   # /dev/null tree
21686219820Sjeff	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21687219820Sjeffecho "$as_me: error: cannot find input file: $f" >&2;}
21688219820Sjeff   { (exit 1); exit 1; }; }
21689219820Sjeff	 fi;;
21690219820Sjeff      esac
21691219820Sjeff    done` || { (exit 1); exit 1; }
21692219820Sjeff  # Remove the trailing spaces.
21693219820Sjeff  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
21694219820Sjeff
21695219820Sjeff_ACEOF
21696219820Sjeff
21697219820Sjeff# Transform confdefs.h into two sed scripts, `conftest.defines' and
21698219820Sjeff# `conftest.undefs', that substitutes the proper values into
21699219820Sjeff# config.h.in to produce config.h.  The first handles `#define'
21700219820Sjeff# templates, and the second `#undef' templates.
21701219820Sjeff# And first: Protect against being on the right side of a sed subst in
21702219820Sjeff# config.status.  Protect against being in an unquoted here document
21703219820Sjeff# in config.status.
21704219820Sjeffrm -f conftest.defines conftest.undefs
21705219820Sjeff# Using a here document instead of a string reduces the quoting nightmare.
21706219820Sjeff# Putting comments in sed scripts is not portable.
21707219820Sjeff#
21708219820Sjeff# `end' is used to avoid that the second main sed command (meant for
21709219820Sjeff# 0-ary CPP macros) applies to n-ary macro definitions.
21710219820Sjeff# See the Autoconf documentation for `clear'.
21711219820Sjeffcat >confdef2sed.sed <<\_ACEOF
21712219820Sjeffs/[\\&,]/\\&/g
21713219820Sjeffs,[\\$`],\\&,g
21714219820Sjefft clear
21715219820Sjeff: clear
21716219820Sjeffs,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21717219820Sjefft end
21718219820Sjeffs,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21719219820Sjeff: end
21720219820Sjeff_ACEOF
21721219820Sjeff# If some macros were called several times there might be several times
21722219820Sjeff# the same #defines, which is useless.  Nevertheless, we may not want to
21723219820Sjeff# sort them, since we want the *last* AC-DEFINE to be honored.
21724219820Sjeffuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21725219820Sjeffsed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21726219820Sjeffrm -f confdef2sed.sed
21727219820Sjeff
21728219820Sjeff# This sed command replaces #undef with comments.  This is necessary, for
21729219820Sjeff# example, in the case of _POSIX_SOURCE, which is predefined and required
21730219820Sjeff# on some systems where configure will not decide to define it.
21731219820Sjeffcat >>conftest.undefs <<\_ACEOF
21732219820Sjeffs,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21733219820Sjeff_ACEOF
21734219820Sjeff
21735219820Sjeff# Break up conftest.defines because some shells have a limit on the size
21736219820Sjeff# of here documents, and old seds have small limits too (100 cmds).
21737219820Sjeffecho '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21738219820Sjeffecho '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21739219820Sjeffecho '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21740219820Sjeffecho '  :' >>$CONFIG_STATUS
21741219820Sjeffrm -f conftest.tail
21742219820Sjeffwhile grep . conftest.defines >/dev/null
21743219820Sjeffdo
21744219820Sjeff  # Write a limited-size here document to $tmp/defines.sed.
21745219820Sjeff  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21746219820Sjeff  # Speed up: don't consider the non `#define' lines.
21747219820Sjeff  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21748219820Sjeff  # Work around the forget-to-reset-the-flag bug.
21749219820Sjeff  echo 't clr' >>$CONFIG_STATUS
21750219820Sjeff  echo ': clr' >>$CONFIG_STATUS
21751219820Sjeff  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21752219820Sjeff  echo 'CEOF
21753219820Sjeff  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21754219820Sjeff  rm -f $tmp/in
21755219820Sjeff  mv $tmp/out $tmp/in
21756219820Sjeff' >>$CONFIG_STATUS
21757219820Sjeff  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21758219820Sjeff  rm -f conftest.defines
21759219820Sjeff  mv conftest.tail conftest.defines
21760219820Sjeffdone
21761219820Sjeffrm -f conftest.defines
21762219820Sjeffecho '  fi # grep' >>$CONFIG_STATUS
21763219820Sjeffecho >>$CONFIG_STATUS
21764219820Sjeff
21765219820Sjeff# Break up conftest.undefs because some shells have a limit on the size
21766219820Sjeff# of here documents, and old seds have small limits too (100 cmds).
21767219820Sjeffecho '  # Handle all the #undef templates' >>$CONFIG_STATUS
21768219820Sjeffrm -f conftest.tail
21769219820Sjeffwhile grep . conftest.undefs >/dev/null
21770219820Sjeffdo
21771219820Sjeff  # Write a limited-size here document to $tmp/undefs.sed.
21772219820Sjeff  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21773219820Sjeff  # Speed up: don't consider the non `#undef'
21774219820Sjeff  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21775219820Sjeff  # Work around the forget-to-reset-the-flag bug.
21776219820Sjeff  echo 't clr' >>$CONFIG_STATUS
21777219820Sjeff  echo ': clr' >>$CONFIG_STATUS
21778219820Sjeff  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21779219820Sjeff  echo 'CEOF
21780219820Sjeff  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21781219820Sjeff  rm -f $tmp/in
21782219820Sjeff  mv $tmp/out $tmp/in
21783219820Sjeff' >>$CONFIG_STATUS
21784219820Sjeff  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21785219820Sjeff  rm -f conftest.undefs
21786219820Sjeff  mv conftest.tail conftest.undefs
21787219820Sjeffdone
21788219820Sjeffrm -f conftest.undefs
21789219820Sjeff
21790219820Sjeffcat >>$CONFIG_STATUS <<\_ACEOF
21791219820Sjeff  # Let's still pretend it is `configure' which instantiates (i.e., don't
21792219820Sjeff  # use $as_me), people would be surprised to read:
21793219820Sjeff  #    /* config.h.  Generated by config.status.  */
21794219820Sjeff  if test x"$ac_file" = x-; then
21795219820Sjeff    echo "/* Generated by configure.  */" >$tmp/config.h
21796219820Sjeff  else
21797219820Sjeff    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21798219820Sjeff  fi
21799219820Sjeff  cat $tmp/in >>$tmp/config.h
21800219820Sjeff  rm -f $tmp/in
21801219820Sjeff  if test x"$ac_file" != x-; then
21802219820Sjeff    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21803219820Sjeff      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21804219820Sjeffecho "$as_me: $ac_file is unchanged" >&6;}
21805219820Sjeff    else
21806219820Sjeff      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21807219820Sjeff$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21808219820Sjeff	 X"$ac_file" : 'X\(//\)[^/]' \| \
21809219820Sjeff	 X"$ac_file" : 'X\(//\)$' \| \
21810219820Sjeff	 X"$ac_file" : 'X\(/\)' \| \
21811219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
21812219820Sjeffecho X"$ac_file" |
21813219820Sjeff    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21814219820Sjeff  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21815219820Sjeff  	  /^X\(\/\/\)$/{ s//\1/; q; }
21816219820Sjeff  	  /^X\(\/\).*/{ s//\1/; q; }
21817219820Sjeff  	  s/.*/./; q'`
21818219820Sjeff      { if $as_mkdir_p; then
21819219820Sjeff    mkdir -p "$ac_dir"
21820219820Sjeff  else
21821219820Sjeff    as_dir="$ac_dir"
21822219820Sjeff    as_dirs=
21823219820Sjeff    while test ! -d "$as_dir"; do
21824219820Sjeff      as_dirs="$as_dir $as_dirs"
21825219820Sjeff      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21826219820Sjeff$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21827219820Sjeff	 X"$as_dir" : 'X\(//\)[^/]' \| \
21828219820Sjeff	 X"$as_dir" : 'X\(//\)$' \| \
21829219820Sjeff	 X"$as_dir" : 'X\(/\)' \| \
21830219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
21831219820Sjeffecho X"$as_dir" |
21832219820Sjeff    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21833219820Sjeff  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21834219820Sjeff  	  /^X\(\/\/\)$/{ s//\1/; q; }
21835219820Sjeff  	  /^X\(\/\).*/{ s//\1/; q; }
21836219820Sjeff  	  s/.*/./; q'`
21837219820Sjeff    done
21838219820Sjeff    test ! -n "$as_dirs" || mkdir $as_dirs
21839219820Sjeff  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21840219820Sjeffecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21841219820Sjeff   { (exit 1); exit 1; }; }; }
21842219820Sjeff
21843219820Sjeff      rm -f $ac_file
21844219820Sjeff      mv $tmp/config.h $ac_file
21845219820Sjeff    fi
21846219820Sjeff  else
21847219820Sjeff    cat $tmp/config.h
21848219820Sjeff    rm -f $tmp/config.h
21849219820Sjeff  fi
21850219820Sjeff# Compute $ac_file's index in $config_headers.
21851219820Sjeff_am_stamp_count=1
21852219820Sjefffor _am_header in $config_headers :; do
21853219820Sjeff  case $_am_header in
21854219820Sjeff    $ac_file | $ac_file:* )
21855219820Sjeff      break ;;
21856219820Sjeff    * )
21857219820Sjeff      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21858219820Sjeff  esac
21859219820Sjeffdone
21860219820Sjeffecho "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21861219820Sjeff$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21862219820Sjeff	 X$ac_file : 'X\(//\)[^/]' \| \
21863219820Sjeff	 X$ac_file : 'X\(//\)$' \| \
21864219820Sjeff	 X$ac_file : 'X\(/\)' \| \
21865219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
21866219820Sjeffecho X$ac_file |
21867219820Sjeff    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21868219820Sjeff  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21869219820Sjeff  	  /^X\(\/\/\)$/{ s//\1/; q; }
21870219820Sjeff  	  /^X\(\/\).*/{ s//\1/; q; }
21871219820Sjeff  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21872219820Sjeffdone
21873219820Sjeff_ACEOF
21874219820Sjeffcat >>$CONFIG_STATUS <<\_ACEOF
21875219820Sjeff
21876219820Sjeff#
21877219820Sjeff# CONFIG_COMMANDS section.
21878219820Sjeff#
21879219820Sjefffor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21880219820Sjeff  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21881219820Sjeff  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21882219820Sjeff  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21883219820Sjeff$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21884219820Sjeff	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21885219820Sjeff	 X"$ac_dest" : 'X\(//\)$' \| \
21886219820Sjeff	 X"$ac_dest" : 'X\(/\)' \| \
21887219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
21888219820Sjeffecho X"$ac_dest" |
21889219820Sjeff    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21890219820Sjeff  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21891219820Sjeff  	  /^X\(\/\/\)$/{ s//\1/; q; }
21892219820Sjeff  	  /^X\(\/\).*/{ s//\1/; q; }
21893219820Sjeff  	  s/.*/./; q'`
21894219820Sjeff  { if $as_mkdir_p; then
21895219820Sjeff    mkdir -p "$ac_dir"
21896219820Sjeff  else
21897219820Sjeff    as_dir="$ac_dir"
21898219820Sjeff    as_dirs=
21899219820Sjeff    while test ! -d "$as_dir"; do
21900219820Sjeff      as_dirs="$as_dir $as_dirs"
21901219820Sjeff      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21902219820Sjeff$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21903219820Sjeff	 X"$as_dir" : 'X\(//\)[^/]' \| \
21904219820Sjeff	 X"$as_dir" : 'X\(//\)$' \| \
21905219820Sjeff	 X"$as_dir" : 'X\(/\)' \| \
21906219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
21907219820Sjeffecho X"$as_dir" |
21908219820Sjeff    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21909219820Sjeff  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21910219820Sjeff  	  /^X\(\/\/\)$/{ s//\1/; q; }
21911219820Sjeff  	  /^X\(\/\).*/{ s//\1/; q; }
21912219820Sjeff  	  s/.*/./; q'`
21913219820Sjeff    done
21914219820Sjeff    test ! -n "$as_dirs" || mkdir $as_dirs
21915219820Sjeff  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21916219820Sjeffecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21917219820Sjeff   { (exit 1); exit 1; }; }; }
21918219820Sjeff
21919219820Sjeff  ac_builddir=.
21920219820Sjeff
21921219820Sjeffif test "$ac_dir" != .; then
21922219820Sjeff  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21923219820Sjeff  # A "../" for each directory in $ac_dir_suffix.
21924219820Sjeff  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21925219820Sjeffelse
21926219820Sjeff  ac_dir_suffix= ac_top_builddir=
21927219820Sjefffi
21928219820Sjeff
21929219820Sjeffcase $srcdir in
21930219820Sjeff  .)  # No --srcdir option.  We are building in place.
21931219820Sjeff    ac_srcdir=.
21932219820Sjeff    if test -z "$ac_top_builddir"; then
21933219820Sjeff       ac_top_srcdir=.
21934219820Sjeff    else
21935219820Sjeff       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21936219820Sjeff    fi ;;
21937219820Sjeff  [\\/]* | ?:[\\/]* )  # Absolute path.
21938219820Sjeff    ac_srcdir=$srcdir$ac_dir_suffix;
21939219820Sjeff    ac_top_srcdir=$srcdir ;;
21940219820Sjeff  *) # Relative path.
21941219820Sjeff    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21942219820Sjeff    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21943219820Sjeffesac
21944219820Sjeff
21945219820Sjeff# Do not use `cd foo && pwd` to compute absolute paths, because
21946219820Sjeff# the directories may not exist.
21947219820Sjeffcase `pwd` in
21948219820Sjeff.) ac_abs_builddir="$ac_dir";;
21949219820Sjeff*)
21950219820Sjeff  case "$ac_dir" in
21951219820Sjeff  .) ac_abs_builddir=`pwd`;;
21952219820Sjeff  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21953219820Sjeff  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21954219820Sjeff  esac;;
21955219820Sjeffesac
21956219820Sjeffcase $ac_abs_builddir in
21957219820Sjeff.) ac_abs_top_builddir=${ac_top_builddir}.;;
21958219820Sjeff*)
21959219820Sjeff  case ${ac_top_builddir}. in
21960219820Sjeff  .) ac_abs_top_builddir=$ac_abs_builddir;;
21961219820Sjeff  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21962219820Sjeff  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21963219820Sjeff  esac;;
21964219820Sjeffesac
21965219820Sjeffcase $ac_abs_builddir in
21966219820Sjeff.) ac_abs_srcdir=$ac_srcdir;;
21967219820Sjeff*)
21968219820Sjeff  case $ac_srcdir in
21969219820Sjeff  .) ac_abs_srcdir=$ac_abs_builddir;;
21970219820Sjeff  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21971219820Sjeff  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21972219820Sjeff  esac;;
21973219820Sjeffesac
21974219820Sjeffcase $ac_abs_builddir in
21975219820Sjeff.) ac_abs_top_srcdir=$ac_top_srcdir;;
21976219820Sjeff*)
21977219820Sjeff  case $ac_top_srcdir in
21978219820Sjeff  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21979219820Sjeff  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21980219820Sjeff  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21981219820Sjeff  esac;;
21982219820Sjeffesac
21983219820Sjeff
21984219820Sjeff
21985219820Sjeff  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21986219820Sjeffecho "$as_me: executing $ac_dest commands" >&6;}
21987219820Sjeff  case $ac_dest in
21988219820Sjeff    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21989219820Sjeff  # Strip MF so we end up with the name of the file.
21990219820Sjeff  mf=`echo "$mf" | sed -e 's/:.*$//'`
21991219820Sjeff  # Check whether this is an Automake generated Makefile or not.
21992219820Sjeff  # We used to match only the files named `Makefile.in', but
21993219820Sjeff  # some people rename them; so instead we look at the file content.
21994219820Sjeff  # Grep'ing the first line is not enough: some people post-process
21995219820Sjeff  # each Makefile.in and add a new line on top of each file to say so.
21996219820Sjeff  # So let's grep whole file.
21997219820Sjeff  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21998219820Sjeff    dirpart=`(dirname "$mf") 2>/dev/null ||
21999219820Sjeff$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22000219820Sjeff	 X"$mf" : 'X\(//\)[^/]' \| \
22001219820Sjeff	 X"$mf" : 'X\(//\)$' \| \
22002219820Sjeff	 X"$mf" : 'X\(/\)' \| \
22003219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
22004219820Sjeffecho X"$mf" |
22005219820Sjeff    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22006219820Sjeff  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22007219820Sjeff  	  /^X\(\/\/\)$/{ s//\1/; q; }
22008219820Sjeff  	  /^X\(\/\).*/{ s//\1/; q; }
22009219820Sjeff  	  s/.*/./; q'`
22010219820Sjeff  else
22011219820Sjeff    continue
22012219820Sjeff  fi
22013219820Sjeff  # Extract the definition of DEPDIR, am__include, and am__quote
22014219820Sjeff  # from the Makefile without running `make'.
22015219820Sjeff  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22016219820Sjeff  test -z "$DEPDIR" && continue
22017219820Sjeff  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22018219820Sjeff  test -z "am__include" && continue
22019219820Sjeff  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22020219820Sjeff  # When using ansi2knr, U may be empty or an underscore; expand it
22021219820Sjeff  U=`sed -n 's/^U = //p' < "$mf"`
22022219820Sjeff  # Find all dependency output files, they are included files with
22023219820Sjeff  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22024219820Sjeff  # simplest approach to changing $(DEPDIR) to its actual value in the
22025219820Sjeff  # expansion.
22026219820Sjeff  for file in `sed -n "
22027219820Sjeff    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22028219820Sjeff       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22029219820Sjeff    # Make sure the directory exists.
22030219820Sjeff    test -f "$dirpart/$file" && continue
22031219820Sjeff    fdir=`(dirname "$file") 2>/dev/null ||
22032219820Sjeff$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22033219820Sjeff	 X"$file" : 'X\(//\)[^/]' \| \
22034219820Sjeff	 X"$file" : 'X\(//\)$' \| \
22035219820Sjeff	 X"$file" : 'X\(/\)' \| \
22036219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
22037219820Sjeffecho X"$file" |
22038219820Sjeff    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22039219820Sjeff  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22040219820Sjeff  	  /^X\(\/\/\)$/{ s//\1/; q; }
22041219820Sjeff  	  /^X\(\/\).*/{ s//\1/; q; }
22042219820Sjeff  	  s/.*/./; q'`
22043219820Sjeff    { if $as_mkdir_p; then
22044219820Sjeff    mkdir -p $dirpart/$fdir
22045219820Sjeff  else
22046219820Sjeff    as_dir=$dirpart/$fdir
22047219820Sjeff    as_dirs=
22048219820Sjeff    while test ! -d "$as_dir"; do
22049219820Sjeff      as_dirs="$as_dir $as_dirs"
22050219820Sjeff      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22051219820Sjeff$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22052219820Sjeff	 X"$as_dir" : 'X\(//\)[^/]' \| \
22053219820Sjeff	 X"$as_dir" : 'X\(//\)$' \| \
22054219820Sjeff	 X"$as_dir" : 'X\(/\)' \| \
22055219820Sjeff	 .     : '\(.\)' 2>/dev/null ||
22056219820Sjeffecho X"$as_dir" |
22057219820Sjeff    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22058219820Sjeff  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22059219820Sjeff  	  /^X\(\/\/\)$/{ s//\1/; q; }
22060219820Sjeff  	  /^X\(\/\).*/{ s//\1/; q; }
22061219820Sjeff  	  s/.*/./; q'`
22062219820Sjeff    done
22063219820Sjeff    test ! -n "$as_dirs" || mkdir $as_dirs
22064219820Sjeff  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22065219820Sjeffecho "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22066219820Sjeff   { (exit 1); exit 1; }; }; }
22067219820Sjeff
22068219820Sjeff    # echo "creating $dirpart/$file"
22069219820Sjeff    echo '# dummy' > "$dirpart/$file"
22070219820Sjeff  done
22071219820Sjeffdone
22072219820Sjeff ;;
22073219820Sjeff  esac
22074219820Sjeffdone
22075219820Sjeff_ACEOF
22076219820Sjeff
22077219820Sjeffcat >>$CONFIG_STATUS <<\_ACEOF
22078219820Sjeff
22079219820Sjeff{ (exit 0); exit 0; }
22080219820Sjeff_ACEOF
22081219820Sjeffchmod +x $CONFIG_STATUS
22082219820Sjeffac_clean_files=$ac_clean_files_save
22083219820Sjeff
22084219820Sjeff
22085219820Sjeff# configure is writing to config.log, and then calls config.status.
22086219820Sjeff# config.status does its own redirection, appending to config.log.
22087219820Sjeff# Unfortunately, on DOS this fails, as config.log is still kept open
22088219820Sjeff# by configure, so config.status won't be able to write to it; its
22089219820Sjeff# output is simply discarded.  So we exec the FD to /dev/null,
22090219820Sjeff# effectively closing config.log, so it can be properly (re)opened and
22091219820Sjeff# appended to by config.status.  When coming back to configure, we
22092219820Sjeff# need to make the FD available again.
22093219820Sjeffif test "$no_create" != yes; then
22094219820Sjeff  ac_cs_success=:
22095219820Sjeff  ac_config_status_args=
22096219820Sjeff  test "$silent" = yes &&
22097219820Sjeff    ac_config_status_args="$ac_config_status_args --quiet"
22098219820Sjeff  exec 5>/dev/null
22099219820Sjeff  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22100219820Sjeff  exec 5>>config.log
22101219820Sjeff  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22102219820Sjeff  # would make configure fail if this is the last instruction.
22103219820Sjeff  $ac_cs_success || { (exit 1); exit 1; }
22104219820Sjefffi
22105219820Sjeff
22106