configure revision 47e89262
1bd1da9d7Smrg#! /bin/sh
2bd1da9d7Smrg# Guess values for system-dependent variables and create Makefiles.
347e89262Smrg# Generated by GNU Autoconf 2.68 for libXres 1.0.5.
4bd1da9d7Smrg#
5bd1da9d7Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6bd1da9d7Smrg#
747e89262Smrg#
8bd1da9d7Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
947e89262Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
1047e89262Smrg# Foundation, Inc.
1147e89262Smrg#
1247e89262Smrg#
13bd1da9d7Smrg# This configure script is free software; the Free Software Foundation
14bd1da9d7Smrg# gives unlimited permission to copy, distribute and modify it.
1547e89262Smrg## -------------------- ##
1647e89262Smrg## M4sh Initialization. ##
1747e89262Smrg## -------------------- ##
18bd1da9d7Smrg
195bcb6992Smrg# Be more Bourne compatible
205bcb6992SmrgDUALCASE=1; export DUALCASE # for MKS sh
2147e89262Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22bd1da9d7Smrg  emulate sh
23bd1da9d7Smrg  NULLCMD=:
245bcb6992Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25bd1da9d7Smrg  # is contrary to our usage.  Disable this feature.
26bd1da9d7Smrg  alias -g '${1+"$@"}'='"$@"'
27bd1da9d7Smrg  setopt NO_GLOB_SUBST
28bd1da9d7Smrgelse
2947e89262Smrg  case `(set -o) 2>/dev/null` in #(
3047e89262Smrg  *posix*) :
3147e89262Smrg    set -o posix ;; #(
3247e89262Smrg  *) :
3347e89262Smrg     ;;
345bcb6992Smrgesac
35bd1da9d7Smrgfi
365bcb6992Smrg
375bcb6992Smrg
385bcb6992Smrgas_nl='
395bcb6992Smrg'
405bcb6992Smrgexport as_nl
415bcb6992Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
425bcb6992Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
435bcb6992Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
445bcb6992Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4547e89262Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4647e89262Smrg# but without wasting forks for bash or zsh.
4747e89262Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4847e89262Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4947e89262Smrg  as_echo='print -r --'
5047e89262Smrg  as_echo_n='print -rn --'
5147e89262Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
525bcb6992Smrg  as_echo='printf %s\n'
535bcb6992Smrg  as_echo_n='printf %s'
545bcb6992Smrgelse
555bcb6992Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
565bcb6992Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
575bcb6992Smrg    as_echo_n='/usr/ucb/echo -n'
58bd1da9d7Smrg  else
595bcb6992Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
605bcb6992Smrg    as_echo_n_body='eval
615bcb6992Smrg      arg=$1;
6247e89262Smrg      case $arg in #(
635bcb6992Smrg      *"$as_nl"*)
645bcb6992Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
655bcb6992Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
665bcb6992Smrg      esac;
675bcb6992Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
685bcb6992Smrg    '
695bcb6992Smrg    export as_echo_n_body
705bcb6992Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71bd1da9d7Smrg  fi
725bcb6992Smrg  export as_echo_body
735bcb6992Smrg  as_echo='sh -c $as_echo_body as_echo'
745bcb6992Smrgfi
755bcb6992Smrg
765bcb6992Smrg# The user is always right.
775bcb6992Smrgif test "${PATH_SEPARATOR+set}" != set; then
785bcb6992Smrg  PATH_SEPARATOR=:
795bcb6992Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
805bcb6992Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
815bcb6992Smrg      PATH_SEPARATOR=';'
825bcb6992Smrg  }
83bd1da9d7Smrgfi
84bd1da9d7Smrg
85bd1da9d7Smrg
86bd1da9d7Smrg# IFS
87bd1da9d7Smrg# We need space, tab and new line, in precisely that order.  Quoting is
88bd1da9d7Smrg# there to prevent editors from complaining about space-tab.
89bd1da9d7Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90bd1da9d7Smrg# splitting by setting IFS to empty value.)
91bd1da9d7SmrgIFS=" ""	$as_nl"
92bd1da9d7Smrg
93bd1da9d7Smrg# Find who we are.  Look in the path if we contain no directory separator.
9447e89262Smrgas_myself=
9547e89262Smrgcase $0 in #((
96bd1da9d7Smrg  *[\\/]* ) as_myself=$0 ;;
97bd1da9d7Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98bd1da9d7Smrgfor as_dir in $PATH
99bd1da9d7Smrgdo
100bd1da9d7Smrg  IFS=$as_save_IFS
101bd1da9d7Smrg  test -z "$as_dir" && as_dir=.
10247e89262Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10347e89262Smrg  done
104bd1da9d7SmrgIFS=$as_save_IFS
105bd1da9d7Smrg
106bd1da9d7Smrg     ;;
107bd1da9d7Smrgesac
108bd1da9d7Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109bd1da9d7Smrg# in which case we are not to be found in the path.
110bd1da9d7Smrgif test "x$as_myself" = x; then
111bd1da9d7Smrg  as_myself=$0
112bd1da9d7Smrgfi
113bd1da9d7Smrgif test ! -f "$as_myself"; then
1145bcb6992Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11547e89262Smrg  exit 1
116bd1da9d7Smrgfi
117bd1da9d7Smrg
11847e89262Smrg# Unset variables that we do not need and which cause bugs (e.g. in
11947e89262Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12047e89262Smrg# suppresses any "Segmentation fault" message there.  '((' could
12147e89262Smrg# trigger a bug in pdksh 5.2.14.
12247e89262Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
12347e89262Smrgdo eval test x\${$as_var+set} = xset \
12447e89262Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125bd1da9d7Smrgdone
126bd1da9d7SmrgPS1='$ '
127bd1da9d7SmrgPS2='> '
128bd1da9d7SmrgPS4='+ '
129bd1da9d7Smrg
130bd1da9d7Smrg# NLS nuisances.
1315bcb6992SmrgLC_ALL=C
1325bcb6992Smrgexport LC_ALL
1335bcb6992SmrgLANGUAGE=C
1345bcb6992Smrgexport LANGUAGE
135bd1da9d7Smrg
13647e89262Smrg# CDPATH.
13747e89262Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13847e89262Smrg
13947e89262Smrgif test "x$CONFIG_SHELL" = x; then
14047e89262Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
14147e89262Smrg  emulate sh
14247e89262Smrg  NULLCMD=:
14347e89262Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14447e89262Smrg  # is contrary to our usage.  Disable this feature.
14547e89262Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
14647e89262Smrg  setopt NO_GLOB_SUBST
14747e89262Smrgelse
14847e89262Smrg  case \`(set -o) 2>/dev/null\` in #(
14947e89262Smrg  *posix*) :
15047e89262Smrg    set -o posix ;; #(
15147e89262Smrg  *) :
15247e89262Smrg     ;;
15347e89262Smrgesac
15447e89262Smrgfi
15547e89262Smrg"
15647e89262Smrg  as_required="as_fn_return () { (exit \$1); }
15747e89262Smrgas_fn_success () { as_fn_return 0; }
15847e89262Smrgas_fn_failure () { as_fn_return 1; }
15947e89262Smrgas_fn_ret_success () { return 0; }
16047e89262Smrgas_fn_ret_failure () { return 1; }
16147e89262Smrg
16247e89262Smrgexitcode=0
16347e89262Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16447e89262Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
16547e89262Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
16647e89262Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
16747e89262Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
16847e89262Smrg
16947e89262Smrgelse
17047e89262Smrg  exitcode=1; echo positional parameters were not saved.
17147e89262Smrgfi
17247e89262Smrgtest x\$exitcode = x0 || exit 1"
17347e89262Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
17447e89262Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
17547e89262Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
17647e89262Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
17747e89262Smrg
17847e89262Smrg  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
17947e89262Smrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18047e89262Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
18147e89262Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
18247e89262Smrg    PATH=/empty FPATH=/empty; export PATH FPATH
18347e89262Smrg    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
18447e89262Smrg      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
18547e89262Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
18647e89262Smrg  if (eval "$as_required") 2>/dev/null; then :
18747e89262Smrg  as_have_required=yes
18847e89262Smrgelse
18947e89262Smrg  as_have_required=no
19047e89262Smrgfi
19147e89262Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
19247e89262Smrg
19347e89262Smrgelse
19447e89262Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19547e89262Smrgas_found=false
19647e89262Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19747e89262Smrgdo
19847e89262Smrg  IFS=$as_save_IFS
19947e89262Smrg  test -z "$as_dir" && as_dir=.
20047e89262Smrg  as_found=:
20147e89262Smrg  case $as_dir in #(
20247e89262Smrg	 /*)
20347e89262Smrg	   for as_base in sh bash ksh sh5; do
20447e89262Smrg	     # Try only shells that exist, to save several forks.
20547e89262Smrg	     as_shell=$as_dir/$as_base
20647e89262Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
20747e89262Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
20847e89262Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
20947e89262Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
21047e89262Smrg  break 2
21147e89262Smrgfi
21247e89262Smrgfi
21347e89262Smrg	   done;;
21447e89262Smrg       esac
21547e89262Smrg  as_found=false
21647e89262Smrgdone
21747e89262Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
21847e89262Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
21947e89262Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
22047e89262Smrgfi; }
22147e89262SmrgIFS=$as_save_IFS
22247e89262Smrg
22347e89262Smrg
22447e89262Smrg      if test "x$CONFIG_SHELL" != x; then :
22547e89262Smrg  # We cannot yet assume a decent shell, so we have to provide a
22647e89262Smrg	# neutralization value for shells without unset; and this also
22747e89262Smrg	# works around shells that cannot unset nonexistent variables.
22847e89262Smrg	# Preserve -v and -x to the replacement shell.
22947e89262Smrg	BASH_ENV=/dev/null
23047e89262Smrg	ENV=/dev/null
23147e89262Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
23247e89262Smrg	export CONFIG_SHELL
23347e89262Smrg	case $- in # ((((
23447e89262Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
23547e89262Smrg	  *v* ) as_opts=-v ;;
23647e89262Smrg	  *x* ) as_opts=-x ;;
23747e89262Smrg	  * ) as_opts= ;;
23847e89262Smrg	esac
23947e89262Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
24047e89262Smrgfi
24147e89262Smrg
24247e89262Smrg    if test x$as_have_required = xno; then :
24347e89262Smrg  $as_echo "$0: This script requires a shell more modern than all"
24447e89262Smrg  $as_echo "$0: the shells that I found on your system."
24547e89262Smrg  if test x${ZSH_VERSION+set} = xset ; then
24647e89262Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
24747e89262Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
24847e89262Smrg  else
24947e89262Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
25047e89262Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
25147e89262Smrg$0: about your system, including any error possibly output
25247e89262Smrg$0: before this message. Then install a modern shell, or
25347e89262Smrg$0: manually run the script under such a shell if you do
25447e89262Smrg$0: have one."
25547e89262Smrg  fi
25647e89262Smrg  exit 1
25747e89262Smrgfi
25847e89262Smrgfi
25947e89262Smrgfi
26047e89262SmrgSHELL=${CONFIG_SHELL-/bin/sh}
26147e89262Smrgexport SHELL
26247e89262Smrg# Unset more variables known to interfere with behavior of common tools.
26347e89262SmrgCLICOLOR_FORCE= GREP_OPTIONS=
26447e89262Smrgunset CLICOLOR_FORCE GREP_OPTIONS
26547e89262Smrg
26647e89262Smrg## --------------------- ##
26747e89262Smrg## M4sh Shell Functions. ##
26847e89262Smrg## --------------------- ##
26947e89262Smrg# as_fn_unset VAR
27047e89262Smrg# ---------------
27147e89262Smrg# Portably unset VAR.
27247e89262Smrgas_fn_unset ()
27347e89262Smrg{
27447e89262Smrg  { eval $1=; unset $1;}
27547e89262Smrg}
27647e89262Smrgas_unset=as_fn_unset
27747e89262Smrg
27847e89262Smrg# as_fn_set_status STATUS
27947e89262Smrg# -----------------------
28047e89262Smrg# Set $? to STATUS, without forking.
28147e89262Smrgas_fn_set_status ()
28247e89262Smrg{
28347e89262Smrg  return $1
28447e89262Smrg} # as_fn_set_status
28547e89262Smrg
28647e89262Smrg# as_fn_exit STATUS
28747e89262Smrg# -----------------
28847e89262Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28947e89262Smrgas_fn_exit ()
29047e89262Smrg{
29147e89262Smrg  set +e
29247e89262Smrg  as_fn_set_status $1
29347e89262Smrg  exit $1
29447e89262Smrg} # as_fn_exit
29547e89262Smrg
29647e89262Smrg# as_fn_mkdir_p
29747e89262Smrg# -------------
29847e89262Smrg# Create "$as_dir" as a directory, including parents if necessary.
29947e89262Smrgas_fn_mkdir_p ()
30047e89262Smrg{
30147e89262Smrg
30247e89262Smrg  case $as_dir in #(
30347e89262Smrg  -*) as_dir=./$as_dir;;
30447e89262Smrg  esac
30547e89262Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
30647e89262Smrg    as_dirs=
30747e89262Smrg    while :; do
30847e89262Smrg      case $as_dir in #(
30947e89262Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31047e89262Smrg      *) as_qdir=$as_dir;;
31147e89262Smrg      esac
31247e89262Smrg      as_dirs="'$as_qdir' $as_dirs"
31347e89262Smrg      as_dir=`$as_dirname -- "$as_dir" ||
31447e89262Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31547e89262Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
31647e89262Smrg	 X"$as_dir" : 'X\(//\)$' \| \
31747e89262Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31847e89262Smrg$as_echo X"$as_dir" |
31947e89262Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32047e89262Smrg	    s//\1/
32147e89262Smrg	    q
32247e89262Smrg	  }
32347e89262Smrg	  /^X\(\/\/\)[^/].*/{
32447e89262Smrg	    s//\1/
32547e89262Smrg	    q
32647e89262Smrg	  }
32747e89262Smrg	  /^X\(\/\/\)$/{
32847e89262Smrg	    s//\1/
32947e89262Smrg	    q
33047e89262Smrg	  }
33147e89262Smrg	  /^X\(\/\).*/{
33247e89262Smrg	    s//\1/
33347e89262Smrg	    q
33447e89262Smrg	  }
33547e89262Smrg	  s/.*/./; q'`
33647e89262Smrg      test -d "$as_dir" && break
33747e89262Smrg    done
33847e89262Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
33947e89262Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34047e89262Smrg
34147e89262Smrg
34247e89262Smrg} # as_fn_mkdir_p
34347e89262Smrg# as_fn_append VAR VALUE
34447e89262Smrg# ----------------------
34547e89262Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
34647e89262Smrg# advantage of any shell optimizations that allow amortized linear growth over
34747e89262Smrg# repeated appends, instead of the typical quadratic growth present in naive
34847e89262Smrg# implementations.
34947e89262Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35047e89262Smrg  eval 'as_fn_append ()
35147e89262Smrg  {
35247e89262Smrg    eval $1+=\$2
35347e89262Smrg  }'
35447e89262Smrgelse
35547e89262Smrg  as_fn_append ()
35647e89262Smrg  {
35747e89262Smrg    eval $1=\$$1\$2
35847e89262Smrg  }
35947e89262Smrgfi # as_fn_append
36047e89262Smrg
36147e89262Smrg# as_fn_arith ARG...
36247e89262Smrg# ------------------
36347e89262Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
36447e89262Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
36547e89262Smrg# must be portable across $(()) and expr.
36647e89262Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36747e89262Smrg  eval 'as_fn_arith ()
36847e89262Smrg  {
36947e89262Smrg    as_val=$(( $* ))
37047e89262Smrg  }'
37147e89262Smrgelse
37247e89262Smrg  as_fn_arith ()
37347e89262Smrg  {
37447e89262Smrg    as_val=`expr "$@" || test $? -eq 1`
37547e89262Smrg  }
37647e89262Smrgfi # as_fn_arith
37747e89262Smrg
37847e89262Smrg
37947e89262Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
38047e89262Smrg# ----------------------------------------
38147e89262Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
38247e89262Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
38347e89262Smrg# script with STATUS, using 1 if that was 0.
38447e89262Smrgas_fn_error ()
38547e89262Smrg{
38647e89262Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
38747e89262Smrg  if test "$4"; then
38847e89262Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
38947e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
39047e89262Smrg  fi
39147e89262Smrg  $as_echo "$as_me: error: $2" >&2
39247e89262Smrg  as_fn_exit $as_status
39347e89262Smrg} # as_fn_error
39447e89262Smrg
395bd1da9d7Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
396bd1da9d7Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397bd1da9d7Smrg  as_expr=expr
398bd1da9d7Smrgelse
399bd1da9d7Smrg  as_expr=false
400bd1da9d7Smrgfi
401bd1da9d7Smrg
402bd1da9d7Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403bd1da9d7Smrg  as_basename=basename
404bd1da9d7Smrgelse
405bd1da9d7Smrg  as_basename=false
406bd1da9d7Smrgfi
407bd1da9d7Smrg
40847e89262Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40947e89262Smrg  as_dirname=dirname
41047e89262Smrgelse
41147e89262Smrg  as_dirname=false
41247e89262Smrgfi
413bd1da9d7Smrg
414bd1da9d7Smrgas_me=`$as_basename -- "$0" ||
415bd1da9d7Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416bd1da9d7Smrg	 X"$0" : 'X\(//\)$' \| \
417bd1da9d7Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4185bcb6992Smrg$as_echo X/"$0" |
419bd1da9d7Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
420bd1da9d7Smrg	    s//\1/
421bd1da9d7Smrg	    q
422bd1da9d7Smrg	  }
423bd1da9d7Smrg	  /^X\/\(\/\/\)$/{
424bd1da9d7Smrg	    s//\1/
425bd1da9d7Smrg	    q
426bd1da9d7Smrg	  }
427bd1da9d7Smrg	  /^X\/\(\/\).*/{
428bd1da9d7Smrg	    s//\1/
429bd1da9d7Smrg	    q
430bd1da9d7Smrg	  }
431bd1da9d7Smrg	  s/.*/./; q'`
432bd1da9d7Smrg
43347e89262Smrg# Avoid depending upon Character Ranges.
43447e89262Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
43547e89262Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43647e89262Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
43747e89262Smrgas_cr_digits='0123456789'
43847e89262Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
439bd1da9d7Smrg
440bd1da9d7Smrg
44147e89262Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
44247e89262Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
44347e89262Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
44447e89262Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
44547e89262Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
44647e89262Smrg  sed -n '
44747e89262Smrg    p
44847e89262Smrg    /[$]LINENO/=
44947e89262Smrg  ' <$as_myself |
45047e89262Smrg    sed '
45147e89262Smrg      s/[$]LINENO.*/&-/
45247e89262Smrg      t lineno
45347e89262Smrg      b
45447e89262Smrg      :lineno
45547e89262Smrg      N
45647e89262Smrg      :loop
45747e89262Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45847e89262Smrg      t loop
45947e89262Smrg      s/-\n.*//
46047e89262Smrg    ' >$as_me.lineno &&
46147e89262Smrg  chmod +x "$as_me.lineno" ||
46247e89262Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463bd1da9d7Smrg
46447e89262Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
46547e89262Smrg  # (the dirname of $[0] is not the place where we might find the
46647e89262Smrg  # original and so on.  Autoconf is especially sensitive to this).
46747e89262Smrg  . "./$as_me.lineno"
46847e89262Smrg  # Exit status is that of the last command.
46947e89262Smrg  exit
470bd1da9d7Smrg}
471bd1da9d7Smrg
47247e89262SmrgECHO_C= ECHO_N= ECHO_T=
47347e89262Smrgcase `echo -n x` in #(((((
47447e89262Smrg-n*)
47547e89262Smrg  case `echo 'xy\c'` in
47647e89262Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
47747e89262Smrg  xy)  ECHO_C='\c';;
47847e89262Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
47947e89262Smrg       ECHO_T='	';;
48047e89262Smrg  esac;;
48147e89262Smrg*)
48247e89262Smrg  ECHO_N='-n';;
48347e89262Smrgesac
484bd1da9d7Smrg
48547e89262Smrgrm -f conf$$ conf$$.exe conf$$.file
48647e89262Smrgif test -d conf$$.dir; then
48747e89262Smrg  rm -f conf$$.dir/conf$$.file
48847e89262Smrgelse
48947e89262Smrg  rm -f conf$$.dir
49047e89262Smrg  mkdir conf$$.dir 2>/dev/null
491bd1da9d7Smrgfi
49247e89262Smrgif (echo >conf$$.file) 2>/dev/null; then
49347e89262Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
49447e89262Smrg    as_ln_s='ln -s'
49547e89262Smrg    # ... but there are two gotchas:
49647e89262Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
49747e89262Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49847e89262Smrg    # In both cases, we have to default to `cp -p'.
49947e89262Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50047e89262Smrg      as_ln_s='cp -p'
50147e89262Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
50247e89262Smrg    as_ln_s=ln
50347e89262Smrg  else
50447e89262Smrg    as_ln_s='cp -p'
50547e89262Smrg  fi
506bd1da9d7Smrgelse
50747e89262Smrg  as_ln_s='cp -p'
508bd1da9d7Smrgfi
50947e89262Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51047e89262Smrgrmdir conf$$.dir 2>/dev/null
511bd1da9d7Smrg
51247e89262Smrgif mkdir -p . 2>/dev/null; then
51347e89262Smrg  as_mkdir_p='mkdir -p "$as_dir"'
51447e89262Smrgelse
51547e89262Smrg  test -d ./-p && rmdir ./-p
51647e89262Smrg  as_mkdir_p=false
517bd1da9d7Smrgfi
518bd1da9d7Smrg
51947e89262Smrgif test -x / >/dev/null 2>&1; then
52047e89262Smrg  as_test_x='test -x'
521bd1da9d7Smrgelse
52247e89262Smrg  if ls -dL / >/dev/null 2>&1; then
52347e89262Smrg    as_ls_L_option=L
52447e89262Smrg  else
52547e89262Smrg    as_ls_L_option=
52647e89262Smrg  fi
52747e89262Smrg  as_test_x='
52847e89262Smrg    eval sh -c '\''
52947e89262Smrg      if test -d "$1"; then
53047e89262Smrg	test -d "$1/.";
53147e89262Smrg      else
53247e89262Smrg	case $1 in #(
53347e89262Smrg	-*)set "./$1";;
53447e89262Smrg	esac;
53547e89262Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
53647e89262Smrg	???[sx]*):;;*)false;;esac;fi
53747e89262Smrg    '\'' sh
53847e89262Smrg  '
539bd1da9d7Smrgfi
54047e89262Smrgas_executable_p=$as_test_x
541bd1da9d7Smrg
54247e89262Smrg# Sed expression to map a string onto a valid CPP name.
54347e89262Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544bd1da9d7Smrg
54547e89262Smrg# Sed expression to map a string onto a valid variable name.
54647e89262Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547bd1da9d7Smrg
54847e89262SmrgSHELL=${CONFIG_SHELL-/bin/sh}
549bd1da9d7Smrg
550bd1da9d7Smrg
55147e89262Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
55247e89262Smrgexec 6>&1
553bd1da9d7Smrg
55447e89262Smrg# Name of the host.
55547e89262Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
55647e89262Smrg# so uname gets run too.
55747e89262Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558bd1da9d7Smrg
55947e89262Smrg#
56047e89262Smrg# Initializations.
56147e89262Smrg#
56247e89262Smrgac_default_prefix=/usr/local
56347e89262Smrgac_clean_files=
56447e89262Smrgac_config_libobj_dir=.
56547e89262SmrgLIBOBJS=
56647e89262Smrgcross_compiling=no
56747e89262Smrgsubdirs=
56847e89262SmrgMFLAGS=
56947e89262SmrgMAKEFLAGS=
570bd1da9d7Smrg
57147e89262Smrg# Identity of this package.
57247e89262SmrgPACKAGE_NAME='libXres'
57347e89262SmrgPACKAGE_TARNAME='libXres'
57447e89262SmrgPACKAGE_VERSION='1.0.5'
57547e89262SmrgPACKAGE_STRING='libXres 1.0.5'
57647e89262SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
57747e89262SmrgPACKAGE_URL=''
578bd1da9d7Smrg
57947e89262Smrg# Factoring default headers for most tests.
58047e89262Smrgac_includes_default="\
58147e89262Smrg#include <stdio.h>
58247e89262Smrg#ifdef HAVE_SYS_TYPES_H
58347e89262Smrg# include <sys/types.h>
58447e89262Smrg#endif
58547e89262Smrg#ifdef HAVE_SYS_STAT_H
58647e89262Smrg# include <sys/stat.h>
58747e89262Smrg#endif
58847e89262Smrg#ifdef STDC_HEADERS
58947e89262Smrg# include <stdlib.h>
59047e89262Smrg# include <stddef.h>
59147e89262Smrg#else
59247e89262Smrg# ifdef HAVE_STDLIB_H
59347e89262Smrg#  include <stdlib.h>
59447e89262Smrg# endif
59547e89262Smrg#endif
59647e89262Smrg#ifdef HAVE_STRING_H
59747e89262Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
59847e89262Smrg#  include <memory.h>
59947e89262Smrg# endif
60047e89262Smrg# include <string.h>
60147e89262Smrg#endif
60247e89262Smrg#ifdef HAVE_STRINGS_H
60347e89262Smrg# include <strings.h>
60447e89262Smrg#endif
60547e89262Smrg#ifdef HAVE_INTTYPES_H
60647e89262Smrg# include <inttypes.h>
60747e89262Smrg#endif
60847e89262Smrg#ifdef HAVE_STDINT_H
60947e89262Smrg# include <stdint.h>
61047e89262Smrg#endif
61147e89262Smrg#ifdef HAVE_UNISTD_H
61247e89262Smrg# include <unistd.h>
61347e89262Smrg#endif"
614bd1da9d7Smrg
6155bcb6992Smrgac_subst_vars='am__EXEEXT_FALSE
6165bcb6992Smrgam__EXEEXT_TRUE
6175bcb6992SmrgLTLIBOBJS
6185bcb6992SmrgLIBOBJS
6195bcb6992SmrgXTMALLOC_ZERO_CFLAGS
6205bcb6992SmrgXMALLOC_ZERO_CFLAGS
6215bcb6992SmrgMALLOC_ZERO_CFLAGS
6225bcb6992SmrgXRES_LIBS
6235bcb6992SmrgXRES_CFLAGS
62447e89262SmrgAM_BACKSLASH
62547e89262SmrgAM_DEFAULT_VERBOSITY
62647e89262SmrgMAN_SUBSTS
62747e89262SmrgXORG_MAN_PAGE
6285bcb6992SmrgADMIN_MAN_DIR
6295bcb6992SmrgDRIVER_MAN_DIR
6305bcb6992SmrgMISC_MAN_DIR
6315bcb6992SmrgFILE_MAN_DIR
6325bcb6992SmrgLIB_MAN_DIR
6335bcb6992SmrgAPP_MAN_DIR
6345bcb6992SmrgADMIN_MAN_SUFFIX
6355bcb6992SmrgDRIVER_MAN_SUFFIX
6365bcb6992SmrgMISC_MAN_SUFFIX
6375bcb6992SmrgFILE_MAN_SUFFIX
6385bcb6992SmrgLIB_MAN_SUFFIX
6395bcb6992SmrgAPP_MAN_SUFFIX
64047e89262SmrgINSTALL_CMD
64147e89262SmrgPKG_CONFIG
6425bcb6992SmrgCHANGELOG_CMD
6435bcb6992SmrgCWARNFLAGS
6445bcb6992SmrgCPP
64547e89262SmrgOTOOL64
64647e89262SmrgOTOOL
64747e89262SmrgLIPO
6485bcb6992SmrgNMEDIT
6495bcb6992SmrgDSYMUTIL
6505bcb6992SmrgRANLIB
6515bcb6992SmrgAR
65247e89262SmrgOBJDUMP
6535bcb6992SmrgLN_S
65447e89262SmrgNM
65547e89262Smrgac_ct_DUMPBIN
65647e89262SmrgDUMPBIN
65747e89262SmrgLD
65847e89262SmrgFGREP
6595bcb6992SmrgEGREP
6605bcb6992SmrgGREP
6615bcb6992SmrgSED
6625bcb6992Smrghost_os
6635bcb6992Smrghost_vendor
6645bcb6992Smrghost_cpu
6655bcb6992Smrghost
6665bcb6992Smrgbuild_os
6675bcb6992Smrgbuild_vendor
6685bcb6992Smrgbuild_cpu
6695bcb6992Smrgbuild
67047e89262SmrgLIBTOOL
6715bcb6992Smrgam__fastdepCC_FALSE
6725bcb6992Smrgam__fastdepCC_TRUE
6735bcb6992SmrgCCDEPMODE
6745bcb6992SmrgAMDEPBACKSLASH
6755bcb6992SmrgAMDEP_FALSE
6765bcb6992SmrgAMDEP_TRUE
6775bcb6992Smrgam__quote
6785bcb6992Smrgam__include
6795bcb6992SmrgDEPDIR
6805bcb6992SmrgOBJEXT
6815bcb6992SmrgEXEEXT
6825bcb6992Smrgac_ct_CC
6835bcb6992SmrgCPPFLAGS
6845bcb6992SmrgLDFLAGS
6855bcb6992SmrgCFLAGS
6865bcb6992SmrgCC
68747e89262SmrgMAINT
68847e89262SmrgMAINTAINER_MODE_FALSE
68947e89262SmrgMAINTAINER_MODE_TRUE
6905bcb6992Smrgam__untar
6915bcb6992Smrgam__tar
6925bcb6992SmrgAMTAR
6935bcb6992Smrgam__leading_dot
6945bcb6992SmrgSET_MAKE
6955bcb6992SmrgAWK
6965bcb6992Smrgmkdir_p
6975bcb6992SmrgMKDIR_P
6985bcb6992SmrgINSTALL_STRIP_PROGRAM
6995bcb6992SmrgSTRIP
7005bcb6992Smrginstall_sh
7015bcb6992SmrgMAKEINFO
7025bcb6992SmrgAUTOHEADER
7035bcb6992SmrgAUTOMAKE
7045bcb6992SmrgAUTOCONF
7055bcb6992SmrgACLOCAL
7065bcb6992SmrgVERSION
7075bcb6992SmrgPACKAGE
7085bcb6992SmrgCYGPATH_W
7095bcb6992Smrgam__isrc
7105bcb6992SmrgINSTALL_DATA
7115bcb6992SmrgINSTALL_SCRIPT
7125bcb6992SmrgINSTALL_PROGRAM
7135bcb6992Smrgtarget_alias
7145bcb6992Smrghost_alias
715bd1da9d7Smrgbuild_alias
7165bcb6992SmrgLIBS
7175bcb6992SmrgECHO_T
7185bcb6992SmrgECHO_N
7195bcb6992SmrgECHO_C
7205bcb6992SmrgDEFS
7215bcb6992Smrgmandir
7225bcb6992Smrglocaledir
7235bcb6992Smrglibdir
7245bcb6992Smrgpsdir
7255bcb6992Smrgpdfdir
7265bcb6992Smrgdvidir
7275bcb6992Smrghtmldir
7285bcb6992Smrginfodir
7295bcb6992Smrgdocdir
7305bcb6992Smrgoldincludedir
7315bcb6992Smrgincludedir
7325bcb6992Smrglocalstatedir
7335bcb6992Smrgsharedstatedir
7345bcb6992Smrgsysconfdir
7355bcb6992Smrgdatadir
7365bcb6992Smrgdatarootdir
7375bcb6992Smrglibexecdir
7385bcb6992Smrgsbindir
7395bcb6992Smrgbindir
7405bcb6992Smrgprogram_transform_name
7415bcb6992Smrgprefix
7425bcb6992Smrgexec_prefix
74347e89262SmrgPACKAGE_URL
7445bcb6992SmrgPACKAGE_BUGREPORT
7455bcb6992SmrgPACKAGE_STRING
7465bcb6992SmrgPACKAGE_VERSION
7475bcb6992SmrgPACKAGE_TARNAME
7485bcb6992SmrgPACKAGE_NAME
7495bcb6992SmrgPATH_SEPARATOR
7505bcb6992SmrgSHELL'
7515bcb6992Smrgac_subst_files=''
7525bcb6992Smrgac_user_opts='
7535bcb6992Smrgenable_option_checking
75447e89262Smrgenable_maintainer_mode
7555bcb6992Smrgenable_dependency_tracking
7565bcb6992Smrgenable_shared
7575bcb6992Smrgenable_static
75847e89262Smrgwith_pic
7595bcb6992Smrgenable_fast_install
7605bcb6992Smrgwith_gnu_ld
7615bcb6992Smrgenable_libtool_lock
7625bcb6992Smrgenable_strict_compilation
76347e89262Smrgenable_silent_rules
7645bcb6992Smrgenable_malloc0returnsnull
7655bcb6992Smrg'
7665bcb6992Smrg      ac_precious_vars='build_alias
767bd1da9d7Smrghost_alias
768bd1da9d7Smrgtarget_alias
769bd1da9d7SmrgCC
770bd1da9d7SmrgCFLAGS
771bd1da9d7SmrgLDFLAGS
7725bcb6992SmrgLIBS
773bd1da9d7SmrgCPPFLAGS
774bd1da9d7SmrgCPP
775bd1da9d7SmrgPKG_CONFIG
776bd1da9d7SmrgXRES_CFLAGS
7775bcb6992SmrgXRES_LIBS'
778bd1da9d7Smrg
779bd1da9d7Smrg
78047e89262Smrg# Initialize some variables set by options.
78147e89262Smrgac_init_help=
78247e89262Smrgac_init_version=false
78347e89262Smrgac_unrecognized_opts=
78447e89262Smrgac_unrecognized_sep=
78547e89262Smrg# The variables have the same names as the options, with
78647e89262Smrg# dashes changed to underlines.
78747e89262Smrgcache_file=/dev/null
78847e89262Smrgexec_prefix=NONE
78947e89262Smrgno_create=
79047e89262Smrgno_recursion=
79147e89262Smrgprefix=NONE
79247e89262Smrgprogram_prefix=NONE
79347e89262Smrgprogram_suffix=NONE
79447e89262Smrgprogram_transform_name=s,x,x,
79547e89262Smrgsilent=
79647e89262Smrgsite=
79747e89262Smrgsrcdir=
79847e89262Smrgverbose=
79947e89262Smrgx_includes=NONE
80047e89262Smrgx_libraries=NONE
801bd1da9d7Smrg
80247e89262Smrg# Installation directory options.
80347e89262Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
80447e89262Smrg# and all the variables that are supposed to be based on exec_prefix
80547e89262Smrg# by default will actually change.
80647e89262Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
80747e89262Smrg# (The list follows the same order as the GNU Coding Standards.)
80847e89262Smrgbindir='${exec_prefix}/bin'
80947e89262Smrgsbindir='${exec_prefix}/sbin'
81047e89262Smrglibexecdir='${exec_prefix}/libexec'
81147e89262Smrgdatarootdir='${prefix}/share'
81247e89262Smrgdatadir='${datarootdir}'
81347e89262Smrgsysconfdir='${prefix}/etc'
81447e89262Smrgsharedstatedir='${prefix}/com'
81547e89262Smrglocalstatedir='${prefix}/var'
81647e89262Smrgincludedir='${prefix}/include'
81747e89262Smrgoldincludedir='/usr/include'
81847e89262Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81947e89262Smrginfodir='${datarootdir}/info'
82047e89262Smrghtmldir='${docdir}'
82147e89262Smrgdvidir='${docdir}'
82247e89262Smrgpdfdir='${docdir}'
82347e89262Smrgpsdir='${docdir}'
82447e89262Smrglibdir='${exec_prefix}/lib'
82547e89262Smrglocaledir='${datarootdir}/locale'
82647e89262Smrgmandir='${datarootdir}/man'
827bd1da9d7Smrg
82847e89262Smrgac_prev=
82947e89262Smrgac_dashdash=
83047e89262Smrgfor ac_option
831bd1da9d7Smrgdo
83247e89262Smrg  # If the previous option needs an argument, assign it.
83347e89262Smrg  if test -n "$ac_prev"; then
83447e89262Smrg    eval $ac_prev=\$ac_option
83547e89262Smrg    ac_prev=
83647e89262Smrg    continue
837bd1da9d7Smrg  fi
838bd1da9d7Smrg
83947e89262Smrg  case $ac_option in
84047e89262Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
84147e89262Smrg  *=)   ac_optarg= ;;
84247e89262Smrg  *)    ac_optarg=yes ;;
84347e89262Smrg  esac
844bd1da9d7Smrg
84547e89262Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
846bd1da9d7Smrg
84747e89262Smrg  case $ac_dashdash$ac_option in
84847e89262Smrg  --)
84947e89262Smrg    ac_dashdash=yes ;;
850bd1da9d7Smrg
85147e89262Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
85247e89262Smrg    ac_prev=bindir ;;
85347e89262Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85447e89262Smrg    bindir=$ac_optarg ;;
855bd1da9d7Smrg
85647e89262Smrg  -build | --build | --buil | --bui | --bu)
85747e89262Smrg    ac_prev=build_alias ;;
85847e89262Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85947e89262Smrg    build_alias=$ac_optarg ;;
860bd1da9d7Smrg
86147e89262Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
86247e89262Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
86347e89262Smrg    ac_prev=cache_file ;;
86447e89262Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
86547e89262Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
86647e89262Smrg    cache_file=$ac_optarg ;;
867bd1da9d7Smrg
86847e89262Smrg  --config-cache | -C)
86947e89262Smrg    cache_file=config.cache ;;
870bd1da9d7Smrg
87147e89262Smrg  -datadir | --datadir | --datadi | --datad)
87247e89262Smrg    ac_prev=datadir ;;
87347e89262Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
87447e89262Smrg    datadir=$ac_optarg ;;
875bd1da9d7Smrg
87647e89262Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
87747e89262Smrg  | --dataroo | --dataro | --datar)
87847e89262Smrg    ac_prev=datarootdir ;;
87947e89262Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
88047e89262Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
88147e89262Smrg    datarootdir=$ac_optarg ;;
882bd1da9d7Smrg
88347e89262Smrg  -disable-* | --disable-*)
88447e89262Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
88547e89262Smrg    # Reject names that are not valid shell variable names.
88647e89262Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
88747e89262Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
88847e89262Smrg    ac_useropt_orig=$ac_useropt
88947e89262Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
89047e89262Smrg    case $ac_user_opts in
89147e89262Smrg      *"
89247e89262Smrg"enable_$ac_useropt"
89347e89262Smrg"*) ;;
89447e89262Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
89547e89262Smrg	 ac_unrecognized_sep=', ';;
89647e89262Smrg    esac
89747e89262Smrg    eval enable_$ac_useropt=no ;;
898bd1da9d7Smrg
89947e89262Smrg  -docdir | --docdir | --docdi | --doc | --do)
90047e89262Smrg    ac_prev=docdir ;;
90147e89262Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
90247e89262Smrg    docdir=$ac_optarg ;;
903bd1da9d7Smrg
90447e89262Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
90547e89262Smrg    ac_prev=dvidir ;;
90647e89262Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
90747e89262Smrg    dvidir=$ac_optarg ;;
908bd1da9d7Smrg
90947e89262Smrg  -enable-* | --enable-*)
91047e89262Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
91147e89262Smrg    # Reject names that are not valid shell variable names.
91247e89262Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
91347e89262Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
91447e89262Smrg    ac_useropt_orig=$ac_useropt
91547e89262Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
91647e89262Smrg    case $ac_user_opts in
91747e89262Smrg      *"
91847e89262Smrg"enable_$ac_useropt"
91947e89262Smrg"*) ;;
92047e89262Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
92147e89262Smrg	 ac_unrecognized_sep=', ';;
92247e89262Smrg    esac
92347e89262Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
924bd1da9d7Smrg
92547e89262Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
92647e89262Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
92747e89262Smrg  | --exec | --exe | --ex)
92847e89262Smrg    ac_prev=exec_prefix ;;
92947e89262Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
93047e89262Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
93147e89262Smrg  | --exec=* | --exe=* | --ex=*)
93247e89262Smrg    exec_prefix=$ac_optarg ;;
933bd1da9d7Smrg
93447e89262Smrg  -gas | --gas | --ga | --g)
93547e89262Smrg    # Obsolete; use --with-gas.
93647e89262Smrg    with_gas=yes ;;
937bd1da9d7Smrg
93847e89262Smrg  -help | --help | --hel | --he | -h)
93947e89262Smrg    ac_init_help=long ;;
94047e89262Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
94147e89262Smrg    ac_init_help=recursive ;;
94247e89262Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
94347e89262Smrg    ac_init_help=short ;;
944bd1da9d7Smrg
94547e89262Smrg  -host | --host | --hos | --ho)
94647e89262Smrg    ac_prev=host_alias ;;
94747e89262Smrg  -host=* | --host=* | --hos=* | --ho=*)
94847e89262Smrg    host_alias=$ac_optarg ;;
949bd1da9d7Smrg
95047e89262Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
95147e89262Smrg    ac_prev=htmldir ;;
95247e89262Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
95347e89262Smrg  | --ht=*)
95447e89262Smrg    htmldir=$ac_optarg ;;
9555bcb6992Smrg
95647e89262Smrg  -includedir | --includedir | --includedi | --included | --include \
95747e89262Smrg  | --includ | --inclu | --incl | --inc)
95847e89262Smrg    ac_prev=includedir ;;
95947e89262Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
96047e89262Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
96147e89262Smrg    includedir=$ac_optarg ;;
9625bcb6992Smrg
96347e89262Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
96447e89262Smrg    ac_prev=infodir ;;
96547e89262Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
96647e89262Smrg    infodir=$ac_optarg ;;
9675bcb6992Smrg
96847e89262Smrg  -libdir | --libdir | --libdi | --libd)
96947e89262Smrg    ac_prev=libdir ;;
97047e89262Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
97147e89262Smrg    libdir=$ac_optarg ;;
9725bcb6992Smrg
97347e89262Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
97447e89262Smrg  | --libexe | --libex | --libe)
97547e89262Smrg    ac_prev=libexecdir ;;
97647e89262Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
97747e89262Smrg  | --libexe=* | --libex=* | --libe=*)
97847e89262Smrg    libexecdir=$ac_optarg ;;
9795bcb6992Smrg
98047e89262Smrg  -localedir | --localedir | --localedi | --localed | --locale)
98147e89262Smrg    ac_prev=localedir ;;
98247e89262Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
98347e89262Smrg    localedir=$ac_optarg ;;
9845bcb6992Smrg
98547e89262Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
98647e89262Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
98747e89262Smrg    ac_prev=localstatedir ;;
98847e89262Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
98947e89262Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
99047e89262Smrg    localstatedir=$ac_optarg ;;
9915bcb6992Smrg
99247e89262Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
99347e89262Smrg    ac_prev=mandir ;;
99447e89262Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
99547e89262Smrg    mandir=$ac_optarg ;;
9965bcb6992Smrg
99747e89262Smrg  -nfp | --nfp | --nf)
99847e89262Smrg    # Obsolete; use --without-fp.
99947e89262Smrg    with_fp=no ;;
10005bcb6992Smrg
100147e89262Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
100247e89262Smrg  | --no-cr | --no-c | -n)
100347e89262Smrg    no_create=yes ;;
10045bcb6992Smrg
100547e89262Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
100647e89262Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
100747e89262Smrg    no_recursion=yes ;;
10085bcb6992Smrg
100947e89262Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
101047e89262Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
101147e89262Smrg  | --oldin | --oldi | --old | --ol | --o)
101247e89262Smrg    ac_prev=oldincludedir ;;
101347e89262Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
101447e89262Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
101547e89262Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
101647e89262Smrg    oldincludedir=$ac_optarg ;;
10175bcb6992Smrg
101847e89262Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
101947e89262Smrg    ac_prev=prefix ;;
102047e89262Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
102147e89262Smrg    prefix=$ac_optarg ;;
10225bcb6992Smrg
102347e89262Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
102447e89262Smrg  | --program-pre | --program-pr | --program-p)
102547e89262Smrg    ac_prev=program_prefix ;;
102647e89262Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
102747e89262Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
102847e89262Smrg    program_prefix=$ac_optarg ;;
10295bcb6992Smrg
103047e89262Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
103147e89262Smrg  | --program-suf | --program-su | --program-s)
103247e89262Smrg    ac_prev=program_suffix ;;
103347e89262Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
103447e89262Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
103547e89262Smrg    program_suffix=$ac_optarg ;;
10365bcb6992Smrg
103747e89262Smrg  -program-transform-name | --program-transform-name \
103847e89262Smrg  | --program-transform-nam | --program-transform-na \
103947e89262Smrg  | --program-transform-n | --program-transform- \
104047e89262Smrg  | --program-transform | --program-transfor \
104147e89262Smrg  | --program-transfo | --program-transf \
104247e89262Smrg  | --program-trans | --program-tran \
104347e89262Smrg  | --progr-tra | --program-tr | --program-t)
104447e89262Smrg    ac_prev=program_transform_name ;;
104547e89262Smrg  -program-transform-name=* | --program-transform-name=* \
104647e89262Smrg  | --program-transform-nam=* | --program-transform-na=* \
104747e89262Smrg  | --program-transform-n=* | --program-transform-=* \
104847e89262Smrg  | --program-transform=* | --program-transfor=* \
104947e89262Smrg  | --program-transfo=* | --program-transf=* \
105047e89262Smrg  | --program-trans=* | --program-tran=* \
105147e89262Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
105247e89262Smrg    program_transform_name=$ac_optarg ;;
10535bcb6992Smrg
105447e89262Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
105547e89262Smrg    ac_prev=pdfdir ;;
105647e89262Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
105747e89262Smrg    pdfdir=$ac_optarg ;;
10585bcb6992Smrg
105947e89262Smrg  -psdir | --psdir | --psdi | --psd | --ps)
106047e89262Smrg    ac_prev=psdir ;;
106147e89262Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
106247e89262Smrg    psdir=$ac_optarg ;;
10635bcb6992Smrg
106447e89262Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
106547e89262Smrg  | -silent | --silent | --silen | --sile | --sil)
106647e89262Smrg    silent=yes ;;
10675bcb6992Smrg
106847e89262Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
106947e89262Smrg    ac_prev=sbindir ;;
107047e89262Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
107147e89262Smrg  | --sbi=* | --sb=*)
107247e89262Smrg    sbindir=$ac_optarg ;;
10735bcb6992Smrg
107447e89262Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
107547e89262Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
107647e89262Smrg  | --sharedst | --shareds | --shared | --share | --shar \
107747e89262Smrg  | --sha | --sh)
107847e89262Smrg    ac_prev=sharedstatedir ;;
107947e89262Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
108047e89262Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
108147e89262Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
108247e89262Smrg  | --sha=* | --sh=*)
108347e89262Smrg    sharedstatedir=$ac_optarg ;;
10845bcb6992Smrg
108547e89262Smrg  -site | --site | --sit)
108647e89262Smrg    ac_prev=site ;;
108747e89262Smrg  -site=* | --site=* | --sit=*)
108847e89262Smrg    site=$ac_optarg ;;
1089bd1da9d7Smrg
109047e89262Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
109147e89262Smrg    ac_prev=srcdir ;;
109247e89262Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
109347e89262Smrg    srcdir=$ac_optarg ;;
1094bd1da9d7Smrg
109547e89262Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
109647e89262Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
109747e89262Smrg    ac_prev=sysconfdir ;;
109847e89262Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
109947e89262Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
110047e89262Smrg    sysconfdir=$ac_optarg ;;
1101bd1da9d7Smrg
110247e89262Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
110347e89262Smrg    ac_prev=target_alias ;;
110447e89262Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
110547e89262Smrg    target_alias=$ac_optarg ;;
1106bd1da9d7Smrg
110747e89262Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
110847e89262Smrg    verbose=yes ;;
1109bd1da9d7Smrg
111047e89262Smrg  -version | --version | --versio | --versi | --vers | -V)
111147e89262Smrg    ac_init_version=: ;;
1112bd1da9d7Smrg
111347e89262Smrg  -with-* | --with-*)
111447e89262Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
111547e89262Smrg    # Reject names that are not valid shell variable names.
111647e89262Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
111747e89262Smrg      as_fn_error $? "invalid package name: $ac_useropt"
111847e89262Smrg    ac_useropt_orig=$ac_useropt
111947e89262Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
112047e89262Smrg    case $ac_user_opts in
112147e89262Smrg      *"
112247e89262Smrg"with_$ac_useropt"
112347e89262Smrg"*) ;;
112447e89262Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
112547e89262Smrg	 ac_unrecognized_sep=', ';;
112647e89262Smrg    esac
112747e89262Smrg    eval with_$ac_useropt=\$ac_optarg ;;
112847e89262Smrg
112947e89262Smrg  -without-* | --without-*)
113047e89262Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
113147e89262Smrg    # Reject names that are not valid shell variable names.
113247e89262Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
113347e89262Smrg      as_fn_error $? "invalid package name: $ac_useropt"
113447e89262Smrg    ac_useropt_orig=$ac_useropt
113547e89262Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
113647e89262Smrg    case $ac_user_opts in
113747e89262Smrg      *"
113847e89262Smrg"with_$ac_useropt"
113947e89262Smrg"*) ;;
114047e89262Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
114147e89262Smrg	 ac_unrecognized_sep=', ';;
114247e89262Smrg    esac
114347e89262Smrg    eval with_$ac_useropt=no ;;
1144bd1da9d7Smrg
114547e89262Smrg  --x)
114647e89262Smrg    # Obsolete; use --with-x.
114747e89262Smrg    with_x=yes ;;
1148bd1da9d7Smrg
114947e89262Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
115047e89262Smrg  | --x-incl | --x-inc | --x-in | --x-i)
115147e89262Smrg    ac_prev=x_includes ;;
115247e89262Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
115347e89262Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
115447e89262Smrg    x_includes=$ac_optarg ;;
1155bd1da9d7Smrg
115647e89262Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
115747e89262Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
115847e89262Smrg    ac_prev=x_libraries ;;
115947e89262Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
116047e89262Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
116147e89262Smrg    x_libraries=$ac_optarg ;;
1162bd1da9d7Smrg
116347e89262Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
116447e89262SmrgTry \`$0 --help' for more information"
116547e89262Smrg    ;;
1166bd1da9d7Smrg
116747e89262Smrg  *=*)
116847e89262Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
116947e89262Smrg    # Reject names that are not valid shell variable names.
117047e89262Smrg    case $ac_envvar in #(
117147e89262Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
117247e89262Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
117347e89262Smrg    esac
117447e89262Smrg    eval $ac_envvar=\$ac_optarg
117547e89262Smrg    export $ac_envvar ;;
1176bd1da9d7Smrg
117747e89262Smrg  *)
117847e89262Smrg    # FIXME: should be removed in autoconf 3.0.
117947e89262Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
118047e89262Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
118147e89262Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
118247e89262Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
118347e89262Smrg    ;;
1184bd1da9d7Smrg
118547e89262Smrg  esac
118647e89262Smrgdone
1187bd1da9d7Smrg
118847e89262Smrgif test -n "$ac_prev"; then
118947e89262Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
119047e89262Smrg  as_fn_error $? "missing argument to $ac_option"
119147e89262Smrgfi
1192bd1da9d7Smrg
119347e89262Smrgif test -n "$ac_unrecognized_opts"; then
119447e89262Smrg  case $enable_option_checking in
119547e89262Smrg    no) ;;
119647e89262Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
119747e89262Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
119847e89262Smrg  esac
119947e89262Smrgfi
1200bd1da9d7Smrg
120147e89262Smrg# Check all directory arguments for consistency.
120247e89262Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
120347e89262Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
120447e89262Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
120547e89262Smrg		libdir localedir mandir
120647e89262Smrgdo
120747e89262Smrg  eval ac_val=\$$ac_var
120847e89262Smrg  # Remove trailing slashes.
120947e89262Smrg  case $ac_val in
121047e89262Smrg    */ )
121147e89262Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
121247e89262Smrg      eval $ac_var=\$ac_val;;
121347e89262Smrg  esac
121447e89262Smrg  # Be sure to have absolute directory names.
121547e89262Smrg  case $ac_val in
121647e89262Smrg    [\\/$]* | ?:[\\/]* )  continue;;
121747e89262Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
121847e89262Smrg  esac
121947e89262Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
122047e89262Smrgdone
1221bd1da9d7Smrg
122247e89262Smrg# There might be people who depend on the old broken behavior: `$host'
122347e89262Smrg# used to hold the argument of --host etc.
122447e89262Smrg# FIXME: To remove some day.
122547e89262Smrgbuild=$build_alias
122647e89262Smrghost=$host_alias
122747e89262Smrgtarget=$target_alias
1228bd1da9d7Smrg
122947e89262Smrg# FIXME: To remove some day.
123047e89262Smrgif test "x$host_alias" != x; then
123147e89262Smrg  if test "x$build_alias" = x; then
123247e89262Smrg    cross_compiling=maybe
123347e89262Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
123447e89262Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
123547e89262Smrg  elif test "x$build_alias" != "x$host_alias"; then
123647e89262Smrg    cross_compiling=yes
123747e89262Smrg  fi
123847e89262Smrgfi
1239bd1da9d7Smrg
124047e89262Smrgac_tool_prefix=
124147e89262Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1242bd1da9d7Smrg
124347e89262Smrgtest "$silent" = yes && exec 6>/dev/null
1244bd1da9d7Smrg
1245bd1da9d7Smrg
124647e89262Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
124747e89262Smrgac_ls_di=`ls -di .` &&
124847e89262Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
124947e89262Smrg  as_fn_error $? "working directory cannot be determined"
125047e89262Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
125147e89262Smrg  as_fn_error $? "pwd does not report name of working directory"
1252bd1da9d7Smrg
1253bd1da9d7Smrg
125447e89262Smrg# Find the source files, if location was not specified.
125547e89262Smrgif test -z "$srcdir"; then
125647e89262Smrg  ac_srcdir_defaulted=yes
125747e89262Smrg  # Try the directory containing this script, then the parent directory.
125847e89262Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
125947e89262Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
126047e89262Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
126147e89262Smrg	 X"$as_myself" : 'X\(//\)$' \| \
126247e89262Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
126347e89262Smrg$as_echo X"$as_myself" |
126447e89262Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
126547e89262Smrg	    s//\1/
126647e89262Smrg	    q
126747e89262Smrg	  }
126847e89262Smrg	  /^X\(\/\/\)[^/].*/{
126947e89262Smrg	    s//\1/
127047e89262Smrg	    q
127147e89262Smrg	  }
127247e89262Smrg	  /^X\(\/\/\)$/{
127347e89262Smrg	    s//\1/
127447e89262Smrg	    q
127547e89262Smrg	  }
127647e89262Smrg	  /^X\(\/\).*/{
127747e89262Smrg	    s//\1/
127847e89262Smrg	    q
127947e89262Smrg	  }
128047e89262Smrg	  s/.*/./; q'`
128147e89262Smrg  srcdir=$ac_confdir
128247e89262Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
128347e89262Smrg    srcdir=..
128447e89262Smrg  fi
1285bd1da9d7Smrgelse
128647e89262Smrg  ac_srcdir_defaulted=no
1287bd1da9d7Smrgfi
128847e89262Smrgif test ! -r "$srcdir/$ac_unique_file"; then
128947e89262Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
129047e89262Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291bd1da9d7Smrgfi
129247e89262Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
129347e89262Smrgac_abs_confdir=`(
129447e89262Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
129547e89262Smrg	pwd)`
129647e89262Smrg# When building in place, set srcdir=.
129747e89262Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
129847e89262Smrg  srcdir=.
1299bd1da9d7Smrgfi
130047e89262Smrg# Remove unnecessary trailing slashes from srcdir.
130147e89262Smrg# Double slashes in file names in object file debugging info
130247e89262Smrg# mess up M-x gdb in Emacs.
130347e89262Smrgcase $srcdir in
130447e89262Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
130547e89262Smrgesac
130647e89262Smrgfor ac_var in $ac_precious_vars; do
130747e89262Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
130847e89262Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
130947e89262Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
131047e89262Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
131147e89262Smrgdone
1312bd1da9d7Smrg
131347e89262Smrg#
131447e89262Smrg# Report the --help message.
131547e89262Smrg#
131647e89262Smrgif test "$ac_init_help" = "long"; then
131747e89262Smrg  # Omit some internal or obsolete options to make the list less imposing.
131847e89262Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
131947e89262Smrg  cat <<_ACEOF
132047e89262Smrg\`configure' configures libXres 1.0.5 to adapt to many kinds of systems.
1321bd1da9d7Smrg
132247e89262SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1323bd1da9d7Smrg
132447e89262SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
132547e89262SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1326bd1da9d7Smrg
132747e89262SmrgDefaults for the options are specified in brackets.
1328bd1da9d7Smrg
132947e89262SmrgConfiguration:
133047e89262Smrg  -h, --help              display this help and exit
133147e89262Smrg      --help=short        display options specific to this package
133247e89262Smrg      --help=recursive    display the short help of all the included packages
133347e89262Smrg  -V, --version           display version information and exit
133447e89262Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
133547e89262Smrg      --cache-file=FILE   cache test results in FILE [disabled]
133647e89262Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
133747e89262Smrg  -n, --no-create         do not create output files
133847e89262Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339bd1da9d7Smrg
134047e89262SmrgInstallation directories:
134147e89262Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
134247e89262Smrg                          [$ac_default_prefix]
134347e89262Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
134447e89262Smrg                          [PREFIX]
1345bd1da9d7Smrg
134647e89262SmrgBy default, \`make install' will install all the files in
134747e89262Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
134847e89262Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
134947e89262Smrgfor instance \`--prefix=\$HOME'.
1350bd1da9d7Smrg
135147e89262SmrgFor better control, use the options below.
135247e89262Smrg
135347e89262SmrgFine tuning of the installation directories:
135447e89262Smrg  --bindir=DIR            user executables [EPREFIX/bin]
135547e89262Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
135647e89262Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
135747e89262Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
135847e89262Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
135947e89262Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
136047e89262Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
136147e89262Smrg  --includedir=DIR        C header files [PREFIX/include]
136247e89262Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
136347e89262Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
136447e89262Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
136547e89262Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
136647e89262Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
136747e89262Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
136847e89262Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXres]
136947e89262Smrg  --htmldir=DIR           html documentation [DOCDIR]
137047e89262Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
137147e89262Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
137247e89262Smrg  --psdir=DIR             ps documentation [DOCDIR]
137347e89262Smrg_ACEOF
1374bd1da9d7Smrg
137547e89262Smrg  cat <<\_ACEOF
1376bd1da9d7Smrg
137747e89262SmrgProgram names:
137847e89262Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
137947e89262Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
138047e89262Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1381bd1da9d7Smrg
138247e89262SmrgSystem types:
138347e89262Smrg  --build=BUILD     configure for building on BUILD [guessed]
138447e89262Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
138547e89262Smrg_ACEOF
138647e89262Smrgfi
1387bd1da9d7Smrg
138847e89262Smrgif test -n "$ac_init_help"; then
138947e89262Smrg  case $ac_init_help in
139047e89262Smrg     short | recursive ) echo "Configuration of libXres 1.0.5:";;
139147e89262Smrg   esac
139247e89262Smrg  cat <<\_ACEOF
1393bd1da9d7Smrg
139447e89262SmrgOptional Features:
139547e89262Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
139647e89262Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
139747e89262Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
139847e89262Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
139947e89262Smrg			  (and sometimes confusing) to the casual installer
140047e89262Smrg  --disable-dependency-tracking  speeds up one-time build
140147e89262Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
140247e89262Smrg  --enable-shared[=PKGS]  build shared libraries [default=yes]
140347e89262Smrg  --enable-static[=PKGS]  build static libraries [default=yes]
140447e89262Smrg  --enable-fast-install[=PKGS]
140547e89262Smrg                          optimize for fast installation [default=yes]
140647e89262Smrg  --disable-libtool-lock  avoid locking (might break parallel builds)
140747e89262Smrg  --enable-strict-compilation
140847e89262Smrg                          Enable all warnings from compiler and make them
140947e89262Smrg                          errors (default: disabled)
141047e89262Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
141147e89262Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
141247e89262Smrg  --enable-malloc0returnsnull
141347e89262Smrg                          malloc(0) returns NULL (default: auto)
1414bd1da9d7Smrg
141547e89262SmrgOptional Packages:
141647e89262Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
141747e89262Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
141847e89262Smrg  --with-pic              try to use only PIC/non-PIC objects [default=use
141947e89262Smrg                          both]
142047e89262Smrg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1421bd1da9d7Smrg
142247e89262SmrgSome influential environment variables:
142347e89262Smrg  CC          C compiler command
142447e89262Smrg  CFLAGS      C compiler flags
142547e89262Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
142647e89262Smrg              nonstandard directory <lib dir>
142747e89262Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
142847e89262Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
142947e89262Smrg              you have headers in a nonstandard directory <include dir>
143047e89262Smrg  CPP         C preprocessor
143147e89262Smrg  PKG_CONFIG  path to pkg-config utility
143247e89262Smrg  XRES_CFLAGS C compiler flags for XRES, overriding pkg-config
143347e89262Smrg  XRES_LIBS   linker flags for XRES, overriding pkg-config
1434bd1da9d7Smrg
143547e89262SmrgUse these variables to override the choices made by `configure' or to help
143647e89262Smrgit to find libraries and programs with nonstandard names/locations.
1437bd1da9d7Smrg
143847e89262SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
143947e89262Smrg_ACEOF
144047e89262Smrgac_status=$?
144147e89262Smrgfi
1442bd1da9d7Smrg
144347e89262Smrgif test "$ac_init_help" = "recursive"; then
144447e89262Smrg  # If there are subdirs, report their specific --help.
144547e89262Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
144647e89262Smrg    test -d "$ac_dir" ||
144747e89262Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
144847e89262Smrg      continue
144947e89262Smrg    ac_builddir=.
1450bd1da9d7Smrg
145147e89262Smrgcase "$ac_dir" in
145247e89262Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
145347e89262Smrg*)
145447e89262Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
145547e89262Smrg  # A ".." for each directory in $ac_dir_suffix.
145647e89262Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
145747e89262Smrg  case $ac_top_builddir_sub in
145847e89262Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
145947e89262Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
146047e89262Smrg  esac ;;
146147e89262Smrgesac
146247e89262Smrgac_abs_top_builddir=$ac_pwd
146347e89262Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
146447e89262Smrg# for backward compatibility:
146547e89262Smrgac_top_builddir=$ac_top_build_prefix
1466bd1da9d7Smrg
146747e89262Smrgcase $srcdir in
146847e89262Smrg  .)  # We are building in place.
146947e89262Smrg    ac_srcdir=.
147047e89262Smrg    ac_top_srcdir=$ac_top_builddir_sub
147147e89262Smrg    ac_abs_top_srcdir=$ac_pwd ;;
147247e89262Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
147347e89262Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
147447e89262Smrg    ac_top_srcdir=$srcdir
147547e89262Smrg    ac_abs_top_srcdir=$srcdir ;;
147647e89262Smrg  *) # Relative name.
147747e89262Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
147847e89262Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
147947e89262Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
148047e89262Smrgesac
148147e89262Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14825bcb6992Smrg
148347e89262Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
148447e89262Smrg    # Check for guested configure.
148547e89262Smrg    if test -f "$ac_srcdir/configure.gnu"; then
148647e89262Smrg      echo &&
148747e89262Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
148847e89262Smrg    elif test -f "$ac_srcdir/configure"; then
148947e89262Smrg      echo &&
149047e89262Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
149147e89262Smrg    else
149247e89262Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
149347e89262Smrg    fi || ac_status=$?
149447e89262Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
149547e89262Smrg  done
149647e89262Smrgfi
1497bd1da9d7Smrg
149847e89262Smrgtest -n "$ac_init_help" && exit $ac_status
149947e89262Smrgif $ac_init_version; then
150047e89262Smrg  cat <<\_ACEOF
150147e89262SmrglibXres configure 1.0.5
150247e89262Smrggenerated by GNU Autoconf 2.68
1503bd1da9d7Smrg
150447e89262SmrgCopyright (C) 2010 Free Software Foundation, Inc.
150547e89262SmrgThis configure script is free software; the Free Software Foundation
150647e89262Smrggives unlimited permission to copy, distribute and modify it.
150747e89262Smrg_ACEOF
150847e89262Smrg  exit
150947e89262Smrgfi
1510bd1da9d7Smrg
151147e89262Smrg## ------------------------ ##
151247e89262Smrg## Autoconf initialization. ##
151347e89262Smrg## ------------------------ ##
1514bd1da9d7Smrg
151547e89262Smrg# ac_fn_c_try_compile LINENO
151647e89262Smrg# --------------------------
151747e89262Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
151847e89262Smrgac_fn_c_try_compile ()
151947e89262Smrg{
152047e89262Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
152147e89262Smrg  rm -f conftest.$ac_objext
152247e89262Smrg  if { { ac_try="$ac_compile"
152347e89262Smrgcase "(($ac_try" in
152447e89262Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
152547e89262Smrg  *) ac_try_echo=$ac_try;;
152647e89262Smrgesac
152747e89262Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
152847e89262Smrg$as_echo "$ac_try_echo"; } >&5
152947e89262Smrg  (eval "$ac_compile") 2>conftest.err
153047e89262Smrg  ac_status=$?
153147e89262Smrg  if test -s conftest.err; then
153247e89262Smrg    grep -v '^ *+' conftest.err >conftest.er1
153347e89262Smrg    cat conftest.er1 >&5
153447e89262Smrg    mv -f conftest.er1 conftest.err
153547e89262Smrg  fi
153647e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
153747e89262Smrg  test $ac_status = 0; } && {
153847e89262Smrg	 test -z "$ac_c_werror_flag" ||
153947e89262Smrg	 test ! -s conftest.err
154047e89262Smrg       } && test -s conftest.$ac_objext; then :
154147e89262Smrg  ac_retval=0
154247e89262Smrgelse
154347e89262Smrg  $as_echo "$as_me: failed program was:" >&5
154447e89262Smrgsed 's/^/| /' conftest.$ac_ext >&5
1545bd1da9d7Smrg
154647e89262Smrg	ac_retval=1
154747e89262Smrgfi
154847e89262Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
154947e89262Smrg  as_fn_set_status $ac_retval
1550bd1da9d7Smrg
155147e89262Smrg} # ac_fn_c_try_compile
1552bd1da9d7Smrg
155347e89262Smrg# ac_fn_c_try_link LINENO
155447e89262Smrg# -----------------------
155547e89262Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
155647e89262Smrgac_fn_c_try_link ()
155747e89262Smrg{
155847e89262Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
155947e89262Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
156047e89262Smrg  if { { ac_try="$ac_link"
156147e89262Smrgcase "(($ac_try" in
156247e89262Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
156347e89262Smrg  *) ac_try_echo=$ac_try;;
156447e89262Smrgesac
156547e89262Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
156647e89262Smrg$as_echo "$ac_try_echo"; } >&5
156747e89262Smrg  (eval "$ac_link") 2>conftest.err
156847e89262Smrg  ac_status=$?
156947e89262Smrg  if test -s conftest.err; then
157047e89262Smrg    grep -v '^ *+' conftest.err >conftest.er1
157147e89262Smrg    cat conftest.er1 >&5
157247e89262Smrg    mv -f conftest.er1 conftest.err
1573bd1da9d7Smrg  fi
157447e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
157547e89262Smrg  test $ac_status = 0; } && {
157647e89262Smrg	 test -z "$ac_c_werror_flag" ||
157747e89262Smrg	 test ! -s conftest.err
157847e89262Smrg       } && test -s conftest$ac_exeext && {
157947e89262Smrg	 test "$cross_compiling" = yes ||
158047e89262Smrg	 $as_test_x conftest$ac_exeext
158147e89262Smrg       }; then :
158247e89262Smrg  ac_retval=0
158347e89262Smrgelse
158447e89262Smrg  $as_echo "$as_me: failed program was:" >&5
158547e89262Smrgsed 's/^/| /' conftest.$ac_ext >&5
1586bd1da9d7Smrg
158747e89262Smrg	ac_retval=1
158847e89262Smrgfi
158947e89262Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
159047e89262Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
159147e89262Smrg  # interfere with the next link command; also delete a directory that is
159247e89262Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
159347e89262Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
159447e89262Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
159547e89262Smrg  as_fn_set_status $ac_retval
1596bd1da9d7Smrg
159747e89262Smrg} # ac_fn_c_try_link
1598bd1da9d7Smrg
159947e89262Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
160047e89262Smrg# -------------------------------------------------------
160147e89262Smrg# Tests whether HEADER exists and can be compiled using the include files in
160247e89262Smrg# INCLUDES, setting the cache variable VAR accordingly.
160347e89262Smrgac_fn_c_check_header_compile ()
160447e89262Smrg{
160547e89262Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
160647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
160747e89262Smrg$as_echo_n "checking for $2... " >&6; }
160847e89262Smrgif eval \${$3+:} false; then :
16095bcb6992Smrg  $as_echo_n "(cached) " >&6
1610bd1da9d7Smrgelse
161147e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
161247e89262Smrg/* end confdefs.h.  */
161347e89262Smrg$4
161447e89262Smrg#include <$2>
161547e89262Smrg_ACEOF
161647e89262Smrgif ac_fn_c_try_compile "$LINENO"; then :
161747e89262Smrg  eval "$3=yes"
161847e89262Smrgelse
161947e89262Smrg  eval "$3=no"
1620bd1da9d7Smrgfi
162147e89262Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
162247e89262Smrgfi
162347e89262Smrgeval ac_res=\$$3
162447e89262Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
162547e89262Smrg$as_echo "$ac_res" >&6; }
162647e89262Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627bd1da9d7Smrg
162847e89262Smrg} # ac_fn_c_check_header_compile
162947e89262Smrg
163047e89262Smrg# ac_fn_c_try_cpp LINENO
163147e89262Smrg# ----------------------
163247e89262Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
163347e89262Smrgac_fn_c_try_cpp ()
163447e89262Smrg{
163547e89262Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
163647e89262Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
163747e89262Smrgcase "(($ac_try" in
163847e89262Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
163947e89262Smrg  *) ac_try_echo=$ac_try;;
164047e89262Smrgesac
164147e89262Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
164247e89262Smrg$as_echo "$ac_try_echo"; } >&5
164347e89262Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
164447e89262Smrg  ac_status=$?
164547e89262Smrg  if test -s conftest.err; then
164647e89262Smrg    grep -v '^ *+' conftest.err >conftest.er1
164747e89262Smrg    cat conftest.er1 >&5
164847e89262Smrg    mv -f conftest.er1 conftest.err
164947e89262Smrg  fi
165047e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
165147e89262Smrg  test $ac_status = 0; } > conftest.i && {
165247e89262Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
165347e89262Smrg	 test ! -s conftest.err
165447e89262Smrg       }; then :
165547e89262Smrg  ac_retval=0
1656bd1da9d7Smrgelse
165747e89262Smrg  $as_echo "$as_me: failed program was:" >&5
165847e89262Smrgsed 's/^/| /' conftest.$ac_ext >&5
1659bd1da9d7Smrg
166047e89262Smrg    ac_retval=1
1661bd1da9d7Smrgfi
166247e89262Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
166347e89262Smrg  as_fn_set_status $ac_retval
166447e89262Smrg
166547e89262Smrg} # ac_fn_c_try_cpp
166647e89262Smrg
166747e89262Smrg# ac_fn_c_try_run LINENO
166847e89262Smrg# ----------------------
166947e89262Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
167047e89262Smrg# that executables *can* be run.
167147e89262Smrgac_fn_c_try_run ()
167247e89262Smrg{
167347e89262Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
167447e89262Smrg  if { { ac_try="$ac_link"
167547e89262Smrgcase "(($ac_try" in
167647e89262Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
167747e89262Smrg  *) ac_try_echo=$ac_try;;
167847e89262Smrgesac
167947e89262Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
168047e89262Smrg$as_echo "$ac_try_echo"; } >&5
168147e89262Smrg  (eval "$ac_link") 2>&5
168247e89262Smrg  ac_status=$?
168347e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
168447e89262Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
168547e89262Smrg  { { case "(($ac_try" in
168647e89262Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
168747e89262Smrg  *) ac_try_echo=$ac_try;;
1688bd1da9d7Smrgesac
168947e89262Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
169047e89262Smrg$as_echo "$ac_try_echo"; } >&5
169147e89262Smrg  (eval "$ac_try") 2>&5
169247e89262Smrg  ac_status=$?
169347e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
169447e89262Smrg  test $ac_status = 0; }; }; then :
169547e89262Smrg  ac_retval=0
169647e89262Smrgelse
169747e89262Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
169847e89262Smrg       $as_echo "$as_me: failed program was:" >&5
169947e89262Smrgsed 's/^/| /' conftest.$ac_ext >&5
1700bd1da9d7Smrg
170147e89262Smrg       ac_retval=$ac_status
170247e89262Smrgfi
170347e89262Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
170447e89262Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
170547e89262Smrg  as_fn_set_status $ac_retval
170647e89262Smrg
170747e89262Smrg} # ac_fn_c_try_run
170847e89262Smrg
170947e89262Smrg# ac_fn_c_check_func LINENO FUNC VAR
171047e89262Smrg# ----------------------------------
171147e89262Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
171247e89262Smrgac_fn_c_check_func ()
171347e89262Smrg{
171447e89262Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
171547e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
171647e89262Smrg$as_echo_n "checking for $2... " >&6; }
171747e89262Smrgif eval \${$3+:} false; then :
17185bcb6992Smrg  $as_echo_n "(cached) " >&6
1719bd1da9d7Smrgelse
172047e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
172147e89262Smrg/* end confdefs.h.  */
172247e89262Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
172347e89262Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
172447e89262Smrg#define $2 innocuous_$2
1725bd1da9d7Smrg
172647e89262Smrg/* System header to define __stub macros and hopefully few prototypes,
172747e89262Smrg    which can conflict with char $2 (); below.
172847e89262Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
172947e89262Smrg    <limits.h> exists even on freestanding compilers.  */
1730bd1da9d7Smrg
173147e89262Smrg#ifdef __STDC__
173247e89262Smrg# include <limits.h>
173347e89262Smrg#else
173447e89262Smrg# include <assert.h>
173547e89262Smrg#endif
173647e89262Smrg
173747e89262Smrg#undef $2
173847e89262Smrg
173947e89262Smrg/* Override any GCC internal prototype to avoid an error.
174047e89262Smrg   Use char because int might match the return type of a GCC
174147e89262Smrg   builtin and then its argument prototype would still apply.  */
174247e89262Smrg#ifdef __cplusplus
174347e89262Smrgextern "C"
174447e89262Smrg#endif
174547e89262Smrgchar $2 ();
174647e89262Smrg/* The GNU C library defines this for functions which it implements
174747e89262Smrg    to always fail with ENOSYS.  Some functions are actually named
174847e89262Smrg    something starting with __ and the normal name is an alias.  */
174947e89262Smrg#if defined __stub_$2 || defined __stub___$2
175047e89262Smrgchoke me
175147e89262Smrg#endif
175247e89262Smrg
175347e89262Smrgint
175447e89262Smrgmain ()
175547e89262Smrg{
175647e89262Smrgreturn $2 ();
175747e89262Smrg  ;
175847e89262Smrg  return 0;
175947e89262Smrg}
176047e89262Smrg_ACEOF
176147e89262Smrgif ac_fn_c_try_link "$LINENO"; then :
176247e89262Smrg  eval "$3=yes"
1763bd1da9d7Smrgelse
176447e89262Smrg  eval "$3=no"
1765bd1da9d7Smrgfi
176647e89262Smrgrm -f core conftest.err conftest.$ac_objext \
176747e89262Smrg    conftest$ac_exeext conftest.$ac_ext
176847e89262Smrgfi
176947e89262Smrgeval ac_res=\$$3
177047e89262Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
177147e89262Smrg$as_echo "$ac_res" >&6; }
177247e89262Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773bd1da9d7Smrg
177447e89262Smrg} # ac_fn_c_check_func
1775bd1da9d7Smrg
177647e89262Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
177747e89262Smrg# ---------------------------------------------
177847e89262Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
177947e89262Smrg# accordingly.
178047e89262Smrgac_fn_c_check_decl ()
178147e89262Smrg{
178247e89262Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
178347e89262Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
178447e89262Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
178547e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
178647e89262Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
178747e89262Smrgif eval \${$3+:} false; then :
17885bcb6992Smrg  $as_echo_n "(cached) " >&6
1789bd1da9d7Smrgelse
179047e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
179147e89262Smrg/* end confdefs.h.  */
179247e89262Smrg$4
179347e89262Smrgint
179447e89262Smrgmain ()
179547e89262Smrg{
179647e89262Smrg#ifndef $as_decl_name
179747e89262Smrg#ifdef __cplusplus
179847e89262Smrg  (void) $as_decl_use;
179947e89262Smrg#else
180047e89262Smrg  (void) $as_decl_name;
180147e89262Smrg#endif
180247e89262Smrg#endif
1803bd1da9d7Smrg
180447e89262Smrg  ;
180547e89262Smrg  return 0;
180647e89262Smrg}
180747e89262Smrg_ACEOF
180847e89262Smrgif ac_fn_c_try_compile "$LINENO"; then :
180947e89262Smrg  eval "$3=yes"
181047e89262Smrgelse
181147e89262Smrg  eval "$3=no"
181247e89262Smrgfi
181347e89262Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
181447e89262Smrgfi
181547e89262Smrgeval ac_res=\$$3
181647e89262Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
181747e89262Smrg$as_echo "$ac_res" >&6; }
181847e89262Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
181947e89262Smrg
182047e89262Smrg} # ac_fn_c_check_decl
182147e89262Smrgcat >config.log <<_ACEOF
182247e89262SmrgThis file contains any messages produced by compilers while
182347e89262Smrgrunning configure, to aid debugging if configure makes a mistake.
182447e89262Smrg
182547e89262SmrgIt was created by libXres $as_me 1.0.5, which was
182647e89262Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
1827bd1da9d7Smrg
182847e89262Smrg  $ $0 $@
1829bd1da9d7Smrg
183047e89262Smrg_ACEOF
183147e89262Smrgexec 5>>config.log
183247e89262Smrg{
183347e89262Smrgcat <<_ASUNAME
183447e89262Smrg## --------- ##
183547e89262Smrg## Platform. ##
183647e89262Smrg## --------- ##
1837bd1da9d7Smrg
183847e89262Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
183947e89262Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
184047e89262Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
184147e89262Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
184247e89262Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1843bd1da9d7Smrg
184447e89262Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
184547e89262Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1846bd1da9d7Smrg
184747e89262Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
184847e89262Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
184947e89262Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
185047e89262Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
185147e89262Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
185247e89262Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
185347e89262Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1854bd1da9d7Smrg
185547e89262Smrg_ASUNAME
1856bd1da9d7Smrg
185747e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185847e89262Smrgfor as_dir in $PATH
185947e89262Smrgdo
186047e89262Smrg  IFS=$as_save_IFS
186147e89262Smrg  test -z "$as_dir" && as_dir=.
186247e89262Smrg    $as_echo "PATH: $as_dir"
186347e89262Smrg  done
186447e89262SmrgIFS=$as_save_IFS
1865bd1da9d7Smrg
186647e89262Smrg} >&5
1867bd1da9d7Smrg
186847e89262Smrgcat >&5 <<_ACEOF
1869bd1da9d7Smrg
1870bd1da9d7Smrg
187147e89262Smrg## ----------- ##
187247e89262Smrg## Core tests. ##
187347e89262Smrg## ----------- ##
1874bd1da9d7Smrg
187547e89262Smrg_ACEOF
1876bd1da9d7Smrg
1877bd1da9d7Smrg
187847e89262Smrg# Keep a trace of the command line.
187947e89262Smrg# Strip out --no-create and --no-recursion so they do not pile up.
188047e89262Smrg# Strip out --silent because we don't want to record it for future runs.
188147e89262Smrg# Also quote any args containing shell meta-characters.
188247e89262Smrg# Make two passes to allow for proper duplicate-argument suppression.
188347e89262Smrgac_configure_args=
188447e89262Smrgac_configure_args0=
188547e89262Smrgac_configure_args1=
188647e89262Smrgac_must_keep_next=false
188747e89262Smrgfor ac_pass in 1 2
188847e89262Smrgdo
188947e89262Smrg  for ac_arg
189047e89262Smrg  do
189147e89262Smrg    case $ac_arg in
189247e89262Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
189347e89262Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
189447e89262Smrg    | -silent | --silent | --silen | --sile | --sil)
189547e89262Smrg      continue ;;
189647e89262Smrg    *\'*)
189747e89262Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
189847e89262Smrg    esac
189947e89262Smrg    case $ac_pass in
190047e89262Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
190147e89262Smrg    2)
190247e89262Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
190347e89262Smrg      if test $ac_must_keep_next = true; then
190447e89262Smrg	ac_must_keep_next=false # Got value, back to normal.
1905bd1da9d7Smrg      else
190647e89262Smrg	case $ac_arg in
190747e89262Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
190847e89262Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
190947e89262Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
191047e89262Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
191147e89262Smrg	    case "$ac_configure_args0 " in
191247e89262Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
191347e89262Smrg	    esac
191447e89262Smrg	    ;;
191547e89262Smrg	  -* ) ac_must_keep_next=true ;;
191647e89262Smrg	esac
1917bd1da9d7Smrg      fi
191847e89262Smrg      as_fn_append ac_configure_args " '$ac_arg'"
191947e89262Smrg      ;;
192047e89262Smrg    esac
192147e89262Smrg  done
192247e89262Smrgdone
192347e89262Smrg{ ac_configure_args0=; unset ac_configure_args0;}
192447e89262Smrg{ ac_configure_args1=; unset ac_configure_args1;}
192547e89262Smrg
192647e89262Smrg# When interrupted or exit'd, cleanup temporary files, and complete
192747e89262Smrg# config.log.  We remove comments because anyway the quotes in there
192847e89262Smrg# would cause problems or look ugly.
192947e89262Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
193047e89262Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
193147e89262Smrgtrap 'exit_status=$?
193247e89262Smrg  # Save into config.log some information that might help in debugging.
193347e89262Smrg  {
193447e89262Smrg    echo
193547e89262Smrg
193647e89262Smrg    $as_echo "## ---------------- ##
193747e89262Smrg## Cache variables. ##
193847e89262Smrg## ---------------- ##"
193947e89262Smrg    echo
194047e89262Smrg    # The following way of writing the cache mishandles newlines in values,
194147e89262Smrg(
194247e89262Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
194347e89262Smrg    eval ac_val=\$$ac_var
194447e89262Smrg    case $ac_val in #(
194547e89262Smrg    *${as_nl}*)
194647e89262Smrg      case $ac_var in #(
194747e89262Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
194847e89262Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
194947e89262Smrg      esac
195047e89262Smrg      case $ac_var in #(
195147e89262Smrg      _ | IFS | as_nl) ;; #(
195247e89262Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
195347e89262Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
195447e89262Smrg      esac ;;
195547e89262Smrg    esac
195647e89262Smrg  done
195747e89262Smrg  (set) 2>&1 |
195847e89262Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
195947e89262Smrg    *${as_nl}ac_space=\ *)
196047e89262Smrg      sed -n \
196147e89262Smrg	"s/'\''/'\''\\\\'\'''\''/g;
196247e89262Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
196347e89262Smrg      ;; #(
196447e89262Smrg    *)
196547e89262Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1966bd1da9d7Smrg      ;;
196747e89262Smrg    esac |
196847e89262Smrg    sort
196947e89262Smrg)
197047e89262Smrg    echo
197147e89262Smrg
197247e89262Smrg    $as_echo "## ----------------- ##
197347e89262Smrg## Output variables. ##
197447e89262Smrg## ----------------- ##"
197547e89262Smrg    echo
197647e89262Smrg    for ac_var in $ac_subst_vars
197747e89262Smrg    do
197847e89262Smrg      eval ac_val=\$$ac_var
197947e89262Smrg      case $ac_val in
198047e89262Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
198147e89262Smrg      esac
198247e89262Smrg      $as_echo "$ac_var='\''$ac_val'\''"
198347e89262Smrg    done | sort
198447e89262Smrg    echo
198547e89262Smrg
198647e89262Smrg    if test -n "$ac_subst_files"; then
198747e89262Smrg      $as_echo "## ------------------- ##
198847e89262Smrg## File substitutions. ##
198947e89262Smrg## ------------------- ##"
199047e89262Smrg      echo
199147e89262Smrg      for ac_var in $ac_subst_files
199247e89262Smrg      do
199347e89262Smrg	eval ac_val=\$$ac_var
199447e89262Smrg	case $ac_val in
199547e89262Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
199647e89262Smrg	esac
199747e89262Smrg	$as_echo "$ac_var='\''$ac_val'\''"
199847e89262Smrg      done | sort
199947e89262Smrg      echo
200047e89262Smrg    fi
2001bd1da9d7Smrg
200247e89262Smrg    if test -s confdefs.h; then
200347e89262Smrg      $as_echo "## ----------- ##
200447e89262Smrg## confdefs.h. ##
200547e89262Smrg## ----------- ##"
200647e89262Smrg      echo
200747e89262Smrg      cat confdefs.h
200847e89262Smrg      echo
200947e89262Smrg    fi
201047e89262Smrg    test "$ac_signal" != 0 &&
201147e89262Smrg      $as_echo "$as_me: caught signal $ac_signal"
201247e89262Smrg    $as_echo "$as_me: exit $exit_status"
201347e89262Smrg  } >&5
201447e89262Smrg  rm -f core *.core core.conftest.* &&
201547e89262Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
201647e89262Smrg    exit $exit_status
201747e89262Smrg' 0
201847e89262Smrgfor ac_signal in 1 2 13 15; do
201947e89262Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
202047e89262Smrgdone
202147e89262Smrgac_signal=0
2022bd1da9d7Smrg
202347e89262Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
202447e89262Smrgrm -f -r conftest* confdefs.h
2025bd1da9d7Smrg
202647e89262Smrg$as_echo "/* confdefs.h */" > confdefs.h
2027bd1da9d7Smrg
202847e89262Smrg# Predefined preprocessor variables.
2029bd1da9d7Smrg
203047e89262Smrgcat >>confdefs.h <<_ACEOF
203147e89262Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
203247e89262Smrg_ACEOF
2033bd1da9d7Smrg
203447e89262Smrgcat >>confdefs.h <<_ACEOF
203547e89262Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
203647e89262Smrg_ACEOF
2037bd1da9d7Smrg
203847e89262Smrgcat >>confdefs.h <<_ACEOF
203947e89262Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
204047e89262Smrg_ACEOF
2041bd1da9d7Smrg
204247e89262Smrgcat >>confdefs.h <<_ACEOF
204347e89262Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
204447e89262Smrg_ACEOF
2045bd1da9d7Smrg
204647e89262Smrgcat >>confdefs.h <<_ACEOF
204747e89262Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
204847e89262Smrg_ACEOF
2049bd1da9d7Smrg
205047e89262Smrgcat >>confdefs.h <<_ACEOF
205147e89262Smrg#define PACKAGE_URL "$PACKAGE_URL"
205247e89262Smrg_ACEOF
2053bd1da9d7Smrg
2054bd1da9d7Smrg
205547e89262Smrg# Let the site file select an alternate cache file if it wants to.
205647e89262Smrg# Prefer an explicitly selected file to automatically selected ones.
205747e89262Smrgac_site_file1=NONE
205847e89262Smrgac_site_file2=NONE
205947e89262Smrgif test -n "$CONFIG_SITE"; then
206047e89262Smrg  # We do not want a PATH search for config.site.
206147e89262Smrg  case $CONFIG_SITE in #((
206247e89262Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
206347e89262Smrg    */*) ac_site_file1=$CONFIG_SITE;;
206447e89262Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
206547e89262Smrg  esac
206647e89262Smrgelif test "x$prefix" != xNONE; then
206747e89262Smrg  ac_site_file1=$prefix/share/config.site
206847e89262Smrg  ac_site_file2=$prefix/etc/config.site
206947e89262Smrgelse
207047e89262Smrg  ac_site_file1=$ac_default_prefix/share/config.site
207147e89262Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
207247e89262Smrgfi
207347e89262Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
207447e89262Smrgdo
207547e89262Smrg  test "x$ac_site_file" = xNONE && continue
207647e89262Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
207747e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
207847e89262Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
207947e89262Smrg    sed 's/^/| /' "$ac_site_file" >&5
208047e89262Smrg    . "$ac_site_file" \
208147e89262Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
208247e89262Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
208347e89262Smrgas_fn_error $? "failed to load site script $ac_site_file
208447e89262SmrgSee \`config.log' for more details" "$LINENO" 5; }
208547e89262Smrg  fi
208647e89262Smrgdone
2087bd1da9d7Smrg
208847e89262Smrgif test -r "$cache_file"; then
208947e89262Smrg  # Some versions of bash will fail to source /dev/null (special files
209047e89262Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
209147e89262Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
209247e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
209347e89262Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
209447e89262Smrg    case $cache_file in
209547e89262Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
209647e89262Smrg      *)                      . "./$cache_file";;
209747e89262Smrg    esac
209847e89262Smrg  fi
209947e89262Smrgelse
210047e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
210147e89262Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
210247e89262Smrg  >$cache_file
210347e89262Smrgfi
2104bd1da9d7Smrg
210547e89262Smrg# Check that the precious variables saved in the cache have kept the same
210647e89262Smrg# value.
210747e89262Smrgac_cache_corrupted=false
210847e89262Smrgfor ac_var in $ac_precious_vars; do
210947e89262Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
211047e89262Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
211147e89262Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
211247e89262Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
211347e89262Smrg  case $ac_old_set,$ac_new_set in
211447e89262Smrg    set,)
211547e89262Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
211647e89262Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
211747e89262Smrg      ac_cache_corrupted=: ;;
211847e89262Smrg    ,set)
211947e89262Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
212047e89262Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
212147e89262Smrg      ac_cache_corrupted=: ;;
212247e89262Smrg    ,);;
2123bd1da9d7Smrg    *)
212447e89262Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
212547e89262Smrg	# differences in whitespace do not lead to failure.
212647e89262Smrg	ac_old_val_w=`echo x $ac_old_val`
212747e89262Smrg	ac_new_val_w=`echo x $ac_new_val`
212847e89262Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
212947e89262Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
213047e89262Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
213147e89262Smrg	  ac_cache_corrupted=:
213247e89262Smrg	else
213347e89262Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
213447e89262Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
213547e89262Smrg	  eval $ac_var=\$ac_old_val
213647e89262Smrg	fi
213747e89262Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
213847e89262Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
213947e89262Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
214047e89262Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
214147e89262Smrg      fi;;
214247e89262Smrg  esac
214347e89262Smrg  # Pass precious variables to config.status.
214447e89262Smrg  if test "$ac_new_set" = set; then
214547e89262Smrg    case $ac_new_val in
214647e89262Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
214747e89262Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
214847e89262Smrg    esac
214947e89262Smrg    case " $ac_configure_args " in
215047e89262Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
215147e89262Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2152bd1da9d7Smrg    esac
215347e89262Smrg  fi
215447e89262Smrgdone
215547e89262Smrgif $ac_cache_corrupted; then
215647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
215747e89262Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
215847e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
215947e89262Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
216047e89262Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
216147e89262Smrgfi
216247e89262Smrg## -------------------- ##
216347e89262Smrg## Main body of script. ##
216447e89262Smrg## -------------------- ##
2165bd1da9d7Smrg
216647e89262Smrgac_ext=c
216747e89262Smrgac_cpp='$CPP $CPPFLAGS'
216847e89262Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
216947e89262Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
217047e89262Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2171bd1da9d7Smrg
2172bd1da9d7Smrg
217347e89262Smrgac_aux_dir=
217447e89262Smrgfor ac_dir in . "$srcdir"/.; do
217547e89262Smrg  if test -f "$ac_dir/install-sh"; then
217647e89262Smrg    ac_aux_dir=$ac_dir
217747e89262Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
217847e89262Smrg    break
217947e89262Smrg  elif test -f "$ac_dir/install.sh"; then
218047e89262Smrg    ac_aux_dir=$ac_dir
218147e89262Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
218247e89262Smrg    break
218347e89262Smrg  elif test -f "$ac_dir/shtool"; then
218447e89262Smrg    ac_aux_dir=$ac_dir
218547e89262Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
218647e89262Smrg    break
218747e89262Smrg  fi
218847e89262Smrgdone
218947e89262Smrgif test -z "$ac_aux_dir"; then
219047e89262Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
219147e89262Smrgfi
2192bd1da9d7Smrg
219347e89262Smrg# These three variables are undocumented and unsupported,
219447e89262Smrg# and are intended to be withdrawn in a future Autoconf release.
219547e89262Smrg# They can cause serious problems if a builder's source tree is in a directory
219647e89262Smrg# whose full name contains unusual characters.
219747e89262Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
219847e89262Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
219947e89262Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2200bd1da9d7Smrg
2201bd1da9d7Smrg
220247e89262Smrgam__api_version='1.11'
2203bd1da9d7Smrg
220447e89262Smrg# Find a good install program.  We prefer a C program (faster),
220547e89262Smrg# so one script is as good as another.  But avoid the broken or
220647e89262Smrg# incompatible versions:
220747e89262Smrg# SysV /etc/install, /usr/sbin/install
220847e89262Smrg# SunOS /usr/etc/install
220947e89262Smrg# IRIX /sbin/install
221047e89262Smrg# AIX /bin/install
221147e89262Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
221247e89262Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
221347e89262Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
221447e89262Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
221547e89262Smrg# OS/2's system install, which has a completely different semantic
221647e89262Smrg# ./install, which can be erroneously created by make from ./install.sh.
221747e89262Smrg# Reject install programs that cannot install multiple files.
221847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
221947e89262Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
222047e89262Smrgif test -z "$INSTALL"; then
222147e89262Smrgif ${ac_cv_path_install+:} false; then :
222247e89262Smrg  $as_echo_n "(cached) " >&6
222347e89262Smrgelse
222447e89262Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222547e89262Smrgfor as_dir in $PATH
222647e89262Smrgdo
222747e89262Smrg  IFS=$as_save_IFS
222847e89262Smrg  test -z "$as_dir" && as_dir=.
222947e89262Smrg    # Account for people who put trailing slashes in PATH elements.
223047e89262Smrgcase $as_dir/ in #((
223147e89262Smrg  ./ | .// | /[cC]/* | \
223247e89262Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
223347e89262Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
223447e89262Smrg  /usr/ucb/* ) ;;
223547e89262Smrg  *)
223647e89262Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
223747e89262Smrg    # Don't use installbsd from OSF since it installs stuff as root
223847e89262Smrg    # by default.
223947e89262Smrg    for ac_prog in ginstall scoinst install; do
224047e89262Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
224147e89262Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
224247e89262Smrg	  if test $ac_prog = install &&
224347e89262Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
224447e89262Smrg	    # AIX install.  It has an incompatible calling convention.
224547e89262Smrg	    :
224647e89262Smrg	  elif test $ac_prog = install &&
224747e89262Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
224847e89262Smrg	    # program-specific install script used by HP pwplus--don't use.
224947e89262Smrg	    :
2250bd1da9d7Smrg	  else
225147e89262Smrg	    rm -rf conftest.one conftest.two conftest.dir
225247e89262Smrg	    echo one > conftest.one
225347e89262Smrg	    echo two > conftest.two
225447e89262Smrg	    mkdir conftest.dir
225547e89262Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
225647e89262Smrg	      test -s conftest.one && test -s conftest.two &&
225747e89262Smrg	      test -s conftest.dir/conftest.one &&
225847e89262Smrg	      test -s conftest.dir/conftest.two
225947e89262Smrg	    then
226047e89262Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
226147e89262Smrg	      break 3
226247e89262Smrg	    fi
2263bd1da9d7Smrg	  fi
2264bd1da9d7Smrg	fi
226547e89262Smrg      done
226647e89262Smrg    done
226747e89262Smrg    ;;
2268bd1da9d7Smrgesac
22695bcb6992Smrg
227047e89262Smrg  done
227147e89262SmrgIFS=$as_save_IFS
2272bd1da9d7Smrg
227347e89262Smrgrm -rf conftest.one conftest.two conftest.dir
2274bd1da9d7Smrg
2275bd1da9d7Smrgfi
227647e89262Smrg  if test "${ac_cv_path_install+set}" = set; then
227747e89262Smrg    INSTALL=$ac_cv_path_install
227847e89262Smrg  else
227947e89262Smrg    # As a last resort, use the slow shell script.  Don't cache a
228047e89262Smrg    # value for INSTALL within a source directory, because that will
228147e89262Smrg    # break other packages using the cache if that directory is
228247e89262Smrg    # removed, or if the value is a relative name.
228347e89262Smrg    INSTALL=$ac_install_sh
228447e89262Smrg  fi
228547e89262Smrgfi
228647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
228747e89262Smrg$as_echo "$INSTALL" >&6; }
2288bd1da9d7Smrg
228947e89262Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
229047e89262Smrg# It thinks the first close brace ends the variable substitution.
229147e89262Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2292bd1da9d7Smrg
229347e89262Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2294bd1da9d7Smrg
229547e89262Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2296bd1da9d7Smrg
229747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
229847e89262Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
229947e89262Smrg# Just in case
230047e89262Smrgsleep 1
230147e89262Smrgecho timestamp > conftest.file
230247e89262Smrg# Reject unsafe characters in $srcdir or the absolute working directory
230347e89262Smrg# name.  Accept space and tab only in the latter.
230447e89262Smrgam_lf='
230547e89262Smrg'
230647e89262Smrgcase `pwd` in
230747e89262Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
230847e89262Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
230947e89262Smrgesac
231047e89262Smrgcase $srcdir in
231147e89262Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
231247e89262Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2313bd1da9d7Smrgesac
2314bd1da9d7Smrg
231547e89262Smrg# Do `set' in a subshell so we don't clobber the current shell's
231647e89262Smrg# arguments.  Must try -L first in case configure is actually a
231747e89262Smrg# symlink; some systems play weird games with the mod time of symlinks
231847e89262Smrg# (eg FreeBSD returns the mod time of the symlink's containing
231947e89262Smrg# directory).
232047e89262Smrgif (
232147e89262Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
232247e89262Smrg   if test "$*" = "X"; then
232347e89262Smrg      # -L didn't work.
232447e89262Smrg      set X `ls -t "$srcdir/configure" conftest.file`
232547e89262Smrg   fi
232647e89262Smrg   rm -f conftest.file
232747e89262Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
232847e89262Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2329bd1da9d7Smrg
233047e89262Smrg      # If neither matched, then we have a broken ls.  This can happen
233147e89262Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
233247e89262Smrg      # broken ls alias from the environment.  This has actually
233347e89262Smrg      # happened.  Such a system could not be considered "sane".
233447e89262Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
233547e89262Smrgalias in your environment" "$LINENO" 5
233647e89262Smrg   fi
2337bd1da9d7Smrg
233847e89262Smrg   test "$2" = conftest.file
233947e89262Smrg   )
234047e89262Smrgthen
234147e89262Smrg   # Ok.
234247e89262Smrg   :
234347e89262Smrgelse
234447e89262Smrg   as_fn_error $? "newly created file is older than distributed files!
234547e89262SmrgCheck your system clock" "$LINENO" 5
234647e89262Smrgfi
234747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
234847e89262Smrg$as_echo "yes" >&6; }
234947e89262Smrgtest "$program_prefix" != NONE &&
235047e89262Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
235147e89262Smrg# Use a double $ so make ignores it.
235247e89262Smrgtest "$program_suffix" != NONE &&
235347e89262Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
235447e89262Smrg# Double any \ or $.
235547e89262Smrg# By default was `s,x,x', remove it if useless.
235647e89262Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
235747e89262Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2358bd1da9d7Smrg
235947e89262Smrg# expand $ac_aux_dir to an absolute path
236047e89262Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
2361bd1da9d7Smrg
236247e89262Smrgif test x"${MISSING+set}" != xset; then
236347e89262Smrg  case $am_aux_dir in
236447e89262Smrg  *\ * | *\	*)
236547e89262Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
236647e89262Smrg  *)
236747e89262Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
236847e89262Smrg  esac
236947e89262Smrgfi
237047e89262Smrg# Use eval to expand $SHELL
237147e89262Smrgif eval "$MISSING --run true"; then
237247e89262Smrg  am_missing_run="$MISSING --run "
237347e89262Smrgelse
237447e89262Smrg  am_missing_run=
237547e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
237647e89262Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
237747e89262Smrgfi
2378bd1da9d7Smrg
237947e89262Smrgif test x"${install_sh}" != xset; then
238047e89262Smrg  case $am_aux_dir in
238147e89262Smrg  *\ * | *\	*)
238247e89262Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
238347e89262Smrg  *)
238447e89262Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
238547e89262Smrg  esac
238647e89262Smrgfi
2387bd1da9d7Smrg
238847e89262Smrg# Installed binaries are usually stripped using `strip' when the user
238947e89262Smrg# run `make install-strip'.  However `strip' might not be the right
239047e89262Smrg# tool to use in cross-compilation environments, therefore Automake
239147e89262Smrg# will honor the `STRIP' environment variable to overrule this program.
239247e89262Smrgif test "$cross_compiling" != no; then
239347e89262Smrg  if test -n "$ac_tool_prefix"; then
239447e89262Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
239547e89262Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
239647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
239747e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
239847e89262Smrgif ${ac_cv_prog_STRIP+:} false; then :
239947e89262Smrg  $as_echo_n "(cached) " >&6
240047e89262Smrgelse
240147e89262Smrg  if test -n "$STRIP"; then
240247e89262Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
240347e89262Smrgelse
240447e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
240547e89262Smrgfor as_dir in $PATH
240647e89262Smrgdo
240747e89262Smrg  IFS=$as_save_IFS
240847e89262Smrg  test -z "$as_dir" && as_dir=.
240947e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
241047e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
241147e89262Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
241247e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
241347e89262Smrg    break 2
241447e89262Smrg  fi
241547e89262Smrgdone
241647e89262Smrg  done
241747e89262SmrgIFS=$as_save_IFS
2418bd1da9d7Smrg
241947e89262Smrgfi
242047e89262Smrgfi
242147e89262SmrgSTRIP=$ac_cv_prog_STRIP
242247e89262Smrgif test -n "$STRIP"; then
242347e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
242447e89262Smrg$as_echo "$STRIP" >&6; }
242547e89262Smrgelse
242647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
242747e89262Smrg$as_echo "no" >&6; }
242847e89262Smrgfi
2429bd1da9d7Smrg
2430bd1da9d7Smrg
243147e89262Smrgfi
243247e89262Smrgif test -z "$ac_cv_prog_STRIP"; then
243347e89262Smrg  ac_ct_STRIP=$STRIP
243447e89262Smrg  # Extract the first word of "strip", so it can be a program name with args.
243547e89262Smrgset dummy strip; ac_word=$2
243647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
243747e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
243847e89262Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
243947e89262Smrg  $as_echo_n "(cached) " >&6
244047e89262Smrgelse
244147e89262Smrg  if test -n "$ac_ct_STRIP"; then
244247e89262Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
244347e89262Smrgelse
244447e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244547e89262Smrgfor as_dir in $PATH
244647e89262Smrgdo
244747e89262Smrg  IFS=$as_save_IFS
244847e89262Smrg  test -z "$as_dir" && as_dir=.
244947e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
245047e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
245147e89262Smrg    ac_cv_prog_ac_ct_STRIP="strip"
245247e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
245347e89262Smrg    break 2
245447e89262Smrg  fi
245547e89262Smrgdone
245647e89262Smrg  done
245747e89262SmrgIFS=$as_save_IFS
2458bd1da9d7Smrg
245947e89262Smrgfi
246047e89262Smrgfi
246147e89262Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
246247e89262Smrgif test -n "$ac_ct_STRIP"; then
246347e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
246447e89262Smrg$as_echo "$ac_ct_STRIP" >&6; }
246547e89262Smrgelse
246647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
246747e89262Smrg$as_echo "no" >&6; }
246847e89262Smrgfi
2469bd1da9d7Smrg
247047e89262Smrg  if test "x$ac_ct_STRIP" = x; then
247147e89262Smrg    STRIP=":"
247247e89262Smrg  else
247347e89262Smrg    case $cross_compiling:$ac_tool_warned in
247447e89262Smrgyes:)
247547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
247647e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
247747e89262Smrgac_tool_warned=yes ;;
247847e89262Smrgesac
247947e89262Smrg    STRIP=$ac_ct_STRIP
248047e89262Smrg  fi
248147e89262Smrgelse
248247e89262Smrg  STRIP="$ac_cv_prog_STRIP"
248347e89262Smrgfi
2484bd1da9d7Smrg
248547e89262Smrgfi
248647e89262SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2487bd1da9d7Smrg
248847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
248947e89262Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
249047e89262Smrgif test -z "$MKDIR_P"; then
249147e89262Smrg  if ${ac_cv_path_mkdir+:} false; then :
249247e89262Smrg  $as_echo_n "(cached) " >&6
249347e89262Smrgelse
249447e89262Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
249547e89262Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
249647e89262Smrgdo
249747e89262Smrg  IFS=$as_save_IFS
249847e89262Smrg  test -z "$as_dir" && as_dir=.
249947e89262Smrg    for ac_prog in mkdir gmkdir; do
250047e89262Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
250147e89262Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
250247e89262Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
250347e89262Smrg	     'mkdir (GNU coreutils) '* | \
250447e89262Smrg	     'mkdir (coreutils) '* | \
250547e89262Smrg	     'mkdir (fileutils) '4.1*)
250647e89262Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
250747e89262Smrg	       break 3;;
250847e89262Smrg	   esac
250947e89262Smrg	 done
251047e89262Smrg       done
251147e89262Smrg  done
251247e89262SmrgIFS=$as_save_IFS
2513bd1da9d7Smrg
251447e89262Smrgfi
2515bd1da9d7Smrg
251647e89262Smrg  test -d ./--version && rmdir ./--version
251747e89262Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
251847e89262Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
251947e89262Smrg  else
252047e89262Smrg    # As a last resort, use the slow shell script.  Don't cache a
252147e89262Smrg    # value for MKDIR_P within a source directory, because that will
252247e89262Smrg    # break other packages using the cache if that directory is
252347e89262Smrg    # removed, or if the value is a relative name.
252447e89262Smrg    MKDIR_P="$ac_install_sh -d"
252547e89262Smrg  fi
252647e89262Smrgfi
252747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
252847e89262Smrg$as_echo "$MKDIR_P" >&6; }
2529bd1da9d7Smrg
253047e89262Smrgmkdir_p="$MKDIR_P"
253147e89262Smrgcase $mkdir_p in
253247e89262Smrg  [\\/$]* | ?:[\\/]*) ;;
253347e89262Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
253447e89262Smrgesac
2535bd1da9d7Smrg
253647e89262Smrgfor ac_prog in gawk mawk nawk awk
253747e89262Smrgdo
253847e89262Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
253947e89262Smrgset dummy $ac_prog; ac_word=$2
254047e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
254147e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
254247e89262Smrgif ${ac_cv_prog_AWK+:} false; then :
254347e89262Smrg  $as_echo_n "(cached) " >&6
254447e89262Smrgelse
254547e89262Smrg  if test -n "$AWK"; then
254647e89262Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
254747e89262Smrgelse
254847e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
254947e89262Smrgfor as_dir in $PATH
255047e89262Smrgdo
255147e89262Smrg  IFS=$as_save_IFS
255247e89262Smrg  test -z "$as_dir" && as_dir=.
255347e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
255447e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
255547e89262Smrg    ac_cv_prog_AWK="$ac_prog"
255647e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
255747e89262Smrg    break 2
255847e89262Smrg  fi
255947e89262Smrgdone
256047e89262Smrg  done
256147e89262SmrgIFS=$as_save_IFS
2562bd1da9d7Smrg
256347e89262Smrgfi
256447e89262Smrgfi
256547e89262SmrgAWK=$ac_cv_prog_AWK
256647e89262Smrgif test -n "$AWK"; then
256747e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
256847e89262Smrg$as_echo "$AWK" >&6; }
256947e89262Smrgelse
257047e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
257147e89262Smrg$as_echo "no" >&6; }
257247e89262Smrgfi
2573bd1da9d7Smrg
2574bd1da9d7Smrg
257547e89262Smrg  test -n "$AWK" && break
257647e89262Smrgdone
2577bd1da9d7Smrg
257847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
257947e89262Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
258047e89262Smrgset x ${MAKE-make}
258147e89262Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
258247e89262Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
258347e89262Smrg  $as_echo_n "(cached) " >&6
258447e89262Smrgelse
258547e89262Smrg  cat >conftest.make <<\_ACEOF
258647e89262SmrgSHELL = /bin/sh
258747e89262Smrgall:
258847e89262Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
258947e89262Smrg_ACEOF
259047e89262Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
259147e89262Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
259247e89262Smrg  *@@@%%%=?*=@@@%%%*)
259347e89262Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
259447e89262Smrg  *)
259547e89262Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
259647e89262Smrgesac
259747e89262Smrgrm -f conftest.make
259847e89262Smrgfi
259947e89262Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
260047e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
260147e89262Smrg$as_echo "yes" >&6; }
260247e89262Smrg  SET_MAKE=
260347e89262Smrgelse
260447e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
260547e89262Smrg$as_echo "no" >&6; }
260647e89262Smrg  SET_MAKE="MAKE=${MAKE-make}"
260747e89262Smrgfi
2608bd1da9d7Smrg
260947e89262Smrgrm -rf .tst 2>/dev/null
261047e89262Smrgmkdir .tst 2>/dev/null
261147e89262Smrgif test -d .tst; then
261247e89262Smrg  am__leading_dot=.
261347e89262Smrgelse
261447e89262Smrg  am__leading_dot=_
261547e89262Smrgfi
261647e89262Smrgrmdir .tst 2>/dev/null
2617bd1da9d7Smrg
261847e89262Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
261947e89262Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
262047e89262Smrg  # is not polluted with repeated "-I."
262147e89262Smrg  am__isrc=' -I$(srcdir)'
262247e89262Smrg  # test to see if srcdir already configured
262347e89262Smrg  if test -f $srcdir/config.status; then
262447e89262Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
262547e89262Smrg  fi
262647e89262Smrgfi
2627bd1da9d7Smrg
262847e89262Smrg# test whether we have cygpath
262947e89262Smrgif test -z "$CYGPATH_W"; then
263047e89262Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
263147e89262Smrg    CYGPATH_W='cygpath -w'
263247e89262Smrg  else
263347e89262Smrg    CYGPATH_W=echo
263447e89262Smrg  fi
263547e89262Smrgfi
2636bd1da9d7Smrg
2637bd1da9d7Smrg
263847e89262Smrg# Define the identity of the package.
263947e89262Smrg PACKAGE='libXres'
264047e89262Smrg VERSION='1.0.5'
2641bd1da9d7Smrg
2642bd1da9d7Smrg
264347e89262Smrgcat >>confdefs.h <<_ACEOF
264447e89262Smrg#define PACKAGE "$PACKAGE"
264547e89262Smrg_ACEOF
2646bd1da9d7Smrg
2647bd1da9d7Smrg
264847e89262Smrgcat >>confdefs.h <<_ACEOF
264947e89262Smrg#define VERSION "$VERSION"
265047e89262Smrg_ACEOF
2651bd1da9d7Smrg
265247e89262Smrg# Some tools Automake needs.
2653bd1da9d7Smrg
265447e89262SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2655bd1da9d7Smrg
2656bd1da9d7Smrg
265747e89262SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2658bd1da9d7Smrg
2659bd1da9d7Smrg
266047e89262SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2661bd1da9d7Smrg
2662bd1da9d7Smrg
266347e89262SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2664bd1da9d7Smrg
2665bd1da9d7Smrg
266647e89262SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2667bd1da9d7Smrg
266847e89262Smrg# We need awk for the "check" target.  The system "awk" is bad on
266947e89262Smrg# some platforms.
267047e89262Smrg# Always define AMTAR for backward compatibility.
2671bd1da9d7Smrg
267247e89262SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
26735bcb6992Smrg
267447e89262Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2675bd1da9d7Smrg
2676bd1da9d7Smrg
2677bd1da9d7Smrg
2678bd1da9d7Smrg
2679bd1da9d7Smrg
2680bd1da9d7Smrg
268147e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
268247e89262Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
268347e89262Smrg    # Check whether --enable-maintainer-mode was given.
268447e89262Smrgif test "${enable_maintainer_mode+set}" = set; then :
268547e89262Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
268647e89262Smrgelse
268747e89262Smrg  USE_MAINTAINER_MODE=no
268847e89262Smrgfi
268947e89262Smrg
269047e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
269147e89262Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
269247e89262Smrg   if test $USE_MAINTAINER_MODE = yes; then
269347e89262Smrg  MAINTAINER_MODE_TRUE=
269447e89262Smrg  MAINTAINER_MODE_FALSE='#'
269547e89262Smrgelse
269647e89262Smrg  MAINTAINER_MODE_TRUE='#'
269747e89262Smrg  MAINTAINER_MODE_FALSE=
269847e89262Smrgfi
269947e89262Smrg
270047e89262Smrg  MAINT=$MAINTAINER_MODE_TRUE
2701bd1da9d7Smrg
2702bd1da9d7Smrg
2703bd1da9d7Smrg
270447e89262Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2705bd1da9d7Smrg
2706bd1da9d7Smrg
2707bd1da9d7Smrg
27085bcb6992Smrg
2709bd1da9d7Smrg
2710bd1da9d7Smrg
2711bd1da9d7Smrg
271247e89262Smrg
271347e89262Smrg
271447e89262Smrg
271547e89262Smrg
271647e89262Smrg
271747e89262Smrgac_config_headers="$ac_config_headers config.h"
271847e89262Smrg
271947e89262Smrg
272047e89262Smrg# Check for progs
272147e89262Smrgac_ext=c
272247e89262Smrgac_cpp='$CPP $CPPFLAGS'
272347e89262Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
272447e89262Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
272547e89262Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
272647e89262Smrgif test -n "$ac_tool_prefix"; then
272747e89262Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
272847e89262Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
272947e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
273047e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
273147e89262Smrgif ${ac_cv_prog_CC+:} false; then :
273247e89262Smrg  $as_echo_n "(cached) " >&6
273347e89262Smrgelse
273447e89262Smrg  if test -n "$CC"; then
273547e89262Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
273647e89262Smrgelse
273747e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
273847e89262Smrgfor as_dir in $PATH
273947e89262Smrgdo
274047e89262Smrg  IFS=$as_save_IFS
274147e89262Smrg  test -z "$as_dir" && as_dir=.
274247e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
274347e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
274447e89262Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
274547e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
274647e89262Smrg    break 2
2747bd1da9d7Smrg  fi
274847e89262Smrgdone
274947e89262Smrg  done
275047e89262SmrgIFS=$as_save_IFS
2751bd1da9d7Smrg
275247e89262Smrgfi
275347e89262Smrgfi
275447e89262SmrgCC=$ac_cv_prog_CC
275547e89262Smrgif test -n "$CC"; then
275647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
275747e89262Smrg$as_echo "$CC" >&6; }
275847e89262Smrgelse
275947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
276047e89262Smrg$as_echo "no" >&6; }
276147e89262Smrgfi
2762bd1da9d7Smrg
2763bd1da9d7Smrg
276447e89262Smrgfi
276547e89262Smrgif test -z "$ac_cv_prog_CC"; then
276647e89262Smrg  ac_ct_CC=$CC
276747e89262Smrg  # Extract the first word of "gcc", so it can be a program name with args.
276847e89262Smrgset dummy gcc; ac_word=$2
276947e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
277047e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
277147e89262Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
277247e89262Smrg  $as_echo_n "(cached) " >&6
277347e89262Smrgelse
277447e89262Smrg  if test -n "$ac_ct_CC"; then
277547e89262Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
277647e89262Smrgelse
277747e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
277847e89262Smrgfor as_dir in $PATH
277947e89262Smrgdo
278047e89262Smrg  IFS=$as_save_IFS
278147e89262Smrg  test -z "$as_dir" && as_dir=.
278247e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
278347e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278447e89262Smrg    ac_cv_prog_ac_ct_CC="gcc"
278547e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278647e89262Smrg    break 2
278747e89262Smrg  fi
278847e89262Smrgdone
278947e89262Smrg  done
279047e89262SmrgIFS=$as_save_IFS
279147e89262Smrg
279247e89262Smrgfi
279347e89262Smrgfi
279447e89262Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
279547e89262Smrgif test -n "$ac_ct_CC"; then
279647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
279747e89262Smrg$as_echo "$ac_ct_CC" >&6; }
279847e89262Smrgelse
279947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
280047e89262Smrg$as_echo "no" >&6; }
280147e89262Smrgfi
280247e89262Smrg
280347e89262Smrg  if test "x$ac_ct_CC" = x; then
280447e89262Smrg    CC=""
280547e89262Smrg  else
280647e89262Smrg    case $cross_compiling:$ac_tool_warned in
280747e89262Smrgyes:)
280847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
280947e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
281047e89262Smrgac_tool_warned=yes ;;
281147e89262Smrgesac
281247e89262Smrg    CC=$ac_ct_CC
281347e89262Smrg  fi
281447e89262Smrgelse
281547e89262Smrg  CC="$ac_cv_prog_CC"
281647e89262Smrgfi
281747e89262Smrg
281847e89262Smrgif test -z "$CC"; then
281947e89262Smrg          if test -n "$ac_tool_prefix"; then
282047e89262Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
282147e89262Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
282247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
282347e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
282447e89262Smrgif ${ac_cv_prog_CC+:} false; then :
282547e89262Smrg  $as_echo_n "(cached) " >&6
282647e89262Smrgelse
282747e89262Smrg  if test -n "$CC"; then
282847e89262Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
282947e89262Smrgelse
283047e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
283147e89262Smrgfor as_dir in $PATH
283247e89262Smrgdo
283347e89262Smrg  IFS=$as_save_IFS
283447e89262Smrg  test -z "$as_dir" && as_dir=.
283547e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
283647e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
283747e89262Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
283847e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
283947e89262Smrg    break 2
284047e89262Smrg  fi
284147e89262Smrgdone
284247e89262Smrg  done
284347e89262SmrgIFS=$as_save_IFS
2844bd1da9d7Smrg
284547e89262Smrgfi
284647e89262Smrgfi
284747e89262SmrgCC=$ac_cv_prog_CC
284847e89262Smrgif test -n "$CC"; then
284947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
285047e89262Smrg$as_echo "$CC" >&6; }
285147e89262Smrgelse
285247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
285347e89262Smrg$as_echo "no" >&6; }
285447e89262Smrgfi
2855bd1da9d7Smrg
2856bd1da9d7Smrg
285747e89262Smrg  fi
285847e89262Smrgfi
285947e89262Smrgif test -z "$CC"; then
286047e89262Smrg  # Extract the first word of "cc", so it can be a program name with args.
286147e89262Smrgset dummy cc; ac_word=$2
286247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
286347e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
286447e89262Smrgif ${ac_cv_prog_CC+:} false; then :
286547e89262Smrg  $as_echo_n "(cached) " >&6
286647e89262Smrgelse
286747e89262Smrg  if test -n "$CC"; then
286847e89262Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
286947e89262Smrgelse
287047e89262Smrg  ac_prog_rejected=no
287147e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287247e89262Smrgfor as_dir in $PATH
287347e89262Smrgdo
287447e89262Smrg  IFS=$as_save_IFS
287547e89262Smrg  test -z "$as_dir" && as_dir=.
287647e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
287747e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
287847e89262Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
287947e89262Smrg       ac_prog_rejected=yes
288047e89262Smrg       continue
288147e89262Smrg     fi
288247e89262Smrg    ac_cv_prog_CC="cc"
288347e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
288447e89262Smrg    break 2
288547e89262Smrg  fi
288647e89262Smrgdone
288747e89262Smrg  done
288847e89262SmrgIFS=$as_save_IFS
2889bd1da9d7Smrg
289047e89262Smrgif test $ac_prog_rejected = yes; then
289147e89262Smrg  # We found a bogon in the path, so make sure we never use it.
289247e89262Smrg  set dummy $ac_cv_prog_CC
289347e89262Smrg  shift
289447e89262Smrg  if test $# != 0; then
289547e89262Smrg    # We chose a different compiler from the bogus one.
289647e89262Smrg    # However, it has the same basename, so the bogon will be chosen
289747e89262Smrg    # first if we set CC to just the basename; use the full file name.
289847e89262Smrg    shift
289947e89262Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2900bd1da9d7Smrg  fi
290147e89262Smrgfi
290247e89262Smrgfi
290347e89262Smrgfi
290447e89262SmrgCC=$ac_cv_prog_CC
290547e89262Smrgif test -n "$CC"; then
290647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
290747e89262Smrg$as_echo "$CC" >&6; }
290847e89262Smrgelse
290947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
291047e89262Smrg$as_echo "no" >&6; }
291147e89262Smrgfi
2912bd1da9d7Smrg
2913bd1da9d7Smrg
291447e89262Smrgfi
291547e89262Smrgif test -z "$CC"; then
291647e89262Smrg  if test -n "$ac_tool_prefix"; then
291747e89262Smrg  for ac_prog in cl.exe
291847e89262Smrg  do
291947e89262Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
292047e89262Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
292147e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
292247e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
292347e89262Smrgif ${ac_cv_prog_CC+:} false; then :
292447e89262Smrg  $as_echo_n "(cached) " >&6
292547e89262Smrgelse
292647e89262Smrg  if test -n "$CC"; then
292747e89262Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
292847e89262Smrgelse
292947e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
293047e89262Smrgfor as_dir in $PATH
293147e89262Smrgdo
293247e89262Smrg  IFS=$as_save_IFS
293347e89262Smrg  test -z "$as_dir" && as_dir=.
293447e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
293547e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
293647e89262Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
293747e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
293847e89262Smrg    break 2
2939bd1da9d7Smrg  fi
294047e89262Smrgdone
294147e89262Smrg  done
294247e89262SmrgIFS=$as_save_IFS
2943bd1da9d7Smrg
294447e89262Smrgfi
294547e89262Smrgfi
294647e89262SmrgCC=$ac_cv_prog_CC
294747e89262Smrgif test -n "$CC"; then
294847e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
294947e89262Smrg$as_echo "$CC" >&6; }
295047e89262Smrgelse
295147e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
295247e89262Smrg$as_echo "no" >&6; }
295347e89262Smrgfi
2954bd1da9d7Smrg
2955bd1da9d7Smrg
295647e89262Smrg    test -n "$CC" && break
295747e89262Smrg  done
295847e89262Smrgfi
295947e89262Smrgif test -z "$CC"; then
296047e89262Smrg  ac_ct_CC=$CC
296147e89262Smrg  for ac_prog in cl.exe
296247e89262Smrgdo
296347e89262Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
296447e89262Smrgset dummy $ac_prog; ac_word=$2
296547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
296647e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
296747e89262Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
296847e89262Smrg  $as_echo_n "(cached) " >&6
296947e89262Smrgelse
297047e89262Smrg  if test -n "$ac_ct_CC"; then
297147e89262Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
297247e89262Smrgelse
297347e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
297447e89262Smrgfor as_dir in $PATH
297547e89262Smrgdo
297647e89262Smrg  IFS=$as_save_IFS
297747e89262Smrg  test -z "$as_dir" && as_dir=.
297847e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
297947e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
298047e89262Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
298147e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
298247e89262Smrg    break 2
298347e89262Smrg  fi
298447e89262Smrgdone
298547e89262Smrg  done
298647e89262SmrgIFS=$as_save_IFS
298747e89262Smrg
298847e89262Smrgfi
298947e89262Smrgfi
299047e89262Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
299147e89262Smrgif test -n "$ac_ct_CC"; then
299247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
299347e89262Smrg$as_echo "$ac_ct_CC" >&6; }
299447e89262Smrgelse
299547e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
299647e89262Smrg$as_echo "no" >&6; }
299747e89262Smrgfi
299847e89262Smrg
299947e89262Smrg
300047e89262Smrg  test -n "$ac_ct_CC" && break
300147e89262Smrgdone
300247e89262Smrg
300347e89262Smrg  if test "x$ac_ct_CC" = x; then
300447e89262Smrg    CC=""
3005bd1da9d7Smrg  else
300647e89262Smrg    case $cross_compiling:$ac_tool_warned in
300747e89262Smrgyes:)
300847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
300947e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
301047e89262Smrgac_tool_warned=yes ;;
301147e89262Smrgesac
301247e89262Smrg    CC=$ac_ct_CC
3013bd1da9d7Smrg  fi
301447e89262Smrgfi
3015bd1da9d7Smrg
301647e89262Smrgfi
3017bd1da9d7Smrg
3018bd1da9d7Smrg
301947e89262Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
302047e89262Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
302147e89262Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
302247e89262SmrgSee \`config.log' for more details" "$LINENO" 5; }
30235bcb6992Smrg
302447e89262Smrg# Provide some information about the compiler.
302547e89262Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
302647e89262Smrgset X $ac_compile
302747e89262Smrgac_compiler=$2
302847e89262Smrgfor ac_option in --version -v -V -qversion; do
302947e89262Smrg  { { ac_try="$ac_compiler $ac_option >&5"
303047e89262Smrgcase "(($ac_try" in
303147e89262Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
303247e89262Smrg  *) ac_try_echo=$ac_try;;
303347e89262Smrgesac
303447e89262Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
303547e89262Smrg$as_echo "$ac_try_echo"; } >&5
303647e89262Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
303747e89262Smrg  ac_status=$?
303847e89262Smrg  if test -s conftest.err; then
303947e89262Smrg    sed '10a\
304047e89262Smrg... rest of stderr output deleted ...
304147e89262Smrg         10q' conftest.err >conftest.er1
304247e89262Smrg    cat conftest.er1 >&5
304347e89262Smrg  fi
304447e89262Smrg  rm -f conftest.er1 conftest.err
304547e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
304647e89262Smrg  test $ac_status = 0; }
304747e89262Smrgdone
3048bd1da9d7Smrg
304947e89262Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
305047e89262Smrg/* end confdefs.h.  */
3051bd1da9d7Smrg
305247e89262Smrgint
305347e89262Smrgmain ()
305447e89262Smrg{
3055bd1da9d7Smrg
305647e89262Smrg  ;
305747e89262Smrg  return 0;
305847e89262Smrg}
305947e89262Smrg_ACEOF
306047e89262Smrgac_clean_files_save=$ac_clean_files
306147e89262Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
306247e89262Smrg# Try to create an executable without -o first, disregard a.out.
306347e89262Smrg# It will help us diagnose broken compilers, and finding out an intuition
306447e89262Smrg# of exeext.
306547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
306647e89262Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
306747e89262Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3068bd1da9d7Smrg
306947e89262Smrg# The possible output files:
307047e89262Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
307147e89262Smrg
307247e89262Smrgac_rmfiles=
307347e89262Smrgfor ac_file in $ac_files
307447e89262Smrgdo
307547e89262Smrg  case $ac_file in
307647e89262Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
307747e89262Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
307847e89262Smrg  esac
307947e89262Smrgdone
308047e89262Smrgrm -f $ac_rmfiles
308147e89262Smrg
308247e89262Smrgif { { ac_try="$ac_link_default"
308347e89262Smrgcase "(($ac_try" in
308447e89262Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
308547e89262Smrg  *) ac_try_echo=$ac_try;;
308647e89262Smrgesac
308747e89262Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
308847e89262Smrg$as_echo "$ac_try_echo"; } >&5
308947e89262Smrg  (eval "$ac_link_default") 2>&5
309047e89262Smrg  ac_status=$?
309147e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
309247e89262Smrg  test $ac_status = 0; }; then :
309347e89262Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
309447e89262Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
309547e89262Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
309647e89262Smrg# so that the user can short-circuit this test for compilers unknown to
309747e89262Smrg# Autoconf.
309847e89262Smrgfor ac_file in $ac_files ''
309947e89262Smrgdo
310047e89262Smrg  test -f "$ac_file" || continue
310147e89262Smrg  case $ac_file in
310247e89262Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3103bd1da9d7Smrg	;;
310447e89262Smrg    [ab].out )
310547e89262Smrg	# We found the default executable, but exeext='' is most
310647e89262Smrg	# certainly right.
310747e89262Smrg	break;;
310847e89262Smrg    *.* )
310947e89262Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
311047e89262Smrg	then :; else
311147e89262Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
311247e89262Smrg	fi
311347e89262Smrg	# We set ac_cv_exeext here because the later test for it is not
311447e89262Smrg	# safe: cross compilers may not add the suffix if given an `-o'
311547e89262Smrg	# argument, so we may need to know it at that point already.
311647e89262Smrg	# Even if this section looks crufty: it has the advantage of
311747e89262Smrg	# actually working.
311847e89262Smrg	break;;
311947e89262Smrg    * )
312047e89262Smrg	break;;
312147e89262Smrg  esac
312247e89262Smrgdone
312347e89262Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3124bd1da9d7Smrg
312547e89262Smrgelse
312647e89262Smrg  ac_file=''
312747e89262Smrgfi
312847e89262Smrgif test -z "$ac_file"; then :
312947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
313047e89262Smrg$as_echo "no" >&6; }
313147e89262Smrg$as_echo "$as_me: failed program was:" >&5
313247e89262Smrgsed 's/^/| /' conftest.$ac_ext >&5
313347e89262Smrg
313447e89262Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
313547e89262Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
313647e89262Smrgas_fn_error 77 "C compiler cannot create executables
313747e89262SmrgSee \`config.log' for more details" "$LINENO" 5; }
313847e89262Smrgelse
313947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
314047e89262Smrg$as_echo "yes" >&6; }
314147e89262Smrgfi
314247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
314347e89262Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
314447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
314547e89262Smrg$as_echo "$ac_file" >&6; }
314647e89262Smrgac_exeext=$ac_cv_exeext
314747e89262Smrg
314847e89262Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
314947e89262Smrgac_clean_files=$ac_clean_files_save
315047e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
315147e89262Smrg$as_echo_n "checking for suffix of executables... " >&6; }
315247e89262Smrgif { { ac_try="$ac_link"
315347e89262Smrgcase "(($ac_try" in
315447e89262Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
315547e89262Smrg  *) ac_try_echo=$ac_try;;
315647e89262Smrgesac
315747e89262Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
315847e89262Smrg$as_echo "$ac_try_echo"; } >&5
315947e89262Smrg  (eval "$ac_link") 2>&5
316047e89262Smrg  ac_status=$?
316147e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
316247e89262Smrg  test $ac_status = 0; }; then :
316347e89262Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
316447e89262Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
316547e89262Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
316647e89262Smrg# `rm'.
316747e89262Smrgfor ac_file in conftest.exe conftest conftest.*; do
316847e89262Smrg  test -f "$ac_file" || continue
316947e89262Smrg  case $ac_file in
317047e89262Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
317147e89262Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
317247e89262Smrg	  break;;
317347e89262Smrg    * ) break;;
317447e89262Smrg  esac
317547e89262Smrgdone
317647e89262Smrgelse
317747e89262Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
317847e89262Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
317947e89262Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
318047e89262SmrgSee \`config.log' for more details" "$LINENO" 5; }
318147e89262Smrgfi
318247e89262Smrgrm -f conftest conftest$ac_cv_exeext
318347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
318447e89262Smrg$as_echo "$ac_cv_exeext" >&6; }
318547e89262Smrg
318647e89262Smrgrm -f conftest.$ac_ext
318747e89262SmrgEXEEXT=$ac_cv_exeext
318847e89262Smrgac_exeext=$EXEEXT
318947e89262Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
319047e89262Smrg/* end confdefs.h.  */
319147e89262Smrg#include <stdio.h>
319247e89262Smrgint
319347e89262Smrgmain ()
319447e89262Smrg{
319547e89262SmrgFILE *f = fopen ("conftest.out", "w");
319647e89262Smrg return ferror (f) || fclose (f) != 0;
3197bd1da9d7Smrg
319847e89262Smrg  ;
319947e89262Smrg  return 0;
320047e89262Smrg}
320147e89262Smrg_ACEOF
320247e89262Smrgac_clean_files="$ac_clean_files conftest.out"
320347e89262Smrg# Check that the compiler produces executables we can run.  If not, either
320447e89262Smrg# the compiler is broken, or we cross compile.
320547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
320647e89262Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
320747e89262Smrgif test "$cross_compiling" != yes; then
320847e89262Smrg  { { ac_try="$ac_link"
320947e89262Smrgcase "(($ac_try" in
321047e89262Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
321147e89262Smrg  *) ac_try_echo=$ac_try;;
3212bd1da9d7Smrgesac
321347e89262Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
321447e89262Smrg$as_echo "$ac_try_echo"; } >&5
321547e89262Smrg  (eval "$ac_link") 2>&5
321647e89262Smrg  ac_status=$?
321747e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
321847e89262Smrg  test $ac_status = 0; }
321947e89262Smrg  if { ac_try='./conftest$ac_cv_exeext'
322047e89262Smrg  { { case "(($ac_try" in
322147e89262Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
322247e89262Smrg  *) ac_try_echo=$ac_try;;
322347e89262Smrgesac
322447e89262Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
322547e89262Smrg$as_echo "$ac_try_echo"; } >&5
322647e89262Smrg  (eval "$ac_try") 2>&5
322747e89262Smrg  ac_status=$?
322847e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
322947e89262Smrg  test $ac_status = 0; }; }; then
323047e89262Smrg    cross_compiling=no
323147e89262Smrg  else
323247e89262Smrg    if test "$cross_compiling" = maybe; then
323347e89262Smrg	cross_compiling=yes
323447e89262Smrg    else
323547e89262Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
323647e89262Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
323747e89262Smrgas_fn_error $? "cannot run C compiled programs.
323847e89262SmrgIf you meant to cross compile, use \`--host'.
323947e89262SmrgSee \`config.log' for more details" "$LINENO" 5; }
324047e89262Smrg    fi
324147e89262Smrg  fi
32425bcb6992Smrgfi
324347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
324447e89262Smrg$as_echo "$cross_compiling" >&6; }
32455bcb6992Smrg
324647e89262Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
324747e89262Smrgac_clean_files=$ac_clean_files_save
324847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
324947e89262Smrg$as_echo_n "checking for suffix of object files... " >&6; }
325047e89262Smrgif ${ac_cv_objext+:} false; then :
32515bcb6992Smrg  $as_echo_n "(cached) " >&6
32525bcb6992Smrgelse
325347e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
325447e89262Smrg/* end confdefs.h.  */
32555bcb6992Smrg
325647e89262Smrgint
325747e89262Smrgmain ()
325847e89262Smrg{
32595bcb6992Smrg
326047e89262Smrg  ;
326147e89262Smrg  return 0;
326247e89262Smrg}
326347e89262Smrg_ACEOF
326447e89262Smrgrm -f conftest.o conftest.obj
326547e89262Smrgif { { ac_try="$ac_compile"
326647e89262Smrgcase "(($ac_try" in
326747e89262Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
326847e89262Smrg  *) ac_try_echo=$ac_try;;
326947e89262Smrgesac
327047e89262Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
327147e89262Smrg$as_echo "$ac_try_echo"; } >&5
327247e89262Smrg  (eval "$ac_compile") 2>&5
327347e89262Smrg  ac_status=$?
327447e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
327547e89262Smrg  test $ac_status = 0; }; then :
327647e89262Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
327747e89262Smrg  test -f "$ac_file" || continue;
327847e89262Smrg  case $ac_file in
327947e89262Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
328047e89262Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
328147e89262Smrg       break;;
328247e89262Smrg  esac
328347e89262Smrgdone
328447e89262Smrgelse
328547e89262Smrg  $as_echo "$as_me: failed program was:" >&5
328647e89262Smrgsed 's/^/| /' conftest.$ac_ext >&5
328747e89262Smrg
328847e89262Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
328947e89262Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
329047e89262Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
329147e89262SmrgSee \`config.log' for more details" "$LINENO" 5; }
329247e89262Smrgfi
329347e89262Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3294bd1da9d7Smrgfi
329547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
329647e89262Smrg$as_echo "$ac_cv_objext" >&6; }
329747e89262SmrgOBJEXT=$ac_cv_objext
329847e89262Smrgac_objext=$OBJEXT
329947e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
330047e89262Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
330147e89262Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
330247e89262Smrg  $as_echo_n "(cached) " >&6
330347e89262Smrgelse
330447e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
330547e89262Smrg/* end confdefs.h.  */
3306bd1da9d7Smrg
330747e89262Smrgint
330847e89262Smrgmain ()
330947e89262Smrg{
331047e89262Smrg#ifndef __GNUC__
331147e89262Smrg       choke me
331247e89262Smrg#endif
3313bd1da9d7Smrg
331447e89262Smrg  ;
331547e89262Smrg  return 0;
331647e89262Smrg}
331747e89262Smrg_ACEOF
331847e89262Smrgif ac_fn_c_try_compile "$LINENO"; then :
331947e89262Smrg  ac_compiler_gnu=yes
3320bd1da9d7Smrgelse
332147e89262Smrg  ac_compiler_gnu=no
3322bd1da9d7Smrgfi
332347e89262Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
332447e89262Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3325bd1da9d7Smrg
3326bd1da9d7Smrgfi
332747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
332847e89262Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
332947e89262Smrgif test $ac_compiler_gnu = yes; then
333047e89262Smrg  GCC=yes
3331bd1da9d7Smrgelse
333247e89262Smrg  GCC=
3333bd1da9d7Smrgfi
333447e89262Smrgac_test_CFLAGS=${CFLAGS+set}
333547e89262Smrgac_save_CFLAGS=$CFLAGS
333647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
333747e89262Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
333847e89262Smrgif ${ac_cv_prog_cc_g+:} false; then :
333947e89262Smrg  $as_echo_n "(cached) " >&6
334047e89262Smrgelse
334147e89262Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
334247e89262Smrg   ac_c_werror_flag=yes
334347e89262Smrg   ac_cv_prog_cc_g=no
334447e89262Smrg   CFLAGS="-g"
334547e89262Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
334647e89262Smrg/* end confdefs.h.  */
3347bd1da9d7Smrg
334847e89262Smrgint
334947e89262Smrgmain ()
335047e89262Smrg{
335147e89262Smrg
335247e89262Smrg  ;
335347e89262Smrg  return 0;
335447e89262Smrg}
335547e89262Smrg_ACEOF
335647e89262Smrgif ac_fn_c_try_compile "$LINENO"; then :
335747e89262Smrg  ac_cv_prog_cc_g=yes
3358bd1da9d7Smrgelse
335947e89262Smrg  CFLAGS=""
336047e89262Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
336147e89262Smrg/* end confdefs.h.  */
3362bd1da9d7Smrg
336347e89262Smrgint
336447e89262Smrgmain ()
336547e89262Smrg{
3366bd1da9d7Smrg
336747e89262Smrg  ;
336847e89262Smrg  return 0;
336947e89262Smrg}
337047e89262Smrg_ACEOF
337147e89262Smrgif ac_fn_c_try_compile "$LINENO"; then :
3372bd1da9d7Smrg
337347e89262Smrgelse
337447e89262Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
337547e89262Smrg	 CFLAGS="-g"
337647e89262Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
337747e89262Smrg/* end confdefs.h.  */
3378bd1da9d7Smrg
337947e89262Smrgint
338047e89262Smrgmain ()
338147e89262Smrg{
338247e89262Smrg
338347e89262Smrg  ;
338447e89262Smrg  return 0;
338547e89262Smrg}
338647e89262Smrg_ACEOF
338747e89262Smrgif ac_fn_c_try_compile "$LINENO"; then :
338847e89262Smrg  ac_cv_prog_cc_g=yes
338947e89262Smrgfi
339047e89262Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
339147e89262Smrgfi
339247e89262Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
339347e89262Smrgfi
339447e89262Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
339547e89262Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
339647e89262Smrgfi
339747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
339847e89262Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
339947e89262Smrgif test "$ac_test_CFLAGS" = set; then
340047e89262Smrg  CFLAGS=$ac_save_CFLAGS
340147e89262Smrgelif test $ac_cv_prog_cc_g = yes; then
340247e89262Smrg  if test "$GCC" = yes; then
340347e89262Smrg    CFLAGS="-g -O2"
340447e89262Smrg  else
340547e89262Smrg    CFLAGS="-g"
340647e89262Smrg  fi
340747e89262Smrgelse
340847e89262Smrg  if test "$GCC" = yes; then
340947e89262Smrg    CFLAGS="-O2"
341047e89262Smrg  else
341147e89262Smrg    CFLAGS=
341247e89262Smrg  fi
341347e89262Smrgfi
341447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
341547e89262Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
341647e89262Smrgif ${ac_cv_prog_cc_c89+:} false; then :
34175bcb6992Smrg  $as_echo_n "(cached) " >&6
3418bd1da9d7Smrgelse
341947e89262Smrg  ac_cv_prog_cc_c89=no
342047e89262Smrgac_save_CC=$CC
342147e89262Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422bd1da9d7Smrg/* end confdefs.h.  */
342347e89262Smrg#include <stdarg.h>
342447e89262Smrg#include <stdio.h>
342547e89262Smrg#include <sys/types.h>
342647e89262Smrg#include <sys/stat.h>
342747e89262Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
342847e89262Smrgstruct buf { int x; };
342947e89262SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
343047e89262Smrgstatic char *e (p, i)
343147e89262Smrg     char **p;
343247e89262Smrg     int i;
343347e89262Smrg{
343447e89262Smrg  return p[i];
343547e89262Smrg}
343647e89262Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
343747e89262Smrg{
343847e89262Smrg  char *s;
343947e89262Smrg  va_list v;
344047e89262Smrg  va_start (v,p);
344147e89262Smrg  s = g (p, va_arg (v,int));
344247e89262Smrg  va_end (v);
344347e89262Smrg  return s;
344447e89262Smrg}
344547e89262Smrg
344647e89262Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
344747e89262Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
344847e89262Smrg   These don't provoke an error unfortunately, instead are silently treated
344947e89262Smrg   as 'x'.  The following induces an error, until -std is added to get
345047e89262Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
345147e89262Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
345247e89262Smrg   that's true only with -std.  */
345347e89262Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3454bd1da9d7Smrg
345547e89262Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
345647e89262Smrg   inside strings and character constants.  */
345747e89262Smrg#define FOO(x) 'x'
345847e89262Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
345947e89262Smrg
346047e89262Smrgint test (int i, double x);
346147e89262Smrgstruct s1 {int (*f) (int a);};
346247e89262Smrgstruct s2 {int (*f) (double a);};
346347e89262Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
346447e89262Smrgint argc;
346547e89262Smrgchar **argv;
3466bd1da9d7Smrgint
3467bd1da9d7Smrgmain ()
3468bd1da9d7Smrg{
346947e89262Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3470bd1da9d7Smrg  ;
3471bd1da9d7Smrg  return 0;
3472bd1da9d7Smrg}
3473bd1da9d7Smrg_ACEOF
347447e89262Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
347547e89262Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
347647e89262Smrgdo
347747e89262Smrg  CC="$ac_save_CC $ac_arg"
347847e89262Smrg  if ac_fn_c_try_compile "$LINENO"; then :
347947e89262Smrg  ac_cv_prog_cc_c89=$ac_arg
348047e89262Smrgfi
348147e89262Smrgrm -f core conftest.err conftest.$ac_objext
348247e89262Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
348347e89262Smrgdone
348447e89262Smrgrm -f conftest.$ac_ext
348547e89262SmrgCC=$ac_save_CC
3486bd1da9d7Smrg
3487bd1da9d7Smrgfi
348847e89262Smrg# AC_CACHE_VAL
348947e89262Smrgcase "x$ac_cv_prog_cc_c89" in
349047e89262Smrg  x)
349147e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
349247e89262Smrg$as_echo "none needed" >&6; } ;;
349347e89262Smrg  xno)
349447e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
349547e89262Smrg$as_echo "unsupported" >&6; } ;;
349647e89262Smrg  *)
349747e89262Smrg    CC="$CC $ac_cv_prog_cc_c89"
349847e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
349947e89262Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
350047e89262Smrgesac
350147e89262Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3502bd1da9d7Smrg
3503bd1da9d7Smrgfi
3504bd1da9d7Smrg
350547e89262Smrgac_ext=c
350647e89262Smrgac_cpp='$CPP $CPPFLAGS'
350747e89262Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
350847e89262Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
350947e89262Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
351047e89262SmrgDEPDIR="${am__leading_dot}deps"
3511bd1da9d7Smrg
351247e89262Smrgac_config_commands="$ac_config_commands depfiles"
351347e89262Smrg
351447e89262Smrg
351547e89262Smrgam_make=${MAKE-make}
351647e89262Smrgcat > confinc << 'END'
351747e89262Smrgam__doit:
351847e89262Smrg	@echo this is the am__doit target
351947e89262Smrg.PHONY: am__doit
352047e89262SmrgEND
352147e89262Smrg# If we don't find an include directive, just comment out the code.
352247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
352347e89262Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
352447e89262Smrgam__include="#"
352547e89262Smrgam__quote=
352647e89262Smrg_am_result=none
352747e89262Smrg# First try GNU make style include.
352847e89262Smrgecho "include confinc" > confmf
352947e89262Smrg# Ignore all kinds of additional output from `make'.
353047e89262Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
353147e89262Smrg*the\ am__doit\ target*)
353247e89262Smrg  am__include=include
353347e89262Smrg  am__quote=
353447e89262Smrg  _am_result=GNU
353547e89262Smrg  ;;
353647e89262Smrgesac
353747e89262Smrg# Now try BSD make style include.
353847e89262Smrgif test "$am__include" = "#"; then
353947e89262Smrg   echo '.include "confinc"' > confmf
354047e89262Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
354147e89262Smrg   *the\ am__doit\ target*)
354247e89262Smrg     am__include=.include
354347e89262Smrg     am__quote="\""
354447e89262Smrg     _am_result=BSD
354547e89262Smrg     ;;
354647e89262Smrg   esac
3547bd1da9d7Smrgfi
3548bd1da9d7Smrg
3549bd1da9d7Smrg
355047e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
355147e89262Smrg$as_echo "$_am_result" >&6; }
355247e89262Smrgrm -f confinc confmf
3553bd1da9d7Smrg
355447e89262Smrg# Check whether --enable-dependency-tracking was given.
355547e89262Smrgif test "${enable_dependency_tracking+set}" = set; then :
355647e89262Smrg  enableval=$enable_dependency_tracking;
355747e89262Smrgfi
3558bd1da9d7Smrg
355947e89262Smrgif test "x$enable_dependency_tracking" != xno; then
356047e89262Smrg  am_depcomp="$ac_aux_dir/depcomp"
356147e89262Smrg  AMDEPBACKSLASH='\'
356247e89262Smrgfi
356347e89262Smrg if test "x$enable_dependency_tracking" != xno; then
356447e89262Smrg  AMDEP_TRUE=
356547e89262Smrg  AMDEP_FALSE='#'
356647e89262Smrgelse
356747e89262Smrg  AMDEP_TRUE='#'
356847e89262Smrg  AMDEP_FALSE=
356947e89262Smrgfi
3570bd1da9d7Smrg
3571bd1da9d7Smrg
3572bd1da9d7Smrg
357347e89262Smrgdepcc="$CC"   am_compiler_list=
357447e89262Smrg
357547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
357647e89262Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
357747e89262Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
357847e89262Smrg  $as_echo_n "(cached) " >&6
3579bd1da9d7Smrgelse
358047e89262Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
358147e89262Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
358247e89262Smrg  # making bogus files that we don't know about and never remove.  For
358347e89262Smrg  # instance it was reported that on HP-UX the gcc test will end up
358447e89262Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
358547e89262Smrg  # in D'.
358647e89262Smrg  mkdir conftest.dir
358747e89262Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
358847e89262Smrg  # using a relative directory.
358947e89262Smrg  cp "$am_depcomp" conftest.dir
359047e89262Smrg  cd conftest.dir
359147e89262Smrg  # We will build objects and dependencies in a subdirectory because
359247e89262Smrg  # it helps to detect inapplicable dependency modes.  For instance
359347e89262Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
359447e89262Smrg  # side effect of compilation, but ICC will put the dependencies in
359547e89262Smrg  # the current directory while Tru64 will put them in the object
359647e89262Smrg  # directory.
359747e89262Smrg  mkdir sub
359847e89262Smrg
359947e89262Smrg  am_cv_CC_dependencies_compiler_type=none
360047e89262Smrg  if test "$am_compiler_list" = ""; then
360147e89262Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
360247e89262Smrg  fi
360347e89262Smrg  am__universal=false
360447e89262Smrg  case " $depcc " in #(
360547e89262Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
360647e89262Smrg     esac
360747e89262Smrg
360847e89262Smrg  for depmode in $am_compiler_list; do
360947e89262Smrg    # Setup a source with many dependencies, because some compilers
361047e89262Smrg    # like to wrap large dependency lists on column 80 (with \), and
361147e89262Smrg    # we should not choose a depcomp mode which is confused by this.
361247e89262Smrg    #
361347e89262Smrg    # We need to recreate these files for each test, as the compiler may
361447e89262Smrg    # overwrite some of them when testing with obscure command lines.
361547e89262Smrg    # This happens at least with the AIX C compiler.
361647e89262Smrg    : > sub/conftest.c
361747e89262Smrg    for i in 1 2 3 4 5 6; do
361847e89262Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
361947e89262Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
362047e89262Smrg      # Solaris 8's {/usr,}/bin/sh.
362147e89262Smrg      touch sub/conftst$i.h
362247e89262Smrg    done
362347e89262Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
362447e89262Smrg
362547e89262Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
362647e89262Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
362747e89262Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
362847e89262Smrg    # versions had trouble with output in subdirs
362947e89262Smrg    am__obj=sub/conftest.${OBJEXT-o}
363047e89262Smrg    am__minus_obj="-o $am__obj"
363147e89262Smrg    case $depmode in
363247e89262Smrg    gcc)
363347e89262Smrg      # This depmode causes a compiler race in universal mode.
363447e89262Smrg      test "$am__universal" = false || continue
363547e89262Smrg      ;;
363647e89262Smrg    nosideeffect)
363747e89262Smrg      # after this tag, mechanisms are not by side-effect, so they'll
363847e89262Smrg      # only be used when explicitly requested
363947e89262Smrg      if test "x$enable_dependency_tracking" = xyes; then
364047e89262Smrg	continue
364147e89262Smrg      else
364247e89262Smrg	break
364347e89262Smrg      fi
364447e89262Smrg      ;;
364547e89262Smrg    msvisualcpp | msvcmsys)
364647e89262Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
364747e89262Smrg      # not run yet.  These depmodes are late enough in the game, and
364847e89262Smrg      # so weak that their functioning should not be impacted.
364947e89262Smrg      am__obj=conftest.${OBJEXT-o}
365047e89262Smrg      am__minus_obj=
365147e89262Smrg      ;;
365247e89262Smrg    none) break ;;
365347e89262Smrg    esac
365447e89262Smrg    if depmode=$depmode \
365547e89262Smrg       source=sub/conftest.c object=$am__obj \
365647e89262Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
365747e89262Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
365847e89262Smrg         >/dev/null 2>conftest.err &&
365947e89262Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
366047e89262Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
366147e89262Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
366247e89262Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
366347e89262Smrg      # icc doesn't choke on unknown options, it will just issue warnings
366447e89262Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
366547e89262Smrg      # that says an option was ignored or not supported.
366647e89262Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
366747e89262Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
366847e89262Smrg      # The diagnosis changed in icc 8.0:
366947e89262Smrg      #   icc: Command line remark: option '-MP' not supported
367047e89262Smrg      if (grep 'ignoring option' conftest.err ||
367147e89262Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
367247e89262Smrg        am_cv_CC_dependencies_compiler_type=$depmode
367347e89262Smrg        break
367447e89262Smrg      fi
367547e89262Smrg    fi
367647e89262Smrg  done
3677bd1da9d7Smrg
367847e89262Smrg  cd ..
367947e89262Smrg  rm -rf conftest.dir
368047e89262Smrgelse
368147e89262Smrg  am_cv_CC_dependencies_compiler_type=none
3682bd1da9d7Smrgfi
3683bd1da9d7Smrg
3684bd1da9d7Smrgfi
368547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
368647e89262Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
368747e89262SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
368847e89262Smrg
368947e89262Smrg if
369047e89262Smrg  test "x$enable_dependency_tracking" != xno \
369147e89262Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
369247e89262Smrg  am__fastdepCC_TRUE=
369347e89262Smrg  am__fastdepCC_FALSE='#'
3694bd1da9d7Smrgelse
369547e89262Smrg  am__fastdepCC_TRUE='#'
369647e89262Smrg  am__fastdepCC_FALSE=
369747e89262Smrgfi
3698bd1da9d7Smrg
369947e89262Smrg
370047e89262Smrgcase `pwd` in
370147e89262Smrg  *\ * | *\	*)
370247e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
370347e89262Smrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3704bd1da9d7Smrgesac
3705bd1da9d7Smrg
3706bd1da9d7Smrg
3707bd1da9d7Smrg
370847e89262Smrgmacro_version='2.2.10'
370947e89262Smrgmacro_revision='1.3175'
3710bd1da9d7Smrg
3711bd1da9d7Smrg
3712bd1da9d7Smrg
3713bd1da9d7Smrg
3714bd1da9d7Smrg
3715bd1da9d7Smrg
3716bd1da9d7Smrg
3717bd1da9d7Smrg
3718bd1da9d7Smrg
3719bd1da9d7Smrg
3720bd1da9d7Smrg
3721bd1da9d7Smrg
3722bd1da9d7Smrg
372347e89262Smrgltmain="$ac_aux_dir/ltmain.sh"
372447e89262Smrg
372547e89262Smrg# Make sure we can run config.sub.
372647e89262Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
372747e89262Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
372847e89262Smrg
372947e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
373047e89262Smrg$as_echo_n "checking build system type... " >&6; }
373147e89262Smrgif ${ac_cv_build+:} false; then :
373247e89262Smrg  $as_echo_n "(cached) " >&6
373347e89262Smrgelse
373447e89262Smrg  ac_build_alias=$build_alias
373547e89262Smrgtest "x$ac_build_alias" = x &&
373647e89262Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
373747e89262Smrgtest "x$ac_build_alias" = x &&
373847e89262Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
373947e89262Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
374047e89262Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3741bd1da9d7Smrg
3742bd1da9d7Smrgfi
374347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
374447e89262Smrg$as_echo "$ac_cv_build" >&6; }
374547e89262Smrgcase $ac_cv_build in
374647e89262Smrg*-*-*) ;;
374747e89262Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
374847e89262Smrgesac
374947e89262Smrgbuild=$ac_cv_build
375047e89262Smrgac_save_IFS=$IFS; IFS='-'
375147e89262Smrgset x $ac_cv_build
375247e89262Smrgshift
375347e89262Smrgbuild_cpu=$1
375447e89262Smrgbuild_vendor=$2
375547e89262Smrgshift; shift
375647e89262Smrg# Remember, the first character of IFS is used to create $*,
375747e89262Smrg# except with old shells:
375847e89262Smrgbuild_os=$*
375947e89262SmrgIFS=$ac_save_IFS
376047e89262Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3761bd1da9d7Smrg
376247e89262Smrg
376347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
376447e89262Smrg$as_echo_n "checking host system type... " >&6; }
376547e89262Smrgif ${ac_cv_host+:} false; then :
376647e89262Smrg  $as_echo_n "(cached) " >&6
376747e89262Smrgelse
376847e89262Smrg  if test "x$host_alias" = x; then
376947e89262Smrg  ac_cv_host=$ac_cv_build
377047e89262Smrgelse
377147e89262Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
377247e89262Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3773bd1da9d7Smrgfi
377447e89262Smrg
3775bd1da9d7Smrgfi
377647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
377747e89262Smrg$as_echo "$ac_cv_host" >&6; }
377847e89262Smrgcase $ac_cv_host in
377947e89262Smrg*-*-*) ;;
378047e89262Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
378147e89262Smrgesac
378247e89262Smrghost=$ac_cv_host
378347e89262Smrgac_save_IFS=$IFS; IFS='-'
378447e89262Smrgset x $ac_cv_host
378547e89262Smrgshift
378647e89262Smrghost_cpu=$1
378747e89262Smrghost_vendor=$2
378847e89262Smrgshift; shift
378947e89262Smrg# Remember, the first character of IFS is used to create $*,
379047e89262Smrg# except with old shells:
379147e89262Smrghost_os=$*
379247e89262SmrgIFS=$ac_save_IFS
379347e89262Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3794bd1da9d7Smrg
3795bd1da9d7Smrg
379647e89262Smrg# Backslashify metacharacters that are still active within
379747e89262Smrg# double-quoted strings.
379847e89262Smrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3799bd1da9d7Smrg
380047e89262Smrg# Same as above, but do not quote variable references.
380147e89262Smrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
3802bd1da9d7Smrg
380347e89262Smrg# Sed substitution to delay expansion of an escaped shell variable in a
380447e89262Smrg# double_quote_subst'ed string.
380547e89262Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3806bd1da9d7Smrg
380747e89262Smrg# Sed substitution to delay expansion of an escaped single quote.
380847e89262Smrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3809bd1da9d7Smrg
381047e89262Smrg# Sed substitution to avoid accidental globbing in evaled expressions
381147e89262Smrgno_glob_subst='s/\*/\\\*/g'
381247e89262Smrg
381347e89262SmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
381447e89262SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
381547e89262SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
381647e89262Smrg
381747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
381847e89262Smrg$as_echo_n "checking how to print strings... " >&6; }
381947e89262Smrg# Test print first, because it will be a builtin if present.
382047e89262Smrgif test "X`print -r -- -n 2>/dev/null`" = X-n && \
382147e89262Smrg   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
382247e89262Smrg  ECHO='print -r --'
382347e89262Smrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
382447e89262Smrg  ECHO='printf %s\n'
382547e89262Smrgelse
382647e89262Smrg  # Use this function as a fallback that always works.
382747e89262Smrg  func_fallback_echo ()
382847e89262Smrg  {
382947e89262Smrg    eval 'cat <<_LTECHO_EOF
383047e89262Smrg$1
383147e89262Smrg_LTECHO_EOF'
383247e89262Smrg  }
383347e89262Smrg  ECHO='func_fallback_echo'
3834bd1da9d7Smrgfi
3835bd1da9d7Smrg
383647e89262Smrg# func_echo_all arg...
383747e89262Smrg# Invoke $ECHO with all args, space-separated.
383847e89262Smrgfunc_echo_all ()
383947e89262Smrg{
384047e89262Smrg    $ECHO ""
384147e89262Smrg}
3842bd1da9d7Smrg
384347e89262Smrgcase "$ECHO" in
384447e89262Smrg  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
384547e89262Smrg$as_echo "printf" >&6; } ;;
384647e89262Smrg  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
384747e89262Smrg$as_echo "print -r" >&6; } ;;
384847e89262Smrg  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
384947e89262Smrg$as_echo "cat" >&6; } ;;
385047e89262Smrgesac
3851bd1da9d7Smrg
3852bd1da9d7Smrg
3853bd1da9d7Smrg
3854bd1da9d7Smrg
3855bd1da9d7Smrg
3856bd1da9d7Smrg
3857bd1da9d7Smrg
3858bd1da9d7Smrg
385947e89262Smrg
386047e89262Smrg
386147e89262Smrg
386247e89262Smrg
386347e89262Smrg
386447e89262Smrg
386547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
386647e89262Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
386747e89262Smrgif ${ac_cv_path_SED+:} false; then :
38685bcb6992Smrg  $as_echo_n "(cached) " >&6
3869bd1da9d7Smrgelse
387047e89262Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
387147e89262Smrg     for ac_i in 1 2 3 4 5 6 7; do
387247e89262Smrg       ac_script="$ac_script$as_nl$ac_script"
387347e89262Smrg     done
387447e89262Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
387547e89262Smrg     { ac_script=; unset ac_script;}
387647e89262Smrg     if test -z "$SED"; then
387747e89262Smrg  ac_path_SED_found=false
387847e89262Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
387947e89262Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
388047e89262Smrgfor as_dir in $PATH
388147e89262Smrgdo
388247e89262Smrg  IFS=$as_save_IFS
388347e89262Smrg  test -z "$as_dir" && as_dir=.
388447e89262Smrg    for ac_prog in sed gsed; do
388547e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
388647e89262Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
388747e89262Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
388847e89262Smrg# Check for GNU ac_path_SED and select it if it is found.
388947e89262Smrg  # Check for GNU $ac_path_SED
389047e89262Smrgcase `"$ac_path_SED" --version 2>&1` in
389147e89262Smrg*GNU*)
389247e89262Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
389347e89262Smrg*)
389447e89262Smrg  ac_count=0
389547e89262Smrg  $as_echo_n 0123456789 >"conftest.in"
389647e89262Smrg  while :
389747e89262Smrg  do
389847e89262Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
389947e89262Smrg    mv "conftest.tmp" "conftest.in"
390047e89262Smrg    cp "conftest.in" "conftest.nl"
390147e89262Smrg    $as_echo '' >> "conftest.nl"
390247e89262Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
390347e89262Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
390447e89262Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
390547e89262Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
390647e89262Smrg      # Best one so far, save it but keep looking for a better one
390747e89262Smrg      ac_cv_path_SED="$ac_path_SED"
390847e89262Smrg      ac_path_SED_max=$ac_count
390947e89262Smrg    fi
391047e89262Smrg    # 10*(2^10) chars as input seems more than enough
391147e89262Smrg    test $ac_count -gt 10 && break
391247e89262Smrg  done
391347e89262Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
391447e89262Smrgesac
3915bd1da9d7Smrg
391647e89262Smrg      $ac_path_SED_found && break 3
391747e89262Smrg    done
391847e89262Smrg  done
391947e89262Smrg  done
392047e89262SmrgIFS=$as_save_IFS
392147e89262Smrg  if test -z "$ac_cv_path_SED"; then
392247e89262Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
392347e89262Smrg  fi
392447e89262Smrgelse
392547e89262Smrg  ac_cv_path_SED=$SED
392647e89262Smrgfi
3927bd1da9d7Smrg
392847e89262Smrgfi
392947e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
393047e89262Smrg$as_echo "$ac_cv_path_SED" >&6; }
393147e89262Smrg SED="$ac_cv_path_SED"
393247e89262Smrg  rm -f conftest.sed
3933bd1da9d7Smrg
393447e89262Smrgtest -z "$SED" && SED=sed
393547e89262SmrgXsed="$SED -e 1s/^X//"
3936bd1da9d7Smrg
3937bd1da9d7Smrg
3938bd1da9d7Smrg
3939bd1da9d7Smrg
3940bd1da9d7Smrg
3941bd1da9d7Smrg
3942bd1da9d7Smrg
3943bd1da9d7Smrg
3944bd1da9d7Smrg
3945bd1da9d7Smrg
3946bd1da9d7Smrg
394747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
394847e89262Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
394947e89262Smrgif ${ac_cv_path_GREP+:} false; then :
395047e89262Smrg  $as_echo_n "(cached) " >&6
395147e89262Smrgelse
395247e89262Smrg  if test -z "$GREP"; then
395347e89262Smrg  ac_path_GREP_found=false
395447e89262Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
395547e89262Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
395647e89262Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
395747e89262Smrgdo
395847e89262Smrg  IFS=$as_save_IFS
395947e89262Smrg  test -z "$as_dir" && as_dir=.
396047e89262Smrg    for ac_prog in grep ggrep; do
396147e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
396247e89262Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
396347e89262Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
396447e89262Smrg# Check for GNU ac_path_GREP and select it if it is found.
396547e89262Smrg  # Check for GNU $ac_path_GREP
396647e89262Smrgcase `"$ac_path_GREP" --version 2>&1` in
396747e89262Smrg*GNU*)
396847e89262Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
396947e89262Smrg*)
397047e89262Smrg  ac_count=0
397147e89262Smrg  $as_echo_n 0123456789 >"conftest.in"
397247e89262Smrg  while :
397347e89262Smrg  do
397447e89262Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
397547e89262Smrg    mv "conftest.tmp" "conftest.in"
397647e89262Smrg    cp "conftest.in" "conftest.nl"
397747e89262Smrg    $as_echo 'GREP' >> "conftest.nl"
397847e89262Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
397947e89262Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
398047e89262Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
398147e89262Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
398247e89262Smrg      # Best one so far, save it but keep looking for a better one
398347e89262Smrg      ac_cv_path_GREP="$ac_path_GREP"
398447e89262Smrg      ac_path_GREP_max=$ac_count
398547e89262Smrg    fi
398647e89262Smrg    # 10*(2^10) chars as input seems more than enough
398747e89262Smrg    test $ac_count -gt 10 && break
398847e89262Smrg  done
398947e89262Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
399047e89262Smrgesac
3991bd1da9d7Smrg
399247e89262Smrg      $ac_path_GREP_found && break 3
399347e89262Smrg    done
399447e89262Smrg  done
399547e89262Smrg  done
399647e89262SmrgIFS=$as_save_IFS
399747e89262Smrg  if test -z "$ac_cv_path_GREP"; then
399847e89262Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
399947e89262Smrg  fi
400047e89262Smrgelse
400147e89262Smrg  ac_cv_path_GREP=$GREP
400247e89262Smrgfi
4003bd1da9d7Smrg
400447e89262Smrgfi
400547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
400647e89262Smrg$as_echo "$ac_cv_path_GREP" >&6; }
400747e89262Smrg GREP="$ac_cv_path_GREP"
4008bd1da9d7Smrg
4009bd1da9d7Smrg
401047e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
401147e89262Smrg$as_echo_n "checking for egrep... " >&6; }
401247e89262Smrgif ${ac_cv_path_EGREP+:} false; then :
401347e89262Smrg  $as_echo_n "(cached) " >&6
401447e89262Smrgelse
401547e89262Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
401647e89262Smrg   then ac_cv_path_EGREP="$GREP -E"
401747e89262Smrg   else
401847e89262Smrg     if test -z "$EGREP"; then
401947e89262Smrg  ac_path_EGREP_found=false
402047e89262Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
402147e89262Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
402247e89262Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
402347e89262Smrgdo
402447e89262Smrg  IFS=$as_save_IFS
402547e89262Smrg  test -z "$as_dir" && as_dir=.
402647e89262Smrg    for ac_prog in egrep; do
402747e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
402847e89262Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
402947e89262Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
403047e89262Smrg# Check for GNU ac_path_EGREP and select it if it is found.
403147e89262Smrg  # Check for GNU $ac_path_EGREP
403247e89262Smrgcase `"$ac_path_EGREP" --version 2>&1` in
403347e89262Smrg*GNU*)
403447e89262Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
403547e89262Smrg*)
403647e89262Smrg  ac_count=0
403747e89262Smrg  $as_echo_n 0123456789 >"conftest.in"
403847e89262Smrg  while :
403947e89262Smrg  do
404047e89262Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
404147e89262Smrg    mv "conftest.tmp" "conftest.in"
404247e89262Smrg    cp "conftest.in" "conftest.nl"
404347e89262Smrg    $as_echo 'EGREP' >> "conftest.nl"
404447e89262Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
404547e89262Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
404647e89262Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
404747e89262Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
404847e89262Smrg      # Best one so far, save it but keep looking for a better one
404947e89262Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
405047e89262Smrg      ac_path_EGREP_max=$ac_count
405147e89262Smrg    fi
405247e89262Smrg    # 10*(2^10) chars as input seems more than enough
405347e89262Smrg    test $ac_count -gt 10 && break
405447e89262Smrg  done
405547e89262Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
405647e89262Smrgesac
4057bd1da9d7Smrg
405847e89262Smrg      $ac_path_EGREP_found && break 3
405947e89262Smrg    done
406047e89262Smrg  done
406147e89262Smrg  done
406247e89262SmrgIFS=$as_save_IFS
406347e89262Smrg  if test -z "$ac_cv_path_EGREP"; then
406447e89262Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4065bd1da9d7Smrg  fi
406647e89262Smrgelse
406747e89262Smrg  ac_cv_path_EGREP=$EGREP
4068bd1da9d7Smrgfi
4069bd1da9d7Smrg
407047e89262Smrg   fi
4071bd1da9d7Smrgfi
407247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
407347e89262Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
407447e89262Smrg EGREP="$ac_cv_path_EGREP"
4075bd1da9d7Smrg
4076bd1da9d7Smrg
407747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
407847e89262Smrg$as_echo_n "checking for fgrep... " >&6; }
407947e89262Smrgif ${ac_cv_path_FGREP+:} false; then :
408047e89262Smrg  $as_echo_n "(cached) " >&6
408147e89262Smrgelse
408247e89262Smrg  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
408347e89262Smrg   then ac_cv_path_FGREP="$GREP -F"
408447e89262Smrg   else
408547e89262Smrg     if test -z "$FGREP"; then
408647e89262Smrg  ac_path_FGREP_found=false
408747e89262Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
408847e89262Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
408947e89262Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
409047e89262Smrgdo
409147e89262Smrg  IFS=$as_save_IFS
409247e89262Smrg  test -z "$as_dir" && as_dir=.
409347e89262Smrg    for ac_prog in fgrep; do
409447e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
409547e89262Smrg      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
409647e89262Smrg      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
409747e89262Smrg# Check for GNU ac_path_FGREP and select it if it is found.
409847e89262Smrg  # Check for GNU $ac_path_FGREP
409947e89262Smrgcase `"$ac_path_FGREP" --version 2>&1` in
410047e89262Smrg*GNU*)
410147e89262Smrg  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
410247e89262Smrg*)
410347e89262Smrg  ac_count=0
410447e89262Smrg  $as_echo_n 0123456789 >"conftest.in"
410547e89262Smrg  while :
410647e89262Smrg  do
410747e89262Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
410847e89262Smrg    mv "conftest.tmp" "conftest.in"
410947e89262Smrg    cp "conftest.in" "conftest.nl"
411047e89262Smrg    $as_echo 'FGREP' >> "conftest.nl"
411147e89262Smrg    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
411247e89262Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
411347e89262Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
411447e89262Smrg    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
411547e89262Smrg      # Best one so far, save it but keep looking for a better one
411647e89262Smrg      ac_cv_path_FGREP="$ac_path_FGREP"
411747e89262Smrg      ac_path_FGREP_max=$ac_count
411847e89262Smrg    fi
411947e89262Smrg    # 10*(2^10) chars as input seems more than enough
412047e89262Smrg    test $ac_count -gt 10 && break
412147e89262Smrg  done
412247e89262Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
412347e89262Smrgesac
4124bd1da9d7Smrg
412547e89262Smrg      $ac_path_FGREP_found && break 3
412647e89262Smrg    done
412747e89262Smrg  done
412847e89262Smrg  done
412947e89262SmrgIFS=$as_save_IFS
413047e89262Smrg  if test -z "$ac_cv_path_FGREP"; then
413147e89262Smrg    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
413247e89262Smrg  fi
413347e89262Smrgelse
413447e89262Smrg  ac_cv_path_FGREP=$FGREP
4135bd1da9d7Smrgfi
4136bd1da9d7Smrg
413747e89262Smrg   fi
413847e89262Smrgfi
413947e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
414047e89262Smrg$as_echo "$ac_cv_path_FGREP" >&6; }
414147e89262Smrg FGREP="$ac_cv_path_FGREP"
4142bd1da9d7Smrg
4143bd1da9d7Smrg
414447e89262Smrgtest -z "$GREP" && GREP=grep
4145bd1da9d7Smrg
4146bd1da9d7Smrg
4147bd1da9d7Smrg
4148bd1da9d7Smrg
4149bd1da9d7Smrg
4150bd1da9d7Smrg
4151bd1da9d7Smrg
4152bd1da9d7Smrg
4153bd1da9d7Smrg
4154bd1da9d7Smrg
4155bd1da9d7Smrg
4156bd1da9d7Smrg
4157bd1da9d7Smrg
4158bd1da9d7Smrg
4159bd1da9d7Smrg
4160bd1da9d7Smrg
4161bd1da9d7Smrg
4162bd1da9d7Smrg
4163bd1da9d7Smrg
416447e89262Smrg# Check whether --with-gnu-ld was given.
416547e89262Smrgif test "${with_gnu_ld+set}" = set; then :
416647e89262Smrg  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
416747e89262Smrgelse
416847e89262Smrg  with_gnu_ld=no
416947e89262Smrgfi
417047e89262Smrg
417147e89262Smrgac_prog=ld
417247e89262Smrgif test "$GCC" = yes; then
417347e89262Smrg  # Check if gcc -print-prog-name=ld gives a path.
417447e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
417547e89262Smrg$as_echo_n "checking for ld used by $CC... " >&6; }
417647e89262Smrg  case $host in
417747e89262Smrg  *-*-mingw*)
417847e89262Smrg    # gcc leaves a trailing carriage return which upsets mingw
417947e89262Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
418047e89262Smrg  *)
418147e89262Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
418247e89262Smrg  esac
418347e89262Smrg  case $ac_prog in
418447e89262Smrg    # Accept absolute paths.
418547e89262Smrg    [\\/]* | ?:[\\/]*)
418647e89262Smrg      re_direlt='/[^/][^/]*/\.\./'
418747e89262Smrg      # Canonicalize the pathname of ld
418847e89262Smrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
418947e89262Smrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
419047e89262Smrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
419147e89262Smrg      done
419247e89262Smrg      test -z "$LD" && LD="$ac_prog"
419347e89262Smrg      ;;
419447e89262Smrg  "")
419547e89262Smrg    # If it fails, then pretend we aren't using GCC.
419647e89262Smrg    ac_prog=ld
419747e89262Smrg    ;;
419847e89262Smrg  *)
419947e89262Smrg    # If it is relative, then search for the first ld in PATH.
420047e89262Smrg    with_gnu_ld=unknown
420147e89262Smrg    ;;
420247e89262Smrg  esac
420347e89262Smrgelif test "$with_gnu_ld" = yes; then
420447e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
420547e89262Smrg$as_echo_n "checking for GNU ld... " >&6; }
420647e89262Smrgelse
420747e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
420847e89262Smrg$as_echo_n "checking for non-GNU ld... " >&6; }
420947e89262Smrgfi
421047e89262Smrgif ${lt_cv_path_LD+:} false; then :
421147e89262Smrg  $as_echo_n "(cached) " >&6
421247e89262Smrgelse
421347e89262Smrg  if test -z "$LD"; then
421447e89262Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
421547e89262Smrg  for ac_dir in $PATH; do
421647e89262Smrg    IFS="$lt_save_ifs"
421747e89262Smrg    test -z "$ac_dir" && ac_dir=.
421847e89262Smrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
421947e89262Smrg      lt_cv_path_LD="$ac_dir/$ac_prog"
422047e89262Smrg      # Check to see if the program is GNU ld.  I'd rather use --version,
422147e89262Smrg      # but apparently some variants of GNU ld only accept -v.
422247e89262Smrg      # Break only if it was the GNU/non-GNU ld that we prefer.
422347e89262Smrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
422447e89262Smrg      *GNU* | *'with BFD'*)
422547e89262Smrg	test "$with_gnu_ld" != no && break
422647e89262Smrg	;;
422747e89262Smrg      *)
422847e89262Smrg	test "$with_gnu_ld" != yes && break
422947e89262Smrg	;;
423047e89262Smrg      esac
423147e89262Smrg    fi
423247e89262Smrg  done
423347e89262Smrg  IFS="$lt_save_ifs"
423447e89262Smrgelse
423547e89262Smrg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
423647e89262Smrgfi
423747e89262Smrgfi
4238bd1da9d7Smrg
423947e89262SmrgLD="$lt_cv_path_LD"
424047e89262Smrgif test -n "$LD"; then
424147e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
424247e89262Smrg$as_echo "$LD" >&6; }
424347e89262Smrgelse
424447e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
424547e89262Smrg$as_echo "no" >&6; }
424647e89262Smrgfi
424747e89262Smrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
424847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
424947e89262Smrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
425047e89262Smrgif ${lt_cv_prog_gnu_ld+:} false; then :
425147e89262Smrg  $as_echo_n "(cached) " >&6
425247e89262Smrgelse
425347e89262Smrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
425447e89262Smrgcase `$LD -v 2>&1 </dev/null` in
425547e89262Smrg*GNU* | *'with BFD'*)
425647e89262Smrg  lt_cv_prog_gnu_ld=yes
425747e89262Smrg  ;;
425847e89262Smrg*)
425947e89262Smrg  lt_cv_prog_gnu_ld=no
426047e89262Smrg  ;;
426147e89262Smrgesac
426247e89262Smrgfi
426347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
426447e89262Smrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
426547e89262Smrgwith_gnu_ld=$lt_cv_prog_gnu_ld
4266bd1da9d7Smrg
4267bd1da9d7Smrg
4268bd1da9d7Smrg
4269bd1da9d7Smrg
4270bd1da9d7Smrg
4271bd1da9d7Smrg
4272bd1da9d7Smrg
4273bd1da9d7Smrg
4274bd1da9d7Smrg
427547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
427647e89262Smrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
427747e89262Smrgif ${lt_cv_path_NM+:} false; then :
427847e89262Smrg  $as_echo_n "(cached) " >&6
427947e89262Smrgelse
428047e89262Smrg  if test -n "$NM"; then
428147e89262Smrg  # Let the user override the test.
428247e89262Smrg  lt_cv_path_NM="$NM"
428347e89262Smrgelse
428447e89262Smrg  lt_nm_to_check="${ac_tool_prefix}nm"
428547e89262Smrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
428647e89262Smrg    lt_nm_to_check="$lt_nm_to_check nm"
428747e89262Smrg  fi
428847e89262Smrg  for lt_tmp_nm in $lt_nm_to_check; do
428947e89262Smrg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
429047e89262Smrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
429147e89262Smrg      IFS="$lt_save_ifs"
429247e89262Smrg      test -z "$ac_dir" && ac_dir=.
429347e89262Smrg      tmp_nm="$ac_dir/$lt_tmp_nm"
429447e89262Smrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
429547e89262Smrg	# Check to see if the nm accepts a BSD-compat flag.
429647e89262Smrg	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
429747e89262Smrg	#   nm: unknown option "B" ignored
429847e89262Smrg	# Tru64's nm complains that /dev/null is an invalid object file
429947e89262Smrg	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
430047e89262Smrg	*/dev/null* | *'Invalid file or object type'*)
430147e89262Smrg	  lt_cv_path_NM="$tmp_nm -B"
430247e89262Smrg	  break
430347e89262Smrg	  ;;
430447e89262Smrg	*)
430547e89262Smrg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
430647e89262Smrg	  */dev/null*)
430747e89262Smrg	    lt_cv_path_NM="$tmp_nm -p"
430847e89262Smrg	    break
430947e89262Smrg	    ;;
431047e89262Smrg	  *)
431147e89262Smrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
431247e89262Smrg	    continue # so that we can try to find one that supports BSD flags
431347e89262Smrg	    ;;
431447e89262Smrg	  esac
431547e89262Smrg	  ;;
431647e89262Smrg	esac
431747e89262Smrg      fi
431847e89262Smrg    done
431947e89262Smrg    IFS="$lt_save_ifs"
432047e89262Smrg  done
432147e89262Smrg  : ${lt_cv_path_NM=no}
432247e89262Smrgfi
432347e89262Smrgfi
432447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
432547e89262Smrg$as_echo "$lt_cv_path_NM" >&6; }
432647e89262Smrgif test "$lt_cv_path_NM" != "no"; then
432747e89262Smrg  NM="$lt_cv_path_NM"
432847e89262Smrgelse
432947e89262Smrg  # Didn't find any BSD compatible name lister, look for dumpbin.
433047e89262Smrg  if test -n "$DUMPBIN"; then :
433147e89262Smrg    # Let the user override the test.
433247e89262Smrg  else
433347e89262Smrg    if test -n "$ac_tool_prefix"; then
433447e89262Smrg  for ac_prog in dumpbin "link -dump"
433547e89262Smrg  do
433647e89262Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
433747e89262Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
433847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
433947e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
434047e89262Smrgif ${ac_cv_prog_DUMPBIN+:} false; then :
434147e89262Smrg  $as_echo_n "(cached) " >&6
434247e89262Smrgelse
434347e89262Smrg  if test -n "$DUMPBIN"; then
434447e89262Smrg  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
434547e89262Smrgelse
434647e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
434747e89262Smrgfor as_dir in $PATH
434847e89262Smrgdo
434947e89262Smrg  IFS=$as_save_IFS
435047e89262Smrg  test -z "$as_dir" && as_dir=.
435147e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
435247e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
435347e89262Smrg    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
435447e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
435547e89262Smrg    break 2
435647e89262Smrg  fi
435747e89262Smrgdone
435847e89262Smrg  done
435947e89262SmrgIFS=$as_save_IFS
4360bd1da9d7Smrg
436147e89262Smrgfi
436247e89262Smrgfi
436347e89262SmrgDUMPBIN=$ac_cv_prog_DUMPBIN
436447e89262Smrgif test -n "$DUMPBIN"; then
436547e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
436647e89262Smrg$as_echo "$DUMPBIN" >&6; }
436747e89262Smrgelse
436847e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
436947e89262Smrg$as_echo "no" >&6; }
437047e89262Smrgfi
4371bd1da9d7Smrg
4372bd1da9d7Smrg
437347e89262Smrg    test -n "$DUMPBIN" && break
437447e89262Smrg  done
437547e89262Smrgfi
437647e89262Smrgif test -z "$DUMPBIN"; then
437747e89262Smrg  ac_ct_DUMPBIN=$DUMPBIN
437847e89262Smrg  for ac_prog in dumpbin "link -dump"
437947e89262Smrgdo
438047e89262Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
438147e89262Smrgset dummy $ac_prog; ac_word=$2
438247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
438347e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
438447e89262Smrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
438547e89262Smrg  $as_echo_n "(cached) " >&6
438647e89262Smrgelse
438747e89262Smrg  if test -n "$ac_ct_DUMPBIN"; then
438847e89262Smrg  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
438947e89262Smrgelse
439047e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
439147e89262Smrgfor as_dir in $PATH
439247e89262Smrgdo
439347e89262Smrg  IFS=$as_save_IFS
439447e89262Smrg  test -z "$as_dir" && as_dir=.
439547e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
439647e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
439747e89262Smrg    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
439847e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
439947e89262Smrg    break 2
440047e89262Smrg  fi
440147e89262Smrgdone
440247e89262Smrg  done
440347e89262SmrgIFS=$as_save_IFS
4404bd1da9d7Smrg
440547e89262Smrgfi
440647e89262Smrgfi
440747e89262Smrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
440847e89262Smrgif test -n "$ac_ct_DUMPBIN"; then
440947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
441047e89262Smrg$as_echo "$ac_ct_DUMPBIN" >&6; }
441147e89262Smrgelse
441247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
441347e89262Smrg$as_echo "no" >&6; }
441447e89262Smrgfi
4415bd1da9d7Smrg
4416bd1da9d7Smrg
441747e89262Smrg  test -n "$ac_ct_DUMPBIN" && break
441847e89262Smrgdone
4419bd1da9d7Smrg
442047e89262Smrg  if test "x$ac_ct_DUMPBIN" = x; then
442147e89262Smrg    DUMPBIN=":"
442247e89262Smrg  else
442347e89262Smrg    case $cross_compiling:$ac_tool_warned in
442447e89262Smrgyes:)
442547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
442647e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
442747e89262Smrgac_tool_warned=yes ;;
442847e89262Smrgesac
442947e89262Smrg    DUMPBIN=$ac_ct_DUMPBIN
443047e89262Smrg  fi
443147e89262Smrgfi
4432bd1da9d7Smrg
443347e89262Smrg    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
443447e89262Smrg    *COFF*)
443547e89262Smrg      DUMPBIN="$DUMPBIN -symbols"
443647e89262Smrg      ;;
443747e89262Smrg    *)
443847e89262Smrg      DUMPBIN=:
443947e89262Smrg      ;;
444047e89262Smrg    esac
444147e89262Smrg  fi
4442bd1da9d7Smrg
444347e89262Smrg  if test "$DUMPBIN" != ":"; then
444447e89262Smrg    NM="$DUMPBIN"
444547e89262Smrg  fi
444647e89262Smrgfi
444747e89262Smrgtest -z "$NM" && NM=nm
4448bd1da9d7Smrg
4449bd1da9d7Smrg
4450bd1da9d7Smrg
4451bd1da9d7Smrg
4452bd1da9d7Smrg
4453bd1da9d7Smrg
445447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
445547e89262Smrg$as_echo_n "checking the name lister ($NM) interface... " >&6; }
445647e89262Smrgif ${lt_cv_nm_interface+:} false; then :
445747e89262Smrg  $as_echo_n "(cached) " >&6
445847e89262Smrgelse
445947e89262Smrg  lt_cv_nm_interface="BSD nm"
446047e89262Smrg  echo "int some_variable = 0;" > conftest.$ac_ext
446147e89262Smrg  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
446247e89262Smrg  (eval "$ac_compile" 2>conftest.err)
446347e89262Smrg  cat conftest.err >&5
446447e89262Smrg  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
446547e89262Smrg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
446647e89262Smrg  cat conftest.err >&5
446747e89262Smrg  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
446847e89262Smrg  cat conftest.out >&5
446947e89262Smrg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
447047e89262Smrg    lt_cv_nm_interface="MS dumpbin"
447147e89262Smrg  fi
447247e89262Smrg  rm -f conftest*
447347e89262Smrgfi
447447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
447547e89262Smrg$as_echo "$lt_cv_nm_interface" >&6; }
4476bd1da9d7Smrg
447747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
447847e89262Smrg$as_echo_n "checking whether ln -s works... " >&6; }
447947e89262SmrgLN_S=$as_ln_s
448047e89262Smrgif test "$LN_S" = "ln -s"; then
448147e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
448247e89262Smrg$as_echo "yes" >&6; }
448347e89262Smrgelse
448447e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
448547e89262Smrg$as_echo "no, using $LN_S" >&6; }
448647e89262Smrgfi
4487bd1da9d7Smrg
448847e89262Smrg# find the maximum length of command line arguments
448947e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
449047e89262Smrg$as_echo_n "checking the maximum length of command line arguments... " >&6; }
449147e89262Smrgif ${lt_cv_sys_max_cmd_len+:} false; then :
449247e89262Smrg  $as_echo_n "(cached) " >&6
449347e89262Smrgelse
449447e89262Smrg    i=0
449547e89262Smrg  teststring="ABCD"
4496bd1da9d7Smrg
449747e89262Smrg  case $build_os in
449847e89262Smrg  msdosdjgpp*)
449947e89262Smrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
450047e89262Smrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
450147e89262Smrg    # during glob expansion).  Even if it were fixed, the result of this
450247e89262Smrg    # check would be larger than it should be.
450347e89262Smrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
450447e89262Smrg    ;;
4505bd1da9d7Smrg
450647e89262Smrg  gnu*)
450747e89262Smrg    # Under GNU Hurd, this test is not required because there is
450847e89262Smrg    # no limit to the length of command line arguments.
450947e89262Smrg    # Libtool will interpret -1 as no limit whatsoever
451047e89262Smrg    lt_cv_sys_max_cmd_len=-1;
451147e89262Smrg    ;;
4512bd1da9d7Smrg
451347e89262Smrg  cygwin* | mingw* | cegcc*)
451447e89262Smrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
451547e89262Smrg    # about 5 minutes as the teststring grows exponentially.
451647e89262Smrg    # Worse, since 9x/ME are not pre-emptively multitasking,
451747e89262Smrg    # you end up with a "frozen" computer, even though with patience
451847e89262Smrg    # the test eventually succeeds (with a max line length of 256k).
451947e89262Smrg    # Instead, let's just punt: use the minimum linelength reported by
452047e89262Smrg    # all of the supported platforms: 8192 (on NT/2K/XP).
452147e89262Smrg    lt_cv_sys_max_cmd_len=8192;
452247e89262Smrg    ;;
4523bd1da9d7Smrg
452447e89262Smrg  mint*)
452547e89262Smrg    # On MiNT this can take a long time and run out of memory.
452647e89262Smrg    lt_cv_sys_max_cmd_len=8192;
452747e89262Smrg    ;;
4528bd1da9d7Smrg
452947e89262Smrg  amigaos*)
453047e89262Smrg    # On AmigaOS with pdksh, this test takes hours, literally.
453147e89262Smrg    # So we just punt and use a minimum line length of 8192.
453247e89262Smrg    lt_cv_sys_max_cmd_len=8192;
453347e89262Smrg    ;;
4534bd1da9d7Smrg
453547e89262Smrg  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
453647e89262Smrg    # This has been around since 386BSD, at least.  Likely further.
453747e89262Smrg    if test -x /sbin/sysctl; then
453847e89262Smrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
453947e89262Smrg    elif test -x /usr/sbin/sysctl; then
454047e89262Smrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
454147e89262Smrg    else
454247e89262Smrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
454347e89262Smrg    fi
454447e89262Smrg    # And add a safety zone
454547e89262Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
454647e89262Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
454747e89262Smrg    ;;
4548bd1da9d7Smrg
454947e89262Smrg  interix*)
455047e89262Smrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
455147e89262Smrg    lt_cv_sys_max_cmd_len=196608
455247e89262Smrg    ;;
4553bd1da9d7Smrg
455447e89262Smrg  osf*)
455547e89262Smrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
455647e89262Smrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
455747e89262Smrg    # nice to cause kernel panics so lets avoid the loop below.
455847e89262Smrg    # First set a reasonable default.
455947e89262Smrg    lt_cv_sys_max_cmd_len=16384
456047e89262Smrg    #
456147e89262Smrg    if test -x /sbin/sysconfig; then
456247e89262Smrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
456347e89262Smrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
456447e89262Smrg      esac
456547e89262Smrg    fi
456647e89262Smrg    ;;
456747e89262Smrg  sco3.2v5*)
456847e89262Smrg    lt_cv_sys_max_cmd_len=102400
456947e89262Smrg    ;;
457047e89262Smrg  sysv5* | sco5v6* | sysv4.2uw2*)
457147e89262Smrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
457247e89262Smrg    if test -n "$kargmax"; then
457347e89262Smrg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
457447e89262Smrg    else
457547e89262Smrg      lt_cv_sys_max_cmd_len=32768
457647e89262Smrg    fi
457747e89262Smrg    ;;
457847e89262Smrg  *)
457947e89262Smrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
458047e89262Smrg    if test -n "$lt_cv_sys_max_cmd_len"; then
458147e89262Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
458247e89262Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
458347e89262Smrg    else
458447e89262Smrg      # Make teststring a little bigger before we do anything with it.
458547e89262Smrg      # a 1K string should be a reasonable start.
458647e89262Smrg      for i in 1 2 3 4 5 6 7 8 ; do
458747e89262Smrg        teststring=$teststring$teststring
458847e89262Smrg      done
458947e89262Smrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
459047e89262Smrg      # If test is not a shell built-in, we'll probably end up computing a
459147e89262Smrg      # maximum length that is only half of the actual maximum length, but
459247e89262Smrg      # we can't tell.
459347e89262Smrg      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
459447e89262Smrg	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
459547e89262Smrg	      test $i != 17 # 1/2 MB should be enough
459647e89262Smrg      do
459747e89262Smrg        i=`expr $i + 1`
459847e89262Smrg        teststring=$teststring$teststring
459947e89262Smrg      done
460047e89262Smrg      # Only check the string length outside the loop.
460147e89262Smrg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
460247e89262Smrg      teststring=
460347e89262Smrg      # Add a significant safety factor because C++ compilers can tack on
460447e89262Smrg      # massive amounts of additional arguments before passing them to the
460547e89262Smrg      # linker.  It appears as though 1/2 is a usable value.
460647e89262Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
460747e89262Smrg    fi
460847e89262Smrg    ;;
460947e89262Smrg  esac
4610bd1da9d7Smrg
461147e89262Smrgfi
4612bd1da9d7Smrg
461347e89262Smrgif test -n $lt_cv_sys_max_cmd_len ; then
461447e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
461547e89262Smrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
461647e89262Smrgelse
461747e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
461847e89262Smrg$as_echo "none" >&6; }
461947e89262Smrgfi
462047e89262Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len
4621bd1da9d7Smrg
4622bd1da9d7Smrg
4623bd1da9d7Smrg
4624bd1da9d7Smrg
4625bd1da9d7Smrg
4626bd1da9d7Smrg
462747e89262Smrg: ${CP="cp -f"}
462847e89262Smrg: ${MV="mv -f"}
462947e89262Smrg: ${RM="rm -f"}
4630bd1da9d7Smrg
463147e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
463247e89262Smrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
463347e89262Smrg# Try some XSI features
463447e89262Smrgxsi_shell=no
463547e89262Smrg( _lt_dummy="a/b/c"
463647e89262Smrg  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
463747e89262Smrg      = c,a/b,, \
463847e89262Smrg    && eval 'test $(( 1 + 1 )) -eq 2 \
463947e89262Smrg    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
464047e89262Smrg  && xsi_shell=yes
464147e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
464247e89262Smrg$as_echo "$xsi_shell" >&6; }
4643bd1da9d7Smrg
4644bd1da9d7Smrg
464547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
464647e89262Smrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
464747e89262Smrglt_shell_append=no
464847e89262Smrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
464947e89262Smrg    >/dev/null 2>&1 \
465047e89262Smrg  && lt_shell_append=yes
465147e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
465247e89262Smrg$as_echo "$lt_shell_append" >&6; }
4653bd1da9d7Smrg
4654bd1da9d7Smrg
465547e89262Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
465647e89262Smrg  lt_unset=unset
465747e89262Smrgelse
465847e89262Smrg  lt_unset=false
465947e89262Smrgfi
4660bd1da9d7Smrg
4661bd1da9d7Smrg
4662bd1da9d7Smrg
4663bd1da9d7Smrg
4664bd1da9d7Smrg
466547e89262Smrg# test EBCDIC or ASCII
466647e89262Smrgcase `echo X|tr X '\101'` in
466747e89262Smrg A) # ASCII based system
466847e89262Smrg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
466947e89262Smrg  lt_SP2NL='tr \040 \012'
467047e89262Smrg  lt_NL2SP='tr \015\012 \040\040'
467147e89262Smrg  ;;
467247e89262Smrg *) # EBCDIC based system
467347e89262Smrg  lt_SP2NL='tr \100 \n'
467447e89262Smrg  lt_NL2SP='tr \r\n \100\100'
467547e89262Smrg  ;;
467647e89262Smrgesac
4677bd1da9d7Smrg
46785bcb6992Smrg
4679bd1da9d7Smrg
4680bd1da9d7Smrg
4681bd1da9d7Smrg
4682bd1da9d7Smrg
4683bd1da9d7Smrg
4684bd1da9d7Smrg
4685bd1da9d7Smrg
468647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
468747e89262Smrg$as_echo_n "checking for $LD option to reload object files... " >&6; }
468847e89262Smrgif ${lt_cv_ld_reload_flag+:} false; then :
468947e89262Smrg  $as_echo_n "(cached) " >&6
469047e89262Smrgelse
469147e89262Smrg  lt_cv_ld_reload_flag='-r'
469247e89262Smrgfi
469347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
469447e89262Smrg$as_echo "$lt_cv_ld_reload_flag" >&6; }
469547e89262Smrgreload_flag=$lt_cv_ld_reload_flag
469647e89262Smrgcase $reload_flag in
469747e89262Smrg"" | " "*) ;;
469847e89262Smrg*) reload_flag=" $reload_flag" ;;
469947e89262Smrgesac
470047e89262Smrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
470147e89262Smrgcase $host_os in
470247e89262Smrg  darwin*)
470347e89262Smrg    if test "$GCC" = yes; then
470447e89262Smrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
470547e89262Smrg    else
470647e89262Smrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
470747e89262Smrg    fi
470847e89262Smrg    ;;
470947e89262Smrgesac
4710bd1da9d7Smrg
4711bd1da9d7Smrg
4712bd1da9d7Smrg
4713bd1da9d7Smrg
4714bd1da9d7Smrg
4715bd1da9d7Smrg
4716bd1da9d7Smrg
4717bd1da9d7Smrg
4718bd1da9d7Smrg
471947e89262Smrgif test -n "$ac_tool_prefix"; then
472047e89262Smrg  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
472147e89262Smrgset dummy ${ac_tool_prefix}objdump; ac_word=$2
472247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
472347e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
472447e89262Smrgif ${ac_cv_prog_OBJDUMP+:} false; then :
472547e89262Smrg  $as_echo_n "(cached) " >&6
472647e89262Smrgelse
472747e89262Smrg  if test -n "$OBJDUMP"; then
472847e89262Smrg  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
472947e89262Smrgelse
473047e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
473147e89262Smrgfor as_dir in $PATH
473247e89262Smrgdo
473347e89262Smrg  IFS=$as_save_IFS
473447e89262Smrg  test -z "$as_dir" && as_dir=.
473547e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
473647e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
473747e89262Smrg    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
473847e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
473947e89262Smrg    break 2
474047e89262Smrg  fi
474147e89262Smrgdone
474247e89262Smrg  done
474347e89262SmrgIFS=$as_save_IFS
4744bd1da9d7Smrg
474547e89262Smrgfi
474647e89262Smrgfi
474747e89262SmrgOBJDUMP=$ac_cv_prog_OBJDUMP
474847e89262Smrgif test -n "$OBJDUMP"; then
474947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
475047e89262Smrg$as_echo "$OBJDUMP" >&6; }
475147e89262Smrgelse
475247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
475347e89262Smrg$as_echo "no" >&6; }
475447e89262Smrgfi
4755bd1da9d7Smrg
4756bd1da9d7Smrg
475747e89262Smrgfi
475847e89262Smrgif test -z "$ac_cv_prog_OBJDUMP"; then
475947e89262Smrg  ac_ct_OBJDUMP=$OBJDUMP
476047e89262Smrg  # Extract the first word of "objdump", so it can be a program name with args.
476147e89262Smrgset dummy objdump; ac_word=$2
476247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
476347e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
476447e89262Smrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
476547e89262Smrg  $as_echo_n "(cached) " >&6
476647e89262Smrgelse
476747e89262Smrg  if test -n "$ac_ct_OBJDUMP"; then
476847e89262Smrg  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
476947e89262Smrgelse
477047e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
477147e89262Smrgfor as_dir in $PATH
477247e89262Smrgdo
477347e89262Smrg  IFS=$as_save_IFS
477447e89262Smrg  test -z "$as_dir" && as_dir=.
477547e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
477647e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
477747e89262Smrg    ac_cv_prog_ac_ct_OBJDUMP="objdump"
477847e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
477947e89262Smrg    break 2
478047e89262Smrg  fi
478147e89262Smrgdone
478247e89262Smrg  done
478347e89262SmrgIFS=$as_save_IFS
4784bd1da9d7Smrg
478547e89262Smrgfi
478647e89262Smrgfi
478747e89262Smrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
478847e89262Smrgif test -n "$ac_ct_OBJDUMP"; then
478947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
479047e89262Smrg$as_echo "$ac_ct_OBJDUMP" >&6; }
479147e89262Smrgelse
479247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
479347e89262Smrg$as_echo "no" >&6; }
479447e89262Smrgfi
4795bd1da9d7Smrg
479647e89262Smrg  if test "x$ac_ct_OBJDUMP" = x; then
479747e89262Smrg    OBJDUMP="false"
479847e89262Smrg  else
479947e89262Smrg    case $cross_compiling:$ac_tool_warned in
480047e89262Smrgyes:)
480147e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
480247e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
480347e89262Smrgac_tool_warned=yes ;;
480447e89262Smrgesac
480547e89262Smrg    OBJDUMP=$ac_ct_OBJDUMP
480647e89262Smrg  fi
480747e89262Smrgelse
480847e89262Smrg  OBJDUMP="$ac_cv_prog_OBJDUMP"
480947e89262Smrgfi
4810bd1da9d7Smrg
481147e89262Smrgtest -z "$OBJDUMP" && OBJDUMP=objdump
4812bd1da9d7Smrg
4813bd1da9d7Smrg
4814bd1da9d7Smrg
4815bd1da9d7Smrg
4816bd1da9d7Smrg
4817bd1da9d7Smrg
4818bd1da9d7Smrg
4819bd1da9d7Smrg
4820bd1da9d7Smrg
482147e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
482247e89262Smrg$as_echo_n "checking how to recognize dependent libraries... " >&6; }
482347e89262Smrgif ${lt_cv_deplibs_check_method+:} false; then :
482447e89262Smrg  $as_echo_n "(cached) " >&6
482547e89262Smrgelse
482647e89262Smrg  lt_cv_file_magic_cmd='$MAGIC_CMD'
482747e89262Smrglt_cv_file_magic_test_file=
482847e89262Smrglt_cv_deplibs_check_method='unknown'
482947e89262Smrg# Need to set the preceding variable on all platforms that support
483047e89262Smrg# interlibrary dependencies.
483147e89262Smrg# 'none' -- dependencies not supported.
483247e89262Smrg# `unknown' -- same as none, but documents that we really don't know.
483347e89262Smrg# 'pass_all' -- all dependencies passed with no checks.
483447e89262Smrg# 'test_compile' -- check by making test program.
483547e89262Smrg# 'file_magic [[regex]]' -- check by looking for files in library path
483647e89262Smrg# which responds to the $file_magic_cmd with a given extended regex.
483747e89262Smrg# If you have `file' or equivalent on your system and you're not sure
483847e89262Smrg# whether `pass_all' will *always* work, you probably want this one.
4839bd1da9d7Smrg
484047e89262Smrgcase $host_os in
484147e89262Smrgaix[4-9]*)
484247e89262Smrg  lt_cv_deplibs_check_method=pass_all
484347e89262Smrg  ;;
4844bd1da9d7Smrg
484547e89262Smrgbeos*)
484647e89262Smrg  lt_cv_deplibs_check_method=pass_all
484747e89262Smrg  ;;
4848bd1da9d7Smrg
484947e89262Smrgbsdi[45]*)
485047e89262Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
485147e89262Smrg  lt_cv_file_magic_cmd='/usr/bin/file -L'
485247e89262Smrg  lt_cv_file_magic_test_file=/shlib/libc.so
485347e89262Smrg  ;;
4854bd1da9d7Smrg
485547e89262Smrgcygwin*)
485647e89262Smrg  # func_win32_libid is a shell function defined in ltmain.sh
485747e89262Smrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
485847e89262Smrg  lt_cv_file_magic_cmd='func_win32_libid'
485947e89262Smrg  ;;
4860bd1da9d7Smrg
486147e89262Smrgmingw* | pw32*)
486247e89262Smrg  # Base MSYS/MinGW do not provide the 'file' command needed by
486347e89262Smrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
486447e89262Smrg  # unless we find 'file', for example because we are cross-compiling.
486547e89262Smrg  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
486647e89262Smrg  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
486747e89262Smrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
486847e89262Smrg    lt_cv_file_magic_cmd='func_win32_libid'
486947e89262Smrg  else
487047e89262Smrg    # Keep this pattern in sync with the one in func_win32_libid.
487147e89262Smrg    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
487247e89262Smrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
487347e89262Smrg  fi
487447e89262Smrg  ;;
4875bd1da9d7Smrg
487647e89262Smrgcegcc*)
487747e89262Smrg  # use the weaker test based on 'objdump'. See mingw*.
487847e89262Smrg  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
487947e89262Smrg  lt_cv_file_magic_cmd='$OBJDUMP -f'
488047e89262Smrg  ;;
4881bd1da9d7Smrg
488247e89262Smrgdarwin* | rhapsody*)
488347e89262Smrg  lt_cv_deplibs_check_method=pass_all
488447e89262Smrg  ;;
4885bd1da9d7Smrg
488647e89262Smrgfreebsd* | dragonfly*)
488747e89262Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
488847e89262Smrg    case $host_cpu in
488947e89262Smrg    i*86 )
489047e89262Smrg      # Not sure whether the presence of OpenBSD here was a mistake.
489147e89262Smrg      # Let's accept both of them until this is cleared up.
489247e89262Smrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
489347e89262Smrg      lt_cv_file_magic_cmd=/usr/bin/file
489447e89262Smrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
489547e89262Smrg      ;;
489647e89262Smrg    esac
489747e89262Smrg  else
489847e89262Smrg    lt_cv_deplibs_check_method=pass_all
4899bd1da9d7Smrg  fi
490047e89262Smrg  ;;
4901bd1da9d7Smrg
490247e89262Smrggnu*)
490347e89262Smrg  lt_cv_deplibs_check_method=pass_all
490447e89262Smrg  ;;
4905bd1da9d7Smrg
490647e89262Smrghaiku*)
490747e89262Smrg  lt_cv_deplibs_check_method=pass_all
490847e89262Smrg  ;;
4909bd1da9d7Smrg
491047e89262Smrghpux10.20* | hpux11*)
491147e89262Smrg  lt_cv_file_magic_cmd=/usr/bin/file
491247e89262Smrg  case $host_cpu in
491347e89262Smrg  ia64*)
491447e89262Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
491547e89262Smrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
491647e89262Smrg    ;;
491747e89262Smrg  hppa*64*)
491847e89262Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
491947e89262Smrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
492047e89262Smrg    ;;
492147e89262Smrg  *)
492247e89262Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
492347e89262Smrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
492447e89262Smrg    ;;
492547e89262Smrg  esac
492647e89262Smrg  ;;
4927bd1da9d7Smrg
492847e89262Smrginterix[3-9]*)
492947e89262Smrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
493047e89262Smrg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
493147e89262Smrg  ;;
4932bd1da9d7Smrg
493347e89262Smrgirix5* | irix6* | nonstopux*)
493447e89262Smrg  case $LD in
493547e89262Smrg  *-32|*"-32 ") libmagic=32-bit;;
493647e89262Smrg  *-n32|*"-n32 ") libmagic=N32;;
493747e89262Smrg  *-64|*"-64 ") libmagic=64-bit;;
493847e89262Smrg  *) libmagic=never-match;;
493947e89262Smrg  esac
494047e89262Smrg  lt_cv_deplibs_check_method=pass_all
494147e89262Smrg  ;;
4942bd1da9d7Smrg
494347e89262Smrg# This must be Linux ELF.
494447e89262Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
494547e89262Smrg  lt_cv_deplibs_check_method=pass_all
494647e89262Smrg  ;;
4947bd1da9d7Smrg
494847e89262Smrgnetbsd*)
494947e89262Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
495047e89262Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
495147e89262Smrg  else
495247e89262Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4953bd1da9d7Smrg  fi
495447e89262Smrg  ;;
4955bd1da9d7Smrg
495647e89262Smrgnewos6*)
495747e89262Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
495847e89262Smrg  lt_cv_file_magic_cmd=/usr/bin/file
495947e89262Smrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
496047e89262Smrg  ;;
4961bd1da9d7Smrg
496247e89262Smrg*nto* | *qnx*)
496347e89262Smrg  lt_cv_deplibs_check_method=pass_all
496447e89262Smrg  ;;
4965bd1da9d7Smrg
496647e89262Smrgopenbsd*)
496747e89262Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
496847e89262Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
496947e89262Smrg  else
497047e89262Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
497147e89262Smrg  fi
497247e89262Smrg  ;;
4973bd1da9d7Smrg
497447e89262Smrgosf3* | osf4* | osf5*)
497547e89262Smrg  lt_cv_deplibs_check_method=pass_all
497647e89262Smrg  ;;
4977bd1da9d7Smrg
497847e89262Smrgrdos*)
497947e89262Smrg  lt_cv_deplibs_check_method=pass_all
498047e89262Smrg  ;;
4981bd1da9d7Smrg
498247e89262Smrgsolaris*)
498347e89262Smrg  lt_cv_deplibs_check_method=pass_all
498447e89262Smrg  ;;
4985bd1da9d7Smrg
498647e89262Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
498747e89262Smrg  lt_cv_deplibs_check_method=pass_all
498847e89262Smrg  ;;
4989bd1da9d7Smrg
499047e89262Smrgsysv4 | sysv4.3*)
499147e89262Smrg  case $host_vendor in
499247e89262Smrg  motorola)
499347e89262Smrg    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]'
499447e89262Smrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
499547e89262Smrg    ;;
499647e89262Smrg  ncr)
499747e89262Smrg    lt_cv_deplibs_check_method=pass_all
499847e89262Smrg    ;;
499947e89262Smrg  sequent)
500047e89262Smrg    lt_cv_file_magic_cmd='/bin/file'
500147e89262Smrg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
500247e89262Smrg    ;;
500347e89262Smrg  sni)
500447e89262Smrg    lt_cv_file_magic_cmd='/bin/file'
500547e89262Smrg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
500647e89262Smrg    lt_cv_file_magic_test_file=/lib/libc.so
500747e89262Smrg    ;;
500847e89262Smrg  siemens)
500947e89262Smrg    lt_cv_deplibs_check_method=pass_all
501047e89262Smrg    ;;
501147e89262Smrg  pc)
501247e89262Smrg    lt_cv_deplibs_check_method=pass_all
501347e89262Smrg    ;;
501447e89262Smrg  esac
501547e89262Smrg  ;;
5016bd1da9d7Smrg
501747e89262Smrgtpf*)
501847e89262Smrg  lt_cv_deplibs_check_method=pass_all
501947e89262Smrg  ;;
502047e89262Smrgesac
5021bd1da9d7Smrg
502247e89262Smrgfi
502347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
502447e89262Smrg$as_echo "$lt_cv_deplibs_check_method" >&6; }
502547e89262Smrgfile_magic_cmd=$lt_cv_file_magic_cmd
502647e89262Smrgdeplibs_check_method=$lt_cv_deplibs_check_method
502747e89262Smrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
5028bd1da9d7Smrg
5029bd1da9d7Smrg
5030bd1da9d7Smrg
5031bd1da9d7Smrg
5032bd1da9d7Smrg
5033bd1da9d7Smrg
5034bd1da9d7Smrg
5035bd1da9d7Smrg
5036bd1da9d7Smrg
5037bd1da9d7Smrg
5038bd1da9d7Smrg
5039bd1da9d7Smrg
504047e89262Smrgif test -n "$ac_tool_prefix"; then
504147e89262Smrg  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
504247e89262Smrgset dummy ${ac_tool_prefix}ar; ac_word=$2
504347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
504447e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
504547e89262Smrgif ${ac_cv_prog_AR+:} false; then :
50465bcb6992Smrg  $as_echo_n "(cached) " >&6
5047bd1da9d7Smrgelse
504847e89262Smrg  if test -n "$AR"; then
504947e89262Smrg  ac_cv_prog_AR="$AR" # Let the user override the test.
5050bd1da9d7Smrgelse
505147e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
505247e89262Smrgfor as_dir in $PATH
505347e89262Smrgdo
505447e89262Smrg  IFS=$as_save_IFS
505547e89262Smrg  test -z "$as_dir" && as_dir=.
505647e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
505747e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
505847e89262Smrg    ac_cv_prog_AR="${ac_tool_prefix}ar"
505947e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
506047e89262Smrg    break 2
506147e89262Smrg  fi
506247e89262Smrgdone
506347e89262Smrg  done
506447e89262SmrgIFS=$as_save_IFS
506547e89262Smrg
5066bd1da9d7Smrgfi
5067bd1da9d7Smrgfi
506847e89262SmrgAR=$ac_cv_prog_AR
506947e89262Smrgif test -n "$AR"; then
507047e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
507147e89262Smrg$as_echo "$AR" >&6; }
5072bd1da9d7Smrgelse
507347e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50745bcb6992Smrg$as_echo "no" >&6; }
5075bd1da9d7Smrgfi
507647e89262Smrg
507747e89262Smrg
507847e89262Smrgfi
507947e89262Smrgif test -z "$ac_cv_prog_AR"; then
508047e89262Smrg  ac_ct_AR=$AR
508147e89262Smrg  # Extract the first word of "ar", so it can be a program name with args.
508247e89262Smrgset dummy ar; ac_word=$2
508347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
508447e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
508547e89262Smrgif ${ac_cv_prog_ac_ct_AR+:} false; then :
50865bcb6992Smrg  $as_echo_n "(cached) " >&6
5087bd1da9d7Smrgelse
508847e89262Smrg  if test -n "$ac_ct_AR"; then
508947e89262Smrg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
509047e89262Smrgelse
509147e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
509247e89262Smrgfor as_dir in $PATH
509347e89262Smrgdo
509447e89262Smrg  IFS=$as_save_IFS
509547e89262Smrg  test -z "$as_dir" && as_dir=.
509647e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
509747e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
509847e89262Smrg    ac_cv_prog_ac_ct_AR="ar"
509947e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
510047e89262Smrg    break 2
510147e89262Smrg  fi
510247e89262Smrgdone
510347e89262Smrg  done
510447e89262SmrgIFS=$as_save_IFS
510547e89262Smrg
510647e89262Smrgfi
510747e89262Smrgfi
510847e89262Smrgac_ct_AR=$ac_cv_prog_ac_ct_AR
510947e89262Smrgif test -n "$ac_ct_AR"; then
511047e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
511147e89262Smrg$as_echo "$ac_ct_AR" >&6; }
511247e89262Smrgelse
511347e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
511447e89262Smrg$as_echo "no" >&6; }
511547e89262Smrgfi
511647e89262Smrg
511747e89262Smrg  if test "x$ac_ct_AR" = x; then
511847e89262Smrg    AR="false"
511947e89262Smrg  else
512047e89262Smrg    case $cross_compiling:$ac_tool_warned in
512147e89262Smrgyes:)
512247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
512347e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
512447e89262Smrgac_tool_warned=yes ;;
5125bd1da9d7Smrgesac
512647e89262Smrg    AR=$ac_ct_AR
512747e89262Smrg  fi
512847e89262Smrgelse
512947e89262Smrg  AR="$ac_cv_prog_AR"
5130bd1da9d7Smrgfi
5131bd1da9d7Smrg
513247e89262Smrgtest -z "$AR" && AR=ar
513347e89262Smrgtest -z "$AR_FLAGS" && AR_FLAGS=cru
5134bd1da9d7Smrg
5135bd1da9d7Smrg
5136bd1da9d7Smrg
5137bd1da9d7Smrg
5138bd1da9d7Smrg
5139bd1da9d7Smrg
5140bd1da9d7Smrg
5141bd1da9d7Smrg
5142bd1da9d7Smrg
5143bd1da9d7Smrg
5144bd1da9d7Smrg
514547e89262Smrgif test -n "$ac_tool_prefix"; then
514647e89262Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
514747e89262Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
514847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
514947e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
515047e89262Smrgif ${ac_cv_prog_STRIP+:} false; then :
515147e89262Smrg  $as_echo_n "(cached) " >&6
515247e89262Smrgelse
515347e89262Smrg  if test -n "$STRIP"; then
515447e89262Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
515547e89262Smrgelse
515647e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
515747e89262Smrgfor as_dir in $PATH
515847e89262Smrgdo
515947e89262Smrg  IFS=$as_save_IFS
516047e89262Smrg  test -z "$as_dir" && as_dir=.
516147e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
516247e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
516347e89262Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
516447e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
516547e89262Smrg    break 2
516647e89262Smrg  fi
516747e89262Smrgdone
516847e89262Smrg  done
516947e89262SmrgIFS=$as_save_IFS
5170bd1da9d7Smrg
517147e89262Smrgfi
517247e89262Smrgfi
517347e89262SmrgSTRIP=$ac_cv_prog_STRIP
517447e89262Smrgif test -n "$STRIP"; then
517547e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
517647e89262Smrg$as_echo "$STRIP" >&6; }
517747e89262Smrgelse
517847e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
517947e89262Smrg$as_echo "no" >&6; }
518047e89262Smrgfi
5181bd1da9d7Smrg
51825bcb6992Smrg
51835bcb6992Smrgfi
518447e89262Smrgif test -z "$ac_cv_prog_STRIP"; then
518547e89262Smrg  ac_ct_STRIP=$STRIP
518647e89262Smrg  # Extract the first word of "strip", so it can be a program name with args.
518747e89262Smrgset dummy strip; ac_word=$2
518847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
518947e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
519047e89262Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
519147e89262Smrg  $as_echo_n "(cached) " >&6
5192bd1da9d7Smrgelse
519347e89262Smrg  if test -n "$ac_ct_STRIP"; then
519447e89262Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
519547e89262Smrgelse
519647e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
519747e89262Smrgfor as_dir in $PATH
519847e89262Smrgdo
519947e89262Smrg  IFS=$as_save_IFS
520047e89262Smrg  test -z "$as_dir" && as_dir=.
520147e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
520247e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
520347e89262Smrg    ac_cv_prog_ac_ct_STRIP="strip"
520447e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
520547e89262Smrg    break 2
520647e89262Smrg  fi
520747e89262Smrgdone
520847e89262Smrg  done
520947e89262SmrgIFS=$as_save_IFS
521047e89262Smrg
521147e89262Smrgfi
521247e89262Smrgfi
521347e89262Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
521447e89262Smrgif test -n "$ac_ct_STRIP"; then
521547e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
521647e89262Smrg$as_echo "$ac_ct_STRIP" >&6; }
521747e89262Smrgelse
521847e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
521947e89262Smrg$as_echo "no" >&6; }
522047e89262Smrgfi
522147e89262Smrg
522247e89262Smrg  if test "x$ac_ct_STRIP" = x; then
522347e89262Smrg    STRIP=":"
522447e89262Smrg  else
522547e89262Smrg    case $cross_compiling:$ac_tool_warned in
522647e89262Smrgyes:)
522747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
522847e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
522947e89262Smrgac_tool_warned=yes ;;
523047e89262Smrgesac
523147e89262Smrg    STRIP=$ac_ct_STRIP
523247e89262Smrg  fi
523347e89262Smrgelse
523447e89262Smrg  STRIP="$ac_cv_prog_STRIP"
523547e89262Smrgfi
5236bd1da9d7Smrg
523747e89262Smrgtest -z "$STRIP" && STRIP=:
5238bd1da9d7Smrg
5239bd1da9d7Smrg
5240bd1da9d7Smrg
5241bd1da9d7Smrg
5242bd1da9d7Smrg
5243bd1da9d7Smrg
524447e89262Smrgif test -n "$ac_tool_prefix"; then
524547e89262Smrg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
524647e89262Smrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
524747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
524847e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
524947e89262Smrgif ${ac_cv_prog_RANLIB+:} false; then :
525047e89262Smrg  $as_echo_n "(cached) " >&6
525147e89262Smrgelse
525247e89262Smrg  if test -n "$RANLIB"; then
525347e89262Smrg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
525447e89262Smrgelse
525547e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
525647e89262Smrgfor as_dir in $PATH
525747e89262Smrgdo
525847e89262Smrg  IFS=$as_save_IFS
525947e89262Smrg  test -z "$as_dir" && as_dir=.
526047e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
526147e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
526247e89262Smrg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
526347e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
526447e89262Smrg    break 2
526547e89262Smrg  fi
526647e89262Smrgdone
526747e89262Smrg  done
526847e89262SmrgIFS=$as_save_IFS
52695bcb6992Smrg
52705bcb6992Smrgfi
527147e89262Smrgfi
527247e89262SmrgRANLIB=$ac_cv_prog_RANLIB
527347e89262Smrgif test -n "$RANLIB"; then
527447e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
527547e89262Smrg$as_echo "$RANLIB" >&6; }
5276bd1da9d7Smrgelse
527747e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
527847e89262Smrg$as_echo "no" >&6; }
527947e89262Smrgfi
5280bd1da9d7Smrg
5281bd1da9d7Smrg
5282bd1da9d7Smrgfi
528347e89262Smrgif test -z "$ac_cv_prog_RANLIB"; then
528447e89262Smrg  ac_ct_RANLIB=$RANLIB
528547e89262Smrg  # Extract the first word of "ranlib", so it can be a program name with args.
528647e89262Smrgset dummy ranlib; ac_word=$2
528747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
528847e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
528947e89262Smrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
529047e89262Smrg  $as_echo_n "(cached) " >&6
529147e89262Smrgelse
529247e89262Smrg  if test -n "$ac_ct_RANLIB"; then
529347e89262Smrg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
529447e89262Smrgelse
529547e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
529647e89262Smrgfor as_dir in $PATH
529747e89262Smrgdo
529847e89262Smrg  IFS=$as_save_IFS
529947e89262Smrg  test -z "$as_dir" && as_dir=.
530047e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
530147e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
530247e89262Smrg    ac_cv_prog_ac_ct_RANLIB="ranlib"
530347e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
530447e89262Smrg    break 2
530547e89262Smrg  fi
530647e89262Smrgdone
530747e89262Smrg  done
530847e89262SmrgIFS=$as_save_IFS
5309bd1da9d7Smrg
531047e89262Smrgfi
531147e89262Smrgfi
531247e89262Smrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
531347e89262Smrgif test -n "$ac_ct_RANLIB"; then
531447e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
531547e89262Smrg$as_echo "$ac_ct_RANLIB" >&6; }
531647e89262Smrgelse
531747e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
531847e89262Smrg$as_echo "no" >&6; }
531947e89262Smrgfi
5320bd1da9d7Smrg
532147e89262Smrg  if test "x$ac_ct_RANLIB" = x; then
532247e89262Smrg    RANLIB=":"
532347e89262Smrg  else
532447e89262Smrg    case $cross_compiling:$ac_tool_warned in
532547e89262Smrgyes:)
532647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
532747e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
532847e89262Smrgac_tool_warned=yes ;;
532947e89262Smrgesac
533047e89262Smrg    RANLIB=$ac_ct_RANLIB
533147e89262Smrg  fi
533247e89262Smrgelse
533347e89262Smrg  RANLIB="$ac_cv_prog_RANLIB"
533447e89262Smrgfi
5335bd1da9d7Smrg
533647e89262Smrgtest -z "$RANLIB" && RANLIB=:
5337bd1da9d7Smrg
5338bd1da9d7Smrg
5339bd1da9d7Smrg
5340bd1da9d7Smrg
5341bd1da9d7Smrg
5342bd1da9d7Smrg
534347e89262Smrg# Determine commands to create old-style static archives.
534447e89262Smrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
534547e89262Smrgold_postinstall_cmds='chmod 644 $oldlib'
534647e89262Smrgold_postuninstall_cmds=
5347bd1da9d7Smrg
534847e89262Smrgif test -n "$RANLIB"; then
534947e89262Smrg  case $host_os in
5350bd1da9d7Smrg  openbsd*)
535147e89262Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5352bd1da9d7Smrg    ;;
535347e89262Smrg  *)
535447e89262Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
535547e89262Smrg    ;;
535647e89262Smrg  esac
535747e89262Smrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
535847e89262Smrgfi
5359bd1da9d7Smrg
536047e89262Smrgcase $host_os in
536147e89262Smrg  darwin*)
536247e89262Smrg    lock_old_archive_extraction=yes ;;
536347e89262Smrg  *)
536447e89262Smrg    lock_old_archive_extraction=no ;;
536547e89262Smrgesac
5366bd1da9d7Smrg
5367bd1da9d7Smrg
5368bd1da9d7Smrg
5369bd1da9d7Smrg
5370bd1da9d7Smrg
5371bd1da9d7Smrg
5372bd1da9d7Smrg
5373bd1da9d7Smrg
5374bd1da9d7Smrg
5375bd1da9d7Smrg
5376bd1da9d7Smrg
5377bd1da9d7Smrg
5378bd1da9d7Smrg
5379bd1da9d7Smrg
5380bd1da9d7Smrg
5381bd1da9d7Smrg
5382bd1da9d7Smrg
5383bd1da9d7Smrg
5384bd1da9d7Smrg
5385bd1da9d7Smrg
5386bd1da9d7Smrg
5387bd1da9d7Smrg
5388bd1da9d7Smrg
5389bd1da9d7Smrg
53905bcb6992Smrg
5391bd1da9d7Smrg
53925bcb6992Smrg
53935bcb6992Smrg
5394bd1da9d7Smrg
5395bd1da9d7Smrg
5396bd1da9d7Smrg
5397bd1da9d7Smrg
5398bd1da9d7Smrg
5399bd1da9d7Smrg
5400bd1da9d7Smrg
5401bd1da9d7Smrg
5402bd1da9d7Smrg
5403bd1da9d7Smrg
5404bd1da9d7Smrg
540547e89262Smrg# If no C compiler was specified, use CC.
540647e89262SmrgLTCC=${LTCC-"$CC"}
5407bd1da9d7Smrg
540847e89262Smrg# If no C compiler flags were specified, use CFLAGS.
540947e89262SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
541047e89262Smrg
541147e89262Smrg# Allow CC to be a program name with arguments.
541247e89262Smrgcompiler=$CC
541347e89262Smrg
541447e89262Smrg
541547e89262Smrg# Check for command to grab the raw symbol name followed by C symbol from nm.
541647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
541747e89262Smrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
541847e89262Smrgif ${lt_cv_sys_global_symbol_pipe+:} false; then :
54195bcb6992Smrg  $as_echo_n "(cached) " >&6
5420bd1da9d7Smrgelse
5421bd1da9d7Smrg
542247e89262Smrg# These are sane defaults that work on at least a few old systems.
542347e89262Smrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5424bd1da9d7Smrg
542547e89262Smrg# Character class describing NM global symbol codes.
542647e89262Smrgsymcode='[BCDEGRST]'
5427bd1da9d7Smrg
542847e89262Smrg# Regexp to match symbols that can be accessed directly from C.
542947e89262Smrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5430bd1da9d7Smrg
543147e89262Smrg# Define system-specific variables.
543247e89262Smrgcase $host_os in
543347e89262Smrgaix*)
543447e89262Smrg  symcode='[BCDT]'
543547e89262Smrg  ;;
543647e89262Smrgcygwin* | mingw* | pw32* | cegcc*)
543747e89262Smrg  symcode='[ABCDGISTW]'
543847e89262Smrg  ;;
543947e89262Smrghpux*)
544047e89262Smrg  if test "$host_cpu" = ia64; then
544147e89262Smrg    symcode='[ABCDEGRST]'
544247e89262Smrg  fi
544347e89262Smrg  ;;
544447e89262Smrgirix* | nonstopux*)
544547e89262Smrg  symcode='[BCDEGRST]'
544647e89262Smrg  ;;
544747e89262Smrgosf*)
544847e89262Smrg  symcode='[BCDEGQRST]'
544947e89262Smrg  ;;
545047e89262Smrgsolaris*)
545147e89262Smrg  symcode='[BDRT]'
545247e89262Smrg  ;;
545347e89262Smrgsco3.2v5*)
545447e89262Smrg  symcode='[DT]'
545547e89262Smrg  ;;
545647e89262Smrgsysv4.2uw2*)
545747e89262Smrg  symcode='[DT]'
545847e89262Smrg  ;;
545947e89262Smrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
546047e89262Smrg  symcode='[ABDT]'
546147e89262Smrg  ;;
546247e89262Smrgsysv4)
546347e89262Smrg  symcode='[DFNSTU]'
546447e89262Smrg  ;;
546547e89262Smrgesac
5466bd1da9d7Smrg
546747e89262Smrg# If we're using GNU nm, then use its standard symbol codes.
546847e89262Smrgcase `$NM -V 2>&1` in
546947e89262Smrg*GNU* | *'with BFD'*)
547047e89262Smrg  symcode='[ABCDGIRSTW]' ;;
547147e89262Smrgesac
5472bd1da9d7Smrg
547347e89262Smrg# Transform an extracted symbol line into a proper C declaration.
547447e89262Smrg# Some systems (esp. on ia64) link data and code symbols differently,
547547e89262Smrg# so use this general approach.
547647e89262Smrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5477bd1da9d7Smrg
547847e89262Smrg# Transform an extracted symbol line into symbol name and symbol address
547947e89262Smrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
548047e89262Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5481bd1da9d7Smrg
548247e89262Smrg# Handle CRLF in mingw tool chain
548347e89262Smrgopt_cr=
548447e89262Smrgcase $build_os in
548547e89262Smrgmingw*)
548647e89262Smrg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
548747e89262Smrg  ;;
548847e89262Smrgesac
548947e89262Smrg
549047e89262Smrg# Try without a prefix underscore, then with it.
549147e89262Smrgfor ac_symprfx in "" "_"; do
549247e89262Smrg
549347e89262Smrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
549447e89262Smrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
549547e89262Smrg
549647e89262Smrg  # Write the raw and C identifiers.
549747e89262Smrg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
549847e89262Smrg    # Fake it for dumpbin and say T for any non-static function
549947e89262Smrg    # and D for any global variable.
550047e89262Smrg    # Also find C++ and __fastcall symbols from MSVC++,
550147e89262Smrg    # which start with @ or ?.
550247e89262Smrg    lt_cv_sys_global_symbol_pipe="$AWK '"\
550347e89262Smrg"     {last_section=section; section=\$ 3};"\
550447e89262Smrg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
550547e89262Smrg"     \$ 0!~/External *\|/{next};"\
550647e89262Smrg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
550747e89262Smrg"     {if(hide[section]) next};"\
550847e89262Smrg"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
550947e89262Smrg"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
551047e89262Smrg"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
551147e89262Smrg"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
551247e89262Smrg"     ' prfx=^$ac_symprfx"
551347e89262Smrg  else
551447e89262Smrg    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5515bd1da9d7Smrg  fi
5516bd1da9d7Smrg
551747e89262Smrg  # Check to see that the pipe works correctly.
551847e89262Smrg  pipe_works=no
5519bd1da9d7Smrg
552047e89262Smrg  rm -f conftest*
552147e89262Smrg  cat > conftest.$ac_ext <<_LT_EOF
552247e89262Smrg#ifdef __cplusplus
552347e89262Smrgextern "C" {
552447e89262Smrg#endif
552547e89262Smrgchar nm_test_var;
552647e89262Smrgvoid nm_test_func(void);
552747e89262Smrgvoid nm_test_func(void){}
552847e89262Smrg#ifdef __cplusplus
552947e89262Smrg}
553047e89262Smrg#endif
553147e89262Smrgint main(){nm_test_var='a';nm_test_func();return(0);}
553247e89262Smrg_LT_EOF
553347e89262Smrg
553447e89262Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
553547e89262Smrg  (eval $ac_compile) 2>&5
553647e89262Smrg  ac_status=$?
553747e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
553847e89262Smrg  test $ac_status = 0; }; then
553947e89262Smrg    # Now try to grab the symbols.
554047e89262Smrg    nlist=conftest.nm
554147e89262Smrg    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
554247e89262Smrg  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
554347e89262Smrg  ac_status=$?
554447e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
554547e89262Smrg  test $ac_status = 0; } && test -s "$nlist"; then
554647e89262Smrg      # Try sorting and uniquifying the output.
554747e89262Smrg      if sort "$nlist" | uniq > "$nlist"T; then
554847e89262Smrg	mv -f "$nlist"T "$nlist"
554947e89262Smrg      else
555047e89262Smrg	rm -f "$nlist"T
555147e89262Smrg      fi
555247e89262Smrg
555347e89262Smrg      # Make sure that we snagged all the symbols we need.
555447e89262Smrg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
555547e89262Smrg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
555647e89262Smrg	  cat <<_LT_EOF > conftest.$ac_ext
555747e89262Smrg#ifdef __cplusplus
555847e89262Smrgextern "C" {
555947e89262Smrg#endif
556047e89262Smrg
556147e89262Smrg_LT_EOF
556247e89262Smrg	  # Now generate the symbol file.
556347e89262Smrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
556447e89262Smrg
556547e89262Smrg	  cat <<_LT_EOF >> conftest.$ac_ext
556647e89262Smrg
556747e89262Smrg/* The mapping between symbol names and symbols.  */
556847e89262Smrgconst struct {
556947e89262Smrg  const char *name;
557047e89262Smrg  void       *address;
557147e89262Smrg}
557247e89262Smrglt__PROGRAM__LTX_preloaded_symbols[] =
557347e89262Smrg{
557447e89262Smrg  { "@PROGRAM@", (void *) 0 },
557547e89262Smrg_LT_EOF
557647e89262Smrg	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
557747e89262Smrg	  cat <<\_LT_EOF >> conftest.$ac_ext
557847e89262Smrg  {0, (void *) 0}
557947e89262Smrg};
558047e89262Smrg
558147e89262Smrg/* This works around a problem in FreeBSD linker */
558247e89262Smrg#ifdef FREEBSD_WORKAROUND
558347e89262Smrgstatic const void *lt_preloaded_setup() {
558447e89262Smrg  return lt__PROGRAM__LTX_preloaded_symbols;
558547e89262Smrg}
558647e89262Smrg#endif
558747e89262Smrg
558847e89262Smrg#ifdef __cplusplus
558947e89262Smrg}
559047e89262Smrg#endif
559147e89262Smrg_LT_EOF
559247e89262Smrg	  # Now try linking the two files.
559347e89262Smrg	  mv conftest.$ac_objext conftstm.$ac_objext
559447e89262Smrg	  lt_save_LIBS="$LIBS"
559547e89262Smrg	  lt_save_CFLAGS="$CFLAGS"
559647e89262Smrg	  LIBS="conftstm.$ac_objext"
559747e89262Smrg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
559847e89262Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
559947e89262Smrg  (eval $ac_link) 2>&5
560047e89262Smrg  ac_status=$?
560147e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
560247e89262Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
560347e89262Smrg	    pipe_works=yes
560447e89262Smrg	  fi
560547e89262Smrg	  LIBS="$lt_save_LIBS"
560647e89262Smrg	  CFLAGS="$lt_save_CFLAGS"
560747e89262Smrg	else
560847e89262Smrg	  echo "cannot find nm_test_func in $nlist" >&5
560947e89262Smrg	fi
561047e89262Smrg      else
561147e89262Smrg	echo "cannot find nm_test_var in $nlist" >&5
561247e89262Smrg      fi
5613bd1da9d7Smrg    else
561447e89262Smrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5615bd1da9d7Smrg    fi
561647e89262Smrg  else
561747e89262Smrg    echo "$progname: failed program was:" >&5
561847e89262Smrg    cat conftest.$ac_ext >&5
561947e89262Smrg  fi
562047e89262Smrg  rm -rf conftest* conftst*
562147e89262Smrg
562247e89262Smrg  # Do not use the global_symbol_pipe unless it works.
562347e89262Smrg  if test "$pipe_works" = yes; then
562447e89262Smrg    break
562547e89262Smrg  else
562647e89262Smrg    lt_cv_sys_global_symbol_pipe=
562747e89262Smrg  fi
562847e89262Smrgdone
5629bd1da9d7Smrg
563047e89262Smrgfi
5631bd1da9d7Smrg
563247e89262Smrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
563347e89262Smrg  lt_cv_sys_global_symbol_to_cdecl=
563447e89262Smrgfi
563547e89262Smrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
563647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
563747e89262Smrg$as_echo "failed" >&6; }
563847e89262Smrgelse
563947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
564047e89262Smrg$as_echo "ok" >&6; }
564147e89262Smrgfi
5642bd1da9d7Smrg
5643bd1da9d7Smrg
5644bd1da9d7Smrg
56455bcb6992Smrg
5646bd1da9d7Smrg
5647bd1da9d7Smrg
5648bd1da9d7Smrg
5649bd1da9d7Smrg
5650bd1da9d7Smrg
5651bd1da9d7Smrg
5652bd1da9d7Smrg
5653bd1da9d7Smrg
5654bd1da9d7Smrg
5655bd1da9d7Smrg
5656bd1da9d7Smrg
5657bd1da9d7Smrg
56585bcb6992Smrg
5659bd1da9d7Smrg
5660bd1da9d7Smrg
5661bd1da9d7Smrg
5662bd1da9d7Smrg
5663bd1da9d7Smrg
566447e89262Smrg
566547e89262Smrg# Check whether --enable-libtool-lock was given.
566647e89262Smrgif test "${enable_libtool_lock+set}" = set; then :
566747e89262Smrg  enableval=$enable_libtool_lock;
566847e89262Smrgfi
566947e89262Smrg
567047e89262Smrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
567147e89262Smrg
567247e89262Smrg# Some flags need to be propagated to the compiler or linker for good
567347e89262Smrg# libtool support.
567447e89262Smrgcase $host in
567547e89262Smrgia64-*-hpux*)
567647e89262Smrg  # Find out which ABI we are using.
567747e89262Smrg  echo 'int i;' > conftest.$ac_ext
567847e89262Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
567947e89262Smrg  (eval $ac_compile) 2>&5
568047e89262Smrg  ac_status=$?
568147e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
568247e89262Smrg  test $ac_status = 0; }; then
568347e89262Smrg    case `/usr/bin/file conftest.$ac_objext` in
568447e89262Smrg      *ELF-32*)
568547e89262Smrg	HPUX_IA64_MODE="32"
568647e89262Smrg	;;
568747e89262Smrg      *ELF-64*)
568847e89262Smrg	HPUX_IA64_MODE="64"
568947e89262Smrg	;;
569047e89262Smrg    esac
569147e89262Smrg  fi
569247e89262Smrg  rm -rf conftest*
569347e89262Smrg  ;;
569447e89262Smrg*-*-irix6*)
569547e89262Smrg  # Find out which ABI we are using.
569647e89262Smrg  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
569747e89262Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
569847e89262Smrg  (eval $ac_compile) 2>&5
569947e89262Smrg  ac_status=$?
570047e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
570147e89262Smrg  test $ac_status = 0; }; then
570247e89262Smrg    if test "$lt_cv_prog_gnu_ld" = yes; then
570347e89262Smrg      case `/usr/bin/file conftest.$ac_objext` in
570447e89262Smrg	*32-bit*)
570547e89262Smrg	  LD="${LD-ld} -melf32bsmip"
570647e89262Smrg	  ;;
570747e89262Smrg	*N32*)
570847e89262Smrg	  LD="${LD-ld} -melf32bmipn32"
570947e89262Smrg	  ;;
571047e89262Smrg	*64-bit*)
571147e89262Smrg	  LD="${LD-ld} -melf64bmip"
571247e89262Smrg	;;
571347e89262Smrg      esac
5714bd1da9d7Smrg    else
571547e89262Smrg      case `/usr/bin/file conftest.$ac_objext` in
571647e89262Smrg	*32-bit*)
571747e89262Smrg	  LD="${LD-ld} -32"
571847e89262Smrg	  ;;
571947e89262Smrg	*N32*)
572047e89262Smrg	  LD="${LD-ld} -n32"
572147e89262Smrg	  ;;
572247e89262Smrg	*64-bit*)
572347e89262Smrg	  LD="${LD-ld} -64"
572447e89262Smrg	  ;;
572547e89262Smrg      esac
5726bd1da9d7Smrg    fi
572747e89262Smrg  fi
572847e89262Smrg  rm -rf conftest*
5729bd1da9d7Smrg  ;;
5730bd1da9d7Smrg
573147e89262Smrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
573247e89262Smrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
573347e89262Smrg  # Find out which ABI we are using.
573447e89262Smrg  echo 'int i;' > conftest.$ac_ext
573547e89262Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
573647e89262Smrg  (eval $ac_compile) 2>&5
573747e89262Smrg  ac_status=$?
573847e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
573947e89262Smrg  test $ac_status = 0; }; then
574047e89262Smrg    case `/usr/bin/file conftest.o` in
574147e89262Smrg      *32-bit*)
574247e89262Smrg	case $host in
574347e89262Smrg	  x86_64-*kfreebsd*-gnu)
574447e89262Smrg	    LD="${LD-ld} -m elf_i386_fbsd"
574547e89262Smrg	    ;;
574647e89262Smrg	  x86_64-*linux*)
574747e89262Smrg	    LD="${LD-ld} -m elf_i386"
574847e89262Smrg	    ;;
574947e89262Smrg	  ppc64-*linux*|powerpc64-*linux*)
575047e89262Smrg	    LD="${LD-ld} -m elf32ppclinux"
575147e89262Smrg	    ;;
575247e89262Smrg	  s390x-*linux*)
575347e89262Smrg	    LD="${LD-ld} -m elf_s390"
575447e89262Smrg	    ;;
575547e89262Smrg	  sparc64-*linux*)
575647e89262Smrg	    LD="${LD-ld} -m elf32_sparc"
575747e89262Smrg	    ;;
575847e89262Smrg	esac
575947e89262Smrg	;;
576047e89262Smrg      *64-bit*)
576147e89262Smrg	case $host in
576247e89262Smrg	  x86_64-*kfreebsd*-gnu)
576347e89262Smrg	    LD="${LD-ld} -m elf_x86_64_fbsd"
576447e89262Smrg	    ;;
576547e89262Smrg	  x86_64-*linux*)
576647e89262Smrg	    LD="${LD-ld} -m elf_x86_64"
576747e89262Smrg	    ;;
576847e89262Smrg	  ppc*-*linux*|powerpc*-*linux*)
576947e89262Smrg	    LD="${LD-ld} -m elf64ppc"
577047e89262Smrg	    ;;
577147e89262Smrg	  s390*-*linux*|s390*-*tpf*)
577247e89262Smrg	    LD="${LD-ld} -m elf64_s390"
577347e89262Smrg	    ;;
577447e89262Smrg	  sparc*-*linux*)
577547e89262Smrg	    LD="${LD-ld} -m elf64_sparc"
577647e89262Smrg	    ;;
577747e89262Smrg	esac
577847e89262Smrg	;;
577947e89262Smrg    esac
578047e89262Smrg  fi
578147e89262Smrg  rm -rf conftest*
5782bd1da9d7Smrg  ;;
5783bd1da9d7Smrg
578447e89262Smrg*-*-sco3.2v5*)
578547e89262Smrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
578647e89262Smrg  SAVE_CFLAGS="$CFLAGS"
578747e89262Smrg  CFLAGS="$CFLAGS -belf"
578847e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
578947e89262Smrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
579047e89262Smrgif ${lt_cv_cc_needs_belf+:} false; then :
579147e89262Smrg  $as_echo_n "(cached) " >&6
579247e89262Smrgelse
579347e89262Smrg  ac_ext=c
579447e89262Smrgac_cpp='$CPP $CPPFLAGS'
579547e89262Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
579647e89262Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
579747e89262Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
579847e89262Smrg
579947e89262Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
580047e89262Smrg/* end confdefs.h.  */
580147e89262Smrg
580247e89262Smrgint
580347e89262Smrgmain ()
580447e89262Smrg{
580547e89262Smrg
580647e89262Smrg  ;
580747e89262Smrg  return 0;
580847e89262Smrg}
580947e89262Smrg_ACEOF
581047e89262Smrgif ac_fn_c_try_link "$LINENO"; then :
581147e89262Smrg  lt_cv_cc_needs_belf=yes
581247e89262Smrgelse
581347e89262Smrg  lt_cv_cc_needs_belf=no
581447e89262Smrgfi
581547e89262Smrgrm -f core conftest.err conftest.$ac_objext \
581647e89262Smrg    conftest$ac_exeext conftest.$ac_ext
581747e89262Smrg     ac_ext=c
581847e89262Smrgac_cpp='$CPP $CPPFLAGS'
581947e89262Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
582047e89262Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
582147e89262Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
582247e89262Smrg
582347e89262Smrgfi
582447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
582547e89262Smrg$as_echo "$lt_cv_cc_needs_belf" >&6; }
582647e89262Smrg  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
582747e89262Smrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
582847e89262Smrg    CFLAGS="$SAVE_CFLAGS"
582947e89262Smrg  fi
583047e89262Smrg  ;;
583147e89262Smrgsparc*-*solaris*)
583247e89262Smrg  # Find out which ABI we are using.
583347e89262Smrg  echo 'int i;' > conftest.$ac_ext
583447e89262Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
583547e89262Smrg  (eval $ac_compile) 2>&5
583647e89262Smrg  ac_status=$?
583747e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
583847e89262Smrg  test $ac_status = 0; }; then
583947e89262Smrg    case `/usr/bin/file conftest.o` in
584047e89262Smrg    *64-bit*)
584147e89262Smrg      case $lt_cv_prog_gnu_ld in
584247e89262Smrg      yes*) LD="${LD-ld} -m elf64_sparc" ;;
584347e89262Smrg      *)
584447e89262Smrg	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
584547e89262Smrg	  LD="${LD-ld} -64"
584647e89262Smrg	fi
584747e89262Smrg	;;
584847e89262Smrg      esac
584947e89262Smrg      ;;
5850bd1da9d7Smrg    esac
585147e89262Smrg  fi
585247e89262Smrg  rm -rf conftest*
5853bd1da9d7Smrg  ;;
585447e89262Smrgesac
5855bd1da9d7Smrg
585647e89262Smrgneed_locks="$enable_libtool_lock"
5857bd1da9d7Smrg
5858bd1da9d7Smrg
585947e89262Smrg  case $host_os in
586047e89262Smrg    rhapsody* | darwin*)
586147e89262Smrg    if test -n "$ac_tool_prefix"; then
586247e89262Smrg  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
586347e89262Smrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
586447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
586547e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
586647e89262Smrgif ${ac_cv_prog_DSYMUTIL+:} false; then :
586747e89262Smrg  $as_echo_n "(cached) " >&6
586847e89262Smrgelse
586947e89262Smrg  if test -n "$DSYMUTIL"; then
587047e89262Smrg  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
587147e89262Smrgelse
587247e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
587347e89262Smrgfor as_dir in $PATH
587447e89262Smrgdo
587547e89262Smrg  IFS=$as_save_IFS
587647e89262Smrg  test -z "$as_dir" && as_dir=.
587747e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
587847e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
587947e89262Smrg    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
588047e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
588147e89262Smrg    break 2
5882bd1da9d7Smrg  fi
588347e89262Smrgdone
588447e89262Smrg  done
588547e89262SmrgIFS=$as_save_IFS
5886bd1da9d7Smrg
588747e89262Smrgfi
588847e89262Smrgfi
588947e89262SmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL
589047e89262Smrgif test -n "$DSYMUTIL"; then
589147e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
589247e89262Smrg$as_echo "$DSYMUTIL" >&6; }
589347e89262Smrgelse
589447e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
589547e89262Smrg$as_echo "no" >&6; }
589647e89262Smrgfi
5897bd1da9d7Smrg
5898bd1da9d7Smrg
589947e89262Smrgfi
590047e89262Smrgif test -z "$ac_cv_prog_DSYMUTIL"; then
590147e89262Smrg  ac_ct_DSYMUTIL=$DSYMUTIL
590247e89262Smrg  # Extract the first word of "dsymutil", so it can be a program name with args.
590347e89262Smrgset dummy dsymutil; ac_word=$2
590447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
590547e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
590647e89262Smrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
590747e89262Smrg  $as_echo_n "(cached) " >&6
590847e89262Smrgelse
590947e89262Smrg  if test -n "$ac_ct_DSYMUTIL"; then
591047e89262Smrg  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
591147e89262Smrgelse
591247e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
591347e89262Smrgfor as_dir in $PATH
591447e89262Smrgdo
591547e89262Smrg  IFS=$as_save_IFS
591647e89262Smrg  test -z "$as_dir" && as_dir=.
591747e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
591847e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
591947e89262Smrg    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
592047e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
592147e89262Smrg    break 2
592247e89262Smrg  fi
592347e89262Smrgdone
592447e89262Smrg  done
592547e89262SmrgIFS=$as_save_IFS
5926bd1da9d7Smrg
592747e89262Smrgfi
592847e89262Smrgfi
592947e89262Smrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
593047e89262Smrgif test -n "$ac_ct_DSYMUTIL"; then
593147e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
593247e89262Smrg$as_echo "$ac_ct_DSYMUTIL" >&6; }
593347e89262Smrgelse
593447e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
593547e89262Smrg$as_echo "no" >&6; }
593647e89262Smrgfi
5937bd1da9d7Smrg
593847e89262Smrg  if test "x$ac_ct_DSYMUTIL" = x; then
593947e89262Smrg    DSYMUTIL=":"
5940bd1da9d7Smrg  else
594147e89262Smrg    case $cross_compiling:$ac_tool_warned in
594247e89262Smrgyes:)
594347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
594447e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
594547e89262Smrgac_tool_warned=yes ;;
594647e89262Smrgesac
594747e89262Smrg    DSYMUTIL=$ac_ct_DSYMUTIL
5948bd1da9d7Smrg  fi
594947e89262Smrgelse
595047e89262Smrg  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
595147e89262Smrgfi
5952bd1da9d7Smrg
595347e89262Smrg    if test -n "$ac_tool_prefix"; then
595447e89262Smrg  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
595547e89262Smrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2
595647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
595747e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
595847e89262Smrgif ${ac_cv_prog_NMEDIT+:} false; then :
595947e89262Smrg  $as_echo_n "(cached) " >&6
596047e89262Smrgelse
596147e89262Smrg  if test -n "$NMEDIT"; then
596247e89262Smrg  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
596347e89262Smrgelse
596447e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
596547e89262Smrgfor as_dir in $PATH
596647e89262Smrgdo
596747e89262Smrg  IFS=$as_save_IFS
596847e89262Smrg  test -z "$as_dir" && as_dir=.
596947e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
597047e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
597147e89262Smrg    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
597247e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
597347e89262Smrg    break 2
597447e89262Smrg  fi
597547e89262Smrgdone
597647e89262Smrg  done
597747e89262SmrgIFS=$as_save_IFS
5978bd1da9d7Smrg
597947e89262Smrgfi
598047e89262Smrgfi
598147e89262SmrgNMEDIT=$ac_cv_prog_NMEDIT
598247e89262Smrgif test -n "$NMEDIT"; then
598347e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
598447e89262Smrg$as_echo "$NMEDIT" >&6; }
598547e89262Smrgelse
598647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
598747e89262Smrg$as_echo "no" >&6; }
598847e89262Smrgfi
59895bcb6992Smrg
5990bd1da9d7Smrg
599147e89262Smrgfi
599247e89262Smrgif test -z "$ac_cv_prog_NMEDIT"; then
599347e89262Smrg  ac_ct_NMEDIT=$NMEDIT
599447e89262Smrg  # Extract the first word of "nmedit", so it can be a program name with args.
599547e89262Smrgset dummy nmedit; ac_word=$2
599647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
599747e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
599847e89262Smrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
599947e89262Smrg  $as_echo_n "(cached) " >&6
600047e89262Smrgelse
600147e89262Smrg  if test -n "$ac_ct_NMEDIT"; then
600247e89262Smrg  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
600347e89262Smrgelse
600447e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
600547e89262Smrgfor as_dir in $PATH
600647e89262Smrgdo
600747e89262Smrg  IFS=$as_save_IFS
600847e89262Smrg  test -z "$as_dir" && as_dir=.
600947e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
601047e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
601147e89262Smrg    ac_cv_prog_ac_ct_NMEDIT="nmedit"
601247e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
601347e89262Smrg    break 2
6014bd1da9d7Smrg  fi
601547e89262Smrgdone
601647e89262Smrg  done
601747e89262SmrgIFS=$as_save_IFS
6018bd1da9d7Smrg
601947e89262Smrgfi
602047e89262Smrgfi
602147e89262Smrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
602247e89262Smrgif test -n "$ac_ct_NMEDIT"; then
602347e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
602447e89262Smrg$as_echo "$ac_ct_NMEDIT" >&6; }
602547e89262Smrgelse
602647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
602747e89262Smrg$as_echo "no" >&6; }
602847e89262Smrgfi
6029bd1da9d7Smrg
603047e89262Smrg  if test "x$ac_ct_NMEDIT" = x; then
603147e89262Smrg    NMEDIT=":"
603247e89262Smrg  else
603347e89262Smrg    case $cross_compiling:$ac_tool_warned in
603447e89262Smrgyes:)
603547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
603647e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
603747e89262Smrgac_tool_warned=yes ;;
603847e89262Smrgesac
603947e89262Smrg    NMEDIT=$ac_ct_NMEDIT
6040bd1da9d7Smrg  fi
604147e89262Smrgelse
604247e89262Smrg  NMEDIT="$ac_cv_prog_NMEDIT"
604347e89262Smrgfi
6044bd1da9d7Smrg
604547e89262Smrg    if test -n "$ac_tool_prefix"; then
604647e89262Smrg  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
604747e89262Smrgset dummy ${ac_tool_prefix}lipo; ac_word=$2
604847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
604947e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
605047e89262Smrgif ${ac_cv_prog_LIPO+:} false; then :
605147e89262Smrg  $as_echo_n "(cached) " >&6
605247e89262Smrgelse
605347e89262Smrg  if test -n "$LIPO"; then
605447e89262Smrg  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
605547e89262Smrgelse
605647e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
605747e89262Smrgfor as_dir in $PATH
605847e89262Smrgdo
605947e89262Smrg  IFS=$as_save_IFS
606047e89262Smrg  test -z "$as_dir" && as_dir=.
606147e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
606247e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
606347e89262Smrg    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
606447e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
606547e89262Smrg    break 2
606647e89262Smrg  fi
606747e89262Smrgdone
606847e89262Smrg  done
606947e89262SmrgIFS=$as_save_IFS
607047e89262Smrg
607147e89262Smrgfi
607247e89262Smrgfi
607347e89262SmrgLIPO=$ac_cv_prog_LIPO
607447e89262Smrgif test -n "$LIPO"; then
607547e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
607647e89262Smrg$as_echo "$LIPO" >&6; }
607747e89262Smrgelse
607847e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
607947e89262Smrg$as_echo "no" >&6; }
608047e89262Smrgfi
608147e89262Smrg
608247e89262Smrg
608347e89262Smrgfi
608447e89262Smrgif test -z "$ac_cv_prog_LIPO"; then
608547e89262Smrg  ac_ct_LIPO=$LIPO
608647e89262Smrg  # Extract the first word of "lipo", so it can be a program name with args.
608747e89262Smrgset dummy lipo; ac_word=$2
608847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
608947e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
609047e89262Smrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then :
609147e89262Smrg  $as_echo_n "(cached) " >&6
609247e89262Smrgelse
609347e89262Smrg  if test -n "$ac_ct_LIPO"; then
609447e89262Smrg  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
609547e89262Smrgelse
609647e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
609747e89262Smrgfor as_dir in $PATH
609847e89262Smrgdo
609947e89262Smrg  IFS=$as_save_IFS
610047e89262Smrg  test -z "$as_dir" && as_dir=.
610147e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
610247e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
610347e89262Smrg    ac_cv_prog_ac_ct_LIPO="lipo"
610447e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
610547e89262Smrg    break 2
6106bd1da9d7Smrg  fi
610747e89262Smrgdone
610847e89262Smrg  done
610947e89262SmrgIFS=$as_save_IFS
6110bd1da9d7Smrg
611147e89262Smrgfi
611247e89262Smrgfi
611347e89262Smrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
611447e89262Smrgif test -n "$ac_ct_LIPO"; then
611547e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
611647e89262Smrg$as_echo "$ac_ct_LIPO" >&6; }
611747e89262Smrgelse
611847e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
611947e89262Smrg$as_echo "no" >&6; }
612047e89262Smrgfi
6121bd1da9d7Smrg
612247e89262Smrg  if test "x$ac_ct_LIPO" = x; then
612347e89262Smrg    LIPO=":"
612447e89262Smrg  else
612547e89262Smrg    case $cross_compiling:$ac_tool_warned in
612647e89262Smrgyes:)
612747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
612847e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
612947e89262Smrgac_tool_warned=yes ;;
6130bd1da9d7Smrgesac
613147e89262Smrg    LIPO=$ac_ct_LIPO
613247e89262Smrg  fi
61335bcb6992Smrgelse
613447e89262Smrg  LIPO="$ac_cv_prog_LIPO"
61355bcb6992Smrgfi
61365bcb6992Smrg
613747e89262Smrg    if test -n "$ac_tool_prefix"; then
613847e89262Smrg  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
613947e89262Smrgset dummy ${ac_tool_prefix}otool; ac_word=$2
614047e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
614147e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
614247e89262Smrgif ${ac_cv_prog_OTOOL+:} false; then :
61435bcb6992Smrg  $as_echo_n "(cached) " >&6
61445bcb6992Smrgelse
614547e89262Smrg  if test -n "$OTOOL"; then
614647e89262Smrg  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
614747e89262Smrgelse
614847e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
614947e89262Smrgfor as_dir in $PATH
615047e89262Smrgdo
615147e89262Smrg  IFS=$as_save_IFS
615247e89262Smrg  test -z "$as_dir" && as_dir=.
615347e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
615447e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
615547e89262Smrg    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
615647e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
615747e89262Smrg    break 2
615847e89262Smrg  fi
615947e89262Smrgdone
616047e89262Smrg  done
616147e89262SmrgIFS=$as_save_IFS
616247e89262Smrg
616347e89262Smrgfi
616447e89262Smrgfi
616547e89262SmrgOTOOL=$ac_cv_prog_OTOOL
616647e89262Smrgif test -n "$OTOOL"; then
616747e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
616847e89262Smrg$as_echo "$OTOOL" >&6; }
616947e89262Smrgelse
617047e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
617147e89262Smrg$as_echo "no" >&6; }
61725bcb6992Smrgfi
61735bcb6992Smrg
61745bcb6992Smrg
6175bd1da9d7Smrgfi
617647e89262Smrgif test -z "$ac_cv_prog_OTOOL"; then
617747e89262Smrg  ac_ct_OTOOL=$OTOOL
617847e89262Smrg  # Extract the first word of "otool", so it can be a program name with args.
617947e89262Smrgset dummy otool; ac_word=$2
618047e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
618147e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
618247e89262Smrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
618347e89262Smrg  $as_echo_n "(cached) " >&6
618447e89262Smrgelse
618547e89262Smrg  if test -n "$ac_ct_OTOOL"; then
618647e89262Smrg  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
618747e89262Smrgelse
618847e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
618947e89262Smrgfor as_dir in $PATH
619047e89262Smrgdo
619147e89262Smrg  IFS=$as_save_IFS
619247e89262Smrg  test -z "$as_dir" && as_dir=.
619347e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
619447e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
619547e89262Smrg    ac_cv_prog_ac_ct_OTOOL="otool"
619647e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
619747e89262Smrg    break 2
619847e89262Smrg  fi
619947e89262Smrgdone
620047e89262Smrg  done
620147e89262SmrgIFS=$as_save_IFS
6202bd1da9d7Smrg
620347e89262Smrgfi
620447e89262Smrgfi
620547e89262Smrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
620647e89262Smrgif test -n "$ac_ct_OTOOL"; then
620747e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
620847e89262Smrg$as_echo "$ac_ct_OTOOL" >&6; }
620947e89262Smrgelse
621047e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
621147e89262Smrg$as_echo "no" >&6; }
621247e89262Smrgfi
6213bd1da9d7Smrg
621447e89262Smrg  if test "x$ac_ct_OTOOL" = x; then
621547e89262Smrg    OTOOL=":"
6216bd1da9d7Smrg  else
621747e89262Smrg    case $cross_compiling:$ac_tool_warned in
621847e89262Smrgyes:)
621947e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
622047e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
622147e89262Smrgac_tool_warned=yes ;;
622247e89262Smrgesac
622347e89262Smrg    OTOOL=$ac_ct_OTOOL
6224bd1da9d7Smrg  fi
6225bd1da9d7Smrgelse
622647e89262Smrg  OTOOL="$ac_cv_prog_OTOOL"
6227bd1da9d7Smrgfi
6228bd1da9d7Smrg
622947e89262Smrg    if test -n "$ac_tool_prefix"; then
623047e89262Smrg  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
623147e89262Smrgset dummy ${ac_tool_prefix}otool64; ac_word=$2
623247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
623347e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
623447e89262Smrgif ${ac_cv_prog_OTOOL64+:} false; then :
623547e89262Smrg  $as_echo_n "(cached) " >&6
623647e89262Smrgelse
623747e89262Smrg  if test -n "$OTOOL64"; then
623847e89262Smrg  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
623947e89262Smrgelse
624047e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
624147e89262Smrgfor as_dir in $PATH
624247e89262Smrgdo
624347e89262Smrg  IFS=$as_save_IFS
624447e89262Smrg  test -z "$as_dir" && as_dir=.
624547e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
624647e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
624747e89262Smrg    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
624847e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
624947e89262Smrg    break 2
6250bd1da9d7Smrg  fi
625147e89262Smrgdone
6252bd1da9d7Smrg  done
625347e89262SmrgIFS=$as_save_IFS
6254bd1da9d7Smrg
625547e89262Smrgfi
625647e89262Smrgfi
625747e89262SmrgOTOOL64=$ac_cv_prog_OTOOL64
625847e89262Smrgif test -n "$OTOOL64"; then
625947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
626047e89262Smrg$as_echo "$OTOOL64" >&6; }
626147e89262Smrgelse
626247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
626347e89262Smrg$as_echo "no" >&6; }
626447e89262Smrgfi
6265bd1da9d7Smrg
6266bd1da9d7Smrg
626747e89262Smrgfi
626847e89262Smrgif test -z "$ac_cv_prog_OTOOL64"; then
626947e89262Smrg  ac_ct_OTOOL64=$OTOOL64
627047e89262Smrg  # Extract the first word of "otool64", so it can be a program name with args.
627147e89262Smrgset dummy otool64; ac_word=$2
627247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
627347e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
627447e89262Smrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
627547e89262Smrg  $as_echo_n "(cached) " >&6
627647e89262Smrgelse
627747e89262Smrg  if test -n "$ac_ct_OTOOL64"; then
627847e89262Smrg  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
627947e89262Smrgelse
628047e89262Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
628147e89262Smrgfor as_dir in $PATH
628247e89262Smrgdo
628347e89262Smrg  IFS=$as_save_IFS
628447e89262Smrg  test -z "$as_dir" && as_dir=.
628547e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
628647e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
628747e89262Smrg    ac_cv_prog_ac_ct_OTOOL64="otool64"
628847e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
628947e89262Smrg    break 2
629047e89262Smrg  fi
629147e89262Smrgdone
629247e89262Smrg  done
629347e89262SmrgIFS=$as_save_IFS
6294bd1da9d7Smrg
629547e89262Smrgfi
629647e89262Smrgfi
629747e89262Smrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
629847e89262Smrgif test -n "$ac_ct_OTOOL64"; then
629947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
630047e89262Smrg$as_echo "$ac_ct_OTOOL64" >&6; }
630147e89262Smrgelse
630247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
630347e89262Smrg$as_echo "no" >&6; }
630447e89262Smrgfi
6305bd1da9d7Smrg
630647e89262Smrg  if test "x$ac_ct_OTOOL64" = x; then
630747e89262Smrg    OTOOL64=":"
630847e89262Smrg  else
630947e89262Smrg    case $cross_compiling:$ac_tool_warned in
631047e89262Smrgyes:)
631147e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
631247e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
631347e89262Smrgac_tool_warned=yes ;;
631447e89262Smrgesac
631547e89262Smrg    OTOOL64=$ac_ct_OTOOL64
631647e89262Smrg  fi
631747e89262Smrgelse
631847e89262Smrg  OTOOL64="$ac_cv_prog_OTOOL64"
631947e89262Smrgfi
6320bd1da9d7Smrg
6321bd1da9d7Smrg
6322bd1da9d7Smrg
6323bd1da9d7Smrg
6324bd1da9d7Smrg
6325bd1da9d7Smrg
6326bd1da9d7Smrg
6327bd1da9d7Smrg
6328bd1da9d7Smrg
6329bd1da9d7Smrg
6330bd1da9d7Smrg
6331bd1da9d7Smrg
6332bd1da9d7Smrg
6333bd1da9d7Smrg
6334bd1da9d7Smrg
6335bd1da9d7Smrg
6336bd1da9d7Smrg
6337bd1da9d7Smrg
6338bd1da9d7Smrg
6339bd1da9d7Smrg
6340bd1da9d7Smrg
6341bd1da9d7Smrg
6342bd1da9d7Smrg
6343bd1da9d7Smrg
6344bd1da9d7Smrg
6345bd1da9d7Smrg
6346bd1da9d7Smrg
634747e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
634847e89262Smrg$as_echo_n "checking for -single_module linker flag... " >&6; }
634947e89262Smrgif ${lt_cv_apple_cc_single_mod+:} false; then :
635047e89262Smrg  $as_echo_n "(cached) " >&6
635147e89262Smrgelse
635247e89262Smrg  lt_cv_apple_cc_single_mod=no
635347e89262Smrg      if test -z "${LT_MULTI_MODULE}"; then
635447e89262Smrg	# By default we will add the -single_module flag. You can override
635547e89262Smrg	# by either setting the environment variable LT_MULTI_MODULE
635647e89262Smrg	# non-empty at configure time, or by adding -multi_module to the
635747e89262Smrg	# link flags.
635847e89262Smrg	rm -rf libconftest.dylib*
635947e89262Smrg	echo "int foo(void){return 1;}" > conftest.c
636047e89262Smrg	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
636147e89262Smrg-dynamiclib -Wl,-single_module conftest.c" >&5
636247e89262Smrg	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
636347e89262Smrg	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
636447e89262Smrg        _lt_result=$?
636547e89262Smrg	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
636647e89262Smrg	  lt_cv_apple_cc_single_mod=yes
636747e89262Smrg	else
636847e89262Smrg	  cat conftest.err >&5
636947e89262Smrg	fi
637047e89262Smrg	rm -rf libconftest.dylib*
637147e89262Smrg	rm -f conftest.*
637247e89262Smrg      fi
637347e89262Smrgfi
637447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
637547e89262Smrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
637647e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
637747e89262Smrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
637847e89262Smrgif ${lt_cv_ld_exported_symbols_list+:} false; then :
637947e89262Smrg  $as_echo_n "(cached) " >&6
638047e89262Smrgelse
638147e89262Smrg  lt_cv_ld_exported_symbols_list=no
638247e89262Smrg      save_LDFLAGS=$LDFLAGS
638347e89262Smrg      echo "_main" > conftest.sym
638447e89262Smrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
638547e89262Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
638647e89262Smrg/* end confdefs.h.  */
6387bd1da9d7Smrg
638847e89262Smrgint
638947e89262Smrgmain ()
639047e89262Smrg{
6391bd1da9d7Smrg
639247e89262Smrg  ;
639347e89262Smrg  return 0;
639447e89262Smrg}
639547e89262Smrg_ACEOF
639647e89262Smrgif ac_fn_c_try_link "$LINENO"; then :
639747e89262Smrg  lt_cv_ld_exported_symbols_list=yes
639847e89262Smrgelse
639947e89262Smrg  lt_cv_ld_exported_symbols_list=no
640047e89262Smrgfi
640147e89262Smrgrm -f core conftest.err conftest.$ac_objext \
640247e89262Smrg    conftest$ac_exeext conftest.$ac_ext
640347e89262Smrg	LDFLAGS="$save_LDFLAGS"
6404bd1da9d7Smrg
640547e89262Smrgfi
640647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
640747e89262Smrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
640847e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
640947e89262Smrg$as_echo_n "checking for -force_load linker flag... " >&6; }
641047e89262Smrgif ${lt_cv_ld_force_load+:} false; then :
641147e89262Smrg  $as_echo_n "(cached) " >&6
641247e89262Smrgelse
641347e89262Smrg  lt_cv_ld_force_load=no
641447e89262Smrg      cat > conftest.c << _LT_EOF
641547e89262Smrgint forced_loaded() { return 2;}
641647e89262Smrg_LT_EOF
641747e89262Smrg      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
641847e89262Smrg      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
641947e89262Smrg      echo "$AR cru libconftest.a conftest.o" >&5
642047e89262Smrg      $AR cru libconftest.a conftest.o 2>&5
642147e89262Smrg      echo "$RANLIB libconftest.a" >&5
642247e89262Smrg      $RANLIB libconftest.a 2>&5
642347e89262Smrg      cat > conftest.c << _LT_EOF
642447e89262Smrgint main() { return 0;}
642547e89262Smrg_LT_EOF
642647e89262Smrg      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
642747e89262Smrg      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
642847e89262Smrg      _lt_result=$?
642947e89262Smrg      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
643047e89262Smrg	lt_cv_ld_force_load=yes
643147e89262Smrg      else
643247e89262Smrg	cat conftest.err >&5
643347e89262Smrg      fi
643447e89262Smrg        rm -f conftest.err libconftest.a conftest conftest.c
643547e89262Smrg        rm -rf conftest.dSYM
6436bd1da9d7Smrg
643747e89262Smrgfi
643847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
643947e89262Smrg$as_echo "$lt_cv_ld_force_load" >&6; }
644047e89262Smrg    case $host_os in
644147e89262Smrg    rhapsody* | darwin1.[012])
644247e89262Smrg      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
644347e89262Smrg    darwin1.*)
644447e89262Smrg      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
644547e89262Smrg    darwin*) # darwin 5.x on
644647e89262Smrg      # if running on 10.5 or later, the deployment target defaults
644747e89262Smrg      # to the OS version, if on x86, and 10.4, the deployment
644847e89262Smrg      # target defaults to 10.4. Don't you love it?
644947e89262Smrg      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
645047e89262Smrg	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
645147e89262Smrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
645247e89262Smrg	10.[012]*)
645347e89262Smrg	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
645447e89262Smrg	10.*)
645547e89262Smrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
645647e89262Smrg      esac
645747e89262Smrg    ;;
645847e89262Smrg  esac
645947e89262Smrg    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
646047e89262Smrg      _lt_dar_single_mod='$single_module'
646147e89262Smrg    fi
646247e89262Smrg    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
646347e89262Smrg      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
646447e89262Smrg    else
646547e89262Smrg      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
646647e89262Smrg    fi
646747e89262Smrg    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
646847e89262Smrg      _lt_dsymutil='~$DSYMUTIL $lib || :'
646947e89262Smrg    else
647047e89262Smrg      _lt_dsymutil=
647147e89262Smrg    fi
647247e89262Smrg    ;;
647347e89262Smrg  esac
6474bd1da9d7Smrg
647547e89262Smrgac_ext=c
647647e89262Smrgac_cpp='$CPP $CPPFLAGS'
647747e89262Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
647847e89262Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
647947e89262Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
648047e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
648147e89262Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
648247e89262Smrg# On Suns, sometimes $CPP names a directory.
648347e89262Smrgif test -n "$CPP" && test -d "$CPP"; then
648447e89262Smrg  CPP=
648547e89262Smrgfi
648647e89262Smrgif test -z "$CPP"; then
648747e89262Smrg  if ${ac_cv_prog_CPP+:} false; then :
648847e89262Smrg  $as_echo_n "(cached) " >&6
648947e89262Smrgelse
649047e89262Smrg      # Double quotes because CPP needs to be expanded
649147e89262Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
649247e89262Smrg    do
649347e89262Smrg      ac_preproc_ok=false
649447e89262Smrgfor ac_c_preproc_warn_flag in '' yes
649547e89262Smrgdo
649647e89262Smrg  # Use a header file that comes with gcc, so configuring glibc
649747e89262Smrg  # with a fresh cross-compiler works.
649847e89262Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
649947e89262Smrg  # <limits.h> exists even on freestanding compilers.
650047e89262Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
650147e89262Smrg  # not just through cpp. "Syntax error" is here to catch this case.
650247e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
650347e89262Smrg/* end confdefs.h.  */
650447e89262Smrg#ifdef __STDC__
650547e89262Smrg# include <limits.h>
650647e89262Smrg#else
650747e89262Smrg# include <assert.h>
650847e89262Smrg#endif
650947e89262Smrg		     Syntax error
651047e89262Smrg_ACEOF
651147e89262Smrgif ac_fn_c_try_cpp "$LINENO"; then :
6512bd1da9d7Smrg
651347e89262Smrgelse
651447e89262Smrg  # Broken: fails on valid input.
651547e89262Smrgcontinue
651647e89262Smrgfi
651747e89262Smrgrm -f conftest.err conftest.i conftest.$ac_ext
6518bd1da9d7Smrg
651947e89262Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
652047e89262Smrg  # can be detected and how.
652147e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
652247e89262Smrg/* end confdefs.h.  */
652347e89262Smrg#include <ac_nonexistent.h>
652447e89262Smrg_ACEOF
652547e89262Smrgif ac_fn_c_try_cpp "$LINENO"; then :
652647e89262Smrg  # Broken: success on invalid input.
652747e89262Smrgcontinue
652847e89262Smrgelse
652947e89262Smrg  # Passes both tests.
653047e89262Smrgac_preproc_ok=:
653147e89262Smrgbreak
653247e89262Smrgfi
653347e89262Smrgrm -f conftest.err conftest.i conftest.$ac_ext
6534bd1da9d7Smrg
653547e89262Smrgdone
653647e89262Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
653747e89262Smrgrm -f conftest.i conftest.err conftest.$ac_ext
653847e89262Smrgif $ac_preproc_ok; then :
653947e89262Smrg  break
654047e89262Smrgfi
6541bd1da9d7Smrg
654247e89262Smrg    done
654347e89262Smrg    ac_cv_prog_CPP=$CPP
6544bd1da9d7Smrg
654547e89262Smrgfi
654647e89262Smrg  CPP=$ac_cv_prog_CPP
654747e89262Smrgelse
654847e89262Smrg  ac_cv_prog_CPP=$CPP
654947e89262Smrgfi
655047e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
655147e89262Smrg$as_echo "$CPP" >&6; }
655247e89262Smrgac_preproc_ok=false
655347e89262Smrgfor ac_c_preproc_warn_flag in '' yes
655447e89262Smrgdo
655547e89262Smrg  # Use a header file that comes with gcc, so configuring glibc
655647e89262Smrg  # with a fresh cross-compiler works.
655747e89262Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
655847e89262Smrg  # <limits.h> exists even on freestanding compilers.
655947e89262Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
656047e89262Smrg  # not just through cpp. "Syntax error" is here to catch this case.
656147e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
656247e89262Smrg/* end confdefs.h.  */
656347e89262Smrg#ifdef __STDC__
656447e89262Smrg# include <limits.h>
656547e89262Smrg#else
656647e89262Smrg# include <assert.h>
656747e89262Smrg#endif
656847e89262Smrg		     Syntax error
656947e89262Smrg_ACEOF
657047e89262Smrgif ac_fn_c_try_cpp "$LINENO"; then :
6571bd1da9d7Smrg
657247e89262Smrgelse
657347e89262Smrg  # Broken: fails on valid input.
657447e89262Smrgcontinue
657547e89262Smrgfi
657647e89262Smrgrm -f conftest.err conftest.i conftest.$ac_ext
6577bd1da9d7Smrg
657847e89262Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
657947e89262Smrg  # can be detected and how.
658047e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
658147e89262Smrg/* end confdefs.h.  */
658247e89262Smrg#include <ac_nonexistent.h>
658347e89262Smrg_ACEOF
658447e89262Smrgif ac_fn_c_try_cpp "$LINENO"; then :
658547e89262Smrg  # Broken: success on invalid input.
658647e89262Smrgcontinue
658747e89262Smrgelse
658847e89262Smrg  # Passes both tests.
658947e89262Smrgac_preproc_ok=:
659047e89262Smrgbreak
659147e89262Smrgfi
659247e89262Smrgrm -f conftest.err conftest.i conftest.$ac_ext
6593bd1da9d7Smrg
659447e89262Smrgdone
659547e89262Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
659647e89262Smrgrm -f conftest.i conftest.err conftest.$ac_ext
659747e89262Smrgif $ac_preproc_ok; then :
6598bd1da9d7Smrg
659947e89262Smrgelse
660047e89262Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
660147e89262Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
660247e89262Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
660347e89262SmrgSee \`config.log' for more details" "$LINENO" 5; }
660447e89262Smrgfi
6605bd1da9d7Smrg
660647e89262Smrgac_ext=c
660747e89262Smrgac_cpp='$CPP $CPPFLAGS'
660847e89262Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
660947e89262Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
661047e89262Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
6611bd1da9d7Smrg
6612bd1da9d7Smrg
661347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
661447e89262Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
661547e89262Smrgif ${ac_cv_header_stdc+:} false; then :
661647e89262Smrg  $as_echo_n "(cached) " >&6
661747e89262Smrgelse
661847e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
661947e89262Smrg/* end confdefs.h.  */
662047e89262Smrg#include <stdlib.h>
662147e89262Smrg#include <stdarg.h>
662247e89262Smrg#include <string.h>
662347e89262Smrg#include <float.h>
6624bd1da9d7Smrg
662547e89262Smrgint
662647e89262Smrgmain ()
662747e89262Smrg{
6628bd1da9d7Smrg
662947e89262Smrg  ;
663047e89262Smrg  return 0;
663147e89262Smrg}
663247e89262Smrg_ACEOF
663347e89262Smrgif ac_fn_c_try_compile "$LINENO"; then :
663447e89262Smrg  ac_cv_header_stdc=yes
663547e89262Smrgelse
663647e89262Smrg  ac_cv_header_stdc=no
663747e89262Smrgfi
663847e89262Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639bd1da9d7Smrg
664047e89262Smrgif test $ac_cv_header_stdc = yes; then
664147e89262Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
664247e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
664347e89262Smrg/* end confdefs.h.  */
664447e89262Smrg#include <string.h>
6645bd1da9d7Smrg
664647e89262Smrg_ACEOF
664747e89262Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
664847e89262Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
66495bcb6992Smrg
665047e89262Smrgelse
665147e89262Smrg  ac_cv_header_stdc=no
665247e89262Smrgfi
665347e89262Smrgrm -f conftest*
6654bd1da9d7Smrg
665547e89262Smrgfi
6656bd1da9d7Smrg
665747e89262Smrgif test $ac_cv_header_stdc = yes; then
665847e89262Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
665947e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
666047e89262Smrg/* end confdefs.h.  */
666147e89262Smrg#include <stdlib.h>
6662bd1da9d7Smrg
666347e89262Smrg_ACEOF
666447e89262Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
666547e89262Smrg  $EGREP "free" >/dev/null 2>&1; then :
6666bd1da9d7Smrg
666747e89262Smrgelse
666847e89262Smrg  ac_cv_header_stdc=no
666947e89262Smrgfi
667047e89262Smrgrm -f conftest*
6671bd1da9d7Smrg
667247e89262Smrgfi
6673bd1da9d7Smrg
667447e89262Smrgif test $ac_cv_header_stdc = yes; then
667547e89262Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
667647e89262Smrg  if test "$cross_compiling" = yes; then :
667747e89262Smrg  :
667847e89262Smrgelse
667947e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
668047e89262Smrg/* end confdefs.h.  */
668147e89262Smrg#include <ctype.h>
668247e89262Smrg#include <stdlib.h>
668347e89262Smrg#if ((' ' & 0x0FF) == 0x020)
668447e89262Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
668547e89262Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
668647e89262Smrg#else
668747e89262Smrg# define ISLOWER(c) \
668847e89262Smrg		   (('a' <= (c) && (c) <= 'i') \
668947e89262Smrg		     || ('j' <= (c) && (c) <= 'r') \
669047e89262Smrg		     || ('s' <= (c) && (c) <= 'z'))
669147e89262Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
669247e89262Smrg#endif
6693bd1da9d7Smrg
669447e89262Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
669547e89262Smrgint
669647e89262Smrgmain ()
669747e89262Smrg{
669847e89262Smrg  int i;
669947e89262Smrg  for (i = 0; i < 256; i++)
670047e89262Smrg    if (XOR (islower (i), ISLOWER (i))
670147e89262Smrg	|| toupper (i) != TOUPPER (i))
670247e89262Smrg      return 2;
670347e89262Smrg  return 0;
670447e89262Smrg}
670547e89262Smrg_ACEOF
670647e89262Smrgif ac_fn_c_try_run "$LINENO"; then :
6707bd1da9d7Smrg
670847e89262Smrgelse
670947e89262Smrg  ac_cv_header_stdc=no
671047e89262Smrgfi
671147e89262Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
671247e89262Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
671347e89262Smrgfi
6714bd1da9d7Smrg
671547e89262Smrgfi
671647e89262Smrgfi
671747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
671847e89262Smrg$as_echo "$ac_cv_header_stdc" >&6; }
671947e89262Smrgif test $ac_cv_header_stdc = yes; then
6720bd1da9d7Smrg
672147e89262Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6722bd1da9d7Smrg
672347e89262Smrgfi
6724bd1da9d7Smrg
672547e89262Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
672647e89262Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
672747e89262Smrg		  inttypes.h stdint.h unistd.h
672847e89262Smrgdo :
672947e89262Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
673047e89262Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
673147e89262Smrg"
673247e89262Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
673347e89262Smrg  cat >>confdefs.h <<_ACEOF
673447e89262Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
673547e89262Smrg_ACEOF
6736bd1da9d7Smrg
673747e89262Smrgfi
6738bd1da9d7Smrg
673947e89262Smrgdone
6740bd1da9d7Smrg
6741bd1da9d7Smrg
674247e89262Smrgfor ac_header in dlfcn.h
674347e89262Smrgdo :
674447e89262Smrg  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
674547e89262Smrg"
674647e89262Smrgif test "x$ac_cv_header_dlfcn_h" = xyes; then :
674747e89262Smrg  cat >>confdefs.h <<_ACEOF
674847e89262Smrg#define HAVE_DLFCN_H 1
674947e89262Smrg_ACEOF
6750bd1da9d7Smrg
675147e89262Smrgfi
6752bd1da9d7Smrg
675347e89262Smrgdone
6754bd1da9d7Smrg
6755bd1da9d7Smrg
6756bd1da9d7Smrg
6757bd1da9d7Smrg
6758bd1da9d7Smrg
675947e89262Smrg# Set options
6760bd1da9d7Smrg
6761bd1da9d7Smrg
6762bd1da9d7Smrg
676347e89262Smrg        enable_dlopen=no
6764bd1da9d7Smrg
6765bd1da9d7Smrg
676647e89262Smrg  enable_win32_dll=no
6767bd1da9d7Smrg
6768bd1da9d7Smrg
676947e89262Smrg            # Check whether --enable-shared was given.
677047e89262Smrgif test "${enable_shared+set}" = set; then :
677147e89262Smrg  enableval=$enable_shared; p=${PACKAGE-default}
677247e89262Smrg    case $enableval in
677347e89262Smrg    yes) enable_shared=yes ;;
677447e89262Smrg    no) enable_shared=no ;;
677547e89262Smrg    *)
677647e89262Smrg      enable_shared=no
677747e89262Smrg      # Look at the argument we got.  We use all the common list separators.
677847e89262Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
677947e89262Smrg      for pkg in $enableval; do
678047e89262Smrg	IFS="$lt_save_ifs"
678147e89262Smrg	if test "X$pkg" = "X$p"; then
678247e89262Smrg	  enable_shared=yes
678347e89262Smrg	fi
678447e89262Smrg      done
678547e89262Smrg      IFS="$lt_save_ifs"
678647e89262Smrg      ;;
678747e89262Smrg    esac
678847e89262Smrgelse
678947e89262Smrg  enable_shared=yes
679047e89262Smrgfi
6791bd1da9d7Smrg
6792bd1da9d7Smrg
6793bd1da9d7Smrg
6794bd1da9d7Smrg
6795bd1da9d7Smrg
6796bd1da9d7Smrg
6797bd1da9d7Smrg
6798bd1da9d7Smrg
6799bd1da9d7Smrg
680047e89262Smrg  # Check whether --enable-static was given.
680147e89262Smrgif test "${enable_static+set}" = set; then :
680247e89262Smrg  enableval=$enable_static; p=${PACKAGE-default}
680347e89262Smrg    case $enableval in
680447e89262Smrg    yes) enable_static=yes ;;
680547e89262Smrg    no) enable_static=no ;;
680647e89262Smrg    *)
680747e89262Smrg     enable_static=no
680847e89262Smrg      # Look at the argument we got.  We use all the common list separators.
680947e89262Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
681047e89262Smrg      for pkg in $enableval; do
681147e89262Smrg	IFS="$lt_save_ifs"
681247e89262Smrg	if test "X$pkg" = "X$p"; then
681347e89262Smrg	  enable_static=yes
6814bd1da9d7Smrg	fi
681547e89262Smrg      done
681647e89262Smrg      IFS="$lt_save_ifs"
681747e89262Smrg      ;;
681847e89262Smrg    esac
681947e89262Smrgelse
682047e89262Smrg  enable_static=yes
682147e89262Smrgfi
6822bd1da9d7Smrg
6823bd1da9d7Smrg
6824bd1da9d7Smrg
6825bd1da9d7Smrg
6826bd1da9d7Smrg
6827bd1da9d7Smrg
6828bd1da9d7Smrg
6829bd1da9d7Smrg
6830bd1da9d7Smrg
6831bd1da9d7Smrg
683247e89262Smrg# Check whether --with-pic was given.
683347e89262Smrgif test "${with_pic+set}" = set; then :
683447e89262Smrg  withval=$with_pic; pic_mode="$withval"
683547e89262Smrgelse
683647e89262Smrg  pic_mode=default
683747e89262Smrgfi
6838bd1da9d7Smrg
6839bd1da9d7Smrg
684047e89262Smrgtest -z "$pic_mode" && pic_mode=default
6841bd1da9d7Smrg
6842bd1da9d7Smrg
6843bd1da9d7Smrg
6844bd1da9d7Smrg
6845bd1da9d7Smrg
6846bd1da9d7Smrg
6847bd1da9d7Smrg
684847e89262Smrg  # Check whether --enable-fast-install was given.
684947e89262Smrgif test "${enable_fast_install+set}" = set; then :
685047e89262Smrg  enableval=$enable_fast_install; p=${PACKAGE-default}
685147e89262Smrg    case $enableval in
685247e89262Smrg    yes) enable_fast_install=yes ;;
685347e89262Smrg    no) enable_fast_install=no ;;
685447e89262Smrg    *)
685547e89262Smrg      enable_fast_install=no
685647e89262Smrg      # Look at the argument we got.  We use all the common list separators.
685747e89262Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
685847e89262Smrg      for pkg in $enableval; do
685947e89262Smrg	IFS="$lt_save_ifs"
686047e89262Smrg	if test "X$pkg" = "X$p"; then
686147e89262Smrg	  enable_fast_install=yes
686247e89262Smrg	fi
686347e89262Smrg      done
686447e89262Smrg      IFS="$lt_save_ifs"
686547e89262Smrg      ;;
686647e89262Smrg    esac
686747e89262Smrgelse
686847e89262Smrg  enable_fast_install=yes
686947e89262Smrgfi
6870bd1da9d7Smrg
6871bd1da9d7Smrg
6872bd1da9d7Smrg
6873bd1da9d7Smrg
6874bd1da9d7Smrg
6875bd1da9d7Smrg
6876bd1da9d7Smrg
6877bd1da9d7Smrg
6878bd1da9d7Smrg
6879bd1da9d7Smrg
6880bd1da9d7Smrg
688147e89262Smrg# This can be used to rebuild libtool when needed
688247e89262SmrgLIBTOOL_DEPS="$ltmain"
6883bd1da9d7Smrg
688447e89262Smrg# Always use our own libtool.
688547e89262SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
6886bd1da9d7Smrg
6887bd1da9d7Smrg
6888bd1da9d7Smrg
6889bd1da9d7Smrg
6890bd1da9d7Smrg
6891bd1da9d7Smrg
6892bd1da9d7Smrg
68935bcb6992Smrg
6894bd1da9d7Smrg
6895bd1da9d7Smrg
6896bd1da9d7Smrg
6897bd1da9d7Smrg
6898bd1da9d7Smrg
6899bd1da9d7Smrg
6900bd1da9d7Smrg
6901bd1da9d7Smrg
6902bd1da9d7Smrg
6903bd1da9d7Smrg
6904bd1da9d7Smrg
6905bd1da9d7Smrg
6906bd1da9d7Smrg
6907bd1da9d7Smrg
6908bd1da9d7Smrg
6909bd1da9d7Smrg
6910bd1da9d7Smrg
6911bd1da9d7Smrg
691247e89262Smrgtest -z "$LN_S" && LN_S="ln -s"
6913bd1da9d7Smrg
6914bd1da9d7Smrg
6915bd1da9d7Smrg
6916bd1da9d7Smrg
6917bd1da9d7Smrg
6918bd1da9d7Smrg
6919bd1da9d7Smrg
6920bd1da9d7Smrg
6921bd1da9d7Smrg
6922bd1da9d7Smrg
6923bd1da9d7Smrg
6924bd1da9d7Smrg
6925bd1da9d7Smrg
6926bd1da9d7Smrg
692747e89262Smrgif test -n "${ZSH_VERSION+set}" ; then
692847e89262Smrg   setopt NO_GLOB_SUBST
692947e89262Smrgfi
693047e89262Smrg
693147e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
693247e89262Smrg$as_echo_n "checking for objdir... " >&6; }
693347e89262Smrgif ${lt_cv_objdir+:} false; then :
693447e89262Smrg  $as_echo_n "(cached) " >&6
693547e89262Smrgelse
693647e89262Smrg  rm -f .libs 2>/dev/null
693747e89262Smrgmkdir .libs 2>/dev/null
693847e89262Smrgif test -d .libs; then
693947e89262Smrg  lt_cv_objdir=.libs
694047e89262Smrgelse
694147e89262Smrg  # MS-DOS does not allow filenames that begin with a dot.
694247e89262Smrg  lt_cv_objdir=_libs
694347e89262Smrgfi
694447e89262Smrgrmdir .libs 2>/dev/null
694547e89262Smrgfi
694647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
694747e89262Smrg$as_echo "$lt_cv_objdir" >&6; }
694847e89262Smrgobjdir=$lt_cv_objdir
6949bd1da9d7Smrg
6950bd1da9d7Smrg
6951bd1da9d7Smrg
6952bd1da9d7Smrg
6953bd1da9d7Smrg
695447e89262Smrgcat >>confdefs.h <<_ACEOF
695547e89262Smrg#define LT_OBJDIR "$lt_cv_objdir/"
695647e89262Smrg_ACEOF
6957bd1da9d7Smrg
6958bd1da9d7Smrg
6959bd1da9d7Smrg
6960bd1da9d7Smrg
696147e89262Smrgcase $host_os in
696247e89262Smrgaix3*)
696347e89262Smrg  # AIX sometimes has problems with the GCC collect2 program.  For some
696447e89262Smrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
696547e89262Smrg  # vanish in a puff of smoke.
696647e89262Smrg  if test "X${COLLECT_NAMES+set}" != Xset; then
696747e89262Smrg    COLLECT_NAMES=
696847e89262Smrg    export COLLECT_NAMES
696947e89262Smrg  fi
697047e89262Smrg  ;;
697147e89262Smrgesac
6972bd1da9d7Smrg
697347e89262Smrg# Global variables:
697447e89262Smrgofile=libtool
697547e89262Smrgcan_build_shared=yes
6976bd1da9d7Smrg
697747e89262Smrg# All known linkers require a `.a' archive for static linking (except MSVC,
697847e89262Smrg# which needs '.lib').
697947e89262Smrglibext=a
698047e89262Smrg
698147e89262Smrgwith_gnu_ld="$lt_cv_prog_gnu_ld"
698247e89262Smrg
698347e89262Smrgold_CC="$CC"
698447e89262Smrgold_CFLAGS="$CFLAGS"
698547e89262Smrg
698647e89262Smrg# Set sane defaults for various variables
698747e89262Smrgtest -z "$CC" && CC=cc
698847e89262Smrgtest -z "$LTCC" && LTCC=$CC
698947e89262Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
699047e89262Smrgtest -z "$LD" && LD=ld
699147e89262Smrgtest -z "$ac_objext" && ac_objext=o
699247e89262Smrg
699347e89262Smrgfor cc_temp in $compiler""; do
699447e89262Smrg  case $cc_temp in
699547e89262Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
699647e89262Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
699747e89262Smrg    \-*) ;;
699847e89262Smrg    *) break;;
699947e89262Smrg  esac
700047e89262Smrgdone
700147e89262Smrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
700247e89262Smrg
700347e89262Smrg
700447e89262Smrg# Only perform the check for file, if the check method requires it
700547e89262Smrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
700647e89262Smrgcase $deplibs_check_method in
700747e89262Smrgfile_magic*)
700847e89262Smrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
700947e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
701047e89262Smrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
701147e89262Smrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
701247e89262Smrg  $as_echo_n "(cached) " >&6
701347e89262Smrgelse
701447e89262Smrg  case $MAGIC_CMD in
701547e89262Smrg[\\/*] |  ?:[\\/]*)
701647e89262Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
701747e89262Smrg  ;;
701847e89262Smrg*)
701947e89262Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
702047e89262Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
702147e89262Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
702247e89262Smrg  for ac_dir in $ac_dummy; do
702347e89262Smrg    IFS="$lt_save_ifs"
702447e89262Smrg    test -z "$ac_dir" && ac_dir=.
702547e89262Smrg    if test -f $ac_dir/${ac_tool_prefix}file; then
702647e89262Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
702747e89262Smrg      if test -n "$file_magic_test_file"; then
702847e89262Smrg	case $deplibs_check_method in
702947e89262Smrg	"file_magic "*)
703047e89262Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
703147e89262Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
703247e89262Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
703347e89262Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
703447e89262Smrg	    :
7035bd1da9d7Smrg	  else
703647e89262Smrg	    cat <<_LT_EOF 1>&2
7037bd1da9d7Smrg
703847e89262Smrg*** Warning: the command libtool uses to detect shared libraries,
703947e89262Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
704047e89262Smrg*** The result is that libtool may fail to recognize shared libraries
704147e89262Smrg*** as such.  This will affect the creation of libtool libraries that
704247e89262Smrg*** depend on shared libraries, but programs linked with such libtool
704347e89262Smrg*** libraries will work regardless of this problem.  Nevertheless, you
704447e89262Smrg*** may want to report the problem to your system manager and/or to
704547e89262Smrg*** bug-libtool@gnu.org
7046bd1da9d7Smrg
704747e89262Smrg_LT_EOF
704847e89262Smrg	  fi ;;
704947e89262Smrg	esac
7050bd1da9d7Smrg      fi
705147e89262Smrg      break
7052bd1da9d7Smrg    fi
705347e89262Smrg  done
705447e89262Smrg  IFS="$lt_save_ifs"
705547e89262Smrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
705647e89262Smrg  ;;
705747e89262Smrgesac
705847e89262Smrgfi
7059bd1da9d7Smrg
706047e89262SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
706147e89262Smrgif test -n "$MAGIC_CMD"; then
706247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
706347e89262Smrg$as_echo "$MAGIC_CMD" >&6; }
706447e89262Smrgelse
706547e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
706647e89262Smrg$as_echo "no" >&6; }
706747e89262Smrgfi
7068bd1da9d7Smrg
7069bd1da9d7Smrg
7070bd1da9d7Smrg
7071bd1da9d7Smrg
7072bd1da9d7Smrg
707347e89262Smrgif test -z "$lt_cv_path_MAGIC_CMD"; then
707447e89262Smrg  if test -n "$ac_tool_prefix"; then
707547e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
707647e89262Smrg$as_echo_n "checking for file... " >&6; }
707747e89262Smrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
707847e89262Smrg  $as_echo_n "(cached) " >&6
707947e89262Smrgelse
708047e89262Smrg  case $MAGIC_CMD in
708147e89262Smrg[\\/*] |  ?:[\\/]*)
708247e89262Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
708347e89262Smrg  ;;
708447e89262Smrg*)
708547e89262Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
708647e89262Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
708747e89262Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
708847e89262Smrg  for ac_dir in $ac_dummy; do
708947e89262Smrg    IFS="$lt_save_ifs"
709047e89262Smrg    test -z "$ac_dir" && ac_dir=.
709147e89262Smrg    if test -f $ac_dir/file; then
709247e89262Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/file"
709347e89262Smrg      if test -n "$file_magic_test_file"; then
709447e89262Smrg	case $deplibs_check_method in
709547e89262Smrg	"file_magic "*)
709647e89262Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
709747e89262Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
709847e89262Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
709947e89262Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
710047e89262Smrg	    :
7101bd1da9d7Smrg	  else
710247e89262Smrg	    cat <<_LT_EOF 1>&2
7103bd1da9d7Smrg
710447e89262Smrg*** Warning: the command libtool uses to detect shared libraries,
710547e89262Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
710647e89262Smrg*** The result is that libtool may fail to recognize shared libraries
710747e89262Smrg*** as such.  This will affect the creation of libtool libraries that
710847e89262Smrg*** depend on shared libraries, but programs linked with such libtool
710947e89262Smrg*** libraries will work regardless of this problem.  Nevertheless, you
711047e89262Smrg*** may want to report the problem to your system manager and/or to
711147e89262Smrg*** bug-libtool@gnu.org
7112bd1da9d7Smrg
711347e89262Smrg_LT_EOF
711447e89262Smrg	  fi ;;
711547e89262Smrg	esac
711647e89262Smrg      fi
711747e89262Smrg      break
711847e89262Smrg    fi
711947e89262Smrg  done
712047e89262Smrg  IFS="$lt_save_ifs"
712147e89262Smrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
712247e89262Smrg  ;;
7123bd1da9d7Smrgesac
71245bcb6992Smrgfi
712547e89262Smrg
712647e89262SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
712747e89262Smrgif test -n "$MAGIC_CMD"; then
712847e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
712947e89262Smrg$as_echo "$MAGIC_CMD" >&6; }
7130bd1da9d7Smrgelse
713147e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
713247e89262Smrg$as_echo "no" >&6; }
713347e89262Smrgfi
7134bd1da9d7Smrg
7135bd1da9d7Smrg
713647e89262Smrg  else
713747e89262Smrg    MAGIC_CMD=:
713847e89262Smrg  fi
7139bd1da9d7Smrgfi
7140bd1da9d7Smrg
714147e89262Smrg  fi
714247e89262Smrg  ;;
714347e89262Smrgesac
7144bd1da9d7Smrg
714547e89262Smrg# Use C for the default configuration in the libtool script
7146bd1da9d7Smrg
714747e89262Smrglt_save_CC="$CC"
714847e89262Smrgac_ext=c
714947e89262Smrgac_cpp='$CPP $CPPFLAGS'
715047e89262Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
715147e89262Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
715247e89262Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
71535bcb6992Smrg
7154bd1da9d7Smrg
715547e89262Smrg# Source file extension for C test sources.
715647e89262Smrgac_ext=c
7157bd1da9d7Smrg
715847e89262Smrg# Object file extension for compiled C test sources.
715947e89262Smrgobjext=o
716047e89262Smrgobjext=$objext
7161bd1da9d7Smrg
716247e89262Smrg# Code to be used in simple compile tests
716347e89262Smrglt_simple_compile_test_code="int some_variable = 0;"
7164bd1da9d7Smrg
716547e89262Smrg# Code to be used in simple link tests
716647e89262Smrglt_simple_link_test_code='int main(){return(0);}'
7167bd1da9d7Smrg
7168bd1da9d7Smrg
7169bd1da9d7Smrg
7170bd1da9d7Smrg
7171bd1da9d7Smrg
7172bd1da9d7Smrg
7173bd1da9d7Smrg
717447e89262Smrg# If no C compiler was specified, use CC.
717547e89262SmrgLTCC=${LTCC-"$CC"}
7176bd1da9d7Smrg
717747e89262Smrg# If no C compiler flags were specified, use CFLAGS.
717847e89262SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7179bd1da9d7Smrg
718047e89262Smrg# Allow CC to be a program name with arguments.
718147e89262Smrgcompiler=$CC
7182bd1da9d7Smrg
718347e89262Smrg# Save the default compiler, since it gets overwritten when the other
718447e89262Smrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
718547e89262Smrgcompiler_DEFAULT=$CC
7186bd1da9d7Smrg
718747e89262Smrg# save warnings/boilerplate of simple test code
718847e89262Smrgac_outfile=conftest.$ac_objext
718947e89262Smrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
719047e89262Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
719147e89262Smrg_lt_compiler_boilerplate=`cat conftest.err`
719247e89262Smrg$RM conftest*
7193bd1da9d7Smrg
719447e89262Smrgac_outfile=conftest.$ac_objext
719547e89262Smrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
719647e89262Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
719747e89262Smrg_lt_linker_boilerplate=`cat conftest.err`
719847e89262Smrg$RM -r conftest*
7199bd1da9d7Smrg
7200bd1da9d7Smrg
720147e89262Smrgif test -n "$compiler"; then
7202bd1da9d7Smrg
720347e89262Smrglt_prog_compiler_no_builtin_flag=
7204bd1da9d7Smrg
720547e89262Smrgif test "$GCC" = yes; then
720647e89262Smrg  case $cc_basename in
720747e89262Smrg  nvcc*)
720847e89262Smrg    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
720947e89262Smrg  *)
721047e89262Smrg    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
721147e89262Smrg  esac
7212bd1da9d7Smrg
721347e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
721447e89262Smrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
721547e89262Smrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
721647e89262Smrg  $as_echo_n "(cached) " >&6
721747e89262Smrgelse
721847e89262Smrg  lt_cv_prog_compiler_rtti_exceptions=no
721947e89262Smrg   ac_outfile=conftest.$ac_objext
722047e89262Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
722147e89262Smrg   lt_compiler_flag="-fno-rtti -fno-exceptions"
722247e89262Smrg   # Insert the option either (1) after the last *FLAGS variable, or
722347e89262Smrg   # (2) before a word containing "conftest.", or (3) at the end.
722447e89262Smrg   # Note that $ac_compile itself does not contain backslashes and begins
722547e89262Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
722647e89262Smrg   # The option is referenced via a variable to avoid confusing sed.
722747e89262Smrg   lt_compile=`echo "$ac_compile" | $SED \
722847e89262Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
722947e89262Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
723047e89262Smrg   -e 's:$: $lt_compiler_flag:'`
723147e89262Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
723247e89262Smrg   (eval "$lt_compile" 2>conftest.err)
723347e89262Smrg   ac_status=$?
723447e89262Smrg   cat conftest.err >&5
723547e89262Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
723647e89262Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
723747e89262Smrg     # The compiler can only warn and ignore the option if not recognized
723847e89262Smrg     # So say no if there are warnings other than the usual output.
723947e89262Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
724047e89262Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
724147e89262Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
724247e89262Smrg       lt_cv_prog_compiler_rtti_exceptions=yes
724347e89262Smrg     fi
724447e89262Smrg   fi
724547e89262Smrg   $RM conftest*
7246bd1da9d7Smrg
724747e89262Smrgfi
724847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
724947e89262Smrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7250bd1da9d7Smrg
725147e89262Smrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
725247e89262Smrg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
725347e89262Smrgelse
725447e89262Smrg    :
725547e89262Smrgfi
7256bd1da9d7Smrg
725747e89262Smrgfi
7258bd1da9d7Smrg
7259bd1da9d7Smrg
7260bd1da9d7Smrg
7261bd1da9d7Smrg
7262bd1da9d7Smrg
7263bd1da9d7Smrg
726447e89262Smrg  lt_prog_compiler_wl=
726547e89262Smrglt_prog_compiler_pic=
726647e89262Smrglt_prog_compiler_static=
7267bd1da9d7Smrg
726847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
726947e89262Smrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
727047e89262Smrg
727147e89262Smrg  if test "$GCC" = yes; then
727247e89262Smrg    lt_prog_compiler_wl='-Wl,'
727347e89262Smrg    lt_prog_compiler_static='-static'
727447e89262Smrg
727547e89262Smrg    case $host_os in
727647e89262Smrg      aix*)
727747e89262Smrg      # All AIX code is PIC.
727847e89262Smrg      if test "$host_cpu" = ia64; then
727947e89262Smrg	# AIX 5 now supports IA64 processor
728047e89262Smrg	lt_prog_compiler_static='-Bstatic'
7281bd1da9d7Smrg      fi
7282bd1da9d7Smrg      ;;
7283bd1da9d7Smrg
728447e89262Smrg    amigaos*)
728547e89262Smrg      case $host_cpu in
728647e89262Smrg      powerpc)
728747e89262Smrg            # see comment about AmigaOS4 .so support
728847e89262Smrg            lt_prog_compiler_pic='-fPIC'
728947e89262Smrg        ;;
729047e89262Smrg      m68k)
729147e89262Smrg            # FIXME: we need at least 68020 code to build shared libraries, but
729247e89262Smrg            # adding the `-m68020' flag to GCC prevents building anything better,
729347e89262Smrg            # like `-m68040'.
729447e89262Smrg            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7295bd1da9d7Smrg        ;;
7296bd1da9d7Smrg      esac
7297bd1da9d7Smrg      ;;
7298bd1da9d7Smrg
729947e89262Smrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
730047e89262Smrg      # PIC is the default for these OSes.
7301bd1da9d7Smrg      ;;
7302bd1da9d7Smrg
730347e89262Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
730447e89262Smrg      # This hack is so that the source file can tell whether it is being
730547e89262Smrg      # built for inclusion in a dll (and should export symbols for example).
730647e89262Smrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
730747e89262Smrg      # (--disable-auto-import) libraries
730847e89262Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
7309bd1da9d7Smrg      ;;
7310bd1da9d7Smrg
731147e89262Smrg    darwin* | rhapsody*)
731247e89262Smrg      # PIC is the default on this platform
731347e89262Smrg      # Common symbols not allowed in MH_DYLIB files
731447e89262Smrg      lt_prog_compiler_pic='-fno-common'
7315bd1da9d7Smrg      ;;
7316bd1da9d7Smrg
731747e89262Smrg    haiku*)
731847e89262Smrg      # PIC is the default for Haiku.
731947e89262Smrg      # The "-static" flag exists, but is broken.
732047e89262Smrg      lt_prog_compiler_static=
7321bd1da9d7Smrg      ;;
7322bd1da9d7Smrg
732347e89262Smrg    hpux*)
732447e89262Smrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
732547e89262Smrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
732647e89262Smrg      # sets the default TLS model and affects inlining.
732747e89262Smrg      case $host_cpu in
732847e89262Smrg      hppa*64*)
732947e89262Smrg	# +Z the default
733047e89262Smrg	;;
733147e89262Smrg      *)
733247e89262Smrg	lt_prog_compiler_pic='-fPIC'
733347e89262Smrg	;;
733447e89262Smrg      esac
7335bd1da9d7Smrg      ;;
7336bd1da9d7Smrg
733747e89262Smrg    interix[3-9]*)
733847e89262Smrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
733947e89262Smrg      # Instead, we relocate shared libraries at runtime.
7340bd1da9d7Smrg      ;;
7341bd1da9d7Smrg
734247e89262Smrg    msdosdjgpp*)
734347e89262Smrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
734447e89262Smrg      # on systems that don't support them.
734547e89262Smrg      lt_prog_compiler_can_build_shared=no
734647e89262Smrg      enable_shared=no
734747e89262Smrg      ;;
7348bd1da9d7Smrg
734947e89262Smrg    *nto* | *qnx*)
735047e89262Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
735147e89262Smrg      # it will coredump.
735247e89262Smrg      lt_prog_compiler_pic='-fPIC -shared'
7353bd1da9d7Smrg      ;;
7354bd1da9d7Smrg
735547e89262Smrg    sysv4*MP*)
735647e89262Smrg      if test -d /usr/nec; then
735747e89262Smrg	lt_prog_compiler_pic=-Kconform_pic
7358bd1da9d7Smrg      fi
7359bd1da9d7Smrg      ;;
7360bd1da9d7Smrg
736147e89262Smrg    *)
736247e89262Smrg      lt_prog_compiler_pic='-fPIC'
7363bd1da9d7Smrg      ;;
7364bd1da9d7Smrg    esac
736547e89262Smrg
736647e89262Smrg    case $cc_basename in
736747e89262Smrg    nvcc*) # Cuda Compiler Driver 2.2
736847e89262Smrg      lt_prog_compiler_wl='-Xlinker '
736947e89262Smrg      lt_prog_compiler_pic='-Xcompiler -fPIC'
7370bd1da9d7Smrg      ;;
737147e89262Smrg    esac
737247e89262Smrg  else
737347e89262Smrg    # PORTME Check for flag to pass linker flags through the system compiler.
737447e89262Smrg    case $host_os in
737547e89262Smrg    aix*)
737647e89262Smrg      lt_prog_compiler_wl='-Wl,'
737747e89262Smrg      if test "$host_cpu" = ia64; then
737847e89262Smrg	# AIX 5 now supports IA64 processor
737947e89262Smrg	lt_prog_compiler_static='-Bstatic'
7380bd1da9d7Smrg      else
738147e89262Smrg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7382bd1da9d7Smrg      fi
7383bd1da9d7Smrg      ;;
738447e89262Smrg
738547e89262Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
738647e89262Smrg      # This hack is so that the source file can tell whether it is being
738747e89262Smrg      # built for inclusion in a dll (and should export symbols for example).
738847e89262Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
7389bd1da9d7Smrg      ;;
7390bd1da9d7Smrg
739147e89262Smrg    hpux9* | hpux10* | hpux11*)
739247e89262Smrg      lt_prog_compiler_wl='-Wl,'
739347e89262Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
739447e89262Smrg      # not for PA HP-UX.
739547e89262Smrg      case $host_cpu in
739647e89262Smrg      hppa*64*|ia64*)
739747e89262Smrg	# +Z the default
739847e89262Smrg	;;
739947e89262Smrg      *)
740047e89262Smrg	lt_prog_compiler_pic='+Z'
740147e89262Smrg	;;
740247e89262Smrg      esac
740347e89262Smrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
740447e89262Smrg      lt_prog_compiler_static='${wl}-a ${wl}archive'
740547e89262Smrg      ;;
7406bd1da9d7Smrg
740747e89262Smrg    irix5* | irix6* | nonstopux*)
740847e89262Smrg      lt_prog_compiler_wl='-Wl,'
740947e89262Smrg      # PIC (with -KPIC) is the default.
741047e89262Smrg      lt_prog_compiler_static='-non_shared'
741147e89262Smrg      ;;
74125bcb6992Smrg
741347e89262Smrg    linux* | k*bsd*-gnu | kopensolaris*-gnu)
741447e89262Smrg      case $cc_basename in
741547e89262Smrg      # old Intel for x86_64 which still supported -KPIC.
741647e89262Smrg      ecc*)
741747e89262Smrg	lt_prog_compiler_wl='-Wl,'
741847e89262Smrg	lt_prog_compiler_pic='-KPIC'
741947e89262Smrg	lt_prog_compiler_static='-static'
742047e89262Smrg        ;;
742147e89262Smrg      # icc used to be incompatible with GCC.
742247e89262Smrg      # ICC 10 doesn't accept -KPIC any more.
742347e89262Smrg      icc* | ifort*)
742447e89262Smrg	lt_prog_compiler_wl='-Wl,'
742547e89262Smrg	lt_prog_compiler_pic='-fPIC'
742647e89262Smrg	lt_prog_compiler_static='-static'
742747e89262Smrg        ;;
742847e89262Smrg      # Lahey Fortran 8.1.
742947e89262Smrg      lf95*)
743047e89262Smrg	lt_prog_compiler_wl='-Wl,'
743147e89262Smrg	lt_prog_compiler_pic='--shared'
743247e89262Smrg	lt_prog_compiler_static='--static'
743347e89262Smrg	;;
743447e89262Smrg      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
743547e89262Smrg        # Portland Group compilers (*not* the Pentium gcc compiler,
743647e89262Smrg	# which looks to be a dead project)
743747e89262Smrg	lt_prog_compiler_wl='-Wl,'
743847e89262Smrg	lt_prog_compiler_pic='-fpic'
743947e89262Smrg	lt_prog_compiler_static='-Bstatic'
744047e89262Smrg        ;;
744147e89262Smrg      ccc*)
744247e89262Smrg        lt_prog_compiler_wl='-Wl,'
744347e89262Smrg        # All Alpha code is PIC.
744447e89262Smrg        lt_prog_compiler_static='-non_shared'
744547e89262Smrg        ;;
744647e89262Smrg      xl* | bgxl* | bgf* | mpixl*)
744747e89262Smrg	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
744847e89262Smrg	lt_prog_compiler_wl='-Wl,'
744947e89262Smrg	lt_prog_compiler_pic='-qpic'
745047e89262Smrg	lt_prog_compiler_static='-qstaticlink'
745147e89262Smrg	;;
745247e89262Smrg      *)
745347e89262Smrg	case `$CC -V 2>&1 | sed 5q` in
745447e89262Smrg	*Sun\ F* | *Sun*Fortran*)
745547e89262Smrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
745647e89262Smrg	  lt_prog_compiler_pic='-KPIC'
745747e89262Smrg	  lt_prog_compiler_static='-Bstatic'
745847e89262Smrg	  lt_prog_compiler_wl=''
745947e89262Smrg	  ;;
746047e89262Smrg	*Sun\ C*)
746147e89262Smrg	  # Sun C 5.9
746247e89262Smrg	  lt_prog_compiler_pic='-KPIC'
746347e89262Smrg	  lt_prog_compiler_static='-Bstatic'
746447e89262Smrg	  lt_prog_compiler_wl='-Wl,'
746547e89262Smrg	  ;;
746647e89262Smrg	esac
746747e89262Smrg	;;
746847e89262Smrg      esac
746947e89262Smrg      ;;
7470bd1da9d7Smrg
747147e89262Smrg    newsos6)
747247e89262Smrg      lt_prog_compiler_pic='-KPIC'
747347e89262Smrg      lt_prog_compiler_static='-Bstatic'
747447e89262Smrg      ;;
7475bd1da9d7Smrg
747647e89262Smrg    *nto* | *qnx*)
747747e89262Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
747847e89262Smrg      # it will coredump.
747947e89262Smrg      lt_prog_compiler_pic='-fPIC -shared'
748047e89262Smrg      ;;
7481bd1da9d7Smrg
748247e89262Smrg    osf3* | osf4* | osf5*)
748347e89262Smrg      lt_prog_compiler_wl='-Wl,'
748447e89262Smrg      # All OSF/1 code is PIC.
748547e89262Smrg      lt_prog_compiler_static='-non_shared'
7486bd1da9d7Smrg      ;;
748747e89262Smrg
748847e89262Smrg    rdos*)
748947e89262Smrg      lt_prog_compiler_static='-non_shared'
7490bd1da9d7Smrg      ;;
7491bd1da9d7Smrg
749247e89262Smrg    solaris*)
749347e89262Smrg      lt_prog_compiler_pic='-KPIC'
749447e89262Smrg      lt_prog_compiler_static='-Bstatic'
749547e89262Smrg      case $cc_basename in
749647e89262Smrg      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
749747e89262Smrg	lt_prog_compiler_wl='-Qoption ld ';;
749847e89262Smrg      *)
749947e89262Smrg	lt_prog_compiler_wl='-Wl,';;
750047e89262Smrg      esac
750147e89262Smrg      ;;
7502bd1da9d7Smrg
750347e89262Smrg    sunos4*)
750447e89262Smrg      lt_prog_compiler_wl='-Qoption ld '
750547e89262Smrg      lt_prog_compiler_pic='-PIC'
750647e89262Smrg      lt_prog_compiler_static='-Bstatic'
750747e89262Smrg      ;;
7508bd1da9d7Smrg
750947e89262Smrg    sysv4 | sysv4.2uw2* | sysv4.3*)
751047e89262Smrg      lt_prog_compiler_wl='-Wl,'
751147e89262Smrg      lt_prog_compiler_pic='-KPIC'
751247e89262Smrg      lt_prog_compiler_static='-Bstatic'
751347e89262Smrg      ;;
751447e89262Smrg
751547e89262Smrg    sysv4*MP*)
751647e89262Smrg      if test -d /usr/nec ;then
751747e89262Smrg	lt_prog_compiler_pic='-Kconform_pic'
751847e89262Smrg	lt_prog_compiler_static='-Bstatic'
751947e89262Smrg      fi
752047e89262Smrg      ;;
752147e89262Smrg
752247e89262Smrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
752347e89262Smrg      lt_prog_compiler_wl='-Wl,'
752447e89262Smrg      lt_prog_compiler_pic='-KPIC'
752547e89262Smrg      lt_prog_compiler_static='-Bstatic'
752647e89262Smrg      ;;
752747e89262Smrg
752847e89262Smrg    unicos*)
752947e89262Smrg      lt_prog_compiler_wl='-Wl,'
753047e89262Smrg      lt_prog_compiler_can_build_shared=no
753147e89262Smrg      ;;
753247e89262Smrg
753347e89262Smrg    uts4*)
753447e89262Smrg      lt_prog_compiler_pic='-pic'
753547e89262Smrg      lt_prog_compiler_static='-Bstatic'
753647e89262Smrg      ;;
7537bd1da9d7Smrg
7538bd1da9d7Smrg    *)
753947e89262Smrg      lt_prog_compiler_can_build_shared=no
754047e89262Smrg      ;;
754147e89262Smrg    esac
754247e89262Smrg  fi
754347e89262Smrg
754447e89262Smrgcase $host_os in
754547e89262Smrg  # For platforms which do not support PIC, -DPIC is meaningless:
754647e89262Smrg  *djgpp*)
754747e89262Smrg    lt_prog_compiler_pic=
7548bd1da9d7Smrg    ;;
7549bd1da9d7Smrg  *)
755047e89262Smrg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7551bd1da9d7Smrg    ;;
755247e89262Smrgesac
755347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
755447e89262Smrg$as_echo "$lt_prog_compiler_pic" >&6; }
7555bd1da9d7Smrg
7556bd1da9d7Smrg
7557bd1da9d7Smrg
7558bd1da9d7Smrg
7559bd1da9d7Smrg
7560bd1da9d7Smrg
756147e89262Smrg#
756247e89262Smrg# Check to make sure the PIC flag actually works.
756347e89262Smrg#
756447e89262Smrgif test -n "$lt_prog_compiler_pic"; then
756547e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
756647e89262Smrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
756747e89262Smrgif ${lt_cv_prog_compiler_pic_works+:} false; then :
756847e89262Smrg  $as_echo_n "(cached) " >&6
756947e89262Smrgelse
757047e89262Smrg  lt_cv_prog_compiler_pic_works=no
757147e89262Smrg   ac_outfile=conftest.$ac_objext
757247e89262Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
757347e89262Smrg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
757447e89262Smrg   # Insert the option either (1) after the last *FLAGS variable, or
757547e89262Smrg   # (2) before a word containing "conftest.", or (3) at the end.
757647e89262Smrg   # Note that $ac_compile itself does not contain backslashes and begins
757747e89262Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
757847e89262Smrg   # The option is referenced via a variable to avoid confusing sed.
757947e89262Smrg   lt_compile=`echo "$ac_compile" | $SED \
758047e89262Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
758147e89262Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
758247e89262Smrg   -e 's:$: $lt_compiler_flag:'`
758347e89262Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
758447e89262Smrg   (eval "$lt_compile" 2>conftest.err)
758547e89262Smrg   ac_status=$?
758647e89262Smrg   cat conftest.err >&5
758747e89262Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
758847e89262Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
758947e89262Smrg     # The compiler can only warn and ignore the option if not recognized
759047e89262Smrg     # So say no if there are warnings other than the usual output.
759147e89262Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
759247e89262Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
759347e89262Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
759447e89262Smrg       lt_cv_prog_compiler_pic_works=yes
759547e89262Smrg     fi
759647e89262Smrg   fi
759747e89262Smrg   $RM conftest*
7598bd1da9d7Smrg
759947e89262Smrgfi
760047e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
760147e89262Smrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7602bd1da9d7Smrg
760347e89262Smrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
760447e89262Smrg    case $lt_prog_compiler_pic in
760547e89262Smrg     "" | " "*) ;;
760647e89262Smrg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
760747e89262Smrg     esac
760847e89262Smrgelse
760947e89262Smrg    lt_prog_compiler_pic=
761047e89262Smrg     lt_prog_compiler_can_build_shared=no
761147e89262Smrgfi
7612bd1da9d7Smrg
761347e89262Smrgfi
7614bd1da9d7Smrg
7615bd1da9d7Smrg
76165bcb6992Smrg
7617bd1da9d7Smrg
7618bd1da9d7Smrg
7619bd1da9d7Smrg
762047e89262Smrg#
762147e89262Smrg# Check to make sure the static flag actually works.
762247e89262Smrg#
762347e89262Smrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
762447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
762547e89262Smrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
762647e89262Smrgif ${lt_cv_prog_compiler_static_works+:} false; then :
762747e89262Smrg  $as_echo_n "(cached) " >&6
762847e89262Smrgelse
762947e89262Smrg  lt_cv_prog_compiler_static_works=no
763047e89262Smrg   save_LDFLAGS="$LDFLAGS"
763147e89262Smrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
763247e89262Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
763347e89262Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
763447e89262Smrg     # The linker can only warn and ignore the option if not recognized
763547e89262Smrg     # So say no if there are warnings
763647e89262Smrg     if test -s conftest.err; then
763747e89262Smrg       # Append any errors to the config.log.
763847e89262Smrg       cat conftest.err 1>&5
763947e89262Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
764047e89262Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
764147e89262Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
764247e89262Smrg         lt_cv_prog_compiler_static_works=yes
764347e89262Smrg       fi
764447e89262Smrg     else
764547e89262Smrg       lt_cv_prog_compiler_static_works=yes
764647e89262Smrg     fi
764747e89262Smrg   fi
764847e89262Smrg   $RM -r conftest*
764947e89262Smrg   LDFLAGS="$save_LDFLAGS"
765047e89262Smrg
765147e89262Smrgfi
765247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
765347e89262Smrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7654bd1da9d7Smrg
765547e89262Smrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then
765647e89262Smrg    :
765747e89262Smrgelse
765847e89262Smrg    lt_prog_compiler_static=
765947e89262Smrgfi
7660bd1da9d7Smrg
7661bd1da9d7Smrg
7662bd1da9d7Smrg
766347e89262Smrg
766447e89262Smrg
766547e89262Smrg
766647e89262Smrg
766747e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
766847e89262Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
766947e89262Smrgif ${lt_cv_prog_compiler_c_o+:} false; then :
76705bcb6992Smrg  $as_echo_n "(cached) " >&6
76715bcb6992Smrgelse
767247e89262Smrg  lt_cv_prog_compiler_c_o=no
767347e89262Smrg   $RM -r conftest 2>/dev/null
767447e89262Smrg   mkdir conftest
767547e89262Smrg   cd conftest
767647e89262Smrg   mkdir out
767747e89262Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
767847e89262Smrg
767947e89262Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
768047e89262Smrg   # Insert the option either (1) after the last *FLAGS variable, or
768147e89262Smrg   # (2) before a word containing "conftest.", or (3) at the end.
768247e89262Smrg   # Note that $ac_compile itself does not contain backslashes and begins
768347e89262Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
768447e89262Smrg   lt_compile=`echo "$ac_compile" | $SED \
768547e89262Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
768647e89262Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
768747e89262Smrg   -e 's:$: $lt_compiler_flag:'`
768847e89262Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
768947e89262Smrg   (eval "$lt_compile" 2>out/conftest.err)
769047e89262Smrg   ac_status=$?
769147e89262Smrg   cat out/conftest.err >&5
769247e89262Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
769347e89262Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
769447e89262Smrg   then
769547e89262Smrg     # The compiler can only warn and ignore the option if not recognized
769647e89262Smrg     # So say no if there are warnings
769747e89262Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
769847e89262Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
769947e89262Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
770047e89262Smrg       lt_cv_prog_compiler_c_o=yes
770147e89262Smrg     fi
770247e89262Smrg   fi
770347e89262Smrg   chmod u+w . 2>&5
770447e89262Smrg   $RM conftest*
770547e89262Smrg   # SGI C++ compiler will create directory out/ii_files/ for
770647e89262Smrg   # template instantiation
770747e89262Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
770847e89262Smrg   $RM out/* && rmdir out
770947e89262Smrg   cd ..
771047e89262Smrg   $RM -r conftest
771147e89262Smrg   $RM conftest*
771247e89262Smrg
77135bcb6992Smrgfi
771447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
771547e89262Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
77165bcb6992Smrg
771747e89262Smrg
771847e89262Smrg
771947e89262Smrg
772047e89262Smrg
772147e89262Smrg
772247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
772347e89262Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
772447e89262Smrgif ${lt_cv_prog_compiler_c_o+:} false; then :
77255bcb6992Smrg  $as_echo_n "(cached) " >&6
77265bcb6992Smrgelse
772747e89262Smrg  lt_cv_prog_compiler_c_o=no
772847e89262Smrg   $RM -r conftest 2>/dev/null
772947e89262Smrg   mkdir conftest
773047e89262Smrg   cd conftest
773147e89262Smrg   mkdir out
773247e89262Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
77335bcb6992Smrg
773447e89262Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
773547e89262Smrg   # Insert the option either (1) after the last *FLAGS variable, or
773647e89262Smrg   # (2) before a word containing "conftest.", or (3) at the end.
773747e89262Smrg   # Note that $ac_compile itself does not contain backslashes and begins
773847e89262Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
773947e89262Smrg   lt_compile=`echo "$ac_compile" | $SED \
774047e89262Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
774147e89262Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
774247e89262Smrg   -e 's:$: $lt_compiler_flag:'`
774347e89262Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
774447e89262Smrg   (eval "$lt_compile" 2>out/conftest.err)
774547e89262Smrg   ac_status=$?
774647e89262Smrg   cat out/conftest.err >&5
774747e89262Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
774847e89262Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
774947e89262Smrg   then
775047e89262Smrg     # The compiler can only warn and ignore the option if not recognized
775147e89262Smrg     # So say no if there are warnings
775247e89262Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
775347e89262Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
775447e89262Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
775547e89262Smrg       lt_cv_prog_compiler_c_o=yes
775647e89262Smrg     fi
775747e89262Smrg   fi
775847e89262Smrg   chmod u+w . 2>&5
775947e89262Smrg   $RM conftest*
776047e89262Smrg   # SGI C++ compiler will create directory out/ii_files/ for
776147e89262Smrg   # template instantiation
776247e89262Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
776347e89262Smrg   $RM out/* && rmdir out
776447e89262Smrg   cd ..
776547e89262Smrg   $RM -r conftest
776647e89262Smrg   $RM conftest*
77675bcb6992Smrg
7768bd1da9d7Smrgfi
776947e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
777047e89262Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7771bd1da9d7Smrg
7772bd1da9d7Smrg
777347e89262Smrg
777447e89262Smrg
777547e89262Smrghard_links="nottested"
777647e89262Smrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
777747e89262Smrg  # do not overwrite the value of need_locks provided by the user
777847e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
777947e89262Smrg$as_echo_n "checking if we can lock with hard links... " >&6; }
778047e89262Smrg  hard_links=yes
778147e89262Smrg  $RM conftest*
778247e89262Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
778347e89262Smrg  touch conftest.a
778447e89262Smrg  ln conftest.a conftest.b 2>&5 || hard_links=no
778547e89262Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
778647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
778747e89262Smrg$as_echo "$hard_links" >&6; }
778847e89262Smrg  if test "$hard_links" = no; then
778947e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
779047e89262Smrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
779147e89262Smrg    need_locks=warn
7792bd1da9d7Smrg  fi
7793bd1da9d7Smrgelse
779447e89262Smrg  need_locks=no
7795bd1da9d7Smrgfi
7796bd1da9d7Smrg
7797bd1da9d7Smrg
7798bd1da9d7Smrg
779947e89262Smrg
780047e89262Smrg
780147e89262Smrg
780247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
780347e89262Smrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
780447e89262Smrg
780547e89262Smrg  runpath_var=
780647e89262Smrg  allow_undefined_flag=
780747e89262Smrg  always_export_symbols=no
780847e89262Smrg  archive_cmds=
780947e89262Smrg  archive_expsym_cmds=
781047e89262Smrg  compiler_needs_object=no
781147e89262Smrg  enable_shared_with_static_runtimes=no
781247e89262Smrg  export_dynamic_flag_spec=
781347e89262Smrg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
781447e89262Smrg  hardcode_automatic=no
781547e89262Smrg  hardcode_direct=no
781647e89262Smrg  hardcode_direct_absolute=no
781747e89262Smrg  hardcode_libdir_flag_spec=
781847e89262Smrg  hardcode_libdir_flag_spec_ld=
781947e89262Smrg  hardcode_libdir_separator=
782047e89262Smrg  hardcode_minus_L=no
782147e89262Smrg  hardcode_shlibpath_var=unsupported
782247e89262Smrg  inherit_rpath=no
782347e89262Smrg  link_all_deplibs=unknown
782447e89262Smrg  module_cmds=
782547e89262Smrg  module_expsym_cmds=
782647e89262Smrg  old_archive_from_new_cmds=
782747e89262Smrg  old_archive_from_expsyms_cmds=
782847e89262Smrg  thread_safe_flag_spec=
782947e89262Smrg  whole_archive_flag_spec=
783047e89262Smrg  # include_expsyms should be a list of space-separated symbols to be *always*
783147e89262Smrg  # included in the symbol list
783247e89262Smrg  include_expsyms=
783347e89262Smrg  # exclude_expsyms can be an extended regexp of symbols to exclude
783447e89262Smrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
783547e89262Smrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
783647e89262Smrg  # as well as any symbol that contains `d'.
783747e89262Smrg  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
783847e89262Smrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
783947e89262Smrg  # platforms (ab)use it in PIC code, but their linkers get confused if
784047e89262Smrg  # the symbol is explicitly referenced.  Since portable code cannot
784147e89262Smrg  # rely on this symbol name, it's probably fine to never include it in
784247e89262Smrg  # preloaded symbol tables.
784347e89262Smrg  # Exclude shared library initialization/finalization symbols.
784447e89262Smrg  extract_expsyms_cmds=
784547e89262Smrg
784647e89262Smrg  case $host_os in
784747e89262Smrg  cygwin* | mingw* | pw32* | cegcc*)
784847e89262Smrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
784947e89262Smrg    # When not using gcc, we currently assume that we are using
785047e89262Smrg    # Microsoft Visual C++.
785147e89262Smrg    if test "$GCC" != yes; then
785247e89262Smrg      with_gnu_ld=no
785347e89262Smrg    fi
785447e89262Smrg    ;;
785547e89262Smrg  interix*)
785647e89262Smrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
785747e89262Smrg    with_gnu_ld=yes
785847e89262Smrg    ;;
785947e89262Smrg  openbsd*)
786047e89262Smrg    with_gnu_ld=no
786147e89262Smrg    ;;
786247e89262Smrg  esac
786347e89262Smrg
786447e89262Smrg  ld_shlibs=yes
786547e89262Smrg
786647e89262Smrg  # On some targets, GNU ld is compatible enough with the native linker
786747e89262Smrg  # that we're better off using the native interface for both.
786847e89262Smrg  lt_use_gnu_ld_interface=no
786947e89262Smrg  if test "$with_gnu_ld" = yes; then
787047e89262Smrg    case $host_os in
787147e89262Smrg      aix*)
787247e89262Smrg	# The AIX port of GNU ld has always aspired to compatibility
787347e89262Smrg	# with the native linker.  However, as the warning in the GNU ld
787447e89262Smrg	# block says, versions before 2.19.5* couldn't really create working
787547e89262Smrg	# shared libraries, regardless of the interface used.
787647e89262Smrg	case `$LD -v 2>&1` in
787747e89262Smrg	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
787847e89262Smrg	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
787947e89262Smrg	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
788047e89262Smrg	  *)
788147e89262Smrg	    lt_use_gnu_ld_interface=yes
788247e89262Smrg	    ;;
788347e89262Smrg	esac
788447e89262Smrg	;;
788547e89262Smrg      *)
788647e89262Smrg	lt_use_gnu_ld_interface=yes
788747e89262Smrg	;;
788847e89262Smrg    esac
788947e89262Smrg  fi
789047e89262Smrg
789147e89262Smrg  if test "$lt_use_gnu_ld_interface" = yes; then
789247e89262Smrg    # If archive_cmds runs LD, not CC, wlarc should be empty
789347e89262Smrg    wlarc='${wl}'
789447e89262Smrg
789547e89262Smrg    # Set some defaults for GNU ld with shared library support. These
789647e89262Smrg    # are reset later if shared libraries are not supported. Putting them
789747e89262Smrg    # here allows them to be overridden if necessary.
789847e89262Smrg    runpath_var=LD_RUN_PATH
789947e89262Smrg    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
790047e89262Smrg    export_dynamic_flag_spec='${wl}--export-dynamic'
790147e89262Smrg    # ancient GNU ld didn't support --whole-archive et. al.
790247e89262Smrg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
790347e89262Smrg      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
790447e89262Smrg    else
790547e89262Smrg      whole_archive_flag_spec=
790647e89262Smrg    fi
790747e89262Smrg    supports_anon_versioning=no
790847e89262Smrg    case `$LD -v 2>&1` in
790947e89262Smrg      *GNU\ gold*) supports_anon_versioning=yes ;;
791047e89262Smrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
791147e89262Smrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
791247e89262Smrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
791347e89262Smrg      *\ 2.11.*) ;; # other 2.11 versions
791447e89262Smrg      *) supports_anon_versioning=yes ;;
791547e89262Smrg    esac
791647e89262Smrg
791747e89262Smrg    # See if GNU ld supports shared libraries.
791847e89262Smrg    case $host_os in
791947e89262Smrg    aix[3-9]*)
792047e89262Smrg      # On AIX/PPC, the GNU linker is very broken
792147e89262Smrg      if test "$host_cpu" != ia64; then
792247e89262Smrg	ld_shlibs=no
792347e89262Smrg	cat <<_LT_EOF 1>&2
792447e89262Smrg
792547e89262Smrg*** Warning: the GNU linker, at least up to release 2.19, is reported
792647e89262Smrg*** to be unable to reliably create shared libraries on AIX.
792747e89262Smrg*** Therefore, libtool is disabling shared libraries support.  If you
792847e89262Smrg*** really care for shared libraries, you may want to install binutils
792947e89262Smrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
793047e89262Smrg*** You will then need to restart the configuration process.
793147e89262Smrg
793247e89262Smrg_LT_EOF
793347e89262Smrg      fi
7934bd1da9d7Smrg      ;;
7935bd1da9d7Smrg
793647e89262Smrg    amigaos*)
793747e89262Smrg      case $host_cpu in
793847e89262Smrg      powerpc)
793947e89262Smrg            # see comment about AmigaOS4 .so support
794047e89262Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
794147e89262Smrg            archive_expsym_cmds=''
794247e89262Smrg        ;;
794347e89262Smrg      m68k)
794447e89262Smrg            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)'
794547e89262Smrg            hardcode_libdir_flag_spec='-L$libdir'
794647e89262Smrg            hardcode_minus_L=yes
794747e89262Smrg        ;;
794847e89262Smrg      esac
794947e89262Smrg      ;;
7950bd1da9d7Smrg
795147e89262Smrg    beos*)
795247e89262Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
795347e89262Smrg	allow_undefined_flag=unsupported
795447e89262Smrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
795547e89262Smrg	# support --undefined.  This deserves some investigation.  FIXME
795647e89262Smrg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
795747e89262Smrg      else
795847e89262Smrg	ld_shlibs=no
795947e89262Smrg      fi
796047e89262Smrg      ;;
7961bd1da9d7Smrg
796247e89262Smrg    cygwin* | mingw* | pw32* | cegcc*)
796347e89262Smrg      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
796447e89262Smrg      # as there is no search path for DLLs.
796547e89262Smrg      hardcode_libdir_flag_spec='-L$libdir'
796647e89262Smrg      export_dynamic_flag_spec='${wl}--export-all-symbols'
796747e89262Smrg      allow_undefined_flag=unsupported
796847e89262Smrg      always_export_symbols=no
796947e89262Smrg      enable_shared_with_static_runtimes=yes
797047e89262Smrg      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7971bd1da9d7Smrg
797247e89262Smrg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
797347e89262Smrg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
797447e89262Smrg	# If the export-symbols file already is a .def file (1st line
797547e89262Smrg	# is EXPORTS), use it as is; otherwise, prepend...
797647e89262Smrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
797747e89262Smrg	  cp $export_symbols $output_objdir/$soname.def;
797847e89262Smrg	else
797947e89262Smrg	  echo EXPORTS > $output_objdir/$soname.def;
798047e89262Smrg	  cat $export_symbols >> $output_objdir/$soname.def;
798147e89262Smrg	fi~
798247e89262Smrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
798347e89262Smrg      else
798447e89262Smrg	ld_shlibs=no
798547e89262Smrg      fi
798647e89262Smrg      ;;
7987bd1da9d7Smrg
798847e89262Smrg    haiku*)
798947e89262Smrg      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
799047e89262Smrg      link_all_deplibs=yes
799147e89262Smrg      ;;
7992bd1da9d7Smrg
799347e89262Smrg    interix[3-9]*)
799447e89262Smrg      hardcode_direct=no
799547e89262Smrg      hardcode_shlibpath_var=no
799647e89262Smrg      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
799747e89262Smrg      export_dynamic_flag_spec='${wl}-E'
799847e89262Smrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
799947e89262Smrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
800047e89262Smrg      # default) and relocated if they conflict, which is a slow very memory
800147e89262Smrg      # consuming and fragmenting process.  To avoid this, we pick a random,
800247e89262Smrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
800347e89262Smrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
800447e89262Smrg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
800547e89262Smrg      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'
800647e89262Smrg      ;;
8007bd1da9d7Smrg
800847e89262Smrg    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
800947e89262Smrg      tmp_diet=no
801047e89262Smrg      if test "$host_os" = linux-dietlibc; then
801147e89262Smrg	case $cc_basename in
801247e89262Smrg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
801347e89262Smrg	esac
801447e89262Smrg      fi
801547e89262Smrg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
801647e89262Smrg	 && test "$tmp_diet" = no
801747e89262Smrg      then
801847e89262Smrg	tmp_addflag=
801947e89262Smrg	tmp_sharedflag='-shared'
802047e89262Smrg	case $cc_basename,$host_cpu in
802147e89262Smrg        pgcc*)				# Portland Group C compiler
802247e89262Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
802347e89262Smrg	  tmp_addflag=' $pic_flag'
802447e89262Smrg	  ;;
802547e89262Smrg	pgf77* | pgf90* | pgf95* | pgfortran*)
802647e89262Smrg					# Portland Group f77 and f90 compilers
802747e89262Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
802847e89262Smrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
802947e89262Smrg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
803047e89262Smrg	  tmp_addflag=' -i_dynamic' ;;
803147e89262Smrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
803247e89262Smrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
803347e89262Smrg	ifc* | ifort*)			# Intel Fortran compiler
803447e89262Smrg	  tmp_addflag=' -nofor_main' ;;
803547e89262Smrg	lf95*)				# Lahey Fortran 8.1
803647e89262Smrg	  whole_archive_flag_spec=
803747e89262Smrg	  tmp_sharedflag='--shared' ;;
803847e89262Smrg	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
803947e89262Smrg	  tmp_sharedflag='-qmkshrobj'
804047e89262Smrg	  tmp_addflag= ;;
804147e89262Smrg	nvcc*)	# Cuda Compiler Driver 2.2
804247e89262Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
804347e89262Smrg	  compiler_needs_object=yes
804447e89262Smrg	  ;;
804547e89262Smrg	esac
804647e89262Smrg	case `$CC -V 2>&1 | sed 5q` in
804747e89262Smrg	*Sun\ C*)			# Sun C 5.9
804847e89262Smrg	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
804947e89262Smrg	  compiler_needs_object=yes
805047e89262Smrg	  tmp_sharedflag='-G' ;;
805147e89262Smrg	*Sun\ F*)			# Sun Fortran 8.3
805247e89262Smrg	  tmp_sharedflag='-G' ;;
805347e89262Smrg	esac
805447e89262Smrg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8055bd1da9d7Smrg
805647e89262Smrg        if test "x$supports_anon_versioning" = xyes; then
805747e89262Smrg          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
805847e89262Smrg	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
805947e89262Smrg	    echo "local: *; };" >> $output_objdir/$libname.ver~
806047e89262Smrg	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
806147e89262Smrg        fi
8062bd1da9d7Smrg
806347e89262Smrg	case $cc_basename in
806447e89262Smrg	xlf* | bgf* | bgxlf* | mpixlf*)
806547e89262Smrg	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
806647e89262Smrg	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
806747e89262Smrg	  hardcode_libdir_flag_spec=
806847e89262Smrg	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
806947e89262Smrg	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
807047e89262Smrg	  if test "x$supports_anon_versioning" = xyes; then
807147e89262Smrg	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
807247e89262Smrg	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
807347e89262Smrg	      echo "local: *; };" >> $output_objdir/$libname.ver~
807447e89262Smrg	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
807547e89262Smrg	  fi
807647e89262Smrg	  ;;
807747e89262Smrg	esac
807847e89262Smrg      else
807947e89262Smrg        ld_shlibs=no
808047e89262Smrg      fi
808147e89262Smrg      ;;
8082bd1da9d7Smrg
808347e89262Smrg    netbsd*)
808447e89262Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
808547e89262Smrg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
808647e89262Smrg	wlarc=
808747e89262Smrg      else
808847e89262Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
808947e89262Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
809047e89262Smrg      fi
809147e89262Smrg      ;;
8092bd1da9d7Smrg
809347e89262Smrg    solaris*)
809447e89262Smrg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
809547e89262Smrg	ld_shlibs=no
809647e89262Smrg	cat <<_LT_EOF 1>&2
8097bd1da9d7Smrg
809847e89262Smrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
809947e89262Smrg*** create shared libraries on Solaris systems.  Therefore, libtool
810047e89262Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
810147e89262Smrg*** binutils to release 2.9.1 or newer.  Another option is to modify
810247e89262Smrg*** your PATH or compiler configuration so that the native linker is
810347e89262Smrg*** used, and then restart.
8104bd1da9d7Smrg
810547e89262Smrg_LT_EOF
810647e89262Smrg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
810747e89262Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
810847e89262Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
810947e89262Smrg      else
811047e89262Smrg	ld_shlibs=no
811147e89262Smrg      fi
811247e89262Smrg      ;;
8113bd1da9d7Smrg
811447e89262Smrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
811547e89262Smrg      case `$LD -v 2>&1` in
811647e89262Smrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
811747e89262Smrg	ld_shlibs=no
811847e89262Smrg	cat <<_LT_EOF 1>&2
8119bd1da9d7Smrg
812047e89262Smrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
812147e89262Smrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
812247e89262Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
812347e89262Smrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
812447e89262Smrg*** your PATH or compiler configuration so that the native linker is
812547e89262Smrg*** used, and then restart.
8126bd1da9d7Smrg
812747e89262Smrg_LT_EOF
812847e89262Smrg	;;
812947e89262Smrg	*)
813047e89262Smrg	  # For security reasons, it is highly recommended that you always
813147e89262Smrg	  # use absolute paths for naming shared libraries, and exclude the
813247e89262Smrg	  # DT_RUNPATH tag from executables and libraries.  But doing so
813347e89262Smrg	  # requires that you compile everything twice, which is a pain.
813447e89262Smrg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
813547e89262Smrg	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
813647e89262Smrg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
813747e89262Smrg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
813847e89262Smrg	  else
813947e89262Smrg	    ld_shlibs=no
814047e89262Smrg	  fi
814147e89262Smrg	;;
814247e89262Smrg      esac
814347e89262Smrg      ;;
8144bd1da9d7Smrg
814547e89262Smrg    sunos4*)
814647e89262Smrg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
814747e89262Smrg      wlarc=
814847e89262Smrg      hardcode_direct=yes
814947e89262Smrg      hardcode_shlibpath_var=no
815047e89262Smrg      ;;
8151bd1da9d7Smrg
815247e89262Smrg    *)
815347e89262Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
815447e89262Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
815547e89262Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
815647e89262Smrg      else
815747e89262Smrg	ld_shlibs=no
815847e89262Smrg      fi
815947e89262Smrg      ;;
816047e89262Smrg    esac
8161bd1da9d7Smrg
816247e89262Smrg    if test "$ld_shlibs" = no; then
816347e89262Smrg      runpath_var=
816447e89262Smrg      hardcode_libdir_flag_spec=
816547e89262Smrg      export_dynamic_flag_spec=
816647e89262Smrg      whole_archive_flag_spec=
816747e89262Smrg    fi
816847e89262Smrg  else
816947e89262Smrg    # PORTME fill in a description of your system's linker (not GNU ld)
817047e89262Smrg    case $host_os in
817147e89262Smrg    aix3*)
817247e89262Smrg      allow_undefined_flag=unsupported
817347e89262Smrg      always_export_symbols=yes
817447e89262Smrg      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'
817547e89262Smrg      # Note: this linker hardcodes the directories in LIBPATH if there
817647e89262Smrg      # are no directories specified by -L.
817747e89262Smrg      hardcode_minus_L=yes
817847e89262Smrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
817947e89262Smrg	# Neither direct hardcoding nor static linking is supported with a
818047e89262Smrg	# broken collect2.
818147e89262Smrg	hardcode_direct=unsupported
818247e89262Smrg      fi
818347e89262Smrg      ;;
8184bd1da9d7Smrg
818547e89262Smrg    aix[4-9]*)
818647e89262Smrg      if test "$host_cpu" = ia64; then
818747e89262Smrg	# On IA64, the linker does run time linking by default, so we don't
818847e89262Smrg	# have to do anything special.
818947e89262Smrg	aix_use_runtimelinking=no
819047e89262Smrg	exp_sym_flag='-Bexport'
819147e89262Smrg	no_entry_flag=""
819247e89262Smrg      else
819347e89262Smrg	# If we're using GNU nm, then we don't want the "-C" option.
819447e89262Smrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
819547e89262Smrg	# Also, AIX nm treats weak defined symbols like other global
819647e89262Smrg	# defined symbols, whereas GNU nm marks them as "W".
819747e89262Smrg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
819847e89262Smrg	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
819947e89262Smrg	else
820047e89262Smrg	  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'
820147e89262Smrg	fi
820247e89262Smrg	aix_use_runtimelinking=no
8203bd1da9d7Smrg
820447e89262Smrg	# Test if we are trying to use run time linking or normal
820547e89262Smrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
820647e89262Smrg	# need to do runtime linking.
820747e89262Smrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
820847e89262Smrg	  for ld_flag in $LDFLAGS; do
820947e89262Smrg	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
821047e89262Smrg	    aix_use_runtimelinking=yes
821147e89262Smrg	    break
821247e89262Smrg	  fi
821347e89262Smrg	  done
821447e89262Smrg	  ;;
821547e89262Smrg	esac
8216bd1da9d7Smrg
821747e89262Smrg	exp_sym_flag='-bexport'
821847e89262Smrg	no_entry_flag='-bnoentry'
821947e89262Smrg      fi
8220bd1da9d7Smrg
822147e89262Smrg      # When large executables or shared objects are built, AIX ld can
822247e89262Smrg      # have problems creating the table of contents.  If linking a library
822347e89262Smrg      # or program results in "error TOC overflow" add -mminimal-toc to
822447e89262Smrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
822547e89262Smrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8226bd1da9d7Smrg
822747e89262Smrg      archive_cmds=''
822847e89262Smrg      hardcode_direct=yes
822947e89262Smrg      hardcode_direct_absolute=yes
823047e89262Smrg      hardcode_libdir_separator=':'
823147e89262Smrg      link_all_deplibs=yes
823247e89262Smrg      file_list_spec='${wl}-f,'
8233bd1da9d7Smrg
823447e89262Smrg      if test "$GCC" = yes; then
823547e89262Smrg	case $host_os in aix4.[012]|aix4.[012].*)
823647e89262Smrg	# We only want to do this on AIX 4.2 and lower, the check
823747e89262Smrg	# below for broken collect2 doesn't work under 4.3+
823847e89262Smrg	  collect2name=`${CC} -print-prog-name=collect2`
823947e89262Smrg	  if test -f "$collect2name" &&
824047e89262Smrg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
824147e89262Smrg	  then
824247e89262Smrg	  # We have reworked collect2
824347e89262Smrg	  :
824447e89262Smrg	  else
824547e89262Smrg	  # We have old collect2
824647e89262Smrg	  hardcode_direct=unsupported
824747e89262Smrg	  # It fails to find uninstalled libraries when the uninstalled
824847e89262Smrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
824947e89262Smrg	  # to unsupported forces relinking
825047e89262Smrg	  hardcode_minus_L=yes
825147e89262Smrg	  hardcode_libdir_flag_spec='-L$libdir'
825247e89262Smrg	  hardcode_libdir_separator=
825347e89262Smrg	  fi
825447e89262Smrg	  ;;
825547e89262Smrg	esac
825647e89262Smrg	shared_flag='-shared'
825747e89262Smrg	if test "$aix_use_runtimelinking" = yes; then
825847e89262Smrg	  shared_flag="$shared_flag "'${wl}-G'
825947e89262Smrg	fi
826047e89262Smrg      else
826147e89262Smrg	# not using gcc
826247e89262Smrg	if test "$host_cpu" = ia64; then
826347e89262Smrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
826447e89262Smrg	# chokes on -Wl,-G. The following line is correct:
826547e89262Smrg	  shared_flag='-G'
826647e89262Smrg	else
826747e89262Smrg	  if test "$aix_use_runtimelinking" = yes; then
826847e89262Smrg	    shared_flag='${wl}-G'
826947e89262Smrg	  else
827047e89262Smrg	    shared_flag='${wl}-bM:SRE'
827147e89262Smrg	  fi
827247e89262Smrg	fi
827347e89262Smrg      fi
8274bd1da9d7Smrg
827547e89262Smrg      export_dynamic_flag_spec='${wl}-bexpall'
827647e89262Smrg      # It seems that -bexpall does not export symbols beginning with
827747e89262Smrg      # underscore (_), so it is better to generate a list of symbols to export.
827847e89262Smrg      always_export_symbols=yes
827947e89262Smrg      if test "$aix_use_runtimelinking" = yes; then
828047e89262Smrg	# Warning - without using the other runtime loading flags (-brtl),
828147e89262Smrg	# -berok will link without error, but may produce a broken library.
828247e89262Smrg	allow_undefined_flag='-berok'
828347e89262Smrg        # Determine the default libpath from the value encoded in an
828447e89262Smrg        # empty executable.
828547e89262Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
828647e89262Smrg/* end confdefs.h.  */
8287bd1da9d7Smrg
828847e89262Smrgint
828947e89262Smrgmain ()
829047e89262Smrg{
8291bd1da9d7Smrg
829247e89262Smrg  ;
829347e89262Smrg  return 0;
829447e89262Smrg}
829547e89262Smrg_ACEOF
829647e89262Smrgif ac_fn_c_try_link "$LINENO"; then :
8297bd1da9d7Smrg
829847e89262Smrglt_aix_libpath_sed='
829947e89262Smrg    /Import File Strings/,/^$/ {
830047e89262Smrg	/^0/ {
830147e89262Smrg	    s/^0  *\(.*\)$/\1/
830247e89262Smrg	    p
830347e89262Smrg	}
830447e89262Smrg    }'
830547e89262Smrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
830647e89262Smrg# Check for a 64-bit object if we didn't find anything.
830747e89262Smrgif test -z "$aix_libpath"; then
830847e89262Smrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
830947e89262Smrgfi
831047e89262Smrgfi
831147e89262Smrgrm -f core conftest.err conftest.$ac_objext \
831247e89262Smrg    conftest$ac_exeext conftest.$ac_ext
831347e89262Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8314bd1da9d7Smrg
831547e89262Smrg        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
831647e89262Smrg        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
831747e89262Smrg      else
831847e89262Smrg	if test "$host_cpu" = ia64; then
831947e89262Smrg	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
832047e89262Smrg	  allow_undefined_flag="-z nodefs"
832147e89262Smrg	  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"
832247e89262Smrg	else
832347e89262Smrg	 # Determine the default libpath from the value encoded in an
832447e89262Smrg	 # empty executable.
832547e89262Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
832647e89262Smrg/* end confdefs.h.  */
8327bd1da9d7Smrg
832847e89262Smrgint
832947e89262Smrgmain ()
833047e89262Smrg{
8331bd1da9d7Smrg
833247e89262Smrg  ;
833347e89262Smrg  return 0;
833447e89262Smrg}
833547e89262Smrg_ACEOF
833647e89262Smrgif ac_fn_c_try_link "$LINENO"; then :
8337bd1da9d7Smrg
833847e89262Smrglt_aix_libpath_sed='
833947e89262Smrg    /Import File Strings/,/^$/ {
834047e89262Smrg	/^0/ {
834147e89262Smrg	    s/^0  *\(.*\)$/\1/
834247e89262Smrg	    p
834347e89262Smrg	}
834447e89262Smrg    }'
834547e89262Smrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
834647e89262Smrg# Check for a 64-bit object if we didn't find anything.
834747e89262Smrgif test -z "$aix_libpath"; then
834847e89262Smrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
834947e89262Smrgfi
835047e89262Smrgfi
835147e89262Smrgrm -f core conftest.err conftest.$ac_objext \
835247e89262Smrg    conftest$ac_exeext conftest.$ac_ext
835347e89262Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8354bd1da9d7Smrg
835547e89262Smrg	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
835647e89262Smrg	  # Warning - without using the other run time loading flags,
835747e89262Smrg	  # -berok will link without error, but may produce a broken library.
835847e89262Smrg	  no_undefined_flag=' ${wl}-bernotok'
835947e89262Smrg	  allow_undefined_flag=' ${wl}-berok'
836047e89262Smrg	  if test "$with_gnu_ld" = yes; then
836147e89262Smrg	    # We only use this code for GNU lds that support --whole-archive.
836247e89262Smrg	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
836347e89262Smrg	  else
836447e89262Smrg	    # Exported symbols can be pulled into shared objects from archives
836547e89262Smrg	    whole_archive_flag_spec='$convenience'
836647e89262Smrg	  fi
836747e89262Smrg	  archive_cmds_need_lc=yes
836847e89262Smrg	  # This is similar to how AIX traditionally builds its shared libraries.
836947e89262Smrg	  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'
837047e89262Smrg	fi
837147e89262Smrg      fi
837247e89262Smrg      ;;
8373bd1da9d7Smrg
837447e89262Smrg    amigaos*)
837547e89262Smrg      case $host_cpu in
837647e89262Smrg      powerpc)
837747e89262Smrg            # see comment about AmigaOS4 .so support
837847e89262Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
837947e89262Smrg            archive_expsym_cmds=''
838047e89262Smrg        ;;
838147e89262Smrg      m68k)
838247e89262Smrg            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)'
838347e89262Smrg            hardcode_libdir_flag_spec='-L$libdir'
838447e89262Smrg            hardcode_minus_L=yes
838547e89262Smrg        ;;
838647e89262Smrg      esac
838747e89262Smrg      ;;
8388bd1da9d7Smrg
838947e89262Smrg    bsdi[45]*)
839047e89262Smrg      export_dynamic_flag_spec=-rdynamic
839147e89262Smrg      ;;
8392bd1da9d7Smrg
839347e89262Smrg    cygwin* | mingw* | pw32* | cegcc*)
839447e89262Smrg      # When not using gcc, we currently assume that we are using
839547e89262Smrg      # Microsoft Visual C++.
839647e89262Smrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
839747e89262Smrg      # no search path for DLLs.
839847e89262Smrg      hardcode_libdir_flag_spec=' '
839947e89262Smrg      allow_undefined_flag=unsupported
840047e89262Smrg      # Tell ltmain to make .lib files, not .a files.
840147e89262Smrg      libext=lib
840247e89262Smrg      # Tell ltmain to make .dll files, not .so files.
840347e89262Smrg      shrext_cmds=".dll"
840447e89262Smrg      # FIXME: Setting linknames here is a bad hack.
840547e89262Smrg      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
840647e89262Smrg      # The linker will automatically build a .lib file if we build a DLL.
840747e89262Smrg      old_archive_from_new_cmds='true'
840847e89262Smrg      # FIXME: Should let the user specify the lib program.
840947e89262Smrg      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
841047e89262Smrg      fix_srcfile_path='`cygpath -w "$srcfile"`'
841147e89262Smrg      enable_shared_with_static_runtimes=yes
841247e89262Smrg      ;;
8413bd1da9d7Smrg
841447e89262Smrg    darwin* | rhapsody*)
8415bd1da9d7Smrg
8416bd1da9d7Smrg
841747e89262Smrg  archive_cmds_need_lc=no
841847e89262Smrg  hardcode_direct=no
841947e89262Smrg  hardcode_automatic=yes
842047e89262Smrg  hardcode_shlibpath_var=unsupported
842147e89262Smrg  if test "$lt_cv_ld_force_load" = "yes"; then
842247e89262Smrg    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
842347e89262Smrg  else
842447e89262Smrg    whole_archive_flag_spec=''
842547e89262Smrg  fi
842647e89262Smrg  link_all_deplibs=yes
842747e89262Smrg  allow_undefined_flag="$_lt_dar_allow_undefined"
842847e89262Smrg  case $cc_basename in
842947e89262Smrg     ifort*) _lt_dar_can_shared=yes ;;
843047e89262Smrg     *) _lt_dar_can_shared=$GCC ;;
843147e89262Smrg  esac
843247e89262Smrg  if test "$_lt_dar_can_shared" = "yes"; then
843347e89262Smrg    output_verbose_link_cmd=func_echo_all
843447e89262Smrg    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
843547e89262Smrg    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
843647e89262Smrg    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
843747e89262Smrg    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8438bd1da9d7Smrg
843947e89262Smrg  else
844047e89262Smrg  ld_shlibs=no
844147e89262Smrg  fi
8442bd1da9d7Smrg
844347e89262Smrg      ;;
8444bd1da9d7Smrg
844547e89262Smrg    dgux*)
844647e89262Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
844747e89262Smrg      hardcode_libdir_flag_spec='-L$libdir'
844847e89262Smrg      hardcode_shlibpath_var=no
844947e89262Smrg      ;;
8450bd1da9d7Smrg
845147e89262Smrg    freebsd1*)
845247e89262Smrg      ld_shlibs=no
845347e89262Smrg      ;;
8454bd1da9d7Smrg
845547e89262Smrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
845647e89262Smrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
845747e89262Smrg    # does not break anything, and helps significantly (at the cost of a little
845847e89262Smrg    # extra space).
845947e89262Smrg    freebsd2.2*)
846047e89262Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
846147e89262Smrg      hardcode_libdir_flag_spec='-R$libdir'
846247e89262Smrg      hardcode_direct=yes
846347e89262Smrg      hardcode_shlibpath_var=no
846447e89262Smrg      ;;
8465bd1da9d7Smrg
846647e89262Smrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
846747e89262Smrg    freebsd2*)
846847e89262Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
846947e89262Smrg      hardcode_direct=yes
847047e89262Smrg      hardcode_minus_L=yes
847147e89262Smrg      hardcode_shlibpath_var=no
847247e89262Smrg      ;;
8473bd1da9d7Smrg
847447e89262Smrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
847547e89262Smrg    freebsd* | dragonfly*)
847647e89262Smrg      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
847747e89262Smrg      hardcode_libdir_flag_spec='-R$libdir'
847847e89262Smrg      hardcode_direct=yes
847947e89262Smrg      hardcode_shlibpath_var=no
848047e89262Smrg      ;;
8481bd1da9d7Smrg
848247e89262Smrg    hpux9*)
848347e89262Smrg      if test "$GCC" = yes; then
848447e89262Smrg	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'
848547e89262Smrg      else
848647e89262Smrg	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'
848747e89262Smrg      fi
848847e89262Smrg      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
848947e89262Smrg      hardcode_libdir_separator=:
849047e89262Smrg      hardcode_direct=yes
8491bd1da9d7Smrg
849247e89262Smrg      # hardcode_minus_L: Not really in the search PATH,
849347e89262Smrg      # but as the default location of the library.
849447e89262Smrg      hardcode_minus_L=yes
849547e89262Smrg      export_dynamic_flag_spec='${wl}-E'
849647e89262Smrg      ;;
8497bd1da9d7Smrg
849847e89262Smrg    hpux10*)
849947e89262Smrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
850047e89262Smrg	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
850147e89262Smrg      else
850247e89262Smrg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
850347e89262Smrg      fi
850447e89262Smrg      if test "$with_gnu_ld" = no; then
850547e89262Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
850647e89262Smrg	hardcode_libdir_flag_spec_ld='+b $libdir'
850747e89262Smrg	hardcode_libdir_separator=:
850847e89262Smrg	hardcode_direct=yes
850947e89262Smrg	hardcode_direct_absolute=yes
851047e89262Smrg	export_dynamic_flag_spec='${wl}-E'
851147e89262Smrg	# hardcode_minus_L: Not really in the search PATH,
851247e89262Smrg	# but as the default location of the library.
851347e89262Smrg	hardcode_minus_L=yes
851447e89262Smrg      fi
851547e89262Smrg      ;;
8516bd1da9d7Smrg
851747e89262Smrg    hpux11*)
851847e89262Smrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
851947e89262Smrg	case $host_cpu in
852047e89262Smrg	hppa*64*)
852147e89262Smrg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
852247e89262Smrg	  ;;
852347e89262Smrg	ia64*)
852447e89262Smrg	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
852547e89262Smrg	  ;;
852647e89262Smrg	*)
852747e89262Smrg	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
852847e89262Smrg	  ;;
852947e89262Smrg	esac
853047e89262Smrg      else
853147e89262Smrg	case $host_cpu in
853247e89262Smrg	hppa*64*)
853347e89262Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
853447e89262Smrg	  ;;
853547e89262Smrg	ia64*)
853647e89262Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
853747e89262Smrg	  ;;
853847e89262Smrg	*)
8539bd1da9d7Smrg
854047e89262Smrg	  # Older versions of the 11.00 compiler do not understand -b yet
854147e89262Smrg	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
854247e89262Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
854347e89262Smrg$as_echo_n "checking if $CC understands -b... " >&6; }
854447e89262Smrgif ${lt_cv_prog_compiler__b+:} false; then :
854547e89262Smrg  $as_echo_n "(cached) " >&6
854647e89262Smrgelse
854747e89262Smrg  lt_cv_prog_compiler__b=no
854847e89262Smrg   save_LDFLAGS="$LDFLAGS"
854947e89262Smrg   LDFLAGS="$LDFLAGS -b"
855047e89262Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
855147e89262Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
855247e89262Smrg     # The linker can only warn and ignore the option if not recognized
855347e89262Smrg     # So say no if there are warnings
855447e89262Smrg     if test -s conftest.err; then
855547e89262Smrg       # Append any errors to the config.log.
855647e89262Smrg       cat conftest.err 1>&5
855747e89262Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
855847e89262Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
855947e89262Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
856047e89262Smrg         lt_cv_prog_compiler__b=yes
856147e89262Smrg       fi
856247e89262Smrg     else
856347e89262Smrg       lt_cv_prog_compiler__b=yes
856447e89262Smrg     fi
856547e89262Smrg   fi
856647e89262Smrg   $RM -r conftest*
856747e89262Smrg   LDFLAGS="$save_LDFLAGS"
8568bd1da9d7Smrg
856947e89262Smrgfi
857047e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
857147e89262Smrg$as_echo "$lt_cv_prog_compiler__b" >&6; }
8572bd1da9d7Smrg
857347e89262Smrgif test x"$lt_cv_prog_compiler__b" = xyes; then
857447e89262Smrg    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
857547e89262Smrgelse
857647e89262Smrg    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
857747e89262Smrgfi
8578bd1da9d7Smrg
857947e89262Smrg	  ;;
858047e89262Smrg	esac
858147e89262Smrg      fi
858247e89262Smrg      if test "$with_gnu_ld" = no; then
858347e89262Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
858447e89262Smrg	hardcode_libdir_separator=:
8585bd1da9d7Smrg
858647e89262Smrg	case $host_cpu in
858747e89262Smrg	hppa*64*|ia64*)
858847e89262Smrg	  hardcode_direct=no
858947e89262Smrg	  hardcode_shlibpath_var=no
859047e89262Smrg	  ;;
859147e89262Smrg	*)
859247e89262Smrg	  hardcode_direct=yes
859347e89262Smrg	  hardcode_direct_absolute=yes
859447e89262Smrg	  export_dynamic_flag_spec='${wl}-E'
8595bd1da9d7Smrg
859647e89262Smrg	  # hardcode_minus_L: Not really in the search PATH,
859747e89262Smrg	  # but as the default location of the library.
859847e89262Smrg	  hardcode_minus_L=yes
859947e89262Smrg	  ;;
860047e89262Smrg	esac
860147e89262Smrg      fi
860247e89262Smrg      ;;
8603bd1da9d7Smrg
860447e89262Smrg    irix5* | irix6* | nonstopux*)
860547e89262Smrg      if test "$GCC" = yes; then
860647e89262Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
860747e89262Smrg	# Try to use the -exported_symbol ld option, if it does not
860847e89262Smrg	# work, assume that -exports_file does not work either and
860947e89262Smrg	# implicitly export all symbols.
861047e89262Smrg        save_LDFLAGS="$LDFLAGS"
861147e89262Smrg        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
861247e89262Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
861347e89262Smrg/* end confdefs.h.  */
861447e89262Smrgint foo(void) {}
861547e89262Smrg_ACEOF
861647e89262Smrgif ac_fn_c_try_link "$LINENO"; then :
861747e89262Smrg  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8618bd1da9d7Smrg
861947e89262Smrgfi
862047e89262Smrgrm -f core conftest.err conftest.$ac_objext \
862147e89262Smrg    conftest$ac_exeext conftest.$ac_ext
862247e89262Smrg        LDFLAGS="$save_LDFLAGS"
862347e89262Smrg      else
862447e89262Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
862547e89262Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
862647e89262Smrg      fi
862747e89262Smrg      archive_cmds_need_lc='no'
862847e89262Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
862947e89262Smrg      hardcode_libdir_separator=:
863047e89262Smrg      inherit_rpath=yes
863147e89262Smrg      link_all_deplibs=yes
863247e89262Smrg      ;;
8633bd1da9d7Smrg
863447e89262Smrg    netbsd*)
863547e89262Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
863647e89262Smrg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
863747e89262Smrg      else
863847e89262Smrg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
863947e89262Smrg      fi
864047e89262Smrg      hardcode_libdir_flag_spec='-R$libdir'
864147e89262Smrg      hardcode_direct=yes
864247e89262Smrg      hardcode_shlibpath_var=no
864347e89262Smrg      ;;
8644bd1da9d7Smrg
864547e89262Smrg    newsos6)
864647e89262Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
864747e89262Smrg      hardcode_direct=yes
864847e89262Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
864947e89262Smrg      hardcode_libdir_separator=:
865047e89262Smrg      hardcode_shlibpath_var=no
865147e89262Smrg      ;;
86525bcb6992Smrg
865347e89262Smrg    *nto* | *qnx*)
865447e89262Smrg      ;;
8655bd1da9d7Smrg
865647e89262Smrg    openbsd*)
865747e89262Smrg      if test -f /usr/libexec/ld.so; then
865847e89262Smrg	hardcode_direct=yes
865947e89262Smrg	hardcode_shlibpath_var=no
866047e89262Smrg	hardcode_direct_absolute=yes
866147e89262Smrg	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
866247e89262Smrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
866347e89262Smrg	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
866447e89262Smrg	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
866547e89262Smrg	  export_dynamic_flag_spec='${wl}-E'
866647e89262Smrg	else
866747e89262Smrg	  case $host_os in
866847e89262Smrg	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
866947e89262Smrg	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
867047e89262Smrg	     hardcode_libdir_flag_spec='-R$libdir'
867147e89262Smrg	     ;;
867247e89262Smrg	   *)
867347e89262Smrg	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
867447e89262Smrg	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
867547e89262Smrg	     ;;
867647e89262Smrg	  esac
867747e89262Smrg	fi
867847e89262Smrg      else
867947e89262Smrg	ld_shlibs=no
868047e89262Smrg      fi
868147e89262Smrg      ;;
8682bd1da9d7Smrg
868347e89262Smrg    os2*)
868447e89262Smrg      hardcode_libdir_flag_spec='-L$libdir'
868547e89262Smrg      hardcode_minus_L=yes
868647e89262Smrg      allow_undefined_flag=unsupported
868747e89262Smrg      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'
868847e89262Smrg      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
868947e89262Smrg      ;;
8690bd1da9d7Smrg
869147e89262Smrg    osf3*)
869247e89262Smrg      if test "$GCC" = yes; then
869347e89262Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
869447e89262Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
869547e89262Smrg      else
869647e89262Smrg	allow_undefined_flag=' -expect_unresolved \*'
869747e89262Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
869847e89262Smrg      fi
869947e89262Smrg      archive_cmds_need_lc='no'
870047e89262Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
870147e89262Smrg      hardcode_libdir_separator=:
870247e89262Smrg      ;;
8703bd1da9d7Smrg
870447e89262Smrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
870547e89262Smrg      if test "$GCC" = yes; then
870647e89262Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
870747e89262Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
870847e89262Smrg	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
870947e89262Smrg      else
871047e89262Smrg	allow_undefined_flag=' -expect_unresolved \*'
871147e89262Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
871247e89262Smrg	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
871347e89262Smrg	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8714bd1da9d7Smrg
871547e89262Smrg	# Both c and cxx compiler support -rpath directly
871647e89262Smrg	hardcode_libdir_flag_spec='-rpath $libdir'
871747e89262Smrg      fi
871847e89262Smrg      archive_cmds_need_lc='no'
871947e89262Smrg      hardcode_libdir_separator=:
872047e89262Smrg      ;;
8721bd1da9d7Smrg
872247e89262Smrg    solaris*)
872347e89262Smrg      no_undefined_flag=' -z defs'
872447e89262Smrg      if test "$GCC" = yes; then
872547e89262Smrg	wlarc='${wl}'
872647e89262Smrg	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
872747e89262Smrg	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
872847e89262Smrg	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
872947e89262Smrg      else
873047e89262Smrg	case `$CC -V 2>&1` in
873147e89262Smrg	*"Compilers 5.0"*)
873247e89262Smrg	  wlarc=''
873347e89262Smrg	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
873447e89262Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
873547e89262Smrg	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
873647e89262Smrg	  ;;
873747e89262Smrg	*)
873847e89262Smrg	  wlarc='${wl}'
873947e89262Smrg	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
874047e89262Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
874147e89262Smrg	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
874247e89262Smrg	  ;;
874347e89262Smrg	esac
874447e89262Smrg      fi
874547e89262Smrg      hardcode_libdir_flag_spec='-R$libdir'
874647e89262Smrg      hardcode_shlibpath_var=no
874747e89262Smrg      case $host_os in
874847e89262Smrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
874947e89262Smrg      *)
875047e89262Smrg	# The compiler driver will combine and reorder linker options,
875147e89262Smrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
875247e89262Smrg	# but is careful enough not to reorder.
875347e89262Smrg	# Supported since Solaris 2.6 (maybe 2.5.1?)
875447e89262Smrg	if test "$GCC" = yes; then
875547e89262Smrg	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
875647e89262Smrg	else
875747e89262Smrg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
875847e89262Smrg	fi
875947e89262Smrg	;;
876047e89262Smrg      esac
876147e89262Smrg      link_all_deplibs=yes
876247e89262Smrg      ;;
8763bd1da9d7Smrg
876447e89262Smrg    sunos4*)
876547e89262Smrg      if test "x$host_vendor" = xsequent; then
876647e89262Smrg	# Use $CC to link under sequent, because it throws in some extra .o
876747e89262Smrg	# files that make .init and .fini sections work.
876847e89262Smrg	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
876947e89262Smrg      else
877047e89262Smrg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
877147e89262Smrg      fi
877247e89262Smrg      hardcode_libdir_flag_spec='-L$libdir'
877347e89262Smrg      hardcode_direct=yes
877447e89262Smrg      hardcode_minus_L=yes
877547e89262Smrg      hardcode_shlibpath_var=no
877647e89262Smrg      ;;
8777bd1da9d7Smrg
877847e89262Smrg    sysv4)
877947e89262Smrg      case $host_vendor in
878047e89262Smrg	sni)
878147e89262Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
878247e89262Smrg	  hardcode_direct=yes # is this really true???
878347e89262Smrg	;;
878447e89262Smrg	siemens)
878547e89262Smrg	  ## LD is ld it makes a PLAMLIB
878647e89262Smrg	  ## CC just makes a GrossModule.
878747e89262Smrg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
878847e89262Smrg	  reload_cmds='$CC -r -o $output$reload_objs'
878947e89262Smrg	  hardcode_direct=no
879047e89262Smrg        ;;
879147e89262Smrg	motorola)
879247e89262Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
879347e89262Smrg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
879447e89262Smrg	;;
879547e89262Smrg      esac
879647e89262Smrg      runpath_var='LD_RUN_PATH'
879747e89262Smrg      hardcode_shlibpath_var=no
879847e89262Smrg      ;;
8799bd1da9d7Smrg
880047e89262Smrg    sysv4.3*)
880147e89262Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
880247e89262Smrg      hardcode_shlibpath_var=no
880347e89262Smrg      export_dynamic_flag_spec='-Bexport'
880447e89262Smrg      ;;
8805bd1da9d7Smrg
880647e89262Smrg    sysv4*MP*)
880747e89262Smrg      if test -d /usr/nec; then
880847e89262Smrg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
880947e89262Smrg	hardcode_shlibpath_var=no
881047e89262Smrg	runpath_var=LD_RUN_PATH
881147e89262Smrg	hardcode_runpath_var=yes
881247e89262Smrg	ld_shlibs=yes
881347e89262Smrg      fi
881447e89262Smrg      ;;
8815bd1da9d7Smrg
881647e89262Smrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
881747e89262Smrg      no_undefined_flag='${wl}-z,text'
881847e89262Smrg      archive_cmds_need_lc=no
881947e89262Smrg      hardcode_shlibpath_var=no
882047e89262Smrg      runpath_var='LD_RUN_PATH'
8821bd1da9d7Smrg
882247e89262Smrg      if test "$GCC" = yes; then
882347e89262Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
882447e89262Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
882547e89262Smrg      else
882647e89262Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
882747e89262Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
882847e89262Smrg      fi
882947e89262Smrg      ;;
8830bd1da9d7Smrg
883147e89262Smrg    sysv5* | sco3.2v5* | sco5v6*)
883247e89262Smrg      # Note: We can NOT use -z defs as we might desire, because we do not
883347e89262Smrg      # link with -lc, and that would cause any symbols used from libc to
883447e89262Smrg      # always be unresolved, which means just about no library would
883547e89262Smrg      # ever link correctly.  If we're not using GNU ld we use -z text
883647e89262Smrg      # though, which does catch some bad symbols but isn't as heavy-handed
883747e89262Smrg      # as -z defs.
883847e89262Smrg      no_undefined_flag='${wl}-z,text'
883947e89262Smrg      allow_undefined_flag='${wl}-z,nodefs'
884047e89262Smrg      archive_cmds_need_lc=no
884147e89262Smrg      hardcode_shlibpath_var=no
884247e89262Smrg      hardcode_libdir_flag_spec='${wl}-R,$libdir'
884347e89262Smrg      hardcode_libdir_separator=':'
884447e89262Smrg      link_all_deplibs=yes
884547e89262Smrg      export_dynamic_flag_spec='${wl}-Bexport'
884647e89262Smrg      runpath_var='LD_RUN_PATH'
8847bd1da9d7Smrg
884847e89262Smrg      if test "$GCC" = yes; then
884947e89262Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
885047e89262Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
885147e89262Smrg      else
885247e89262Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
885347e89262Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
885447e89262Smrg      fi
885547e89262Smrg      ;;
8856bd1da9d7Smrg
885747e89262Smrg    uts4*)
885847e89262Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
885947e89262Smrg      hardcode_libdir_flag_spec='-L$libdir'
886047e89262Smrg      hardcode_shlibpath_var=no
886147e89262Smrg      ;;
8862bd1da9d7Smrg
886347e89262Smrg    *)
886447e89262Smrg      ld_shlibs=no
886547e89262Smrg      ;;
886647e89262Smrg    esac
8867bd1da9d7Smrg
886847e89262Smrg    if test x$host_vendor = xsni; then
886947e89262Smrg      case $host in
887047e89262Smrg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
887147e89262Smrg	export_dynamic_flag_spec='${wl}-Blargedynsym'
887247e89262Smrg	;;
887347e89262Smrg      esac
887447e89262Smrg    fi
887547e89262Smrg  fi
8876bd1da9d7Smrg
887747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
887847e89262Smrg$as_echo "$ld_shlibs" >&6; }
887947e89262Smrgtest "$ld_shlibs" = no && can_build_shared=no
8880bd1da9d7Smrg
888147e89262Smrgwith_gnu_ld=$with_gnu_ld
8882bd1da9d7Smrg
8883bd1da9d7Smrg
8884bd1da9d7Smrg
8885bd1da9d7Smrg
8886bd1da9d7Smrg
8887bd1da9d7Smrg
8888bd1da9d7Smrg
8889bd1da9d7Smrg
8890bd1da9d7Smrg
8891bd1da9d7Smrg
8892bd1da9d7Smrg
8893bd1da9d7Smrg
8894bd1da9d7Smrg
8895bd1da9d7Smrg
8896bd1da9d7Smrg
889747e89262Smrg#
889847e89262Smrg# Do we need to explicitly link libc?
889947e89262Smrg#
890047e89262Smrgcase "x$archive_cmds_need_lc" in
890147e89262Smrgx|xyes)
890247e89262Smrg  # Assume -lc should be added
890347e89262Smrg  archive_cmds_need_lc=yes
8904bd1da9d7Smrg
890547e89262Smrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
890647e89262Smrg    case $archive_cmds in
890747e89262Smrg    *'~'*)
890847e89262Smrg      # FIXME: we may have to deal with multi-command sequences.
890947e89262Smrg      ;;
891047e89262Smrg    '$CC '*)
891147e89262Smrg      # Test whether the compiler implicitly links with -lc since on some
891247e89262Smrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
891347e89262Smrg      # to ld, don't add -lc before -lgcc.
891447e89262Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
891547e89262Smrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
891647e89262Smrgif ${lt_cv_archive_cmds_need_lc+:} false; then :
891747e89262Smrg  $as_echo_n "(cached) " >&6
8918bd1da9d7Smrgelse
891947e89262Smrg  $RM conftest*
892047e89262Smrg	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921bd1da9d7Smrg
892247e89262Smrg	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
892347e89262Smrg  (eval $ac_compile) 2>&5
892447e89262Smrg  ac_status=$?
892547e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
892647e89262Smrg  test $ac_status = 0; } 2>conftest.err; then
892747e89262Smrg	  soname=conftest
892847e89262Smrg	  lib=conftest
892947e89262Smrg	  libobjs=conftest.$ac_objext
893047e89262Smrg	  deplibs=
893147e89262Smrg	  wl=$lt_prog_compiler_wl
893247e89262Smrg	  pic_flag=$lt_prog_compiler_pic
893347e89262Smrg	  compiler_flags=-v
893447e89262Smrg	  linker_flags=-v
893547e89262Smrg	  verstring=
893647e89262Smrg	  output_objdir=.
893747e89262Smrg	  libname=conftest
893847e89262Smrg	  lt_save_allow_undefined_flag=$allow_undefined_flag
893947e89262Smrg	  allow_undefined_flag=
894047e89262Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
894147e89262Smrg  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
894247e89262Smrg  ac_status=$?
894347e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
894447e89262Smrg  test $ac_status = 0; }
894547e89262Smrg	  then
894647e89262Smrg	    lt_cv_archive_cmds_need_lc=no
894747e89262Smrg	  else
894847e89262Smrg	    lt_cv_archive_cmds_need_lc=yes
894947e89262Smrg	  fi
895047e89262Smrg	  allow_undefined_flag=$lt_save_allow_undefined_flag
8951bd1da9d7Smrg	else
895247e89262Smrg	  cat conftest.err 1>&5
8953bd1da9d7Smrg	fi
895447e89262Smrg	$RM conftest*
895547e89262Smrg
895647e89262Smrgfi
895747e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
895847e89262Smrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
895947e89262Smrg      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
896047e89262Smrg      ;;
896147e89262Smrg    esac
896247e89262Smrg  fi
896347e89262Smrg  ;;
896447e89262Smrgesac
896547e89262Smrg
896647e89262Smrg
8967bd1da9d7Smrg
8968bd1da9d7Smrg
8969bd1da9d7Smrg
8970bd1da9d7Smrg
8971bd1da9d7Smrg
8972bd1da9d7Smrg
8973bd1da9d7Smrg
8974bd1da9d7Smrg
8975bd1da9d7Smrg
8976bd1da9d7Smrg
8977bd1da9d7Smrg
8978bd1da9d7Smrg
8979bd1da9d7Smrg
8980bd1da9d7Smrg
8981bd1da9d7Smrg
8982bd1da9d7Smrg
8983bd1da9d7Smrg
8984bd1da9d7Smrg
8985bd1da9d7Smrg
8986bd1da9d7Smrg
8987bd1da9d7Smrg
8988bd1da9d7Smrg
8989bd1da9d7Smrg
8990bd1da9d7Smrg
8991bd1da9d7Smrg
8992bd1da9d7Smrg
89935bcb6992Smrg
8994bd1da9d7Smrg
8995bd1da9d7Smrg
8996bd1da9d7Smrg
8997bd1da9d7Smrg
8998bd1da9d7Smrg
8999bd1da9d7Smrg
9000bd1da9d7Smrg
90015bcb6992Smrg
9002bd1da9d7Smrg
9003bd1da9d7Smrg
9004bd1da9d7Smrg
9005bd1da9d7Smrg
9006bd1da9d7Smrg
9007bd1da9d7Smrg
90085bcb6992Smrg
9009bd1da9d7Smrg
9010bd1da9d7Smrg
9011bd1da9d7Smrg
9012bd1da9d7Smrg
9013bd1da9d7Smrg
9014bd1da9d7Smrg
9015bd1da9d7Smrg
9016bd1da9d7Smrg
9017bd1da9d7Smrg
9018bd1da9d7Smrg
9019bd1da9d7Smrg
9020bd1da9d7Smrg
9021bd1da9d7Smrg
9022bd1da9d7Smrg
9023bd1da9d7Smrg
9024bd1da9d7Smrg
9025bd1da9d7Smrg
9026bd1da9d7Smrg
9027bd1da9d7Smrg
9028bd1da9d7Smrg
9029bd1da9d7Smrg
9030bd1da9d7Smrg
9031bd1da9d7Smrg
9032bd1da9d7Smrg
9033bd1da9d7Smrg
9034bd1da9d7Smrg
9035bd1da9d7Smrg
9036bd1da9d7Smrg
9037bd1da9d7Smrg
9038bd1da9d7Smrg
9039bd1da9d7Smrg
9040bd1da9d7Smrg
9041bd1da9d7Smrg
9042bd1da9d7Smrg
9043bd1da9d7Smrg
9044bd1da9d7Smrg
9045bd1da9d7Smrg
9046bd1da9d7Smrg
9047bd1da9d7Smrg
9048bd1da9d7Smrg
9049bd1da9d7Smrg
9050bd1da9d7Smrg
9051bd1da9d7Smrg
9052bd1da9d7Smrg
9053bd1da9d7Smrg
9054bd1da9d7Smrg
9055bd1da9d7Smrg
9056bd1da9d7Smrg
9057bd1da9d7Smrg
9058bd1da9d7Smrg
9059bd1da9d7Smrg
9060bd1da9d7Smrg
9061bd1da9d7Smrg
9062bd1da9d7Smrg
9063bd1da9d7Smrg
90645bcb6992Smrg
9065bd1da9d7Smrg
9066bd1da9d7Smrg
9067bd1da9d7Smrg
9068bd1da9d7Smrg
9069bd1da9d7Smrg
9070bd1da9d7Smrg
90715bcb6992Smrg
9072bd1da9d7Smrg
9073bd1da9d7Smrg
9074bd1da9d7Smrg
9075bd1da9d7Smrg
9076bd1da9d7Smrg
9077bd1da9d7Smrg
9078bd1da9d7Smrg
9079bd1da9d7Smrg
9080bd1da9d7Smrg
9081bd1da9d7Smrg
9082bd1da9d7Smrg
9083bd1da9d7Smrg
9084bd1da9d7Smrg
9085bd1da9d7Smrg
9086bd1da9d7Smrg
9087bd1da9d7Smrg
9088bd1da9d7Smrg
9089bd1da9d7Smrg
9090bd1da9d7Smrg
9091bd1da9d7Smrg
9092bd1da9d7Smrg
9093bd1da9d7Smrg
9094bd1da9d7Smrg
9095bd1da9d7Smrg
9096bd1da9d7Smrg
9097bd1da9d7Smrg
9098bd1da9d7Smrg
9099bd1da9d7Smrg
9100bd1da9d7Smrg
9101bd1da9d7Smrg
9102bd1da9d7Smrg
9103bd1da9d7Smrg
9104bd1da9d7Smrg
9105bd1da9d7Smrg
9106bd1da9d7Smrg
9107bd1da9d7Smrg
9108bd1da9d7Smrg
9109bd1da9d7Smrg
9110bd1da9d7Smrg
9111bd1da9d7Smrg
9112bd1da9d7Smrg
9113bd1da9d7Smrg
9114bd1da9d7Smrg
9115bd1da9d7Smrg
9116bd1da9d7Smrg
911747e89262Smrg
911847e89262Smrg
911947e89262Smrg
912047e89262Smrg
912147e89262Smrg
912247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
91235bcb6992Smrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
912447e89262Smrg
912547e89262Smrgif test "$GCC" = yes; then
912647e89262Smrg  case $host_os in
912747e89262Smrg    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
912847e89262Smrg    *) lt_awk_arg="/^libraries:/" ;;
912947e89262Smrg  esac
913047e89262Smrg  case $host_os in
913147e89262Smrg    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
913247e89262Smrg    *) lt_sed_strip_eq="s,=/,/,g" ;;
913347e89262Smrg  esac
913447e89262Smrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
913547e89262Smrg  case $lt_search_path_spec in
913647e89262Smrg  *\;*)
913747e89262Smrg    # if the path contains ";" then we assume it to be the separator
913847e89262Smrg    # otherwise default to the standard path separator (i.e. ":") - it is
913947e89262Smrg    # assumed that no part of a normal pathname contains ";" but that should
914047e89262Smrg    # okay in the real world where ";" in dirpaths is itself problematic.
914147e89262Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
914247e89262Smrg    ;;
914347e89262Smrg  *)
914447e89262Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
914547e89262Smrg    ;;
914647e89262Smrg  esac
914747e89262Smrg  # Ok, now we have the path, separated by spaces, we can step through it
914847e89262Smrg  # and add multilib dir if necessary.
914947e89262Smrg  lt_tmp_lt_search_path_spec=
915047e89262Smrg  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
915147e89262Smrg  for lt_sys_path in $lt_search_path_spec; do
915247e89262Smrg    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
915347e89262Smrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
915447e89262Smrg    else
915547e89262Smrg      test -d "$lt_sys_path" && \
915647e89262Smrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
915747e89262Smrg    fi
915847e89262Smrg  done
915947e89262Smrg  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
916047e89262SmrgBEGIN {RS=" "; FS="/|\n";} {
916147e89262Smrg  lt_foo="";
916247e89262Smrg  lt_count=0;
916347e89262Smrg  for (lt_i = NF; lt_i > 0; lt_i--) {
916447e89262Smrg    if ($lt_i != "" && $lt_i != ".") {
916547e89262Smrg      if ($lt_i == "..") {
916647e89262Smrg        lt_count++;
916747e89262Smrg      } else {
916847e89262Smrg        if (lt_count == 0) {
916947e89262Smrg          lt_foo="/" $lt_i lt_foo;
917047e89262Smrg        } else {
917147e89262Smrg          lt_count--;
917247e89262Smrg        }
917347e89262Smrg      }
917447e89262Smrg    }
917547e89262Smrg  }
917647e89262Smrg  if (lt_foo != "") { lt_freq[lt_foo]++; }
917747e89262Smrg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
917847e89262Smrg}'`
917947e89262Smrg  # AWK program above erroneously prepends '/' to C:/dos/paths
918047e89262Smrg  # for these hosts.
918147e89262Smrg  case $host_os in
918247e89262Smrg    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
918347e89262Smrg      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
918447e89262Smrg  esac
918547e89262Smrg  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
918647e89262Smrgelse
918747e89262Smrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
918847e89262Smrgfi
9189bd1da9d7Smrglibrary_names_spec=
9190bd1da9d7Smrglibname_spec='lib$name'
9191bd1da9d7Smrgsoname_spec=
9192bd1da9d7Smrgshrext_cmds=".so"
9193bd1da9d7Smrgpostinstall_cmds=
9194bd1da9d7Smrgpostuninstall_cmds=
9195bd1da9d7Smrgfinish_cmds=
9196bd1da9d7Smrgfinish_eval=
9197bd1da9d7Smrgshlibpath_var=
9198bd1da9d7Smrgshlibpath_overrides_runpath=unknown
9199bd1da9d7Smrgversion_type=none
9200bd1da9d7Smrgdynamic_linker="$host_os ld.so"
9201bd1da9d7Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
9202bd1da9d7Smrgneed_lib_prefix=unknown
9203bd1da9d7Smrghardcode_into_libs=no
9204bd1da9d7Smrg
9205bd1da9d7Smrg# when you set need_version to no, make sure it does not cause -set_version
9206bd1da9d7Smrg# flags to be left without arguments
9207bd1da9d7Smrgneed_version=unknown
9208bd1da9d7Smrg
9209bd1da9d7Smrgcase $host_os in
9210bd1da9d7Smrgaix3*)
9211bd1da9d7Smrg  version_type=linux
9212bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9213bd1da9d7Smrg  shlibpath_var=LIBPATH
9214bd1da9d7Smrg
9215bd1da9d7Smrg  # AIX 3 has no versioning support, so we append a major version to the name.
9216bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9217bd1da9d7Smrg  ;;
9218bd1da9d7Smrg
92195bcb6992Smrgaix[4-9]*)
9220bd1da9d7Smrg  version_type=linux
9221bd1da9d7Smrg  need_lib_prefix=no
9222bd1da9d7Smrg  need_version=no
9223bd1da9d7Smrg  hardcode_into_libs=yes
9224bd1da9d7Smrg  if test "$host_cpu" = ia64; then
9225bd1da9d7Smrg    # AIX 5 supports IA64
9226bd1da9d7Smrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9227bd1da9d7Smrg    shlibpath_var=LD_LIBRARY_PATH
9228bd1da9d7Smrg  else
9229bd1da9d7Smrg    # With GCC up to 2.95.x, collect2 would create an import file
9230bd1da9d7Smrg    # for dependence libraries.  The import file would start with
9231bd1da9d7Smrg    # the line `#! .'.  This would cause the generated library to
9232bd1da9d7Smrg    # depend on `.', always an invalid library.  This was fixed in
9233bd1da9d7Smrg    # development snapshots of GCC prior to 3.0.
9234bd1da9d7Smrg    case $host_os in
9235bd1da9d7Smrg      aix4 | aix4.[01] | aix4.[01].*)
9236bd1da9d7Smrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9237bd1da9d7Smrg	   echo ' yes '
923847e89262Smrg	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9239bd1da9d7Smrg	:
9240bd1da9d7Smrg      else
9241bd1da9d7Smrg	can_build_shared=no
9242bd1da9d7Smrg      fi
9243bd1da9d7Smrg      ;;
9244bd1da9d7Smrg    esac
9245bd1da9d7Smrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9246bd1da9d7Smrg    # soname into executable. Probably we can add versioning support to
9247bd1da9d7Smrg    # collect2, so additional links can be useful in future.
9248bd1da9d7Smrg    if test "$aix_use_runtimelinking" = yes; then
9249bd1da9d7Smrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9250bd1da9d7Smrg      # instead of lib<name>.a to let people know that these are not
9251bd1da9d7Smrg      # typical AIX shared libraries.
9252bd1da9d7Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253bd1da9d7Smrg    else
9254bd1da9d7Smrg      # We preserve .a as extension for shared libraries through AIX4.2
9255bd1da9d7Smrg      # and later when we are not doing run time linking.
9256bd1da9d7Smrg      library_names_spec='${libname}${release}.a $libname.a'
9257bd1da9d7Smrg      soname_spec='${libname}${release}${shared_ext}$major'
9258bd1da9d7Smrg    fi
9259bd1da9d7Smrg    shlibpath_var=LIBPATH
9260bd1da9d7Smrg  fi
9261bd1da9d7Smrg  ;;
9262bd1da9d7Smrg
9263bd1da9d7Smrgamigaos*)
926447e89262Smrg  case $host_cpu in
926547e89262Smrg  powerpc)
926647e89262Smrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
926747e89262Smrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
926847e89262Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
926947e89262Smrg    ;;
927047e89262Smrg  m68k)
927147e89262Smrg    library_names_spec='$libname.ixlibrary $libname.a'
927247e89262Smrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
927347e89262Smrg    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
927447e89262Smrg    ;;
927547e89262Smrg  esac
9276bd1da9d7Smrg  ;;
9277bd1da9d7Smrg
9278bd1da9d7Smrgbeos*)
9279bd1da9d7Smrg  library_names_spec='${libname}${shared_ext}'
9280bd1da9d7Smrg  dynamic_linker="$host_os ld.so"
9281bd1da9d7Smrg  shlibpath_var=LIBRARY_PATH
9282bd1da9d7Smrg  ;;
9283bd1da9d7Smrg
9284bd1da9d7Smrgbsdi[45]*)
9285bd1da9d7Smrg  version_type=linux
9286bd1da9d7Smrg  need_version=no
9287bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9289bd1da9d7Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9290bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9291bd1da9d7Smrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9292bd1da9d7Smrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9293bd1da9d7Smrg  # the default ld.so.conf also contains /usr/contrib/lib and
9294bd1da9d7Smrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9295bd1da9d7Smrg  # libtool to hard-code these into programs
9296bd1da9d7Smrg  ;;
9297bd1da9d7Smrg
929847e89262Smrgcygwin* | mingw* | pw32* | cegcc*)
9299bd1da9d7Smrg  version_type=windows
9300bd1da9d7Smrg  shrext_cmds=".dll"
9301bd1da9d7Smrg  need_version=no
9302bd1da9d7Smrg  need_lib_prefix=no
9303bd1da9d7Smrg
9304bd1da9d7Smrg  case $GCC,$host_os in
930547e89262Smrg  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9306bd1da9d7Smrg    library_names_spec='$libname.dll.a'
9307bd1da9d7Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9308bd1da9d7Smrg    postinstall_cmds='base_file=`basename \${file}`~
930947e89262Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9310bd1da9d7Smrg      dldir=$destdir/`dirname \$dlpath`~
9311bd1da9d7Smrg      test -d \$dldir || mkdir -p \$dldir~
9312bd1da9d7Smrg      $install_prog $dir/$dlname \$dldir/$dlname~
931347e89262Smrg      chmod a+x \$dldir/$dlname~
931447e89262Smrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
931547e89262Smrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
931647e89262Smrg      fi'
9317bd1da9d7Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9318bd1da9d7Smrg      dlpath=$dir/\$dldll~
931947e89262Smrg       $RM \$dlpath'
9320bd1da9d7Smrg    shlibpath_overrides_runpath=yes
9321bd1da9d7Smrg
9322bd1da9d7Smrg    case $host_os in
9323bd1da9d7Smrg    cygwin*)
9324bd1da9d7Smrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9325bd1da9d7Smrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
932647e89262Smrg
932747e89262Smrg      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9328bd1da9d7Smrg      ;;
932947e89262Smrg    mingw* | cegcc*)
9330bd1da9d7Smrg      # MinGW DLLs use traditional 'lib' prefix
9331bd1da9d7Smrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9332bd1da9d7Smrg      ;;
9333bd1da9d7Smrg    pw32*)
9334bd1da9d7Smrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
9335bd1da9d7Smrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9336bd1da9d7Smrg      ;;
9337bd1da9d7Smrg    esac
9338bd1da9d7Smrg    ;;
9339bd1da9d7Smrg
9340bd1da9d7Smrg  *)
9341bd1da9d7Smrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9342bd1da9d7Smrg    ;;
9343bd1da9d7Smrg  esac
9344bd1da9d7Smrg  dynamic_linker='Win32 ld.exe'
9345bd1da9d7Smrg  # FIXME: first we should search . and the directory the executable is in
9346bd1da9d7Smrg  shlibpath_var=PATH
9347bd1da9d7Smrg  ;;
9348bd1da9d7Smrg
9349bd1da9d7Smrgdarwin* | rhapsody*)
9350bd1da9d7Smrg  dynamic_linker="$host_os dyld"
9351bd1da9d7Smrg  version_type=darwin
9352bd1da9d7Smrg  need_lib_prefix=no
9353bd1da9d7Smrg  need_version=no
935447e89262Smrg  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9355bd1da9d7Smrg  soname_spec='${libname}${release}${major}$shared_ext'
9356bd1da9d7Smrg  shlibpath_overrides_runpath=yes
9357bd1da9d7Smrg  shlibpath_var=DYLD_LIBRARY_PATH
9358bd1da9d7Smrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
93595bcb6992Smrg
936047e89262Smrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9361bd1da9d7Smrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9362bd1da9d7Smrg  ;;
9363bd1da9d7Smrg
9364bd1da9d7Smrgdgux*)
9365bd1da9d7Smrg  version_type=linux
9366bd1da9d7Smrg  need_lib_prefix=no
9367bd1da9d7Smrg  need_version=no
9368bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9369bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9370bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9371bd1da9d7Smrg  ;;
9372bd1da9d7Smrg
9373bd1da9d7Smrgfreebsd1*)
9374bd1da9d7Smrg  dynamic_linker=no
9375bd1da9d7Smrg  ;;
9376bd1da9d7Smrg
9377bd1da9d7Smrgfreebsd* | dragonfly*)
9378bd1da9d7Smrg  # DragonFly does not have aout.  When/if they implement a new
9379bd1da9d7Smrg  # versioning mechanism, adjust this.
9380bd1da9d7Smrg  if test -x /usr/bin/objformat; then
9381bd1da9d7Smrg    objformat=`/usr/bin/objformat`
9382bd1da9d7Smrg  else
9383bd1da9d7Smrg    case $host_os in
9384bd1da9d7Smrg    freebsd[123]*) objformat=aout ;;
9385bd1da9d7Smrg    *) objformat=elf ;;
9386bd1da9d7Smrg    esac
9387bd1da9d7Smrg  fi
9388bd1da9d7Smrg  version_type=freebsd-$objformat
9389bd1da9d7Smrg  case $version_type in
9390bd1da9d7Smrg    freebsd-elf*)
9391bd1da9d7Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9392bd1da9d7Smrg      need_version=no
9393bd1da9d7Smrg      need_lib_prefix=no
9394bd1da9d7Smrg      ;;
9395bd1da9d7Smrg    freebsd-*)
9396bd1da9d7Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9397bd1da9d7Smrg      need_version=yes
9398bd1da9d7Smrg      ;;
9399bd1da9d7Smrg  esac
9400bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9401bd1da9d7Smrg  case $host_os in
9402bd1da9d7Smrg  freebsd2*)
9403bd1da9d7Smrg    shlibpath_overrides_runpath=yes
9404bd1da9d7Smrg    ;;
9405bd1da9d7Smrg  freebsd3.[01]* | freebsdelf3.[01]*)
9406bd1da9d7Smrg    shlibpath_overrides_runpath=yes
9407bd1da9d7Smrg    hardcode_into_libs=yes
9408bd1da9d7Smrg    ;;
9409bd1da9d7Smrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9410bd1da9d7Smrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9411bd1da9d7Smrg    shlibpath_overrides_runpath=no
9412bd1da9d7Smrg    hardcode_into_libs=yes
9413bd1da9d7Smrg    ;;
94145bcb6992Smrg  *) # from 4.6 on, and DragonFly
9415bd1da9d7Smrg    shlibpath_overrides_runpath=yes
9416bd1da9d7Smrg    hardcode_into_libs=yes
9417bd1da9d7Smrg    ;;
9418bd1da9d7Smrg  esac
9419bd1da9d7Smrg  ;;
9420bd1da9d7Smrg
9421bd1da9d7Smrggnu*)
9422bd1da9d7Smrg  version_type=linux
9423bd1da9d7Smrg  need_lib_prefix=no
9424bd1da9d7Smrg  need_version=no
9425bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9426bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9427bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9428bd1da9d7Smrg  hardcode_into_libs=yes
9429bd1da9d7Smrg  ;;
9430bd1da9d7Smrg
943147e89262Smrghaiku*)
943247e89262Smrg  version_type=linux
943347e89262Smrg  need_lib_prefix=no
943447e89262Smrg  need_version=no
943547e89262Smrg  dynamic_linker="$host_os runtime_loader"
943647e89262Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
943747e89262Smrg  soname_spec='${libname}${release}${shared_ext}$major'
943847e89262Smrg  shlibpath_var=LIBRARY_PATH
943947e89262Smrg  shlibpath_overrides_runpath=yes
944047e89262Smrg  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
944147e89262Smrg  hardcode_into_libs=yes
944247e89262Smrg  ;;
944347e89262Smrg
9444bd1da9d7Smrghpux9* | hpux10* | hpux11*)
9445bd1da9d7Smrg  # Give a soname corresponding to the major version so that dld.sl refuses to
9446bd1da9d7Smrg  # link against other versions.
9447bd1da9d7Smrg  version_type=sunos
9448bd1da9d7Smrg  need_lib_prefix=no
9449bd1da9d7Smrg  need_version=no
9450bd1da9d7Smrg  case $host_cpu in
9451bd1da9d7Smrg  ia64*)
9452bd1da9d7Smrg    shrext_cmds='.so'
9453bd1da9d7Smrg    hardcode_into_libs=yes
9454bd1da9d7Smrg    dynamic_linker="$host_os dld.so"
9455bd1da9d7Smrg    shlibpath_var=LD_LIBRARY_PATH
9456bd1da9d7Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9457bd1da9d7Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458bd1da9d7Smrg    soname_spec='${libname}${release}${shared_ext}$major'
9459bd1da9d7Smrg    if test "X$HPUX_IA64_MODE" = X32; then
9460bd1da9d7Smrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9461bd1da9d7Smrg    else
9462bd1da9d7Smrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9463bd1da9d7Smrg    fi
9464bd1da9d7Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9465bd1da9d7Smrg    ;;
946647e89262Smrg  hppa*64*)
946747e89262Smrg    shrext_cmds='.sl'
946847e89262Smrg    hardcode_into_libs=yes
946947e89262Smrg    dynamic_linker="$host_os dld.sl"
947047e89262Smrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
947147e89262Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
947247e89262Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
947347e89262Smrg    soname_spec='${libname}${release}${shared_ext}$major'
947447e89262Smrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
947547e89262Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
947647e89262Smrg    ;;
947747e89262Smrg  *)
9478bd1da9d7Smrg    shrext_cmds='.sl'
9479bd1da9d7Smrg    dynamic_linker="$host_os dld.sl"
9480bd1da9d7Smrg    shlibpath_var=SHLIB_PATH
9481bd1da9d7Smrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9482bd1da9d7Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483bd1da9d7Smrg    soname_spec='${libname}${release}${shared_ext}$major'
9484bd1da9d7Smrg    ;;
9485bd1da9d7Smrg  esac
948647e89262Smrg  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9487bd1da9d7Smrg  postinstall_cmds='chmod 555 $lib'
948847e89262Smrg  # or fails outright, so override atomically:
948947e89262Smrg  install_override_mode=555
9490bd1da9d7Smrg  ;;
9491bd1da9d7Smrg
94925bcb6992Smrginterix[3-9]*)
9493bd1da9d7Smrg  version_type=linux
9494bd1da9d7Smrg  need_lib_prefix=no
9495bd1da9d7Smrg  need_version=no
9496bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9497bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9498bd1da9d7Smrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9499bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9500bd1da9d7Smrg  shlibpath_overrides_runpath=no
9501bd1da9d7Smrg  hardcode_into_libs=yes
9502bd1da9d7Smrg  ;;
9503bd1da9d7Smrg
9504bd1da9d7Smrgirix5* | irix6* | nonstopux*)
9505bd1da9d7Smrg  case $host_os in
9506bd1da9d7Smrg    nonstopux*) version_type=nonstopux ;;
9507bd1da9d7Smrg    *)
9508bd1da9d7Smrg	if test "$lt_cv_prog_gnu_ld" = yes; then
9509bd1da9d7Smrg		version_type=linux
9510bd1da9d7Smrg	else
9511bd1da9d7Smrg		version_type=irix
9512bd1da9d7Smrg	fi ;;
9513bd1da9d7Smrg  esac
9514bd1da9d7Smrg  need_lib_prefix=no
9515bd1da9d7Smrg  need_version=no
9516bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9517bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9518bd1da9d7Smrg  case $host_os in
9519bd1da9d7Smrg  irix5* | nonstopux*)
9520bd1da9d7Smrg    libsuff= shlibsuff=
9521bd1da9d7Smrg    ;;
9522bd1da9d7Smrg  *)
9523bd1da9d7Smrg    case $LD in # libtool.m4 will add one of these switches to LD
9524bd1da9d7Smrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9525bd1da9d7Smrg      libsuff= shlibsuff= libmagic=32-bit;;
9526bd1da9d7Smrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9527bd1da9d7Smrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
9528bd1da9d7Smrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9529bd1da9d7Smrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9530bd1da9d7Smrg    *) libsuff= shlibsuff= libmagic=never-match;;
9531bd1da9d7Smrg    esac
9532bd1da9d7Smrg    ;;
9533bd1da9d7Smrg  esac
9534bd1da9d7Smrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9535bd1da9d7Smrg  shlibpath_overrides_runpath=no
9536bd1da9d7Smrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9537bd1da9d7Smrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9538bd1da9d7Smrg  hardcode_into_libs=yes
9539bd1da9d7Smrg  ;;
9540bd1da9d7Smrg
9541bd1da9d7Smrg# No shared lib support for Linux oldld, aout, or coff.
9542bd1da9d7Smrglinux*oldld* | linux*aout* | linux*coff*)
9543bd1da9d7Smrg  dynamic_linker=no
9544bd1da9d7Smrg  ;;
9545bd1da9d7Smrg
9546bd1da9d7Smrg# This must be Linux ELF.
954747e89262Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
9548bd1da9d7Smrg  version_type=linux
9549bd1da9d7Smrg  need_lib_prefix=no
9550bd1da9d7Smrg  need_version=no
9551bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9553bd1da9d7Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9554bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9555bd1da9d7Smrg  shlibpath_overrides_runpath=no
955647e89262Smrg
955747e89262Smrg  # Some binutils ld are patched to set DT_RUNPATH
955847e89262Smrg  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
955947e89262Smrg  $as_echo_n "(cached) " >&6
956047e89262Smrgelse
956147e89262Smrg  lt_cv_shlibpath_overrides_runpath=no
956247e89262Smrg    save_LDFLAGS=$LDFLAGS
956347e89262Smrg    save_libdir=$libdir
956447e89262Smrg    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
956547e89262Smrg	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
956647e89262Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
956747e89262Smrg/* end confdefs.h.  */
956847e89262Smrg
956947e89262Smrgint
957047e89262Smrgmain ()
957147e89262Smrg{
957247e89262Smrg
957347e89262Smrg  ;
957447e89262Smrg  return 0;
957547e89262Smrg}
957647e89262Smrg_ACEOF
957747e89262Smrgif ac_fn_c_try_link "$LINENO"; then :
957847e89262Smrg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
957947e89262Smrg  lt_cv_shlibpath_overrides_runpath=yes
958047e89262Smrgfi
958147e89262Smrgfi
958247e89262Smrgrm -f core conftest.err conftest.$ac_objext \
958347e89262Smrg    conftest$ac_exeext conftest.$ac_ext
958447e89262Smrg    LDFLAGS=$save_LDFLAGS
958547e89262Smrg    libdir=$save_libdir
958647e89262Smrg
958747e89262Smrgfi
958847e89262Smrg
958947e89262Smrg  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
959047e89262Smrg
9591bd1da9d7Smrg  # This implies no fast_install, which is unacceptable.
9592bd1da9d7Smrg  # Some rework will be needed to allow for fast_install
9593bd1da9d7Smrg  # before this can be enabled.
9594bd1da9d7Smrg  hardcode_into_libs=yes
9595bd1da9d7Smrg
9596bd1da9d7Smrg  # Append ld.so.conf contents to the search path
9597bd1da9d7Smrg  if test -f /etc/ld.so.conf; then
959847e89262Smrg    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
9599bd1da9d7Smrg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9600bd1da9d7Smrg  fi
9601bd1da9d7Smrg
9602bd1da9d7Smrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
9603bd1da9d7Smrg  # powerpc, because MkLinux only supported shared libraries with the
9604bd1da9d7Smrg  # GNU dynamic linker.  Since this was broken with cross compilers,
9605bd1da9d7Smrg  # most powerpc-linux boxes support dynamic linking these days and
9606bd1da9d7Smrg  # people can always --disable-shared, the test was removed, and we
9607bd1da9d7Smrg  # assume the GNU/Linux dynamic linker is in use.
9608bd1da9d7Smrg  dynamic_linker='GNU/Linux ld.so'
9609bd1da9d7Smrg  ;;
9610bd1da9d7Smrg
9611bd1da9d7Smrgnetbsd*)
9612bd1da9d7Smrg  version_type=sunos
9613bd1da9d7Smrg  need_lib_prefix=no
9614bd1da9d7Smrg  need_version=no
961547e89262Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9616bd1da9d7Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9617bd1da9d7Smrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9618bd1da9d7Smrg    dynamic_linker='NetBSD (a.out) ld.so'
9619bd1da9d7Smrg  else
9620bd1da9d7Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9621bd1da9d7Smrg    soname_spec='${libname}${release}${shared_ext}$major'
9622bd1da9d7Smrg    dynamic_linker='NetBSD ld.elf_so'
9623bd1da9d7Smrg  fi
9624bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9625bd1da9d7Smrg  shlibpath_overrides_runpath=yes
9626bd1da9d7Smrg  hardcode_into_libs=yes
9627bd1da9d7Smrg  ;;
9628bd1da9d7Smrg
9629bd1da9d7Smrgnewsos6)
9630bd1da9d7Smrg  version_type=linux
9631bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9633bd1da9d7Smrg  shlibpath_overrides_runpath=yes
9634bd1da9d7Smrg  ;;
9635bd1da9d7Smrg
963647e89262Smrg*nto* | *qnx*)
963747e89262Smrg  version_type=qnx
9638bd1da9d7Smrg  need_lib_prefix=no
9639bd1da9d7Smrg  need_version=no
9640bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9642bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
964347e89262Smrg  shlibpath_overrides_runpath=no
964447e89262Smrg  hardcode_into_libs=yes
964547e89262Smrg  dynamic_linker='ldqnx.so'
9646bd1da9d7Smrg  ;;
9647bd1da9d7Smrg
9648bd1da9d7Smrgopenbsd*)
9649bd1da9d7Smrg  version_type=sunos
9650bd1da9d7Smrg  sys_lib_dlsearch_path_spec="/usr/lib"
9651bd1da9d7Smrg  need_lib_prefix=no
9652bd1da9d7Smrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9653bd1da9d7Smrg  case $host_os in
965447e89262Smrg    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
965547e89262Smrg    *)				need_version=no  ;;
9656bd1da9d7Smrg  esac
9657bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9658bd1da9d7Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9659bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
966047e89262Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9661bd1da9d7Smrg    case $host_os in
9662bd1da9d7Smrg      openbsd2.[89] | openbsd2.[89].*)
9663bd1da9d7Smrg	shlibpath_overrides_runpath=no
9664bd1da9d7Smrg	;;
9665bd1da9d7Smrg      *)
9666bd1da9d7Smrg	shlibpath_overrides_runpath=yes
9667bd1da9d7Smrg	;;
9668bd1da9d7Smrg      esac
9669bd1da9d7Smrg  else
9670bd1da9d7Smrg    shlibpath_overrides_runpath=yes
9671bd1da9d7Smrg  fi
9672bd1da9d7Smrg  ;;
9673bd1da9d7Smrg
9674bd1da9d7Smrgos2*)
9675bd1da9d7Smrg  libname_spec='$name'
9676bd1da9d7Smrg  shrext_cmds=".dll"
9677bd1da9d7Smrg  need_lib_prefix=no
9678bd1da9d7Smrg  library_names_spec='$libname${shared_ext} $libname.a'
9679bd1da9d7Smrg  dynamic_linker='OS/2 ld.exe'
9680bd1da9d7Smrg  shlibpath_var=LIBPATH
9681bd1da9d7Smrg  ;;
9682bd1da9d7Smrg
9683bd1da9d7Smrgosf3* | osf4* | osf5*)
9684bd1da9d7Smrg  version_type=osf
9685bd1da9d7Smrg  need_lib_prefix=no
9686bd1da9d7Smrg  need_version=no
9687bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9688bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9690bd1da9d7Smrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9691bd1da9d7Smrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9692bd1da9d7Smrg  ;;
9693bd1da9d7Smrg
96945bcb6992Smrgrdos*)
96955bcb6992Smrg  dynamic_linker=no
96965bcb6992Smrg  ;;
96975bcb6992Smrg
9698bd1da9d7Smrgsolaris*)
9699bd1da9d7Smrg  version_type=linux
9700bd1da9d7Smrg  need_lib_prefix=no
9701bd1da9d7Smrg  need_version=no
9702bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9704bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9705bd1da9d7Smrg  shlibpath_overrides_runpath=yes
9706bd1da9d7Smrg  hardcode_into_libs=yes
9707bd1da9d7Smrg  # ldd complains unless libraries are executable
9708bd1da9d7Smrg  postinstall_cmds='chmod +x $lib'
9709bd1da9d7Smrg  ;;
9710bd1da9d7Smrg
9711bd1da9d7Smrgsunos4*)
9712bd1da9d7Smrg  version_type=sunos
9713bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9714bd1da9d7Smrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9715bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9716bd1da9d7Smrg  shlibpath_overrides_runpath=yes
9717bd1da9d7Smrg  if test "$with_gnu_ld" = yes; then
9718bd1da9d7Smrg    need_lib_prefix=no
9719bd1da9d7Smrg  fi
9720bd1da9d7Smrg  need_version=yes
9721bd1da9d7Smrg  ;;
9722bd1da9d7Smrg
9723bd1da9d7Smrgsysv4 | sysv4.3*)
9724bd1da9d7Smrg  version_type=linux
9725bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9727bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9728bd1da9d7Smrg  case $host_vendor in
9729bd1da9d7Smrg    sni)
9730bd1da9d7Smrg      shlibpath_overrides_runpath=no
9731bd1da9d7Smrg      need_lib_prefix=no
9732bd1da9d7Smrg      runpath_var=LD_RUN_PATH
9733bd1da9d7Smrg      ;;
9734bd1da9d7Smrg    siemens)
9735bd1da9d7Smrg      need_lib_prefix=no
9736bd1da9d7Smrg      ;;
9737bd1da9d7Smrg    motorola)
9738bd1da9d7Smrg      need_lib_prefix=no
9739bd1da9d7Smrg      need_version=no
9740bd1da9d7Smrg      shlibpath_overrides_runpath=no
9741bd1da9d7Smrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9742bd1da9d7Smrg      ;;
9743bd1da9d7Smrg  esac
9744bd1da9d7Smrg  ;;
9745bd1da9d7Smrg
9746bd1da9d7Smrgsysv4*MP*)
9747bd1da9d7Smrg  if test -d /usr/nec ;then
9748bd1da9d7Smrg    version_type=linux
9749bd1da9d7Smrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9750bd1da9d7Smrg    soname_spec='$libname${shared_ext}.$major'
9751bd1da9d7Smrg    shlibpath_var=LD_LIBRARY_PATH
9752bd1da9d7Smrg  fi
9753bd1da9d7Smrg  ;;
9754bd1da9d7Smrg
9755bd1da9d7Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9756bd1da9d7Smrg  version_type=freebsd-elf
9757bd1da9d7Smrg  need_lib_prefix=no
9758bd1da9d7Smrg  need_version=no
9759bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9760bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9761bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
976247e89262Smrg  shlibpath_overrides_runpath=yes
9763bd1da9d7Smrg  hardcode_into_libs=yes
9764bd1da9d7Smrg  if test "$with_gnu_ld" = yes; then
9765bd1da9d7Smrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9766bd1da9d7Smrg  else
9767bd1da9d7Smrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9768bd1da9d7Smrg    case $host_os in
9769bd1da9d7Smrg      sco3.2v5*)
9770bd1da9d7Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9771bd1da9d7Smrg	;;
9772bd1da9d7Smrg    esac
9773bd1da9d7Smrg  fi
9774bd1da9d7Smrg  sys_lib_dlsearch_path_spec='/usr/lib'
9775bd1da9d7Smrg  ;;
9776bd1da9d7Smrg
977747e89262Smrgtpf*)
977847e89262Smrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
977947e89262Smrg  version_type=linux
978047e89262Smrg  need_lib_prefix=no
978147e89262Smrg  need_version=no
978247e89262Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
978347e89262Smrg  shlibpath_var=LD_LIBRARY_PATH
978447e89262Smrg  shlibpath_overrides_runpath=no
978547e89262Smrg  hardcode_into_libs=yes
978647e89262Smrg  ;;
978747e89262Smrg
9788bd1da9d7Smrguts4*)
9789bd1da9d7Smrg  version_type=linux
9790bd1da9d7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791bd1da9d7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
9792bd1da9d7Smrg  shlibpath_var=LD_LIBRARY_PATH
9793bd1da9d7Smrg  ;;
9794bd1da9d7Smrg
9795bd1da9d7Smrg*)
9796bd1da9d7Smrg  dynamic_linker=no
9797bd1da9d7Smrg  ;;
9798bd1da9d7Smrgesac
979947e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
98005bcb6992Smrg$as_echo "$dynamic_linker" >&6; }
9801bd1da9d7Smrgtest "$dynamic_linker" = no && can_build_shared=no
9802bd1da9d7Smrg
980347e89262Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
980447e89262Smrgif test "$GCC" = yes; then
980547e89262Smrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
980647e89262Smrgfi
980747e89262Smrg
98085bcb6992Smrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
980947e89262Smrg  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
981047e89262Smrgfi
981147e89262Smrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
981247e89262Smrg  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
981347e89262Smrgfi
981447e89262Smrg
981547e89262Smrg
981647e89262Smrg
981747e89262Smrg
981847e89262Smrg
981947e89262Smrg
982047e89262Smrg
982147e89262Smrg
982247e89262Smrg
982347e89262Smrg
982447e89262Smrg
982547e89262Smrg
982647e89262Smrg
982747e89262Smrg
982847e89262Smrg
982947e89262Smrg
983047e89262Smrg
983147e89262Smrg
983247e89262Smrg
983347e89262Smrg
983447e89262Smrg
983547e89262Smrg
983647e89262Smrg
983747e89262Smrg
983847e89262Smrg
983947e89262Smrg
984047e89262Smrg
984147e89262Smrg
984247e89262Smrg
984347e89262Smrg
984447e89262Smrg
984547e89262Smrg
984647e89262Smrg
984747e89262Smrg
984847e89262Smrg
984947e89262Smrg
985047e89262Smrg
985147e89262Smrg
985247e89262Smrg
985347e89262Smrg
985447e89262Smrg
985547e89262Smrg
985647e89262Smrg
985747e89262Smrg
985847e89262Smrg
985947e89262Smrg
986047e89262Smrg
986147e89262Smrg
986247e89262Smrg
986347e89262Smrg
986447e89262Smrg
986547e89262Smrg
986647e89262Smrg
986747e89262Smrg
986847e89262Smrg
986947e89262Smrg
987047e89262Smrg
987147e89262Smrg
987247e89262Smrg
987347e89262Smrg
987447e89262Smrg
987547e89262Smrg
987647e89262Smrg
987747e89262Smrg
987847e89262Smrg
987947e89262Smrg
988047e89262Smrg
988147e89262Smrg
988247e89262Smrg
988347e89262Smrg
988447e89262Smrg
988547e89262Smrg
988647e89262Smrg
988747e89262Smrg
988847e89262Smrg
988947e89262Smrg
989047e89262Smrg
989147e89262Smrg
989247e89262Smrg
989347e89262Smrg
989447e89262Smrg
989547e89262Smrg
989647e89262Smrg
989747e89262Smrg
989847e89262Smrg
989947e89262Smrg
990047e89262Smrg
990147e89262Smrg
990247e89262Smrg
990347e89262Smrg
990447e89262Smrg
990547e89262Smrg
990647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
990747e89262Smrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
990847e89262Smrghardcode_action=
990947e89262Smrgif test -n "$hardcode_libdir_flag_spec" ||
991047e89262Smrg   test -n "$runpath_var" ||
991147e89262Smrg   test "X$hardcode_automatic" = "Xyes" ; then
991247e89262Smrg
991347e89262Smrg  # We can hardcode non-existent directories.
991447e89262Smrg  if test "$hardcode_direct" != no &&
991547e89262Smrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
991647e89262Smrg     # have to relink, otherwise we might link with an installed library
991747e89262Smrg     # when we should be linking with a yet-to-be-installed one
991847e89262Smrg     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
991947e89262Smrg     test "$hardcode_minus_L" != no; then
992047e89262Smrg    # Linking always hardcodes the temporary library directory.
992147e89262Smrg    hardcode_action=relink
992247e89262Smrg  else
992347e89262Smrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
992447e89262Smrg    hardcode_action=immediate
992547e89262Smrg  fi
992647e89262Smrgelse
992747e89262Smrg  # We cannot hardcode anything, or else we can only hardcode existing
992847e89262Smrg  # directories.
992947e89262Smrg  hardcode_action=unsupported
993047e89262Smrgfi
993147e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
993247e89262Smrg$as_echo "$hardcode_action" >&6; }
993347e89262Smrg
993447e89262Smrgif test "$hardcode_action" = relink ||
993547e89262Smrg   test "$inherit_rpath" = yes; then
993647e89262Smrg  # Fast installation is not supported
993747e89262Smrg  enable_fast_install=no
993847e89262Smrgelif test "$shlibpath_overrides_runpath" = yes ||
993947e89262Smrg     test "$enable_shared" = no; then
994047e89262Smrg  # Fast installation is not necessary
994147e89262Smrg  enable_fast_install=needless
994247e89262Smrgfi
994347e89262Smrg
994447e89262Smrg
994547e89262Smrg
994647e89262Smrg
994747e89262Smrg
994847e89262Smrg
994947e89262Smrg  if test "x$enable_dlopen" != xyes; then
995047e89262Smrg  enable_dlopen=unknown
995147e89262Smrg  enable_dlopen_self=unknown
995247e89262Smrg  enable_dlopen_self_static=unknown
995347e89262Smrgelse
995447e89262Smrg  lt_cv_dlopen=no
995547e89262Smrg  lt_cv_dlopen_libs=
995647e89262Smrg
995747e89262Smrg  case $host_os in
995847e89262Smrg  beos*)
995947e89262Smrg    lt_cv_dlopen="load_add_on"
996047e89262Smrg    lt_cv_dlopen_libs=
996147e89262Smrg    lt_cv_dlopen_self=yes
996247e89262Smrg    ;;
996347e89262Smrg
996447e89262Smrg  mingw* | pw32* | cegcc*)
996547e89262Smrg    lt_cv_dlopen="LoadLibrary"
996647e89262Smrg    lt_cv_dlopen_libs=
996747e89262Smrg    ;;
996847e89262Smrg
996947e89262Smrg  cygwin*)
997047e89262Smrg    lt_cv_dlopen="dlopen"
997147e89262Smrg    lt_cv_dlopen_libs=
997247e89262Smrg    ;;
997347e89262Smrg
997447e89262Smrg  darwin*)
997547e89262Smrg  # if libdl is installed we need to link against it
997647e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
997747e89262Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
997847e89262Smrgif ${ac_cv_lib_dl_dlopen+:} false; then :
997947e89262Smrg  $as_echo_n "(cached) " >&6
998047e89262Smrgelse
998147e89262Smrg  ac_check_lib_save_LIBS=$LIBS
998247e89262SmrgLIBS="-ldl  $LIBS"
998347e89262Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
998447e89262Smrg/* end confdefs.h.  */
998547e89262Smrg
998647e89262Smrg/* Override any GCC internal prototype to avoid an error.
998747e89262Smrg   Use char because int might match the return type of a GCC
998847e89262Smrg   builtin and then its argument prototype would still apply.  */
998947e89262Smrg#ifdef __cplusplus
999047e89262Smrgextern "C"
999147e89262Smrg#endif
999247e89262Smrgchar dlopen ();
999347e89262Smrgint
999447e89262Smrgmain ()
999547e89262Smrg{
999647e89262Smrgreturn dlopen ();
999747e89262Smrg  ;
999847e89262Smrg  return 0;
999947e89262Smrg}
1000047e89262Smrg_ACEOF
1000147e89262Smrgif ac_fn_c_try_link "$LINENO"; then :
1000247e89262Smrg  ac_cv_lib_dl_dlopen=yes
1000347e89262Smrgelse
1000447e89262Smrg  ac_cv_lib_dl_dlopen=no
1000547e89262Smrgfi
1000647e89262Smrgrm -f core conftest.err conftest.$ac_objext \
1000747e89262Smrg    conftest$ac_exeext conftest.$ac_ext
1000847e89262SmrgLIBS=$ac_check_lib_save_LIBS
1000947e89262Smrgfi
1001047e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1001147e89262Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1001247e89262Smrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1001347e89262Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1001447e89262Smrgelse
1001547e89262Smrg
1001647e89262Smrg    lt_cv_dlopen="dyld"
1001747e89262Smrg    lt_cv_dlopen_libs=
1001847e89262Smrg    lt_cv_dlopen_self=yes
1001947e89262Smrg
1002047e89262Smrgfi
1002147e89262Smrg
1002247e89262Smrg    ;;
1002347e89262Smrg
1002447e89262Smrg  *)
1002547e89262Smrg    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1002647e89262Smrgif test "x$ac_cv_func_shl_load" = xyes; then :
1002747e89262Smrg  lt_cv_dlopen="shl_load"
1002847e89262Smrgelse
1002947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1003047e89262Smrg$as_echo_n "checking for shl_load in -ldld... " >&6; }
1003147e89262Smrgif ${ac_cv_lib_dld_shl_load+:} false; then :
1003247e89262Smrg  $as_echo_n "(cached) " >&6
1003347e89262Smrgelse
1003447e89262Smrg  ac_check_lib_save_LIBS=$LIBS
1003547e89262SmrgLIBS="-ldld  $LIBS"
1003647e89262Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1003747e89262Smrg/* end confdefs.h.  */
1003847e89262Smrg
1003947e89262Smrg/* Override any GCC internal prototype to avoid an error.
1004047e89262Smrg   Use char because int might match the return type of a GCC
1004147e89262Smrg   builtin and then its argument prototype would still apply.  */
1004247e89262Smrg#ifdef __cplusplus
1004347e89262Smrgextern "C"
1004447e89262Smrg#endif
1004547e89262Smrgchar shl_load ();
1004647e89262Smrgint
1004747e89262Smrgmain ()
1004847e89262Smrg{
1004947e89262Smrgreturn shl_load ();
1005047e89262Smrg  ;
1005147e89262Smrg  return 0;
1005247e89262Smrg}
1005347e89262Smrg_ACEOF
1005447e89262Smrgif ac_fn_c_try_link "$LINENO"; then :
1005547e89262Smrg  ac_cv_lib_dld_shl_load=yes
1005647e89262Smrgelse
1005747e89262Smrg  ac_cv_lib_dld_shl_load=no
1005847e89262Smrgfi
1005947e89262Smrgrm -f core conftest.err conftest.$ac_objext \
1006047e89262Smrg    conftest$ac_exeext conftest.$ac_ext
1006147e89262SmrgLIBS=$ac_check_lib_save_LIBS
1006247e89262Smrgfi
1006347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1006447e89262Smrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1006547e89262Smrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1006647e89262Smrg  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1006747e89262Smrgelse
1006847e89262Smrg  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1006947e89262Smrgif test "x$ac_cv_func_dlopen" = xyes; then :
1007047e89262Smrg  lt_cv_dlopen="dlopen"
1007147e89262Smrgelse
1007247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1007347e89262Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
1007447e89262Smrgif ${ac_cv_lib_dl_dlopen+:} false; then :
100755bcb6992Smrg  $as_echo_n "(cached) " >&6
100765bcb6992Smrgelse
1007747e89262Smrg  ac_check_lib_save_LIBS=$LIBS
1007847e89262SmrgLIBS="-ldl  $LIBS"
1007947e89262Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1008047e89262Smrg/* end confdefs.h.  */
1008147e89262Smrg
1008247e89262Smrg/* Override any GCC internal prototype to avoid an error.
1008347e89262Smrg   Use char because int might match the return type of a GCC
1008447e89262Smrg   builtin and then its argument prototype would still apply.  */
1008547e89262Smrg#ifdef __cplusplus
1008647e89262Smrgextern "C"
1008747e89262Smrg#endif
1008847e89262Smrgchar dlopen ();
1008947e89262Smrgint
1009047e89262Smrgmain ()
1009147e89262Smrg{
1009247e89262Smrgreturn dlopen ();
1009347e89262Smrg  ;
1009447e89262Smrg  return 0;
1009547e89262Smrg}
1009647e89262Smrg_ACEOF
1009747e89262Smrgif ac_fn_c_try_link "$LINENO"; then :
1009847e89262Smrg  ac_cv_lib_dl_dlopen=yes
1009947e89262Smrgelse
1010047e89262Smrg  ac_cv_lib_dl_dlopen=no
101015bcb6992Smrgfi
1010247e89262Smrgrm -f core conftest.err conftest.$ac_objext \
1010347e89262Smrg    conftest$ac_exeext conftest.$ac_ext
1010447e89262SmrgLIBS=$ac_check_lib_save_LIBS
1010547e89262Smrgfi
1010647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1010747e89262Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1010847e89262Smrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1010947e89262Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1011047e89262Smrgelse
1011147e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1011247e89262Smrg$as_echo_n "checking for dlopen in -lsvld... " >&6; }
1011347e89262Smrgif ${ac_cv_lib_svld_dlopen+:} false; then :
101145bcb6992Smrg  $as_echo_n "(cached) " >&6
101155bcb6992Smrgelse
1011647e89262Smrg  ac_check_lib_save_LIBS=$LIBS
1011747e89262SmrgLIBS="-lsvld  $LIBS"
1011847e89262Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1011947e89262Smrg/* end confdefs.h.  */
101205bcb6992Smrg
1012147e89262Smrg/* Override any GCC internal prototype to avoid an error.
1012247e89262Smrg   Use char because int might match the return type of a GCC
1012347e89262Smrg   builtin and then its argument prototype would still apply.  */
1012447e89262Smrg#ifdef __cplusplus
1012547e89262Smrgextern "C"
1012647e89262Smrg#endif
1012747e89262Smrgchar dlopen ();
1012847e89262Smrgint
1012947e89262Smrgmain ()
1013047e89262Smrg{
1013147e89262Smrgreturn dlopen ();
1013247e89262Smrg  ;
1013347e89262Smrg  return 0;
1013447e89262Smrg}
1013547e89262Smrg_ACEOF
1013647e89262Smrgif ac_fn_c_try_link "$LINENO"; then :
1013747e89262Smrg  ac_cv_lib_svld_dlopen=yes
1013847e89262Smrgelse
1013947e89262Smrg  ac_cv_lib_svld_dlopen=no
10140bd1da9d7Smrgfi
1014147e89262Smrgrm -f core conftest.err conftest.$ac_objext \
1014247e89262Smrg    conftest$ac_exeext conftest.$ac_ext
1014347e89262SmrgLIBS=$ac_check_lib_save_LIBS
1014447e89262Smrgfi
1014547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1014647e89262Smrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1014747e89262Smrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1014847e89262Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1014947e89262Smrgelse
1015047e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1015147e89262Smrg$as_echo_n "checking for dld_link in -ldld... " >&6; }
1015247e89262Smrgif ${ac_cv_lib_dld_dld_link+:} false; then :
1015347e89262Smrg  $as_echo_n "(cached) " >&6
1015447e89262Smrgelse
1015547e89262Smrg  ac_check_lib_save_LIBS=$LIBS
1015647e89262SmrgLIBS="-ldld  $LIBS"
1015747e89262Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1015847e89262Smrg/* end confdefs.h.  */
10159bd1da9d7Smrg
1016047e89262Smrg/* Override any GCC internal prototype to avoid an error.
1016147e89262Smrg   Use char because int might match the return type of a GCC
1016247e89262Smrg   builtin and then its argument prototype would still apply.  */
1016347e89262Smrg#ifdef __cplusplus
1016447e89262Smrgextern "C"
1016547e89262Smrg#endif
1016647e89262Smrgchar dld_link ();
1016747e89262Smrgint
1016847e89262Smrgmain ()
1016947e89262Smrg{
1017047e89262Smrgreturn dld_link ();
1017147e89262Smrg  ;
1017247e89262Smrg  return 0;
1017347e89262Smrg}
1017447e89262Smrg_ACEOF
1017547e89262Smrgif ac_fn_c_try_link "$LINENO"; then :
1017647e89262Smrg  ac_cv_lib_dld_dld_link=yes
10177bd1da9d7Smrgelse
1017847e89262Smrg  ac_cv_lib_dld_dld_link=no
10179bd1da9d7Smrgfi
1018047e89262Smrgrm -f core conftest.err conftest.$ac_objext \
1018147e89262Smrg    conftest$ac_exeext conftest.$ac_ext
1018247e89262SmrgLIBS=$ac_check_lib_save_LIBS
1018347e89262Smrgfi
1018447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1018547e89262Smrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1018647e89262Smrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1018747e89262Smrg  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10188bd1da9d7Smrgfi
10189bd1da9d7Smrg
10190bd1da9d7Smrg
1019147e89262Smrgfi
10192bd1da9d7Smrg
10193bd1da9d7Smrg
1019447e89262Smrgfi
10195bd1da9d7Smrg
10196bd1da9d7Smrg
1019747e89262Smrgfi
10198bd1da9d7Smrg
10199bd1da9d7Smrg
1020047e89262Smrgfi
10201bd1da9d7Smrg
10202bd1da9d7Smrg
1020347e89262Smrgfi
10204bd1da9d7Smrg
1020547e89262Smrg    ;;
1020647e89262Smrg  esac
10207bd1da9d7Smrg
1020847e89262Smrg  if test "x$lt_cv_dlopen" != xno; then
1020947e89262Smrg    enable_dlopen=yes
1021047e89262Smrg  else
1021147e89262Smrg    enable_dlopen=no
1021247e89262Smrg  fi
10213bd1da9d7Smrg
1021447e89262Smrg  case $lt_cv_dlopen in
1021547e89262Smrg  dlopen)
1021647e89262Smrg    save_CPPFLAGS="$CPPFLAGS"
1021747e89262Smrg    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10218bd1da9d7Smrg
1021947e89262Smrg    save_LDFLAGS="$LDFLAGS"
1022047e89262Smrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10221bd1da9d7Smrg
1022247e89262Smrg    save_LIBS="$LIBS"
1022347e89262Smrg    LIBS="$lt_cv_dlopen_libs $LIBS"
10224bd1da9d7Smrg
1022547e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1022647e89262Smrg$as_echo_n "checking whether a program can dlopen itself... " >&6; }
1022747e89262Smrgif ${lt_cv_dlopen_self+:} false; then :
1022847e89262Smrg  $as_echo_n "(cached) " >&6
1022947e89262Smrgelse
1023047e89262Smrg  	  if test "$cross_compiling" = yes; then :
1023147e89262Smrg  lt_cv_dlopen_self=cross
1023247e89262Smrgelse
1023347e89262Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1023447e89262Smrg  lt_status=$lt_dlunknown
1023547e89262Smrg  cat > conftest.$ac_ext <<_LT_EOF
1023647e89262Smrg#line $LINENO "configure"
1023747e89262Smrg#include "confdefs.h"
10238bd1da9d7Smrg
1023947e89262Smrg#if HAVE_DLFCN_H
1024047e89262Smrg#include <dlfcn.h>
1024147e89262Smrg#endif
10242bd1da9d7Smrg
1024347e89262Smrg#include <stdio.h>
10244bd1da9d7Smrg
1024547e89262Smrg#ifdef RTLD_GLOBAL
1024647e89262Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
1024747e89262Smrg#else
1024847e89262Smrg#  ifdef DL_GLOBAL
1024947e89262Smrg#    define LT_DLGLOBAL		DL_GLOBAL
1025047e89262Smrg#  else
1025147e89262Smrg#    define LT_DLGLOBAL		0
1025247e89262Smrg#  endif
1025347e89262Smrg#endif
10254bd1da9d7Smrg
1025547e89262Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1025647e89262Smrg   find out it does not work in some platform. */
1025747e89262Smrg#ifndef LT_DLLAZY_OR_NOW
1025847e89262Smrg#  ifdef RTLD_LAZY
1025947e89262Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
1026047e89262Smrg#  else
1026147e89262Smrg#    ifdef DL_LAZY
1026247e89262Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
1026347e89262Smrg#    else
1026447e89262Smrg#      ifdef RTLD_NOW
1026547e89262Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
1026647e89262Smrg#      else
1026747e89262Smrg#        ifdef DL_NOW
1026847e89262Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
1026947e89262Smrg#        else
1027047e89262Smrg#          define LT_DLLAZY_OR_NOW	0
1027147e89262Smrg#        endif
1027247e89262Smrg#      endif
1027347e89262Smrg#    endif
1027447e89262Smrg#  endif
1027547e89262Smrg#endif
10276bd1da9d7Smrg
1027747e89262Smrg/* When -fvisbility=hidden is used, assume the code has been annotated
1027847e89262Smrg   correspondingly for the symbols needed.  */
1027947e89262Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1028047e89262Smrgvoid fnord () __attribute__((visibility("default")));
1028147e89262Smrg#endif
10282bd1da9d7Smrg
1028347e89262Smrgvoid fnord () { int i=42; }
1028447e89262Smrgint main ()
1028547e89262Smrg{
1028647e89262Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1028747e89262Smrg  int status = $lt_dlunknown;
10288bd1da9d7Smrg
1028947e89262Smrg  if (self)
1029047e89262Smrg    {
1029147e89262Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1029247e89262Smrg      else
1029347e89262Smrg        {
1029447e89262Smrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
1029547e89262Smrg          else puts (dlerror ());
1029647e89262Smrg	}
1029747e89262Smrg      /* dlclose (self); */
1029847e89262Smrg    }
1029947e89262Smrg  else
1030047e89262Smrg    puts (dlerror ());
10301bd1da9d7Smrg
1030247e89262Smrg  return status;
1030347e89262Smrg}
1030447e89262Smrg_LT_EOF
1030547e89262Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1030647e89262Smrg  (eval $ac_link) 2>&5
1030747e89262Smrg  ac_status=$?
1030847e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1030947e89262Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1031047e89262Smrg    (./conftest; exit; ) >&5 2>/dev/null
1031147e89262Smrg    lt_status=$?
1031247e89262Smrg    case x$lt_status in
1031347e89262Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
1031447e89262Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1031547e89262Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1031647e89262Smrg    esac
1031747e89262Smrg  else :
1031847e89262Smrg    # compilation failed
1031947e89262Smrg    lt_cv_dlopen_self=no
1032047e89262Smrg  fi
1032147e89262Smrgfi
1032247e89262Smrgrm -fr conftest*
10323bd1da9d7Smrg
10324bd1da9d7Smrg
1032547e89262Smrgfi
1032647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1032747e89262Smrg$as_echo "$lt_cv_dlopen_self" >&6; }
10328bd1da9d7Smrg
1032947e89262Smrg    if test "x$lt_cv_dlopen_self" = xyes; then
1033047e89262Smrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1033147e89262Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1033247e89262Smrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1033347e89262Smrgif ${lt_cv_dlopen_self_static+:} false; then :
1033447e89262Smrg  $as_echo_n "(cached) " >&6
1033547e89262Smrgelse
1033647e89262Smrg  	  if test "$cross_compiling" = yes; then :
1033747e89262Smrg  lt_cv_dlopen_self_static=cross
1033847e89262Smrgelse
1033947e89262Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1034047e89262Smrg  lt_status=$lt_dlunknown
1034147e89262Smrg  cat > conftest.$ac_ext <<_LT_EOF
1034247e89262Smrg#line $LINENO "configure"
1034347e89262Smrg#include "confdefs.h"
10344bd1da9d7Smrg
1034547e89262Smrg#if HAVE_DLFCN_H
1034647e89262Smrg#include <dlfcn.h>
1034747e89262Smrg#endif
10348bd1da9d7Smrg
1034947e89262Smrg#include <stdio.h>
10350bd1da9d7Smrg
1035147e89262Smrg#ifdef RTLD_GLOBAL
1035247e89262Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
1035347e89262Smrg#else
1035447e89262Smrg#  ifdef DL_GLOBAL
1035547e89262Smrg#    define LT_DLGLOBAL		DL_GLOBAL
1035647e89262Smrg#  else
1035747e89262Smrg#    define LT_DLGLOBAL		0
1035847e89262Smrg#  endif
1035947e89262Smrg#endif
10360bd1da9d7Smrg
1036147e89262Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1036247e89262Smrg   find out it does not work in some platform. */
1036347e89262Smrg#ifndef LT_DLLAZY_OR_NOW
1036447e89262Smrg#  ifdef RTLD_LAZY
1036547e89262Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
1036647e89262Smrg#  else
1036747e89262Smrg#    ifdef DL_LAZY
1036847e89262Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
1036947e89262Smrg#    else
1037047e89262Smrg#      ifdef RTLD_NOW
1037147e89262Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
1037247e89262Smrg#      else
1037347e89262Smrg#        ifdef DL_NOW
1037447e89262Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
1037547e89262Smrg#        else
1037647e89262Smrg#          define LT_DLLAZY_OR_NOW	0
1037747e89262Smrg#        endif
1037847e89262Smrg#      endif
1037947e89262Smrg#    endif
1038047e89262Smrg#  endif
1038147e89262Smrg#endif
10382bd1da9d7Smrg
1038347e89262Smrg/* When -fvisbility=hidden is used, assume the code has been annotated
1038447e89262Smrg   correspondingly for the symbols needed.  */
1038547e89262Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1038647e89262Smrgvoid fnord () __attribute__((visibility("default")));
1038747e89262Smrg#endif
10388bd1da9d7Smrg
1038947e89262Smrgvoid fnord () { int i=42; }
1039047e89262Smrgint main ()
1039147e89262Smrg{
1039247e89262Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1039347e89262Smrg  int status = $lt_dlunknown;
10394bd1da9d7Smrg
1039547e89262Smrg  if (self)
1039647e89262Smrg    {
1039747e89262Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1039847e89262Smrg      else
1039947e89262Smrg        {
1040047e89262Smrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
1040147e89262Smrg          else puts (dlerror ());
1040247e89262Smrg	}
1040347e89262Smrg      /* dlclose (self); */
1040447e89262Smrg    }
1040547e89262Smrg  else
1040647e89262Smrg    puts (dlerror ());
10407bd1da9d7Smrg
1040847e89262Smrg  return status;
1040947e89262Smrg}
1041047e89262Smrg_LT_EOF
1041147e89262Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1041247e89262Smrg  (eval $ac_link) 2>&5
1041347e89262Smrg  ac_status=$?
1041447e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1041547e89262Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1041647e89262Smrg    (./conftest; exit; ) >&5 2>/dev/null
1041747e89262Smrg    lt_status=$?
1041847e89262Smrg    case x$lt_status in
1041947e89262Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
1042047e89262Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1042147e89262Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1042247e89262Smrg    esac
1042347e89262Smrg  else :
1042447e89262Smrg    # compilation failed
1042547e89262Smrg    lt_cv_dlopen_self_static=no
1042647e89262Smrg  fi
1042747e89262Smrgfi
1042847e89262Smrgrm -fr conftest*
10429bd1da9d7Smrg
10430bd1da9d7Smrg
1043147e89262Smrgfi
1043247e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
1043347e89262Smrg$as_echo "$lt_cv_dlopen_self_static" >&6; }
1043447e89262Smrg    fi
10435bd1da9d7Smrg
1043647e89262Smrg    CPPFLAGS="$save_CPPFLAGS"
1043747e89262Smrg    LDFLAGS="$save_LDFLAGS"
1043847e89262Smrg    LIBS="$save_LIBS"
1043947e89262Smrg    ;;
1044047e89262Smrg  esac
10441bd1da9d7Smrg
1044247e89262Smrg  case $lt_cv_dlopen_self in
1044347e89262Smrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1044447e89262Smrg  *) enable_dlopen_self=unknown ;;
1044547e89262Smrg  esac
10446bd1da9d7Smrg
1044747e89262Smrg  case $lt_cv_dlopen_self_static in
1044847e89262Smrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1044947e89262Smrg  *) enable_dlopen_self_static=unknown ;;
1045047e89262Smrg  esac
1045147e89262Smrgfi
10452bd1da9d7Smrg
104535bcb6992Smrg
10454bd1da9d7Smrg
10455bd1da9d7Smrg
10456bd1da9d7Smrg
10457bd1da9d7Smrg
10458bd1da9d7Smrg
10459bd1da9d7Smrg
10460bd1da9d7Smrg
10461bd1da9d7Smrg
10462bd1da9d7Smrg
10463bd1da9d7Smrg
10464bd1da9d7Smrg
10465bd1da9d7Smrg
10466bd1da9d7Smrg
10467bd1da9d7Smrg
10468bd1da9d7Smrg
1046947e89262Smrgstriplib=
1047047e89262Smrgold_striplib=
1047147e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
1047247e89262Smrg$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1047347e89262Smrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1047447e89262Smrg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1047547e89262Smrg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1047647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1047747e89262Smrg$as_echo "yes" >&6; }
1047847e89262Smrgelse
1047947e89262Smrg# FIXME - insert some real tests, host_os isn't really good enough
1048047e89262Smrg  case $host_os in
1048147e89262Smrg  darwin*)
1048247e89262Smrg    if test -n "$STRIP" ; then
1048347e89262Smrg      striplib="$STRIP -x"
1048447e89262Smrg      old_striplib="$STRIP -S"
1048547e89262Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1048647e89262Smrg$as_echo "yes" >&6; }
1048747e89262Smrg    else
1048847e89262Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1048947e89262Smrg$as_echo "no" >&6; }
1049047e89262Smrg    fi
1049147e89262Smrg    ;;
1049247e89262Smrg  *)
1049347e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1049447e89262Smrg$as_echo "no" >&6; }
1049547e89262Smrg    ;;
1049647e89262Smrg  esac
1049747e89262Smrgfi
10498bd1da9d7Smrg
10499bd1da9d7Smrg
10500bd1da9d7Smrg
10501bd1da9d7Smrg
10502bd1da9d7Smrg
10503bd1da9d7Smrg
10504bd1da9d7Smrg
10505bd1da9d7Smrg
10506bd1da9d7Smrg
10507bd1da9d7Smrg
10508bd1da9d7Smrg
10509bd1da9d7Smrg
1051047e89262Smrg  # Report which library types will actually be built
1051147e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1051247e89262Smrg$as_echo_n "checking if libtool supports shared libraries... " >&6; }
1051347e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1051447e89262Smrg$as_echo "$can_build_shared" >&6; }
10515bd1da9d7Smrg
1051647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1051747e89262Smrg$as_echo_n "checking whether to build shared libraries... " >&6; }
1051847e89262Smrg  test "$can_build_shared" = "no" && enable_shared=no
10519bd1da9d7Smrg
1052047e89262Smrg  # On AIX, shared libraries and static libraries use the same namespace, and
1052147e89262Smrg  # are all built from PIC.
1052247e89262Smrg  case $host_os in
1052347e89262Smrg  aix3*)
1052447e89262Smrg    test "$enable_shared" = yes && enable_static=no
1052547e89262Smrg    if test -n "$RANLIB"; then
1052647e89262Smrg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
1052747e89262Smrg      postinstall_cmds='$RANLIB $lib'
1052847e89262Smrg    fi
1052947e89262Smrg    ;;
10530bd1da9d7Smrg
1053147e89262Smrg  aix[4-9]*)
1053247e89262Smrg    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1053347e89262Smrg      test "$enable_shared" = yes && enable_static=no
1053447e89262Smrg    fi
1053547e89262Smrg    ;;
1053647e89262Smrg  esac
1053747e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
1053847e89262Smrg$as_echo "$enable_shared" >&6; }
10539bd1da9d7Smrg
1054047e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1054147e89262Smrg$as_echo_n "checking whether to build static libraries... " >&6; }
1054247e89262Smrg  # Make sure either enable_shared or enable_static is yes.
1054347e89262Smrg  test "$enable_shared" = yes || enable_static=yes
1054447e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1054547e89262Smrg$as_echo "$enable_static" >&6; }
10546bd1da9d7Smrg
10547bd1da9d7Smrg
10548bd1da9d7Smrg
10549bd1da9d7Smrg
10550bd1da9d7Smrgfi
10551bd1da9d7Smrgac_ext=c
10552bd1da9d7Smrgac_cpp='$CPP $CPPFLAGS'
10553bd1da9d7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10554bd1da9d7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10555bd1da9d7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
10556bd1da9d7Smrg
10557bd1da9d7SmrgCC="$lt_save_CC"
10558bd1da9d7Smrg
10559bd1da9d7Smrg
10560bd1da9d7Smrg
10561bd1da9d7Smrg
10562bd1da9d7Smrg
10563bd1da9d7Smrg
10564bd1da9d7Smrg
10565bd1da9d7Smrg
10566bd1da9d7Smrg
10567bd1da9d7Smrg
10568bd1da9d7Smrg
10569bd1da9d7Smrg
10570bd1da9d7Smrg
1057147e89262Smrg        ac_config_commands="$ac_config_commands libtool"
10572bd1da9d7Smrg
10573bd1da9d7Smrg
10574bd1da9d7Smrg
10575bd1da9d7Smrg
1057647e89262Smrg# Only expand once:
10577bd1da9d7Smrg
10578bd1da9d7Smrg
10579bd1da9d7Smrg
1058047e89262Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
1058147e89262Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
1058247e89262Smrgif ${ac_cv_prog_cc_c99+:} false; then :
1058347e89262Smrg  $as_echo_n "(cached) " >&6
1058447e89262Smrgelse
1058547e89262Smrg  ac_cv_prog_cc_c99=no
1058647e89262Smrgac_save_CC=$CC
1058747e89262Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1058847e89262Smrg/* end confdefs.h.  */
1058947e89262Smrg#include <stdarg.h>
1059047e89262Smrg#include <stdbool.h>
1059147e89262Smrg#include <stdlib.h>
1059247e89262Smrg#include <wchar.h>
1059347e89262Smrg#include <stdio.h>
10594bd1da9d7Smrg
1059547e89262Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
1059647e89262Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
1059747e89262Smrg#define showlist(...) puts (#__VA_ARGS__)
1059847e89262Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1059947e89262Smrgstatic void
1060047e89262Smrgtest_varargs_macros (void)
1060147e89262Smrg{
1060247e89262Smrg  int x = 1234;
1060347e89262Smrg  int y = 5678;
1060447e89262Smrg  debug ("Flag");
1060547e89262Smrg  debug ("X = %d\n", x);
1060647e89262Smrg  showlist (The first, second, and third items.);
1060747e89262Smrg  report (x>y, "x is %d but y is %d", x, y);
1060847e89262Smrg}
10609bd1da9d7Smrg
1061047e89262Smrg// Check long long types.
1061147e89262Smrg#define BIG64 18446744073709551615ull
1061247e89262Smrg#define BIG32 4294967295ul
1061347e89262Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1061447e89262Smrg#if !BIG_OK
1061547e89262Smrg  your preprocessor is broken;
1061647e89262Smrg#endif
1061747e89262Smrg#if BIG_OK
1061847e89262Smrg#else
1061947e89262Smrg  your preprocessor is broken;
1062047e89262Smrg#endif
1062147e89262Smrgstatic long long int bignum = -9223372036854775807LL;
1062247e89262Smrgstatic unsigned long long int ubignum = BIG64;
10623bd1da9d7Smrg
1062447e89262Smrgstruct incomplete_array
1062547e89262Smrg{
1062647e89262Smrg  int datasize;
1062747e89262Smrg  double data[];
1062847e89262Smrg};
10629bd1da9d7Smrg
1063047e89262Smrgstruct named_init {
1063147e89262Smrg  int number;
1063247e89262Smrg  const wchar_t *name;
1063347e89262Smrg  double average;
1063447e89262Smrg};
10635bd1da9d7Smrg
1063647e89262Smrgtypedef const char *ccp;
10637bd1da9d7Smrg
1063847e89262Smrgstatic inline int
1063947e89262Smrgtest_restrict (ccp restrict text)
1064047e89262Smrg{
1064147e89262Smrg  // See if C++-style comments work.
1064247e89262Smrg  // Iterate through items via the restricted pointer.
1064347e89262Smrg  // Also check for declarations in for loops.
1064447e89262Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
1064547e89262Smrg    continue;
1064647e89262Smrg  return 0;
1064747e89262Smrg}
10648bd1da9d7Smrg
1064947e89262Smrg// Check varargs and va_copy.
1065047e89262Smrgstatic void
1065147e89262Smrgtest_varargs (const char *format, ...)
1065247e89262Smrg{
1065347e89262Smrg  va_list args;
1065447e89262Smrg  va_start (args, format);
1065547e89262Smrg  va_list args_copy;
1065647e89262Smrg  va_copy (args_copy, args);
10657bd1da9d7Smrg
1065847e89262Smrg  const char *str;
1065947e89262Smrg  int number;
1066047e89262Smrg  float fnumber;
10661bd1da9d7Smrg
1066247e89262Smrg  while (*format)
1066347e89262Smrg    {
1066447e89262Smrg      switch (*format++)
1066547e89262Smrg	{
1066647e89262Smrg	case 's': // string
1066747e89262Smrg	  str = va_arg (args_copy, const char *);
1066847e89262Smrg	  break;
1066947e89262Smrg	case 'd': // int
1067047e89262Smrg	  number = va_arg (args_copy, int);
1067147e89262Smrg	  break;
1067247e89262Smrg	case 'f': // float
1067347e89262Smrg	  fnumber = va_arg (args_copy, double);
1067447e89262Smrg	  break;
1067547e89262Smrg	default:
1067647e89262Smrg	  break;
1067747e89262Smrg	}
1067847e89262Smrg    }
1067947e89262Smrg  va_end (args_copy);
1068047e89262Smrg  va_end (args);
1068147e89262Smrg}
10682bd1da9d7Smrg
1068347e89262Smrgint
1068447e89262Smrgmain ()
1068547e89262Smrg{
10686bd1da9d7Smrg
1068747e89262Smrg  // Check bool.
1068847e89262Smrg  _Bool success = false;
10689bd1da9d7Smrg
1069047e89262Smrg  // Check restrict.
1069147e89262Smrg  if (test_restrict ("String literal") == 0)
1069247e89262Smrg    success = true;
1069347e89262Smrg  char *restrict newvar = "Another string";
10694bd1da9d7Smrg
1069547e89262Smrg  // Check varargs.
1069647e89262Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
1069747e89262Smrg  test_varargs_macros ();
10698bd1da9d7Smrg
1069947e89262Smrg  // Check flexible array members.
1070047e89262Smrg  struct incomplete_array *ia =
1070147e89262Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
1070247e89262Smrg  ia->datasize = 10;
1070347e89262Smrg  for (int i = 0; i < ia->datasize; ++i)
1070447e89262Smrg    ia->data[i] = i * 1.234;
10705bd1da9d7Smrg
1070647e89262Smrg  // Check named initializers.
1070747e89262Smrg  struct named_init ni = {
1070847e89262Smrg    .number = 34,
1070947e89262Smrg    .name = L"Test wide string",
1071047e89262Smrg    .average = 543.34343,
1071147e89262Smrg  };
10712bd1da9d7Smrg
1071347e89262Smrg  ni.number = 58;
10714bd1da9d7Smrg
1071547e89262Smrg  int dynamic_array[ni.number];
1071647e89262Smrg  dynamic_array[ni.number - 1] = 543;
10717bd1da9d7Smrg
1071847e89262Smrg  // work around unused variable warnings
1071947e89262Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
1072047e89262Smrg	  || dynamic_array[ni.number - 1] != 543);
10721bd1da9d7Smrg
1072247e89262Smrg  ;
1072347e89262Smrg  return 0;
1072447e89262Smrg}
1072547e89262Smrg_ACEOF
1072647e89262Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
1072747e89262Smrgdo
1072847e89262Smrg  CC="$ac_save_CC $ac_arg"
1072947e89262Smrg  if ac_fn_c_try_compile "$LINENO"; then :
1073047e89262Smrg  ac_cv_prog_cc_c99=$ac_arg
1073147e89262Smrgfi
1073247e89262Smrgrm -f core conftest.err conftest.$ac_objext
1073347e89262Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
1073447e89262Smrgdone
1073547e89262Smrgrm -f conftest.$ac_ext
1073647e89262SmrgCC=$ac_save_CC
10737bd1da9d7Smrg
1073847e89262Smrgfi
1073947e89262Smrg# AC_CACHE_VAL
1074047e89262Smrgcase "x$ac_cv_prog_cc_c99" in
1074147e89262Smrg  x)
1074247e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
1074347e89262Smrg$as_echo "none needed" >&6; } ;;
1074447e89262Smrg  xno)
1074547e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
1074647e89262Smrg$as_echo "unsupported" >&6; } ;;
1074747e89262Smrg  *)
1074847e89262Smrg    CC="$CC $ac_cv_prog_cc_c99"
1074947e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
1075047e89262Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
1075147e89262Smrgesac
1075247e89262Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
10753bd1da9d7Smrg
1075447e89262Smrgfi
10755bd1da9d7Smrg
10756bd1da9d7Smrg
10757bd1da9d7Smrg
10758bd1da9d7Smrg
1075947e89262Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1076047e89262Smrg	if test -n "$ac_tool_prefix"; then
1076147e89262Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1076247e89262Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
1076347e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1076447e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
1076547e89262Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
1076647e89262Smrg  $as_echo_n "(cached) " >&6
1076747e89262Smrgelse
1076847e89262Smrg  case $PKG_CONFIG in
1076947e89262Smrg  [\\/]* | ?:[\\/]*)
1077047e89262Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1077147e89262Smrg  ;;
1077247e89262Smrg  *)
1077347e89262Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1077447e89262Smrgfor as_dir in $PATH
1077547e89262Smrgdo
1077647e89262Smrg  IFS=$as_save_IFS
1077747e89262Smrg  test -z "$as_dir" && as_dir=.
1077847e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
1077947e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1078047e89262Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1078147e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1078247e89262Smrg    break 2
1078347e89262Smrg  fi
1078447e89262Smrgdone
1078547e89262Smrg  done
1078647e89262SmrgIFS=$as_save_IFS
10787bd1da9d7Smrg
1078847e89262Smrg  ;;
1078947e89262Smrgesac
1079047e89262Smrgfi
1079147e89262SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
1079247e89262Smrgif test -n "$PKG_CONFIG"; then
1079347e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
1079447e89262Smrg$as_echo "$PKG_CONFIG" >&6; }
1079547e89262Smrgelse
1079647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1079747e89262Smrg$as_echo "no" >&6; }
1079847e89262Smrgfi
1079947e89262Smrg
1080047e89262Smrg
1080147e89262Smrgfi
1080247e89262Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
1080347e89262Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
1080447e89262Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
1080547e89262Smrgset dummy pkg-config; ac_word=$2
1080647e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1080747e89262Smrg$as_echo_n "checking for $ac_word... " >&6; }
1080847e89262Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
1080947e89262Smrg  $as_echo_n "(cached) " >&6
1081047e89262Smrgelse
1081147e89262Smrg  case $ac_pt_PKG_CONFIG in
1081247e89262Smrg  [\\/]* | ?:[\\/]*)
1081347e89262Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
1081447e89262Smrg  ;;
1081547e89262Smrg  *)
1081647e89262Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1081747e89262Smrgfor as_dir in $PATH
1081847e89262Smrgdo
1081947e89262Smrg  IFS=$as_save_IFS
1082047e89262Smrg  test -z "$as_dir" && as_dir=.
1082147e89262Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
1082247e89262Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1082347e89262Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1082447e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1082547e89262Smrg    break 2
1082647e89262Smrg  fi
1082747e89262Smrgdone
1082847e89262Smrg  done
1082947e89262SmrgIFS=$as_save_IFS
10830bd1da9d7Smrg
1083147e89262Smrg  ;;
1083247e89262Smrgesac
1083347e89262Smrgfi
1083447e89262Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
1083547e89262Smrgif test -n "$ac_pt_PKG_CONFIG"; then
1083647e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
1083747e89262Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
1083847e89262Smrgelse
1083947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1084047e89262Smrg$as_echo "no" >&6; }
1084147e89262Smrgfi
10842bd1da9d7Smrg
1084347e89262Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
1084447e89262Smrg    PKG_CONFIG=""
1084547e89262Smrg  else
1084647e89262Smrg    case $cross_compiling:$ac_tool_warned in
1084747e89262Smrgyes:)
1084847e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1084947e89262Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1085047e89262Smrgac_tool_warned=yes ;;
1085147e89262Smrgesac
1085247e89262Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
1085347e89262Smrg  fi
1085447e89262Smrgelse
1085547e89262Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
1085647e89262Smrgfi
10857bd1da9d7Smrg
1085847e89262Smrgfi
1085947e89262Smrgif test -n "$PKG_CONFIG"; then
1086047e89262Smrg	_pkg_min_version=0.9.0
1086147e89262Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
1086247e89262Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
1086347e89262Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1086447e89262Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1086547e89262Smrg$as_echo "yes" >&6; }
1086647e89262Smrg	else
1086747e89262Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1086847e89262Smrg$as_echo "no" >&6; }
1086947e89262Smrg		PKG_CONFIG=""
1087047e89262Smrg	fi
10871bd1da9d7Smrg
1087247e89262Smrgfi
10873bd1da9d7Smrg
10874bd1da9d7Smrg
10875bd1da9d7Smrg
10876bd1da9d7Smrg
1087747e89262Smrgif  test "x$GCC" = xyes ; then
1087847e89262Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
1087947e89262Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
1088047e89262Smrg-Wbad-function-cast -Wformat=2"
1088147e89262Smrg    case `$CC -dumpversion` in
1088247e89262Smrg    3.4.* | 4.*)
1088347e89262Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
1088447e89262Smrg	;;
1088547e89262Smrg    esac
1088647e89262Smrgelse
1088747e89262Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
1088847e89262Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
1088947e89262Smrg  SUNCC="yes"
1089047e89262Smrgelse
1089147e89262Smrg  SUNCC="no"
1089247e89262Smrgfi
10893bd1da9d7Smrg
1089447e89262Smrg    if test "x$SUNCC" = "xyes"; then
1089547e89262Smrg	CWARNFLAGS="-v"
1089647e89262Smrg    fi
1089747e89262Smrgfi
10898bd1da9d7Smrg
10899bd1da9d7Smrg
10900bd1da9d7Smrg
1090147e89262Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
10902bd1da9d7Smrg
10903bd1da9d7Smrg
10904bd1da9d7Smrg
1090547e89262Smrg# Check whether --enable-strict-compilation was given.
1090647e89262Smrgif test "${enable_strict_compilation+set}" = set; then :
1090747e89262Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
1090847e89262Smrgelse
1090947e89262Smrg  STRICT_COMPILE=no
1091047e89262Smrgfi
10911bd1da9d7Smrg
1091247e89262Smrgif test "x$STRICT_COMPILE" = "xyes"; then
1091347e89262Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
1091447e89262Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
1091547e89262Smrg  SUNCC="yes"
1091647e89262Smrgelse
1091747e89262Smrg  SUNCC="no"
1091847e89262Smrgfi
10919bd1da9d7Smrg
1092047e89262Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
1092147e89262Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
1092247e89262Smrg  INTELCC="yes"
1092347e89262Smrgelse
1092447e89262Smrg  INTELCC="no"
1092547e89262Smrgfi
10926bd1da9d7Smrg
1092747e89262Smrg	if test "x$GCC" = xyes ; then
1092847e89262Smrg		STRICT_CFLAGS="-pedantic -Werror"
1092947e89262Smrg	elif test "x$SUNCC" = "xyes"; then
1093047e89262Smrg		STRICT_CFLAGS="-errwarn"
1093147e89262Smrg    elif test "x$INTELCC" = "xyes"; then
1093247e89262Smrg		STRICT_CFLAGS="-Werror"
1093347e89262Smrg	fi
1093447e89262Smrgfi
1093547e89262SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10936bd1da9d7Smrg
10937bd1da9d7Smrg
109385bcb6992Smrg
10939bd1da9d7Smrg
1094047e89262Smrgcat >>confdefs.h <<_ACEOF
1094147e89262Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1094247e89262Smrg_ACEOF
10943bd1da9d7Smrg
1094447e89262Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1094547e89262Smrg	if test "x$PVM" = "x"; then
1094647e89262Smrg		PVM="0"
1094747e89262Smrg	fi
10948bd1da9d7Smrg
1094947e89262Smrgcat >>confdefs.h <<_ACEOF
1095047e89262Smrg#define PACKAGE_VERSION_MINOR $PVM
1095147e89262Smrg_ACEOF
10952bd1da9d7Smrg
1095347e89262Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1095447e89262Smrg	if test "x$PVP" = "x"; then
1095547e89262Smrg		PVP="0"
1095647e89262Smrg	fi
10957bd1da9d7Smrg
1095847e89262Smrgcat >>confdefs.h <<_ACEOF
1095947e89262Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
1096047e89262Smrg_ACEOF
10961bd1da9d7Smrg
10962bd1da9d7Smrg
10963bd1da9d7Smrg
1096447e89262SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
1096547e89262Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1096647e89262Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
1096747e89262Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
10968bd1da9d7Smrg
10969bd1da9d7Smrg
10970bd1da9d7Smrg
10971bd1da9d7Smrg
1097247e89262Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1097347e89262SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1097447e89262Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1097547e89262Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
1097647e89262Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10977bd1da9d7Smrg
10978bd1da9d7Smrg
10979bd1da9d7Smrg
10980bd1da9d7Smrg
10981bd1da9d7Smrg
10982bd1da9d7Smrg
1098347e89262Smrgif test x$APP_MAN_SUFFIX = x    ; then
1098447e89262Smrg    APP_MAN_SUFFIX=1
1098547e89262Smrgfi
1098647e89262Smrgif test x$APP_MAN_DIR = x    ; then
1098747e89262Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1098847e89262Smrgfi
10989bd1da9d7Smrg
1099047e89262Smrgif test x$LIB_MAN_SUFFIX = x    ; then
1099147e89262Smrg    LIB_MAN_SUFFIX=3
1099247e89262Smrgfi
1099347e89262Smrgif test x$LIB_MAN_DIR = x    ; then
1099447e89262Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1099547e89262Smrgfi
10996bd1da9d7Smrg
1099747e89262Smrgif test x$FILE_MAN_SUFFIX = x    ; then
1099847e89262Smrg    case $host_os in
1099947e89262Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
1100047e89262Smrg	*)		FILE_MAN_SUFFIX=5  ;;
1100147e89262Smrg    esac
1100247e89262Smrgfi
1100347e89262Smrgif test x$FILE_MAN_DIR = x    ; then
1100447e89262Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1100547e89262Smrgfi
11006bd1da9d7Smrg
1100747e89262Smrgif test x$MISC_MAN_SUFFIX = x    ; then
1100847e89262Smrg    case $host_os in
1100947e89262Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
1101047e89262Smrg	*)		MISC_MAN_SUFFIX=7  ;;
1101147e89262Smrg    esac
1101247e89262Smrgfi
1101347e89262Smrgif test x$MISC_MAN_DIR = x    ; then
1101447e89262Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1101547e89262Smrgfi
11016bd1da9d7Smrg
1101747e89262Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
1101847e89262Smrg    case $host_os in
1101947e89262Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
1102047e89262Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
1102147e89262Smrg    esac
1102247e89262Smrgfi
1102347e89262Smrgif test x$DRIVER_MAN_DIR = x    ; then
1102447e89262Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1102547e89262Smrgfi
11026bd1da9d7Smrg
1102747e89262Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
1102847e89262Smrg    case $host_os in
1102947e89262Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
1103047e89262Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
1103147e89262Smrg    esac
1103247e89262Smrgfi
1103347e89262Smrgif test x$ADMIN_MAN_DIR = x    ; then
1103447e89262Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1103547e89262Smrgfi
11036bd1da9d7Smrg
11037bd1da9d7Smrg
11038bd1da9d7Smrg
11039bd1da9d7Smrg
11040bd1da9d7Smrg
11041bd1da9d7Smrg
11042bd1da9d7Smrg
11043bd1da9d7Smrg
11044bd1da9d7Smrg
11045bd1da9d7Smrg
11046bd1da9d7Smrg
11047bd1da9d7Smrg
11048bd1da9d7Smrg
11049bd1da9d7Smrg
11050bd1da9d7Smrg
1105147e89262SmrgXORG_MAN_PAGE="X Version 11"
11052bd1da9d7Smrg
1105347e89262SmrgMAN_SUBSTS="\
1105447e89262Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1105547e89262Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1105647e89262Smrg	-e 's|__xservername__|Xorg|g' \
1105747e89262Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
1105847e89262Smrg	-e 's|__projectroot__|\$(prefix)|g' \
1105947e89262Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
1106047e89262Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
1106147e89262Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
1106247e89262Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
1106347e89262Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
1106447e89262Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
1106547e89262Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11066bd1da9d7Smrg
11067bd1da9d7Smrg
11068bd1da9d7Smrg
1106947e89262Smrg# Check whether --enable-silent-rules was given.
1107047e89262Smrgif test "${enable_silent_rules+set}" = set; then :
1107147e89262Smrg  enableval=$enable_silent_rules;
11072bd1da9d7Smrgfi
11073bd1da9d7Smrg
1107447e89262Smrgcase $enable_silent_rules in
1107547e89262Smrgyes) AM_DEFAULT_VERBOSITY=0;;
1107647e89262Smrgno)  AM_DEFAULT_VERBOSITY=1;;
1107747e89262Smrg*)   AM_DEFAULT_VERBOSITY=0;;
1107847e89262Smrgesac
1107947e89262SmrgAM_BACKSLASH='\'
11080bd1da9d7Smrg
11081bd1da9d7Smrg
11082bd1da9d7Smrg
1108347e89262Smrg# get modules
11084bd1da9d7Smrg
1108547e89262Smrg# Check xres configuration, strip extra digits from package version to
1108647e89262Smrg# find the required protocol version
1108747e89262SmrgRES_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
11088bd1da9d7Smrg
1108947e89262Smrgpkg_failed=no
1109047e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRES" >&5
1109147e89262Smrg$as_echo_n "checking for XRES... " >&6; }
11092bd1da9d7Smrg
1109347e89262Smrgif test -n "$XRES_CFLAGS"; then
1109447e89262Smrg    pkg_cv_XRES_CFLAGS="$XRES_CFLAGS"
1109547e89262Smrg elif test -n "$PKG_CONFIG"; then
1109647e89262Smrg    if test -n "$PKG_CONFIG" && \
1109747e89262Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto resourceproto >= \$RES_VERSION\""; } >&5
1109847e89262Smrg  ($PKG_CONFIG --exists --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION") 2>&5
1109947e89262Smrg  ac_status=$?
1110047e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1110147e89262Smrg  test $ac_status = 0; }; then
1110247e89262Smrg  pkg_cv_XRES_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto resourceproto >= $RES_VERSION" 2>/dev/null`
1110347e89262Smrgelse
1110447e89262Smrg  pkg_failed=yes
1110547e89262Smrgfi
1110647e89262Smrg else
1110747e89262Smrg    pkg_failed=untried
1110847e89262Smrgfi
1110947e89262Smrgif test -n "$XRES_LIBS"; then
1111047e89262Smrg    pkg_cv_XRES_LIBS="$XRES_LIBS"
1111147e89262Smrg elif test -n "$PKG_CONFIG"; then
1111247e89262Smrg    if test -n "$PKG_CONFIG" && \
1111347e89262Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto resourceproto >= \$RES_VERSION\""; } >&5
1111447e89262Smrg  ($PKG_CONFIG --exists --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION") 2>&5
1111547e89262Smrg  ac_status=$?
1111647e89262Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1111747e89262Smrg  test $ac_status = 0; }; then
1111847e89262Smrg  pkg_cv_XRES_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto resourceproto >= $RES_VERSION" 2>/dev/null`
1111947e89262Smrgelse
1112047e89262Smrg  pkg_failed=yes
1112147e89262Smrgfi
1112247e89262Smrg else
1112347e89262Smrg    pkg_failed=untried
1112447e89262Smrgfi
11125bd1da9d7Smrg
11126bd1da9d7Smrg
11127bd1da9d7Smrg
1112847e89262Smrgif test $pkg_failed = yes; then
11129bd1da9d7Smrg
1113047e89262Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1113147e89262Smrg        _pkg_short_errors_supported=yes
1113247e89262Smrgelse
1113347e89262Smrg        _pkg_short_errors_supported=no
1113447e89262Smrgfi
1113547e89262Smrg        if test $_pkg_short_errors_supported = yes; then
1113647e89262Smrg	        XRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION" 2>&1`
1113747e89262Smrg        else
1113847e89262Smrg	        XRES_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION" 2>&1`
1113947e89262Smrg        fi
1114047e89262Smrg	# Put the nasty error message in config.log where it belongs
1114147e89262Smrg	echo "$XRES_PKG_ERRORS" >&5
11142bd1da9d7Smrg
1114347e89262Smrg	as_fn_error $? "Package requirements (x11 xext xextproto resourceproto >= $RES_VERSION) were not met:
11144bd1da9d7Smrg
1114547e89262Smrg$XRES_PKG_ERRORS
11146bd1da9d7Smrg
1114747e89262SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
1114847e89262Smrginstalled software in a non-standard prefix.
11149bd1da9d7Smrg
1115047e89262SmrgAlternatively, you may set the environment variables XRES_CFLAGS
1115147e89262Smrgand XRES_LIBS to avoid the need to call pkg-config.
1115247e89262SmrgSee the pkg-config man page for more details.
1115347e89262Smrg" "$LINENO" 5
1115447e89262Smrgelif test $pkg_failed = untried; then
1115547e89262Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1115647e89262Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1115747e89262Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
1115847e89262Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
1115947e89262Smrgpath to pkg-config.
11160bd1da9d7Smrg
1116147e89262SmrgAlternatively, you may set the environment variables XRES_CFLAGS
1116247e89262Smrgand XRES_LIBS to avoid the need to call pkg-config.
1116347e89262SmrgSee the pkg-config man page for more details.
11164bd1da9d7Smrg
1116547e89262SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1116647e89262SmrgSee \`config.log' for more details" "$LINENO" 5; }
1116747e89262Smrgelse
1116847e89262Smrg	XRES_CFLAGS=$pkg_cv_XRES_CFLAGS
1116947e89262Smrg	XRES_LIBS=$pkg_cv_XRES_LIBS
1117047e89262Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1117147e89262Smrg$as_echo "yes" >&6; }
1117247e89262Smrg	:
1117347e89262Smrgfi
11174bd1da9d7Smrg
11175bd1da9d7Smrg
1117647e89262Smrg# Check whether --enable-malloc0returnsnull was given.
1117747e89262Smrgif test "${enable_malloc0returnsnull+set}" = set; then :
1117847e89262Smrg  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
1117947e89262Smrgelse
1118047e89262Smrg  MALLOC_ZERO_RETURNS_NULL=auto
1118147e89262Smrgfi
11182bd1da9d7Smrg
11183bd1da9d7Smrg
1118447e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
1118547e89262Smrg$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
1118647e89262Smrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
1118747e89262Smrg	if test "$cross_compiling" = yes; then :
1118847e89262Smrg  MALLOC_ZERO_RETURNS_NULL=yes
11189bd1da9d7Smrgelse
1119047e89262Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
111915bcb6992Smrg/* end confdefs.h.  */
111925bcb6992Smrg
1119347e89262Smrgchar *malloc();
1119447e89262Smrgchar *realloc();
1119547e89262Smrgchar *calloc();
1119647e89262Smrgmain() {
1119747e89262Smrg    char *m0, *r0, *c0, *p;
1119847e89262Smrg    m0 = malloc(0);
1119947e89262Smrg    p = malloc(10);
1120047e89262Smrg    r0 = realloc(p,0);
1120147e89262Smrg    c0 = calloc(0);
1120247e89262Smrg    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
112035bcb6992Smrg}
1120447e89262Smrg_ACEOF
1120547e89262Smrgif ac_fn_c_try_run "$LINENO"; then :
1120647e89262Smrg  MALLOC_ZERO_RETURNS_NULL=yes
1120747e89262Smrgelse
1120847e89262Smrg  MALLOC_ZERO_RETURNS_NULL=no
1120947e89262Smrgfi
1121047e89262Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1121147e89262Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
1121247e89262Smrgfi
112135bcb6992Smrg
1121447e89262Smrgfi
1121547e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
1121647e89262Smrg$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
112175bcb6992Smrg
1121847e89262Smrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
1121947e89262Smrg	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
1122047e89262Smrg	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
1122147e89262Smrg	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
1122247e89262Smrgelse
1122347e89262Smrg	MALLOC_ZERO_CFLAGS=""
1122447e89262Smrg	XMALLOC_ZERO_CFLAGS=""
1122547e89262Smrg	XTMALLOC_ZERO_CFLAGS=""
1122647e89262Smrgfi
112275bcb6992Smrg
112285bcb6992Smrg
112295bcb6992Smrg
112305bcb6992Smrg
112315bcb6992Smrg
112325bcb6992Smrg
1123347e89262Smrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xres.pc"
112345bcb6992Smrg
1123547e89262Smrgcat >confcache <<\_ACEOF
1123647e89262Smrg# This file is a shell script that caches the results of configure
1123747e89262Smrg# tests run on this system so they can be shared between configure
1123847e89262Smrg# scripts and configure runs, see configure's option --config-cache.
1123947e89262Smrg# It is not useful on other systems.  If it contains results you don't
1124047e89262Smrg# want to keep, you may remove or edit it.
1124147e89262Smrg#
1124247e89262Smrg# config.status only pays attention to the cache file if you give it
1124347e89262Smrg# the --recheck option to rerun configure.
1124447e89262Smrg#
1124547e89262Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
1124647e89262Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
1124747e89262Smrg# following values.
112485bcb6992Smrg
1124947e89262Smrg_ACEOF
112505bcb6992Smrg
1125147e89262Smrg# The following way of writing the cache mishandles newlines in values,
1125247e89262Smrg# but we know of no workaround that is simple, portable, and efficient.
1125347e89262Smrg# So, we kill variables containing newlines.
1125447e89262Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
1125547e89262Smrg# and sets the high bit in the cache file unless we assign to the vars.
1125647e89262Smrg(
1125747e89262Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1125847e89262Smrg    eval ac_val=\$$ac_var
1125947e89262Smrg    case $ac_val in #(
1126047e89262Smrg    *${as_nl}*)
1126147e89262Smrg      case $ac_var in #(
1126247e89262Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1126347e89262Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1126447e89262Smrg      esac
1126547e89262Smrg      case $ac_var in #(
1126647e89262Smrg      _ | IFS | as_nl) ;; #(
1126747e89262Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1126847e89262Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1126947e89262Smrg      esac ;;
1127047e89262Smrg    esac
1127147e89262Smrg  done
112725bcb6992Smrg
1127347e89262Smrg  (set) 2>&1 |
1127447e89262Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
1127547e89262Smrg    *${as_nl}ac_space=\ *)
1127647e89262Smrg      # `set' does not quote correctly, so add quotes: double-quote
1127747e89262Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1127847e89262Smrg      sed -n \
1127947e89262Smrg	"s/'/'\\\\''/g;
1128047e89262Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1128147e89262Smrg      ;; #(
1128247e89262Smrg    *)
1128347e89262Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
1128447e89262Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1128547e89262Smrg      ;;
1128647e89262Smrg    esac |
1128747e89262Smrg    sort
1128847e89262Smrg) |
1128947e89262Smrg  sed '
1129047e89262Smrg     /^ac_cv_env_/b end
1129147e89262Smrg     t clear
1129247e89262Smrg     :clear
1129347e89262Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1129447e89262Smrg     t end
1129547e89262Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1129647e89262Smrg     :end' >>confcache
1129747e89262Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1129847e89262Smrg  if test -w "$cache_file"; then
1129947e89262Smrg    if test "x$cache_file" != "x/dev/null"; then
1130047e89262Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1130147e89262Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
1130247e89262Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
1130347e89262Smrg	cat confcache >"$cache_file"
1130447e89262Smrg      else
1130547e89262Smrg        case $cache_file in #(
1130647e89262Smrg        */* | ?:*)
1130747e89262Smrg	  mv -f confcache "$cache_file"$$ &&
1130847e89262Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
1130947e89262Smrg        *)
1131047e89262Smrg	  mv -f confcache "$cache_file" ;;
1131147e89262Smrg	esac
1131247e89262Smrg      fi
1131347e89262Smrg    fi
1131447e89262Smrg  else
1131547e89262Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1131647e89262Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1131747e89262Smrg  fi
1131847e89262Smrgfi
1131947e89262Smrgrm -f confcache
113205bcb6992Smrg
1132147e89262Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1132247e89262Smrg# Let make expand exec_prefix.
1132347e89262Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
113245bcb6992Smrg
1132547e89262SmrgDEFS=-DHAVE_CONFIG_H
113265bcb6992Smrg
1132747e89262Smrgac_libobjs=
1132847e89262Smrgac_ltlibobjs=
1132947e89262SmrgU=
1133047e89262Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1133147e89262Smrg  # 1. Remove the extension, and $U if already installed.
1133247e89262Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1133347e89262Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1133447e89262Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
1133547e89262Smrg  #    will be set to the directory where LIBOBJS objects are built.
1133647e89262Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1133747e89262Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1133847e89262Smrgdone
1133947e89262SmrgLIBOBJS=$ac_libobjs
113405bcb6992Smrg
1134147e89262SmrgLTLIBOBJS=$ac_ltlibobjs
113425bcb6992Smrg
113435bcb6992Smrg
1134447e89262Smrg if test -n "$EXEEXT"; then
1134547e89262Smrg  am__EXEEXT_TRUE=
1134647e89262Smrg  am__EXEEXT_FALSE='#'
1134747e89262Smrgelse
1134847e89262Smrg  am__EXEEXT_TRUE='#'
1134947e89262Smrg  am__EXEEXT_FALSE=
113505bcb6992Smrgfi
113515bcb6992Smrg
1135247e89262Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1135347e89262Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
1135447e89262SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1135547e89262Smrgfi
1135647e89262Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1135747e89262Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
1135847e89262SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1135947e89262Smrgfi
1136047e89262Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1136147e89262Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1136247e89262SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
113635bcb6992Smrgfi
113645bcb6992Smrg
1136547e89262Smrg: "${CONFIG_STATUS=./config.status}"
1136647e89262Smrgac_write_fail=0
1136747e89262Smrgac_clean_files_save=$ac_clean_files
1136847e89262Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
1136947e89262Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
1137047e89262Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1137147e89262Smrgas_write_fail=0
1137247e89262Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1137347e89262Smrg#! $SHELL
1137447e89262Smrg# Generated by $as_me.
1137547e89262Smrg# Run this file to recreate the current configuration.
1137647e89262Smrg# Compiler output produced by configure, useful for debugging
1137747e89262Smrg# configure, is in config.log if it exists.
113785bcb6992Smrg
1137947e89262Smrgdebug=false
1138047e89262Smrgac_cs_recheck=false
1138147e89262Smrgac_cs_silent=false
113825bcb6992Smrg
1138347e89262SmrgSHELL=\${CONFIG_SHELL-$SHELL}
1138447e89262Smrgexport SHELL
1138547e89262Smrg_ASEOF
1138647e89262Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
1138747e89262Smrg## -------------------- ##
1138847e89262Smrg## M4sh Initialization. ##
1138947e89262Smrg## -------------------- ##
113905bcb6992Smrg
1139147e89262Smrg# Be more Bourne compatible
1139247e89262SmrgDUALCASE=1; export DUALCASE # for MKS sh
1139347e89262Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1139447e89262Smrg  emulate sh
1139547e89262Smrg  NULLCMD=:
1139647e89262Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1139747e89262Smrg  # is contrary to our usage.  Disable this feature.
1139847e89262Smrg  alias -g '${1+"$@"}'='"$@"'
1139947e89262Smrg  setopt NO_GLOB_SUBST
114005bcb6992Smrgelse
1140147e89262Smrg  case `(set -o) 2>/dev/null` in #(
1140247e89262Smrg  *posix*) :
1140347e89262Smrg    set -o posix ;; #(
1140447e89262Smrg  *) :
1140547e89262Smrg     ;;
114065bcb6992Smrgesac
114075bcb6992Smrgfi
114085bcb6992Smrg
114095bcb6992Smrg
1141047e89262Smrgas_nl='
1141147e89262Smrg'
1141247e89262Smrgexport as_nl
1141347e89262Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
1141447e89262Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1141547e89262Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
1141647e89262Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1141747e89262Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
1141847e89262Smrg# but without wasting forks for bash or zsh.
1141947e89262Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
1142047e89262Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
1142147e89262Smrg  as_echo='print -r --'
1142247e89262Smrg  as_echo_n='print -rn --'
1142347e89262Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1142447e89262Smrg  as_echo='printf %s\n'
1142547e89262Smrg  as_echo_n='printf %s'
1142647e89262Smrgelse
1142747e89262Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
1142847e89262Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
1142947e89262Smrg    as_echo_n='/usr/ucb/echo -n'
1143047e89262Smrg  else
1143147e89262Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
1143247e89262Smrg    as_echo_n_body='eval
1143347e89262Smrg      arg=$1;
1143447e89262Smrg      case $arg in #(
1143547e89262Smrg      *"$as_nl"*)
1143647e89262Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
1143747e89262Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
1143847e89262Smrg      esac;
1143947e89262Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
1144047e89262Smrg    '
1144147e89262Smrg    export as_echo_n_body
1144247e89262Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
1144347e89262Smrg  fi
1144447e89262Smrg  export as_echo_body
1144547e89262Smrg  as_echo='sh -c $as_echo_body as_echo'
114465bcb6992Smrgfi
114475bcb6992Smrg
1144847e89262Smrg# The user is always right.
1144947e89262Smrgif test "${PATH_SEPARATOR+set}" != set; then
1145047e89262Smrg  PATH_SEPARATOR=:
1145147e89262Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1145247e89262Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1145347e89262Smrg      PATH_SEPARATOR=';'
1145447e89262Smrg  }
114555bcb6992Smrgfi
114565bcb6992Smrg
114575bcb6992Smrg
1145847e89262Smrg# IFS
1145947e89262Smrg# We need space, tab and new line, in precisely that order.  Quoting is
1146047e89262Smrg# there to prevent editors from complaining about space-tab.
1146147e89262Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
1146247e89262Smrg# splitting by setting IFS to empty value.)
1146347e89262SmrgIFS=" ""	$as_nl"
114645bcb6992Smrg
1146547e89262Smrg# Find who we are.  Look in the path if we contain no directory separator.
1146647e89262Smrgas_myself=
1146747e89262Smrgcase $0 in #((
1146847e89262Smrg  *[\\/]* ) as_myself=$0 ;;
1146947e89262Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1147047e89262Smrgfor as_dir in $PATH
1147147e89262Smrgdo
1147247e89262Smrg  IFS=$as_save_IFS
1147347e89262Smrg  test -z "$as_dir" && as_dir=.
1147447e89262Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1147547e89262Smrg  done
1147647e89262SmrgIFS=$as_save_IFS
114775bcb6992Smrg
1147847e89262Smrg     ;;
1147947e89262Smrgesac
1148047e89262Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1148147e89262Smrg# in which case we are not to be found in the path.
1148247e89262Smrgif test "x$as_myself" = x; then
1148347e89262Smrg  as_myself=$0
1148447e89262Smrgfi
1148547e89262Smrgif test ! -f "$as_myself"; then
1148647e89262Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1148747e89262Smrg  exit 1
1148847e89262Smrgfi
114895bcb6992Smrg
1149047e89262Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1149147e89262Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1149247e89262Smrg# suppresses any "Segmentation fault" message there.  '((' could
1149347e89262Smrg# trigger a bug in pdksh 5.2.14.
1149447e89262Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1149547e89262Smrgdo eval test x\${$as_var+set} = xset \
1149647e89262Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1149747e89262Smrgdone
1149847e89262SmrgPS1='$ '
1149947e89262SmrgPS2='> '
1150047e89262SmrgPS4='+ '
115015bcb6992Smrg
1150247e89262Smrg# NLS nuisances.
1150347e89262SmrgLC_ALL=C
1150447e89262Smrgexport LC_ALL
1150547e89262SmrgLANGUAGE=C
1150647e89262Smrgexport LANGUAGE
115075bcb6992Smrg
1150847e89262Smrg# CDPATH.
1150947e89262Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
115105bcb6992Smrg
115115bcb6992Smrg
1151247e89262Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
1151347e89262Smrg# ----------------------------------------
1151447e89262Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1151547e89262Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1151647e89262Smrg# script with STATUS, using 1 if that was 0.
1151747e89262Smrgas_fn_error ()
115185bcb6992Smrg{
1151947e89262Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
1152047e89262Smrg  if test "$4"; then
1152147e89262Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1152247e89262Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1152347e89262Smrg  fi
1152447e89262Smrg  $as_echo "$as_me: error: $2" >&2
1152547e89262Smrg  as_fn_exit $as_status
1152647e89262Smrg} # as_fn_error
115275bcb6992Smrg
1152847e89262Smrg
1152947e89262Smrg# as_fn_set_status STATUS
1153047e89262Smrg# -----------------------
1153147e89262Smrg# Set $? to STATUS, without forking.
1153247e89262Smrgas_fn_set_status ()
115335bcb6992Smrg{
1153447e89262Smrg  return $1
1153547e89262Smrg} # as_fn_set_status
115365bcb6992Smrg
1153747e89262Smrg# as_fn_exit STATUS
1153847e89262Smrg# -----------------
1153947e89262Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
1154047e89262Smrgas_fn_exit ()
1154147e89262Smrg{
1154247e89262Smrg  set +e
1154347e89262Smrg  as_fn_set_status $1
1154447e89262Smrg  exit $1
1154547e89262Smrg} # as_fn_exit
1154647e89262Smrg
1154747e89262Smrg# as_fn_unset VAR
1154847e89262Smrg# ---------------
1154947e89262Smrg# Portably unset VAR.
1155047e89262Smrgas_fn_unset ()
1155147e89262Smrg{
1155247e89262Smrg  { eval $1=; unset $1;}
115535bcb6992Smrg}
1155447e89262Smrgas_unset=as_fn_unset
1155547e89262Smrg# as_fn_append VAR VALUE
1155647e89262Smrg# ----------------------
1155747e89262Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
1155847e89262Smrg# advantage of any shell optimizations that allow amortized linear growth over
1155947e89262Smrg# repeated appends, instead of the typical quadratic growth present in naive
1156047e89262Smrg# implementations.
1156147e89262Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
1156247e89262Smrg  eval 'as_fn_append ()
1156347e89262Smrg  {
1156447e89262Smrg    eval $1+=\$2
1156547e89262Smrg  }'
115665bcb6992Smrgelse
1156747e89262Smrg  as_fn_append ()
1156847e89262Smrg  {
1156947e89262Smrg    eval $1=\$$1\$2
1157047e89262Smrg  }
1157147e89262Smrgfi # as_fn_append
1157247e89262Smrg
1157347e89262Smrg# as_fn_arith ARG...
1157447e89262Smrg# ------------------
1157547e89262Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
1157647e89262Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
1157747e89262Smrg# must be portable across $(()) and expr.
1157847e89262Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
1157947e89262Smrg  eval 'as_fn_arith ()
1158047e89262Smrg  {
1158147e89262Smrg    as_val=$(( $* ))
1158247e89262Smrg  }'
1158347e89262Smrgelse
1158447e89262Smrg  as_fn_arith ()
1158547e89262Smrg  {
1158647e89262Smrg    as_val=`expr "$@" || test $? -eq 1`
1158747e89262Smrg  }
1158847e89262Smrgfi # as_fn_arith
115895bcb6992Smrg
115905bcb6992Smrg
1159147e89262Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1159247e89262Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1159347e89262Smrg  as_expr=expr
115945bcb6992Smrgelse
1159547e89262Smrg  as_expr=false
115965bcb6992Smrgfi
115975bcb6992Smrg
1159847e89262Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1159947e89262Smrg  as_basename=basename
1160047e89262Smrgelse
1160147e89262Smrg  as_basename=false
116025bcb6992Smrgfi
116035bcb6992Smrg
1160447e89262Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1160547e89262Smrg  as_dirname=dirname
116065bcb6992Smrgelse
1160747e89262Smrg  as_dirname=false
116085bcb6992Smrgfi
116095bcb6992Smrg
1161047e89262Smrgas_me=`$as_basename -- "$0" ||
1161147e89262Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1161247e89262Smrg	 X"$0" : 'X\(//\)$' \| \
1161347e89262Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1161447e89262Smrg$as_echo X/"$0" |
1161547e89262Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1161647e89262Smrg	    s//\1/
1161747e89262Smrg	    q
1161847e89262Smrg	  }
1161947e89262Smrg	  /^X\/\(\/\/\)$/{
1162047e89262Smrg	    s//\1/
1162147e89262Smrg	    q
1162247e89262Smrg	  }
1162347e89262Smrg	  /^X\/\(\/\).*/{
1162447e89262Smrg	    s//\1/
1162547e89262Smrg	    q
1162647e89262Smrg	  }
1162747e89262Smrg	  s/.*/./; q'`
116285bcb6992Smrg
1162947e89262Smrg# Avoid depending upon Character Ranges.
1163047e89262Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
1163147e89262Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1163247e89262Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
1163347e89262Smrgas_cr_digits='0123456789'
1163447e89262Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
116355bcb6992Smrg
1163647e89262SmrgECHO_C= ECHO_N= ECHO_T=
1163747e89262Smrgcase `echo -n x` in #(((((
1163847e89262Smrg-n*)
1163947e89262Smrg  case `echo 'xy\c'` in
1164047e89262Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
1164147e89262Smrg  xy)  ECHO_C='\c';;
1164247e89262Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
1164347e89262Smrg       ECHO_T='	';;
1164447e89262Smrg  esac;;
1164547e89262Smrg*)
1164647e89262Smrg  ECHO_N='-n';;
1164747e89262Smrgesac
116485bcb6992Smrg
1164947e89262Smrgrm -f conf$$ conf$$.exe conf$$.file
1165047e89262Smrgif test -d conf$$.dir; then
1165147e89262Smrg  rm -f conf$$.dir/conf$$.file
1165247e89262Smrgelse
1165347e89262Smrg  rm -f conf$$.dir
1165447e89262Smrg  mkdir conf$$.dir 2>/dev/null
1165547e89262Smrgfi
1165647e89262Smrgif (echo >conf$$.file) 2>/dev/null; then
1165747e89262Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
1165847e89262Smrg    as_ln_s='ln -s'
1165947e89262Smrg    # ... but there are two gotchas:
1166047e89262Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1166147e89262Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1166247e89262Smrg    # In both cases, we have to default to `cp -p'.
1166347e89262Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1166447e89262Smrg      as_ln_s='cp -p'
1166547e89262Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
1166647e89262Smrg    as_ln_s=ln
1166747e89262Smrg  else
1166847e89262Smrg    as_ln_s='cp -p'
1166947e89262Smrg  fi
1167047e89262Smrgelse
1167147e89262Smrg  as_ln_s='cp -p'
1167247e89262Smrgfi
1167347e89262Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1167447e89262Smrgrmdir conf$$.dir 2>/dev/null
116755bcb6992Smrg
116765bcb6992Smrg
1167747e89262Smrg# as_fn_mkdir_p
1167847e89262Smrg# -------------
1167947e89262Smrg# Create "$as_dir" as a directory, including parents if necessary.
1168047e89262Smrgas_fn_mkdir_p ()
1168147e89262Smrg{
116825bcb6992Smrg
1168347e89262Smrg  case $as_dir in #(
1168447e89262Smrg  -*) as_dir=./$as_dir;;
1168547e89262Smrg  esac
1168647e89262Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
1168747e89262Smrg    as_dirs=
1168847e89262Smrg    while :; do
1168947e89262Smrg      case $as_dir in #(
1169047e89262Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1169147e89262Smrg      *) as_qdir=$as_dir;;
1169247e89262Smrg      esac
1169347e89262Smrg      as_dirs="'$as_qdir' $as_dirs"
1169447e89262Smrg      as_dir=`$as_dirname -- "$as_dir" ||
1169547e89262Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169647e89262Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
1169747e89262Smrg	 X"$as_dir" : 'X\(//\)$' \| \
1169847e89262Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1169947e89262Smrg$as_echo X"$as_dir" |
1170047e89262Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170147e89262Smrg	    s//\1/
1170247e89262Smrg	    q
1170347e89262Smrg	  }
1170447e89262Smrg	  /^X\(\/\/\)[^/].*/{
1170547e89262Smrg	    s//\1/
1170647e89262Smrg	    q
1170747e89262Smrg	  }
1170847e89262Smrg	  /^X\(\/\/\)$/{
1170947e89262Smrg	    s//\1/
1171047e89262Smrg	    q
1171147e89262Smrg	  }
1171247e89262Smrg	  /^X\(\/\).*/{
1171347e89262Smrg	    s//\1/
1171447e89262Smrg	    q
1171547e89262Smrg	  }
1171647e89262Smrg	  s/.*/./; q'`
1171747e89262Smrg      test -d "$as_dir" && break
1171847e89262Smrg    done
1171947e89262Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
1172047e89262Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
117215bcb6992Smrg
117225bcb6992Smrg
1172347e89262Smrg} # as_fn_mkdir_p
1172447e89262Smrgif mkdir -p . 2>/dev/null; then
1172547e89262Smrg  as_mkdir_p='mkdir -p "$as_dir"'
1172647e89262Smrgelse
1172747e89262Smrg  test -d ./-p && rmdir ./-p
1172847e89262Smrg  as_mkdir_p=false
117295bcb6992Smrgfi
117305bcb6992Smrg
1173147e89262Smrgif test -x / >/dev/null 2>&1; then
1173247e89262Smrg  as_test_x='test -x'
1173347e89262Smrgelse
1173447e89262Smrg  if ls -dL / >/dev/null 2>&1; then
1173547e89262Smrg    as_ls_L_option=L
1173647e89262Smrg  else
1173747e89262Smrg    as_ls_L_option=
1173847e89262Smrg  fi
1173947e89262Smrg  as_test_x='
1174047e89262Smrg    eval sh -c '\''
1174147e89262Smrg      if test -d "$1"; then
1174247e89262Smrg	test -d "$1/.";
1174347e89262Smrg      else
1174447e89262Smrg	case $1 in #(
1174547e89262Smrg	-*)set "./$1";;
1174647e89262Smrg	esac;
1174747e89262Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1174847e89262Smrg	???[sx]*):;;*)false;;esac;fi
1174947e89262Smrg    '\'' sh
1175047e89262Smrg  '
117515bcb6992Smrgfi
1175247e89262Smrgas_executable_p=$as_test_x
117535bcb6992Smrg
1175447e89262Smrg# Sed expression to map a string onto a valid CPP name.
1175547e89262Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
117565bcb6992Smrg
1175747e89262Smrg# Sed expression to map a string onto a valid variable name.
1175847e89262Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
117595bcb6992Smrg
117605bcb6992Smrg
1176147e89262Smrgexec 6>&1
1176247e89262Smrg## ----------------------------------- ##
1176347e89262Smrg## Main body of $CONFIG_STATUS script. ##
1176447e89262Smrg## ----------------------------------- ##
1176547e89262Smrg_ASEOF
1176647e89262Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
117675bcb6992Smrg
1176847e89262Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1176947e89262Smrg# Save the log message, to keep $0 and so on meaningful, and to
1177047e89262Smrg# report actual input values of CONFIG_FILES etc. instead of their
1177147e89262Smrg# values after options handling.
1177247e89262Smrgac_log="
1177347e89262SmrgThis file was extended by libXres $as_me 1.0.5, which was
1177447e89262Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
117755bcb6992Smrg
1177647e89262Smrg  CONFIG_FILES    = $CONFIG_FILES
1177747e89262Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
1177847e89262Smrg  CONFIG_LINKS    = $CONFIG_LINKS
1177947e89262Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1178047e89262Smrg  $ $0 $@
117815bcb6992Smrg
1178247e89262Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
1178347e89262Smrg"
117845bcb6992Smrg
1178547e89262Smrg_ACEOF
117865bcb6992Smrg
1178747e89262Smrgcase $ac_config_files in *"
1178847e89262Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
1178947e89262Smrgesac
117905bcb6992Smrg
1179147e89262Smrgcase $ac_config_headers in *"
1179247e89262Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
1179347e89262Smrgesac
117945bcb6992Smrg
117955bcb6992Smrg
1179647e89262Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1179747e89262Smrg# Files that config.status was made for.
1179847e89262Smrgconfig_files="$ac_config_files"
1179947e89262Smrgconfig_headers="$ac_config_headers"
1180047e89262Smrgconfig_commands="$ac_config_commands"
118015bcb6992Smrg
1180247e89262Smrg_ACEOF
118035bcb6992Smrg
1180447e89262Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1180547e89262Smrgac_cs_usage="\
1180647e89262Smrg\`$as_me' instantiates files and other configuration actions
1180747e89262Smrgfrom templates according to the current configuration.  Unless the files
1180847e89262Smrgand actions are specified as TAGs, all are instantiated by default.
118095bcb6992Smrg
1181047e89262SmrgUsage: $0 [OPTION]... [TAG]...
118115bcb6992Smrg
1181247e89262Smrg  -h, --help       print this help, then exit
1181347e89262Smrg  -V, --version    print version number and configuration settings, then exit
1181447e89262Smrg      --config     print configuration, then exit
1181547e89262Smrg  -q, --quiet, --silent
1181647e89262Smrg                   do not print progress messages
1181747e89262Smrg  -d, --debug      don't remove temporary files
1181847e89262Smrg      --recheck    update $as_me by reconfiguring in the same conditions
1181947e89262Smrg      --file=FILE[:TEMPLATE]
1182047e89262Smrg                   instantiate the configuration file FILE
1182147e89262Smrg      --header=FILE[:TEMPLATE]
1182247e89262Smrg                   instantiate the configuration header FILE
118235bcb6992Smrg
1182447e89262SmrgConfiguration files:
1182547e89262Smrg$config_files
118265bcb6992Smrg
1182747e89262SmrgConfiguration headers:
1182847e89262Smrg$config_headers
118295bcb6992Smrg
1183047e89262SmrgConfiguration commands:
1183147e89262Smrg$config_commands
118325bcb6992Smrg
1183347e89262SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
118345bcb6992Smrg
1183547e89262Smrg_ACEOF
1183647e89262Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1183747e89262Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1183847e89262Smrgac_cs_version="\\
1183947e89262SmrglibXres config.status 1.0.5
1184047e89262Smrgconfigured by $0, generated by GNU Autoconf 2.68,
1184147e89262Smrg  with options \\"\$ac_cs_config\\"
118425bcb6992Smrg
1184347e89262SmrgCopyright (C) 2010 Free Software Foundation, Inc.
1184447e89262SmrgThis config.status script is free software; the Free Software Foundation
1184547e89262Smrggives unlimited permission to copy, distribute and modify it."
118465bcb6992Smrg
1184747e89262Smrgac_pwd='$ac_pwd'
1184847e89262Smrgsrcdir='$srcdir'
1184947e89262SmrgINSTALL='$INSTALL'
1185047e89262SmrgMKDIR_P='$MKDIR_P'
1185147e89262SmrgAWK='$AWK'
1185247e89262Smrgtest -n "\$AWK" || AWK=awk
1185347e89262Smrg_ACEOF
118545bcb6992Smrg
1185547e89262Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1185647e89262Smrg# The default lists apply if the user does not specify any file.
1185747e89262Smrgac_need_defaults=:
1185847e89262Smrgwhile test $# != 0
11859bd1da9d7Smrgdo
1186047e89262Smrg  case $1 in
1186147e89262Smrg  --*=?*)
1186247e89262Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1186347e89262Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1186447e89262Smrg    ac_shift=:
1186547e89262Smrg    ;;
1186647e89262Smrg  --*=)
1186747e89262Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1186847e89262Smrg    ac_optarg=
1186947e89262Smrg    ac_shift=:
1187047e89262Smrg    ;;
1187147e89262Smrg  *)
1187247e89262Smrg    ac_option=$1
1187347e89262Smrg    ac_optarg=$2
1187447e89262Smrg    ac_shift=shift
1187547e89262Smrg    ;;
1187647e89262Smrg  esac
11877bd1da9d7Smrg
1187847e89262Smrg  case $ac_option in
1187947e89262Smrg  # Handling of the options.
1188047e89262Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1188147e89262Smrg    ac_cs_recheck=: ;;
1188247e89262Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1188347e89262Smrg    $as_echo "$ac_cs_version"; exit ;;
1188447e89262Smrg  --config | --confi | --conf | --con | --co | --c )
1188547e89262Smrg    $as_echo "$ac_cs_config"; exit ;;
1188647e89262Smrg  --debug | --debu | --deb | --de | --d | -d )
1188747e89262Smrg    debug=: ;;
1188847e89262Smrg  --file | --fil | --fi | --f )
1188947e89262Smrg    $ac_shift
1189047e89262Smrg    case $ac_optarg in
1189147e89262Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1189247e89262Smrg    '') as_fn_error $? "missing file argument" ;;
1189347e89262Smrg    esac
1189447e89262Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1189547e89262Smrg    ac_need_defaults=false;;
1189647e89262Smrg  --header | --heade | --head | --hea )
1189747e89262Smrg    $ac_shift
1189847e89262Smrg    case $ac_optarg in
1189947e89262Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1190047e89262Smrg    esac
1190147e89262Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1190247e89262Smrg    ac_need_defaults=false;;
1190347e89262Smrg  --he | --h)
1190447e89262Smrg    # Conflict between --help and --header
1190547e89262Smrg    as_fn_error $? "ambiguous option: \`$1'
1190647e89262SmrgTry \`$0 --help' for more information.";;
1190747e89262Smrg  --help | --hel | -h )
1190847e89262Smrg    $as_echo "$ac_cs_usage"; exit ;;
1190947e89262Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191047e89262Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1191147e89262Smrg    ac_cs_silent=: ;;
11912bd1da9d7Smrg
1191347e89262Smrg  # This is an error.
1191447e89262Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
1191547e89262SmrgTry \`$0 --help' for more information." ;;
11916bd1da9d7Smrg
1191747e89262Smrg  *) as_fn_append ac_config_targets " $1"
1191847e89262Smrg     ac_need_defaults=false ;;
1191947e89262Smrg
1192047e89262Smrg  esac
1192147e89262Smrg  shift
11922bd1da9d7Smrgdone
11923bd1da9d7Smrg
1192447e89262Smrgac_configure_extra_args=
11925bd1da9d7Smrg
1192647e89262Smrgif $ac_cs_silent; then
1192747e89262Smrg  exec 6>/dev/null
1192847e89262Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
11929bd1da9d7Smrgfi
11930bd1da9d7Smrg
1193147e89262Smrg_ACEOF
1193247e89262Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1193347e89262Smrgif \$ac_cs_recheck; then
1193447e89262Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1193547e89262Smrg  shift
1193647e89262Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1193747e89262Smrg  CONFIG_SHELL='$SHELL'
1193847e89262Smrg  export CONFIG_SHELL
1193947e89262Smrg  exec "\$@"
11940bd1da9d7Smrgfi
11941bd1da9d7Smrg
1194247e89262Smrg_ACEOF
1194347e89262Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1194447e89262Smrgexec 5>>config.log
1194547e89262Smrg{
1194647e89262Smrg  echo
1194747e89262Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1194847e89262Smrg## Running $as_me. ##
1194947e89262Smrg_ASBOX
1195047e89262Smrg  $as_echo "$ac_log"
1195147e89262Smrg} >&5
11952bd1da9d7Smrg
1195347e89262Smrg_ACEOF
1195447e89262Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1195547e89262Smrg#
1195647e89262Smrg# INIT-COMMANDS
1195747e89262Smrg#
1195847e89262SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
119595bcb6992Smrg
1196047e89262Smrg
1196147e89262Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout
1196247e89262Smrg# if CDPATH is set.
1196347e89262Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1196447e89262Smrg
1196547e89262Smrgsed_quote_subst='$sed_quote_subst'
1196647e89262Smrgdouble_quote_subst='$double_quote_subst'
1196747e89262Smrgdelay_variable_subst='$delay_variable_subst'
1196847e89262Smrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
1196947e89262Smrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1197047e89262Smrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1197147e89262Smrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1197247e89262Smrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1197347e89262Smrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
1197447e89262SmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1197547e89262SmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1197647e89262Smrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
1197747e89262Smrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
1197847e89262Smrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
1197947e89262Smrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
1198047e89262Smrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
1198147e89262Smrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
1198247e89262SmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
1198347e89262SmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
1198447e89262SmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
1198547e89262SmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
1198647e89262SmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
1198747e89262SmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
1198847e89262SmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
1198947e89262SmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
1199047e89262Smrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
1199147e89262Smrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
1199247e89262Smrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
1199347e89262Smrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
1199447e89262Smrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
1199547e89262Smrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
1199647e89262Smrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1199747e89262Smrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1199847e89262SmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1199947e89262Smrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1200047e89262Smrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
1200147e89262SmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1200247e89262SmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
1200347e89262SmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1200447e89262SmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
1200547e89262Smrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
1200647e89262Smrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
1200747e89262Smrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
1200847e89262Smrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
1200947e89262SmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
1201047e89262SmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
1201147e89262Smrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
1201247e89262SmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
1201347e89262Smrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
1201447e89262Smrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1201547e89262Smrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1201647e89262Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
1201747e89262Smrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1201847e89262SmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1201947e89262Smrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1202047e89262Smrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
1202147e89262Smrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1202247e89262Smrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
1202347e89262Smrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
1202447e89262Smrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
1202547e89262SmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
1202647e89262SmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
1202747e89262SmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
1202847e89262SmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
1202947e89262SmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
1203047e89262Smrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
1203147e89262Smrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
1203247e89262Smrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
1203347e89262Smrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
1203447e89262Smrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
1203547e89262Smrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
1203647e89262Smrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
1203747e89262Smrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
1203847e89262Smrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
1203947e89262Smrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
1204047e89262Smrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
1204147e89262Smrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
1204247e89262Smrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
1204347e89262Smrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
1204447e89262Smrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
1204547e89262Smrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
1204647e89262Smrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
1204747e89262Smrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
1204847e89262Smrghardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
1204947e89262Smrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
1205047e89262Smrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
1205147e89262Smrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
1205247e89262Smrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
1205347e89262Smrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
1205447e89262Smrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
1205547e89262Smrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
1205647e89262Smrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
1205747e89262Smrgfix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
1205847e89262Smrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
1205947e89262Smrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
1206047e89262Smrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
1206147e89262Smrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
1206247e89262Smrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
1206347e89262Smrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
1206447e89262Smrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
1206547e89262Smrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
1206647e89262Smrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
1206747e89262Smrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
1206847e89262Smrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
1206947e89262Smrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
1207047e89262Smrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
1207147e89262Smrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
1207247e89262Smrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
1207347e89262Smrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
1207447e89262Smrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
1207547e89262Smrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
1207647e89262Smrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
1207747e89262Smrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
1207847e89262Smrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
1207947e89262Smrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
1208047e89262Smrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
1208147e89262Smrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
1208247e89262Smrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
1208347e89262Smrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
1208447e89262Smrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
1208547e89262Smrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
1208647e89262Smrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
1208747e89262Smrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1208847e89262Smrg
1208947e89262SmrgLTCC='$LTCC'
1209047e89262SmrgLTCFLAGS='$LTCFLAGS'
1209147e89262Smrgcompiler='$compiler_DEFAULT'
1209247e89262Smrg
1209347e89262Smrg# A function that is used when there is no print builtin or printf.
1209447e89262Smrgfunc_fallback_echo ()
1209547e89262Smrg{
1209647e89262Smrg  eval 'cat <<_LTECHO_EOF
1209747e89262Smrg\$1
1209847e89262Smrg_LTECHO_EOF'
1209947e89262Smrg}
1210047e89262Smrg
1210147e89262Smrg# Quote evaled strings.
1210247e89262Smrgfor var in SHELL \
1210347e89262SmrgECHO \
1210447e89262SmrgSED \
1210547e89262SmrgGREP \
1210647e89262SmrgEGREP \
1210747e89262SmrgFGREP \
1210847e89262SmrgLD \
1210947e89262SmrgNM \
1211047e89262SmrgLN_S \
1211147e89262Smrglt_SP2NL \
1211247e89262Smrglt_NL2SP \
1211347e89262Smrgreload_flag \
1211447e89262SmrgOBJDUMP \
1211547e89262Smrgdeplibs_check_method \
1211647e89262Smrgfile_magic_cmd \
1211747e89262SmrgAR \
1211847e89262SmrgAR_FLAGS \
1211947e89262SmrgSTRIP \
1212047e89262SmrgRANLIB \
1212147e89262SmrgCC \
1212247e89262SmrgCFLAGS \
1212347e89262Smrgcompiler \
1212447e89262Smrglt_cv_sys_global_symbol_pipe \
1212547e89262Smrglt_cv_sys_global_symbol_to_cdecl \
1212647e89262Smrglt_cv_sys_global_symbol_to_c_name_address \
1212747e89262Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1212847e89262Smrglt_prog_compiler_no_builtin_flag \
1212947e89262Smrglt_prog_compiler_wl \
1213047e89262Smrglt_prog_compiler_pic \
1213147e89262Smrglt_prog_compiler_static \
1213247e89262Smrglt_cv_prog_compiler_c_o \
1213347e89262Smrgneed_locks \
1213447e89262SmrgDSYMUTIL \
1213547e89262SmrgNMEDIT \
1213647e89262SmrgLIPO \
1213747e89262SmrgOTOOL \
1213847e89262SmrgOTOOL64 \
1213947e89262Smrgshrext_cmds \
1214047e89262Smrgexport_dynamic_flag_spec \
1214147e89262Smrgwhole_archive_flag_spec \
1214247e89262Smrgcompiler_needs_object \
1214347e89262Smrgwith_gnu_ld \
1214447e89262Smrgallow_undefined_flag \
1214547e89262Smrgno_undefined_flag \
1214647e89262Smrghardcode_libdir_flag_spec \
1214747e89262Smrghardcode_libdir_flag_spec_ld \
1214847e89262Smrghardcode_libdir_separator \
1214947e89262Smrgfix_srcfile_path \
1215047e89262Smrgexclude_expsyms \
1215147e89262Smrginclude_expsyms \
1215247e89262Smrgfile_list_spec \
1215347e89262Smrgvariables_saved_for_relink \
1215447e89262Smrglibname_spec \
1215547e89262Smrglibrary_names_spec \
1215647e89262Smrgsoname_spec \
1215747e89262Smrginstall_override_mode \
1215847e89262Smrgfinish_eval \
1215947e89262Smrgold_striplib \
1216047e89262Smrgstriplib; do
1216147e89262Smrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1216247e89262Smrg    *[\\\\\\\`\\"\\\$]*)
1216347e89262Smrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1216447e89262Smrg      ;;
1216547e89262Smrg    *)
1216647e89262Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1216747e89262Smrg      ;;
1216847e89262Smrg    esac
1216947e89262Smrgdone
1217047e89262Smrg
1217147e89262Smrg# Double-quote double-evaled strings.
1217247e89262Smrgfor var in reload_cmds \
1217347e89262Smrgold_postinstall_cmds \
1217447e89262Smrgold_postuninstall_cmds \
1217547e89262Smrgold_archive_cmds \
1217647e89262Smrgextract_expsyms_cmds \
1217747e89262Smrgold_archive_from_new_cmds \
1217847e89262Smrgold_archive_from_expsyms_cmds \
1217947e89262Smrgarchive_cmds \
1218047e89262Smrgarchive_expsym_cmds \
1218147e89262Smrgmodule_cmds \
1218247e89262Smrgmodule_expsym_cmds \
1218347e89262Smrgexport_symbols_cmds \
1218447e89262Smrgprelink_cmds \
1218547e89262Smrgpostinstall_cmds \
1218647e89262Smrgpostuninstall_cmds \
1218747e89262Smrgfinish_cmds \
1218847e89262Smrgsys_lib_search_path_spec \
1218947e89262Smrgsys_lib_dlsearch_path_spec; do
1219047e89262Smrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1219147e89262Smrg    *[\\\\\\\`\\"\\\$]*)
1219247e89262Smrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1219347e89262Smrg      ;;
1219447e89262Smrg    *)
1219547e89262Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1219647e89262Smrg      ;;
1219747e89262Smrg    esac
1219847e89262Smrgdone
1219947e89262Smrg
1220047e89262Smrgac_aux_dir='$ac_aux_dir'
1220147e89262Smrgxsi_shell='$xsi_shell'
1220247e89262Smrglt_shell_append='$lt_shell_append'
1220347e89262Smrg
1220447e89262Smrg# See if we are running on zsh, and set the options which allow our
1220547e89262Smrg# commands through without removal of \ escapes INIT.
1220647e89262Smrgif test -n "\${ZSH_VERSION+set}" ; then
1220747e89262Smrg   setopt NO_GLOB_SUBST
12208bd1da9d7Smrgfi
12209bd1da9d7Smrg
12210bd1da9d7Smrg
1221147e89262Smrg    PACKAGE='$PACKAGE'
1221247e89262Smrg    VERSION='$VERSION'
1221347e89262Smrg    TIMESTAMP='$TIMESTAMP'
1221447e89262Smrg    RM='$RM'
1221547e89262Smrg    ofile='$ofile'
12216bd1da9d7Smrg
12217bd1da9d7Smrg
12218bd1da9d7Smrg
12219bd1da9d7Smrg
1222047e89262Smrg_ACEOF
12221bd1da9d7Smrg
1222247e89262Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12223bd1da9d7Smrg
1222447e89262Smrg# Handling of arguments.
1222547e89262Smrgfor ac_config_target in $ac_config_targets
1222647e89262Smrgdo
1222747e89262Smrg  case $ac_config_target in
1222847e89262Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1222947e89262Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1223047e89262Smrg    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1223147e89262Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1223247e89262Smrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
1223347e89262Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
1223447e89262Smrg    "xres.pc") CONFIG_FILES="$CONFIG_FILES xres.pc" ;;
12235bd1da9d7Smrg
1223647e89262Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1223747e89262Smrg  esac
1223847e89262Smrgdone
12239bd1da9d7Smrg
12240bd1da9d7Smrg
1224147e89262Smrg# If the user did not use the arguments to specify the items to instantiate,
1224247e89262Smrg# then the envvar interface is used.  Set only those that are not.
1224347e89262Smrg# We use the long form for the default assignment because of an extremely
1224447e89262Smrg# bizarre bug on SunOS 4.1.3.
1224547e89262Smrgif $ac_need_defaults; then
1224647e89262Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1224747e89262Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1224847e89262Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1224947e89262Smrgfi
12250bd1da9d7Smrg
1225147e89262Smrg# Have a temporary directory for convenience.  Make it in the build tree
1225247e89262Smrg# simply because there is no reason against having it here, and in addition,
1225347e89262Smrg# creating and moving files from /tmp can sometimes cause problems.
1225447e89262Smrg# Hook for its removal unless debugging.
1225547e89262Smrg# Note that there is a small window in which the directory will not be cleaned:
1225647e89262Smrg# after its creation but before its name has been assigned to `$tmp'.
1225747e89262Smrg$debug ||
1225847e89262Smrg{
1225947e89262Smrg  tmp= ac_tmp=
1226047e89262Smrg  trap 'exit_status=$?
1226147e89262Smrg  : "${ac_tmp:=$tmp}"
1226247e89262Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1226347e89262Smrg' 0
1226447e89262Smrg  trap 'as_fn_exit 1' 1 2 13 15
1226547e89262Smrg}
1226647e89262Smrg# Create a (secure) tmp directory for tmp files.
12267bd1da9d7Smrg
1226847e89262Smrg{
1226947e89262Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1227047e89262Smrg  test -d "$tmp"
1227147e89262Smrg}  ||
1227247e89262Smrg{
1227347e89262Smrg  tmp=./conf$$-$RANDOM
1227447e89262Smrg  (umask 077 && mkdir "$tmp")
1227547e89262Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1227647e89262Smrgac_tmp=$tmp
12277bd1da9d7Smrg
1227847e89262Smrg# Set up the scripts for CONFIG_FILES section.
1227947e89262Smrg# No need to generate them if there are no CONFIG_FILES.
1228047e89262Smrg# This happens for instance with `./config.status config.h'.
1228147e89262Smrgif test -n "$CONFIG_FILES"; then
12282bd1da9d7Smrg
1228347e89262Smrg
1228447e89262Smrgac_cr=`echo X | tr X '\015'`
1228547e89262Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
1228647e89262Smrg# But we know of no other shell where ac_cr would be empty at this
1228747e89262Smrg# point, so we can use a bashism as a fallback.
1228847e89262Smrgif test "x$ac_cr" = x; then
1228947e89262Smrg  eval ac_cr=\$\'\\r\'
1229047e89262Smrgfi
1229147e89262Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
1229247e89262Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1229347e89262Smrg  ac_cs_awk_cr='\\r'
12294bd1da9d7Smrgelse
1229547e89262Smrg  ac_cs_awk_cr=$ac_cr
12296bd1da9d7Smrgfi
1229747e89262Smrg
1229847e89262Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1229947e89262Smrg_ACEOF
12300bd1da9d7Smrg
12301bd1da9d7Smrg
1230247e89262Smrg{
1230347e89262Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
1230447e89262Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
1230547e89262Smrg  echo "_ACEOF"
1230647e89262Smrg} >conf$$subs.sh ||
1230747e89262Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1230847e89262Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1230947e89262Smrgac_delim='%!_!# '
1231047e89262Smrgfor ac_last_try in false false false false false :; do
1231147e89262Smrg  . ./conf$$subs.sh ||
1231247e89262Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12313bd1da9d7Smrg
1231447e89262Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
1231547e89262Smrg  if test $ac_delim_n = $ac_delim_num; then
1231647e89262Smrg    break
1231747e89262Smrg  elif $ac_last_try; then
1231847e89262Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1231947e89262Smrg  else
1232047e89262Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1232147e89262Smrg  fi
1232247e89262Smrgdone
1232347e89262Smrgrm -f conf$$subs.sh
12324bd1da9d7Smrg
1232547e89262Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1232647e89262Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1232747e89262Smrg_ACEOF
1232847e89262Smrgsed -n '
1232947e89262Smrgh
1233047e89262Smrgs/^/S["/; s/!.*/"]=/
1233147e89262Smrgp
1233247e89262Smrgg
1233347e89262Smrgs/^[^!]*!//
1233447e89262Smrg:repl
1233547e89262Smrgt repl
1233647e89262Smrgs/'"$ac_delim"'$//
1233747e89262Smrgt delim
1233847e89262Smrg:nl
1233947e89262Smrgh
1234047e89262Smrgs/\(.\{148\}\)..*/\1/
1234147e89262Smrgt more1
1234247e89262Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
1234347e89262Smrgp
1234447e89262Smrgn
1234547e89262Smrgb repl
1234647e89262Smrg:more1
1234747e89262Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1234847e89262Smrgp
1234947e89262Smrgg
1235047e89262Smrgs/.\{148\}//
1235147e89262Smrgt nl
1235247e89262Smrg:delim
1235347e89262Smrgh
1235447e89262Smrgs/\(.\{148\}\)..*/\1/
1235547e89262Smrgt more2
1235647e89262Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
1235747e89262Smrgp
1235847e89262Smrgb
1235947e89262Smrg:more2
1236047e89262Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1236147e89262Smrgp
1236247e89262Smrgg
1236347e89262Smrgs/.\{148\}//
1236447e89262Smrgt delim
1236547e89262Smrg' <conf$$subs.awk | sed '
1236647e89262Smrg/^[^""]/{
1236747e89262Smrg  N
1236847e89262Smrg  s/\n//
1236947e89262Smrg}
1237047e89262Smrg' >>$CONFIG_STATUS || ac_write_fail=1
1237147e89262Smrgrm -f conf$$subs.awk
1237247e89262Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1237347e89262Smrg_ACAWK
1237447e89262Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1237547e89262Smrg  for (key in S) S_is_set[key] = 1
1237647e89262Smrg  FS = ""
1237747e89262Smrg
1237847e89262Smrg}
1237947e89262Smrg{
1238047e89262Smrg  line = $ 0
1238147e89262Smrg  nfields = split(line, field, "@")
1238247e89262Smrg  substed = 0
1238347e89262Smrg  len = length(field[1])
1238447e89262Smrg  for (i = 2; i < nfields; i++) {
1238547e89262Smrg    key = field[i]
1238647e89262Smrg    keylen = length(key)
1238747e89262Smrg    if (S_is_set[key]) {
1238847e89262Smrg      value = S[key]
1238947e89262Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
1239047e89262Smrg      len += length(value) + length(field[++i])
1239147e89262Smrg      substed = 1
1239247e89262Smrg    } else
1239347e89262Smrg      len += 1 + keylen
1239447e89262Smrg  }
1239547e89262Smrg
1239647e89262Smrg  print line
1239747e89262Smrg}
1239847e89262Smrg
1239947e89262Smrg_ACAWK
1240047e89262Smrg_ACEOF
1240147e89262Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1240247e89262Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
1240347e89262Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12404bd1da9d7Smrgelse
1240547e89262Smrg  cat
1240647e89262Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1240747e89262Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1240847e89262Smrg_ACEOF
1240947e89262Smrg
1241047e89262Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
1241147e89262Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1241247e89262Smrg# trailing colons and then remove the whole line if VPATH becomes empty
1241347e89262Smrg# (actually we leave an empty line to preserve line numbers).
1241447e89262Smrgif test "x$srcdir" = x.; then
1241547e89262Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
1241647e89262Smrgh
1241747e89262Smrgs///
1241847e89262Smrgs/^/:/
1241947e89262Smrgs/[	 ]*$/:/
1242047e89262Smrgs/:\$(srcdir):/:/g
1242147e89262Smrgs/:\${srcdir}:/:/g
1242247e89262Smrgs/:@srcdir@:/:/g
1242347e89262Smrgs/^:*//
1242447e89262Smrgs/:*$//
1242547e89262Smrgx
1242647e89262Smrgs/\(=[	 ]*\).*/\1/
1242747e89262SmrgG
1242847e89262Smrgs/\n//
1242947e89262Smrgs/^[^=]*=[	 ]*$//
1243047e89262Smrg}'
12431bd1da9d7Smrgfi
12432bd1da9d7Smrg
1243347e89262Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1243447e89262Smrgfi # test -n "$CONFIG_FILES"
12435bd1da9d7Smrg
1243647e89262Smrg# Set up the scripts for CONFIG_HEADERS section.
1243747e89262Smrg# No need to generate them if there are no CONFIG_HEADERS.
1243847e89262Smrg# This happens for instance with `./config.status Makefile'.
1243947e89262Smrgif test -n "$CONFIG_HEADERS"; then
1244047e89262Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1244147e89262SmrgBEGIN {
1244247e89262Smrg_ACEOF
1244347e89262Smrg
1244447e89262Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
1244547e89262Smrg# here-document in config.status, that substitutes the proper values into
1244647e89262Smrg# config.h.in to produce config.h.
1244747e89262Smrg
1244847e89262Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
1244947e89262Smrg# handling of long lines.
1245047e89262Smrgac_delim='%!_!# '
1245147e89262Smrgfor ac_last_try in false false :; do
1245247e89262Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
1245347e89262Smrg  if test -z "$ac_tt"; then
1245447e89262Smrg    break
1245547e89262Smrg  elif $ac_last_try; then
1245647e89262Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1245747e89262Smrg  else
1245847e89262Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1245947e89262Smrg  fi
1246047e89262Smrgdone
1246147e89262Smrg
1246247e89262Smrg# For the awk script, D is an array of macro values keyed by name,
1246347e89262Smrg# likewise P contains macro parameters if any.  Preserve backslash
1246447e89262Smrg# newline sequences.
1246547e89262Smrg
1246647e89262Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
1246747e89262Smrgsed -n '
1246847e89262Smrgs/.\{148\}/&'"$ac_delim"'/g
1246947e89262Smrgt rset
1247047e89262Smrg:rset
1247147e89262Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
1247247e89262Smrgt def
1247347e89262Smrgd
1247447e89262Smrg:def
1247547e89262Smrgs/\\$//
1247647e89262Smrgt bsnl
1247747e89262Smrgs/["\\]/\\&/g
1247847e89262Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1247947e89262SmrgD["\1"]=" \3"/p
1248047e89262Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
1248147e89262Smrgd
1248247e89262Smrg:bsnl
1248347e89262Smrgs/["\\]/\\&/g
1248447e89262Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1248547e89262SmrgD["\1"]=" \3\\\\\\n"\\/p
1248647e89262Smrgt cont
1248747e89262Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
1248847e89262Smrgt cont
1248947e89262Smrgd
1249047e89262Smrg:cont
1249147e89262Smrgn
1249247e89262Smrgs/.\{148\}/&'"$ac_delim"'/g
1249347e89262Smrgt clear
1249447e89262Smrg:clear
1249547e89262Smrgs/\\$//
1249647e89262Smrgt bsnlc
1249747e89262Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
1249847e89262Smrgd
1249947e89262Smrg:bsnlc
1250047e89262Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
1250147e89262Smrgb cont
1250247e89262Smrg' <confdefs.h | sed '
1250347e89262Smrgs/'"$ac_delim"'/"\\\
1250447e89262Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12505bd1da9d7Smrg
1250647e89262Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1250747e89262Smrg  for (key in D) D_is_set[key] = 1
1250847e89262Smrg  FS = ""
1250947e89262Smrg}
1251047e89262Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
1251147e89262Smrg  line = \$ 0
1251247e89262Smrg  split(line, arg, " ")
1251347e89262Smrg  if (arg[1] == "#") {
1251447e89262Smrg    defundef = arg[2]
1251547e89262Smrg    mac1 = arg[3]
1251647e89262Smrg  } else {
1251747e89262Smrg    defundef = substr(arg[1], 2)
1251847e89262Smrg    mac1 = arg[2]
1251947e89262Smrg  }
1252047e89262Smrg  split(mac1, mac2, "(") #)
1252147e89262Smrg  macro = mac2[1]
1252247e89262Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
1252347e89262Smrg  if (D_is_set[macro]) {
1252447e89262Smrg    # Preserve the white space surrounding the "#".
1252547e89262Smrg    print prefix "define", macro P[macro] D[macro]
1252647e89262Smrg    next
1252747e89262Smrg  } else {
1252847e89262Smrg    # Replace #undef with comments.  This is necessary, for example,
1252947e89262Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
1253047e89262Smrg    # on some systems where configure will not decide to define it.
1253147e89262Smrg    if (defundef == "undef") {
1253247e89262Smrg      print "/*", prefix defundef, macro, "*/"
1253347e89262Smrg      next
1253447e89262Smrg    }
1253547e89262Smrg  }
12536bd1da9d7Smrg}
1253747e89262Smrg{ print }
1253847e89262Smrg_ACAWK
12539bd1da9d7Smrg_ACEOF
1254047e89262Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1254147e89262Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1254247e89262Smrgfi # test -n "$CONFIG_HEADERS"
12543bd1da9d7Smrg
12544bd1da9d7Smrg
1254547e89262Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
1254647e89262Smrgshift
1254747e89262Smrgfor ac_tag
1254847e89262Smrgdo
1254947e89262Smrg  case $ac_tag in
1255047e89262Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
1255147e89262Smrg  esac
1255247e89262Smrg  case $ac_mode$ac_tag in
1255347e89262Smrg  :[FHL]*:*);;
1255447e89262Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1255547e89262Smrg  :[FH]-) ac_tag=-:-;;
1255647e89262Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1255747e89262Smrg  esac
1255847e89262Smrg  ac_save_IFS=$IFS
1255947e89262Smrg  IFS=:
1256047e89262Smrg  set x $ac_tag
1256147e89262Smrg  IFS=$ac_save_IFS
1256247e89262Smrg  shift
1256347e89262Smrg  ac_file=$1
1256447e89262Smrg  shift
12565bd1da9d7Smrg
1256647e89262Smrg  case $ac_mode in
1256747e89262Smrg  :L) ac_source=$1;;
1256847e89262Smrg  :[FH])
1256947e89262Smrg    ac_file_inputs=
1257047e89262Smrg    for ac_f
1257147e89262Smrg    do
1257247e89262Smrg      case $ac_f in
1257347e89262Smrg      -) ac_f="$ac_tmp/stdin";;
1257447e89262Smrg      *) # Look for the file first in the build tree, then in the source tree
1257547e89262Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
1257647e89262Smrg	 # because $ac_f cannot contain `:'.
1257747e89262Smrg	 test -f "$ac_f" ||
1257847e89262Smrg	   case $ac_f in
1257947e89262Smrg	   [\\/$]*) false;;
1258047e89262Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1258147e89262Smrg	   esac ||
1258247e89262Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1258347e89262Smrg      esac
1258447e89262Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1258547e89262Smrg      as_fn_append ac_file_inputs " '$ac_f'"
1258647e89262Smrg    done
12587bd1da9d7Smrg
1258847e89262Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
1258947e89262Smrg    # use $as_me), people would be surprised to read:
1259047e89262Smrg    #    /* config.h.  Generated by config.status.  */
1259147e89262Smrg    configure_input='Generated from '`
1259247e89262Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1259347e89262Smrg	`' by configure.'
1259447e89262Smrg    if test x"$ac_file" != x-; then
1259547e89262Smrg      configure_input="$ac_file.  $configure_input"
1259647e89262Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1259747e89262Smrg$as_echo "$as_me: creating $ac_file" >&6;}
1259847e89262Smrg    fi
1259947e89262Smrg    # Neutralize special characters interpreted by sed in replacement strings.
1260047e89262Smrg    case $configure_input in #(
1260147e89262Smrg    *\&* | *\|* | *\\* )
1260247e89262Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
1260347e89262Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
1260447e89262Smrg    *) ac_sed_conf_input=$configure_input;;
1260547e89262Smrg    esac
1260647e89262Smrg
1260747e89262Smrg    case $ac_tag in
1260847e89262Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
1260947e89262Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1261047e89262Smrg    esac
1261147e89262Smrg    ;;
1261247e89262Smrg  esac
12613bd1da9d7Smrg
1261447e89262Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
1261547e89262Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261647e89262Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1261747e89262Smrg	 X"$ac_file" : 'X\(//\)$' \| \
1261847e89262Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1261947e89262Smrg$as_echo X"$ac_file" |
1262047e89262Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262147e89262Smrg	    s//\1/
1262247e89262Smrg	    q
1262347e89262Smrg	  }
1262447e89262Smrg	  /^X\(\/\/\)[^/].*/{
1262547e89262Smrg	    s//\1/
1262647e89262Smrg	    q
1262747e89262Smrg	  }
1262847e89262Smrg	  /^X\(\/\/\)$/{
1262947e89262Smrg	    s//\1/
1263047e89262Smrg	    q
1263147e89262Smrg	  }
1263247e89262Smrg	  /^X\(\/\).*/{
1263347e89262Smrg	    s//\1/
1263447e89262Smrg	    q
1263547e89262Smrg	  }
1263647e89262Smrg	  s/.*/./; q'`
1263747e89262Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
1263847e89262Smrg  ac_builddir=.
12639bd1da9d7Smrg
1264047e89262Smrgcase "$ac_dir" in
1264147e89262Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1264247e89262Smrg*)
1264347e89262Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1264447e89262Smrg  # A ".." for each directory in $ac_dir_suffix.
1264547e89262Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1264647e89262Smrg  case $ac_top_builddir_sub in
1264747e89262Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1264847e89262Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1264947e89262Smrg  esac ;;
1265047e89262Smrgesac
1265147e89262Smrgac_abs_top_builddir=$ac_pwd
1265247e89262Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1265347e89262Smrg# for backward compatibility:
1265447e89262Smrgac_top_builddir=$ac_top_build_prefix
12655bd1da9d7Smrg
1265647e89262Smrgcase $srcdir in
1265747e89262Smrg  .)  # We are building in place.
1265847e89262Smrg    ac_srcdir=.
1265947e89262Smrg    ac_top_srcdir=$ac_top_builddir_sub
1266047e89262Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1266147e89262Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1266247e89262Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1266347e89262Smrg    ac_top_srcdir=$srcdir
1266447e89262Smrg    ac_abs_top_srcdir=$srcdir ;;
1266547e89262Smrg  *) # Relative name.
1266647e89262Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1266747e89262Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1266847e89262Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1266947e89262Smrgesac
1267047e89262Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12671bd1da9d7Smrg
12672bd1da9d7Smrg
1267347e89262Smrg  case $ac_mode in
1267447e89262Smrg  :F)
1267547e89262Smrg  #
1267647e89262Smrg  # CONFIG_FILE
1267747e89262Smrg  #
12678bd1da9d7Smrg
1267947e89262Smrg  case $INSTALL in
1268047e89262Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1268147e89262Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1268247e89262Smrg  esac
1268347e89262Smrg  ac_MKDIR_P=$MKDIR_P
1268447e89262Smrg  case $MKDIR_P in
1268547e89262Smrg  [\\/$]* | ?:[\\/]* ) ;;
1268647e89262Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1268747e89262Smrg  esac
1268847e89262Smrg_ACEOF
12689bd1da9d7Smrg
1269047e89262Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1269147e89262Smrg# If the template does not know about datarootdir, expand it.
1269247e89262Smrg# FIXME: This hack should be removed a few years after 2.60.
1269347e89262Smrgac_datarootdir_hack=; ac_datarootdir_seen=
1269447e89262Smrgac_sed_dataroot='
1269547e89262Smrg/datarootdir/ {
1269647e89262Smrg  p
1269747e89262Smrg  q
1269847e89262Smrg}
1269947e89262Smrg/@datadir@/p
1270047e89262Smrg/@docdir@/p
1270147e89262Smrg/@infodir@/p
1270247e89262Smrg/@localedir@/p
1270347e89262Smrg/@mandir@/p'
1270447e89262Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1270547e89262Smrg*datarootdir*) ac_datarootdir_seen=yes;;
1270647e89262Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1270747e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1270847e89262Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1270947e89262Smrg_ACEOF
1271047e89262Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1271147e89262Smrg  ac_datarootdir_hack='
1271247e89262Smrg  s&@datadir@&$datadir&g
1271347e89262Smrg  s&@docdir@&$docdir&g
1271447e89262Smrg  s&@infodir@&$infodir&g
1271547e89262Smrg  s&@localedir@&$localedir&g
1271647e89262Smrg  s&@mandir@&$mandir&g
1271747e89262Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
1271847e89262Smrgesac
1271947e89262Smrg_ACEOF
12720bd1da9d7Smrg
1272147e89262Smrg# Neutralize VPATH when `$srcdir' = `.'.
1272247e89262Smrg# Shell code in configure.ac might set extrasub.
1272347e89262Smrg# FIXME: do we really want to maintain this feature?
1272447e89262Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1272547e89262Smrgac_sed_extra="$ac_vpsub
1272647e89262Smrg$extrasub
12727bd1da9d7Smrg_ACEOF
1272847e89262Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1272947e89262Smrg:t
1273047e89262Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1273147e89262Smrgs|@configure_input@|$ac_sed_conf_input|;t t
1273247e89262Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
1273347e89262Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
1273447e89262Smrgs&@srcdir@&$ac_srcdir&;t t
1273547e89262Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
1273647e89262Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
1273747e89262Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1273847e89262Smrgs&@builddir@&$ac_builddir&;t t
1273947e89262Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
1274047e89262Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1274147e89262Smrgs&@INSTALL@&$ac_INSTALL&;t t
1274247e89262Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
1274347e89262Smrg$ac_datarootdir_hack
1274447e89262Smrg"
1274547e89262Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
1274647e89262Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12747bd1da9d7Smrg
1274847e89262Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1274947e89262Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1275047e89262Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
1275147e89262Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
1275247e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1275347e89262Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
1275447e89262Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1275547e89262Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
12756bd1da9d7Smrg
1275747e89262Smrg  rm -f "$ac_tmp/stdin"
1275847e89262Smrg  case $ac_file in
1275947e89262Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
1276047e89262Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1276147e89262Smrg  esac \
1276247e89262Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1276347e89262Smrg ;;
1276447e89262Smrg  :H)
1276547e89262Smrg  #
1276647e89262Smrg  # CONFIG_HEADER
1276747e89262Smrg  #
1276847e89262Smrg  if test x"$ac_file" != x-; then
1276947e89262Smrg    {
1277047e89262Smrg      $as_echo "/* $configure_input  */" \
1277147e89262Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1277247e89262Smrg    } >"$ac_tmp/config.h" \
1277347e89262Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1277447e89262Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1277547e89262Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1277647e89262Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
1277747e89262Smrg    else
1277847e89262Smrg      rm -f "$ac_file"
1277947e89262Smrg      mv "$ac_tmp/config.h" "$ac_file" \
1278047e89262Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1278147e89262Smrg    fi
12782bd1da9d7Smrg  else
1278347e89262Smrg    $as_echo "/* $configure_input  */" \
1278447e89262Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1278547e89262Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
12786bd1da9d7Smrg  fi
1278747e89262Smrg# Compute "$ac_file"'s index in $config_headers.
1278847e89262Smrg_am_arg="$ac_file"
1278947e89262Smrg_am_stamp_count=1
1279047e89262Smrgfor _am_header in $config_headers :; do
1279147e89262Smrg  case $_am_header in
1279247e89262Smrg    $_am_arg | $_am_arg:* )
1279347e89262Smrg      break ;;
1279447e89262Smrg    * )
1279547e89262Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1279647e89262Smrg  esac
12797bd1da9d7Smrgdone
1279847e89262Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
1279947e89262Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280047e89262Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
1280147e89262Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
1280247e89262Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1280347e89262Smrg$as_echo X"$_am_arg" |
1280447e89262Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280547e89262Smrg	    s//\1/
1280647e89262Smrg	    q
1280747e89262Smrg	  }
1280847e89262Smrg	  /^X\(\/\/\)[^/].*/{
1280947e89262Smrg	    s//\1/
1281047e89262Smrg	    q
1281147e89262Smrg	  }
1281247e89262Smrg	  /^X\(\/\/\)$/{
1281347e89262Smrg	    s//\1/
1281447e89262Smrg	    q
1281547e89262Smrg	  }
1281647e89262Smrg	  /^X\(\/\).*/{
1281747e89262Smrg	    s//\1/
1281847e89262Smrg	    q
1281947e89262Smrg	  }
1282047e89262Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
1282147e89262Smrg ;;
12822bd1da9d7Smrg
1282347e89262Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1282447e89262Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
1282547e89262Smrg ;;
1282647e89262Smrg  esac
12827bd1da9d7Smrg
12828bd1da9d7Smrg
1282947e89262Smrg  case $ac_file$ac_mode in
1283047e89262Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1283147e89262Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
1283247e89262Smrg  # are listed without --file.  Let's play safe and only enable the eval
1283347e89262Smrg  # if we detect the quoting.
1283447e89262Smrg  case $CONFIG_FILES in
1283547e89262Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
1283647e89262Smrg  *)   set x $CONFIG_FILES ;;
1283747e89262Smrg  esac
1283847e89262Smrg  shift
1283947e89262Smrg  for mf
1284047e89262Smrg  do
1284147e89262Smrg    # Strip MF so we end up with the name of the file.
1284247e89262Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
1284347e89262Smrg    # Check whether this is an Automake generated Makefile or not.
1284447e89262Smrg    # We used to match only the files named `Makefile.in', but
1284547e89262Smrg    # some people rename them; so instead we look at the file content.
1284647e89262Smrg    # Grep'ing the first line is not enough: some people post-process
1284747e89262Smrg    # each Makefile.in and add a new line on top of each file to say so.
1284847e89262Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
1284947e89262Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
1285047e89262Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1285147e89262Smrg      dirpart=`$as_dirname -- "$mf" ||
1285247e89262Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285347e89262Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
1285447e89262Smrg	 X"$mf" : 'X\(//\)$' \| \
1285547e89262Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1285647e89262Smrg$as_echo X"$mf" |
1285747e89262Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285847e89262Smrg	    s//\1/
1285947e89262Smrg	    q
1286047e89262Smrg	  }
1286147e89262Smrg	  /^X\(\/\/\)[^/].*/{
1286247e89262Smrg	    s//\1/
1286347e89262Smrg	    q
1286447e89262Smrg	  }
1286547e89262Smrg	  /^X\(\/\/\)$/{
1286647e89262Smrg	    s//\1/
1286747e89262Smrg	    q
1286847e89262Smrg	  }
1286947e89262Smrg	  /^X\(\/\).*/{
1287047e89262Smrg	    s//\1/
1287147e89262Smrg	    q
1287247e89262Smrg	  }
1287347e89262Smrg	  s/.*/./; q'`
1287447e89262Smrg    else
1287547e89262Smrg      continue
1287647e89262Smrg    fi
1287747e89262Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
1287847e89262Smrg    # from the Makefile without running `make'.
1287947e89262Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1288047e89262Smrg    test -z "$DEPDIR" && continue
1288147e89262Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
1288247e89262Smrg    test -z "am__include" && continue
1288347e89262Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1288447e89262Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
1288547e89262Smrg    U=`sed -n 's/^U = //p' < "$mf"`
1288647e89262Smrg    # Find all dependency output files, they are included files with
1288747e89262Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
1288847e89262Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
1288947e89262Smrg    # expansion.
1289047e89262Smrg    for file in `sed -n "
1289147e89262Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1289247e89262Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1289347e89262Smrg      # Make sure the directory exists.
1289447e89262Smrg      test -f "$dirpart/$file" && continue
1289547e89262Smrg      fdir=`$as_dirname -- "$file" ||
1289647e89262Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289747e89262Smrg	 X"$file" : 'X\(//\)[^/]' \| \
1289847e89262Smrg	 X"$file" : 'X\(//\)$' \| \
1289947e89262Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1290047e89262Smrg$as_echo X"$file" |
1290147e89262Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290247e89262Smrg	    s//\1/
1290347e89262Smrg	    q
1290447e89262Smrg	  }
1290547e89262Smrg	  /^X\(\/\/\)[^/].*/{
1290647e89262Smrg	    s//\1/
1290747e89262Smrg	    q
1290847e89262Smrg	  }
1290947e89262Smrg	  /^X\(\/\/\)$/{
1291047e89262Smrg	    s//\1/
1291147e89262Smrg	    q
1291247e89262Smrg	  }
1291347e89262Smrg	  /^X\(\/\).*/{
1291447e89262Smrg	    s//\1/
1291547e89262Smrg	    q
1291647e89262Smrg	  }
1291747e89262Smrg	  s/.*/./; q'`
1291847e89262Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
1291947e89262Smrg      # echo "creating $dirpart/$file"
1292047e89262Smrg      echo '# dummy' > "$dirpart/$file"
1292147e89262Smrg    done
1292247e89262Smrg  done
1292347e89262Smrg}
1292447e89262Smrg ;;
1292547e89262Smrg    "libtool":C)
129265bcb6992Smrg
1292747e89262Smrg    # See if we are running on zsh, and set the options which allow our
1292847e89262Smrg    # commands through without removal of \ escapes.
1292947e89262Smrg    if test -n "${ZSH_VERSION+set}" ; then
1293047e89262Smrg      setopt NO_GLOB_SUBST
1293147e89262Smrg    fi
12932bd1da9d7Smrg
1293347e89262Smrg    cfgfile="${ofile}T"
1293447e89262Smrg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1293547e89262Smrg    $RM "$cfgfile"
12936bd1da9d7Smrg
1293747e89262Smrg    cat <<_LT_EOF >> "$cfgfile"
1293847e89262Smrg#! $SHELL
12939bd1da9d7Smrg
1294047e89262Smrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1294147e89262Smrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1294247e89262Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1294347e89262Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1294447e89262Smrg#
1294547e89262Smrg#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1294647e89262Smrg#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1294747e89262Smrg#                 Inc.
1294847e89262Smrg#   Written by Gordon Matzigkeit, 1996
1294947e89262Smrg#
1295047e89262Smrg#   This file is part of GNU Libtool.
1295147e89262Smrg#
1295247e89262Smrg# GNU Libtool is free software; you can redistribute it and/or
1295347e89262Smrg# modify it under the terms of the GNU General Public License as
1295447e89262Smrg# published by the Free Software Foundation; either version 2 of
1295547e89262Smrg# the License, or (at your option) any later version.
1295647e89262Smrg#
1295747e89262Smrg# As a special exception to the GNU General Public License,
1295847e89262Smrg# if you distribute this file as part of a program or library that
1295947e89262Smrg# is built using GNU Libtool, you may include this file under the
1296047e89262Smrg# same distribution terms that you use for the rest of that program.
1296147e89262Smrg#
1296247e89262Smrg# GNU Libtool is distributed in the hope that it will be useful,
1296347e89262Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
1296447e89262Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1296547e89262Smrg# GNU General Public License for more details.
1296647e89262Smrg#
1296747e89262Smrg# You should have received a copy of the GNU General Public License
1296847e89262Smrg# along with GNU Libtool; see the file COPYING.  If not, a copy
1296947e89262Smrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1297047e89262Smrg# obtained by writing to the Free Software Foundation, Inc.,
1297147e89262Smrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12972bd1da9d7Smrg
129735bcb6992Smrg
1297447e89262Smrg# The names of the tagged configurations supported by this script.
1297547e89262Smrgavailable_tags=""
129765bcb6992Smrg
1297747e89262Smrg# ### BEGIN LIBTOOL CONFIG
129785bcb6992Smrg
1297947e89262Smrg# Which release of libtool.m4 was used?
1298047e89262Smrgmacro_version=$macro_version
1298147e89262Smrgmacro_revision=$macro_revision
12982bd1da9d7Smrg
1298347e89262Smrg# Whether or not to build shared libraries.
1298447e89262Smrgbuild_libtool_libs=$enable_shared
12985bd1da9d7Smrg
1298647e89262Smrg# Whether or not to build static libraries.
1298747e89262Smrgbuild_old_libs=$enable_static
12988bd1da9d7Smrg
1298947e89262Smrg# What type of objects to build.
1299047e89262Smrgpic_mode=$pic_mode
129915bcb6992Smrg
1299247e89262Smrg# Whether or not to optimize for fast installation.
1299347e89262Smrgfast_install=$enable_fast_install
12994bd1da9d7Smrg
1299547e89262Smrg# Shell to use when invoking shell scripts.
1299647e89262SmrgSHELL=$lt_SHELL
12997bd1da9d7Smrg
1299847e89262Smrg# An echo program that protects backslashes.
1299947e89262SmrgECHO=$lt_ECHO
13000bd1da9d7Smrg
1300147e89262Smrg# The host system.
1300247e89262Smrghost_alias=$host_alias
1300347e89262Smrghost=$host
1300447e89262Smrghost_os=$host_os
13005bd1da9d7Smrg
1300647e89262Smrg# The build system.
1300747e89262Smrgbuild_alias=$build_alias
1300847e89262Smrgbuild=$build
1300947e89262Smrgbuild_os=$build_os
13010bd1da9d7Smrg
1301147e89262Smrg# A sed program that does not truncate output.
1301247e89262SmrgSED=$lt_SED
13013bd1da9d7Smrg
1301447e89262Smrg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
1301547e89262SmrgXsed="\$SED -e 1s/^X//"
13016bd1da9d7Smrg
1301747e89262Smrg# A grep program that handles long lines.
1301847e89262SmrgGREP=$lt_GREP
13019bd1da9d7Smrg
1302047e89262Smrg# An ERE matcher.
1302147e89262SmrgEGREP=$lt_EGREP
13022bd1da9d7Smrg
1302347e89262Smrg# A literal string matcher.
1302447e89262SmrgFGREP=$lt_FGREP
13025bd1da9d7Smrg
1302647e89262Smrg# A BSD- or MS-compatible name lister.
1302747e89262SmrgNM=$lt_NM
13028bd1da9d7Smrg
1302947e89262Smrg# Whether we need soft or hard links.
1303047e89262SmrgLN_S=$lt_LN_S
13031bd1da9d7Smrg
1303247e89262Smrg# What is the maximum length of a command?
1303347e89262Smrgmax_cmd_len=$max_cmd_len
13034bd1da9d7Smrg
1303547e89262Smrg# Object file suffix (normally "o").
1303647e89262Smrgobjext=$ac_objext
13037bd1da9d7Smrg
1303847e89262Smrg# Executable file suffix (normally "").
1303947e89262Smrgexeext=$exeext
13040bd1da9d7Smrg
1304147e89262Smrg# whether the shell understands "unset".
1304247e89262Smrglt_unset=$lt_unset
13043bd1da9d7Smrg
1304447e89262Smrg# turn spaces into newlines.
1304547e89262SmrgSP2NL=$lt_lt_SP2NL
13046bd1da9d7Smrg
1304747e89262Smrg# turn newlines into spaces.
1304847e89262SmrgNL2SP=$lt_lt_NL2SP
13049bd1da9d7Smrg
1305047e89262Smrg# An object symbol dumper.
1305147e89262SmrgOBJDUMP=$lt_OBJDUMP
13052bd1da9d7Smrg
1305347e89262Smrg# Method to check whether dependent libraries are shared objects.
1305447e89262Smrgdeplibs_check_method=$lt_deplibs_check_method
13055bd1da9d7Smrg
1305647e89262Smrg# Command to use when deplibs_check_method == "file_magic".
1305747e89262Smrgfile_magic_cmd=$lt_file_magic_cmd
13058bd1da9d7Smrg
1305947e89262Smrg# The archiver.
1306047e89262SmrgAR=$lt_AR
1306147e89262SmrgAR_FLAGS=$lt_AR_FLAGS
13062bd1da9d7Smrg
1306347e89262Smrg# A symbol stripping program.
1306447e89262SmrgSTRIP=$lt_STRIP
13065bd1da9d7Smrg
1306647e89262Smrg# Commands used to install an old-style archive.
1306747e89262SmrgRANLIB=$lt_RANLIB
1306847e89262Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
1306947e89262Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
13070bd1da9d7Smrg
1307147e89262Smrg# Whether to use a lock for old archive extraction.
1307247e89262Smrglock_old_archive_extraction=$lock_old_archive_extraction
13073bd1da9d7Smrg
1307447e89262Smrg# A C compiler.
1307547e89262SmrgLTCC=$lt_CC
13076bd1da9d7Smrg
1307747e89262Smrg# LTCC compiler flags.
1307847e89262SmrgLTCFLAGS=$lt_CFLAGS
13079bd1da9d7Smrg
1308047e89262Smrg# Take the output of nm and produce a listing of raw symbols and C names.
1308147e89262Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13082bd1da9d7Smrg
1308347e89262Smrg# Transform the output of nm in a proper C declaration.
1308447e89262Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13085bd1da9d7Smrg
1308647e89262Smrg# Transform the output of nm in a C name address pair.
1308747e89262Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13088bd1da9d7Smrg
1308947e89262Smrg# Transform the output of nm in a C name address pair when lib prefix is needed.
1309047e89262Smrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13091bd1da9d7Smrg
1309247e89262Smrg# The name of the directory that contains temporary libtool files.
1309347e89262Smrgobjdir=$objdir
13094bd1da9d7Smrg
1309547e89262Smrg# Used to examine libraries when file_magic_cmd begins with "file".
1309647e89262SmrgMAGIC_CMD=$MAGIC_CMD
130975bcb6992Smrg
1309847e89262Smrg# Must we lock files when doing compilation?
1309947e89262Smrgneed_locks=$lt_need_locks
131005bcb6992Smrg
1310147e89262Smrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1310247e89262SmrgDSYMUTIL=$lt_DSYMUTIL
131035bcb6992Smrg
1310447e89262Smrg# Tool to change global to local symbols on Mac OS X.
1310547e89262SmrgNMEDIT=$lt_NMEDIT
13106bd1da9d7Smrg
1310747e89262Smrg# Tool to manipulate fat objects and archives on Mac OS X.
1310847e89262SmrgLIPO=$lt_LIPO
13109bd1da9d7Smrg
1311047e89262Smrg# ldd/readelf like tool for Mach-O binaries on Mac OS X.
1311147e89262SmrgOTOOL=$lt_OTOOL
13112bd1da9d7Smrg
1311347e89262Smrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
1311447e89262SmrgOTOOL64=$lt_OTOOL64
13115bd1da9d7Smrg
1311647e89262Smrg# Old archive suffix (normally "a").
1311747e89262Smrglibext=$libext
13118bd1da9d7Smrg
1311947e89262Smrg# Shared library suffix (normally ".so").
1312047e89262Smrgshrext_cmds=$lt_shrext_cmds
13121bd1da9d7Smrg
1312247e89262Smrg# The commands to extract the exported symbol list from a shared archive.
1312347e89262Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
13124bd1da9d7Smrg
1312547e89262Smrg# Variables whose values should be saved in libtool wrapper scripts and
1312647e89262Smrg# restored at link time.
1312747e89262Smrgvariables_saved_for_relink=$lt_variables_saved_for_relink
13128bd1da9d7Smrg
1312947e89262Smrg# Do we need the "lib" prefix for modules?
1313047e89262Smrgneed_lib_prefix=$need_lib_prefix
13131bd1da9d7Smrg
1313247e89262Smrg# Do we need a version for libraries?
1313347e89262Smrgneed_version=$need_version
13134bd1da9d7Smrg
1313547e89262Smrg# Library versioning type.
1313647e89262Smrgversion_type=$version_type
13137bd1da9d7Smrg
1313847e89262Smrg# Shared library runtime path variable.
1313947e89262Smrgrunpath_var=$runpath_var
13140bd1da9d7Smrg
1314147e89262Smrg# Shared library path variable.
1314247e89262Smrgshlibpath_var=$shlibpath_var
13143bd1da9d7Smrg
1314447e89262Smrg# Is shlibpath searched before the hard-coded library search path?
1314547e89262Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
13146bd1da9d7Smrg
1314747e89262Smrg# Format of library name prefix.
1314847e89262Smrglibname_spec=$lt_libname_spec
13149bd1da9d7Smrg
1315047e89262Smrg# List of archive names.  First name is the real one, the rest are links.
1315147e89262Smrg# The last name is the one that the linker finds with -lNAME
1315247e89262Smrglibrary_names_spec=$lt_library_names_spec
13153bd1da9d7Smrg
1315447e89262Smrg# The coded name of the library, if different from the real name.
1315547e89262Smrgsoname_spec=$lt_soname_spec
13156bd1da9d7Smrg
1315747e89262Smrg# Permission mode override for installation of shared libraries.
1315847e89262Smrginstall_override_mode=$lt_install_override_mode
13159bd1da9d7Smrg
1316047e89262Smrg# Command to use after installation of a shared archive.
1316147e89262Smrgpostinstall_cmds=$lt_postinstall_cmds
13162bd1da9d7Smrg
1316347e89262Smrg# Command to use after uninstallation of a shared archive.
1316447e89262Smrgpostuninstall_cmds=$lt_postuninstall_cmds
13165bd1da9d7Smrg
1316647e89262Smrg# Commands used to finish a libtool library installation in a directory.
1316747e89262Smrgfinish_cmds=$lt_finish_cmds
13168bd1da9d7Smrg
1316947e89262Smrg# As "finish_cmds", except a single script fragment to be evaled but
1317047e89262Smrg# not shown.
1317147e89262Smrgfinish_eval=$lt_finish_eval
13172bd1da9d7Smrg
1317347e89262Smrg# Whether we should hardcode library paths into libraries.
1317447e89262Smrghardcode_into_libs=$hardcode_into_libs
13175bd1da9d7Smrg
1317647e89262Smrg# Compile-time system search path for libraries.
1317747e89262Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13178bd1da9d7Smrg
1317947e89262Smrg# Run-time system search path for libraries.
1318047e89262Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13181bd1da9d7Smrg
1318247e89262Smrg# Whether dlopen is supported.
1318347e89262Smrgdlopen_support=$enable_dlopen
1318447e89262Smrg
1318547e89262Smrg# Whether dlopen of programs is supported.
1318647e89262Smrgdlopen_self=$enable_dlopen_self
13187bd1da9d7Smrg
1318847e89262Smrg# Whether dlopen of statically linked programs is supported.
1318947e89262Smrgdlopen_self_static=$enable_dlopen_self_static
13190bd1da9d7Smrg
1319147e89262Smrg# Commands to strip libraries.
1319247e89262Smrgold_striplib=$lt_old_striplib
1319347e89262Smrgstriplib=$lt_striplib
13194bd1da9d7Smrg
13195bd1da9d7Smrg
1319647e89262Smrg# The linker used to build libraries.
1319747e89262SmrgLD=$lt_LD
1319847e89262Smrg
1319947e89262Smrg# How to create reloadable object files.
1320047e89262Smrgreload_flag=$lt_reload_flag
1320147e89262Smrgreload_cmds=$lt_reload_cmds
1320247e89262Smrg
1320347e89262Smrg# Commands used to build an old-style archive.
1320447e89262Smrgold_archive_cmds=$lt_old_archive_cmds
13205bd1da9d7Smrg
1320647e89262Smrg# A language specific compiler.
1320747e89262SmrgCC=$lt_compiler
13208bd1da9d7Smrg
1320947e89262Smrg# Is the compiler the GNU compiler?
1321047e89262Smrgwith_gcc=$GCC
13211bd1da9d7Smrg
1321247e89262Smrg# Compiler flag to turn off builtin functions.
1321347e89262Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13214bd1da9d7Smrg
1321547e89262Smrg# How to pass a linker flag through the compiler.
1321647e89262Smrgwl=$lt_lt_prog_compiler_wl
13217bd1da9d7Smrg
1321847e89262Smrg# Additional compiler flags for building library objects.
1321947e89262Smrgpic_flag=$lt_lt_prog_compiler_pic
13220bd1da9d7Smrg
1322147e89262Smrg# Compiler flag to prevent dynamic linking.
1322247e89262Smrglink_static_flag=$lt_lt_prog_compiler_static
13223bd1da9d7Smrg
1322447e89262Smrg# Does compiler simultaneously support -c and -o options?
1322547e89262Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
13226bd1da9d7Smrg
1322747e89262Smrg# Whether or not to add -lc for building shared libraries.
1322847e89262Smrgbuild_libtool_need_lc=$archive_cmds_need_lc
13229bd1da9d7Smrg
1323047e89262Smrg# Whether or not to disallow shared libs when runtime libs are static.
1323147e89262Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
132325bcb6992Smrg
1323347e89262Smrg# Compiler flag to allow reflexive dlopens.
1323447e89262Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
132355bcb6992Smrg
1323647e89262Smrg# Compiler flag to generate shared objects directly from archives.
1323747e89262Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
13238bd1da9d7Smrg
1323947e89262Smrg# Whether the compiler copes with passing no objects directly.
1324047e89262Smrgcompiler_needs_object=$lt_compiler_needs_object
13241bd1da9d7Smrg
1324247e89262Smrg# Create an old-style archive from a shared archive.
1324347e89262Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13244bd1da9d7Smrg
1324547e89262Smrg# Create a temporary old-style archive to link instead of a shared archive.
1324647e89262Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
132475bcb6992Smrg
1324847e89262Smrg# Commands used to build a shared archive.
1324947e89262Smrgarchive_cmds=$lt_archive_cmds
1325047e89262Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds
132515bcb6992Smrg
1325247e89262Smrg# Commands used to build a loadable module if different from building
1325347e89262Smrg# a shared archive.
1325447e89262Smrgmodule_cmds=$lt_module_cmds
1325547e89262Smrgmodule_expsym_cmds=$lt_module_expsym_cmds
132565bcb6992Smrg
1325747e89262Smrg# Whether we are building with GNU ld or not.
1325847e89262Smrgwith_gnu_ld=$lt_with_gnu_ld
132595bcb6992Smrg
1326047e89262Smrg# Flag that allows shared libraries with undefined symbols to be built.
1326147e89262Smrgallow_undefined_flag=$lt_allow_undefined_flag
132625bcb6992Smrg
1326347e89262Smrg# Flag that enforces no undefined symbols.
1326447e89262Smrgno_undefined_flag=$lt_no_undefined_flag
1326547e89262Smrg
1326647e89262Smrg# Flag to hardcode \$libdir into a binary during linking.
1326747e89262Smrg# This must work even if \$libdir does not exist
1326847e89262Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1326947e89262Smrg
1327047e89262Smrg# If ld is used when linking, flag to hardcode \$libdir into a binary
1327147e89262Smrg# during linking.  This must work even if \$libdir does not exist.
1327247e89262Smrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1327347e89262Smrg
1327447e89262Smrg# Whether we need a single "-rpath" flag with a separated argument.
1327547e89262Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator
132765bcb6992Smrg
1327747e89262Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
1327847e89262Smrg# DIR into the resulting binary.
1327947e89262Smrghardcode_direct=$hardcode_direct
13280bd1da9d7Smrg
1328147e89262Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
1328247e89262Smrg# DIR into the resulting binary and the resulting library dependency is
1328347e89262Smrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
1328447e89262Smrg# library is relocated.
1328547e89262Smrghardcode_direct_absolute=$hardcode_direct_absolute
13286bd1da9d7Smrg
1328747e89262Smrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
1328847e89262Smrg# into the resulting binary.
1328947e89262Smrghardcode_minus_L=$hardcode_minus_L
13290bd1da9d7Smrg
1329147e89262Smrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
1329247e89262Smrg# into the resulting binary.
1329347e89262Smrghardcode_shlibpath_var=$hardcode_shlibpath_var
13294bd1da9d7Smrg
1329547e89262Smrg# Set to "yes" if building a shared library automatically hardcodes DIR
1329647e89262Smrg# into the library and all subsequent libraries and executables linked
1329747e89262Smrg# against it.
1329847e89262Smrghardcode_automatic=$hardcode_automatic
1329947e89262Smrg
1330047e89262Smrg# Set to yes if linker adds runtime paths of dependent libraries
1330147e89262Smrg# to runtime path list.
1330247e89262Smrginherit_rpath=$inherit_rpath
1330347e89262Smrg
1330447e89262Smrg# Whether libtool must link a program against all its dependency libraries.
1330547e89262Smrglink_all_deplibs=$link_all_deplibs
1330647e89262Smrg
1330747e89262Smrg# Fix the shell variable \$srcfile for the compiler.
1330847e89262Smrgfix_srcfile_path=$lt_fix_srcfile_path
1330947e89262Smrg
1331047e89262Smrg# Set to "yes" if exported symbols are required.
1331147e89262Smrgalways_export_symbols=$always_export_symbols
1331247e89262Smrg
1331347e89262Smrg# The commands to list exported symbols.
1331447e89262Smrgexport_symbols_cmds=$lt_export_symbols_cmds
1331547e89262Smrg
1331647e89262Smrg# Symbols that should not be listed in the preloaded symbols.
1331747e89262Smrgexclude_expsyms=$lt_exclude_expsyms
1331847e89262Smrg
1331947e89262Smrg# Symbols that must always be exported.
1332047e89262Smrginclude_expsyms=$lt_include_expsyms
1332147e89262Smrg
1332247e89262Smrg# Commands necessary for linking programs (against libraries) with templates.
1332347e89262Smrgprelink_cmds=$lt_prelink_cmds
1332447e89262Smrg
1332547e89262Smrg# Specify filename containing input files.
1332647e89262Smrgfile_list_spec=$lt_file_list_spec
1332747e89262Smrg
1332847e89262Smrg# How to hardcode a shared library path into an executable.
1332947e89262Smrghardcode_action=$hardcode_action
1333047e89262Smrg
1333147e89262Smrg# ### END LIBTOOL CONFIG
1333247e89262Smrg
1333347e89262Smrg_LT_EOF
1333447e89262Smrg
1333547e89262Smrg  case $host_os in
1333647e89262Smrg  aix3*)
1333747e89262Smrg    cat <<\_LT_EOF >> "$cfgfile"
1333847e89262Smrg# AIX sometimes has problems with the GCC collect2 program.  For some
1333947e89262Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems
1334047e89262Smrg# vanish in a puff of smoke.
1334147e89262Smrgif test "X${COLLECT_NAMES+set}" != Xset; then
1334247e89262Smrg  COLLECT_NAMES=
1334347e89262Smrg  export COLLECT_NAMES
1334447e89262Smrgfi
1334547e89262Smrg_LT_EOF
13346bd1da9d7Smrg    ;;
13347bd1da9d7Smrg  esac
13348bd1da9d7Smrg
1334947e89262Smrg
1335047e89262Smrgltmain="$ac_aux_dir/ltmain.sh"
1335147e89262Smrg
1335247e89262Smrg
1335347e89262Smrg  # We use sed instead of cat because bash on DJGPP gets confused if
1335447e89262Smrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1335547e89262Smrg  # text mode, it properly converts lines to CR/LF.  This bash problem
1335647e89262Smrg  # is reportedly fixed, but why not run on old versions too?
1335747e89262Smrg  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1335847e89262Smrg    || (rm -f "$cfgfile"; exit 1)
1335947e89262Smrg
1336047e89262Smrg  case $xsi_shell in
1336147e89262Smrg  yes)
1336247e89262Smrg    cat << \_LT_EOF >> "$cfgfile"
1336347e89262Smrg
1336447e89262Smrg# func_dirname file append nondir_replacement
1336547e89262Smrg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
1336647e89262Smrg# otherwise set result to NONDIR_REPLACEMENT.
1336747e89262Smrgfunc_dirname ()
1336847e89262Smrg{
1336947e89262Smrg  case ${1} in
1337047e89262Smrg    */*) func_dirname_result="${1%/*}${2}" ;;
1337147e89262Smrg    *  ) func_dirname_result="${3}" ;;
13372bd1da9d7Smrg  esac
1337347e89262Smrg}
13374bd1da9d7Smrg
1337547e89262Smrg# func_basename file
1337647e89262Smrgfunc_basename ()
1337747e89262Smrg{
1337847e89262Smrg  func_basename_result="${1##*/}"
1337947e89262Smrg}
13380bd1da9d7Smrg
1338147e89262Smrg# func_dirname_and_basename file append nondir_replacement
1338247e89262Smrg# perform func_basename and func_dirname in a single function
1338347e89262Smrg# call:
1338447e89262Smrg#   dirname:  Compute the dirname of FILE.  If nonempty,
1338547e89262Smrg#             add APPEND to the result, otherwise set result
1338647e89262Smrg#             to NONDIR_REPLACEMENT.
1338747e89262Smrg#             value returned in "$func_dirname_result"
1338847e89262Smrg#   basename: Compute filename of FILE.
1338947e89262Smrg#             value retuned in "$func_basename_result"
1339047e89262Smrg# Implementation must be kept synchronized with func_dirname
1339147e89262Smrg# and func_basename. For efficiency, we do not delegate to
1339247e89262Smrg# those functions but instead duplicate the functionality here.
1339347e89262Smrgfunc_dirname_and_basename ()
1339447e89262Smrg{
1339547e89262Smrg  case ${1} in
1339647e89262Smrg    */*) func_dirname_result="${1%/*}${2}" ;;
1339747e89262Smrg    *  ) func_dirname_result="${3}" ;;
1339847e89262Smrg  esac
1339947e89262Smrg  func_basename_result="${1##*/}"
1340047e89262Smrg}
13401bd1da9d7Smrg
1340247e89262Smrg# func_stripname prefix suffix name
1340347e89262Smrg# strip PREFIX and SUFFIX off of NAME.
1340447e89262Smrg# PREFIX and SUFFIX must not contain globbing or regex special
1340547e89262Smrg# characters, hashes, percent signs, but SUFFIX may contain a leading
1340647e89262Smrg# dot (in which case that matches only a dot).
1340747e89262Smrgfunc_stripname ()
1340847e89262Smrg{
1340947e89262Smrg  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1341047e89262Smrg  # positional parameters, so assign one to ordinary parameter first.
1341147e89262Smrg  func_stripname_result=${3}
1341247e89262Smrg  func_stripname_result=${func_stripname_result#"${1}"}
1341347e89262Smrg  func_stripname_result=${func_stripname_result%"${2}"}
1341447e89262Smrg}
13415bd1da9d7Smrg
1341647e89262Smrg# func_opt_split
1341747e89262Smrgfunc_opt_split ()
1341847e89262Smrg{
1341947e89262Smrg  func_opt_split_opt=${1%%=*}
1342047e89262Smrg  func_opt_split_arg=${1#*=}
1342147e89262Smrg}
13422bd1da9d7Smrg
1342347e89262Smrg# func_lo2o object
1342447e89262Smrgfunc_lo2o ()
1342547e89262Smrg{
1342647e89262Smrg  case ${1} in
1342747e89262Smrg    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
1342847e89262Smrg    *)    func_lo2o_result=${1} ;;
13429bd1da9d7Smrg  esac
1343047e89262Smrg}
1343147e89262Smrg
1343247e89262Smrg# func_xform libobj-or-source
1343347e89262Smrgfunc_xform ()
1343447e89262Smrg{
1343547e89262Smrg  func_xform_result=${1%.*}.lo
1343647e89262Smrg}
1343747e89262Smrg
1343847e89262Smrg# func_arith arithmetic-term...
1343947e89262Smrgfunc_arith ()
1344047e89262Smrg{
1344147e89262Smrg  func_arith_result=$(( $* ))
1344247e89262Smrg}
1344347e89262Smrg
1344447e89262Smrg# func_len string
1344547e89262Smrg# STRING may not start with a hyphen.
1344647e89262Smrgfunc_len ()
1344747e89262Smrg{
1344847e89262Smrg  func_len_result=${#1}
1344947e89262Smrg}
1345047e89262Smrg
1345147e89262Smrg_LT_EOF
1345247e89262Smrg    ;;
1345347e89262Smrg  *) # Bourne compatible functions.
1345447e89262Smrg    cat << \_LT_EOF >> "$cfgfile"
1345547e89262Smrg
1345647e89262Smrg# func_dirname file append nondir_replacement
1345747e89262Smrg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
1345847e89262Smrg# otherwise set result to NONDIR_REPLACEMENT.
1345947e89262Smrgfunc_dirname ()
1346047e89262Smrg{
1346147e89262Smrg  # Extract subdirectory from the argument.
1346247e89262Smrg  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1346347e89262Smrg  if test "X$func_dirname_result" = "X${1}"; then
1346447e89262Smrg    func_dirname_result="${3}"
1346547e89262Smrg  else
1346647e89262Smrg    func_dirname_result="$func_dirname_result${2}"
1346747e89262Smrg  fi
1346847e89262Smrg}
1346947e89262Smrg
1347047e89262Smrg# func_basename file
1347147e89262Smrgfunc_basename ()
1347247e89262Smrg{
1347347e89262Smrg  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1347447e89262Smrg}
1347547e89262Smrg
1347647e89262Smrg
1347747e89262Smrg# func_stripname prefix suffix name
1347847e89262Smrg# strip PREFIX and SUFFIX off of NAME.
1347947e89262Smrg# PREFIX and SUFFIX must not contain globbing or regex special
1348047e89262Smrg# characters, hashes, percent signs, but SUFFIX may contain a leading
1348147e89262Smrg# dot (in which case that matches only a dot).
1348247e89262Smrg# func_strip_suffix prefix name
1348347e89262Smrgfunc_stripname ()
1348447e89262Smrg{
1348547e89262Smrg  case ${2} in
1348647e89262Smrg    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
1348747e89262Smrg    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
134885bcb6992Smrg  esac
1348947e89262Smrg}
1349047e89262Smrg
1349147e89262Smrg# sed scripts:
1349247e89262Smrgmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
1349347e89262Smrgmy_sed_long_arg='1s/^-[^=]*=//'
1349447e89262Smrg
1349547e89262Smrg# func_opt_split
1349647e89262Smrgfunc_opt_split ()
1349747e89262Smrg{
1349847e89262Smrg  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
1349947e89262Smrg  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1350047e89262Smrg}
1350147e89262Smrg
1350247e89262Smrg# func_lo2o object
1350347e89262Smrgfunc_lo2o ()
1350447e89262Smrg{
1350547e89262Smrg  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1350647e89262Smrg}
1350747e89262Smrg
1350847e89262Smrg# func_xform libobj-or-source
1350947e89262Smrgfunc_xform ()
1351047e89262Smrg{
1351147e89262Smrg  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
1351247e89262Smrg}
13513bd1da9d7Smrg
1351447e89262Smrg# func_arith arithmetic-term...
1351547e89262Smrgfunc_arith ()
1351647e89262Smrg{
1351747e89262Smrg  func_arith_result=`expr "$@"`
1351847e89262Smrg}
13519bd1da9d7Smrg
1352047e89262Smrg# func_len string
1352147e89262Smrg# STRING may not start with a hyphen.
1352247e89262Smrgfunc_len ()
1352347e89262Smrg{
1352447e89262Smrg  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13525bd1da9d7Smrg}
1352647e89262Smrg
1352747e89262Smrg_LT_EOF
13528bd1da9d7Smrgesac
13529bd1da9d7Smrg
1353047e89262Smrgcase $lt_shell_append in
1353147e89262Smrg  yes)
1353247e89262Smrg    cat << \_LT_EOF >> "$cfgfile"
13533bd1da9d7Smrg
1353447e89262Smrg# func_append var value
1353547e89262Smrg# Append VALUE to the end of shell variable VAR.
1353647e89262Smrgfunc_append ()
1353747e89262Smrg{
1353847e89262Smrg  eval "$1+=\$2"
1353947e89262Smrg}
1354047e89262Smrg_LT_EOF
1354147e89262Smrg    ;;
1354247e89262Smrg  *)
1354347e89262Smrg    cat << \_LT_EOF >> "$cfgfile"
13544bd1da9d7Smrg
1354547e89262Smrg# func_append var value
1354647e89262Smrg# Append VALUE to the end of shell variable VAR.
1354747e89262Smrgfunc_append ()
1354847e89262Smrg{
1354947e89262Smrg  eval "$1=\$$1\$2"
1355047e89262Smrg}
13551bd1da9d7Smrg
1355247e89262Smrg_LT_EOF
1355347e89262Smrg    ;;
13554bd1da9d7Smrg  esac
13555bd1da9d7Smrg
13556bd1da9d7Smrg
1355747e89262Smrg  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1355847e89262Smrg    || (rm -f "$cfgfile"; exit 1)
1355947e89262Smrg
1356047e89262Smrg  mv -f "$cfgfile" "$ofile" ||
1356147e89262Smrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1356247e89262Smrg  chmod +x "$ofile"
1356347e89262Smrg
13564bd1da9d7Smrg ;;
13565bd1da9d7Smrg
13566bd1da9d7Smrg  esac
13567bd1da9d7Smrgdone # for ac_tag
13568bd1da9d7Smrg
13569bd1da9d7Smrg
1357047e89262Smrgas_fn_exit 0
13571bd1da9d7Smrg_ACEOF
13572bd1da9d7Smrgac_clean_files=$ac_clean_files_save
13573bd1da9d7Smrg
135745bcb6992Smrgtest $ac_write_fail = 0 ||
1357547e89262Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
135765bcb6992Smrg
13577bd1da9d7Smrg
13578bd1da9d7Smrg# configure is writing to config.log, and then calls config.status.
13579bd1da9d7Smrg# config.status does its own redirection, appending to config.log.
13580bd1da9d7Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
13581bd1da9d7Smrg# by configure, so config.status won't be able to write to it; its
13582bd1da9d7Smrg# output is simply discarded.  So we exec the FD to /dev/null,
13583bd1da9d7Smrg# effectively closing config.log, so it can be properly (re)opened and
13584bd1da9d7Smrg# appended to by config.status.  When coming back to configure, we
13585bd1da9d7Smrg# need to make the FD available again.
13586bd1da9d7Smrgif test "$no_create" != yes; then
13587bd1da9d7Smrg  ac_cs_success=:
13588bd1da9d7Smrg  ac_config_status_args=
13589bd1da9d7Smrg  test "$silent" = yes &&
13590bd1da9d7Smrg    ac_config_status_args="$ac_config_status_args --quiet"
13591bd1da9d7Smrg  exec 5>/dev/null
13592bd1da9d7Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13593bd1da9d7Smrg  exec 5>>config.log
13594bd1da9d7Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13595bd1da9d7Smrg  # would make configure fail if this is the last instruction.
1359647e89262Smrg  $ac_cs_success || as_fn_exit 1
13597bd1da9d7Smrgfi
135985bcb6992Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1359947e89262Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
136005bcb6992Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
136015bcb6992Smrgfi
13602bd1da9d7Smrg
13603bd1da9d7Smrg
13604