1d9c7fc6cSmrg#! /bin/sh
2d9c7fc6cSmrg# Guess values for system-dependent variables and create Makefiles.
305a1a286Smrg# Generated by GNU Autoconf 2.68 for libXevie 1.0.3.
4d9c7fc6cSmrg#
5d9c7fc6cSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6d9c7fc6cSmrg#
705a1a286Smrg#
805a1a286Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
905a1a286Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
1005a1a286Smrg# Foundation, Inc.
1105a1a286Smrg#
1205a1a286Smrg#
13d9c7fc6cSmrg# This configure script is free software; the Free Software Foundation
14d9c7fc6cSmrg# gives unlimited permission to copy, distribute and modify it.
1505a1a286Smrg## -------------------- ##
1605a1a286Smrg## M4sh Initialization. ##
1705a1a286Smrg## -------------------- ##
18d9c7fc6cSmrg
1905a1a286Smrg# Be more Bourne compatible
2005a1a286SmrgDUALCASE=1; export DUALCASE # for MKS sh
2105a1a286Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22d9c7fc6cSmrg  emulate sh
23d9c7fc6cSmrg  NULLCMD=:
2405a1a286Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25d9c7fc6cSmrg  # is contrary to our usage.  Disable this feature.
26d9c7fc6cSmrg  alias -g '${1+"$@"}'='"$@"'
2705a1a286Smrg  setopt NO_GLOB_SUBST
2805a1a286Smrgelse
2905a1a286Smrg  case `(set -o) 2>/dev/null` in #(
3005a1a286Smrg  *posix*) :
3105a1a286Smrg    set -o posix ;; #(
3205a1a286Smrg  *) :
3305a1a286Smrg     ;;
3405a1a286Smrgesac
35d9c7fc6cSmrgfi
36d9c7fc6cSmrg
3705a1a286Smrg
3805a1a286Smrgas_nl='
3905a1a286Smrg'
4005a1a286Smrgexport as_nl
4105a1a286Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4205a1a286Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4305a1a286Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4405a1a286Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4505a1a286Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4605a1a286Smrg# but without wasting forks for bash or zsh.
4705a1a286Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4805a1a286Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4905a1a286Smrg  as_echo='print -r --'
5005a1a286Smrg  as_echo_n='print -rn --'
5105a1a286Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5205a1a286Smrg  as_echo='printf %s\n'
5305a1a286Smrg  as_echo_n='printf %s'
5405a1a286Smrgelse
5505a1a286Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5605a1a286Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5705a1a286Smrg    as_echo_n='/usr/ucb/echo -n'
5805a1a286Smrg  else
5905a1a286Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6005a1a286Smrg    as_echo_n_body='eval
6105a1a286Smrg      arg=$1;
6205a1a286Smrg      case $arg in #(
6305a1a286Smrg      *"$as_nl"*)
6405a1a286Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
6505a1a286Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6605a1a286Smrg      esac;
6705a1a286Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6805a1a286Smrg    '
6905a1a286Smrg    export as_echo_n_body
7005a1a286Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
7105a1a286Smrg  fi
7205a1a286Smrg  export as_echo_body
7305a1a286Smrg  as_echo='sh -c $as_echo_body as_echo'
74d9c7fc6cSmrgfi
75d9c7fc6cSmrg
7605a1a286Smrg# The user is always right.
7705a1a286Smrgif test "${PATH_SEPARATOR+set}" != set; then
7805a1a286Smrg  PATH_SEPARATOR=:
7905a1a286Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8005a1a286Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8105a1a286Smrg      PATH_SEPARATOR=';'
8205a1a286Smrg  }
8305a1a286Smrgfi
8405a1a286Smrg
8505a1a286Smrg
8605a1a286Smrg# IFS
8705a1a286Smrg# We need space, tab and new line, in precisely that order.  Quoting is
8805a1a286Smrg# there to prevent editors from complaining about space-tab.
8905a1a286Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9005a1a286Smrg# splitting by setting IFS to empty value.)
9105a1a286SmrgIFS=" ""	$as_nl"
9205a1a286Smrg
9305a1a286Smrg# Find who we are.  Look in the path if we contain no directory separator.
9405a1a286Smrgas_myself=
9505a1a286Smrgcase $0 in #((
9605a1a286Smrg  *[\\/]* ) as_myself=$0 ;;
9705a1a286Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805a1a286Smrgfor as_dir in $PATH
9905a1a286Smrgdo
10005a1a286Smrg  IFS=$as_save_IFS
10105a1a286Smrg  test -z "$as_dir" && as_dir=.
10205a1a286Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10305a1a286Smrg  done
10405a1a286SmrgIFS=$as_save_IFS
105d9c7fc6cSmrg
10605a1a286Smrg     ;;
10705a1a286Smrgesac
10805a1a286Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10905a1a286Smrg# in which case we are not to be found in the path.
11005a1a286Smrgif test "x$as_myself" = x; then
11105a1a286Smrg  as_myself=$0
11205a1a286Smrgfi
11305a1a286Smrgif test ! -f "$as_myself"; then
11405a1a286Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11505a1a286Smrg  exit 1
11605a1a286Smrgfi
11705a1a286Smrg
11805a1a286Smrg# Unset variables that we do not need and which cause bugs (e.g. in
11905a1a286Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12005a1a286Smrg# suppresses any "Segmentation fault" message there.  '((' could
12105a1a286Smrg# trigger a bug in pdksh 5.2.14.
12205a1a286Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
12305a1a286Smrgdo eval test x\${$as_var+set} = xset \
12405a1a286Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12505a1a286Smrgdone
126d9c7fc6cSmrgPS1='$ '
127d9c7fc6cSmrgPS2='> '
128d9c7fc6cSmrgPS4='+ '
129d9c7fc6cSmrg
130d9c7fc6cSmrg# NLS nuisances.
13105a1a286SmrgLC_ALL=C
13205a1a286Smrgexport LC_ALL
13305a1a286SmrgLANGUAGE=C
13405a1a286Smrgexport LANGUAGE
13505a1a286Smrg
13605a1a286Smrg# CDPATH.
13705a1a286Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13805a1a286Smrg
13905a1a286Smrgif test "x$CONFIG_SHELL" = x; then
14005a1a286Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
14105a1a286Smrg  emulate sh
14205a1a286Smrg  NULLCMD=:
14305a1a286Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14405a1a286Smrg  # is contrary to our usage.  Disable this feature.
14505a1a286Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
14605a1a286Smrg  setopt NO_GLOB_SUBST
14705a1a286Smrgelse
14805a1a286Smrg  case \`(set -o) 2>/dev/null\` in #(
14905a1a286Smrg  *posix*) :
15005a1a286Smrg    set -o posix ;; #(
15105a1a286Smrg  *) :
15205a1a286Smrg     ;;
15305a1a286Smrgesac
15405a1a286Smrgfi
15505a1a286Smrg"
15605a1a286Smrg  as_required="as_fn_return () { (exit \$1); }
15705a1a286Smrgas_fn_success () { as_fn_return 0; }
15805a1a286Smrgas_fn_failure () { as_fn_return 1; }
15905a1a286Smrgas_fn_ret_success () { return 0; }
16005a1a286Smrgas_fn_ret_failure () { return 1; }
16105a1a286Smrg
16205a1a286Smrgexitcode=0
16305a1a286Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16405a1a286Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
16505a1a286Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
16605a1a286Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
16705a1a286Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
16805a1a286Smrg
16905a1a286Smrgelse
17005a1a286Smrg  exitcode=1; echo positional parameters were not saved.
17105a1a286Smrgfi
17205a1a286Smrgtest x\$exitcode = x0 || exit 1"
17305a1a286Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
17405a1a286Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
17505a1a286Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
17605a1a286Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
17705a1a286Smrgtest \$(( 1 + 1 )) = 2 || exit 1
17805a1a286Smrg
17905a1a286Smrg  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
18005a1a286Smrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18105a1a286Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
18205a1a286Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
18305a1a286Smrg    PATH=/empty FPATH=/empty; export PATH FPATH
18405a1a286Smrg    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
18505a1a286Smrg      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
18605a1a286Smrg  if (eval "$as_required") 2>/dev/null; then :
18705a1a286Smrg  as_have_required=yes
18805a1a286Smrgelse
18905a1a286Smrg  as_have_required=no
19005a1a286Smrgfi
19105a1a286Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
19205a1a286Smrg
19305a1a286Smrgelse
19405a1a286Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19505a1a286Smrgas_found=false
19605a1a286Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197d9c7fc6cSmrgdo
19805a1a286Smrg  IFS=$as_save_IFS
19905a1a286Smrg  test -z "$as_dir" && as_dir=.
20005a1a286Smrg  as_found=:
20105a1a286Smrg  case $as_dir in #(
20205a1a286Smrg	 /*)
20305a1a286Smrg	   for as_base in sh bash ksh sh5; do
20405a1a286Smrg	     # Try only shells that exist, to save several forks.
20505a1a286Smrg	     as_shell=$as_dir/$as_base
20605a1a286Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
20705a1a286Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
20805a1a286Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
20905a1a286Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
21005a1a286Smrg  break 2
21105a1a286Smrgfi
21205a1a286Smrgfi
21305a1a286Smrg	   done;;
21405a1a286Smrg       esac
21505a1a286Smrg  as_found=false
21605a1a286Smrgdone
21705a1a286Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
21805a1a286Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
21905a1a286Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
22005a1a286Smrgfi; }
22105a1a286SmrgIFS=$as_save_IFS
22205a1a286Smrg
22305a1a286Smrg
22405a1a286Smrg      if test "x$CONFIG_SHELL" != x; then :
22505a1a286Smrg  # We cannot yet assume a decent shell, so we have to provide a
22605a1a286Smrg	# neutralization value for shells without unset; and this also
22705a1a286Smrg	# works around shells that cannot unset nonexistent variables.
22805a1a286Smrg	# Preserve -v and -x to the replacement shell.
22905a1a286Smrg	BASH_ENV=/dev/null
23005a1a286Smrg	ENV=/dev/null
23105a1a286Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
23205a1a286Smrg	export CONFIG_SHELL
23305a1a286Smrg	case $- in # ((((
23405a1a286Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
23505a1a286Smrg	  *v* ) as_opts=-v ;;
23605a1a286Smrg	  *x* ) as_opts=-x ;;
23705a1a286Smrg	  * ) as_opts= ;;
23805a1a286Smrg	esac
23905a1a286Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
24005a1a286Smrgfi
24105a1a286Smrg
24205a1a286Smrg    if test x$as_have_required = xno; then :
24305a1a286Smrg  $as_echo "$0: This script requires a shell more modern than all"
24405a1a286Smrg  $as_echo "$0: the shells that I found on your system."
24505a1a286Smrg  if test x${ZSH_VERSION+set} = xset ; then
24605a1a286Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
24705a1a286Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248d9c7fc6cSmrg  else
24905a1a286Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
25005a1a286Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
25105a1a286Smrg$0: about your system, including any error possibly output
25205a1a286Smrg$0: before this message. Then install a modern shell, or
25305a1a286Smrg$0: manually run the script under such a shell if you do
25405a1a286Smrg$0: have one."
255d9c7fc6cSmrg  fi
25605a1a286Smrg  exit 1
25705a1a286Smrgfi
25805a1a286Smrgfi
25905a1a286Smrgfi
26005a1a286SmrgSHELL=${CONFIG_SHELL-/bin/sh}
26105a1a286Smrgexport SHELL
26205a1a286Smrg# Unset more variables known to interfere with behavior of common tools.
26305a1a286SmrgCLICOLOR_FORCE= GREP_OPTIONS=
26405a1a286Smrgunset CLICOLOR_FORCE GREP_OPTIONS
26505a1a286Smrg
26605a1a286Smrg## --------------------- ##
26705a1a286Smrg## M4sh Shell Functions. ##
26805a1a286Smrg## --------------------- ##
26905a1a286Smrg# as_fn_unset VAR
27005a1a286Smrg# ---------------
27105a1a286Smrg# Portably unset VAR.
27205a1a286Smrgas_fn_unset ()
27305a1a286Smrg{
27405a1a286Smrg  { eval $1=; unset $1;}
27505a1a286Smrg}
27605a1a286Smrgas_unset=as_fn_unset
27705a1a286Smrg
27805a1a286Smrg# as_fn_set_status STATUS
27905a1a286Smrg# -----------------------
28005a1a286Smrg# Set $? to STATUS, without forking.
28105a1a286Smrgas_fn_set_status ()
28205a1a286Smrg{
28305a1a286Smrg  return $1
28405a1a286Smrg} # as_fn_set_status
28505a1a286Smrg
28605a1a286Smrg# as_fn_exit STATUS
28705a1a286Smrg# -----------------
28805a1a286Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28905a1a286Smrgas_fn_exit ()
29005a1a286Smrg{
29105a1a286Smrg  set +e
29205a1a286Smrg  as_fn_set_status $1
29305a1a286Smrg  exit $1
29405a1a286Smrg} # as_fn_exit
29505a1a286Smrg
29605a1a286Smrg# as_fn_mkdir_p
29705a1a286Smrg# -------------
29805a1a286Smrg# Create "$as_dir" as a directory, including parents if necessary.
29905a1a286Smrgas_fn_mkdir_p ()
30005a1a286Smrg{
30105a1a286Smrg
30205a1a286Smrg  case $as_dir in #(
30305a1a286Smrg  -*) as_dir=./$as_dir;;
30405a1a286Smrg  esac
30505a1a286Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
30605a1a286Smrg    as_dirs=
30705a1a286Smrg    while :; do
30805a1a286Smrg      case $as_dir in #(
30905a1a286Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31005a1a286Smrg      *) as_qdir=$as_dir;;
31105a1a286Smrg      esac
31205a1a286Smrg      as_dirs="'$as_qdir' $as_dirs"
31305a1a286Smrg      as_dir=`$as_dirname -- "$as_dir" ||
31405a1a286Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31505a1a286Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
31605a1a286Smrg	 X"$as_dir" : 'X\(//\)$' \| \
31705a1a286Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31805a1a286Smrg$as_echo X"$as_dir" |
31905a1a286Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32005a1a286Smrg	    s//\1/
32105a1a286Smrg	    q
32205a1a286Smrg	  }
32305a1a286Smrg	  /^X\(\/\/\)[^/].*/{
32405a1a286Smrg	    s//\1/
32505a1a286Smrg	    q
32605a1a286Smrg	  }
32705a1a286Smrg	  /^X\(\/\/\)$/{
32805a1a286Smrg	    s//\1/
32905a1a286Smrg	    q
33005a1a286Smrg	  }
33105a1a286Smrg	  /^X\(\/\).*/{
33205a1a286Smrg	    s//\1/
33305a1a286Smrg	    q
33405a1a286Smrg	  }
33505a1a286Smrg	  s/.*/./; q'`
33605a1a286Smrg      test -d "$as_dir" && break
33705a1a286Smrg    done
33805a1a286Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
33905a1a286Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34005a1a286Smrg
34105a1a286Smrg
34205a1a286Smrg} # as_fn_mkdir_p
34305a1a286Smrg# as_fn_append VAR VALUE
34405a1a286Smrg# ----------------------
34505a1a286Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
34605a1a286Smrg# advantage of any shell optimizations that allow amortized linear growth over
34705a1a286Smrg# repeated appends, instead of the typical quadratic growth present in naive
34805a1a286Smrg# implementations.
34905a1a286Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35005a1a286Smrg  eval 'as_fn_append ()
35105a1a286Smrg  {
35205a1a286Smrg    eval $1+=\$2
35305a1a286Smrg  }'
35405a1a286Smrgelse
35505a1a286Smrg  as_fn_append ()
35605a1a286Smrg  {
35705a1a286Smrg    eval $1=\$$1\$2
35805a1a286Smrg  }
35905a1a286Smrgfi # as_fn_append
36005a1a286Smrg
36105a1a286Smrg# as_fn_arith ARG...
36205a1a286Smrg# ------------------
36305a1a286Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
36405a1a286Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
36505a1a286Smrg# must be portable across $(()) and expr.
36605a1a286Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36705a1a286Smrg  eval 'as_fn_arith ()
36805a1a286Smrg  {
36905a1a286Smrg    as_val=$(( $* ))
37005a1a286Smrg  }'
37105a1a286Smrgelse
37205a1a286Smrg  as_fn_arith ()
37305a1a286Smrg  {
37405a1a286Smrg    as_val=`expr "$@" || test $? -eq 1`
37505a1a286Smrg  }
37605a1a286Smrgfi # as_fn_arith
377d9c7fc6cSmrg
37805a1a286Smrg
37905a1a286Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
38005a1a286Smrg# ----------------------------------------
38105a1a286Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
38205a1a286Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
38305a1a286Smrg# script with STATUS, using 1 if that was 0.
38405a1a286Smrgas_fn_error ()
38505a1a286Smrg{
38605a1a286Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
38705a1a286Smrg  if test "$4"; then
38805a1a286Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
38905a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
39005a1a286Smrg  fi
39105a1a286Smrg  $as_echo "$as_me: error: $2" >&2
39205a1a286Smrg  as_fn_exit $as_status
39305a1a286Smrg} # as_fn_error
39405a1a286Smrg
39505a1a286Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
39605a1a286Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397d9c7fc6cSmrg  as_expr=expr
398d9c7fc6cSmrgelse
399d9c7fc6cSmrg  as_expr=false
400d9c7fc6cSmrgfi
401d9c7fc6cSmrg
40205a1a286Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403d9c7fc6cSmrg  as_basename=basename
404d9c7fc6cSmrgelse
405d9c7fc6cSmrg  as_basename=false
406d9c7fc6cSmrgfi
407d9c7fc6cSmrg
40805a1a286Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40905a1a286Smrg  as_dirname=dirname
41005a1a286Smrgelse
41105a1a286Smrg  as_dirname=false
41205a1a286Smrgfi
413d9c7fc6cSmrg
41405a1a286Smrgas_me=`$as_basename -- "$0" ||
415d9c7fc6cSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416d9c7fc6cSmrg	 X"$0" : 'X\(//\)$' \| \
41705a1a286Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41805a1a286Smrg$as_echo X/"$0" |
41905a1a286Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
42005a1a286Smrg	    s//\1/
42105a1a286Smrg	    q
42205a1a286Smrg	  }
42305a1a286Smrg	  /^X\/\(\/\/\)$/{
42405a1a286Smrg	    s//\1/
42505a1a286Smrg	    q
42605a1a286Smrg	  }
42705a1a286Smrg	  /^X\/\(\/\).*/{
42805a1a286Smrg	    s//\1/
42905a1a286Smrg	    q
43005a1a286Smrg	  }
43105a1a286Smrg	  s/.*/./; q'`
432d9c7fc6cSmrg
433d9c7fc6cSmrg# Avoid depending upon Character Ranges.
434d9c7fc6cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
435d9c7fc6cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436d9c7fc6cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
437d9c7fc6cSmrgas_cr_digits='0123456789'
438d9c7fc6cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
439d9c7fc6cSmrg
440d9c7fc6cSmrg
44105a1a286Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
44205a1a286Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
44305a1a286Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
44405a1a286Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
44505a1a286Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
44605a1a286Smrg  sed -n '
44705a1a286Smrg    p
44805a1a286Smrg    /[$]LINENO/=
44905a1a286Smrg  ' <$as_myself |
450d9c7fc6cSmrg    sed '
45105a1a286Smrg      s/[$]LINENO.*/&-/
45205a1a286Smrg      t lineno
45305a1a286Smrg      b
45405a1a286Smrg      :lineno
455d9c7fc6cSmrg      N
45605a1a286Smrg      :loop
45705a1a286Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458d9c7fc6cSmrg      t loop
45905a1a286Smrg      s/-\n.*//
460d9c7fc6cSmrg    ' >$as_me.lineno &&
46105a1a286Smrg  chmod +x "$as_me.lineno" ||
46205a1a286Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463d9c7fc6cSmrg
464d9c7fc6cSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
465d9c7fc6cSmrg  # (the dirname of $[0] is not the place where we might find the
46605a1a286Smrg  # original and so on.  Autoconf is especially sensitive to this).
46705a1a286Smrg  . "./$as_me.lineno"
468d9c7fc6cSmrg  # Exit status is that of the last command.
469d9c7fc6cSmrg  exit
470d9c7fc6cSmrg}
471d9c7fc6cSmrg
47205a1a286SmrgECHO_C= ECHO_N= ECHO_T=
47305a1a286Smrgcase `echo -n x` in #(((((
47405a1a286Smrg-n*)
47505a1a286Smrg  case `echo 'xy\c'` in
47605a1a286Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
47705a1a286Smrg  xy)  ECHO_C='\c';;
47805a1a286Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
47905a1a286Smrg       ECHO_T='	';;
48005a1a286Smrg  esac;;
48105a1a286Smrg*)
48205a1a286Smrg  ECHO_N='-n';;
483d9c7fc6cSmrgesac
484d9c7fc6cSmrg
48505a1a286Smrgrm -f conf$$ conf$$.exe conf$$.file
48605a1a286Smrgif test -d conf$$.dir; then
48705a1a286Smrg  rm -f conf$$.dir/conf$$.file
488d9c7fc6cSmrgelse
48905a1a286Smrg  rm -f conf$$.dir
49005a1a286Smrg  mkdir conf$$.dir 2>/dev/null
491d9c7fc6cSmrgfi
49205a1a286Smrgif (echo >conf$$.file) 2>/dev/null; then
49305a1a286Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
494d9c7fc6cSmrg    as_ln_s='ln -s'
49505a1a286Smrg    # ... but there are two gotchas:
49605a1a286Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
49705a1a286Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49805a1a286Smrg    # In both cases, we have to default to `cp -p'.
49905a1a286Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50005a1a286Smrg      as_ln_s='cp -p'
50105a1a286Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
50205a1a286Smrg    as_ln_s=ln
50305a1a286Smrg  else
50405a1a286Smrg    as_ln_s='cp -p'
505d9c7fc6cSmrg  fi
506d9c7fc6cSmrgelse
507d9c7fc6cSmrg  as_ln_s='cp -p'
508d9c7fc6cSmrgfi
50905a1a286Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51005a1a286Smrgrmdir conf$$.dir 2>/dev/null
511d9c7fc6cSmrg
512d9c7fc6cSmrgif mkdir -p . 2>/dev/null; then
51305a1a286Smrg  as_mkdir_p='mkdir -p "$as_dir"'
514d9c7fc6cSmrgelse
515d9c7fc6cSmrg  test -d ./-p && rmdir ./-p
516d9c7fc6cSmrg  as_mkdir_p=false
517d9c7fc6cSmrgfi
518d9c7fc6cSmrg
51905a1a286Smrgif test -x / >/dev/null 2>&1; then
52005a1a286Smrg  as_test_x='test -x'
52105a1a286Smrgelse
52205a1a286Smrg  if ls -dL / >/dev/null 2>&1; then
52305a1a286Smrg    as_ls_L_option=L
52405a1a286Smrg  else
52505a1a286Smrg    as_ls_L_option=
52605a1a286Smrg  fi
52705a1a286Smrg  as_test_x='
52805a1a286Smrg    eval sh -c '\''
52905a1a286Smrg      if test -d "$1"; then
53005a1a286Smrg	test -d "$1/.";
53105a1a286Smrg      else
53205a1a286Smrg	case $1 in #(
53305a1a286Smrg	-*)set "./$1";;
53405a1a286Smrg	esac;
53505a1a286Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
53605a1a286Smrg	???[sx]*):;;*)false;;esac;fi
53705a1a286Smrg    '\'' sh
53805a1a286Smrg  '
53905a1a286Smrgfi
54005a1a286Smrgas_executable_p=$as_test_x
541d9c7fc6cSmrg
542d9c7fc6cSmrg# Sed expression to map a string onto a valid CPP name.
543d9c7fc6cSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544d9c7fc6cSmrg
545d9c7fc6cSmrg# Sed expression to map a string onto a valid variable name.
546d9c7fc6cSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547d9c7fc6cSmrg
548d9c7fc6cSmrgSHELL=${CONFIG_SHELL-/bin/sh}
549d9c7fc6cSmrg
550d9c7fc6cSmrg
55105a1a286Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
55205a1a286Smrgexec 6>&1
553d9c7fc6cSmrg
554d9c7fc6cSmrg# Name of the host.
55505a1a286Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556d9c7fc6cSmrg# so uname gets run too.
557d9c7fc6cSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558d9c7fc6cSmrg
559d9c7fc6cSmrg#
560d9c7fc6cSmrg# Initializations.
561d9c7fc6cSmrg#
562d9c7fc6cSmrgac_default_prefix=/usr/local
56305a1a286Smrgac_clean_files=
564d9c7fc6cSmrgac_config_libobj_dir=.
56505a1a286SmrgLIBOBJS=
566d9c7fc6cSmrgcross_compiling=no
567d9c7fc6cSmrgsubdirs=
568d9c7fc6cSmrgMFLAGS=
569d9c7fc6cSmrgMAKEFLAGS=
570d9c7fc6cSmrg
571d9c7fc6cSmrg# Identity of this package.
572d9c7fc6cSmrgPACKAGE_NAME='libXevie'
573d9c7fc6cSmrgPACKAGE_TARNAME='libXevie'
57405a1a286SmrgPACKAGE_VERSION='1.0.3'
57505a1a286SmrgPACKAGE_STRING='libXevie 1.0.3'
576d9c7fc6cSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
57705a1a286SmrgPACKAGE_URL=''
578d9c7fc6cSmrg
579d9c7fc6cSmrg# Factoring default headers for most tests.
580d9c7fc6cSmrgac_includes_default="\
581d9c7fc6cSmrg#include <stdio.h>
58205a1a286Smrg#ifdef HAVE_SYS_TYPES_H
583d9c7fc6cSmrg# include <sys/types.h>
584d9c7fc6cSmrg#endif
58505a1a286Smrg#ifdef HAVE_SYS_STAT_H
586d9c7fc6cSmrg# include <sys/stat.h>
587d9c7fc6cSmrg#endif
58805a1a286Smrg#ifdef STDC_HEADERS
589d9c7fc6cSmrg# include <stdlib.h>
590d9c7fc6cSmrg# include <stddef.h>
591d9c7fc6cSmrg#else
59205a1a286Smrg# ifdef HAVE_STDLIB_H
593d9c7fc6cSmrg#  include <stdlib.h>
594d9c7fc6cSmrg# endif
595d9c7fc6cSmrg#endif
59605a1a286Smrg#ifdef HAVE_STRING_H
59705a1a286Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598d9c7fc6cSmrg#  include <memory.h>
599d9c7fc6cSmrg# endif
600d9c7fc6cSmrg# include <string.h>
601d9c7fc6cSmrg#endif
60205a1a286Smrg#ifdef HAVE_STRINGS_H
603d9c7fc6cSmrg# include <strings.h>
604d9c7fc6cSmrg#endif
60505a1a286Smrg#ifdef HAVE_INTTYPES_H
606d9c7fc6cSmrg# include <inttypes.h>
607d9c7fc6cSmrg#endif
60805a1a286Smrg#ifdef HAVE_STDINT_H
60905a1a286Smrg# include <stdint.h>
61005a1a286Smrg#endif
61105a1a286Smrg#ifdef HAVE_UNISTD_H
612d9c7fc6cSmrg# include <unistd.h>
613d9c7fc6cSmrg#endif"
614d9c7fc6cSmrg
61505a1a286Smrgac_subst_vars='am__EXEEXT_FALSE
61605a1a286Smrgam__EXEEXT_TRUE
61705a1a286SmrgLTLIBOBJS
61805a1a286SmrgLIBOBJS
61905a1a286SmrgMAKE_LINT_LIB_FALSE
62005a1a286SmrgMAKE_LINT_LIB_TRUE
62105a1a286SmrgLINTLIB
62205a1a286SmrgLINT_FALSE
62305a1a286SmrgLINT_TRUE
62405a1a286SmrgLINT_FLAGS
62505a1a286SmrgLINT
62605a1a286SmrgXEVIE_LIBS
62705a1a286SmrgXEVIE_CFLAGS
62805a1a286SmrgOTOOL64
62905a1a286SmrgOTOOL
63005a1a286SmrgLIPO
63105a1a286SmrgNMEDIT
63205a1a286SmrgDSYMUTIL
63305a1a286SmrgRANLIB
63405a1a286SmrgAR
63505a1a286SmrgOBJDUMP
63605a1a286SmrgLN_S
63705a1a286SmrgNM
63805a1a286Smrgac_ct_DUMPBIN
63905a1a286SmrgDUMPBIN
64005a1a286SmrgLD
64105a1a286SmrgFGREP
64205a1a286SmrgLIBTOOL
64305a1a286SmrgAM_BACKSLASH
64405a1a286SmrgAM_DEFAULT_VERBOSITY
64505a1a286SmrgMAN_SUBSTS
64605a1a286SmrgXORG_MAN_PAGE
64705a1a286SmrgADMIN_MAN_DIR
64805a1a286SmrgDRIVER_MAN_DIR
64905a1a286SmrgMISC_MAN_DIR
65005a1a286SmrgFILE_MAN_DIR
65105a1a286SmrgLIB_MAN_DIR
65205a1a286SmrgAPP_MAN_DIR
65305a1a286SmrgADMIN_MAN_SUFFIX
65405a1a286SmrgDRIVER_MAN_SUFFIX
65505a1a286SmrgMISC_MAN_SUFFIX
65605a1a286SmrgFILE_MAN_SUFFIX
65705a1a286SmrgLIB_MAN_SUFFIX
65805a1a286SmrgAPP_MAN_SUFFIX
65905a1a286SmrgSED
66005a1a286Smrghost_os
66105a1a286Smrghost_vendor
66205a1a286Smrghost_cpu
66305a1a286Smrghost
66405a1a286Smrgbuild_os
66505a1a286Smrgbuild_vendor
66605a1a286Smrgbuild_cpu
66705a1a286Smrgbuild
66805a1a286SmrgINSTALL_CMD
66905a1a286SmrgPKG_CONFIG
67005a1a286SmrgCHANGELOG_CMD
67105a1a286SmrgCWARNFLAGS
67205a1a286SmrgEGREP
67305a1a286SmrgGREP
67405a1a286SmrgCPP
67505a1a286Smrgam__fastdepCC_FALSE
67605a1a286Smrgam__fastdepCC_TRUE
67705a1a286SmrgCCDEPMODE
67805a1a286SmrgAMDEPBACKSLASH
67905a1a286SmrgAMDEP_FALSE
68005a1a286SmrgAMDEP_TRUE
68105a1a286Smrgam__quote
68205a1a286Smrgam__include
68305a1a286SmrgDEPDIR
68405a1a286SmrgOBJEXT
68505a1a286SmrgEXEEXT
68605a1a286Smrgac_ct_CC
68705a1a286SmrgCPPFLAGS
68805a1a286SmrgLDFLAGS
68905a1a286SmrgCFLAGS
69005a1a286SmrgCC
69105a1a286SmrgMAINT
69205a1a286SmrgMAINTAINER_MODE_FALSE
69305a1a286SmrgMAINTAINER_MODE_TRUE
69405a1a286Smrgam__untar
69505a1a286Smrgam__tar
69605a1a286SmrgAMTAR
69705a1a286Smrgam__leading_dot
69805a1a286SmrgSET_MAKE
69905a1a286SmrgAWK
70005a1a286Smrgmkdir_p
70105a1a286SmrgMKDIR_P
70205a1a286SmrgINSTALL_STRIP_PROGRAM
70305a1a286SmrgSTRIP
70405a1a286Smrginstall_sh
70505a1a286SmrgMAKEINFO
70605a1a286SmrgAUTOHEADER
70705a1a286SmrgAUTOMAKE
70805a1a286SmrgAUTOCONF
70905a1a286SmrgACLOCAL
71005a1a286SmrgVERSION
71105a1a286SmrgPACKAGE
71205a1a286SmrgCYGPATH_W
71305a1a286Smrgam__isrc
71405a1a286SmrgINSTALL_DATA
71505a1a286SmrgINSTALL_SCRIPT
71605a1a286SmrgINSTALL_PROGRAM
71705a1a286Smrgtarget_alias
71805a1a286Smrghost_alias
71905a1a286Smrgbuild_alias
72005a1a286SmrgLIBS
72105a1a286SmrgECHO_T
72205a1a286SmrgECHO_N
72305a1a286SmrgECHO_C
72405a1a286SmrgDEFS
72505a1a286Smrgmandir
72605a1a286Smrglocaledir
72705a1a286Smrglibdir
72805a1a286Smrgpsdir
72905a1a286Smrgpdfdir
73005a1a286Smrgdvidir
73105a1a286Smrghtmldir
73205a1a286Smrginfodir
73305a1a286Smrgdocdir
73405a1a286Smrgoldincludedir
73505a1a286Smrgincludedir
73605a1a286Smrglocalstatedir
73705a1a286Smrgsharedstatedir
73805a1a286Smrgsysconfdir
73905a1a286Smrgdatadir
74005a1a286Smrgdatarootdir
74105a1a286Smrglibexecdir
74205a1a286Smrgsbindir
74305a1a286Smrgbindir
74405a1a286Smrgprogram_transform_name
74505a1a286Smrgprefix
74605a1a286Smrgexec_prefix
74705a1a286SmrgPACKAGE_URL
74805a1a286SmrgPACKAGE_BUGREPORT
74905a1a286SmrgPACKAGE_STRING
75005a1a286SmrgPACKAGE_VERSION
75105a1a286SmrgPACKAGE_TARNAME
75205a1a286SmrgPACKAGE_NAME
75305a1a286SmrgPATH_SEPARATOR
75405a1a286SmrgSHELL'
755d9c7fc6cSmrgac_subst_files=''
75605a1a286Smrgac_user_opts='
75705a1a286Smrgenable_option_checking
75805a1a286Smrgenable_maintainer_mode
75905a1a286Smrgenable_dependency_tracking
76005a1a286Smrgenable_strict_compilation
76105a1a286Smrgenable_silent_rules
76205a1a286Smrgenable_shared
76305a1a286Smrgenable_static
76405a1a286Smrgwith_pic
76505a1a286Smrgenable_fast_install
76605a1a286Smrgwith_gnu_ld
76705a1a286Smrgenable_libtool_lock
76805a1a286Smrgwith_lint
76905a1a286Smrgenable_lint_library
77005a1a286Smrg'
77105a1a286Smrg      ac_precious_vars='build_alias
77205a1a286Smrghost_alias
77305a1a286Smrgtarget_alias
77405a1a286SmrgCC
77505a1a286SmrgCFLAGS
77605a1a286SmrgLDFLAGS
77705a1a286SmrgLIBS
77805a1a286SmrgCPPFLAGS
77905a1a286SmrgCPP
78005a1a286SmrgPKG_CONFIG
78105a1a286SmrgXEVIE_CFLAGS
78205a1a286SmrgXEVIE_LIBS
78305a1a286SmrgLINT
78405a1a286SmrgLINT_FLAGS'
78505a1a286Smrg
786d9c7fc6cSmrg
787d9c7fc6cSmrg# Initialize some variables set by options.
788d9c7fc6cSmrgac_init_help=
789d9c7fc6cSmrgac_init_version=false
79005a1a286Smrgac_unrecognized_opts=
79105a1a286Smrgac_unrecognized_sep=
792d9c7fc6cSmrg# The variables have the same names as the options, with
793d9c7fc6cSmrg# dashes changed to underlines.
794d9c7fc6cSmrgcache_file=/dev/null
795d9c7fc6cSmrgexec_prefix=NONE
796d9c7fc6cSmrgno_create=
797d9c7fc6cSmrgno_recursion=
798d9c7fc6cSmrgprefix=NONE
799d9c7fc6cSmrgprogram_prefix=NONE
800d9c7fc6cSmrgprogram_suffix=NONE
801d9c7fc6cSmrgprogram_transform_name=s,x,x,
802d9c7fc6cSmrgsilent=
803d9c7fc6cSmrgsite=
804d9c7fc6cSmrgsrcdir=
805d9c7fc6cSmrgverbose=
806d9c7fc6cSmrgx_includes=NONE
807d9c7fc6cSmrgx_libraries=NONE
808d9c7fc6cSmrg
809d9c7fc6cSmrg# Installation directory options.
810d9c7fc6cSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
811d9c7fc6cSmrg# and all the variables that are supposed to be based on exec_prefix
812d9c7fc6cSmrg# by default will actually change.
813d9c7fc6cSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
81405a1a286Smrg# (The list follows the same order as the GNU Coding Standards.)
815d9c7fc6cSmrgbindir='${exec_prefix}/bin'
816d9c7fc6cSmrgsbindir='${exec_prefix}/sbin'
817d9c7fc6cSmrglibexecdir='${exec_prefix}/libexec'
81805a1a286Smrgdatarootdir='${prefix}/share'
81905a1a286Smrgdatadir='${datarootdir}'
820d9c7fc6cSmrgsysconfdir='${prefix}/etc'
821d9c7fc6cSmrgsharedstatedir='${prefix}/com'
822d9c7fc6cSmrglocalstatedir='${prefix}/var'
823d9c7fc6cSmrgincludedir='${prefix}/include'
824d9c7fc6cSmrgoldincludedir='/usr/include'
82505a1a286Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
82605a1a286Smrginfodir='${datarootdir}/info'
82705a1a286Smrghtmldir='${docdir}'
82805a1a286Smrgdvidir='${docdir}'
82905a1a286Smrgpdfdir='${docdir}'
83005a1a286Smrgpsdir='${docdir}'
83105a1a286Smrglibdir='${exec_prefix}/lib'
83205a1a286Smrglocaledir='${datarootdir}/locale'
83305a1a286Smrgmandir='${datarootdir}/man'
834d9c7fc6cSmrg
835d9c7fc6cSmrgac_prev=
83605a1a286Smrgac_dashdash=
837d9c7fc6cSmrgfor ac_option
838d9c7fc6cSmrgdo
839d9c7fc6cSmrg  # If the previous option needs an argument, assign it.
840d9c7fc6cSmrg  if test -n "$ac_prev"; then
84105a1a286Smrg    eval $ac_prev=\$ac_option
842d9c7fc6cSmrg    ac_prev=
843d9c7fc6cSmrg    continue
844d9c7fc6cSmrg  fi
845d9c7fc6cSmrg
84605a1a286Smrg  case $ac_option in
84705a1a286Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
84805a1a286Smrg  *=)   ac_optarg= ;;
84905a1a286Smrg  *)    ac_optarg=yes ;;
85005a1a286Smrg  esac
851d9c7fc6cSmrg
852d9c7fc6cSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
853d9c7fc6cSmrg
85405a1a286Smrg  case $ac_dashdash$ac_option in
85505a1a286Smrg  --)
85605a1a286Smrg    ac_dashdash=yes ;;
857d9c7fc6cSmrg
858d9c7fc6cSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
859d9c7fc6cSmrg    ac_prev=bindir ;;
860d9c7fc6cSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861d9c7fc6cSmrg    bindir=$ac_optarg ;;
862d9c7fc6cSmrg
863d9c7fc6cSmrg  -build | --build | --buil | --bui | --bu)
864d9c7fc6cSmrg    ac_prev=build_alias ;;
865d9c7fc6cSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866d9c7fc6cSmrg    build_alias=$ac_optarg ;;
867d9c7fc6cSmrg
868d9c7fc6cSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
869d9c7fc6cSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870d9c7fc6cSmrg    ac_prev=cache_file ;;
871d9c7fc6cSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872d9c7fc6cSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873d9c7fc6cSmrg    cache_file=$ac_optarg ;;
874d9c7fc6cSmrg
875d9c7fc6cSmrg  --config-cache | -C)
876d9c7fc6cSmrg    cache_file=config.cache ;;
877d9c7fc6cSmrg
87805a1a286Smrg  -datadir | --datadir | --datadi | --datad)
879d9c7fc6cSmrg    ac_prev=datadir ;;
88005a1a286Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
881d9c7fc6cSmrg    datadir=$ac_optarg ;;
882d9c7fc6cSmrg
88305a1a286Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
88405a1a286Smrg  | --dataroo | --dataro | --datar)
88505a1a286Smrg    ac_prev=datarootdir ;;
88605a1a286Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
88705a1a286Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
88805a1a286Smrg    datarootdir=$ac_optarg ;;
88905a1a286Smrg
890d9c7fc6cSmrg  -disable-* | --disable-*)
89105a1a286Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892d9c7fc6cSmrg    # Reject names that are not valid shell variable names.
89305a1a286Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
89405a1a286Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
89505a1a286Smrg    ac_useropt_orig=$ac_useropt
89605a1a286Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
89705a1a286Smrg    case $ac_user_opts in
89805a1a286Smrg      *"
89905a1a286Smrg"enable_$ac_useropt"
90005a1a286Smrg"*) ;;
90105a1a286Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
90205a1a286Smrg	 ac_unrecognized_sep=', ';;
90305a1a286Smrg    esac
90405a1a286Smrg    eval enable_$ac_useropt=no ;;
90505a1a286Smrg
90605a1a286Smrg  -docdir | --docdir | --docdi | --doc | --do)
90705a1a286Smrg    ac_prev=docdir ;;
90805a1a286Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
90905a1a286Smrg    docdir=$ac_optarg ;;
91005a1a286Smrg
91105a1a286Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
91205a1a286Smrg    ac_prev=dvidir ;;
91305a1a286Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
91405a1a286Smrg    dvidir=$ac_optarg ;;
915d9c7fc6cSmrg
916d9c7fc6cSmrg  -enable-* | --enable-*)
91705a1a286Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918d9c7fc6cSmrg    # Reject names that are not valid shell variable names.
91905a1a286Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
92005a1a286Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
92105a1a286Smrg    ac_useropt_orig=$ac_useropt
92205a1a286Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
92305a1a286Smrg    case $ac_user_opts in
92405a1a286Smrg      *"
92505a1a286Smrg"enable_$ac_useropt"
92605a1a286Smrg"*) ;;
92705a1a286Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
92805a1a286Smrg	 ac_unrecognized_sep=', ';;
929d9c7fc6cSmrg    esac
93005a1a286Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
931d9c7fc6cSmrg
932d9c7fc6cSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933d9c7fc6cSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934d9c7fc6cSmrg  | --exec | --exe | --ex)
935d9c7fc6cSmrg    ac_prev=exec_prefix ;;
936d9c7fc6cSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937d9c7fc6cSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938d9c7fc6cSmrg  | --exec=* | --exe=* | --ex=*)
939d9c7fc6cSmrg    exec_prefix=$ac_optarg ;;
940d9c7fc6cSmrg
941d9c7fc6cSmrg  -gas | --gas | --ga | --g)
942d9c7fc6cSmrg    # Obsolete; use --with-gas.
943d9c7fc6cSmrg    with_gas=yes ;;
944d9c7fc6cSmrg
945d9c7fc6cSmrg  -help | --help | --hel | --he | -h)
946d9c7fc6cSmrg    ac_init_help=long ;;
947d9c7fc6cSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948d9c7fc6cSmrg    ac_init_help=recursive ;;
949d9c7fc6cSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950d9c7fc6cSmrg    ac_init_help=short ;;
951d9c7fc6cSmrg
952d9c7fc6cSmrg  -host | --host | --hos | --ho)
953d9c7fc6cSmrg    ac_prev=host_alias ;;
954d9c7fc6cSmrg  -host=* | --host=* | --hos=* | --ho=*)
955d9c7fc6cSmrg    host_alias=$ac_optarg ;;
956d9c7fc6cSmrg
95705a1a286Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
95805a1a286Smrg    ac_prev=htmldir ;;
95905a1a286Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
96005a1a286Smrg  | --ht=*)
96105a1a286Smrg    htmldir=$ac_optarg ;;
96205a1a286Smrg
963d9c7fc6cSmrg  -includedir | --includedir | --includedi | --included | --include \
964d9c7fc6cSmrg  | --includ | --inclu | --incl | --inc)
965d9c7fc6cSmrg    ac_prev=includedir ;;
966d9c7fc6cSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967d9c7fc6cSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
968d9c7fc6cSmrg    includedir=$ac_optarg ;;
969d9c7fc6cSmrg
970d9c7fc6cSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
971d9c7fc6cSmrg    ac_prev=infodir ;;
972d9c7fc6cSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973d9c7fc6cSmrg    infodir=$ac_optarg ;;
974d9c7fc6cSmrg
975d9c7fc6cSmrg  -libdir | --libdir | --libdi | --libd)
976d9c7fc6cSmrg    ac_prev=libdir ;;
977d9c7fc6cSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
978d9c7fc6cSmrg    libdir=$ac_optarg ;;
979d9c7fc6cSmrg
980d9c7fc6cSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981d9c7fc6cSmrg  | --libexe | --libex | --libe)
982d9c7fc6cSmrg    ac_prev=libexecdir ;;
983d9c7fc6cSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984d9c7fc6cSmrg  | --libexe=* | --libex=* | --libe=*)
985d9c7fc6cSmrg    libexecdir=$ac_optarg ;;
986d9c7fc6cSmrg
98705a1a286Smrg  -localedir | --localedir | --localedi | --localed | --locale)
98805a1a286Smrg    ac_prev=localedir ;;
98905a1a286Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
99005a1a286Smrg    localedir=$ac_optarg ;;
99105a1a286Smrg
992d9c7fc6cSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
99305a1a286Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
994d9c7fc6cSmrg    ac_prev=localstatedir ;;
995d9c7fc6cSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
99605a1a286Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997d9c7fc6cSmrg    localstatedir=$ac_optarg ;;
998d9c7fc6cSmrg
999d9c7fc6cSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000d9c7fc6cSmrg    ac_prev=mandir ;;
1001d9c7fc6cSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002d9c7fc6cSmrg    mandir=$ac_optarg ;;
1003d9c7fc6cSmrg
1004d9c7fc6cSmrg  -nfp | --nfp | --nf)
1005d9c7fc6cSmrg    # Obsolete; use --without-fp.
1006d9c7fc6cSmrg    with_fp=no ;;
1007d9c7fc6cSmrg
1008d9c7fc6cSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009d9c7fc6cSmrg  | --no-cr | --no-c | -n)
1010d9c7fc6cSmrg    no_create=yes ;;
1011d9c7fc6cSmrg
1012d9c7fc6cSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013d9c7fc6cSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014d9c7fc6cSmrg    no_recursion=yes ;;
1015d9c7fc6cSmrg
1016d9c7fc6cSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017d9c7fc6cSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018d9c7fc6cSmrg  | --oldin | --oldi | --old | --ol | --o)
1019d9c7fc6cSmrg    ac_prev=oldincludedir ;;
1020d9c7fc6cSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021d9c7fc6cSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022d9c7fc6cSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023d9c7fc6cSmrg    oldincludedir=$ac_optarg ;;
1024d9c7fc6cSmrg
1025d9c7fc6cSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026d9c7fc6cSmrg    ac_prev=prefix ;;
1027d9c7fc6cSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028d9c7fc6cSmrg    prefix=$ac_optarg ;;
1029d9c7fc6cSmrg
1030d9c7fc6cSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031d9c7fc6cSmrg  | --program-pre | --program-pr | --program-p)
1032d9c7fc6cSmrg    ac_prev=program_prefix ;;
1033d9c7fc6cSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034d9c7fc6cSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035d9c7fc6cSmrg    program_prefix=$ac_optarg ;;
1036d9c7fc6cSmrg
1037d9c7fc6cSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038d9c7fc6cSmrg  | --program-suf | --program-su | --program-s)
1039d9c7fc6cSmrg    ac_prev=program_suffix ;;
1040d9c7fc6cSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041d9c7fc6cSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042d9c7fc6cSmrg    program_suffix=$ac_optarg ;;
1043d9c7fc6cSmrg
1044d9c7fc6cSmrg  -program-transform-name | --program-transform-name \
1045d9c7fc6cSmrg  | --program-transform-nam | --program-transform-na \
1046d9c7fc6cSmrg  | --program-transform-n | --program-transform- \
1047d9c7fc6cSmrg  | --program-transform | --program-transfor \
1048d9c7fc6cSmrg  | --program-transfo | --program-transf \
1049d9c7fc6cSmrg  | --program-trans | --program-tran \
1050d9c7fc6cSmrg  | --progr-tra | --program-tr | --program-t)
1051d9c7fc6cSmrg    ac_prev=program_transform_name ;;
1052d9c7fc6cSmrg  -program-transform-name=* | --program-transform-name=* \
1053d9c7fc6cSmrg  | --program-transform-nam=* | --program-transform-na=* \
1054d9c7fc6cSmrg  | --program-transform-n=* | --program-transform-=* \
1055d9c7fc6cSmrg  | --program-transform=* | --program-transfor=* \
1056d9c7fc6cSmrg  | --program-transfo=* | --program-transf=* \
1057d9c7fc6cSmrg  | --program-trans=* | --program-tran=* \
1058d9c7fc6cSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1059d9c7fc6cSmrg    program_transform_name=$ac_optarg ;;
1060d9c7fc6cSmrg
106105a1a286Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
106205a1a286Smrg    ac_prev=pdfdir ;;
106305a1a286Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
106405a1a286Smrg    pdfdir=$ac_optarg ;;
106505a1a286Smrg
106605a1a286Smrg  -psdir | --psdir | --psdi | --psd | --ps)
106705a1a286Smrg    ac_prev=psdir ;;
106805a1a286Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
106905a1a286Smrg    psdir=$ac_optarg ;;
107005a1a286Smrg
1071d9c7fc6cSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072d9c7fc6cSmrg  | -silent | --silent | --silen | --sile | --sil)
1073d9c7fc6cSmrg    silent=yes ;;
1074d9c7fc6cSmrg
1075d9c7fc6cSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076d9c7fc6cSmrg    ac_prev=sbindir ;;
1077d9c7fc6cSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078d9c7fc6cSmrg  | --sbi=* | --sb=*)
1079d9c7fc6cSmrg    sbindir=$ac_optarg ;;
1080d9c7fc6cSmrg
1081d9c7fc6cSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082d9c7fc6cSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083d9c7fc6cSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1084d9c7fc6cSmrg  | --sha | --sh)
1085d9c7fc6cSmrg    ac_prev=sharedstatedir ;;
1086d9c7fc6cSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087d9c7fc6cSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088d9c7fc6cSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089d9c7fc6cSmrg  | --sha=* | --sh=*)
1090d9c7fc6cSmrg    sharedstatedir=$ac_optarg ;;
1091d9c7fc6cSmrg
1092d9c7fc6cSmrg  -site | --site | --sit)
1093d9c7fc6cSmrg    ac_prev=site ;;
1094d9c7fc6cSmrg  -site=* | --site=* | --sit=*)
1095d9c7fc6cSmrg    site=$ac_optarg ;;
1096d9c7fc6cSmrg
1097d9c7fc6cSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098d9c7fc6cSmrg    ac_prev=srcdir ;;
1099d9c7fc6cSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100d9c7fc6cSmrg    srcdir=$ac_optarg ;;
1101d9c7fc6cSmrg
1102d9c7fc6cSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103d9c7fc6cSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1104d9c7fc6cSmrg    ac_prev=sysconfdir ;;
1105d9c7fc6cSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106d9c7fc6cSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107d9c7fc6cSmrg    sysconfdir=$ac_optarg ;;
1108d9c7fc6cSmrg
1109d9c7fc6cSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1110d9c7fc6cSmrg    ac_prev=target_alias ;;
1111d9c7fc6cSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112d9c7fc6cSmrg    target_alias=$ac_optarg ;;
1113d9c7fc6cSmrg
1114d9c7fc6cSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115d9c7fc6cSmrg    verbose=yes ;;
1116d9c7fc6cSmrg
1117d9c7fc6cSmrg  -version | --version | --versio | --versi | --vers | -V)
1118d9c7fc6cSmrg    ac_init_version=: ;;
1119d9c7fc6cSmrg
1120d9c7fc6cSmrg  -with-* | --with-*)
112105a1a286Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122d9c7fc6cSmrg    # Reject names that are not valid shell variable names.
112305a1a286Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
112405a1a286Smrg      as_fn_error $? "invalid package name: $ac_useropt"
112505a1a286Smrg    ac_useropt_orig=$ac_useropt
112605a1a286Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
112705a1a286Smrg    case $ac_user_opts in
112805a1a286Smrg      *"
112905a1a286Smrg"with_$ac_useropt"
113005a1a286Smrg"*) ;;
113105a1a286Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
113205a1a286Smrg	 ac_unrecognized_sep=', ';;
1133d9c7fc6cSmrg    esac
113405a1a286Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1135d9c7fc6cSmrg
1136d9c7fc6cSmrg  -without-* | --without-*)
113705a1a286Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138d9c7fc6cSmrg    # Reject names that are not valid shell variable names.
113905a1a286Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
114005a1a286Smrg      as_fn_error $? "invalid package name: $ac_useropt"
114105a1a286Smrg    ac_useropt_orig=$ac_useropt
114205a1a286Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
114305a1a286Smrg    case $ac_user_opts in
114405a1a286Smrg      *"
114505a1a286Smrg"with_$ac_useropt"
114605a1a286Smrg"*) ;;
114705a1a286Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
114805a1a286Smrg	 ac_unrecognized_sep=', ';;
114905a1a286Smrg    esac
115005a1a286Smrg    eval with_$ac_useropt=no ;;
1151d9c7fc6cSmrg
1152d9c7fc6cSmrg  --x)
1153d9c7fc6cSmrg    # Obsolete; use --with-x.
1154d9c7fc6cSmrg    with_x=yes ;;
1155d9c7fc6cSmrg
1156d9c7fc6cSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157d9c7fc6cSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1158d9c7fc6cSmrg    ac_prev=x_includes ;;
1159d9c7fc6cSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160d9c7fc6cSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161d9c7fc6cSmrg    x_includes=$ac_optarg ;;
1162d9c7fc6cSmrg
1163d9c7fc6cSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164d9c7fc6cSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165d9c7fc6cSmrg    ac_prev=x_libraries ;;
1166d9c7fc6cSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167d9c7fc6cSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168d9c7fc6cSmrg    x_libraries=$ac_optarg ;;
1169d9c7fc6cSmrg
117005a1a286Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
117105a1a286SmrgTry \`$0 --help' for more information"
1172d9c7fc6cSmrg    ;;
1173d9c7fc6cSmrg
1174d9c7fc6cSmrg  *=*)
1175d9c7fc6cSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176d9c7fc6cSmrg    # Reject names that are not valid shell variable names.
117705a1a286Smrg    case $ac_envvar in #(
117805a1a286Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
117905a1a286Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
118005a1a286Smrg    esac
118105a1a286Smrg    eval $ac_envvar=\$ac_optarg
1182d9c7fc6cSmrg    export $ac_envvar ;;
1183d9c7fc6cSmrg
1184d9c7fc6cSmrg  *)
1185d9c7fc6cSmrg    # FIXME: should be removed in autoconf 3.0.
118605a1a286Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187d9c7fc6cSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
118805a1a286Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
118905a1a286Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190d9c7fc6cSmrg    ;;
1191d9c7fc6cSmrg
1192d9c7fc6cSmrg  esac
1193d9c7fc6cSmrgdone
1194d9c7fc6cSmrg
1195d9c7fc6cSmrgif test -n "$ac_prev"; then
1196d9c7fc6cSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
119705a1a286Smrg  as_fn_error $? "missing argument to $ac_option"
1198d9c7fc6cSmrgfi
1199d9c7fc6cSmrg
120005a1a286Smrgif test -n "$ac_unrecognized_opts"; then
120105a1a286Smrg  case $enable_option_checking in
120205a1a286Smrg    no) ;;
120305a1a286Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
120405a1a286Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205d9c7fc6cSmrg  esac
120605a1a286Smrgfi
1207d9c7fc6cSmrg
120805a1a286Smrg# Check all directory arguments for consistency.
120905a1a286Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
121005a1a286Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
121105a1a286Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
121205a1a286Smrg		libdir localedir mandir
1213d9c7fc6cSmrgdo
121405a1a286Smrg  eval ac_val=\$$ac_var
121505a1a286Smrg  # Remove trailing slashes.
121605a1a286Smrg  case $ac_val in
121705a1a286Smrg    */ )
121805a1a286Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
121905a1a286Smrg      eval $ac_var=\$ac_val;;
122005a1a286Smrg  esac
122105a1a286Smrg  # Be sure to have absolute directory names.
1222d9c7fc6cSmrg  case $ac_val in
122305a1a286Smrg    [\\/$]* | ?:[\\/]* )  continue;;
122405a1a286Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225d9c7fc6cSmrg  esac
122605a1a286Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227d9c7fc6cSmrgdone
1228d9c7fc6cSmrg
1229d9c7fc6cSmrg# There might be people who depend on the old broken behavior: `$host'
1230d9c7fc6cSmrg# used to hold the argument of --host etc.
1231d9c7fc6cSmrg# FIXME: To remove some day.
1232d9c7fc6cSmrgbuild=$build_alias
1233d9c7fc6cSmrghost=$host_alias
1234d9c7fc6cSmrgtarget=$target_alias
1235d9c7fc6cSmrg
1236d9c7fc6cSmrg# FIXME: To remove some day.
1237d9c7fc6cSmrgif test "x$host_alias" != x; then
1238d9c7fc6cSmrg  if test "x$build_alias" = x; then
1239d9c7fc6cSmrg    cross_compiling=maybe
124005a1a286Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
124105a1a286Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
1242d9c7fc6cSmrg  elif test "x$build_alias" != "x$host_alias"; then
1243d9c7fc6cSmrg    cross_compiling=yes
1244d9c7fc6cSmrg  fi
1245d9c7fc6cSmrgfi
1246d9c7fc6cSmrg
1247d9c7fc6cSmrgac_tool_prefix=
1248d9c7fc6cSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1249d9c7fc6cSmrg
1250d9c7fc6cSmrgtest "$silent" = yes && exec 6>/dev/null
1251d9c7fc6cSmrg
1252d9c7fc6cSmrg
125305a1a286Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
125405a1a286Smrgac_ls_di=`ls -di .` &&
125505a1a286Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
125605a1a286Smrg  as_fn_error $? "working directory cannot be determined"
125705a1a286Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
125805a1a286Smrg  as_fn_error $? "pwd does not report name of working directory"
125905a1a286Smrg
126005a1a286Smrg
1261d9c7fc6cSmrg# Find the source files, if location was not specified.
1262d9c7fc6cSmrgif test -z "$srcdir"; then
1263d9c7fc6cSmrg  ac_srcdir_defaulted=yes
126405a1a286Smrg  # Try the directory containing this script, then the parent directory.
126505a1a286Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
126605a1a286Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
126705a1a286Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
126805a1a286Smrg	 X"$as_myself" : 'X\(//\)$' \| \
126905a1a286Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
127005a1a286Smrg$as_echo X"$as_myself" |
127105a1a286Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
127205a1a286Smrg	    s//\1/
127305a1a286Smrg	    q
127405a1a286Smrg	  }
127505a1a286Smrg	  /^X\(\/\/\)[^/].*/{
127605a1a286Smrg	    s//\1/
127705a1a286Smrg	    q
127805a1a286Smrg	  }
127905a1a286Smrg	  /^X\(\/\/\)$/{
128005a1a286Smrg	    s//\1/
128105a1a286Smrg	    q
128205a1a286Smrg	  }
128305a1a286Smrg	  /^X\(\/\).*/{
128405a1a286Smrg	    s//\1/
128505a1a286Smrg	    q
128605a1a286Smrg	  }
128705a1a286Smrg	  s/.*/./; q'`
1288d9c7fc6cSmrg  srcdir=$ac_confdir
128905a1a286Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1290d9c7fc6cSmrg    srcdir=..
1291d9c7fc6cSmrg  fi
1292d9c7fc6cSmrgelse
1293d9c7fc6cSmrg  ac_srcdir_defaulted=no
1294d9c7fc6cSmrgfi
129505a1a286Smrgif test ! -r "$srcdir/$ac_unique_file"; then
129605a1a286Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
129705a1a286Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
129805a1a286Smrgfi
129905a1a286Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
130005a1a286Smrgac_abs_confdir=`(
130105a1a286Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
130205a1a286Smrg	pwd)`
130305a1a286Smrg# When building in place, set srcdir=.
130405a1a286Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
130505a1a286Smrg  srcdir=.
130605a1a286Smrgfi
130705a1a286Smrg# Remove unnecessary trailing slashes from srcdir.
130805a1a286Smrg# Double slashes in file names in object file debugging info
130905a1a286Smrg# mess up M-x gdb in Emacs.
131005a1a286Smrgcase $srcdir in
131105a1a286Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
131205a1a286Smrgesac
131305a1a286Smrgfor ac_var in $ac_precious_vars; do
131405a1a286Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
131505a1a286Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
131605a1a286Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
131705a1a286Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
131805a1a286Smrgdone
1319d9c7fc6cSmrg
1320d9c7fc6cSmrg#
1321d9c7fc6cSmrg# Report the --help message.
1322d9c7fc6cSmrg#
1323d9c7fc6cSmrgif test "$ac_init_help" = "long"; then
1324d9c7fc6cSmrg  # Omit some internal or obsolete options to make the list less imposing.
1325d9c7fc6cSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1326d9c7fc6cSmrg  cat <<_ACEOF
132705a1a286Smrg\`configure' configures libXevie 1.0.3 to adapt to many kinds of systems.
1328d9c7fc6cSmrg
1329d9c7fc6cSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1330d9c7fc6cSmrg
1331d9c7fc6cSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1332d9c7fc6cSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1333d9c7fc6cSmrg
1334d9c7fc6cSmrgDefaults for the options are specified in brackets.
1335d9c7fc6cSmrg
1336d9c7fc6cSmrgConfiguration:
1337d9c7fc6cSmrg  -h, --help              display this help and exit
1338d9c7fc6cSmrg      --help=short        display options specific to this package
1339d9c7fc6cSmrg      --help=recursive    display the short help of all the included packages
1340d9c7fc6cSmrg  -V, --version           display version information and exit
134105a1a286Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
1342d9c7fc6cSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1343d9c7fc6cSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1344d9c7fc6cSmrg  -n, --no-create         do not create output files
1345d9c7fc6cSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346d9c7fc6cSmrg
1347d9c7fc6cSmrgInstallation directories:
1348d9c7fc6cSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
134905a1a286Smrg                          [$ac_default_prefix]
1350d9c7fc6cSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
135105a1a286Smrg                          [PREFIX]
1352d9c7fc6cSmrg
1353d9c7fc6cSmrgBy default, \`make install' will install all the files in
1354d9c7fc6cSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355d9c7fc6cSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356d9c7fc6cSmrgfor instance \`--prefix=\$HOME'.
1357d9c7fc6cSmrg
1358d9c7fc6cSmrgFor better control, use the options below.
1359d9c7fc6cSmrg
1360d9c7fc6cSmrgFine tuning of the installation directories:
136105a1a286Smrg  --bindir=DIR            user executables [EPREFIX/bin]
136205a1a286Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
136305a1a286Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
136405a1a286Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
136505a1a286Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
136605a1a286Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
136705a1a286Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
136805a1a286Smrg  --includedir=DIR        C header files [PREFIX/include]
136905a1a286Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
137005a1a286Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
137105a1a286Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
137205a1a286Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
137305a1a286Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
137405a1a286Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
137505a1a286Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXevie]
137605a1a286Smrg  --htmldir=DIR           html documentation [DOCDIR]
137705a1a286Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
137805a1a286Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
137905a1a286Smrg  --psdir=DIR             ps documentation [DOCDIR]
1380d9c7fc6cSmrg_ACEOF
1381d9c7fc6cSmrg
1382d9c7fc6cSmrg  cat <<\_ACEOF
1383d9c7fc6cSmrg
1384d9c7fc6cSmrgProgram names:
1385d9c7fc6cSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1386d9c7fc6cSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1387d9c7fc6cSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1388d9c7fc6cSmrg
1389d9c7fc6cSmrgSystem types:
1390d9c7fc6cSmrg  --build=BUILD     configure for building on BUILD [guessed]
1391d9c7fc6cSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392d9c7fc6cSmrg_ACEOF
1393d9c7fc6cSmrgfi
1394d9c7fc6cSmrg
1395d9c7fc6cSmrgif test -n "$ac_init_help"; then
1396d9c7fc6cSmrg  case $ac_init_help in
139705a1a286Smrg     short | recursive ) echo "Configuration of libXevie 1.0.3:";;
1398d9c7fc6cSmrg   esac
1399d9c7fc6cSmrg  cat <<\_ACEOF
1400d9c7fc6cSmrg
1401d9c7fc6cSmrgOptional Features:
140205a1a286Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1403d9c7fc6cSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404d9c7fc6cSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405d9c7fc6cSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1406d9c7fc6cSmrg			  (and sometimes confusing) to the casual installer
1407d9c7fc6cSmrg  --disable-dependency-tracking  speeds up one-time build
1408d9c7fc6cSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
140905a1a286Smrg  --enable-strict-compilation
141005a1a286Smrg                          Enable all warnings from compiler and make them
141105a1a286Smrg                          errors (default: disabled)
141205a1a286Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
141305a1a286Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
141405a1a286Smrg  --enable-shared[=PKGS]  build shared libraries [default=yes]
141505a1a286Smrg  --enable-static[=PKGS]  build static libraries [default=yes]
1416d9c7fc6cSmrg  --enable-fast-install[=PKGS]
1417d9c7fc6cSmrg                          optimize for fast installation [default=yes]
1418d9c7fc6cSmrg  --disable-libtool-lock  avoid locking (might break parallel builds)
141905a1a286Smrg  --enable-lint-library   Create lint library (default: disabled)
1420d9c7fc6cSmrg
1421d9c7fc6cSmrgOptional Packages:
1422d9c7fc6cSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1423d9c7fc6cSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1424d9c7fc6cSmrg  --with-pic              try to use only PIC/non-PIC objects [default=use
1425d9c7fc6cSmrg                          both]
142605a1a286Smrg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
142705a1a286Smrg  --with-lint             Use a lint-style source code checker (default:
142805a1a286Smrg                          disabled)
1429d9c7fc6cSmrg
1430d9c7fc6cSmrgSome influential environment variables:
1431d9c7fc6cSmrg  CC          C compiler command
1432d9c7fc6cSmrg  CFLAGS      C compiler flags
1433d9c7fc6cSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1434d9c7fc6cSmrg              nonstandard directory <lib dir>
143505a1a286Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
143605a1a286Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
143705a1a286Smrg              you have headers in a nonstandard directory <include dir>
1438d9c7fc6cSmrg  CPP         C preprocessor
1439d9c7fc6cSmrg  PKG_CONFIG  path to pkg-config utility
1440d9c7fc6cSmrg  XEVIE_CFLAGS
1441d9c7fc6cSmrg              C compiler flags for XEVIE, overriding pkg-config
1442d9c7fc6cSmrg  XEVIE_LIBS  linker flags for XEVIE, overriding pkg-config
144305a1a286Smrg  LINT        Path to a lint-style command
144405a1a286Smrg  LINT_FLAGS  Flags for the lint-style command
1445d9c7fc6cSmrg
1446d9c7fc6cSmrgUse these variables to override the choices made by `configure' or to help
1447d9c7fc6cSmrgit to find libraries and programs with nonstandard names/locations.
1448d9c7fc6cSmrg
1449d9c7fc6cSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1450d9c7fc6cSmrg_ACEOF
145105a1a286Smrgac_status=$?
1452d9c7fc6cSmrgfi
1453d9c7fc6cSmrg
1454d9c7fc6cSmrgif test "$ac_init_help" = "recursive"; then
1455d9c7fc6cSmrg  # If there are subdirs, report their specific --help.
1456d9c7fc6cSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
145705a1a286Smrg    test -d "$ac_dir" ||
145805a1a286Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
145905a1a286Smrg      continue
1460d9c7fc6cSmrg    ac_builddir=.
1461d9c7fc6cSmrg
146205a1a286Smrgcase "$ac_dir" in
146305a1a286Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
146405a1a286Smrg*)
146505a1a286Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
146605a1a286Smrg  # A ".." for each directory in $ac_dir_suffix.
146705a1a286Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
146805a1a286Smrg  case $ac_top_builddir_sub in
146905a1a286Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
147005a1a286Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
147105a1a286Smrg  esac ;;
147205a1a286Smrgesac
147305a1a286Smrgac_abs_top_builddir=$ac_pwd
147405a1a286Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
147505a1a286Smrg# for backward compatibility:
147605a1a286Smrgac_top_builddir=$ac_top_build_prefix
147705a1a286Smrg
1478d9c7fc6cSmrgcase $srcdir in
147905a1a286Smrg  .)  # We are building in place.
1480d9c7fc6cSmrg    ac_srcdir=.
148105a1a286Smrg    ac_top_srcdir=$ac_top_builddir_sub
148205a1a286Smrg    ac_abs_top_srcdir=$ac_pwd ;;
148305a1a286Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1484d9c7fc6cSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
148505a1a286Smrg    ac_top_srcdir=$srcdir
148605a1a286Smrg    ac_abs_top_srcdir=$srcdir ;;
148705a1a286Smrg  *) # Relative name.
148805a1a286Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
148905a1a286Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
149005a1a286Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491d9c7fc6cSmrgesac
149205a1a286Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
149305a1a286Smrg
149405a1a286Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
149505a1a286Smrg    # Check for guested configure.
149605a1a286Smrg    if test -f "$ac_srcdir/configure.gnu"; then
149705a1a286Smrg      echo &&
149805a1a286Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
149905a1a286Smrg    elif test -f "$ac_srcdir/configure"; then
150005a1a286Smrg      echo &&
150105a1a286Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1502d9c7fc6cSmrg    else
150305a1a286Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
150405a1a286Smrg    fi || ac_status=$?
150505a1a286Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1506d9c7fc6cSmrg  done
1507d9c7fc6cSmrgfi
1508d9c7fc6cSmrg
150905a1a286Smrgtest -n "$ac_init_help" && exit $ac_status
1510d9c7fc6cSmrgif $ac_init_version; then
1511d9c7fc6cSmrg  cat <<\_ACEOF
151205a1a286SmrglibXevie configure 1.0.3
151305a1a286Smrggenerated by GNU Autoconf 2.68
1514d9c7fc6cSmrg
151505a1a286SmrgCopyright (C) 2010 Free Software Foundation, Inc.
1516d9c7fc6cSmrgThis configure script is free software; the Free Software Foundation
1517d9c7fc6cSmrggives unlimited permission to copy, distribute and modify it.
1518d9c7fc6cSmrg_ACEOF
151905a1a286Smrg  exit
1520d9c7fc6cSmrgfi
152105a1a286Smrg
152205a1a286Smrg## ------------------------ ##
152305a1a286Smrg## Autoconf initialization. ##
152405a1a286Smrg## ------------------------ ##
152505a1a286Smrg
152605a1a286Smrg# ac_fn_c_try_compile LINENO
152705a1a286Smrg# --------------------------
152805a1a286Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
152905a1a286Smrgac_fn_c_try_compile ()
153005a1a286Smrg{
153105a1a286Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
153205a1a286Smrg  rm -f conftest.$ac_objext
153305a1a286Smrg  if { { ac_try="$ac_compile"
153405a1a286Smrgcase "(($ac_try" in
153505a1a286Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
153605a1a286Smrg  *) ac_try_echo=$ac_try;;
153705a1a286Smrgesac
153805a1a286Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
153905a1a286Smrg$as_echo "$ac_try_echo"; } >&5
154005a1a286Smrg  (eval "$ac_compile") 2>conftest.err
154105a1a286Smrg  ac_status=$?
154205a1a286Smrg  if test -s conftest.err; then
154305a1a286Smrg    grep -v '^ *+' conftest.err >conftest.er1
154405a1a286Smrg    cat conftest.er1 >&5
154505a1a286Smrg    mv -f conftest.er1 conftest.err
154605a1a286Smrg  fi
154705a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
154805a1a286Smrg  test $ac_status = 0; } && {
154905a1a286Smrg	 test -z "$ac_c_werror_flag" ||
155005a1a286Smrg	 test ! -s conftest.err
155105a1a286Smrg       } && test -s conftest.$ac_objext; then :
155205a1a286Smrg  ac_retval=0
155305a1a286Smrgelse
155405a1a286Smrg  $as_echo "$as_me: failed program was:" >&5
155505a1a286Smrgsed 's/^/| /' conftest.$ac_ext >&5
155605a1a286Smrg
155705a1a286Smrg	ac_retval=1
155805a1a286Smrgfi
155905a1a286Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
156005a1a286Smrg  as_fn_set_status $ac_retval
156105a1a286Smrg
156205a1a286Smrg} # ac_fn_c_try_compile
156305a1a286Smrg
156405a1a286Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
156505a1a286Smrg# ---------------------------------------------
156605a1a286Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
156705a1a286Smrg# accordingly.
156805a1a286Smrgac_fn_c_check_decl ()
156905a1a286Smrg{
157005a1a286Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
157105a1a286Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
157205a1a286Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
157305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
157405a1a286Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
157505a1a286Smrgif eval \${$3+:} false; then :
157605a1a286Smrg  $as_echo_n "(cached) " >&6
157705a1a286Smrgelse
157805a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
157905a1a286Smrg/* end confdefs.h.  */
158005a1a286Smrg$4
158105a1a286Smrgint
158205a1a286Smrgmain ()
158305a1a286Smrg{
158405a1a286Smrg#ifndef $as_decl_name
158505a1a286Smrg#ifdef __cplusplus
158605a1a286Smrg  (void) $as_decl_use;
158705a1a286Smrg#else
158805a1a286Smrg  (void) $as_decl_name;
158905a1a286Smrg#endif
159005a1a286Smrg#endif
159105a1a286Smrg
159205a1a286Smrg  ;
159305a1a286Smrg  return 0;
159405a1a286Smrg}
159505a1a286Smrg_ACEOF
159605a1a286Smrgif ac_fn_c_try_compile "$LINENO"; then :
159705a1a286Smrg  eval "$3=yes"
159805a1a286Smrgelse
159905a1a286Smrg  eval "$3=no"
160005a1a286Smrgfi
160105a1a286Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
160205a1a286Smrgfi
160305a1a286Smrgeval ac_res=\$$3
160405a1a286Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
160505a1a286Smrg$as_echo "$ac_res" >&6; }
160605a1a286Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
160705a1a286Smrg
160805a1a286Smrg} # ac_fn_c_check_decl
160905a1a286Smrg
161005a1a286Smrg# ac_fn_c_try_cpp LINENO
161105a1a286Smrg# ----------------------
161205a1a286Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
161305a1a286Smrgac_fn_c_try_cpp ()
161405a1a286Smrg{
161505a1a286Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
161605a1a286Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
161705a1a286Smrgcase "(($ac_try" in
161805a1a286Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
161905a1a286Smrg  *) ac_try_echo=$ac_try;;
162005a1a286Smrgesac
162105a1a286Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
162205a1a286Smrg$as_echo "$ac_try_echo"; } >&5
162305a1a286Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
162405a1a286Smrg  ac_status=$?
162505a1a286Smrg  if test -s conftest.err; then
162605a1a286Smrg    grep -v '^ *+' conftest.err >conftest.er1
162705a1a286Smrg    cat conftest.er1 >&5
162805a1a286Smrg    mv -f conftest.er1 conftest.err
162905a1a286Smrg  fi
163005a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
163105a1a286Smrg  test $ac_status = 0; } > conftest.i && {
163205a1a286Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
163305a1a286Smrg	 test ! -s conftest.err
163405a1a286Smrg       }; then :
163505a1a286Smrg  ac_retval=0
163605a1a286Smrgelse
163705a1a286Smrg  $as_echo "$as_me: failed program was:" >&5
163805a1a286Smrgsed 's/^/| /' conftest.$ac_ext >&5
163905a1a286Smrg
164005a1a286Smrg    ac_retval=1
164105a1a286Smrgfi
164205a1a286Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
164305a1a286Smrg  as_fn_set_status $ac_retval
164405a1a286Smrg
164505a1a286Smrg} # ac_fn_c_try_cpp
164605a1a286Smrg
164705a1a286Smrg# ac_fn_c_try_run LINENO
164805a1a286Smrg# ----------------------
164905a1a286Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
165005a1a286Smrg# that executables *can* be run.
165105a1a286Smrgac_fn_c_try_run ()
165205a1a286Smrg{
165305a1a286Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
165405a1a286Smrg  if { { ac_try="$ac_link"
165505a1a286Smrgcase "(($ac_try" in
165605a1a286Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
165705a1a286Smrg  *) ac_try_echo=$ac_try;;
165805a1a286Smrgesac
165905a1a286Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
166005a1a286Smrg$as_echo "$ac_try_echo"; } >&5
166105a1a286Smrg  (eval "$ac_link") 2>&5
166205a1a286Smrg  ac_status=$?
166305a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
166405a1a286Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
166505a1a286Smrg  { { case "(($ac_try" in
166605a1a286Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
166705a1a286Smrg  *) ac_try_echo=$ac_try;;
166805a1a286Smrgesac
166905a1a286Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
167005a1a286Smrg$as_echo "$ac_try_echo"; } >&5
167105a1a286Smrg  (eval "$ac_try") 2>&5
167205a1a286Smrg  ac_status=$?
167305a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
167405a1a286Smrg  test $ac_status = 0; }; }; then :
167505a1a286Smrg  ac_retval=0
167605a1a286Smrgelse
167705a1a286Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
167805a1a286Smrg       $as_echo "$as_me: failed program was:" >&5
167905a1a286Smrgsed 's/^/| /' conftest.$ac_ext >&5
168005a1a286Smrg
168105a1a286Smrg       ac_retval=$ac_status
168205a1a286Smrgfi
168305a1a286Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
168405a1a286Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
168505a1a286Smrg  as_fn_set_status $ac_retval
168605a1a286Smrg
168705a1a286Smrg} # ac_fn_c_try_run
168805a1a286Smrg
168905a1a286Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
169005a1a286Smrg# -------------------------------------------------------
169105a1a286Smrg# Tests whether HEADER exists and can be compiled using the include files in
169205a1a286Smrg# INCLUDES, setting the cache variable VAR accordingly.
169305a1a286Smrgac_fn_c_check_header_compile ()
169405a1a286Smrg{
169505a1a286Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
169605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
169705a1a286Smrg$as_echo_n "checking for $2... " >&6; }
169805a1a286Smrgif eval \${$3+:} false; then :
169905a1a286Smrg  $as_echo_n "(cached) " >&6
170005a1a286Smrgelse
170105a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
170205a1a286Smrg/* end confdefs.h.  */
170305a1a286Smrg$4
170405a1a286Smrg#include <$2>
170505a1a286Smrg_ACEOF
170605a1a286Smrgif ac_fn_c_try_compile "$LINENO"; then :
170705a1a286Smrg  eval "$3=yes"
170805a1a286Smrgelse
170905a1a286Smrg  eval "$3=no"
171005a1a286Smrgfi
171105a1a286Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
171205a1a286Smrgfi
171305a1a286Smrgeval ac_res=\$$3
171405a1a286Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
171505a1a286Smrg$as_echo "$ac_res" >&6; }
171605a1a286Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
171705a1a286Smrg
171805a1a286Smrg} # ac_fn_c_check_header_compile
171905a1a286Smrg
172005a1a286Smrg# ac_fn_c_try_link LINENO
172105a1a286Smrg# -----------------------
172205a1a286Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
172305a1a286Smrgac_fn_c_try_link ()
172405a1a286Smrg{
172505a1a286Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
172605a1a286Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
172705a1a286Smrg  if { { ac_try="$ac_link"
172805a1a286Smrgcase "(($ac_try" in
172905a1a286Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
173005a1a286Smrg  *) ac_try_echo=$ac_try;;
173105a1a286Smrgesac
173205a1a286Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
173305a1a286Smrg$as_echo "$ac_try_echo"; } >&5
173405a1a286Smrg  (eval "$ac_link") 2>conftest.err
173505a1a286Smrg  ac_status=$?
173605a1a286Smrg  if test -s conftest.err; then
173705a1a286Smrg    grep -v '^ *+' conftest.err >conftest.er1
173805a1a286Smrg    cat conftest.er1 >&5
173905a1a286Smrg    mv -f conftest.er1 conftest.err
174005a1a286Smrg  fi
174105a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
174205a1a286Smrg  test $ac_status = 0; } && {
174305a1a286Smrg	 test -z "$ac_c_werror_flag" ||
174405a1a286Smrg	 test ! -s conftest.err
174505a1a286Smrg       } && test -s conftest$ac_exeext && {
174605a1a286Smrg	 test "$cross_compiling" = yes ||
174705a1a286Smrg	 $as_test_x conftest$ac_exeext
174805a1a286Smrg       }; then :
174905a1a286Smrg  ac_retval=0
175005a1a286Smrgelse
175105a1a286Smrg  $as_echo "$as_me: failed program was:" >&5
175205a1a286Smrgsed 's/^/| /' conftest.$ac_ext >&5
175305a1a286Smrg
175405a1a286Smrg	ac_retval=1
175505a1a286Smrgfi
175605a1a286Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
175705a1a286Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
175805a1a286Smrg  # interfere with the next link command; also delete a directory that is
175905a1a286Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
176005a1a286Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
176105a1a286Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
176205a1a286Smrg  as_fn_set_status $ac_retval
176305a1a286Smrg
176405a1a286Smrg} # ac_fn_c_try_link
176505a1a286Smrg
176605a1a286Smrg# ac_fn_c_check_func LINENO FUNC VAR
176705a1a286Smrg# ----------------------------------
176805a1a286Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
176905a1a286Smrgac_fn_c_check_func ()
177005a1a286Smrg{
177105a1a286Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
177205a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
177305a1a286Smrg$as_echo_n "checking for $2... " >&6; }
177405a1a286Smrgif eval \${$3+:} false; then :
177505a1a286Smrg  $as_echo_n "(cached) " >&6
177605a1a286Smrgelse
177705a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
177805a1a286Smrg/* end confdefs.h.  */
177905a1a286Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
178005a1a286Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
178105a1a286Smrg#define $2 innocuous_$2
178205a1a286Smrg
178305a1a286Smrg/* System header to define __stub macros and hopefully few prototypes,
178405a1a286Smrg    which can conflict with char $2 (); below.
178505a1a286Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
178605a1a286Smrg    <limits.h> exists even on freestanding compilers.  */
178705a1a286Smrg
178805a1a286Smrg#ifdef __STDC__
178905a1a286Smrg# include <limits.h>
179005a1a286Smrg#else
179105a1a286Smrg# include <assert.h>
179205a1a286Smrg#endif
179305a1a286Smrg
179405a1a286Smrg#undef $2
179505a1a286Smrg
179605a1a286Smrg/* Override any GCC internal prototype to avoid an error.
179705a1a286Smrg   Use char because int might match the return type of a GCC
179805a1a286Smrg   builtin and then its argument prototype would still apply.  */
179905a1a286Smrg#ifdef __cplusplus
180005a1a286Smrgextern "C"
180105a1a286Smrg#endif
180205a1a286Smrgchar $2 ();
180305a1a286Smrg/* The GNU C library defines this for functions which it implements
180405a1a286Smrg    to always fail with ENOSYS.  Some functions are actually named
180505a1a286Smrg    something starting with __ and the normal name is an alias.  */
180605a1a286Smrg#if defined __stub_$2 || defined __stub___$2
180705a1a286Smrgchoke me
180805a1a286Smrg#endif
180905a1a286Smrg
181005a1a286Smrgint
181105a1a286Smrgmain ()
181205a1a286Smrg{
181305a1a286Smrgreturn $2 ();
181405a1a286Smrg  ;
181505a1a286Smrg  return 0;
181605a1a286Smrg}
181705a1a286Smrg_ACEOF
181805a1a286Smrgif ac_fn_c_try_link "$LINENO"; then :
181905a1a286Smrg  eval "$3=yes"
182005a1a286Smrgelse
182105a1a286Smrg  eval "$3=no"
182205a1a286Smrgfi
182305a1a286Smrgrm -f core conftest.err conftest.$ac_objext \
182405a1a286Smrg    conftest$ac_exeext conftest.$ac_ext
182505a1a286Smrgfi
182605a1a286Smrgeval ac_res=\$$3
182705a1a286Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
182805a1a286Smrg$as_echo "$ac_res" >&6; }
182905a1a286Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
183005a1a286Smrg
183105a1a286Smrg} # ac_fn_c_check_func
183205a1a286Smrgcat >config.log <<_ACEOF
1833d9c7fc6cSmrgThis file contains any messages produced by compilers while
1834d9c7fc6cSmrgrunning configure, to aid debugging if configure makes a mistake.
1835d9c7fc6cSmrg
183605a1a286SmrgIt was created by libXevie $as_me 1.0.3, which was
183705a1a286Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
1838d9c7fc6cSmrg
1839d9c7fc6cSmrg  $ $0 $@
1840d9c7fc6cSmrg
1841d9c7fc6cSmrg_ACEOF
184205a1a286Smrgexec 5>>config.log
1843d9c7fc6cSmrg{
1844d9c7fc6cSmrgcat <<_ASUNAME
1845d9c7fc6cSmrg## --------- ##
1846d9c7fc6cSmrg## Platform. ##
1847d9c7fc6cSmrg## --------- ##
1848d9c7fc6cSmrg
1849d9c7fc6cSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1850d9c7fc6cSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1851d9c7fc6cSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1852d9c7fc6cSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1853d9c7fc6cSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1854d9c7fc6cSmrg
1855d9c7fc6cSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1856d9c7fc6cSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1857d9c7fc6cSmrg
1858d9c7fc6cSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1859d9c7fc6cSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1860d9c7fc6cSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
186105a1a286Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1862d9c7fc6cSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1863d9c7fc6cSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1864d9c7fc6cSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1865d9c7fc6cSmrg
1866d9c7fc6cSmrg_ASUNAME
1867d9c7fc6cSmrg
1868d9c7fc6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869d9c7fc6cSmrgfor as_dir in $PATH
1870d9c7fc6cSmrgdo
1871d9c7fc6cSmrg  IFS=$as_save_IFS
1872d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
187305a1a286Smrg    $as_echo "PATH: $as_dir"
187405a1a286Smrg  done
187505a1a286SmrgIFS=$as_save_IFS
1876d9c7fc6cSmrg
1877d9c7fc6cSmrg} >&5
1878d9c7fc6cSmrg
1879d9c7fc6cSmrgcat >&5 <<_ACEOF
1880d9c7fc6cSmrg
1881d9c7fc6cSmrg
1882d9c7fc6cSmrg## ----------- ##
1883d9c7fc6cSmrg## Core tests. ##
1884d9c7fc6cSmrg## ----------- ##
1885d9c7fc6cSmrg
1886d9c7fc6cSmrg_ACEOF
1887d9c7fc6cSmrg
1888d9c7fc6cSmrg
1889d9c7fc6cSmrg# Keep a trace of the command line.
1890d9c7fc6cSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1891d9c7fc6cSmrg# Strip out --silent because we don't want to record it for future runs.
1892d9c7fc6cSmrg# Also quote any args containing shell meta-characters.
1893d9c7fc6cSmrg# Make two passes to allow for proper duplicate-argument suppression.
1894d9c7fc6cSmrgac_configure_args=
1895d9c7fc6cSmrgac_configure_args0=
1896d9c7fc6cSmrgac_configure_args1=
1897d9c7fc6cSmrgac_must_keep_next=false
1898d9c7fc6cSmrgfor ac_pass in 1 2
1899d9c7fc6cSmrgdo
1900d9c7fc6cSmrg  for ac_arg
1901d9c7fc6cSmrg  do
1902d9c7fc6cSmrg    case $ac_arg in
1903d9c7fc6cSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1904d9c7fc6cSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1905d9c7fc6cSmrg    | -silent | --silent | --silen | --sile | --sil)
1906d9c7fc6cSmrg      continue ;;
190705a1a286Smrg    *\'*)
190805a1a286Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1909d9c7fc6cSmrg    esac
1910d9c7fc6cSmrg    case $ac_pass in
191105a1a286Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1912d9c7fc6cSmrg    2)
191305a1a286Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1914d9c7fc6cSmrg      if test $ac_must_keep_next = true; then
1915d9c7fc6cSmrg	ac_must_keep_next=false # Got value, back to normal.
1916d9c7fc6cSmrg      else
1917d9c7fc6cSmrg	case $ac_arg in
1918d9c7fc6cSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1919d9c7fc6cSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1920d9c7fc6cSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1921d9c7fc6cSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1922d9c7fc6cSmrg	    case "$ac_configure_args0 " in
1923d9c7fc6cSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1924d9c7fc6cSmrg	    esac
1925d9c7fc6cSmrg	    ;;
1926d9c7fc6cSmrg	  -* ) ac_must_keep_next=true ;;
1927d9c7fc6cSmrg	esac
1928d9c7fc6cSmrg      fi
192905a1a286Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1930d9c7fc6cSmrg      ;;
1931d9c7fc6cSmrg    esac
1932d9c7fc6cSmrg  done
1933d9c7fc6cSmrgdone
193405a1a286Smrg{ ac_configure_args0=; unset ac_configure_args0;}
193505a1a286Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1936d9c7fc6cSmrg
1937d9c7fc6cSmrg# When interrupted or exit'd, cleanup temporary files, and complete
1938d9c7fc6cSmrg# config.log.  We remove comments because anyway the quotes in there
1939d9c7fc6cSmrg# would cause problems or look ugly.
194005a1a286Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
194105a1a286Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1942d9c7fc6cSmrgtrap 'exit_status=$?
1943d9c7fc6cSmrg  # Save into config.log some information that might help in debugging.
1944d9c7fc6cSmrg  {
1945d9c7fc6cSmrg    echo
1946d9c7fc6cSmrg
194705a1a286Smrg    $as_echo "## ---------------- ##
1948d9c7fc6cSmrg## Cache variables. ##
194905a1a286Smrg## ---------------- ##"
1950d9c7fc6cSmrg    echo
1951d9c7fc6cSmrg    # The following way of writing the cache mishandles newlines in values,
195205a1a286Smrg(
195305a1a286Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
195405a1a286Smrg    eval ac_val=\$$ac_var
195505a1a286Smrg    case $ac_val in #(
195605a1a286Smrg    *${as_nl}*)
195705a1a286Smrg      case $ac_var in #(
195805a1a286Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
195905a1a286Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
196005a1a286Smrg      esac
196105a1a286Smrg      case $ac_var in #(
196205a1a286Smrg      _ | IFS | as_nl) ;; #(
196305a1a286Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
196405a1a286Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
196505a1a286Smrg      esac ;;
196605a1a286Smrg    esac
196705a1a286Smrg  done
1968d9c7fc6cSmrg  (set) 2>&1 |
196905a1a286Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
197005a1a286Smrg    *${as_nl}ac_space=\ *)
1971d9c7fc6cSmrg      sed -n \
197205a1a286Smrg	"s/'\''/'\''\\\\'\'''\''/g;
197305a1a286Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
197405a1a286Smrg      ;; #(
1975d9c7fc6cSmrg    *)
197605a1a286Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1977d9c7fc6cSmrg      ;;
197805a1a286Smrg    esac |
197905a1a286Smrg    sort
198005a1a286Smrg)
1981d9c7fc6cSmrg    echo
1982d9c7fc6cSmrg
198305a1a286Smrg    $as_echo "## ----------------- ##
1984d9c7fc6cSmrg## Output variables. ##
198505a1a286Smrg## ----------------- ##"
1986d9c7fc6cSmrg    echo
1987d9c7fc6cSmrg    for ac_var in $ac_subst_vars
1988d9c7fc6cSmrg    do
198905a1a286Smrg      eval ac_val=\$$ac_var
199005a1a286Smrg      case $ac_val in
199105a1a286Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
199205a1a286Smrg      esac
199305a1a286Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1994d9c7fc6cSmrg    done | sort
1995d9c7fc6cSmrg    echo
1996d9c7fc6cSmrg
1997d9c7fc6cSmrg    if test -n "$ac_subst_files"; then
199805a1a286Smrg      $as_echo "## ------------------- ##
199905a1a286Smrg## File substitutions. ##
200005a1a286Smrg## ------------------- ##"
2001d9c7fc6cSmrg      echo
2002d9c7fc6cSmrg      for ac_var in $ac_subst_files
2003d9c7fc6cSmrg      do
200405a1a286Smrg	eval ac_val=\$$ac_var
200505a1a286Smrg	case $ac_val in
200605a1a286Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
200705a1a286Smrg	esac
200805a1a286Smrg	$as_echo "$ac_var='\''$ac_val'\''"
2009d9c7fc6cSmrg      done | sort
2010d9c7fc6cSmrg      echo
2011d9c7fc6cSmrg    fi
2012d9c7fc6cSmrg
2013d9c7fc6cSmrg    if test -s confdefs.h; then
201405a1a286Smrg      $as_echo "## ----------- ##
2015d9c7fc6cSmrg## confdefs.h. ##
201605a1a286Smrg## ----------- ##"
2017d9c7fc6cSmrg      echo
201805a1a286Smrg      cat confdefs.h
2019d9c7fc6cSmrg      echo
2020d9c7fc6cSmrg    fi
2021d9c7fc6cSmrg    test "$ac_signal" != 0 &&
202205a1a286Smrg      $as_echo "$as_me: caught signal $ac_signal"
202305a1a286Smrg    $as_echo "$as_me: exit $exit_status"
2024d9c7fc6cSmrg  } >&5
202505a1a286Smrg  rm -f core *.core core.conftest.* &&
202605a1a286Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2027d9c7fc6cSmrg    exit $exit_status
202805a1a286Smrg' 0
2029d9c7fc6cSmrgfor ac_signal in 1 2 13 15; do
203005a1a286Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2031d9c7fc6cSmrgdone
2032d9c7fc6cSmrgac_signal=0
2033d9c7fc6cSmrg
2034d9c7fc6cSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
203505a1a286Smrgrm -f -r conftest* confdefs.h
203605a1a286Smrg
203705a1a286Smrg$as_echo "/* confdefs.h */" > confdefs.h
2038d9c7fc6cSmrg
2039d9c7fc6cSmrg# Predefined preprocessor variables.
2040d9c7fc6cSmrg
2041d9c7fc6cSmrgcat >>confdefs.h <<_ACEOF
2042d9c7fc6cSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
2043d9c7fc6cSmrg_ACEOF
2044d9c7fc6cSmrg
2045d9c7fc6cSmrgcat >>confdefs.h <<_ACEOF
2046d9c7fc6cSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2047d9c7fc6cSmrg_ACEOF
2048d9c7fc6cSmrg
2049d9c7fc6cSmrgcat >>confdefs.h <<_ACEOF
2050d9c7fc6cSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2051d9c7fc6cSmrg_ACEOF
2052d9c7fc6cSmrg
2053d9c7fc6cSmrgcat >>confdefs.h <<_ACEOF
2054d9c7fc6cSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
2055d9c7fc6cSmrg_ACEOF
2056d9c7fc6cSmrg
2057d9c7fc6cSmrgcat >>confdefs.h <<_ACEOF
2058d9c7fc6cSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2059d9c7fc6cSmrg_ACEOF
2060d9c7fc6cSmrg
206105a1a286Smrgcat >>confdefs.h <<_ACEOF
206205a1a286Smrg#define PACKAGE_URL "$PACKAGE_URL"
206305a1a286Smrg_ACEOF
206405a1a286Smrg
2065d9c7fc6cSmrg
2066d9c7fc6cSmrg# Let the site file select an alternate cache file if it wants to.
206705a1a286Smrg# Prefer an explicitly selected file to automatically selected ones.
206805a1a286Smrgac_site_file1=NONE
206905a1a286Smrgac_site_file2=NONE
207005a1a286Smrgif test -n "$CONFIG_SITE"; then
207105a1a286Smrg  # We do not want a PATH search for config.site.
207205a1a286Smrg  case $CONFIG_SITE in #((
207305a1a286Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
207405a1a286Smrg    */*) ac_site_file1=$CONFIG_SITE;;
207505a1a286Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
207605a1a286Smrg  esac
207705a1a286Smrgelif test "x$prefix" != xNONE; then
207805a1a286Smrg  ac_site_file1=$prefix/share/config.site
207905a1a286Smrg  ac_site_file2=$prefix/etc/config.site
208005a1a286Smrgelse
208105a1a286Smrg  ac_site_file1=$ac_default_prefix/share/config.site
208205a1a286Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
2083d9c7fc6cSmrgfi
208405a1a286Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
208505a1a286Smrgdo
208605a1a286Smrg  test "x$ac_site_file" = xNONE && continue
208705a1a286Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
208805a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
208905a1a286Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2090d9c7fc6cSmrg    sed 's/^/| /' "$ac_site_file" >&5
209105a1a286Smrg    . "$ac_site_file" \
209205a1a286Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
209305a1a286Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
209405a1a286Smrgas_fn_error $? "failed to load site script $ac_site_file
209505a1a286SmrgSee \`config.log' for more details" "$LINENO" 5; }
2096d9c7fc6cSmrg  fi
2097d9c7fc6cSmrgdone
2098d9c7fc6cSmrg
2099d9c7fc6cSmrgif test -r "$cache_file"; then
210005a1a286Smrg  # Some versions of bash will fail to source /dev/null (special files
210105a1a286Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
210205a1a286Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
210305a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
210405a1a286Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2105d9c7fc6cSmrg    case $cache_file in
210605a1a286Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
210705a1a286Smrg      *)                      . "./$cache_file";;
2108d9c7fc6cSmrg    esac
2109d9c7fc6cSmrg  fi
2110d9c7fc6cSmrgelse
211105a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
211205a1a286Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2113d9c7fc6cSmrg  >$cache_file
2114d9c7fc6cSmrgfi
2115d9c7fc6cSmrg
2116d9c7fc6cSmrg# Check that the precious variables saved in the cache have kept the same
2117d9c7fc6cSmrg# value.
2118d9c7fc6cSmrgac_cache_corrupted=false
211905a1a286Smrgfor ac_var in $ac_precious_vars; do
2120d9c7fc6cSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2121d9c7fc6cSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
212205a1a286Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
212305a1a286Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2124d9c7fc6cSmrg  case $ac_old_set,$ac_new_set in
2125d9c7fc6cSmrg    set,)
212605a1a286Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
212705a1a286Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2128d9c7fc6cSmrg      ac_cache_corrupted=: ;;
2129d9c7fc6cSmrg    ,set)
213005a1a286Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
213105a1a286Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2132d9c7fc6cSmrg      ac_cache_corrupted=: ;;
2133d9c7fc6cSmrg    ,);;
2134d9c7fc6cSmrg    *)
2135d9c7fc6cSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
213605a1a286Smrg	# differences in whitespace do not lead to failure.
213705a1a286Smrg	ac_old_val_w=`echo x $ac_old_val`
213805a1a286Smrg	ac_new_val_w=`echo x $ac_new_val`
213905a1a286Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
214005a1a286Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
214105a1a286Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
214205a1a286Smrg	  ac_cache_corrupted=:
214305a1a286Smrg	else
214405a1a286Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
214505a1a286Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
214605a1a286Smrg	  eval $ac_var=\$ac_old_val
214705a1a286Smrg	fi
214805a1a286Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
214905a1a286Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
215005a1a286Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
215105a1a286Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2152d9c7fc6cSmrg      fi;;
2153d9c7fc6cSmrg  esac
2154d9c7fc6cSmrg  # Pass precious variables to config.status.
2155d9c7fc6cSmrg  if test "$ac_new_set" = set; then
2156d9c7fc6cSmrg    case $ac_new_val in
215705a1a286Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2158d9c7fc6cSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2159d9c7fc6cSmrg    esac
2160d9c7fc6cSmrg    case " $ac_configure_args " in
2161d9c7fc6cSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
216205a1a286Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2163d9c7fc6cSmrg    esac
2164d9c7fc6cSmrg  fi
2165d9c7fc6cSmrgdone
2166d9c7fc6cSmrgif $ac_cache_corrupted; then
216705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
216805a1a286Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
216905a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
217005a1a286Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
217105a1a286Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2172d9c7fc6cSmrgfi
217305a1a286Smrg## -------------------- ##
217405a1a286Smrg## Main body of script. ##
217505a1a286Smrg## -------------------- ##
2176d9c7fc6cSmrg
2177d9c7fc6cSmrgac_ext=c
2178d9c7fc6cSmrgac_cpp='$CPP $CPPFLAGS'
2179d9c7fc6cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180d9c7fc6cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181d9c7fc6cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2182d9c7fc6cSmrg
2183d9c7fc6cSmrg
218405a1a286Smrgam__api_version='1.11'
2185d9c7fc6cSmrg
2186d9c7fc6cSmrgac_aux_dir=
218705a1a286Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
218805a1a286Smrg  if test -f "$ac_dir/install-sh"; then
2189d9c7fc6cSmrg    ac_aux_dir=$ac_dir
2190d9c7fc6cSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2191d9c7fc6cSmrg    break
219205a1a286Smrg  elif test -f "$ac_dir/install.sh"; then
2193d9c7fc6cSmrg    ac_aux_dir=$ac_dir
2194d9c7fc6cSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2195d9c7fc6cSmrg    break
219605a1a286Smrg  elif test -f "$ac_dir/shtool"; then
2197d9c7fc6cSmrg    ac_aux_dir=$ac_dir
2198d9c7fc6cSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2199d9c7fc6cSmrg    break
2200d9c7fc6cSmrg  fi
2201d9c7fc6cSmrgdone
2202d9c7fc6cSmrgif test -z "$ac_aux_dir"; then
220305a1a286Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2204d9c7fc6cSmrgfi
220505a1a286Smrg
220605a1a286Smrg# These three variables are undocumented and unsupported,
220705a1a286Smrg# and are intended to be withdrawn in a future Autoconf release.
220805a1a286Smrg# They can cause serious problems if a builder's source tree is in a directory
220905a1a286Smrg# whose full name contains unusual characters.
221005a1a286Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
221105a1a286Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
221205a1a286Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
221305a1a286Smrg
2214d9c7fc6cSmrg
2215d9c7fc6cSmrg# Find a good install program.  We prefer a C program (faster),
2216d9c7fc6cSmrg# so one script is as good as another.  But avoid the broken or
2217d9c7fc6cSmrg# incompatible versions:
2218d9c7fc6cSmrg# SysV /etc/install, /usr/sbin/install
2219d9c7fc6cSmrg# SunOS /usr/etc/install
2220d9c7fc6cSmrg# IRIX /sbin/install
2221d9c7fc6cSmrg# AIX /bin/install
2222d9c7fc6cSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2223d9c7fc6cSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2224d9c7fc6cSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2225d9c7fc6cSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2226d9c7fc6cSmrg# OS/2's system install, which has a completely different semantic
2227d9c7fc6cSmrg# ./install, which can be erroneously created by make from ./install.sh.
222805a1a286Smrg# Reject install programs that cannot install multiple files.
222905a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
223005a1a286Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2231d9c7fc6cSmrgif test -z "$INSTALL"; then
223205a1a286Smrgif ${ac_cv_path_install+:} false; then :
223305a1a286Smrg  $as_echo_n "(cached) " >&6
2234d9c7fc6cSmrgelse
2235d9c7fc6cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236d9c7fc6cSmrgfor as_dir in $PATH
2237d9c7fc6cSmrgdo
2238d9c7fc6cSmrg  IFS=$as_save_IFS
2239d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
224005a1a286Smrg    # Account for people who put trailing slashes in PATH elements.
224105a1a286Smrgcase $as_dir/ in #((
224205a1a286Smrg  ./ | .// | /[cC]/* | \
2243d9c7fc6cSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
224405a1a286Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2245d9c7fc6cSmrg  /usr/ucb/* ) ;;
2246d9c7fc6cSmrg  *)
2247d9c7fc6cSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2248d9c7fc6cSmrg    # Don't use installbsd from OSF since it installs stuff as root
2249d9c7fc6cSmrg    # by default.
2250d9c7fc6cSmrg    for ac_prog in ginstall scoinst install; do
2251d9c7fc6cSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
225205a1a286Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2253d9c7fc6cSmrg	  if test $ac_prog = install &&
2254d9c7fc6cSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2255d9c7fc6cSmrg	    # AIX install.  It has an incompatible calling convention.
2256d9c7fc6cSmrg	    :
2257d9c7fc6cSmrg	  elif test $ac_prog = install &&
2258d9c7fc6cSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2259d9c7fc6cSmrg	    # program-specific install script used by HP pwplus--don't use.
2260d9c7fc6cSmrg	    :
2261d9c7fc6cSmrg	  else
226205a1a286Smrg	    rm -rf conftest.one conftest.two conftest.dir
226305a1a286Smrg	    echo one > conftest.one
226405a1a286Smrg	    echo two > conftest.two
226505a1a286Smrg	    mkdir conftest.dir
226605a1a286Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
226705a1a286Smrg	      test -s conftest.one && test -s conftest.two &&
226805a1a286Smrg	      test -s conftest.dir/conftest.one &&
226905a1a286Smrg	      test -s conftest.dir/conftest.two
227005a1a286Smrg	    then
227105a1a286Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
227205a1a286Smrg	      break 3
227305a1a286Smrg	    fi
2274d9c7fc6cSmrg	  fi
2275d9c7fc6cSmrg	fi
2276d9c7fc6cSmrg      done
2277d9c7fc6cSmrg    done
2278d9c7fc6cSmrg    ;;
2279d9c7fc6cSmrgesac
2280d9c7fc6cSmrg
228105a1a286Smrg  done
228205a1a286SmrgIFS=$as_save_IFS
228305a1a286Smrg
228405a1a286Smrgrm -rf conftest.one conftest.two conftest.dir
2285d9c7fc6cSmrg
2286d9c7fc6cSmrgfi
2287d9c7fc6cSmrg  if test "${ac_cv_path_install+set}" = set; then
2288d9c7fc6cSmrg    INSTALL=$ac_cv_path_install
2289d9c7fc6cSmrg  else
229005a1a286Smrg    # As a last resort, use the slow shell script.  Don't cache a
229105a1a286Smrg    # value for INSTALL within a source directory, because that will
2292d9c7fc6cSmrg    # break other packages using the cache if that directory is
229305a1a286Smrg    # removed, or if the value is a relative name.
2294d9c7fc6cSmrg    INSTALL=$ac_install_sh
2295d9c7fc6cSmrg  fi
2296d9c7fc6cSmrgfi
229705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
229805a1a286Smrg$as_echo "$INSTALL" >&6; }
2299d9c7fc6cSmrg
2300d9c7fc6cSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2301d9c7fc6cSmrg# It thinks the first close brace ends the variable substitution.
2302d9c7fc6cSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2303d9c7fc6cSmrg
2304d9c7fc6cSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2305d9c7fc6cSmrg
2306d9c7fc6cSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2307d9c7fc6cSmrg
230805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
230905a1a286Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2310d9c7fc6cSmrg# Just in case
2311d9c7fc6cSmrgsleep 1
2312d9c7fc6cSmrgecho timestamp > conftest.file
231305a1a286Smrg# Reject unsafe characters in $srcdir or the absolute working directory
231405a1a286Smrg# name.  Accept space and tab only in the latter.
231505a1a286Smrgam_lf='
231605a1a286Smrg'
231705a1a286Smrgcase `pwd` in
231805a1a286Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
231905a1a286Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
232005a1a286Smrgesac
232105a1a286Smrgcase $srcdir in
232205a1a286Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
232305a1a286Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
232405a1a286Smrgesac
232505a1a286Smrg
2326d9c7fc6cSmrg# Do `set' in a subshell so we don't clobber the current shell's
2327d9c7fc6cSmrg# arguments.  Must try -L first in case configure is actually a
2328d9c7fc6cSmrg# symlink; some systems play weird games with the mod time of symlinks
2329d9c7fc6cSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2330d9c7fc6cSmrg# directory).
2331d9c7fc6cSmrgif (
233205a1a286Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2333d9c7fc6cSmrg   if test "$*" = "X"; then
2334d9c7fc6cSmrg      # -L didn't work.
233505a1a286Smrg      set X `ls -t "$srcdir/configure" conftest.file`
2336d9c7fc6cSmrg   fi
2337d9c7fc6cSmrg   rm -f conftest.file
2338d9c7fc6cSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
2339d9c7fc6cSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2340d9c7fc6cSmrg
2341d9c7fc6cSmrg      # If neither matched, then we have a broken ls.  This can happen
2342d9c7fc6cSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2343d9c7fc6cSmrg      # broken ls alias from the environment.  This has actually
2344d9c7fc6cSmrg      # happened.  Such a system could not be considered "sane".
234505a1a286Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
234605a1a286Smrgalias in your environment" "$LINENO" 5
2347d9c7fc6cSmrg   fi
2348d9c7fc6cSmrg
2349d9c7fc6cSmrg   test "$2" = conftest.file
2350d9c7fc6cSmrg   )
2351d9c7fc6cSmrgthen
2352d9c7fc6cSmrg   # Ok.
2353d9c7fc6cSmrg   :
2354d9c7fc6cSmrgelse
235505a1a286Smrg   as_fn_error $? "newly created file is older than distributed files!
235605a1a286SmrgCheck your system clock" "$LINENO" 5
2357d9c7fc6cSmrgfi
235805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
235905a1a286Smrg$as_echo "yes" >&6; }
2360d9c7fc6cSmrgtest "$program_prefix" != NONE &&
236105a1a286Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2362d9c7fc6cSmrg# Use a double $ so make ignores it.
2363d9c7fc6cSmrgtest "$program_suffix" != NONE &&
236405a1a286Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
236505a1a286Smrg# Double any \ or $.
2366d9c7fc6cSmrg# By default was `s,x,x', remove it if useless.
236705a1a286Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
236805a1a286Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2369d9c7fc6cSmrg
2370d9c7fc6cSmrg# expand $ac_aux_dir to an absolute path
2371d9c7fc6cSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
2372d9c7fc6cSmrg
237305a1a286Smrgif test x"${MISSING+set}" != xset; then
237405a1a286Smrg  case $am_aux_dir in
237505a1a286Smrg  *\ * | *\	*)
237605a1a286Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
237705a1a286Smrg  *)
237805a1a286Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
237905a1a286Smrg  esac
238005a1a286Smrgfi
2381d9c7fc6cSmrg# Use eval to expand $SHELL
2382d9c7fc6cSmrgif eval "$MISSING --run true"; then
2383d9c7fc6cSmrg  am_missing_run="$MISSING --run "
2384d9c7fc6cSmrgelse
2385d9c7fc6cSmrg  am_missing_run=
238605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
238705a1a286Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2388d9c7fc6cSmrgfi
2389d9c7fc6cSmrg
239005a1a286Smrgif test x"${install_sh}" != xset; then
239105a1a286Smrg  case $am_aux_dir in
239205a1a286Smrg  *\ * | *\	*)
239305a1a286Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
239405a1a286Smrg  *)
239505a1a286Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
239605a1a286Smrg  esac
239705a1a286Smrgfi
239805a1a286Smrg
239905a1a286Smrg# Installed binaries are usually stripped using `strip' when the user
240005a1a286Smrg# run `make install-strip'.  However `strip' might not be the right
240105a1a286Smrg# tool to use in cross-compilation environments, therefore Automake
240205a1a286Smrg# will honor the `STRIP' environment variable to overrule this program.
240305a1a286Smrgif test "$cross_compiling" != no; then
240405a1a286Smrg  if test -n "$ac_tool_prefix"; then
240505a1a286Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
240605a1a286Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
240705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
240805a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
240905a1a286Smrgif ${ac_cv_prog_STRIP+:} false; then :
241005a1a286Smrg  $as_echo_n "(cached) " >&6
2411d9c7fc6cSmrgelse
241205a1a286Smrg  if test -n "$STRIP"; then
241305a1a286Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2414d9c7fc6cSmrgelse
2415d9c7fc6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416d9c7fc6cSmrgfor as_dir in $PATH
2417d9c7fc6cSmrgdo
2418d9c7fc6cSmrg  IFS=$as_save_IFS
2419d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
242005a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
242105a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
242205a1a286Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
242305a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2424d9c7fc6cSmrg    break 2
2425d9c7fc6cSmrg  fi
2426d9c7fc6cSmrgdone
242705a1a286Smrg  done
242805a1a286SmrgIFS=$as_save_IFS
2429d9c7fc6cSmrg
2430d9c7fc6cSmrgfi
2431d9c7fc6cSmrgfi
243205a1a286SmrgSTRIP=$ac_cv_prog_STRIP
243305a1a286Smrgif test -n "$STRIP"; then
243405a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
243505a1a286Smrg$as_echo "$STRIP" >&6; }
2436d9c7fc6cSmrgelse
243705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
243805a1a286Smrg$as_echo "no" >&6; }
2439d9c7fc6cSmrgfi
2440d9c7fc6cSmrg
2441d9c7fc6cSmrg
2442d9c7fc6cSmrgfi
244305a1a286Smrgif test -z "$ac_cv_prog_STRIP"; then
244405a1a286Smrg  ac_ct_STRIP=$STRIP
244505a1a286Smrg  # Extract the first word of "strip", so it can be a program name with args.
244605a1a286Smrgset dummy strip; ac_word=$2
244705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
244805a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
244905a1a286Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
245005a1a286Smrg  $as_echo_n "(cached) " >&6
2451d9c7fc6cSmrgelse
245205a1a286Smrg  if test -n "$ac_ct_STRIP"; then
245305a1a286Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
245405a1a286Smrgelse
245505a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245605a1a286Smrgfor as_dir in $PATH
245705a1a286Smrgdo
245805a1a286Smrg  IFS=$as_save_IFS
245905a1a286Smrg  test -z "$as_dir" && as_dir=.
246005a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
246105a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
246205a1a286Smrg    ac_cv_prog_ac_ct_STRIP="strip"
246305a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
246405a1a286Smrg    break 2
246505a1a286Smrg  fi
246605a1a286Smrgdone
246705a1a286Smrg  done
246805a1a286SmrgIFS=$as_save_IFS
246905a1a286Smrg
247005a1a286Smrgfi
247105a1a286Smrgfi
247205a1a286Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
247305a1a286Smrgif test -n "$ac_ct_STRIP"; then
247405a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
247505a1a286Smrg$as_echo "$ac_ct_STRIP" >&6; }
247605a1a286Smrgelse
247705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
247805a1a286Smrg$as_echo "no" >&6; }
247905a1a286Smrgfi
248005a1a286Smrg
248105a1a286Smrg  if test "x$ac_ct_STRIP" = x; then
248205a1a286Smrg    STRIP=":"
248305a1a286Smrg  else
248405a1a286Smrg    case $cross_compiling:$ac_tool_warned in
248505a1a286Smrgyes:)
248605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
248705a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
248805a1a286Smrgac_tool_warned=yes ;;
248905a1a286Smrgesac
249005a1a286Smrg    STRIP=$ac_ct_STRIP
249105a1a286Smrg  fi
249205a1a286Smrgelse
249305a1a286Smrg  STRIP="$ac_cv_prog_STRIP"
249405a1a286Smrgfi
249505a1a286Smrg
249605a1a286Smrgfi
249705a1a286SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
249805a1a286Smrg
249905a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
250005a1a286Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
250105a1a286Smrgif test -z "$MKDIR_P"; then
250205a1a286Smrg  if ${ac_cv_path_mkdir+:} false; then :
250305a1a286Smrg  $as_echo_n "(cached) " >&6
250405a1a286Smrgelse
250505a1a286Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
250605a1a286Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
250705a1a286Smrgdo
250805a1a286Smrg  IFS=$as_save_IFS
250905a1a286Smrg  test -z "$as_dir" && as_dir=.
251005a1a286Smrg    for ac_prog in mkdir gmkdir; do
251105a1a286Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
251205a1a286Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
251305a1a286Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
251405a1a286Smrg	     'mkdir (GNU coreutils) '* | \
251505a1a286Smrg	     'mkdir (coreutils) '* | \
251605a1a286Smrg	     'mkdir (fileutils) '4.1*)
251705a1a286Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
251805a1a286Smrg	       break 3;;
251905a1a286Smrg	   esac
252005a1a286Smrg	 done
252105a1a286Smrg       done
252205a1a286Smrg  done
252305a1a286SmrgIFS=$as_save_IFS
252405a1a286Smrg
252505a1a286Smrgfi
252605a1a286Smrg
252705a1a286Smrg  test -d ./--version && rmdir ./--version
252805a1a286Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
252905a1a286Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
253005a1a286Smrg  else
253105a1a286Smrg    # As a last resort, use the slow shell script.  Don't cache a
253205a1a286Smrg    # value for MKDIR_P within a source directory, because that will
253305a1a286Smrg    # break other packages using the cache if that directory is
253405a1a286Smrg    # removed, or if the value is a relative name.
253505a1a286Smrg    MKDIR_P="$ac_install_sh -d"
253605a1a286Smrg  fi
253705a1a286Smrgfi
253805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
253905a1a286Smrg$as_echo "$MKDIR_P" >&6; }
254005a1a286Smrg
254105a1a286Smrgmkdir_p="$MKDIR_P"
254205a1a286Smrgcase $mkdir_p in
254305a1a286Smrg  [\\/$]* | ?:[\\/]*) ;;
254405a1a286Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
254505a1a286Smrgesac
254605a1a286Smrg
254705a1a286Smrgfor ac_prog in gawk mawk nawk awk
254805a1a286Smrgdo
254905a1a286Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
255005a1a286Smrgset dummy $ac_prog; ac_word=$2
255105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
255205a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
255305a1a286Smrgif ${ac_cv_prog_AWK+:} false; then :
255405a1a286Smrg  $as_echo_n "(cached) " >&6
255505a1a286Smrgelse
255605a1a286Smrg  if test -n "$AWK"; then
255705a1a286Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
255805a1a286Smrgelse
255905a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
256005a1a286Smrgfor as_dir in $PATH
256105a1a286Smrgdo
256205a1a286Smrg  IFS=$as_save_IFS
256305a1a286Smrg  test -z "$as_dir" && as_dir=.
256405a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
256505a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
256605a1a286Smrg    ac_cv_prog_AWK="$ac_prog"
256705a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
256805a1a286Smrg    break 2
256905a1a286Smrg  fi
257005a1a286Smrgdone
257105a1a286Smrg  done
257205a1a286SmrgIFS=$as_save_IFS
257305a1a286Smrg
257405a1a286Smrgfi
257505a1a286Smrgfi
257605a1a286SmrgAWK=$ac_cv_prog_AWK
257705a1a286Smrgif test -n "$AWK"; then
257805a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
257905a1a286Smrg$as_echo "$AWK" >&6; }
258005a1a286Smrgelse
258105a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
258205a1a286Smrg$as_echo "no" >&6; }
258305a1a286Smrgfi
258405a1a286Smrg
258505a1a286Smrg
258605a1a286Smrg  test -n "$AWK" && break
258705a1a286Smrgdone
258805a1a286Smrg
258905a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
259005a1a286Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
259105a1a286Smrgset x ${MAKE-make}
259205a1a286Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
259305a1a286Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
259405a1a286Smrg  $as_echo_n "(cached) " >&6
259505a1a286Smrgelse
259605a1a286Smrg  cat >conftest.make <<\_ACEOF
259705a1a286SmrgSHELL = /bin/sh
259805a1a286Smrgall:
259905a1a286Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
260005a1a286Smrg_ACEOF
260105a1a286Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
260205a1a286Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
260305a1a286Smrg  *@@@%%%=?*=@@@%%%*)
260405a1a286Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
260505a1a286Smrg  *)
260605a1a286Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
260705a1a286Smrgesac
260805a1a286Smrgrm -f conftest.make
260905a1a286Smrgfi
261005a1a286Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
261105a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
261205a1a286Smrg$as_echo "yes" >&6; }
261305a1a286Smrg  SET_MAKE=
261405a1a286Smrgelse
261505a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
261605a1a286Smrg$as_echo "no" >&6; }
261705a1a286Smrg  SET_MAKE="MAKE=${MAKE-make}"
261805a1a286Smrgfi
261905a1a286Smrg
2620d9c7fc6cSmrgrm -rf .tst 2>/dev/null
2621d9c7fc6cSmrgmkdir .tst 2>/dev/null
2622d9c7fc6cSmrgif test -d .tst; then
2623d9c7fc6cSmrg  am__leading_dot=.
2624d9c7fc6cSmrgelse
2625d9c7fc6cSmrg  am__leading_dot=_
2626d9c7fc6cSmrgfi
2627d9c7fc6cSmrgrmdir .tst 2>/dev/null
2628d9c7fc6cSmrg
262905a1a286Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
263005a1a286Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
263105a1a286Smrg  # is not polluted with repeated "-I."
263205a1a286Smrg  am__isrc=' -I$(srcdir)'
263305a1a286Smrg  # test to see if srcdir already configured
263405a1a286Smrg  if test -f $srcdir/config.status; then
263505a1a286Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
263605a1a286Smrg  fi
2637d9c7fc6cSmrgfi
2638d9c7fc6cSmrg
2639d9c7fc6cSmrg# test whether we have cygpath
2640d9c7fc6cSmrgif test -z "$CYGPATH_W"; then
2641d9c7fc6cSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2642d9c7fc6cSmrg    CYGPATH_W='cygpath -w'
2643d9c7fc6cSmrg  else
2644d9c7fc6cSmrg    CYGPATH_W=echo
2645d9c7fc6cSmrg  fi
2646d9c7fc6cSmrgfi
2647d9c7fc6cSmrg
2648d9c7fc6cSmrg
2649d9c7fc6cSmrg# Define the identity of the package.
2650d9c7fc6cSmrg PACKAGE='libXevie'
265105a1a286Smrg VERSION='1.0.3'
2652d9c7fc6cSmrg
2653d9c7fc6cSmrg
2654d9c7fc6cSmrgcat >>confdefs.h <<_ACEOF
2655d9c7fc6cSmrg#define PACKAGE "$PACKAGE"
2656d9c7fc6cSmrg_ACEOF
2657d9c7fc6cSmrg
2658d9c7fc6cSmrg
2659d9c7fc6cSmrgcat >>confdefs.h <<_ACEOF
2660d9c7fc6cSmrg#define VERSION "$VERSION"
2661d9c7fc6cSmrg_ACEOF
2662d9c7fc6cSmrg
2663d9c7fc6cSmrg# Some tools Automake needs.
2664d9c7fc6cSmrg
2665d9c7fc6cSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2666d9c7fc6cSmrg
2667d9c7fc6cSmrg
2668d9c7fc6cSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2669d9c7fc6cSmrg
2670d9c7fc6cSmrg
2671d9c7fc6cSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2672d9c7fc6cSmrg
2673d9c7fc6cSmrg
2674d9c7fc6cSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2675d9c7fc6cSmrg
2676d9c7fc6cSmrg
2677d9c7fc6cSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2678d9c7fc6cSmrg
2679d9c7fc6cSmrg# We need awk for the "check" target.  The system "awk" is bad on
2680d9c7fc6cSmrg# some platforms.
2681d9c7fc6cSmrg# Always define AMTAR for backward compatibility.
2682d9c7fc6cSmrg
2683d9c7fc6cSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2684d9c7fc6cSmrg
2685d9c7fc6cSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2686d9c7fc6cSmrg
2687d9c7fc6cSmrg
2688d9c7fc6cSmrg
2689d9c7fc6cSmrg
2690d9c7fc6cSmrg
269105a1a286Smrg
269205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
269305a1a286Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
269405a1a286Smrg    # Check whether --enable-maintainer-mode was given.
269505a1a286Smrgif test "${enable_maintainer_mode+set}" = set; then :
269605a1a286Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2697d9c7fc6cSmrgelse
2698d9c7fc6cSmrg  USE_MAINTAINER_MODE=no
269905a1a286Smrgfi
2700d9c7fc6cSmrg
270105a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
270205a1a286Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
270305a1a286Smrg   if test $USE_MAINTAINER_MODE = yes; then
2704d9c7fc6cSmrg  MAINTAINER_MODE_TRUE=
2705d9c7fc6cSmrg  MAINTAINER_MODE_FALSE='#'
2706d9c7fc6cSmrgelse
2707d9c7fc6cSmrg  MAINTAINER_MODE_TRUE='#'
2708d9c7fc6cSmrg  MAINTAINER_MODE_FALSE=
2709d9c7fc6cSmrgfi
2710d9c7fc6cSmrg
2711d9c7fc6cSmrg  MAINT=$MAINTAINER_MODE_TRUE
2712d9c7fc6cSmrg
2713d9c7fc6cSmrg
2714d9c7fc6cSmrg
271505a1a286Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
271605a1a286Smrg
271705a1a286Smrg
271805a1a286Smrg
271905a1a286Smrg
272005a1a286Smrg
272105a1a286Smrg
272205a1a286Smrg
272305a1a286Smrg
272405a1a286Smrg
272505a1a286Smrg
272605a1a286Smrg
272705a1a286SmrgDEPDIR="${am__leading_dot}deps"
272805a1a286Smrg
272905a1a286Smrgac_config_commands="$ac_config_commands depfiles"
273005a1a286Smrg
273105a1a286Smrg
273205a1a286Smrgam_make=${MAKE-make}
273305a1a286Smrgcat > confinc << 'END'
273405a1a286Smrgam__doit:
273505a1a286Smrg	@echo this is the am__doit target
273605a1a286Smrg.PHONY: am__doit
273705a1a286SmrgEND
273805a1a286Smrg# If we don't find an include directive, just comment out the code.
273905a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
274005a1a286Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
274105a1a286Smrgam__include="#"
274205a1a286Smrgam__quote=
274305a1a286Smrg_am_result=none
274405a1a286Smrg# First try GNU make style include.
274505a1a286Smrgecho "include confinc" > confmf
274605a1a286Smrg# Ignore all kinds of additional output from `make'.
274705a1a286Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
274805a1a286Smrg*the\ am__doit\ target*)
274905a1a286Smrg  am__include=include
275005a1a286Smrg  am__quote=
275105a1a286Smrg  _am_result=GNU
275205a1a286Smrg  ;;
275305a1a286Smrgesac
275405a1a286Smrg# Now try BSD make style include.
275505a1a286Smrgif test "$am__include" = "#"; then
275605a1a286Smrg   echo '.include "confinc"' > confmf
275705a1a286Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
275805a1a286Smrg   *the\ am__doit\ target*)
275905a1a286Smrg     am__include=.include
276005a1a286Smrg     am__quote="\""
276105a1a286Smrg     _am_result=BSD
276205a1a286Smrg     ;;
276305a1a286Smrg   esac
276405a1a286Smrgfi
276505a1a286Smrg
276605a1a286Smrg
276705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
276805a1a286Smrg$as_echo "$_am_result" >&6; }
276905a1a286Smrgrm -f confinc confmf
277005a1a286Smrg
277105a1a286Smrg# Check whether --enable-dependency-tracking was given.
277205a1a286Smrgif test "${enable_dependency_tracking+set}" = set; then :
277305a1a286Smrg  enableval=$enable_dependency_tracking;
277405a1a286Smrgfi
277505a1a286Smrg
277605a1a286Smrgif test "x$enable_dependency_tracking" != xno; then
277705a1a286Smrg  am_depcomp="$ac_aux_dir/depcomp"
277805a1a286Smrg  AMDEPBACKSLASH='\'
277905a1a286Smrgfi
278005a1a286Smrg if test "x$enable_dependency_tracking" != xno; then
278105a1a286Smrg  AMDEP_TRUE=
278205a1a286Smrg  AMDEP_FALSE='#'
278305a1a286Smrgelse
278405a1a286Smrg  AMDEP_TRUE='#'
278505a1a286Smrg  AMDEP_FALSE=
278605a1a286Smrgfi
2787d9c7fc6cSmrg
2788d9c7fc6cSmrg
2789d9c7fc6cSmrgac_ext=c
2790d9c7fc6cSmrgac_cpp='$CPP $CPPFLAGS'
2791d9c7fc6cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792d9c7fc6cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793d9c7fc6cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2794d9c7fc6cSmrgif test -n "$ac_tool_prefix"; then
2795d9c7fc6cSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796d9c7fc6cSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
279705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
279805a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
279905a1a286Smrgif ${ac_cv_prog_CC+:} false; then :
280005a1a286Smrg  $as_echo_n "(cached) " >&6
2801d9c7fc6cSmrgelse
2802d9c7fc6cSmrg  if test -n "$CC"; then
2803d9c7fc6cSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2804d9c7fc6cSmrgelse
2805d9c7fc6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806d9c7fc6cSmrgfor as_dir in $PATH
2807d9c7fc6cSmrgdo
2808d9c7fc6cSmrg  IFS=$as_save_IFS
2809d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
281005a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
281105a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812d9c7fc6cSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
281305a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814d9c7fc6cSmrg    break 2
2815d9c7fc6cSmrg  fi
2816d9c7fc6cSmrgdone
281705a1a286Smrg  done
281805a1a286SmrgIFS=$as_save_IFS
2819d9c7fc6cSmrg
2820d9c7fc6cSmrgfi
2821d9c7fc6cSmrgfi
2822d9c7fc6cSmrgCC=$ac_cv_prog_CC
2823d9c7fc6cSmrgif test -n "$CC"; then
282405a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
282505a1a286Smrg$as_echo "$CC" >&6; }
2826d9c7fc6cSmrgelse
282705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
282805a1a286Smrg$as_echo "no" >&6; }
2829d9c7fc6cSmrgfi
2830d9c7fc6cSmrg
283105a1a286Smrg
2832d9c7fc6cSmrgfi
2833d9c7fc6cSmrgif test -z "$ac_cv_prog_CC"; then
2834d9c7fc6cSmrg  ac_ct_CC=$CC
2835d9c7fc6cSmrg  # Extract the first word of "gcc", so it can be a program name with args.
2836d9c7fc6cSmrgset dummy gcc; ac_word=$2
283705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
283805a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
283905a1a286Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
284005a1a286Smrg  $as_echo_n "(cached) " >&6
2841d9c7fc6cSmrgelse
2842d9c7fc6cSmrg  if test -n "$ac_ct_CC"; then
2843d9c7fc6cSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2844d9c7fc6cSmrgelse
2845d9c7fc6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846d9c7fc6cSmrgfor as_dir in $PATH
2847d9c7fc6cSmrgdo
2848d9c7fc6cSmrg  IFS=$as_save_IFS
2849d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
285005a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
285105a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852d9c7fc6cSmrg    ac_cv_prog_ac_ct_CC="gcc"
285305a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854d9c7fc6cSmrg    break 2
2855d9c7fc6cSmrg  fi
2856d9c7fc6cSmrgdone
285705a1a286Smrg  done
285805a1a286SmrgIFS=$as_save_IFS
2859d9c7fc6cSmrg
2860d9c7fc6cSmrgfi
2861d9c7fc6cSmrgfi
2862d9c7fc6cSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2863d9c7fc6cSmrgif test -n "$ac_ct_CC"; then
286405a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
286505a1a286Smrg$as_echo "$ac_ct_CC" >&6; }
2866d9c7fc6cSmrgelse
286705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
286805a1a286Smrg$as_echo "no" >&6; }
2869d9c7fc6cSmrgfi
2870d9c7fc6cSmrg
287105a1a286Smrg  if test "x$ac_ct_CC" = x; then
287205a1a286Smrg    CC=""
287305a1a286Smrg  else
287405a1a286Smrg    case $cross_compiling:$ac_tool_warned in
287505a1a286Smrgyes:)
287605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
287705a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
287805a1a286Smrgac_tool_warned=yes ;;
287905a1a286Smrgesac
288005a1a286Smrg    CC=$ac_ct_CC
288105a1a286Smrg  fi
2882d9c7fc6cSmrgelse
2883d9c7fc6cSmrg  CC="$ac_cv_prog_CC"
2884d9c7fc6cSmrgfi
2885d9c7fc6cSmrg
2886d9c7fc6cSmrgif test -z "$CC"; then
288705a1a286Smrg          if test -n "$ac_tool_prefix"; then
288805a1a286Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2889d9c7fc6cSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
289005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
289105a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
289205a1a286Smrgif ${ac_cv_prog_CC+:} false; then :
289305a1a286Smrg  $as_echo_n "(cached) " >&6
2894d9c7fc6cSmrgelse
2895d9c7fc6cSmrg  if test -n "$CC"; then
2896d9c7fc6cSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2897d9c7fc6cSmrgelse
2898d9c7fc6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899d9c7fc6cSmrgfor as_dir in $PATH
2900d9c7fc6cSmrgdo
2901d9c7fc6cSmrg  IFS=$as_save_IFS
2902d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
290305a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
290405a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905d9c7fc6cSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
290605a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907d9c7fc6cSmrg    break 2
2908d9c7fc6cSmrg  fi
2909d9c7fc6cSmrgdone
291005a1a286Smrg  done
291105a1a286SmrgIFS=$as_save_IFS
2912d9c7fc6cSmrg
2913d9c7fc6cSmrgfi
2914d9c7fc6cSmrgfi
2915d9c7fc6cSmrgCC=$ac_cv_prog_CC
2916d9c7fc6cSmrgif test -n "$CC"; then
291705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
291805a1a286Smrg$as_echo "$CC" >&6; }
2919d9c7fc6cSmrgelse
292005a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
292105a1a286Smrg$as_echo "no" >&6; }
2922d9c7fc6cSmrgfi
2923d9c7fc6cSmrg
292405a1a286Smrg
292505a1a286Smrg  fi
2926d9c7fc6cSmrgfi
292705a1a286Smrgif test -z "$CC"; then
2928d9c7fc6cSmrg  # Extract the first word of "cc", so it can be a program name with args.
2929d9c7fc6cSmrgset dummy cc; ac_word=$2
293005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
293105a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
293205a1a286Smrgif ${ac_cv_prog_CC+:} false; then :
293305a1a286Smrg  $as_echo_n "(cached) " >&6
2934d9c7fc6cSmrgelse
293505a1a286Smrg  if test -n "$CC"; then
293605a1a286Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2937d9c7fc6cSmrgelse
293805a1a286Smrg  ac_prog_rejected=no
2939d9c7fc6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940d9c7fc6cSmrgfor as_dir in $PATH
2941d9c7fc6cSmrgdo
2942d9c7fc6cSmrg  IFS=$as_save_IFS
2943d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
294405a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
294505a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
294605a1a286Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
294705a1a286Smrg       ac_prog_rejected=yes
294805a1a286Smrg       continue
294905a1a286Smrg     fi
295005a1a286Smrg    ac_cv_prog_CC="cc"
295105a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952d9c7fc6cSmrg    break 2
2953d9c7fc6cSmrg  fi
2954d9c7fc6cSmrgdone
295505a1a286Smrg  done
295605a1a286SmrgIFS=$as_save_IFS
2957d9c7fc6cSmrg
2958d9c7fc6cSmrgif test $ac_prog_rejected = yes; then
2959d9c7fc6cSmrg  # We found a bogon in the path, so make sure we never use it.
2960d9c7fc6cSmrg  set dummy $ac_cv_prog_CC
2961d9c7fc6cSmrg  shift
2962d9c7fc6cSmrg  if test $# != 0; then
2963d9c7fc6cSmrg    # We chose a different compiler from the bogus one.
2964d9c7fc6cSmrg    # However, it has the same basename, so the bogon will be chosen
2965d9c7fc6cSmrg    # first if we set CC to just the basename; use the full file name.
2966d9c7fc6cSmrg    shift
2967d9c7fc6cSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2968d9c7fc6cSmrg  fi
2969d9c7fc6cSmrgfi
2970d9c7fc6cSmrgfi
2971d9c7fc6cSmrgfi
2972d9c7fc6cSmrgCC=$ac_cv_prog_CC
2973d9c7fc6cSmrgif test -n "$CC"; then
297405a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
297505a1a286Smrg$as_echo "$CC" >&6; }
2976d9c7fc6cSmrgelse
297705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
297805a1a286Smrg$as_echo "no" >&6; }
2979d9c7fc6cSmrgfi
2980d9c7fc6cSmrg
298105a1a286Smrg
2982d9c7fc6cSmrgfi
2983d9c7fc6cSmrgif test -z "$CC"; then
2984d9c7fc6cSmrg  if test -n "$ac_tool_prefix"; then
298505a1a286Smrg  for ac_prog in cl.exe
2986d9c7fc6cSmrg  do
2987d9c7fc6cSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2988d9c7fc6cSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
298905a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
299005a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
299105a1a286Smrgif ${ac_cv_prog_CC+:} false; then :
299205a1a286Smrg  $as_echo_n "(cached) " >&6
2993d9c7fc6cSmrgelse
2994d9c7fc6cSmrg  if test -n "$CC"; then
2995d9c7fc6cSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2996d9c7fc6cSmrgelse
2997d9c7fc6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998d9c7fc6cSmrgfor as_dir in $PATH
2999d9c7fc6cSmrgdo
3000d9c7fc6cSmrg  IFS=$as_save_IFS
3001d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
300205a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
300305a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004d9c7fc6cSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
300505a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006d9c7fc6cSmrg    break 2
3007d9c7fc6cSmrg  fi
3008d9c7fc6cSmrgdone
300905a1a286Smrg  done
301005a1a286SmrgIFS=$as_save_IFS
3011d9c7fc6cSmrg
3012d9c7fc6cSmrgfi
3013d9c7fc6cSmrgfi
3014d9c7fc6cSmrgCC=$ac_cv_prog_CC
3015d9c7fc6cSmrgif test -n "$CC"; then
301605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
301705a1a286Smrg$as_echo "$CC" >&6; }
3018d9c7fc6cSmrgelse
301905a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
302005a1a286Smrg$as_echo "no" >&6; }
3021d9c7fc6cSmrgfi
3022d9c7fc6cSmrg
302305a1a286Smrg
3024d9c7fc6cSmrg    test -n "$CC" && break
3025d9c7fc6cSmrg  done
3026d9c7fc6cSmrgfi
3027d9c7fc6cSmrgif test -z "$CC"; then
3028d9c7fc6cSmrg  ac_ct_CC=$CC
302905a1a286Smrg  for ac_prog in cl.exe
3030d9c7fc6cSmrgdo
3031d9c7fc6cSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3032d9c7fc6cSmrgset dummy $ac_prog; ac_word=$2
303305a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
303405a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
303505a1a286Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
303605a1a286Smrg  $as_echo_n "(cached) " >&6
3037d9c7fc6cSmrgelse
3038d9c7fc6cSmrg  if test -n "$ac_ct_CC"; then
3039d9c7fc6cSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3040d9c7fc6cSmrgelse
3041d9c7fc6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042d9c7fc6cSmrgfor as_dir in $PATH
3043d9c7fc6cSmrgdo
3044d9c7fc6cSmrg  IFS=$as_save_IFS
3045d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
304605a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
304705a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048d9c7fc6cSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
304905a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050d9c7fc6cSmrg    break 2
3051d9c7fc6cSmrg  fi
3052d9c7fc6cSmrgdone
305305a1a286Smrg  done
305405a1a286SmrgIFS=$as_save_IFS
3055d9c7fc6cSmrg
3056d9c7fc6cSmrgfi
3057d9c7fc6cSmrgfi
3058d9c7fc6cSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3059d9c7fc6cSmrgif test -n "$ac_ct_CC"; then
306005a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
306105a1a286Smrg$as_echo "$ac_ct_CC" >&6; }
3062d9c7fc6cSmrgelse
306305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
306405a1a286Smrg$as_echo "no" >&6; }
3065d9c7fc6cSmrgfi
3066d9c7fc6cSmrg
306705a1a286Smrg
3068d9c7fc6cSmrg  test -n "$ac_ct_CC" && break
3069d9c7fc6cSmrgdone
3070d9c7fc6cSmrg
307105a1a286Smrg  if test "x$ac_ct_CC" = x; then
307205a1a286Smrg    CC=""
307305a1a286Smrg  else
307405a1a286Smrg    case $cross_compiling:$ac_tool_warned in
307505a1a286Smrgyes:)
307605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
307705a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
307805a1a286Smrgac_tool_warned=yes ;;
307905a1a286Smrgesac
308005a1a286Smrg    CC=$ac_ct_CC
308105a1a286Smrg  fi
3082d9c7fc6cSmrgfi
3083d9c7fc6cSmrg
3084d9c7fc6cSmrgfi
3085d9c7fc6cSmrg
3086d9c7fc6cSmrg
308705a1a286Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
308805a1a286Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
308905a1a286Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
309005a1a286SmrgSee \`config.log' for more details" "$LINENO" 5; }
3091d9c7fc6cSmrg
3092d9c7fc6cSmrg# Provide some information about the compiler.
309305a1a286Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
309405a1a286Smrgset X $ac_compile
309505a1a286Smrgac_compiler=$2
309605a1a286Smrgfor ac_option in --version -v -V -qversion; do
309705a1a286Smrg  { { ac_try="$ac_compiler $ac_option >&5"
309805a1a286Smrgcase "(($ac_try" in
309905a1a286Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
310005a1a286Smrg  *) ac_try_echo=$ac_try;;
310105a1a286Smrgesac
310205a1a286Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
310305a1a286Smrg$as_echo "$ac_try_echo"; } >&5
310405a1a286Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3105d9c7fc6cSmrg  ac_status=$?
310605a1a286Smrg  if test -s conftest.err; then
310705a1a286Smrg    sed '10a\
310805a1a286Smrg... rest of stderr output deleted ...
310905a1a286Smrg         10q' conftest.err >conftest.er1
311005a1a286Smrg    cat conftest.er1 >&5
311105a1a286Smrg  fi
311205a1a286Smrg  rm -f conftest.er1 conftest.err
311305a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
311405a1a286Smrg  test $ac_status = 0; }
311505a1a286Smrgdone
3116d9c7fc6cSmrg
311705a1a286Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118d9c7fc6cSmrg/* end confdefs.h.  */
3119d9c7fc6cSmrg
3120d9c7fc6cSmrgint
3121d9c7fc6cSmrgmain ()
3122d9c7fc6cSmrg{
3123d9c7fc6cSmrg
3124d9c7fc6cSmrg  ;
3125d9c7fc6cSmrg  return 0;
3126d9c7fc6cSmrg}
3127d9c7fc6cSmrg_ACEOF
3128d9c7fc6cSmrgac_clean_files_save=$ac_clean_files
312905a1a286Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3130d9c7fc6cSmrg# Try to create an executable without -o first, disregard a.out.
3131d9c7fc6cSmrg# It will help us diagnose broken compilers, and finding out an intuition
3132d9c7fc6cSmrg# of exeext.
313305a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
313405a1a286Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
313505a1a286Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
313605a1a286Smrg
313705a1a286Smrg# The possible output files:
313805a1a286Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
313905a1a286Smrg
314005a1a286Smrgac_rmfiles=
314105a1a286Smrgfor ac_file in $ac_files
314205a1a286Smrgdo
314305a1a286Smrg  case $ac_file in
314405a1a286Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
314505a1a286Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
314605a1a286Smrg  esac
314705a1a286Smrgdone
314805a1a286Smrgrm -f $ac_rmfiles
314905a1a286Smrg
315005a1a286Smrgif { { ac_try="$ac_link_default"
315105a1a286Smrgcase "(($ac_try" in
315205a1a286Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
315305a1a286Smrg  *) ac_try_echo=$ac_try;;
315405a1a286Smrgesac
315505a1a286Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
315605a1a286Smrg$as_echo "$ac_try_echo"; } >&5
315705a1a286Smrg  (eval "$ac_link_default") 2>&5
315805a1a286Smrg  ac_status=$?
315905a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
316005a1a286Smrg  test $ac_status = 0; }; then :
316105a1a286Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
316205a1a286Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
316305a1a286Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
316405a1a286Smrg# so that the user can short-circuit this test for compilers unknown to
316505a1a286Smrg# Autoconf.
316605a1a286Smrgfor ac_file in $ac_files ''
3167d9c7fc6cSmrgdo
3168d9c7fc6cSmrg  test -f "$ac_file" || continue
3169d9c7fc6cSmrg  case $ac_file in
317005a1a286Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3171d9c7fc6cSmrg	;;
3172d9c7fc6cSmrg    [ab].out )
3173d9c7fc6cSmrg	# We found the default executable, but exeext='' is most
3174d9c7fc6cSmrg	# certainly right.
3175d9c7fc6cSmrg	break;;
3176d9c7fc6cSmrg    *.* )
317705a1a286Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
317805a1a286Smrg	then :; else
317905a1a286Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
318005a1a286Smrg	fi
318105a1a286Smrg	# We set ac_cv_exeext here because the later test for it is not
318205a1a286Smrg	# safe: cross compilers may not add the suffix if given an `-o'
318305a1a286Smrg	# argument, so we may need to know it at that point already.
318405a1a286Smrg	# Even if this section looks crufty: it has the advantage of
318505a1a286Smrg	# actually working.
3186d9c7fc6cSmrg	break;;
3187d9c7fc6cSmrg    * )
3188d9c7fc6cSmrg	break;;
3189d9c7fc6cSmrg  esac
3190d9c7fc6cSmrgdone
319105a1a286Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
319205a1a286Smrg
3193d9c7fc6cSmrgelse
319405a1a286Smrg  ac_file=''
319505a1a286Smrgfi
319605a1a286Smrgif test -z "$ac_file"; then :
319705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
319805a1a286Smrg$as_echo "no" >&6; }
319905a1a286Smrg$as_echo "$as_me: failed program was:" >&5
3200d9c7fc6cSmrgsed 's/^/| /' conftest.$ac_ext >&5
3201d9c7fc6cSmrg
320205a1a286Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
320305a1a286Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
320405a1a286Smrgas_fn_error 77 "C compiler cannot create executables
320505a1a286SmrgSee \`config.log' for more details" "$LINENO" 5; }
320605a1a286Smrgelse
320705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
320805a1a286Smrg$as_echo "yes" >&6; }
3209d9c7fc6cSmrgfi
321005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
321105a1a286Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
321205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
321305a1a286Smrg$as_echo "$ac_file" >&6; }
3214d9c7fc6cSmrgac_exeext=$ac_cv_exeext
3215d9c7fc6cSmrg
321605a1a286Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3217d9c7fc6cSmrgac_clean_files=$ac_clean_files_save
321805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
321905a1a286Smrg$as_echo_n "checking for suffix of executables... " >&6; }
322005a1a286Smrgif { { ac_try="$ac_link"
322105a1a286Smrgcase "(($ac_try" in
322205a1a286Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
322305a1a286Smrg  *) ac_try_echo=$ac_try;;
322405a1a286Smrgesac
322505a1a286Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
322605a1a286Smrg$as_echo "$ac_try_echo"; } >&5
322705a1a286Smrg  (eval "$ac_link") 2>&5
3228d9c7fc6cSmrg  ac_status=$?
322905a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
323005a1a286Smrg  test $ac_status = 0; }; then :
3231d9c7fc6cSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3232d9c7fc6cSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3233d9c7fc6cSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3234d9c7fc6cSmrg# `rm'.
3235d9c7fc6cSmrgfor ac_file in conftest.exe conftest conftest.*; do
3236d9c7fc6cSmrg  test -f "$ac_file" || continue
3237d9c7fc6cSmrg  case $ac_file in
323805a1a286Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3239d9c7fc6cSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240d9c7fc6cSmrg	  break;;
3241d9c7fc6cSmrg    * ) break;;
3242d9c7fc6cSmrg  esac
3243d9c7fc6cSmrgdone
3244d9c7fc6cSmrgelse
324505a1a286Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
324605a1a286Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
324705a1a286Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
324805a1a286SmrgSee \`config.log' for more details" "$LINENO" 5; }
3249d9c7fc6cSmrgfi
325005a1a286Smrgrm -f conftest conftest$ac_cv_exeext
325105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
325205a1a286Smrg$as_echo "$ac_cv_exeext" >&6; }
3253d9c7fc6cSmrg
3254d9c7fc6cSmrgrm -f conftest.$ac_ext
3255d9c7fc6cSmrgEXEEXT=$ac_cv_exeext
3256d9c7fc6cSmrgac_exeext=$EXEEXT
325705a1a286Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
325805a1a286Smrg/* end confdefs.h.  */
325905a1a286Smrg#include <stdio.h>
326005a1a286Smrgint
326105a1a286Smrgmain ()
326205a1a286Smrg{
326305a1a286SmrgFILE *f = fopen ("conftest.out", "w");
326405a1a286Smrg return ferror (f) || fclose (f) != 0;
326505a1a286Smrg
326605a1a286Smrg  ;
326705a1a286Smrg  return 0;
326805a1a286Smrg}
3269d9c7fc6cSmrg_ACEOF
327005a1a286Smrgac_clean_files="$ac_clean_files conftest.out"
327105a1a286Smrg# Check that the compiler produces executables we can run.  If not, either
327205a1a286Smrg# the compiler is broken, or we cross compile.
327305a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
327405a1a286Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
327505a1a286Smrgif test "$cross_compiling" != yes; then
327605a1a286Smrg  { { ac_try="$ac_link"
327705a1a286Smrgcase "(($ac_try" in
327805a1a286Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
327905a1a286Smrg  *) ac_try_echo=$ac_try;;
328005a1a286Smrgesac
328105a1a286Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
328205a1a286Smrg$as_echo "$ac_try_echo"; } >&5
328305a1a286Smrg  (eval "$ac_link") 2>&5
328405a1a286Smrg  ac_status=$?
328505a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
328605a1a286Smrg  test $ac_status = 0; }
328705a1a286Smrg  if { ac_try='./conftest$ac_cv_exeext'
328805a1a286Smrg  { { case "(($ac_try" in
328905a1a286Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
329005a1a286Smrg  *) ac_try_echo=$ac_try;;
329105a1a286Smrgesac
329205a1a286Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
329305a1a286Smrg$as_echo "$ac_try_echo"; } >&5
329405a1a286Smrg  (eval "$ac_try") 2>&5
329505a1a286Smrg  ac_status=$?
329605a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
329705a1a286Smrg  test $ac_status = 0; }; }; then
329805a1a286Smrg    cross_compiling=no
329905a1a286Smrg  else
330005a1a286Smrg    if test "$cross_compiling" = maybe; then
330105a1a286Smrg	cross_compiling=yes
330205a1a286Smrg    else
330305a1a286Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
330405a1a286Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
330505a1a286Smrgas_fn_error $? "cannot run C compiled programs.
330605a1a286SmrgIf you meant to cross compile, use \`--host'.
330705a1a286SmrgSee \`config.log' for more details" "$LINENO" 5; }
330805a1a286Smrg    fi
330905a1a286Smrg  fi
331005a1a286Smrgfi
331105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
331205a1a286Smrg$as_echo "$cross_compiling" >&6; }
331305a1a286Smrg
331405a1a286Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
331505a1a286Smrgac_clean_files=$ac_clean_files_save
331605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
331705a1a286Smrg$as_echo_n "checking for suffix of object files... " >&6; }
331805a1a286Smrgif ${ac_cv_objext+:} false; then :
331905a1a286Smrg  $as_echo_n "(cached) " >&6
332005a1a286Smrgelse
332105a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322d9c7fc6cSmrg/* end confdefs.h.  */
3323d9c7fc6cSmrg
3324d9c7fc6cSmrgint
3325d9c7fc6cSmrgmain ()
3326d9c7fc6cSmrg{
3327d9c7fc6cSmrg
3328d9c7fc6cSmrg  ;
3329d9c7fc6cSmrg  return 0;
3330d9c7fc6cSmrg}
3331d9c7fc6cSmrg_ACEOF
3332d9c7fc6cSmrgrm -f conftest.o conftest.obj
333305a1a286Smrgif { { ac_try="$ac_compile"
333405a1a286Smrgcase "(($ac_try" in
333505a1a286Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
333605a1a286Smrg  *) ac_try_echo=$ac_try;;
333705a1a286Smrgesac
333805a1a286Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
333905a1a286Smrg$as_echo "$ac_try_echo"; } >&5
334005a1a286Smrg  (eval "$ac_compile") 2>&5
334105a1a286Smrg  ac_status=$?
334205a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
334305a1a286Smrg  test $ac_status = 0; }; then :
334405a1a286Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
334505a1a286Smrg  test -f "$ac_file" || continue;
3346d9c7fc6cSmrg  case $ac_file in
334705a1a286Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3348d9c7fc6cSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3349d9c7fc6cSmrg       break;;
3350d9c7fc6cSmrg  esac
3351d9c7fc6cSmrgdone
3352d9c7fc6cSmrgelse
335305a1a286Smrg  $as_echo "$as_me: failed program was:" >&5
3354d9c7fc6cSmrgsed 's/^/| /' conftest.$ac_ext >&5
3355d9c7fc6cSmrg
335605a1a286Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
335705a1a286Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
335805a1a286Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
335905a1a286SmrgSee \`config.log' for more details" "$LINENO" 5; }
3360d9c7fc6cSmrgfi
3361d9c7fc6cSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3362d9c7fc6cSmrgfi
336305a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
336405a1a286Smrg$as_echo "$ac_cv_objext" >&6; }
3365d9c7fc6cSmrgOBJEXT=$ac_cv_objext
3366d9c7fc6cSmrgac_objext=$OBJEXT
336705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
336805a1a286Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
336905a1a286Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
337005a1a286Smrg  $as_echo_n "(cached) " >&6
3371d9c7fc6cSmrgelse
337205a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373d9c7fc6cSmrg/* end confdefs.h.  */
3374d9c7fc6cSmrg
3375d9c7fc6cSmrgint
3376d9c7fc6cSmrgmain ()
3377d9c7fc6cSmrg{
3378d9c7fc6cSmrg#ifndef __GNUC__
3379d9c7fc6cSmrg       choke me
3380d9c7fc6cSmrg#endif
3381d9c7fc6cSmrg
3382d9c7fc6cSmrg  ;
3383d9c7fc6cSmrg  return 0;
3384d9c7fc6cSmrg}
3385d9c7fc6cSmrg_ACEOF
338605a1a286Smrgif ac_fn_c_try_compile "$LINENO"; then :
3387d9c7fc6cSmrg  ac_compiler_gnu=yes
3388d9c7fc6cSmrgelse
338905a1a286Smrg  ac_compiler_gnu=no
3390d9c7fc6cSmrgfi
339105a1a286Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392d9c7fc6cSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3393d9c7fc6cSmrg
3394d9c7fc6cSmrgfi
339505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
339605a1a286Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
339705a1a286Smrgif test $ac_compiler_gnu = yes; then
339805a1a286Smrg  GCC=yes
339905a1a286Smrgelse
340005a1a286Smrg  GCC=
340105a1a286Smrgfi
3402d9c7fc6cSmrgac_test_CFLAGS=${CFLAGS+set}
3403d9c7fc6cSmrgac_save_CFLAGS=$CFLAGS
340405a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
340505a1a286Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
340605a1a286Smrgif ${ac_cv_prog_cc_g+:} false; then :
340705a1a286Smrg  $as_echo_n "(cached) " >&6
340805a1a286Smrgelse
340905a1a286Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
341005a1a286Smrg   ac_c_werror_flag=yes
341105a1a286Smrg   ac_cv_prog_cc_g=no
341205a1a286Smrg   CFLAGS="-g"
341305a1a286Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414d9c7fc6cSmrg/* end confdefs.h.  */
3415d9c7fc6cSmrg
3416d9c7fc6cSmrgint
3417d9c7fc6cSmrgmain ()
3418d9c7fc6cSmrg{
3419d9c7fc6cSmrg
3420d9c7fc6cSmrg  ;
3421d9c7fc6cSmrg  return 0;
3422d9c7fc6cSmrg}
3423d9c7fc6cSmrg_ACEOF
342405a1a286Smrgif ac_fn_c_try_compile "$LINENO"; then :
3425d9c7fc6cSmrg  ac_cv_prog_cc_g=yes
3426d9c7fc6cSmrgelse
342705a1a286Smrg  CFLAGS=""
342805a1a286Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
342905a1a286Smrg/* end confdefs.h.  */
343005a1a286Smrg
343105a1a286Smrgint
343205a1a286Smrgmain ()
343305a1a286Smrg{
343405a1a286Smrg
343505a1a286Smrg  ;
343605a1a286Smrg  return 0;
343705a1a286Smrg}
343805a1a286Smrg_ACEOF
343905a1a286Smrgif ac_fn_c_try_compile "$LINENO"; then :
344005a1a286Smrg
344105a1a286Smrgelse
344205a1a286Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
344305a1a286Smrg	 CFLAGS="-g"
344405a1a286Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
344505a1a286Smrg/* end confdefs.h.  */
344605a1a286Smrg
344705a1a286Smrgint
344805a1a286Smrgmain ()
344905a1a286Smrg{
3450d9c7fc6cSmrg
345105a1a286Smrg  ;
345205a1a286Smrg  return 0;
345305a1a286Smrg}
345405a1a286Smrg_ACEOF
345505a1a286Smrgif ac_fn_c_try_compile "$LINENO"; then :
345605a1a286Smrg  ac_cv_prog_cc_g=yes
345705a1a286Smrgfi
345805a1a286Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
345905a1a286Smrgfi
346005a1a286Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461d9c7fc6cSmrgfi
346205a1a286Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
346305a1a286Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
3464d9c7fc6cSmrgfi
346505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
346605a1a286Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3467d9c7fc6cSmrgif test "$ac_test_CFLAGS" = set; then
3468d9c7fc6cSmrg  CFLAGS=$ac_save_CFLAGS
3469d9c7fc6cSmrgelif test $ac_cv_prog_cc_g = yes; then
3470d9c7fc6cSmrg  if test "$GCC" = yes; then
3471d9c7fc6cSmrg    CFLAGS="-g -O2"
3472d9c7fc6cSmrg  else
3473d9c7fc6cSmrg    CFLAGS="-g"
3474d9c7fc6cSmrg  fi
3475d9c7fc6cSmrgelse
3476d9c7fc6cSmrg  if test "$GCC" = yes; then
3477d9c7fc6cSmrg    CFLAGS="-O2"
3478d9c7fc6cSmrg  else
3479d9c7fc6cSmrg    CFLAGS=
3480d9c7fc6cSmrg  fi
3481d9c7fc6cSmrgfi
348205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
348305a1a286Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
348405a1a286Smrgif ${ac_cv_prog_cc_c89+:} false; then :
348505a1a286Smrg  $as_echo_n "(cached) " >&6
3486d9c7fc6cSmrgelse
348705a1a286Smrg  ac_cv_prog_cc_c89=no
3488d9c7fc6cSmrgac_save_CC=$CC
348905a1a286Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490d9c7fc6cSmrg/* end confdefs.h.  */
3491d9c7fc6cSmrg#include <stdarg.h>
3492d9c7fc6cSmrg#include <stdio.h>
3493d9c7fc6cSmrg#include <sys/types.h>
3494d9c7fc6cSmrg#include <sys/stat.h>
3495d9c7fc6cSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3496d9c7fc6cSmrgstruct buf { int x; };
3497d9c7fc6cSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3498d9c7fc6cSmrgstatic char *e (p, i)
3499d9c7fc6cSmrg     char **p;
3500d9c7fc6cSmrg     int i;
3501d9c7fc6cSmrg{
3502d9c7fc6cSmrg  return p[i];
3503d9c7fc6cSmrg}
3504d9c7fc6cSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3505d9c7fc6cSmrg{
3506d9c7fc6cSmrg  char *s;
3507d9c7fc6cSmrg  va_list v;
3508d9c7fc6cSmrg  va_start (v,p);
3509d9c7fc6cSmrg  s = g (p, va_arg (v,int));
3510d9c7fc6cSmrg  va_end (v);
3511d9c7fc6cSmrg  return s;
3512d9c7fc6cSmrg}
3513d9c7fc6cSmrg
3514d9c7fc6cSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3515d9c7fc6cSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3516d9c7fc6cSmrg   These don't provoke an error unfortunately, instead are silently treated
351705a1a286Smrg   as 'x'.  The following induces an error, until -std is added to get
3518d9c7fc6cSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3519d9c7fc6cSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
352005a1a286Smrg   that's true only with -std.  */
3521d9c7fc6cSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3522d9c7fc6cSmrg
352305a1a286Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
352405a1a286Smrg   inside strings and character constants.  */
352505a1a286Smrg#define FOO(x) 'x'
352605a1a286Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
352705a1a286Smrg
3528d9c7fc6cSmrgint test (int i, double x);
3529d9c7fc6cSmrgstruct s1 {int (*f) (int a);};
3530d9c7fc6cSmrgstruct s2 {int (*f) (double a);};
3531d9c7fc6cSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3532d9c7fc6cSmrgint argc;
3533d9c7fc6cSmrgchar **argv;
3534d9c7fc6cSmrgint
3535d9c7fc6cSmrgmain ()
3536d9c7fc6cSmrg{
3537d9c7fc6cSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3538d9c7fc6cSmrg  ;
3539d9c7fc6cSmrg  return 0;
3540d9c7fc6cSmrg}
3541d9c7fc6cSmrg_ACEOF
354205a1a286Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
354305a1a286Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3544d9c7fc6cSmrgdo
3545d9c7fc6cSmrg  CC="$ac_save_CC $ac_arg"
354605a1a286Smrg  if ac_fn_c_try_compile "$LINENO"; then :
354705a1a286Smrg  ac_cv_prog_cc_c89=$ac_arg
3548d9c7fc6cSmrgfi
354905a1a286Smrgrm -f core conftest.err conftest.$ac_objext
355005a1a286Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3551d9c7fc6cSmrgdone
355205a1a286Smrgrm -f conftest.$ac_ext
3553d9c7fc6cSmrgCC=$ac_save_CC
3554d9c7fc6cSmrg
3555d9c7fc6cSmrgfi
355605a1a286Smrg# AC_CACHE_VAL
355705a1a286Smrgcase "x$ac_cv_prog_cc_c89" in
355805a1a286Smrg  x)
355905a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
356005a1a286Smrg$as_echo "none needed" >&6; } ;;
356105a1a286Smrg  xno)
356205a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
356305a1a286Smrg$as_echo "unsupported" >&6; } ;;
3564d9c7fc6cSmrg  *)
356505a1a286Smrg    CC="$CC $ac_cv_prog_cc_c89"
356605a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
356705a1a286Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3568d9c7fc6cSmrgesac
356905a1a286Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3570d9c7fc6cSmrg
3571d9c7fc6cSmrgfi
3572d9c7fc6cSmrg
3573d9c7fc6cSmrgac_ext=c
3574d9c7fc6cSmrgac_cpp='$CPP $CPPFLAGS'
3575d9c7fc6cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576d9c7fc6cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577d9c7fc6cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3578d9c7fc6cSmrg
357905a1a286Smrgdepcc="$CC"   am_compiler_list=
3580d9c7fc6cSmrg
358105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
358205a1a286Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
358305a1a286Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
358405a1a286Smrg  $as_echo_n "(cached) " >&6
3585d9c7fc6cSmrgelse
3586d9c7fc6cSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3587d9c7fc6cSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3588d9c7fc6cSmrg  # making bogus files that we don't know about and never remove.  For
3589d9c7fc6cSmrg  # instance it was reported that on HP-UX the gcc test will end up
3590d9c7fc6cSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
3591d9c7fc6cSmrg  # in D'.
3592d9c7fc6cSmrg  mkdir conftest.dir
3593d9c7fc6cSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3594d9c7fc6cSmrg  # using a relative directory.
3595d9c7fc6cSmrg  cp "$am_depcomp" conftest.dir
3596d9c7fc6cSmrg  cd conftest.dir
3597d9c7fc6cSmrg  # We will build objects and dependencies in a subdirectory because
3598d9c7fc6cSmrg  # it helps to detect inapplicable dependency modes.  For instance
3599d9c7fc6cSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3600d9c7fc6cSmrg  # side effect of compilation, but ICC will put the dependencies in
3601d9c7fc6cSmrg  # the current directory while Tru64 will put them in the object
3602d9c7fc6cSmrg  # directory.
3603d9c7fc6cSmrg  mkdir sub
3604d9c7fc6cSmrg
3605d9c7fc6cSmrg  am_cv_CC_dependencies_compiler_type=none
3606d9c7fc6cSmrg  if test "$am_compiler_list" = ""; then
3607d9c7fc6cSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3608d9c7fc6cSmrg  fi
360905a1a286Smrg  am__universal=false
361005a1a286Smrg  case " $depcc " in #(
361105a1a286Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
361205a1a286Smrg     esac
361305a1a286Smrg
3614d9c7fc6cSmrg  for depmode in $am_compiler_list; do
3615d9c7fc6cSmrg    # Setup a source with many dependencies, because some compilers
3616d9c7fc6cSmrg    # like to wrap large dependency lists on column 80 (with \), and
3617d9c7fc6cSmrg    # we should not choose a depcomp mode which is confused by this.
3618d9c7fc6cSmrg    #
3619d9c7fc6cSmrg    # We need to recreate these files for each test, as the compiler may
3620d9c7fc6cSmrg    # overwrite some of them when testing with obscure command lines.
3621d9c7fc6cSmrg    # This happens at least with the AIX C compiler.
3622d9c7fc6cSmrg    : > sub/conftest.c
3623d9c7fc6cSmrg    for i in 1 2 3 4 5 6; do
3624d9c7fc6cSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3625d9c7fc6cSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3626d9c7fc6cSmrg      # Solaris 8's {/usr,}/bin/sh.
3627d9c7fc6cSmrg      touch sub/conftst$i.h
3628d9c7fc6cSmrg    done
3629d9c7fc6cSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3630d9c7fc6cSmrg
363105a1a286Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
363205a1a286Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
363305a1a286Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
363405a1a286Smrg    # versions had trouble with output in subdirs
363505a1a286Smrg    am__obj=sub/conftest.${OBJEXT-o}
363605a1a286Smrg    am__minus_obj="-o $am__obj"
3637d9c7fc6cSmrg    case $depmode in
363805a1a286Smrg    gcc)
363905a1a286Smrg      # This depmode causes a compiler race in universal mode.
364005a1a286Smrg      test "$am__universal" = false || continue
364105a1a286Smrg      ;;
3642d9c7fc6cSmrg    nosideeffect)
3643d9c7fc6cSmrg      # after this tag, mechanisms are not by side-effect, so they'll
3644d9c7fc6cSmrg      # only be used when explicitly requested
3645d9c7fc6cSmrg      if test "x$enable_dependency_tracking" = xyes; then
3646d9c7fc6cSmrg	continue
3647d9c7fc6cSmrg      else
3648d9c7fc6cSmrg	break
3649d9c7fc6cSmrg      fi
3650d9c7fc6cSmrg      ;;
365105a1a286Smrg    msvisualcpp | msvcmsys)
365205a1a286Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
365305a1a286Smrg      # not run yet.  These depmodes are late enough in the game, and
365405a1a286Smrg      # so weak that their functioning should not be impacted.
365505a1a286Smrg      am__obj=conftest.${OBJEXT-o}
365605a1a286Smrg      am__minus_obj=
365705a1a286Smrg      ;;
3658d9c7fc6cSmrg    none) break ;;
3659d9c7fc6cSmrg    esac
3660d9c7fc6cSmrg    if depmode=$depmode \
366105a1a286Smrg       source=sub/conftest.c object=$am__obj \
3662d9c7fc6cSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
366305a1a286Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3664d9c7fc6cSmrg         >/dev/null 2>conftest.err &&
366505a1a286Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3666d9c7fc6cSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
366705a1a286Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3668d9c7fc6cSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3669d9c7fc6cSmrg      # icc doesn't choke on unknown options, it will just issue warnings
3670d9c7fc6cSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3671d9c7fc6cSmrg      # that says an option was ignored or not supported.
3672d9c7fc6cSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3673d9c7fc6cSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3674d9c7fc6cSmrg      # The diagnosis changed in icc 8.0:
3675d9c7fc6cSmrg      #   icc: Command line remark: option '-MP' not supported
3676d9c7fc6cSmrg      if (grep 'ignoring option' conftest.err ||
3677d9c7fc6cSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3678d9c7fc6cSmrg        am_cv_CC_dependencies_compiler_type=$depmode
3679d9c7fc6cSmrg        break
3680d9c7fc6cSmrg      fi
3681d9c7fc6cSmrg    fi
3682d9c7fc6cSmrg  done
3683d9c7fc6cSmrg
3684d9c7fc6cSmrg  cd ..
3685d9c7fc6cSmrg  rm -rf conftest.dir
3686d9c7fc6cSmrgelse
3687d9c7fc6cSmrg  am_cv_CC_dependencies_compiler_type=none
3688d9c7fc6cSmrgfi
3689d9c7fc6cSmrg
3690d9c7fc6cSmrgfi
369105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
369205a1a286Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3693d9c7fc6cSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3694d9c7fc6cSmrg
369505a1a286Smrg if
3696d9c7fc6cSmrg  test "x$enable_dependency_tracking" != xno \
3697d9c7fc6cSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3698d9c7fc6cSmrg  am__fastdepCC_TRUE=
3699d9c7fc6cSmrg  am__fastdepCC_FALSE='#'
3700d9c7fc6cSmrgelse
3701d9c7fc6cSmrg  am__fastdepCC_TRUE='#'
3702d9c7fc6cSmrg  am__fastdepCC_FALSE=
3703d9c7fc6cSmrgfi
3704d9c7fc6cSmrg
3705d9c7fc6cSmrg
370605a1a286Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
370705a1a286Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
370805a1a286Smrgif ${ac_cv_prog_cc_c99+:} false; then :
370905a1a286Smrg  $as_echo_n "(cached) " >&6
3710d9c7fc6cSmrgelse
371105a1a286Smrg  ac_cv_prog_cc_c99=no
371205a1a286Smrgac_save_CC=$CC
371305a1a286Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
371405a1a286Smrg/* end confdefs.h.  */
371505a1a286Smrg#include <stdarg.h>
371605a1a286Smrg#include <stdbool.h>
371705a1a286Smrg#include <stdlib.h>
371805a1a286Smrg#include <wchar.h>
371905a1a286Smrg#include <stdio.h>
3720d9c7fc6cSmrg
372105a1a286Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
372205a1a286Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
372305a1a286Smrg#define showlist(...) puts (#__VA_ARGS__)
372405a1a286Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
372505a1a286Smrgstatic void
372605a1a286Smrgtest_varargs_macros (void)
372705a1a286Smrg{
372805a1a286Smrg  int x = 1234;
372905a1a286Smrg  int y = 5678;
373005a1a286Smrg  debug ("Flag");
373105a1a286Smrg  debug ("X = %d\n", x);
373205a1a286Smrg  showlist (The first, second, and third items.);
373305a1a286Smrg  report (x>y, "x is %d but y is %d", x, y);
373405a1a286Smrg}
3735d9c7fc6cSmrg
373605a1a286Smrg// Check long long types.
373705a1a286Smrg#define BIG64 18446744073709551615ull
373805a1a286Smrg#define BIG32 4294967295ul
373905a1a286Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
374005a1a286Smrg#if !BIG_OK
374105a1a286Smrg  your preprocessor is broken;
374205a1a286Smrg#endif
374305a1a286Smrg#if BIG_OK
374405a1a286Smrg#else
374505a1a286Smrg  your preprocessor is broken;
374605a1a286Smrg#endif
374705a1a286Smrgstatic long long int bignum = -9223372036854775807LL;
374805a1a286Smrgstatic unsigned long long int ubignum = BIG64;
3749d9c7fc6cSmrg
375005a1a286Smrgstruct incomplete_array
375105a1a286Smrg{
375205a1a286Smrg  int datasize;
375305a1a286Smrg  double data[];
375405a1a286Smrg};
3755d9c7fc6cSmrg
375605a1a286Smrgstruct named_init {
375705a1a286Smrg  int number;
375805a1a286Smrg  const wchar_t *name;
375905a1a286Smrg  double average;
376005a1a286Smrg};
3761d9c7fc6cSmrg
376205a1a286Smrgtypedef const char *ccp;
3763d9c7fc6cSmrg
376405a1a286Smrgstatic inline int
376505a1a286Smrgtest_restrict (ccp restrict text)
376605a1a286Smrg{
376705a1a286Smrg  // See if C++-style comments work.
376805a1a286Smrg  // Iterate through items via the restricted pointer.
376905a1a286Smrg  // Also check for declarations in for loops.
377005a1a286Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
377105a1a286Smrg    continue;
377205a1a286Smrg  return 0;
377305a1a286Smrg}
3774d9c7fc6cSmrg
377505a1a286Smrg// Check varargs and va_copy.
377605a1a286Smrgstatic void
377705a1a286Smrgtest_varargs (const char *format, ...)
377805a1a286Smrg{
377905a1a286Smrg  va_list args;
378005a1a286Smrg  va_start (args, format);
378105a1a286Smrg  va_list args_copy;
378205a1a286Smrg  va_copy (args_copy, args);
3783d9c7fc6cSmrg
378405a1a286Smrg  const char *str;
378505a1a286Smrg  int number;
378605a1a286Smrg  float fnumber;
378705a1a286Smrg
378805a1a286Smrg  while (*format)
378905a1a286Smrg    {
379005a1a286Smrg      switch (*format++)
379105a1a286Smrg	{
379205a1a286Smrg	case 's': // string
379305a1a286Smrg	  str = va_arg (args_copy, const char *);
379405a1a286Smrg	  break;
379505a1a286Smrg	case 'd': // int
379605a1a286Smrg	  number = va_arg (args_copy, int);
379705a1a286Smrg	  break;
379805a1a286Smrg	case 'f': // float
379905a1a286Smrg	  fnumber = va_arg (args_copy, double);
380005a1a286Smrg	  break;
380105a1a286Smrg	default:
380205a1a286Smrg	  break;
380305a1a286Smrg	}
380405a1a286Smrg    }
380505a1a286Smrg  va_end (args_copy);
380605a1a286Smrg  va_end (args);
380705a1a286Smrg}
380805a1a286Smrg
380905a1a286Smrgint
381005a1a286Smrgmain ()
381105a1a286Smrg{
381205a1a286Smrg
381305a1a286Smrg  // Check bool.
381405a1a286Smrg  _Bool success = false;
381505a1a286Smrg
381605a1a286Smrg  // Check restrict.
381705a1a286Smrg  if (test_restrict ("String literal") == 0)
381805a1a286Smrg    success = true;
381905a1a286Smrg  char *restrict newvar = "Another string";
382005a1a286Smrg
382105a1a286Smrg  // Check varargs.
382205a1a286Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
382305a1a286Smrg  test_varargs_macros ();
382405a1a286Smrg
382505a1a286Smrg  // Check flexible array members.
382605a1a286Smrg  struct incomplete_array *ia =
382705a1a286Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
382805a1a286Smrg  ia->datasize = 10;
382905a1a286Smrg  for (int i = 0; i < ia->datasize; ++i)
383005a1a286Smrg    ia->data[i] = i * 1.234;
383105a1a286Smrg
383205a1a286Smrg  // Check named initializers.
383305a1a286Smrg  struct named_init ni = {
383405a1a286Smrg    .number = 34,
383505a1a286Smrg    .name = L"Test wide string",
383605a1a286Smrg    .average = 543.34343,
383705a1a286Smrg  };
383805a1a286Smrg
383905a1a286Smrg  ni.number = 58;
384005a1a286Smrg
384105a1a286Smrg  int dynamic_array[ni.number];
384205a1a286Smrg  dynamic_array[ni.number - 1] = 543;
384305a1a286Smrg
384405a1a286Smrg  // work around unused variable warnings
384505a1a286Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
384605a1a286Smrg	  || dynamic_array[ni.number - 1] != 543);
384705a1a286Smrg
384805a1a286Smrg  ;
384905a1a286Smrg  return 0;
385005a1a286Smrg}
385105a1a286Smrg_ACEOF
385205a1a286Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3853d9c7fc6cSmrgdo
385405a1a286Smrg  CC="$ac_save_CC $ac_arg"
385505a1a286Smrg  if ac_fn_c_try_compile "$LINENO"; then :
385605a1a286Smrg  ac_cv_prog_cc_c99=$ac_arg
385705a1a286Smrgfi
385805a1a286Smrgrm -f core conftest.err conftest.$ac_objext
385905a1a286Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3860d9c7fc6cSmrgdone
386105a1a286Smrgrm -f conftest.$ac_ext
386205a1a286SmrgCC=$ac_save_CC
3863d9c7fc6cSmrg
3864d9c7fc6cSmrgfi
386505a1a286Smrg# AC_CACHE_VAL
386605a1a286Smrgcase "x$ac_cv_prog_cc_c99" in
386705a1a286Smrg  x)
386805a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
386905a1a286Smrg$as_echo "none needed" >&6; } ;;
387005a1a286Smrg  xno)
387105a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
387205a1a286Smrg$as_echo "unsupported" >&6; } ;;
387305a1a286Smrg  *)
387405a1a286Smrg    CC="$CC $ac_cv_prog_cc_c99"
387505a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
387605a1a286Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
387705a1a286Smrgesac
387805a1a286Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
3879d9c7fc6cSmrg
3880d9c7fc6cSmrgfi
3881d9c7fc6cSmrg
3882d9c7fc6cSmrg
3883d9c7fc6cSmrg
388405a1a286Smrgac_ext=c
388505a1a286Smrgac_cpp='$CPP $CPPFLAGS'
388605a1a286Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
388705a1a286Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
388805a1a286Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
388905a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
389005a1a286Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
389105a1a286Smrg# On Suns, sometimes $CPP names a directory.
389205a1a286Smrgif test -n "$CPP" && test -d "$CPP"; then
389305a1a286Smrg  CPP=
3894d9c7fc6cSmrgfi
389505a1a286Smrgif test -z "$CPP"; then
389605a1a286Smrg  if ${ac_cv_prog_CPP+:} false; then :
389705a1a286Smrg  $as_echo_n "(cached) " >&6
3898d9c7fc6cSmrgelse
389905a1a286Smrg      # Double quotes because CPP needs to be expanded
390005a1a286Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
390105a1a286Smrg    do
390205a1a286Smrg      ac_preproc_ok=false
390305a1a286Smrgfor ac_c_preproc_warn_flag in '' yes
390405a1a286Smrgdo
390505a1a286Smrg  # Use a header file that comes with gcc, so configuring glibc
390605a1a286Smrg  # with a fresh cross-compiler works.
390705a1a286Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
390805a1a286Smrg  # <limits.h> exists even on freestanding compilers.
390905a1a286Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
391005a1a286Smrg  # not just through cpp. "Syntax error" is here to catch this case.
391105a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
391205a1a286Smrg/* end confdefs.h.  */
391305a1a286Smrg#ifdef __STDC__
391405a1a286Smrg# include <limits.h>
391505a1a286Smrg#else
391605a1a286Smrg# include <assert.h>
391705a1a286Smrg#endif
391805a1a286Smrg		     Syntax error
391905a1a286Smrg_ACEOF
392005a1a286Smrgif ac_fn_c_try_cpp "$LINENO"; then :
392105a1a286Smrg
3922d9c7fc6cSmrgelse
392305a1a286Smrg  # Broken: fails on valid input.
392405a1a286Smrgcontinue
3925d9c7fc6cSmrgfi
392605a1a286Smrgrm -f conftest.err conftest.i conftest.$ac_ext
3927d9c7fc6cSmrg
392805a1a286Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
392905a1a286Smrg  # can be detected and how.
393005a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
393105a1a286Smrg/* end confdefs.h.  */
393205a1a286Smrg#include <ac_nonexistent.h>
393305a1a286Smrg_ACEOF
393405a1a286Smrgif ac_fn_c_try_cpp "$LINENO"; then :
393505a1a286Smrg  # Broken: success on invalid input.
393605a1a286Smrgcontinue
3937d9c7fc6cSmrgelse
393805a1a286Smrg  # Passes both tests.
393905a1a286Smrgac_preproc_ok=:
394005a1a286Smrgbreak
3941d9c7fc6cSmrgfi
394205a1a286Smrgrm -f conftest.err conftest.i conftest.$ac_ext
394305a1a286Smrg
394405a1a286Smrgdone
394505a1a286Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
394605a1a286Smrgrm -f conftest.i conftest.err conftest.$ac_ext
394705a1a286Smrgif $ac_preproc_ok; then :
394805a1a286Smrg  break
3949d9c7fc6cSmrgfi
3950d9c7fc6cSmrg
395105a1a286Smrg    done
395205a1a286Smrg    ac_cv_prog_CPP=$CPP
3953d9c7fc6cSmrg
395405a1a286Smrgfi
395505a1a286Smrg  CPP=$ac_cv_prog_CPP
3956d9c7fc6cSmrgelse
395705a1a286Smrg  ac_cv_prog_CPP=$CPP
3958d9c7fc6cSmrgfi
395905a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
396005a1a286Smrg$as_echo "$CPP" >&6; }
396105a1a286Smrgac_preproc_ok=false
396205a1a286Smrgfor ac_c_preproc_warn_flag in '' yes
396305a1a286Smrgdo
396405a1a286Smrg  # Use a header file that comes with gcc, so configuring glibc
396505a1a286Smrg  # with a fresh cross-compiler works.
396605a1a286Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
396705a1a286Smrg  # <limits.h> exists even on freestanding compilers.
396805a1a286Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
396905a1a286Smrg  # not just through cpp. "Syntax error" is here to catch this case.
397005a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
397105a1a286Smrg/* end confdefs.h.  */
397205a1a286Smrg#ifdef __STDC__
397305a1a286Smrg# include <limits.h>
397405a1a286Smrg#else
397505a1a286Smrg# include <assert.h>
397605a1a286Smrg#endif
397705a1a286Smrg		     Syntax error
397805a1a286Smrg_ACEOF
397905a1a286Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3980d9c7fc6cSmrg
3981d9c7fc6cSmrgelse
398205a1a286Smrg  # Broken: fails on valid input.
398305a1a286Smrgcontinue
3984d9c7fc6cSmrgfi
398505a1a286Smrgrm -f conftest.err conftest.i conftest.$ac_ext
3986d9c7fc6cSmrg
398705a1a286Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
398805a1a286Smrg  # can be detected and how.
398905a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
399005a1a286Smrg/* end confdefs.h.  */
399105a1a286Smrg#include <ac_nonexistent.h>
399205a1a286Smrg_ACEOF
399305a1a286Smrgif ac_fn_c_try_cpp "$LINENO"; then :
399405a1a286Smrg  # Broken: success on invalid input.
399505a1a286Smrgcontinue
3996d9c7fc6cSmrgelse
399705a1a286Smrg  # Passes both tests.
399805a1a286Smrgac_preproc_ok=:
399905a1a286Smrgbreak
4000d9c7fc6cSmrgfi
400105a1a286Smrgrm -f conftest.err conftest.i conftest.$ac_ext
400205a1a286Smrg
400305a1a286Smrgdone
400405a1a286Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
400505a1a286Smrgrm -f conftest.i conftest.err conftest.$ac_ext
400605a1a286Smrgif $ac_preproc_ok; then :
4007d9c7fc6cSmrg
4008d9c7fc6cSmrgelse
400905a1a286Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
401005a1a286Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
401105a1a286Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
401205a1a286SmrgSee \`config.log' for more details" "$LINENO" 5; }
401305a1a286Smrgfi
4014d9c7fc6cSmrg
401505a1a286Smrgac_ext=c
401605a1a286Smrgac_cpp='$CPP $CPPFLAGS'
401705a1a286Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
401805a1a286Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
401905a1a286Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4020d9c7fc6cSmrg
4021d9c7fc6cSmrg
402205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
402305a1a286Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
402405a1a286Smrgif ${ac_cv_path_GREP+:} false; then :
402505a1a286Smrg  $as_echo_n "(cached) " >&6
402605a1a286Smrgelse
402705a1a286Smrg  if test -z "$GREP"; then
402805a1a286Smrg  ac_path_GREP_found=false
402905a1a286Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
403005a1a286Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
403105a1a286Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
403205a1a286Smrgdo
403305a1a286Smrg  IFS=$as_save_IFS
403405a1a286Smrg  test -z "$as_dir" && as_dir=.
403505a1a286Smrg    for ac_prog in grep ggrep; do
403605a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
403705a1a286Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
403805a1a286Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
403905a1a286Smrg# Check for GNU ac_path_GREP and select it if it is found.
404005a1a286Smrg  # Check for GNU $ac_path_GREP
404105a1a286Smrgcase `"$ac_path_GREP" --version 2>&1` in
404205a1a286Smrg*GNU*)
404305a1a286Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
404405a1a286Smrg*)
404505a1a286Smrg  ac_count=0
404605a1a286Smrg  $as_echo_n 0123456789 >"conftest.in"
404705a1a286Smrg  while :
404805a1a286Smrg  do
404905a1a286Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
405005a1a286Smrg    mv "conftest.tmp" "conftest.in"
405105a1a286Smrg    cp "conftest.in" "conftest.nl"
405205a1a286Smrg    $as_echo 'GREP' >> "conftest.nl"
405305a1a286Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
405405a1a286Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
405505a1a286Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
405605a1a286Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
405705a1a286Smrg      # Best one so far, save it but keep looking for a better one
405805a1a286Smrg      ac_cv_path_GREP="$ac_path_GREP"
405905a1a286Smrg      ac_path_GREP_max=$ac_count
406005a1a286Smrg    fi
406105a1a286Smrg    # 10*(2^10) chars as input seems more than enough
406205a1a286Smrg    test $ac_count -gt 10 && break
406305a1a286Smrg  done
406405a1a286Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
406505a1a286Smrgesac
4066d9c7fc6cSmrg
406705a1a286Smrg      $ac_path_GREP_found && break 3
406805a1a286Smrg    done
406905a1a286Smrg  done
407005a1a286Smrg  done
407105a1a286SmrgIFS=$as_save_IFS
407205a1a286Smrg  if test -z "$ac_cv_path_GREP"; then
407305a1a286Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
407405a1a286Smrg  fi
407505a1a286Smrgelse
407605a1a286Smrg  ac_cv_path_GREP=$GREP
407705a1a286Smrgfi
4078d9c7fc6cSmrg
407905a1a286Smrgfi
408005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
408105a1a286Smrg$as_echo "$ac_cv_path_GREP" >&6; }
408205a1a286Smrg GREP="$ac_cv_path_GREP"
4083d9c7fc6cSmrg
4084d9c7fc6cSmrg
408505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
408605a1a286Smrg$as_echo_n "checking for egrep... " >&6; }
408705a1a286Smrgif ${ac_cv_path_EGREP+:} false; then :
408805a1a286Smrg  $as_echo_n "(cached) " >&6
408905a1a286Smrgelse
409005a1a286Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
409105a1a286Smrg   then ac_cv_path_EGREP="$GREP -E"
409205a1a286Smrg   else
409305a1a286Smrg     if test -z "$EGREP"; then
409405a1a286Smrg  ac_path_EGREP_found=false
409505a1a286Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
409605a1a286Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
409705a1a286Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
409805a1a286Smrgdo
409905a1a286Smrg  IFS=$as_save_IFS
410005a1a286Smrg  test -z "$as_dir" && as_dir=.
410105a1a286Smrg    for ac_prog in egrep; do
410205a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
410305a1a286Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
410405a1a286Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
410505a1a286Smrg# Check for GNU ac_path_EGREP and select it if it is found.
410605a1a286Smrg  # Check for GNU $ac_path_EGREP
410705a1a286Smrgcase `"$ac_path_EGREP" --version 2>&1` in
410805a1a286Smrg*GNU*)
410905a1a286Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
411005a1a286Smrg*)
411105a1a286Smrg  ac_count=0
411205a1a286Smrg  $as_echo_n 0123456789 >"conftest.in"
411305a1a286Smrg  while :
411405a1a286Smrg  do
411505a1a286Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
411605a1a286Smrg    mv "conftest.tmp" "conftest.in"
411705a1a286Smrg    cp "conftest.in" "conftest.nl"
411805a1a286Smrg    $as_echo 'EGREP' >> "conftest.nl"
411905a1a286Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
412005a1a286Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
412105a1a286Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
412205a1a286Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
412305a1a286Smrg      # Best one so far, save it but keep looking for a better one
412405a1a286Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
412505a1a286Smrg      ac_path_EGREP_max=$ac_count
412605a1a286Smrg    fi
412705a1a286Smrg    # 10*(2^10) chars as input seems more than enough
412805a1a286Smrg    test $ac_count -gt 10 && break
412905a1a286Smrg  done
413005a1a286Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
413105a1a286Smrgesac
413205a1a286Smrg
413305a1a286Smrg      $ac_path_EGREP_found && break 3
413405a1a286Smrg    done
413505a1a286Smrg  done
413605a1a286Smrg  done
413705a1a286SmrgIFS=$as_save_IFS
413805a1a286Smrg  if test -z "$ac_cv_path_EGREP"; then
413905a1a286Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4140d9c7fc6cSmrg  fi
414105a1a286Smrgelse
414205a1a286Smrg  ac_cv_path_EGREP=$EGREP
414305a1a286Smrgfi
4144d9c7fc6cSmrg
414505a1a286Smrg   fi
414605a1a286Smrgfi
414705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
414805a1a286Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
414905a1a286Smrg EGREP="$ac_cv_path_EGREP"
4150d9c7fc6cSmrg
4151d9c7fc6cSmrg
415205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
415305a1a286Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
415405a1a286Smrgif ${ac_cv_header_stdc+:} false; then :
415505a1a286Smrg  $as_echo_n "(cached) " >&6
415605a1a286Smrgelse
415705a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
415805a1a286Smrg/* end confdefs.h.  */
415905a1a286Smrg#include <stdlib.h>
416005a1a286Smrg#include <stdarg.h>
416105a1a286Smrg#include <string.h>
416205a1a286Smrg#include <float.h>
4163d9c7fc6cSmrg
416405a1a286Smrgint
416505a1a286Smrgmain ()
416605a1a286Smrg{
4167d9c7fc6cSmrg
416805a1a286Smrg  ;
416905a1a286Smrg  return 0;
417005a1a286Smrg}
417105a1a286Smrg_ACEOF
417205a1a286Smrgif ac_fn_c_try_compile "$LINENO"; then :
417305a1a286Smrg  ac_cv_header_stdc=yes
417405a1a286Smrgelse
417505a1a286Smrg  ac_cv_header_stdc=no
417605a1a286Smrgfi
417705a1a286Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178d9c7fc6cSmrg
417905a1a286Smrgif test $ac_cv_header_stdc = yes; then
418005a1a286Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
418105a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
418205a1a286Smrg/* end confdefs.h.  */
418305a1a286Smrg#include <string.h>
4184d9c7fc6cSmrg
418505a1a286Smrg_ACEOF
418605a1a286Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
418705a1a286Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
4188d9c7fc6cSmrg
418905a1a286Smrgelse
419005a1a286Smrg  ac_cv_header_stdc=no
419105a1a286Smrgfi
419205a1a286Smrgrm -f conftest*
4193d9c7fc6cSmrg
419405a1a286Smrgfi
4195d9c7fc6cSmrg
419605a1a286Smrgif test $ac_cv_header_stdc = yes; then
419705a1a286Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
419805a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
419905a1a286Smrg/* end confdefs.h.  */
420005a1a286Smrg#include <stdlib.h>
4201d9c7fc6cSmrg
420205a1a286Smrg_ACEOF
420305a1a286Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420405a1a286Smrg  $EGREP "free" >/dev/null 2>&1; then :
4205d9c7fc6cSmrg
420605a1a286Smrgelse
420705a1a286Smrg  ac_cv_header_stdc=no
420805a1a286Smrgfi
420905a1a286Smrgrm -f conftest*
4210d9c7fc6cSmrg
421105a1a286Smrgfi
421205a1a286Smrg
421305a1a286Smrgif test $ac_cv_header_stdc = yes; then
421405a1a286Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
421505a1a286Smrg  if test "$cross_compiling" = yes; then :
421605a1a286Smrg  :
421705a1a286Smrgelse
421805a1a286Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
421905a1a286Smrg/* end confdefs.h.  */
422005a1a286Smrg#include <ctype.h>
422105a1a286Smrg#include <stdlib.h>
422205a1a286Smrg#if ((' ' & 0x0FF) == 0x020)
422305a1a286Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
422405a1a286Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
422505a1a286Smrg#else
422605a1a286Smrg# define ISLOWER(c) \
422705a1a286Smrg		   (('a' <= (c) && (c) <= 'i') \
422805a1a286Smrg		     || ('j' <= (c) && (c) <= 'r') \
422905a1a286Smrg		     || ('s' <= (c) && (c) <= 'z'))
423005a1a286Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
423105a1a286Smrg#endif
423205a1a286Smrg
423305a1a286Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
423405a1a286Smrgint
423505a1a286Smrgmain ()
423605a1a286Smrg{
423705a1a286Smrg  int i;
423805a1a286Smrg  for (i = 0; i < 256; i++)
423905a1a286Smrg    if (XOR (islower (i), ISLOWER (i))
424005a1a286Smrg	|| toupper (i) != TOUPPER (i))
424105a1a286Smrg      return 2;
424205a1a286Smrg  return 0;
424305a1a286Smrg}
424405a1a286Smrg_ACEOF
424505a1a286Smrgif ac_fn_c_try_run "$LINENO"; then :
4246d9c7fc6cSmrg
424705a1a286Smrgelse
424805a1a286Smrg  ac_cv_header_stdc=no
424905a1a286Smrgfi
425005a1a286Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
425105a1a286Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4252d9c7fc6cSmrgfi
4253d9c7fc6cSmrg
425405a1a286Smrgfi
425505a1a286Smrgfi
425605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
425705a1a286Smrg$as_echo "$ac_cv_header_stdc" >&6; }
425805a1a286Smrgif test $ac_cv_header_stdc = yes; then
4259d9c7fc6cSmrg
426005a1a286Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4261d9c7fc6cSmrg
426205a1a286Smrgfi
4263d9c7fc6cSmrg
426405a1a286Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
426505a1a286Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
426605a1a286Smrg		  inttypes.h stdint.h unistd.h
426705a1a286Smrgdo :
426805a1a286Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
426905a1a286Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
427005a1a286Smrg"
427105a1a286Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
427205a1a286Smrg  cat >>confdefs.h <<_ACEOF
427305a1a286Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
427405a1a286Smrg_ACEOF
4275d9c7fc6cSmrg
427605a1a286Smrgfi
4277d9c7fc6cSmrg
427805a1a286Smrgdone
4279d9c7fc6cSmrg
4280d9c7fc6cSmrg
4281d9c7fc6cSmrg
4282d9c7fc6cSmrg
428305a1a286Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
428405a1a286Smrg	if test -n "$ac_tool_prefix"; then
428505a1a286Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
428605a1a286Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
428705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
428805a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
428905a1a286Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
429005a1a286Smrg  $as_echo_n "(cached) " >&6
429105a1a286Smrgelse
429205a1a286Smrg  case $PKG_CONFIG in
429305a1a286Smrg  [\\/]* | ?:[\\/]*)
429405a1a286Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4295d9c7fc6cSmrg  ;;
429605a1a286Smrg  *)
429705a1a286Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
429805a1a286Smrgfor as_dir in $PATH
429905a1a286Smrgdo
430005a1a286Smrg  IFS=$as_save_IFS
430105a1a286Smrg  test -z "$as_dir" && as_dir=.
430205a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
430305a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
430405a1a286Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
430505a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
430605a1a286Smrg    break 2
4307d9c7fc6cSmrg  fi
430805a1a286Smrgdone
430905a1a286Smrg  done
431005a1a286SmrgIFS=$as_save_IFS
431105a1a286Smrg
4312d9c7fc6cSmrg  ;;
431305a1a286Smrgesac
431405a1a286Smrgfi
431505a1a286SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
431605a1a286Smrgif test -n "$PKG_CONFIG"; then
431705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
431805a1a286Smrg$as_echo "$PKG_CONFIG" >&6; }
431905a1a286Smrgelse
432005a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
432105a1a286Smrg$as_echo "no" >&6; }
432205a1a286Smrgfi
4323d9c7fc6cSmrg
432405a1a286Smrg
432505a1a286Smrgfi
432605a1a286Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
432705a1a286Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
432805a1a286Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
432905a1a286Smrgset dummy pkg-config; ac_word=$2
433005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
433105a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
433205a1a286Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
433305a1a286Smrg  $as_echo_n "(cached) " >&6
433405a1a286Smrgelse
433505a1a286Smrg  case $ac_pt_PKG_CONFIG in
433605a1a286Smrg  [\\/]* | ?:[\\/]*)
433705a1a286Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
433805a1a286Smrg  ;;
433905a1a286Smrg  *)
434005a1a286Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
434105a1a286Smrgfor as_dir in $PATH
434205a1a286Smrgdo
434305a1a286Smrg  IFS=$as_save_IFS
434405a1a286Smrg  test -z "$as_dir" && as_dir=.
434505a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
434605a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
434705a1a286Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
434805a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
434905a1a286Smrg    break 2
4350d9c7fc6cSmrg  fi
435105a1a286Smrgdone
435205a1a286Smrg  done
435305a1a286SmrgIFS=$as_save_IFS
435405a1a286Smrg
4355d9c7fc6cSmrg  ;;
435605a1a286Smrgesac
435705a1a286Smrgfi
435805a1a286Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
435905a1a286Smrgif test -n "$ac_pt_PKG_CONFIG"; then
436005a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
436105a1a286Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
436205a1a286Smrgelse
436305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
436405a1a286Smrg$as_echo "no" >&6; }
436505a1a286Smrgfi
4366d9c7fc6cSmrg
436705a1a286Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
436805a1a286Smrg    PKG_CONFIG=""
436905a1a286Smrg  else
437005a1a286Smrg    case $cross_compiling:$ac_tool_warned in
437105a1a286Smrgyes:)
437205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
437305a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
437405a1a286Smrgac_tool_warned=yes ;;
437505a1a286Smrgesac
437605a1a286Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
437705a1a286Smrg  fi
4378d9c7fc6cSmrgelse
437905a1a286Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
438005a1a286Smrgfi
4381d9c7fc6cSmrg
438205a1a286Smrgfi
438305a1a286Smrgif test -n "$PKG_CONFIG"; then
438405a1a286Smrg	_pkg_min_version=0.9.0
438505a1a286Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
438605a1a286Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
438705a1a286Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
438805a1a286Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
438905a1a286Smrg$as_echo "yes" >&6; }
439005a1a286Smrg	else
439105a1a286Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
439205a1a286Smrg$as_echo "no" >&6; }
439305a1a286Smrg		PKG_CONFIG=""
439405a1a286Smrg	fi
4395d9c7fc6cSmrg
439605a1a286Smrgfi
439705a1a286Smrg# Make sure we can run config.sub.
439805a1a286Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
439905a1a286Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
440005a1a286Smrg
440105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
440205a1a286Smrg$as_echo_n "checking build system type... " >&6; }
440305a1a286Smrgif ${ac_cv_build+:} false; then :
440405a1a286Smrg  $as_echo_n "(cached) " >&6
440505a1a286Smrgelse
440605a1a286Smrg  ac_build_alias=$build_alias
440705a1a286Smrgtest "x$ac_build_alias" = x &&
440805a1a286Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
440905a1a286Smrgtest "x$ac_build_alias" = x &&
441005a1a286Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
441105a1a286Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
441205a1a286Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
441305a1a286Smrg
441405a1a286Smrgfi
441505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
441605a1a286Smrg$as_echo "$ac_cv_build" >&6; }
441705a1a286Smrgcase $ac_cv_build in
441805a1a286Smrg*-*-*) ;;
441905a1a286Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
442005a1a286Smrgesac
442105a1a286Smrgbuild=$ac_cv_build
442205a1a286Smrgac_save_IFS=$IFS; IFS='-'
442305a1a286Smrgset x $ac_cv_build
442405a1a286Smrgshift
442505a1a286Smrgbuild_cpu=$1
442605a1a286Smrgbuild_vendor=$2
442705a1a286Smrgshift; shift
442805a1a286Smrg# Remember, the first character of IFS is used to create $*,
442905a1a286Smrg# except with old shells:
443005a1a286Smrgbuild_os=$*
443105a1a286SmrgIFS=$ac_save_IFS
443205a1a286Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4433d9c7fc6cSmrg
443405a1a286Smrg
443505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
443605a1a286Smrg$as_echo_n "checking host system type... " >&6; }
443705a1a286Smrgif ${ac_cv_host+:} false; then :
443805a1a286Smrg  $as_echo_n "(cached) " >&6
4439d9c7fc6cSmrgelse
444005a1a286Smrg  if test "x$host_alias" = x; then
444105a1a286Smrg  ac_cv_host=$ac_cv_build
444205a1a286Smrgelse
444305a1a286Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
444405a1a286Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
444505a1a286Smrgfi
4446d9c7fc6cSmrg
4447d9c7fc6cSmrgfi
444805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
444905a1a286Smrg$as_echo "$ac_cv_host" >&6; }
445005a1a286Smrgcase $ac_cv_host in
445105a1a286Smrg*-*-*) ;;
445205a1a286Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
445305a1a286Smrgesac
445405a1a286Smrghost=$ac_cv_host
445505a1a286Smrgac_save_IFS=$IFS; IFS='-'
445605a1a286Smrgset x $ac_cv_host
445705a1a286Smrgshift
445805a1a286Smrghost_cpu=$1
445905a1a286Smrghost_vendor=$2
446005a1a286Smrgshift; shift
446105a1a286Smrg# Remember, the first character of IFS is used to create $*,
446205a1a286Smrg# except with old shells:
446305a1a286Smrghost_os=$*
446405a1a286SmrgIFS=$ac_save_IFS
446505a1a286Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
446605a1a286Smrg
446705a1a286Smrg
446805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
446905a1a286Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
447005a1a286Smrgif ${ac_cv_path_SED+:} false; then :
447105a1a286Smrg  $as_echo_n "(cached) " >&6
447205a1a286Smrgelse
447305a1a286Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
447405a1a286Smrg     for ac_i in 1 2 3 4 5 6 7; do
447505a1a286Smrg       ac_script="$ac_script$as_nl$ac_script"
447605a1a286Smrg     done
447705a1a286Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
447805a1a286Smrg     { ac_script=; unset ac_script;}
447905a1a286Smrg     if test -z "$SED"; then
448005a1a286Smrg  ac_path_SED_found=false
448105a1a286Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
448205a1a286Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
448305a1a286Smrgfor as_dir in $PATH
448405a1a286Smrgdo
448505a1a286Smrg  IFS=$as_save_IFS
448605a1a286Smrg  test -z "$as_dir" && as_dir=.
448705a1a286Smrg    for ac_prog in sed gsed; do
448805a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
448905a1a286Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
449005a1a286Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
449105a1a286Smrg# Check for GNU ac_path_SED and select it if it is found.
449205a1a286Smrg  # Check for GNU $ac_path_SED
449305a1a286Smrgcase `"$ac_path_SED" --version 2>&1` in
449405a1a286Smrg*GNU*)
449505a1a286Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
449605a1a286Smrg*)
449705a1a286Smrg  ac_count=0
449805a1a286Smrg  $as_echo_n 0123456789 >"conftest.in"
449905a1a286Smrg  while :
450005a1a286Smrg  do
450105a1a286Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
450205a1a286Smrg    mv "conftest.tmp" "conftest.in"
450305a1a286Smrg    cp "conftest.in" "conftest.nl"
450405a1a286Smrg    $as_echo '' >> "conftest.nl"
450505a1a286Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
450605a1a286Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
450705a1a286Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
450805a1a286Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
450905a1a286Smrg      # Best one so far, save it but keep looking for a better one
451005a1a286Smrg      ac_cv_path_SED="$ac_path_SED"
451105a1a286Smrg      ac_path_SED_max=$ac_count
451205a1a286Smrg    fi
451305a1a286Smrg    # 10*(2^10) chars as input seems more than enough
451405a1a286Smrg    test $ac_count -gt 10 && break
451505a1a286Smrg  done
451605a1a286Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
451705a1a286Smrgesac
4518d9c7fc6cSmrg
451905a1a286Smrg      $ac_path_SED_found && break 3
452005a1a286Smrg    done
452105a1a286Smrg  done
452205a1a286Smrg  done
452305a1a286SmrgIFS=$as_save_IFS
452405a1a286Smrg  if test -z "$ac_cv_path_SED"; then
452505a1a286Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4526d9c7fc6cSmrg  fi
452705a1a286Smrgelse
452805a1a286Smrg  ac_cv_path_SED=$SED
452905a1a286Smrgfi
4530d9c7fc6cSmrg
453105a1a286Smrgfi
453205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
453305a1a286Smrg$as_echo "$ac_cv_path_SED" >&6; }
453405a1a286Smrg SED="$ac_cv_path_SED"
453505a1a286Smrg  rm -f conftest.sed
4536d9c7fc6cSmrg
4537d9c7fc6cSmrg
4538d9c7fc6cSmrg
4539d9c7fc6cSmrg
454005a1a286Smrg
454105a1a286Smrgif  test "x$GCC" = xyes ; then
454205a1a286Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
454305a1a286Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
454405a1a286Smrg-Wbad-function-cast -Wformat=2"
454505a1a286Smrg    case `$CC -dumpversion` in
454605a1a286Smrg    3.4.* | 4.*)
454705a1a286Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
454805a1a286Smrg	;;
454905a1a286Smrg    esac
4550d9c7fc6cSmrgelse
455105a1a286Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
455205a1a286Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
455305a1a286Smrg  SUNCC="yes"
4554d9c7fc6cSmrgelse
455505a1a286Smrg  SUNCC="no"
4556d9c7fc6cSmrgfi
4557d9c7fc6cSmrg
455805a1a286Smrg    if test "x$SUNCC" = "xyes"; then
455905a1a286Smrg	CWARNFLAGS="-v"
456005a1a286Smrg    fi
4561d9c7fc6cSmrgfi
4562d9c7fc6cSmrg
4563d9c7fc6cSmrg
4564d9c7fc6cSmrg
456505a1a286Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4566d9c7fc6cSmrg
4567d9c7fc6cSmrg
456805a1a286Smrg
456905a1a286Smrg# Check whether --enable-strict-compilation was given.
457005a1a286Smrgif test "${enable_strict_compilation+set}" = set; then :
457105a1a286Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4572d9c7fc6cSmrgelse
457305a1a286Smrg  STRICT_COMPILE=no
4574d9c7fc6cSmrgfi
4575d9c7fc6cSmrg
457605a1a286Smrgif test "x$STRICT_COMPILE" = "xyes"; then
457705a1a286Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
457805a1a286Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
457905a1a286Smrg  SUNCC="yes"
458005a1a286Smrgelse
458105a1a286Smrg  SUNCC="no"
4582d9c7fc6cSmrgfi
4583d9c7fc6cSmrg
458405a1a286Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
458505a1a286Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
458605a1a286Smrg  INTELCC="yes"
4587d9c7fc6cSmrgelse
458805a1a286Smrg  INTELCC="no"
4589d9c7fc6cSmrgfi
4590d9c7fc6cSmrg
459105a1a286Smrg	if test "x$GCC" = xyes ; then
459205a1a286Smrg		STRICT_CFLAGS="-pedantic -Werror"
459305a1a286Smrg	elif test "x$SUNCC" = "xyes"; then
459405a1a286Smrg		STRICT_CFLAGS="-errwarn"
459505a1a286Smrg    elif test "x$INTELCC" = "xyes"; then
459605a1a286Smrg		STRICT_CFLAGS="-Werror"
459705a1a286Smrg	fi
4598d9c7fc6cSmrgfi
459905a1a286SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4600d9c7fc6cSmrg
4601d9c7fc6cSmrg
4602d9c7fc6cSmrg
4603d9c7fc6cSmrg
460405a1a286Smrgcat >>confdefs.h <<_ACEOF
460505a1a286Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4606d9c7fc6cSmrg_ACEOF
4607d9c7fc6cSmrg
460805a1a286Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
460905a1a286Smrg	if test "x$PVM" = "x"; then
461005a1a286Smrg		PVM="0"
461105a1a286Smrg	fi
4612d9c7fc6cSmrg
461305a1a286Smrgcat >>confdefs.h <<_ACEOF
461405a1a286Smrg#define PACKAGE_VERSION_MINOR $PVM
4615d9c7fc6cSmrg_ACEOF
4616d9c7fc6cSmrg
461705a1a286Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
461805a1a286Smrg	if test "x$PVP" = "x"; then
461905a1a286Smrg		PVP="0"
462005a1a286Smrg	fi
4621d9c7fc6cSmrg
462205a1a286Smrgcat >>confdefs.h <<_ACEOF
462305a1a286Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4624d9c7fc6cSmrg_ACEOF
4625d9c7fc6cSmrg
4626d9c7fc6cSmrg
4627d9c7fc6cSmrg
462805a1a286SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
462905a1a286Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
463005a1a286Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
463105a1a286Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4632d9c7fc6cSmrg
463305a1a286Smrg
463405a1a286Smrg
463505a1a286Smrg
463605a1a286Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
463705a1a286SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
463805a1a286Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
463905a1a286Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
464005a1a286Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
464105a1a286Smrg
464205a1a286Smrg
464305a1a286Smrg
464405a1a286Smrg
464505a1a286Smrg
464605a1a286Smrg
464705a1a286Smrgif test x$APP_MAN_SUFFIX = x    ; then
464805a1a286Smrg    APP_MAN_SUFFIX=1
464905a1a286Smrgfi
465005a1a286Smrgif test x$APP_MAN_DIR = x    ; then
465105a1a286Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4652d9c7fc6cSmrgfi
4653d9c7fc6cSmrg
465405a1a286Smrgif test x$LIB_MAN_SUFFIX = x    ; then
465505a1a286Smrg    LIB_MAN_SUFFIX=3
465605a1a286Smrgfi
465705a1a286Smrgif test x$LIB_MAN_DIR = x    ; then
465805a1a286Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4659d9c7fc6cSmrgfi
4660d9c7fc6cSmrg
466105a1a286Smrgif test x$FILE_MAN_SUFFIX = x    ; then
466205a1a286Smrg    case $host_os in
466305a1a286Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
466405a1a286Smrg	*)		FILE_MAN_SUFFIX=5  ;;
466505a1a286Smrg    esac
466605a1a286Smrgfi
466705a1a286Smrgif test x$FILE_MAN_DIR = x    ; then
466805a1a286Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
466905a1a286Smrgfi
4670d9c7fc6cSmrg
467105a1a286Smrgif test x$MISC_MAN_SUFFIX = x    ; then
467205a1a286Smrg    case $host_os in
467305a1a286Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
467405a1a286Smrg	*)		MISC_MAN_SUFFIX=7  ;;
467505a1a286Smrg    esac
467605a1a286Smrgfi
467705a1a286Smrgif test x$MISC_MAN_DIR = x    ; then
467805a1a286Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
467905a1a286Smrgfi
4680d9c7fc6cSmrg
468105a1a286Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
468205a1a286Smrg    case $host_os in
468305a1a286Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
468405a1a286Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
468505a1a286Smrg    esac
4686d9c7fc6cSmrgfi
468705a1a286Smrgif test x$DRIVER_MAN_DIR = x    ; then
468805a1a286Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4689d9c7fc6cSmrgfi
469005a1a286Smrg
469105a1a286Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
469205a1a286Smrg    case $host_os in
469305a1a286Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
469405a1a286Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
469505a1a286Smrg    esac
4696d9c7fc6cSmrgfi
469705a1a286Smrgif test x$ADMIN_MAN_DIR = x    ; then
469805a1a286Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4699d9c7fc6cSmrgfi
4700d9c7fc6cSmrg
4701d9c7fc6cSmrg
4702d9c7fc6cSmrg
4703d9c7fc6cSmrg
4704d9c7fc6cSmrg
4705d9c7fc6cSmrg
4706d9c7fc6cSmrg
4707d9c7fc6cSmrg
4708d9c7fc6cSmrg
4709d9c7fc6cSmrg
4710d9c7fc6cSmrg
4711d9c7fc6cSmrg
4712d9c7fc6cSmrg
4713d9c7fc6cSmrg
4714d9c7fc6cSmrg
471505a1a286SmrgXORG_MAN_PAGE="X Version 11"
471605a1a286Smrg
471705a1a286SmrgMAN_SUBSTS="\
471805a1a286Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
471905a1a286Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
472005a1a286Smrg	-e 's|__xservername__|Xorg|g' \
472105a1a286Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
472205a1a286Smrg	-e 's|__projectroot__|\$(prefix)|g' \
472305a1a286Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
472405a1a286Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
472505a1a286Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
472605a1a286Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
472705a1a286Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
472805a1a286Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
472905a1a286Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
473005a1a286Smrg
473105a1a286Smrg
473205a1a286Smrg
473305a1a286Smrg# Check whether --enable-silent-rules was given.
473405a1a286Smrgif test "${enable_silent_rules+set}" = set; then :
473505a1a286Smrg  enableval=$enable_silent_rules;
4736d9c7fc6cSmrgfi
4737d9c7fc6cSmrg
473805a1a286Smrgcase $enable_silent_rules in
473905a1a286Smrgyes) AM_DEFAULT_VERBOSITY=0;;
474005a1a286Smrgno)  AM_DEFAULT_VERBOSITY=1;;
474105a1a286Smrg*)   AM_DEFAULT_VERBOSITY=0;;
474205a1a286Smrgesac
474305a1a286SmrgAM_BACKSLASH='\'
4744d9c7fc6cSmrg
4745d9c7fc6cSmrg
474605a1a286Smrgac_config_headers="$ac_config_headers config.h"
4747d9c7fc6cSmrg
4748d9c7fc6cSmrg
474905a1a286Smrg# Check for progs
475005a1a286Smrgcase `pwd` in
475105a1a286Smrg  *\ * | *\	*)
475205a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
475305a1a286Smrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
475405a1a286Smrgesac
4755d9c7fc6cSmrg
4756d9c7fc6cSmrg
475705a1a286Smrg
475805a1a286Smrgmacro_version='2.2.10'
475905a1a286Smrgmacro_revision='1.3175'
476005a1a286Smrg
476105a1a286Smrg
476205a1a286Smrg
476305a1a286Smrg
476405a1a286Smrg
476505a1a286Smrg
476605a1a286Smrg
476705a1a286Smrg
476805a1a286Smrg
476905a1a286Smrg
477005a1a286Smrg
477105a1a286Smrg
477205a1a286Smrg
477305a1a286Smrgltmain="$ac_aux_dir/ltmain.sh"
477405a1a286Smrg
477505a1a286Smrg# Backslashify metacharacters that are still active within
477605a1a286Smrg# double-quoted strings.
477705a1a286Smrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
477805a1a286Smrg
477905a1a286Smrg# Same as above, but do not quote variable references.
478005a1a286Smrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
478105a1a286Smrg
478205a1a286Smrg# Sed substitution to delay expansion of an escaped shell variable in a
478305a1a286Smrg# double_quote_subst'ed string.
478405a1a286Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
478505a1a286Smrg
478605a1a286Smrg# Sed substitution to delay expansion of an escaped single quote.
478705a1a286Smrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
478805a1a286Smrg
478905a1a286Smrg# Sed substitution to avoid accidental globbing in evaled expressions
479005a1a286Smrgno_glob_subst='s/\*/\\\*/g'
479105a1a286Smrg
479205a1a286SmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
479305a1a286SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
479405a1a286SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
479505a1a286Smrg
479605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
479705a1a286Smrg$as_echo_n "checking how to print strings... " >&6; }
479805a1a286Smrg# Test print first, because it will be a builtin if present.
479905a1a286Smrgif test "X`print -r -- -n 2>/dev/null`" = X-n && \
480005a1a286Smrg   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
480105a1a286Smrg  ECHO='print -r --'
480205a1a286Smrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
480305a1a286Smrg  ECHO='printf %s\n'
480405a1a286Smrgelse
480505a1a286Smrg  # Use this function as a fallback that always works.
480605a1a286Smrg  func_fallback_echo ()
480705a1a286Smrg  {
480805a1a286Smrg    eval 'cat <<_LTECHO_EOF
480905a1a286Smrg$1
481005a1a286Smrg_LTECHO_EOF'
481105a1a286Smrg  }
481205a1a286Smrg  ECHO='func_fallback_echo'
4813d9c7fc6cSmrgfi
4814d9c7fc6cSmrg
481505a1a286Smrg# func_echo_all arg...
481605a1a286Smrg# Invoke $ECHO with all args, space-separated.
481705a1a286Smrgfunc_echo_all ()
481805a1a286Smrg{
481905a1a286Smrg    $ECHO ""
482005a1a286Smrg}
482105a1a286Smrg
482205a1a286Smrgcase "$ECHO" in
482305a1a286Smrg  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
482405a1a286Smrg$as_echo "printf" >&6; } ;;
482505a1a286Smrg  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
482605a1a286Smrg$as_echo "print -r" >&6; } ;;
482705a1a286Smrg  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
482805a1a286Smrg$as_echo "cat" >&6; } ;;
4829d9c7fc6cSmrgesac
4830d9c7fc6cSmrg
4831d9c7fc6cSmrg
4832d9c7fc6cSmrg
4833d9c7fc6cSmrg
483405a1a286Smrg
483505a1a286Smrg
483605a1a286Smrg
483705a1a286Smrg
483805a1a286Smrg
483905a1a286Smrg
484005a1a286Smrg
484105a1a286Smrg
484205a1a286Smrg
484305a1a286Smrg
484405a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
484505a1a286Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
484605a1a286Smrgif ${ac_cv_path_SED+:} false; then :
484705a1a286Smrg  $as_echo_n "(cached) " >&6
4848d9c7fc6cSmrgelse
484905a1a286Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
485005a1a286Smrg     for ac_i in 1 2 3 4 5 6 7; do
485105a1a286Smrg       ac_script="$ac_script$as_nl$ac_script"
485205a1a286Smrg     done
485305a1a286Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
485405a1a286Smrg     { ac_script=; unset ac_script;}
485505a1a286Smrg     if test -z "$SED"; then
485605a1a286Smrg  ac_path_SED_found=false
485705a1a286Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
485805a1a286Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859d9c7fc6cSmrgfor as_dir in $PATH
4860d9c7fc6cSmrgdo
4861d9c7fc6cSmrg  IFS=$as_save_IFS
4862d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
486305a1a286Smrg    for ac_prog in sed gsed; do
486405a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
486505a1a286Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
486605a1a286Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
486705a1a286Smrg# Check for GNU ac_path_SED and select it if it is found.
486805a1a286Smrg  # Check for GNU $ac_path_SED
486905a1a286Smrgcase `"$ac_path_SED" --version 2>&1` in
487005a1a286Smrg*GNU*)
487105a1a286Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
487205a1a286Smrg*)
487305a1a286Smrg  ac_count=0
487405a1a286Smrg  $as_echo_n 0123456789 >"conftest.in"
487505a1a286Smrg  while :
487605a1a286Smrg  do
487705a1a286Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
487805a1a286Smrg    mv "conftest.tmp" "conftest.in"
487905a1a286Smrg    cp "conftest.in" "conftest.nl"
488005a1a286Smrg    $as_echo '' >> "conftest.nl"
488105a1a286Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
488205a1a286Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
488305a1a286Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
488405a1a286Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
488505a1a286Smrg      # Best one so far, save it but keep looking for a better one
488605a1a286Smrg      ac_cv_path_SED="$ac_path_SED"
488705a1a286Smrg      ac_path_SED_max=$ac_count
488805a1a286Smrg    fi
488905a1a286Smrg    # 10*(2^10) chars as input seems more than enough
489005a1a286Smrg    test $ac_count -gt 10 && break
489105a1a286Smrg  done
489205a1a286Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
489305a1a286Smrgesac
4894d9c7fc6cSmrg
489505a1a286Smrg      $ac_path_SED_found && break 3
489605a1a286Smrg    done
489705a1a286Smrg  done
489805a1a286Smrg  done
489905a1a286SmrgIFS=$as_save_IFS
490005a1a286Smrg  if test -z "$ac_cv_path_SED"; then
490105a1a286Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
490205a1a286Smrg  fi
4903d9c7fc6cSmrgelse
490405a1a286Smrg  ac_cv_path_SED=$SED
4905d9c7fc6cSmrgfi
4906d9c7fc6cSmrg
4907d9c7fc6cSmrgfi
490805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
490905a1a286Smrg$as_echo "$ac_cv_path_SED" >&6; }
491005a1a286Smrg SED="$ac_cv_path_SED"
491105a1a286Smrg  rm -f conftest.sed
491205a1a286Smrg
491305a1a286Smrgtest -z "$SED" && SED=sed
491405a1a286SmrgXsed="$SED -e 1s/^X//"
491505a1a286Smrg
491605a1a286Smrg
491705a1a286Smrg
491805a1a286Smrg
491905a1a286Smrg
492005a1a286Smrg
492105a1a286Smrg
492205a1a286Smrg
492305a1a286Smrg
492405a1a286Smrg
492505a1a286Smrg
492605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
492705a1a286Smrg$as_echo_n "checking for fgrep... " >&6; }
492805a1a286Smrgif ${ac_cv_path_FGREP+:} false; then :
492905a1a286Smrg  $as_echo_n "(cached) " >&6
4930d9c7fc6cSmrgelse
493105a1a286Smrg  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
493205a1a286Smrg   then ac_cv_path_FGREP="$GREP -F"
493305a1a286Smrg   else
493405a1a286Smrg     if test -z "$FGREP"; then
493505a1a286Smrg  ac_path_FGREP_found=false
493605a1a286Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
493705a1a286Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
493805a1a286Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4939d9c7fc6cSmrgdo
4940d9c7fc6cSmrg  IFS=$as_save_IFS
4941d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
494205a1a286Smrg    for ac_prog in fgrep; do
494305a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
494405a1a286Smrg      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
494505a1a286Smrg      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
494605a1a286Smrg# Check for GNU ac_path_FGREP and select it if it is found.
494705a1a286Smrg  # Check for GNU $ac_path_FGREP
494805a1a286Smrgcase `"$ac_path_FGREP" --version 2>&1` in
494905a1a286Smrg*GNU*)
495005a1a286Smrg  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
495105a1a286Smrg*)
495205a1a286Smrg  ac_count=0
495305a1a286Smrg  $as_echo_n 0123456789 >"conftest.in"
495405a1a286Smrg  while :
495505a1a286Smrg  do
495605a1a286Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
495705a1a286Smrg    mv "conftest.tmp" "conftest.in"
495805a1a286Smrg    cp "conftest.in" "conftest.nl"
495905a1a286Smrg    $as_echo 'FGREP' >> "conftest.nl"
496005a1a286Smrg    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
496105a1a286Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
496205a1a286Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
496305a1a286Smrg    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
496405a1a286Smrg      # Best one so far, save it but keep looking for a better one
496505a1a286Smrg      ac_cv_path_FGREP="$ac_path_FGREP"
496605a1a286Smrg      ac_path_FGREP_max=$ac_count
496705a1a286Smrg    fi
496805a1a286Smrg    # 10*(2^10) chars as input seems more than enough
496905a1a286Smrg    test $ac_count -gt 10 && break
497005a1a286Smrg  done
497105a1a286Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
497205a1a286Smrgesac
4973d9c7fc6cSmrg
497405a1a286Smrg      $ac_path_FGREP_found && break 3
497505a1a286Smrg    done
497605a1a286Smrg  done
497705a1a286Smrg  done
497805a1a286SmrgIFS=$as_save_IFS
497905a1a286Smrg  if test -z "$ac_cv_path_FGREP"; then
498005a1a286Smrg    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
498105a1a286Smrg  fi
4982d9c7fc6cSmrgelse
498305a1a286Smrg  ac_cv_path_FGREP=$FGREP
4984d9c7fc6cSmrgfi
4985d9c7fc6cSmrg
498605a1a286Smrg   fi
4987d9c7fc6cSmrgfi
498805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
498905a1a286Smrg$as_echo "$ac_cv_path_FGREP" >&6; }
499005a1a286Smrg FGREP="$ac_cv_path_FGREP"
4991d9c7fc6cSmrg
4992d9c7fc6cSmrg
499305a1a286Smrgtest -z "$GREP" && GREP=grep
4994d9c7fc6cSmrg
4995d9c7fc6cSmrg
4996d9c7fc6cSmrg
4997d9c7fc6cSmrg
4998d9c7fc6cSmrg
4999d9c7fc6cSmrg
5000d9c7fc6cSmrg
5001d9c7fc6cSmrg
5002d9c7fc6cSmrg
5003d9c7fc6cSmrg
5004d9c7fc6cSmrg
5005d9c7fc6cSmrg
5006d9c7fc6cSmrg
5007d9c7fc6cSmrg
5008d9c7fc6cSmrg
5009d9c7fc6cSmrg
5010d9c7fc6cSmrg
5011d9c7fc6cSmrg
5012d9c7fc6cSmrg
501305a1a286Smrg# Check whether --with-gnu-ld was given.
501405a1a286Smrgif test "${with_gnu_ld+set}" = set; then :
501505a1a286Smrg  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5016d9c7fc6cSmrgelse
501705a1a286Smrg  with_gnu_ld=no
5018d9c7fc6cSmrgfi
5019d9c7fc6cSmrg
502005a1a286Smrgac_prog=ld
502105a1a286Smrgif test "$GCC" = yes; then
502205a1a286Smrg  # Check if gcc -print-prog-name=ld gives a path.
502305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
502405a1a286Smrg$as_echo_n "checking for ld used by $CC... " >&6; }
502505a1a286Smrg  case $host in
502605a1a286Smrg  *-*-mingw*)
502705a1a286Smrg    # gcc leaves a trailing carriage return which upsets mingw
502805a1a286Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
502905a1a286Smrg  *)
503005a1a286Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
503105a1a286Smrg  esac
503205a1a286Smrg  case $ac_prog in
503305a1a286Smrg    # Accept absolute paths.
503405a1a286Smrg    [\\/]* | ?:[\\/]*)
503505a1a286Smrg      re_direlt='/[^/][^/]*/\.\./'
503605a1a286Smrg      # Canonicalize the pathname of ld
503705a1a286Smrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
503805a1a286Smrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
503905a1a286Smrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
504005a1a286Smrg      done
504105a1a286Smrg      test -z "$LD" && LD="$ac_prog"
504205a1a286Smrg      ;;
504305a1a286Smrg  "")
504405a1a286Smrg    # If it fails, then pretend we aren't using GCC.
504505a1a286Smrg    ac_prog=ld
504605a1a286Smrg    ;;
504705a1a286Smrg  *)
504805a1a286Smrg    # If it is relative, then search for the first ld in PATH.
504905a1a286Smrg    with_gnu_ld=unknown
505005a1a286Smrg    ;;
505105a1a286Smrg  esac
505205a1a286Smrgelif test "$with_gnu_ld" = yes; then
505305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
505405a1a286Smrg$as_echo_n "checking for GNU ld... " >&6; }
5055d9c7fc6cSmrgelse
505605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
505705a1a286Smrg$as_echo_n "checking for non-GNU ld... " >&6; }
5058d9c7fc6cSmrgfi
505905a1a286Smrgif ${lt_cv_path_LD+:} false; then :
506005a1a286Smrg  $as_echo_n "(cached) " >&6
5061d9c7fc6cSmrgelse
506205a1a286Smrg  if test -z "$LD"; then
506305a1a286Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
506405a1a286Smrg  for ac_dir in $PATH; do
506505a1a286Smrg    IFS="$lt_save_ifs"
506605a1a286Smrg    test -z "$ac_dir" && ac_dir=.
506705a1a286Smrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
506805a1a286Smrg      lt_cv_path_LD="$ac_dir/$ac_prog"
506905a1a286Smrg      # Check to see if the program is GNU ld.  I'd rather use --version,
507005a1a286Smrg      # but apparently some variants of GNU ld only accept -v.
507105a1a286Smrg      # Break only if it was the GNU/non-GNU ld that we prefer.
507205a1a286Smrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
507305a1a286Smrg      *GNU* | *'with BFD'*)
507405a1a286Smrg	test "$with_gnu_ld" != no && break
507505a1a286Smrg	;;
507605a1a286Smrg      *)
507705a1a286Smrg	test "$with_gnu_ld" != yes && break
507805a1a286Smrg	;;
507905a1a286Smrg      esac
508005a1a286Smrg    fi
508105a1a286Smrg  done
508205a1a286Smrg  IFS="$lt_save_ifs"
508305a1a286Smrgelse
508405a1a286Smrg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
508505a1a286Smrgfi
5086d9c7fc6cSmrgfi
5087d9c7fc6cSmrg
508805a1a286SmrgLD="$lt_cv_path_LD"
508905a1a286Smrgif test -n "$LD"; then
509005a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
509105a1a286Smrg$as_echo "$LD" >&6; }
5092d9c7fc6cSmrgelse
509305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
509405a1a286Smrg$as_echo "no" >&6; }
5095d9c7fc6cSmrgfi
509605a1a286Smrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
509705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
509805a1a286Smrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
509905a1a286Smrgif ${lt_cv_prog_gnu_ld+:} false; then :
510005a1a286Smrg  $as_echo_n "(cached) " >&6
5101d9c7fc6cSmrgelse
510205a1a286Smrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
510305a1a286Smrgcase `$LD -v 2>&1 </dev/null` in
510405a1a286Smrg*GNU* | *'with BFD'*)
510505a1a286Smrg  lt_cv_prog_gnu_ld=yes
510605a1a286Smrg  ;;
510705a1a286Smrg*)
510805a1a286Smrg  lt_cv_prog_gnu_ld=no
510905a1a286Smrg  ;;
511005a1a286Smrgesac
5111d9c7fc6cSmrgfi
511205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
511305a1a286Smrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
511405a1a286Smrgwith_gnu_ld=$lt_cv_prog_gnu_ld
5115d9c7fc6cSmrg
5116d9c7fc6cSmrg
5117d9c7fc6cSmrg
5118d9c7fc6cSmrg
5119d9c7fc6cSmrg
5120d9c7fc6cSmrg
5121d9c7fc6cSmrg
5122d9c7fc6cSmrg
5123d9c7fc6cSmrg
512405a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
512505a1a286Smrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
512605a1a286Smrgif ${lt_cv_path_NM+:} false; then :
512705a1a286Smrg  $as_echo_n "(cached) " >&6
512805a1a286Smrgelse
512905a1a286Smrg  if test -n "$NM"; then
513005a1a286Smrg  # Let the user override the test.
513105a1a286Smrg  lt_cv_path_NM="$NM"
513205a1a286Smrgelse
513305a1a286Smrg  lt_nm_to_check="${ac_tool_prefix}nm"
513405a1a286Smrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
513505a1a286Smrg    lt_nm_to_check="$lt_nm_to_check nm"
513605a1a286Smrg  fi
513705a1a286Smrg  for lt_tmp_nm in $lt_nm_to_check; do
513805a1a286Smrg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
513905a1a286Smrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
514005a1a286Smrg      IFS="$lt_save_ifs"
514105a1a286Smrg      test -z "$ac_dir" && ac_dir=.
514205a1a286Smrg      tmp_nm="$ac_dir/$lt_tmp_nm"
514305a1a286Smrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
514405a1a286Smrg	# Check to see if the nm accepts a BSD-compat flag.
514505a1a286Smrg	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
514605a1a286Smrg	#   nm: unknown option "B" ignored
514705a1a286Smrg	# Tru64's nm complains that /dev/null is an invalid object file
514805a1a286Smrg	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
514905a1a286Smrg	*/dev/null* | *'Invalid file or object type'*)
515005a1a286Smrg	  lt_cv_path_NM="$tmp_nm -B"
515105a1a286Smrg	  break
515205a1a286Smrg	  ;;
515305a1a286Smrg	*)
515405a1a286Smrg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
515505a1a286Smrg	  */dev/null*)
515605a1a286Smrg	    lt_cv_path_NM="$tmp_nm -p"
515705a1a286Smrg	    break
515805a1a286Smrg	    ;;
515905a1a286Smrg	  *)
516005a1a286Smrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
516105a1a286Smrg	    continue # so that we can try to find one that supports BSD flags
516205a1a286Smrg	    ;;
516305a1a286Smrg	  esac
516405a1a286Smrg	  ;;
516505a1a286Smrg	esac
516605a1a286Smrg      fi
516705a1a286Smrg    done
516805a1a286Smrg    IFS="$lt_save_ifs"
516905a1a286Smrg  done
517005a1a286Smrg  : ${lt_cv_path_NM=no}
5171d9c7fc6cSmrgfi
517205a1a286Smrgfi
517305a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
517405a1a286Smrg$as_echo "$lt_cv_path_NM" >&6; }
517505a1a286Smrgif test "$lt_cv_path_NM" != "no"; then
517605a1a286Smrg  NM="$lt_cv_path_NM"
517705a1a286Smrgelse
517805a1a286Smrg  # Didn't find any BSD compatible name lister, look for dumpbin.
517905a1a286Smrg  if test -n "$DUMPBIN"; then :
518005a1a286Smrg    # Let the user override the test.
518105a1a286Smrg  else
518205a1a286Smrg    if test -n "$ac_tool_prefix"; then
518305a1a286Smrg  for ac_prog in dumpbin "link -dump"
5184d9c7fc6cSmrg  do
5185d9c7fc6cSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5186d9c7fc6cSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
518705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
518805a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
518905a1a286Smrgif ${ac_cv_prog_DUMPBIN+:} false; then :
519005a1a286Smrg  $as_echo_n "(cached) " >&6
5191d9c7fc6cSmrgelse
519205a1a286Smrg  if test -n "$DUMPBIN"; then
519305a1a286Smrg  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5194d9c7fc6cSmrgelse
5195d9c7fc6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196d9c7fc6cSmrgfor as_dir in $PATH
5197d9c7fc6cSmrgdo
5198d9c7fc6cSmrg  IFS=$as_save_IFS
5199d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
520005a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
520105a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
520205a1a286Smrg    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
520305a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204d9c7fc6cSmrg    break 2
5205d9c7fc6cSmrg  fi
5206d9c7fc6cSmrgdone
520705a1a286Smrg  done
520805a1a286SmrgIFS=$as_save_IFS
5209d9c7fc6cSmrg
5210d9c7fc6cSmrgfi
5211d9c7fc6cSmrgfi
521205a1a286SmrgDUMPBIN=$ac_cv_prog_DUMPBIN
521305a1a286Smrgif test -n "$DUMPBIN"; then
521405a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
521505a1a286Smrg$as_echo "$DUMPBIN" >&6; }
5216d9c7fc6cSmrgelse
521705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
521805a1a286Smrg$as_echo "no" >&6; }
5219d9c7fc6cSmrgfi
5220d9c7fc6cSmrg
522105a1a286Smrg
522205a1a286Smrg    test -n "$DUMPBIN" && break
5223d9c7fc6cSmrg  done
5224d9c7fc6cSmrgfi
522505a1a286Smrgif test -z "$DUMPBIN"; then
522605a1a286Smrg  ac_ct_DUMPBIN=$DUMPBIN
522705a1a286Smrg  for ac_prog in dumpbin "link -dump"
5228d9c7fc6cSmrgdo
5229d9c7fc6cSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
5230d9c7fc6cSmrgset dummy $ac_prog; ac_word=$2
523105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
523205a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
523305a1a286Smrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
523405a1a286Smrg  $as_echo_n "(cached) " >&6
5235d9c7fc6cSmrgelse
523605a1a286Smrg  if test -n "$ac_ct_DUMPBIN"; then
523705a1a286Smrg  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5238d9c7fc6cSmrgelse
5239d9c7fc6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240d9c7fc6cSmrgfor as_dir in $PATH
5241d9c7fc6cSmrgdo
5242d9c7fc6cSmrg  IFS=$as_save_IFS
5243d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
524405a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
524505a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
524605a1a286Smrg    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
524705a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248d9c7fc6cSmrg    break 2
5249d9c7fc6cSmrg  fi
5250d9c7fc6cSmrgdone
525105a1a286Smrg  done
525205a1a286SmrgIFS=$as_save_IFS
5253d9c7fc6cSmrg
5254d9c7fc6cSmrgfi
5255d9c7fc6cSmrgfi
525605a1a286Smrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
525705a1a286Smrgif test -n "$ac_ct_DUMPBIN"; then
525805a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
525905a1a286Smrg$as_echo "$ac_ct_DUMPBIN" >&6; }
5260d9c7fc6cSmrgelse
526105a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
526205a1a286Smrg$as_echo "no" >&6; }
5263d9c7fc6cSmrgfi
5264d9c7fc6cSmrg
526505a1a286Smrg
526605a1a286Smrg  test -n "$ac_ct_DUMPBIN" && break
5267d9c7fc6cSmrgdone
5268d9c7fc6cSmrg
526905a1a286Smrg  if test "x$ac_ct_DUMPBIN" = x; then
527005a1a286Smrg    DUMPBIN=":"
527105a1a286Smrg  else
527205a1a286Smrg    case $cross_compiling:$ac_tool_warned in
527305a1a286Smrgyes:)
527405a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
527505a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
527605a1a286Smrgac_tool_warned=yes ;;
527705a1a286Smrgesac
527805a1a286Smrg    DUMPBIN=$ac_ct_DUMPBIN
527905a1a286Smrg  fi
5280d9c7fc6cSmrgfi
5281d9c7fc6cSmrg
528205a1a286Smrg    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
528305a1a286Smrg    *COFF*)
528405a1a286Smrg      DUMPBIN="$DUMPBIN -symbols"
528505a1a286Smrg      ;;
528605a1a286Smrg    *)
528705a1a286Smrg      DUMPBIN=:
528805a1a286Smrg      ;;
528905a1a286Smrg    esac
529005a1a286Smrg  fi
5291d9c7fc6cSmrg
529205a1a286Smrg  if test "$DUMPBIN" != ":"; then
529305a1a286Smrg    NM="$DUMPBIN"
529405a1a286Smrg  fi
529505a1a286Smrgfi
529605a1a286Smrgtest -z "$NM" && NM=nm
5297d9c7fc6cSmrg
5298d9c7fc6cSmrg
5299d9c7fc6cSmrg
5300d9c7fc6cSmrg
5301d9c7fc6cSmrg
5302d9c7fc6cSmrg
530305a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
530405a1a286Smrg$as_echo_n "checking the name lister ($NM) interface... " >&6; }
530505a1a286Smrgif ${lt_cv_nm_interface+:} false; then :
530605a1a286Smrg  $as_echo_n "(cached) " >&6
5307d9c7fc6cSmrgelse
530805a1a286Smrg  lt_cv_nm_interface="BSD nm"
530905a1a286Smrg  echo "int some_variable = 0;" > conftest.$ac_ext
531005a1a286Smrg  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
531105a1a286Smrg  (eval "$ac_compile" 2>conftest.err)
531205a1a286Smrg  cat conftest.err >&5
531305a1a286Smrg  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
531405a1a286Smrg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
531505a1a286Smrg  cat conftest.err >&5
531605a1a286Smrg  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
531705a1a286Smrg  cat conftest.out >&5
531805a1a286Smrg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
531905a1a286Smrg    lt_cv_nm_interface="MS dumpbin"
5320d9c7fc6cSmrg  fi
532105a1a286Smrg  rm -f conftest*
5322d9c7fc6cSmrgfi
532305a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
532405a1a286Smrg$as_echo "$lt_cv_nm_interface" >&6; }
5325d9c7fc6cSmrg
532605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
532705a1a286Smrg$as_echo_n "checking whether ln -s works... " >&6; }
532805a1a286SmrgLN_S=$as_ln_s
532905a1a286Smrgif test "$LN_S" = "ln -s"; then
533005a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
533105a1a286Smrg$as_echo "yes" >&6; }
533205a1a286Smrgelse
533305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
533405a1a286Smrg$as_echo "no, using $LN_S" >&6; }
533505a1a286Smrgfi
5336d9c7fc6cSmrg
5337d9c7fc6cSmrg# find the maximum length of command line arguments
533805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
533905a1a286Smrg$as_echo_n "checking the maximum length of command line arguments... " >&6; }
534005a1a286Smrgif ${lt_cv_sys_max_cmd_len+:} false; then :
534105a1a286Smrg  $as_echo_n "(cached) " >&6
5342d9c7fc6cSmrgelse
5343d9c7fc6cSmrg    i=0
5344d9c7fc6cSmrg  teststring="ABCD"
5345d9c7fc6cSmrg
5346d9c7fc6cSmrg  case $build_os in
5347d9c7fc6cSmrg  msdosdjgpp*)
5348d9c7fc6cSmrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
5349d9c7fc6cSmrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
5350d9c7fc6cSmrg    # during glob expansion).  Even if it were fixed, the result of this
5351d9c7fc6cSmrg    # check would be larger than it should be.
5352d9c7fc6cSmrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5353d9c7fc6cSmrg    ;;
5354d9c7fc6cSmrg
5355d9c7fc6cSmrg  gnu*)
5356d9c7fc6cSmrg    # Under GNU Hurd, this test is not required because there is
5357d9c7fc6cSmrg    # no limit to the length of command line arguments.
5358d9c7fc6cSmrg    # Libtool will interpret -1 as no limit whatsoever
5359d9c7fc6cSmrg    lt_cv_sys_max_cmd_len=-1;
5360d9c7fc6cSmrg    ;;
5361d9c7fc6cSmrg
536205a1a286Smrg  cygwin* | mingw* | cegcc*)
5363d9c7fc6cSmrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
5364d9c7fc6cSmrg    # about 5 minutes as the teststring grows exponentially.
5365d9c7fc6cSmrg    # Worse, since 9x/ME are not pre-emptively multitasking,
5366d9c7fc6cSmrg    # you end up with a "frozen" computer, even though with patience
5367d9c7fc6cSmrg    # the test eventually succeeds (with a max line length of 256k).
5368d9c7fc6cSmrg    # Instead, let's just punt: use the minimum linelength reported by
5369d9c7fc6cSmrg    # all of the supported platforms: 8192 (on NT/2K/XP).
5370d9c7fc6cSmrg    lt_cv_sys_max_cmd_len=8192;
5371d9c7fc6cSmrg    ;;
5372d9c7fc6cSmrg
537305a1a286Smrg  mint*)
537405a1a286Smrg    # On MiNT this can take a long time and run out of memory.
537505a1a286Smrg    lt_cv_sys_max_cmd_len=8192;
537605a1a286Smrg    ;;
537705a1a286Smrg
5378d9c7fc6cSmrg  amigaos*)
5379d9c7fc6cSmrg    # On AmigaOS with pdksh, this test takes hours, literally.
5380d9c7fc6cSmrg    # So we just punt and use a minimum line length of 8192.
5381d9c7fc6cSmrg    lt_cv_sys_max_cmd_len=8192;
5382d9c7fc6cSmrg    ;;
5383d9c7fc6cSmrg
5384d9c7fc6cSmrg  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5385d9c7fc6cSmrg    # This has been around since 386BSD, at least.  Likely further.
5386d9c7fc6cSmrg    if test -x /sbin/sysctl; then
5387d9c7fc6cSmrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5388d9c7fc6cSmrg    elif test -x /usr/sbin/sysctl; then
5389d9c7fc6cSmrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5390d9c7fc6cSmrg    else
5391d9c7fc6cSmrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5392d9c7fc6cSmrg    fi
5393d9c7fc6cSmrg    # And add a safety zone
5394d9c7fc6cSmrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5395d9c7fc6cSmrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5396d9c7fc6cSmrg    ;;
5397d9c7fc6cSmrg
5398d9c7fc6cSmrg  interix*)
5399d9c7fc6cSmrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5400d9c7fc6cSmrg    lt_cv_sys_max_cmd_len=196608
5401d9c7fc6cSmrg    ;;
5402d9c7fc6cSmrg
5403d9c7fc6cSmrg  osf*)
5404d9c7fc6cSmrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5405d9c7fc6cSmrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5406d9c7fc6cSmrg    # nice to cause kernel panics so lets avoid the loop below.
5407d9c7fc6cSmrg    # First set a reasonable default.
5408d9c7fc6cSmrg    lt_cv_sys_max_cmd_len=16384
5409d9c7fc6cSmrg    #
5410d9c7fc6cSmrg    if test -x /sbin/sysconfig; then
5411d9c7fc6cSmrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5412d9c7fc6cSmrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5413d9c7fc6cSmrg      esac
5414d9c7fc6cSmrg    fi
5415d9c7fc6cSmrg    ;;
5416d9c7fc6cSmrg  sco3.2v5*)
5417d9c7fc6cSmrg    lt_cv_sys_max_cmd_len=102400
5418d9c7fc6cSmrg    ;;
5419d9c7fc6cSmrg  sysv5* | sco5v6* | sysv4.2uw2*)
5420d9c7fc6cSmrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5421d9c7fc6cSmrg    if test -n "$kargmax"; then
542205a1a286Smrg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5423d9c7fc6cSmrg    else
5424d9c7fc6cSmrg      lt_cv_sys_max_cmd_len=32768
5425d9c7fc6cSmrg    fi
5426d9c7fc6cSmrg    ;;
5427d9c7fc6cSmrg  *)
542805a1a286Smrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
542905a1a286Smrg    if test -n "$lt_cv_sys_max_cmd_len"; then
543005a1a286Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
543105a1a286Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
543205a1a286Smrg    else
543305a1a286Smrg      # Make teststring a little bigger before we do anything with it.
543405a1a286Smrg      # a 1K string should be a reasonable start.
543505a1a286Smrg      for i in 1 2 3 4 5 6 7 8 ; do
543605a1a286Smrg        teststring=$teststring$teststring
543705a1a286Smrg      done
543805a1a286Smrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
543905a1a286Smrg      # If test is not a shell built-in, we'll probably end up computing a
544005a1a286Smrg      # maximum length that is only half of the actual maximum length, but
544105a1a286Smrg      # we can't tell.
544205a1a286Smrg      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
544305a1a286Smrg	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
544405a1a286Smrg	      test $i != 17 # 1/2 MB should be enough
544505a1a286Smrg      do
544605a1a286Smrg        i=`expr $i + 1`
544705a1a286Smrg        teststring=$teststring$teststring
544805a1a286Smrg      done
544905a1a286Smrg      # Only check the string length outside the loop.
545005a1a286Smrg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
545105a1a286Smrg      teststring=
545205a1a286Smrg      # Add a significant safety factor because C++ compilers can tack on
545305a1a286Smrg      # massive amounts of additional arguments before passing them to the
545405a1a286Smrg      # linker.  It appears as though 1/2 is a usable value.
545505a1a286Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
545605a1a286Smrg    fi
5457d9c7fc6cSmrg    ;;
5458d9c7fc6cSmrg  esac
5459d9c7fc6cSmrg
5460d9c7fc6cSmrgfi
5461d9c7fc6cSmrg
5462d9c7fc6cSmrgif test -n $lt_cv_sys_max_cmd_len ; then
546305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
546405a1a286Smrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5465d9c7fc6cSmrgelse
546605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
546705a1a286Smrg$as_echo "none" >&6; }
5468d9c7fc6cSmrgfi
546905a1a286Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len
5470d9c7fc6cSmrg
5471d9c7fc6cSmrg
5472d9c7fc6cSmrg
5473d9c7fc6cSmrg
5474d9c7fc6cSmrg
5475d9c7fc6cSmrg
547605a1a286Smrg: ${CP="cp -f"}
547705a1a286Smrg: ${MV="mv -f"}
547805a1a286Smrg: ${RM="rm -f"}
5479d9c7fc6cSmrg
548005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
548105a1a286Smrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
548205a1a286Smrg# Try some XSI features
548305a1a286Smrgxsi_shell=no
548405a1a286Smrg( _lt_dummy="a/b/c"
548505a1a286Smrg  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
548605a1a286Smrg      = c,a/b,, \
548705a1a286Smrg    && eval 'test $(( 1 + 1 )) -eq 2 \
548805a1a286Smrg    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
548905a1a286Smrg  && xsi_shell=yes
549005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
549105a1a286Smrg$as_echo "$xsi_shell" >&6; }
5492d9c7fc6cSmrg
5493d9c7fc6cSmrg
549405a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
549505a1a286Smrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
549605a1a286Smrglt_shell_append=no
549705a1a286Smrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
549805a1a286Smrg    >/dev/null 2>&1 \
549905a1a286Smrg  && lt_shell_append=yes
550005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
550105a1a286Smrg$as_echo "$lt_shell_append" >&6; }
5502d9c7fc6cSmrg
550305a1a286Smrg
550405a1a286Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
550505a1a286Smrg  lt_unset=unset
550605a1a286Smrgelse
550705a1a286Smrg  lt_unset=false
550805a1a286Smrgfi
550905a1a286Smrg
551005a1a286Smrg
551105a1a286Smrg
551205a1a286Smrg
551305a1a286Smrg
551405a1a286Smrg# test EBCDIC or ASCII
551505a1a286Smrgcase `echo X|tr X '\101'` in
551605a1a286Smrg A) # ASCII based system
551705a1a286Smrg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
551805a1a286Smrg  lt_SP2NL='tr \040 \012'
551905a1a286Smrg  lt_NL2SP='tr \015\012 \040\040'
5520d9c7fc6cSmrg  ;;
552105a1a286Smrg *) # EBCDIC based system
552205a1a286Smrg  lt_SP2NL='tr \100 \n'
552305a1a286Smrg  lt_NL2SP='tr \r\n \100\100'
5524d9c7fc6cSmrg  ;;
5525d9c7fc6cSmrgesac
5526d9c7fc6cSmrg
5527d9c7fc6cSmrg
5528d9c7fc6cSmrg
5529d9c7fc6cSmrg
5530d9c7fc6cSmrg
5531d9c7fc6cSmrg
5532d9c7fc6cSmrg
5533d9c7fc6cSmrg
5534d9c7fc6cSmrg
553505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
553605a1a286Smrg$as_echo_n "checking for $LD option to reload object files... " >&6; }
553705a1a286Smrgif ${lt_cv_ld_reload_flag+:} false; then :
553805a1a286Smrg  $as_echo_n "(cached) " >&6
5539d9c7fc6cSmrgelse
554005a1a286Smrg  lt_cv_ld_reload_flag='-r'
5541d9c7fc6cSmrgfi
554205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
554305a1a286Smrg$as_echo "$lt_cv_ld_reload_flag" >&6; }
554405a1a286Smrgreload_flag=$lt_cv_ld_reload_flag
554505a1a286Smrgcase $reload_flag in
554605a1a286Smrg"" | " "*) ;;
554705a1a286Smrg*) reload_flag=" $reload_flag" ;;
554805a1a286Smrgesac
554905a1a286Smrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
5550d9c7fc6cSmrgcase $host_os in
555105a1a286Smrg  darwin*)
555205a1a286Smrg    if test "$GCC" = yes; then
555305a1a286Smrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
555405a1a286Smrg    else
555505a1a286Smrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
555605a1a286Smrg    fi
555705a1a286Smrg    ;;
5558d9c7fc6cSmrgesac
5559d9c7fc6cSmrg
5560d9c7fc6cSmrg
5561d9c7fc6cSmrg
5562d9c7fc6cSmrg
5563d9c7fc6cSmrg
5564d9c7fc6cSmrg
5565d9c7fc6cSmrg
556605a1a286Smrg
5567d9c7fc6cSmrg
5568d9c7fc6cSmrgif test -n "$ac_tool_prefix"; then
556905a1a286Smrg  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
557005a1a286Smrgset dummy ${ac_tool_prefix}objdump; ac_word=$2
557105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
557205a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
557305a1a286Smrgif ${ac_cv_prog_OBJDUMP+:} false; then :
557405a1a286Smrg  $as_echo_n "(cached) " >&6
5575d9c7fc6cSmrgelse
557605a1a286Smrg  if test -n "$OBJDUMP"; then
557705a1a286Smrg  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5578d9c7fc6cSmrgelse
5579d9c7fc6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580d9c7fc6cSmrgfor as_dir in $PATH
5581d9c7fc6cSmrgdo
5582d9c7fc6cSmrg  IFS=$as_save_IFS
5583d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
558405a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
558505a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
558605a1a286Smrg    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
558705a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588d9c7fc6cSmrg    break 2
5589d9c7fc6cSmrg  fi
5590d9c7fc6cSmrgdone
559105a1a286Smrg  done
559205a1a286SmrgIFS=$as_save_IFS
5593d9c7fc6cSmrg
5594d9c7fc6cSmrgfi
5595d9c7fc6cSmrgfi
559605a1a286SmrgOBJDUMP=$ac_cv_prog_OBJDUMP
559705a1a286Smrgif test -n "$OBJDUMP"; then
559805a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
559905a1a286Smrg$as_echo "$OBJDUMP" >&6; }
5600d9c7fc6cSmrgelse
560105a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
560205a1a286Smrg$as_echo "no" >&6; }
5603d9c7fc6cSmrgfi
5604d9c7fc6cSmrg
560505a1a286Smrg
5606d9c7fc6cSmrgfi
560705a1a286Smrgif test -z "$ac_cv_prog_OBJDUMP"; then
560805a1a286Smrg  ac_ct_OBJDUMP=$OBJDUMP
560905a1a286Smrg  # Extract the first word of "objdump", so it can be a program name with args.
561005a1a286Smrgset dummy objdump; ac_word=$2
561105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
561205a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
561305a1a286Smrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
561405a1a286Smrg  $as_echo_n "(cached) " >&6
5615d9c7fc6cSmrgelse
561605a1a286Smrg  if test -n "$ac_ct_OBJDUMP"; then
561705a1a286Smrg  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5618d9c7fc6cSmrgelse
5619d9c7fc6cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620d9c7fc6cSmrgfor as_dir in $PATH
5621d9c7fc6cSmrgdo
5622d9c7fc6cSmrg  IFS=$as_save_IFS
5623d9c7fc6cSmrg  test -z "$as_dir" && as_dir=.
562405a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
562505a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
562605a1a286Smrg    ac_cv_prog_ac_ct_OBJDUMP="objdump"
562705a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628d9c7fc6cSmrg    break 2
5629d9c7fc6cSmrg  fi
5630d9c7fc6cSmrgdone
563105a1a286Smrg  done
563205a1a286SmrgIFS=$as_save_IFS
5633d9c7fc6cSmrg
5634d9c7fc6cSmrgfi
5635d9c7fc6cSmrgfi
563605a1a286Smrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
563705a1a286Smrgif test -n "$ac_ct_OBJDUMP"; then
563805a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
563905a1a286Smrg$as_echo "$ac_ct_OBJDUMP" >&6; }
5640d9c7fc6cSmrgelse
564105a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
564205a1a286Smrg$as_echo "no" >&6; }
5643d9c7fc6cSmrgfi
5644d9c7fc6cSmrg
564505a1a286Smrg  if test "x$ac_ct_OBJDUMP" = x; then
564605a1a286Smrg    OBJDUMP="false"
564705a1a286Smrg  else
564805a1a286Smrg    case $cross_compiling:$ac_tool_warned in
564905a1a286Smrgyes:)
565005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
565105a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
565205a1a286Smrgac_tool_warned=yes ;;
565305a1a286Smrgesac
565405a1a286Smrg    OBJDUMP=$ac_ct_OBJDUMP
565505a1a286Smrg  fi
5656d9c7fc6cSmrgelse
565705a1a286Smrg  OBJDUMP="$ac_cv_prog_OBJDUMP"
5658d9c7fc6cSmrgfi
5659d9c7fc6cSmrg
566005a1a286Smrgtest -z "$OBJDUMP" && OBJDUMP=objdump
5661d9c7fc6cSmrg
5662d9c7fc6cSmrg
5663d9c7fc6cSmrg
5664d9c7fc6cSmrg
5665d9c7fc6cSmrg
5666d9c7fc6cSmrg
5667d9c7fc6cSmrg
5668d9c7fc6cSmrg
566905a1a286Smrg
567005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
567105a1a286Smrg$as_echo_n "checking how to recognize dependent libraries... " >&6; }
567205a1a286Smrgif ${lt_cv_deplibs_check_method+:} false; then :
567305a1a286Smrg  $as_echo_n "(cached) " >&6
5674d9c7fc6cSmrgelse
567505a1a286Smrg  lt_cv_file_magic_cmd='$MAGIC_CMD'
567605a1a286Smrglt_cv_file_magic_test_file=
567705a1a286Smrglt_cv_deplibs_check_method='unknown'
567805a1a286Smrg# Need to set the preceding variable on all platforms that support
567905a1a286Smrg# interlibrary dependencies.
568005a1a286Smrg# 'none' -- dependencies not supported.
568105a1a286Smrg# `unknown' -- same as none, but documents that we really don't know.
568205a1a286Smrg# 'pass_all' -- all dependencies passed with no checks.
568305a1a286Smrg# 'test_compile' -- check by making test program.
568405a1a286Smrg# 'file_magic [[regex]]' -- check by looking for files in library path
568505a1a286Smrg# which responds to the $file_magic_cmd with a given extended regex.
568605a1a286Smrg# If you have `file' or equivalent on your system and you're not sure
568705a1a286Smrg# whether `pass_all' will *always* work, you probably want this one.
5688d9c7fc6cSmrg
568905a1a286Smrgcase $host_os in
569005a1a286Smrgaix[4-9]*)
569105a1a286Smrg  lt_cv_deplibs_check_method=pass_all
569205a1a286Smrg  ;;
5693d9c7fc6cSmrg
569405a1a286Smrgbeos*)
569505a1a286Smrg  lt_cv_deplibs_check_method=pass_all
569605a1a286Smrg  ;;
5697d9c7fc6cSmrg
569805a1a286Smrgbsdi[45]*)
569905a1a286Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
570005a1a286Smrg  lt_cv_file_magic_cmd='/usr/bin/file -L'
570105a1a286Smrg  lt_cv_file_magic_test_file=/shlib/libc.so
570205a1a286Smrg  ;;
5703d9c7fc6cSmrg
570405a1a286Smrgcygwin*)
570505a1a286Smrg  # func_win32_libid is a shell function defined in ltmain.sh
570605a1a286Smrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
570705a1a286Smrg  lt_cv_file_magic_cmd='func_win32_libid'
570805a1a286Smrg  ;;
5709d9c7fc6cSmrg
571005a1a286Smrgmingw* | pw32*)
571105a1a286Smrg  # Base MSYS/MinGW do not provide the 'file' command needed by
571205a1a286Smrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
571305a1a286Smrg  # unless we find 'file', for example because we are cross-compiling.
571405a1a286Smrg  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
571505a1a286Smrg  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
571605a1a286Smrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
571705a1a286Smrg    lt_cv_file_magic_cmd='func_win32_libid'
571805a1a286Smrg  else
571905a1a286Smrg    # Keep this pattern in sync with the one in func_win32_libid.
572005a1a286Smrg    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
572105a1a286Smrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
572205a1a286Smrg  fi
572305a1a286Smrg  ;;
5724d9c7fc6cSmrg
572505a1a286Smrgcegcc*)
572605a1a286Smrg  # use the weaker test based on 'objdump'. See mingw*.
572705a1a286Smrg  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
572805a1a286Smrg  lt_cv_file_magic_cmd='$OBJDUMP -f'
572905a1a286Smrg  ;;
5730d9c7fc6cSmrg
573105a1a286Smrgdarwin* | rhapsody*)
573205a1a286Smrg  lt_cv_deplibs_check_method=pass_all
5733d9c7fc6cSmrg  ;;
5734d9c7fc6cSmrg
573505a1a286Smrgfreebsd* | dragonfly*)
573605a1a286Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
573705a1a286Smrg    case $host_cpu in
573805a1a286Smrg    i*86 )
573905a1a286Smrg      # Not sure whether the presence of OpenBSD here was a mistake.
574005a1a286Smrg      # Let's accept both of them until this is cleared up.
574105a1a286Smrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
574205a1a286Smrg      lt_cv_file_magic_cmd=/usr/bin/file
574305a1a286Smrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
574405a1a286Smrg      ;;
574505a1a286Smrg    esac
574605a1a286Smrg  else
574705a1a286Smrg    lt_cv_deplibs_check_method=pass_all
574805a1a286Smrg  fi
574905a1a286Smrg  ;;
5750d9c7fc6cSmrg
575105a1a286Smrggnu*)
575205a1a286Smrg  lt_cv_deplibs_check_method=pass_all
5753d9c7fc6cSmrg  ;;
5754d9c7fc6cSmrg
575505a1a286Smrghaiku*)
575605a1a286Smrg  lt_cv_deplibs_check_method=pass_all
575705a1a286Smrg  ;;
5758d9c7fc6cSmrg
575905a1a286Smrghpux10.20* | hpux11*)
576005a1a286Smrg  lt_cv_file_magic_cmd=/usr/bin/file
576105a1a286Smrg  case $host_cpu in
576205a1a286Smrg  ia64*)
576305a1a286Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
576405a1a286Smrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
576505a1a286Smrg    ;;
576605a1a286Smrg  hppa*64*)
576705a1a286Smrg    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]'
576805a1a286Smrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
576905a1a286Smrg    ;;
577005a1a286Smrg  *)
577105a1a286Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
577205a1a286Smrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
577305a1a286Smrg    ;;
577405a1a286Smrg  esac
5775d9c7fc6cSmrg  ;;
5776d9c7fc6cSmrg
577705a1a286Smrginterix[3-9]*)
577805a1a286Smrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
577905a1a286Smrg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
578005a1a286Smrg  ;;
5781d9c7fc6cSmrg
578205a1a286Smrgirix5* | irix6* | nonstopux*)
578305a1a286Smrg  case $LD in
578405a1a286Smrg  *-32|*"-32 ") libmagic=32-bit;;
578505a1a286Smrg  *-n32|*"-n32 ") libmagic=N32;;
578605a1a286Smrg  *-64|*"-64 ") libmagic=64-bit;;
578705a1a286Smrg  *) libmagic=never-match;;
578805a1a286Smrg  esac
578905a1a286Smrg  lt_cv_deplibs_check_method=pass_all
5790d9c7fc6cSmrg  ;;
5791d9c7fc6cSmrg
579205a1a286Smrg# This must be Linux ELF.
579305a1a286Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
579405a1a286Smrg  lt_cv_deplibs_check_method=pass_all
579505a1a286Smrg  ;;
5796d9c7fc6cSmrg
579705a1a286Smrgnetbsd*)
579805a1a286Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
579905a1a286Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5800d9c7fc6cSmrg  else
580105a1a286Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5802d9c7fc6cSmrg  fi
580305a1a286Smrg  ;;
5804d9c7fc6cSmrg
580505a1a286Smrgnewos6*)
580605a1a286Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
580705a1a286Smrg  lt_cv_file_magic_cmd=/usr/bin/file
580805a1a286Smrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5809d9c7fc6cSmrg  ;;
5810d9c7fc6cSmrg
581105a1a286Smrg*nto* | *qnx*)
581205a1a286Smrg  lt_cv_deplibs_check_method=pass_all
581305a1a286Smrg  ;;
5814d9c7fc6cSmrg
581505a1a286Smrgopenbsd*)
581605a1a286Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
581705a1a286Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
581805a1a286Smrg  else
581905a1a286Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
582005a1a286Smrg  fi
582105a1a286Smrg  ;;
5822d9c7fc6cSmrg
582305a1a286Smrgosf3* | osf4* | osf5*)
582405a1a286Smrg  lt_cv_deplibs_check_method=pass_all
582505a1a286Smrg  ;;
5826d9c7fc6cSmrg
582705a1a286Smrgrdos*)
582805a1a286Smrg  lt_cv_deplibs_check_method=pass_all
582905a1a286Smrg  ;;
5830d9c7fc6cSmrg
583105a1a286Smrgsolaris*)
583205a1a286Smrg  lt_cv_deplibs_check_method=pass_all
583305a1a286Smrg  ;;
5834d9c7fc6cSmrg
583505a1a286Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
583605a1a286Smrg  lt_cv_deplibs_check_method=pass_all
583705a1a286Smrg  ;;
5838d9c7fc6cSmrg
583905a1a286Smrgsysv4 | sysv4.3*)
584005a1a286Smrg  case $host_vendor in
584105a1a286Smrg  motorola)
584205a1a286Smrg    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]'
584305a1a286Smrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
584405a1a286Smrg    ;;
584505a1a286Smrg  ncr)
584605a1a286Smrg    lt_cv_deplibs_check_method=pass_all
584705a1a286Smrg    ;;
584805a1a286Smrg  sequent)
584905a1a286Smrg    lt_cv_file_magic_cmd='/bin/file'
585005a1a286Smrg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
585105a1a286Smrg    ;;
585205a1a286Smrg  sni)
585305a1a286Smrg    lt_cv_file_magic_cmd='/bin/file'
585405a1a286Smrg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
585505a1a286Smrg    lt_cv_file_magic_test_file=/lib/libc.so
585605a1a286Smrg    ;;
585705a1a286Smrg  siemens)
585805a1a286Smrg    lt_cv_deplibs_check_method=pass_all
585905a1a286Smrg    ;;
586005a1a286Smrg  pc)
586105a1a286Smrg    lt_cv_deplibs_check_method=pass_all
586205a1a286Smrg    ;;
586305a1a286Smrg  esac
586405a1a286Smrg  ;;
5865d9c7fc6cSmrg
586605a1a286Smrgtpf*)
586705a1a286Smrg  lt_cv_deplibs_check_method=pass_all
586805a1a286Smrg  ;;
586905a1a286Smrgesac
5870d9c7fc6cSmrg
587105a1a286Smrgfi
587205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
587305a1a286Smrg$as_echo "$lt_cv_deplibs_check_method" >&6; }
587405a1a286Smrgfile_magic_cmd=$lt_cv_file_magic_cmd
587505a1a286Smrgdeplibs_check_method=$lt_cv_deplibs_check_method
587605a1a286Smrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
5877d9c7fc6cSmrg
5878d9c7fc6cSmrg
5879d9c7fc6cSmrg
5880d9c7fc6cSmrg
5881d9c7fc6cSmrg
5882d9c7fc6cSmrg
5883d9c7fc6cSmrg
5884d9c7fc6cSmrg
5885d9c7fc6cSmrg
5886d9c7fc6cSmrg
5887d9c7fc6cSmrg
5888d9c7fc6cSmrg
588905a1a286Smrgif test -n "$ac_tool_prefix"; then
589005a1a286Smrg  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
589105a1a286Smrgset dummy ${ac_tool_prefix}ar; ac_word=$2
589205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
589305a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
589405a1a286Smrgif ${ac_cv_prog_AR+:} false; then :
589505a1a286Smrg  $as_echo_n "(cached) " >&6
589605a1a286Smrgelse
589705a1a286Smrg  if test -n "$AR"; then
589805a1a286Smrg  ac_cv_prog_AR="$AR" # Let the user override the test.
589905a1a286Smrgelse
590005a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
590105a1a286Smrgfor as_dir in $PATH
590205a1a286Smrgdo
590305a1a286Smrg  IFS=$as_save_IFS
590405a1a286Smrg  test -z "$as_dir" && as_dir=.
590505a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
590605a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
590705a1a286Smrg    ac_cv_prog_AR="${ac_tool_prefix}ar"
590805a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
590905a1a286Smrg    break 2
591005a1a286Smrg  fi
591105a1a286Smrgdone
591205a1a286Smrg  done
591305a1a286SmrgIFS=$as_save_IFS
5914d9c7fc6cSmrg
591505a1a286Smrgfi
591605a1a286Smrgfi
591705a1a286SmrgAR=$ac_cv_prog_AR
591805a1a286Smrgif test -n "$AR"; then
591905a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
592005a1a286Smrg$as_echo "$AR" >&6; }
592105a1a286Smrgelse
592205a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
592305a1a286Smrg$as_echo "no" >&6; }
592405a1a286Smrgfi
5925d9c7fc6cSmrg
5926d9c7fc6cSmrg
592705a1a286Smrgfi
592805a1a286Smrgif test -z "$ac_cv_prog_AR"; then
592905a1a286Smrg  ac_ct_AR=$AR
593005a1a286Smrg  # Extract the first word of "ar", so it can be a program name with args.
593105a1a286Smrgset dummy ar; ac_word=$2
593205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
593305a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
593405a1a286Smrgif ${ac_cv_prog_ac_ct_AR+:} false; then :
593505a1a286Smrg  $as_echo_n "(cached) " >&6
5936d9c7fc6cSmrgelse
593705a1a286Smrg  if test -n "$ac_ct_AR"; then
593805a1a286Smrg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
593905a1a286Smrgelse
594005a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
594105a1a286Smrgfor as_dir in $PATH
594205a1a286Smrgdo
594305a1a286Smrg  IFS=$as_save_IFS
594405a1a286Smrg  test -z "$as_dir" && as_dir=.
594505a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
594605a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
594705a1a286Smrg    ac_cv_prog_ac_ct_AR="ar"
594805a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
594905a1a286Smrg    break 2
595005a1a286Smrg  fi
595105a1a286Smrgdone
595205a1a286Smrg  done
595305a1a286SmrgIFS=$as_save_IFS
5954d9c7fc6cSmrg
5955d9c7fc6cSmrgfi
595605a1a286Smrgfi
595705a1a286Smrgac_ct_AR=$ac_cv_prog_ac_ct_AR
595805a1a286Smrgif test -n "$ac_ct_AR"; then
595905a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
596005a1a286Smrg$as_echo "$ac_ct_AR" >&6; }
5961d9c7fc6cSmrgelse
596205a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
596305a1a286Smrg$as_echo "no" >&6; }
5964d9c7fc6cSmrgfi
5965d9c7fc6cSmrg
596605a1a286Smrg  if test "x$ac_ct_AR" = x; then
596705a1a286Smrg    AR="false"
596805a1a286Smrg  else
596905a1a286Smrg    case $cross_compiling:$ac_tool_warned in
597005a1a286Smrgyes:)
597105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
597205a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
597305a1a286Smrgac_tool_warned=yes ;;
597405a1a286Smrgesac
597505a1a286Smrg    AR=$ac_ct_AR
597605a1a286Smrg  fi
597705a1a286Smrgelse
597805a1a286Smrg  AR="$ac_cv_prog_AR"
5979d9c7fc6cSmrgfi
5980d9c7fc6cSmrg
598105a1a286Smrgtest -z "$AR" && AR=ar
598205a1a286Smrgtest -z "$AR_FLAGS" && AR_FLAGS=cru
5983d9c7fc6cSmrg
5984d9c7fc6cSmrg
5985d9c7fc6cSmrg
5986d9c7fc6cSmrg
5987d9c7fc6cSmrg
5988d9c7fc6cSmrg
5989d9c7fc6cSmrg
5990d9c7fc6cSmrg
5991d9c7fc6cSmrg
5992d9c7fc6cSmrg
5993d9c7fc6cSmrg
599405a1a286Smrgif test -n "$ac_tool_prefix"; then
599505a1a286Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
599605a1a286Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
599705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
599805a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
599905a1a286Smrgif ${ac_cv_prog_STRIP+:} false; then :
600005a1a286Smrg  $as_echo_n "(cached) " >&6
600105a1a286Smrgelse
600205a1a286Smrg  if test -n "$STRIP"; then
600305a1a286Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
600405a1a286Smrgelse
600505a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
600605a1a286Smrgfor as_dir in $PATH
600705a1a286Smrgdo
600805a1a286Smrg  IFS=$as_save_IFS
600905a1a286Smrg  test -z "$as_dir" && as_dir=.
601005a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
601105a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
601205a1a286Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
601305a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
601405a1a286Smrg    break 2
601505a1a286Smrg  fi
601605a1a286Smrgdone
601705a1a286Smrg  done
601805a1a286SmrgIFS=$as_save_IFS
6019d9c7fc6cSmrg
602005a1a286Smrgfi
602105a1a286Smrgfi
602205a1a286SmrgSTRIP=$ac_cv_prog_STRIP
602305a1a286Smrgif test -n "$STRIP"; then
602405a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
602505a1a286Smrg$as_echo "$STRIP" >&6; }
602605a1a286Smrgelse
602705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
602805a1a286Smrg$as_echo "no" >&6; }
602905a1a286Smrgfi
6030d9c7fc6cSmrg
6031d9c7fc6cSmrg
603205a1a286Smrgfi
603305a1a286Smrgif test -z "$ac_cv_prog_STRIP"; then
603405a1a286Smrg  ac_ct_STRIP=$STRIP
603505a1a286Smrg  # Extract the first word of "strip", so it can be a program name with args.
603605a1a286Smrgset dummy strip; ac_word=$2
603705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
603805a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
603905a1a286Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
604005a1a286Smrg  $as_echo_n "(cached) " >&6
604105a1a286Smrgelse
604205a1a286Smrg  if test -n "$ac_ct_STRIP"; then
604305a1a286Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
604405a1a286Smrgelse
604505a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
604605a1a286Smrgfor as_dir in $PATH
604705a1a286Smrgdo
604805a1a286Smrg  IFS=$as_save_IFS
604905a1a286Smrg  test -z "$as_dir" && as_dir=.
605005a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
605105a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
605205a1a286Smrg    ac_cv_prog_ac_ct_STRIP="strip"
605305a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
605405a1a286Smrg    break 2
605505a1a286Smrg  fi
605605a1a286Smrgdone
605705a1a286Smrg  done
605805a1a286SmrgIFS=$as_save_IFS
6059d9c7fc6cSmrg
606005a1a286Smrgfi
606105a1a286Smrgfi
606205a1a286Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
606305a1a286Smrgif test -n "$ac_ct_STRIP"; then
606405a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
606505a1a286Smrg$as_echo "$ac_ct_STRIP" >&6; }
606605a1a286Smrgelse
606705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
606805a1a286Smrg$as_echo "no" >&6; }
606905a1a286Smrgfi
6070d9c7fc6cSmrg
607105a1a286Smrg  if test "x$ac_ct_STRIP" = x; then
607205a1a286Smrg    STRIP=":"
607305a1a286Smrg  else
607405a1a286Smrg    case $cross_compiling:$ac_tool_warned in
607505a1a286Smrgyes:)
607605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
607705a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
607805a1a286Smrgac_tool_warned=yes ;;
607905a1a286Smrgesac
608005a1a286Smrg    STRIP=$ac_ct_STRIP
608105a1a286Smrg  fi
608205a1a286Smrgelse
608305a1a286Smrg  STRIP="$ac_cv_prog_STRIP"
608405a1a286Smrgfi
6085d9c7fc6cSmrg
608605a1a286Smrgtest -z "$STRIP" && STRIP=:
6087d9c7fc6cSmrg
6088d9c7fc6cSmrg
6089d9c7fc6cSmrg
6090d9c7fc6cSmrg
6091d9c7fc6cSmrg
6092d9c7fc6cSmrg
609305a1a286Smrgif test -n "$ac_tool_prefix"; then
609405a1a286Smrg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
609505a1a286Smrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
609605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
609705a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
609805a1a286Smrgif ${ac_cv_prog_RANLIB+:} false; then :
609905a1a286Smrg  $as_echo_n "(cached) " >&6
610005a1a286Smrgelse
610105a1a286Smrg  if test -n "$RANLIB"; then
610205a1a286Smrg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
610305a1a286Smrgelse
610405a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
610505a1a286Smrgfor as_dir in $PATH
610605a1a286Smrgdo
610705a1a286Smrg  IFS=$as_save_IFS
610805a1a286Smrg  test -z "$as_dir" && as_dir=.
610905a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
611005a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
611105a1a286Smrg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
611205a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
611305a1a286Smrg    break 2
6114d9c7fc6cSmrg  fi
611505a1a286Smrgdone
611605a1a286Smrg  done
611705a1a286SmrgIFS=$as_save_IFS
6118d9c7fc6cSmrg
611905a1a286Smrgfi
612005a1a286Smrgfi
612105a1a286SmrgRANLIB=$ac_cv_prog_RANLIB
612205a1a286Smrgif test -n "$RANLIB"; then
612305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
612405a1a286Smrg$as_echo "$RANLIB" >&6; }
612505a1a286Smrgelse
612605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
612705a1a286Smrg$as_echo "no" >&6; }
612805a1a286Smrgfi
6129d9c7fc6cSmrg
6130d9c7fc6cSmrg
613105a1a286Smrgfi
613205a1a286Smrgif test -z "$ac_cv_prog_RANLIB"; then
613305a1a286Smrg  ac_ct_RANLIB=$RANLIB
613405a1a286Smrg  # Extract the first word of "ranlib", so it can be a program name with args.
613505a1a286Smrgset dummy ranlib; ac_word=$2
613605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
613705a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
613805a1a286Smrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
613905a1a286Smrg  $as_echo_n "(cached) " >&6
6140d9c7fc6cSmrgelse
614105a1a286Smrg  if test -n "$ac_ct_RANLIB"; then
614205a1a286Smrg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
614305a1a286Smrgelse
614405a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
614505a1a286Smrgfor as_dir in $PATH
614605a1a286Smrgdo
614705a1a286Smrg  IFS=$as_save_IFS
614805a1a286Smrg  test -z "$as_dir" && as_dir=.
614905a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
615005a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
615105a1a286Smrg    ac_cv_prog_ac_ct_RANLIB="ranlib"
615205a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
615305a1a286Smrg    break 2
615405a1a286Smrg  fi
615505a1a286Smrgdone
615605a1a286Smrg  done
615705a1a286SmrgIFS=$as_save_IFS
6158d9c7fc6cSmrg
6159d9c7fc6cSmrgfi
616005a1a286Smrgfi
616105a1a286Smrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
616205a1a286Smrgif test -n "$ac_ct_RANLIB"; then
616305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
616405a1a286Smrg$as_echo "$ac_ct_RANLIB" >&6; }
6165d9c7fc6cSmrgelse
616605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
616705a1a286Smrg$as_echo "no" >&6; }
6168d9c7fc6cSmrgfi
6169d9c7fc6cSmrg
617005a1a286Smrg  if test "x$ac_ct_RANLIB" = x; then
617105a1a286Smrg    RANLIB=":"
617205a1a286Smrg  else
617305a1a286Smrg    case $cross_compiling:$ac_tool_warned in
617405a1a286Smrgyes:)
617505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
617605a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
617705a1a286Smrgac_tool_warned=yes ;;
617805a1a286Smrgesac
617905a1a286Smrg    RANLIB=$ac_ct_RANLIB
618005a1a286Smrg  fi
618105a1a286Smrgelse
618205a1a286Smrg  RANLIB="$ac_cv_prog_RANLIB"
6183d9c7fc6cSmrgfi
618405a1a286Smrg
618505a1a286Smrgtest -z "$RANLIB" && RANLIB=:
618605a1a286Smrg
618705a1a286Smrg
618805a1a286Smrg
618905a1a286Smrg
619005a1a286Smrg
619105a1a286Smrg
619205a1a286Smrg# Determine commands to create old-style static archives.
619305a1a286Smrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
619405a1a286Smrgold_postinstall_cmds='chmod 644 $oldlib'
619505a1a286Smrgold_postuninstall_cmds=
619605a1a286Smrg
619705a1a286Smrgif test -n "$RANLIB"; then
619805a1a286Smrg  case $host_os in
619905a1a286Smrg  openbsd*)
620005a1a286Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6201d9c7fc6cSmrg    ;;
6202d9c7fc6cSmrg  *)
620305a1a286Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6204d9c7fc6cSmrg    ;;
620505a1a286Smrg  esac
620605a1a286Smrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
620705a1a286Smrgfi
620805a1a286Smrg
620905a1a286Smrgcase $host_os in
621005a1a286Smrg  darwin*)
621105a1a286Smrg    lock_old_archive_extraction=yes ;;
621205a1a286Smrg  *)
621305a1a286Smrg    lock_old_archive_extraction=no ;;
6214d9c7fc6cSmrgesac
6215d9c7fc6cSmrg
6216d9c7fc6cSmrg
6217d9c7fc6cSmrg
6218d9c7fc6cSmrg
6219d9c7fc6cSmrg
6220d9c7fc6cSmrg
6221d9c7fc6cSmrg
6222d9c7fc6cSmrg
6223d9c7fc6cSmrg
6224d9c7fc6cSmrg
6225d9c7fc6cSmrg
6226d9c7fc6cSmrg
6227d9c7fc6cSmrg
6228d9c7fc6cSmrg
6229d9c7fc6cSmrg
6230d9c7fc6cSmrg
6231d9c7fc6cSmrg
6232d9c7fc6cSmrg
6233d9c7fc6cSmrg
6234d9c7fc6cSmrg
6235d9c7fc6cSmrg
6236d9c7fc6cSmrg
6237d9c7fc6cSmrg
6238d9c7fc6cSmrg
6239d9c7fc6cSmrg
6240d9c7fc6cSmrg
6241d9c7fc6cSmrg
6242d9c7fc6cSmrg
6243d9c7fc6cSmrg
6244d9c7fc6cSmrg
6245d9c7fc6cSmrg
6246d9c7fc6cSmrg
6247d9c7fc6cSmrg
6248d9c7fc6cSmrg
6249d9c7fc6cSmrg
6250d9c7fc6cSmrg
6251d9c7fc6cSmrg
6252d9c7fc6cSmrg
6253d9c7fc6cSmrg
625405a1a286Smrg# If no C compiler was specified, use CC.
625505a1a286SmrgLTCC=${LTCC-"$CC"}
6256d9c7fc6cSmrg
625705a1a286Smrg# If no C compiler flags were specified, use CFLAGS.
625805a1a286SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6259d9c7fc6cSmrg
626005a1a286Smrg# Allow CC to be a program name with arguments.
626105a1a286Smrgcompiler=$CC
6262d9c7fc6cSmrg
6263d9c7fc6cSmrg
626405a1a286Smrg# Check for command to grab the raw symbol name followed by C symbol from nm.
626505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
626605a1a286Smrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
626705a1a286Smrgif ${lt_cv_sys_global_symbol_pipe+:} false; then :
626805a1a286Smrg  $as_echo_n "(cached) " >&6
626905a1a286Smrgelse
6270d9c7fc6cSmrg
627105a1a286Smrg# These are sane defaults that work on at least a few old systems.
627205a1a286Smrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
627305a1a286Smrg
627405a1a286Smrg# Character class describing NM global symbol codes.
627505a1a286Smrgsymcode='[BCDEGRST]'
627605a1a286Smrg
627705a1a286Smrg# Regexp to match symbols that can be accessed directly from C.
627805a1a286Smrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
627905a1a286Smrg
628005a1a286Smrg# Define system-specific variables.
628105a1a286Smrgcase $host_os in
628205a1a286Smrgaix*)
628305a1a286Smrg  symcode='[BCDT]'
628405a1a286Smrg  ;;
628505a1a286Smrgcygwin* | mingw* | pw32* | cegcc*)
628605a1a286Smrg  symcode='[ABCDGISTW]'
628705a1a286Smrg  ;;
628805a1a286Smrghpux*)
628905a1a286Smrg  if test "$host_cpu" = ia64; then
629005a1a286Smrg    symcode='[ABCDEGRST]'
629105a1a286Smrg  fi
629205a1a286Smrg  ;;
629305a1a286Smrgirix* | nonstopux*)
629405a1a286Smrg  symcode='[BCDEGRST]'
629505a1a286Smrg  ;;
629605a1a286Smrgosf*)
629705a1a286Smrg  symcode='[BCDEGQRST]'
629805a1a286Smrg  ;;
629905a1a286Smrgsolaris*)
630005a1a286Smrg  symcode='[BDRT]'
630105a1a286Smrg  ;;
630205a1a286Smrgsco3.2v5*)
630305a1a286Smrg  symcode='[DT]'
630405a1a286Smrg  ;;
630505a1a286Smrgsysv4.2uw2*)
630605a1a286Smrg  symcode='[DT]'
630705a1a286Smrg  ;;
630805a1a286Smrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
630905a1a286Smrg  symcode='[ABDT]'
631005a1a286Smrg  ;;
631105a1a286Smrgsysv4)
631205a1a286Smrg  symcode='[DFNSTU]'
631305a1a286Smrg  ;;
631405a1a286Smrgesac
631505a1a286Smrg
631605a1a286Smrg# If we're using GNU nm, then use its standard symbol codes.
631705a1a286Smrgcase `$NM -V 2>&1` in
631805a1a286Smrg*GNU* | *'with BFD'*)
631905a1a286Smrg  symcode='[ABCDGIRSTW]' ;;
632005a1a286Smrgesac
632105a1a286Smrg
632205a1a286Smrg# Transform an extracted symbol line into a proper C declaration.
632305a1a286Smrg# Some systems (esp. on ia64) link data and code symbols differently,
632405a1a286Smrg# so use this general approach.
632505a1a286Smrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
632605a1a286Smrg
632705a1a286Smrg# Transform an extracted symbol line into symbol name and symbol address
632805a1a286Smrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
632905a1a286Smrglt_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'"
633005a1a286Smrg
633105a1a286Smrg# Handle CRLF in mingw tool chain
633205a1a286Smrgopt_cr=
633305a1a286Smrgcase $build_os in
633405a1a286Smrgmingw*)
633505a1a286Smrg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
633605a1a286Smrg  ;;
633705a1a286Smrgesac
633805a1a286Smrg
633905a1a286Smrg# Try without a prefix underscore, then with it.
634005a1a286Smrgfor ac_symprfx in "" "_"; do
634105a1a286Smrg
634205a1a286Smrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
634305a1a286Smrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
634405a1a286Smrg
634505a1a286Smrg  # Write the raw and C identifiers.
634605a1a286Smrg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
634705a1a286Smrg    # Fake it for dumpbin and say T for any non-static function
634805a1a286Smrg    # and D for any global variable.
634905a1a286Smrg    # Also find C++ and __fastcall symbols from MSVC++,
635005a1a286Smrg    # which start with @ or ?.
635105a1a286Smrg    lt_cv_sys_global_symbol_pipe="$AWK '"\
635205a1a286Smrg"     {last_section=section; section=\$ 3};"\
635305a1a286Smrg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
635405a1a286Smrg"     \$ 0!~/External *\|/{next};"\
635505a1a286Smrg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
635605a1a286Smrg"     {if(hide[section]) next};"\
635705a1a286Smrg"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
635805a1a286Smrg"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
635905a1a286Smrg"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
636005a1a286Smrg"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
636105a1a286Smrg"     ' prfx=^$ac_symprfx"
636205a1a286Smrg  else
636305a1a286Smrg    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
636405a1a286Smrg  fi
636505a1a286Smrg
636605a1a286Smrg  # Check to see that the pipe works correctly.
636705a1a286Smrg  pipe_works=no
636805a1a286Smrg
636905a1a286Smrg  rm -f conftest*
637005a1a286Smrg  cat > conftest.$ac_ext <<_LT_EOF
637105a1a286Smrg#ifdef __cplusplus
637205a1a286Smrgextern "C" {
637305a1a286Smrg#endif
637405a1a286Smrgchar nm_test_var;
637505a1a286Smrgvoid nm_test_func(void);
637605a1a286Smrgvoid nm_test_func(void){}
637705a1a286Smrg#ifdef __cplusplus
6378d9c7fc6cSmrg}
637905a1a286Smrg#endif
638005a1a286Smrgint main(){nm_test_var='a';nm_test_func();return(0);}
638105a1a286Smrg_LT_EOF
638205a1a286Smrg
638305a1a286Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
638405a1a286Smrg  (eval $ac_compile) 2>&5
6385d9c7fc6cSmrg  ac_status=$?
638605a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
638705a1a286Smrg  test $ac_status = 0; }; then
638805a1a286Smrg    # Now try to grab the symbols.
638905a1a286Smrg    nlist=conftest.nm
639005a1a286Smrg    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
639105a1a286Smrg  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6392d9c7fc6cSmrg  ac_status=$?
639305a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
639405a1a286Smrg  test $ac_status = 0; } && test -s "$nlist"; then
639505a1a286Smrg      # Try sorting and uniquifying the output.
639605a1a286Smrg      if sort "$nlist" | uniq > "$nlist"T; then
639705a1a286Smrg	mv -f "$nlist"T "$nlist"
639805a1a286Smrg      else
639905a1a286Smrg	rm -f "$nlist"T
640005a1a286Smrg      fi
6401d9c7fc6cSmrg
640205a1a286Smrg      # Make sure that we snagged all the symbols we need.
640305a1a286Smrg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
640405a1a286Smrg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
640505a1a286Smrg	  cat <<_LT_EOF > conftest.$ac_ext
640605a1a286Smrg#ifdef __cplusplus
640705a1a286Smrgextern "C" {
640805a1a286Smrg#endif
6409d9c7fc6cSmrg
641005a1a286Smrg_LT_EOF
641105a1a286Smrg	  # Now generate the symbol file.
641205a1a286Smrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6413d9c7fc6cSmrg
641405a1a286Smrg	  cat <<_LT_EOF >> conftest.$ac_ext
6415d9c7fc6cSmrg
641605a1a286Smrg/* The mapping between symbol names and symbols.  */
641705a1a286Smrgconst struct {
641805a1a286Smrg  const char *name;
641905a1a286Smrg  void       *address;
642005a1a286Smrg}
642105a1a286Smrglt__PROGRAM__LTX_preloaded_symbols[] =
6422d9c7fc6cSmrg{
642305a1a286Smrg  { "@PROGRAM@", (void *) 0 },
642405a1a286Smrg_LT_EOF
642505a1a286Smrg	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
642605a1a286Smrg	  cat <<\_LT_EOF >> conftest.$ac_ext
642705a1a286Smrg  {0, (void *) 0}
642805a1a286Smrg};
6429d9c7fc6cSmrg
643005a1a286Smrg/* This works around a problem in FreeBSD linker */
643105a1a286Smrg#ifdef FREEBSD_WORKAROUND
643205a1a286Smrgstatic const void *lt_preloaded_setup() {
643305a1a286Smrg  return lt__PROGRAM__LTX_preloaded_symbols;
6434d9c7fc6cSmrg}
643505a1a286Smrg#endif
643605a1a286Smrg
643705a1a286Smrg#ifdef __cplusplus
643805a1a286Smrg}
643905a1a286Smrg#endif
644005a1a286Smrg_LT_EOF
644105a1a286Smrg	  # Now try linking the two files.
644205a1a286Smrg	  mv conftest.$ac_objext conftstm.$ac_objext
644305a1a286Smrg	  lt_save_LIBS="$LIBS"
644405a1a286Smrg	  lt_save_CFLAGS="$CFLAGS"
644505a1a286Smrg	  LIBS="conftstm.$ac_objext"
644605a1a286Smrg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
644705a1a286Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
644805a1a286Smrg  (eval $ac_link) 2>&5
6449d9c7fc6cSmrg  ac_status=$?
645005a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
645105a1a286Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
645205a1a286Smrg	    pipe_works=yes
645305a1a286Smrg	  fi
645405a1a286Smrg	  LIBS="$lt_save_LIBS"
645505a1a286Smrg	  CFLAGS="$lt_save_CFLAGS"
645605a1a286Smrg	else
645705a1a286Smrg	  echo "cannot find nm_test_func in $nlist" >&5
645805a1a286Smrg	fi
645905a1a286Smrg      else
646005a1a286Smrg	echo "cannot find nm_test_var in $nlist" >&5
646105a1a286Smrg      fi
646205a1a286Smrg    else
646305a1a286Smrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
646405a1a286Smrg    fi
646505a1a286Smrg  else
646605a1a286Smrg    echo "$progname: failed program was:" >&5
646705a1a286Smrg    cat conftest.$ac_ext >&5
646805a1a286Smrg  fi
646905a1a286Smrg  rm -rf conftest* conftst*
6470d9c7fc6cSmrg
647105a1a286Smrg  # Do not use the global_symbol_pipe unless it works.
647205a1a286Smrg  if test "$pipe_works" = yes; then
647305a1a286Smrg    break
647405a1a286Smrg  else
647505a1a286Smrg    lt_cv_sys_global_symbol_pipe=
647605a1a286Smrg  fi
647705a1a286Smrgdone
6478d9c7fc6cSmrg
6479d9c7fc6cSmrgfi
6480d9c7fc6cSmrg
648105a1a286Smrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
648205a1a286Smrg  lt_cv_sys_global_symbol_to_cdecl=
648305a1a286Smrgfi
648405a1a286Smrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
648505a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
648605a1a286Smrg$as_echo "failed" >&6; }
648705a1a286Smrgelse
648805a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
648905a1a286Smrg$as_echo "ok" >&6; }
649005a1a286Smrgfi
6491d9c7fc6cSmrg
6492d9c7fc6cSmrg
6493d9c7fc6cSmrg
6494d9c7fc6cSmrg
6495d9c7fc6cSmrg
6496d9c7fc6cSmrg
6497d9c7fc6cSmrg
6498d9c7fc6cSmrg
6499d9c7fc6cSmrg
6500d9c7fc6cSmrg
6501d9c7fc6cSmrg
6502d9c7fc6cSmrg
6503d9c7fc6cSmrg
6504d9c7fc6cSmrg
6505d9c7fc6cSmrg
6506d9c7fc6cSmrg
6507d9c7fc6cSmrg
6508d9c7fc6cSmrg
6509d9c7fc6cSmrg
6510d9c7fc6cSmrg
6511d9c7fc6cSmrg
6512d9c7fc6cSmrg
651305a1a286Smrg# Check whether --enable-libtool-lock was given.
651405a1a286Smrgif test "${enable_libtool_lock+set}" = set; then :
651505a1a286Smrg  enableval=$enable_libtool_lock;
651605a1a286Smrgfi
6517d9c7fc6cSmrg
651805a1a286Smrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6519d9c7fc6cSmrg
652005a1a286Smrg# Some flags need to be propagated to the compiler or linker for good
652105a1a286Smrg# libtool support.
652205a1a286Smrgcase $host in
652305a1a286Smrgia64-*-hpux*)
652405a1a286Smrg  # Find out which ABI we are using.
652505a1a286Smrg  echo 'int i;' > conftest.$ac_ext
652605a1a286Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
652705a1a286Smrg  (eval $ac_compile) 2>&5
652805a1a286Smrg  ac_status=$?
652905a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
653005a1a286Smrg  test $ac_status = 0; }; then
653105a1a286Smrg    case `/usr/bin/file conftest.$ac_objext` in
653205a1a286Smrg      *ELF-32*)
653305a1a286Smrg	HPUX_IA64_MODE="32"
653405a1a286Smrg	;;
653505a1a286Smrg      *ELF-64*)
653605a1a286Smrg	HPUX_IA64_MODE="64"
653705a1a286Smrg	;;
653805a1a286Smrg    esac
653905a1a286Smrg  fi
654005a1a286Smrg  rm -rf conftest*
654105a1a286Smrg  ;;
654205a1a286Smrg*-*-irix6*)
654305a1a286Smrg  # Find out which ABI we are using.
654405a1a286Smrg  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
654505a1a286Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
654605a1a286Smrg  (eval $ac_compile) 2>&5
654705a1a286Smrg  ac_status=$?
654805a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
654905a1a286Smrg  test $ac_status = 0; }; then
655005a1a286Smrg    if test "$lt_cv_prog_gnu_ld" = yes; then
655105a1a286Smrg      case `/usr/bin/file conftest.$ac_objext` in
655205a1a286Smrg	*32-bit*)
655305a1a286Smrg	  LD="${LD-ld} -melf32bsmip"
655405a1a286Smrg	  ;;
655505a1a286Smrg	*N32*)
655605a1a286Smrg	  LD="${LD-ld} -melf32bmipn32"
655705a1a286Smrg	  ;;
655805a1a286Smrg	*64-bit*)
655905a1a286Smrg	  LD="${LD-ld} -melf64bmip"
656005a1a286Smrg	;;
6561d9c7fc6cSmrg      esac
656205a1a286Smrg    else
656305a1a286Smrg      case `/usr/bin/file conftest.$ac_objext` in
656405a1a286Smrg	*32-bit*)
656505a1a286Smrg	  LD="${LD-ld} -32"
656605a1a286Smrg	  ;;
656705a1a286Smrg	*N32*)
656805a1a286Smrg	  LD="${LD-ld} -n32"
656905a1a286Smrg	  ;;
657005a1a286Smrg	*64-bit*)
657105a1a286Smrg	  LD="${LD-ld} -64"
657205a1a286Smrg	  ;;
657305a1a286Smrg      esac
657405a1a286Smrg    fi
657505a1a286Smrg  fi
657605a1a286Smrg  rm -rf conftest*
657705a1a286Smrg  ;;
6578d9c7fc6cSmrg
657905a1a286Smrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
658005a1a286Smrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
658105a1a286Smrg  # Find out which ABI we are using.
658205a1a286Smrg  echo 'int i;' > conftest.$ac_ext
658305a1a286Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
658405a1a286Smrg  (eval $ac_compile) 2>&5
658505a1a286Smrg  ac_status=$?
658605a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
658705a1a286Smrg  test $ac_status = 0; }; then
658805a1a286Smrg    case `/usr/bin/file conftest.o` in
658905a1a286Smrg      *32-bit*)
659005a1a286Smrg	case $host in
659105a1a286Smrg	  x86_64-*kfreebsd*-gnu)
659205a1a286Smrg	    LD="${LD-ld} -m elf_i386_fbsd"
659305a1a286Smrg	    ;;
659405a1a286Smrg	  x86_64-*linux*)
659505a1a286Smrg	    LD="${LD-ld} -m elf_i386"
659605a1a286Smrg	    ;;
659705a1a286Smrg	  ppc64-*linux*|powerpc64-*linux*)
659805a1a286Smrg	    LD="${LD-ld} -m elf32ppclinux"
659905a1a286Smrg	    ;;
660005a1a286Smrg	  s390x-*linux*)
660105a1a286Smrg	    LD="${LD-ld} -m elf_s390"
660205a1a286Smrg	    ;;
660305a1a286Smrg	  sparc64-*linux*)
660405a1a286Smrg	    LD="${LD-ld} -m elf32_sparc"
660505a1a286Smrg	    ;;
660605a1a286Smrg	esac
6607d9c7fc6cSmrg	;;
660805a1a286Smrg      *64-bit*)
660905a1a286Smrg	case $host in
661005a1a286Smrg	  x86_64-*kfreebsd*-gnu)
661105a1a286Smrg	    LD="${LD-ld} -m elf_x86_64_fbsd"
661205a1a286Smrg	    ;;
661305a1a286Smrg	  x86_64-*linux*)
661405a1a286Smrg	    LD="${LD-ld} -m elf_x86_64"
661505a1a286Smrg	    ;;
661605a1a286Smrg	  ppc*-*linux*|powerpc*-*linux*)
661705a1a286Smrg	    LD="${LD-ld} -m elf64ppc"
661805a1a286Smrg	    ;;
661905a1a286Smrg	  s390*-*linux*|s390*-*tpf*)
662005a1a286Smrg	    LD="${LD-ld} -m elf64_s390"
662105a1a286Smrg	    ;;
662205a1a286Smrg	  sparc*-*linux*)
662305a1a286Smrg	    LD="${LD-ld} -m elf64_sparc"
662405a1a286Smrg	    ;;
662505a1a286Smrg	esac
6626d9c7fc6cSmrg	;;
6627d9c7fc6cSmrg    esac
6628d9c7fc6cSmrg  fi
662905a1a286Smrg  rm -rf conftest*
663005a1a286Smrg  ;;
6631d9c7fc6cSmrg
663205a1a286Smrg*-*-sco3.2v5*)
663305a1a286Smrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
663405a1a286Smrg  SAVE_CFLAGS="$CFLAGS"
663505a1a286Smrg  CFLAGS="$CFLAGS -belf"
663605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
663705a1a286Smrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
663805a1a286Smrgif ${lt_cv_cc_needs_belf+:} false; then :
663905a1a286Smrg  $as_echo_n "(cached) " >&6
664005a1a286Smrgelse
664105a1a286Smrg  ac_ext=c
664205a1a286Smrgac_cpp='$CPP $CPPFLAGS'
664305a1a286Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
664405a1a286Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
664505a1a286Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
6646d9c7fc6cSmrg
664705a1a286Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
664805a1a286Smrg/* end confdefs.h.  */
6649d9c7fc6cSmrg
665005a1a286Smrgint
665105a1a286Smrgmain ()
665205a1a286Smrg{
6653d9c7fc6cSmrg
665405a1a286Smrg  ;
665505a1a286Smrg  return 0;
665605a1a286Smrg}
665705a1a286Smrg_ACEOF
665805a1a286Smrgif ac_fn_c_try_link "$LINENO"; then :
665905a1a286Smrg  lt_cv_cc_needs_belf=yes
666005a1a286Smrgelse
666105a1a286Smrg  lt_cv_cc_needs_belf=no
666205a1a286Smrgfi
666305a1a286Smrgrm -f core conftest.err conftest.$ac_objext \
666405a1a286Smrg    conftest$ac_exeext conftest.$ac_ext
666505a1a286Smrg     ac_ext=c
666605a1a286Smrgac_cpp='$CPP $CPPFLAGS'
666705a1a286Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
666805a1a286Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
666905a1a286Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
667005a1a286Smrg
667105a1a286Smrgfi
667205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
667305a1a286Smrg$as_echo "$lt_cv_cc_needs_belf" >&6; }
667405a1a286Smrg  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
667505a1a286Smrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
667605a1a286Smrg    CFLAGS="$SAVE_CFLAGS"
667705a1a286Smrg  fi
667805a1a286Smrg  ;;
667905a1a286Smrgsparc*-*solaris*)
668005a1a286Smrg  # Find out which ABI we are using.
668105a1a286Smrg  echo 'int i;' > conftest.$ac_ext
668205a1a286Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6683d9c7fc6cSmrg  (eval $ac_compile) 2>&5
6684d9c7fc6cSmrg  ac_status=$?
668505a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
668605a1a286Smrg  test $ac_status = 0; }; then
668705a1a286Smrg    case `/usr/bin/file conftest.o` in
668805a1a286Smrg    *64-bit*)
668905a1a286Smrg      case $lt_cv_prog_gnu_ld in
669005a1a286Smrg      yes*) LD="${LD-ld} -m elf64_sparc" ;;
669105a1a286Smrg      *)
669205a1a286Smrg	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
669305a1a286Smrg	  LD="${LD-ld} -64"
669405a1a286Smrg	fi
669505a1a286Smrg	;;
669605a1a286Smrg      esac
6697d9c7fc6cSmrg      ;;
6698d9c7fc6cSmrg    esac
6699d9c7fc6cSmrg  fi
670005a1a286Smrg  rm -rf conftest*
6701d9c7fc6cSmrg  ;;
6702d9c7fc6cSmrgesac
6703d9c7fc6cSmrg
670405a1a286Smrgneed_locks="$enable_libtool_lock"
670505a1a286Smrg
670605a1a286Smrg
670705a1a286Smrg  case $host_os in
670805a1a286Smrg    rhapsody* | darwin*)
670905a1a286Smrg    if test -n "$ac_tool_prefix"; then
671005a1a286Smrg  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
671105a1a286Smrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
671205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
671305a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
671405a1a286Smrgif ${ac_cv_prog_DSYMUTIL+:} false; then :
671505a1a286Smrg  $as_echo_n "(cached) " >&6
671605a1a286Smrgelse
671705a1a286Smrg  if test -n "$DSYMUTIL"; then
671805a1a286Smrg  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
671905a1a286Smrgelse
672005a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
672105a1a286Smrgfor as_dir in $PATH
672205a1a286Smrgdo
672305a1a286Smrg  IFS=$as_save_IFS
672405a1a286Smrg  test -z "$as_dir" && as_dir=.
672505a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
672605a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
672705a1a286Smrg    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
672805a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
672905a1a286Smrg    break 2
6730d9c7fc6cSmrg  fi
673105a1a286Smrgdone
673205a1a286Smrg  done
673305a1a286SmrgIFS=$as_save_IFS
673405a1a286Smrg
673505a1a286Smrgfi
673605a1a286Smrgfi
673705a1a286SmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL
673805a1a286Smrgif test -n "$DSYMUTIL"; then
673905a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
674005a1a286Smrg$as_echo "$DSYMUTIL" >&6; }
6741d9c7fc6cSmrgelse
674205a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
674305a1a286Smrg$as_echo "no" >&6; }
6744d9c7fc6cSmrgfi
6745d9c7fc6cSmrg
6746d9c7fc6cSmrg
674705a1a286Smrgfi
674805a1a286Smrgif test -z "$ac_cv_prog_DSYMUTIL"; then
674905a1a286Smrg  ac_ct_DSYMUTIL=$DSYMUTIL
675005a1a286Smrg  # Extract the first word of "dsymutil", so it can be a program name with args.
675105a1a286Smrgset dummy dsymutil; ac_word=$2
675205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
675305a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
675405a1a286Smrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
675505a1a286Smrg  $as_echo_n "(cached) " >&6
675605a1a286Smrgelse
675705a1a286Smrg  if test -n "$ac_ct_DSYMUTIL"; then
675805a1a286Smrg  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
675905a1a286Smrgelse
676005a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
676105a1a286Smrgfor as_dir in $PATH
676205a1a286Smrgdo
676305a1a286Smrg  IFS=$as_save_IFS
676405a1a286Smrg  test -z "$as_dir" && as_dir=.
676505a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
676605a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
676705a1a286Smrg    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
676805a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
676905a1a286Smrg    break 2
677005a1a286Smrg  fi
677105a1a286Smrgdone
677205a1a286Smrg  done
677305a1a286SmrgIFS=$as_save_IFS
6774d9c7fc6cSmrg
677505a1a286Smrgfi
677605a1a286Smrgfi
677705a1a286Smrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
677805a1a286Smrgif test -n "$ac_ct_DSYMUTIL"; then
677905a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
678005a1a286Smrg$as_echo "$ac_ct_DSYMUTIL" >&6; }
678105a1a286Smrgelse
678205a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
678305a1a286Smrg$as_echo "no" >&6; }
678405a1a286Smrgfi
6785d9c7fc6cSmrg
678605a1a286Smrg  if test "x$ac_ct_DSYMUTIL" = x; then
678705a1a286Smrg    DSYMUTIL=":"
6788d9c7fc6cSmrg  else
678905a1a286Smrg    case $cross_compiling:$ac_tool_warned in
679005a1a286Smrgyes:)
679105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
679205a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
679305a1a286Smrgac_tool_warned=yes ;;
679405a1a286Smrgesac
679505a1a286Smrg    DSYMUTIL=$ac_ct_DSYMUTIL
6796d9c7fc6cSmrg  fi
679705a1a286Smrgelse
679805a1a286Smrg  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
679905a1a286Smrgfi
6800d9c7fc6cSmrg
680105a1a286Smrg    if test -n "$ac_tool_prefix"; then
680205a1a286Smrg  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
680305a1a286Smrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2
680405a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
680505a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
680605a1a286Smrgif ${ac_cv_prog_NMEDIT+:} false; then :
680705a1a286Smrg  $as_echo_n "(cached) " >&6
680805a1a286Smrgelse
680905a1a286Smrg  if test -n "$NMEDIT"; then
681005a1a286Smrg  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
681105a1a286Smrgelse
681205a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
681305a1a286Smrgfor as_dir in $PATH
681405a1a286Smrgdo
681505a1a286Smrg  IFS=$as_save_IFS
681605a1a286Smrg  test -z "$as_dir" && as_dir=.
681705a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
681805a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
681905a1a286Smrg    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
682005a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
682105a1a286Smrg    break 2
682205a1a286Smrg  fi
682305a1a286Smrgdone
682405a1a286Smrg  done
682505a1a286SmrgIFS=$as_save_IFS
6826d9c7fc6cSmrg
682705a1a286Smrgfi
682805a1a286Smrgfi
682905a1a286SmrgNMEDIT=$ac_cv_prog_NMEDIT
683005a1a286Smrgif test -n "$NMEDIT"; then
683105a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
683205a1a286Smrg$as_echo "$NMEDIT" >&6; }
683305a1a286Smrgelse
683405a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
683505a1a286Smrg$as_echo "no" >&6; }
683605a1a286Smrgfi
6837d9c7fc6cSmrg
6838d9c7fc6cSmrg
683905a1a286Smrgfi
684005a1a286Smrgif test -z "$ac_cv_prog_NMEDIT"; then
684105a1a286Smrg  ac_ct_NMEDIT=$NMEDIT
684205a1a286Smrg  # Extract the first word of "nmedit", so it can be a program name with args.
684305a1a286Smrgset dummy nmedit; ac_word=$2
684405a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
684505a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
684605a1a286Smrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
684705a1a286Smrg  $as_echo_n "(cached) " >&6
684805a1a286Smrgelse
684905a1a286Smrg  if test -n "$ac_ct_NMEDIT"; then
685005a1a286Smrg  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
685105a1a286Smrgelse
685205a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
685305a1a286Smrgfor as_dir in $PATH
685405a1a286Smrgdo
685505a1a286Smrg  IFS=$as_save_IFS
685605a1a286Smrg  test -z "$as_dir" && as_dir=.
685705a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
685805a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
685905a1a286Smrg    ac_cv_prog_ac_ct_NMEDIT="nmedit"
686005a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
686105a1a286Smrg    break 2
686205a1a286Smrg  fi
686305a1a286Smrgdone
686405a1a286Smrg  done
686505a1a286SmrgIFS=$as_save_IFS
6866d9c7fc6cSmrg
686705a1a286Smrgfi
686805a1a286Smrgfi
686905a1a286Smrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
687005a1a286Smrgif test -n "$ac_ct_NMEDIT"; then
687105a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
687205a1a286Smrg$as_echo "$ac_ct_NMEDIT" >&6; }
687305a1a286Smrgelse
687405a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
687505a1a286Smrg$as_echo "no" >&6; }
687605a1a286Smrgfi
6877d9c7fc6cSmrg
687805a1a286Smrg  if test "x$ac_ct_NMEDIT" = x; then
687905a1a286Smrg    NMEDIT=":"
688005a1a286Smrg  else
688105a1a286Smrg    case $cross_compiling:$ac_tool_warned in
688205a1a286Smrgyes:)
688305a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
688405a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
688505a1a286Smrgac_tool_warned=yes ;;
688605a1a286Smrgesac
688705a1a286Smrg    NMEDIT=$ac_ct_NMEDIT
688805a1a286Smrg  fi
688905a1a286Smrgelse
689005a1a286Smrg  NMEDIT="$ac_cv_prog_NMEDIT"
689105a1a286Smrgfi
6892d9c7fc6cSmrg
689305a1a286Smrg    if test -n "$ac_tool_prefix"; then
689405a1a286Smrg  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
689505a1a286Smrgset dummy ${ac_tool_prefix}lipo; ac_word=$2
689605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
689705a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
689805a1a286Smrgif ${ac_cv_prog_LIPO+:} false; then :
689905a1a286Smrg  $as_echo_n "(cached) " >&6
690005a1a286Smrgelse
690105a1a286Smrg  if test -n "$LIPO"; then
690205a1a286Smrg  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
690305a1a286Smrgelse
690405a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
690505a1a286Smrgfor as_dir in $PATH
690605a1a286Smrgdo
690705a1a286Smrg  IFS=$as_save_IFS
690805a1a286Smrg  test -z "$as_dir" && as_dir=.
690905a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
691005a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
691105a1a286Smrg    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
691205a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
691305a1a286Smrg    break 2
691405a1a286Smrg  fi
691505a1a286Smrgdone
691605a1a286Smrg  done
691705a1a286SmrgIFS=$as_save_IFS
6918d9c7fc6cSmrg
691905a1a286Smrgfi
692005a1a286Smrgfi
692105a1a286SmrgLIPO=$ac_cv_prog_LIPO
692205a1a286Smrgif test -n "$LIPO"; then
692305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
692405a1a286Smrg$as_echo "$LIPO" >&6; }
692505a1a286Smrgelse
692605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
692705a1a286Smrg$as_echo "no" >&6; }
692805a1a286Smrgfi
692905a1a286Smrg
693005a1a286Smrg
693105a1a286Smrgfi
693205a1a286Smrgif test -z "$ac_cv_prog_LIPO"; then
693305a1a286Smrg  ac_ct_LIPO=$LIPO
693405a1a286Smrg  # Extract the first word of "lipo", so it can be a program name with args.
693505a1a286Smrgset dummy lipo; ac_word=$2
693605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
693705a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
693805a1a286Smrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then :
693905a1a286Smrg  $as_echo_n "(cached) " >&6
694005a1a286Smrgelse
694105a1a286Smrg  if test -n "$ac_ct_LIPO"; then
694205a1a286Smrg  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
694305a1a286Smrgelse
694405a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
694505a1a286Smrgfor as_dir in $PATH
694605a1a286Smrgdo
694705a1a286Smrg  IFS=$as_save_IFS
694805a1a286Smrg  test -z "$as_dir" && as_dir=.
694905a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
695005a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
695105a1a286Smrg    ac_cv_prog_ac_ct_LIPO="lipo"
695205a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
695305a1a286Smrg    break 2
695405a1a286Smrg  fi
695505a1a286Smrgdone
695605a1a286Smrg  done
695705a1a286SmrgIFS=$as_save_IFS
695805a1a286Smrg
695905a1a286Smrgfi
696005a1a286Smrgfi
696105a1a286Smrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
696205a1a286Smrgif test -n "$ac_ct_LIPO"; then
696305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
696405a1a286Smrg$as_echo "$ac_ct_LIPO" >&6; }
696505a1a286Smrgelse
696605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
696705a1a286Smrg$as_echo "no" >&6; }
696805a1a286Smrgfi
696905a1a286Smrg
697005a1a286Smrg  if test "x$ac_ct_LIPO" = x; then
697105a1a286Smrg    LIPO=":"
6972d9c7fc6cSmrg  else
697305a1a286Smrg    case $cross_compiling:$ac_tool_warned in
697405a1a286Smrgyes:)
697505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
697605a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
697705a1a286Smrgac_tool_warned=yes ;;
697805a1a286Smrgesac
697905a1a286Smrg    LIPO=$ac_ct_LIPO
6980d9c7fc6cSmrg  fi
698105a1a286Smrgelse
698205a1a286Smrg  LIPO="$ac_cv_prog_LIPO"
698305a1a286Smrgfi
6984d9c7fc6cSmrg
698505a1a286Smrg    if test -n "$ac_tool_prefix"; then
698605a1a286Smrg  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
698705a1a286Smrgset dummy ${ac_tool_prefix}otool; ac_word=$2
698805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
698905a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
699005a1a286Smrgif ${ac_cv_prog_OTOOL+:} false; then :
699105a1a286Smrg  $as_echo_n "(cached) " >&6
699205a1a286Smrgelse
699305a1a286Smrg  if test -n "$OTOOL"; then
699405a1a286Smrg  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
699505a1a286Smrgelse
699605a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
699705a1a286Smrgfor as_dir in $PATH
699805a1a286Smrgdo
699905a1a286Smrg  IFS=$as_save_IFS
700005a1a286Smrg  test -z "$as_dir" && as_dir=.
700105a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
700205a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
700305a1a286Smrg    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
700405a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
700505a1a286Smrg    break 2
700605a1a286Smrg  fi
700705a1a286Smrgdone
700805a1a286Smrg  done
700905a1a286SmrgIFS=$as_save_IFS
7010d9c7fc6cSmrg
701105a1a286Smrgfi
701205a1a286Smrgfi
701305a1a286SmrgOTOOL=$ac_cv_prog_OTOOL
701405a1a286Smrgif test -n "$OTOOL"; then
701505a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
701605a1a286Smrg$as_echo "$OTOOL" >&6; }
701705a1a286Smrgelse
701805a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
701905a1a286Smrg$as_echo "no" >&6; }
702005a1a286Smrgfi
7021d9c7fc6cSmrg
7022d9c7fc6cSmrg
702305a1a286Smrgfi
702405a1a286Smrgif test -z "$ac_cv_prog_OTOOL"; then
702505a1a286Smrg  ac_ct_OTOOL=$OTOOL
702605a1a286Smrg  # Extract the first word of "otool", so it can be a program name with args.
702705a1a286Smrgset dummy otool; ac_word=$2
702805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
702905a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
703005a1a286Smrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
703105a1a286Smrg  $as_echo_n "(cached) " >&6
703205a1a286Smrgelse
703305a1a286Smrg  if test -n "$ac_ct_OTOOL"; then
703405a1a286Smrg  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
703505a1a286Smrgelse
703605a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
703705a1a286Smrgfor as_dir in $PATH
703805a1a286Smrgdo
703905a1a286Smrg  IFS=$as_save_IFS
704005a1a286Smrg  test -z "$as_dir" && as_dir=.
704105a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
704205a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
704305a1a286Smrg    ac_cv_prog_ac_ct_OTOOL="otool"
704405a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
704505a1a286Smrg    break 2
704605a1a286Smrg  fi
704705a1a286Smrgdone
704805a1a286Smrg  done
704905a1a286SmrgIFS=$as_save_IFS
705005a1a286Smrg
705105a1a286Smrgfi
705205a1a286Smrgfi
705305a1a286Smrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
705405a1a286Smrgif test -n "$ac_ct_OTOOL"; then
705505a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
705605a1a286Smrg$as_echo "$ac_ct_OTOOL" >&6; }
705705a1a286Smrgelse
705805a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
705905a1a286Smrg$as_echo "no" >&6; }
706005a1a286Smrgfi
706105a1a286Smrg
706205a1a286Smrg  if test "x$ac_ct_OTOOL" = x; then
706305a1a286Smrg    OTOOL=":"
7064d9c7fc6cSmrg  else
706505a1a286Smrg    case $cross_compiling:$ac_tool_warned in
706605a1a286Smrgyes:)
706705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
706805a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
706905a1a286Smrgac_tool_warned=yes ;;
707005a1a286Smrgesac
707105a1a286Smrg    OTOOL=$ac_ct_OTOOL
7072d9c7fc6cSmrg  fi
707305a1a286Smrgelse
707405a1a286Smrg  OTOOL="$ac_cv_prog_OTOOL"
707505a1a286Smrgfi
7076d9c7fc6cSmrg
707705a1a286Smrg    if test -n "$ac_tool_prefix"; then
707805a1a286Smrg  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
707905a1a286Smrgset dummy ${ac_tool_prefix}otool64; ac_word=$2
708005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
708105a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
708205a1a286Smrgif ${ac_cv_prog_OTOOL64+:} false; then :
708305a1a286Smrg  $as_echo_n "(cached) " >&6
708405a1a286Smrgelse
708505a1a286Smrg  if test -n "$OTOOL64"; then
708605a1a286Smrg  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
708705a1a286Smrgelse
708805a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
708905a1a286Smrgfor as_dir in $PATH
709005a1a286Smrgdo
709105a1a286Smrg  IFS=$as_save_IFS
709205a1a286Smrg  test -z "$as_dir" && as_dir=.
709305a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
709405a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
709505a1a286Smrg    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
709605a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
709705a1a286Smrg    break 2
7098d9c7fc6cSmrg  fi
709905a1a286Smrgdone
710005a1a286Smrg  done
710105a1a286SmrgIFS=$as_save_IFS
7102d9c7fc6cSmrg
710305a1a286Smrgfi
710405a1a286Smrgfi
710505a1a286SmrgOTOOL64=$ac_cv_prog_OTOOL64
710605a1a286Smrgif test -n "$OTOOL64"; then
710705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
710805a1a286Smrg$as_echo "$OTOOL64" >&6; }
710905a1a286Smrgelse
711005a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
711105a1a286Smrg$as_echo "no" >&6; }
711205a1a286Smrgfi
7113d9c7fc6cSmrg
7114d9c7fc6cSmrg
711505a1a286Smrgfi
711605a1a286Smrgif test -z "$ac_cv_prog_OTOOL64"; then
711705a1a286Smrg  ac_ct_OTOOL64=$OTOOL64
711805a1a286Smrg  # Extract the first word of "otool64", so it can be a program name with args.
711905a1a286Smrgset dummy otool64; ac_word=$2
712005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
712105a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
712205a1a286Smrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
712305a1a286Smrg  $as_echo_n "(cached) " >&6
712405a1a286Smrgelse
712505a1a286Smrg  if test -n "$ac_ct_OTOOL64"; then
712605a1a286Smrg  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
712705a1a286Smrgelse
712805a1a286Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
712905a1a286Smrgfor as_dir in $PATH
713005a1a286Smrgdo
713105a1a286Smrg  IFS=$as_save_IFS
713205a1a286Smrg  test -z "$as_dir" && as_dir=.
713305a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
713405a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
713505a1a286Smrg    ac_cv_prog_ac_ct_OTOOL64="otool64"
713605a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
713705a1a286Smrg    break 2
7138d9c7fc6cSmrg  fi
713905a1a286Smrgdone
714005a1a286Smrg  done
714105a1a286SmrgIFS=$as_save_IFS
7142d9c7fc6cSmrg
714305a1a286Smrgfi
714405a1a286Smrgfi
714505a1a286Smrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
714605a1a286Smrgif test -n "$ac_ct_OTOOL64"; then
714705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
714805a1a286Smrg$as_echo "$ac_ct_OTOOL64" >&6; }
714905a1a286Smrgelse
715005a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
715105a1a286Smrg$as_echo "no" >&6; }
715205a1a286Smrgfi
715305a1a286Smrg
715405a1a286Smrg  if test "x$ac_ct_OTOOL64" = x; then
715505a1a286Smrg    OTOOL64=":"
7156d9c7fc6cSmrg  else
715705a1a286Smrg    case $cross_compiling:$ac_tool_warned in
715805a1a286Smrgyes:)
715905a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
716005a1a286Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
716105a1a286Smrgac_tool_warned=yes ;;
716205a1a286Smrgesac
716305a1a286Smrg    OTOOL64=$ac_ct_OTOOL64
7164d9c7fc6cSmrg  fi
7165d9c7fc6cSmrgelse
716605a1a286Smrg  OTOOL64="$ac_cv_prog_OTOOL64"
7167d9c7fc6cSmrgfi
7168d9c7fc6cSmrg
7169d9c7fc6cSmrg
7170d9c7fc6cSmrg
7171d9c7fc6cSmrg
7172d9c7fc6cSmrg
7173d9c7fc6cSmrg
7174d9c7fc6cSmrg
7175d9c7fc6cSmrg
7176d9c7fc6cSmrg
7177d9c7fc6cSmrg
7178d9c7fc6cSmrg
7179d9c7fc6cSmrg
7180d9c7fc6cSmrg
7181d9c7fc6cSmrg
7182d9c7fc6cSmrg
7183d9c7fc6cSmrg
7184d9c7fc6cSmrg
7185d9c7fc6cSmrg
7186d9c7fc6cSmrg
7187d9c7fc6cSmrg
7188d9c7fc6cSmrg
7189d9c7fc6cSmrg
7190d9c7fc6cSmrg
7191d9c7fc6cSmrg
7192d9c7fc6cSmrg
7193d9c7fc6cSmrg
7194d9c7fc6cSmrg
719505a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
719605a1a286Smrg$as_echo_n "checking for -single_module linker flag... " >&6; }
719705a1a286Smrgif ${lt_cv_apple_cc_single_mod+:} false; then :
719805a1a286Smrg  $as_echo_n "(cached) " >&6
719905a1a286Smrgelse
720005a1a286Smrg  lt_cv_apple_cc_single_mod=no
720105a1a286Smrg      if test -z "${LT_MULTI_MODULE}"; then
720205a1a286Smrg	# By default we will add the -single_module flag. You can override
720305a1a286Smrg	# by either setting the environment variable LT_MULTI_MODULE
720405a1a286Smrg	# non-empty at configure time, or by adding -multi_module to the
720505a1a286Smrg	# link flags.
720605a1a286Smrg	rm -rf libconftest.dylib*
720705a1a286Smrg	echo "int foo(void){return 1;}" > conftest.c
720805a1a286Smrg	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
720905a1a286Smrg-dynamiclib -Wl,-single_module conftest.c" >&5
721005a1a286Smrg	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
721105a1a286Smrg	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
721205a1a286Smrg        _lt_result=$?
721305a1a286Smrg	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
721405a1a286Smrg	  lt_cv_apple_cc_single_mod=yes
721505a1a286Smrg	else
721605a1a286Smrg	  cat conftest.err >&5
721705a1a286Smrg	fi
721805a1a286Smrg	rm -rf libconftest.dylib*
721905a1a286Smrg	rm -f conftest.*
722005a1a286Smrg      fi
722105a1a286Smrgfi
722205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
722305a1a286Smrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
722405a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
722505a1a286Smrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
722605a1a286Smrgif ${lt_cv_ld_exported_symbols_list+:} false; then :
722705a1a286Smrg  $as_echo_n "(cached) " >&6
722805a1a286Smrgelse
722905a1a286Smrg  lt_cv_ld_exported_symbols_list=no
723005a1a286Smrg      save_LDFLAGS=$LDFLAGS
723105a1a286Smrg      echo "_main" > conftest.sym
723205a1a286Smrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
723305a1a286Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
723405a1a286Smrg/* end confdefs.h.  */
723505a1a286Smrg
723605a1a286Smrgint
723705a1a286Smrgmain ()
723805a1a286Smrg{
7239d9c7fc6cSmrg
724005a1a286Smrg  ;
724105a1a286Smrg  return 0;
724205a1a286Smrg}
724305a1a286Smrg_ACEOF
724405a1a286Smrgif ac_fn_c_try_link "$LINENO"; then :
724505a1a286Smrg  lt_cv_ld_exported_symbols_list=yes
724605a1a286Smrgelse
724705a1a286Smrg  lt_cv_ld_exported_symbols_list=no
724805a1a286Smrgfi
724905a1a286Smrgrm -f core conftest.err conftest.$ac_objext \
725005a1a286Smrg    conftest$ac_exeext conftest.$ac_ext
725105a1a286Smrg	LDFLAGS="$save_LDFLAGS"
7252d9c7fc6cSmrg
725305a1a286Smrgfi
725405a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
725505a1a286Smrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
725605a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
725705a1a286Smrg$as_echo_n "checking for -force_load linker flag... " >&6; }
725805a1a286Smrgif ${lt_cv_ld_force_load+:} false; then :
725905a1a286Smrg  $as_echo_n "(cached) " >&6
726005a1a286Smrgelse
726105a1a286Smrg  lt_cv_ld_force_load=no
726205a1a286Smrg      cat > conftest.c << _LT_EOF
726305a1a286Smrgint forced_loaded() { return 2;}
726405a1a286Smrg_LT_EOF
726505a1a286Smrg      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
726605a1a286Smrg      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
726705a1a286Smrg      echo "$AR cru libconftest.a conftest.o" >&5
726805a1a286Smrg      $AR cru libconftest.a conftest.o 2>&5
726905a1a286Smrg      echo "$RANLIB libconftest.a" >&5
727005a1a286Smrg      $RANLIB libconftest.a 2>&5
727105a1a286Smrg      cat > conftest.c << _LT_EOF
727205a1a286Smrgint main() { return 0;}
727305a1a286Smrg_LT_EOF
727405a1a286Smrg      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
727505a1a286Smrg      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
727605a1a286Smrg      _lt_result=$?
727705a1a286Smrg      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
727805a1a286Smrg	lt_cv_ld_force_load=yes
727905a1a286Smrg      else
728005a1a286Smrg	cat conftest.err >&5
728105a1a286Smrg      fi
728205a1a286Smrg        rm -f conftest.err libconftest.a conftest conftest.c
728305a1a286Smrg        rm -rf conftest.dSYM
7284d9c7fc6cSmrg
728505a1a286Smrgfi
728605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
728705a1a286Smrg$as_echo "$lt_cv_ld_force_load" >&6; }
7288d9c7fc6cSmrg    case $host_os in
728905a1a286Smrg    rhapsody* | darwin1.[012])
729005a1a286Smrg      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
729105a1a286Smrg    darwin1.*)
729205a1a286Smrg      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
729305a1a286Smrg    darwin*) # darwin 5.x on
729405a1a286Smrg      # if running on 10.5 or later, the deployment target defaults
729505a1a286Smrg      # to the OS version, if on x86, and 10.4, the deployment
729605a1a286Smrg      # target defaults to 10.4. Don't you love it?
729705a1a286Smrg      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
729805a1a286Smrg	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
729905a1a286Smrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
730005a1a286Smrg	10.[012]*)
730105a1a286Smrg	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
730205a1a286Smrg	10.*)
730305a1a286Smrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7304d9c7fc6cSmrg      esac
730505a1a286Smrg    ;;
730605a1a286Smrg  esac
730705a1a286Smrg    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
730805a1a286Smrg      _lt_dar_single_mod='$single_module'
730905a1a286Smrg    fi
731005a1a286Smrg    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
731105a1a286Smrg      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
731205a1a286Smrg    else
731305a1a286Smrg      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
731405a1a286Smrg    fi
731505a1a286Smrg    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
731605a1a286Smrg      _lt_dsymutil='~$DSYMUTIL $lib || :'
731705a1a286Smrg    else
731805a1a286Smrg      _lt_dsymutil=
731905a1a286Smrg    fi
732005a1a286Smrg    ;;
732105a1a286Smrg  esac
7322d9c7fc6cSmrg
732305a1a286Smrgfor ac_header in dlfcn.h
732405a1a286Smrgdo :
732505a1a286Smrg  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
732605a1a286Smrg"
732705a1a286Smrgif test "x$ac_cv_header_dlfcn_h" = xyes; then :
732805a1a286Smrg  cat >>confdefs.h <<_ACEOF
732905a1a286Smrg#define HAVE_DLFCN_H 1
733005a1a286Smrg_ACEOF
7331d9c7fc6cSmrg
733205a1a286Smrgfi
7333d9c7fc6cSmrg
733405a1a286Smrgdone
7335d9c7fc6cSmrg
7336d9c7fc6cSmrg
7337d9c7fc6cSmrg
7338d9c7fc6cSmrg
7339d9c7fc6cSmrg
734005a1a286Smrg# Set options
7341d9c7fc6cSmrg
7342d9c7fc6cSmrg
7343d9c7fc6cSmrg
734405a1a286Smrg        enable_dlopen=no
7345d9c7fc6cSmrg
734605a1a286Smrg
734705a1a286Smrg  enable_win32_dll=no
734805a1a286Smrg
734905a1a286Smrg
735005a1a286Smrg            # Check whether --enable-shared was given.
735105a1a286Smrgif test "${enable_shared+set}" = set; then :
735205a1a286Smrg  enableval=$enable_shared; p=${PACKAGE-default}
735305a1a286Smrg    case $enableval in
735405a1a286Smrg    yes) enable_shared=yes ;;
735505a1a286Smrg    no) enable_shared=no ;;
735605a1a286Smrg    *)
735705a1a286Smrg      enable_shared=no
735805a1a286Smrg      # Look at the argument we got.  We use all the common list separators.
735905a1a286Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
736005a1a286Smrg      for pkg in $enableval; do
736105a1a286Smrg	IFS="$lt_save_ifs"
736205a1a286Smrg	if test "X$pkg" = "X$p"; then
736305a1a286Smrg	  enable_shared=yes
736405a1a286Smrg	fi
736505a1a286Smrg      done
736605a1a286Smrg      IFS="$lt_save_ifs"
736705a1a286Smrg      ;;
736805a1a286Smrg    esac
7369d9c7fc6cSmrgelse
737005a1a286Smrg  enable_shared=yes
7371d9c7fc6cSmrgfi
7372d9c7fc6cSmrg
7373d9c7fc6cSmrg
7374d9c7fc6cSmrg
737505a1a286Smrg
737605a1a286Smrg
737705a1a286Smrg
737805a1a286Smrg
737905a1a286Smrg
738005a1a286Smrg
738105a1a286Smrg  # Check whether --enable-static was given.
738205a1a286Smrgif test "${enable_static+set}" = set; then :
738305a1a286Smrg  enableval=$enable_static; p=${PACKAGE-default}
738405a1a286Smrg    case $enableval in
738505a1a286Smrg    yes) enable_static=yes ;;
738605a1a286Smrg    no) enable_static=no ;;
7387d9c7fc6cSmrg    *)
738805a1a286Smrg     enable_static=no
738905a1a286Smrg      # Look at the argument we got.  We use all the common list separators.
739005a1a286Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
739105a1a286Smrg      for pkg in $enableval; do
739205a1a286Smrg	IFS="$lt_save_ifs"
739305a1a286Smrg	if test "X$pkg" = "X$p"; then
739405a1a286Smrg	  enable_static=yes
739505a1a286Smrg	fi
739605a1a286Smrg      done
739705a1a286Smrg      IFS="$lt_save_ifs"
7398d9c7fc6cSmrg      ;;
7399d9c7fc6cSmrg    esac
740005a1a286Smrgelse
740105a1a286Smrg  enable_static=yes
740205a1a286Smrgfi
7403d9c7fc6cSmrg
7404d9c7fc6cSmrg
7405d9c7fc6cSmrg
7406d9c7fc6cSmrg
7407d9c7fc6cSmrg
7408d9c7fc6cSmrg
7409d9c7fc6cSmrg
7410d9c7fc6cSmrg
7411d9c7fc6cSmrg
7412d9c7fc6cSmrg
741305a1a286Smrg# Check whether --with-pic was given.
741405a1a286Smrgif test "${with_pic+set}" = set; then :
741505a1a286Smrg  withval=$with_pic; pic_mode="$withval"
741605a1a286Smrgelse
741705a1a286Smrg  pic_mode=default
741805a1a286Smrgfi
7419d9c7fc6cSmrg
7420d9c7fc6cSmrg
742105a1a286Smrgtest -z "$pic_mode" && pic_mode=default
7422d9c7fc6cSmrg
7423d9c7fc6cSmrg
7424d9c7fc6cSmrg
7425d9c7fc6cSmrg
7426d9c7fc6cSmrg
7427d9c7fc6cSmrg
7428d9c7fc6cSmrg
742905a1a286Smrg  # Check whether --enable-fast-install was given.
743005a1a286Smrgif test "${enable_fast_install+set}" = set; then :
743105a1a286Smrg  enableval=$enable_fast_install; p=${PACKAGE-default}
743205a1a286Smrg    case $enableval in
743305a1a286Smrg    yes) enable_fast_install=yes ;;
743405a1a286Smrg    no) enable_fast_install=no ;;
743505a1a286Smrg    *)
743605a1a286Smrg      enable_fast_install=no
743705a1a286Smrg      # Look at the argument we got.  We use all the common list separators.
743805a1a286Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
743905a1a286Smrg      for pkg in $enableval; do
744005a1a286Smrg	IFS="$lt_save_ifs"
744105a1a286Smrg	if test "X$pkg" = "X$p"; then
744205a1a286Smrg	  enable_fast_install=yes
744305a1a286Smrg	fi
744405a1a286Smrg      done
744505a1a286Smrg      IFS="$lt_save_ifs"
744605a1a286Smrg      ;;
744705a1a286Smrg    esac
744805a1a286Smrgelse
744905a1a286Smrg  enable_fast_install=yes
745005a1a286Smrgfi
7451d9c7fc6cSmrg
7452d9c7fc6cSmrg
7453d9c7fc6cSmrg
7454d9c7fc6cSmrg
7455d9c7fc6cSmrg
7456d9c7fc6cSmrg
7457d9c7fc6cSmrg
7458d9c7fc6cSmrg
7459d9c7fc6cSmrg
7460d9c7fc6cSmrg
7461d9c7fc6cSmrg
746205a1a286Smrg# This can be used to rebuild libtool when needed
746305a1a286SmrgLIBTOOL_DEPS="$ltmain"
746405a1a286Smrg
746505a1a286Smrg# Always use our own libtool.
746605a1a286SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
7467d9c7fc6cSmrg
7468d9c7fc6cSmrg
7469d9c7fc6cSmrg
7470d9c7fc6cSmrg
7471d9c7fc6cSmrg
7472d9c7fc6cSmrg
7473d9c7fc6cSmrg
7474d9c7fc6cSmrg
7475d9c7fc6cSmrg
7476d9c7fc6cSmrg
7477d9c7fc6cSmrg
7478d9c7fc6cSmrg
7479d9c7fc6cSmrg
7480d9c7fc6cSmrg
7481d9c7fc6cSmrg
7482d9c7fc6cSmrg
7483d9c7fc6cSmrg
7484d9c7fc6cSmrg
7485d9c7fc6cSmrg
7486d9c7fc6cSmrg
7487d9c7fc6cSmrg
7488d9c7fc6cSmrg
7489d9c7fc6cSmrg
7490d9c7fc6cSmrg
7491d9c7fc6cSmrg
7492d9c7fc6cSmrg
749305a1a286Smrgtest -z "$LN_S" && LN_S="ln -s"
7494d9c7fc6cSmrg
7495d9c7fc6cSmrg
7496d9c7fc6cSmrg
7497d9c7fc6cSmrg
7498d9c7fc6cSmrg
7499d9c7fc6cSmrg
7500d9c7fc6cSmrg
7501d9c7fc6cSmrg
7502d9c7fc6cSmrg
7503d9c7fc6cSmrg
7504d9c7fc6cSmrg
7505d9c7fc6cSmrg
7506d9c7fc6cSmrg
7507d9c7fc6cSmrg
750805a1a286Smrgif test -n "${ZSH_VERSION+set}" ; then
750905a1a286Smrg   setopt NO_GLOB_SUBST
751005a1a286Smrgfi
7511d9c7fc6cSmrg
751205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
751305a1a286Smrg$as_echo_n "checking for objdir... " >&6; }
751405a1a286Smrgif ${lt_cv_objdir+:} false; then :
751505a1a286Smrg  $as_echo_n "(cached) " >&6
751605a1a286Smrgelse
751705a1a286Smrg  rm -f .libs 2>/dev/null
751805a1a286Smrgmkdir .libs 2>/dev/null
751905a1a286Smrgif test -d .libs; then
752005a1a286Smrg  lt_cv_objdir=.libs
752105a1a286Smrgelse
752205a1a286Smrg  # MS-DOS does not allow filenames that begin with a dot.
752305a1a286Smrg  lt_cv_objdir=_libs
752405a1a286Smrgfi
752505a1a286Smrgrmdir .libs 2>/dev/null
752605a1a286Smrgfi
752705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
752805a1a286Smrg$as_echo "$lt_cv_objdir" >&6; }
752905a1a286Smrgobjdir=$lt_cv_objdir
7530d9c7fc6cSmrg
7531d9c7fc6cSmrg
7532d9c7fc6cSmrg
7533d9c7fc6cSmrg
7534d9c7fc6cSmrg
753505a1a286Smrgcat >>confdefs.h <<_ACEOF
753605a1a286Smrg#define LT_OBJDIR "$lt_cv_objdir/"
753705a1a286Smrg_ACEOF
7538d9c7fc6cSmrg
7539d9c7fc6cSmrg
7540d9c7fc6cSmrg
7541d9c7fc6cSmrg
754205a1a286Smrgcase $host_os in
754305a1a286Smrgaix3*)
754405a1a286Smrg  # AIX sometimes has problems with the GCC collect2 program.  For some
754505a1a286Smrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
754605a1a286Smrg  # vanish in a puff of smoke.
754705a1a286Smrg  if test "X${COLLECT_NAMES+set}" != Xset; then
754805a1a286Smrg    COLLECT_NAMES=
754905a1a286Smrg    export COLLECT_NAMES
755005a1a286Smrg  fi
755105a1a286Smrg  ;;
755205a1a286Smrgesac
7553d9c7fc6cSmrg
755405a1a286Smrg# Global variables:
755505a1a286Smrgofile=libtool
755605a1a286Smrgcan_build_shared=yes
7557d9c7fc6cSmrg
755805a1a286Smrg# All known linkers require a `.a' archive for static linking (except MSVC,
755905a1a286Smrg# which needs '.lib').
756005a1a286Smrglibext=a
7561d9c7fc6cSmrg
756205a1a286Smrgwith_gnu_ld="$lt_cv_prog_gnu_ld"
7563d9c7fc6cSmrg
756405a1a286Smrgold_CC="$CC"
756505a1a286Smrgold_CFLAGS="$CFLAGS"
7566d9c7fc6cSmrg
756705a1a286Smrg# Set sane defaults for various variables
756805a1a286Smrgtest -z "$CC" && CC=cc
756905a1a286Smrgtest -z "$LTCC" && LTCC=$CC
757005a1a286Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
757105a1a286Smrgtest -z "$LD" && LD=ld
757205a1a286Smrgtest -z "$ac_objext" && ac_objext=o
7573d9c7fc6cSmrg
757405a1a286Smrgfor cc_temp in $compiler""; do
757505a1a286Smrg  case $cc_temp in
757605a1a286Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
757705a1a286Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
757805a1a286Smrg    \-*) ;;
757905a1a286Smrg    *) break;;
758005a1a286Smrg  esac
758105a1a286Smrgdone
758205a1a286Smrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7583d9c7fc6cSmrg
7584d9c7fc6cSmrg
758505a1a286Smrg# Only perform the check for file, if the check method requires it
758605a1a286Smrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
758705a1a286Smrgcase $deplibs_check_method in
758805a1a286Smrgfile_magic*)
758905a1a286Smrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
759005a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
759105a1a286Smrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
759205a1a286Smrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
759305a1a286Smrg  $as_echo_n "(cached) " >&6
759405a1a286Smrgelse
759505a1a286Smrg  case $MAGIC_CMD in
759605a1a286Smrg[\\/*] |  ?:[\\/]*)
759705a1a286Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
759805a1a286Smrg  ;;
759905a1a286Smrg*)
760005a1a286Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
760105a1a286Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
760205a1a286Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
760305a1a286Smrg  for ac_dir in $ac_dummy; do
760405a1a286Smrg    IFS="$lt_save_ifs"
760505a1a286Smrg    test -z "$ac_dir" && ac_dir=.
760605a1a286Smrg    if test -f $ac_dir/${ac_tool_prefix}file; then
760705a1a286Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
760805a1a286Smrg      if test -n "$file_magic_test_file"; then
760905a1a286Smrg	case $deplibs_check_method in
761005a1a286Smrg	"file_magic "*)
761105a1a286Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
761205a1a286Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
761305a1a286Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
761405a1a286Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
761505a1a286Smrg	    :
761605a1a286Smrg	  else
761705a1a286Smrg	    cat <<_LT_EOF 1>&2
7618d9c7fc6cSmrg
761905a1a286Smrg*** Warning: the command libtool uses to detect shared libraries,
762005a1a286Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
762105a1a286Smrg*** The result is that libtool may fail to recognize shared libraries
762205a1a286Smrg*** as such.  This will affect the creation of libtool libraries that
762305a1a286Smrg*** depend on shared libraries, but programs linked with such libtool
762405a1a286Smrg*** libraries will work regardless of this problem.  Nevertheless, you
762505a1a286Smrg*** may want to report the problem to your system manager and/or to
762605a1a286Smrg*** bug-libtool@gnu.org
7627d9c7fc6cSmrg
762805a1a286Smrg_LT_EOF
762905a1a286Smrg	  fi ;;
763005a1a286Smrg	esac
763105a1a286Smrg      fi
763205a1a286Smrg      break
763305a1a286Smrg    fi
763405a1a286Smrg  done
763505a1a286Smrg  IFS="$lt_save_ifs"
763605a1a286Smrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
763705a1a286Smrg  ;;
763805a1a286Smrgesac
763905a1a286Smrgfi
7640d9c7fc6cSmrg
764105a1a286SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
764205a1a286Smrgif test -n "$MAGIC_CMD"; then
764305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
764405a1a286Smrg$as_echo "$MAGIC_CMD" >&6; }
764505a1a286Smrgelse
764605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
764705a1a286Smrg$as_echo "no" >&6; }
764805a1a286Smrgfi
7649d9c7fc6cSmrg
7650d9c7fc6cSmrg
7651d9c7fc6cSmrg
7652d9c7fc6cSmrg
7653d9c7fc6cSmrg
765405a1a286Smrgif test -z "$lt_cv_path_MAGIC_CMD"; then
765505a1a286Smrg  if test -n "$ac_tool_prefix"; then
765605a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
765705a1a286Smrg$as_echo_n "checking for file... " >&6; }
765805a1a286Smrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
765905a1a286Smrg  $as_echo_n "(cached) " >&6
766005a1a286Smrgelse
766105a1a286Smrg  case $MAGIC_CMD in
766205a1a286Smrg[\\/*] |  ?:[\\/]*)
766305a1a286Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
766405a1a286Smrg  ;;
766505a1a286Smrg*)
766605a1a286Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
766705a1a286Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
766805a1a286Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
766905a1a286Smrg  for ac_dir in $ac_dummy; do
767005a1a286Smrg    IFS="$lt_save_ifs"
767105a1a286Smrg    test -z "$ac_dir" && ac_dir=.
767205a1a286Smrg    if test -f $ac_dir/file; then
767305a1a286Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/file"
767405a1a286Smrg      if test -n "$file_magic_test_file"; then
767505a1a286Smrg	case $deplibs_check_method in
767605a1a286Smrg	"file_magic "*)
767705a1a286Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
767805a1a286Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
767905a1a286Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
768005a1a286Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
768105a1a286Smrg	    :
768205a1a286Smrg	  else
768305a1a286Smrg	    cat <<_LT_EOF 1>&2
7684d9c7fc6cSmrg
768505a1a286Smrg*** Warning: the command libtool uses to detect shared libraries,
768605a1a286Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
768705a1a286Smrg*** The result is that libtool may fail to recognize shared libraries
768805a1a286Smrg*** as such.  This will affect the creation of libtool libraries that
768905a1a286Smrg*** depend on shared libraries, but programs linked with such libtool
769005a1a286Smrg*** libraries will work regardless of this problem.  Nevertheless, you
769105a1a286Smrg*** may want to report the problem to your system manager and/or to
769205a1a286Smrg*** bug-libtool@gnu.org
7693d9c7fc6cSmrg
769405a1a286Smrg_LT_EOF
769505a1a286Smrg	  fi ;;
769605a1a286Smrg	esac
769705a1a286Smrg      fi
769805a1a286Smrg      break
769905a1a286Smrg    fi
770005a1a286Smrg  done
770105a1a286Smrg  IFS="$lt_save_ifs"
770205a1a286Smrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
770305a1a286Smrg  ;;
770405a1a286Smrgesac
770505a1a286Smrgfi
7706d9c7fc6cSmrg
770705a1a286SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
770805a1a286Smrgif test -n "$MAGIC_CMD"; then
770905a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
771005a1a286Smrg$as_echo "$MAGIC_CMD" >&6; }
7711d9c7fc6cSmrgelse
771205a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
771305a1a286Smrg$as_echo "no" >&6; }
771405a1a286Smrgfi
771505a1a286Smrg
771605a1a286Smrg
771705a1a286Smrg  else
771805a1a286Smrg    MAGIC_CMD=:
7719d9c7fc6cSmrg  fi
7720d9c7fc6cSmrgfi
7721d9c7fc6cSmrg
772205a1a286Smrg  fi
772305a1a286Smrg  ;;
772405a1a286Smrgesac
772505a1a286Smrg
772605a1a286Smrg# Use C for the default configuration in the libtool script
7727d9c7fc6cSmrg
772805a1a286Smrglt_save_CC="$CC"
7729d9c7fc6cSmrgac_ext=c
7730d9c7fc6cSmrgac_cpp='$CPP $CPPFLAGS'
7731d9c7fc6cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7732d9c7fc6cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7733d9c7fc6cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
7734d9c7fc6cSmrg
7735d9c7fc6cSmrg
773605a1a286Smrg# Source file extension for C test sources.
773705a1a286Smrgac_ext=c
773805a1a286Smrg
773905a1a286Smrg# Object file extension for compiled C test sources.
774005a1a286Smrgobjext=o
774105a1a286Smrgobjext=$objext
7742d9c7fc6cSmrg
774305a1a286Smrg# Code to be used in simple compile tests
774405a1a286Smrglt_simple_compile_test_code="int some_variable = 0;"
7745d9c7fc6cSmrg
774605a1a286Smrg# Code to be used in simple link tests
774705a1a286Smrglt_simple_link_test_code='int main(){return(0);}'
7748d9c7fc6cSmrg
7749d9c7fc6cSmrg
7750d9c7fc6cSmrg
7751d9c7fc6cSmrg
7752d9c7fc6cSmrg
7753d9c7fc6cSmrg
7754d9c7fc6cSmrg
7755d9c7fc6cSmrg# If no C compiler was specified, use CC.
7756d9c7fc6cSmrgLTCC=${LTCC-"$CC"}
7757d9c7fc6cSmrg
7758d9c7fc6cSmrg# If no C compiler flags were specified, use CFLAGS.
7759d9c7fc6cSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7760d9c7fc6cSmrg
7761d9c7fc6cSmrg# Allow CC to be a program name with arguments.
7762d9c7fc6cSmrgcompiler=$CC
7763d9c7fc6cSmrg
776405a1a286Smrg# Save the default compiler, since it gets overwritten when the other
776505a1a286Smrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
776605a1a286Smrgcompiler_DEFAULT=$CC
7767d9c7fc6cSmrg
7768d9c7fc6cSmrg# save warnings/boilerplate of simple test code
7769d9c7fc6cSmrgac_outfile=conftest.$ac_objext
777005a1a286Smrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
7771d9c7fc6cSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7772d9c7fc6cSmrg_lt_compiler_boilerplate=`cat conftest.err`
777305a1a286Smrg$RM conftest*
7774d9c7fc6cSmrg
7775d9c7fc6cSmrgac_outfile=conftest.$ac_objext
777605a1a286Smrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
7777d9c7fc6cSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7778d9c7fc6cSmrg_lt_linker_boilerplate=`cat conftest.err`
777905a1a286Smrg$RM -r conftest*
7780d9c7fc6cSmrg
7781d9c7fc6cSmrg
778205a1a286Smrgif test -n "$compiler"; then
7783d9c7fc6cSmrg
778405a1a286Smrglt_prog_compiler_no_builtin_flag=
7785d9c7fc6cSmrg
7786d9c7fc6cSmrgif test "$GCC" = yes; then
778705a1a286Smrg  case $cc_basename in
778805a1a286Smrg  nvcc*)
778905a1a286Smrg    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
779005a1a286Smrg  *)
779105a1a286Smrg    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
779205a1a286Smrg  esac
7793d9c7fc6cSmrg
779405a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
779505a1a286Smrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
779605a1a286Smrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
779705a1a286Smrg  $as_echo_n "(cached) " >&6
7798d9c7fc6cSmrgelse
7799d9c7fc6cSmrg  lt_cv_prog_compiler_rtti_exceptions=no
780005a1a286Smrg   ac_outfile=conftest.$ac_objext
780105a1a286Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7802d9c7fc6cSmrg   lt_compiler_flag="-fno-rtti -fno-exceptions"
7803d9c7fc6cSmrg   # Insert the option either (1) after the last *FLAGS variable, or
7804d9c7fc6cSmrg   # (2) before a word containing "conftest.", or (3) at the end.
7805d9c7fc6cSmrg   # Note that $ac_compile itself does not contain backslashes and begins
7806d9c7fc6cSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
7807d9c7fc6cSmrg   # The option is referenced via a variable to avoid confusing sed.
7808d9c7fc6cSmrg   lt_compile=`echo "$ac_compile" | $SED \
7809d9c7fc6cSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7810d9c7fc6cSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7811d9c7fc6cSmrg   -e 's:$: $lt_compiler_flag:'`
781205a1a286Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7813d9c7fc6cSmrg   (eval "$lt_compile" 2>conftest.err)
7814d9c7fc6cSmrg   ac_status=$?
7815d9c7fc6cSmrg   cat conftest.err >&5
781605a1a286Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817d9c7fc6cSmrg   if (exit $ac_status) && test -s "$ac_outfile"; then
7818d9c7fc6cSmrg     # The compiler can only warn and ignore the option if not recognized
7819d9c7fc6cSmrg     # So say no if there are warnings other than the usual output.
782005a1a286Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7821d9c7fc6cSmrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7822d9c7fc6cSmrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7823d9c7fc6cSmrg       lt_cv_prog_compiler_rtti_exceptions=yes
7824d9c7fc6cSmrg     fi
7825d9c7fc6cSmrg   fi
782605a1a286Smrg   $RM conftest*
7827d9c7fc6cSmrg
7828d9c7fc6cSmrgfi
782905a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
783005a1a286Smrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7831d9c7fc6cSmrg
7832d9c7fc6cSmrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
783305a1a286Smrg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7834d9c7fc6cSmrgelse
7835d9c7fc6cSmrg    :
7836d9c7fc6cSmrgfi
7837d9c7fc6cSmrg
7838d9c7fc6cSmrgfi
7839d9c7fc6cSmrg
7840d9c7fc6cSmrg
784105a1a286Smrg
784205a1a286Smrg
784305a1a286Smrg
784405a1a286Smrg
784505a1a286Smrg  lt_prog_compiler_wl=
784605a1a286Smrglt_prog_compiler_pic=
784705a1a286Smrglt_prog_compiler_static=
784805a1a286Smrg
784905a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
785005a1a286Smrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7851d9c7fc6cSmrg
7852d9c7fc6cSmrg  if test "$GCC" = yes; then
785305a1a286Smrg    lt_prog_compiler_wl='-Wl,'
785405a1a286Smrg    lt_prog_compiler_static='-static'
7855d9c7fc6cSmrg
7856d9c7fc6cSmrg    case $host_os in
7857d9c7fc6cSmrg      aix*)
7858d9c7fc6cSmrg      # All AIX code is PIC.
7859d9c7fc6cSmrg      if test "$host_cpu" = ia64; then
7860d9c7fc6cSmrg	# AIX 5 now supports IA64 processor
786105a1a286Smrg	lt_prog_compiler_static='-Bstatic'
7862d9c7fc6cSmrg      fi
7863d9c7fc6cSmrg      ;;
7864d9c7fc6cSmrg
7865d9c7fc6cSmrg    amigaos*)
786605a1a286Smrg      case $host_cpu in
786705a1a286Smrg      powerpc)
786805a1a286Smrg            # see comment about AmigaOS4 .so support
786905a1a286Smrg            lt_prog_compiler_pic='-fPIC'
787005a1a286Smrg        ;;
787105a1a286Smrg      m68k)
787205a1a286Smrg            # FIXME: we need at least 68020 code to build shared libraries, but
787305a1a286Smrg            # adding the `-m68020' flag to GCC prevents building anything better,
787405a1a286Smrg            # like `-m68040'.
787505a1a286Smrg            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
787605a1a286Smrg        ;;
787705a1a286Smrg      esac
7878d9c7fc6cSmrg      ;;
7879d9c7fc6cSmrg
788005a1a286Smrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7881d9c7fc6cSmrg      # PIC is the default for these OSes.
7882d9c7fc6cSmrg      ;;
7883d9c7fc6cSmrg
788405a1a286Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
7885d9c7fc6cSmrg      # This hack is so that the source file can tell whether it is being
7886d9c7fc6cSmrg      # built for inclusion in a dll (and should export symbols for example).
788705a1a286Smrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
788805a1a286Smrg      # (--disable-auto-import) libraries
788905a1a286Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
7890d9c7fc6cSmrg      ;;
7891d9c7fc6cSmrg
7892d9c7fc6cSmrg    darwin* | rhapsody*)
7893d9c7fc6cSmrg      # PIC is the default on this platform
7894d9c7fc6cSmrg      # Common symbols not allowed in MH_DYLIB files
789505a1a286Smrg      lt_prog_compiler_pic='-fno-common'
789605a1a286Smrg      ;;
789705a1a286Smrg
789805a1a286Smrg    haiku*)
789905a1a286Smrg      # PIC is the default for Haiku.
790005a1a286Smrg      # The "-static" flag exists, but is broken.
790105a1a286Smrg      lt_prog_compiler_static=
790205a1a286Smrg      ;;
790305a1a286Smrg
790405a1a286Smrg    hpux*)
790505a1a286Smrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
790605a1a286Smrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
790705a1a286Smrg      # sets the default TLS model and affects inlining.
790805a1a286Smrg      case $host_cpu in
790905a1a286Smrg      hppa*64*)
791005a1a286Smrg	# +Z the default
791105a1a286Smrg	;;
791205a1a286Smrg      *)
791305a1a286Smrg	lt_prog_compiler_pic='-fPIC'
791405a1a286Smrg	;;
791505a1a286Smrg      esac
7916d9c7fc6cSmrg      ;;
7917d9c7fc6cSmrg
791805a1a286Smrg    interix[3-9]*)
7919d9c7fc6cSmrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7920d9c7fc6cSmrg      # Instead, we relocate shared libraries at runtime.
7921d9c7fc6cSmrg      ;;
7922d9c7fc6cSmrg
7923d9c7fc6cSmrg    msdosdjgpp*)
7924d9c7fc6cSmrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
7925d9c7fc6cSmrg      # on systems that don't support them.
792605a1a286Smrg      lt_prog_compiler_can_build_shared=no
7927d9c7fc6cSmrg      enable_shared=no
7928d9c7fc6cSmrg      ;;
7929d9c7fc6cSmrg
793005a1a286Smrg    *nto* | *qnx*)
793105a1a286Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
793205a1a286Smrg      # it will coredump.
793305a1a286Smrg      lt_prog_compiler_pic='-fPIC -shared'
793405a1a286Smrg      ;;
793505a1a286Smrg
7936d9c7fc6cSmrg    sysv4*MP*)
7937d9c7fc6cSmrg      if test -d /usr/nec; then
793805a1a286Smrg	lt_prog_compiler_pic=-Kconform_pic
7939d9c7fc6cSmrg      fi
7940d9c7fc6cSmrg      ;;
7941d9c7fc6cSmrg
794205a1a286Smrg    *)
794305a1a286Smrg      lt_prog_compiler_pic='-fPIC'
7944d9c7fc6cSmrg      ;;
794505a1a286Smrg    esac
7946d9c7fc6cSmrg
794705a1a286Smrg    case $cc_basename in
794805a1a286Smrg    nvcc*) # Cuda Compiler Driver 2.2
794905a1a286Smrg      lt_prog_compiler_wl='-Xlinker '
795005a1a286Smrg      lt_prog_compiler_pic='-Xcompiler -fPIC'
7951d9c7fc6cSmrg      ;;
7952d9c7fc6cSmrg    esac
7953d9c7fc6cSmrg  else
7954d9c7fc6cSmrg    # PORTME Check for flag to pass linker flags through the system compiler.
7955d9c7fc6cSmrg    case $host_os in
7956d9c7fc6cSmrg    aix*)
795705a1a286Smrg      lt_prog_compiler_wl='-Wl,'
7958d9c7fc6cSmrg      if test "$host_cpu" = ia64; then
7959d9c7fc6cSmrg	# AIX 5 now supports IA64 processor
796005a1a286Smrg	lt_prog_compiler_static='-Bstatic'
7961d9c7fc6cSmrg      else
796205a1a286Smrg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7963d9c7fc6cSmrg      fi
7964d9c7fc6cSmrg      ;;
7965d9c7fc6cSmrg
796605a1a286Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
7967d9c7fc6cSmrg      # This hack is so that the source file can tell whether it is being
7968d9c7fc6cSmrg      # built for inclusion in a dll (and should export symbols for example).
796905a1a286Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
7970d9c7fc6cSmrg      ;;
7971d9c7fc6cSmrg
7972d9c7fc6cSmrg    hpux9* | hpux10* | hpux11*)
797305a1a286Smrg      lt_prog_compiler_wl='-Wl,'
7974d9c7fc6cSmrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7975d9c7fc6cSmrg      # not for PA HP-UX.
7976d9c7fc6cSmrg      case $host_cpu in
7977d9c7fc6cSmrg      hppa*64*|ia64*)
7978d9c7fc6cSmrg	# +Z the default
7979d9c7fc6cSmrg	;;
7980d9c7fc6cSmrg      *)
798105a1a286Smrg	lt_prog_compiler_pic='+Z'
7982d9c7fc6cSmrg	;;
7983d9c7fc6cSmrg      esac
7984d9c7fc6cSmrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
798505a1a286Smrg      lt_prog_compiler_static='${wl}-a ${wl}archive'
7986d9c7fc6cSmrg      ;;
7987d9c7fc6cSmrg
7988d9c7fc6cSmrg    irix5* | irix6* | nonstopux*)
798905a1a286Smrg      lt_prog_compiler_wl='-Wl,'
7990d9c7fc6cSmrg      # PIC (with -KPIC) is the default.
799105a1a286Smrg      lt_prog_compiler_static='-non_shared'
7992d9c7fc6cSmrg      ;;
7993d9c7fc6cSmrg
799405a1a286Smrg    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7995d9c7fc6cSmrg      case $cc_basename in
799605a1a286Smrg      # old Intel for x86_64 which still supported -KPIC.
799705a1a286Smrg      ecc*)
799805a1a286Smrg	lt_prog_compiler_wl='-Wl,'
799905a1a286Smrg	lt_prog_compiler_pic='-KPIC'
800005a1a286Smrg	lt_prog_compiler_static='-static'
8001d9c7fc6cSmrg        ;;
800205a1a286Smrg      # icc used to be incompatible with GCC.
800305a1a286Smrg      # ICC 10 doesn't accept -KPIC any more.
800405a1a286Smrg      icc* | ifort*)
800505a1a286Smrg	lt_prog_compiler_wl='-Wl,'
800605a1a286Smrg	lt_prog_compiler_pic='-fPIC'
800705a1a286Smrg	lt_prog_compiler_static='-static'
800805a1a286Smrg        ;;
800905a1a286Smrg      # Lahey Fortran 8.1.
801005a1a286Smrg      lf95*)
801105a1a286Smrg	lt_prog_compiler_wl='-Wl,'
801205a1a286Smrg	lt_prog_compiler_pic='--shared'
801305a1a286Smrg	lt_prog_compiler_static='--static'
801405a1a286Smrg	;;
801505a1a286Smrg      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8016d9c7fc6cSmrg        # Portland Group compilers (*not* the Pentium gcc compiler,
8017d9c7fc6cSmrg	# which looks to be a dead project)
801805a1a286Smrg	lt_prog_compiler_wl='-Wl,'
801905a1a286Smrg	lt_prog_compiler_pic='-fpic'
802005a1a286Smrg	lt_prog_compiler_static='-Bstatic'
8021d9c7fc6cSmrg        ;;
8022d9c7fc6cSmrg      ccc*)
802305a1a286Smrg        lt_prog_compiler_wl='-Wl,'
8024d9c7fc6cSmrg        # All Alpha code is PIC.
802505a1a286Smrg        lt_prog_compiler_static='-non_shared'
8026d9c7fc6cSmrg        ;;
802705a1a286Smrg      xl* | bgxl* | bgf* | mpixl*)
802805a1a286Smrg	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
802905a1a286Smrg	lt_prog_compiler_wl='-Wl,'
803005a1a286Smrg	lt_prog_compiler_pic='-qpic'
803105a1a286Smrg	lt_prog_compiler_static='-qstaticlink'
803205a1a286Smrg	;;
803305a1a286Smrg      *)
803405a1a286Smrg	case `$CC -V 2>&1 | sed 5q` in
803505a1a286Smrg	*Sun\ F* | *Sun*Fortran*)
803605a1a286Smrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
803705a1a286Smrg	  lt_prog_compiler_pic='-KPIC'
803805a1a286Smrg	  lt_prog_compiler_static='-Bstatic'
803905a1a286Smrg	  lt_prog_compiler_wl=''
804005a1a286Smrg	  ;;
804105a1a286Smrg	*Sun\ C*)
804205a1a286Smrg	  # Sun C 5.9
804305a1a286Smrg	  lt_prog_compiler_pic='-KPIC'
804405a1a286Smrg	  lt_prog_compiler_static='-Bstatic'
804505a1a286Smrg	  lt_prog_compiler_wl='-Wl,'
804605a1a286Smrg	  ;;
804705a1a286Smrg	esac
804805a1a286Smrg	;;
8049d9c7fc6cSmrg      esac
8050d9c7fc6cSmrg      ;;
8051d9c7fc6cSmrg
805205a1a286Smrg    newsos6)
805305a1a286Smrg      lt_prog_compiler_pic='-KPIC'
805405a1a286Smrg      lt_prog_compiler_static='-Bstatic'
805505a1a286Smrg      ;;
805605a1a286Smrg
805705a1a286Smrg    *nto* | *qnx*)
805805a1a286Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
805905a1a286Smrg      # it will coredump.
806005a1a286Smrg      lt_prog_compiler_pic='-fPIC -shared'
806105a1a286Smrg      ;;
806205a1a286Smrg
8063d9c7fc6cSmrg    osf3* | osf4* | osf5*)
806405a1a286Smrg      lt_prog_compiler_wl='-Wl,'
8065d9c7fc6cSmrg      # All OSF/1 code is PIC.
806605a1a286Smrg      lt_prog_compiler_static='-non_shared'
806705a1a286Smrg      ;;
806805a1a286Smrg
806905a1a286Smrg    rdos*)
807005a1a286Smrg      lt_prog_compiler_static='-non_shared'
8071d9c7fc6cSmrg      ;;
8072d9c7fc6cSmrg
8073d9c7fc6cSmrg    solaris*)
807405a1a286Smrg      lt_prog_compiler_pic='-KPIC'
807505a1a286Smrg      lt_prog_compiler_static='-Bstatic'
8076d9c7fc6cSmrg      case $cc_basename in
807705a1a286Smrg      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
807805a1a286Smrg	lt_prog_compiler_wl='-Qoption ld ';;
8079d9c7fc6cSmrg      *)
808005a1a286Smrg	lt_prog_compiler_wl='-Wl,';;
8081d9c7fc6cSmrg      esac
8082d9c7fc6cSmrg      ;;
8083d9c7fc6cSmrg
8084d9c7fc6cSmrg    sunos4*)
808505a1a286Smrg      lt_prog_compiler_wl='-Qoption ld '
808605a1a286Smrg      lt_prog_compiler_pic='-PIC'
808705a1a286Smrg      lt_prog_compiler_static='-Bstatic'
8088d9c7fc6cSmrg      ;;
8089d9c7fc6cSmrg
8090d9c7fc6cSmrg    sysv4 | sysv4.2uw2* | sysv4.3*)
809105a1a286Smrg      lt_prog_compiler_wl='-Wl,'
809205a1a286Smrg      lt_prog_compiler_pic='-KPIC'
809305a1a286Smrg      lt_prog_compiler_static='-Bstatic'
8094d9c7fc6cSmrg      ;;
8095d9c7fc6cSmrg
8096d9c7fc6cSmrg    sysv4*MP*)
8097d9c7fc6cSmrg      if test -d /usr/nec ;then
809805a1a286Smrg	lt_prog_compiler_pic='-Kconform_pic'
809905a1a286Smrg	lt_prog_compiler_static='-Bstatic'
8100d9c7fc6cSmrg      fi
8101d9c7fc6cSmrg      ;;
8102d9c7fc6cSmrg
8103d9c7fc6cSmrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
810405a1a286Smrg      lt_prog_compiler_wl='-Wl,'
810505a1a286Smrg      lt_prog_compiler_pic='-KPIC'
810605a1a286Smrg      lt_prog_compiler_static='-Bstatic'
8107d9c7fc6cSmrg      ;;
8108d9c7fc6cSmrg
8109d9c7fc6cSmrg    unicos*)
811005a1a286Smrg      lt_prog_compiler_wl='-Wl,'
811105a1a286Smrg      lt_prog_compiler_can_build_shared=no
8112d9c7fc6cSmrg      ;;
8113d9c7fc6cSmrg
8114d9c7fc6cSmrg    uts4*)
811505a1a286Smrg      lt_prog_compiler_pic='-pic'
811605a1a286Smrg      lt_prog_compiler_static='-Bstatic'
8117d9c7fc6cSmrg      ;;
8118d9c7fc6cSmrg
8119d9c7fc6cSmrg    *)
812005a1a286Smrg      lt_prog_compiler_can_build_shared=no
8121d9c7fc6cSmrg      ;;
8122d9c7fc6cSmrg    esac
8123d9c7fc6cSmrg  fi
8124d9c7fc6cSmrg
812505a1a286Smrgcase $host_os in
812605a1a286Smrg  # For platforms which do not support PIC, -DPIC is meaningless:
812705a1a286Smrg  *djgpp*)
812805a1a286Smrg    lt_prog_compiler_pic=
812905a1a286Smrg    ;;
813005a1a286Smrg  *)
813105a1a286Smrg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
813205a1a286Smrg    ;;
813305a1a286Smrgesac
813405a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
813505a1a286Smrg$as_echo "$lt_prog_compiler_pic" >&6; }
813605a1a286Smrg
813705a1a286Smrg
813805a1a286Smrg
813905a1a286Smrg
814005a1a286Smrg
8141d9c7fc6cSmrg
8142d9c7fc6cSmrg#
8143d9c7fc6cSmrg# Check to make sure the PIC flag actually works.
8144d9c7fc6cSmrg#
814505a1a286Smrgif test -n "$lt_prog_compiler_pic"; then
814605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
814705a1a286Smrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
814805a1a286Smrgif ${lt_cv_prog_compiler_pic_works+:} false; then :
814905a1a286Smrg  $as_echo_n "(cached) " >&6
815005a1a286Smrgelse
815105a1a286Smrg  lt_cv_prog_compiler_pic_works=no
815205a1a286Smrg   ac_outfile=conftest.$ac_objext
815305a1a286Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
815405a1a286Smrg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8155d9c7fc6cSmrg   # Insert the option either (1) after the last *FLAGS variable, or
8156d9c7fc6cSmrg   # (2) before a word containing "conftest.", or (3) at the end.
8157d9c7fc6cSmrg   # Note that $ac_compile itself does not contain backslashes and begins
8158d9c7fc6cSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
8159d9c7fc6cSmrg   # The option is referenced via a variable to avoid confusing sed.
8160d9c7fc6cSmrg   lt_compile=`echo "$ac_compile" | $SED \
8161d9c7fc6cSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8162d9c7fc6cSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8163d9c7fc6cSmrg   -e 's:$: $lt_compiler_flag:'`
816405a1a286Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8165d9c7fc6cSmrg   (eval "$lt_compile" 2>conftest.err)
8166d9c7fc6cSmrg   ac_status=$?
8167d9c7fc6cSmrg   cat conftest.err >&5
816805a1a286Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169d9c7fc6cSmrg   if (exit $ac_status) && test -s "$ac_outfile"; then
8170d9c7fc6cSmrg     # The compiler can only warn and ignore the option if not recognized
8171d9c7fc6cSmrg     # So say no if there are warnings other than the usual output.
817205a1a286Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8173d9c7fc6cSmrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8174d9c7fc6cSmrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
817505a1a286Smrg       lt_cv_prog_compiler_pic_works=yes
8176d9c7fc6cSmrg     fi
8177d9c7fc6cSmrg   fi
817805a1a286Smrg   $RM conftest*
8179d9c7fc6cSmrg
8180d9c7fc6cSmrgfi
818105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
818205a1a286Smrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8183d9c7fc6cSmrg
818405a1a286Smrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
818505a1a286Smrg    case $lt_prog_compiler_pic in
8186d9c7fc6cSmrg     "" | " "*) ;;
818705a1a286Smrg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8188d9c7fc6cSmrg     esac
8189d9c7fc6cSmrgelse
819005a1a286Smrg    lt_prog_compiler_pic=
819105a1a286Smrg     lt_prog_compiler_can_build_shared=no
8192d9c7fc6cSmrgfi
8193d9c7fc6cSmrg
8194d9c7fc6cSmrgfi
819505a1a286Smrg
819605a1a286Smrg
819705a1a286Smrg
819805a1a286Smrg
819905a1a286Smrg
8200d9c7fc6cSmrg
8201d9c7fc6cSmrg#
8202d9c7fc6cSmrg# Check to make sure the static flag actually works.
8203d9c7fc6cSmrg#
820405a1a286Smrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
820505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
820605a1a286Smrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
820705a1a286Smrgif ${lt_cv_prog_compiler_static_works+:} false; then :
820805a1a286Smrg  $as_echo_n "(cached) " >&6
8209d9c7fc6cSmrgelse
821005a1a286Smrg  lt_cv_prog_compiler_static_works=no
8211d9c7fc6cSmrg   save_LDFLAGS="$LDFLAGS"
8212d9c7fc6cSmrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
821305a1a286Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8214d9c7fc6cSmrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8215d9c7fc6cSmrg     # The linker can only warn and ignore the option if not recognized
8216d9c7fc6cSmrg     # So say no if there are warnings
8217d9c7fc6cSmrg     if test -s conftest.err; then
8218d9c7fc6cSmrg       # Append any errors to the config.log.
8219d9c7fc6cSmrg       cat conftest.err 1>&5
822005a1a286Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8221d9c7fc6cSmrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8222d9c7fc6cSmrg       if diff conftest.exp conftest.er2 >/dev/null; then
822305a1a286Smrg         lt_cv_prog_compiler_static_works=yes
8224d9c7fc6cSmrg       fi
8225d9c7fc6cSmrg     else
822605a1a286Smrg       lt_cv_prog_compiler_static_works=yes
8227d9c7fc6cSmrg     fi
8228d9c7fc6cSmrg   fi
822905a1a286Smrg   $RM -r conftest*
8230d9c7fc6cSmrg   LDFLAGS="$save_LDFLAGS"
8231d9c7fc6cSmrg
8232d9c7fc6cSmrgfi
823305a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
823405a1a286Smrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8235d9c7fc6cSmrg
823605a1a286Smrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then
8237d9c7fc6cSmrg    :
8238d9c7fc6cSmrgelse
823905a1a286Smrg    lt_prog_compiler_static=
824005a1a286Smrgfi
824105a1a286Smrg
824205a1a286Smrg
824305a1a286Smrg
824405a1a286Smrg
824505a1a286Smrg
824605a1a286Smrg
824705a1a286Smrg
824805a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
824905a1a286Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
825005a1a286Smrgif ${lt_cv_prog_compiler_c_o+:} false; then :
825105a1a286Smrg  $as_echo_n "(cached) " >&6
825205a1a286Smrgelse
825305a1a286Smrg  lt_cv_prog_compiler_c_o=no
825405a1a286Smrg   $RM -r conftest 2>/dev/null
825505a1a286Smrg   mkdir conftest
825605a1a286Smrg   cd conftest
825705a1a286Smrg   mkdir out
825805a1a286Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
825905a1a286Smrg
826005a1a286Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
826105a1a286Smrg   # Insert the option either (1) after the last *FLAGS variable, or
826205a1a286Smrg   # (2) before a word containing "conftest.", or (3) at the end.
826305a1a286Smrg   # Note that $ac_compile itself does not contain backslashes and begins
826405a1a286Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
826505a1a286Smrg   lt_compile=`echo "$ac_compile" | $SED \
826605a1a286Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
826705a1a286Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
826805a1a286Smrg   -e 's:$: $lt_compiler_flag:'`
826905a1a286Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
827005a1a286Smrg   (eval "$lt_compile" 2>out/conftest.err)
827105a1a286Smrg   ac_status=$?
827205a1a286Smrg   cat out/conftest.err >&5
827305a1a286Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
827405a1a286Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
827505a1a286Smrg   then
827605a1a286Smrg     # The compiler can only warn and ignore the option if not recognized
827705a1a286Smrg     # So say no if there are warnings
827805a1a286Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
827905a1a286Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
828005a1a286Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
828105a1a286Smrg       lt_cv_prog_compiler_c_o=yes
828205a1a286Smrg     fi
828305a1a286Smrg   fi
828405a1a286Smrg   chmod u+w . 2>&5
828505a1a286Smrg   $RM conftest*
828605a1a286Smrg   # SGI C++ compiler will create directory out/ii_files/ for
828705a1a286Smrg   # template instantiation
828805a1a286Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
828905a1a286Smrg   $RM out/* && rmdir out
829005a1a286Smrg   cd ..
829105a1a286Smrg   $RM -r conftest
829205a1a286Smrg   $RM conftest*
829305a1a286Smrg
8294d9c7fc6cSmrgfi
829505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
829605a1a286Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
829705a1a286Smrg
829805a1a286Smrg
8299d9c7fc6cSmrg
8300d9c7fc6cSmrg
830105a1a286Smrg
830205a1a286Smrg
830305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
830405a1a286Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
830505a1a286Smrgif ${lt_cv_prog_compiler_c_o+:} false; then :
830605a1a286Smrg  $as_echo_n "(cached) " >&6
8307d9c7fc6cSmrgelse
830805a1a286Smrg  lt_cv_prog_compiler_c_o=no
830905a1a286Smrg   $RM -r conftest 2>/dev/null
8310d9c7fc6cSmrg   mkdir conftest
8311d9c7fc6cSmrg   cd conftest
8312d9c7fc6cSmrg   mkdir out
831305a1a286Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8314d9c7fc6cSmrg
8315d9c7fc6cSmrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
8316d9c7fc6cSmrg   # Insert the option either (1) after the last *FLAGS variable, or
8317d9c7fc6cSmrg   # (2) before a word containing "conftest.", or (3) at the end.
8318d9c7fc6cSmrg   # Note that $ac_compile itself does not contain backslashes and begins
8319d9c7fc6cSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
8320d9c7fc6cSmrg   lt_compile=`echo "$ac_compile" | $SED \
8321d9c7fc6cSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8322d9c7fc6cSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8323d9c7fc6cSmrg   -e 's:$: $lt_compiler_flag:'`
832405a1a286Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8325d9c7fc6cSmrg   (eval "$lt_compile" 2>out/conftest.err)
8326d9c7fc6cSmrg   ac_status=$?
8327d9c7fc6cSmrg   cat out/conftest.err >&5
832805a1a286Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329d9c7fc6cSmrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8330d9c7fc6cSmrg   then
8331d9c7fc6cSmrg     # The compiler can only warn and ignore the option if not recognized
8332d9c7fc6cSmrg     # So say no if there are warnings
833305a1a286Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8334d9c7fc6cSmrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8335d9c7fc6cSmrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
833605a1a286Smrg       lt_cv_prog_compiler_c_o=yes
8337d9c7fc6cSmrg     fi
8338d9c7fc6cSmrg   fi
8339d9c7fc6cSmrg   chmod u+w . 2>&5
834005a1a286Smrg   $RM conftest*
8341d9c7fc6cSmrg   # SGI C++ compiler will create directory out/ii_files/ for
8342d9c7fc6cSmrg   # template instantiation
834305a1a286Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
834405a1a286Smrg   $RM out/* && rmdir out
8345d9c7fc6cSmrg   cd ..
834605a1a286Smrg   $RM -r conftest
834705a1a286Smrg   $RM conftest*
8348d9c7fc6cSmrg
8349d9c7fc6cSmrgfi
835005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
835105a1a286Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
835205a1a286Smrg
835305a1a286Smrg
8354d9c7fc6cSmrg
8355d9c7fc6cSmrg
8356d9c7fc6cSmrghard_links="nottested"
835705a1a286Smrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8358d9c7fc6cSmrg  # do not overwrite the value of need_locks provided by the user
835905a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
836005a1a286Smrg$as_echo_n "checking if we can lock with hard links... " >&6; }
8361d9c7fc6cSmrg  hard_links=yes
836205a1a286Smrg  $RM conftest*
8363d9c7fc6cSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8364d9c7fc6cSmrg  touch conftest.a
8365d9c7fc6cSmrg  ln conftest.a conftest.b 2>&5 || hard_links=no
8366d9c7fc6cSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
836705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
836805a1a286Smrg$as_echo "$hard_links" >&6; }
8369d9c7fc6cSmrg  if test "$hard_links" = no; then
837005a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
837105a1a286Smrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8372d9c7fc6cSmrg    need_locks=warn
8373d9c7fc6cSmrg  fi
8374d9c7fc6cSmrgelse
8375d9c7fc6cSmrg  need_locks=no
8376d9c7fc6cSmrgfi
8377d9c7fc6cSmrg
837805a1a286Smrg
837905a1a286Smrg
838005a1a286Smrg
838105a1a286Smrg
838205a1a286Smrg
838305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
838405a1a286Smrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8385d9c7fc6cSmrg
8386d9c7fc6cSmrg  runpath_var=
838705a1a286Smrg  allow_undefined_flag=
838805a1a286Smrg  always_export_symbols=no
838905a1a286Smrg  archive_cmds=
839005a1a286Smrg  archive_expsym_cmds=
839105a1a286Smrg  compiler_needs_object=no
839205a1a286Smrg  enable_shared_with_static_runtimes=no
839305a1a286Smrg  export_dynamic_flag_spec=
839405a1a286Smrg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
839505a1a286Smrg  hardcode_automatic=no
839605a1a286Smrg  hardcode_direct=no
839705a1a286Smrg  hardcode_direct_absolute=no
839805a1a286Smrg  hardcode_libdir_flag_spec=
839905a1a286Smrg  hardcode_libdir_flag_spec_ld=
840005a1a286Smrg  hardcode_libdir_separator=
840105a1a286Smrg  hardcode_minus_L=no
840205a1a286Smrg  hardcode_shlibpath_var=unsupported
840305a1a286Smrg  inherit_rpath=no
840405a1a286Smrg  link_all_deplibs=unknown
840505a1a286Smrg  module_cmds=
840605a1a286Smrg  module_expsym_cmds=
840705a1a286Smrg  old_archive_from_new_cmds=
840805a1a286Smrg  old_archive_from_expsyms_cmds=
840905a1a286Smrg  thread_safe_flag_spec=
841005a1a286Smrg  whole_archive_flag_spec=
8411d9c7fc6cSmrg  # include_expsyms should be a list of space-separated symbols to be *always*
8412d9c7fc6cSmrg  # included in the symbol list
841305a1a286Smrg  include_expsyms=
8414d9c7fc6cSmrg  # exclude_expsyms can be an extended regexp of symbols to exclude
8415d9c7fc6cSmrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8416d9c7fc6cSmrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8417d9c7fc6cSmrg  # as well as any symbol that contains `d'.
841805a1a286Smrg  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8419d9c7fc6cSmrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8420d9c7fc6cSmrg  # platforms (ab)use it in PIC code, but their linkers get confused if
8421d9c7fc6cSmrg  # the symbol is explicitly referenced.  Since portable code cannot
8422d9c7fc6cSmrg  # rely on this symbol name, it's probably fine to never include it in
8423d9c7fc6cSmrg  # preloaded symbol tables.
842405a1a286Smrg  # Exclude shared library initialization/finalization symbols.
8425d9c7fc6cSmrg  extract_expsyms_cmds=
8426d9c7fc6cSmrg
8427d9c7fc6cSmrg  case $host_os in
842805a1a286Smrg  cygwin* | mingw* | pw32* | cegcc*)
8429d9c7fc6cSmrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8430d9c7fc6cSmrg    # When not using gcc, we currently assume that we are using
8431d9c7fc6cSmrg    # Microsoft Visual C++.
8432d9c7fc6cSmrg    if test "$GCC" != yes; then
8433d9c7fc6cSmrg      with_gnu_ld=no
8434d9c7fc6cSmrg    fi
8435d9c7fc6cSmrg    ;;
8436d9c7fc6cSmrg  interix*)
8437d9c7fc6cSmrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
8438d9c7fc6cSmrg    with_gnu_ld=yes
8439d9c7fc6cSmrg    ;;
8440d9c7fc6cSmrg  openbsd*)
8441d9c7fc6cSmrg    with_gnu_ld=no
8442d9c7fc6cSmrg    ;;
8443d9c7fc6cSmrg  esac
8444d9c7fc6cSmrg
844505a1a286Smrg  ld_shlibs=yes
844605a1a286Smrg
844705a1a286Smrg  # On some targets, GNU ld is compatible enough with the native linker
844805a1a286Smrg  # that we're better off using the native interface for both.
844905a1a286Smrg  lt_use_gnu_ld_interface=no
8450d9c7fc6cSmrg  if test "$with_gnu_ld" = yes; then
845105a1a286Smrg    case $host_os in
845205a1a286Smrg      aix*)
845305a1a286Smrg	# The AIX port of GNU ld has always aspired to compatibility
845405a1a286Smrg	# with the native linker.  However, as the warning in the GNU ld
845505a1a286Smrg	# block says, versions before 2.19.5* couldn't really create working
845605a1a286Smrg	# shared libraries, regardless of the interface used.
845705a1a286Smrg	case `$LD -v 2>&1` in
845805a1a286Smrg	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
845905a1a286Smrg	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
846005a1a286Smrg	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
846105a1a286Smrg	  *)
846205a1a286Smrg	    lt_use_gnu_ld_interface=yes
846305a1a286Smrg	    ;;
846405a1a286Smrg	esac
846505a1a286Smrg	;;
846605a1a286Smrg      *)
846705a1a286Smrg	lt_use_gnu_ld_interface=yes
846805a1a286Smrg	;;
846905a1a286Smrg    esac
847005a1a286Smrg  fi
847105a1a286Smrg
847205a1a286Smrg  if test "$lt_use_gnu_ld_interface" = yes; then
8473d9c7fc6cSmrg    # If archive_cmds runs LD, not CC, wlarc should be empty
8474d9c7fc6cSmrg    wlarc='${wl}'
8475d9c7fc6cSmrg
8476d9c7fc6cSmrg    # Set some defaults for GNU ld with shared library support. These
8477d9c7fc6cSmrg    # are reset later if shared libraries are not supported. Putting them
8478d9c7fc6cSmrg    # here allows them to be overridden if necessary.
8479d9c7fc6cSmrg    runpath_var=LD_RUN_PATH
848005a1a286Smrg    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
848105a1a286Smrg    export_dynamic_flag_spec='${wl}--export-dynamic'
8482d9c7fc6cSmrg    # ancient GNU ld didn't support --whole-archive et. al.
848305a1a286Smrg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
848405a1a286Smrg      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
848505a1a286Smrg    else
848605a1a286Smrg      whole_archive_flag_spec=
8487d9c7fc6cSmrg    fi
8488d9c7fc6cSmrg    supports_anon_versioning=no
848905a1a286Smrg    case `$LD -v 2>&1` in
849005a1a286Smrg      *GNU\ gold*) supports_anon_versioning=yes ;;
8491d9c7fc6cSmrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8492d9c7fc6cSmrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8493d9c7fc6cSmrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8494d9c7fc6cSmrg      *\ 2.11.*) ;; # other 2.11 versions
8495d9c7fc6cSmrg      *) supports_anon_versioning=yes ;;
8496d9c7fc6cSmrg    esac
8497d9c7fc6cSmrg
8498d9c7fc6cSmrg    # See if GNU ld supports shared libraries.
8499d9c7fc6cSmrg    case $host_os in
850005a1a286Smrg    aix[3-9]*)
8501d9c7fc6cSmrg      # On AIX/PPC, the GNU linker is very broken
8502d9c7fc6cSmrg      if test "$host_cpu" != ia64; then
850305a1a286Smrg	ld_shlibs=no
850405a1a286Smrg	cat <<_LT_EOF 1>&2
8505d9c7fc6cSmrg
850605a1a286Smrg*** Warning: the GNU linker, at least up to release 2.19, is reported
8507d9c7fc6cSmrg*** to be unable to reliably create shared libraries on AIX.
8508d9c7fc6cSmrg*** Therefore, libtool is disabling shared libraries support.  If you
850905a1a286Smrg*** really care for shared libraries, you may want to install binutils
851005a1a286Smrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
851105a1a286Smrg*** You will then need to restart the configuration process.
8512d9c7fc6cSmrg
851305a1a286Smrg_LT_EOF
8514d9c7fc6cSmrg      fi
8515d9c7fc6cSmrg      ;;
8516d9c7fc6cSmrg
8517d9c7fc6cSmrg    amigaos*)
851805a1a286Smrg      case $host_cpu in
851905a1a286Smrg      powerpc)
852005a1a286Smrg            # see comment about AmigaOS4 .so support
852105a1a286Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
852205a1a286Smrg            archive_expsym_cmds=''
852305a1a286Smrg        ;;
852405a1a286Smrg      m68k)
852505a1a286Smrg            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)'
852605a1a286Smrg            hardcode_libdir_flag_spec='-L$libdir'
852705a1a286Smrg            hardcode_minus_L=yes
852805a1a286Smrg        ;;
852905a1a286Smrg      esac
8530d9c7fc6cSmrg      ;;
8531d9c7fc6cSmrg
8532d9c7fc6cSmrg    beos*)
853305a1a286Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
853405a1a286Smrg	allow_undefined_flag=unsupported
8535d9c7fc6cSmrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8536d9c7fc6cSmrg	# support --undefined.  This deserves some investigation.  FIXME
853705a1a286Smrg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8538d9c7fc6cSmrg      else
853905a1a286Smrg	ld_shlibs=no
8540d9c7fc6cSmrg      fi
8541d9c7fc6cSmrg      ;;
8542d9c7fc6cSmrg
854305a1a286Smrg    cygwin* | mingw* | pw32* | cegcc*)
854405a1a286Smrg      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
854505a1a286Smrg      # as there is no search path for DLLs.
854605a1a286Smrg      hardcode_libdir_flag_spec='-L$libdir'
854705a1a286Smrg      export_dynamic_flag_spec='${wl}--export-all-symbols'
854805a1a286Smrg      allow_undefined_flag=unsupported
854905a1a286Smrg      always_export_symbols=no
855005a1a286Smrg      enable_shared_with_static_runtimes=yes
855105a1a286Smrg      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
855205a1a286Smrg
855305a1a286Smrg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
855405a1a286Smrg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8555d9c7fc6cSmrg	# If the export-symbols file already is a .def file (1st line
8556d9c7fc6cSmrg	# is EXPORTS), use it as is; otherwise, prepend...
855705a1a286Smrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8558d9c7fc6cSmrg	  cp $export_symbols $output_objdir/$soname.def;
8559d9c7fc6cSmrg	else
8560d9c7fc6cSmrg	  echo EXPORTS > $output_objdir/$soname.def;
8561d9c7fc6cSmrg	  cat $export_symbols >> $output_objdir/$soname.def;
8562d9c7fc6cSmrg	fi~
8563d9c7fc6cSmrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8564d9c7fc6cSmrg      else
856505a1a286Smrg	ld_shlibs=no
8566d9c7fc6cSmrg      fi
8567d9c7fc6cSmrg      ;;
8568d9c7fc6cSmrg
856905a1a286Smrg    haiku*)
857005a1a286Smrg      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
857105a1a286Smrg      link_all_deplibs=yes
857205a1a286Smrg      ;;
857305a1a286Smrg
857405a1a286Smrg    interix[3-9]*)
857505a1a286Smrg      hardcode_direct=no
857605a1a286Smrg      hardcode_shlibpath_var=no
857705a1a286Smrg      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
857805a1a286Smrg      export_dynamic_flag_spec='${wl}-E'
8579d9c7fc6cSmrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8580d9c7fc6cSmrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
8581d9c7fc6cSmrg      # default) and relocated if they conflict, which is a slow very memory
8582d9c7fc6cSmrg      # consuming and fragmenting process.  To avoid this, we pick a random,
8583d9c7fc6cSmrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8584d9c7fc6cSmrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
858505a1a286Smrg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
858605a1a286Smrg      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'
8587d9c7fc6cSmrg      ;;
8588d9c7fc6cSmrg
858905a1a286Smrg    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
859005a1a286Smrg      tmp_diet=no
859105a1a286Smrg      if test "$host_os" = linux-dietlibc; then
859205a1a286Smrg	case $cc_basename in
859305a1a286Smrg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
859405a1a286Smrg	esac
859505a1a286Smrg      fi
859605a1a286Smrg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
859705a1a286Smrg	 && test "$tmp_diet" = no
859805a1a286Smrg      then
8599d9c7fc6cSmrg	tmp_addflag=
860005a1a286Smrg	tmp_sharedflag='-shared'
8601d9c7fc6cSmrg	case $cc_basename,$host_cpu in
860205a1a286Smrg        pgcc*)				# Portland Group C compiler
860305a1a286Smrg	  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'
8604d9c7fc6cSmrg	  tmp_addflag=' $pic_flag'
8605d9c7fc6cSmrg	  ;;
860605a1a286Smrg	pgf77* | pgf90* | pgf95* | pgfortran*)
860705a1a286Smrg					# Portland Group f77 and f90 compilers
860805a1a286Smrg	  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'
8609d9c7fc6cSmrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
861005a1a286Smrg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8611d9c7fc6cSmrg	  tmp_addflag=' -i_dynamic' ;;
8612d9c7fc6cSmrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8613d9c7fc6cSmrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8614d9c7fc6cSmrg	ifc* | ifort*)			# Intel Fortran compiler
8615d9c7fc6cSmrg	  tmp_addflag=' -nofor_main' ;;
861605a1a286Smrg	lf95*)				# Lahey Fortran 8.1
861705a1a286Smrg	  whole_archive_flag_spec=
861805a1a286Smrg	  tmp_sharedflag='--shared' ;;
861905a1a286Smrg	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
862005a1a286Smrg	  tmp_sharedflag='-qmkshrobj'
862105a1a286Smrg	  tmp_addflag= ;;
862205a1a286Smrg	nvcc*)	# Cuda Compiler Driver 2.2
862305a1a286Smrg	  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'
862405a1a286Smrg	  compiler_needs_object=yes
862505a1a286Smrg	  ;;
8626d9c7fc6cSmrg	esac
862705a1a286Smrg	case `$CC -V 2>&1 | sed 5q` in
862805a1a286Smrg	*Sun\ C*)			# Sun C 5.9
862905a1a286Smrg	  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'
863005a1a286Smrg	  compiler_needs_object=yes
863105a1a286Smrg	  tmp_sharedflag='-G' ;;
863205a1a286Smrg	*Sun\ F*)			# Sun Fortran 8.3
863305a1a286Smrg	  tmp_sharedflag='-G' ;;
863405a1a286Smrg	esac
863505a1a286Smrg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8636d9c7fc6cSmrg
863705a1a286Smrg        if test "x$supports_anon_versioning" = xyes; then
863805a1a286Smrg          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
863905a1a286Smrg	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
864005a1a286Smrg	    echo "local: *; };" >> $output_objdir/$libname.ver~
864105a1a286Smrg	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
864205a1a286Smrg        fi
864305a1a286Smrg
864405a1a286Smrg	case $cc_basename in
864505a1a286Smrg	xlf* | bgf* | bgxlf* | mpixlf*)
864605a1a286Smrg	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
864705a1a286Smrg	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
864805a1a286Smrg	  hardcode_libdir_flag_spec=
864905a1a286Smrg	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
865005a1a286Smrg	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
865105a1a286Smrg	  if test "x$supports_anon_versioning" = xyes; then
865205a1a286Smrg	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
865305a1a286Smrg	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
865405a1a286Smrg	      echo "local: *; };" >> $output_objdir/$libname.ver~
865505a1a286Smrg	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
865605a1a286Smrg	  fi
865705a1a286Smrg	  ;;
865805a1a286Smrg	esac
8659d9c7fc6cSmrg      else
866005a1a286Smrg        ld_shlibs=no
8661d9c7fc6cSmrg      fi
8662d9c7fc6cSmrg      ;;
8663d9c7fc6cSmrg
8664d9c7fc6cSmrg    netbsd*)
866505a1a286Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
866605a1a286Smrg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8667d9c7fc6cSmrg	wlarc=
8668d9c7fc6cSmrg      else
866905a1a286Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
867005a1a286Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8671d9c7fc6cSmrg      fi
8672d9c7fc6cSmrg      ;;
8673d9c7fc6cSmrg
8674d9c7fc6cSmrg    solaris*)
867505a1a286Smrg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
867605a1a286Smrg	ld_shlibs=no
867705a1a286Smrg	cat <<_LT_EOF 1>&2
8678d9c7fc6cSmrg
8679d9c7fc6cSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8680d9c7fc6cSmrg*** create shared libraries on Solaris systems.  Therefore, libtool
8681d9c7fc6cSmrg*** is disabling shared libraries support.  We urge you to upgrade GNU
8682d9c7fc6cSmrg*** binutils to release 2.9.1 or newer.  Another option is to modify
8683d9c7fc6cSmrg*** your PATH or compiler configuration so that the native linker is
8684d9c7fc6cSmrg*** used, and then restart.
8685d9c7fc6cSmrg
868605a1a286Smrg_LT_EOF
868705a1a286Smrg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
868805a1a286Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
868905a1a286Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8690d9c7fc6cSmrg      else
869105a1a286Smrg	ld_shlibs=no
8692d9c7fc6cSmrg      fi
8693d9c7fc6cSmrg      ;;
8694d9c7fc6cSmrg
8695d9c7fc6cSmrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8696d9c7fc6cSmrg      case `$LD -v 2>&1` in
8697d9c7fc6cSmrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
869805a1a286Smrg	ld_shlibs=no
8699d9c7fc6cSmrg	cat <<_LT_EOF 1>&2
8700d9c7fc6cSmrg
8701d9c7fc6cSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8702d9c7fc6cSmrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
8703d9c7fc6cSmrg*** is disabling shared libraries support.  We urge you to upgrade GNU
8704d9c7fc6cSmrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8705d9c7fc6cSmrg*** your PATH or compiler configuration so that the native linker is
8706d9c7fc6cSmrg*** used, and then restart.
8707d9c7fc6cSmrg
8708d9c7fc6cSmrg_LT_EOF
8709d9c7fc6cSmrg	;;
8710d9c7fc6cSmrg	*)
871105a1a286Smrg	  # For security reasons, it is highly recommended that you always
871205a1a286Smrg	  # use absolute paths for naming shared libraries, and exclude the
871305a1a286Smrg	  # DT_RUNPATH tag from executables and libraries.  But doing so
871405a1a286Smrg	  # requires that you compile everything twice, which is a pain.
871505a1a286Smrg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
871605a1a286Smrg	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
871705a1a286Smrg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
871805a1a286Smrg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8719d9c7fc6cSmrg	  else
872005a1a286Smrg	    ld_shlibs=no
8721d9c7fc6cSmrg	  fi
8722d9c7fc6cSmrg	;;
8723d9c7fc6cSmrg      esac
8724d9c7fc6cSmrg      ;;
8725d9c7fc6cSmrg
8726d9c7fc6cSmrg    sunos4*)
872705a1a286Smrg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8728d9c7fc6cSmrg      wlarc=
872905a1a286Smrg      hardcode_direct=yes
873005a1a286Smrg      hardcode_shlibpath_var=no
8731d9c7fc6cSmrg      ;;
8732d9c7fc6cSmrg
8733d9c7fc6cSmrg    *)
873405a1a286Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
873505a1a286Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
873605a1a286Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8737d9c7fc6cSmrg      else
873805a1a286Smrg	ld_shlibs=no
8739d9c7fc6cSmrg      fi
8740d9c7fc6cSmrg      ;;
8741d9c7fc6cSmrg    esac
8742d9c7fc6cSmrg
874305a1a286Smrg    if test "$ld_shlibs" = no; then
8744d9c7fc6cSmrg      runpath_var=
874505a1a286Smrg      hardcode_libdir_flag_spec=
874605a1a286Smrg      export_dynamic_flag_spec=
874705a1a286Smrg      whole_archive_flag_spec=
8748d9c7fc6cSmrg    fi
8749d9c7fc6cSmrg  else
8750d9c7fc6cSmrg    # PORTME fill in a description of your system's linker (not GNU ld)
8751d9c7fc6cSmrg    case $host_os in
8752d9c7fc6cSmrg    aix3*)
875305a1a286Smrg      allow_undefined_flag=unsupported
875405a1a286Smrg      always_export_symbols=yes
875505a1a286Smrg      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'
8756d9c7fc6cSmrg      # Note: this linker hardcodes the directories in LIBPATH if there
8757d9c7fc6cSmrg      # are no directories specified by -L.
875805a1a286Smrg      hardcode_minus_L=yes
8759d9c7fc6cSmrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8760d9c7fc6cSmrg	# Neither direct hardcoding nor static linking is supported with a
8761d9c7fc6cSmrg	# broken collect2.
876205a1a286Smrg	hardcode_direct=unsupported
8763d9c7fc6cSmrg      fi
8764d9c7fc6cSmrg      ;;
8765d9c7fc6cSmrg
876605a1a286Smrg    aix[4-9]*)
8767d9c7fc6cSmrg      if test "$host_cpu" = ia64; then
8768d9c7fc6cSmrg	# On IA64, the linker does run time linking by default, so we don't
8769d9c7fc6cSmrg	# have to do anything special.
8770d9c7fc6cSmrg	aix_use_runtimelinking=no
8771d9c7fc6cSmrg	exp_sym_flag='-Bexport'
8772d9c7fc6cSmrg	no_entry_flag=""
8773d9c7fc6cSmrg      else
8774d9c7fc6cSmrg	# If we're using GNU nm, then we don't want the "-C" option.
8775d9c7fc6cSmrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
877605a1a286Smrg	# Also, AIX nm treats weak defined symbols like other global
877705a1a286Smrg	# defined symbols, whereas GNU nm marks them as "W".
877805a1a286Smrg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
877905a1a286Smrg	  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'
8780d9c7fc6cSmrg	else
878105a1a286Smrg	  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'
8782d9c7fc6cSmrg	fi
8783d9c7fc6cSmrg	aix_use_runtimelinking=no
8784d9c7fc6cSmrg
8785d9c7fc6cSmrg	# Test if we are trying to use run time linking or normal
8786d9c7fc6cSmrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8787d9c7fc6cSmrg	# need to do runtime linking.
878805a1a286Smrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8789d9c7fc6cSmrg	  for ld_flag in $LDFLAGS; do
879005a1a286Smrg	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
879105a1a286Smrg	    aix_use_runtimelinking=yes
879205a1a286Smrg	    break
879305a1a286Smrg	  fi
8794d9c7fc6cSmrg	  done
8795d9c7fc6cSmrg	  ;;
8796d9c7fc6cSmrg	esac
8797d9c7fc6cSmrg
8798d9c7fc6cSmrg	exp_sym_flag='-bexport'
8799d9c7fc6cSmrg	no_entry_flag='-bnoentry'
8800d9c7fc6cSmrg      fi
8801d9c7fc6cSmrg
8802d9c7fc6cSmrg      # When large executables or shared objects are built, AIX ld can
8803d9c7fc6cSmrg      # have problems creating the table of contents.  If linking a library
8804d9c7fc6cSmrg      # or program results in "error TOC overflow" add -mminimal-toc to
8805d9c7fc6cSmrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8806d9c7fc6cSmrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8807d9c7fc6cSmrg
880805a1a286Smrg      archive_cmds=''
880905a1a286Smrg      hardcode_direct=yes
881005a1a286Smrg      hardcode_direct_absolute=yes
881105a1a286Smrg      hardcode_libdir_separator=':'
881205a1a286Smrg      link_all_deplibs=yes
881305a1a286Smrg      file_list_spec='${wl}-f,'
8814d9c7fc6cSmrg
8815d9c7fc6cSmrg      if test "$GCC" = yes; then
8816d9c7fc6cSmrg	case $host_os in aix4.[012]|aix4.[012].*)
8817d9c7fc6cSmrg	# We only want to do this on AIX 4.2 and lower, the check
8818d9c7fc6cSmrg	# below for broken collect2 doesn't work under 4.3+
8819d9c7fc6cSmrg	  collect2name=`${CC} -print-prog-name=collect2`
882005a1a286Smrg	  if test -f "$collect2name" &&
882105a1a286Smrg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8822d9c7fc6cSmrg	  then
882305a1a286Smrg	  # We have reworked collect2
882405a1a286Smrg	  :
8825d9c7fc6cSmrg	  else
882605a1a286Smrg	  # We have old collect2
882705a1a286Smrg	  hardcode_direct=unsupported
882805a1a286Smrg	  # It fails to find uninstalled libraries when the uninstalled
882905a1a286Smrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
883005a1a286Smrg	  # to unsupported forces relinking
883105a1a286Smrg	  hardcode_minus_L=yes
883205a1a286Smrg	  hardcode_libdir_flag_spec='-L$libdir'
883305a1a286Smrg	  hardcode_libdir_separator=
8834d9c7fc6cSmrg	  fi
8835d9c7fc6cSmrg	  ;;
8836d9c7fc6cSmrg	esac
8837d9c7fc6cSmrg	shared_flag='-shared'
8838d9c7fc6cSmrg	if test "$aix_use_runtimelinking" = yes; then
8839d9c7fc6cSmrg	  shared_flag="$shared_flag "'${wl}-G'
8840d9c7fc6cSmrg	fi
8841d9c7fc6cSmrg      else
8842d9c7fc6cSmrg	# not using gcc
8843d9c7fc6cSmrg	if test "$host_cpu" = ia64; then
884405a1a286Smrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
884505a1a286Smrg	# chokes on -Wl,-G. The following line is correct:
8846d9c7fc6cSmrg	  shared_flag='-G'
8847d9c7fc6cSmrg	else
8848d9c7fc6cSmrg	  if test "$aix_use_runtimelinking" = yes; then
8849d9c7fc6cSmrg	    shared_flag='${wl}-G'
8850d9c7fc6cSmrg	  else
8851d9c7fc6cSmrg	    shared_flag='${wl}-bM:SRE'
8852d9c7fc6cSmrg	  fi
8853d9c7fc6cSmrg	fi
8854d9c7fc6cSmrg      fi
8855d9c7fc6cSmrg
885605a1a286Smrg      export_dynamic_flag_spec='${wl}-bexpall'
8857d9c7fc6cSmrg      # It seems that -bexpall does not export symbols beginning with
8858d9c7fc6cSmrg      # underscore (_), so it is better to generate a list of symbols to export.
885905a1a286Smrg      always_export_symbols=yes
8860d9c7fc6cSmrg      if test "$aix_use_runtimelinking" = yes; then
8861d9c7fc6cSmrg	# Warning - without using the other runtime loading flags (-brtl),
8862d9c7fc6cSmrg	# -berok will link without error, but may produce a broken library.
886305a1a286Smrg	allow_undefined_flag='-berok'
886405a1a286Smrg        # Determine the default libpath from the value encoded in an
886505a1a286Smrg        # empty executable.
886605a1a286Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867d9c7fc6cSmrg/* end confdefs.h.  */
8868d9c7fc6cSmrg
8869d9c7fc6cSmrgint
8870d9c7fc6cSmrgmain ()
8871d9c7fc6cSmrg{
8872d9c7fc6cSmrg
8873d9c7fc6cSmrg  ;
8874d9c7fc6cSmrg  return 0;
8875d9c7fc6cSmrg}
8876d9c7fc6cSmrg_ACEOF
887705a1a286Smrgif ac_fn_c_try_link "$LINENO"; then :
887805a1a286Smrg
887905a1a286Smrglt_aix_libpath_sed='
888005a1a286Smrg    /Import File Strings/,/^$/ {
888105a1a286Smrg	/^0/ {
888205a1a286Smrg	    s/^0  *\(.*\)$/\1/
888305a1a286Smrg	    p
888405a1a286Smrg	}
888505a1a286Smrg    }'
888605a1a286Smrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887d9c7fc6cSmrg# Check for a 64-bit object if we didn't find anything.
888805a1a286Smrgif test -z "$aix_libpath"; then
888905a1a286Smrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
889005a1a286Smrgfi
8891d9c7fc6cSmrgfi
889205a1a286Smrgrm -f core conftest.err conftest.$ac_objext \
889305a1a286Smrg    conftest$ac_exeext conftest.$ac_ext
8894d9c7fc6cSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8895d9c7fc6cSmrg
889605a1a286Smrg        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
889705a1a286Smrg        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"
889805a1a286Smrg      else
8899d9c7fc6cSmrg	if test "$host_cpu" = ia64; then
890005a1a286Smrg	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
890105a1a286Smrg	  allow_undefined_flag="-z nodefs"
890205a1a286Smrg	  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"
8903d9c7fc6cSmrg	else
890405a1a286Smrg	 # Determine the default libpath from the value encoded in an
890505a1a286Smrg	 # empty executable.
890605a1a286Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907d9c7fc6cSmrg/* end confdefs.h.  */
8908d9c7fc6cSmrg
8909d9c7fc6cSmrgint
8910d9c7fc6cSmrgmain ()
8911d9c7fc6cSmrg{
8912d9c7fc6cSmrg
8913d9c7fc6cSmrg  ;
8914d9c7fc6cSmrg  return 0;
8915d9c7fc6cSmrg}
8916d9c7fc6cSmrg_ACEOF
891705a1a286Smrgif ac_fn_c_try_link "$LINENO"; then :
891805a1a286Smrg
891905a1a286Smrglt_aix_libpath_sed='
892005a1a286Smrg    /Import File Strings/,/^$/ {
892105a1a286Smrg	/^0/ {
892205a1a286Smrg	    s/^0  *\(.*\)$/\1/
892305a1a286Smrg	    p
892405a1a286Smrg	}
892505a1a286Smrg    }'
892605a1a286Smrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8927d9c7fc6cSmrg# Check for a 64-bit object if we didn't find anything.
892805a1a286Smrgif test -z "$aix_libpath"; then
892905a1a286Smrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8930d9c7fc6cSmrgfi
893105a1a286Smrgfi
893205a1a286Smrgrm -f core conftest.err conftest.$ac_objext \
893305a1a286Smrg    conftest$ac_exeext conftest.$ac_ext
8934d9c7fc6cSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8935d9c7fc6cSmrg
893605a1a286Smrg	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8937d9c7fc6cSmrg	  # Warning - without using the other run time loading flags,
8938d9c7fc6cSmrg	  # -berok will link without error, but may produce a broken library.
893905a1a286Smrg	  no_undefined_flag=' ${wl}-bernotok'
894005a1a286Smrg	  allow_undefined_flag=' ${wl}-berok'
894105a1a286Smrg	  if test "$with_gnu_ld" = yes; then
894205a1a286Smrg	    # We only use this code for GNU lds that support --whole-archive.
894305a1a286Smrg	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
894405a1a286Smrg	  else
894505a1a286Smrg	    # Exported symbols can be pulled into shared objects from archives
894605a1a286Smrg	    whole_archive_flag_spec='$convenience'
894705a1a286Smrg	  fi
894805a1a286Smrg	  archive_cmds_need_lc=yes
8949d9c7fc6cSmrg	  # This is similar to how AIX traditionally builds its shared libraries.
895005a1a286Smrg	  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'
8951d9c7fc6cSmrg	fi
8952d9c7fc6cSmrg      fi
8953d9c7fc6cSmrg      ;;
8954d9c7fc6cSmrg
8955d9c7fc6cSmrg    amigaos*)
895605a1a286Smrg      case $host_cpu in
895705a1a286Smrg      powerpc)
895805a1a286Smrg            # see comment about AmigaOS4 .so support
895905a1a286Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
896005a1a286Smrg            archive_expsym_cmds=''
896105a1a286Smrg        ;;
896205a1a286Smrg      m68k)
896305a1a286Smrg            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)'
896405a1a286Smrg            hardcode_libdir_flag_spec='-L$libdir'
896505a1a286Smrg            hardcode_minus_L=yes
896605a1a286Smrg        ;;
896705a1a286Smrg      esac
8968d9c7fc6cSmrg      ;;
8969d9c7fc6cSmrg
8970d9c7fc6cSmrg    bsdi[45]*)
897105a1a286Smrg      export_dynamic_flag_spec=-rdynamic
8972d9c7fc6cSmrg      ;;
8973d9c7fc6cSmrg
897405a1a286Smrg    cygwin* | mingw* | pw32* | cegcc*)
8975d9c7fc6cSmrg      # When not using gcc, we currently assume that we are using
8976d9c7fc6cSmrg      # Microsoft Visual C++.
8977d9c7fc6cSmrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
8978d9c7fc6cSmrg      # no search path for DLLs.
897905a1a286Smrg      hardcode_libdir_flag_spec=' '
898005a1a286Smrg      allow_undefined_flag=unsupported
8981d9c7fc6cSmrg      # Tell ltmain to make .lib files, not .a files.
8982d9c7fc6cSmrg      libext=lib
8983d9c7fc6cSmrg      # Tell ltmain to make .dll files, not .so files.
8984d9c7fc6cSmrg      shrext_cmds=".dll"
8985d9c7fc6cSmrg      # FIXME: Setting linknames here is a bad hack.
898605a1a286Smrg      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8987d9c7fc6cSmrg      # The linker will automatically build a .lib file if we build a DLL.
898805a1a286Smrg      old_archive_from_new_cmds='true'
8989d9c7fc6cSmrg      # FIXME: Should let the user specify the lib program.
899005a1a286Smrg      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
899105a1a286Smrg      fix_srcfile_path='`cygpath -w "$srcfile"`'
899205a1a286Smrg      enable_shared_with_static_runtimes=yes
8993d9c7fc6cSmrg      ;;
8994d9c7fc6cSmrg
8995d9c7fc6cSmrg    darwin* | rhapsody*)
899605a1a286Smrg
899705a1a286Smrg
899805a1a286Smrg  archive_cmds_need_lc=no
899905a1a286Smrg  hardcode_direct=no
900005a1a286Smrg  hardcode_automatic=yes
900105a1a286Smrg  hardcode_shlibpath_var=unsupported
900205a1a286Smrg  if test "$lt_cv_ld_force_load" = "yes"; then
900305a1a286Smrg    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\"`'
900405a1a286Smrg  else
900505a1a286Smrg    whole_archive_flag_spec=''
900605a1a286Smrg  fi
900705a1a286Smrg  link_all_deplibs=yes
900805a1a286Smrg  allow_undefined_flag="$_lt_dar_allow_undefined"
900905a1a286Smrg  case $cc_basename in
901005a1a286Smrg     ifort*) _lt_dar_can_shared=yes ;;
901105a1a286Smrg     *) _lt_dar_can_shared=$GCC ;;
901205a1a286Smrg  esac
901305a1a286Smrg  if test "$_lt_dar_can_shared" = "yes"; then
901405a1a286Smrg    output_verbose_link_cmd=func_echo_all
901505a1a286Smrg    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
901605a1a286Smrg    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
901705a1a286Smrg    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}"
901805a1a286Smrg    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}"
901905a1a286Smrg
902005a1a286Smrg  else
902105a1a286Smrg  ld_shlibs=no
902205a1a286Smrg  fi
902305a1a286Smrg
9024d9c7fc6cSmrg      ;;
9025d9c7fc6cSmrg
9026d9c7fc6cSmrg    dgux*)
902705a1a286Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
902805a1a286Smrg      hardcode_libdir_flag_spec='-L$libdir'
902905a1a286Smrg      hardcode_shlibpath_var=no
9030d9c7fc6cSmrg      ;;
9031d9c7fc6cSmrg
9032d9c7fc6cSmrg    freebsd1*)
903305a1a286Smrg      ld_shlibs=no
9034d9c7fc6cSmrg      ;;
9035d9c7fc6cSmrg
9036d9c7fc6cSmrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9037d9c7fc6cSmrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
9038d9c7fc6cSmrg    # does not break anything, and helps significantly (at the cost of a little
9039d9c7fc6cSmrg    # extra space).
9040d9c7fc6cSmrg    freebsd2.2*)
904105a1a286Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
904205a1a286Smrg      hardcode_libdir_flag_spec='-R$libdir'
904305a1a286Smrg      hardcode_direct=yes
904405a1a286Smrg      hardcode_shlibpath_var=no
9045d9c7fc6cSmrg      ;;
9046d9c7fc6cSmrg
9047d9c7fc6cSmrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9048d9c7fc6cSmrg    freebsd2*)
904905a1a286Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
905005a1a286Smrg      hardcode_direct=yes
905105a1a286Smrg      hardcode_minus_L=yes
905205a1a286Smrg      hardcode_shlibpath_var=no
9053d9c7fc6cSmrg      ;;
9054d9c7fc6cSmrg
9055d9c7fc6cSmrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
905605a1a286Smrg    freebsd* | dragonfly*)
905705a1a286Smrg      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
905805a1a286Smrg      hardcode_libdir_flag_spec='-R$libdir'
905905a1a286Smrg      hardcode_direct=yes
906005a1a286Smrg      hardcode_shlibpath_var=no
9061d9c7fc6cSmrg      ;;
9062d9c7fc6cSmrg
9063d9c7fc6cSmrg    hpux9*)
9064d9c7fc6cSmrg      if test "$GCC" = yes; then
906505a1a286Smrg	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'
9066d9c7fc6cSmrg      else
906705a1a286Smrg	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'
9068d9c7fc6cSmrg      fi
906905a1a286Smrg      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
907005a1a286Smrg      hardcode_libdir_separator=:
907105a1a286Smrg      hardcode_direct=yes
9072d9c7fc6cSmrg
9073d9c7fc6cSmrg      # hardcode_minus_L: Not really in the search PATH,
9074d9c7fc6cSmrg      # but as the default location of the library.
907505a1a286Smrg      hardcode_minus_L=yes
907605a1a286Smrg      export_dynamic_flag_spec='${wl}-E'
9077d9c7fc6cSmrg      ;;
9078d9c7fc6cSmrg
9079d9c7fc6cSmrg    hpux10*)
908005a1a286Smrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
908105a1a286Smrg	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9082d9c7fc6cSmrg      else
908305a1a286Smrg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9084d9c7fc6cSmrg      fi
9085d9c7fc6cSmrg      if test "$with_gnu_ld" = no; then
908605a1a286Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
908705a1a286Smrg	hardcode_libdir_flag_spec_ld='+b $libdir'
908805a1a286Smrg	hardcode_libdir_separator=:
908905a1a286Smrg	hardcode_direct=yes
909005a1a286Smrg	hardcode_direct_absolute=yes
909105a1a286Smrg	export_dynamic_flag_spec='${wl}-E'
9092d9c7fc6cSmrg	# hardcode_minus_L: Not really in the search PATH,
9093d9c7fc6cSmrg	# but as the default location of the library.
909405a1a286Smrg	hardcode_minus_L=yes
9095d9c7fc6cSmrg      fi
9096d9c7fc6cSmrg      ;;
9097d9c7fc6cSmrg
9098d9c7fc6cSmrg    hpux11*)
909905a1a286Smrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9100d9c7fc6cSmrg	case $host_cpu in
9101d9c7fc6cSmrg	hppa*64*)
910205a1a286Smrg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9103d9c7fc6cSmrg	  ;;
9104d9c7fc6cSmrg	ia64*)
910505a1a286Smrg	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9106d9c7fc6cSmrg	  ;;
9107d9c7fc6cSmrg	*)
910805a1a286Smrg	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9109d9c7fc6cSmrg	  ;;
9110d9c7fc6cSmrg	esac
9111d9c7fc6cSmrg      else
9112d9c7fc6cSmrg	case $host_cpu in
9113d9c7fc6cSmrg	hppa*64*)
911405a1a286Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9115d9c7fc6cSmrg	  ;;
9116d9c7fc6cSmrg	ia64*)
911705a1a286Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9118d9c7fc6cSmrg	  ;;
9119d9c7fc6cSmrg	*)
912005a1a286Smrg
912105a1a286Smrg	  # Older versions of the 11.00 compiler do not understand -b yet
912205a1a286Smrg	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
912305a1a286Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
912405a1a286Smrg$as_echo_n "checking if $CC understands -b... " >&6; }
912505a1a286Smrgif ${lt_cv_prog_compiler__b+:} false; then :
912605a1a286Smrg  $as_echo_n "(cached) " >&6
912705a1a286Smrgelse
912805a1a286Smrg  lt_cv_prog_compiler__b=no
912905a1a286Smrg   save_LDFLAGS="$LDFLAGS"
913005a1a286Smrg   LDFLAGS="$LDFLAGS -b"
913105a1a286Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
913205a1a286Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
913305a1a286Smrg     # The linker can only warn and ignore the option if not recognized
913405a1a286Smrg     # So say no if there are warnings
913505a1a286Smrg     if test -s conftest.err; then
913605a1a286Smrg       # Append any errors to the config.log.
913705a1a286Smrg       cat conftest.err 1>&5
913805a1a286Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
913905a1a286Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
914005a1a286Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
914105a1a286Smrg         lt_cv_prog_compiler__b=yes
914205a1a286Smrg       fi
914305a1a286Smrg     else
914405a1a286Smrg       lt_cv_prog_compiler__b=yes
914505a1a286Smrg     fi
914605a1a286Smrg   fi
914705a1a286Smrg   $RM -r conftest*
914805a1a286Smrg   LDFLAGS="$save_LDFLAGS"
914905a1a286Smrg
915005a1a286Smrgfi
915105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
915205a1a286Smrg$as_echo "$lt_cv_prog_compiler__b" >&6; }
915305a1a286Smrg
915405a1a286Smrgif test x"$lt_cv_prog_compiler__b" = xyes; then
915505a1a286Smrg    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
915605a1a286Smrgelse
915705a1a286Smrg    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
915805a1a286Smrgfi
915905a1a286Smrg
9160d9c7fc6cSmrg	  ;;
9161d9c7fc6cSmrg	esac
9162d9c7fc6cSmrg      fi
9163d9c7fc6cSmrg      if test "$with_gnu_ld" = no; then
916405a1a286Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
916505a1a286Smrg	hardcode_libdir_separator=:
9166d9c7fc6cSmrg
9167d9c7fc6cSmrg	case $host_cpu in
9168d9c7fc6cSmrg	hppa*64*|ia64*)
916905a1a286Smrg	  hardcode_direct=no
917005a1a286Smrg	  hardcode_shlibpath_var=no
9171d9c7fc6cSmrg	  ;;
9172d9c7fc6cSmrg	*)
917305a1a286Smrg	  hardcode_direct=yes
917405a1a286Smrg	  hardcode_direct_absolute=yes
917505a1a286Smrg	  export_dynamic_flag_spec='${wl}-E'
9176d9c7fc6cSmrg
9177d9c7fc6cSmrg	  # hardcode_minus_L: Not really in the search PATH,
9178d9c7fc6cSmrg	  # but as the default location of the library.
917905a1a286Smrg	  hardcode_minus_L=yes
9180d9c7fc6cSmrg	  ;;
9181d9c7fc6cSmrg	esac
9182d9c7fc6cSmrg      fi
9183d9c7fc6cSmrg      ;;
9184d9c7fc6cSmrg
9185d9c7fc6cSmrg    irix5* | irix6* | nonstopux*)
9186d9c7fc6cSmrg      if test "$GCC" = yes; then
918705a1a286Smrg	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'
918805a1a286Smrg	# Try to use the -exported_symbol ld option, if it does not
918905a1a286Smrg	# work, assume that -exports_file does not work either and
919005a1a286Smrg	# implicitly export all symbols.
919105a1a286Smrg        save_LDFLAGS="$LDFLAGS"
919205a1a286Smrg        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
919305a1a286Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
919405a1a286Smrg/* end confdefs.h.  */
919505a1a286Smrgint foo(void) {}
919605a1a286Smrg_ACEOF
919705a1a286Smrgif ac_fn_c_try_link "$LINENO"; then :
919805a1a286Smrg  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'
919905a1a286Smrg
920005a1a286Smrgfi
920105a1a286Smrgrm -f core conftest.err conftest.$ac_objext \
920205a1a286Smrg    conftest$ac_exeext conftest.$ac_ext
920305a1a286Smrg        LDFLAGS="$save_LDFLAGS"
9204d9c7fc6cSmrg      else
920505a1a286Smrg	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'
920605a1a286Smrg	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'
9207d9c7fc6cSmrg      fi
920805a1a286Smrg      archive_cmds_need_lc='no'
920905a1a286Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
921005a1a286Smrg      hardcode_libdir_separator=:
921105a1a286Smrg      inherit_rpath=yes
921205a1a286Smrg      link_all_deplibs=yes
9213d9c7fc6cSmrg      ;;
9214d9c7fc6cSmrg
9215d9c7fc6cSmrg    netbsd*)
921605a1a286Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
921705a1a286Smrg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9218d9c7fc6cSmrg      else
921905a1a286Smrg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9220d9c7fc6cSmrg      fi
922105a1a286Smrg      hardcode_libdir_flag_spec='-R$libdir'
922205a1a286Smrg      hardcode_direct=yes
922305a1a286Smrg      hardcode_shlibpath_var=no
9224d9c7fc6cSmrg      ;;
9225d9c7fc6cSmrg
9226d9c7fc6cSmrg    newsos6)
922705a1a286Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
922805a1a286Smrg      hardcode_direct=yes
922905a1a286Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
923005a1a286Smrg      hardcode_libdir_separator=:
923105a1a286Smrg      hardcode_shlibpath_var=no
923205a1a286Smrg      ;;
923305a1a286Smrg
923405a1a286Smrg    *nto* | *qnx*)
9235d9c7fc6cSmrg      ;;
9236d9c7fc6cSmrg
9237d9c7fc6cSmrg    openbsd*)
923805a1a286Smrg      if test -f /usr/libexec/ld.so; then
923905a1a286Smrg	hardcode_direct=yes
924005a1a286Smrg	hardcode_shlibpath_var=no
924105a1a286Smrg	hardcode_direct_absolute=yes
924205a1a286Smrg	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
924305a1a286Smrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
924405a1a286Smrg	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
924505a1a286Smrg	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
924605a1a286Smrg	  export_dynamic_flag_spec='${wl}-E'
924705a1a286Smrg	else
924805a1a286Smrg	  case $host_os in
924905a1a286Smrg	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
925005a1a286Smrg	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
925105a1a286Smrg	     hardcode_libdir_flag_spec='-R$libdir'
925205a1a286Smrg	     ;;
925305a1a286Smrg	   *)
925405a1a286Smrg	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
925505a1a286Smrg	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
925605a1a286Smrg	     ;;
925705a1a286Smrg	  esac
925805a1a286Smrg	fi
9259d9c7fc6cSmrg      else
926005a1a286Smrg	ld_shlibs=no
9261d9c7fc6cSmrg      fi
9262d9c7fc6cSmrg      ;;
9263d9c7fc6cSmrg
9264d9c7fc6cSmrg    os2*)
926505a1a286Smrg      hardcode_libdir_flag_spec='-L$libdir'
926605a1a286Smrg      hardcode_minus_L=yes
926705a1a286Smrg      allow_undefined_flag=unsupported
926805a1a286Smrg      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'
926905a1a286Smrg      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9270d9c7fc6cSmrg      ;;
9271d9c7fc6cSmrg
9272d9c7fc6cSmrg    osf3*)
9273d9c7fc6cSmrg      if test "$GCC" = yes; then
927405a1a286Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
927505a1a286Smrg	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'
9276d9c7fc6cSmrg      else
927705a1a286Smrg	allow_undefined_flag=' -expect_unresolved \*'
927805a1a286Smrg	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'
9279d9c7fc6cSmrg      fi
928005a1a286Smrg      archive_cmds_need_lc='no'
928105a1a286Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
928205a1a286Smrg      hardcode_libdir_separator=:
9283d9c7fc6cSmrg      ;;
9284d9c7fc6cSmrg
9285d9c7fc6cSmrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9286d9c7fc6cSmrg      if test "$GCC" = yes; then
928705a1a286Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
928805a1a286Smrg	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'
928905a1a286Smrg	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9290d9c7fc6cSmrg      else
929105a1a286Smrg	allow_undefined_flag=' -expect_unresolved \*'
929205a1a286Smrg	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'
929305a1a286Smrg	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~
929405a1a286Smrg	$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'
9295d9c7fc6cSmrg
9296d9c7fc6cSmrg	# Both c and cxx compiler support -rpath directly
929705a1a286Smrg	hardcode_libdir_flag_spec='-rpath $libdir'
9298d9c7fc6cSmrg      fi
929905a1a286Smrg      archive_cmds_need_lc='no'
930005a1a286Smrg      hardcode_libdir_separator=:
9301d9c7fc6cSmrg      ;;
9302d9c7fc6cSmrg
9303d9c7fc6cSmrg    solaris*)
930405a1a286Smrg      no_undefined_flag=' -z defs'
9305d9c7fc6cSmrg      if test "$GCC" = yes; then
9306d9c7fc6cSmrg	wlarc='${wl}'
930705a1a286Smrg	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
930805a1a286Smrg	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
930905a1a286Smrg	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9310d9c7fc6cSmrg      else
931105a1a286Smrg	case `$CC -V 2>&1` in
931205a1a286Smrg	*"Compilers 5.0"*)
931305a1a286Smrg	  wlarc=''
931405a1a286Smrg	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
931505a1a286Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
931605a1a286Smrg	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
931705a1a286Smrg	  ;;
931805a1a286Smrg	*)
931905a1a286Smrg	  wlarc='${wl}'
932005a1a286Smrg	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
932105a1a286Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
932205a1a286Smrg	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
932305a1a286Smrg	  ;;
932405a1a286Smrg	esac
9325d9c7fc6cSmrg      fi
932605a1a286Smrg      hardcode_libdir_flag_spec='-R$libdir'
932705a1a286Smrg      hardcode_shlibpath_var=no
9328d9c7fc6cSmrg      case $host_os in
9329d9c7fc6cSmrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
9330d9c7fc6cSmrg      *)
933105a1a286Smrg	# The compiler driver will combine and reorder linker options,
933205a1a286Smrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
933305a1a286Smrg	# but is careful enough not to reorder.
933405a1a286Smrg	# Supported since Solaris 2.6 (maybe 2.5.1?)
933505a1a286Smrg	if test "$GCC" = yes; then
933605a1a286Smrg	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
933705a1a286Smrg	else
933805a1a286Smrg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
933905a1a286Smrg	fi
934005a1a286Smrg	;;
9341d9c7fc6cSmrg      esac
934205a1a286Smrg      link_all_deplibs=yes
9343d9c7fc6cSmrg      ;;
9344d9c7fc6cSmrg
9345d9c7fc6cSmrg    sunos4*)
9346d9c7fc6cSmrg      if test "x$host_vendor" = xsequent; then
9347d9c7fc6cSmrg	# Use $CC to link under sequent, because it throws in some extra .o
9348d9c7fc6cSmrg	# files that make .init and .fini sections work.
934905a1a286Smrg	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9350d9c7fc6cSmrg      else
935105a1a286Smrg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9352d9c7fc6cSmrg      fi
935305a1a286Smrg      hardcode_libdir_flag_spec='-L$libdir'
935405a1a286Smrg      hardcode_direct=yes
935505a1a286Smrg      hardcode_minus_L=yes
935605a1a286Smrg      hardcode_shlibpath_var=no
9357d9c7fc6cSmrg      ;;
9358d9c7fc6cSmrg
9359d9c7fc6cSmrg    sysv4)
9360d9c7fc6cSmrg      case $host_vendor in
9361d9c7fc6cSmrg	sni)
936205a1a286Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
936305a1a286Smrg	  hardcode_direct=yes # is this really true???
9364d9c7fc6cSmrg	;;
9365d9c7fc6cSmrg	siemens)
9366d9c7fc6cSmrg	  ## LD is ld it makes a PLAMLIB
9367d9c7fc6cSmrg	  ## CC just makes a GrossModule.
936805a1a286Smrg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
936905a1a286Smrg	  reload_cmds='$CC -r -o $output$reload_objs'
937005a1a286Smrg	  hardcode_direct=no
9371d9c7fc6cSmrg        ;;
9372d9c7fc6cSmrg	motorola)
937305a1a286Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
937405a1a286Smrg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9375d9c7fc6cSmrg	;;
9376d9c7fc6cSmrg      esac
9377d9c7fc6cSmrg      runpath_var='LD_RUN_PATH'
937805a1a286Smrg      hardcode_shlibpath_var=no
9379d9c7fc6cSmrg      ;;
9380d9c7fc6cSmrg
9381d9c7fc6cSmrg    sysv4.3*)
938205a1a286Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
938305a1a286Smrg      hardcode_shlibpath_var=no
938405a1a286Smrg      export_dynamic_flag_spec='-Bexport'
9385d9c7fc6cSmrg      ;;
9386d9c7fc6cSmrg
9387d9c7fc6cSmrg    sysv4*MP*)
9388d9c7fc6cSmrg      if test -d /usr/nec; then
938905a1a286Smrg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
939005a1a286Smrg	hardcode_shlibpath_var=no
9391d9c7fc6cSmrg	runpath_var=LD_RUN_PATH
9392d9c7fc6cSmrg	hardcode_runpath_var=yes
939305a1a286Smrg	ld_shlibs=yes
9394d9c7fc6cSmrg      fi
9395d9c7fc6cSmrg      ;;
9396d9c7fc6cSmrg
939705a1a286Smrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
939805a1a286Smrg      no_undefined_flag='${wl}-z,text'
939905a1a286Smrg      archive_cmds_need_lc=no
940005a1a286Smrg      hardcode_shlibpath_var=no
9401d9c7fc6cSmrg      runpath_var='LD_RUN_PATH'
9402d9c7fc6cSmrg
9403d9c7fc6cSmrg      if test "$GCC" = yes; then
940405a1a286Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
940505a1a286Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406d9c7fc6cSmrg      else
940705a1a286Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
940805a1a286Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409d9c7fc6cSmrg      fi
9410d9c7fc6cSmrg      ;;
9411d9c7fc6cSmrg
9412d9c7fc6cSmrg    sysv5* | sco3.2v5* | sco5v6*)
9413d9c7fc6cSmrg      # Note: We can NOT use -z defs as we might desire, because we do not
9414d9c7fc6cSmrg      # link with -lc, and that would cause any symbols used from libc to
9415d9c7fc6cSmrg      # always be unresolved, which means just about no library would
9416d9c7fc6cSmrg      # ever link correctly.  If we're not using GNU ld we use -z text
9417d9c7fc6cSmrg      # though, which does catch some bad symbols but isn't as heavy-handed
9418d9c7fc6cSmrg      # as -z defs.
941905a1a286Smrg      no_undefined_flag='${wl}-z,text'
942005a1a286Smrg      allow_undefined_flag='${wl}-z,nodefs'
942105a1a286Smrg      archive_cmds_need_lc=no
942205a1a286Smrg      hardcode_shlibpath_var=no
942305a1a286Smrg      hardcode_libdir_flag_spec='${wl}-R,$libdir'
942405a1a286Smrg      hardcode_libdir_separator=':'
942505a1a286Smrg      link_all_deplibs=yes
942605a1a286Smrg      export_dynamic_flag_spec='${wl}-Bexport'
9427d9c7fc6cSmrg      runpath_var='LD_RUN_PATH'
9428d9c7fc6cSmrg
9429d9c7fc6cSmrg      if test "$GCC" = yes; then
943005a1a286Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
943105a1a286Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432d9c7fc6cSmrg      else
943305a1a286Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
943405a1a286Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435d9c7fc6cSmrg      fi
9436d9c7fc6cSmrg      ;;
9437d9c7fc6cSmrg
9438d9c7fc6cSmrg    uts4*)
943905a1a286Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
944005a1a286Smrg      hardcode_libdir_flag_spec='-L$libdir'
944105a1a286Smrg      hardcode_shlibpath_var=no
9442d9c7fc6cSmrg      ;;
9443d9c7fc6cSmrg
9444d9c7fc6cSmrg    *)
944505a1a286Smrg      ld_shlibs=no
9446d9c7fc6cSmrg      ;;
9447d9c7fc6cSmrg    esac
944805a1a286Smrg
944905a1a286Smrg    if test x$host_vendor = xsni; then
945005a1a286Smrg      case $host in
945105a1a286Smrg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
945205a1a286Smrg	export_dynamic_flag_spec='${wl}-Blargedynsym'
945305a1a286Smrg	;;
945405a1a286Smrg      esac
945505a1a286Smrg    fi
9456d9c7fc6cSmrg  fi
9457d9c7fc6cSmrg
945805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
945905a1a286Smrg$as_echo "$ld_shlibs" >&6; }
946005a1a286Smrgtest "$ld_shlibs" = no && can_build_shared=no
946105a1a286Smrg
946205a1a286Smrgwith_gnu_ld=$with_gnu_ld
946305a1a286Smrg
946405a1a286Smrg
946505a1a286Smrg
946605a1a286Smrg
946705a1a286Smrg
946805a1a286Smrg
946905a1a286Smrg
947005a1a286Smrg
947105a1a286Smrg
947205a1a286Smrg
947305a1a286Smrg
947405a1a286Smrg
947505a1a286Smrg
947605a1a286Smrg
9477d9c7fc6cSmrg
9478d9c7fc6cSmrg#
9479d9c7fc6cSmrg# Do we need to explicitly link libc?
9480d9c7fc6cSmrg#
948105a1a286Smrgcase "x$archive_cmds_need_lc" in
9482d9c7fc6cSmrgx|xyes)
9483d9c7fc6cSmrg  # Assume -lc should be added
948405a1a286Smrg  archive_cmds_need_lc=yes
9485d9c7fc6cSmrg
9486d9c7fc6cSmrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
948705a1a286Smrg    case $archive_cmds in
9488d9c7fc6cSmrg    *'~'*)
9489d9c7fc6cSmrg      # FIXME: we may have to deal with multi-command sequences.
9490d9c7fc6cSmrg      ;;
9491d9c7fc6cSmrg    '$CC '*)
9492d9c7fc6cSmrg      # Test whether the compiler implicitly links with -lc since on some
9493d9c7fc6cSmrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9494d9c7fc6cSmrg      # to ld, don't add -lc before -lgcc.
949505a1a286Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
949605a1a286Smrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
949705a1a286Smrgif ${lt_cv_archive_cmds_need_lc+:} false; then :
949805a1a286Smrg  $as_echo_n "(cached) " >&6
949905a1a286Smrgelse
950005a1a286Smrg  $RM conftest*
950105a1a286Smrg	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9502d9c7fc6cSmrg
950305a1a286Smrg	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9504d9c7fc6cSmrg  (eval $ac_compile) 2>&5
9505d9c7fc6cSmrg  ac_status=$?
950605a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
950705a1a286Smrg  test $ac_status = 0; } 2>conftest.err; then
950805a1a286Smrg	  soname=conftest
950905a1a286Smrg	  lib=conftest
951005a1a286Smrg	  libobjs=conftest.$ac_objext
951105a1a286Smrg	  deplibs=
951205a1a286Smrg	  wl=$lt_prog_compiler_wl
951305a1a286Smrg	  pic_flag=$lt_prog_compiler_pic
951405a1a286Smrg	  compiler_flags=-v
951505a1a286Smrg	  linker_flags=-v
951605a1a286Smrg	  verstring=
951705a1a286Smrg	  output_objdir=.
951805a1a286Smrg	  libname=conftest
951905a1a286Smrg	  lt_save_allow_undefined_flag=$allow_undefined_flag
952005a1a286Smrg	  allow_undefined_flag=
952105a1a286Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
952205a1a286Smrg  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
952305a1a286Smrg  ac_status=$?
952405a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
952505a1a286Smrg  test $ac_status = 0; }
952605a1a286Smrg	  then
952705a1a286Smrg	    lt_cv_archive_cmds_need_lc=no
952805a1a286Smrg	  else
952905a1a286Smrg	    lt_cv_archive_cmds_need_lc=yes
953005a1a286Smrg	  fi
953105a1a286Smrg	  allow_undefined_flag=$lt_save_allow_undefined_flag
953205a1a286Smrg	else
953305a1a286Smrg	  cat conftest.err 1>&5
953405a1a286Smrg	fi
953505a1a286Smrg	$RM conftest*
953605a1a286Smrg
953705a1a286Smrgfi
953805a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
953905a1a286Smrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
954005a1a286Smrg      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9541d9c7fc6cSmrg      ;;
9542d9c7fc6cSmrg    esac
9543d9c7fc6cSmrg  fi
9544d9c7fc6cSmrg  ;;
9545d9c7fc6cSmrgesac
9546d9c7fc6cSmrg
954705a1a286Smrg
954805a1a286Smrg
954905a1a286Smrg
955005a1a286Smrg
955105a1a286Smrg
955205a1a286Smrg
955305a1a286Smrg
955405a1a286Smrg
955505a1a286Smrg
955605a1a286Smrg
955705a1a286Smrg
955805a1a286Smrg
955905a1a286Smrg
956005a1a286Smrg
956105a1a286Smrg
956205a1a286Smrg
956305a1a286Smrg
956405a1a286Smrg
956505a1a286Smrg
956605a1a286Smrg
956705a1a286Smrg
956805a1a286Smrg
956905a1a286Smrg
957005a1a286Smrg
957105a1a286Smrg
957205a1a286Smrg
957305a1a286Smrg
957405a1a286Smrg
957505a1a286Smrg
957605a1a286Smrg
957705a1a286Smrg
957805a1a286Smrg
957905a1a286Smrg
958005a1a286Smrg
958105a1a286Smrg
958205a1a286Smrg
958305a1a286Smrg
958405a1a286Smrg
958505a1a286Smrg
958605a1a286Smrg
958705a1a286Smrg
958805a1a286Smrg
958905a1a286Smrg
959005a1a286Smrg
959105a1a286Smrg
959205a1a286Smrg
959305a1a286Smrg
959405a1a286Smrg
959505a1a286Smrg
959605a1a286Smrg
959705a1a286Smrg
959805a1a286Smrg
959905a1a286Smrg
960005a1a286Smrg
960105a1a286Smrg
960205a1a286Smrg
960305a1a286Smrg
960405a1a286Smrg
960505a1a286Smrg
960605a1a286Smrg
960705a1a286Smrg
960805a1a286Smrg
960905a1a286Smrg
961005a1a286Smrg
961105a1a286Smrg
961205a1a286Smrg
961305a1a286Smrg
961405a1a286Smrg
961505a1a286Smrg
961605a1a286Smrg
961705a1a286Smrg
961805a1a286Smrg
961905a1a286Smrg
962005a1a286Smrg
962105a1a286Smrg
962205a1a286Smrg
962305a1a286Smrg
962405a1a286Smrg
962505a1a286Smrg
962605a1a286Smrg
962705a1a286Smrg
962805a1a286Smrg
962905a1a286Smrg
963005a1a286Smrg
963105a1a286Smrg
963205a1a286Smrg
963305a1a286Smrg
963405a1a286Smrg
963505a1a286Smrg
963605a1a286Smrg
963705a1a286Smrg
963805a1a286Smrg
963905a1a286Smrg
964005a1a286Smrg
964105a1a286Smrg
964205a1a286Smrg
964305a1a286Smrg
964405a1a286Smrg
964505a1a286Smrg
964605a1a286Smrg
964705a1a286Smrg
964805a1a286Smrg
964905a1a286Smrg
965005a1a286Smrg
965105a1a286Smrg
965205a1a286Smrg
965305a1a286Smrg
965405a1a286Smrg
965505a1a286Smrg
965605a1a286Smrg
965705a1a286Smrg
965805a1a286Smrg
965905a1a286Smrg
966005a1a286Smrg
966105a1a286Smrg
966205a1a286Smrg
966305a1a286Smrg
966405a1a286Smrg
966505a1a286Smrg
966605a1a286Smrg
966705a1a286Smrg
966805a1a286Smrg
966905a1a286Smrg
967005a1a286Smrg
967105a1a286Smrg
967205a1a286Smrg
967305a1a286Smrg
967405a1a286Smrg
967505a1a286Smrg
967605a1a286Smrg
967705a1a286Smrg
967805a1a286Smrg
967905a1a286Smrg
968005a1a286Smrg
968105a1a286Smrg
968205a1a286Smrg
968305a1a286Smrg
968405a1a286Smrg
968505a1a286Smrg
968605a1a286Smrg
968705a1a286Smrg
968805a1a286Smrg
968905a1a286Smrg
969005a1a286Smrg
969105a1a286Smrg
969205a1a286Smrg
969305a1a286Smrg
969405a1a286Smrg
969505a1a286Smrg
969605a1a286Smrg
969705a1a286Smrg
969805a1a286Smrg
969905a1a286Smrg
970005a1a286Smrg
970105a1a286Smrg
970205a1a286Smrg
970305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
970405a1a286Smrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
970505a1a286Smrg
9706d9c7fc6cSmrgif test "$GCC" = yes; then
970705a1a286Smrg  case $host_os in
970805a1a286Smrg    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
970905a1a286Smrg    *) lt_awk_arg="/^libraries:/" ;;
971005a1a286Smrg  esac
971105a1a286Smrg  case $host_os in
971205a1a286Smrg    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
971305a1a286Smrg    *) lt_sed_strip_eq="s,=/,/,g" ;;
971405a1a286Smrg  esac
971505a1a286Smrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
971605a1a286Smrg  case $lt_search_path_spec in
971705a1a286Smrg  *\;*)
9718d9c7fc6cSmrg    # if the path contains ";" then we assume it to be the separator
9719d9c7fc6cSmrg    # otherwise default to the standard path separator (i.e. ":") - it is
9720d9c7fc6cSmrg    # assumed that no part of a normal pathname contains ";" but that should
9721d9c7fc6cSmrg    # okay in the real world where ";" in dirpaths is itself problematic.
972205a1a286Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
972305a1a286Smrg    ;;
972405a1a286Smrg  *)
972505a1a286Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
972605a1a286Smrg    ;;
972705a1a286Smrg  esac
972805a1a286Smrg  # Ok, now we have the path, separated by spaces, we can step through it
972905a1a286Smrg  # and add multilib dir if necessary.
973005a1a286Smrg  lt_tmp_lt_search_path_spec=
973105a1a286Smrg  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
973205a1a286Smrg  for lt_sys_path in $lt_search_path_spec; do
973305a1a286Smrg    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
973405a1a286Smrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
973505a1a286Smrg    else
973605a1a286Smrg      test -d "$lt_sys_path" && \
973705a1a286Smrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
973805a1a286Smrg    fi
973905a1a286Smrg  done
974005a1a286Smrg  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
974105a1a286SmrgBEGIN {RS=" "; FS="/|\n";} {
974205a1a286Smrg  lt_foo="";
974305a1a286Smrg  lt_count=0;
974405a1a286Smrg  for (lt_i = NF; lt_i > 0; lt_i--) {
974505a1a286Smrg    if ($lt_i != "" && $lt_i != ".") {
974605a1a286Smrg      if ($lt_i == "..") {
974705a1a286Smrg        lt_count++;
974805a1a286Smrg      } else {
974905a1a286Smrg        if (lt_count == 0) {
975005a1a286Smrg          lt_foo="/" $lt_i lt_foo;
975105a1a286Smrg        } else {
975205a1a286Smrg          lt_count--;
975305a1a286Smrg        }
975405a1a286Smrg      }
975505a1a286Smrg    }
975605a1a286Smrg  }
975705a1a286Smrg  if (lt_foo != "") { lt_freq[lt_foo]++; }
975805a1a286Smrg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
975905a1a286Smrg}'`
976005a1a286Smrg  # AWK program above erroneously prepends '/' to C:/dos/paths
976105a1a286Smrg  # for these hosts.
976205a1a286Smrg  case $host_os in
976305a1a286Smrg    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
976405a1a286Smrg      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
976505a1a286Smrg  esac
976605a1a286Smrg  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9767d9c7fc6cSmrgelse
9768d9c7fc6cSmrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9769d9c7fc6cSmrgfi
977005a1a286Smrglibrary_names_spec=
977105a1a286Smrglibname_spec='lib$name'
977205a1a286Smrgsoname_spec=
977305a1a286Smrgshrext_cmds=".so"
977405a1a286Smrgpostinstall_cmds=
977505a1a286Smrgpostuninstall_cmds=
977605a1a286Smrgfinish_cmds=
977705a1a286Smrgfinish_eval=
977805a1a286Smrgshlibpath_var=
977905a1a286Smrgshlibpath_overrides_runpath=unknown
978005a1a286Smrgversion_type=none
978105a1a286Smrgdynamic_linker="$host_os ld.so"
978205a1a286Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
9783d9c7fc6cSmrgneed_lib_prefix=unknown
9784d9c7fc6cSmrghardcode_into_libs=no
9785d9c7fc6cSmrg
9786d9c7fc6cSmrg# when you set need_version to no, make sure it does not cause -set_version
9787d9c7fc6cSmrg# flags to be left without arguments
9788d9c7fc6cSmrgneed_version=unknown
9789d9c7fc6cSmrg
9790d9c7fc6cSmrgcase $host_os in
9791d9c7fc6cSmrgaix3*)
9792d9c7fc6cSmrg  version_type=linux
9793d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9794d9c7fc6cSmrg  shlibpath_var=LIBPATH
9795d9c7fc6cSmrg
9796d9c7fc6cSmrg  # AIX 3 has no versioning support, so we append a major version to the name.
9797d9c7fc6cSmrg  soname_spec='${libname}${release}${shared_ext}$major'
9798d9c7fc6cSmrg  ;;
9799d9c7fc6cSmrg
980005a1a286Smrgaix[4-9]*)
9801d9c7fc6cSmrg  version_type=linux
9802d9c7fc6cSmrg  need_lib_prefix=no
9803d9c7fc6cSmrg  need_version=no
9804d9c7fc6cSmrg  hardcode_into_libs=yes
9805d9c7fc6cSmrg  if test "$host_cpu" = ia64; then
9806d9c7fc6cSmrg    # AIX 5 supports IA64
9807d9c7fc6cSmrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9808d9c7fc6cSmrg    shlibpath_var=LD_LIBRARY_PATH
9809d9c7fc6cSmrg  else
9810d9c7fc6cSmrg    # With GCC up to 2.95.x, collect2 would create an import file
9811d9c7fc6cSmrg    # for dependence libraries.  The import file would start with
9812d9c7fc6cSmrg    # the line `#! .'.  This would cause the generated library to
9813d9c7fc6cSmrg    # depend on `.', always an invalid library.  This was fixed in
9814d9c7fc6cSmrg    # development snapshots of GCC prior to 3.0.
9815d9c7fc6cSmrg    case $host_os in
9816d9c7fc6cSmrg      aix4 | aix4.[01] | aix4.[01].*)
9817d9c7fc6cSmrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9818d9c7fc6cSmrg	   echo ' yes '
981905a1a286Smrg	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9820d9c7fc6cSmrg	:
9821d9c7fc6cSmrg      else
9822d9c7fc6cSmrg	can_build_shared=no
9823d9c7fc6cSmrg      fi
9824d9c7fc6cSmrg      ;;
9825d9c7fc6cSmrg    esac
9826d9c7fc6cSmrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9827d9c7fc6cSmrg    # soname into executable. Probably we can add versioning support to
9828d9c7fc6cSmrg    # collect2, so additional links can be useful in future.
9829d9c7fc6cSmrg    if test "$aix_use_runtimelinking" = yes; then
9830d9c7fc6cSmrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9831d9c7fc6cSmrg      # instead of lib<name>.a to let people know that these are not
9832d9c7fc6cSmrg      # typical AIX shared libraries.
9833d9c7fc6cSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834d9c7fc6cSmrg    else
9835d9c7fc6cSmrg      # We preserve .a as extension for shared libraries through AIX4.2
9836d9c7fc6cSmrg      # and later when we are not doing run time linking.
9837d9c7fc6cSmrg      library_names_spec='${libname}${release}.a $libname.a'
9838d9c7fc6cSmrg      soname_spec='${libname}${release}${shared_ext}$major'
9839d9c7fc6cSmrg    fi
9840d9c7fc6cSmrg    shlibpath_var=LIBPATH
9841d9c7fc6cSmrg  fi
9842d9c7fc6cSmrg  ;;
9843d9c7fc6cSmrg
9844d9c7fc6cSmrgamigaos*)
984505a1a286Smrg  case $host_cpu in
984605a1a286Smrg  powerpc)
984705a1a286Smrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
984805a1a286Smrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
984905a1a286Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
985005a1a286Smrg    ;;
985105a1a286Smrg  m68k)
985205a1a286Smrg    library_names_spec='$libname.ixlibrary $libname.a'
985305a1a286Smrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
985405a1a286Smrg    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'
985505a1a286Smrg    ;;
985605a1a286Smrg  esac
9857d9c7fc6cSmrg  ;;
9858d9c7fc6cSmrg
9859d9c7fc6cSmrgbeos*)
9860d9c7fc6cSmrg  library_names_spec='${libname}${shared_ext}'
9861d9c7fc6cSmrg  dynamic_linker="$host_os ld.so"
9862d9c7fc6cSmrg  shlibpath_var=LIBRARY_PATH
9863d9c7fc6cSmrg  ;;
9864d9c7fc6cSmrg
9865d9c7fc6cSmrgbsdi[45]*)
9866d9c7fc6cSmrg  version_type=linux
9867d9c7fc6cSmrg  need_version=no
9868d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869d9c7fc6cSmrg  soname_spec='${libname}${release}${shared_ext}$major'
9870d9c7fc6cSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9871d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
9872d9c7fc6cSmrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9873d9c7fc6cSmrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9874d9c7fc6cSmrg  # the default ld.so.conf also contains /usr/contrib/lib and
9875d9c7fc6cSmrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9876d9c7fc6cSmrg  # libtool to hard-code these into programs
9877d9c7fc6cSmrg  ;;
9878d9c7fc6cSmrg
987905a1a286Smrgcygwin* | mingw* | pw32* | cegcc*)
9880d9c7fc6cSmrg  version_type=windows
9881d9c7fc6cSmrg  shrext_cmds=".dll"
9882d9c7fc6cSmrg  need_version=no
9883d9c7fc6cSmrg  need_lib_prefix=no
9884d9c7fc6cSmrg
9885d9c7fc6cSmrg  case $GCC,$host_os in
988605a1a286Smrg  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9887d9c7fc6cSmrg    library_names_spec='$libname.dll.a'
9888d9c7fc6cSmrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9889d9c7fc6cSmrg    postinstall_cmds='base_file=`basename \${file}`~
989005a1a286Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9891d9c7fc6cSmrg      dldir=$destdir/`dirname \$dlpath`~
9892d9c7fc6cSmrg      test -d \$dldir || mkdir -p \$dldir~
9893d9c7fc6cSmrg      $install_prog $dir/$dlname \$dldir/$dlname~
989405a1a286Smrg      chmod a+x \$dldir/$dlname~
989505a1a286Smrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
989605a1a286Smrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
989705a1a286Smrg      fi'
9898d9c7fc6cSmrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9899d9c7fc6cSmrg      dlpath=$dir/\$dldll~
990005a1a286Smrg       $RM \$dlpath'
9901d9c7fc6cSmrg    shlibpath_overrides_runpath=yes
9902d9c7fc6cSmrg
9903d9c7fc6cSmrg    case $host_os in
9904d9c7fc6cSmrg    cygwin*)
9905d9c7fc6cSmrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9906d9c7fc6cSmrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
990705a1a286Smrg
990805a1a286Smrg      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9909d9c7fc6cSmrg      ;;
991005a1a286Smrg    mingw* | cegcc*)
9911d9c7fc6cSmrg      # MinGW DLLs use traditional 'lib' prefix
9912d9c7fc6cSmrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913d9c7fc6cSmrg      ;;
9914d9c7fc6cSmrg    pw32*)
9915d9c7fc6cSmrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
9916d9c7fc6cSmrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9917d9c7fc6cSmrg      ;;
9918d9c7fc6cSmrg    esac
9919d9c7fc6cSmrg    ;;
9920d9c7fc6cSmrg
9921d9c7fc6cSmrg  *)
9922d9c7fc6cSmrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9923d9c7fc6cSmrg    ;;
9924d9c7fc6cSmrg  esac
9925d9c7fc6cSmrg  dynamic_linker='Win32 ld.exe'
9926d9c7fc6cSmrg  # FIXME: first we should search . and the directory the executable is in
9927d9c7fc6cSmrg  shlibpath_var=PATH
9928d9c7fc6cSmrg  ;;
9929d9c7fc6cSmrg
9930d9c7fc6cSmrgdarwin* | rhapsody*)
9931d9c7fc6cSmrg  dynamic_linker="$host_os dyld"
9932d9c7fc6cSmrg  version_type=darwin
9933d9c7fc6cSmrg  need_lib_prefix=no
9934d9c7fc6cSmrg  need_version=no
993505a1a286Smrg  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9936d9c7fc6cSmrg  soname_spec='${libname}${release}${major}$shared_ext'
9937d9c7fc6cSmrg  shlibpath_overrides_runpath=yes
9938d9c7fc6cSmrg  shlibpath_var=DYLD_LIBRARY_PATH
9939d9c7fc6cSmrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
994005a1a286Smrg
994105a1a286Smrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9942d9c7fc6cSmrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9943d9c7fc6cSmrg  ;;
9944d9c7fc6cSmrg
9945d9c7fc6cSmrgdgux*)
9946d9c7fc6cSmrg  version_type=linux
9947d9c7fc6cSmrg  need_lib_prefix=no
9948d9c7fc6cSmrg  need_version=no
9949d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9950d9c7fc6cSmrg  soname_spec='${libname}${release}${shared_ext}$major'
9951d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
9952d9c7fc6cSmrg  ;;
9953d9c7fc6cSmrg
9954d9c7fc6cSmrgfreebsd1*)
9955d9c7fc6cSmrg  dynamic_linker=no
9956d9c7fc6cSmrg  ;;
9957d9c7fc6cSmrg
9958d9c7fc6cSmrgfreebsd* | dragonfly*)
9959d9c7fc6cSmrg  # DragonFly does not have aout.  When/if they implement a new
9960d9c7fc6cSmrg  # versioning mechanism, adjust this.
9961d9c7fc6cSmrg  if test -x /usr/bin/objformat; then
9962d9c7fc6cSmrg    objformat=`/usr/bin/objformat`
9963d9c7fc6cSmrg  else
9964d9c7fc6cSmrg    case $host_os in
9965d9c7fc6cSmrg    freebsd[123]*) objformat=aout ;;
9966d9c7fc6cSmrg    *) objformat=elf ;;
9967d9c7fc6cSmrg    esac
9968d9c7fc6cSmrg  fi
9969d9c7fc6cSmrg  version_type=freebsd-$objformat
9970d9c7fc6cSmrg  case $version_type in
9971d9c7fc6cSmrg    freebsd-elf*)
9972d9c7fc6cSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9973d9c7fc6cSmrg      need_version=no
9974d9c7fc6cSmrg      need_lib_prefix=no
9975d9c7fc6cSmrg      ;;
9976d9c7fc6cSmrg    freebsd-*)
9977d9c7fc6cSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9978d9c7fc6cSmrg      need_version=yes
9979d9c7fc6cSmrg      ;;
9980d9c7fc6cSmrg  esac
9981d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
9982d9c7fc6cSmrg  case $host_os in
9983d9c7fc6cSmrg  freebsd2*)
9984d9c7fc6cSmrg    shlibpath_overrides_runpath=yes
9985d9c7fc6cSmrg    ;;
9986d9c7fc6cSmrg  freebsd3.[01]* | freebsdelf3.[01]*)
9987d9c7fc6cSmrg    shlibpath_overrides_runpath=yes
9988d9c7fc6cSmrg    hardcode_into_libs=yes
9989d9c7fc6cSmrg    ;;
9990d9c7fc6cSmrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9991d9c7fc6cSmrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9992d9c7fc6cSmrg    shlibpath_overrides_runpath=no
9993d9c7fc6cSmrg    hardcode_into_libs=yes
9994d9c7fc6cSmrg    ;;
999505a1a286Smrg  *) # from 4.6 on, and DragonFly
9996d9c7fc6cSmrg    shlibpath_overrides_runpath=yes
9997d9c7fc6cSmrg    hardcode_into_libs=yes
9998d9c7fc6cSmrg    ;;
9999d9c7fc6cSmrg  esac
10000d9c7fc6cSmrg  ;;
10001d9c7fc6cSmrg
10002d9c7fc6cSmrggnu*)
10003d9c7fc6cSmrg  version_type=linux
10004d9c7fc6cSmrg  need_lib_prefix=no
10005d9c7fc6cSmrg  need_version=no
10006d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10007d9c7fc6cSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10008d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
10009d9c7fc6cSmrg  hardcode_into_libs=yes
10010d9c7fc6cSmrg  ;;
10011d9c7fc6cSmrg
1001205a1a286Smrghaiku*)
1001305a1a286Smrg  version_type=linux
1001405a1a286Smrg  need_lib_prefix=no
1001505a1a286Smrg  need_version=no
1001605a1a286Smrg  dynamic_linker="$host_os runtime_loader"
1001705a1a286Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1001805a1a286Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1001905a1a286Smrg  shlibpath_var=LIBRARY_PATH
1002005a1a286Smrg  shlibpath_overrides_runpath=yes
1002105a1a286Smrg  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1002205a1a286Smrg  hardcode_into_libs=yes
1002305a1a286Smrg  ;;
1002405a1a286Smrg
10025d9c7fc6cSmrghpux9* | hpux10* | hpux11*)
10026d9c7fc6cSmrg  # Give a soname corresponding to the major version so that dld.sl refuses to
10027d9c7fc6cSmrg  # link against other versions.
10028d9c7fc6cSmrg  version_type=sunos
10029d9c7fc6cSmrg  need_lib_prefix=no
10030d9c7fc6cSmrg  need_version=no
10031d9c7fc6cSmrg  case $host_cpu in
10032d9c7fc6cSmrg  ia64*)
10033d9c7fc6cSmrg    shrext_cmds='.so'
10034d9c7fc6cSmrg    hardcode_into_libs=yes
10035d9c7fc6cSmrg    dynamic_linker="$host_os dld.so"
10036d9c7fc6cSmrg    shlibpath_var=LD_LIBRARY_PATH
10037d9c7fc6cSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10038d9c7fc6cSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10039d9c7fc6cSmrg    soname_spec='${libname}${release}${shared_ext}$major'
10040d9c7fc6cSmrg    if test "X$HPUX_IA64_MODE" = X32; then
10041d9c7fc6cSmrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10042d9c7fc6cSmrg    else
10043d9c7fc6cSmrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10044d9c7fc6cSmrg    fi
10045d9c7fc6cSmrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10046d9c7fc6cSmrg    ;;
1004705a1a286Smrg  hppa*64*)
1004805a1a286Smrg    shrext_cmds='.sl'
1004905a1a286Smrg    hardcode_into_libs=yes
1005005a1a286Smrg    dynamic_linker="$host_os dld.sl"
1005105a1a286Smrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1005205a1a286Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1005305a1a286Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1005405a1a286Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1005505a1a286Smrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1005605a1a286Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1005705a1a286Smrg    ;;
1005805a1a286Smrg  *)
10059d9c7fc6cSmrg    shrext_cmds='.sl'
10060d9c7fc6cSmrg    dynamic_linker="$host_os dld.sl"
10061d9c7fc6cSmrg    shlibpath_var=SHLIB_PATH
10062d9c7fc6cSmrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10063d9c7fc6cSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064d9c7fc6cSmrg    soname_spec='${libname}${release}${shared_ext}$major'
10065d9c7fc6cSmrg    ;;
10066d9c7fc6cSmrg  esac
1006705a1a286Smrg  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10068d9c7fc6cSmrg  postinstall_cmds='chmod 555 $lib'
1006905a1a286Smrg  # or fails outright, so override atomically:
1007005a1a286Smrg  install_override_mode=555
10071d9c7fc6cSmrg  ;;
10072d9c7fc6cSmrg
1007305a1a286Smrginterix[3-9]*)
10074d9c7fc6cSmrg  version_type=linux
10075d9c7fc6cSmrg  need_lib_prefix=no
10076d9c7fc6cSmrg  need_version=no
10077d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10078d9c7fc6cSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10079d9c7fc6cSmrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10080d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
10081d9c7fc6cSmrg  shlibpath_overrides_runpath=no
10082d9c7fc6cSmrg  hardcode_into_libs=yes
10083d9c7fc6cSmrg  ;;
10084d9c7fc6cSmrg
10085d9c7fc6cSmrgirix5* | irix6* | nonstopux*)
10086d9c7fc6cSmrg  case $host_os in
10087d9c7fc6cSmrg    nonstopux*) version_type=nonstopux ;;
10088d9c7fc6cSmrg    *)
10089d9c7fc6cSmrg	if test "$lt_cv_prog_gnu_ld" = yes; then
10090d9c7fc6cSmrg		version_type=linux
10091d9c7fc6cSmrg	else
10092d9c7fc6cSmrg		version_type=irix
10093d9c7fc6cSmrg	fi ;;
10094d9c7fc6cSmrg  esac
10095d9c7fc6cSmrg  need_lib_prefix=no
10096d9c7fc6cSmrg  need_version=no
10097d9c7fc6cSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10098d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10099d9c7fc6cSmrg  case $host_os in
10100d9c7fc6cSmrg  irix5* | nonstopux*)
10101d9c7fc6cSmrg    libsuff= shlibsuff=
10102d9c7fc6cSmrg    ;;
10103d9c7fc6cSmrg  *)
10104d9c7fc6cSmrg    case $LD in # libtool.m4 will add one of these switches to LD
10105d9c7fc6cSmrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10106d9c7fc6cSmrg      libsuff= shlibsuff= libmagic=32-bit;;
10107d9c7fc6cSmrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10108d9c7fc6cSmrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
10109d9c7fc6cSmrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10110d9c7fc6cSmrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10111d9c7fc6cSmrg    *) libsuff= shlibsuff= libmagic=never-match;;
10112d9c7fc6cSmrg    esac
10113d9c7fc6cSmrg    ;;
10114d9c7fc6cSmrg  esac
10115d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10116d9c7fc6cSmrg  shlibpath_overrides_runpath=no
10117d9c7fc6cSmrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10118d9c7fc6cSmrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10119d9c7fc6cSmrg  hardcode_into_libs=yes
10120d9c7fc6cSmrg  ;;
10121d9c7fc6cSmrg
10122d9c7fc6cSmrg# No shared lib support for Linux oldld, aout, or coff.
10123d9c7fc6cSmrglinux*oldld* | linux*aout* | linux*coff*)
10124d9c7fc6cSmrg  dynamic_linker=no
10125d9c7fc6cSmrg  ;;
10126d9c7fc6cSmrg
10127d9c7fc6cSmrg# This must be Linux ELF.
1012805a1a286Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
10129d9c7fc6cSmrg  version_type=linux
10130d9c7fc6cSmrg  need_lib_prefix=no
10131d9c7fc6cSmrg  need_version=no
10132d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133d9c7fc6cSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10134d9c7fc6cSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10135d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
10136d9c7fc6cSmrg  shlibpath_overrides_runpath=no
1013705a1a286Smrg
1013805a1a286Smrg  # Some binutils ld are patched to set DT_RUNPATH
1013905a1a286Smrg  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
1014005a1a286Smrg  $as_echo_n "(cached) " >&6
1014105a1a286Smrgelse
1014205a1a286Smrg  lt_cv_shlibpath_overrides_runpath=no
1014305a1a286Smrg    save_LDFLAGS=$LDFLAGS
1014405a1a286Smrg    save_libdir=$libdir
1014505a1a286Smrg    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
1014605a1a286Smrg	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1014705a1a286Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1014805a1a286Smrg/* end confdefs.h.  */
1014905a1a286Smrg
1015005a1a286Smrgint
1015105a1a286Smrgmain ()
1015205a1a286Smrg{
1015305a1a286Smrg
1015405a1a286Smrg  ;
1015505a1a286Smrg  return 0;
1015605a1a286Smrg}
1015705a1a286Smrg_ACEOF
1015805a1a286Smrgif ac_fn_c_try_link "$LINENO"; then :
1015905a1a286Smrg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1016005a1a286Smrg  lt_cv_shlibpath_overrides_runpath=yes
1016105a1a286Smrgfi
1016205a1a286Smrgfi
1016305a1a286Smrgrm -f core conftest.err conftest.$ac_objext \
1016405a1a286Smrg    conftest$ac_exeext conftest.$ac_ext
1016505a1a286Smrg    LDFLAGS=$save_LDFLAGS
1016605a1a286Smrg    libdir=$save_libdir
1016705a1a286Smrg
1016805a1a286Smrgfi
1016905a1a286Smrg
1017005a1a286Smrg  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1017105a1a286Smrg
10172d9c7fc6cSmrg  # This implies no fast_install, which is unacceptable.
10173d9c7fc6cSmrg  # Some rework will be needed to allow for fast_install
10174d9c7fc6cSmrg  # before this can be enabled.
10175d9c7fc6cSmrg  hardcode_into_libs=yes
10176d9c7fc6cSmrg
10177d9c7fc6cSmrg  # Append ld.so.conf contents to the search path
10178d9c7fc6cSmrg  if test -f /etc/ld.so.conf; then
1017905a1a286Smrg    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' ' '`
1018005a1a286Smrg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10181d9c7fc6cSmrg  fi
10182d9c7fc6cSmrg
10183d9c7fc6cSmrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
10184d9c7fc6cSmrg  # powerpc, because MkLinux only supported shared libraries with the
10185d9c7fc6cSmrg  # GNU dynamic linker.  Since this was broken with cross compilers,
10186d9c7fc6cSmrg  # most powerpc-linux boxes support dynamic linking these days and
10187d9c7fc6cSmrg  # people can always --disable-shared, the test was removed, and we
10188d9c7fc6cSmrg  # assume the GNU/Linux dynamic linker is in use.
10189d9c7fc6cSmrg  dynamic_linker='GNU/Linux ld.so'
10190d9c7fc6cSmrg  ;;
10191d9c7fc6cSmrg
10192d9c7fc6cSmrgnetbsd*)
10193d9c7fc6cSmrg  version_type=sunos
10194d9c7fc6cSmrg  need_lib_prefix=no
10195d9c7fc6cSmrg  need_version=no
1019605a1a286Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10197d9c7fc6cSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10198d9c7fc6cSmrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10199d9c7fc6cSmrg    dynamic_linker='NetBSD (a.out) ld.so'
10200d9c7fc6cSmrg  else
10201d9c7fc6cSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10202d9c7fc6cSmrg    soname_spec='${libname}${release}${shared_ext}$major'
10203d9c7fc6cSmrg    dynamic_linker='NetBSD ld.elf_so'
10204d9c7fc6cSmrg  fi
10205d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
10206d9c7fc6cSmrg  shlibpath_overrides_runpath=yes
10207d9c7fc6cSmrg  hardcode_into_libs=yes
10208d9c7fc6cSmrg  ;;
10209d9c7fc6cSmrg
10210d9c7fc6cSmrgnewsos6)
10211d9c7fc6cSmrg  version_type=linux
10212d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
10214d9c7fc6cSmrg  shlibpath_overrides_runpath=yes
10215d9c7fc6cSmrg  ;;
10216d9c7fc6cSmrg
1021705a1a286Smrg*nto* | *qnx*)
1021805a1a286Smrg  version_type=qnx
10219d9c7fc6cSmrg  need_lib_prefix=no
10220d9c7fc6cSmrg  need_version=no
10221d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222d9c7fc6cSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10223d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
1022405a1a286Smrg  shlibpath_overrides_runpath=no
1022505a1a286Smrg  hardcode_into_libs=yes
1022605a1a286Smrg  dynamic_linker='ldqnx.so'
10227d9c7fc6cSmrg  ;;
10228d9c7fc6cSmrg
10229d9c7fc6cSmrgopenbsd*)
10230d9c7fc6cSmrg  version_type=sunos
10231d9c7fc6cSmrg  sys_lib_dlsearch_path_spec="/usr/lib"
10232d9c7fc6cSmrg  need_lib_prefix=no
10233d9c7fc6cSmrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10234d9c7fc6cSmrg  case $host_os in
1023505a1a286Smrg    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
1023605a1a286Smrg    *)				need_version=no  ;;
10237d9c7fc6cSmrg  esac
10238d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10239d9c7fc6cSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10240d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
1024105a1a286Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10242d9c7fc6cSmrg    case $host_os in
10243d9c7fc6cSmrg      openbsd2.[89] | openbsd2.[89].*)
10244d9c7fc6cSmrg	shlibpath_overrides_runpath=no
10245d9c7fc6cSmrg	;;
10246d9c7fc6cSmrg      *)
10247d9c7fc6cSmrg	shlibpath_overrides_runpath=yes
10248d9c7fc6cSmrg	;;
10249d9c7fc6cSmrg      esac
10250d9c7fc6cSmrg  else
10251d9c7fc6cSmrg    shlibpath_overrides_runpath=yes
10252d9c7fc6cSmrg  fi
10253d9c7fc6cSmrg  ;;
10254d9c7fc6cSmrg
10255d9c7fc6cSmrgos2*)
10256d9c7fc6cSmrg  libname_spec='$name'
10257d9c7fc6cSmrg  shrext_cmds=".dll"
10258d9c7fc6cSmrg  need_lib_prefix=no
10259d9c7fc6cSmrg  library_names_spec='$libname${shared_ext} $libname.a'
10260d9c7fc6cSmrg  dynamic_linker='OS/2 ld.exe'
10261d9c7fc6cSmrg  shlibpath_var=LIBPATH
10262d9c7fc6cSmrg  ;;
10263d9c7fc6cSmrg
10264d9c7fc6cSmrgosf3* | osf4* | osf5*)
10265d9c7fc6cSmrg  version_type=osf
10266d9c7fc6cSmrg  need_lib_prefix=no
10267d9c7fc6cSmrg  need_version=no
10268d9c7fc6cSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10269d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
10271d9c7fc6cSmrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10272d9c7fc6cSmrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10273d9c7fc6cSmrg  ;;
10274d9c7fc6cSmrg
1027505a1a286Smrgrdos*)
1027605a1a286Smrg  dynamic_linker=no
1027705a1a286Smrg  ;;
1027805a1a286Smrg
10279d9c7fc6cSmrgsolaris*)
10280d9c7fc6cSmrg  version_type=linux
10281d9c7fc6cSmrg  need_lib_prefix=no
10282d9c7fc6cSmrg  need_version=no
10283d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284d9c7fc6cSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10285d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
10286d9c7fc6cSmrg  shlibpath_overrides_runpath=yes
10287d9c7fc6cSmrg  hardcode_into_libs=yes
10288d9c7fc6cSmrg  # ldd complains unless libraries are executable
10289d9c7fc6cSmrg  postinstall_cmds='chmod +x $lib'
10290d9c7fc6cSmrg  ;;
10291d9c7fc6cSmrg
10292d9c7fc6cSmrgsunos4*)
10293d9c7fc6cSmrg  version_type=sunos
10294d9c7fc6cSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10295d9c7fc6cSmrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10296d9c7fc6cSmrg  shlibpath_var=LD_LIBRARY_PATH
10297d9c7fc6cSmrg  shlibpath_overrides_runpath=yes
10298d9c7fc6cSmrg  if test "$with_gnu_ld" = yes; then
10299d9c7fc6cSmrg    need_lib_prefix=no
10300d9c7fc6cSmrg  fi
10301d9c7fc6cSmrg  need_version=yes
10302d9c7fc6cSmrg  ;;
10303d9c7fc6cSmrg
1030405a1a286Smrgsysv4 | sysv4.3*)
1030505a1a286Smrg  version_type=linux
1030605a1a286Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1030705a1a286Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1030805a1a286Smrg  shlibpath_var=LD_LIBRARY_PATH
1030905a1a286Smrg  case $host_vendor in
1031005a1a286Smrg    sni)
1031105a1a286Smrg      shlibpath_overrides_runpath=no
1031205a1a286Smrg      need_lib_prefix=no
1031305a1a286Smrg      runpath_var=LD_RUN_PATH
1031405a1a286Smrg      ;;
1031505a1a286Smrg    siemens)
1031605a1a286Smrg      need_lib_prefix=no
1031705a1a286Smrg      ;;
1031805a1a286Smrg    motorola)
1031905a1a286Smrg      need_lib_prefix=no
1032005a1a286Smrg      need_version=no
1032105a1a286Smrg      shlibpath_overrides_runpath=no
1032205a1a286Smrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1032305a1a286Smrg      ;;
1032405a1a286Smrg  esac
1032505a1a286Smrg  ;;
1032605a1a286Smrg
1032705a1a286Smrgsysv4*MP*)
1032805a1a286Smrg  if test -d /usr/nec ;then
1032905a1a286Smrg    version_type=linux
1033005a1a286Smrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1033105a1a286Smrg    soname_spec='$libname${shared_ext}.$major'
1033205a1a286Smrg    shlibpath_var=LD_LIBRARY_PATH
1033305a1a286Smrg  fi
1033405a1a286Smrg  ;;
1033505a1a286Smrg
1033605a1a286Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1033705a1a286Smrg  version_type=freebsd-elf
1033805a1a286Smrg  need_lib_prefix=no
1033905a1a286Smrg  need_version=no
1034005a1a286Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1034105a1a286Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1034205a1a286Smrg  shlibpath_var=LD_LIBRARY_PATH
1034305a1a286Smrg  shlibpath_overrides_runpath=yes
1034405a1a286Smrg  hardcode_into_libs=yes
1034505a1a286Smrg  if test "$with_gnu_ld" = yes; then
1034605a1a286Smrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1034705a1a286Smrg  else
1034805a1a286Smrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1034905a1a286Smrg    case $host_os in
1035005a1a286Smrg      sco3.2v5*)
1035105a1a286Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1035205a1a286Smrg	;;
1035305a1a286Smrg    esac
1035405a1a286Smrg  fi
1035505a1a286Smrg  sys_lib_dlsearch_path_spec='/usr/lib'
1035605a1a286Smrg  ;;
1035705a1a286Smrg
1035805a1a286Smrgtpf*)
1035905a1a286Smrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
1036005a1a286Smrg  version_type=linux
1036105a1a286Smrg  need_lib_prefix=no
1036205a1a286Smrg  need_version=no
1036305a1a286Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1036405a1a286Smrg  shlibpath_var=LD_LIBRARY_PATH
1036505a1a286Smrg  shlibpath_overrides_runpath=no
1036605a1a286Smrg  hardcode_into_libs=yes
1036705a1a286Smrg  ;;
1036805a1a286Smrg
1036905a1a286Smrguts4*)
1037005a1a286Smrg  version_type=linux
1037105a1a286Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1037205a1a286Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1037305a1a286Smrg  shlibpath_var=LD_LIBRARY_PATH
1037405a1a286Smrg  ;;
1037505a1a286Smrg
1037605a1a286Smrg*)
1037705a1a286Smrg  dynamic_linker=no
1037805a1a286Smrg  ;;
1037905a1a286Smrgesac
1038005a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1038105a1a286Smrg$as_echo "$dynamic_linker" >&6; }
1038205a1a286Smrgtest "$dynamic_linker" = no && can_build_shared=no
1038305a1a286Smrg
1038405a1a286Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1038505a1a286Smrgif test "$GCC" = yes; then
1038605a1a286Smrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1038705a1a286Smrgfi
1038805a1a286Smrg
1038905a1a286Smrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
1039005a1a286Smrg  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1039105a1a286Smrgfi
1039205a1a286Smrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1039305a1a286Smrg  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1039405a1a286Smrgfi
1039505a1a286Smrg
1039605a1a286Smrg
1039705a1a286Smrg
1039805a1a286Smrg
1039905a1a286Smrg
1040005a1a286Smrg
1040105a1a286Smrg
1040205a1a286Smrg
1040305a1a286Smrg
1040405a1a286Smrg
1040505a1a286Smrg
1040605a1a286Smrg
1040705a1a286Smrg
1040805a1a286Smrg
1040905a1a286Smrg
1041005a1a286Smrg
1041105a1a286Smrg
1041205a1a286Smrg
1041305a1a286Smrg
1041405a1a286Smrg
1041505a1a286Smrg
1041605a1a286Smrg
1041705a1a286Smrg
1041805a1a286Smrg
1041905a1a286Smrg
1042005a1a286Smrg
1042105a1a286Smrg
1042205a1a286Smrg
1042305a1a286Smrg
1042405a1a286Smrg
1042505a1a286Smrg
1042605a1a286Smrg
1042705a1a286Smrg
1042805a1a286Smrg
1042905a1a286Smrg
1043005a1a286Smrg
1043105a1a286Smrg
1043205a1a286Smrg
1043305a1a286Smrg
1043405a1a286Smrg
1043505a1a286Smrg
1043605a1a286Smrg
1043705a1a286Smrg
1043805a1a286Smrg
1043905a1a286Smrg
1044005a1a286Smrg
1044105a1a286Smrg
1044205a1a286Smrg
1044305a1a286Smrg
1044405a1a286Smrg
1044505a1a286Smrg
1044605a1a286Smrg
1044705a1a286Smrg
1044805a1a286Smrg
1044905a1a286Smrg
1045005a1a286Smrg
1045105a1a286Smrg
1045205a1a286Smrg
1045305a1a286Smrg
1045405a1a286Smrg
1045505a1a286Smrg
1045605a1a286Smrg
1045705a1a286Smrg
1045805a1a286Smrg
1045905a1a286Smrg
1046005a1a286Smrg
1046105a1a286Smrg
1046205a1a286Smrg
1046305a1a286Smrg
1046405a1a286Smrg
1046505a1a286Smrg
1046605a1a286Smrg
1046705a1a286Smrg
1046805a1a286Smrg
1046905a1a286Smrg
1047005a1a286Smrg
1047105a1a286Smrg
1047205a1a286Smrg
1047305a1a286Smrg
1047405a1a286Smrg
1047505a1a286Smrg
10476d9c7fc6cSmrg
10477d9c7fc6cSmrg
10478d9c7fc6cSmrg
10479d9c7fc6cSmrg
10480d9c7fc6cSmrg
10481d9c7fc6cSmrg
10482d9c7fc6cSmrg
1048305a1a286Smrg
1048405a1a286Smrg
1048505a1a286Smrg
1048605a1a286Smrg
1048705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
1048805a1a286Smrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1048905a1a286Smrghardcode_action=
1049005a1a286Smrgif test -n "$hardcode_libdir_flag_spec" ||
1049105a1a286Smrg   test -n "$runpath_var" ||
1049205a1a286Smrg   test "X$hardcode_automatic" = "Xyes" ; then
1049305a1a286Smrg
1049405a1a286Smrg  # We can hardcode non-existent directories.
1049505a1a286Smrg  if test "$hardcode_direct" != no &&
10496d9c7fc6cSmrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10497d9c7fc6cSmrg     # have to relink, otherwise we might link with an installed library
10498d9c7fc6cSmrg     # when we should be linking with a yet-to-be-installed one
1049905a1a286Smrg     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
1050005a1a286Smrg     test "$hardcode_minus_L" != no; then
10501d9c7fc6cSmrg    # Linking always hardcodes the temporary library directory.
1050205a1a286Smrg    hardcode_action=relink
10503d9c7fc6cSmrg  else
10504d9c7fc6cSmrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1050505a1a286Smrg    hardcode_action=immediate
10506d9c7fc6cSmrg  fi
10507d9c7fc6cSmrgelse
10508d9c7fc6cSmrg  # We cannot hardcode anything, or else we can only hardcode existing
10509d9c7fc6cSmrg  # directories.
1051005a1a286Smrg  hardcode_action=unsupported
10511d9c7fc6cSmrgfi
1051205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1051305a1a286Smrg$as_echo "$hardcode_action" >&6; }
10514d9c7fc6cSmrg
1051505a1a286Smrgif test "$hardcode_action" = relink ||
1051605a1a286Smrg   test "$inherit_rpath" = yes; then
10517d9c7fc6cSmrg  # Fast installation is not supported
10518d9c7fc6cSmrg  enable_fast_install=no
10519d9c7fc6cSmrgelif test "$shlibpath_overrides_runpath" = yes ||
10520d9c7fc6cSmrg     test "$enable_shared" = no; then
10521d9c7fc6cSmrg  # Fast installation is not necessary
10522d9c7fc6cSmrg  enable_fast_install=needless
10523d9c7fc6cSmrgfi
10524d9c7fc6cSmrg
10525d9c7fc6cSmrg
10526d9c7fc6cSmrg
10527d9c7fc6cSmrg
10528d9c7fc6cSmrg
10529d9c7fc6cSmrg
1053005a1a286Smrg  if test "x$enable_dlopen" != xyes; then
1053105a1a286Smrg  enable_dlopen=unknown
1053205a1a286Smrg  enable_dlopen_self=unknown
1053305a1a286Smrg  enable_dlopen_self_static=unknown
1053405a1a286Smrgelse
1053505a1a286Smrg  lt_cv_dlopen=no
1053605a1a286Smrg  lt_cv_dlopen_libs=
10537d9c7fc6cSmrg
1053805a1a286Smrg  case $host_os in
1053905a1a286Smrg  beos*)
1054005a1a286Smrg    lt_cv_dlopen="load_add_on"
1054105a1a286Smrg    lt_cv_dlopen_libs=
1054205a1a286Smrg    lt_cv_dlopen_self=yes
1054305a1a286Smrg    ;;
10544d9c7fc6cSmrg
1054505a1a286Smrg  mingw* | pw32* | cegcc*)
1054605a1a286Smrg    lt_cv_dlopen="LoadLibrary"
1054705a1a286Smrg    lt_cv_dlopen_libs=
1054805a1a286Smrg    ;;
10549d9c7fc6cSmrg
1055005a1a286Smrg  cygwin*)
1055105a1a286Smrg    lt_cv_dlopen="dlopen"
1055205a1a286Smrg    lt_cv_dlopen_libs=
1055305a1a286Smrg    ;;
10554d9c7fc6cSmrg
1055505a1a286Smrg  darwin*)
1055605a1a286Smrg  # if libdl is installed we need to link against it
1055705a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1055805a1a286Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
1055905a1a286Smrgif ${ac_cv_lib_dl_dlopen+:} false; then :
1056005a1a286Smrg  $as_echo_n "(cached) " >&6
1056105a1a286Smrgelse
1056205a1a286Smrg  ac_check_lib_save_LIBS=$LIBS
1056305a1a286SmrgLIBS="-ldl  $LIBS"
1056405a1a286Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1056505a1a286Smrg/* end confdefs.h.  */
10566d9c7fc6cSmrg
1056705a1a286Smrg/* Override any GCC internal prototype to avoid an error.
1056805a1a286Smrg   Use char because int might match the return type of a GCC
1056905a1a286Smrg   builtin and then its argument prototype would still apply.  */
1057005a1a286Smrg#ifdef __cplusplus
1057105a1a286Smrgextern "C"
1057205a1a286Smrg#endif
1057305a1a286Smrgchar dlopen ();
1057405a1a286Smrgint
1057505a1a286Smrgmain ()
1057605a1a286Smrg{
1057705a1a286Smrgreturn dlopen ();
1057805a1a286Smrg  ;
1057905a1a286Smrg  return 0;
1058005a1a286Smrg}
1058105a1a286Smrg_ACEOF
1058205a1a286Smrgif ac_fn_c_try_link "$LINENO"; then :
1058305a1a286Smrg  ac_cv_lib_dl_dlopen=yes
1058405a1a286Smrgelse
1058505a1a286Smrg  ac_cv_lib_dl_dlopen=no
1058605a1a286Smrgfi
1058705a1a286Smrgrm -f core conftest.err conftest.$ac_objext \
1058805a1a286Smrg    conftest$ac_exeext conftest.$ac_ext
1058905a1a286SmrgLIBS=$ac_check_lib_save_LIBS
1059005a1a286Smrgfi
1059105a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1059205a1a286Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1059305a1a286Smrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1059405a1a286Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1059505a1a286Smrgelse
10596d9c7fc6cSmrg
1059705a1a286Smrg    lt_cv_dlopen="dyld"
1059805a1a286Smrg    lt_cv_dlopen_libs=
1059905a1a286Smrg    lt_cv_dlopen_self=yes
10600d9c7fc6cSmrg
1060105a1a286Smrgfi
10602d9c7fc6cSmrg
1060305a1a286Smrg    ;;
10604d9c7fc6cSmrg
1060505a1a286Smrg  *)
1060605a1a286Smrg    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1060705a1a286Smrgif test "x$ac_cv_func_shl_load" = xyes; then :
1060805a1a286Smrg  lt_cv_dlopen="shl_load"
1060905a1a286Smrgelse
1061005a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1061105a1a286Smrg$as_echo_n "checking for shl_load in -ldld... " >&6; }
1061205a1a286Smrgif ${ac_cv_lib_dld_shl_load+:} false; then :
1061305a1a286Smrg  $as_echo_n "(cached) " >&6
1061405a1a286Smrgelse
1061505a1a286Smrg  ac_check_lib_save_LIBS=$LIBS
1061605a1a286SmrgLIBS="-ldld  $LIBS"
1061705a1a286Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1061805a1a286Smrg/* end confdefs.h.  */
10619d9c7fc6cSmrg
1062005a1a286Smrg/* Override any GCC internal prototype to avoid an error.
1062105a1a286Smrg   Use char because int might match the return type of a GCC
1062205a1a286Smrg   builtin and then its argument prototype would still apply.  */
1062305a1a286Smrg#ifdef __cplusplus
1062405a1a286Smrgextern "C"
1062505a1a286Smrg#endif
1062605a1a286Smrgchar shl_load ();
1062705a1a286Smrgint
1062805a1a286Smrgmain ()
1062905a1a286Smrg{
1063005a1a286Smrgreturn shl_load ();
1063105a1a286Smrg  ;
1063205a1a286Smrg  return 0;
1063305a1a286Smrg}
1063405a1a286Smrg_ACEOF
1063505a1a286Smrgif ac_fn_c_try_link "$LINENO"; then :
1063605a1a286Smrg  ac_cv_lib_dld_shl_load=yes
1063705a1a286Smrgelse
1063805a1a286Smrg  ac_cv_lib_dld_shl_load=no
1063905a1a286Smrgfi
1064005a1a286Smrgrm -f core conftest.err conftest.$ac_objext \
1064105a1a286Smrg    conftest$ac_exeext conftest.$ac_ext
1064205a1a286SmrgLIBS=$ac_check_lib_save_LIBS
1064305a1a286Smrgfi
1064405a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1064505a1a286Smrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1064605a1a286Smrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1064705a1a286Smrg  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1064805a1a286Smrgelse
1064905a1a286Smrg  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1065005a1a286Smrgif test "x$ac_cv_func_dlopen" = xyes; then :
1065105a1a286Smrg  lt_cv_dlopen="dlopen"
1065205a1a286Smrgelse
1065305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1065405a1a286Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
1065505a1a286Smrgif ${ac_cv_lib_dl_dlopen+:} false; then :
1065605a1a286Smrg  $as_echo_n "(cached) " >&6
1065705a1a286Smrgelse
1065805a1a286Smrg  ac_check_lib_save_LIBS=$LIBS
1065905a1a286SmrgLIBS="-ldl  $LIBS"
1066005a1a286Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1066105a1a286Smrg/* end confdefs.h.  */
10662d9c7fc6cSmrg
1066305a1a286Smrg/* Override any GCC internal prototype to avoid an error.
1066405a1a286Smrg   Use char because int might match the return type of a GCC
1066505a1a286Smrg   builtin and then its argument prototype would still apply.  */
1066605a1a286Smrg#ifdef __cplusplus
1066705a1a286Smrgextern "C"
1066805a1a286Smrg#endif
1066905a1a286Smrgchar dlopen ();
1067005a1a286Smrgint
1067105a1a286Smrgmain ()
1067205a1a286Smrg{
1067305a1a286Smrgreturn dlopen ();
1067405a1a286Smrg  ;
1067505a1a286Smrg  return 0;
1067605a1a286Smrg}
1067705a1a286Smrg_ACEOF
1067805a1a286Smrgif ac_fn_c_try_link "$LINENO"; then :
1067905a1a286Smrg  ac_cv_lib_dl_dlopen=yes
1068005a1a286Smrgelse
1068105a1a286Smrg  ac_cv_lib_dl_dlopen=no
1068205a1a286Smrgfi
1068305a1a286Smrgrm -f core conftest.err conftest.$ac_objext \
1068405a1a286Smrg    conftest$ac_exeext conftest.$ac_ext
1068505a1a286SmrgLIBS=$ac_check_lib_save_LIBS
1068605a1a286Smrgfi
1068705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1068805a1a286Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1068905a1a286Smrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1069005a1a286Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1069105a1a286Smrgelse
1069205a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1069305a1a286Smrg$as_echo_n "checking for dlopen in -lsvld... " >&6; }
1069405a1a286Smrgif ${ac_cv_lib_svld_dlopen+:} false; then :
1069505a1a286Smrg  $as_echo_n "(cached) " >&6
1069605a1a286Smrgelse
1069705a1a286Smrg  ac_check_lib_save_LIBS=$LIBS
1069805a1a286SmrgLIBS="-lsvld  $LIBS"
1069905a1a286Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1070005a1a286Smrg/* end confdefs.h.  */
10701d9c7fc6cSmrg
1070205a1a286Smrg/* Override any GCC internal prototype to avoid an error.
1070305a1a286Smrg   Use char because int might match the return type of a GCC
1070405a1a286Smrg   builtin and then its argument prototype would still apply.  */
1070505a1a286Smrg#ifdef __cplusplus
1070605a1a286Smrgextern "C"
1070705a1a286Smrg#endif
1070805a1a286Smrgchar dlopen ();
1070905a1a286Smrgint
1071005a1a286Smrgmain ()
1071105a1a286Smrg{
1071205a1a286Smrgreturn dlopen ();
1071305a1a286Smrg  ;
1071405a1a286Smrg  return 0;
1071505a1a286Smrg}
1071605a1a286Smrg_ACEOF
1071705a1a286Smrgif ac_fn_c_try_link "$LINENO"; then :
1071805a1a286Smrg  ac_cv_lib_svld_dlopen=yes
1071905a1a286Smrgelse
1072005a1a286Smrg  ac_cv_lib_svld_dlopen=no
1072105a1a286Smrgfi
1072205a1a286Smrgrm -f core conftest.err conftest.$ac_objext \
1072305a1a286Smrg    conftest$ac_exeext conftest.$ac_ext
1072405a1a286SmrgLIBS=$ac_check_lib_save_LIBS
1072505a1a286Smrgfi
1072605a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1072705a1a286Smrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1072805a1a286Smrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1072905a1a286Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1073005a1a286Smrgelse
1073105a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1073205a1a286Smrg$as_echo_n "checking for dld_link in -ldld... " >&6; }
1073305a1a286Smrgif ${ac_cv_lib_dld_dld_link+:} false; then :
1073405a1a286Smrg  $as_echo_n "(cached) " >&6
1073505a1a286Smrgelse
1073605a1a286Smrg  ac_check_lib_save_LIBS=$LIBS
1073705a1a286SmrgLIBS="-ldld  $LIBS"
1073805a1a286Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1073905a1a286Smrg/* end confdefs.h.  */
10740d9c7fc6cSmrg
1074105a1a286Smrg/* Override any GCC internal prototype to avoid an error.
1074205a1a286Smrg   Use char because int might match the return type of a GCC
1074305a1a286Smrg   builtin and then its argument prototype would still apply.  */
1074405a1a286Smrg#ifdef __cplusplus
1074505a1a286Smrgextern "C"
1074605a1a286Smrg#endif
1074705a1a286Smrgchar dld_link ();
1074805a1a286Smrgint
1074905a1a286Smrgmain ()
1075005a1a286Smrg{
1075105a1a286Smrgreturn dld_link ();
1075205a1a286Smrg  ;
1075305a1a286Smrg  return 0;
1075405a1a286Smrg}
1075505a1a286Smrg_ACEOF
1075605a1a286Smrgif ac_fn_c_try_link "$LINENO"; then :
1075705a1a286Smrg  ac_cv_lib_dld_dld_link=yes
1075805a1a286Smrgelse
1075905a1a286Smrg  ac_cv_lib_dld_dld_link=no
1076005a1a286Smrgfi
1076105a1a286Smrgrm -f core conftest.err conftest.$ac_objext \
1076205a1a286Smrg    conftest$ac_exeext conftest.$ac_ext
1076305a1a286SmrgLIBS=$ac_check_lib_save_LIBS
1076405a1a286Smrgfi
1076505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1076605a1a286Smrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1076705a1a286Smrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1076805a1a286Smrg  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1076905a1a286Smrgfi
10770d9c7fc6cSmrg
10771d9c7fc6cSmrg
1077205a1a286Smrgfi
10773d9c7fc6cSmrg
10774d9c7fc6cSmrg
1077505a1a286Smrgfi
10776d9c7fc6cSmrg
10777d9c7fc6cSmrg
1077805a1a286Smrgfi
10779d9c7fc6cSmrg
10780d9c7fc6cSmrg
1078105a1a286Smrgfi
10782d9c7fc6cSmrg
10783d9c7fc6cSmrg
1078405a1a286Smrgfi
10785d9c7fc6cSmrg
1078605a1a286Smrg    ;;
1078705a1a286Smrg  esac
10788d9c7fc6cSmrg
1078905a1a286Smrg  if test "x$lt_cv_dlopen" != xno; then
1079005a1a286Smrg    enable_dlopen=yes
1079105a1a286Smrg  else
1079205a1a286Smrg    enable_dlopen=no
1079305a1a286Smrg  fi
10794d9c7fc6cSmrg
1079505a1a286Smrg  case $lt_cv_dlopen in
1079605a1a286Smrg  dlopen)
1079705a1a286Smrg    save_CPPFLAGS="$CPPFLAGS"
1079805a1a286Smrg    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10799d9c7fc6cSmrg
1080005a1a286Smrg    save_LDFLAGS="$LDFLAGS"
1080105a1a286Smrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10802d9c7fc6cSmrg
1080305a1a286Smrg    save_LIBS="$LIBS"
1080405a1a286Smrg    LIBS="$lt_cv_dlopen_libs $LIBS"
10805d9c7fc6cSmrg
1080605a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1080705a1a286Smrg$as_echo_n "checking whether a program can dlopen itself... " >&6; }
1080805a1a286Smrgif ${lt_cv_dlopen_self+:} false; then :
1080905a1a286Smrg  $as_echo_n "(cached) " >&6
1081005a1a286Smrgelse
1081105a1a286Smrg  	  if test "$cross_compiling" = yes; then :
1081205a1a286Smrg  lt_cv_dlopen_self=cross
1081305a1a286Smrgelse
1081405a1a286Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1081505a1a286Smrg  lt_status=$lt_dlunknown
1081605a1a286Smrg  cat > conftest.$ac_ext <<_LT_EOF
1081705a1a286Smrg#line $LINENO "configure"
1081805a1a286Smrg#include "confdefs.h"
10819d9c7fc6cSmrg
1082005a1a286Smrg#if HAVE_DLFCN_H
1082105a1a286Smrg#include <dlfcn.h>
1082205a1a286Smrg#endif
10823d9c7fc6cSmrg
1082405a1a286Smrg#include <stdio.h>
10825d9c7fc6cSmrg
1082605a1a286Smrg#ifdef RTLD_GLOBAL
1082705a1a286Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
1082805a1a286Smrg#else
1082905a1a286Smrg#  ifdef DL_GLOBAL
1083005a1a286Smrg#    define LT_DLGLOBAL		DL_GLOBAL
1083105a1a286Smrg#  else
1083205a1a286Smrg#    define LT_DLGLOBAL		0
1083305a1a286Smrg#  endif
1083405a1a286Smrg#endif
10835d9c7fc6cSmrg
1083605a1a286Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1083705a1a286Smrg   find out it does not work in some platform. */
1083805a1a286Smrg#ifndef LT_DLLAZY_OR_NOW
1083905a1a286Smrg#  ifdef RTLD_LAZY
1084005a1a286Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
1084105a1a286Smrg#  else
1084205a1a286Smrg#    ifdef DL_LAZY
1084305a1a286Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
1084405a1a286Smrg#    else
1084505a1a286Smrg#      ifdef RTLD_NOW
1084605a1a286Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
1084705a1a286Smrg#      else
1084805a1a286Smrg#        ifdef DL_NOW
1084905a1a286Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
1085005a1a286Smrg#        else
1085105a1a286Smrg#          define LT_DLLAZY_OR_NOW	0
1085205a1a286Smrg#        endif
1085305a1a286Smrg#      endif
1085405a1a286Smrg#    endif
1085505a1a286Smrg#  endif
1085605a1a286Smrg#endif
10857d9c7fc6cSmrg
1085805a1a286Smrg/* When -fvisbility=hidden is used, assume the code has been annotated
1085905a1a286Smrg   correspondingly for the symbols needed.  */
1086005a1a286Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1086105a1a286Smrgvoid fnord () __attribute__((visibility("default")));
1086205a1a286Smrg#endif
10863d9c7fc6cSmrg
1086405a1a286Smrgvoid fnord () { int i=42; }
1086505a1a286Smrgint main ()
1086605a1a286Smrg{
1086705a1a286Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1086805a1a286Smrg  int status = $lt_dlunknown;
10869d9c7fc6cSmrg
1087005a1a286Smrg  if (self)
1087105a1a286Smrg    {
1087205a1a286Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1087305a1a286Smrg      else
1087405a1a286Smrg        {
1087505a1a286Smrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
1087605a1a286Smrg          else puts (dlerror ());
1087705a1a286Smrg	}
1087805a1a286Smrg      /* dlclose (self); */
1087905a1a286Smrg    }
1088005a1a286Smrg  else
1088105a1a286Smrg    puts (dlerror ());
10882d9c7fc6cSmrg
1088305a1a286Smrg  return status;
1088405a1a286Smrg}
1088505a1a286Smrg_LT_EOF
1088605a1a286Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1088705a1a286Smrg  (eval $ac_link) 2>&5
1088805a1a286Smrg  ac_status=$?
1088905a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1089005a1a286Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1089105a1a286Smrg    (./conftest; exit; ) >&5 2>/dev/null
1089205a1a286Smrg    lt_status=$?
1089305a1a286Smrg    case x$lt_status in
1089405a1a286Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
1089505a1a286Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1089605a1a286Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1089705a1a286Smrg    esac
1089805a1a286Smrg  else :
1089905a1a286Smrg    # compilation failed
1090005a1a286Smrg    lt_cv_dlopen_self=no
1090105a1a286Smrg  fi
1090205a1a286Smrgfi
1090305a1a286Smrgrm -fr conftest*
10904d9c7fc6cSmrg
10905d9c7fc6cSmrg
1090605a1a286Smrgfi
1090705a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1090805a1a286Smrg$as_echo "$lt_cv_dlopen_self" >&6; }
10909d9c7fc6cSmrg
1091005a1a286Smrg    if test "x$lt_cv_dlopen_self" = xyes; then
1091105a1a286Smrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1091205a1a286Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1091305a1a286Smrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1091405a1a286Smrgif ${lt_cv_dlopen_self_static+:} false; then :
1091505a1a286Smrg  $as_echo_n "(cached) " >&6
1091605a1a286Smrgelse
1091705a1a286Smrg  	  if test "$cross_compiling" = yes; then :
1091805a1a286Smrg  lt_cv_dlopen_self_static=cross
1091905a1a286Smrgelse
1092005a1a286Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1092105a1a286Smrg  lt_status=$lt_dlunknown
1092205a1a286Smrg  cat > conftest.$ac_ext <<_LT_EOF
1092305a1a286Smrg#line $LINENO "configure"
1092405a1a286Smrg#include "confdefs.h"
10925d9c7fc6cSmrg
1092605a1a286Smrg#if HAVE_DLFCN_H
1092705a1a286Smrg#include <dlfcn.h>
1092805a1a286Smrg#endif
10929d9c7fc6cSmrg
1093005a1a286Smrg#include <stdio.h>
10931d9c7fc6cSmrg
1093205a1a286Smrg#ifdef RTLD_GLOBAL
1093305a1a286Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
1093405a1a286Smrg#else
1093505a1a286Smrg#  ifdef DL_GLOBAL
1093605a1a286Smrg#    define LT_DLGLOBAL		DL_GLOBAL
1093705a1a286Smrg#  else
1093805a1a286Smrg#    define LT_DLGLOBAL		0
1093905a1a286Smrg#  endif
1094005a1a286Smrg#endif
10941d9c7fc6cSmrg
1094205a1a286Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1094305a1a286Smrg   find out it does not work in some platform. */
1094405a1a286Smrg#ifndef LT_DLLAZY_OR_NOW
1094505a1a286Smrg#  ifdef RTLD_LAZY
1094605a1a286Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
1094705a1a286Smrg#  else
1094805a1a286Smrg#    ifdef DL_LAZY
1094905a1a286Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
1095005a1a286Smrg#    else
1095105a1a286Smrg#      ifdef RTLD_NOW
1095205a1a286Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
1095305a1a286Smrg#      else
1095405a1a286Smrg#        ifdef DL_NOW
1095505a1a286Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
1095605a1a286Smrg#        else
1095705a1a286Smrg#          define LT_DLLAZY_OR_NOW	0
1095805a1a286Smrg#        endif
1095905a1a286Smrg#      endif
1096005a1a286Smrg#    endif
1096105a1a286Smrg#  endif
1096205a1a286Smrg#endif
10963d9c7fc6cSmrg
1096405a1a286Smrg/* When -fvisbility=hidden is used, assume the code has been annotated
1096505a1a286Smrg   correspondingly for the symbols needed.  */
1096605a1a286Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1096705a1a286Smrgvoid fnord () __attribute__((visibility("default")));
1096805a1a286Smrg#endif
10969d9c7fc6cSmrg
1097005a1a286Smrgvoid fnord () { int i=42; }
1097105a1a286Smrgint main ()
1097205a1a286Smrg{
1097305a1a286Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1097405a1a286Smrg  int status = $lt_dlunknown;
10975d9c7fc6cSmrg
1097605a1a286Smrg  if (self)
1097705a1a286Smrg    {
1097805a1a286Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1097905a1a286Smrg      else
1098005a1a286Smrg        {
1098105a1a286Smrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
1098205a1a286Smrg          else puts (dlerror ());
1098305a1a286Smrg	}
1098405a1a286Smrg      /* dlclose (self); */
1098505a1a286Smrg    }
1098605a1a286Smrg  else
1098705a1a286Smrg    puts (dlerror ());
10988d9c7fc6cSmrg
1098905a1a286Smrg  return status;
1099005a1a286Smrg}
1099105a1a286Smrg_LT_EOF
1099205a1a286Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1099305a1a286Smrg  (eval $ac_link) 2>&5
1099405a1a286Smrg  ac_status=$?
1099505a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1099605a1a286Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1099705a1a286Smrg    (./conftest; exit; ) >&5 2>/dev/null
1099805a1a286Smrg    lt_status=$?
1099905a1a286Smrg    case x$lt_status in
1100005a1a286Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
1100105a1a286Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1100205a1a286Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1100305a1a286Smrg    esac
1100405a1a286Smrg  else :
1100505a1a286Smrg    # compilation failed
1100605a1a286Smrg    lt_cv_dlopen_self_static=no
1100705a1a286Smrg  fi
1100805a1a286Smrgfi
1100905a1a286Smrgrm -fr conftest*
11010d9c7fc6cSmrg
11011d9c7fc6cSmrg
1101205a1a286Smrgfi
1101305a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
1101405a1a286Smrg$as_echo "$lt_cv_dlopen_self_static" >&6; }
1101505a1a286Smrg    fi
11016d9c7fc6cSmrg
1101705a1a286Smrg    CPPFLAGS="$save_CPPFLAGS"
1101805a1a286Smrg    LDFLAGS="$save_LDFLAGS"
1101905a1a286Smrg    LIBS="$save_LIBS"
1102005a1a286Smrg    ;;
1102105a1a286Smrg  esac
11022d9c7fc6cSmrg
1102305a1a286Smrg  case $lt_cv_dlopen_self in
1102405a1a286Smrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1102505a1a286Smrg  *) enable_dlopen_self=unknown ;;
1102605a1a286Smrg  esac
11027d9c7fc6cSmrg
1102805a1a286Smrg  case $lt_cv_dlopen_self_static in
1102905a1a286Smrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1103005a1a286Smrg  *) enable_dlopen_self_static=unknown ;;
1103105a1a286Smrg  esac
1103205a1a286Smrgfi
11033d9c7fc6cSmrg
11034d9c7fc6cSmrg
11035d9c7fc6cSmrg
11036d9c7fc6cSmrg
11037d9c7fc6cSmrg
11038d9c7fc6cSmrg
11039d9c7fc6cSmrg
11040d9c7fc6cSmrg
11041d9c7fc6cSmrg
11042d9c7fc6cSmrg
11043d9c7fc6cSmrg
11044d9c7fc6cSmrg
11045d9c7fc6cSmrg
11046d9c7fc6cSmrg
11047d9c7fc6cSmrg
11048d9c7fc6cSmrg
11049d9c7fc6cSmrg
1105005a1a286Smrgstriplib=
1105105a1a286Smrgold_striplib=
1105205a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
1105305a1a286Smrg$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1105405a1a286Smrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1105505a1a286Smrg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1105605a1a286Smrg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1105705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1105805a1a286Smrg$as_echo "yes" >&6; }
1105905a1a286Smrgelse
1106005a1a286Smrg# FIXME - insert some real tests, host_os isn't really good enough
1106105a1a286Smrg  case $host_os in
1106205a1a286Smrg  darwin*)
1106305a1a286Smrg    if test -n "$STRIP" ; then
1106405a1a286Smrg      striplib="$STRIP -x"
1106505a1a286Smrg      old_striplib="$STRIP -S"
1106605a1a286Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1106705a1a286Smrg$as_echo "yes" >&6; }
1106805a1a286Smrg    else
1106905a1a286Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1107005a1a286Smrg$as_echo "no" >&6; }
1107105a1a286Smrg    fi
1107205a1a286Smrg    ;;
1107305a1a286Smrg  *)
1107405a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1107505a1a286Smrg$as_echo "no" >&6; }
1107605a1a286Smrg    ;;
1107705a1a286Smrg  esac
1107805a1a286Smrgfi
11079d9c7fc6cSmrg
11080d9c7fc6cSmrg
11081d9c7fc6cSmrg
11082d9c7fc6cSmrg
11083d9c7fc6cSmrg
11084d9c7fc6cSmrg
11085d9c7fc6cSmrg
11086d9c7fc6cSmrg
11087d9c7fc6cSmrg
11088d9c7fc6cSmrg
11089d9c7fc6cSmrg
11090d9c7fc6cSmrg
1109105a1a286Smrg  # Report which library types will actually be built
1109205a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1109305a1a286Smrg$as_echo_n "checking if libtool supports shared libraries... " >&6; }
1109405a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1109505a1a286Smrg$as_echo "$can_build_shared" >&6; }
11096d9c7fc6cSmrg
1109705a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1109805a1a286Smrg$as_echo_n "checking whether to build shared libraries... " >&6; }
1109905a1a286Smrg  test "$can_build_shared" = "no" && enable_shared=no
1110005a1a286Smrg
1110105a1a286Smrg  # On AIX, shared libraries and static libraries use the same namespace, and
1110205a1a286Smrg  # are all built from PIC.
1110305a1a286Smrg  case $host_os in
1110405a1a286Smrg  aix3*)
1110505a1a286Smrg    test "$enable_shared" = yes && enable_static=no
1110605a1a286Smrg    if test -n "$RANLIB"; then
1110705a1a286Smrg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
1110805a1a286Smrg      postinstall_cmds='$RANLIB $lib'
1110905a1a286Smrg    fi
1111005a1a286Smrg    ;;
11111d9c7fc6cSmrg
1111205a1a286Smrg  aix[4-9]*)
1111305a1a286Smrg    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1111405a1a286Smrg      test "$enable_shared" = yes && enable_static=no
1111505a1a286Smrg    fi
1111605a1a286Smrg    ;;
1111705a1a286Smrg  esac
1111805a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
1111905a1a286Smrg$as_echo "$enable_shared" >&6; }
11120d9c7fc6cSmrg
1112105a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1112205a1a286Smrg$as_echo_n "checking whether to build static libraries... " >&6; }
1112305a1a286Smrg  # Make sure either enable_shared or enable_static is yes.
1112405a1a286Smrg  test "$enable_shared" = yes || enable_static=yes
1112505a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1112605a1a286Smrg$as_echo "$enable_static" >&6; }
11127d9c7fc6cSmrg
11128d9c7fc6cSmrg
11129d9c7fc6cSmrg
11130d9c7fc6cSmrg
1113105a1a286Smrgfi
11132d9c7fc6cSmrgac_ext=c
11133d9c7fc6cSmrgac_cpp='$CPP $CPPFLAGS'
11134d9c7fc6cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11135d9c7fc6cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11136d9c7fc6cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
11137d9c7fc6cSmrg
11138d9c7fc6cSmrgCC="$lt_save_CC"
11139d9c7fc6cSmrg
11140d9c7fc6cSmrg
11141d9c7fc6cSmrg
11142d9c7fc6cSmrg
11143d9c7fc6cSmrg
11144d9c7fc6cSmrg
11145d9c7fc6cSmrg
11146d9c7fc6cSmrg
11147d9c7fc6cSmrg
11148d9c7fc6cSmrg
11149d9c7fc6cSmrg
11150d9c7fc6cSmrg
11151d9c7fc6cSmrg
1115205a1a286Smrg        ac_config_commands="$ac_config_commands libtool"
11153d9c7fc6cSmrg
11154d9c7fc6cSmrg
11155d9c7fc6cSmrg
11156d9c7fc6cSmrg
1115705a1a286Smrg# Only expand once:
11158d9c7fc6cSmrg
11159d9c7fc6cSmrg
11160d9c7fc6cSmrg
1116105a1a286Smrg# Checks for pkg-config packages
11162d9c7fc6cSmrg
1116305a1a286Smrgpkg_failed=no
1116405a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEVIE" >&5
1116505a1a286Smrg$as_echo_n "checking for XEVIE... " >&6; }
1116605a1a286Smrg
1116705a1a286Smrgif test -n "$XEVIE_CFLAGS"; then
1116805a1a286Smrg    pkg_cv_XEVIE_CFLAGS="$XEVIE_CFLAGS"
1116905a1a286Smrg elif test -n "$PKG_CONFIG"; then
1117005a1a286Smrg    if test -n "$PKG_CONFIG" && \
1117105a1a286Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext evieproto\""; } >&5
1117205a1a286Smrg  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext evieproto") 2>&5
1117305a1a286Smrg  ac_status=$?
1117405a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1117505a1a286Smrg  test $ac_status = 0; }; then
1117605a1a286Smrg  pkg_cv_XEVIE_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xext evieproto" 2>/dev/null`
1117705a1a286Smrgelse
1117805a1a286Smrg  pkg_failed=yes
1117905a1a286Smrgfi
1118005a1a286Smrg else
1118105a1a286Smrg    pkg_failed=untried
1118205a1a286Smrgfi
1118305a1a286Smrgif test -n "$XEVIE_LIBS"; then
1118405a1a286Smrg    pkg_cv_XEVIE_LIBS="$XEVIE_LIBS"
1118505a1a286Smrg elif test -n "$PKG_CONFIG"; then
1118605a1a286Smrg    if test -n "$PKG_CONFIG" && \
1118705a1a286Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext evieproto\""; } >&5
1118805a1a286Smrg  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext evieproto") 2>&5
1118905a1a286Smrg  ac_status=$?
1119005a1a286Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1119105a1a286Smrg  test $ac_status = 0; }; then
1119205a1a286Smrg  pkg_cv_XEVIE_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xext evieproto" 2>/dev/null`
1119305a1a286Smrgelse
1119405a1a286Smrg  pkg_failed=yes
1119505a1a286Smrgfi
1119605a1a286Smrg else
1119705a1a286Smrg    pkg_failed=untried
1119805a1a286Smrgfi
11199d9c7fc6cSmrg
11200d9c7fc6cSmrg
11201d9c7fc6cSmrg
1120205a1a286Smrgif test $pkg_failed = yes; then
11203d9c7fc6cSmrg
1120405a1a286Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1120505a1a286Smrg        _pkg_short_errors_supported=yes
1120605a1a286Smrgelse
1120705a1a286Smrg        _pkg_short_errors_supported=no
1120805a1a286Smrgfi
1120905a1a286Smrg        if test $_pkg_short_errors_supported = yes; then
1121005a1a286Smrg	        XEVIE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xextproto xext evieproto" 2>&1`
1121105a1a286Smrg        else
1121205a1a286Smrg	        XEVIE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xextproto xext evieproto" 2>&1`
1121305a1a286Smrg        fi
1121405a1a286Smrg	# Put the nasty error message in config.log where it belongs
1121505a1a286Smrg	echo "$XEVIE_PKG_ERRORS" >&5
11216d9c7fc6cSmrg
1121705a1a286Smrg	as_fn_error $? "Package requirements (xproto x11 xextproto xext evieproto) were not met:
11218d9c7fc6cSmrg
1121905a1a286Smrg$XEVIE_PKG_ERRORS
11220d9c7fc6cSmrg
1122105a1a286SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
1122205a1a286Smrginstalled software in a non-standard prefix.
11223d9c7fc6cSmrg
1122405a1a286SmrgAlternatively, you may set the environment variables XEVIE_CFLAGS
1122505a1a286Smrgand XEVIE_LIBS to avoid the need to call pkg-config.
1122605a1a286SmrgSee the pkg-config man page for more details.
1122705a1a286Smrg" "$LINENO" 5
1122805a1a286Smrgelif test $pkg_failed = untried; then
1122905a1a286Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1123005a1a286Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1123105a1a286Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
1123205a1a286Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
1123305a1a286Smrgpath to pkg-config.
11234d9c7fc6cSmrg
1123505a1a286SmrgAlternatively, you may set the environment variables XEVIE_CFLAGS
1123605a1a286Smrgand XEVIE_LIBS to avoid the need to call pkg-config.
1123705a1a286SmrgSee the pkg-config man page for more details.
11238d9c7fc6cSmrg
1123905a1a286SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1124005a1a286SmrgSee \`config.log' for more details" "$LINENO" 5; }
1124105a1a286Smrgelse
1124205a1a286Smrg	XEVIE_CFLAGS=$pkg_cv_XEVIE_CFLAGS
1124305a1a286Smrg	XEVIE_LIBS=$pkg_cv_XEVIE_LIBS
1124405a1a286Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1124505a1a286Smrg$as_echo "yes" >&6; }
1124605a1a286Smrg	:
1124705a1a286Smrgfi
11248d9c7fc6cSmrg
11249d9c7fc6cSmrg
11250d9c7fc6cSmrg
11251d9c7fc6cSmrg
11252d9c7fc6cSmrg
11253d9c7fc6cSmrg
1125405a1a286Smrg# Check whether --with-lint was given.
1125505a1a286Smrgif test "${with_lint+set}" = set; then :
1125605a1a286Smrg  withval=$with_lint; use_lint=$withval
1125705a1a286Smrgelse
1125805a1a286Smrg  use_lint=no
1125905a1a286Smrgfi
11260d9c7fc6cSmrg
11261d9c7fc6cSmrg
1126205a1a286Smrg# Obtain platform specific info like program name and options
1126305a1a286Smrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris
1126405a1a286Smrgcase $host_os in
1126505a1a286Smrg  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
1126605a1a286Smrg	lint_name=splint
1126705a1a286Smrg	lint_options="-badflag"
1126805a1a286Smrg	;;
1126905a1a286Smrg  *freebsd* | *netbsd*)
1127005a1a286Smrg	lint_name=lint
1127105a1a286Smrg	lint_options="-u -b"
1127205a1a286Smrg	;;
1127305a1a286Smrg  *solaris*)
1127405a1a286Smrg	lint_name=lint
1127505a1a286Smrg	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
1127605a1a286Smrg	;;
1127705a1a286Smrgesac
11278d9c7fc6cSmrg
1127905a1a286Smrg# Test for the presence of the program (either guessed by the code or spelled out by the user)
1128005a1a286Smrgif test "x$use_lint" = x"yes" ; then
1128105a1a286Smrg   # Extract the first word of "$lint_name", so it can be a program name with args.
1128205a1a286Smrgset dummy $lint_name; ac_word=$2
1128305a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1128405a1a286Smrg$as_echo_n "checking for $ac_word... " >&6; }
1128505a1a286Smrgif ${ac_cv_path_LINT+:} false; then :
1128605a1a286Smrg  $as_echo_n "(cached) " >&6
1128705a1a286Smrgelse
1128805a1a286Smrg  case $LINT in
1128905a1a286Smrg  [\\/]* | ?:[\\/]*)
1129005a1a286Smrg  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
1129105a1a286Smrg  ;;
1129205a1a286Smrg  *)
1129305a1a286Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1129405a1a286Smrgfor as_dir in $PATH
1129505a1a286Smrgdo
1129605a1a286Smrg  IFS=$as_save_IFS
1129705a1a286Smrg  test -z "$as_dir" && as_dir=.
1129805a1a286Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
1129905a1a286Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1130005a1a286Smrg    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
1130105a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1130205a1a286Smrg    break 2
1130305a1a286Smrg  fi
1130405a1a286Smrgdone
1130505a1a286Smrg  done
1130605a1a286SmrgIFS=$as_save_IFS
11307d9c7fc6cSmrg
1130805a1a286Smrg  ;;
1130905a1a286Smrgesac
1131005a1a286Smrgfi
1131105a1a286SmrgLINT=$ac_cv_path_LINT
1131205a1a286Smrgif test -n "$LINT"; then
1131305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
1131405a1a286Smrg$as_echo "$LINT" >&6; }
1131505a1a286Smrgelse
1131605a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1131705a1a286Smrg$as_echo "no" >&6; }
1131805a1a286Smrgfi
11319d9c7fc6cSmrg
11320d9c7fc6cSmrg
1132105a1a286Smrg   if test "x$LINT" = "x"; then
1132205a1a286Smrg        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
1132305a1a286Smrg   fi
1132405a1a286Smrgelif test "x$use_lint" = x"no" ; then
1132505a1a286Smrg   if test "x$LINT" != "x"; then
1132605a1a286Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
1132705a1a286Smrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
1132805a1a286Smrg   fi
1132905a1a286Smrgelse
1133005a1a286Smrg   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
1133105a1a286Smrgfi
11332d9c7fc6cSmrg
1133305a1a286Smrg# User supplied flags override default flags
1133405a1a286Smrgif test "x$LINT_FLAGS" != "x"; then
1133505a1a286Smrg   lint_options=$LINT_FLAGS
1133605a1a286Smrgfi
11337d9c7fc6cSmrg
1133805a1a286SmrgLINT_FLAGS=$lint_options
11339d9c7fc6cSmrg
1134005a1a286Smrg if test "x$LINT" != x; then
1134105a1a286Smrg  LINT_TRUE=
1134205a1a286Smrg  LINT_FALSE='#'
1134305a1a286Smrgelse
1134405a1a286Smrg  LINT_TRUE='#'
1134505a1a286Smrg  LINT_FALSE=
1134605a1a286Smrgfi
11347d9c7fc6cSmrg
11348d9c7fc6cSmrg
11349d9c7fc6cSmrg
11350d9c7fc6cSmrg
11351d9c7fc6cSmrg
1135205a1a286Smrg# Check whether --enable-lint-library was given.
1135305a1a286Smrgif test "${enable_lint_library+set}" = set; then :
1135405a1a286Smrg  enableval=$enable_lint_library; make_lint_lib=$enableval
1135505a1a286Smrgelse
1135605a1a286Smrg  make_lint_lib=no
1135705a1a286Smrgfi
11358d9c7fc6cSmrg
11359d9c7fc6cSmrg
1136005a1a286Smrgif test "x$make_lint_lib" = x"yes" ; then
1136105a1a286Smrg   LINTLIB=llib-lXevie.ln
1136205a1a286Smrg   if test "x$LINT" = "x"; then
1136305a1a286Smrg        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
1136405a1a286Smrg   fi
1136505a1a286Smrgelif test "x$make_lint_lib" != x"no" ; then
1136605a1a286Smrg   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
1136705a1a286Smrgfi
11368d9c7fc6cSmrg
11369d9c7fc6cSmrg
1137005a1a286Smrg if test x$make_lint_lib != xno; then
1137105a1a286Smrg  MAKE_LINT_LIB_TRUE=
1137205a1a286Smrg  MAKE_LINT_LIB_FALSE='#'
1137305a1a286Smrgelse
1137405a1a286Smrg  MAKE_LINT_LIB_TRUE='#'
1137505a1a286Smrg  MAKE_LINT_LIB_FALSE=
1137605a1a286Smrgfi
11377d9c7fc6cSmrg
11378d9c7fc6cSmrg
11379d9c7fc6cSmrg
11380d9c7fc6cSmrg
1138105a1a286Smrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xevie.pc"
1138205a1a286Smrg
1138305a1a286Smrgcat >confcache <<\_ACEOF
1138405a1a286Smrg# This file is a shell script that caches the results of configure
1138505a1a286Smrg# tests run on this system so they can be shared between configure
1138605a1a286Smrg# scripts and configure runs, see configure's option --config-cache.
1138705a1a286Smrg# It is not useful on other systems.  If it contains results you don't
1138805a1a286Smrg# want to keep, you may remove or edit it.
1138905a1a286Smrg#
1139005a1a286Smrg# config.status only pays attention to the cache file if you give it
1139105a1a286Smrg# the --recheck option to rerun configure.
1139205a1a286Smrg#
1139305a1a286Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
1139405a1a286Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
1139505a1a286Smrg# following values.
1139605a1a286Smrg
1139705a1a286Smrg_ACEOF
1139805a1a286Smrg
1139905a1a286Smrg# The following way of writing the cache mishandles newlines in values,
1140005a1a286Smrg# but we know of no workaround that is simple, portable, and efficient.
1140105a1a286Smrg# So, we kill variables containing newlines.
1140205a1a286Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
1140305a1a286Smrg# and sets the high bit in the cache file unless we assign to the vars.
1140405a1a286Smrg(
1140505a1a286Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1140605a1a286Smrg    eval ac_val=\$$ac_var
1140705a1a286Smrg    case $ac_val in #(
1140805a1a286Smrg    *${as_nl}*)
1140905a1a286Smrg      case $ac_var in #(
1141005a1a286Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1141105a1a286Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1141205a1a286Smrg      esac
1141305a1a286Smrg      case $ac_var in #(
1141405a1a286Smrg      _ | IFS | as_nl) ;; #(
1141505a1a286Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1141605a1a286Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1141705a1a286Smrg      esac ;;
1141805a1a286Smrg    esac
1141905a1a286Smrg  done
1142005a1a286Smrg
1142105a1a286Smrg  (set) 2>&1 |
1142205a1a286Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
1142305a1a286Smrg    *${as_nl}ac_space=\ *)
1142405a1a286Smrg      # `set' does not quote correctly, so add quotes: double-quote
1142505a1a286Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1142605a1a286Smrg      sed -n \
1142705a1a286Smrg	"s/'/'\\\\''/g;
1142805a1a286Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1142905a1a286Smrg      ;; #(
1143005a1a286Smrg    *)
1143105a1a286Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
1143205a1a286Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1143305a1a286Smrg      ;;
1143405a1a286Smrg    esac |
1143505a1a286Smrg    sort
1143605a1a286Smrg) |
1143705a1a286Smrg  sed '
1143805a1a286Smrg     /^ac_cv_env_/b end
1143905a1a286Smrg     t clear
1144005a1a286Smrg     :clear
1144105a1a286Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1144205a1a286Smrg     t end
1144305a1a286Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1144405a1a286Smrg     :end' >>confcache
1144505a1a286Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1144605a1a286Smrg  if test -w "$cache_file"; then
1144705a1a286Smrg    if test "x$cache_file" != "x/dev/null"; then
1144805a1a286Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1144905a1a286Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
1145005a1a286Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
1145105a1a286Smrg	cat confcache >"$cache_file"
1145205a1a286Smrg      else
1145305a1a286Smrg        case $cache_file in #(
1145405a1a286Smrg        */* | ?:*)
1145505a1a286Smrg	  mv -f confcache "$cache_file"$$ &&
1145605a1a286Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
1145705a1a286Smrg        *)
1145805a1a286Smrg	  mv -f confcache "$cache_file" ;;
1145905a1a286Smrg	esac
1146005a1a286Smrg      fi
1146105a1a286Smrg    fi
1146205a1a286Smrg  else
1146305a1a286Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1146405a1a286Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1146505a1a286Smrg  fi
1146605a1a286Smrgfi
1146705a1a286Smrgrm -f confcache
1146805a1a286Smrg
1146905a1a286Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1147005a1a286Smrg# Let make expand exec_prefix.
1147105a1a286Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1147205a1a286Smrg
1147305a1a286SmrgDEFS=-DHAVE_CONFIG_H
11474d9c7fc6cSmrg
1147505a1a286Smrgac_libobjs=
1147605a1a286Smrgac_ltlibobjs=
1147705a1a286SmrgU=
1147805a1a286Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1147905a1a286Smrg  # 1. Remove the extension, and $U if already installed.
1148005a1a286Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1148105a1a286Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1148205a1a286Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
1148305a1a286Smrg  #    will be set to the directory where LIBOBJS objects are built.
1148405a1a286Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1148505a1a286Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1148605a1a286Smrgdone
1148705a1a286SmrgLIBOBJS=$ac_libobjs
11488d9c7fc6cSmrg
1148905a1a286SmrgLTLIBOBJS=$ac_ltlibobjs
11490d9c7fc6cSmrg
11491d9c7fc6cSmrg
1149205a1a286Smrg if test -n "$EXEEXT"; then
1149305a1a286Smrg  am__EXEEXT_TRUE=
1149405a1a286Smrg  am__EXEEXT_FALSE='#'
1149505a1a286Smrgelse
1149605a1a286Smrg  am__EXEEXT_TRUE='#'
1149705a1a286Smrg  am__EXEEXT_FALSE=
1149805a1a286Smrgfi
11499d9c7fc6cSmrg
1150005a1a286Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1150105a1a286Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
1150205a1a286SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1150305a1a286Smrgfi
1150405a1a286Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1150505a1a286Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
1150605a1a286SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1150705a1a286Smrgfi
1150805a1a286Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1150905a1a286Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1151005a1a286SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1151105a1a286Smrgfi
1151205a1a286Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
1151305a1a286Smrg  as_fn_error $? "conditional \"LINT\" was never defined.
1151405a1a286SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1151505a1a286Smrgfi
1151605a1a286Smrgif test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
1151705a1a286Smrg  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
1151805a1a286SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1151905a1a286Smrgfi
11520d9c7fc6cSmrg
1152105a1a286Smrg: "${CONFIG_STATUS=./config.status}"
1152205a1a286Smrgac_write_fail=0
1152305a1a286Smrgac_clean_files_save=$ac_clean_files
1152405a1a286Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
1152505a1a286Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
1152605a1a286Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1152705a1a286Smrgas_write_fail=0
1152805a1a286Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1152905a1a286Smrg#! $SHELL
1153005a1a286Smrg# Generated by $as_me.
1153105a1a286Smrg# Run this file to recreate the current configuration.
1153205a1a286Smrg# Compiler output produced by configure, useful for debugging
1153305a1a286Smrg# configure, is in config.log if it exists.
11534d9c7fc6cSmrg
1153505a1a286Smrgdebug=false
1153605a1a286Smrgac_cs_recheck=false
1153705a1a286Smrgac_cs_silent=false
11538d9c7fc6cSmrg
1153905a1a286SmrgSHELL=\${CONFIG_SHELL-$SHELL}
1154005a1a286Smrgexport SHELL
1154105a1a286Smrg_ASEOF
1154205a1a286Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
1154305a1a286Smrg## -------------------- ##
1154405a1a286Smrg## M4sh Initialization. ##
1154505a1a286Smrg## -------------------- ##
1154605a1a286Smrg
1154705a1a286Smrg# Be more Bourne compatible
1154805a1a286SmrgDUALCASE=1; export DUALCASE # for MKS sh
1154905a1a286Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1155005a1a286Smrg  emulate sh
1155105a1a286Smrg  NULLCMD=:
1155205a1a286Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1155305a1a286Smrg  # is contrary to our usage.  Disable this feature.
1155405a1a286Smrg  alias -g '${1+"$@"}'='"$@"'
1155505a1a286Smrg  setopt NO_GLOB_SUBST
1155605a1a286Smrgelse
1155705a1a286Smrg  case `(set -o) 2>/dev/null` in #(
1155805a1a286Smrg  *posix*) :
1155905a1a286Smrg    set -o posix ;; #(
1156005a1a286Smrg  *) :
1156105a1a286Smrg     ;;
1156205a1a286Smrgesac
1156305a1a286Smrgfi
11564d9c7fc6cSmrg
11565d9c7fc6cSmrg
1156605a1a286Smrgas_nl='
1156705a1a286Smrg'
1156805a1a286Smrgexport as_nl
1156905a1a286Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
1157005a1a286Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1157105a1a286Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
1157205a1a286Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1157305a1a286Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
1157405a1a286Smrg# but without wasting forks for bash or zsh.
1157505a1a286Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
1157605a1a286Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
1157705a1a286Smrg  as_echo='print -r --'
1157805a1a286Smrg  as_echo_n='print -rn --'
1157905a1a286Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1158005a1a286Smrg  as_echo='printf %s\n'
1158105a1a286Smrg  as_echo_n='printf %s'
1158205a1a286Smrgelse
1158305a1a286Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
1158405a1a286Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
1158505a1a286Smrg    as_echo_n='/usr/ucb/echo -n'
1158605a1a286Smrg  else
1158705a1a286Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
1158805a1a286Smrg    as_echo_n_body='eval
1158905a1a286Smrg      arg=$1;
1159005a1a286Smrg      case $arg in #(
1159105a1a286Smrg      *"$as_nl"*)
1159205a1a286Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
1159305a1a286Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
1159405a1a286Smrg      esac;
1159505a1a286Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
1159605a1a286Smrg    '
1159705a1a286Smrg    export as_echo_n_body
1159805a1a286Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
1159905a1a286Smrg  fi
1160005a1a286Smrg  export as_echo_body
1160105a1a286Smrg  as_echo='sh -c $as_echo_body as_echo'
1160205a1a286Smrgfi
11603d9c7fc6cSmrg
1160405a1a286Smrg# The user is always right.
1160505a1a286Smrgif test "${PATH_SEPARATOR+set}" != set; then
1160605a1a286Smrg  PATH_SEPARATOR=:
1160705a1a286Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1160805a1a286Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1160905a1a286Smrg      PATH_SEPARATOR=';'
1161005a1a286Smrg  }
1161105a1a286Smrgfi
11612d9c7fc6cSmrg
11613d9c7fc6cSmrg
1161405a1a286Smrg# IFS
1161505a1a286Smrg# We need space, tab and new line, in precisely that order.  Quoting is
1161605a1a286Smrg# there to prevent editors from complaining about space-tab.
1161705a1a286Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
1161805a1a286Smrg# splitting by setting IFS to empty value.)
1161905a1a286SmrgIFS=" ""	$as_nl"
1162005a1a286Smrg
1162105a1a286Smrg# Find who we are.  Look in the path if we contain no directory separator.
1162205a1a286Smrgas_myself=
1162305a1a286Smrgcase $0 in #((
1162405a1a286Smrg  *[\\/]* ) as_myself=$0 ;;
1162505a1a286Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1162605a1a286Smrgfor as_dir in $PATH
1162705a1a286Smrgdo
1162805a1a286Smrg  IFS=$as_save_IFS
1162905a1a286Smrg  test -z "$as_dir" && as_dir=.
1163005a1a286Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1163105a1a286Smrg  done
1163205a1a286SmrgIFS=$as_save_IFS
11633d9c7fc6cSmrg
1163405a1a286Smrg     ;;
1163505a1a286Smrgesac
1163605a1a286Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1163705a1a286Smrg# in which case we are not to be found in the path.
1163805a1a286Smrgif test "x$as_myself" = x; then
1163905a1a286Smrg  as_myself=$0
1164005a1a286Smrgfi
1164105a1a286Smrgif test ! -f "$as_myself"; then
1164205a1a286Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1164305a1a286Smrg  exit 1
1164405a1a286Smrgfi
1164505a1a286Smrg
1164605a1a286Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1164705a1a286Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1164805a1a286Smrg# suppresses any "Segmentation fault" message there.  '((' could
1164905a1a286Smrg# trigger a bug in pdksh 5.2.14.
1165005a1a286Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1165105a1a286Smrgdo eval test x\${$as_var+set} = xset \
1165205a1a286Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1165305a1a286Smrgdone
1165405a1a286SmrgPS1='$ '
1165505a1a286SmrgPS2='> '
1165605a1a286SmrgPS4='+ '
11657d9c7fc6cSmrg
1165805a1a286Smrg# NLS nuisances.
1165905a1a286SmrgLC_ALL=C
1166005a1a286Smrgexport LC_ALL
1166105a1a286SmrgLANGUAGE=C
1166205a1a286Smrgexport LANGUAGE
11663d9c7fc6cSmrg
1166405a1a286Smrg# CDPATH.
1166505a1a286Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11666d9c7fc6cSmrg
11667d9c7fc6cSmrg
1166805a1a286Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
1166905a1a286Smrg# ----------------------------------------
1167005a1a286Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1167105a1a286Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1167205a1a286Smrg# script with STATUS, using 1 if that was 0.
1167305a1a286Smrgas_fn_error ()
1167405a1a286Smrg{
1167505a1a286Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
1167605a1a286Smrg  if test "$4"; then
1167705a1a286Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1167805a1a286Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1167905a1a286Smrg  fi
1168005a1a286Smrg  $as_echo "$as_me: error: $2" >&2
1168105a1a286Smrg  as_fn_exit $as_status
1168205a1a286Smrg} # as_fn_error
11683d9c7fc6cSmrg
11684d9c7fc6cSmrg
1168505a1a286Smrg# as_fn_set_status STATUS
1168605a1a286Smrg# -----------------------
1168705a1a286Smrg# Set $? to STATUS, without forking.
1168805a1a286Smrgas_fn_set_status ()
1168905a1a286Smrg{
1169005a1a286Smrg  return $1
1169105a1a286Smrg} # as_fn_set_status
11692d9c7fc6cSmrg
1169305a1a286Smrg# as_fn_exit STATUS
1169405a1a286Smrg# -----------------
1169505a1a286Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
1169605a1a286Smrgas_fn_exit ()
1169705a1a286Smrg{
1169805a1a286Smrg  set +e
1169905a1a286Smrg  as_fn_set_status $1
1170005a1a286Smrg  exit $1
1170105a1a286Smrg} # as_fn_exit
1170205a1a286Smrg
1170305a1a286Smrg# as_fn_unset VAR
1170405a1a286Smrg# ---------------
1170505a1a286Smrg# Portably unset VAR.
1170605a1a286Smrgas_fn_unset ()
1170705a1a286Smrg{
1170805a1a286Smrg  { eval $1=; unset $1;}
1170905a1a286Smrg}
1171005a1a286Smrgas_unset=as_fn_unset
1171105a1a286Smrg# as_fn_append VAR VALUE
1171205a1a286Smrg# ----------------------
1171305a1a286Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
1171405a1a286Smrg# advantage of any shell optimizations that allow amortized linear growth over
1171505a1a286Smrg# repeated appends, instead of the typical quadratic growth present in naive
1171605a1a286Smrg# implementations.
1171705a1a286Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
1171805a1a286Smrg  eval 'as_fn_append ()
1171905a1a286Smrg  {
1172005a1a286Smrg    eval $1+=\$2
1172105a1a286Smrg  }'
1172205a1a286Smrgelse
1172305a1a286Smrg  as_fn_append ()
1172405a1a286Smrg  {
1172505a1a286Smrg    eval $1=\$$1\$2
1172605a1a286Smrg  }
1172705a1a286Smrgfi # as_fn_append
1172805a1a286Smrg
1172905a1a286Smrg# as_fn_arith ARG...
1173005a1a286Smrg# ------------------
1173105a1a286Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
1173205a1a286Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
1173305a1a286Smrg# must be portable across $(()) and expr.
1173405a1a286Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
1173505a1a286Smrg  eval 'as_fn_arith ()
1173605a1a286Smrg  {
1173705a1a286Smrg    as_val=$(( $* ))
1173805a1a286Smrg  }'
1173905a1a286Smrgelse
1174005a1a286Smrg  as_fn_arith ()
1174105a1a286Smrg  {
1174205a1a286Smrg    as_val=`expr "$@" || test $? -eq 1`
1174305a1a286Smrg  }
1174405a1a286Smrgfi # as_fn_arith
11745d9c7fc6cSmrg
11746d9c7fc6cSmrg
1174705a1a286Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1174805a1a286Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1174905a1a286Smrg  as_expr=expr
1175005a1a286Smrgelse
1175105a1a286Smrg  as_expr=false
1175205a1a286Smrgfi
11753d9c7fc6cSmrg
1175405a1a286Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1175505a1a286Smrg  as_basename=basename
1175605a1a286Smrgelse
1175705a1a286Smrg  as_basename=false
1175805a1a286Smrgfi
11759d9c7fc6cSmrg
1176005a1a286Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1176105a1a286Smrg  as_dirname=dirname
1176205a1a286Smrgelse
1176305a1a286Smrg  as_dirname=false
1176405a1a286Smrgfi
11765d9c7fc6cSmrg
1176605a1a286Smrgas_me=`$as_basename -- "$0" ||
1176705a1a286Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1176805a1a286Smrg	 X"$0" : 'X\(//\)$' \| \
1176905a1a286Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1177005a1a286Smrg$as_echo X/"$0" |
1177105a1a286Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1177205a1a286Smrg	    s//\1/
1177305a1a286Smrg	    q
1177405a1a286Smrg	  }
1177505a1a286Smrg	  /^X\/\(\/\/\)$/{
1177605a1a286Smrg	    s//\1/
1177705a1a286Smrg	    q
1177805a1a286Smrg	  }
1177905a1a286Smrg	  /^X\/\(\/\).*/{
1178005a1a286Smrg	    s//\1/
1178105a1a286Smrg	    q
1178205a1a286Smrg	  }
1178305a1a286Smrg	  s/.*/./; q'`
11784d9c7fc6cSmrg
1178505a1a286Smrg# Avoid depending upon Character Ranges.
1178605a1a286Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
1178705a1a286Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1178805a1a286Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
1178905a1a286Smrgas_cr_digits='0123456789'
1179005a1a286Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
11791d9c7fc6cSmrg
1179205a1a286SmrgECHO_C= ECHO_N= ECHO_T=
1179305a1a286Smrgcase `echo -n x` in #(((((
1179405a1a286Smrg-n*)
1179505a1a286Smrg  case `echo 'xy\c'` in
1179605a1a286Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
1179705a1a286Smrg  xy)  ECHO_C='\c';;
1179805a1a286Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
1179905a1a286Smrg       ECHO_T='	';;
1180005a1a286Smrg  esac;;
1180105a1a286Smrg*)
1180205a1a286Smrg  ECHO_N='-n';;
1180305a1a286Smrgesac
11804d9c7fc6cSmrg
1180505a1a286Smrgrm -f conf$$ conf$$.exe conf$$.file
1180605a1a286Smrgif test -d conf$$.dir; then
1180705a1a286Smrg  rm -f conf$$.dir/conf$$.file
1180805a1a286Smrgelse
1180905a1a286Smrg  rm -f conf$$.dir
1181005a1a286Smrg  mkdir conf$$.dir 2>/dev/null
1181105a1a286Smrgfi
1181205a1a286Smrgif (echo >conf$$.file) 2>/dev/null; then
1181305a1a286Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
1181405a1a286Smrg    as_ln_s='ln -s'
1181505a1a286Smrg    # ... but there are two gotchas:
1181605a1a286Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1181705a1a286Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1181805a1a286Smrg    # In both cases, we have to default to `cp -p'.
1181905a1a286Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1182005a1a286Smrg      as_ln_s='cp -p'
1182105a1a286Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
1182205a1a286Smrg    as_ln_s=ln
1182305a1a286Smrg  else
1182405a1a286Smrg    as_ln_s='cp -p'
1182505a1a286Smrg  fi
1182605a1a286Smrgelse
1182705a1a286Smrg  as_ln_s='cp -p'
1182805a1a286Smrgfi
1182905a1a286Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1183005a1a286Smrgrmdir conf$$.dir 2>/dev/null
11831d9c7fc6cSmrg
11832d9c7fc6cSmrg
1183305a1a286Smrg# as_fn_mkdir_p
1183405a1a286Smrg# -------------
1183505a1a286Smrg# Create "$as_dir" as a directory, including parents if necessary.
1183605a1a286Smrgas_fn_mkdir_p ()
1183705a1a286Smrg{
11838d9c7fc6cSmrg
1183905a1a286Smrg  case $as_dir in #(
1184005a1a286Smrg  -*) as_dir=./$as_dir;;
1184105a1a286Smrg  esac
1184205a1a286Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
1184305a1a286Smrg    as_dirs=
1184405a1a286Smrg    while :; do
1184505a1a286Smrg      case $as_dir in #(
1184605a1a286Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1184705a1a286Smrg      *) as_qdir=$as_dir;;
1184805a1a286Smrg      esac
1184905a1a286Smrg      as_dirs="'$as_qdir' $as_dirs"
1185005a1a286Smrg      as_dir=`$as_dirname -- "$as_dir" ||
1185105a1a286Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185205a1a286Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
1185305a1a286Smrg	 X"$as_dir" : 'X\(//\)$' \| \
1185405a1a286Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1185505a1a286Smrg$as_echo X"$as_dir" |
1185605a1a286Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1185705a1a286Smrg	    s//\1/
1185805a1a286Smrg	    q
1185905a1a286Smrg	  }
1186005a1a286Smrg	  /^X\(\/\/\)[^/].*/{
1186105a1a286Smrg	    s//\1/
1186205a1a286Smrg	    q
1186305a1a286Smrg	  }
1186405a1a286Smrg	  /^X\(\/\/\)$/{
1186505a1a286Smrg	    s//\1/
1186605a1a286Smrg	    q
1186705a1a286Smrg	  }
1186805a1a286Smrg	  /^X\(\/\).*/{
1186905a1a286Smrg	    s//\1/
1187005a1a286Smrg	    q
1187105a1a286Smrg	  }
1187205a1a286Smrg	  s/.*/./; q'`
1187305a1a286Smrg      test -d "$as_dir" && break
1187405a1a286Smrg    done
1187505a1a286Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
1187605a1a286Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11877d9c7fc6cSmrg
11878d9c7fc6cSmrg
1187905a1a286Smrg} # as_fn_mkdir_p
1188005a1a286Smrgif mkdir -p . 2>/dev/null; then
1188105a1a286Smrg  as_mkdir_p='mkdir -p "$as_dir"'
1188205a1a286Smrgelse
1188305a1a286Smrg  test -d ./-p && rmdir ./-p
1188405a1a286Smrg  as_mkdir_p=false
1188505a1a286Smrgfi
11886d9c7fc6cSmrg
1188705a1a286Smrgif test -x / >/dev/null 2>&1; then
1188805a1a286Smrg  as_test_x='test -x'
1188905a1a286Smrgelse
1189005a1a286Smrg  if ls -dL / >/dev/null 2>&1; then
1189105a1a286Smrg    as_ls_L_option=L
1189205a1a286Smrg  else
1189305a1a286Smrg    as_ls_L_option=
1189405a1a286Smrg  fi
1189505a1a286Smrg  as_test_x='
1189605a1a286Smrg    eval sh -c '\''
1189705a1a286Smrg      if test -d "$1"; then
1189805a1a286Smrg	test -d "$1/.";
1189905a1a286Smrg      else
1190005a1a286Smrg	case $1 in #(
1190105a1a286Smrg	-*)set "./$1";;
1190205a1a286Smrg	esac;
1190305a1a286Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1190405a1a286Smrg	???[sx]*):;;*)false;;esac;fi
1190505a1a286Smrg    '\'' sh
1190605a1a286Smrg  '
1190705a1a286Smrgfi
1190805a1a286Smrgas_executable_p=$as_test_x
11909d9c7fc6cSmrg
1191005a1a286Smrg# Sed expression to map a string onto a valid CPP name.
1191105a1a286Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11912d9c7fc6cSmrg
1191305a1a286Smrg# Sed expression to map a string onto a valid variable name.
1191405a1a286Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11915d9c7fc6cSmrg
11916d9c7fc6cSmrg
1191705a1a286Smrgexec 6>&1
1191805a1a286Smrg## ----------------------------------- ##
1191905a1a286Smrg## Main body of $CONFIG_STATUS script. ##
1192005a1a286Smrg## ----------------------------------- ##
1192105a1a286Smrg_ASEOF
1192205a1a286Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1192305a1a286Smrg
1192405a1a286Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1192505a1a286Smrg# Save the log message, to keep $0 and so on meaningful, and to
1192605a1a286Smrg# report actual input values of CONFIG_FILES etc. instead of their
1192705a1a286Smrg# values after options handling.
1192805a1a286Smrgac_log="
1192905a1a286SmrgThis file was extended by libXevie $as_me 1.0.3, which was
1193005a1a286Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
11931d9c7fc6cSmrg
1193205a1a286Smrg  CONFIG_FILES    = $CONFIG_FILES
1193305a1a286Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
1193405a1a286Smrg  CONFIG_LINKS    = $CONFIG_LINKS
1193505a1a286Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1193605a1a286Smrg  $ $0 $@
11937d9c7fc6cSmrg
1193805a1a286Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
1193905a1a286Smrg"
11940d9c7fc6cSmrg
1194105a1a286Smrg_ACEOF
11942d9c7fc6cSmrg
1194305a1a286Smrgcase $ac_config_files in *"
1194405a1a286Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
1194505a1a286Smrgesac
11946d9c7fc6cSmrg
1194705a1a286Smrgcase $ac_config_headers in *"
1194805a1a286Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
1194905a1a286Smrgesac
11950d9c7fc6cSmrg
11951d9c7fc6cSmrg
1195205a1a286Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1195305a1a286Smrg# Files that config.status was made for.
1195405a1a286Smrgconfig_files="$ac_config_files"
1195505a1a286Smrgconfig_headers="$ac_config_headers"
1195605a1a286Smrgconfig_commands="$ac_config_commands"
11957d9c7fc6cSmrg
1195805a1a286Smrg_ACEOF
11959d9c7fc6cSmrg
1196005a1a286Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1196105a1a286Smrgac_cs_usage="\
1196205a1a286Smrg\`$as_me' instantiates files and other configuration actions
1196305a1a286Smrgfrom templates according to the current configuration.  Unless the files
1196405a1a286Smrgand actions are specified as TAGs, all are instantiated by default.
11965d9c7fc6cSmrg
1196605a1a286SmrgUsage: $0 [OPTION]... [TAG]...
11967d9c7fc6cSmrg
1196805a1a286Smrg  -h, --help       print this help, then exit
1196905a1a286Smrg  -V, --version    print version number and configuration settings, then exit
1197005a1a286Smrg      --config     print configuration, then exit
1197105a1a286Smrg  -q, --quiet, --silent
1197205a1a286Smrg                   do not print progress messages
1197305a1a286Smrg  -d, --debug      don't remove temporary files
1197405a1a286Smrg      --recheck    update $as_me by reconfiguring in the same conditions
1197505a1a286Smrg      --file=FILE[:TEMPLATE]
1197605a1a286Smrg                   instantiate the configuration file FILE
1197705a1a286Smrg      --header=FILE[:TEMPLATE]
1197805a1a286Smrg                   instantiate the configuration header FILE
11979d9c7fc6cSmrg
1198005a1a286SmrgConfiguration files:
1198105a1a286Smrg$config_files
11982d9c7fc6cSmrg
1198305a1a286SmrgConfiguration headers:
1198405a1a286Smrg$config_headers
11985d9c7fc6cSmrg
1198605a1a286SmrgConfiguration commands:
1198705a1a286Smrg$config_commands
11988d9c7fc6cSmrg
1198905a1a286SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11990d9c7fc6cSmrg
1199105a1a286Smrg_ACEOF
1199205a1a286Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1199305a1a286Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1199405a1a286Smrgac_cs_version="\\
1199505a1a286SmrglibXevie config.status 1.0.3
1199605a1a286Smrgconfigured by $0, generated by GNU Autoconf 2.68,
1199705a1a286Smrg  with options \\"\$ac_cs_config\\"
11998d9c7fc6cSmrg
1199905a1a286SmrgCopyright (C) 2010 Free Software Foundation, Inc.
1200005a1a286SmrgThis config.status script is free software; the Free Software Foundation
1200105a1a286Smrggives unlimited permission to copy, distribute and modify it."
12002d9c7fc6cSmrg
1200305a1a286Smrgac_pwd='$ac_pwd'
1200405a1a286Smrgsrcdir='$srcdir'
1200505a1a286SmrgINSTALL='$INSTALL'
1200605a1a286SmrgMKDIR_P='$MKDIR_P'
1200705a1a286SmrgAWK='$AWK'
1200805a1a286Smrgtest -n "\$AWK" || AWK=awk
1200905a1a286Smrg_ACEOF
12010d9c7fc6cSmrg
1201105a1a286Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1201205a1a286Smrg# The default lists apply if the user does not specify any file.
1201305a1a286Smrgac_need_defaults=:
1201405a1a286Smrgwhile test $# != 0
1201505a1a286Smrgdo
1201605a1a286Smrg  case $1 in
1201705a1a286Smrg  --*=?*)
1201805a1a286Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1201905a1a286Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1202005a1a286Smrg    ac_shift=:
1202105a1a286Smrg    ;;
1202205a1a286Smrg  --*=)
1202305a1a286Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1202405a1a286Smrg    ac_optarg=
1202505a1a286Smrg    ac_shift=:
1202605a1a286Smrg    ;;
1202705a1a286Smrg  *)
1202805a1a286Smrg    ac_option=$1
1202905a1a286Smrg    ac_optarg=$2
1203005a1a286Smrg    ac_shift=shift
1203105a1a286Smrg    ;;
1203205a1a286Smrg  esac
12033d9c7fc6cSmrg
1203405a1a286Smrg  case $ac_option in
1203505a1a286Smrg  # Handling of the options.
1203605a1a286Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1203705a1a286Smrg    ac_cs_recheck=: ;;
1203805a1a286Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1203905a1a286Smrg    $as_echo "$ac_cs_version"; exit ;;
1204005a1a286Smrg  --config | --confi | --conf | --con | --co | --c )
1204105a1a286Smrg    $as_echo "$ac_cs_config"; exit ;;
1204205a1a286Smrg  --debug | --debu | --deb | --de | --d | -d )
1204305a1a286Smrg    debug=: ;;
1204405a1a286Smrg  --file | --fil | --fi | --f )
1204505a1a286Smrg    $ac_shift
1204605a1a286Smrg    case $ac_optarg in
1204705a1a286Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1204805a1a286Smrg    '') as_fn_error $? "missing file argument" ;;
1204905a1a286Smrg    esac
1205005a1a286Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1205105a1a286Smrg    ac_need_defaults=false;;
1205205a1a286Smrg  --header | --heade | --head | --hea )
1205305a1a286Smrg    $ac_shift
1205405a1a286Smrg    case $ac_optarg in
1205505a1a286Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1205605a1a286Smrg    esac
1205705a1a286Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1205805a1a286Smrg    ac_need_defaults=false;;
1205905a1a286Smrg  --he | --h)
1206005a1a286Smrg    # Conflict between --help and --header
1206105a1a286Smrg    as_fn_error $? "ambiguous option: \`$1'
1206205a1a286SmrgTry \`$0 --help' for more information.";;
1206305a1a286Smrg  --help | --hel | -h )
1206405a1a286Smrg    $as_echo "$ac_cs_usage"; exit ;;
1206505a1a286Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206605a1a286Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1206705a1a286Smrg    ac_cs_silent=: ;;
12068d9c7fc6cSmrg
1206905a1a286Smrg  # This is an error.
1207005a1a286Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
1207105a1a286SmrgTry \`$0 --help' for more information." ;;
12072d9c7fc6cSmrg
1207305a1a286Smrg  *) as_fn_append ac_config_targets " $1"
1207405a1a286Smrg     ac_need_defaults=false ;;
12075d9c7fc6cSmrg
1207605a1a286Smrg  esac
1207705a1a286Smrg  shift
1207805a1a286Smrgdone
12079d9c7fc6cSmrg
1208005a1a286Smrgac_configure_extra_args=
12081d9c7fc6cSmrg
1208205a1a286Smrgif $ac_cs_silent; then
1208305a1a286Smrg  exec 6>/dev/null
1208405a1a286Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
12085d9c7fc6cSmrgfi
12086d9c7fc6cSmrg
1208705a1a286Smrg_ACEOF
1208805a1a286Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1208905a1a286Smrgif \$ac_cs_recheck; then
1209005a1a286Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1209105a1a286Smrg  shift
1209205a1a286Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1209305a1a286Smrg  CONFIG_SHELL='$SHELL'
1209405a1a286Smrg  export CONFIG_SHELL
1209505a1a286Smrg  exec "\$@"
1209605a1a286Smrgfi
12097d9c7fc6cSmrg
1209805a1a286Smrg_ACEOF
1209905a1a286Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1210005a1a286Smrgexec 5>>config.log
1210105a1a286Smrg{
1210205a1a286Smrg  echo
1210305a1a286Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1210405a1a286Smrg## Running $as_me. ##
1210505a1a286Smrg_ASBOX
1210605a1a286Smrg  $as_echo "$ac_log"
1210705a1a286Smrg} >&5
12108d9c7fc6cSmrg
1210905a1a286Smrg_ACEOF
1211005a1a286Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1211105a1a286Smrg#
1211205a1a286Smrg# INIT-COMMANDS
1211305a1a286Smrg#
1211405a1a286SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12115d9c7fc6cSmrg
12116d9c7fc6cSmrg
1211705a1a286Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout
1211805a1a286Smrg# if CDPATH is set.
1211905a1a286Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12120d9c7fc6cSmrg
1212105a1a286Smrgsed_quote_subst='$sed_quote_subst'
1212205a1a286Smrgdouble_quote_subst='$double_quote_subst'
1212305a1a286Smrgdelay_variable_subst='$delay_variable_subst'
1212405a1a286Smrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
1212505a1a286Smrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1212605a1a286Smrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1212705a1a286Smrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1212805a1a286Smrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1212905a1a286Smrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
1213005a1a286SmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1213105a1a286SmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1213205a1a286Smrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
1213305a1a286Smrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
1213405a1a286Smrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
1213505a1a286Smrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
1213605a1a286Smrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
1213705a1a286Smrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
1213805a1a286SmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
1213905a1a286SmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
1214005a1a286SmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
1214105a1a286SmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
1214205a1a286SmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
1214305a1a286SmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
1214405a1a286SmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
1214505a1a286SmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
1214605a1a286Smrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
1214705a1a286Smrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
1214805a1a286Smrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
1214905a1a286Smrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
1215005a1a286Smrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
1215105a1a286Smrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
1215205a1a286Smrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1215305a1a286Smrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1215405a1a286SmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1215505a1a286Smrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1215605a1a286Smrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
1215705a1a286SmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1215805a1a286SmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
1215905a1a286SmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1216005a1a286SmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
1216105a1a286Smrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
1216205a1a286Smrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
1216305a1a286Smrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
1216405a1a286Smrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
1216505a1a286SmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
1216605a1a286SmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
1216705a1a286Smrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
1216805a1a286SmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
1216905a1a286Smrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
1217005a1a286Smrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1217105a1a286Smrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1217205a1a286Smrglt_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"`'
1217305a1a286Smrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1217405a1a286SmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1217505a1a286Smrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1217605a1a286Smrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
1217705a1a286Smrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1217805a1a286Smrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
1217905a1a286Smrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
1218005a1a286Smrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
1218105a1a286SmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
1218205a1a286SmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
1218305a1a286SmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
1218405a1a286SmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
1218505a1a286SmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
1218605a1a286Smrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
1218705a1a286Smrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
1218805a1a286Smrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
1218905a1a286Smrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
1219005a1a286Smrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
1219105a1a286Smrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
1219205a1a286Smrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
1219305a1a286Smrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
1219405a1a286Smrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
1219505a1a286Smrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
1219605a1a286Smrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
1219705a1a286Smrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
1219805a1a286Smrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
1219905a1a286Smrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
1220005a1a286Smrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
1220105a1a286Smrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
1220205a1a286Smrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
1220305a1a286Smrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
1220405a1a286Smrghardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
1220505a1a286Smrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
1220605a1a286Smrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
1220705a1a286Smrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
1220805a1a286Smrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
1220905a1a286Smrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
1221005a1a286Smrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
1221105a1a286Smrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
1221205a1a286Smrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
1221305a1a286Smrgfix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
1221405a1a286Smrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
1221505a1a286Smrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
1221605a1a286Smrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
1221705a1a286Smrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
1221805a1a286Smrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
1221905a1a286Smrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
1222005a1a286Smrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
1222105a1a286Smrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
1222205a1a286Smrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
1222305a1a286Smrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
1222405a1a286Smrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
1222505a1a286Smrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
1222605a1a286Smrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
1222705a1a286Smrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
1222805a1a286Smrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
1222905a1a286Smrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
1223005a1a286Smrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
1223105a1a286Smrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
1223205a1a286Smrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
1223305a1a286Smrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
1223405a1a286Smrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
1223505a1a286Smrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
1223605a1a286Smrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
1223705a1a286Smrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
1223805a1a286Smrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
1223905a1a286Smrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
1224005a1a286Smrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
1224105a1a286Smrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
1224205a1a286Smrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
1224305a1a286Smrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1224405a1a286Smrg
1224505a1a286SmrgLTCC='$LTCC'
1224605a1a286SmrgLTCFLAGS='$LTCFLAGS'
1224705a1a286Smrgcompiler='$compiler_DEFAULT'
1224805a1a286Smrg
1224905a1a286Smrg# A function that is used when there is no print builtin or printf.
1225005a1a286Smrgfunc_fallback_echo ()
1225105a1a286Smrg{
1225205a1a286Smrg  eval 'cat <<_LTECHO_EOF
1225305a1a286Smrg\$1
1225405a1a286Smrg_LTECHO_EOF'
1225505a1a286Smrg}
12256d9c7fc6cSmrg
1225705a1a286Smrg# Quote evaled strings.
1225805a1a286Smrgfor var in SHELL \
1225905a1a286SmrgECHO \
1226005a1a286SmrgSED \
1226105a1a286SmrgGREP \
1226205a1a286SmrgEGREP \
1226305a1a286SmrgFGREP \
1226405a1a286SmrgLD \
1226505a1a286SmrgNM \
1226605a1a286SmrgLN_S \
1226705a1a286Smrglt_SP2NL \
1226805a1a286Smrglt_NL2SP \
1226905a1a286Smrgreload_flag \
1227005a1a286SmrgOBJDUMP \
1227105a1a286Smrgdeplibs_check_method \
1227205a1a286Smrgfile_magic_cmd \
1227305a1a286SmrgAR \
1227405a1a286SmrgAR_FLAGS \
1227505a1a286SmrgSTRIP \
1227605a1a286SmrgRANLIB \
1227705a1a286SmrgCC \
1227805a1a286SmrgCFLAGS \
1227905a1a286Smrgcompiler \
1228005a1a286Smrglt_cv_sys_global_symbol_pipe \
1228105a1a286Smrglt_cv_sys_global_symbol_to_cdecl \
1228205a1a286Smrglt_cv_sys_global_symbol_to_c_name_address \
1228305a1a286Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1228405a1a286Smrglt_prog_compiler_no_builtin_flag \
1228505a1a286Smrglt_prog_compiler_wl \
1228605a1a286Smrglt_prog_compiler_pic \
1228705a1a286Smrglt_prog_compiler_static \
1228805a1a286Smrglt_cv_prog_compiler_c_o \
1228905a1a286Smrgneed_locks \
1229005a1a286SmrgDSYMUTIL \
1229105a1a286SmrgNMEDIT \
1229205a1a286SmrgLIPO \
1229305a1a286SmrgOTOOL \
1229405a1a286SmrgOTOOL64 \
1229505a1a286Smrgshrext_cmds \
1229605a1a286Smrgexport_dynamic_flag_spec \
1229705a1a286Smrgwhole_archive_flag_spec \
1229805a1a286Smrgcompiler_needs_object \
1229905a1a286Smrgwith_gnu_ld \
1230005a1a286Smrgallow_undefined_flag \
1230105a1a286Smrgno_undefined_flag \
1230205a1a286Smrghardcode_libdir_flag_spec \
1230305a1a286Smrghardcode_libdir_flag_spec_ld \
1230405a1a286Smrghardcode_libdir_separator \
1230505a1a286Smrgfix_srcfile_path \
1230605a1a286Smrgexclude_expsyms \
1230705a1a286Smrginclude_expsyms \
1230805a1a286Smrgfile_list_spec \
1230905a1a286Smrgvariables_saved_for_relink \
1231005a1a286Smrglibname_spec \
1231105a1a286Smrglibrary_names_spec \
1231205a1a286Smrgsoname_spec \
1231305a1a286Smrginstall_override_mode \
1231405a1a286Smrgfinish_eval \
1231505a1a286Smrgold_striplib \
1231605a1a286Smrgstriplib; do
1231705a1a286Smrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1231805a1a286Smrg    *[\\\\\\\`\\"\\\$]*)
1231905a1a286Smrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1232005a1a286Smrg      ;;
1232105a1a286Smrg    *)
1232205a1a286Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1232305a1a286Smrg      ;;
1232405a1a286Smrg    esac
1232505a1a286Smrgdone
12326d9c7fc6cSmrg
1232705a1a286Smrg# Double-quote double-evaled strings.
1232805a1a286Smrgfor var in reload_cmds \
1232905a1a286Smrgold_postinstall_cmds \
1233005a1a286Smrgold_postuninstall_cmds \
1233105a1a286Smrgold_archive_cmds \
1233205a1a286Smrgextract_expsyms_cmds \
1233305a1a286Smrgold_archive_from_new_cmds \
1233405a1a286Smrgold_archive_from_expsyms_cmds \
1233505a1a286Smrgarchive_cmds \
1233605a1a286Smrgarchive_expsym_cmds \
1233705a1a286Smrgmodule_cmds \
1233805a1a286Smrgmodule_expsym_cmds \
1233905a1a286Smrgexport_symbols_cmds \
1234005a1a286Smrgprelink_cmds \
1234105a1a286Smrgpostinstall_cmds \
1234205a1a286Smrgpostuninstall_cmds \
1234305a1a286Smrgfinish_cmds \
1234405a1a286Smrgsys_lib_search_path_spec \
1234505a1a286Smrgsys_lib_dlsearch_path_spec; do
1234605a1a286Smrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1234705a1a286Smrg    *[\\\\\\\`\\"\\\$]*)
1234805a1a286Smrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1234905a1a286Smrg      ;;
1235005a1a286Smrg    *)
1235105a1a286Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1235205a1a286Smrg      ;;
1235305a1a286Smrg    esac
1235405a1a286Smrgdone
12355d9c7fc6cSmrg
1235605a1a286Smrgac_aux_dir='$ac_aux_dir'
1235705a1a286Smrgxsi_shell='$xsi_shell'
1235805a1a286Smrglt_shell_append='$lt_shell_append'
12359d9c7fc6cSmrg
1236005a1a286Smrg# See if we are running on zsh, and set the options which allow our
1236105a1a286Smrg# commands through without removal of \ escapes INIT.
1236205a1a286Smrgif test -n "\${ZSH_VERSION+set}" ; then
1236305a1a286Smrg   setopt NO_GLOB_SUBST
1236405a1a286Smrgfi
12365d9c7fc6cSmrg
12366d9c7fc6cSmrg
1236705a1a286Smrg    PACKAGE='$PACKAGE'
1236805a1a286Smrg    VERSION='$VERSION'
1236905a1a286Smrg    TIMESTAMP='$TIMESTAMP'
1237005a1a286Smrg    RM='$RM'
1237105a1a286Smrg    ofile='$ofile'
12372d9c7fc6cSmrg
12373d9c7fc6cSmrg
12374d9c7fc6cSmrg
12375d9c7fc6cSmrg
1237605a1a286Smrg_ACEOF
12377d9c7fc6cSmrg
1237805a1a286Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12379d9c7fc6cSmrg
1238005a1a286Smrg# Handling of arguments.
1238105a1a286Smrgfor ac_config_target in $ac_config_targets
1238205a1a286Smrgdo
1238305a1a286Smrg  case $ac_config_target in
1238405a1a286Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1238505a1a286Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1238605a1a286Smrg    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1238705a1a286Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1238805a1a286Smrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
1238905a1a286Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
1239005a1a286Smrg    "xevie.pc") CONFIG_FILES="$CONFIG_FILES xevie.pc" ;;
1239105a1a286Smrg
1239205a1a286Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1239305a1a286Smrg  esac
1239405a1a286Smrgdone
12395d9c7fc6cSmrg
12396d9c7fc6cSmrg
1239705a1a286Smrg# If the user did not use the arguments to specify the items to instantiate,
1239805a1a286Smrg# then the envvar interface is used.  Set only those that are not.
1239905a1a286Smrg# We use the long form for the default assignment because of an extremely
1240005a1a286Smrg# bizarre bug on SunOS 4.1.3.
1240105a1a286Smrgif $ac_need_defaults; then
1240205a1a286Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1240305a1a286Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1240405a1a286Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1240505a1a286Smrgfi
12406d9c7fc6cSmrg
1240705a1a286Smrg# Have a temporary directory for convenience.  Make it in the build tree
1240805a1a286Smrg# simply because there is no reason against having it here, and in addition,
1240905a1a286Smrg# creating and moving files from /tmp can sometimes cause problems.
1241005a1a286Smrg# Hook for its removal unless debugging.
1241105a1a286Smrg# Note that there is a small window in which the directory will not be cleaned:
1241205a1a286Smrg# after its creation but before its name has been assigned to `$tmp'.
1241305a1a286Smrg$debug ||
1241405a1a286Smrg{
1241505a1a286Smrg  tmp= ac_tmp=
1241605a1a286Smrg  trap 'exit_status=$?
1241705a1a286Smrg  : "${ac_tmp:=$tmp}"
1241805a1a286Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1241905a1a286Smrg' 0
1242005a1a286Smrg  trap 'as_fn_exit 1' 1 2 13 15
1242105a1a286Smrg}
1242205a1a286Smrg# Create a (secure) tmp directory for tmp files.
12423d9c7fc6cSmrg
1242405a1a286Smrg{
1242505a1a286Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1242605a1a286Smrg  test -d "$tmp"
1242705a1a286Smrg}  ||
1242805a1a286Smrg{
1242905a1a286Smrg  tmp=./conf$$-$RANDOM
1243005a1a286Smrg  (umask 077 && mkdir "$tmp")
1243105a1a286Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1243205a1a286Smrgac_tmp=$tmp
12433d9c7fc6cSmrg
1243405a1a286Smrg# Set up the scripts for CONFIG_FILES section.
1243505a1a286Smrg# No need to generate them if there are no CONFIG_FILES.
1243605a1a286Smrg# This happens for instance with `./config.status config.h'.
1243705a1a286Smrgif test -n "$CONFIG_FILES"; then
12438d9c7fc6cSmrg
12439d9c7fc6cSmrg
1244005a1a286Smrgac_cr=`echo X | tr X '\015'`
1244105a1a286Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
1244205a1a286Smrg# But we know of no other shell where ac_cr would be empty at this
1244305a1a286Smrg# point, so we can use a bashism as a fallback.
1244405a1a286Smrgif test "x$ac_cr" = x; then
1244505a1a286Smrg  eval ac_cr=\$\'\\r\'
1244605a1a286Smrgfi
1244705a1a286Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
1244805a1a286Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1244905a1a286Smrg  ac_cs_awk_cr='\\r'
1245005a1a286Smrgelse
1245105a1a286Smrg  ac_cs_awk_cr=$ac_cr
1245205a1a286Smrgfi
12453d9c7fc6cSmrg
1245405a1a286Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1245505a1a286Smrg_ACEOF
12456d9c7fc6cSmrg
12457d9c7fc6cSmrg
1245805a1a286Smrg{
1245905a1a286Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
1246005a1a286Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
1246105a1a286Smrg  echo "_ACEOF"
1246205a1a286Smrg} >conf$$subs.sh ||
1246305a1a286Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1246405a1a286Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1246505a1a286Smrgac_delim='%!_!# '
1246605a1a286Smrgfor ac_last_try in false false false false false :; do
1246705a1a286Smrg  . ./conf$$subs.sh ||
1246805a1a286Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1246905a1a286Smrg
1247005a1a286Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
1247105a1a286Smrg  if test $ac_delim_n = $ac_delim_num; then
1247205a1a286Smrg    break
1247305a1a286Smrg  elif $ac_last_try; then
1247405a1a286Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1247505a1a286Smrg  else
1247605a1a286Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12477d9c7fc6cSmrg  fi
12478d9c7fc6cSmrgdone
1247905a1a286Smrgrm -f conf$$subs.sh
12480d9c7fc6cSmrg
1248105a1a286Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1248205a1a286Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1248305a1a286Smrg_ACEOF
1248405a1a286Smrgsed -n '
1248505a1a286Smrgh
1248605a1a286Smrgs/^/S["/; s/!.*/"]=/
1248705a1a286Smrgp
1248805a1a286Smrgg
1248905a1a286Smrgs/^[^!]*!//
1249005a1a286Smrg:repl
1249105a1a286Smrgt repl
1249205a1a286Smrgs/'"$ac_delim"'$//
1249305a1a286Smrgt delim
1249405a1a286Smrg:nl
1249505a1a286Smrgh
1249605a1a286Smrgs/\(.\{148\}\)..*/\1/
1249705a1a286Smrgt more1
1249805a1a286Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
1249905a1a286Smrgp
1250005a1a286Smrgn
1250105a1a286Smrgb repl
1250205a1a286Smrg:more1
1250305a1a286Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1250405a1a286Smrgp
1250505a1a286Smrgg
1250605a1a286Smrgs/.\{148\}//
1250705a1a286Smrgt nl
1250805a1a286Smrg:delim
1250905a1a286Smrgh
1251005a1a286Smrgs/\(.\{148\}\)..*/\1/
1251105a1a286Smrgt more2
1251205a1a286Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
1251305a1a286Smrgp
1251405a1a286Smrgb
1251505a1a286Smrg:more2
1251605a1a286Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1251705a1a286Smrgp
1251805a1a286Smrgg
1251905a1a286Smrgs/.\{148\}//
1252005a1a286Smrgt delim
1252105a1a286Smrg' <conf$$subs.awk | sed '
1252205a1a286Smrg/^[^""]/{
1252305a1a286Smrg  N
1252405a1a286Smrg  s/\n//
1252505a1a286Smrg}
1252605a1a286Smrg' >>$CONFIG_STATUS || ac_write_fail=1
1252705a1a286Smrgrm -f conf$$subs.awk
1252805a1a286Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1252905a1a286Smrg_ACAWK
1253005a1a286Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1253105a1a286Smrg  for (key in S) S_is_set[key] = 1
1253205a1a286Smrg  FS = ""
12533d9c7fc6cSmrg
1253405a1a286Smrg}
1253505a1a286Smrg{
1253605a1a286Smrg  line = $ 0
1253705a1a286Smrg  nfields = split(line, field, "@")
1253805a1a286Smrg  substed = 0
1253905a1a286Smrg  len = length(field[1])
1254005a1a286Smrg  for (i = 2; i < nfields; i++) {
1254105a1a286Smrg    key = field[i]
1254205a1a286Smrg    keylen = length(key)
1254305a1a286Smrg    if (S_is_set[key]) {
1254405a1a286Smrg      value = S[key]
1254505a1a286Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
1254605a1a286Smrg      len += length(value) + length(field[++i])
1254705a1a286Smrg      substed = 1
1254805a1a286Smrg    } else
1254905a1a286Smrg      len += 1 + keylen
1255005a1a286Smrg  }
1255105a1a286Smrg
1255205a1a286Smrg  print line
1255305a1a286Smrg}
12554d9c7fc6cSmrg
1255505a1a286Smrg_ACAWK
1255605a1a286Smrg_ACEOF
1255705a1a286Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1255805a1a286Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
1255905a1a286Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12560d9c7fc6cSmrgelse
1256105a1a286Smrg  cat
1256205a1a286Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1256305a1a286Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1256405a1a286Smrg_ACEOF
12565d9c7fc6cSmrg
1256605a1a286Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
1256705a1a286Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1256805a1a286Smrg# trailing colons and then remove the whole line if VPATH becomes empty
1256905a1a286Smrg# (actually we leave an empty line to preserve line numbers).
1257005a1a286Smrgif test "x$srcdir" = x.; then
1257105a1a286Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
1257205a1a286Smrgh
1257305a1a286Smrgs///
1257405a1a286Smrgs/^/:/
1257505a1a286Smrgs/[	 ]*$/:/
1257605a1a286Smrgs/:\$(srcdir):/:/g
1257705a1a286Smrgs/:\${srcdir}:/:/g
1257805a1a286Smrgs/:@srcdir@:/:/g
1257905a1a286Smrgs/^:*//
1258005a1a286Smrgs/:*$//
1258105a1a286Smrgx
1258205a1a286Smrgs/\(=[	 ]*\).*/\1/
1258305a1a286SmrgG
1258405a1a286Smrgs/\n//
1258505a1a286Smrgs/^[^=]*=[	 ]*$//
1258605a1a286Smrg}'
12587d9c7fc6cSmrgfi
12588d9c7fc6cSmrg
1258905a1a286Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1259005a1a286Smrgfi # test -n "$CONFIG_FILES"
12591d9c7fc6cSmrg
1259205a1a286Smrg# Set up the scripts for CONFIG_HEADERS section.
1259305a1a286Smrg# No need to generate them if there are no CONFIG_HEADERS.
1259405a1a286Smrg# This happens for instance with `./config.status Makefile'.
1259505a1a286Smrgif test -n "$CONFIG_HEADERS"; then
1259605a1a286Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1259705a1a286SmrgBEGIN {
1259805a1a286Smrg_ACEOF
12599d9c7fc6cSmrg
1260005a1a286Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
1260105a1a286Smrg# here-document in config.status, that substitutes the proper values into
1260205a1a286Smrg# config.h.in to produce config.h.
12603d9c7fc6cSmrg
1260405a1a286Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
1260505a1a286Smrg# handling of long lines.
1260605a1a286Smrgac_delim='%!_!# '
1260705a1a286Smrgfor ac_last_try in false false :; do
1260805a1a286Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
1260905a1a286Smrg  if test -z "$ac_tt"; then
1261005a1a286Smrg    break
1261105a1a286Smrg  elif $ac_last_try; then
1261205a1a286Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1261305a1a286Smrg  else
1261405a1a286Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1261505a1a286Smrg  fi
1261605a1a286Smrgdone
12617d9c7fc6cSmrg
1261805a1a286Smrg# For the awk script, D is an array of macro values keyed by name,
1261905a1a286Smrg# likewise P contains macro parameters if any.  Preserve backslash
1262005a1a286Smrg# newline sequences.
1262105a1a286Smrg
1262205a1a286Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
1262305a1a286Smrgsed -n '
1262405a1a286Smrgs/.\{148\}/&'"$ac_delim"'/g
1262505a1a286Smrgt rset
1262605a1a286Smrg:rset
1262705a1a286Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
1262805a1a286Smrgt def
1262905a1a286Smrgd
1263005a1a286Smrg:def
1263105a1a286Smrgs/\\$//
1263205a1a286Smrgt bsnl
1263305a1a286Smrgs/["\\]/\\&/g
1263405a1a286Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1263505a1a286SmrgD["\1"]=" \3"/p
1263605a1a286Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
1263705a1a286Smrgd
1263805a1a286Smrg:bsnl
1263905a1a286Smrgs/["\\]/\\&/g
1264005a1a286Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1264105a1a286SmrgD["\1"]=" \3\\\\\\n"\\/p
1264205a1a286Smrgt cont
1264305a1a286Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
1264405a1a286Smrgt cont
1264505a1a286Smrgd
1264605a1a286Smrg:cont
1264705a1a286Smrgn
1264805a1a286Smrgs/.\{148\}/&'"$ac_delim"'/g
1264905a1a286Smrgt clear
1265005a1a286Smrg:clear
1265105a1a286Smrgs/\\$//
1265205a1a286Smrgt bsnlc
1265305a1a286Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
1265405a1a286Smrgd
1265505a1a286Smrg:bsnlc
1265605a1a286Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
1265705a1a286Smrgb cont
1265805a1a286Smrg' <confdefs.h | sed '
1265905a1a286Smrgs/'"$ac_delim"'/"\\\
1266005a1a286Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
1266105a1a286Smrg
1266205a1a286Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1266305a1a286Smrg  for (key in D) D_is_set[key] = 1
1266405a1a286Smrg  FS = ""
1266505a1a286Smrg}
1266605a1a286Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
1266705a1a286Smrg  line = \$ 0
1266805a1a286Smrg  split(line, arg, " ")
1266905a1a286Smrg  if (arg[1] == "#") {
1267005a1a286Smrg    defundef = arg[2]
1267105a1a286Smrg    mac1 = arg[3]
1267205a1a286Smrg  } else {
1267305a1a286Smrg    defundef = substr(arg[1], 2)
1267405a1a286Smrg    mac1 = arg[2]
1267505a1a286Smrg  }
1267605a1a286Smrg  split(mac1, mac2, "(") #)
1267705a1a286Smrg  macro = mac2[1]
1267805a1a286Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
1267905a1a286Smrg  if (D_is_set[macro]) {
1268005a1a286Smrg    # Preserve the white space surrounding the "#".
1268105a1a286Smrg    print prefix "define", macro P[macro] D[macro]
1268205a1a286Smrg    next
1268305a1a286Smrg  } else {
1268405a1a286Smrg    # Replace #undef with comments.  This is necessary, for example,
1268505a1a286Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
1268605a1a286Smrg    # on some systems where configure will not decide to define it.
1268705a1a286Smrg    if (defundef == "undef") {
1268805a1a286Smrg      print "/*", prefix defundef, macro, "*/"
1268905a1a286Smrg      next
1269005a1a286Smrg    }
1269105a1a286Smrg  }
1269205a1a286Smrg}
1269305a1a286Smrg{ print }
1269405a1a286Smrg_ACAWK
1269505a1a286Smrg_ACEOF
1269605a1a286Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1269705a1a286Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1269805a1a286Smrgfi # test -n "$CONFIG_HEADERS"
12699d9c7fc6cSmrg
12700d9c7fc6cSmrg
1270105a1a286Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
1270205a1a286Smrgshift
1270305a1a286Smrgfor ac_tag
1270405a1a286Smrgdo
1270505a1a286Smrg  case $ac_tag in
1270605a1a286Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
1270705a1a286Smrg  esac
1270805a1a286Smrg  case $ac_mode$ac_tag in
1270905a1a286Smrg  :[FHL]*:*);;
1271005a1a286Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1271105a1a286Smrg  :[FH]-) ac_tag=-:-;;
1271205a1a286Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1271305a1a286Smrg  esac
1271405a1a286Smrg  ac_save_IFS=$IFS
1271505a1a286Smrg  IFS=:
1271605a1a286Smrg  set x $ac_tag
1271705a1a286Smrg  IFS=$ac_save_IFS
1271805a1a286Smrg  shift
1271905a1a286Smrg  ac_file=$1
1272005a1a286Smrg  shift
12721d9c7fc6cSmrg
1272205a1a286Smrg  case $ac_mode in
1272305a1a286Smrg  :L) ac_source=$1;;
1272405a1a286Smrg  :[FH])
1272505a1a286Smrg    ac_file_inputs=
1272605a1a286Smrg    for ac_f
1272705a1a286Smrg    do
1272805a1a286Smrg      case $ac_f in
1272905a1a286Smrg      -) ac_f="$ac_tmp/stdin";;
1273005a1a286Smrg      *) # Look for the file first in the build tree, then in the source tree
1273105a1a286Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
1273205a1a286Smrg	 # because $ac_f cannot contain `:'.
1273305a1a286Smrg	 test -f "$ac_f" ||
1273405a1a286Smrg	   case $ac_f in
1273505a1a286Smrg	   [\\/$]*) false;;
1273605a1a286Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1273705a1a286Smrg	   esac ||
1273805a1a286Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1273905a1a286Smrg      esac
1274005a1a286Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1274105a1a286Smrg      as_fn_append ac_file_inputs " '$ac_f'"
1274205a1a286Smrg    done
12743d9c7fc6cSmrg
1274405a1a286Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
1274505a1a286Smrg    # use $as_me), people would be surprised to read:
1274605a1a286Smrg    #    /* config.h.  Generated by config.status.  */
1274705a1a286Smrg    configure_input='Generated from '`
1274805a1a286Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1274905a1a286Smrg	`' by configure.'
1275005a1a286Smrg    if test x"$ac_file" != x-; then
1275105a1a286Smrg      configure_input="$ac_file.  $configure_input"
1275205a1a286Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1275305a1a286Smrg$as_echo "$as_me: creating $ac_file" >&6;}
1275405a1a286Smrg    fi
1275505a1a286Smrg    # Neutralize special characters interpreted by sed in replacement strings.
1275605a1a286Smrg    case $configure_input in #(
1275705a1a286Smrg    *\&* | *\|* | *\\* )
1275805a1a286Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
1275905a1a286Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
1276005a1a286Smrg    *) ac_sed_conf_input=$configure_input;;
1276105a1a286Smrg    esac
12762d9c7fc6cSmrg
1276305a1a286Smrg    case $ac_tag in
1276405a1a286Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
1276505a1a286Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1276605a1a286Smrg    esac
1276705a1a286Smrg    ;;
1276805a1a286Smrg  esac
1276905a1a286Smrg
1277005a1a286Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
1277105a1a286Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277205a1a286Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1277305a1a286Smrg	 X"$ac_file" : 'X\(//\)$' \| \
1277405a1a286Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1277505a1a286Smrg$as_echo X"$ac_file" |
1277605a1a286Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277705a1a286Smrg	    s//\1/
1277805a1a286Smrg	    q
1277905a1a286Smrg	  }
1278005a1a286Smrg	  /^X\(\/\/\)[^/].*/{
1278105a1a286Smrg	    s//\1/
1278205a1a286Smrg	    q
1278305a1a286Smrg	  }
1278405a1a286Smrg	  /^X\(\/\/\)$/{
1278505a1a286Smrg	    s//\1/
1278605a1a286Smrg	    q
1278705a1a286Smrg	  }
1278805a1a286Smrg	  /^X\(\/\).*/{
1278905a1a286Smrg	    s//\1/
1279005a1a286Smrg	    q
1279105a1a286Smrg	  }
1279205a1a286Smrg	  s/.*/./; q'`
1279305a1a286Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
1279405a1a286Smrg  ac_builddir=.
12795d9c7fc6cSmrg
1279605a1a286Smrgcase "$ac_dir" in
1279705a1a286Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1279805a1a286Smrg*)
1279905a1a286Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1280005a1a286Smrg  # A ".." for each directory in $ac_dir_suffix.
1280105a1a286Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1280205a1a286Smrg  case $ac_top_builddir_sub in
1280305a1a286Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1280405a1a286Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1280505a1a286Smrg  esac ;;
1280605a1a286Smrgesac
1280705a1a286Smrgac_abs_top_builddir=$ac_pwd
1280805a1a286Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1280905a1a286Smrg# for backward compatibility:
1281005a1a286Smrgac_top_builddir=$ac_top_build_prefix
12811d9c7fc6cSmrg
1281205a1a286Smrgcase $srcdir in
1281305a1a286Smrg  .)  # We are building in place.
1281405a1a286Smrg    ac_srcdir=.
1281505a1a286Smrg    ac_top_srcdir=$ac_top_builddir_sub
1281605a1a286Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1281705a1a286Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1281805a1a286Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1281905a1a286Smrg    ac_top_srcdir=$srcdir
1282005a1a286Smrg    ac_abs_top_srcdir=$srcdir ;;
1282105a1a286Smrg  *) # Relative name.
1282205a1a286Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1282305a1a286Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1282405a1a286Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1282505a1a286Smrgesac
1282605a1a286Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12827d9c7fc6cSmrg
12828d9c7fc6cSmrg
1282905a1a286Smrg  case $ac_mode in
1283005a1a286Smrg  :F)
1283105a1a286Smrg  #
1283205a1a286Smrg  # CONFIG_FILE
1283305a1a286Smrg  #
12834d9c7fc6cSmrg
1283505a1a286Smrg  case $INSTALL in
1283605a1a286Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1283705a1a286Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1283805a1a286Smrg  esac
1283905a1a286Smrg  ac_MKDIR_P=$MKDIR_P
1284005a1a286Smrg  case $MKDIR_P in
1284105a1a286Smrg  [\\/$]* | ?:[\\/]* ) ;;
1284205a1a286Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1284305a1a286Smrg  esac
1284405a1a286Smrg_ACEOF
12845d9c7fc6cSmrg
1284605a1a286Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1284705a1a286Smrg# If the template does not know about datarootdir, expand it.
1284805a1a286Smrg# FIXME: This hack should be removed a few years after 2.60.
1284905a1a286Smrgac_datarootdir_hack=; ac_datarootdir_seen=
1285005a1a286Smrgac_sed_dataroot='
1285105a1a286Smrg/datarootdir/ {
1285205a1a286Smrg  p
1285305a1a286Smrg  q
1285405a1a286Smrg}
1285505a1a286Smrg/@datadir@/p
1285605a1a286Smrg/@docdir@/p
1285705a1a286Smrg/@infodir@/p
1285805a1a286Smrg/@localedir@/p
1285905a1a286Smrg/@mandir@/p'
1286005a1a286Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1286105a1a286Smrg*datarootdir*) ac_datarootdir_seen=yes;;
1286205a1a286Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1286305a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1286405a1a286Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1286505a1a286Smrg_ACEOF
1286605a1a286Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1286705a1a286Smrg  ac_datarootdir_hack='
1286805a1a286Smrg  s&@datadir@&$datadir&g
1286905a1a286Smrg  s&@docdir@&$docdir&g
1287005a1a286Smrg  s&@infodir@&$infodir&g
1287105a1a286Smrg  s&@localedir@&$localedir&g
1287205a1a286Smrg  s&@mandir@&$mandir&g
1287305a1a286Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
1287405a1a286Smrgesac
1287505a1a286Smrg_ACEOF
1287605a1a286Smrg
1287705a1a286Smrg# Neutralize VPATH when `$srcdir' = `.'.
1287805a1a286Smrg# Shell code in configure.ac might set extrasub.
1287905a1a286Smrg# FIXME: do we really want to maintain this feature?
1288005a1a286Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1288105a1a286Smrgac_sed_extra="$ac_vpsub
1288205a1a286Smrg$extrasub
1288305a1a286Smrg_ACEOF
1288405a1a286Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1288505a1a286Smrg:t
1288605a1a286Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1288705a1a286Smrgs|@configure_input@|$ac_sed_conf_input|;t t
1288805a1a286Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
1288905a1a286Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
1289005a1a286Smrgs&@srcdir@&$ac_srcdir&;t t
1289105a1a286Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
1289205a1a286Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
1289305a1a286Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1289405a1a286Smrgs&@builddir@&$ac_builddir&;t t
1289505a1a286Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
1289605a1a286Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1289705a1a286Smrgs&@INSTALL@&$ac_INSTALL&;t t
1289805a1a286Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
1289905a1a286Smrg$ac_datarootdir_hack
1290005a1a286Smrg"
1290105a1a286Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
1290205a1a286Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1290305a1a286Smrg
1290405a1a286Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1290505a1a286Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1290605a1a286Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
1290705a1a286Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
1290805a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1290905a1a286Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
1291005a1a286Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1291105a1a286Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
1291205a1a286Smrg
1291305a1a286Smrg  rm -f "$ac_tmp/stdin"
1291405a1a286Smrg  case $ac_file in
1291505a1a286Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
1291605a1a286Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1291705a1a286Smrg  esac \
1291805a1a286Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1291905a1a286Smrg ;;
1292005a1a286Smrg  :H)
1292105a1a286Smrg  #
1292205a1a286Smrg  # CONFIG_HEADER
1292305a1a286Smrg  #
1292405a1a286Smrg  if test x"$ac_file" != x-; then
1292505a1a286Smrg    {
1292605a1a286Smrg      $as_echo "/* $configure_input  */" \
1292705a1a286Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1292805a1a286Smrg    } >"$ac_tmp/config.h" \
1292905a1a286Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1293005a1a286Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1293105a1a286Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1293205a1a286Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
1293305a1a286Smrg    else
1293405a1a286Smrg      rm -f "$ac_file"
1293505a1a286Smrg      mv "$ac_tmp/config.h" "$ac_file" \
1293605a1a286Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1293705a1a286Smrg    fi
1293805a1a286Smrg  else
1293905a1a286Smrg    $as_echo "/* $configure_input  */" \
1294005a1a286Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1294105a1a286Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
1294205a1a286Smrg  fi
1294305a1a286Smrg# Compute "$ac_file"'s index in $config_headers.
1294405a1a286Smrg_am_arg="$ac_file"
1294505a1a286Smrg_am_stamp_count=1
1294605a1a286Smrgfor _am_header in $config_headers :; do
1294705a1a286Smrg  case $_am_header in
1294805a1a286Smrg    $_am_arg | $_am_arg:* )
1294905a1a286Smrg      break ;;
1295005a1a286Smrg    * )
1295105a1a286Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1295205a1a286Smrg  esac
1295305a1a286Smrgdone
1295405a1a286Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
1295505a1a286Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295605a1a286Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
1295705a1a286Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
1295805a1a286Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1295905a1a286Smrg$as_echo X"$_am_arg" |
1296005a1a286Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296105a1a286Smrg	    s//\1/
1296205a1a286Smrg	    q
1296305a1a286Smrg	  }
1296405a1a286Smrg	  /^X\(\/\/\)[^/].*/{
1296505a1a286Smrg	    s//\1/
1296605a1a286Smrg	    q
1296705a1a286Smrg	  }
1296805a1a286Smrg	  /^X\(\/\/\)$/{
1296905a1a286Smrg	    s//\1/
1297005a1a286Smrg	    q
1297105a1a286Smrg	  }
1297205a1a286Smrg	  /^X\(\/\).*/{
1297305a1a286Smrg	    s//\1/
1297405a1a286Smrg	    q
1297505a1a286Smrg	  }
1297605a1a286Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
1297705a1a286Smrg ;;
12978d9c7fc6cSmrg
1297905a1a286Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1298005a1a286Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
1298105a1a286Smrg ;;
1298205a1a286Smrg  esac
12983d9c7fc6cSmrg
12984d9c7fc6cSmrg
1298505a1a286Smrg  case $ac_file$ac_mode in
1298605a1a286Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1298705a1a286Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
1298805a1a286Smrg  # are listed without --file.  Let's play safe and only enable the eval
1298905a1a286Smrg  # if we detect the quoting.
1299005a1a286Smrg  case $CONFIG_FILES in
1299105a1a286Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
1299205a1a286Smrg  *)   set x $CONFIG_FILES ;;
1299305a1a286Smrg  esac
1299405a1a286Smrg  shift
1299505a1a286Smrg  for mf
1299605a1a286Smrg  do
1299705a1a286Smrg    # Strip MF so we end up with the name of the file.
1299805a1a286Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
1299905a1a286Smrg    # Check whether this is an Automake generated Makefile or not.
1300005a1a286Smrg    # We used to match only the files named `Makefile.in', but
1300105a1a286Smrg    # some people rename them; so instead we look at the file content.
1300205a1a286Smrg    # Grep'ing the first line is not enough: some people post-process
1300305a1a286Smrg    # each Makefile.in and add a new line on top of each file to say so.
1300405a1a286Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
1300505a1a286Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
1300605a1a286Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1300705a1a286Smrg      dirpart=`$as_dirname -- "$mf" ||
1300805a1a286Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300905a1a286Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
1301005a1a286Smrg	 X"$mf" : 'X\(//\)$' \| \
1301105a1a286Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1301205a1a286Smrg$as_echo X"$mf" |
1301305a1a286Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301405a1a286Smrg	    s//\1/
1301505a1a286Smrg	    q
1301605a1a286Smrg	  }
1301705a1a286Smrg	  /^X\(\/\/\)[^/].*/{
1301805a1a286Smrg	    s//\1/
1301905a1a286Smrg	    q
1302005a1a286Smrg	  }
1302105a1a286Smrg	  /^X\(\/\/\)$/{
1302205a1a286Smrg	    s//\1/
1302305a1a286Smrg	    q
1302405a1a286Smrg	  }
1302505a1a286Smrg	  /^X\(\/\).*/{
1302605a1a286Smrg	    s//\1/
1302705a1a286Smrg	    q
1302805a1a286Smrg	  }
1302905a1a286Smrg	  s/.*/./; q'`
1303005a1a286Smrg    else
1303105a1a286Smrg      continue
1303205a1a286Smrg    fi
1303305a1a286Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
1303405a1a286Smrg    # from the Makefile without running `make'.
1303505a1a286Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1303605a1a286Smrg    test -z "$DEPDIR" && continue
1303705a1a286Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
1303805a1a286Smrg    test -z "am__include" && continue
1303905a1a286Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1304005a1a286Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
1304105a1a286Smrg    U=`sed -n 's/^U = //p' < "$mf"`
1304205a1a286Smrg    # Find all dependency output files, they are included files with
1304305a1a286Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
1304405a1a286Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
1304505a1a286Smrg    # expansion.
1304605a1a286Smrg    for file in `sed -n "
1304705a1a286Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1304805a1a286Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1304905a1a286Smrg      # Make sure the directory exists.
1305005a1a286Smrg      test -f "$dirpart/$file" && continue
1305105a1a286Smrg      fdir=`$as_dirname -- "$file" ||
1305205a1a286Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305305a1a286Smrg	 X"$file" : 'X\(//\)[^/]' \| \
1305405a1a286Smrg	 X"$file" : 'X\(//\)$' \| \
1305505a1a286Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1305605a1a286Smrg$as_echo X"$file" |
1305705a1a286Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305805a1a286Smrg	    s//\1/
1305905a1a286Smrg	    q
1306005a1a286Smrg	  }
1306105a1a286Smrg	  /^X\(\/\/\)[^/].*/{
1306205a1a286Smrg	    s//\1/
1306305a1a286Smrg	    q
1306405a1a286Smrg	  }
1306505a1a286Smrg	  /^X\(\/\/\)$/{
1306605a1a286Smrg	    s//\1/
1306705a1a286Smrg	    q
1306805a1a286Smrg	  }
1306905a1a286Smrg	  /^X\(\/\).*/{
1307005a1a286Smrg	    s//\1/
1307105a1a286Smrg	    q
1307205a1a286Smrg	  }
1307305a1a286Smrg	  s/.*/./; q'`
1307405a1a286Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
1307505a1a286Smrg      # echo "creating $dirpart/$file"
1307605a1a286Smrg      echo '# dummy' > "$dirpart/$file"
1307705a1a286Smrg    done
1307805a1a286Smrg  done
1307905a1a286Smrg}
1308005a1a286Smrg ;;
1308105a1a286Smrg    "libtool":C)
13082d9c7fc6cSmrg
1308305a1a286Smrg    # See if we are running on zsh, and set the options which allow our
1308405a1a286Smrg    # commands through without removal of \ escapes.
1308505a1a286Smrg    if test -n "${ZSH_VERSION+set}" ; then
1308605a1a286Smrg      setopt NO_GLOB_SUBST
1308705a1a286Smrg    fi
13088d9c7fc6cSmrg
1308905a1a286Smrg    cfgfile="${ofile}T"
1309005a1a286Smrg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1309105a1a286Smrg    $RM "$cfgfile"
13092d9c7fc6cSmrg
1309305a1a286Smrg    cat <<_LT_EOF >> "$cfgfile"
1309405a1a286Smrg#! $SHELL
13095d9c7fc6cSmrg
1309605a1a286Smrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1309705a1a286Smrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1309805a1a286Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1309905a1a286Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1310005a1a286Smrg#
1310105a1a286Smrg#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1310205a1a286Smrg#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1310305a1a286Smrg#                 Inc.
1310405a1a286Smrg#   Written by Gordon Matzigkeit, 1996
1310505a1a286Smrg#
1310605a1a286Smrg#   This file is part of GNU Libtool.
1310705a1a286Smrg#
1310805a1a286Smrg# GNU Libtool is free software; you can redistribute it and/or
1310905a1a286Smrg# modify it under the terms of the GNU General Public License as
1311005a1a286Smrg# published by the Free Software Foundation; either version 2 of
1311105a1a286Smrg# the License, or (at your option) any later version.
1311205a1a286Smrg#
1311305a1a286Smrg# As a special exception to the GNU General Public License,
1311405a1a286Smrg# if you distribute this file as part of a program or library that
1311505a1a286Smrg# is built using GNU Libtool, you may include this file under the
1311605a1a286Smrg# same distribution terms that you use for the rest of that program.
1311705a1a286Smrg#
1311805a1a286Smrg# GNU Libtool is distributed in the hope that it will be useful,
1311905a1a286Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
1312005a1a286Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1312105a1a286Smrg# GNU General Public License for more details.
1312205a1a286Smrg#
1312305a1a286Smrg# You should have received a copy of the GNU General Public License
1312405a1a286Smrg# along with GNU Libtool; see the file COPYING.  If not, a copy
1312505a1a286Smrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1312605a1a286Smrg# obtained by writing to the Free Software Foundation, Inc.,
1312705a1a286Smrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13128d9c7fc6cSmrg
13129d9c7fc6cSmrg
1313005a1a286Smrg# The names of the tagged configurations supported by this script.
1313105a1a286Smrgavailable_tags=""
13132d9c7fc6cSmrg
1313305a1a286Smrg# ### BEGIN LIBTOOL CONFIG
13134d9c7fc6cSmrg
1313505a1a286Smrg# Which release of libtool.m4 was used?
1313605a1a286Smrgmacro_version=$macro_version
1313705a1a286Smrgmacro_revision=$macro_revision
13138d9c7fc6cSmrg
1313905a1a286Smrg# Whether or not to build shared libraries.
1314005a1a286Smrgbuild_libtool_libs=$enable_shared
13141d9c7fc6cSmrg
1314205a1a286Smrg# Whether or not to build static libraries.
1314305a1a286Smrgbuild_old_libs=$enable_static
13144d9c7fc6cSmrg
1314505a1a286Smrg# What type of objects to build.
1314605a1a286Smrgpic_mode=$pic_mode
13147d9c7fc6cSmrg
1314805a1a286Smrg# Whether or not to optimize for fast installation.
1314905a1a286Smrgfast_install=$enable_fast_install
13150d9c7fc6cSmrg
1315105a1a286Smrg# Shell to use when invoking shell scripts.
1315205a1a286SmrgSHELL=$lt_SHELL
13153d9c7fc6cSmrg
1315405a1a286Smrg# An echo program that protects backslashes.
1315505a1a286SmrgECHO=$lt_ECHO
13156d9c7fc6cSmrg
1315705a1a286Smrg# The host system.
1315805a1a286Smrghost_alias=$host_alias
1315905a1a286Smrghost=$host
1316005a1a286Smrghost_os=$host_os
13161d9c7fc6cSmrg
1316205a1a286Smrg# The build system.
1316305a1a286Smrgbuild_alias=$build_alias
1316405a1a286Smrgbuild=$build
1316505a1a286Smrgbuild_os=$build_os
13166d9c7fc6cSmrg
1316705a1a286Smrg# A sed program that does not truncate output.
1316805a1a286SmrgSED=$lt_SED
13169d9c7fc6cSmrg
1317005a1a286Smrg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
1317105a1a286SmrgXsed="\$SED -e 1s/^X//"
13172d9c7fc6cSmrg
1317305a1a286Smrg# A grep program that handles long lines.
1317405a1a286SmrgGREP=$lt_GREP
13175d9c7fc6cSmrg
1317605a1a286Smrg# An ERE matcher.
1317705a1a286SmrgEGREP=$lt_EGREP
13178d9c7fc6cSmrg
1317905a1a286Smrg# A literal string matcher.
1318005a1a286SmrgFGREP=$lt_FGREP
13181d9c7fc6cSmrg
1318205a1a286Smrg# A BSD- or MS-compatible name lister.
1318305a1a286SmrgNM=$lt_NM
13184d9c7fc6cSmrg
1318505a1a286Smrg# Whether we need soft or hard links.
1318605a1a286SmrgLN_S=$lt_LN_S
13187d9c7fc6cSmrg
1318805a1a286Smrg# What is the maximum length of a command?
1318905a1a286Smrgmax_cmd_len=$max_cmd_len
13190d9c7fc6cSmrg
1319105a1a286Smrg# Object file suffix (normally "o").
1319205a1a286Smrgobjext=$ac_objext
13193d9c7fc6cSmrg
1319405a1a286Smrg# Executable file suffix (normally "").
1319505a1a286Smrgexeext=$exeext
13196d9c7fc6cSmrg
1319705a1a286Smrg# whether the shell understands "unset".
1319805a1a286Smrglt_unset=$lt_unset
13199d9c7fc6cSmrg
1320005a1a286Smrg# turn spaces into newlines.
1320105a1a286SmrgSP2NL=$lt_lt_SP2NL
13202d9c7fc6cSmrg
1320305a1a286Smrg# turn newlines into spaces.
1320405a1a286SmrgNL2SP=$lt_lt_NL2SP
13205d9c7fc6cSmrg
1320605a1a286Smrg# An object symbol dumper.
1320705a1a286SmrgOBJDUMP=$lt_OBJDUMP
13208d9c7fc6cSmrg
1320905a1a286Smrg# Method to check whether dependent libraries are shared objects.
1321005a1a286Smrgdeplibs_check_method=$lt_deplibs_check_method
13211d9c7fc6cSmrg
1321205a1a286Smrg# Command to use when deplibs_check_method == "file_magic".
1321305a1a286Smrgfile_magic_cmd=$lt_file_magic_cmd
13214d9c7fc6cSmrg
1321505a1a286Smrg# The archiver.
1321605a1a286SmrgAR=$lt_AR
1321705a1a286SmrgAR_FLAGS=$lt_AR_FLAGS
13218d9c7fc6cSmrg
1321905a1a286Smrg# A symbol stripping program.
1322005a1a286SmrgSTRIP=$lt_STRIP
13221d9c7fc6cSmrg
1322205a1a286Smrg# Commands used to install an old-style archive.
1322305a1a286SmrgRANLIB=$lt_RANLIB
1322405a1a286Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
1322505a1a286Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
13226d9c7fc6cSmrg
1322705a1a286Smrg# Whether to use a lock for old archive extraction.
1322805a1a286Smrglock_old_archive_extraction=$lock_old_archive_extraction
13229d9c7fc6cSmrg
1323005a1a286Smrg# A C compiler.
1323105a1a286SmrgLTCC=$lt_CC
13232d9c7fc6cSmrg
1323305a1a286Smrg# LTCC compiler flags.
1323405a1a286SmrgLTCFLAGS=$lt_CFLAGS
13235d9c7fc6cSmrg
1323605a1a286Smrg# Take the output of nm and produce a listing of raw symbols and C names.
1323705a1a286Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13238d9c7fc6cSmrg
1323905a1a286Smrg# Transform the output of nm in a proper C declaration.
1324005a1a286Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13241d9c7fc6cSmrg
1324205a1a286Smrg# Transform the output of nm in a C name address pair.
1324305a1a286Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13244d9c7fc6cSmrg
1324505a1a286Smrg# Transform the output of nm in a C name address pair when lib prefix is needed.
1324605a1a286Smrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13247d9c7fc6cSmrg
1324805a1a286Smrg# The name of the directory that contains temporary libtool files.
1324905a1a286Smrgobjdir=$objdir
13250d9c7fc6cSmrg
1325105a1a286Smrg# Used to examine libraries when file_magic_cmd begins with "file".
1325205a1a286SmrgMAGIC_CMD=$MAGIC_CMD
13253d9c7fc6cSmrg
1325405a1a286Smrg# Must we lock files when doing compilation?
1325505a1a286Smrgneed_locks=$lt_need_locks
13256d9c7fc6cSmrg
1325705a1a286Smrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1325805a1a286SmrgDSYMUTIL=$lt_DSYMUTIL
13259d9c7fc6cSmrg
1326005a1a286Smrg# Tool to change global to local symbols on Mac OS X.
1326105a1a286SmrgNMEDIT=$lt_NMEDIT
13262d9c7fc6cSmrg
1326305a1a286Smrg# Tool to manipulate fat objects and archives on Mac OS X.
1326405a1a286SmrgLIPO=$lt_LIPO
13265d9c7fc6cSmrg
1326605a1a286Smrg# ldd/readelf like tool for Mach-O binaries on Mac OS X.
1326705a1a286SmrgOTOOL=$lt_OTOOL
13268d9c7fc6cSmrg
1326905a1a286Smrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
1327005a1a286SmrgOTOOL64=$lt_OTOOL64
13271d9c7fc6cSmrg
1327205a1a286Smrg# Old archive suffix (normally "a").
1327305a1a286Smrglibext=$libext
13274d9c7fc6cSmrg
1327505a1a286Smrg# Shared library suffix (normally ".so").
1327605a1a286Smrgshrext_cmds=$lt_shrext_cmds
13277d9c7fc6cSmrg
1327805a1a286Smrg# The commands to extract the exported symbol list from a shared archive.
1327905a1a286Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
13280d9c7fc6cSmrg
1328105a1a286Smrg# Variables whose values should be saved in libtool wrapper scripts and
1328205a1a286Smrg# restored at link time.
1328305a1a286Smrgvariables_saved_for_relink=$lt_variables_saved_for_relink
13284d9c7fc6cSmrg
1328505a1a286Smrg# Do we need the "lib" prefix for modules?
1328605a1a286Smrgneed_lib_prefix=$need_lib_prefix
13287d9c7fc6cSmrg
1328805a1a286Smrg# Do we need a version for libraries?
1328905a1a286Smrgneed_version=$need_version
13290d9c7fc6cSmrg
1329105a1a286Smrg# Library versioning type.
1329205a1a286Smrgversion_type=$version_type
13293d9c7fc6cSmrg
1329405a1a286Smrg# Shared library runtime path variable.
1329505a1a286Smrgrunpath_var=$runpath_var
13296d9c7fc6cSmrg
1329705a1a286Smrg# Shared library path variable.
1329805a1a286Smrgshlibpath_var=$shlibpath_var
13299d9c7fc6cSmrg
1330005a1a286Smrg# Is shlibpath searched before the hard-coded library search path?
1330105a1a286Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
13302d9c7fc6cSmrg
1330305a1a286Smrg# Format of library name prefix.
1330405a1a286Smrglibname_spec=$lt_libname_spec
13305d9c7fc6cSmrg
1330605a1a286Smrg# List of archive names.  First name is the real one, the rest are links.
1330705a1a286Smrg# The last name is the one that the linker finds with -lNAME
1330805a1a286Smrglibrary_names_spec=$lt_library_names_spec
13309d9c7fc6cSmrg
1331005a1a286Smrg# The coded name of the library, if different from the real name.
1331105a1a286Smrgsoname_spec=$lt_soname_spec
13312d9c7fc6cSmrg
1331305a1a286Smrg# Permission mode override for installation of shared libraries.
1331405a1a286Smrginstall_override_mode=$lt_install_override_mode
13315d9c7fc6cSmrg
1331605a1a286Smrg# Command to use after installation of a shared archive.
1331705a1a286Smrgpostinstall_cmds=$lt_postinstall_cmds
13318d9c7fc6cSmrg
1331905a1a286Smrg# Command to use after uninstallation of a shared archive.
1332005a1a286Smrgpostuninstall_cmds=$lt_postuninstall_cmds
13321d9c7fc6cSmrg
1332205a1a286Smrg# Commands used to finish a libtool library installation in a directory.
1332305a1a286Smrgfinish_cmds=$lt_finish_cmds
13324d9c7fc6cSmrg
1332505a1a286Smrg# As "finish_cmds", except a single script fragment to be evaled but
1332605a1a286Smrg# not shown.
1332705a1a286Smrgfinish_eval=$lt_finish_eval
13328d9c7fc6cSmrg
1332905a1a286Smrg# Whether we should hardcode library paths into libraries.
1333005a1a286Smrghardcode_into_libs=$hardcode_into_libs
13331d9c7fc6cSmrg
1333205a1a286Smrg# Compile-time system search path for libraries.
1333305a1a286Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13334d9c7fc6cSmrg
1333505a1a286Smrg# Run-time system search path for libraries.
1333605a1a286Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13337d9c7fc6cSmrg
1333805a1a286Smrg# Whether dlopen is supported.
1333905a1a286Smrgdlopen_support=$enable_dlopen
13340d9c7fc6cSmrg
1334105a1a286Smrg# Whether dlopen of programs is supported.
1334205a1a286Smrgdlopen_self=$enable_dlopen_self
13343d9c7fc6cSmrg
1334405a1a286Smrg# Whether dlopen of statically linked programs is supported.
1334505a1a286Smrgdlopen_self_static=$enable_dlopen_self_static
13346d9c7fc6cSmrg
1334705a1a286Smrg# Commands to strip libraries.
1334805a1a286Smrgold_striplib=$lt_old_striplib
1334905a1a286Smrgstriplib=$lt_striplib
13350d9c7fc6cSmrg
13351d9c7fc6cSmrg
1335205a1a286Smrg# The linker used to build libraries.
1335305a1a286SmrgLD=$lt_LD
13354d9c7fc6cSmrg
1335505a1a286Smrg# How to create reloadable object files.
1335605a1a286Smrgreload_flag=$lt_reload_flag
1335705a1a286Smrgreload_cmds=$lt_reload_cmds
13358d9c7fc6cSmrg
1335905a1a286Smrg# Commands used to build an old-style archive.
1336005a1a286Smrgold_archive_cmds=$lt_old_archive_cmds
13361d9c7fc6cSmrg
1336205a1a286Smrg# A language specific compiler.
1336305a1a286SmrgCC=$lt_compiler
13364d9c7fc6cSmrg
1336505a1a286Smrg# Is the compiler the GNU compiler?
1336605a1a286Smrgwith_gcc=$GCC
13367d9c7fc6cSmrg
1336805a1a286Smrg# Compiler flag to turn off builtin functions.
1336905a1a286Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13370d9c7fc6cSmrg
1337105a1a286Smrg# How to pass a linker flag through the compiler.
1337205a1a286Smrgwl=$lt_lt_prog_compiler_wl
13373d9c7fc6cSmrg
1337405a1a286Smrg# Additional compiler flags for building library objects.
1337505a1a286Smrgpic_flag=$lt_lt_prog_compiler_pic
13376d9c7fc6cSmrg
1337705a1a286Smrg# Compiler flag to prevent dynamic linking.
1337805a1a286Smrglink_static_flag=$lt_lt_prog_compiler_static
13379d9c7fc6cSmrg
1338005a1a286Smrg# Does compiler simultaneously support -c and -o options?
1338105a1a286Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
13382d9c7fc6cSmrg
1338305a1a286Smrg# Whether or not to add -lc for building shared libraries.
1338405a1a286Smrgbuild_libtool_need_lc=$archive_cmds_need_lc
13385d9c7fc6cSmrg
1338605a1a286Smrg# Whether or not to disallow shared libs when runtime libs are static.
1338705a1a286Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13388d9c7fc6cSmrg
1338905a1a286Smrg# Compiler flag to allow reflexive dlopens.
1339005a1a286Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13391d9c7fc6cSmrg
1339205a1a286Smrg# Compiler flag to generate shared objects directly from archives.
1339305a1a286Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
13394d9c7fc6cSmrg
1339505a1a286Smrg# Whether the compiler copes with passing no objects directly.
1339605a1a286Smrgcompiler_needs_object=$lt_compiler_needs_object
13397d9c7fc6cSmrg
1339805a1a286Smrg# Create an old-style archive from a shared archive.
1339905a1a286Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13400d9c7fc6cSmrg
1340105a1a286Smrg# Create a temporary old-style archive to link instead of a shared archive.
1340205a1a286Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13403d9c7fc6cSmrg
1340405a1a286Smrg# Commands used to build a shared archive.
1340505a1a286Smrgarchive_cmds=$lt_archive_cmds
1340605a1a286Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds
13407d9c7fc6cSmrg
1340805a1a286Smrg# Commands used to build a loadable module if different from building
1340905a1a286Smrg# a shared archive.
1341005a1a286Smrgmodule_cmds=$lt_module_cmds
1341105a1a286Smrgmodule_expsym_cmds=$lt_module_expsym_cmds
13412d9c7fc6cSmrg
1341305a1a286Smrg# Whether we are building with GNU ld or not.
1341405a1a286Smrgwith_gnu_ld=$lt_with_gnu_ld
13415d9c7fc6cSmrg
1341605a1a286Smrg# Flag that allows shared libraries with undefined symbols to be built.
1341705a1a286Smrgallow_undefined_flag=$lt_allow_undefined_flag
13418d9c7fc6cSmrg
1341905a1a286Smrg# Flag that enforces no undefined symbols.
1342005a1a286Smrgno_undefined_flag=$lt_no_undefined_flag
13421d9c7fc6cSmrg
1342205a1a286Smrg# Flag to hardcode \$libdir into a binary during linking.
1342305a1a286Smrg# This must work even if \$libdir does not exist
1342405a1a286Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13425d9c7fc6cSmrg
1342605a1a286Smrg# If ld is used when linking, flag to hardcode \$libdir into a binary
1342705a1a286Smrg# during linking.  This must work even if \$libdir does not exist.
1342805a1a286Smrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13429d9c7fc6cSmrg
1343005a1a286Smrg# Whether we need a single "-rpath" flag with a separated argument.
1343105a1a286Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator
13432d9c7fc6cSmrg
1343305a1a286Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
1343405a1a286Smrg# DIR into the resulting binary.
1343505a1a286Smrghardcode_direct=$hardcode_direct
13436d9c7fc6cSmrg
1343705a1a286Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
1343805a1a286Smrg# DIR into the resulting binary and the resulting library dependency is
1343905a1a286Smrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
1344005a1a286Smrg# library is relocated.
1344105a1a286Smrghardcode_direct_absolute=$hardcode_direct_absolute
13442d9c7fc6cSmrg
1344305a1a286Smrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
1344405a1a286Smrg# into the resulting binary.
1344505a1a286Smrghardcode_minus_L=$hardcode_minus_L
13446d9c7fc6cSmrg
1344705a1a286Smrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
1344805a1a286Smrg# into the resulting binary.
1344905a1a286Smrghardcode_shlibpath_var=$hardcode_shlibpath_var
13450d9c7fc6cSmrg
1345105a1a286Smrg# Set to "yes" if building a shared library automatically hardcodes DIR
1345205a1a286Smrg# into the library and all subsequent libraries and executables linked
1345305a1a286Smrg# against it.
1345405a1a286Smrghardcode_automatic=$hardcode_automatic
13455d9c7fc6cSmrg
1345605a1a286Smrg# Set to yes if linker adds runtime paths of dependent libraries
1345705a1a286Smrg# to runtime path list.
1345805a1a286Smrginherit_rpath=$inherit_rpath
13459d9c7fc6cSmrg
1346005a1a286Smrg# Whether libtool must link a program against all its dependency libraries.
1346105a1a286Smrglink_all_deplibs=$link_all_deplibs
13462d9c7fc6cSmrg
1346305a1a286Smrg# Fix the shell variable \$srcfile for the compiler.
1346405a1a286Smrgfix_srcfile_path=$lt_fix_srcfile_path
13465d9c7fc6cSmrg
1346605a1a286Smrg# Set to "yes" if exported symbols are required.
1346705a1a286Smrgalways_export_symbols=$always_export_symbols
13468d9c7fc6cSmrg
1346905a1a286Smrg# The commands to list exported symbols.
1347005a1a286Smrgexport_symbols_cmds=$lt_export_symbols_cmds
13471d9c7fc6cSmrg
1347205a1a286Smrg# Symbols that should not be listed in the preloaded symbols.
1347305a1a286Smrgexclude_expsyms=$lt_exclude_expsyms
13474d9c7fc6cSmrg
1347505a1a286Smrg# Symbols that must always be exported.
1347605a1a286Smrginclude_expsyms=$lt_include_expsyms
13477d9c7fc6cSmrg
1347805a1a286Smrg# Commands necessary for linking programs (against libraries) with templates.
1347905a1a286Smrgprelink_cmds=$lt_prelink_cmds
13480d9c7fc6cSmrg
1348105a1a286Smrg# Specify filename containing input files.
1348205a1a286Smrgfile_list_spec=$lt_file_list_spec
13483d9c7fc6cSmrg
1348405a1a286Smrg# How to hardcode a shared library path into an executable.
1348505a1a286Smrghardcode_action=$hardcode_action
13486d9c7fc6cSmrg
1348705a1a286Smrg# ### END LIBTOOL CONFIG
13488d9c7fc6cSmrg
1348905a1a286Smrg_LT_EOF
13490d9c7fc6cSmrg
1349105a1a286Smrg  case $host_os in
1349205a1a286Smrg  aix3*)
1349305a1a286Smrg    cat <<\_LT_EOF >> "$cfgfile"
1349405a1a286Smrg# AIX sometimes has problems with the GCC collect2 program.  For some
1349505a1a286Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems
1349605a1a286Smrg# vanish in a puff of smoke.
1349705a1a286Smrgif test "X${COLLECT_NAMES+set}" != Xset; then
1349805a1a286Smrg  COLLECT_NAMES=
1349905a1a286Smrg  export COLLECT_NAMES
1350005a1a286Smrgfi
1350105a1a286Smrg_LT_EOF
1350205a1a286Smrg    ;;
1350305a1a286Smrg  esac
13504d9c7fc6cSmrg
13505d9c7fc6cSmrg
1350605a1a286Smrgltmain="$ac_aux_dir/ltmain.sh"
13507d9c7fc6cSmrg
13508d9c7fc6cSmrg
1350905a1a286Smrg  # We use sed instead of cat because bash on DJGPP gets confused if
1351005a1a286Smrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1351105a1a286Smrg  # text mode, it properly converts lines to CR/LF.  This bash problem
1351205a1a286Smrg  # is reportedly fixed, but why not run on old versions too?
1351305a1a286Smrg  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1351405a1a286Smrg    || (rm -f "$cfgfile"; exit 1)
13515d9c7fc6cSmrg
1351605a1a286Smrg  case $xsi_shell in
1351705a1a286Smrg  yes)
1351805a1a286Smrg    cat << \_LT_EOF >> "$cfgfile"
13519d9c7fc6cSmrg
1352005a1a286Smrg# func_dirname file append nondir_replacement
1352105a1a286Smrg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
1352205a1a286Smrg# otherwise set result to NONDIR_REPLACEMENT.
1352305a1a286Smrgfunc_dirname ()
1352405a1a286Smrg{
1352505a1a286Smrg  case ${1} in
1352605a1a286Smrg    */*) func_dirname_result="${1%/*}${2}" ;;
1352705a1a286Smrg    *  ) func_dirname_result="${3}" ;;
1352805a1a286Smrg  esac
1352905a1a286Smrg}
13530d9c7fc6cSmrg
1353105a1a286Smrg# func_basename file
1353205a1a286Smrgfunc_basename ()
1353305a1a286Smrg{
1353405a1a286Smrg  func_basename_result="${1##*/}"
1353505a1a286Smrg}
13536d9c7fc6cSmrg
1353705a1a286Smrg# func_dirname_and_basename file append nondir_replacement
1353805a1a286Smrg# perform func_basename and func_dirname in a single function
1353905a1a286Smrg# call:
1354005a1a286Smrg#   dirname:  Compute the dirname of FILE.  If nonempty,
1354105a1a286Smrg#             add APPEND to the result, otherwise set result
1354205a1a286Smrg#             to NONDIR_REPLACEMENT.
1354305a1a286Smrg#             value returned in "$func_dirname_result"
1354405a1a286Smrg#   basename: Compute filename of FILE.
1354505a1a286Smrg#             value retuned in "$func_basename_result"
1354605a1a286Smrg# Implementation must be kept synchronized with func_dirname
1354705a1a286Smrg# and func_basename. For efficiency, we do not delegate to
1354805a1a286Smrg# those functions but instead duplicate the functionality here.
1354905a1a286Smrgfunc_dirname_and_basename ()
1355005a1a286Smrg{
1355105a1a286Smrg  case ${1} in
1355205a1a286Smrg    */*) func_dirname_result="${1%/*}${2}" ;;
1355305a1a286Smrg    *  ) func_dirname_result="${3}" ;;
13554d9c7fc6cSmrg  esac
1355505a1a286Smrg  func_basename_result="${1##*/}"
1355605a1a286Smrg}
13557d9c7fc6cSmrg
1355805a1a286Smrg# func_stripname prefix suffix name
1355905a1a286Smrg# strip PREFIX and SUFFIX off of NAME.
1356005a1a286Smrg# PREFIX and SUFFIX must not contain globbing or regex special
1356105a1a286Smrg# characters, hashes, percent signs, but SUFFIX may contain a leading
1356205a1a286Smrg# dot (in which case that matches only a dot).
1356305a1a286Smrgfunc_stripname ()
1356405a1a286Smrg{
1356505a1a286Smrg  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1356605a1a286Smrg  # positional parameters, so assign one to ordinary parameter first.
1356705a1a286Smrg  func_stripname_result=${3}
1356805a1a286Smrg  func_stripname_result=${func_stripname_result#"${1}"}
1356905a1a286Smrg  func_stripname_result=${func_stripname_result%"${2}"}
1357005a1a286Smrg}
13571d9c7fc6cSmrg
1357205a1a286Smrg# func_opt_split
1357305a1a286Smrgfunc_opt_split ()
1357405a1a286Smrg{
1357505a1a286Smrg  func_opt_split_opt=${1%%=*}
1357605a1a286Smrg  func_opt_split_arg=${1#*=}
1357705a1a286Smrg}
13578d9c7fc6cSmrg
1357905a1a286Smrg# func_lo2o object
1358005a1a286Smrgfunc_lo2o ()
1358105a1a286Smrg{
1358205a1a286Smrg  case ${1} in
1358305a1a286Smrg    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
1358405a1a286Smrg    *)    func_lo2o_result=${1} ;;
1358505a1a286Smrg  esac
1358605a1a286Smrg}
13587d9c7fc6cSmrg
1358805a1a286Smrg# func_xform libobj-or-source
1358905a1a286Smrgfunc_xform ()
1359005a1a286Smrg{
1359105a1a286Smrg  func_xform_result=${1%.*}.lo
1359205a1a286Smrg}
13593d9c7fc6cSmrg
1359405a1a286Smrg# func_arith arithmetic-term...
1359505a1a286Smrgfunc_arith ()
1359605a1a286Smrg{
1359705a1a286Smrg  func_arith_result=$(( $* ))
1359805a1a286Smrg}
13599d9c7fc6cSmrg
1360005a1a286Smrg# func_len string
1360105a1a286Smrg# STRING may not start with a hyphen.
1360205a1a286Smrgfunc_len ()
1360305a1a286Smrg{
1360405a1a286Smrg  func_len_result=${#1}
1360505a1a286Smrg}
13606d9c7fc6cSmrg
1360705a1a286Smrg_LT_EOF
1360805a1a286Smrg    ;;
1360905a1a286Smrg  *) # Bourne compatible functions.
1361005a1a286Smrg    cat << \_LT_EOF >> "$cfgfile"
13611d9c7fc6cSmrg
1361205a1a286Smrg# func_dirname file append nondir_replacement
1361305a1a286Smrg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
1361405a1a286Smrg# otherwise set result to NONDIR_REPLACEMENT.
1361505a1a286Smrgfunc_dirname ()
1361605a1a286Smrg{
1361705a1a286Smrg  # Extract subdirectory from the argument.
1361805a1a286Smrg  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1361905a1a286Smrg  if test "X$func_dirname_result" = "X${1}"; then
1362005a1a286Smrg    func_dirname_result="${3}"
13621d9c7fc6cSmrg  else
1362205a1a286Smrg    func_dirname_result="$func_dirname_result${2}"
13623d9c7fc6cSmrg  fi
1362405a1a286Smrg}
13625d9c7fc6cSmrg
1362605a1a286Smrg# func_basename file
1362705a1a286Smrgfunc_basename ()
1362805a1a286Smrg{
1362905a1a286Smrg  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1363005a1a286Smrg}
13631d9c7fc6cSmrg
13632d9c7fc6cSmrg
1363305a1a286Smrg# func_stripname prefix suffix name
1363405a1a286Smrg# strip PREFIX and SUFFIX off of NAME.
1363505a1a286Smrg# PREFIX and SUFFIX must not contain globbing or regex special
1363605a1a286Smrg# characters, hashes, percent signs, but SUFFIX may contain a leading
1363705a1a286Smrg# dot (in which case that matches only a dot).
1363805a1a286Smrg# func_strip_suffix prefix name
1363905a1a286Smrgfunc_stripname ()
1364005a1a286Smrg{
1364105a1a286Smrg  case ${2} in
1364205a1a286Smrg    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
1364305a1a286Smrg    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13644d9c7fc6cSmrg  esac
1364505a1a286Smrg}
13646d9c7fc6cSmrg
1364705a1a286Smrg# sed scripts:
1364805a1a286Smrgmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
1364905a1a286Smrgmy_sed_long_arg='1s/^-[^=]*=//'
13650d9c7fc6cSmrg
1365105a1a286Smrg# func_opt_split
1365205a1a286Smrgfunc_opt_split ()
1365305a1a286Smrg{
1365405a1a286Smrg  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
1365505a1a286Smrg  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1365605a1a286Smrg}
13657d9c7fc6cSmrg
1365805a1a286Smrg# func_lo2o object
1365905a1a286Smrgfunc_lo2o ()
1366005a1a286Smrg{
1366105a1a286Smrg  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1366205a1a286Smrg}
13663d9c7fc6cSmrg
1366405a1a286Smrg# func_xform libobj-or-source
1366505a1a286Smrgfunc_xform ()
1366605a1a286Smrg{
1366705a1a286Smrg  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
1366805a1a286Smrg}
13669d9c7fc6cSmrg
1367005a1a286Smrg# func_arith arithmetic-term...
1367105a1a286Smrgfunc_arith ()
1367205a1a286Smrg{
1367305a1a286Smrg  func_arith_result=`expr "$@"`
1367405a1a286Smrg}
13675d9c7fc6cSmrg
1367605a1a286Smrg# func_len string
1367705a1a286Smrg# STRING may not start with a hyphen.
1367805a1a286Smrgfunc_len ()
1367905a1a286Smrg{
1368005a1a286Smrg  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
1368105a1a286Smrg}
13682d9c7fc6cSmrg
1368305a1a286Smrg_LT_EOF
1368405a1a286Smrgesac
13685d9c7fc6cSmrg
1368605a1a286Smrgcase $lt_shell_append in
1368705a1a286Smrg  yes)
1368805a1a286Smrg    cat << \_LT_EOF >> "$cfgfile"
13689d9c7fc6cSmrg
1369005a1a286Smrg# func_append var value
1369105a1a286Smrg# Append VALUE to the end of shell variable VAR.
1369205a1a286Smrgfunc_append ()
1369305a1a286Smrg{
1369405a1a286Smrg  eval "$1+=\$2"
1369505a1a286Smrg}
1369605a1a286Smrg_LT_EOF
1369705a1a286Smrg    ;;
1369805a1a286Smrg  *)
1369905a1a286Smrg    cat << \_LT_EOF >> "$cfgfile"
13700d9c7fc6cSmrg
1370105a1a286Smrg# func_append var value
1370205a1a286Smrg# Append VALUE to the end of shell variable VAR.
1370305a1a286Smrgfunc_append ()
1370405a1a286Smrg{
1370505a1a286Smrg  eval "$1=\$$1\$2"
1370605a1a286Smrg}
13707d9c7fc6cSmrg
1370805a1a286Smrg_LT_EOF
1370905a1a286Smrg    ;;
1371005a1a286Smrg  esac
13711d9c7fc6cSmrg
13712d9c7fc6cSmrg
1371305a1a286Smrg  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1371405a1a286Smrg    || (rm -f "$cfgfile"; exit 1)
1371505a1a286Smrg
1371605a1a286Smrg  mv -f "$cfgfile" "$ofile" ||
1371705a1a286Smrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1371805a1a286Smrg  chmod +x "$ofile"
1371905a1a286Smrg
13720d9c7fc6cSmrg ;;
1372105a1a286Smrg
13722d9c7fc6cSmrg  esac
1372305a1a286Smrgdone # for ac_tag
13724d9c7fc6cSmrg
13725d9c7fc6cSmrg
1372605a1a286Smrgas_fn_exit 0
13727d9c7fc6cSmrg_ACEOF
13728d9c7fc6cSmrgac_clean_files=$ac_clean_files_save
13729d9c7fc6cSmrg
1373005a1a286Smrgtest $ac_write_fail = 0 ||
1373105a1a286Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1373205a1a286Smrg
13733d9c7fc6cSmrg
13734d9c7fc6cSmrg# configure is writing to config.log, and then calls config.status.
13735d9c7fc6cSmrg# config.status does its own redirection, appending to config.log.
13736d9c7fc6cSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
13737d9c7fc6cSmrg# by configure, so config.status won't be able to write to it; its
13738d9c7fc6cSmrg# output is simply discarded.  So we exec the FD to /dev/null,
13739d9c7fc6cSmrg# effectively closing config.log, so it can be properly (re)opened and
13740d9c7fc6cSmrg# appended to by config.status.  When coming back to configure, we
13741d9c7fc6cSmrg# need to make the FD available again.
13742d9c7fc6cSmrgif test "$no_create" != yes; then
13743d9c7fc6cSmrg  ac_cs_success=:
13744d9c7fc6cSmrg  ac_config_status_args=
13745d9c7fc6cSmrg  test "$silent" = yes &&
13746d9c7fc6cSmrg    ac_config_status_args="$ac_config_status_args --quiet"
13747d9c7fc6cSmrg  exec 5>/dev/null
13748d9c7fc6cSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13749d9c7fc6cSmrg  exec 5>>config.log
13750d9c7fc6cSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13751d9c7fc6cSmrg  # would make configure fail if this is the last instruction.
1375205a1a286Smrg  $ac_cs_success || as_fn_exit 1
1375305a1a286Smrgfi
1375405a1a286Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1375505a1a286Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
1375605a1a286Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13757d9c7fc6cSmrgfi
13758d9c7fc6cSmrg
13759d9c7fc6cSmrg
13760