configure revision 1b12faf6
132b578d3Smrg#! /bin/sh
232b578d3Smrg# Guess values for system-dependent variables and create Makefiles.
31b12faf6Smrg# Generated by GNU Autoconf 2.67 for xf86-video-mach64 6.9.0.
432b578d3Smrg#
532b578d3Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
632b578d3Smrg#
71b12faf6Smrg#
832b578d3Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
91b12faf6Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
101b12faf6Smrg# Foundation, Inc.
111b12faf6Smrg#
121b12faf6Smrg#
1332b578d3Smrg# This configure script is free software; the Free Software Foundation
1432b578d3Smrg# gives unlimited permission to copy, distribute and modify it.
151b12faf6Smrg## -------------------- ##
161b12faf6Smrg## M4sh Initialization. ##
171b12faf6Smrg## -------------------- ##
1832b578d3Smrg
1932b578d3Smrg# Be more Bourne compatible
2032b578d3SmrgDUALCASE=1; export DUALCASE # for MKS sh
211b12faf6Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2232b578d3Smrg  emulate sh
2332b578d3Smrg  NULLCMD=:
242a51b5beSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2532b578d3Smrg  # is contrary to our usage.  Disable this feature.
2632b578d3Smrg  alias -g '${1+"$@"}'='"$@"'
2732b578d3Smrg  setopt NO_GLOB_SUBST
2832b578d3Smrgelse
291b12faf6Smrg  case `(set -o) 2>/dev/null` in #(
301b12faf6Smrg  *posix*) :
311b12faf6Smrg    set -o posix ;; #(
321b12faf6Smrg  *) :
331b12faf6Smrg     ;;
3432b578d3Smrgesac
3532b578d3Smrgfi
3632b578d3Smrg
3732b578d3Smrg
382a51b5beSmrgas_nl='
392a51b5beSmrg'
402a51b5beSmrgexport as_nl
412a51b5beSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
422a51b5beSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
432a51b5beSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
442a51b5beSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
451b12faf6Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
461b12faf6Smrg# but without wasting forks for bash or zsh.
471b12faf6Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
481b12faf6Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
491b12faf6Smrg  as_echo='print -r --'
501b12faf6Smrg  as_echo_n='print -rn --'
511b12faf6Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
522a51b5beSmrg  as_echo='printf %s\n'
532a51b5beSmrg  as_echo_n='printf %s'
542a51b5beSmrgelse
552a51b5beSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
562a51b5beSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
572a51b5beSmrg    as_echo_n='/usr/ucb/echo -n'
5832b578d3Smrg  else
592a51b5beSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
602a51b5beSmrg    as_echo_n_body='eval
612a51b5beSmrg      arg=$1;
621b12faf6Smrg      case $arg in #(
632a51b5beSmrg      *"$as_nl"*)
642a51b5beSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
652a51b5beSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
662a51b5beSmrg      esac;
672a51b5beSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
682a51b5beSmrg    '
692a51b5beSmrg    export as_echo_n_body
702a51b5beSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
7132b578d3Smrg  fi
722a51b5beSmrg  export as_echo_body
732a51b5beSmrg  as_echo='sh -c $as_echo_body as_echo'
742a51b5beSmrgfi
752a51b5beSmrg
762a51b5beSmrg# The user is always right.
772a51b5beSmrgif test "${PATH_SEPARATOR+set}" != set; then
782a51b5beSmrg  PATH_SEPARATOR=:
792a51b5beSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
802a51b5beSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
812a51b5beSmrg      PATH_SEPARATOR=';'
822a51b5beSmrg  }
8332b578d3Smrgfi
8432b578d3Smrg
8532b578d3Smrg
8632b578d3Smrg# IFS
8732b578d3Smrg# We need space, tab and new line, in precisely that order.  Quoting is
8832b578d3Smrg# there to prevent editors from complaining about space-tab.
8932b578d3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9032b578d3Smrg# splitting by setting IFS to empty value.)
9132b578d3SmrgIFS=" ""	$as_nl"
9232b578d3Smrg
9332b578d3Smrg# Find who we are.  Look in the path if we contain no directory separator.
941b12faf6Smrgcase $0 in #((
9532b578d3Smrg  *[\\/]* ) as_myself=$0 ;;
9632b578d3Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732b578d3Smrgfor as_dir in $PATH
9832b578d3Smrgdo
9932b578d3Smrg  IFS=$as_save_IFS
10032b578d3Smrg  test -z "$as_dir" && as_dir=.
1011b12faf6Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1021b12faf6Smrg  done
10332b578d3SmrgIFS=$as_save_IFS
10432b578d3Smrg
10532b578d3Smrg     ;;
10632b578d3Smrgesac
10732b578d3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10832b578d3Smrg# in which case we are not to be found in the path.
10932b578d3Smrgif test "x$as_myself" = x; then
11032b578d3Smrg  as_myself=$0
11132b578d3Smrgfi
11232b578d3Smrgif test ! -f "$as_myself"; then
1132a51b5beSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1141b12faf6Smrg  exit 1
11532b578d3Smrgfi
11632b578d3Smrg
1171b12faf6Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1181b12faf6Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1191b12faf6Smrg# suppresses any "Segmentation fault" message there.  '((' could
1201b12faf6Smrg# trigger a bug in pdksh 5.2.14.
1211b12faf6Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1221b12faf6Smrgdo eval test x\${$as_var+set} = xset \
1231b12faf6Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12432b578d3Smrgdone
12532b578d3SmrgPS1='$ '
12632b578d3SmrgPS2='> '
12732b578d3SmrgPS4='+ '
12832b578d3Smrg
12932b578d3Smrg# NLS nuisances.
1302a51b5beSmrgLC_ALL=C
1312a51b5beSmrgexport LC_ALL
1322a51b5beSmrgLANGUAGE=C
1332a51b5beSmrgexport LANGUAGE
13432b578d3Smrg
1351b12faf6Smrg# CDPATH.
1361b12faf6Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1371b12faf6Smrg
1381b12faf6Smrgif test "x$CONFIG_SHELL" = x; then
1391b12faf6Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1401b12faf6Smrg  emulate sh
1411b12faf6Smrg  NULLCMD=:
1421b12faf6Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1431b12faf6Smrg  # is contrary to our usage.  Disable this feature.
1441b12faf6Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1451b12faf6Smrg  setopt NO_GLOB_SUBST
1461b12faf6Smrgelse
1471b12faf6Smrg  case \`(set -o) 2>/dev/null\` in #(
1481b12faf6Smrg  *posix*) :
1491b12faf6Smrg    set -o posix ;; #(
1501b12faf6Smrg  *) :
1511b12faf6Smrg     ;;
1521b12faf6Smrgesac
1531b12faf6Smrgfi
1541b12faf6Smrg"
1551b12faf6Smrg  as_required="as_fn_return () { (exit \$1); }
1561b12faf6Smrgas_fn_success () { as_fn_return 0; }
1571b12faf6Smrgas_fn_failure () { as_fn_return 1; }
1581b12faf6Smrgas_fn_ret_success () { return 0; }
1591b12faf6Smrgas_fn_ret_failure () { return 1; }
1601b12faf6Smrg
1611b12faf6Smrgexitcode=0
1621b12faf6Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1631b12faf6Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1641b12faf6Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1651b12faf6Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1661b12faf6Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1671b12faf6Smrg
1681b12faf6Smrgelse
1691b12faf6Smrg  exitcode=1; echo positional parameters were not saved.
1701b12faf6Smrgfi
1711b12faf6Smrgtest x\$exitcode = x0 || exit 1"
1721b12faf6Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1731b12faf6Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1741b12faf6Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1751b12faf6Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1761b12faf6Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
1771b12faf6Smrg  if (eval "$as_required") 2>/dev/null; then :
1781b12faf6Smrg  as_have_required=yes
1791b12faf6Smrgelse
1801b12faf6Smrg  as_have_required=no
1811b12faf6Smrgfi
1821b12faf6Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1831b12faf6Smrg
1841b12faf6Smrgelse
1851b12faf6Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861b12faf6Smrgas_found=false
1871b12faf6Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1881b12faf6Smrgdo
1891b12faf6Smrg  IFS=$as_save_IFS
1901b12faf6Smrg  test -z "$as_dir" && as_dir=.
1911b12faf6Smrg  as_found=:
1921b12faf6Smrg  case $as_dir in #(
1931b12faf6Smrg	 /*)
1941b12faf6Smrg	   for as_base in sh bash ksh sh5; do
1951b12faf6Smrg	     # Try only shells that exist, to save several forks.
1961b12faf6Smrg	     as_shell=$as_dir/$as_base
1971b12faf6Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1981b12faf6Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
1991b12faf6Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2001b12faf6Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2011b12faf6Smrg  break 2
2021b12faf6Smrgfi
2031b12faf6Smrgfi
2041b12faf6Smrg	   done;;
2051b12faf6Smrg       esac
2061b12faf6Smrg  as_found=false
2071b12faf6Smrgdone
2081b12faf6Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2091b12faf6Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2101b12faf6Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2111b12faf6Smrgfi; }
2121b12faf6SmrgIFS=$as_save_IFS
2131b12faf6Smrg
2141b12faf6Smrg
2151b12faf6Smrg      if test "x$CONFIG_SHELL" != x; then :
2161b12faf6Smrg  # We cannot yet assume a decent shell, so we have to provide a
2171b12faf6Smrg	# neutralization value for shells without unset; and this also
2181b12faf6Smrg	# works around shells that cannot unset nonexistent variables.
2191b12faf6Smrg	BASH_ENV=/dev/null
2201b12faf6Smrg	ENV=/dev/null
2211b12faf6Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2221b12faf6Smrg	export CONFIG_SHELL
2231b12faf6Smrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
2241b12faf6Smrgfi
2251b12faf6Smrg
2261b12faf6Smrg    if test x$as_have_required = xno; then :
2271b12faf6Smrg  $as_echo "$0: This script requires a shell more modern than all"
2281b12faf6Smrg  $as_echo "$0: the shells that I found on your system."
2291b12faf6Smrg  if test x${ZSH_VERSION+set} = xset ; then
2301b12faf6Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2311b12faf6Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2321b12faf6Smrg  else
2331b12faf6Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2341b12faf6Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2351b12faf6Smrg$0: about your system, including any error possibly output
2361b12faf6Smrg$0: before this message. Then install a modern shell, or
2371b12faf6Smrg$0: manually run the script under such a shell if you do
2381b12faf6Smrg$0: have one."
2391b12faf6Smrg  fi
2401b12faf6Smrg  exit 1
2411b12faf6Smrgfi
2421b12faf6Smrgfi
2431b12faf6Smrgfi
2441b12faf6SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2451b12faf6Smrgexport SHELL
2461b12faf6Smrg# Unset more variables known to interfere with behavior of common tools.
2471b12faf6SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2481b12faf6Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2491b12faf6Smrg
2501b12faf6Smrg## --------------------- ##
2511b12faf6Smrg## M4sh Shell Functions. ##
2521b12faf6Smrg## --------------------- ##
2531b12faf6Smrg# as_fn_unset VAR
2541b12faf6Smrg# ---------------
2551b12faf6Smrg# Portably unset VAR.
2561b12faf6Smrgas_fn_unset ()
2571b12faf6Smrg{
2581b12faf6Smrg  { eval $1=; unset $1;}
2591b12faf6Smrg}
2601b12faf6Smrgas_unset=as_fn_unset
2611b12faf6Smrg
2621b12faf6Smrg# as_fn_set_status STATUS
2631b12faf6Smrg# -----------------------
2641b12faf6Smrg# Set $? to STATUS, without forking.
2651b12faf6Smrgas_fn_set_status ()
2661b12faf6Smrg{
2671b12faf6Smrg  return $1
2681b12faf6Smrg} # as_fn_set_status
2691b12faf6Smrg
2701b12faf6Smrg# as_fn_exit STATUS
2711b12faf6Smrg# -----------------
2721b12faf6Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2731b12faf6Smrgas_fn_exit ()
2741b12faf6Smrg{
2751b12faf6Smrg  set +e
2761b12faf6Smrg  as_fn_set_status $1
2771b12faf6Smrg  exit $1
2781b12faf6Smrg} # as_fn_exit
2791b12faf6Smrg
2801b12faf6Smrg# as_fn_mkdir_p
2811b12faf6Smrg# -------------
2821b12faf6Smrg# Create "$as_dir" as a directory, including parents if necessary.
2831b12faf6Smrgas_fn_mkdir_p ()
2841b12faf6Smrg{
2851b12faf6Smrg
2861b12faf6Smrg  case $as_dir in #(
2871b12faf6Smrg  -*) as_dir=./$as_dir;;
2881b12faf6Smrg  esac
2891b12faf6Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
2901b12faf6Smrg    as_dirs=
2911b12faf6Smrg    while :; do
2921b12faf6Smrg      case $as_dir in #(
2931b12faf6Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2941b12faf6Smrg      *) as_qdir=$as_dir;;
2951b12faf6Smrg      esac
2961b12faf6Smrg      as_dirs="'$as_qdir' $as_dirs"
2971b12faf6Smrg      as_dir=`$as_dirname -- "$as_dir" ||
2981b12faf6Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2991b12faf6Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3001b12faf6Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3011b12faf6Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3021b12faf6Smrg$as_echo X"$as_dir" |
3031b12faf6Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3041b12faf6Smrg	    s//\1/
3051b12faf6Smrg	    q
3061b12faf6Smrg	  }
3071b12faf6Smrg	  /^X\(\/\/\)[^/].*/{
3081b12faf6Smrg	    s//\1/
3091b12faf6Smrg	    q
3101b12faf6Smrg	  }
3111b12faf6Smrg	  /^X\(\/\/\)$/{
3121b12faf6Smrg	    s//\1/
3131b12faf6Smrg	    q
3141b12faf6Smrg	  }
3151b12faf6Smrg	  /^X\(\/\).*/{
3161b12faf6Smrg	    s//\1/
3171b12faf6Smrg	    q
3181b12faf6Smrg	  }
3191b12faf6Smrg	  s/.*/./; q'`
3201b12faf6Smrg      test -d "$as_dir" && break
3211b12faf6Smrg    done
3221b12faf6Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3231b12faf6Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3241b12faf6Smrg
3251b12faf6Smrg
3261b12faf6Smrg} # as_fn_mkdir_p
3271b12faf6Smrg# as_fn_append VAR VALUE
3281b12faf6Smrg# ----------------------
3291b12faf6Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3301b12faf6Smrg# advantage of any shell optimizations that allow amortized linear growth over
3311b12faf6Smrg# repeated appends, instead of the typical quadratic growth present in naive
3321b12faf6Smrg# implementations.
3331b12faf6Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3341b12faf6Smrg  eval 'as_fn_append ()
3351b12faf6Smrg  {
3361b12faf6Smrg    eval $1+=\$2
3371b12faf6Smrg  }'
3381b12faf6Smrgelse
3391b12faf6Smrg  as_fn_append ()
3401b12faf6Smrg  {
3411b12faf6Smrg    eval $1=\$$1\$2
3421b12faf6Smrg  }
3431b12faf6Smrgfi # as_fn_append
3441b12faf6Smrg
3451b12faf6Smrg# as_fn_arith ARG...
3461b12faf6Smrg# ------------------
3471b12faf6Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3481b12faf6Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3491b12faf6Smrg# must be portable across $(()) and expr.
3501b12faf6Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3511b12faf6Smrg  eval 'as_fn_arith ()
3521b12faf6Smrg  {
3531b12faf6Smrg    as_val=$(( $* ))
3541b12faf6Smrg  }'
3551b12faf6Smrgelse
3561b12faf6Smrg  as_fn_arith ()
3571b12faf6Smrg  {
3581b12faf6Smrg    as_val=`expr "$@" || test $? -eq 1`
3591b12faf6Smrg  }
3601b12faf6Smrgfi # as_fn_arith
3611b12faf6Smrg
3621b12faf6Smrg
3631b12faf6Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
3641b12faf6Smrg# ----------------------------------------
3651b12faf6Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3661b12faf6Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3671b12faf6Smrg# script with STATUS, using 1 if that was 0.
3681b12faf6Smrgas_fn_error ()
3691b12faf6Smrg{
3701b12faf6Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
3711b12faf6Smrg  if test "$4"; then
3721b12faf6Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3731b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3741b12faf6Smrg  fi
3751b12faf6Smrg  $as_echo "$as_me: error: $2" >&2
3761b12faf6Smrg  as_fn_exit $as_status
3771b12faf6Smrg} # as_fn_error
3781b12faf6Smrg
37932b578d3Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
38032b578d3Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38132b578d3Smrg  as_expr=expr
38232b578d3Smrgelse
38332b578d3Smrg  as_expr=false
38432b578d3Smrgfi
38532b578d3Smrg
38632b578d3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38732b578d3Smrg  as_basename=basename
38832b578d3Smrgelse
38932b578d3Smrg  as_basename=false
39032b578d3Smrgfi
39132b578d3Smrg
3921b12faf6Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3931b12faf6Smrg  as_dirname=dirname
3941b12faf6Smrgelse
3951b12faf6Smrg  as_dirname=false
3961b12faf6Smrgfi
39732b578d3Smrg
39832b578d3Smrgas_me=`$as_basename -- "$0" ||
39932b578d3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40032b578d3Smrg	 X"$0" : 'X\(//\)$' \| \
40132b578d3Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4022a51b5beSmrg$as_echo X/"$0" |
40332b578d3Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
40432b578d3Smrg	    s//\1/
40532b578d3Smrg	    q
40632b578d3Smrg	  }
40732b578d3Smrg	  /^X\/\(\/\/\)$/{
40832b578d3Smrg	    s//\1/
40932b578d3Smrg	    q
41032b578d3Smrg	  }
41132b578d3Smrg	  /^X\/\(\/\).*/{
41232b578d3Smrg	    s//\1/
41332b578d3Smrg	    q
41432b578d3Smrg	  }
41532b578d3Smrg	  s/.*/./; q'`
41632b578d3Smrg
4171b12faf6Smrg# Avoid depending upon Character Ranges.
4181b12faf6Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4191b12faf6Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4201b12faf6Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4211b12faf6Smrgas_cr_digits='0123456789'
4221b12faf6Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
42332b578d3Smrg
42432b578d3Smrg
4251b12faf6Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4261b12faf6Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4271b12faf6Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4281b12faf6Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4291b12faf6Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4301b12faf6Smrg  sed -n '
4311b12faf6Smrg    p
4321b12faf6Smrg    /[$]LINENO/=
4331b12faf6Smrg  ' <$as_myself |
4341b12faf6Smrg    sed '
4351b12faf6Smrg      s/[$]LINENO.*/&-/
4361b12faf6Smrg      t lineno
4371b12faf6Smrg      b
4381b12faf6Smrg      :lineno
4391b12faf6Smrg      N
4401b12faf6Smrg      :loop
4411b12faf6Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4421b12faf6Smrg      t loop
4431b12faf6Smrg      s/-\n.*//
4441b12faf6Smrg    ' >$as_me.lineno &&
4451b12faf6Smrg  chmod +x "$as_me.lineno" ||
4461b12faf6Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
44732b578d3Smrg
4481b12faf6Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4491b12faf6Smrg  # (the dirname of $[0] is not the place where we might find the
4501b12faf6Smrg  # original and so on.  Autoconf is especially sensitive to this).
4511b12faf6Smrg  . "./$as_me.lineno"
4521b12faf6Smrg  # Exit status is that of the last command.
4531b12faf6Smrg  exit
45432b578d3Smrg}
45532b578d3Smrg
4561b12faf6SmrgECHO_C= ECHO_N= ECHO_T=
4571b12faf6Smrgcase `echo -n x` in #(((((
4581b12faf6Smrg-n*)
4591b12faf6Smrg  case `echo 'xy\c'` in
4601b12faf6Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4611b12faf6Smrg  xy)  ECHO_C='\c';;
4621b12faf6Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4631b12faf6Smrg       ECHO_T='	';;
4641b12faf6Smrg  esac;;
4651b12faf6Smrg*)
4661b12faf6Smrg  ECHO_N='-n';;
4671b12faf6Smrgesac
46832b578d3Smrg
4691b12faf6Smrgrm -f conf$$ conf$$.exe conf$$.file
4701b12faf6Smrgif test -d conf$$.dir; then
4711b12faf6Smrg  rm -f conf$$.dir/conf$$.file
4721b12faf6Smrgelse
4731b12faf6Smrg  rm -f conf$$.dir
4741b12faf6Smrg  mkdir conf$$.dir 2>/dev/null
47532b578d3Smrgfi
4761b12faf6Smrgif (echo >conf$$.file) 2>/dev/null; then
4771b12faf6Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
4781b12faf6Smrg    as_ln_s='ln -s'
4791b12faf6Smrg    # ... but there are two gotchas:
4801b12faf6Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4811b12faf6Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4821b12faf6Smrg    # In both cases, we have to default to `cp -p'.
4831b12faf6Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4841b12faf6Smrg      as_ln_s='cp -p'
4851b12faf6Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
4861b12faf6Smrg    as_ln_s=ln
4871b12faf6Smrg  else
4881b12faf6Smrg    as_ln_s='cp -p'
4891b12faf6Smrg  fi
49032b578d3Smrgelse
4911b12faf6Smrg  as_ln_s='cp -p'
49232b578d3Smrgfi
4931b12faf6Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4941b12faf6Smrgrmdir conf$$.dir 2>/dev/null
49532b578d3Smrg
4961b12faf6Smrgif mkdir -p . 2>/dev/null; then
4971b12faf6Smrg  as_mkdir_p='mkdir -p "$as_dir"'
4981b12faf6Smrgelse
4991b12faf6Smrg  test -d ./-p && rmdir ./-p
5001b12faf6Smrg  as_mkdir_p=false
50132b578d3Smrgfi
50232b578d3Smrg
5031b12faf6Smrgif test -x / >/dev/null 2>&1; then
5041b12faf6Smrg  as_test_x='test -x'
50532b578d3Smrgelse
5061b12faf6Smrg  if ls -dL / >/dev/null 2>&1; then
5071b12faf6Smrg    as_ls_L_option=L
5081b12faf6Smrg  else
5091b12faf6Smrg    as_ls_L_option=
5101b12faf6Smrg  fi
5111b12faf6Smrg  as_test_x='
5121b12faf6Smrg    eval sh -c '\''
5131b12faf6Smrg      if test -d "$1"; then
5141b12faf6Smrg	test -d "$1/.";
5151b12faf6Smrg      else
5161b12faf6Smrg	case $1 in #(
5171b12faf6Smrg	-*)set "./$1";;
5181b12faf6Smrg	esac;
5191b12faf6Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5201b12faf6Smrg	???[sx]*):;;*)false;;esac;fi
5211b12faf6Smrg    '\'' sh
5221b12faf6Smrg  '
52332b578d3Smrgfi
5241b12faf6Smrgas_executable_p=$as_test_x
52532b578d3Smrg
5261b12faf6Smrg# Sed expression to map a string onto a valid CPP name.
5271b12faf6Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
52832b578d3Smrg
5291b12faf6Smrg# Sed expression to map a string onto a valid variable name.
5301b12faf6Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53132b578d3Smrg
53232b578d3Smrg
53332b578d3Smrg
53432b578d3Smrg# Check that we are running under the correct shell.
53532b578d3SmrgSHELL=${CONFIG_SHELL-/bin/sh}
53632b578d3Smrg
5371b12faf6Smrgcase X$lt_ECHO in
53832b578d3SmrgX*--fallback-echo)
53932b578d3Smrg  # Remove one level of quotation (which was required for Make).
5401b12faf6Smrg  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
54132b578d3Smrg  ;;
54232b578d3Smrgesac
54332b578d3Smrg
5441b12faf6SmrgECHO=${lt_ECHO-echo}
54532b578d3Smrgif test "X$1" = X--no-reexec; then
54632b578d3Smrg  # Discard the --no-reexec flag, and continue.
54732b578d3Smrg  shift
54832b578d3Smrgelif test "X$1" = X--fallback-echo; then
54932b578d3Smrg  # Avoid inline document here, it may be left over
55032b578d3Smrg  :
5511b12faf6Smrgelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
5521b12faf6Smrg  # Yippee, $ECHO works!
55332b578d3Smrg  :
55432b578d3Smrgelse
55532b578d3Smrg  # Restart under the correct shell.
55632b578d3Smrg  exec $SHELL "$0" --no-reexec ${1+"$@"}
55732b578d3Smrgfi
55832b578d3Smrg
55932b578d3Smrgif test "X$1" = X--fallback-echo; then
56032b578d3Smrg  # used as fallback echo
56132b578d3Smrg  shift
5621b12faf6Smrg  cat <<_LT_EOF
56332b578d3Smrg$*
5641b12faf6Smrg_LT_EOF
56532b578d3Smrg  exit 0
56632b578d3Smrgfi
56732b578d3Smrg
56832b578d3Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout
56932b578d3Smrg# if CDPATH is set.
57032b578d3Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
57132b578d3Smrg
5721b12faf6Smrgif test -z "$lt_ECHO"; then
5731b12faf6Smrg  if test "X${echo_test_string+set}" != Xset; then
5741b12faf6Smrg    # find a string as large as possible, as long as the shell can cope with it
5751b12faf6Smrg    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
5761b12faf6Smrg      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
5771b12faf6Smrg      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
5781b12faf6Smrg	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
5791b12faf6Smrg      then
5801b12faf6Smrg        break
5811b12faf6Smrg      fi
5821b12faf6Smrg    done
5831b12faf6Smrg  fi
58432b578d3Smrg
5851b12faf6Smrg  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
5861b12faf6Smrg     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
5871b12faf6Smrg     test "X$echo_testing_string" = "X$echo_test_string"; then
5881b12faf6Smrg    :
5891b12faf6Smrg  else
5901b12faf6Smrg    # The Solaris, AIX, and Digital Unix default echo programs unquote
5911b12faf6Smrg    # backslashes.  This makes it impossible to quote backslashes using
5921b12faf6Smrg    #   echo "$something" | sed 's/\\/\\\\/g'
5931b12faf6Smrg    #
5941b12faf6Smrg    # So, first we look for a working echo in the user's PATH.
59532b578d3Smrg
5961b12faf6Smrg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5971b12faf6Smrg    for dir in $PATH /usr/ucb; do
5981b12faf6Smrg      IFS="$lt_save_ifs"
5991b12faf6Smrg      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
6001b12faf6Smrg         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
6011b12faf6Smrg         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
6021b12faf6Smrg         test "X$echo_testing_string" = "X$echo_test_string"; then
6031b12faf6Smrg        ECHO="$dir/echo"
6041b12faf6Smrg        break
6051b12faf6Smrg      fi
6061b12faf6Smrg    done
60732b578d3Smrg    IFS="$lt_save_ifs"
60832b578d3Smrg
6091b12faf6Smrg    if test "X$ECHO" = Xecho; then
6101b12faf6Smrg      # We didn't find a better echo, so look for alternatives.
6111b12faf6Smrg      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
6121b12faf6Smrg         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
6131b12faf6Smrg         test "X$echo_testing_string" = "X$echo_test_string"; then
6141b12faf6Smrg        # This shell has a builtin print -r that does the trick.
6151b12faf6Smrg        ECHO='print -r'
6161b12faf6Smrg      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
6171b12faf6Smrg	   test "X$CONFIG_SHELL" != X/bin/ksh; then
6181b12faf6Smrg        # If we have ksh, try running configure again with it.
6191b12faf6Smrg        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6201b12faf6Smrg        export ORIGINAL_CONFIG_SHELL
6211b12faf6Smrg        CONFIG_SHELL=/bin/ksh
6221b12faf6Smrg        export CONFIG_SHELL
6231b12faf6Smrg        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
62432b578d3Smrg      else
6251b12faf6Smrg        # Try using printf.
6261b12faf6Smrg        ECHO='printf %s\n'
6271b12faf6Smrg        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
6281b12faf6Smrg	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
6291b12faf6Smrg	   test "X$echo_testing_string" = "X$echo_test_string"; then
6301b12faf6Smrg	  # Cool, printf works
6311b12faf6Smrg	  :
6321b12faf6Smrg        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
6331b12faf6Smrg	     test "X$echo_testing_string" = 'X\t' &&
6341b12faf6Smrg	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
6351b12faf6Smrg	     test "X$echo_testing_string" = "X$echo_test_string"; then
6361b12faf6Smrg	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
6371b12faf6Smrg	  export CONFIG_SHELL
6381b12faf6Smrg	  SHELL="$CONFIG_SHELL"
6391b12faf6Smrg	  export SHELL
6401b12faf6Smrg	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
6411b12faf6Smrg        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
6421b12faf6Smrg	     test "X$echo_testing_string" = 'X\t' &&
6431b12faf6Smrg	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
6441b12faf6Smrg	     test "X$echo_testing_string" = "X$echo_test_string"; then
6451b12faf6Smrg	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
6461b12faf6Smrg        else
6471b12faf6Smrg	  # maybe with a smaller string...
6481b12faf6Smrg	  prev=:
64932b578d3Smrg
6501b12faf6Smrg	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
6511b12faf6Smrg	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
6521b12faf6Smrg	    then
6531b12faf6Smrg	      break
6541b12faf6Smrg	    fi
6551b12faf6Smrg	    prev="$cmd"
6561b12faf6Smrg	  done
65732b578d3Smrg
6581b12faf6Smrg	  if test "$prev" != 'sed 50q "$0"'; then
6591b12faf6Smrg	    echo_test_string=`eval $prev`
6601b12faf6Smrg	    export echo_test_string
6611b12faf6Smrg	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
6621b12faf6Smrg	  else
6631b12faf6Smrg	    # Oops.  We lost completely, so just stick with echo.
6641b12faf6Smrg	    ECHO=echo
6651b12faf6Smrg	  fi
6661b12faf6Smrg        fi
66732b578d3Smrg      fi
66832b578d3Smrg    fi
66932b578d3Smrg  fi
67032b578d3Smrgfi
67132b578d3Smrg
67232b578d3Smrg# Copy echo and quote the copy suitably for passing to libtool from
67332b578d3Smrg# the Makefile, instead of quoting the original, which is used later.
6741b12faf6Smrglt_ECHO=$ECHO
6751b12faf6Smrgif test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
6761b12faf6Smrg   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
67732b578d3Smrgfi
67832b578d3Smrg
67932b578d3Smrg
68032b578d3Smrg
68132b578d3Smrg
6821b12faf6Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
6831b12faf6Smrgexec 6>&1
68432b578d3Smrg
68532b578d3Smrg# Name of the host.
6861b12faf6Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
68732b578d3Smrg# so uname gets run too.
68832b578d3Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
68932b578d3Smrg
69032b578d3Smrg#
69132b578d3Smrg# Initializations.
69232b578d3Smrg#
69332b578d3Smrgac_default_prefix=/usr/local
69432b578d3Smrgac_clean_files=
69532b578d3Smrgac_config_libobj_dir=.
69632b578d3SmrgLIBOBJS=
69732b578d3Smrgcross_compiling=no
69832b578d3Smrgsubdirs=
69932b578d3SmrgMFLAGS=
70032b578d3SmrgMAKEFLAGS=
70132b578d3Smrg
70232b578d3Smrg# Identity of this package.
70332b578d3SmrgPACKAGE_NAME='xf86-video-mach64'
70432b578d3SmrgPACKAGE_TARNAME='xf86-video-mach64'
7051b12faf6SmrgPACKAGE_VERSION='6.9.0'
7061b12faf6SmrgPACKAGE_STRING='xf86-video-mach64 6.9.0'
70732b578d3SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
7081b12faf6SmrgPACKAGE_URL=''
70932b578d3Smrg
71032b578d3Smrgac_unique_file="Makefile.am"
71132b578d3Smrg# Factoring default headers for most tests.
71232b578d3Smrgac_includes_default="\
71332b578d3Smrg#include <stdio.h>
71432b578d3Smrg#ifdef HAVE_SYS_TYPES_H
71532b578d3Smrg# include <sys/types.h>
71632b578d3Smrg#endif
71732b578d3Smrg#ifdef HAVE_SYS_STAT_H
71832b578d3Smrg# include <sys/stat.h>
71932b578d3Smrg#endif
72032b578d3Smrg#ifdef STDC_HEADERS
72132b578d3Smrg# include <stdlib.h>
72232b578d3Smrg# include <stddef.h>
72332b578d3Smrg#else
72432b578d3Smrg# ifdef HAVE_STDLIB_H
72532b578d3Smrg#  include <stdlib.h>
72632b578d3Smrg# endif
72732b578d3Smrg#endif
72832b578d3Smrg#ifdef HAVE_STRING_H
72932b578d3Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
73032b578d3Smrg#  include <memory.h>
73132b578d3Smrg# endif
73232b578d3Smrg# include <string.h>
73332b578d3Smrg#endif
73432b578d3Smrg#ifdef HAVE_STRINGS_H
73532b578d3Smrg# include <strings.h>
73632b578d3Smrg#endif
73732b578d3Smrg#ifdef HAVE_INTTYPES_H
73832b578d3Smrg# include <inttypes.h>
73932b578d3Smrg#endif
74032b578d3Smrg#ifdef HAVE_STDINT_H
74132b578d3Smrg# include <stdint.h>
74232b578d3Smrg#endif
74332b578d3Smrg#ifdef HAVE_UNISTD_H
74432b578d3Smrg# include <unistd.h>
74532b578d3Smrg#endif"
74632b578d3Smrg
7472a51b5beSmrgac_subst_vars='am__EXEEXT_FALSE
7482a51b5beSmrgam__EXEEXT_TRUE
7492a51b5beSmrgLTLIBOBJS
75032b578d3SmrgLIBOBJS
7512a51b5beSmrgDRIVER_NAME
7522a51b5beSmrgmoduledir
7532a51b5beSmrgXSERVER_LIBPCIACCESS_FALSE
7542a51b5beSmrgXSERVER_LIBPCIACCESS_TRUE
7552a51b5beSmrgPCIACCESS_LIBS
7562a51b5beSmrgPCIACCESS_CFLAGS
7572a51b5beSmrgUSE_EXA_FALSE
7582a51b5beSmrgUSE_EXA_TRUE
7592a51b5beSmrgATIMISC_TV_OUT_FALSE
7602a51b5beSmrgATIMISC_TV_OUT_TRUE
7612a51b5beSmrgATIMISC_DGA_FALSE
7622a51b5beSmrgATIMISC_DGA_TRUE
7632a51b5beSmrgATIMISC_CPIO_FALSE
7642a51b5beSmrgATIMISC_CPIO_TRUE
7652a51b5beSmrgDRI_LIBS
7662a51b5beSmrgDRI_CFLAGS
7672a51b5beSmrgDRI_FALSE
7682a51b5beSmrgDRI_TRUE
7692a51b5beSmrgHAVE_XEXTPROTO_71_FALSE
7702a51b5beSmrgHAVE_XEXTPROTO_71_TRUE
7712a51b5beSmrgXEXT_LIBS
7722a51b5beSmrgXEXT_CFLAGS
7732a51b5beSmrgXORG_LIBS
7742a51b5beSmrgXORG_CFLAGS
7751b12faf6SmrgOTOOL64
7761b12faf6SmrgOTOOL
7771b12faf6SmrgLIPO
7782a51b5beSmrgNMEDIT
7792a51b5beSmrgDSYMUTIL
7801b12faf6Smrglt_ECHO
7812a51b5beSmrgRANLIB
7822a51b5beSmrgAR
7831b12faf6SmrgOBJDUMP
7842a51b5beSmrgLN_S
7851b12faf6SmrgNM
7861b12faf6Smrgac_ct_DUMPBIN
7871b12faf6SmrgDUMPBIN
7881b12faf6SmrgLD
7891b12faf6SmrgFGREP
7901b12faf6SmrgLIBTOOL
7911b12faf6SmrgAM_BACKSLASH
7921b12faf6SmrgAM_DEFAULT_VERBOSITY
7931b12faf6SmrgMAN_SUBSTS
7941b12faf6SmrgXORG_MAN_PAGE
7951b12faf6SmrgADMIN_MAN_DIR
7961b12faf6SmrgDRIVER_MAN_DIR
7971b12faf6SmrgMISC_MAN_DIR
7981b12faf6SmrgFILE_MAN_DIR
7991b12faf6SmrgLIB_MAN_DIR
8001b12faf6SmrgAPP_MAN_DIR
8011b12faf6SmrgADMIN_MAN_SUFFIX
8021b12faf6SmrgDRIVER_MAN_SUFFIX
8031b12faf6SmrgMISC_MAN_SUFFIX
8041b12faf6SmrgFILE_MAN_SUFFIX
8051b12faf6SmrgLIB_MAN_SUFFIX
8061b12faf6SmrgAPP_MAN_SUFFIX
8071b12faf6SmrgSED
8081b12faf6Smrghost_os
8091b12faf6Smrghost_vendor
8101b12faf6Smrghost_cpu
8111b12faf6Smrghost
8121b12faf6Smrgbuild_os
8131b12faf6Smrgbuild_vendor
8141b12faf6Smrgbuild_cpu
8151b12faf6Smrgbuild
8161b12faf6SmrgINSTALL_CMD
8171b12faf6SmrgPKG_CONFIG_LIBDIR
8181b12faf6SmrgPKG_CONFIG_PATH
8191b12faf6SmrgPKG_CONFIG
8201b12faf6SmrgCHANGELOG_CMD
8211b12faf6SmrgCWARNFLAGS
8222a51b5beSmrgEGREP
8232a51b5beSmrgGREP
8241b12faf6SmrgCPP
8252a51b5beSmrgam__fastdepCC_FALSE
8262a51b5beSmrgam__fastdepCC_TRUE
8272a51b5beSmrgCCDEPMODE
8282a51b5beSmrgAMDEPBACKSLASH
8292a51b5beSmrgAMDEP_FALSE
8302a51b5beSmrgAMDEP_TRUE
8312a51b5beSmrgam__quote
8322a51b5beSmrgam__include
8332a51b5beSmrgDEPDIR
8342a51b5beSmrgOBJEXT
8352a51b5beSmrgEXEEXT
8362a51b5beSmrgac_ct_CC
8372a51b5beSmrgCPPFLAGS
8382a51b5beSmrgLDFLAGS
8392a51b5beSmrgCFLAGS
8402a51b5beSmrgCC
8412a51b5beSmrgMAINT
8422a51b5beSmrgMAINTAINER_MODE_FALSE
8432a51b5beSmrgMAINTAINER_MODE_TRUE
8442a51b5beSmrgam__untar
8452a51b5beSmrgam__tar
8462a51b5beSmrgAMTAR
8472a51b5beSmrgam__leading_dot
8482a51b5beSmrgSET_MAKE
8492a51b5beSmrgAWK
8502a51b5beSmrgmkdir_p
8512a51b5beSmrgMKDIR_P
8522a51b5beSmrgINSTALL_STRIP_PROGRAM
8532a51b5beSmrgSTRIP
8542a51b5beSmrginstall_sh
8552a51b5beSmrgMAKEINFO
8562a51b5beSmrgAUTOHEADER
8572a51b5beSmrgAUTOMAKE
8582a51b5beSmrgAUTOCONF
8592a51b5beSmrgACLOCAL
8602a51b5beSmrgVERSION
8612a51b5beSmrgPACKAGE
8622a51b5beSmrgCYGPATH_W
8632a51b5beSmrgam__isrc
8642a51b5beSmrgINSTALL_DATA
8652a51b5beSmrgINSTALL_SCRIPT
8662a51b5beSmrgINSTALL_PROGRAM
8672a51b5beSmrgtarget_alias
8682a51b5beSmrghost_alias
8692a51b5beSmrgbuild_alias
8702a51b5beSmrgLIBS
8712a51b5beSmrgECHO_T
8722a51b5beSmrgECHO_N
8732a51b5beSmrgECHO_C
8742a51b5beSmrgDEFS
8752a51b5beSmrgmandir
8762a51b5beSmrglocaledir
8772a51b5beSmrglibdir
8782a51b5beSmrgpsdir
8792a51b5beSmrgpdfdir
8802a51b5beSmrgdvidir
8812a51b5beSmrghtmldir
8822a51b5beSmrginfodir
8832a51b5beSmrgdocdir
8842a51b5beSmrgoldincludedir
8852a51b5beSmrgincludedir
8862a51b5beSmrglocalstatedir
8872a51b5beSmrgsharedstatedir
8882a51b5beSmrgsysconfdir
8892a51b5beSmrgdatadir
8902a51b5beSmrgdatarootdir
8912a51b5beSmrglibexecdir
8922a51b5beSmrgsbindir
8932a51b5beSmrgbindir
8942a51b5beSmrgprogram_transform_name
8952a51b5beSmrgprefix
8962a51b5beSmrgexec_prefix
8971b12faf6SmrgPACKAGE_URL
8982a51b5beSmrgPACKAGE_BUGREPORT
8992a51b5beSmrgPACKAGE_STRING
9002a51b5beSmrgPACKAGE_VERSION
9012a51b5beSmrgPACKAGE_TARNAME
9022a51b5beSmrgPACKAGE_NAME
9032a51b5beSmrgPATH_SEPARATOR
9042a51b5beSmrgSHELL'
90532b578d3Smrgac_subst_files=''
9062a51b5beSmrgac_user_opts='
9072a51b5beSmrgenable_option_checking
9082a51b5beSmrgenable_maintainer_mode
9091b12faf6Smrgenable_dependency_tracking
9101b12faf6Smrgenable_strict_compilation
9111b12faf6Smrgenable_silent_rules
9122a51b5beSmrgenable_static
9132a51b5beSmrgenable_shared
9141b12faf6Smrgwith_pic
9152a51b5beSmrgenable_fast_install
9162a51b5beSmrgwith_gnu_ld
9172a51b5beSmrgenable_libtool_lock
9182a51b5beSmrgwith_xorg_module_dir
9192a51b5beSmrgenable_dri
9202a51b5beSmrgenable_exa
9212a51b5beSmrg'
92232b578d3Smrg      ac_precious_vars='build_alias
92332b578d3Smrghost_alias
92432b578d3Smrgtarget_alias
92532b578d3SmrgCC
92632b578d3SmrgCFLAGS
92732b578d3SmrgLDFLAGS
92832b578d3SmrgLIBS
92932b578d3SmrgCPPFLAGS
93032b578d3SmrgCPP
93132b578d3SmrgPKG_CONFIG
9321b12faf6SmrgPKG_CONFIG_PATH
9331b12faf6SmrgPKG_CONFIG_LIBDIR
93432b578d3SmrgXORG_CFLAGS
93532b578d3SmrgXORG_LIBS
9362a51b5beSmrgXEXT_CFLAGS
9372a51b5beSmrgXEXT_LIBS
93832b578d3SmrgDRI_CFLAGS
93932b578d3SmrgDRI_LIBS
94032b578d3SmrgPCIACCESS_CFLAGS
94132b578d3SmrgPCIACCESS_LIBS'
94232b578d3Smrg
94332b578d3Smrg
94432b578d3Smrg# Initialize some variables set by options.
94532b578d3Smrgac_init_help=
94632b578d3Smrgac_init_version=false
9472a51b5beSmrgac_unrecognized_opts=
9482a51b5beSmrgac_unrecognized_sep=
94932b578d3Smrg# The variables have the same names as the options, with
95032b578d3Smrg# dashes changed to underlines.
95132b578d3Smrgcache_file=/dev/null
95232b578d3Smrgexec_prefix=NONE
95332b578d3Smrgno_create=
95432b578d3Smrgno_recursion=
95532b578d3Smrgprefix=NONE
95632b578d3Smrgprogram_prefix=NONE
95732b578d3Smrgprogram_suffix=NONE
95832b578d3Smrgprogram_transform_name=s,x,x,
95932b578d3Smrgsilent=
96032b578d3Smrgsite=
96132b578d3Smrgsrcdir=
96232b578d3Smrgverbose=
96332b578d3Smrgx_includes=NONE
96432b578d3Smrgx_libraries=NONE
96532b578d3Smrg
96632b578d3Smrg# Installation directory options.
96732b578d3Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
96832b578d3Smrg# and all the variables that are supposed to be based on exec_prefix
96932b578d3Smrg# by default will actually change.
97032b578d3Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
97132b578d3Smrg# (The list follows the same order as the GNU Coding Standards.)
97232b578d3Smrgbindir='${exec_prefix}/bin'
97332b578d3Smrgsbindir='${exec_prefix}/sbin'
97432b578d3Smrglibexecdir='${exec_prefix}/libexec'
97532b578d3Smrgdatarootdir='${prefix}/share'
97632b578d3Smrgdatadir='${datarootdir}'
97732b578d3Smrgsysconfdir='${prefix}/etc'
97832b578d3Smrgsharedstatedir='${prefix}/com'
97932b578d3Smrglocalstatedir='${prefix}/var'
98032b578d3Smrgincludedir='${prefix}/include'
98132b578d3Smrgoldincludedir='/usr/include'
98232b578d3Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
98332b578d3Smrginfodir='${datarootdir}/info'
98432b578d3Smrghtmldir='${docdir}'
98532b578d3Smrgdvidir='${docdir}'
98632b578d3Smrgpdfdir='${docdir}'
98732b578d3Smrgpsdir='${docdir}'
98832b578d3Smrglibdir='${exec_prefix}/lib'
98932b578d3Smrglocaledir='${datarootdir}/locale'
99032b578d3Smrgmandir='${datarootdir}/man'
99132b578d3Smrg
99232b578d3Smrgac_prev=
99332b578d3Smrgac_dashdash=
99432b578d3Smrgfor ac_option
99532b578d3Smrgdo
99632b578d3Smrg  # If the previous option needs an argument, assign it.
99732b578d3Smrg  if test -n "$ac_prev"; then
99832b578d3Smrg    eval $ac_prev=\$ac_option
99932b578d3Smrg    ac_prev=
100032b578d3Smrg    continue
100132b578d3Smrg  fi
100232b578d3Smrg
100332b578d3Smrg  case $ac_option in
10041b12faf6Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
10051b12faf6Smrg  *=)   ac_optarg= ;;
10061b12faf6Smrg  *)    ac_optarg=yes ;;
100732b578d3Smrg  esac
100832b578d3Smrg
100932b578d3Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
101032b578d3Smrg
101132b578d3Smrg  case $ac_dashdash$ac_option in
101232b578d3Smrg  --)
101332b578d3Smrg    ac_dashdash=yes ;;
101432b578d3Smrg
101532b578d3Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
101632b578d3Smrg    ac_prev=bindir ;;
101732b578d3Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101832b578d3Smrg    bindir=$ac_optarg ;;
101932b578d3Smrg
102032b578d3Smrg  -build | --build | --buil | --bui | --bu)
102132b578d3Smrg    ac_prev=build_alias ;;
102232b578d3Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102332b578d3Smrg    build_alias=$ac_optarg ;;
102432b578d3Smrg
102532b578d3Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
102632b578d3Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102732b578d3Smrg    ac_prev=cache_file ;;
102832b578d3Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102932b578d3Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103032b578d3Smrg    cache_file=$ac_optarg ;;
103132b578d3Smrg
103232b578d3Smrg  --config-cache | -C)
103332b578d3Smrg    cache_file=config.cache ;;
103432b578d3Smrg
103532b578d3Smrg  -datadir | --datadir | --datadi | --datad)
103632b578d3Smrg    ac_prev=datadir ;;
103732b578d3Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
103832b578d3Smrg    datadir=$ac_optarg ;;
103932b578d3Smrg
104032b578d3Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
104132b578d3Smrg  | --dataroo | --dataro | --datar)
104232b578d3Smrg    ac_prev=datarootdir ;;
104332b578d3Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
104432b578d3Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
104532b578d3Smrg    datarootdir=$ac_optarg ;;
104632b578d3Smrg
104732b578d3Smrg  -disable-* | --disable-*)
10482a51b5beSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
104932b578d3Smrg    # Reject names that are not valid shell variable names.
10502a51b5beSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10511b12faf6Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
10522a51b5beSmrg    ac_useropt_orig=$ac_useropt
10532a51b5beSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10542a51b5beSmrg    case $ac_user_opts in
10552a51b5beSmrg      *"
10562a51b5beSmrg"enable_$ac_useropt"
10572a51b5beSmrg"*) ;;
10582a51b5beSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
10592a51b5beSmrg	 ac_unrecognized_sep=', ';;
10602a51b5beSmrg    esac
10612a51b5beSmrg    eval enable_$ac_useropt=no ;;
106232b578d3Smrg
106332b578d3Smrg  -docdir | --docdir | --docdi | --doc | --do)
106432b578d3Smrg    ac_prev=docdir ;;
106532b578d3Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
106632b578d3Smrg    docdir=$ac_optarg ;;
106732b578d3Smrg
106832b578d3Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
106932b578d3Smrg    ac_prev=dvidir ;;
107032b578d3Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
107132b578d3Smrg    dvidir=$ac_optarg ;;
107232b578d3Smrg
107332b578d3Smrg  -enable-* | --enable-*)
10742a51b5beSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
107532b578d3Smrg    # Reject names that are not valid shell variable names.
10762a51b5beSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10771b12faf6Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
10782a51b5beSmrg    ac_useropt_orig=$ac_useropt
10792a51b5beSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10802a51b5beSmrg    case $ac_user_opts in
10812a51b5beSmrg      *"
10822a51b5beSmrg"enable_$ac_useropt"
10832a51b5beSmrg"*) ;;
10842a51b5beSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
10852a51b5beSmrg	 ac_unrecognized_sep=', ';;
10862a51b5beSmrg    esac
10872a51b5beSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
108832b578d3Smrg
108932b578d3Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
109032b578d3Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
109132b578d3Smrg  | --exec | --exe | --ex)
109232b578d3Smrg    ac_prev=exec_prefix ;;
109332b578d3Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
109432b578d3Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
109532b578d3Smrg  | --exec=* | --exe=* | --ex=*)
109632b578d3Smrg    exec_prefix=$ac_optarg ;;
109732b578d3Smrg
109832b578d3Smrg  -gas | --gas | --ga | --g)
109932b578d3Smrg    # Obsolete; use --with-gas.
110032b578d3Smrg    with_gas=yes ;;
110132b578d3Smrg
110232b578d3Smrg  -help | --help | --hel | --he | -h)
110332b578d3Smrg    ac_init_help=long ;;
110432b578d3Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
110532b578d3Smrg    ac_init_help=recursive ;;
110632b578d3Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
110732b578d3Smrg    ac_init_help=short ;;
110832b578d3Smrg
110932b578d3Smrg  -host | --host | --hos | --ho)
111032b578d3Smrg    ac_prev=host_alias ;;
111132b578d3Smrg  -host=* | --host=* | --hos=* | --ho=*)
111232b578d3Smrg    host_alias=$ac_optarg ;;
111332b578d3Smrg
111432b578d3Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
111532b578d3Smrg    ac_prev=htmldir ;;
111632b578d3Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
111732b578d3Smrg  | --ht=*)
111832b578d3Smrg    htmldir=$ac_optarg ;;
111932b578d3Smrg
112032b578d3Smrg  -includedir | --includedir | --includedi | --included | --include \
112132b578d3Smrg  | --includ | --inclu | --incl | --inc)
112232b578d3Smrg    ac_prev=includedir ;;
112332b578d3Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
112432b578d3Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
112532b578d3Smrg    includedir=$ac_optarg ;;
112632b578d3Smrg
112732b578d3Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
112832b578d3Smrg    ac_prev=infodir ;;
112932b578d3Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
113032b578d3Smrg    infodir=$ac_optarg ;;
113132b578d3Smrg
113232b578d3Smrg  -libdir | --libdir | --libdi | --libd)
113332b578d3Smrg    ac_prev=libdir ;;
113432b578d3Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
113532b578d3Smrg    libdir=$ac_optarg ;;
113632b578d3Smrg
113732b578d3Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
113832b578d3Smrg  | --libexe | --libex | --libe)
113932b578d3Smrg    ac_prev=libexecdir ;;
114032b578d3Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
114132b578d3Smrg  | --libexe=* | --libex=* | --libe=*)
114232b578d3Smrg    libexecdir=$ac_optarg ;;
114332b578d3Smrg
114432b578d3Smrg  -localedir | --localedir | --localedi | --localed | --locale)
114532b578d3Smrg    ac_prev=localedir ;;
114632b578d3Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
114732b578d3Smrg    localedir=$ac_optarg ;;
114832b578d3Smrg
114932b578d3Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
115032b578d3Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
115132b578d3Smrg    ac_prev=localstatedir ;;
115232b578d3Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
115332b578d3Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
115432b578d3Smrg    localstatedir=$ac_optarg ;;
115532b578d3Smrg
115632b578d3Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
115732b578d3Smrg    ac_prev=mandir ;;
115832b578d3Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
115932b578d3Smrg    mandir=$ac_optarg ;;
116032b578d3Smrg
116132b578d3Smrg  -nfp | --nfp | --nf)
116232b578d3Smrg    # Obsolete; use --without-fp.
116332b578d3Smrg    with_fp=no ;;
116432b578d3Smrg
116532b578d3Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
116632b578d3Smrg  | --no-cr | --no-c | -n)
116732b578d3Smrg    no_create=yes ;;
116832b578d3Smrg
116932b578d3Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
117032b578d3Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
117132b578d3Smrg    no_recursion=yes ;;
117232b578d3Smrg
117332b578d3Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
117432b578d3Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
117532b578d3Smrg  | --oldin | --oldi | --old | --ol | --o)
117632b578d3Smrg    ac_prev=oldincludedir ;;
117732b578d3Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
117832b578d3Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
117932b578d3Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
118032b578d3Smrg    oldincludedir=$ac_optarg ;;
118132b578d3Smrg
118232b578d3Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
118332b578d3Smrg    ac_prev=prefix ;;
118432b578d3Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
118532b578d3Smrg    prefix=$ac_optarg ;;
118632b578d3Smrg
118732b578d3Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
118832b578d3Smrg  | --program-pre | --program-pr | --program-p)
118932b578d3Smrg    ac_prev=program_prefix ;;
119032b578d3Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
119132b578d3Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
119232b578d3Smrg    program_prefix=$ac_optarg ;;
119332b578d3Smrg
119432b578d3Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
119532b578d3Smrg  | --program-suf | --program-su | --program-s)
119632b578d3Smrg    ac_prev=program_suffix ;;
119732b578d3Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
119832b578d3Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
119932b578d3Smrg    program_suffix=$ac_optarg ;;
120032b578d3Smrg
120132b578d3Smrg  -program-transform-name | --program-transform-name \
120232b578d3Smrg  | --program-transform-nam | --program-transform-na \
120332b578d3Smrg  | --program-transform-n | --program-transform- \
120432b578d3Smrg  | --program-transform | --program-transfor \
120532b578d3Smrg  | --program-transfo | --program-transf \
120632b578d3Smrg  | --program-trans | --program-tran \
120732b578d3Smrg  | --progr-tra | --program-tr | --program-t)
120832b578d3Smrg    ac_prev=program_transform_name ;;
120932b578d3Smrg  -program-transform-name=* | --program-transform-name=* \
121032b578d3Smrg  | --program-transform-nam=* | --program-transform-na=* \
121132b578d3Smrg  | --program-transform-n=* | --program-transform-=* \
121232b578d3Smrg  | --program-transform=* | --program-transfor=* \
121332b578d3Smrg  | --program-transfo=* | --program-transf=* \
121432b578d3Smrg  | --program-trans=* | --program-tran=* \
121532b578d3Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
121632b578d3Smrg    program_transform_name=$ac_optarg ;;
121732b578d3Smrg
121832b578d3Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
121932b578d3Smrg    ac_prev=pdfdir ;;
122032b578d3Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
122132b578d3Smrg    pdfdir=$ac_optarg ;;
122232b578d3Smrg
122332b578d3Smrg  -psdir | --psdir | --psdi | --psd | --ps)
122432b578d3Smrg    ac_prev=psdir ;;
122532b578d3Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
122632b578d3Smrg    psdir=$ac_optarg ;;
122732b578d3Smrg
122832b578d3Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
122932b578d3Smrg  | -silent | --silent | --silen | --sile | --sil)
123032b578d3Smrg    silent=yes ;;
123132b578d3Smrg
123232b578d3Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
123332b578d3Smrg    ac_prev=sbindir ;;
123432b578d3Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
123532b578d3Smrg  | --sbi=* | --sb=*)
123632b578d3Smrg    sbindir=$ac_optarg ;;
123732b578d3Smrg
123832b578d3Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
123932b578d3Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
124032b578d3Smrg  | --sharedst | --shareds | --shared | --share | --shar \
124132b578d3Smrg  | --sha | --sh)
124232b578d3Smrg    ac_prev=sharedstatedir ;;
124332b578d3Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
124432b578d3Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
124532b578d3Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
124632b578d3Smrg  | --sha=* | --sh=*)
124732b578d3Smrg    sharedstatedir=$ac_optarg ;;
124832b578d3Smrg
124932b578d3Smrg  -site | --site | --sit)
125032b578d3Smrg    ac_prev=site ;;
125132b578d3Smrg  -site=* | --site=* | --sit=*)
125232b578d3Smrg    site=$ac_optarg ;;
125332b578d3Smrg
125432b578d3Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
125532b578d3Smrg    ac_prev=srcdir ;;
125632b578d3Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
125732b578d3Smrg    srcdir=$ac_optarg ;;
125832b578d3Smrg
125932b578d3Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
126032b578d3Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
126132b578d3Smrg    ac_prev=sysconfdir ;;
126232b578d3Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
126332b578d3Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
126432b578d3Smrg    sysconfdir=$ac_optarg ;;
126532b578d3Smrg
126632b578d3Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
126732b578d3Smrg    ac_prev=target_alias ;;
126832b578d3Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
126932b578d3Smrg    target_alias=$ac_optarg ;;
127032b578d3Smrg
127132b578d3Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
127232b578d3Smrg    verbose=yes ;;
127332b578d3Smrg
127432b578d3Smrg  -version | --version | --versio | --versi | --vers | -V)
127532b578d3Smrg    ac_init_version=: ;;
127632b578d3Smrg
127732b578d3Smrg  -with-* | --with-*)
12782a51b5beSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
127932b578d3Smrg    # Reject names that are not valid shell variable names.
12802a51b5beSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12811b12faf6Smrg      as_fn_error $? "invalid package name: $ac_useropt"
12822a51b5beSmrg    ac_useropt_orig=$ac_useropt
12832a51b5beSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
12842a51b5beSmrg    case $ac_user_opts in
12852a51b5beSmrg      *"
12862a51b5beSmrg"with_$ac_useropt"
12872a51b5beSmrg"*) ;;
12882a51b5beSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
12892a51b5beSmrg	 ac_unrecognized_sep=', ';;
12902a51b5beSmrg    esac
12912a51b5beSmrg    eval with_$ac_useropt=\$ac_optarg ;;
129232b578d3Smrg
129332b578d3Smrg  -without-* | --without-*)
12942a51b5beSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
129532b578d3Smrg    # Reject names that are not valid shell variable names.
12962a51b5beSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12971b12faf6Smrg      as_fn_error $? "invalid package name: $ac_useropt"
12982a51b5beSmrg    ac_useropt_orig=$ac_useropt
12992a51b5beSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
13002a51b5beSmrg    case $ac_user_opts in
13012a51b5beSmrg      *"
13022a51b5beSmrg"with_$ac_useropt"
13032a51b5beSmrg"*) ;;
13042a51b5beSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
13052a51b5beSmrg	 ac_unrecognized_sep=', ';;
13062a51b5beSmrg    esac
13072a51b5beSmrg    eval with_$ac_useropt=no ;;
130832b578d3Smrg
130932b578d3Smrg  --x)
131032b578d3Smrg    # Obsolete; use --with-x.
131132b578d3Smrg    with_x=yes ;;
131232b578d3Smrg
131332b578d3Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
131432b578d3Smrg  | --x-incl | --x-inc | --x-in | --x-i)
131532b578d3Smrg    ac_prev=x_includes ;;
131632b578d3Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
131732b578d3Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
131832b578d3Smrg    x_includes=$ac_optarg ;;
131932b578d3Smrg
132032b578d3Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
132132b578d3Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
132232b578d3Smrg    ac_prev=x_libraries ;;
132332b578d3Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
132432b578d3Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
132532b578d3Smrg    x_libraries=$ac_optarg ;;
132632b578d3Smrg
13271b12faf6Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
13281b12faf6SmrgTry \`$0 --help' for more information"
132932b578d3Smrg    ;;
133032b578d3Smrg
133132b578d3Smrg  *=*)
133232b578d3Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
133332b578d3Smrg    # Reject names that are not valid shell variable names.
13341b12faf6Smrg    case $ac_envvar in #(
13351b12faf6Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
13361b12faf6Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
13371b12faf6Smrg    esac
133832b578d3Smrg    eval $ac_envvar=\$ac_optarg
133932b578d3Smrg    export $ac_envvar ;;
134032b578d3Smrg
134132b578d3Smrg  *)
134232b578d3Smrg    # FIXME: should be removed in autoconf 3.0.
13432a51b5beSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
134432b578d3Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
13452a51b5beSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
134632b578d3Smrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
134732b578d3Smrg    ;;
134832b578d3Smrg
134932b578d3Smrg  esac
135032b578d3Smrgdone
135132b578d3Smrg
135232b578d3Smrgif test -n "$ac_prev"; then
135332b578d3Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
13541b12faf6Smrg  as_fn_error $? "missing argument to $ac_option"
135532b578d3Smrgfi
135632b578d3Smrg
13572a51b5beSmrgif test -n "$ac_unrecognized_opts"; then
13582a51b5beSmrg  case $enable_option_checking in
13592a51b5beSmrg    no) ;;
13601b12faf6Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
13612a51b5beSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13622a51b5beSmrg  esac
13632a51b5beSmrgfi
13642a51b5beSmrg
13652a51b5beSmrg# Check all directory arguments for consistency.
136632b578d3Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
136732b578d3Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
136832b578d3Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
136932b578d3Smrg		libdir localedir mandir
137032b578d3Smrgdo
137132b578d3Smrg  eval ac_val=\$$ac_var
13722a51b5beSmrg  # Remove trailing slashes.
13732a51b5beSmrg  case $ac_val in
13742a51b5beSmrg    */ )
13752a51b5beSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
13762a51b5beSmrg      eval $ac_var=\$ac_val;;
13772a51b5beSmrg  esac
13782a51b5beSmrg  # Be sure to have absolute directory names.
137932b578d3Smrg  case $ac_val in
138032b578d3Smrg    [\\/$]* | ?:[\\/]* )  continue;;
138132b578d3Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
138232b578d3Smrg  esac
13831b12faf6Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
138432b578d3Smrgdone
138532b578d3Smrg
138632b578d3Smrg# There might be people who depend on the old broken behavior: `$host'
138732b578d3Smrg# used to hold the argument of --host etc.
138832b578d3Smrg# FIXME: To remove some day.
138932b578d3Smrgbuild=$build_alias
139032b578d3Smrghost=$host_alias
139132b578d3Smrgtarget=$target_alias
139232b578d3Smrg
139332b578d3Smrg# FIXME: To remove some day.
139432b578d3Smrgif test "x$host_alias" != x; then
139532b578d3Smrg  if test "x$build_alias" = x; then
139632b578d3Smrg    cross_compiling=maybe
13971b12faf6Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
13981b12faf6Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
139932b578d3Smrg  elif test "x$build_alias" != "x$host_alias"; then
140032b578d3Smrg    cross_compiling=yes
140132b578d3Smrg  fi
140232b578d3Smrgfi
140332b578d3Smrg
140432b578d3Smrgac_tool_prefix=
140532b578d3Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
140632b578d3Smrg
140732b578d3Smrgtest "$silent" = yes && exec 6>/dev/null
140832b578d3Smrg
140932b578d3Smrg
141032b578d3Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
141132b578d3Smrgac_ls_di=`ls -di .` &&
141232b578d3Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
14131b12faf6Smrg  as_fn_error $? "working directory cannot be determined"
141432b578d3Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
14151b12faf6Smrg  as_fn_error $? "pwd does not report name of working directory"
141632b578d3Smrg
141732b578d3Smrg
141832b578d3Smrg# Find the source files, if location was not specified.
141932b578d3Smrgif test -z "$srcdir"; then
142032b578d3Smrg  ac_srcdir_defaulted=yes
142132b578d3Smrg  # Try the directory containing this script, then the parent directory.
14222a51b5beSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
14232a51b5beSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14242a51b5beSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
14252a51b5beSmrg	 X"$as_myself" : 'X\(//\)$' \| \
14262a51b5beSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
14272a51b5beSmrg$as_echo X"$as_myself" |
142832b578d3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
142932b578d3Smrg	    s//\1/
143032b578d3Smrg	    q
143132b578d3Smrg	  }
143232b578d3Smrg	  /^X\(\/\/\)[^/].*/{
143332b578d3Smrg	    s//\1/
143432b578d3Smrg	    q
143532b578d3Smrg	  }
143632b578d3Smrg	  /^X\(\/\/\)$/{
143732b578d3Smrg	    s//\1/
143832b578d3Smrg	    q
143932b578d3Smrg	  }
144032b578d3Smrg	  /^X\(\/\).*/{
144132b578d3Smrg	    s//\1/
144232b578d3Smrg	    q
144332b578d3Smrg	  }
144432b578d3Smrg	  s/.*/./; q'`
144532b578d3Smrg  srcdir=$ac_confdir
144632b578d3Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
144732b578d3Smrg    srcdir=..
144832b578d3Smrg  fi
144932b578d3Smrgelse
145032b578d3Smrg  ac_srcdir_defaulted=no
145132b578d3Smrgfi
145232b578d3Smrgif test ! -r "$srcdir/$ac_unique_file"; then
145332b578d3Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
14541b12faf6Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
145532b578d3Smrgfi
145632b578d3Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
145732b578d3Smrgac_abs_confdir=`(
14581b12faf6Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
145932b578d3Smrg	pwd)`
146032b578d3Smrg# When building in place, set srcdir=.
146132b578d3Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
146232b578d3Smrg  srcdir=.
146332b578d3Smrgfi
146432b578d3Smrg# Remove unnecessary trailing slashes from srcdir.
146532b578d3Smrg# Double slashes in file names in object file debugging info
146632b578d3Smrg# mess up M-x gdb in Emacs.
146732b578d3Smrgcase $srcdir in
146832b578d3Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
146932b578d3Smrgesac
147032b578d3Smrgfor ac_var in $ac_precious_vars; do
147132b578d3Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
147232b578d3Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
147332b578d3Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
147432b578d3Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
147532b578d3Smrgdone
147632b578d3Smrg
147732b578d3Smrg#
147832b578d3Smrg# Report the --help message.
147932b578d3Smrg#
148032b578d3Smrgif test "$ac_init_help" = "long"; then
148132b578d3Smrg  # Omit some internal or obsolete options to make the list less imposing.
148232b578d3Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
148332b578d3Smrg  cat <<_ACEOF
14841b12faf6Smrg\`configure' configures xf86-video-mach64 6.9.0 to adapt to many kinds of systems.
148532b578d3Smrg
148632b578d3SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
148732b578d3Smrg
148832b578d3SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
148932b578d3SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
149032b578d3Smrg
149132b578d3SmrgDefaults for the options are specified in brackets.
149232b578d3Smrg
149332b578d3SmrgConfiguration:
149432b578d3Smrg  -h, --help              display this help and exit
149532b578d3Smrg      --help=short        display options specific to this package
149632b578d3Smrg      --help=recursive    display the short help of all the included packages
149732b578d3Smrg  -V, --version           display version information and exit
14981b12faf6Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
149932b578d3Smrg      --cache-file=FILE   cache test results in FILE [disabled]
150032b578d3Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
150132b578d3Smrg  -n, --no-create         do not create output files
150232b578d3Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
150332b578d3Smrg
150432b578d3SmrgInstallation directories:
150532b578d3Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
15062a51b5beSmrg                          [$ac_default_prefix]
150732b578d3Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
15082a51b5beSmrg                          [PREFIX]
150932b578d3Smrg
151032b578d3SmrgBy default, \`make install' will install all the files in
151132b578d3Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
151232b578d3Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
151332b578d3Smrgfor instance \`--prefix=\$HOME'.
151432b578d3Smrg
151532b578d3SmrgFor better control, use the options below.
151632b578d3Smrg
151732b578d3SmrgFine tuning of the installation directories:
15182a51b5beSmrg  --bindir=DIR            user executables [EPREFIX/bin]
15192a51b5beSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
15202a51b5beSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
15212a51b5beSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
15222a51b5beSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
15232a51b5beSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
15242a51b5beSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
15252a51b5beSmrg  --includedir=DIR        C header files [PREFIX/include]
15262a51b5beSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
15272a51b5beSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
15282a51b5beSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
15292a51b5beSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
15302a51b5beSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
15312a51b5beSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
15322a51b5beSmrg  --docdir=DIR            documentation root
15332a51b5beSmrg                          [DATAROOTDIR/doc/xf86-video-mach64]
15342a51b5beSmrg  --htmldir=DIR           html documentation [DOCDIR]
15352a51b5beSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
15362a51b5beSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
15372a51b5beSmrg  --psdir=DIR             ps documentation [DOCDIR]
153832b578d3Smrg_ACEOF
153932b578d3Smrg
154032b578d3Smrg  cat <<\_ACEOF
154132b578d3Smrg
154232b578d3SmrgProgram names:
154332b578d3Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
154432b578d3Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
154532b578d3Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
154632b578d3Smrg
154732b578d3SmrgSystem types:
154832b578d3Smrg  --build=BUILD     configure for building on BUILD [guessed]
154932b578d3Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
155032b578d3Smrg_ACEOF
155132b578d3Smrgfi
155232b578d3Smrg
155332b578d3Smrgif test -n "$ac_init_help"; then
155432b578d3Smrg  case $ac_init_help in
15551b12faf6Smrg     short | recursive ) echo "Configuration of xf86-video-mach64 6.9.0:";;
155632b578d3Smrg   esac
155732b578d3Smrg  cat <<\_ACEOF
155832b578d3Smrg
155932b578d3SmrgOptional Features:
15602a51b5beSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
156132b578d3Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
156232b578d3Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
156332b578d3Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
156432b578d3Smrg			  (and sometimes confusing) to the casual installer
15651b12faf6Smrg  --disable-dependency-tracking  speeds up one-time build
15661b12faf6Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
15671b12faf6Smrg  --enable-strict-compilation
15681b12faf6Smrg                          Enable all warnings from compiler and make them
15691b12faf6Smrg                          errors (default: disabled)
15701b12faf6Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
15711b12faf6Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
157232b578d3Smrg  --enable-static[=PKGS]  build static libraries [default=no]
157332b578d3Smrg  --enable-shared[=PKGS]  build shared libraries [default=yes]
157432b578d3Smrg  --enable-fast-install[=PKGS]
157532b578d3Smrg                          optimize for fast installation [default=yes]
157632b578d3Smrg  --disable-libtool-lock  avoid locking (might break parallel builds)
15771b12faf6Smrg  --disable-dri           Disable DRI support [[default=auto]]
15781b12faf6Smrg  --disable-exa           Disable EXA support [[default=enabled]]
157932b578d3Smrg
158032b578d3SmrgOptional Packages:
158132b578d3Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
158232b578d3Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
158332b578d3Smrg  --with-pic              try to use only PIC/non-PIC objects [default=use
158432b578d3Smrg                          both]
15851b12faf6Smrg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
158632b578d3Smrg  --with-xorg-module-dir=DIR
158732b578d3Smrg                          Default xorg module directory
15881b12faf6Smrg                          [[default=$libdir/xorg/modules]]
158932b578d3Smrg
159032b578d3SmrgSome influential environment variables:
159132b578d3Smrg  CC          C compiler command
159232b578d3Smrg  CFLAGS      C compiler flags
159332b578d3Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
159432b578d3Smrg              nonstandard directory <lib dir>
159532b578d3Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
15961b12faf6Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
159732b578d3Smrg              you have headers in a nonstandard directory <include dir>
159832b578d3Smrg  CPP         C preprocessor
159932b578d3Smrg  PKG_CONFIG  path to pkg-config utility
16001b12faf6Smrg  PKG_CONFIG_PATH
16011b12faf6Smrg              directories to add to pkg-config's search path
16021b12faf6Smrg  PKG_CONFIG_LIBDIR
16031b12faf6Smrg              path overriding pkg-config's built-in search path
160432b578d3Smrg  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
160532b578d3Smrg  XORG_LIBS   linker flags for XORG, overriding pkg-config
16062a51b5beSmrg  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
16072a51b5beSmrg  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
160832b578d3Smrg  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
160932b578d3Smrg  DRI_LIBS    linker flags for DRI, overriding pkg-config
161032b578d3Smrg  PCIACCESS_CFLAGS
161132b578d3Smrg              C compiler flags for PCIACCESS, overriding pkg-config
161232b578d3Smrg  PCIACCESS_LIBS
161332b578d3Smrg              linker flags for PCIACCESS, overriding pkg-config
161432b578d3Smrg
161532b578d3SmrgUse these variables to override the choices made by `configure' or to help
161632b578d3Smrgit to find libraries and programs with nonstandard names/locations.
161732b578d3Smrg
161832b578d3SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
161932b578d3Smrg_ACEOF
162032b578d3Smrgac_status=$?
162132b578d3Smrgfi
162232b578d3Smrg
162332b578d3Smrgif test "$ac_init_help" = "recursive"; then
162432b578d3Smrg  # If there are subdirs, report their specific --help.
162532b578d3Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
16262a51b5beSmrg    test -d "$ac_dir" ||
16272a51b5beSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
16282a51b5beSmrg      continue
162932b578d3Smrg    ac_builddir=.
163032b578d3Smrg
163132b578d3Smrgcase "$ac_dir" in
163232b578d3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
163332b578d3Smrg*)
16342a51b5beSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
163532b578d3Smrg  # A ".." for each directory in $ac_dir_suffix.
16362a51b5beSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
163732b578d3Smrg  case $ac_top_builddir_sub in
163832b578d3Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
163932b578d3Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
164032b578d3Smrg  esac ;;
164132b578d3Smrgesac
164232b578d3Smrgac_abs_top_builddir=$ac_pwd
164332b578d3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
164432b578d3Smrg# for backward compatibility:
164532b578d3Smrgac_top_builddir=$ac_top_build_prefix
164632b578d3Smrg
164732b578d3Smrgcase $srcdir in
164832b578d3Smrg  .)  # We are building in place.
164932b578d3Smrg    ac_srcdir=.
165032b578d3Smrg    ac_top_srcdir=$ac_top_builddir_sub
165132b578d3Smrg    ac_abs_top_srcdir=$ac_pwd ;;
165232b578d3Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
165332b578d3Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
165432b578d3Smrg    ac_top_srcdir=$srcdir
165532b578d3Smrg    ac_abs_top_srcdir=$srcdir ;;
165632b578d3Smrg  *) # Relative name.
165732b578d3Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
165832b578d3Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
165932b578d3Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
166032b578d3Smrgesac
166132b578d3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
166232b578d3Smrg
166332b578d3Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
166432b578d3Smrg    # Check for guested configure.
166532b578d3Smrg    if test -f "$ac_srcdir/configure.gnu"; then
166632b578d3Smrg      echo &&
166732b578d3Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
166832b578d3Smrg    elif test -f "$ac_srcdir/configure"; then
166932b578d3Smrg      echo &&
167032b578d3Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
167132b578d3Smrg    else
16722a51b5beSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
167332b578d3Smrg    fi || ac_status=$?
167432b578d3Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
167532b578d3Smrg  done
167632b578d3Smrgfi
167732b578d3Smrg
167832b578d3Smrgtest -n "$ac_init_help" && exit $ac_status
167932b578d3Smrgif $ac_init_version; then
168032b578d3Smrg  cat <<\_ACEOF
16811b12faf6Smrgxf86-video-mach64 configure 6.9.0
16821b12faf6Smrggenerated by GNU Autoconf 2.67
168332b578d3Smrg
16841b12faf6SmrgCopyright (C) 2010 Free Software Foundation, Inc.
168532b578d3SmrgThis configure script is free software; the Free Software Foundation
168632b578d3Smrggives unlimited permission to copy, distribute and modify it.
168732b578d3Smrg_ACEOF
168832b578d3Smrg  exit
168932b578d3Smrgfi
16901b12faf6Smrg
16911b12faf6Smrg## ------------------------ ##
16921b12faf6Smrg## Autoconf initialization. ##
16931b12faf6Smrg## ------------------------ ##
16941b12faf6Smrg
16951b12faf6Smrg# ac_fn_c_try_compile LINENO
16961b12faf6Smrg# --------------------------
16971b12faf6Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
16981b12faf6Smrgac_fn_c_try_compile ()
16991b12faf6Smrg{
17001b12faf6Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17011b12faf6Smrg  rm -f conftest.$ac_objext
17021b12faf6Smrg  if { { ac_try="$ac_compile"
17031b12faf6Smrgcase "(($ac_try" in
17041b12faf6Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051b12faf6Smrg  *) ac_try_echo=$ac_try;;
17061b12faf6Smrgesac
17071b12faf6Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17081b12faf6Smrg$as_echo "$ac_try_echo"; } >&5
17091b12faf6Smrg  (eval "$ac_compile") 2>conftest.err
17101b12faf6Smrg  ac_status=$?
17111b12faf6Smrg  if test -s conftest.err; then
17121b12faf6Smrg    grep -v '^ *+' conftest.err >conftest.er1
17131b12faf6Smrg    cat conftest.er1 >&5
17141b12faf6Smrg    mv -f conftest.er1 conftest.err
17151b12faf6Smrg  fi
17161b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17171b12faf6Smrg  test $ac_status = 0; } && {
17181b12faf6Smrg	 test -z "$ac_c_werror_flag" ||
17191b12faf6Smrg	 test ! -s conftest.err
17201b12faf6Smrg       } && test -s conftest.$ac_objext; then :
17211b12faf6Smrg  ac_retval=0
17221b12faf6Smrgelse
17231b12faf6Smrg  $as_echo "$as_me: failed program was:" >&5
17241b12faf6Smrgsed 's/^/| /' conftest.$ac_ext >&5
17251b12faf6Smrg
17261b12faf6Smrg	ac_retval=1
17271b12faf6Smrgfi
17281b12faf6Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
17291b12faf6Smrg  as_fn_set_status $ac_retval
17301b12faf6Smrg
17311b12faf6Smrg} # ac_fn_c_try_compile
17321b12faf6Smrg
17331b12faf6Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
17341b12faf6Smrg# ---------------------------------------------
17351b12faf6Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
17361b12faf6Smrg# accordingly.
17371b12faf6Smrgac_fn_c_check_decl ()
17381b12faf6Smrg{
17391b12faf6Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17401b12faf6Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
17411b12faf6Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
17421b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
17431b12faf6Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
17441b12faf6Smrgif eval "test \"\${$3+set}\"" = set; then :
17451b12faf6Smrg  $as_echo_n "(cached) " >&6
17461b12faf6Smrgelse
17471b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481b12faf6Smrg/* end confdefs.h.  */
17491b12faf6Smrg$4
17501b12faf6Smrgint
17511b12faf6Smrgmain ()
17521b12faf6Smrg{
17531b12faf6Smrg#ifndef $as_decl_name
17541b12faf6Smrg#ifdef __cplusplus
17551b12faf6Smrg  (void) $as_decl_use;
17561b12faf6Smrg#else
17571b12faf6Smrg  (void) $as_decl_name;
17581b12faf6Smrg#endif
17591b12faf6Smrg#endif
17601b12faf6Smrg
17611b12faf6Smrg  ;
17621b12faf6Smrg  return 0;
17631b12faf6Smrg}
17641b12faf6Smrg_ACEOF
17651b12faf6Smrgif ac_fn_c_try_compile "$LINENO"; then :
17661b12faf6Smrg  eval "$3=yes"
17671b12faf6Smrgelse
17681b12faf6Smrg  eval "$3=no"
17691b12faf6Smrgfi
17701b12faf6Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17711b12faf6Smrgfi
17721b12faf6Smrgeval ac_res=\$$3
17731b12faf6Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17741b12faf6Smrg$as_echo "$ac_res" >&6; }
17751b12faf6Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
17761b12faf6Smrg
17771b12faf6Smrg} # ac_fn_c_check_decl
17781b12faf6Smrg
17791b12faf6Smrg# ac_fn_c_try_cpp LINENO
17801b12faf6Smrg# ----------------------
17811b12faf6Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
17821b12faf6Smrgac_fn_c_try_cpp ()
17831b12faf6Smrg{
17841b12faf6Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17851b12faf6Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
17861b12faf6Smrgcase "(($ac_try" in
17871b12faf6Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17881b12faf6Smrg  *) ac_try_echo=$ac_try;;
17891b12faf6Smrgesac
17901b12faf6Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17911b12faf6Smrg$as_echo "$ac_try_echo"; } >&5
17921b12faf6Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
17931b12faf6Smrg  ac_status=$?
17941b12faf6Smrg  if test -s conftest.err; then
17951b12faf6Smrg    grep -v '^ *+' conftest.err >conftest.er1
17961b12faf6Smrg    cat conftest.er1 >&5
17971b12faf6Smrg    mv -f conftest.er1 conftest.err
17981b12faf6Smrg  fi
17991b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18001b12faf6Smrg  test $ac_status = 0; } > conftest.i && {
18011b12faf6Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18021b12faf6Smrg	 test ! -s conftest.err
18031b12faf6Smrg       }; then :
18041b12faf6Smrg  ac_retval=0
18051b12faf6Smrgelse
18061b12faf6Smrg  $as_echo "$as_me: failed program was:" >&5
18071b12faf6Smrgsed 's/^/| /' conftest.$ac_ext >&5
18081b12faf6Smrg
18091b12faf6Smrg    ac_retval=1
18101b12faf6Smrgfi
18111b12faf6Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
18121b12faf6Smrg  as_fn_set_status $ac_retval
18131b12faf6Smrg
18141b12faf6Smrg} # ac_fn_c_try_cpp
18151b12faf6Smrg
18161b12faf6Smrg# ac_fn_c_try_run LINENO
18171b12faf6Smrg# ----------------------
18181b12faf6Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
18191b12faf6Smrg# that executables *can* be run.
18201b12faf6Smrgac_fn_c_try_run ()
18211b12faf6Smrg{
18221b12faf6Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18231b12faf6Smrg  if { { ac_try="$ac_link"
18241b12faf6Smrgcase "(($ac_try" in
18251b12faf6Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261b12faf6Smrg  *) ac_try_echo=$ac_try;;
18271b12faf6Smrgesac
18281b12faf6Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18291b12faf6Smrg$as_echo "$ac_try_echo"; } >&5
18301b12faf6Smrg  (eval "$ac_link") 2>&5
18311b12faf6Smrg  ac_status=$?
18321b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18331b12faf6Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
18341b12faf6Smrg  { { case "(($ac_try" in
18351b12faf6Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361b12faf6Smrg  *) ac_try_echo=$ac_try;;
18371b12faf6Smrgesac
18381b12faf6Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18391b12faf6Smrg$as_echo "$ac_try_echo"; } >&5
18401b12faf6Smrg  (eval "$ac_try") 2>&5
18411b12faf6Smrg  ac_status=$?
18421b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18431b12faf6Smrg  test $ac_status = 0; }; }; then :
18441b12faf6Smrg  ac_retval=0
18451b12faf6Smrgelse
18461b12faf6Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
18471b12faf6Smrg       $as_echo "$as_me: failed program was:" >&5
18481b12faf6Smrgsed 's/^/| /' conftest.$ac_ext >&5
18491b12faf6Smrg
18501b12faf6Smrg       ac_retval=$ac_status
18511b12faf6Smrgfi
18521b12faf6Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
18531b12faf6Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
18541b12faf6Smrg  as_fn_set_status $ac_retval
18551b12faf6Smrg
18561b12faf6Smrg} # ac_fn_c_try_run
18571b12faf6Smrg
18581b12faf6Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
18591b12faf6Smrg# -------------------------------------------------------
18601b12faf6Smrg# Tests whether HEADER exists and can be compiled using the include files in
18611b12faf6Smrg# INCLUDES, setting the cache variable VAR accordingly.
18621b12faf6Smrgac_fn_c_check_header_compile ()
18631b12faf6Smrg{
18641b12faf6Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18651b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18661b12faf6Smrg$as_echo_n "checking for $2... " >&6; }
18671b12faf6Smrgif eval "test \"\${$3+set}\"" = set; then :
18681b12faf6Smrg  $as_echo_n "(cached) " >&6
18691b12faf6Smrgelse
18701b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711b12faf6Smrg/* end confdefs.h.  */
18721b12faf6Smrg$4
18731b12faf6Smrg#include <$2>
18741b12faf6Smrg_ACEOF
18751b12faf6Smrgif ac_fn_c_try_compile "$LINENO"; then :
18761b12faf6Smrg  eval "$3=yes"
18771b12faf6Smrgelse
18781b12faf6Smrg  eval "$3=no"
18791b12faf6Smrgfi
18801b12faf6Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18811b12faf6Smrgfi
18821b12faf6Smrgeval ac_res=\$$3
18831b12faf6Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18841b12faf6Smrg$as_echo "$ac_res" >&6; }
18851b12faf6Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
18861b12faf6Smrg
18871b12faf6Smrg} # ac_fn_c_check_header_compile
18881b12faf6Smrg
18891b12faf6Smrg# ac_fn_c_try_link LINENO
18901b12faf6Smrg# -----------------------
18911b12faf6Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
18921b12faf6Smrgac_fn_c_try_link ()
18931b12faf6Smrg{
18941b12faf6Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18951b12faf6Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
18961b12faf6Smrg  if { { ac_try="$ac_link"
18971b12faf6Smrgcase "(($ac_try" in
18981b12faf6Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991b12faf6Smrg  *) ac_try_echo=$ac_try;;
19001b12faf6Smrgesac
19011b12faf6Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19021b12faf6Smrg$as_echo "$ac_try_echo"; } >&5
19031b12faf6Smrg  (eval "$ac_link") 2>conftest.err
19041b12faf6Smrg  ac_status=$?
19051b12faf6Smrg  if test -s conftest.err; then
19061b12faf6Smrg    grep -v '^ *+' conftest.err >conftest.er1
19071b12faf6Smrg    cat conftest.er1 >&5
19081b12faf6Smrg    mv -f conftest.er1 conftest.err
19091b12faf6Smrg  fi
19101b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19111b12faf6Smrg  test $ac_status = 0; } && {
19121b12faf6Smrg	 test -z "$ac_c_werror_flag" ||
19131b12faf6Smrg	 test ! -s conftest.err
19141b12faf6Smrg       } && test -s conftest$ac_exeext && {
19151b12faf6Smrg	 test "$cross_compiling" = yes ||
19161b12faf6Smrg	 $as_test_x conftest$ac_exeext
19171b12faf6Smrg       }; then :
19181b12faf6Smrg  ac_retval=0
19191b12faf6Smrgelse
19201b12faf6Smrg  $as_echo "$as_me: failed program was:" >&5
19211b12faf6Smrgsed 's/^/| /' conftest.$ac_ext >&5
19221b12faf6Smrg
19231b12faf6Smrg	ac_retval=1
19241b12faf6Smrgfi
19251b12faf6Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
19261b12faf6Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
19271b12faf6Smrg  # interfere with the next link command; also delete a directory that is
19281b12faf6Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
19291b12faf6Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
19301b12faf6Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
19311b12faf6Smrg  as_fn_set_status $ac_retval
19321b12faf6Smrg
19331b12faf6Smrg} # ac_fn_c_try_link
19341b12faf6Smrg
19351b12faf6Smrg# ac_fn_c_check_func LINENO FUNC VAR
19361b12faf6Smrg# ----------------------------------
19371b12faf6Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
19381b12faf6Smrgac_fn_c_check_func ()
19391b12faf6Smrg{
19401b12faf6Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19411b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
19421b12faf6Smrg$as_echo_n "checking for $2... " >&6; }
19431b12faf6Smrgif eval "test \"\${$3+set}\"" = set; then :
19441b12faf6Smrg  $as_echo_n "(cached) " >&6
19451b12faf6Smrgelse
19461b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19471b12faf6Smrg/* end confdefs.h.  */
19481b12faf6Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
19491b12faf6Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19501b12faf6Smrg#define $2 innocuous_$2
19511b12faf6Smrg
19521b12faf6Smrg/* System header to define __stub macros and hopefully few prototypes,
19531b12faf6Smrg    which can conflict with char $2 (); below.
19541b12faf6Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19551b12faf6Smrg    <limits.h> exists even on freestanding compilers.  */
19561b12faf6Smrg
19571b12faf6Smrg#ifdef __STDC__
19581b12faf6Smrg# include <limits.h>
19591b12faf6Smrg#else
19601b12faf6Smrg# include <assert.h>
19611b12faf6Smrg#endif
19621b12faf6Smrg
19631b12faf6Smrg#undef $2
19641b12faf6Smrg
19651b12faf6Smrg/* Override any GCC internal prototype to avoid an error.
19661b12faf6Smrg   Use char because int might match the return type of a GCC
19671b12faf6Smrg   builtin and then its argument prototype would still apply.  */
19681b12faf6Smrg#ifdef __cplusplus
19691b12faf6Smrgextern "C"
19701b12faf6Smrg#endif
19711b12faf6Smrgchar $2 ();
19721b12faf6Smrg/* The GNU C library defines this for functions which it implements
19731b12faf6Smrg    to always fail with ENOSYS.  Some functions are actually named
19741b12faf6Smrg    something starting with __ and the normal name is an alias.  */
19751b12faf6Smrg#if defined __stub_$2 || defined __stub___$2
19761b12faf6Smrgchoke me
19771b12faf6Smrg#endif
19781b12faf6Smrg
19791b12faf6Smrgint
19801b12faf6Smrgmain ()
19811b12faf6Smrg{
19821b12faf6Smrgreturn $2 ();
19831b12faf6Smrg  ;
19841b12faf6Smrg  return 0;
19851b12faf6Smrg}
19861b12faf6Smrg_ACEOF
19871b12faf6Smrgif ac_fn_c_try_link "$LINENO"; then :
19881b12faf6Smrg  eval "$3=yes"
19891b12faf6Smrgelse
19901b12faf6Smrg  eval "$3=no"
19911b12faf6Smrgfi
19921b12faf6Smrgrm -f core conftest.err conftest.$ac_objext \
19931b12faf6Smrg    conftest$ac_exeext conftest.$ac_ext
19941b12faf6Smrgfi
19951b12faf6Smrgeval ac_res=\$$3
19961b12faf6Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19971b12faf6Smrg$as_echo "$ac_res" >&6; }
19981b12faf6Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
19991b12faf6Smrg
20001b12faf6Smrg} # ac_fn_c_check_func
20011b12faf6Smrg
20021b12faf6Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
20031b12faf6Smrg# -------------------------------------------------------
20041b12faf6Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
20051b12faf6Smrg# the include files in INCLUDES and setting the cache variable VAR
20061b12faf6Smrg# accordingly.
20071b12faf6Smrgac_fn_c_check_header_mongrel ()
20081b12faf6Smrg{
20091b12faf6Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20101b12faf6Smrg  if eval "test \"\${$3+set}\"" = set; then :
20111b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
20121b12faf6Smrg$as_echo_n "checking for $2... " >&6; }
20131b12faf6Smrgif eval "test \"\${$3+set}\"" = set; then :
20141b12faf6Smrg  $as_echo_n "(cached) " >&6
20151b12faf6Smrgfi
20161b12faf6Smrgeval ac_res=\$$3
20171b12faf6Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20181b12faf6Smrg$as_echo "$ac_res" >&6; }
20191b12faf6Smrgelse
20201b12faf6Smrg  # Is the header compilable?
20211b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
20221b12faf6Smrg$as_echo_n "checking $2 usability... " >&6; }
20231b12faf6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
20241b12faf6Smrg/* end confdefs.h.  */
20251b12faf6Smrg$4
20261b12faf6Smrg#include <$2>
20271b12faf6Smrg_ACEOF
20281b12faf6Smrgif ac_fn_c_try_compile "$LINENO"; then :
20291b12faf6Smrg  ac_header_compiler=yes
20301b12faf6Smrgelse
20311b12faf6Smrg  ac_header_compiler=no
20321b12faf6Smrgfi
20331b12faf6Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20341b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
20351b12faf6Smrg$as_echo "$ac_header_compiler" >&6; }
20361b12faf6Smrg
20371b12faf6Smrg# Is the header present?
20381b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
20391b12faf6Smrg$as_echo_n "checking $2 presence... " >&6; }
20401b12faf6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
20411b12faf6Smrg/* end confdefs.h.  */
20421b12faf6Smrg#include <$2>
20431b12faf6Smrg_ACEOF
20441b12faf6Smrgif ac_fn_c_try_cpp "$LINENO"; then :
20451b12faf6Smrg  ac_header_preproc=yes
20461b12faf6Smrgelse
20471b12faf6Smrg  ac_header_preproc=no
20481b12faf6Smrgfi
20491b12faf6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
20501b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
20511b12faf6Smrg$as_echo "$ac_header_preproc" >&6; }
20521b12faf6Smrg
20531b12faf6Smrg# So?  What about this header?
20541b12faf6Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
20551b12faf6Smrg  yes:no: )
20561b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
20571b12faf6Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
20581b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
20591b12faf6Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
20601b12faf6Smrg    ;;
20611b12faf6Smrg  no:yes:* )
20621b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
20631b12faf6Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
20641b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
20651b12faf6Smrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
20661b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
20671b12faf6Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
20681b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
20691b12faf6Smrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
20701b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
20711b12faf6Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
20721b12faf6Smrg( $as_echo "## ---------------------------------------------------------------------- ##
20731b12faf6Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
20741b12faf6Smrg## ---------------------------------------------------------------------- ##"
20751b12faf6Smrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
20761b12faf6Smrg    ;;
20771b12faf6Smrgesac
20781b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
20791b12faf6Smrg$as_echo_n "checking for $2... " >&6; }
20801b12faf6Smrgif eval "test \"\${$3+set}\"" = set; then :
20811b12faf6Smrg  $as_echo_n "(cached) " >&6
20821b12faf6Smrgelse
20831b12faf6Smrg  eval "$3=\$ac_header_compiler"
20841b12faf6Smrgfi
20851b12faf6Smrgeval ac_res=\$$3
20861b12faf6Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20871b12faf6Smrg$as_echo "$ac_res" >&6; }
20881b12faf6Smrgfi
20891b12faf6Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
20901b12faf6Smrg
20911b12faf6Smrg} # ac_fn_c_check_header_mongrel
209232b578d3Smrgcat >config.log <<_ACEOF
209332b578d3SmrgThis file contains any messages produced by compilers while
209432b578d3Smrgrunning configure, to aid debugging if configure makes a mistake.
209532b578d3Smrg
20961b12faf6SmrgIt was created by xf86-video-mach64 $as_me 6.9.0, which was
20971b12faf6Smrggenerated by GNU Autoconf 2.67.  Invocation command line was
209832b578d3Smrg
209932b578d3Smrg  $ $0 $@
210032b578d3Smrg
210132b578d3Smrg_ACEOF
210232b578d3Smrgexec 5>>config.log
210332b578d3Smrg{
210432b578d3Smrgcat <<_ASUNAME
210532b578d3Smrg## --------- ##
210632b578d3Smrg## Platform. ##
210732b578d3Smrg## --------- ##
210832b578d3Smrg
210932b578d3Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
211032b578d3Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
211132b578d3Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
211232b578d3Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
211332b578d3Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
211432b578d3Smrg
211532b578d3Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
211632b578d3Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
211732b578d3Smrg
211832b578d3Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
211932b578d3Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
212032b578d3Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
212132b578d3Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
212232b578d3Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
212332b578d3Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
212432b578d3Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
212532b578d3Smrg
212632b578d3Smrg_ASUNAME
212732b578d3Smrg
212832b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212932b578d3Smrgfor as_dir in $PATH
213032b578d3Smrgdo
213132b578d3Smrg  IFS=$as_save_IFS
213232b578d3Smrg  test -z "$as_dir" && as_dir=.
21331b12faf6Smrg    $as_echo "PATH: $as_dir"
21341b12faf6Smrg  done
213532b578d3SmrgIFS=$as_save_IFS
213632b578d3Smrg
213732b578d3Smrg} >&5
213832b578d3Smrg
213932b578d3Smrgcat >&5 <<_ACEOF
214032b578d3Smrg
214132b578d3Smrg
214232b578d3Smrg## ----------- ##
214332b578d3Smrg## Core tests. ##
214432b578d3Smrg## ----------- ##
214532b578d3Smrg
214632b578d3Smrg_ACEOF
214732b578d3Smrg
214832b578d3Smrg
214932b578d3Smrg# Keep a trace of the command line.
215032b578d3Smrg# Strip out --no-create and --no-recursion so they do not pile up.
215132b578d3Smrg# Strip out --silent because we don't want to record it for future runs.
215232b578d3Smrg# Also quote any args containing shell meta-characters.
215332b578d3Smrg# Make two passes to allow for proper duplicate-argument suppression.
215432b578d3Smrgac_configure_args=
215532b578d3Smrgac_configure_args0=
215632b578d3Smrgac_configure_args1=
215732b578d3Smrgac_must_keep_next=false
215832b578d3Smrgfor ac_pass in 1 2
215932b578d3Smrgdo
216032b578d3Smrg  for ac_arg
216132b578d3Smrg  do
216232b578d3Smrg    case $ac_arg in
216332b578d3Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
216432b578d3Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
216532b578d3Smrg    | -silent | --silent | --silen | --sile | --sil)
216632b578d3Smrg      continue ;;
216732b578d3Smrg    *\'*)
21682a51b5beSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
216932b578d3Smrg    esac
217032b578d3Smrg    case $ac_pass in
21711b12faf6Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
217232b578d3Smrg    2)
21731b12faf6Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
217432b578d3Smrg      if test $ac_must_keep_next = true; then
217532b578d3Smrg	ac_must_keep_next=false # Got value, back to normal.
217632b578d3Smrg      else
217732b578d3Smrg	case $ac_arg in
217832b578d3Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
217932b578d3Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
218032b578d3Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
218132b578d3Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
218232b578d3Smrg	    case "$ac_configure_args0 " in
218332b578d3Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
218432b578d3Smrg	    esac
218532b578d3Smrg	    ;;
218632b578d3Smrg	  -* ) ac_must_keep_next=true ;;
218732b578d3Smrg	esac
218832b578d3Smrg      fi
21891b12faf6Smrg      as_fn_append ac_configure_args " '$ac_arg'"
219032b578d3Smrg      ;;
219132b578d3Smrg    esac
219232b578d3Smrg  done
219332b578d3Smrgdone
21941b12faf6Smrg{ ac_configure_args0=; unset ac_configure_args0;}
21951b12faf6Smrg{ ac_configure_args1=; unset ac_configure_args1;}
219632b578d3Smrg
219732b578d3Smrg# When interrupted or exit'd, cleanup temporary files, and complete
219832b578d3Smrg# config.log.  We remove comments because anyway the quotes in there
219932b578d3Smrg# would cause problems or look ugly.
220032b578d3Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
220132b578d3Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
220232b578d3Smrgtrap 'exit_status=$?
220332b578d3Smrg  # Save into config.log some information that might help in debugging.
220432b578d3Smrg  {
220532b578d3Smrg    echo
220632b578d3Smrg
22071b12faf6Smrg    $as_echo "## ---------------- ##
220832b578d3Smrg## Cache variables. ##
22091b12faf6Smrg## ---------------- ##"
221032b578d3Smrg    echo
221132b578d3Smrg    # The following way of writing the cache mishandles newlines in values,
221232b578d3Smrg(
221332b578d3Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
221432b578d3Smrg    eval ac_val=\$$ac_var
221532b578d3Smrg    case $ac_val in #(
221632b578d3Smrg    *${as_nl}*)
221732b578d3Smrg      case $ac_var in #(
22181b12faf6Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22192a51b5beSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
222032b578d3Smrg      esac
222132b578d3Smrg      case $ac_var in #(
222232b578d3Smrg      _ | IFS | as_nl) ;; #(
22232a51b5beSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22241b12faf6Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
222532b578d3Smrg      esac ;;
222632b578d3Smrg    esac
222732b578d3Smrg  done
222832b578d3Smrg  (set) 2>&1 |
222932b578d3Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
223032b578d3Smrg    *${as_nl}ac_space=\ *)
223132b578d3Smrg      sed -n \
223232b578d3Smrg	"s/'\''/'\''\\\\'\'''\''/g;
223332b578d3Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
223432b578d3Smrg      ;; #(
223532b578d3Smrg    *)
223632b578d3Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
223732b578d3Smrg      ;;
223832b578d3Smrg    esac |
223932b578d3Smrg    sort
224032b578d3Smrg)
224132b578d3Smrg    echo
224232b578d3Smrg
22431b12faf6Smrg    $as_echo "## ----------------- ##
224432b578d3Smrg## Output variables. ##
22451b12faf6Smrg## ----------------- ##"
224632b578d3Smrg    echo
224732b578d3Smrg    for ac_var in $ac_subst_vars
224832b578d3Smrg    do
224932b578d3Smrg      eval ac_val=\$$ac_var
225032b578d3Smrg      case $ac_val in
22512a51b5beSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
225232b578d3Smrg      esac
22532a51b5beSmrg      $as_echo "$ac_var='\''$ac_val'\''"
225432b578d3Smrg    done | sort
225532b578d3Smrg    echo
225632b578d3Smrg
225732b578d3Smrg    if test -n "$ac_subst_files"; then
22581b12faf6Smrg      $as_echo "## ------------------- ##
225932b578d3Smrg## File substitutions. ##
22601b12faf6Smrg## ------------------- ##"
226132b578d3Smrg      echo
226232b578d3Smrg      for ac_var in $ac_subst_files
226332b578d3Smrg      do
226432b578d3Smrg	eval ac_val=\$$ac_var
226532b578d3Smrg	case $ac_val in
22662a51b5beSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
226732b578d3Smrg	esac
22682a51b5beSmrg	$as_echo "$ac_var='\''$ac_val'\''"
226932b578d3Smrg      done | sort
227032b578d3Smrg      echo
227132b578d3Smrg    fi
227232b578d3Smrg
227332b578d3Smrg    if test -s confdefs.h; then
22741b12faf6Smrg      $as_echo "## ----------- ##
227532b578d3Smrg## confdefs.h. ##
22761b12faf6Smrg## ----------- ##"
227732b578d3Smrg      echo
227832b578d3Smrg      cat confdefs.h
227932b578d3Smrg      echo
228032b578d3Smrg    fi
228132b578d3Smrg    test "$ac_signal" != 0 &&
22822a51b5beSmrg      $as_echo "$as_me: caught signal $ac_signal"
22832a51b5beSmrg    $as_echo "$as_me: exit $exit_status"
228432b578d3Smrg  } >&5
228532b578d3Smrg  rm -f core *.core core.conftest.* &&
228632b578d3Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
228732b578d3Smrg    exit $exit_status
228832b578d3Smrg' 0
228932b578d3Smrgfor ac_signal in 1 2 13 15; do
22901b12faf6Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
229132b578d3Smrgdone
229232b578d3Smrgac_signal=0
229332b578d3Smrg
229432b578d3Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
229532b578d3Smrgrm -f -r conftest* confdefs.h
229632b578d3Smrg
22971b12faf6Smrg$as_echo "/* confdefs.h */" > confdefs.h
22981b12faf6Smrg
229932b578d3Smrg# Predefined preprocessor variables.
230032b578d3Smrg
230132b578d3Smrgcat >>confdefs.h <<_ACEOF
230232b578d3Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
230332b578d3Smrg_ACEOF
230432b578d3Smrg
230532b578d3Smrgcat >>confdefs.h <<_ACEOF
230632b578d3Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
230732b578d3Smrg_ACEOF
230832b578d3Smrg
230932b578d3Smrgcat >>confdefs.h <<_ACEOF
231032b578d3Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
231132b578d3Smrg_ACEOF
231232b578d3Smrg
231332b578d3Smrgcat >>confdefs.h <<_ACEOF
231432b578d3Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
231532b578d3Smrg_ACEOF
231632b578d3Smrg
231732b578d3Smrgcat >>confdefs.h <<_ACEOF
231832b578d3Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
231932b578d3Smrg_ACEOF
232032b578d3Smrg
23211b12faf6Smrgcat >>confdefs.h <<_ACEOF
23221b12faf6Smrg#define PACKAGE_URL "$PACKAGE_URL"
23231b12faf6Smrg_ACEOF
23241b12faf6Smrg
232532b578d3Smrg
232632b578d3Smrg# Let the site file select an alternate cache file if it wants to.
23272a51b5beSmrg# Prefer an explicitly selected file to automatically selected ones.
23282a51b5beSmrgac_site_file1=NONE
23292a51b5beSmrgac_site_file2=NONE
233032b578d3Smrgif test -n "$CONFIG_SITE"; then
23311b12faf6Smrg  # We do not want a PATH search for config.site.
23321b12faf6Smrg  case $CONFIG_SITE in #((
23331b12faf6Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
23341b12faf6Smrg    */*) ac_site_file1=$CONFIG_SITE;;
23351b12faf6Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
23361b12faf6Smrg  esac
233732b578d3Smrgelif test "x$prefix" != xNONE; then
23382a51b5beSmrg  ac_site_file1=$prefix/share/config.site
23392a51b5beSmrg  ac_site_file2=$prefix/etc/config.site
234032b578d3Smrgelse
23412a51b5beSmrg  ac_site_file1=$ac_default_prefix/share/config.site
23422a51b5beSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
234332b578d3Smrgfi
23442a51b5beSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
234532b578d3Smrgdo
23462a51b5beSmrg  test "x$ac_site_file" = xNONE && continue
23471b12faf6Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
23481b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
23492a51b5beSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
235032b578d3Smrg    sed 's/^/| /' "$ac_site_file" >&5
23511b12faf6Smrg    . "$ac_site_file" \
23521b12faf6Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23531b12faf6Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23541b12faf6Smrgas_fn_error $? "failed to load site script $ac_site_file
23551b12faf6SmrgSee \`config.log' for more details" "$LINENO" 5 ; }
235632b578d3Smrg  fi
235732b578d3Smrgdone
235832b578d3Smrg
235932b578d3Smrgif test -r "$cache_file"; then
23601b12faf6Smrg  # Some versions of bash will fail to source /dev/null (special files
23611b12faf6Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
23621b12faf6Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
23631b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
23642a51b5beSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
236532b578d3Smrg    case $cache_file in
236632b578d3Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
236732b578d3Smrg      *)                      . "./$cache_file";;
236832b578d3Smrg    esac
236932b578d3Smrg  fi
237032b578d3Smrgelse
23711b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
23722a51b5beSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
237332b578d3Smrg  >$cache_file
237432b578d3Smrgfi
237532b578d3Smrg
237632b578d3Smrg# Check that the precious variables saved in the cache have kept the same
237732b578d3Smrg# value.
237832b578d3Smrgac_cache_corrupted=false
237932b578d3Smrgfor ac_var in $ac_precious_vars; do
238032b578d3Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
238132b578d3Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
238232b578d3Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
238332b578d3Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
238432b578d3Smrg  case $ac_old_set,$ac_new_set in
238532b578d3Smrg    set,)
23861b12faf6Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
23872a51b5beSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
238832b578d3Smrg      ac_cache_corrupted=: ;;
238932b578d3Smrg    ,set)
23901b12faf6Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
23912a51b5beSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
239232b578d3Smrg      ac_cache_corrupted=: ;;
239332b578d3Smrg    ,);;
239432b578d3Smrg    *)
239532b578d3Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
23962a51b5beSmrg	# differences in whitespace do not lead to failure.
23972a51b5beSmrg	ac_old_val_w=`echo x $ac_old_val`
23982a51b5beSmrg	ac_new_val_w=`echo x $ac_new_val`
23992a51b5beSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
24001b12faf6Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
24012a51b5beSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
24022a51b5beSmrg	  ac_cache_corrupted=:
24032a51b5beSmrg	else
24041b12faf6Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
24052a51b5beSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
24062a51b5beSmrg	  eval $ac_var=\$ac_old_val
24072a51b5beSmrg	fi
24081b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
24092a51b5beSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
24101b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
24112a51b5beSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
241232b578d3Smrg      fi;;
241332b578d3Smrg  esac
241432b578d3Smrg  # Pass precious variables to config.status.
241532b578d3Smrg  if test "$ac_new_set" = set; then
241632b578d3Smrg    case $ac_new_val in
24172a51b5beSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
241832b578d3Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
241932b578d3Smrg    esac
242032b578d3Smrg    case " $ac_configure_args " in
242132b578d3Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
24221b12faf6Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
242332b578d3Smrg    esac
242432b578d3Smrg  fi
242532b578d3Smrgdone
242632b578d3Smrgif $ac_cache_corrupted; then
24271b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24282a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24291b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
24302a51b5beSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
24311b12faf6Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
243232b578d3Smrgfi
24331b12faf6Smrg## -------------------- ##
24341b12faf6Smrg## Main body of script. ##
24351b12faf6Smrg## -------------------- ##
243632b578d3Smrg
243732b578d3Smrgac_ext=c
243832b578d3Smrgac_cpp='$CPP $CPPFLAGS'
243932b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
244032b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
244132b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
244232b578d3Smrg
244332b578d3Smrg
244432b578d3Smrg
244532b578d3Smrgac_config_headers="$ac_config_headers config.h"
244632b578d3Smrg
244732b578d3Smrgac_aux_dir=
244832b578d3Smrgfor ac_dir in . "$srcdir"/.; do
244932b578d3Smrg  if test -f "$ac_dir/install-sh"; then
245032b578d3Smrg    ac_aux_dir=$ac_dir
245132b578d3Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
245232b578d3Smrg    break
245332b578d3Smrg  elif test -f "$ac_dir/install.sh"; then
245432b578d3Smrg    ac_aux_dir=$ac_dir
245532b578d3Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
245632b578d3Smrg    break
245732b578d3Smrg  elif test -f "$ac_dir/shtool"; then
245832b578d3Smrg    ac_aux_dir=$ac_dir
245932b578d3Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
246032b578d3Smrg    break
246132b578d3Smrg  fi
246232b578d3Smrgdone
246332b578d3Smrgif test -z "$ac_aux_dir"; then
24641b12faf6Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
246532b578d3Smrgfi
246632b578d3Smrg
246732b578d3Smrg# These three variables are undocumented and unsupported,
246832b578d3Smrg# and are intended to be withdrawn in a future Autoconf release.
246932b578d3Smrg# They can cause serious problems if a builder's source tree is in a directory
247032b578d3Smrg# whose full name contains unusual characters.
247132b578d3Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
247232b578d3Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
247332b578d3Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
247432b578d3Smrg
247532b578d3Smrg
247632b578d3Smrg
24771b12faf6Smrg# Initialize Automake
24782a51b5beSmrgam__api_version='1.11'
247932b578d3Smrg
248032b578d3Smrg# Find a good install program.  We prefer a C program (faster),
248132b578d3Smrg# so one script is as good as another.  But avoid the broken or
248232b578d3Smrg# incompatible versions:
248332b578d3Smrg# SysV /etc/install, /usr/sbin/install
248432b578d3Smrg# SunOS /usr/etc/install
248532b578d3Smrg# IRIX /sbin/install
248632b578d3Smrg# AIX /bin/install
248732b578d3Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
248832b578d3Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
248932b578d3Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
249032b578d3Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
249132b578d3Smrg# OS/2's system install, which has a completely different semantic
249232b578d3Smrg# ./install, which can be erroneously created by make from ./install.sh.
24932a51b5beSmrg# Reject install programs that cannot install multiple files.
24941b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
24952a51b5beSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
249632b578d3Smrgif test -z "$INSTALL"; then
24971b12faf6Smrgif test "${ac_cv_path_install+set}" = set; then :
24982a51b5beSmrg  $as_echo_n "(cached) " >&6
249932b578d3Smrgelse
250032b578d3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
250132b578d3Smrgfor as_dir in $PATH
250232b578d3Smrgdo
250332b578d3Smrg  IFS=$as_save_IFS
250432b578d3Smrg  test -z "$as_dir" && as_dir=.
25051b12faf6Smrg    # Account for people who put trailing slashes in PATH elements.
25061b12faf6Smrgcase $as_dir/ in #((
25071b12faf6Smrg  ./ | .// | /[cC]/* | \
250832b578d3Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
25091b12faf6Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
251032b578d3Smrg  /usr/ucb/* ) ;;
251132b578d3Smrg  *)
251232b578d3Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
251332b578d3Smrg    # Don't use installbsd from OSF since it installs stuff as root
251432b578d3Smrg    # by default.
251532b578d3Smrg    for ac_prog in ginstall scoinst install; do
251632b578d3Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
251732b578d3Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
251832b578d3Smrg	  if test $ac_prog = install &&
251932b578d3Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252032b578d3Smrg	    # AIX install.  It has an incompatible calling convention.
252132b578d3Smrg	    :
252232b578d3Smrg	  elif test $ac_prog = install &&
252332b578d3Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252432b578d3Smrg	    # program-specific install script used by HP pwplus--don't use.
252532b578d3Smrg	    :
252632b578d3Smrg	  else
25272a51b5beSmrg	    rm -rf conftest.one conftest.two conftest.dir
25282a51b5beSmrg	    echo one > conftest.one
25292a51b5beSmrg	    echo two > conftest.two
25302a51b5beSmrg	    mkdir conftest.dir
25312a51b5beSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
25322a51b5beSmrg	      test -s conftest.one && test -s conftest.two &&
25332a51b5beSmrg	      test -s conftest.dir/conftest.one &&
25342a51b5beSmrg	      test -s conftest.dir/conftest.two
25352a51b5beSmrg	    then
25362a51b5beSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
25372a51b5beSmrg	      break 3
25382a51b5beSmrg	    fi
253932b578d3Smrg	  fi
254032b578d3Smrg	fi
254132b578d3Smrg      done
254232b578d3Smrg    done
254332b578d3Smrg    ;;
254432b578d3Smrgesac
25452a51b5beSmrg
25461b12faf6Smrg  done
254732b578d3SmrgIFS=$as_save_IFS
254832b578d3Smrg
25492a51b5beSmrgrm -rf conftest.one conftest.two conftest.dir
255032b578d3Smrg
255132b578d3Smrgfi
255232b578d3Smrg  if test "${ac_cv_path_install+set}" = set; then
255332b578d3Smrg    INSTALL=$ac_cv_path_install
255432b578d3Smrg  else
255532b578d3Smrg    # As a last resort, use the slow shell script.  Don't cache a
255632b578d3Smrg    # value for INSTALL within a source directory, because that will
255732b578d3Smrg    # break other packages using the cache if that directory is
255832b578d3Smrg    # removed, or if the value is a relative name.
255932b578d3Smrg    INSTALL=$ac_install_sh
256032b578d3Smrg  fi
256132b578d3Smrgfi
25621b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
25632a51b5beSmrg$as_echo "$INSTALL" >&6; }
256432b578d3Smrg
256532b578d3Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
256632b578d3Smrg# It thinks the first close brace ends the variable substitution.
256732b578d3Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
256832b578d3Smrg
256932b578d3Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
257032b578d3Smrg
257132b578d3Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
257232b578d3Smrg
25731b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
25742a51b5beSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
257532b578d3Smrg# Just in case
257632b578d3Smrgsleep 1
257732b578d3Smrgecho timestamp > conftest.file
25782a51b5beSmrg# Reject unsafe characters in $srcdir or the absolute working directory
25792a51b5beSmrg# name.  Accept space and tab only in the latter.
25802a51b5beSmrgam_lf='
25812a51b5beSmrg'
25822a51b5beSmrgcase `pwd` in
25832a51b5beSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
25841b12faf6Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
25852a51b5beSmrgesac
25862a51b5beSmrgcase $srcdir in
25872a51b5beSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
25881b12faf6Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
25892a51b5beSmrgesac
25902a51b5beSmrg
259132b578d3Smrg# Do `set' in a subshell so we don't clobber the current shell's
259232b578d3Smrg# arguments.  Must try -L first in case configure is actually a
259332b578d3Smrg# symlink; some systems play weird games with the mod time of symlinks
259432b578d3Smrg# (eg FreeBSD returns the mod time of the symlink's containing
259532b578d3Smrg# directory).
259632b578d3Smrgif (
25972a51b5beSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
259832b578d3Smrg   if test "$*" = "X"; then
259932b578d3Smrg      # -L didn't work.
26002a51b5beSmrg      set X `ls -t "$srcdir/configure" conftest.file`
260132b578d3Smrg   fi
260232b578d3Smrg   rm -f conftest.file
260332b578d3Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
260432b578d3Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
260532b578d3Smrg
260632b578d3Smrg      # If neither matched, then we have a broken ls.  This can happen
260732b578d3Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
260832b578d3Smrg      # broken ls alias from the environment.  This has actually
260932b578d3Smrg      # happened.  Such a system could not be considered "sane".
26101b12faf6Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
26111b12faf6Smrgalias in your environment" "$LINENO" 5
261232b578d3Smrg   fi
261332b578d3Smrg
261432b578d3Smrg   test "$2" = conftest.file
261532b578d3Smrg   )
261632b578d3Smrgthen
261732b578d3Smrg   # Ok.
261832b578d3Smrg   :
261932b578d3Smrgelse
26201b12faf6Smrg   as_fn_error $? "newly created file is older than distributed files!
26211b12faf6SmrgCheck your system clock" "$LINENO" 5
262232b578d3Smrgfi
26231b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26242a51b5beSmrg$as_echo "yes" >&6; }
262532b578d3Smrgtest "$program_prefix" != NONE &&
262632b578d3Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
262732b578d3Smrg# Use a double $ so make ignores it.
262832b578d3Smrgtest "$program_suffix" != NONE &&
262932b578d3Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
26302a51b5beSmrg# Double any \ or $.
263132b578d3Smrg# By default was `s,x,x', remove it if useless.
26322a51b5beSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
26332a51b5beSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
263432b578d3Smrg
263532b578d3Smrg# expand $ac_aux_dir to an absolute path
263632b578d3Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
263732b578d3Smrg
26382a51b5beSmrgif test x"${MISSING+set}" != xset; then
26392a51b5beSmrg  case $am_aux_dir in
26402a51b5beSmrg  *\ * | *\	*)
26412a51b5beSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
26422a51b5beSmrg  *)
26432a51b5beSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
26442a51b5beSmrg  esac
26452a51b5beSmrgfi
264632b578d3Smrg# Use eval to expand $SHELL
264732b578d3Smrgif eval "$MISSING --run true"; then
264832b578d3Smrg  am_missing_run="$MISSING --run "
264932b578d3Smrgelse
265032b578d3Smrg  am_missing_run=
26511b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
26522a51b5beSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
26532a51b5beSmrgfi
26542a51b5beSmrg
26552a51b5beSmrgif test x"${install_sh}" != xset; then
26562a51b5beSmrg  case $am_aux_dir in
26572a51b5beSmrg  *\ * | *\	*)
26582a51b5beSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
26592a51b5beSmrg  *)
26602a51b5beSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
26612a51b5beSmrg  esac
26622a51b5beSmrgfi
26632a51b5beSmrg
26642a51b5beSmrg# Installed binaries are usually stripped using `strip' when the user
26652a51b5beSmrg# run `make install-strip'.  However `strip' might not be the right
26662a51b5beSmrg# tool to use in cross-compilation environments, therefore Automake
26672a51b5beSmrg# will honor the `STRIP' environment variable to overrule this program.
26682a51b5beSmrgif test "$cross_compiling" != no; then
26692a51b5beSmrg  if test -n "$ac_tool_prefix"; then
26702a51b5beSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26712a51b5beSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
26721b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26732a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
26741b12faf6Smrgif test "${ac_cv_prog_STRIP+set}" = set; then :
26752a51b5beSmrg  $as_echo_n "(cached) " >&6
26762a51b5beSmrgelse
26772a51b5beSmrg  if test -n "$STRIP"; then
26782a51b5beSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
26792a51b5beSmrgelse
26802a51b5beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26812a51b5beSmrgfor as_dir in $PATH
26822a51b5beSmrgdo
26832a51b5beSmrg  IFS=$as_save_IFS
26842a51b5beSmrg  test -z "$as_dir" && as_dir=.
26851b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
26862a51b5beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26872a51b5beSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
26881b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26892a51b5beSmrg    break 2
26902a51b5beSmrg  fi
26912a51b5beSmrgdone
26921b12faf6Smrg  done
26932a51b5beSmrgIFS=$as_save_IFS
26942a51b5beSmrg
26952a51b5beSmrgfi
26962a51b5beSmrgfi
26972a51b5beSmrgSTRIP=$ac_cv_prog_STRIP
26982a51b5beSmrgif test -n "$STRIP"; then
26991b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
27002a51b5beSmrg$as_echo "$STRIP" >&6; }
27012a51b5beSmrgelse
27021b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27032a51b5beSmrg$as_echo "no" >&6; }
27042a51b5beSmrgfi
27052a51b5beSmrg
27062a51b5beSmrg
27072a51b5beSmrgfi
27082a51b5beSmrgif test -z "$ac_cv_prog_STRIP"; then
27092a51b5beSmrg  ac_ct_STRIP=$STRIP
27102a51b5beSmrg  # Extract the first word of "strip", so it can be a program name with args.
27112a51b5beSmrgset dummy strip; ac_word=$2
27121b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27132a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
27141b12faf6Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
27152a51b5beSmrg  $as_echo_n "(cached) " >&6
27162a51b5beSmrgelse
27172a51b5beSmrg  if test -n "$ac_ct_STRIP"; then
27182a51b5beSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
27192a51b5beSmrgelse
27202a51b5beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27212a51b5beSmrgfor as_dir in $PATH
27222a51b5beSmrgdo
27232a51b5beSmrg  IFS=$as_save_IFS
27242a51b5beSmrg  test -z "$as_dir" && as_dir=.
27251b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27262a51b5beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27272a51b5beSmrg    ac_cv_prog_ac_ct_STRIP="strip"
27281b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27292a51b5beSmrg    break 2
27302a51b5beSmrg  fi
27312a51b5beSmrgdone
27321b12faf6Smrg  done
27332a51b5beSmrgIFS=$as_save_IFS
27342a51b5beSmrg
27352a51b5beSmrgfi
27362a51b5beSmrgfi
27372a51b5beSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
27382a51b5beSmrgif test -n "$ac_ct_STRIP"; then
27391b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
27402a51b5beSmrg$as_echo "$ac_ct_STRIP" >&6; }
27412a51b5beSmrgelse
27421b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27432a51b5beSmrg$as_echo "no" >&6; }
27442a51b5beSmrgfi
27452a51b5beSmrg
27462a51b5beSmrg  if test "x$ac_ct_STRIP" = x; then
27472a51b5beSmrg    STRIP=":"
27482a51b5beSmrg  else
27492a51b5beSmrg    case $cross_compiling:$ac_tool_warned in
27502a51b5beSmrgyes:)
27511b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27522a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27532a51b5beSmrgac_tool_warned=yes ;;
27542a51b5beSmrgesac
27552a51b5beSmrg    STRIP=$ac_ct_STRIP
27562a51b5beSmrg  fi
27572a51b5beSmrgelse
27582a51b5beSmrg  STRIP="$ac_cv_prog_STRIP"
27592a51b5beSmrgfi
27602a51b5beSmrg
276132b578d3Smrgfi
27622a51b5beSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
276332b578d3Smrg
27641b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
27652a51b5beSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
276632b578d3Smrgif test -z "$MKDIR_P"; then
27671b12faf6Smrg  if test "${ac_cv_path_mkdir+set}" = set; then :
27682a51b5beSmrg  $as_echo_n "(cached) " >&6
276932b578d3Smrgelse
277032b578d3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
277132b578d3Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
277232b578d3Smrgdo
277332b578d3Smrg  IFS=$as_save_IFS
277432b578d3Smrg  test -z "$as_dir" && as_dir=.
27751b12faf6Smrg    for ac_prog in mkdir gmkdir; do
277632b578d3Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
277732b578d3Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
277832b578d3Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
277932b578d3Smrg	     'mkdir (GNU coreutils) '* | \
278032b578d3Smrg	     'mkdir (coreutils) '* | \
278132b578d3Smrg	     'mkdir (fileutils) '4.1*)
278232b578d3Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
278332b578d3Smrg	       break 3;;
278432b578d3Smrg	   esac
278532b578d3Smrg	 done
278632b578d3Smrg       done
27871b12faf6Smrg  done
278832b578d3SmrgIFS=$as_save_IFS
278932b578d3Smrg
279032b578d3Smrgfi
279132b578d3Smrg
27921b12faf6Smrg  test -d ./--version && rmdir ./--version
279332b578d3Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
279432b578d3Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
279532b578d3Smrg  else
279632b578d3Smrg    # As a last resort, use the slow shell script.  Don't cache a
279732b578d3Smrg    # value for MKDIR_P within a source directory, because that will
279832b578d3Smrg    # break other packages using the cache if that directory is
279932b578d3Smrg    # removed, or if the value is a relative name.
280032b578d3Smrg    MKDIR_P="$ac_install_sh -d"
280132b578d3Smrg  fi
280232b578d3Smrgfi
28031b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
28042a51b5beSmrg$as_echo "$MKDIR_P" >&6; }
280532b578d3Smrg
280632b578d3Smrgmkdir_p="$MKDIR_P"
280732b578d3Smrgcase $mkdir_p in
280832b578d3Smrg  [\\/$]* | ?:[\\/]*) ;;
280932b578d3Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
281032b578d3Smrgesac
281132b578d3Smrg
281232b578d3Smrgfor ac_prog in gawk mawk nawk awk
281332b578d3Smrgdo
281432b578d3Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
281532b578d3Smrgset dummy $ac_prog; ac_word=$2
28161b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28172a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
28181b12faf6Smrgif test "${ac_cv_prog_AWK+set}" = set; then :
28192a51b5beSmrg  $as_echo_n "(cached) " >&6
282032b578d3Smrgelse
282132b578d3Smrg  if test -n "$AWK"; then
282232b578d3Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
282332b578d3Smrgelse
282432b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
282532b578d3Smrgfor as_dir in $PATH
282632b578d3Smrgdo
282732b578d3Smrg  IFS=$as_save_IFS
282832b578d3Smrg  test -z "$as_dir" && as_dir=.
28291b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
283032b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
283132b578d3Smrg    ac_cv_prog_AWK="$ac_prog"
28321b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
283332b578d3Smrg    break 2
283432b578d3Smrg  fi
283532b578d3Smrgdone
28361b12faf6Smrg  done
283732b578d3SmrgIFS=$as_save_IFS
283832b578d3Smrg
283932b578d3Smrgfi
284032b578d3Smrgfi
284132b578d3SmrgAWK=$ac_cv_prog_AWK
284232b578d3Smrgif test -n "$AWK"; then
28431b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
28442a51b5beSmrg$as_echo "$AWK" >&6; }
284532b578d3Smrgelse
28461b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28472a51b5beSmrg$as_echo "no" >&6; }
284832b578d3Smrgfi
284932b578d3Smrg
285032b578d3Smrg
285132b578d3Smrg  test -n "$AWK" && break
285232b578d3Smrgdone
285332b578d3Smrg
28541b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
28552a51b5beSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28562a51b5beSmrgset x ${MAKE-make}
28572a51b5beSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
28581b12faf6Smrgif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
28592a51b5beSmrg  $as_echo_n "(cached) " >&6
286032b578d3Smrgelse
286132b578d3Smrg  cat >conftest.make <<\_ACEOF
286232b578d3SmrgSHELL = /bin/sh
286332b578d3Smrgall:
286432b578d3Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
286532b578d3Smrg_ACEOF
28661b12faf6Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
286732b578d3Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
286832b578d3Smrg  *@@@%%%=?*=@@@%%%*)
286932b578d3Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
287032b578d3Smrg  *)
287132b578d3Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
287232b578d3Smrgesac
287332b578d3Smrgrm -f conftest.make
287432b578d3Smrgfi
287532b578d3Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
28761b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28772a51b5beSmrg$as_echo "yes" >&6; }
287832b578d3Smrg  SET_MAKE=
287932b578d3Smrgelse
28801b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28812a51b5beSmrg$as_echo "no" >&6; }
288232b578d3Smrg  SET_MAKE="MAKE=${MAKE-make}"
288332b578d3Smrgfi
288432b578d3Smrg
288532b578d3Smrgrm -rf .tst 2>/dev/null
288632b578d3Smrgmkdir .tst 2>/dev/null
288732b578d3Smrgif test -d .tst; then
288832b578d3Smrg  am__leading_dot=.
288932b578d3Smrgelse
289032b578d3Smrg  am__leading_dot=_
289132b578d3Smrgfi
289232b578d3Smrgrmdir .tst 2>/dev/null
289332b578d3Smrg
289432b578d3Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
289532b578d3Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
289632b578d3Smrg  # is not polluted with repeated "-I."
289732b578d3Smrg  am__isrc=' -I$(srcdir)'
289832b578d3Smrg  # test to see if srcdir already configured
289932b578d3Smrg  if test -f $srcdir/config.status; then
29001b12faf6Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
290132b578d3Smrg  fi
290232b578d3Smrgfi
290332b578d3Smrg
290432b578d3Smrg# test whether we have cygpath
290532b578d3Smrgif test -z "$CYGPATH_W"; then
290632b578d3Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
290732b578d3Smrg    CYGPATH_W='cygpath -w'
290832b578d3Smrg  else
290932b578d3Smrg    CYGPATH_W=echo
291032b578d3Smrg  fi
291132b578d3Smrgfi
291232b578d3Smrg
291332b578d3Smrg
291432b578d3Smrg# Define the identity of the package.
291532b578d3Smrg PACKAGE='xf86-video-mach64'
29161b12faf6Smrg VERSION='6.9.0'
291732b578d3Smrg
291832b578d3Smrg
291932b578d3Smrgcat >>confdefs.h <<_ACEOF
292032b578d3Smrg#define PACKAGE "$PACKAGE"
292132b578d3Smrg_ACEOF
292232b578d3Smrg
292332b578d3Smrg
292432b578d3Smrgcat >>confdefs.h <<_ACEOF
292532b578d3Smrg#define VERSION "$VERSION"
292632b578d3Smrg_ACEOF
292732b578d3Smrg
292832b578d3Smrg# Some tools Automake needs.
292932b578d3Smrg
293032b578d3SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
293132b578d3Smrg
293232b578d3Smrg
293332b578d3SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
293432b578d3Smrg
293532b578d3Smrg
293632b578d3SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
293732b578d3Smrg
293832b578d3Smrg
293932b578d3SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
294032b578d3Smrg
294132b578d3Smrg
294232b578d3SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
294332b578d3Smrg
294432b578d3Smrg# We need awk for the "check" target.  The system "awk" is bad on
294532b578d3Smrg# some platforms.
294632b578d3Smrg# Always define AMTAR for backward compatibility.
294732b578d3Smrg
294832b578d3SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
294932b578d3Smrg
295032b578d3Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
295132b578d3Smrg
295232b578d3Smrg
295332b578d3Smrg
295432b578d3Smrg
295532b578d3Smrg
295632b578d3Smrg
29571b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29582a51b5beSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
295932b578d3Smrg    # Check whether --enable-maintainer-mode was given.
29601b12faf6Smrgif test "${enable_maintainer_mode+set}" = set; then :
296132b578d3Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
296232b578d3Smrgelse
296332b578d3Smrg  USE_MAINTAINER_MODE=no
296432b578d3Smrgfi
296532b578d3Smrg
29661b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
29672a51b5beSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
296832b578d3Smrg   if test $USE_MAINTAINER_MODE = yes; then
296932b578d3Smrg  MAINTAINER_MODE_TRUE=
297032b578d3Smrg  MAINTAINER_MODE_FALSE='#'
297132b578d3Smrgelse
297232b578d3Smrg  MAINTAINER_MODE_TRUE='#'
297332b578d3Smrg  MAINTAINER_MODE_FALSE=
297432b578d3Smrgfi
297532b578d3Smrg
297632b578d3Smrg  MAINT=$MAINTAINER_MODE_TRUE
297732b578d3Smrg
297832b578d3Smrg
297932b578d3Smrg
29801b12faf6Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
298132b578d3Smrg
298232b578d3Smrg
298332b578d3Smrg
298432b578d3Smrg
298532b578d3Smrg
298632b578d3Smrg
298732b578d3Smrg
298832b578d3Smrg
298932b578d3Smrg
299032b578d3Smrg
299132b578d3Smrg
299232b578d3SmrgDEPDIR="${am__leading_dot}deps"
299332b578d3Smrg
299432b578d3Smrgac_config_commands="$ac_config_commands depfiles"
299532b578d3Smrg
299632b578d3Smrg
299732b578d3Smrgam_make=${MAKE-make}
299832b578d3Smrgcat > confinc << 'END'
299932b578d3Smrgam__doit:
30002a51b5beSmrg	@echo this is the am__doit target
300132b578d3Smrg.PHONY: am__doit
300232b578d3SmrgEND
300332b578d3Smrg# If we don't find an include directive, just comment out the code.
30041b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
30052a51b5beSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
300632b578d3Smrgam__include="#"
300732b578d3Smrgam__quote=
300832b578d3Smrg_am_result=none
300932b578d3Smrg# First try GNU make style include.
301032b578d3Smrgecho "include confinc" > confmf
30112a51b5beSmrg# Ignore all kinds of additional output from `make'.
30122a51b5beSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
30132a51b5beSmrg*the\ am__doit\ target*)
30142a51b5beSmrg  am__include=include
30152a51b5beSmrg  am__quote=
30162a51b5beSmrg  _am_result=GNU
30172a51b5beSmrg  ;;
30182a51b5beSmrgesac
301932b578d3Smrg# Now try BSD make style include.
302032b578d3Smrgif test "$am__include" = "#"; then
302132b578d3Smrg   echo '.include "confinc"' > confmf
30222a51b5beSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
30232a51b5beSmrg   *the\ am__doit\ target*)
30242a51b5beSmrg     am__include=.include
30252a51b5beSmrg     am__quote="\""
30262a51b5beSmrg     _am_result=BSD
30272a51b5beSmrg     ;;
30282a51b5beSmrg   esac
302932b578d3Smrgfi
303032b578d3Smrg
303132b578d3Smrg
30321b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
30332a51b5beSmrg$as_echo "$_am_result" >&6; }
303432b578d3Smrgrm -f confinc confmf
303532b578d3Smrg
303632b578d3Smrg# Check whether --enable-dependency-tracking was given.
30371b12faf6Smrgif test "${enable_dependency_tracking+set}" = set; then :
303832b578d3Smrg  enableval=$enable_dependency_tracking;
303932b578d3Smrgfi
304032b578d3Smrg
304132b578d3Smrgif test "x$enable_dependency_tracking" != xno; then
304232b578d3Smrg  am_depcomp="$ac_aux_dir/depcomp"
304332b578d3Smrg  AMDEPBACKSLASH='\'
304432b578d3Smrgfi
304532b578d3Smrg if test "x$enable_dependency_tracking" != xno; then
304632b578d3Smrg  AMDEP_TRUE=
304732b578d3Smrg  AMDEP_FALSE='#'
304832b578d3Smrgelse
304932b578d3Smrg  AMDEP_TRUE='#'
305032b578d3Smrg  AMDEP_FALSE=
305132b578d3Smrgfi
305232b578d3Smrg
305332b578d3Smrg
305432b578d3Smrgac_ext=c
305532b578d3Smrgac_cpp='$CPP $CPPFLAGS'
305632b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
305732b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
305832b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
305932b578d3Smrgif test -n "$ac_tool_prefix"; then
306032b578d3Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
306132b578d3Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
30621b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30632a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
30641b12faf6Smrgif test "${ac_cv_prog_CC+set}" = set; then :
30652a51b5beSmrg  $as_echo_n "(cached) " >&6
306632b578d3Smrgelse
306732b578d3Smrg  if test -n "$CC"; then
306832b578d3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
306932b578d3Smrgelse
307032b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
307132b578d3Smrgfor as_dir in $PATH
307232b578d3Smrgdo
307332b578d3Smrg  IFS=$as_save_IFS
307432b578d3Smrg  test -z "$as_dir" && as_dir=.
30751b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
307632b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
307732b578d3Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
30781b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
307932b578d3Smrg    break 2
308032b578d3Smrg  fi
308132b578d3Smrgdone
30821b12faf6Smrg  done
308332b578d3SmrgIFS=$as_save_IFS
308432b578d3Smrg
308532b578d3Smrgfi
308632b578d3Smrgfi
308732b578d3SmrgCC=$ac_cv_prog_CC
308832b578d3Smrgif test -n "$CC"; then
30891b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30902a51b5beSmrg$as_echo "$CC" >&6; }
309132b578d3Smrgelse
30921b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30932a51b5beSmrg$as_echo "no" >&6; }
309432b578d3Smrgfi
309532b578d3Smrg
309632b578d3Smrg
309732b578d3Smrgfi
309832b578d3Smrgif test -z "$ac_cv_prog_CC"; then
309932b578d3Smrg  ac_ct_CC=$CC
310032b578d3Smrg  # Extract the first word of "gcc", so it can be a program name with args.
310132b578d3Smrgset dummy gcc; ac_word=$2
31021b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31032a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
31041b12faf6Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
31052a51b5beSmrg  $as_echo_n "(cached) " >&6
310632b578d3Smrgelse
310732b578d3Smrg  if test -n "$ac_ct_CC"; then
310832b578d3Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
310932b578d3Smrgelse
311032b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
311132b578d3Smrgfor as_dir in $PATH
311232b578d3Smrgdo
311332b578d3Smrg  IFS=$as_save_IFS
311432b578d3Smrg  test -z "$as_dir" && as_dir=.
31151b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
311632b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
311732b578d3Smrg    ac_cv_prog_ac_ct_CC="gcc"
31181b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
311932b578d3Smrg    break 2
312032b578d3Smrg  fi
312132b578d3Smrgdone
31221b12faf6Smrg  done
312332b578d3SmrgIFS=$as_save_IFS
312432b578d3Smrg
312532b578d3Smrgfi
312632b578d3Smrgfi
312732b578d3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
312832b578d3Smrgif test -n "$ac_ct_CC"; then
31291b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
31302a51b5beSmrg$as_echo "$ac_ct_CC" >&6; }
313132b578d3Smrgelse
31321b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31332a51b5beSmrg$as_echo "no" >&6; }
313432b578d3Smrgfi
313532b578d3Smrg
313632b578d3Smrg  if test "x$ac_ct_CC" = x; then
313732b578d3Smrg    CC=""
313832b578d3Smrg  else
313932b578d3Smrg    case $cross_compiling:$ac_tool_warned in
314032b578d3Smrgyes:)
31411b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31422a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
314332b578d3Smrgac_tool_warned=yes ;;
314432b578d3Smrgesac
314532b578d3Smrg    CC=$ac_ct_CC
314632b578d3Smrg  fi
314732b578d3Smrgelse
314832b578d3Smrg  CC="$ac_cv_prog_CC"
314932b578d3Smrgfi
315032b578d3Smrg
315132b578d3Smrgif test -z "$CC"; then
315232b578d3Smrg          if test -n "$ac_tool_prefix"; then
315332b578d3Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
315432b578d3Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
31551b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31562a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
31571b12faf6Smrgif test "${ac_cv_prog_CC+set}" = set; then :
31582a51b5beSmrg  $as_echo_n "(cached) " >&6
315932b578d3Smrgelse
316032b578d3Smrg  if test -n "$CC"; then
316132b578d3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
316232b578d3Smrgelse
316332b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
316432b578d3Smrgfor as_dir in $PATH
316532b578d3Smrgdo
316632b578d3Smrg  IFS=$as_save_IFS
316732b578d3Smrg  test -z "$as_dir" && as_dir=.
31681b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
316932b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
317032b578d3Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
31711b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
317232b578d3Smrg    break 2
317332b578d3Smrg  fi
317432b578d3Smrgdone
31751b12faf6Smrg  done
317632b578d3SmrgIFS=$as_save_IFS
317732b578d3Smrg
317832b578d3Smrgfi
317932b578d3Smrgfi
318032b578d3SmrgCC=$ac_cv_prog_CC
318132b578d3Smrgif test -n "$CC"; then
31821b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
31832a51b5beSmrg$as_echo "$CC" >&6; }
318432b578d3Smrgelse
31851b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31862a51b5beSmrg$as_echo "no" >&6; }
318732b578d3Smrgfi
318832b578d3Smrg
318932b578d3Smrg
319032b578d3Smrg  fi
319132b578d3Smrgfi
319232b578d3Smrgif test -z "$CC"; then
319332b578d3Smrg  # Extract the first word of "cc", so it can be a program name with args.
319432b578d3Smrgset dummy cc; ac_word=$2
31951b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31962a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
31971b12faf6Smrgif test "${ac_cv_prog_CC+set}" = set; then :
31982a51b5beSmrg  $as_echo_n "(cached) " >&6
319932b578d3Smrgelse
320032b578d3Smrg  if test -n "$CC"; then
320132b578d3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
320232b578d3Smrgelse
320332b578d3Smrg  ac_prog_rejected=no
320432b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
320532b578d3Smrgfor as_dir in $PATH
320632b578d3Smrgdo
320732b578d3Smrg  IFS=$as_save_IFS
320832b578d3Smrg  test -z "$as_dir" && as_dir=.
32091b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
321032b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
321132b578d3Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
321232b578d3Smrg       ac_prog_rejected=yes
321332b578d3Smrg       continue
321432b578d3Smrg     fi
321532b578d3Smrg    ac_cv_prog_CC="cc"
32161b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
321732b578d3Smrg    break 2
321832b578d3Smrg  fi
321932b578d3Smrgdone
32201b12faf6Smrg  done
322132b578d3SmrgIFS=$as_save_IFS
322232b578d3Smrg
322332b578d3Smrgif test $ac_prog_rejected = yes; then
322432b578d3Smrg  # We found a bogon in the path, so make sure we never use it.
322532b578d3Smrg  set dummy $ac_cv_prog_CC
322632b578d3Smrg  shift
322732b578d3Smrg  if test $# != 0; then
322832b578d3Smrg    # We chose a different compiler from the bogus one.
322932b578d3Smrg    # However, it has the same basename, so the bogon will be chosen
323032b578d3Smrg    # first if we set CC to just the basename; use the full file name.
323132b578d3Smrg    shift
323232b578d3Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
323332b578d3Smrg  fi
323432b578d3Smrgfi
323532b578d3Smrgfi
323632b578d3Smrgfi
323732b578d3SmrgCC=$ac_cv_prog_CC
323832b578d3Smrgif test -n "$CC"; then
32391b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
32402a51b5beSmrg$as_echo "$CC" >&6; }
324132b578d3Smrgelse
32421b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32432a51b5beSmrg$as_echo "no" >&6; }
324432b578d3Smrgfi
324532b578d3Smrg
324632b578d3Smrg
324732b578d3Smrgfi
324832b578d3Smrgif test -z "$CC"; then
324932b578d3Smrg  if test -n "$ac_tool_prefix"; then
325032b578d3Smrg  for ac_prog in cl.exe
325132b578d3Smrg  do
325232b578d3Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
325332b578d3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
32541b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32552a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
32561b12faf6Smrgif test "${ac_cv_prog_CC+set}" = set; then :
32572a51b5beSmrg  $as_echo_n "(cached) " >&6
325832b578d3Smrgelse
325932b578d3Smrg  if test -n "$CC"; then
326032b578d3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
326132b578d3Smrgelse
326232b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
326332b578d3Smrgfor as_dir in $PATH
326432b578d3Smrgdo
326532b578d3Smrg  IFS=$as_save_IFS
326632b578d3Smrg  test -z "$as_dir" && as_dir=.
32671b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
326832b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
326932b578d3Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
32701b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
327132b578d3Smrg    break 2
327232b578d3Smrg  fi
327332b578d3Smrgdone
32741b12faf6Smrg  done
327532b578d3SmrgIFS=$as_save_IFS
327632b578d3Smrg
327732b578d3Smrgfi
327832b578d3Smrgfi
327932b578d3SmrgCC=$ac_cv_prog_CC
328032b578d3Smrgif test -n "$CC"; then
32811b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
32822a51b5beSmrg$as_echo "$CC" >&6; }
328332b578d3Smrgelse
32841b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32852a51b5beSmrg$as_echo "no" >&6; }
328632b578d3Smrgfi
328732b578d3Smrg
328832b578d3Smrg
328932b578d3Smrg    test -n "$CC" && break
329032b578d3Smrg  done
329132b578d3Smrgfi
329232b578d3Smrgif test -z "$CC"; then
329332b578d3Smrg  ac_ct_CC=$CC
329432b578d3Smrg  for ac_prog in cl.exe
329532b578d3Smrgdo
329632b578d3Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
329732b578d3Smrgset dummy $ac_prog; ac_word=$2
32981b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32992a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
33001b12faf6Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
33012a51b5beSmrg  $as_echo_n "(cached) " >&6
330232b578d3Smrgelse
330332b578d3Smrg  if test -n "$ac_ct_CC"; then
330432b578d3Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
330532b578d3Smrgelse
330632b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
330732b578d3Smrgfor as_dir in $PATH
330832b578d3Smrgdo
330932b578d3Smrg  IFS=$as_save_IFS
331032b578d3Smrg  test -z "$as_dir" && as_dir=.
33111b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
331232b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
331332b578d3Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
33141b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
331532b578d3Smrg    break 2
331632b578d3Smrg  fi
331732b578d3Smrgdone
33181b12faf6Smrg  done
331932b578d3SmrgIFS=$as_save_IFS
332032b578d3Smrg
332132b578d3Smrgfi
332232b578d3Smrgfi
332332b578d3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
332432b578d3Smrgif test -n "$ac_ct_CC"; then
33251b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
33262a51b5beSmrg$as_echo "$ac_ct_CC" >&6; }
332732b578d3Smrgelse
33281b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33292a51b5beSmrg$as_echo "no" >&6; }
333032b578d3Smrgfi
333132b578d3Smrg
333232b578d3Smrg
333332b578d3Smrg  test -n "$ac_ct_CC" && break
333432b578d3Smrgdone
333532b578d3Smrg
333632b578d3Smrg  if test "x$ac_ct_CC" = x; then
333732b578d3Smrg    CC=""
333832b578d3Smrg  else
333932b578d3Smrg    case $cross_compiling:$ac_tool_warned in
334032b578d3Smrgyes:)
33411b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33422a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
334332b578d3Smrgac_tool_warned=yes ;;
334432b578d3Smrgesac
334532b578d3Smrg    CC=$ac_ct_CC
334632b578d3Smrg  fi
334732b578d3Smrgfi
334832b578d3Smrg
334932b578d3Smrgfi
335032b578d3Smrg
335132b578d3Smrg
33521b12faf6Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33532a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33541b12faf6Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
33551b12faf6SmrgSee \`config.log' for more details" "$LINENO" 5 ; }
335632b578d3Smrg
335732b578d3Smrg# Provide some information about the compiler.
33581b12faf6Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
33592a51b5beSmrgset X $ac_compile
33602a51b5beSmrgac_compiler=$2
33611b12faf6Smrgfor ac_option in --version -v -V -qversion; do
33621b12faf6Smrg  { { ac_try="$ac_compiler $ac_option >&5"
336332b578d3Smrgcase "(($ac_try" in
336432b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
336532b578d3Smrg  *) ac_try_echo=$ac_try;;
336632b578d3Smrgesac
33671b12faf6Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33681b12faf6Smrg$as_echo "$ac_try_echo"; } >&5
33691b12faf6Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
337032b578d3Smrg  ac_status=$?
33711b12faf6Smrg  if test -s conftest.err; then
33721b12faf6Smrg    sed '10a\
33731b12faf6Smrg... rest of stderr output deleted ...
33741b12faf6Smrg         10q' conftest.err >conftest.er1
33751b12faf6Smrg    cat conftest.er1 >&5
33761b12faf6Smrg  fi
33771b12faf6Smrg  rm -f conftest.er1 conftest.err
33781b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33791b12faf6Smrg  test $ac_status = 0; }
33801b12faf6Smrgdone
338132b578d3Smrg
33821b12faf6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
338332b578d3Smrg/* end confdefs.h.  */
338432b578d3Smrg
338532b578d3Smrgint
338632b578d3Smrgmain ()
338732b578d3Smrg{
338832b578d3Smrg
338932b578d3Smrg  ;
339032b578d3Smrg  return 0;
339132b578d3Smrg}
339232b578d3Smrg_ACEOF
339332b578d3Smrgac_clean_files_save=$ac_clean_files
33942a51b5beSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
339532b578d3Smrg# Try to create an executable without -o first, disregard a.out.
339632b578d3Smrg# It will help us diagnose broken compilers, and finding out an intuition
339732b578d3Smrg# of exeext.
33981b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
33991b12faf6Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
34002a51b5beSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
34012a51b5beSmrg
34022a51b5beSmrg# The possible output files:
34032a51b5beSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
34042a51b5beSmrg
340532b578d3Smrgac_rmfiles=
340632b578d3Smrgfor ac_file in $ac_files
340732b578d3Smrgdo
340832b578d3Smrg  case $ac_file in
34092a51b5beSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
341032b578d3Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
341132b578d3Smrg  esac
341232b578d3Smrgdone
341332b578d3Smrgrm -f $ac_rmfiles
341432b578d3Smrg
34151b12faf6Smrgif { { ac_try="$ac_link_default"
341632b578d3Smrgcase "(($ac_try" in
341732b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
341832b578d3Smrg  *) ac_try_echo=$ac_try;;
341932b578d3Smrgesac
34201b12faf6Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
34211b12faf6Smrg$as_echo "$ac_try_echo"; } >&5
342232b578d3Smrg  (eval "$ac_link_default") 2>&5
342332b578d3Smrg  ac_status=$?
34241b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34251b12faf6Smrg  test $ac_status = 0; }; then :
342632b578d3Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
342732b578d3Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
342832b578d3Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
342932b578d3Smrg# so that the user can short-circuit this test for compilers unknown to
343032b578d3Smrg# Autoconf.
343132b578d3Smrgfor ac_file in $ac_files ''
343232b578d3Smrgdo
343332b578d3Smrg  test -f "$ac_file" || continue
343432b578d3Smrg  case $ac_file in
34352a51b5beSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
343632b578d3Smrg	;;
343732b578d3Smrg    [ab].out )
343832b578d3Smrg	# We found the default executable, but exeext='' is most
343932b578d3Smrg	# certainly right.
344032b578d3Smrg	break;;
344132b578d3Smrg    *.* )
34421b12faf6Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
344332b578d3Smrg	then :; else
344432b578d3Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
344532b578d3Smrg	fi
344632b578d3Smrg	# We set ac_cv_exeext here because the later test for it is not
344732b578d3Smrg	# safe: cross compilers may not add the suffix if given an `-o'
344832b578d3Smrg	# argument, so we may need to know it at that point already.
344932b578d3Smrg	# Even if this section looks crufty: it has the advantage of
345032b578d3Smrg	# actually working.
345132b578d3Smrg	break;;
345232b578d3Smrg    * )
345332b578d3Smrg	break;;
345432b578d3Smrg  esac
345532b578d3Smrgdone
345632b578d3Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
345732b578d3Smrg
345832b578d3Smrgelse
345932b578d3Smrg  ac_file=''
346032b578d3Smrgfi
34611b12faf6Smrgif test -z "$ac_file"; then :
34621b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34631b12faf6Smrg$as_echo "no" >&6; }
34641b12faf6Smrg$as_echo "$as_me: failed program was:" >&5
346532b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
346632b578d3Smrg
34671b12faf6Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34682a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34691b12faf6Smrgas_fn_error 77 "C compiler cannot create executables
34701b12faf6SmrgSee \`config.log' for more details" "$LINENO" 5 ; }
34711b12faf6Smrgelse
34721b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34731b12faf6Smrg$as_echo "yes" >&6; }
347432b578d3Smrgfi
34751b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
34761b12faf6Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
34771b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
34781b12faf6Smrg$as_echo "$ac_file" >&6; }
347932b578d3Smrgac_exeext=$ac_cv_exeext
348032b578d3Smrg
34812a51b5beSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
348232b578d3Smrgac_clean_files=$ac_clean_files_save
34831b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
34842a51b5beSmrg$as_echo_n "checking for suffix of executables... " >&6; }
34851b12faf6Smrgif { { ac_try="$ac_link"
348632b578d3Smrgcase "(($ac_try" in
348732b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
348832b578d3Smrg  *) ac_try_echo=$ac_try;;
348932b578d3Smrgesac
34901b12faf6Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
34911b12faf6Smrg$as_echo "$ac_try_echo"; } >&5
349232b578d3Smrg  (eval "$ac_link") 2>&5
349332b578d3Smrg  ac_status=$?
34941b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34951b12faf6Smrg  test $ac_status = 0; }; then :
349632b578d3Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
349732b578d3Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
349832b578d3Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
349932b578d3Smrg# `rm'.
350032b578d3Smrgfor ac_file in conftest.exe conftest conftest.*; do
350132b578d3Smrg  test -f "$ac_file" || continue
350232b578d3Smrg  case $ac_file in
35032a51b5beSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
350432b578d3Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
350532b578d3Smrg	  break;;
350632b578d3Smrg    * ) break;;
350732b578d3Smrg  esac
350832b578d3Smrgdone
350932b578d3Smrgelse
35101b12faf6Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35112a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35121b12faf6Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
35131b12faf6SmrgSee \`config.log' for more details" "$LINENO" 5 ; }
351432b578d3Smrgfi
35151b12faf6Smrgrm -f conftest conftest$ac_cv_exeext
35161b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
35172a51b5beSmrg$as_echo "$ac_cv_exeext" >&6; }
351832b578d3Smrg
351932b578d3Smrgrm -f conftest.$ac_ext
352032b578d3SmrgEXEEXT=$ac_cv_exeext
352132b578d3Smrgac_exeext=$EXEEXT
35221b12faf6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
352332b578d3Smrg/* end confdefs.h.  */
35241b12faf6Smrg#include <stdio.h>
352532b578d3Smrgint
352632b578d3Smrgmain ()
352732b578d3Smrg{
35281b12faf6SmrgFILE *f = fopen ("conftest.out", "w");
35291b12faf6Smrg return ferror (f) || fclose (f) != 0;
353032b578d3Smrg
353132b578d3Smrg  ;
353232b578d3Smrg  return 0;
353332b578d3Smrg}
353432b578d3Smrg_ACEOF
35351b12faf6Smrgac_clean_files="$ac_clean_files conftest.out"
35361b12faf6Smrg# Check that the compiler produces executables we can run.  If not, either
35371b12faf6Smrg# the compiler is broken, or we cross compile.
35381b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
35391b12faf6Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
35401b12faf6Smrgif test "$cross_compiling" != yes; then
35411b12faf6Smrg  { { ac_try="$ac_link"
354232b578d3Smrgcase "(($ac_try" in
354332b578d3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
354432b578d3Smrg  *) ac_try_echo=$ac_try;;
354532b578d3Smrgesac
35461b12faf6Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35471b12faf6Smrg$as_echo "$ac_try_echo"; } >&5
35481b12faf6Smrg  (eval "$ac_link") 2>&5
354932b578d3Smrg  ac_status=$?
35501b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35511b12faf6Smrg  test $ac_status = 0; }
35521b12faf6Smrg  if { ac_try='./conftest$ac_cv_exeext'
35531b12faf6Smrg  { { case "(($ac_try" in
35541b12faf6Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35551b12faf6Smrg  *) ac_try_echo=$ac_try;;
35561b12faf6Smrgesac
35571b12faf6Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35581b12faf6Smrg$as_echo "$ac_try_echo"; } >&5
35591b12faf6Smrg  (eval "$ac_try") 2>&5
35601b12faf6Smrg  ac_status=$?
35611b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35621b12faf6Smrg  test $ac_status = 0; }; }; then
35631b12faf6Smrg    cross_compiling=no
35641b12faf6Smrg  else
35651b12faf6Smrg    if test "$cross_compiling" = maybe; then
35661b12faf6Smrg	cross_compiling=yes
35671b12faf6Smrg    else
35681b12faf6Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35691b12faf6Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35701b12faf6Smrgas_fn_error $? "cannot run C compiled programs.
35711b12faf6SmrgIf you meant to cross compile, use \`--host'.
35721b12faf6SmrgSee \`config.log' for more details" "$LINENO" 5 ; }
35731b12faf6Smrg    fi
35741b12faf6Smrg  fi
35751b12faf6Smrgfi
35761b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
35771b12faf6Smrg$as_echo "$cross_compiling" >&6; }
35781b12faf6Smrg
35791b12faf6Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
35801b12faf6Smrgac_clean_files=$ac_clean_files_save
35811b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
35821b12faf6Smrg$as_echo_n "checking for suffix of object files... " >&6; }
35831b12faf6Smrgif test "${ac_cv_objext+set}" = set; then :
35841b12faf6Smrg  $as_echo_n "(cached) " >&6
35851b12faf6Smrgelse
35861b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35871b12faf6Smrg/* end confdefs.h.  */
35881b12faf6Smrg
35891b12faf6Smrgint
35901b12faf6Smrgmain ()
35911b12faf6Smrg{
35921b12faf6Smrg
35931b12faf6Smrg  ;
35941b12faf6Smrg  return 0;
35951b12faf6Smrg}
35961b12faf6Smrg_ACEOF
35971b12faf6Smrgrm -f conftest.o conftest.obj
35981b12faf6Smrgif { { ac_try="$ac_compile"
35991b12faf6Smrgcase "(($ac_try" in
36001b12faf6Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36011b12faf6Smrg  *) ac_try_echo=$ac_try;;
36021b12faf6Smrgesac
36031b12faf6Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36041b12faf6Smrg$as_echo "$ac_try_echo"; } >&5
36051b12faf6Smrg  (eval "$ac_compile") 2>&5
36061b12faf6Smrg  ac_status=$?
36071b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36081b12faf6Smrg  test $ac_status = 0; }; then :
36091b12faf6Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
36101b12faf6Smrg  test -f "$ac_file" || continue;
36111b12faf6Smrg  case $ac_file in
36121b12faf6Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
36131b12faf6Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
361432b578d3Smrg       break;;
361532b578d3Smrg  esac
361632b578d3Smrgdone
361732b578d3Smrgelse
36182a51b5beSmrg  $as_echo "$as_me: failed program was:" >&5
361932b578d3Smrgsed 's/^/| /' conftest.$ac_ext >&5
362032b578d3Smrg
36211b12faf6Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36222a51b5beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36231b12faf6Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
36241b12faf6SmrgSee \`config.log' for more details" "$LINENO" 5 ; }
362532b578d3Smrgfi
362632b578d3Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
362732b578d3Smrgfi
36281b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
36292a51b5beSmrg$as_echo "$ac_cv_objext" >&6; }
363032b578d3SmrgOBJEXT=$ac_cv_objext
363132b578d3Smrgac_objext=$OBJEXT
36321b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
36332a51b5beSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
36341b12faf6Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then :
36352a51b5beSmrg  $as_echo_n "(cached) " >&6
363632b578d3Smrgelse
36371b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
363832b578d3Smrg/* end confdefs.h.  */
363932b578d3Smrg
364032b578d3Smrgint
364132b578d3Smrgmain ()
364232b578d3Smrg{
364332b578d3Smrg#ifndef __GNUC__
364432b578d3Smrg       choke me
364532b578d3Smrg#endif
364632b578d3Smrg
364732b578d3Smrg  ;
364832b578d3Smrg  return 0;
364932b578d3Smrg}
365032b578d3Smrg_ACEOF
36511b12faf6Smrgif ac_fn_c_try_compile "$LINENO"; then :
365232b578d3Smrg  ac_compiler_gnu=yes
365332b578d3Smrgelse
36541b12faf6Smrg  ac_compiler_gnu=no
365532b578d3Smrgfi
365632b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
365732b578d3Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
365832b578d3Smrg
365932b578d3Smrgfi
36601b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
36612a51b5beSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
36622a51b5beSmrgif test $ac_compiler_gnu = yes; then
36632a51b5beSmrg  GCC=yes
36642a51b5beSmrgelse
36652a51b5beSmrg  GCC=
36662a51b5beSmrgfi
366732b578d3Smrgac_test_CFLAGS=${CFLAGS+set}
366832b578d3Smrgac_save_CFLAGS=$CFLAGS
36691b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
36702a51b5beSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
36711b12faf6Smrgif test "${ac_cv_prog_cc_g+set}" = set; then :
36722a51b5beSmrg  $as_echo_n "(cached) " >&6
367332b578d3Smrgelse
367432b578d3Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
367532b578d3Smrg   ac_c_werror_flag=yes
367632b578d3Smrg   ac_cv_prog_cc_g=no
367732b578d3Smrg   CFLAGS="-g"
36781b12faf6Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
367932b578d3Smrg/* end confdefs.h.  */
368032b578d3Smrg
368132b578d3Smrgint
368232b578d3Smrgmain ()
368332b578d3Smrg{
368432b578d3Smrg
368532b578d3Smrg  ;
368632b578d3Smrg  return 0;
368732b578d3Smrg}
368832b578d3Smrg_ACEOF
36891b12faf6Smrgif ac_fn_c_try_compile "$LINENO"; then :
369032b578d3Smrg  ac_cv_prog_cc_g=yes
369132b578d3Smrgelse
36921b12faf6Smrg  CFLAGS=""
36931b12faf6Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
369432b578d3Smrg/* end confdefs.h.  */
369532b578d3Smrg
369632b578d3Smrgint
369732b578d3Smrgmain ()
369832b578d3Smrg{
369932b578d3Smrg
370032b578d3Smrg  ;
370132b578d3Smrg  return 0;
370232b578d3Smrg}
370332b578d3Smrg_ACEOF
37041b12faf6Smrgif ac_fn_c_try_compile "$LINENO"; then :
370532b578d3Smrg
37061b12faf6Smrgelse
37071b12faf6Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
370832b578d3Smrg	 CFLAGS="-g"
37091b12faf6Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
371032b578d3Smrg/* end confdefs.h.  */
371132b578d3Smrg
371232b578d3Smrgint
371332b578d3Smrgmain ()
371432b578d3Smrg{
371532b578d3Smrg
371632b578d3Smrg  ;
371732b578d3Smrg  return 0;
371832b578d3Smrg}
371932b578d3Smrg_ACEOF
37201b12faf6Smrgif ac_fn_c_try_compile "$LINENO"; then :
372132b578d3Smrg  ac_cv_prog_cc_g=yes
372232b578d3Smrgfi
372332b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
372432b578d3Smrgfi
372532b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
372632b578d3Smrgfi
372732b578d3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
372832b578d3Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
372932b578d3Smrgfi
37301b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
37312a51b5beSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
373232b578d3Smrgif test "$ac_test_CFLAGS" = set; then
373332b578d3Smrg  CFLAGS=$ac_save_CFLAGS
373432b578d3Smrgelif test $ac_cv_prog_cc_g = yes; then
373532b578d3Smrg  if test "$GCC" = yes; then
373632b578d3Smrg    CFLAGS="-g -O2"
373732b578d3Smrg  else
373832b578d3Smrg    CFLAGS="-g"
373932b578d3Smrg  fi
374032b578d3Smrgelse
374132b578d3Smrg  if test "$GCC" = yes; then
374232b578d3Smrg    CFLAGS="-O2"
374332b578d3Smrg  else
374432b578d3Smrg    CFLAGS=
374532b578d3Smrg  fi
374632b578d3Smrgfi
37471b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
37482a51b5beSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
37491b12faf6Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then :
37502a51b5beSmrg  $as_echo_n "(cached) " >&6
375132b578d3Smrgelse
375232b578d3Smrg  ac_cv_prog_cc_c89=no
375332b578d3Smrgac_save_CC=$CC
37541b12faf6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
375532b578d3Smrg/* end confdefs.h.  */
375632b578d3Smrg#include <stdarg.h>
375732b578d3Smrg#include <stdio.h>
375832b578d3Smrg#include <sys/types.h>
375932b578d3Smrg#include <sys/stat.h>
376032b578d3Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
376132b578d3Smrgstruct buf { int x; };
376232b578d3SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
376332b578d3Smrgstatic char *e (p, i)
376432b578d3Smrg     char **p;
376532b578d3Smrg     int i;
376632b578d3Smrg{
376732b578d3Smrg  return p[i];
376832b578d3Smrg}
376932b578d3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
377032b578d3Smrg{
377132b578d3Smrg  char *s;
377232b578d3Smrg  va_list v;
377332b578d3Smrg  va_start (v,p);
377432b578d3Smrg  s = g (p, va_arg (v,int));
377532b578d3Smrg  va_end (v);
377632b578d3Smrg  return s;
377732b578d3Smrg}
377832b578d3Smrg
377932b578d3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
378032b578d3Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
378132b578d3Smrg   These don't provoke an error unfortunately, instead are silently treated
378232b578d3Smrg   as 'x'.  The following induces an error, until -std is added to get
378332b578d3Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
378432b578d3Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
378532b578d3Smrg   that's true only with -std.  */
378632b578d3Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
378732b578d3Smrg
378832b578d3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
378932b578d3Smrg   inside strings and character constants.  */
379032b578d3Smrg#define FOO(x) 'x'
379132b578d3Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
379232b578d3Smrg
379332b578d3Smrgint test (int i, double x);
379432b578d3Smrgstruct s1 {int (*f) (int a);};
379532b578d3Smrgstruct s2 {int (*f) (double a);};
379632b578d3Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
379732b578d3Smrgint argc;
379832b578d3Smrgchar **argv;
379932b578d3Smrgint
380032b578d3Smrgmain ()
380132b578d3Smrg{
380232b578d3Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
380332b578d3Smrg  ;
380432b578d3Smrg  return 0;
380532b578d3Smrg}
380632b578d3Smrg_ACEOF
380732b578d3Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
380832b578d3Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
380932b578d3Smrgdo
381032b578d3Smrg  CC="$ac_save_CC $ac_arg"
38111b12faf6Smrg  if ac_fn_c_try_compile "$LINENO"; then :
381232b578d3Smrg  ac_cv_prog_cc_c89=$ac_arg
381332b578d3Smrgfi
381432b578d3Smrgrm -f core conftest.err conftest.$ac_objext
381532b578d3Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
381632b578d3Smrgdone
381732b578d3Smrgrm -f conftest.$ac_ext
381832b578d3SmrgCC=$ac_save_CC
381932b578d3Smrg
382032b578d3Smrgfi
382132b578d3Smrg# AC_CACHE_VAL
382232b578d3Smrgcase "x$ac_cv_prog_cc_c89" in
382332b578d3Smrg  x)
38241b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
38252a51b5beSmrg$as_echo "none needed" >&6; } ;;
382632b578d3Smrg  xno)
38271b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
38282a51b5beSmrg$as_echo "unsupported" >&6; } ;;
382932b578d3Smrg  *)
383032b578d3Smrg    CC="$CC $ac_cv_prog_cc_c89"
38311b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
38322a51b5beSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
383332b578d3Smrgesac
38341b12faf6Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
383532b578d3Smrg
38361b12faf6Smrgfi
383732b578d3Smrg
383832b578d3Smrgac_ext=c
383932b578d3Smrgac_cpp='$CPP $CPPFLAGS'
384032b578d3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
384132b578d3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
384232b578d3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
384332b578d3Smrg
384432b578d3Smrgdepcc="$CC"   am_compiler_list=
384532b578d3Smrg
38461b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
38472a51b5beSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
38481b12faf6Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
38492a51b5beSmrg  $as_echo_n "(cached) " >&6
385032b578d3Smrgelse
385132b578d3Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
385232b578d3Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
385332b578d3Smrg  # making bogus files that we don't know about and never remove.  For
385432b578d3Smrg  # instance it was reported that on HP-UX the gcc test will end up
385532b578d3Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
385632b578d3Smrg  # in D'.
385732b578d3Smrg  mkdir conftest.dir
385832b578d3Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
385932b578d3Smrg  # using a relative directory.
386032b578d3Smrg  cp "$am_depcomp" conftest.dir
386132b578d3Smrg  cd conftest.dir
386232b578d3Smrg  # We will build objects and dependencies in a subdirectory because
386332b578d3Smrg  # it helps to detect inapplicable dependency modes.  For instance
386432b578d3Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
386532b578d3Smrg  # side effect of compilation, but ICC will put the dependencies in
386632b578d3Smrg  # the current directory while Tru64 will put them in the object
386732b578d3Smrg  # directory.
386832b578d3Smrg  mkdir sub
386932b578d3Smrg
387032b578d3Smrg  am_cv_CC_dependencies_compiler_type=none
387132b578d3Smrg  if test "$am_compiler_list" = ""; then
387232b578d3Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
387332b578d3Smrg  fi
38742a51b5beSmrg  am__universal=false
38752a51b5beSmrg  case " $depcc " in #(
38762a51b5beSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
38772a51b5beSmrg     esac
38782a51b5beSmrg
387932b578d3Smrg  for depmode in $am_compiler_list; do
388032b578d3Smrg    # Setup a source with many dependencies, because some compilers
388132b578d3Smrg    # like to wrap large dependency lists on column 80 (with \), and
388232b578d3Smrg    # we should not choose a depcomp mode which is confused by this.
388332b578d3Smrg    #
388432b578d3Smrg    # We need to recreate these files for each test, as the compiler may
388532b578d3Smrg    # overwrite some of them when testing with obscure command lines.
388632b578d3Smrg    # This happens at least with the AIX C compiler.
388732b578d3Smrg    : > sub/conftest.c
388832b578d3Smrg    for i in 1 2 3 4 5 6; do
388932b578d3Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
389032b578d3Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
389132b578d3Smrg      # Solaris 8's {/usr,}/bin/sh.
389232b578d3Smrg      touch sub/conftst$i.h
389332b578d3Smrg    done
389432b578d3Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
389532b578d3Smrg
38962a51b5beSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
38972a51b5beSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
38982a51b5beSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
38992a51b5beSmrg    # versions had trouble with output in subdirs
39002a51b5beSmrg    am__obj=sub/conftest.${OBJEXT-o}
39012a51b5beSmrg    am__minus_obj="-o $am__obj"
390232b578d3Smrg    case $depmode in
39032a51b5beSmrg    gcc)
39042a51b5beSmrg      # This depmode causes a compiler race in universal mode.
39052a51b5beSmrg      test "$am__universal" = false || continue
39062a51b5beSmrg      ;;
390732b578d3Smrg    nosideeffect)
390832b578d3Smrg      # after this tag, mechanisms are not by side-effect, so they'll
390932b578d3Smrg      # only be used when explicitly requested
391032b578d3Smrg      if test "x$enable_dependency_tracking" = xyes; then
391132b578d3Smrg	continue
391232b578d3Smrg      else
391332b578d3Smrg	break
391432b578d3Smrg      fi
391532b578d3Smrg      ;;
39162a51b5beSmrg    msvisualcpp | msvcmsys)
39172a51b5beSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
39182a51b5beSmrg      # not run yet.  These depmodes are late enough in the game, and
39192a51b5beSmrg      # so weak that their functioning should not be impacted.
39202a51b5beSmrg      am__obj=conftest.${OBJEXT-o}
39212a51b5beSmrg      am__minus_obj=
39222a51b5beSmrg      ;;
392332b578d3Smrg    none) break ;;
392432b578d3Smrg    esac
392532b578d3Smrg    if depmode=$depmode \
39262a51b5beSmrg       source=sub/conftest.c object=$am__obj \
392732b578d3Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
39282a51b5beSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
392932b578d3Smrg         >/dev/null 2>conftest.err &&
393032b578d3Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
393132b578d3Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
39322a51b5beSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
393332b578d3Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
393432b578d3Smrg      # icc doesn't choke on unknown options, it will just issue warnings
393532b578d3Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
393632b578d3Smrg      # that says an option was ignored or not supported.
393732b578d3Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
393832b578d3Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
393932b578d3Smrg      # The diagnosis changed in icc 8.0:
394032b578d3Smrg      #   icc: Command line remark: option '-MP' not supported
394132b578d3Smrg      if (grep 'ignoring option' conftest.err ||
394232b578d3Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
394332b578d3Smrg        am_cv_CC_dependencies_compiler_type=$depmode
394432b578d3Smrg        break
394532b578d3Smrg      fi
394632b578d3Smrg    fi
394732b578d3Smrg  done
394832b578d3Smrg
394932b578d3Smrg  cd ..
395032b578d3Smrg  rm -rf conftest.dir
395132b578d3Smrgelse
395232b578d3Smrg  am_cv_CC_dependencies_compiler_type=none
395332b578d3Smrgfi
395432b578d3Smrg
395532b578d3Smrgfi
39561b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
39572a51b5beSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
395832b578d3SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
395932b578d3Smrg
396032b578d3Smrg if
396132b578d3Smrg  test "x$enable_dependency_tracking" != xno \
396232b578d3Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
396332b578d3Smrg  am__fastdepCC_TRUE=
396432b578d3Smrg  am__fastdepCC_FALSE='#'
396532b578d3Smrgelse
396632b578d3Smrg  am__fastdepCC_TRUE='#'
396732b578d3Smrg  am__fastdepCC_FALSE=
396832b578d3Smrgfi
396932b578d3Smrg
397032b578d3Smrg
39711b12faf6Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
39721b12faf6Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
39731b12faf6Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then :
39742a51b5beSmrg  $as_echo_n "(cached) " >&6
397532b578d3Smrgelse
39761b12faf6Smrg  ac_cv_prog_cc_c99=no
39771b12faf6Smrgac_save_CC=$CC
39781b12faf6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
39791b12faf6Smrg/* end confdefs.h.  */
39801b12faf6Smrg#include <stdarg.h>
39811b12faf6Smrg#include <stdbool.h>
39821b12faf6Smrg#include <stdlib.h>
39831b12faf6Smrg#include <wchar.h>
39841b12faf6Smrg#include <stdio.h>
398532b578d3Smrg
39861b12faf6Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
39871b12faf6Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
39881b12faf6Smrg#define showlist(...) puts (#__VA_ARGS__)
39891b12faf6Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
39901b12faf6Smrgstatic void
39911b12faf6Smrgtest_varargs_macros (void)
39921b12faf6Smrg{
39931b12faf6Smrg  int x = 1234;
39941b12faf6Smrg  int y = 5678;
39951b12faf6Smrg  debug ("Flag");
39961b12faf6Smrg  debug ("X = %d\n", x);
39971b12faf6Smrg  showlist (The first, second, and third items.);
39981b12faf6Smrg  report (x>y, "x is %d but y is %d", x, y);
39991b12faf6Smrg}
400032b578d3Smrg
40011b12faf6Smrg// Check long long types.
40021b12faf6Smrg#define BIG64 18446744073709551615ull
40031b12faf6Smrg#define BIG32 4294967295ul
40041b12faf6Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
40051b12faf6Smrg#if !BIG_OK
40061b12faf6Smrg  your preprocessor is broken;
40071b12faf6Smrg#endif
40081b12faf6Smrg#if BIG_OK
40091b12faf6Smrg#else
40101b12faf6Smrg  your preprocessor is broken;
40111b12faf6Smrg#endif
40121b12faf6Smrgstatic long long int bignum = -9223372036854775807LL;
40131b12faf6Smrgstatic unsigned long long int ubignum = BIG64;
401432b578d3Smrg
40151b12faf6Smrgstruct incomplete_array
40161b12faf6Smrg{
40171b12faf6Smrg  int datasize;
40181b12faf6Smrg  double data[];
40191b12faf6Smrg};
40202a51b5beSmrg
40211b12faf6Smrgstruct named_init {
40221b12faf6Smrg  int number;
40231b12faf6Smrg  const wchar_t *name;
40241b12faf6Smrg  double average;
40251b12faf6Smrg};
402632b578d3Smrg
40271b12faf6Smrgtypedef const char *ccp;
40281b12faf6Smrg
40291b12faf6Smrgstatic inline int
40301b12faf6Smrgtest_restrict (ccp restrict text)
40311b12faf6Smrg{
40321b12faf6Smrg  // See if C++-style comments work.
40331b12faf6Smrg  // Iterate through items via the restricted pointer.
40341b12faf6Smrg  // Also check for declarations in for loops.
40351b12faf6Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
40361b12faf6Smrg    continue;
40371b12faf6Smrg  return 0;
40381b12faf6Smrg}
40391b12faf6Smrg
40401b12faf6Smrg// Check varargs and va_copy.
40411b12faf6Smrgstatic void
40421b12faf6Smrgtest_varargs (const char *format, ...)
40431b12faf6Smrg{
40441b12faf6Smrg  va_list args;
40451b12faf6Smrg  va_start (args, format);
40461b12faf6Smrg  va_list args_copy;
40471b12faf6Smrg  va_copy (args_copy, args);
40481b12faf6Smrg
40491b12faf6Smrg  const char *str;
40501b12faf6Smrg  int number;
40511b12faf6Smrg  float fnumber;
40521b12faf6Smrg
40531b12faf6Smrg  while (*format)
40541b12faf6Smrg    {
40551b12faf6Smrg      switch (*format++)
40561b12faf6Smrg	{
40571b12faf6Smrg	case 's': // string
40581b12faf6Smrg	  str = va_arg (args_copy, const char *);
40591b12faf6Smrg	  break;
40601b12faf6Smrg	case 'd': // int
40611b12faf6Smrg	  number = va_arg (args_copy, int);
40621b12faf6Smrg	  break;
40631b12faf6Smrg	case 'f': // float
40641b12faf6Smrg	  fnumber = va_arg (args_copy, double);
40651b12faf6Smrg	  break;
40661b12faf6Smrg	default:
40671b12faf6Smrg	  break;
40681b12faf6Smrg	}
40691b12faf6Smrg    }
40701b12faf6Smrg  va_end (args_copy);
40711b12faf6Smrg  va_end (args);
40721b12faf6Smrg}
40731b12faf6Smrg
40741b12faf6Smrgint
40751b12faf6Smrgmain ()
40761b12faf6Smrg{
40771b12faf6Smrg
40781b12faf6Smrg  // Check bool.
40791b12faf6Smrg  _Bool success = false;
40801b12faf6Smrg
40811b12faf6Smrg  // Check restrict.
40821b12faf6Smrg  if (test_restrict ("String literal") == 0)
40831b12faf6Smrg    success = true;
40841b12faf6Smrg  char *restrict newvar = "Another string";
40851b12faf6Smrg
40861b12faf6Smrg  // Check varargs.
40871b12faf6Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
40881b12faf6Smrg  test_varargs_macros ();
40891b12faf6Smrg
40901b12faf6Smrg  // Check flexible array members.
40911b12faf6Smrg  struct incomplete_array *ia =
40921b12faf6Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
40931b12faf6Smrg  ia->datasize = 10;
40941b12faf6Smrg  for (int i = 0; i < ia->datasize; ++i)
40951b12faf6Smrg    ia->data[i] = i * 1.234;
40961b12faf6Smrg
40971b12faf6Smrg  // Check named initializers.
40981b12faf6Smrg  struct named_init ni = {
40991b12faf6Smrg    .number = 34,
41001b12faf6Smrg    .name = L"Test wide string",
41011b12faf6Smrg    .average = 543.34343,
41021b12faf6Smrg  };
41031b12faf6Smrg
41041b12faf6Smrg  ni.number = 58;
41051b12faf6Smrg
41061b12faf6Smrg  int dynamic_array[ni.number];
41071b12faf6Smrg  dynamic_array[ni.number - 1] = 543;
41081b12faf6Smrg
41091b12faf6Smrg  // work around unused variable warnings
41101b12faf6Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
41111b12faf6Smrg	  || dynamic_array[ni.number - 1] != 543);
41121b12faf6Smrg
41131b12faf6Smrg  ;
41141b12faf6Smrg  return 0;
41151b12faf6Smrg}
41161b12faf6Smrg_ACEOF
41171b12faf6Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
41181b12faf6Smrgdo
41191b12faf6Smrg  CC="$ac_save_CC $ac_arg"
41201b12faf6Smrg  if ac_fn_c_try_compile "$LINENO"; then :
41211b12faf6Smrg  ac_cv_prog_cc_c99=$ac_arg
41221b12faf6Smrgfi
41231b12faf6Smrgrm -f core conftest.err conftest.$ac_objext
41241b12faf6Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
412532b578d3Smrgdone
41261b12faf6Smrgrm -f conftest.$ac_ext
41271b12faf6SmrgCC=$ac_save_CC
41281b12faf6Smrg
412932b578d3Smrgfi
41301b12faf6Smrg# AC_CACHE_VAL
41311b12faf6Smrgcase "x$ac_cv_prog_cc_c99" in
41321b12faf6Smrg  x)
41331b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
41341b12faf6Smrg$as_echo "none needed" >&6; } ;;
41351b12faf6Smrg  xno)
41361b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
41371b12faf6Smrg$as_echo "unsupported" >&6; } ;;
41381b12faf6Smrg  *)
41391b12faf6Smrg    CC="$CC $ac_cv_prog_cc_c99"
41401b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
41411b12faf6Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
41421b12faf6Smrgesac
41431b12faf6Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
414432b578d3Smrg
414532b578d3Smrgfi
414632b578d3Smrg
414732b578d3Smrg
41481b12faf6Smrg
41491b12faf6Smrgac_ext=c
41501b12faf6Smrgac_cpp='$CPP $CPPFLAGS'
41511b12faf6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41521b12faf6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41531b12faf6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
41541b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
41551b12faf6Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
41561b12faf6Smrg# On Suns, sometimes $CPP names a directory.
41571b12faf6Smrgif test -n "$CPP" && test -d "$CPP"; then
41581b12faf6Smrg  CPP=
41591b12faf6Smrgfi
41601b12faf6Smrgif test -z "$CPP"; then
41611b12faf6Smrg  if test "${ac_cv_prog_CPP+set}" = set; then :
41622a51b5beSmrg  $as_echo_n "(cached) " >&6
416332b578d3Smrgelse
41641b12faf6Smrg      # Double quotes because CPP needs to be expanded
41651b12faf6Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
41661b12faf6Smrg    do
41671b12faf6Smrg      ac_preproc_ok=false
41681b12faf6Smrgfor ac_c_preproc_warn_flag in '' yes
41691b12faf6Smrgdo
41701b12faf6Smrg  # Use a header file that comes with gcc, so configuring glibc
41711b12faf6Smrg  # with a fresh cross-compiler works.
41721b12faf6Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41731b12faf6Smrg  # <limits.h> exists even on freestanding compilers.
41741b12faf6Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
41751b12faf6Smrg  # not just through cpp. "Syntax error" is here to catch this case.
41761b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41771b12faf6Smrg/* end confdefs.h.  */
41781b12faf6Smrg#ifdef __STDC__
41791b12faf6Smrg# include <limits.h>
41801b12faf6Smrg#else
41811b12faf6Smrg# include <assert.h>
41821b12faf6Smrg#endif
41831b12faf6Smrg		     Syntax error
41841b12faf6Smrg_ACEOF
41851b12faf6Smrgif ac_fn_c_try_cpp "$LINENO"; then :
41861b12faf6Smrg
41871b12faf6Smrgelse
41881b12faf6Smrg  # Broken: fails on valid input.
41891b12faf6Smrgcontinue
41901b12faf6Smrgfi
41911b12faf6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
41921b12faf6Smrg
41931b12faf6Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
41941b12faf6Smrg  # can be detected and how.
41951b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41961b12faf6Smrg/* end confdefs.h.  */
41971b12faf6Smrg#include <ac_nonexistent.h>
41981b12faf6Smrg_ACEOF
41991b12faf6Smrgif ac_fn_c_try_cpp "$LINENO"; then :
42001b12faf6Smrg  # Broken: success on invalid input.
42011b12faf6Smrgcontinue
42021b12faf6Smrgelse
42031b12faf6Smrg  # Passes both tests.
42041b12faf6Smrgac_preproc_ok=:
42051b12faf6Smrgbreak
42061b12faf6Smrgfi
42071b12faf6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
42081b12faf6Smrg
42091b12faf6Smrgdone
42101b12faf6Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
42111b12faf6Smrgrm -f conftest.i conftest.err conftest.$ac_ext
42121b12faf6Smrgif $ac_preproc_ok; then :
42131b12faf6Smrg  break
42141b12faf6Smrgfi
42151b12faf6Smrg
42161b12faf6Smrg    done
42171b12faf6Smrg    ac_cv_prog_CPP=$CPP
42181b12faf6Smrg
42191b12faf6Smrgfi
42201b12faf6Smrg  CPP=$ac_cv_prog_CPP
42211b12faf6Smrgelse
42221b12faf6Smrg  ac_cv_prog_CPP=$CPP
42231b12faf6Smrgfi
42241b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
42251b12faf6Smrg$as_echo "$CPP" >&6; }
42261b12faf6Smrgac_preproc_ok=false
42271b12faf6Smrgfor ac_c_preproc_warn_flag in '' yes
42281b12faf6Smrgdo
42291b12faf6Smrg  # Use a header file that comes with gcc, so configuring glibc
42301b12faf6Smrg  # with a fresh cross-compiler works.
42311b12faf6Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42321b12faf6Smrg  # <limits.h> exists even on freestanding compilers.
42331b12faf6Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
42341b12faf6Smrg  # not just through cpp. "Syntax error" is here to catch this case.
42351b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42361b12faf6Smrg/* end confdefs.h.  */
42371b12faf6Smrg#ifdef __STDC__
42381b12faf6Smrg# include <limits.h>
42391b12faf6Smrg#else
42401b12faf6Smrg# include <assert.h>
42411b12faf6Smrg#endif
42421b12faf6Smrg		     Syntax error
42431b12faf6Smrg_ACEOF
42441b12faf6Smrgif ac_fn_c_try_cpp "$LINENO"; then :
42451b12faf6Smrg
42461b12faf6Smrgelse
42471b12faf6Smrg  # Broken: fails on valid input.
42481b12faf6Smrgcontinue
42491b12faf6Smrgfi
42501b12faf6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
42511b12faf6Smrg
42521b12faf6Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
42531b12faf6Smrg  # can be detected and how.
42541b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42551b12faf6Smrg/* end confdefs.h.  */
42561b12faf6Smrg#include <ac_nonexistent.h>
42571b12faf6Smrg_ACEOF
42581b12faf6Smrgif ac_fn_c_try_cpp "$LINENO"; then :
42591b12faf6Smrg  # Broken: success on invalid input.
42601b12faf6Smrgcontinue
42611b12faf6Smrgelse
42621b12faf6Smrg  # Passes both tests.
42631b12faf6Smrgac_preproc_ok=:
42641b12faf6Smrgbreak
42651b12faf6Smrgfi
42661b12faf6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
42671b12faf6Smrg
42681b12faf6Smrgdone
42691b12faf6Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
42701b12faf6Smrgrm -f conftest.i conftest.err conftest.$ac_ext
42711b12faf6Smrgif $ac_preproc_ok; then :
42721b12faf6Smrg
42731b12faf6Smrgelse
42741b12faf6Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42751b12faf6Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42761b12faf6Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
42771b12faf6SmrgSee \`config.log' for more details" "$LINENO" 5 ; }
42781b12faf6Smrgfi
42791b12faf6Smrg
42801b12faf6Smrgac_ext=c
42811b12faf6Smrgac_cpp='$CPP $CPPFLAGS'
42821b12faf6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42831b12faf6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42841b12faf6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
42851b12faf6Smrg
42861b12faf6Smrg
42871b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
42881b12faf6Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
42891b12faf6Smrgif test "${ac_cv_path_GREP+set}" = set; then :
42901b12faf6Smrg  $as_echo_n "(cached) " >&6
42911b12faf6Smrgelse
42921b12faf6Smrg  if test -z "$GREP"; then
42931b12faf6Smrg  ac_path_GREP_found=false
42941b12faf6Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
42951b12faf6Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42961b12faf6Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
42971b12faf6Smrgdo
42981b12faf6Smrg  IFS=$as_save_IFS
42991b12faf6Smrg  test -z "$as_dir" && as_dir=.
43001b12faf6Smrg    for ac_prog in grep ggrep; do
43011b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
43021b12faf6Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
43031b12faf6Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
43041b12faf6Smrg# Check for GNU ac_path_GREP and select it if it is found.
43051b12faf6Smrg  # Check for GNU $ac_path_GREP
43061b12faf6Smrgcase `"$ac_path_GREP" --version 2>&1` in
43071b12faf6Smrg*GNU*)
43081b12faf6Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
43091b12faf6Smrg*)
43101b12faf6Smrg  ac_count=0
43111b12faf6Smrg  $as_echo_n 0123456789 >"conftest.in"
43121b12faf6Smrg  while :
43131b12faf6Smrg  do
43141b12faf6Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
43151b12faf6Smrg    mv "conftest.tmp" "conftest.in"
43161b12faf6Smrg    cp "conftest.in" "conftest.nl"
43171b12faf6Smrg    $as_echo 'GREP' >> "conftest.nl"
43181b12faf6Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
43191b12faf6Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
43201b12faf6Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
43211b12faf6Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
43221b12faf6Smrg      # Best one so far, save it but keep looking for a better one
43231b12faf6Smrg      ac_cv_path_GREP="$ac_path_GREP"
43241b12faf6Smrg      ac_path_GREP_max=$ac_count
43251b12faf6Smrg    fi
43261b12faf6Smrg    # 10*(2^10) chars as input seems more than enough
43271b12faf6Smrg    test $ac_count -gt 10 && break
43281b12faf6Smrg  done
43291b12faf6Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
43301b12faf6Smrgesac
43311b12faf6Smrg
43321b12faf6Smrg      $ac_path_GREP_found && break 3
43331b12faf6Smrg    done
43341b12faf6Smrg  done
43351b12faf6Smrg  done
43361b12faf6SmrgIFS=$as_save_IFS
43371b12faf6Smrg  if test -z "$ac_cv_path_GREP"; then
43381b12faf6Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
43391b12faf6Smrg  fi
43401b12faf6Smrgelse
43411b12faf6Smrg  ac_cv_path_GREP=$GREP
43421b12faf6Smrgfi
43431b12faf6Smrg
43441b12faf6Smrgfi
43451b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
43461b12faf6Smrg$as_echo "$ac_cv_path_GREP" >&6; }
43471b12faf6Smrg GREP="$ac_cv_path_GREP"
43481b12faf6Smrg
43491b12faf6Smrg
43501b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
43511b12faf6Smrg$as_echo_n "checking for egrep... " >&6; }
43521b12faf6Smrgif test "${ac_cv_path_EGREP+set}" = set; then :
43531b12faf6Smrg  $as_echo_n "(cached) " >&6
43541b12faf6Smrgelse
43551b12faf6Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
43561b12faf6Smrg   then ac_cv_path_EGREP="$GREP -E"
435732b578d3Smrg   else
43582a51b5beSmrg     if test -z "$EGREP"; then
435932b578d3Smrg  ac_path_EGREP_found=false
43602a51b5beSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
43612a51b5beSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
436232b578d3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
436332b578d3Smrgdo
436432b578d3Smrg  IFS=$as_save_IFS
436532b578d3Smrg  test -z "$as_dir" && as_dir=.
43661b12faf6Smrg    for ac_prog in egrep; do
43672a51b5beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
43682a51b5beSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
43692a51b5beSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
43702a51b5beSmrg# Check for GNU ac_path_EGREP and select it if it is found.
437132b578d3Smrg  # Check for GNU $ac_path_EGREP
437232b578d3Smrgcase `"$ac_path_EGREP" --version 2>&1` in
437332b578d3Smrg*GNU*)
437432b578d3Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
437532b578d3Smrg*)
437632b578d3Smrg  ac_count=0
43772a51b5beSmrg  $as_echo_n 0123456789 >"conftest.in"
437832b578d3Smrg  while :
437932b578d3Smrg  do
438032b578d3Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
438132b578d3Smrg    mv "conftest.tmp" "conftest.in"
438232b578d3Smrg    cp "conftest.in" "conftest.nl"
43832a51b5beSmrg    $as_echo 'EGREP' >> "conftest.nl"
438432b578d3Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
438532b578d3Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
43861b12faf6Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
438732b578d3Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
438832b578d3Smrg      # Best one so far, save it but keep looking for a better one
438932b578d3Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
439032b578d3Smrg      ac_path_EGREP_max=$ac_count
439132b578d3Smrg    fi
439232b578d3Smrg    # 10*(2^10) chars as input seems more than enough
439332b578d3Smrg    test $ac_count -gt 10 && break
439432b578d3Smrg  done
439532b578d3Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
439632b578d3Smrgesac
439732b578d3Smrg
43982a51b5beSmrg      $ac_path_EGREP_found && break 3
43992a51b5beSmrg    done
440032b578d3Smrg  done
44011b12faf6Smrg  done
440232b578d3SmrgIFS=$as_save_IFS
44032a51b5beSmrg  if test -z "$ac_cv_path_EGREP"; then
44041b12faf6Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
44052a51b5beSmrg  fi
440632b578d3Smrgelse
440732b578d3Smrg  ac_cv_path_EGREP=$EGREP
440832b578d3Smrgfi
440932b578d3Smrg
441032b578d3Smrg   fi
441132b578d3Smrgfi
44121b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
44132a51b5beSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
441432b578d3Smrg EGREP="$ac_cv_path_EGREP"
441532b578d3Smrg
441632b578d3Smrg
44171b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
44181b12faf6Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
44191b12faf6Smrgif test "${ac_cv_header_stdc+set}" = set; then :
44201b12faf6Smrg  $as_echo_n "(cached) " >&6
44211b12faf6Smrgelse
44221b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44231b12faf6Smrg/* end confdefs.h.  */
44241b12faf6Smrg#include <stdlib.h>
44251b12faf6Smrg#include <stdarg.h>
44261b12faf6Smrg#include <string.h>
44271b12faf6Smrg#include <float.h>
442832b578d3Smrg
44291b12faf6Smrgint
44301b12faf6Smrgmain ()
44311b12faf6Smrg{
44321b12faf6Smrg
44331b12faf6Smrg  ;
44341b12faf6Smrg  return 0;
44351b12faf6Smrg}
44361b12faf6Smrg_ACEOF
44371b12faf6Smrgif ac_fn_c_try_compile "$LINENO"; then :
44381b12faf6Smrg  ac_cv_header_stdc=yes
443932b578d3Smrgelse
44401b12faf6Smrg  ac_cv_header_stdc=no
444132b578d3Smrgfi
44421b12faf6Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44431b12faf6Smrg
44441b12faf6Smrgif test $ac_cv_header_stdc = yes; then
44451b12faf6Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
44461b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44471b12faf6Smrg/* end confdefs.h.  */
44481b12faf6Smrg#include <string.h>
44491b12faf6Smrg
44501b12faf6Smrg_ACEOF
44511b12faf6Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44521b12faf6Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
445332b578d3Smrg
445432b578d3Smrgelse
44551b12faf6Smrg  ac_cv_header_stdc=no
445632b578d3Smrgfi
44571b12faf6Smrgrm -f conftest*
44581b12faf6Smrg
445932b578d3Smrgfi
446032b578d3Smrg
44611b12faf6Smrgif test $ac_cv_header_stdc = yes; then
44621b12faf6Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
44631b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44641b12faf6Smrg/* end confdefs.h.  */
44651b12faf6Smrg#include <stdlib.h>
446632b578d3Smrg
44671b12faf6Smrg_ACEOF
44681b12faf6Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44691b12faf6Smrg  $EGREP "free" >/dev/null 2>&1; then :
447032b578d3Smrg
447132b578d3Smrgelse
44721b12faf6Smrg  ac_cv_header_stdc=no
447332b578d3Smrgfi
44741b12faf6Smrgrm -f conftest*
447532b578d3Smrg
44761b12faf6Smrgfi
44771b12faf6Smrg
44781b12faf6Smrgif test $ac_cv_header_stdc = yes; then
44791b12faf6Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
44801b12faf6Smrg  if test "$cross_compiling" = yes; then :
44811b12faf6Smrg  :
448232b578d3Smrgelse
44831b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44841b12faf6Smrg/* end confdefs.h.  */
44851b12faf6Smrg#include <ctype.h>
44861b12faf6Smrg#include <stdlib.h>
44871b12faf6Smrg#if ((' ' & 0x0FF) == 0x020)
44881b12faf6Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
44891b12faf6Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
44901b12faf6Smrg#else
44911b12faf6Smrg# define ISLOWER(c) \
44921b12faf6Smrg		   (('a' <= (c) && (c) <= 'i') \
44931b12faf6Smrg		     || ('j' <= (c) && (c) <= 'r') \
44941b12faf6Smrg		     || ('s' <= (c) && (c) <= 'z'))
44951b12faf6Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
44961b12faf6Smrg#endif
44971b12faf6Smrg
44981b12faf6Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
44991b12faf6Smrgint
45001b12faf6Smrgmain ()
45011b12faf6Smrg{
45021b12faf6Smrg  int i;
45031b12faf6Smrg  for (i = 0; i < 256; i++)
45041b12faf6Smrg    if (XOR (islower (i), ISLOWER (i))
45051b12faf6Smrg	|| toupper (i) != TOUPPER (i))
45061b12faf6Smrg      return 2;
45071b12faf6Smrg  return 0;
45081b12faf6Smrg}
45091b12faf6Smrg_ACEOF
45101b12faf6Smrgif ac_fn_c_try_run "$LINENO"; then :
45111b12faf6Smrg
451232b578d3Smrgelse
45131b12faf6Smrg  ac_cv_header_stdc=no
451432b578d3Smrgfi
45151b12faf6Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45161b12faf6Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
451732b578d3Smrgfi
451832b578d3Smrg
451932b578d3Smrgfi
45201b12faf6Smrgfi
45211b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
45221b12faf6Smrg$as_echo "$ac_cv_header_stdc" >&6; }
45231b12faf6Smrgif test $ac_cv_header_stdc = yes; then
452432b578d3Smrg
45251b12faf6Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
452632b578d3Smrg
45271b12faf6Smrgfi
452832b578d3Smrg
45291b12faf6Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
45301b12faf6Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
45311b12faf6Smrg		  inttypes.h stdint.h unistd.h
45321b12faf6Smrgdo :
45331b12faf6Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
45341b12faf6Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
45351b12faf6Smrg"
45361b12faf6Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
45371b12faf6Smrg  cat >>confdefs.h <<_ACEOF
45381b12faf6Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45391b12faf6Smrg_ACEOF
454032b578d3Smrg
45411b12faf6Smrgfi
454232b578d3Smrg
45431b12faf6Smrgdone
454432b578d3Smrg
454532b578d3Smrg
454632b578d3Smrg
454732b578d3Smrg
454832b578d3Smrg
454932b578d3Smrg
455032b578d3Smrg
455132b578d3Smrg
45521b12faf6Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
45531b12faf6Smrg	if test -n "$ac_tool_prefix"; then
45541b12faf6Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45551b12faf6Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
45561b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45571b12faf6Smrg$as_echo_n "checking for $ac_word... " >&6; }
45581b12faf6Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
45591b12faf6Smrg  $as_echo_n "(cached) " >&6
45601b12faf6Smrgelse
45611b12faf6Smrg  case $PKG_CONFIG in
45621b12faf6Smrg  [\\/]* | ?:[\\/]*)
45631b12faf6Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
456432b578d3Smrg  ;;
45651b12faf6Smrg  *)
45661b12faf6Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45671b12faf6Smrgfor as_dir in $PATH
45681b12faf6Smrgdo
45691b12faf6Smrg  IFS=$as_save_IFS
45701b12faf6Smrg  test -z "$as_dir" && as_dir=.
45711b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
45721b12faf6Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45731b12faf6Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45741b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
45751b12faf6Smrg    break 2
45761b12faf6Smrg  fi
45771b12faf6Smrgdone
45781b12faf6Smrg  done
45791b12faf6SmrgIFS=$as_save_IFS
45801b12faf6Smrg
458132b578d3Smrg  ;;
45821b12faf6Smrgesac
45831b12faf6Smrgfi
45841b12faf6SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
45851b12faf6Smrgif test -n "$PKG_CONFIG"; then
45861b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
45871b12faf6Smrg$as_echo "$PKG_CONFIG" >&6; }
45881b12faf6Smrgelse
45891b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45901b12faf6Smrg$as_echo "no" >&6; }
45911b12faf6Smrgfi
459232b578d3Smrg
45931b12faf6Smrg
45941b12faf6Smrgfi
45951b12faf6Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
45961b12faf6Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
45971b12faf6Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
45981b12faf6Smrgset dummy pkg-config; ac_word=$2
45991b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46001b12faf6Smrg$as_echo_n "checking for $ac_word... " >&6; }
46011b12faf6Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
46021b12faf6Smrg  $as_echo_n "(cached) " >&6
46031b12faf6Smrgelse
46041b12faf6Smrg  case $ac_pt_PKG_CONFIG in
46051b12faf6Smrg  [\\/]* | ?:[\\/]*)
46061b12faf6Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
460732b578d3Smrg  ;;
46081b12faf6Smrg  *)
46091b12faf6Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46101b12faf6Smrgfor as_dir in $PATH
46111b12faf6Smrgdo
46121b12faf6Smrg  IFS=$as_save_IFS
46131b12faf6Smrg  test -z "$as_dir" && as_dir=.
46141b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
46151b12faf6Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46161b12faf6Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46171b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
46181b12faf6Smrg    break 2
46191b12faf6Smrg  fi
46201b12faf6Smrgdone
46211b12faf6Smrg  done
46221b12faf6SmrgIFS=$as_save_IFS
462332b578d3Smrg
462432b578d3Smrg  ;;
46251b12faf6Smrgesac
46261b12faf6Smrgfi
46271b12faf6Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
46281b12faf6Smrgif test -n "$ac_pt_PKG_CONFIG"; then
46291b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
46301b12faf6Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
46311b12faf6Smrgelse
46321b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46331b12faf6Smrg$as_echo "no" >&6; }
46341b12faf6Smrgfi
463532b578d3Smrg
46361b12faf6Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
46371b12faf6Smrg    PKG_CONFIG=""
463832b578d3Smrg  else
46391b12faf6Smrg    case $cross_compiling:$ac_tool_warned in
46401b12faf6Smrgyes:)
46411b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
46421b12faf6Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46431b12faf6Smrgac_tool_warned=yes ;;
46441b12faf6Smrgesac
46451b12faf6Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
464632b578d3Smrg  fi
46471b12faf6Smrgelse
46481b12faf6Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
46491b12faf6Smrgfi
465032b578d3Smrg
46511b12faf6Smrgfi
46521b12faf6Smrgif test -n "$PKG_CONFIG"; then
46531b12faf6Smrg	_pkg_min_version=0.9.0
46541b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
46551b12faf6Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
46561b12faf6Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
46571b12faf6Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46581b12faf6Smrg$as_echo "yes" >&6; }
46591b12faf6Smrg	else
46601b12faf6Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46611b12faf6Smrg$as_echo "no" >&6; }
46621b12faf6Smrg		PKG_CONFIG=""
46631b12faf6Smrg	fi
46641b12faf6Smrgfi
46651b12faf6Smrg# Make sure we can run config.sub.
46661b12faf6Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
46671b12faf6Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
466832b578d3Smrg
46691b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
46701b12faf6Smrg$as_echo_n "checking build system type... " >&6; }
46711b12faf6Smrgif test "${ac_cv_build+set}" = set; then :
46721b12faf6Smrg  $as_echo_n "(cached) " >&6
46731b12faf6Smrgelse
46741b12faf6Smrg  ac_build_alias=$build_alias
46751b12faf6Smrgtest "x$ac_build_alias" = x &&
46761b12faf6Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
46771b12faf6Smrgtest "x$ac_build_alias" = x &&
46781b12faf6Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
46791b12faf6Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
46801b12faf6Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
46812a51b5beSmrg
46821b12faf6Smrgfi
46831b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
46841b12faf6Smrg$as_echo "$ac_cv_build" >&6; }
46851b12faf6Smrgcase $ac_cv_build in
46861b12faf6Smrg*-*-*) ;;
46871b12faf6Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
46881b12faf6Smrgesac
46891b12faf6Smrgbuild=$ac_cv_build
46901b12faf6Smrgac_save_IFS=$IFS; IFS='-'
46911b12faf6Smrgset x $ac_cv_build
46921b12faf6Smrgshift
46931b12faf6Smrgbuild_cpu=$1
46941b12faf6Smrgbuild_vendor=$2
46951b12faf6Smrgshift; shift
46961b12faf6Smrg# Remember, the first character of IFS is used to create $*,
46971b12faf6Smrg# except with old shells:
46981b12faf6Smrgbuild_os=$*
46991b12faf6SmrgIFS=$ac_save_IFS
47001b12faf6Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
470132b578d3Smrg
470232b578d3Smrg
47031b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
47041b12faf6Smrg$as_echo_n "checking host system type... " >&6; }
47051b12faf6Smrgif test "${ac_cv_host+set}" = set; then :
47061b12faf6Smrg  $as_echo_n "(cached) " >&6
47071b12faf6Smrgelse
47081b12faf6Smrg  if test "x$host_alias" = x; then
47091b12faf6Smrg  ac_cv_host=$ac_cv_build
47101b12faf6Smrgelse
47111b12faf6Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
47121b12faf6Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
47131b12faf6Smrgfi
47141b12faf6Smrg
47151b12faf6Smrgfi
47161b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
47171b12faf6Smrg$as_echo "$ac_cv_host" >&6; }
47181b12faf6Smrgcase $ac_cv_host in
47191b12faf6Smrg*-*-*) ;;
47201b12faf6Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
47211b12faf6Smrgesac
47221b12faf6Smrghost=$ac_cv_host
47231b12faf6Smrgac_save_IFS=$IFS; IFS='-'
47241b12faf6Smrgset x $ac_cv_host
47251b12faf6Smrgshift
47261b12faf6Smrghost_cpu=$1
47271b12faf6Smrghost_vendor=$2
47281b12faf6Smrgshift; shift
47291b12faf6Smrg# Remember, the first character of IFS is used to create $*,
47301b12faf6Smrg# except with old shells:
47311b12faf6Smrghost_os=$*
47321b12faf6SmrgIFS=$ac_save_IFS
47331b12faf6Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
47341b12faf6Smrg
47351b12faf6Smrg
47361b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
47371b12faf6Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
47381b12faf6Smrgif test "${ac_cv_path_SED+set}" = set; then :
47391b12faf6Smrg  $as_echo_n "(cached) " >&6
47401b12faf6Smrgelse
47411b12faf6Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
47421b12faf6Smrg     for ac_i in 1 2 3 4 5 6 7; do
47431b12faf6Smrg       ac_script="$ac_script$as_nl$ac_script"
47441b12faf6Smrg     done
47451b12faf6Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
47461b12faf6Smrg     { ac_script=; unset ac_script;}
47471b12faf6Smrg     if test -z "$SED"; then
47481b12faf6Smrg  ac_path_SED_found=false
47491b12faf6Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
47501b12faf6Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47511b12faf6Smrgfor as_dir in $PATH
47521b12faf6Smrgdo
47531b12faf6Smrg  IFS=$as_save_IFS
47541b12faf6Smrg  test -z "$as_dir" && as_dir=.
47551b12faf6Smrg    for ac_prog in sed gsed; do
47561b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
47571b12faf6Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
47581b12faf6Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
47591b12faf6Smrg# Check for GNU ac_path_SED and select it if it is found.
47601b12faf6Smrg  # Check for GNU $ac_path_SED
47611b12faf6Smrgcase `"$ac_path_SED" --version 2>&1` in
47621b12faf6Smrg*GNU*)
47631b12faf6Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
47641b12faf6Smrg*)
47651b12faf6Smrg  ac_count=0
47661b12faf6Smrg  $as_echo_n 0123456789 >"conftest.in"
47671b12faf6Smrg  while :
47681b12faf6Smrg  do
47691b12faf6Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
47701b12faf6Smrg    mv "conftest.tmp" "conftest.in"
47711b12faf6Smrg    cp "conftest.in" "conftest.nl"
47721b12faf6Smrg    $as_echo '' >> "conftest.nl"
47731b12faf6Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
47741b12faf6Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
47751b12faf6Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
47761b12faf6Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
47771b12faf6Smrg      # Best one so far, save it but keep looking for a better one
47781b12faf6Smrg      ac_cv_path_SED="$ac_path_SED"
47791b12faf6Smrg      ac_path_SED_max=$ac_count
47801b12faf6Smrg    fi
47811b12faf6Smrg    # 10*(2^10) chars as input seems more than enough
47821b12faf6Smrg    test $ac_count -gt 10 && break
47831b12faf6Smrg  done
47841b12faf6Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
478532b578d3Smrgesac
478632b578d3Smrg
47871b12faf6Smrg      $ac_path_SED_found && break 3
47881b12faf6Smrg    done
47891b12faf6Smrg  done
47901b12faf6Smrg  done
47911b12faf6SmrgIFS=$as_save_IFS
47921b12faf6Smrg  if test -z "$ac_cv_path_SED"; then
47931b12faf6Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
47941b12faf6Smrg  fi
47951b12faf6Smrgelse
47961b12faf6Smrg  ac_cv_path_SED=$SED
479732b578d3Smrgfi
479832b578d3Smrg
47991b12faf6Smrgfi
48001b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
48011b12faf6Smrg$as_echo "$ac_cv_path_SED" >&6; }
48021b12faf6Smrg SED="$ac_cv_path_SED"
48031b12faf6Smrg  rm -f conftest.sed
480432b578d3Smrg
480532b578d3Smrg
480632b578d3Smrg
480732b578d3Smrg
480832b578d3Smrg
48091b12faf6Smrgif  test "x$GCC" = xyes ; then
48101b12faf6Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
48111b12faf6Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
48121b12faf6Smrg-Wbad-function-cast -Wformat=2"
48131b12faf6Smrg    case `$CC -dumpversion` in
48141b12faf6Smrg    3.4.* | 4.*)
48151b12faf6Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
48161b12faf6Smrg	;;
48171b12faf6Smrg    esac
48181b12faf6Smrgelse
48191b12faf6Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
48201b12faf6Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
48211b12faf6Smrg  SUNCC="yes"
48221b12faf6Smrgelse
48231b12faf6Smrg  SUNCC="no"
48241b12faf6Smrgfi
482532b578d3Smrg
48261b12faf6Smrg    if test "x$SUNCC" = "xyes"; then
48271b12faf6Smrg	CWARNFLAGS="-v"
48281b12faf6Smrg    fi
48291b12faf6Smrgfi
483032b578d3Smrg
48311b12faf6Smrg
48321b12faf6Smrg
48331b12faf6Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
48341b12faf6Smrg
48351b12faf6Smrg
48361b12faf6Smrg
48371b12faf6Smrg# Check whether --enable-strict-compilation was given.
48381b12faf6Smrgif test "${enable_strict_compilation+set}" = set; then :
48391b12faf6Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
48401b12faf6Smrgelse
48411b12faf6Smrg  STRICT_COMPILE=no
484232b578d3Smrgfi
484332b578d3Smrg
48441b12faf6Smrgif test "x$STRICT_COMPILE" = "xyes"; then
48451b12faf6Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
48461b12faf6Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
48471b12faf6Smrg  SUNCC="yes"
48481b12faf6Smrgelse
48491b12faf6Smrg  SUNCC="no"
48501b12faf6Smrgfi
485132b578d3Smrg
48521b12faf6Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
48531b12faf6Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
48541b12faf6Smrg  INTELCC="yes"
48551b12faf6Smrgelse
48561b12faf6Smrg  INTELCC="no"
48571b12faf6Smrgfi
485832b578d3Smrg
48591b12faf6Smrg	if test "x$GCC" = xyes ; then
48601b12faf6Smrg		STRICT_CFLAGS="-pedantic -Werror"
48611b12faf6Smrg	elif test "x$SUNCC" = "xyes"; then
48621b12faf6Smrg		STRICT_CFLAGS="-errwarn"
48631b12faf6Smrg    elif test "x$INTELCC" = "xyes"; then
48641b12faf6Smrg		STRICT_CFLAGS="-Werror"
48651b12faf6Smrg	fi
48661b12faf6Smrgfi
48671b12faf6SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
486832b578d3Smrg
486932b578d3Smrg
487032b578d3Smrg
487132b578d3Smrg
48721b12faf6Smrgcat >>confdefs.h <<_ACEOF
48731b12faf6Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
487432b578d3Smrg_ACEOF
487532b578d3Smrg
48761b12faf6Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
48771b12faf6Smrg	if test "x$PVM" = "x"; then
48781b12faf6Smrg		PVM="0"
48791b12faf6Smrg	fi
488032b578d3Smrg
48811b12faf6Smrgcat >>confdefs.h <<_ACEOF
48821b12faf6Smrg#define PACKAGE_VERSION_MINOR $PVM
48831b12faf6Smrg_ACEOF
488432b578d3Smrg
48851b12faf6Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
48861b12faf6Smrg	if test "x$PVP" = "x"; then
48871b12faf6Smrg		PVP="0"
48882a51b5beSmrg	fi
488932b578d3Smrg
48901b12faf6Smrgcat >>confdefs.h <<_ACEOF
48911b12faf6Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
48921b12faf6Smrg_ACEOF
489332b578d3Smrg
489432b578d3Smrg
489532b578d3Smrg
48961b12faf6SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
48971b12faf6Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
48981b12faf6Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
48991b12faf6Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
490032b578d3Smrg
490132b578d3Smrg
490232b578d3Smrg
490332b578d3Smrg
49041b12faf6Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
49051b12faf6SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
49061b12faf6Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
49071b12faf6Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
49081b12faf6Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
490932b578d3Smrg
49101b12faf6Smrg
49111b12faf6Smrg
49121b12faf6Smrg
49131b12faf6Smrg
49141b12faf6Smrg
49151b12faf6Smrgif test x$APP_MAN_SUFFIX = x    ; then
49161b12faf6Smrg    APP_MAN_SUFFIX=1
49171b12faf6Smrgfi
49181b12faf6Smrgif test x$APP_MAN_DIR = x    ; then
49191b12faf6Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
492032b578d3Smrgfi
492132b578d3Smrg
49221b12faf6Smrgif test x$LIB_MAN_SUFFIX = x    ; then
49231b12faf6Smrg    LIB_MAN_SUFFIX=3
49241b12faf6Smrgfi
49251b12faf6Smrgif test x$LIB_MAN_DIR = x    ; then
49261b12faf6Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
49271b12faf6Smrgfi
492832b578d3Smrg
49291b12faf6Smrgif test x$FILE_MAN_SUFFIX = x    ; then
49301b12faf6Smrg    case $host_os in
49311b12faf6Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
49321b12faf6Smrg	*)		FILE_MAN_SUFFIX=5  ;;
49331b12faf6Smrg    esac
49341b12faf6Smrgfi
49351b12faf6Smrgif test x$FILE_MAN_DIR = x    ; then
49361b12faf6Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
493732b578d3Smrgfi
493832b578d3Smrg
49391b12faf6Smrgif test x$MISC_MAN_SUFFIX = x    ; then
49401b12faf6Smrg    case $host_os in
49411b12faf6Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
49421b12faf6Smrg	*)		MISC_MAN_SUFFIX=7  ;;
49431b12faf6Smrg    esac
49441b12faf6Smrgfi
49451b12faf6Smrgif test x$MISC_MAN_DIR = x    ; then
49461b12faf6Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
49471b12faf6Smrgfi
494832b578d3Smrg
49491b12faf6Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
49501b12faf6Smrg    case $host_os in
49511b12faf6Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
49521b12faf6Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
49531b12faf6Smrg    esac
495432b578d3Smrgfi
49551b12faf6Smrgif test x$DRIVER_MAN_DIR = x    ; then
49561b12faf6Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
495732b578d3Smrgfi
495832b578d3Smrg
49591b12faf6Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
49601b12faf6Smrg    case $host_os in
49611b12faf6Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
49621b12faf6Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
49631b12faf6Smrg    esac
49641b12faf6Smrgfi
49651b12faf6Smrgif test x$ADMIN_MAN_DIR = x    ; then
49661b12faf6Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
496732b578d3Smrgfi
496832b578d3Smrg
496932b578d3Smrg
497032b578d3Smrg
497132b578d3Smrg
497232b578d3Smrg
497332b578d3Smrg
497432b578d3Smrg
497532b578d3Smrg
497632b578d3Smrg
497732b578d3Smrg
497832b578d3Smrg
497932b578d3Smrg
498032b578d3Smrg
498132b578d3Smrg
498232b578d3Smrg
49831b12faf6SmrgXORG_MAN_PAGE="X Version 11"
49841b12faf6Smrg
49851b12faf6SmrgMAN_SUBSTS="\
49861b12faf6Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
49871b12faf6Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
49881b12faf6Smrg	-e 's|__xservername__|Xorg|g' \
49891b12faf6Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
49901b12faf6Smrg	-e 's|__projectroot__|\$(prefix)|g' \
49911b12faf6Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
49921b12faf6Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
49931b12faf6Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
49941b12faf6Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
49951b12faf6Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
49961b12faf6Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
49971b12faf6Smrg
49981b12faf6Smrg
49991b12faf6Smrg
50001b12faf6Smrg# Check whether --enable-silent-rules was given.
50011b12faf6Smrgif test "${enable_silent_rules+set}" = set; then :
50021b12faf6Smrg  enableval=$enable_silent_rules;
500332b578d3Smrgfi
500432b578d3Smrg
50051b12faf6Smrgcase $enable_silent_rules in
50061b12faf6Smrgyes) AM_DEFAULT_VERBOSITY=0;;
50071b12faf6Smrgno)  AM_DEFAULT_VERBOSITY=1;;
50081b12faf6Smrg*)   AM_DEFAULT_VERBOSITY=0;;
50091b12faf6Smrgesac
50101b12faf6SmrgAM_BACKSLASH='\'
501132b578d3Smrg
50121b12faf6Smrg
50131b12faf6Smrg
50141b12faf6Smrg# Initialize libtool
50151b12faf6Smrg# Check whether --enable-static was given.
50161b12faf6Smrgif test "${enable_static+set}" = set; then :
50171b12faf6Smrg  enableval=$enable_static; p=${PACKAGE-default}
50181b12faf6Smrg    case $enableval in
50191b12faf6Smrg    yes) enable_static=yes ;;
50201b12faf6Smrg    no) enable_static=no ;;
50211b12faf6Smrg    *)
50221b12faf6Smrg     enable_static=no
50231b12faf6Smrg      # Look at the argument we got.  We use all the common list separators.
50241b12faf6Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
50251b12faf6Smrg      for pkg in $enableval; do
50261b12faf6Smrg	IFS="$lt_save_ifs"
50271b12faf6Smrg	if test "X$pkg" = "X$p"; then
50281b12faf6Smrg	  enable_static=yes
50291b12faf6Smrg	fi
50301b12faf6Smrg      done
50311b12faf6Smrg      IFS="$lt_save_ifs"
50321b12faf6Smrg      ;;
50331b12faf6Smrg    esac
503432b578d3Smrgelse
50351b12faf6Smrg  enable_static=no
503632b578d3Smrgfi
503732b578d3Smrg
503832b578d3Smrg
503932b578d3Smrg
504032b578d3Smrg
504132b578d3Smrg
504232b578d3Smrg
504332b578d3Smrg
504432b578d3Smrg
504532b578d3Smrg
50461b12faf6Smrgcase `pwd` in
50471b12faf6Smrg  *\ * | *\	*)
50481b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
50491b12faf6Smrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
50501b12faf6Smrgesac
505132b578d3Smrg
505232b578d3Smrg
505332b578d3Smrg
50541b12faf6Smrgmacro_version='2.2.6b'
50551b12faf6Smrgmacro_revision='1.3017'
505632b578d3Smrg
505732b578d3Smrg
505832b578d3Smrg
505932b578d3Smrg
506032b578d3Smrg
506132b578d3Smrg
506232b578d3Smrg
506332b578d3Smrg
506432b578d3Smrg
506532b578d3Smrg
506632b578d3Smrg
506732b578d3Smrg
506832b578d3Smrg
50691b12faf6Smrgltmain="$ac_aux_dir/ltmain.sh"
507032b578d3Smrg
50711b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
50721b12faf6Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
50731b12faf6Smrgif test "${ac_cv_path_SED+set}" = set; then :
50742a51b5beSmrg  $as_echo_n "(cached) " >&6
507532b578d3Smrgelse
50761b12faf6Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
50771b12faf6Smrg     for ac_i in 1 2 3 4 5 6 7; do
50781b12faf6Smrg       ac_script="$ac_script$as_nl$ac_script"
50791b12faf6Smrg     done
50801b12faf6Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
50811b12faf6Smrg     { ac_script=; unset ac_script;}
50821b12faf6Smrg     if test -z "$SED"; then
50831b12faf6Smrg  ac_path_SED_found=false
50841b12faf6Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
50851b12faf6Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50861b12faf6Smrgfor as_dir in $PATH
50871b12faf6Smrgdo
50881b12faf6Smrg  IFS=$as_save_IFS
50891b12faf6Smrg  test -z "$as_dir" && as_dir=.
50901b12faf6Smrg    for ac_prog in sed gsed; do
50911b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
50921b12faf6Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
50931b12faf6Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
50941b12faf6Smrg# Check for GNU ac_path_SED and select it if it is found.
50951b12faf6Smrg  # Check for GNU $ac_path_SED
50961b12faf6Smrgcase `"$ac_path_SED" --version 2>&1` in
50971b12faf6Smrg*GNU*)
50981b12faf6Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
50991b12faf6Smrg*)
51001b12faf6Smrg  ac_count=0
51011b12faf6Smrg  $as_echo_n 0123456789 >"conftest.in"
51021b12faf6Smrg  while :
51031b12faf6Smrg  do
51041b12faf6Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
51051b12faf6Smrg    mv "conftest.tmp" "conftest.in"
51061b12faf6Smrg    cp "conftest.in" "conftest.nl"
51071b12faf6Smrg    $as_echo '' >> "conftest.nl"
51081b12faf6Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
51091b12faf6Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
51101b12faf6Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
51111b12faf6Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
51121b12faf6Smrg      # Best one so far, save it but keep looking for a better one
51131b12faf6Smrg      ac_cv_path_SED="$ac_path_SED"
51141b12faf6Smrg      ac_path_SED_max=$ac_count
51151b12faf6Smrg    fi
51161b12faf6Smrg    # 10*(2^10) chars as input seems more than enough
51171b12faf6Smrg    test $ac_count -gt 10 && break
51181b12faf6Smrg  done
51191b12faf6Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
51201b12faf6Smrgesac
51211b12faf6Smrg
51221b12faf6Smrg      $ac_path_SED_found && break 3
51231b12faf6Smrg    done
51241b12faf6Smrg  done
51251b12faf6Smrg  done
51261b12faf6SmrgIFS=$as_save_IFS
51271b12faf6Smrg  if test -z "$ac_cv_path_SED"; then
51281b12faf6Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
51291b12faf6Smrg  fi
513032b578d3Smrgelse
51311b12faf6Smrg  ac_cv_path_SED=$SED
51321b12faf6Smrgfi
513332b578d3Smrg
513432b578d3Smrgfi
51351b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
51361b12faf6Smrg$as_echo "$ac_cv_path_SED" >&6; }
51371b12faf6Smrg SED="$ac_cv_path_SED"
51381b12faf6Smrg  rm -f conftest.sed
513932b578d3Smrg
51401b12faf6Smrgtest -z "$SED" && SED=sed
51411b12faf6SmrgXsed="$SED -e 1s/^X//"
514232b578d3Smrg
514332b578d3Smrg
514432b578d3Smrg
514532b578d3Smrg
514632b578d3Smrg
514732b578d3Smrg
514832b578d3Smrg
514932b578d3Smrg
515032b578d3Smrg
515132b578d3Smrg
515232b578d3Smrg
51531b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
51541b12faf6Smrg$as_echo_n "checking for fgrep... " >&6; }
51551b12faf6Smrgif test "${ac_cv_path_FGREP+set}" = set; then :
51562a51b5beSmrg  $as_echo_n "(cached) " >&6
515732b578d3Smrgelse
51581b12faf6Smrg  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
51591b12faf6Smrg   then ac_cv_path_FGREP="$GREP -F"
51601b12faf6Smrg   else
51611b12faf6Smrg     if test -z "$FGREP"; then
51621b12faf6Smrg  ac_path_FGREP_found=false
51631b12faf6Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
51641b12faf6Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51651b12faf6Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
516632b578d3Smrgdo
516732b578d3Smrg  IFS=$as_save_IFS
516832b578d3Smrg  test -z "$as_dir" && as_dir=.
51691b12faf6Smrg    for ac_prog in fgrep; do
51701b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
51711b12faf6Smrg      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
51721b12faf6Smrg      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
51731b12faf6Smrg# Check for GNU ac_path_FGREP and select it if it is found.
51741b12faf6Smrg  # Check for GNU $ac_path_FGREP
51751b12faf6Smrgcase `"$ac_path_FGREP" --version 2>&1` in
51761b12faf6Smrg*GNU*)
51771b12faf6Smrg  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
51781b12faf6Smrg*)
51791b12faf6Smrg  ac_count=0
51801b12faf6Smrg  $as_echo_n 0123456789 >"conftest.in"
51811b12faf6Smrg  while :
51821b12faf6Smrg  do
51831b12faf6Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
51841b12faf6Smrg    mv "conftest.tmp" "conftest.in"
51851b12faf6Smrg    cp "conftest.in" "conftest.nl"
51861b12faf6Smrg    $as_echo 'FGREP' >> "conftest.nl"
51871b12faf6Smrg    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
51881b12faf6Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
51891b12faf6Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
51901b12faf6Smrg    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
51911b12faf6Smrg      # Best one so far, save it but keep looking for a better one
51921b12faf6Smrg      ac_cv_path_FGREP="$ac_path_FGREP"
51931b12faf6Smrg      ac_path_FGREP_max=$ac_count
51941b12faf6Smrg    fi
51951b12faf6Smrg    # 10*(2^10) chars as input seems more than enough
51961b12faf6Smrg    test $ac_count -gt 10 && break
51971b12faf6Smrg  done
51981b12faf6Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
51991b12faf6Smrgesac
520032b578d3Smrg
52011b12faf6Smrg      $ac_path_FGREP_found && break 3
52021b12faf6Smrg    done
52031b12faf6Smrg  done
52041b12faf6Smrg  done
52051b12faf6SmrgIFS=$as_save_IFS
52061b12faf6Smrg  if test -z "$ac_cv_path_FGREP"; then
52071b12faf6Smrg    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
52081b12faf6Smrg  fi
520932b578d3Smrgelse
52101b12faf6Smrg  ac_cv_path_FGREP=$FGREP
521132b578d3Smrgfi
521232b578d3Smrg
52131b12faf6Smrg   fi
52141b12faf6Smrgfi
52151b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
52161b12faf6Smrg$as_echo "$ac_cv_path_FGREP" >&6; }
52171b12faf6Smrg FGREP="$ac_cv_path_FGREP"
521832b578d3Smrg
521932b578d3Smrg
52201b12faf6Smrgtest -z "$GREP" && GREP=grep
522132b578d3Smrg
522232b578d3Smrg
522332b578d3Smrg
522432b578d3Smrg
522532b578d3Smrg
522632b578d3Smrg
522732b578d3Smrg
522832b578d3Smrg
522932b578d3Smrg
523032b578d3Smrg
523132b578d3Smrg
523232b578d3Smrg
523332b578d3Smrg
523432b578d3Smrg
523532b578d3Smrg
523632b578d3Smrg
523732b578d3Smrg
523832b578d3Smrg
523932b578d3Smrg
52401b12faf6Smrg# Check whether --with-gnu-ld was given.
52411b12faf6Smrgif test "${with_gnu_ld+set}" = set; then :
52421b12faf6Smrg  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
52431b12faf6Smrgelse
52441b12faf6Smrg  with_gnu_ld=no
524532b578d3Smrgfi
524632b578d3Smrg
52471b12faf6Smrgac_prog=ld
52481b12faf6Smrgif test "$GCC" = yes; then
52491b12faf6Smrg  # Check if gcc -print-prog-name=ld gives a path.
52501b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
52511b12faf6Smrg$as_echo_n "checking for ld used by $CC... " >&6; }
52521b12faf6Smrg  case $host in
52531b12faf6Smrg  *-*-mingw*)
52541b12faf6Smrg    # gcc leaves a trailing carriage return which upsets mingw
52551b12faf6Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
52561b12faf6Smrg  *)
52571b12faf6Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
52581b12faf6Smrg  esac
52591b12faf6Smrg  case $ac_prog in
52601b12faf6Smrg    # Accept absolute paths.
52611b12faf6Smrg    [\\/]* | ?:[\\/]*)
52621b12faf6Smrg      re_direlt='/[^/][^/]*/\.\./'
52631b12faf6Smrg      # Canonicalize the pathname of ld
52641b12faf6Smrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
52651b12faf6Smrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
52661b12faf6Smrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
52671b12faf6Smrg      done
52681b12faf6Smrg      test -z "$LD" && LD="$ac_prog"
52691b12faf6Smrg      ;;
52701b12faf6Smrg  "")
52711b12faf6Smrg    # If it fails, then pretend we aren't using GCC.
52721b12faf6Smrg    ac_prog=ld
52731b12faf6Smrg    ;;
52741b12faf6Smrg  *)
52751b12faf6Smrg    # If it is relative, then search for the first ld in PATH.
52761b12faf6Smrg    with_gnu_ld=unknown
52771b12faf6Smrg    ;;
52781b12faf6Smrg  esac
52791b12faf6Smrgelif test "$with_gnu_ld" = yes; then
52801b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
52811b12faf6Smrg$as_echo_n "checking for GNU ld... " >&6; }
528232b578d3Smrgelse
52831b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
52841b12faf6Smrg$as_echo_n "checking for non-GNU ld... " >&6; }
528532b578d3Smrgfi
52861b12faf6Smrgif test "${lt_cv_path_LD+set}" = set; then :
52872a51b5beSmrg  $as_echo_n "(cached) " >&6
528832b578d3Smrgelse
52891b12faf6Smrg  if test -z "$LD"; then
52901b12faf6Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
52911b12faf6Smrg  for ac_dir in $PATH; do
52921b12faf6Smrg    IFS="$lt_save_ifs"
52931b12faf6Smrg    test -z "$ac_dir" && ac_dir=.
52941b12faf6Smrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
52951b12faf6Smrg      lt_cv_path_LD="$ac_dir/$ac_prog"
52961b12faf6Smrg      # Check to see if the program is GNU ld.  I'd rather use --version,
52971b12faf6Smrg      # but apparently some variants of GNU ld only accept -v.
52981b12faf6Smrg      # Break only if it was the GNU/non-GNU ld that we prefer.
52991b12faf6Smrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
53001b12faf6Smrg      *GNU* | *'with BFD'*)
53011b12faf6Smrg	test "$with_gnu_ld" != no && break
53021b12faf6Smrg	;;
53031b12faf6Smrg      *)
53041b12faf6Smrg	test "$with_gnu_ld" != yes && break
53051b12faf6Smrg	;;
53061b12faf6Smrg      esac
530732b578d3Smrg    fi
530832b578d3Smrg  done
53091b12faf6Smrg  IFS="$lt_save_ifs"
531032b578d3Smrgelse
53111b12faf6Smrg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
531232b578d3Smrgfi
531332b578d3Smrgfi
531432b578d3Smrg
53151b12faf6SmrgLD="$lt_cv_path_LD"
53161b12faf6Smrgif test -n "$LD"; then
53171b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
53181b12faf6Smrg$as_echo "$LD" >&6; }
531932b578d3Smrgelse
53201b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53211b12faf6Smrg$as_echo "no" >&6; }
532232b578d3Smrgfi
53231b12faf6Smrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
53241b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
53251b12faf6Smrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
53261b12faf6Smrgif test "${lt_cv_prog_gnu_ld+set}" = set; then :
53272a51b5beSmrg  $as_echo_n "(cached) " >&6
532832b578d3Smrgelse
53291b12faf6Smrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
53301b12faf6Smrgcase `$LD -v 2>&1 </dev/null` in
53311b12faf6Smrg*GNU* | *'with BFD'*)
53321b12faf6Smrg  lt_cv_prog_gnu_ld=yes
53331b12faf6Smrg  ;;
53341b12faf6Smrg*)
53351b12faf6Smrg  lt_cv_prog_gnu_ld=no
53361b12faf6Smrg  ;;
533732b578d3Smrgesac
533832b578d3Smrgfi
53391b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
53401b12faf6Smrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
53411b12faf6Smrgwith_gnu_ld=$lt_cv_prog_gnu_ld
534232b578d3Smrg
534332b578d3Smrg
534432b578d3Smrg
534532b578d3Smrg
534632b578d3Smrg
534732b578d3Smrg
534832b578d3Smrg
534932b578d3Smrg
535032b578d3Smrg
53511b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
53521b12faf6Smrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
53531b12faf6Smrgif test "${lt_cv_path_NM+set}" = set; then :
53541b12faf6Smrg  $as_echo_n "(cached) " >&6
535532b578d3Smrgelse
53561b12faf6Smrg  if test -n "$NM"; then
53571b12faf6Smrg  # Let the user override the test.
53581b12faf6Smrg  lt_cv_path_NM="$NM"
535932b578d3Smrgelse
53601b12faf6Smrg  lt_nm_to_check="${ac_tool_prefix}nm"
53611b12faf6Smrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
53621b12faf6Smrg    lt_nm_to_check="$lt_nm_to_check nm"
53631b12faf6Smrg  fi
53641b12faf6Smrg  for lt_tmp_nm in $lt_nm_to_check; do
53651b12faf6Smrg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
53661b12faf6Smrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
53671b12faf6Smrg      IFS="$lt_save_ifs"
53681b12faf6Smrg      test -z "$ac_dir" && ac_dir=.
53691b12faf6Smrg      tmp_nm="$ac_dir/$lt_tmp_nm"
53701b12faf6Smrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
53711b12faf6Smrg	# Check to see if the nm accepts a BSD-compat flag.
53721b12faf6Smrg	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
53731b12faf6Smrg	#   nm: unknown option "B" ignored
53741b12faf6Smrg	# Tru64's nm complains that /dev/null is an invalid object file
53751b12faf6Smrg	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
53761b12faf6Smrg	*/dev/null* | *'Invalid file or object type'*)
53771b12faf6Smrg	  lt_cv_path_NM="$tmp_nm -B"
53781b12faf6Smrg	  break
53791b12faf6Smrg	  ;;
53801b12faf6Smrg	*)
53811b12faf6Smrg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
53821b12faf6Smrg	  */dev/null*)
53831b12faf6Smrg	    lt_cv_path_NM="$tmp_nm -p"
53841b12faf6Smrg	    break
53851b12faf6Smrg	    ;;
53861b12faf6Smrg	  *)
53871b12faf6Smrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
53881b12faf6Smrg	    continue # so that we can try to find one that supports BSD flags
53891b12faf6Smrg	    ;;
53901b12faf6Smrg	  esac
53911b12faf6Smrg	  ;;
53921b12faf6Smrg	esac
53931b12faf6Smrg      fi
53941b12faf6Smrg    done
53951b12faf6Smrg    IFS="$lt_save_ifs"
53961b12faf6Smrg  done
53971b12faf6Smrg  : ${lt_cv_path_NM=no}
539832b578d3Smrgfi
539932b578d3Smrgfi
54001b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
54011b12faf6Smrg$as_echo "$lt_cv_path_NM" >&6; }
54021b12faf6Smrgif test "$lt_cv_path_NM" != "no"; then
54031b12faf6Smrg  NM="$lt_cv_path_NM"
54041b12faf6Smrgelse
54051b12faf6Smrg  # Didn't find any BSD compatible name lister, look for dumpbin.
54061b12faf6Smrg  if test -n "$ac_tool_prefix"; then
54071b12faf6Smrg  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
540832b578d3Smrg  do
540932b578d3Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
541032b578d3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
54111b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54122a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
54131b12faf6Smrgif test "${ac_cv_prog_DUMPBIN+set}" = set; then :
54142a51b5beSmrg  $as_echo_n "(cached) " >&6
541532b578d3Smrgelse
54161b12faf6Smrg  if test -n "$DUMPBIN"; then
54171b12faf6Smrg  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
541832b578d3Smrgelse
541932b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
542032b578d3Smrgfor as_dir in $PATH
542132b578d3Smrgdo
542232b578d3Smrg  IFS=$as_save_IFS
542332b578d3Smrg  test -z "$as_dir" && as_dir=.
54241b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
542532b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54261b12faf6Smrg    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
54271b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542832b578d3Smrg    break 2
542932b578d3Smrg  fi
543032b578d3Smrgdone
54311b12faf6Smrg  done
543232b578d3SmrgIFS=$as_save_IFS
543332b578d3Smrg
543432b578d3Smrgfi
543532b578d3Smrgfi
54361b12faf6SmrgDUMPBIN=$ac_cv_prog_DUMPBIN
54371b12faf6Smrgif test -n "$DUMPBIN"; then
54381b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
54391b12faf6Smrg$as_echo "$DUMPBIN" >&6; }
544032b578d3Smrgelse
54411b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54422a51b5beSmrg$as_echo "no" >&6; }
544332b578d3Smrgfi
544432b578d3Smrg
544532b578d3Smrg
54461b12faf6Smrg    test -n "$DUMPBIN" && break
544732b578d3Smrg  done
544832b578d3Smrgfi
54491b12faf6Smrgif test -z "$DUMPBIN"; then
54501b12faf6Smrg  ac_ct_DUMPBIN=$DUMPBIN
54511b12faf6Smrg  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
545232b578d3Smrgdo
545332b578d3Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
545432b578d3Smrgset dummy $ac_prog; ac_word=$2
54551b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54562a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
54571b12faf6Smrgif test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
54582a51b5beSmrg  $as_echo_n "(cached) " >&6
545932b578d3Smrgelse
54601b12faf6Smrg  if test -n "$ac_ct_DUMPBIN"; then
54611b12faf6Smrg  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
546232b578d3Smrgelse
546332b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
546432b578d3Smrgfor as_dir in $PATH
546532b578d3Smrgdo
546632b578d3Smrg  IFS=$as_save_IFS
546732b578d3Smrg  test -z "$as_dir" && as_dir=.
54681b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
546932b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54701b12faf6Smrg    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
54711b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
547232b578d3Smrg    break 2
547332b578d3Smrg  fi
547432b578d3Smrgdone
54751b12faf6Smrg  done
547632b578d3SmrgIFS=$as_save_IFS
547732b578d3Smrg
547832b578d3Smrgfi
547932b578d3Smrgfi
54801b12faf6Smrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
54811b12faf6Smrgif test -n "$ac_ct_DUMPBIN"; then
54821b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
54831b12faf6Smrg$as_echo "$ac_ct_DUMPBIN" >&6; }
548432b578d3Smrgelse
54851b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54862a51b5beSmrg$as_echo "no" >&6; }
548732b578d3Smrgfi
548832b578d3Smrg
548932b578d3Smrg
54901b12faf6Smrg  test -n "$ac_ct_DUMPBIN" && break
549132b578d3Smrgdone
549232b578d3Smrg
54931b12faf6Smrg  if test "x$ac_ct_DUMPBIN" = x; then
54941b12faf6Smrg    DUMPBIN=":"
549532b578d3Smrg  else
549632b578d3Smrg    case $cross_compiling:$ac_tool_warned in
549732b578d3Smrgyes:)
54981b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
54992a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
550032b578d3Smrgac_tool_warned=yes ;;
550132b578d3Smrgesac
55021b12faf6Smrg    DUMPBIN=$ac_ct_DUMPBIN
550332b578d3Smrg  fi
550432b578d3Smrgfi
550532b578d3Smrg
550632b578d3Smrg
55071b12faf6Smrg  if test "$DUMPBIN" != ":"; then
55081b12faf6Smrg    NM="$DUMPBIN"
55091b12faf6Smrg  fi
551032b578d3Smrgfi
55111b12faf6Smrgtest -z "$NM" && NM=nm
551232b578d3Smrg
551332b578d3Smrg
551432b578d3Smrg
551532b578d3Smrg
551632b578d3Smrg
55171b12faf6Smrg
55181b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
55191b12faf6Smrg$as_echo_n "checking the name lister ($NM) interface... " >&6; }
55201b12faf6Smrgif test "${lt_cv_nm_interface+set}" = set; then :
55211b12faf6Smrg  $as_echo_n "(cached) " >&6
552232b578d3Smrgelse
55231b12faf6Smrg  lt_cv_nm_interface="BSD nm"
55241b12faf6Smrg  echo "int some_variable = 0;" > conftest.$ac_ext
55251b12faf6Smrg  (eval echo "\"\$as_me:5525: $ac_compile\"" >&5)
55261b12faf6Smrg  (eval "$ac_compile" 2>conftest.err)
55271b12faf6Smrg  cat conftest.err >&5
55281b12faf6Smrg  (eval echo "\"\$as_me:5528: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
55291b12faf6Smrg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
55301b12faf6Smrg  cat conftest.err >&5
55311b12faf6Smrg  (eval echo "\"\$as_me:5531: output\"" >&5)
55321b12faf6Smrg  cat conftest.out >&5
55331b12faf6Smrg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
55341b12faf6Smrg    lt_cv_nm_interface="MS dumpbin"
553532b578d3Smrg  fi
55361b12faf6Smrg  rm -f conftest*
553732b578d3Smrgfi
55381b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
55391b12faf6Smrg$as_echo "$lt_cv_nm_interface" >&6; }
554032b578d3Smrg
55411b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
55421b12faf6Smrg$as_echo_n "checking whether ln -s works... " >&6; }
55431b12faf6SmrgLN_S=$as_ln_s
55441b12faf6Smrgif test "$LN_S" = "ln -s"; then
55451b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55461b12faf6Smrg$as_echo "yes" >&6; }
55472a51b5beSmrgelse
55481b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
55491b12faf6Smrg$as_echo "no, using $LN_S" >&6; }
55502a51b5beSmrgfi
555132b578d3Smrg
555232b578d3Smrg# find the maximum length of command line arguments
55531b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
55542a51b5beSmrg$as_echo_n "checking the maximum length of command line arguments... " >&6; }
55551b12faf6Smrgif test "${lt_cv_sys_max_cmd_len+set}" = set; then :
55562a51b5beSmrg  $as_echo_n "(cached) " >&6
555732b578d3Smrgelse
555832b578d3Smrg    i=0
555932b578d3Smrg  teststring="ABCD"
556032b578d3Smrg
556132b578d3Smrg  case $build_os in
556232b578d3Smrg  msdosdjgpp*)
556332b578d3Smrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
556432b578d3Smrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
556532b578d3Smrg    # during glob expansion).  Even if it were fixed, the result of this
556632b578d3Smrg    # check would be larger than it should be.
556732b578d3Smrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
556832b578d3Smrg    ;;
556932b578d3Smrg
557032b578d3Smrg  gnu*)
557132b578d3Smrg    # Under GNU Hurd, this test is not required because there is
557232b578d3Smrg    # no limit to the length of command line arguments.
557332b578d3Smrg    # Libtool will interpret -1 as no limit whatsoever
557432b578d3Smrg    lt_cv_sys_max_cmd_len=-1;
557532b578d3Smrg    ;;
557632b578d3Smrg
55771b12faf6Smrg  cygwin* | mingw* | cegcc*)
557832b578d3Smrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
557932b578d3Smrg    # about 5 minutes as the teststring grows exponentially.
558032b578d3Smrg    # Worse, since 9x/ME are not pre-emptively multitasking,
558132b578d3Smrg    # you end up with a "frozen" computer, even though with patience
558232b578d3Smrg    # the test eventually succeeds (with a max line length of 256k).
558332b578d3Smrg    # Instead, let's just punt: use the minimum linelength reported by
558432b578d3Smrg    # all of the supported platforms: 8192 (on NT/2K/XP).
558532b578d3Smrg    lt_cv_sys_max_cmd_len=8192;
558632b578d3Smrg    ;;
558732b578d3Smrg
558832b578d3Smrg  amigaos*)
558932b578d3Smrg    # On AmigaOS with pdksh, this test takes hours, literally.
559032b578d3Smrg    # So we just punt and use a minimum line length of 8192.
559132b578d3Smrg    lt_cv_sys_max_cmd_len=8192;
559232b578d3Smrg    ;;
559332b578d3Smrg
559432b578d3Smrg  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
559532b578d3Smrg    # This has been around since 386BSD, at least.  Likely further.
559632b578d3Smrg    if test -x /sbin/sysctl; then
559732b578d3Smrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
559832b578d3Smrg    elif test -x /usr/sbin/sysctl; then
559932b578d3Smrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
560032b578d3Smrg    else
560132b578d3Smrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
560232b578d3Smrg    fi
560332b578d3Smrg    # And add a safety zone
560432b578d3Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
560532b578d3Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
560632b578d3Smrg    ;;
560732b578d3Smrg
560832b578d3Smrg  interix*)
560932b578d3Smrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
561032b578d3Smrg    lt_cv_sys_max_cmd_len=196608
561132b578d3Smrg    ;;
561232b578d3Smrg
561332b578d3Smrg  osf*)
561432b578d3Smrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
561532b578d3Smrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
561632b578d3Smrg    # nice to cause kernel panics so lets avoid the loop below.
561732b578d3Smrg    # First set a reasonable default.
561832b578d3Smrg    lt_cv_sys_max_cmd_len=16384
561932b578d3Smrg    #
562032b578d3Smrg    if test -x /sbin/sysconfig; then
562132b578d3Smrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
562232b578d3Smrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
562332b578d3Smrg      esac
562432b578d3Smrg    fi
562532b578d3Smrg    ;;
562632b578d3Smrg  sco3.2v5*)
562732b578d3Smrg    lt_cv_sys_max_cmd_len=102400
562832b578d3Smrg    ;;
562932b578d3Smrg  sysv5* | sco5v6* | sysv4.2uw2*)
563032b578d3Smrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
563132b578d3Smrg    if test -n "$kargmax"; then
56321b12faf6Smrg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
563332b578d3Smrg    else
563432b578d3Smrg      lt_cv_sys_max_cmd_len=32768
563532b578d3Smrg    fi
563632b578d3Smrg    ;;
563732b578d3Smrg  *)
56382a51b5beSmrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
56392a51b5beSmrg    if test -n "$lt_cv_sys_max_cmd_len"; then
56402a51b5beSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
56412a51b5beSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
56422a51b5beSmrg    else
56431b12faf6Smrg      # Make teststring a little bigger before we do anything with it.
56441b12faf6Smrg      # a 1K string should be a reasonable start.
56451b12faf6Smrg      for i in 1 2 3 4 5 6 7 8 ; do
56461b12faf6Smrg        teststring=$teststring$teststring
56471b12faf6Smrg      done
56482a51b5beSmrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
56491b12faf6Smrg      # If test is not a shell built-in, we'll probably end up computing a
56501b12faf6Smrg      # maximum length that is only half of the actual maximum length, but
56511b12faf6Smrg      # we can't tell.
56521b12faf6Smrg      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
56531b12faf6Smrg	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
56542a51b5beSmrg	      test $i != 17 # 1/2 MB should be enough
56552a51b5beSmrg      do
56562a51b5beSmrg        i=`expr $i + 1`
56572a51b5beSmrg        teststring=$teststring$teststring
56582a51b5beSmrg      done
56591b12faf6Smrg      # Only check the string length outside the loop.
56601b12faf6Smrg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
56612a51b5beSmrg      teststring=
56621b12faf6Smrg      # Add a significant safety factor because C++ compilers can tack on
56631b12faf6Smrg      # massive amounts of additional arguments before passing them to the
56641b12faf6Smrg      # linker.  It appears as though 1/2 is a usable value.
56652a51b5beSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
56662a51b5beSmrg    fi
566732b578d3Smrg    ;;
566832b578d3Smrg  esac
566932b578d3Smrg
567032b578d3Smrgfi
567132b578d3Smrg
567232b578d3Smrgif test -n $lt_cv_sys_max_cmd_len ; then
56731b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
56742a51b5beSmrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
567532b578d3Smrgelse
56761b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
56772a51b5beSmrg$as_echo "none" >&6; }
567832b578d3Smrgfi
56791b12faf6Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len
568032b578d3Smrg
568132b578d3Smrg
568232b578d3Smrg
568332b578d3Smrg
56842a51b5beSmrg
568532b578d3Smrg
56861b12faf6Smrg: ${CP="cp -f"}
56871b12faf6Smrg: ${MV="mv -f"}
56881b12faf6Smrg: ${RM="rm -f"}
568932b578d3Smrg
56901b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
56911b12faf6Smrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
56921b12faf6Smrg# Try some XSI features
56931b12faf6Smrgxsi_shell=no
56941b12faf6Smrg( _lt_dummy="a/b/c"
56951b12faf6Smrg  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
56961b12faf6Smrg      = c,a/b,, \
56971b12faf6Smrg    && eval 'test $(( 1 + 1 )) -eq 2 \
56981b12faf6Smrg    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
56991b12faf6Smrg  && xsi_shell=yes
57001b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
57011b12faf6Smrg$as_echo "$xsi_shell" >&6; }
570232b578d3Smrg
570332b578d3Smrg
57041b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
57051b12faf6Smrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
57061b12faf6Smrglt_shell_append=no
57071b12faf6Smrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
57081b12faf6Smrg    >/dev/null 2>&1 \
57091b12faf6Smrg  && lt_shell_append=yes
57101b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
57111b12faf6Smrg$as_echo "$lt_shell_append" >&6; }
571232b578d3Smrg
571332b578d3Smrg
57141b12faf6Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57151b12faf6Smrg  lt_unset=unset
57161b12faf6Smrgelse
57171b12faf6Smrg  lt_unset=false
57181b12faf6Smrgfi
57191b12faf6Smrg
57201b12faf6Smrg
57211b12faf6Smrg
57221b12faf6Smrg
57231b12faf6Smrg
57241b12faf6Smrg# test EBCDIC or ASCII
57251b12faf6Smrgcase `echo X|tr X '\101'` in
57261b12faf6Smrg A) # ASCII based system
57271b12faf6Smrg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
57281b12faf6Smrg  lt_SP2NL='tr \040 \012'
57291b12faf6Smrg  lt_NL2SP='tr \015\012 \040\040'
573032b578d3Smrg  ;;
57311b12faf6Smrg *) # EBCDIC based system
57321b12faf6Smrg  lt_SP2NL='tr \100 \n'
57331b12faf6Smrg  lt_NL2SP='tr \r\n \100\100'
573432b578d3Smrg  ;;
573532b578d3Smrgesac
573632b578d3Smrg
573732b578d3Smrg
573832b578d3Smrg
573932b578d3Smrg
574032b578d3Smrg
574132b578d3Smrg
574232b578d3Smrg
574332b578d3Smrg
574432b578d3Smrg
57451b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
57461b12faf6Smrg$as_echo_n "checking for $LD option to reload object files... " >&6; }
57471b12faf6Smrgif test "${lt_cv_ld_reload_flag+set}" = set; then :
57482a51b5beSmrg  $as_echo_n "(cached) " >&6
574932b578d3Smrgelse
57501b12faf6Smrg  lt_cv_ld_reload_flag='-r'
575132b578d3Smrgfi
57521b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
57531b12faf6Smrg$as_echo "$lt_cv_ld_reload_flag" >&6; }
57541b12faf6Smrgreload_flag=$lt_cv_ld_reload_flag
57551b12faf6Smrgcase $reload_flag in
57561b12faf6Smrg"" | " "*) ;;
57571b12faf6Smrg*) reload_flag=" $reload_flag" ;;
57581b12faf6Smrgesac
57591b12faf6Smrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
576032b578d3Smrgcase $host_os in
57611b12faf6Smrg  darwin*)
57621b12faf6Smrg    if test "$GCC" = yes; then
57631b12faf6Smrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
57641b12faf6Smrg    else
57651b12faf6Smrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
57661b12faf6Smrg    fi
57671b12faf6Smrg    ;;
576832b578d3Smrgesac
576932b578d3Smrg
577032b578d3Smrg
577132b578d3Smrg
577232b578d3Smrg
577332b578d3Smrg
577432b578d3Smrg
577532b578d3Smrg
57761b12faf6Smrg
577732b578d3Smrg
577832b578d3Smrgif test -n "$ac_tool_prefix"; then
57791b12faf6Smrg  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
57801b12faf6Smrgset dummy ${ac_tool_prefix}objdump; ac_word=$2
57811b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57822a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
57831b12faf6Smrgif test "${ac_cv_prog_OBJDUMP+set}" = set; then :
57842a51b5beSmrg  $as_echo_n "(cached) " >&6
578532b578d3Smrgelse
57861b12faf6Smrg  if test -n "$OBJDUMP"; then
57871b12faf6Smrg  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
578832b578d3Smrgelse
578932b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
579032b578d3Smrgfor as_dir in $PATH
579132b578d3Smrgdo
579232b578d3Smrg  IFS=$as_save_IFS
579332b578d3Smrg  test -z "$as_dir" && as_dir=.
57941b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
579532b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57961b12faf6Smrg    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
57971b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
579832b578d3Smrg    break 2
579932b578d3Smrg  fi
580032b578d3Smrgdone
58011b12faf6Smrg  done
580232b578d3SmrgIFS=$as_save_IFS
580332b578d3Smrg
580432b578d3Smrgfi
580532b578d3Smrgfi
58061b12faf6SmrgOBJDUMP=$ac_cv_prog_OBJDUMP
58071b12faf6Smrgif test -n "$OBJDUMP"; then
58081b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
58091b12faf6Smrg$as_echo "$OBJDUMP" >&6; }
581032b578d3Smrgelse
58111b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58122a51b5beSmrg$as_echo "no" >&6; }
581332b578d3Smrgfi
581432b578d3Smrg
581532b578d3Smrg
581632b578d3Smrgfi
58171b12faf6Smrgif test -z "$ac_cv_prog_OBJDUMP"; then
58181b12faf6Smrg  ac_ct_OBJDUMP=$OBJDUMP
58191b12faf6Smrg  # Extract the first word of "objdump", so it can be a program name with args.
58201b12faf6Smrgset dummy objdump; ac_word=$2
58211b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
58222a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
58231b12faf6Smrgif test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
58242a51b5beSmrg  $as_echo_n "(cached) " >&6
582532b578d3Smrgelse
58261b12faf6Smrg  if test -n "$ac_ct_OBJDUMP"; then
58271b12faf6Smrg  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
582832b578d3Smrgelse
582932b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
583032b578d3Smrgfor as_dir in $PATH
583132b578d3Smrgdo
583232b578d3Smrg  IFS=$as_save_IFS
583332b578d3Smrg  test -z "$as_dir" && as_dir=.
58341b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
583532b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58361b12faf6Smrg    ac_cv_prog_ac_ct_OBJDUMP="objdump"
58371b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
583832b578d3Smrg    break 2
583932b578d3Smrg  fi
584032b578d3Smrgdone
58411b12faf6Smrg  done
584232b578d3SmrgIFS=$as_save_IFS
584332b578d3Smrg
584432b578d3Smrgfi
584532b578d3Smrgfi
58461b12faf6Smrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
58471b12faf6Smrgif test -n "$ac_ct_OBJDUMP"; then
58481b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
58491b12faf6Smrg$as_echo "$ac_ct_OBJDUMP" >&6; }
585032b578d3Smrgelse
58511b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58522a51b5beSmrg$as_echo "no" >&6; }
585332b578d3Smrgfi
585432b578d3Smrg
58551b12faf6Smrg  if test "x$ac_ct_OBJDUMP" = x; then
58561b12faf6Smrg    OBJDUMP="false"
585732b578d3Smrg  else
585832b578d3Smrg    case $cross_compiling:$ac_tool_warned in
585932b578d3Smrgyes:)
58601b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
58612a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
586232b578d3Smrgac_tool_warned=yes ;;
586332b578d3Smrgesac
58641b12faf6Smrg    OBJDUMP=$ac_ct_OBJDUMP
586532b578d3Smrg  fi
586632b578d3Smrgelse
58671b12faf6Smrg  OBJDUMP="$ac_cv_prog_OBJDUMP"
586832b578d3Smrgfi
586932b578d3Smrg
58701b12faf6Smrgtest -z "$OBJDUMP" && OBJDUMP=objdump
587132b578d3Smrg
587232b578d3Smrg
587332b578d3Smrg
58741b12faf6Smrg
58751b12faf6Smrg
58761b12faf6Smrg
58771b12faf6Smrg
58781b12faf6Smrg
58791b12faf6Smrg
58801b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
58811b12faf6Smrg$as_echo_n "checking how to recognize dependent libraries... " >&6; }
58821b12faf6Smrgif test "${lt_cv_deplibs_check_method+set}" = set; then :
58832a51b5beSmrg  $as_echo_n "(cached) " >&6
588432b578d3Smrgelse
58851b12faf6Smrg  lt_cv_file_magic_cmd='$MAGIC_CMD'
58861b12faf6Smrglt_cv_file_magic_test_file=
58871b12faf6Smrglt_cv_deplibs_check_method='unknown'
58881b12faf6Smrg# Need to set the preceding variable on all platforms that support
58891b12faf6Smrg# interlibrary dependencies.
58901b12faf6Smrg# 'none' -- dependencies not supported.
58911b12faf6Smrg# `unknown' -- same as none, but documents that we really don't know.
58921b12faf6Smrg# 'pass_all' -- all dependencies passed with no checks.
58931b12faf6Smrg# 'test_compile' -- check by making test program.
58941b12faf6Smrg# 'file_magic [[regex]]' -- check by looking for files in library path
58951b12faf6Smrg# which responds to the $file_magic_cmd with a given extended regex.
58961b12faf6Smrg# If you have `file' or equivalent on your system and you're not sure
58971b12faf6Smrg# whether `pass_all' will *always* work, you probably want this one.
589832b578d3Smrg
58991b12faf6Smrgcase $host_os in
59001b12faf6Smrgaix[4-9]*)
59011b12faf6Smrg  lt_cv_deplibs_check_method=pass_all
59021b12faf6Smrg  ;;
590332b578d3Smrg
59041b12faf6Smrgbeos*)
59051b12faf6Smrg  lt_cv_deplibs_check_method=pass_all
59061b12faf6Smrg  ;;
59071b12faf6Smrg
59081b12faf6Smrgbsdi[45]*)
59091b12faf6Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
59101b12faf6Smrg  lt_cv_file_magic_cmd='/usr/bin/file -L'
59111b12faf6Smrg  lt_cv_file_magic_test_file=/shlib/libc.so
59121b12faf6Smrg  ;;
59131b12faf6Smrg
59141b12faf6Smrgcygwin*)
59151b12faf6Smrg  # func_win32_libid is a shell function defined in ltmain.sh
59161b12faf6Smrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
59171b12faf6Smrg  lt_cv_file_magic_cmd='func_win32_libid'
59181b12faf6Smrg  ;;
59191b12faf6Smrg
59201b12faf6Smrgmingw* | pw32*)
59211b12faf6Smrg  # Base MSYS/MinGW do not provide the 'file' command needed by
59221b12faf6Smrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
59231b12faf6Smrg  # unless we find 'file', for example because we are cross-compiling.
59241b12faf6Smrg  if ( file / ) >/dev/null 2>&1; then
59251b12faf6Smrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
59261b12faf6Smrg    lt_cv_file_magic_cmd='func_win32_libid'
592732b578d3Smrg  else
59281b12faf6Smrg    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
59291b12faf6Smrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
593032b578d3Smrg  fi
59311b12faf6Smrg  ;;
59321b12faf6Smrg
59331b12faf6Smrgcegcc)
59341b12faf6Smrg  # use the weaker test based on 'objdump'. See mingw*.
59351b12faf6Smrg  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
59361b12faf6Smrg  lt_cv_file_magic_cmd='$OBJDUMP -f'
59371b12faf6Smrg  ;;
59381b12faf6Smrg
59391b12faf6Smrgdarwin* | rhapsody*)
59401b12faf6Smrg  lt_cv_deplibs_check_method=pass_all
59411b12faf6Smrg  ;;
59421b12faf6Smrg
59431b12faf6Smrgfreebsd* | dragonfly*)
59441b12faf6Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
59451b12faf6Smrg    case $host_cpu in
59461b12faf6Smrg    i*86 )
59471b12faf6Smrg      # Not sure whether the presence of OpenBSD here was a mistake.
59481b12faf6Smrg      # Let's accept both of them until this is cleared up.
59491b12faf6Smrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
59501b12faf6Smrg      lt_cv_file_magic_cmd=/usr/bin/file
59511b12faf6Smrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
59521b12faf6Smrg      ;;
59531b12faf6Smrg    esac
59541b12faf6Smrg  else
59551b12faf6Smrg    lt_cv_deplibs_check_method=pass_all
59561b12faf6Smrg  fi
59571b12faf6Smrg  ;;
59581b12faf6Smrg
59591b12faf6Smrggnu*)
59601b12faf6Smrg  lt_cv_deplibs_check_method=pass_all
59611b12faf6Smrg  ;;
59621b12faf6Smrg
59631b12faf6Smrghpux10.20* | hpux11*)
59641b12faf6Smrg  lt_cv_file_magic_cmd=/usr/bin/file
59651b12faf6Smrg  case $host_cpu in
59661b12faf6Smrg  ia64*)
59671b12faf6Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
59681b12faf6Smrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
59691b12faf6Smrg    ;;
59701b12faf6Smrg  hppa*64*)
59711b12faf6Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
59721b12faf6Smrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
59731b12faf6Smrg    ;;
59741b12faf6Smrg  *)
59751b12faf6Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
59761b12faf6Smrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
59771b12faf6Smrg    ;;
59781b12faf6Smrg  esac
59791b12faf6Smrg  ;;
59801b12faf6Smrg
59811b12faf6Smrginterix[3-9]*)
59821b12faf6Smrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
59831b12faf6Smrg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
59841b12faf6Smrg  ;;
59851b12faf6Smrg
59861b12faf6Smrgirix5* | irix6* | nonstopux*)
59871b12faf6Smrg  case $LD in
59881b12faf6Smrg  *-32|*"-32 ") libmagic=32-bit;;
59891b12faf6Smrg  *-n32|*"-n32 ") libmagic=N32;;
59901b12faf6Smrg  *-64|*"-64 ") libmagic=64-bit;;
59911b12faf6Smrg  *) libmagic=never-match;;
59921b12faf6Smrg  esac
59931b12faf6Smrg  lt_cv_deplibs_check_method=pass_all
59941b12faf6Smrg  ;;
59951b12faf6Smrg
59961b12faf6Smrg# This must be Linux ELF.
59971b12faf6Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
59981b12faf6Smrg  lt_cv_deplibs_check_method=pass_all
59991b12faf6Smrg  ;;
60001b12faf6Smrg
60011b12faf6Smrgnetbsd* | netbsdelf*-gnu)
60021b12faf6Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
60031b12faf6Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
60041b12faf6Smrg  else
60051b12faf6Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
60061b12faf6Smrg  fi
60071b12faf6Smrg  ;;
60081b12faf6Smrg
60091b12faf6Smrgnewos6*)
60101b12faf6Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
60111b12faf6Smrg  lt_cv_file_magic_cmd=/usr/bin/file
60121b12faf6Smrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
60131b12faf6Smrg  ;;
60141b12faf6Smrg
60151b12faf6Smrg*nto* | *qnx*)
60161b12faf6Smrg  lt_cv_deplibs_check_method=pass_all
60171b12faf6Smrg  ;;
60181b12faf6Smrg
60191b12faf6Smrgopenbsd*)
60201b12faf6Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
60211b12faf6Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
60221b12faf6Smrg  else
60231b12faf6Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
60241b12faf6Smrg  fi
60251b12faf6Smrg  ;;
60261b12faf6Smrg
60271b12faf6Smrgosf3* | osf4* | osf5*)
60281b12faf6Smrg  lt_cv_deplibs_check_method=pass_all
60291b12faf6Smrg  ;;
60301b12faf6Smrg
60311b12faf6Smrgrdos*)
60321b12faf6Smrg  lt_cv_deplibs_check_method=pass_all
60331b12faf6Smrg  ;;
60341b12faf6Smrg
60351b12faf6Smrgsolaris*)
60361b12faf6Smrg  lt_cv_deplibs_check_method=pass_all
60371b12faf6Smrg  ;;
60381b12faf6Smrg
60391b12faf6Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
60401b12faf6Smrg  lt_cv_deplibs_check_method=pass_all
60411b12faf6Smrg  ;;
60421b12faf6Smrg
60431b12faf6Smrgsysv4 | sysv4.3*)
60441b12faf6Smrg  case $host_vendor in
60451b12faf6Smrg  motorola)
60461b12faf6Smrg    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]'
60471b12faf6Smrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
60481b12faf6Smrg    ;;
60491b12faf6Smrg  ncr)
60501b12faf6Smrg    lt_cv_deplibs_check_method=pass_all
60511b12faf6Smrg    ;;
60521b12faf6Smrg  sequent)
60531b12faf6Smrg    lt_cv_file_magic_cmd='/bin/file'
60541b12faf6Smrg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
60551b12faf6Smrg    ;;
60561b12faf6Smrg  sni)
60571b12faf6Smrg    lt_cv_file_magic_cmd='/bin/file'
60581b12faf6Smrg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
60591b12faf6Smrg    lt_cv_file_magic_test_file=/lib/libc.so
60601b12faf6Smrg    ;;
60611b12faf6Smrg  siemens)
60621b12faf6Smrg    lt_cv_deplibs_check_method=pass_all
60631b12faf6Smrg    ;;
60641b12faf6Smrg  pc)
60651b12faf6Smrg    lt_cv_deplibs_check_method=pass_all
60661b12faf6Smrg    ;;
60671b12faf6Smrg  esac
60681b12faf6Smrg  ;;
60691b12faf6Smrg
60701b12faf6Smrgtpf*)
60711b12faf6Smrg  lt_cv_deplibs_check_method=pass_all
60721b12faf6Smrg  ;;
60731b12faf6Smrgesac
60741b12faf6Smrg
607532b578d3Smrgfi
60761b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
60771b12faf6Smrg$as_echo "$lt_cv_deplibs_check_method" >&6; }
60781b12faf6Smrgfile_magic_cmd=$lt_cv_file_magic_cmd
60791b12faf6Smrgdeplibs_check_method=$lt_cv_deplibs_check_method
60801b12faf6Smrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
60811b12faf6Smrg
60821b12faf6Smrg
60831b12faf6Smrg
60841b12faf6Smrg
60851b12faf6Smrg
60861b12faf6Smrg
60871b12faf6Smrg
60881b12faf6Smrg
60891b12faf6Smrg
60901b12faf6Smrg
60911b12faf6Smrg
609232b578d3Smrg
609332b578d3Smrgif test -n "$ac_tool_prefix"; then
60941b12faf6Smrg  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
60951b12faf6Smrgset dummy ${ac_tool_prefix}ar; ac_word=$2
60961b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
60972a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
60981b12faf6Smrgif test "${ac_cv_prog_AR+set}" = set; then :
60992a51b5beSmrg  $as_echo_n "(cached) " >&6
610032b578d3Smrgelse
61011b12faf6Smrg  if test -n "$AR"; then
61021b12faf6Smrg  ac_cv_prog_AR="$AR" # Let the user override the test.
610332b578d3Smrgelse
610432b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
610532b578d3Smrgfor as_dir in $PATH
610632b578d3Smrgdo
610732b578d3Smrg  IFS=$as_save_IFS
610832b578d3Smrg  test -z "$as_dir" && as_dir=.
61091b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
611032b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
61111b12faf6Smrg    ac_cv_prog_AR="${ac_tool_prefix}ar"
61121b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
611332b578d3Smrg    break 2
611432b578d3Smrg  fi
611532b578d3Smrgdone
61161b12faf6Smrg  done
611732b578d3SmrgIFS=$as_save_IFS
611832b578d3Smrg
611932b578d3Smrgfi
612032b578d3Smrgfi
61211b12faf6SmrgAR=$ac_cv_prog_AR
61221b12faf6Smrgif test -n "$AR"; then
61231b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
61241b12faf6Smrg$as_echo "$AR" >&6; }
612532b578d3Smrgelse
61261b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61272a51b5beSmrg$as_echo "no" >&6; }
612832b578d3Smrgfi
612932b578d3Smrg
613032b578d3Smrg
613132b578d3Smrgfi
61321b12faf6Smrgif test -z "$ac_cv_prog_AR"; then
61331b12faf6Smrg  ac_ct_AR=$AR
61341b12faf6Smrg  # Extract the first word of "ar", so it can be a program name with args.
61351b12faf6Smrgset dummy ar; ac_word=$2
61361b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
61372a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
61381b12faf6Smrgif test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
61392a51b5beSmrg  $as_echo_n "(cached) " >&6
614032b578d3Smrgelse
61411b12faf6Smrg  if test -n "$ac_ct_AR"; then
61421b12faf6Smrg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
614332b578d3Smrgelse
614432b578d3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
614532b578d3Smrgfor as_dir in $PATH
614632b578d3Smrgdo
614732b578d3Smrg  IFS=$as_save_IFS
614832b578d3Smrg  test -z "$as_dir" && as_dir=.
61491b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
615032b578d3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
61511b12faf6Smrg    ac_cv_prog_ac_ct_AR="ar"
61521b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
615332b578d3Smrg    break 2
615432b578d3Smrg  fi
615532b578d3Smrgdone
61561b12faf6Smrg  done
615732b578d3SmrgIFS=$as_save_IFS
615832b578d3Smrg
615932b578d3Smrgfi
616032b578d3Smrgfi
61611b12faf6Smrgac_ct_AR=$ac_cv_prog_ac_ct_AR
61621b12faf6Smrgif test -n "$ac_ct_AR"; then
61631b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
61641b12faf6Smrg$as_echo "$ac_ct_AR" >&6; }
616532b578d3Smrgelse
61661b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61672a51b5beSmrg$as_echo "no" >&6; }
616832b578d3Smrgfi
616932b578d3Smrg
61701b12faf6Smrg  if test "x$ac_ct_AR" = x; then
61711b12faf6Smrg    AR="false"
617232b578d3Smrg  else
617332b578d3Smrg    case $cross_compiling:$ac_tool_warned in
617432b578d3Smrgyes:)
61751b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
61762a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
617732b578d3Smrgac_tool_warned=yes ;;
617832b578d3Smrgesac
61791b12faf6Smrg    AR=$ac_ct_AR
618032b578d3Smrg  fi
618132b578d3Smrgelse
61821b12faf6Smrg  AR="$ac_cv_prog_AR"
618332b578d3Smrgfi
618432b578d3Smrg
618532b578d3Smrgtest -z "$AR" && AR=ar
618632b578d3Smrgtest -z "$AR_FLAGS" && AR_FLAGS=cru
618732b578d3Smrg
618832b578d3Smrg
61892a51b5beSmrg
61902a51b5beSmrg
61912a51b5beSmrg
61922a51b5beSmrg
61932a51b5beSmrg
61942a51b5beSmrg
61952a51b5beSmrg
61962a51b5beSmrg
61972a51b5beSmrg
61981b12faf6Smrgif test -n "$ac_tool_prefix"; then
61991b12faf6Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
62001b12faf6Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
62011b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
62022a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
62031b12faf6Smrgif test "${ac_cv_prog_STRIP+set}" = set; then :
62042a51b5beSmrg  $as_echo_n "(cached) " >&6
62052a51b5beSmrgelse
62061b12faf6Smrg  if test -n "$STRIP"; then
62071b12faf6Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
62082a51b5beSmrgelse
62092a51b5beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62102a51b5beSmrgfor as_dir in $PATH
62112a51b5beSmrgdo
62122a51b5beSmrg  IFS=$as_save_IFS
62132a51b5beSmrg  test -z "$as_dir" && as_dir=.
62141b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
62152a51b5beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
62161b12faf6Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
62171b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
62182a51b5beSmrg    break 2
62192a51b5beSmrg  fi
62202a51b5beSmrgdone
62211b12faf6Smrg  done
62222a51b5beSmrgIFS=$as_save_IFS
62232a51b5beSmrg
62242a51b5beSmrgfi
62252a51b5beSmrgfi
62261b12faf6SmrgSTRIP=$ac_cv_prog_STRIP
62271b12faf6Smrgif test -n "$STRIP"; then
62281b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
62291b12faf6Smrg$as_echo "$STRIP" >&6; }
62302a51b5beSmrgelse
62311b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62322a51b5beSmrg$as_echo "no" >&6; }
62332a51b5beSmrgfi
62342a51b5beSmrg
62352a51b5beSmrg
62362a51b5beSmrgfi
62371b12faf6Smrgif test -z "$ac_cv_prog_STRIP"; then
62381b12faf6Smrg  ac_ct_STRIP=$STRIP
62391b12faf6Smrg  # Extract the first word of "strip", so it can be a program name with args.
62401b12faf6Smrgset dummy strip; ac_word=$2
62411b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
62422a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
62431b12faf6Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
62442a51b5beSmrg  $as_echo_n "(cached) " >&6
62452a51b5beSmrgelse
62461b12faf6Smrg  if test -n "$ac_ct_STRIP"; then
62471b12faf6Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
62482a51b5beSmrgelse
62492a51b5beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62502a51b5beSmrgfor as_dir in $PATH
62512a51b5beSmrgdo
62522a51b5beSmrg  IFS=$as_save_IFS
62532a51b5beSmrg  test -z "$as_dir" && as_dir=.
62541b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
62552a51b5beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
62561b12faf6Smrg    ac_cv_prog_ac_ct_STRIP="strip"
62571b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
62582a51b5beSmrg    break 2
62592a51b5beSmrg  fi
62602a51b5beSmrgdone
62611b12faf6Smrg  done
62622a51b5beSmrgIFS=$as_save_IFS
62632a51b5beSmrg
62642a51b5beSmrgfi
62652a51b5beSmrgfi
62661b12faf6Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
62671b12faf6Smrgif test -n "$ac_ct_STRIP"; then
62681b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
62691b12faf6Smrg$as_echo "$ac_ct_STRIP" >&6; }
62702a51b5beSmrgelse
62711b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62722a51b5beSmrg$as_echo "no" >&6; }
62732a51b5beSmrgfi
62742a51b5beSmrg
62751b12faf6Smrg  if test "x$ac_ct_STRIP" = x; then
62761b12faf6Smrg    STRIP=":"
62772a51b5beSmrg  else
62782a51b5beSmrg    case $cross_compiling:$ac_tool_warned in
62792a51b5beSmrgyes:)
62801b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
62812a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
62822a51b5beSmrgac_tool_warned=yes ;;
62832a51b5beSmrgesac
62841b12faf6Smrg    STRIP=$ac_ct_STRIP
62852a51b5beSmrg  fi
62862a51b5beSmrgelse
62871b12faf6Smrg  STRIP="$ac_cv_prog_STRIP"
62882a51b5beSmrgfi
62892a51b5beSmrg
62901b12faf6Smrgtest -z "$STRIP" && STRIP=:
62911b12faf6Smrg
62921b12faf6Smrg
62931b12faf6Smrg
62941b12faf6Smrg
62951b12faf6Smrg
62961b12faf6Smrg
62971b12faf6Smrgif test -n "$ac_tool_prefix"; then
62981b12faf6Smrg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
62991b12faf6Smrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
63001b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63012a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
63021b12faf6Smrgif test "${ac_cv_prog_RANLIB+set}" = set; then :
63032a51b5beSmrg  $as_echo_n "(cached) " >&6
63042a51b5beSmrgelse
63051b12faf6Smrg  if test -n "$RANLIB"; then
63061b12faf6Smrg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
63072a51b5beSmrgelse
63082a51b5beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63092a51b5beSmrgfor as_dir in $PATH
63102a51b5beSmrgdo
63112a51b5beSmrg  IFS=$as_save_IFS
63122a51b5beSmrg  test -z "$as_dir" && as_dir=.
63131b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
63142a51b5beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
63151b12faf6Smrg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
63161b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63172a51b5beSmrg    break 2
63182a51b5beSmrg  fi
63192a51b5beSmrgdone
63201b12faf6Smrg  done
63212a51b5beSmrgIFS=$as_save_IFS
63222a51b5beSmrg
63232a51b5beSmrgfi
63242a51b5beSmrgfi
63251b12faf6SmrgRANLIB=$ac_cv_prog_RANLIB
63261b12faf6Smrgif test -n "$RANLIB"; then
63271b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
63281b12faf6Smrg$as_echo "$RANLIB" >&6; }
63292a51b5beSmrgelse
63301b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63312a51b5beSmrg$as_echo "no" >&6; }
63322a51b5beSmrgfi
63332a51b5beSmrg
63342a51b5beSmrg
633532b578d3Smrgfi
63361b12faf6Smrgif test -z "$ac_cv_prog_RANLIB"; then
63371b12faf6Smrg  ac_ct_RANLIB=$RANLIB
63381b12faf6Smrg  # Extract the first word of "ranlib", so it can be a program name with args.
63391b12faf6Smrgset dummy ranlib; ac_word=$2
63401b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63412a51b5beSmrg$as_echo_n "checking for $ac_word... " >&6; }
63421b12faf6Smrgif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
63432a51b5beSmrg  $as_echo_n "(cached) " >&6
63442a51b5beSmrgelse
63451b12faf6Smrg  if test -n "$ac_ct_RANLIB"; then
63461b12faf6Smrg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
63472a51b5beSmrgelse
63482a51b5beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63492a51b5beSmrgfor as_dir in $PATH
63502a51b5beSmrgdo
63512a51b5beSmrg  IFS=$as_save_IFS
63522a51b5beSmrg  test -z "$as_dir" && as_dir=.
63531b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
63542a51b5beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
63551b12faf6Smrg    ac_cv_prog_ac_ct_RANLIB="ranlib"
63561b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63572a51b5beSmrg    break 2
63582a51b5beSmrg  fi
63592a51b5beSmrgdone
63601b12faf6Smrg  done
63612a51b5beSmrgIFS=$as_save_IFS
636232b578d3Smrg
63632a51b5beSmrgfi
63642a51b5beSmrgfi
63651b12faf6Smrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
63661b12faf6Smrgif test -n "$ac_ct_RANLIB"; then
63671b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
63681b12faf6Smrg$as_echo "$ac_ct_RANLIB" >&6; }
636932b578d3Smrgelse
63701b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63712a51b5beSmrg$as_echo "no" >&6; }
637232b578d3Smrgfi
637332b578d3Smrg
63741b12faf6Smrg  if test "x$ac_ct_RANLIB" = x; then
63751b12faf6Smrg    RANLIB=":"
63762a51b5beSmrg  else
63772a51b5beSmrg    case $cross_compiling:$ac_tool_warned in
63782a51b5beSmrgyes:)
63791b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
63802a51b5beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
63812a51b5beSmrgac_tool_warned=yes ;;
63822a51b5beSmrgesac
63831b12faf6Smrg    RANLIB=$ac_ct_RANLIB
63842a51b5beSmrg  fi
638532b578d3Smrgelse
63861b12faf6Smrg  RANLIB="$ac_cv_prog_RANLIB"
63872a51b5beSmrgfi
638832b578d3Smrg
63891b12faf6Smrgtest -z "$RANLIB" && RANLIB=:
639032b578d3Smrg
639132b578d3Smrg
63922a51b5beSmrg
63932a51b5beSmrg
639432b578d3Smrg
63952a51b5beSmrg
63961b12faf6Smrg# Determine commands to create old-style static archives.
63971b12faf6Smrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
63981b12faf6Smrgold_postinstall_cmds='chmod 644 $oldlib'
63991b12faf6Smrgold_postuninstall_cmds=
64001b12faf6Smrg
64011b12faf6Smrgif test -n "$RANLIB"; then
64021b12faf6Smrg  case $host_os in
64031b12faf6Smrg  openbsd*)
64041b12faf6Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
64052a51b5beSmrg    ;;
64061b12faf6Smrg  *)
64071b12faf6Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
64082a51b5beSmrg    ;;
64092a51b5beSmrg  esac
64101b12faf6Smrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
641132b578d3Smrgfi
641232b578d3Smrg
641332b578d3Smrg
641432b578d3Smrg
641532b578d3Smrg
641632b578d3Smrg
641732b578d3Smrg
641832b578d3Smrg
641932b578d3Smrg
642032b578d3Smrg
642132b578d3Smrg
642232b578d3Smrg
642332b578d3Smrg
642432b578d3Smrg
642532b578d3Smrg
642632b578d3Smrg
642732b578d3Smrg
642832b578d3Smrg
642932b578d3Smrg
643032b578d3Smrg
643132b578d3Smrg
643232b578d3Smrg
643332b578d3Smrg
643432b578d3Smrg
643532b578d3Smrg
643632b578d3Smrg
643732b578d3Smrg
643832b578d3Smrg
643932b578d3Smrg
644032b578d3Smrg
644132b578d3Smrg
644232b578d3Smrg
644332b578d3Smrg
644432b578d3Smrg
644532b578d3Smrg
64461b12faf6Smrg# If no C compiler was specified, use CC.
64471b12faf6SmrgLTCC=${LTCC-"$CC"}
644832b578d3Smrg
64491b12faf6Smrg# If no C compiler flags were specified, use CFLAGS.
64501b12faf6SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
645132b578d3Smrg
64521b12faf6Smrg# Allow CC to be a program name with arguments.
64531b12faf6Smrgcompiler=$CC
645432b578d3Smrg
645532b578d3Smrg
64561b12faf6Smrg# Check for command to grab the raw symbol name followed by C symbol from nm.
64571b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
64581b12faf6Smrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
64591b12faf6Smrgif test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
64601b12faf6Smrg  $as_echo_n "(cached) " >&6
64611b12faf6Smrgelse
646232b578d3Smrg
64631b12faf6Smrg# These are sane defaults that work on at least a few old systems.
64641b12faf6Smrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
646532b578d3Smrg
64661b12faf6Smrg# Character class describing NM global symbol codes.
64671b12faf6Smrgsymcode='[BCDEGRST]'
646832b578d3Smrg
64691b12faf6Smrg# Regexp to match symbols that can be accessed directly from C.
64701b12faf6Smrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
647132b578d3Smrg
64721b12faf6Smrg# Define system-specific variables.
64731b12faf6Smrgcase $host_os in
64741b12faf6Smrgaix*)
64751b12faf6Smrg  symcode='[BCDT]'
64761b12faf6Smrg  ;;
64771b12faf6Smrgcygwin* | mingw* | pw32* | cegcc*)
64781b12faf6Smrg  symcode='[ABCDGISTW]'
64791b12faf6Smrg  ;;
64801b12faf6Smrghpux*)
64811b12faf6Smrg  if test "$host_cpu" = ia64; then
64821b12faf6Smrg    symcode='[ABCDEGRST]'
64831b12faf6Smrg  fi
64841b12faf6Smrg  ;;
64851b12faf6Smrgirix* | nonstopux*)
64861b12faf6Smrg  symcode='[BCDEGRST]'
64871b12faf6Smrg  ;;
64881b12faf6Smrgosf*)
64891b12faf6Smrg  symcode='[BCDEGQRST]'
64901b12faf6Smrg  ;;
64911b12faf6Smrgsolaris*)
64921b12faf6Smrg  symcode='[BDRT]'
64931b12faf6Smrg  ;;
64941b12faf6Smrgsco3.2v5*)
64951b12faf6Smrg  symcode='[DT]'
64961b12faf6Smrg  ;;
64971b12faf6Smrgsysv4.2uw2*)
64981b12faf6Smrg  symcode='[DT]'
64991b12faf6Smrg  ;;
65001b12faf6Smrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
65011b12faf6Smrg  symcode='[ABDT]'
65021b12faf6Smrg  ;;
65031b12faf6Smrgsysv4)
65041b12faf6Smrg  symcode='[DFNSTU]'
65051b12faf6Smrg  ;;
65061b12faf6Smrgesac
650732b578d3Smrg
65081b12faf6Smrg# If we're using GNU nm, then use its standard symbol codes.
65091b12faf6Smrgcase `$NM -V 2>&1` in
65101b12faf6Smrg*GNU* | *'with BFD'*)
65111b12faf6Smrg  symcode='[ABCDGIRSTW]' ;;
65121b12faf6Smrgesac
651332b578d3Smrg
65141b12faf6Smrg# Transform an extracted symbol line into a proper C declaration.
65151b12faf6Smrg# Some systems (esp. on ia64) link data and code symbols differently,
65161b12faf6Smrg# so use this general approach.
65171b12faf6Smrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
651832b578d3Smrg
65191b12faf6Smrg# Transform an extracted symbol line into symbol name and symbol address
65201b12faf6Smrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
65211b12faf6Smrglt_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'"
652232b578d3Smrg
65231b12faf6Smrg# Handle CRLF in mingw tool chain
65241b12faf6Smrgopt_cr=
65251b12faf6Smrgcase $build_os in
65261b12faf6Smrgmingw*)
65271b12faf6Smrg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
65281b12faf6Smrg  ;;
65291b12faf6Smrgesac
65302a51b5beSmrg
65311b12faf6Smrg# Try without a prefix underscore, then with it.
65321b12faf6Smrgfor ac_symprfx in "" "_"; do
653332b578d3Smrg
65341b12faf6Smrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
65351b12faf6Smrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
653632b578d3Smrg
65371b12faf6Smrg  # Write the raw and C identifiers.
65381b12faf6Smrg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
65391b12faf6Smrg    # Fake it for dumpbin and say T for any non-static function
65401b12faf6Smrg    # and D for any global variable.
65411b12faf6Smrg    # Also find C++ and __fastcall symbols from MSVC++,
65421b12faf6Smrg    # which start with @ or ?.
65431b12faf6Smrg    lt_cv_sys_global_symbol_pipe="$AWK '"\
65441b12faf6Smrg"     {last_section=section; section=\$ 3};"\
65451b12faf6Smrg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
65461b12faf6Smrg"     \$ 0!~/External *\|/{next};"\
65471b12faf6Smrg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
65481b12faf6Smrg"     {if(hide[section]) next};"\
65491b12faf6Smrg"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
65501b12faf6Smrg"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
65511b12faf6Smrg"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
65521b12faf6Smrg"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
65531b12faf6Smrg"     ' prfx=^$ac_symprfx"
65541b12faf6Smrg  else
65551b12faf6Smrg    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
65561b12faf6Smrg  fi
655732b578d3Smrg
65581b12faf6Smrg  # Check to see that the pipe works correctly.
65591b12faf6Smrg  pipe_works=no
65601b12faf6Smrg
65611b12faf6Smrg  rm -f conftest*
65621b12faf6Smrg  cat > conftest.$ac_ext <<_LT_EOF
65631b12faf6Smrg#ifdef __cplusplus
65641b12faf6Smrgextern "C" {
65651b12faf6Smrg#endif
65661b12faf6Smrgchar nm_test_var;
65671b12faf6Smrgvoid nm_test_func(void);
65681b12faf6Smrgvoid nm_test_func(void){}
65691b12faf6Smrg#ifdef __cplusplus
65701b12faf6Smrg}
65711b12faf6Smrg#endif
65721b12faf6Smrgint main(){nm_test_var='a';nm_test_func();return(0);}
65731b12faf6Smrg_LT_EOF
65741b12faf6Smrg
65751b12faf6Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
65761b12faf6Smrg  (eval $ac_compile) 2>&5
65771b12faf6Smrg  ac_status=$?
65781b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65791b12faf6Smrg  test $ac_status = 0; }; then
65801b12faf6Smrg    # Now try to grab the symbols.
65811b12faf6Smrg    nlist=conftest.nm
65821b12faf6Smrg    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
65831b12faf6Smrg  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
65841b12faf6Smrg  ac_status=$?
65851b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65861b12faf6Smrg  test $ac_status = 0; } && test -s "$nlist"; then
65871b12faf6Smrg      # Try sorting and uniquifying the output.
65881b12faf6Smrg      if sort "$nlist" | uniq > "$nlist"T; then
65891b12faf6Smrg	mv -f "$nlist"T "$nlist"
65901b12faf6Smrg      else
65911b12faf6Smrg	rm -f "$nlist"T
659232b578d3Smrg      fi
659332b578d3Smrg
65941b12faf6Smrg      # Make sure that we snagged all the symbols we need.
65951b12faf6Smrg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
65961b12faf6Smrg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
65971b12faf6Smrg	  cat <<_LT_EOF > conftest.$ac_ext
65981b12faf6Smrg#ifdef __cplusplus
65991b12faf6Smrgextern "C" {
66001b12faf6Smrg#endif
660132b578d3Smrg
66021b12faf6Smrg_LT_EOF
66031b12faf6Smrg	  # Now generate the symbol file.
66041b12faf6Smrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
660532b578d3Smrg
66061b12faf6Smrg	  cat <<_LT_EOF >> conftest.$ac_ext
660732b578d3Smrg
66081b12faf6Smrg/* The mapping between symbol names and symbols.  */
66091b12faf6Smrgconst struct {
66101b12faf6Smrg  const char *name;
66111b12faf6Smrg  void       *address;
66121b12faf6Smrg}
66131b12faf6Smrglt__PROGRAM__LTX_preloaded_symbols[] =
66141b12faf6Smrg{
66151b12faf6Smrg  { "@PROGRAM@", (void *) 0 },
66161b12faf6Smrg_LT_EOF
66171b12faf6Smrg	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
66181b12faf6Smrg	  cat <<\_LT_EOF >> conftest.$ac_ext
66191b12faf6Smrg  {0, (void *) 0}
66201b12faf6Smrg};
66211b12faf6Smrg
66221b12faf6Smrg/* This works around a problem in FreeBSD linker */
66231b12faf6Smrg#ifdef FREEBSD_WORKAROUND
66241b12faf6Smrgstatic const void *lt_preloaded_setup() {
66251b12faf6Smrg  return lt__PROGRAM__LTX_preloaded_symbols;
66261b12faf6Smrg}
66271b12faf6Smrg#endif
66281b12faf6Smrg
66291b12faf6Smrg#ifdef __cplusplus
66301b12faf6Smrg}
66311b12faf6Smrg#endif
66321b12faf6Smrg_LT_EOF
66331b12faf6Smrg	  # Now try linking the two files.
66341b12faf6Smrg	  mv conftest.$ac_objext conftstm.$ac_objext
66351b12faf6Smrg	  lt_save_LIBS="$LIBS"
66361b12faf6Smrg	  lt_save_CFLAGS="$CFLAGS"
66371b12faf6Smrg	  LIBS="conftstm.$ac_objext"
66381b12faf6Smrg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
66391b12faf6Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
66401b12faf6Smrg  (eval $ac_link) 2>&5
66411b12faf6Smrg  ac_status=$?
66421b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66431b12faf6Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
66441b12faf6Smrg	    pipe_works=yes
66451b12faf6Smrg	  fi
66461b12faf6Smrg	  LIBS="$lt_save_LIBS"
66471b12faf6Smrg	  CFLAGS="$lt_save_CFLAGS"
66481b12faf6Smrg	else
66491b12faf6Smrg	  echo "cannot find nm_test_func in $nlist" >&5
66501b12faf6Smrg	fi
66511b12faf6Smrg      else
66521b12faf6Smrg	echo "cannot find nm_test_var in $nlist" >&5
66531b12faf6Smrg      fi
66541b12faf6Smrg    else
66551b12faf6Smrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
66561b12faf6Smrg    fi
66571b12faf6Smrg  else
66581b12faf6Smrg    echo "$progname: failed program was:" >&5
66591b12faf6Smrg    cat conftest.$ac_ext >&5
666032b578d3Smrg  fi
66611b12faf6Smrg  rm -rf conftest* conftst*
666232b578d3Smrg
66631b12faf6Smrg  # Do not use the global_symbol_pipe unless it works.
66641b12faf6Smrg  if test "$pipe_works" = yes; then
66651b12faf6Smrg    break
66661b12faf6Smrg  else
66671b12faf6Smrg    lt_cv_sys_global_symbol_pipe=
66681b12faf6Smrg  fi
66691b12faf6Smrgdone
667032b578d3Smrg
66711b12faf6Smrgfi
667232b578d3Smrg
66731b12faf6Smrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
66741b12faf6Smrg  lt_cv_sys_global_symbol_to_cdecl=
66751b12faf6Smrgfi
66761b12faf6Smrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
66771b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
66781b12faf6Smrg$as_echo "failed" >&6; }
667932b578d3Smrgelse
66801b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
66811b12faf6Smrg$as_echo "ok" >&6; }
668232b578d3Smrgfi
668332b578d3Smrg
668432b578d3Smrg
668532b578d3Smrg
668632b578d3Smrg
668732b578d3Smrg
668832b578d3Smrg
668932b578d3Smrg
669032b578d3Smrg
669132b578d3Smrg
669232b578d3Smrg
669332b578d3Smrg
669432b578d3Smrg
669532b578d3Smrg
669632b578d3Smrg
669732b578d3Smrg
669832b578d3Smrg
669932b578d3Smrg
670032b578d3Smrg
670132b578d3Smrg
670232b578d3Smrg
670332b578d3Smrg
670432b578d3Smrg
67051b12faf6Smrg# Check whether --enable-libtool-lock was given.
67061b12faf6Smrgif test "${enable_libtool_lock+set}" = set; then :
67071b12faf6Smrg  enableval=$enable_libtool_lock;
67081b12faf6Smrgfi
670932b578d3Smrg
67101b12faf6Smrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
671132b578d3Smrg
67121b12faf6Smrg# Some flags need to be propagated to the compiler or linker for good
67131b12faf6Smrg# libtool support.
67141b12faf6Smrgcase $host in
67151b12faf6Smrgia64-*-hpux*)
67161b12faf6Smrg  # Find out which ABI we are using.
67171b12faf6Smrg  echo 'int i;' > conftest.$ac_ext
67181b12faf6Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
67191b12faf6Smrg  (eval $ac_compile) 2>&5
67201b12faf6Smrg  ac_status=$?
67211b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67221b12faf6Smrg  test $ac_status = 0; }; then
67231b12faf6Smrg    case `/usr/bin/file conftest.$ac_objext` in
67241b12faf6Smrg      *ELF-32*)
67251b12faf6Smrg	HPUX_IA64_MODE="32"
672632b578d3Smrg	;;
67271b12faf6Smrg      *ELF-64*)
67281b12faf6Smrg	HPUX_IA64_MODE="64"
672932b578d3Smrg	;;
673032b578d3Smrg    esac
67311b12faf6Smrg  fi
67321b12faf6Smrg  rm -rf conftest*
67331b12faf6Smrg  ;;
67341b12faf6Smrg*-*-irix6*)
67351b12faf6Smrg  # Find out which ABI we are using.
67361b12faf6Smrg  echo '#line 6736 "configure"' > conftest.$ac_ext
67371b12faf6Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
67381b12faf6Smrg  (eval $ac_compile) 2>&5
67391b12faf6Smrg  ac_status=$?
67401b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67411b12faf6Smrg  test $ac_status = 0; }; then
67421b12faf6Smrg    if test "$lt_cv_prog_gnu_ld" = yes; then
67431b12faf6Smrg      case `/usr/bin/file conftest.$ac_objext` in
67441b12faf6Smrg	*32-bit*)
67451b12faf6Smrg	  LD="${LD-ld} -melf32bsmip"
67461b12faf6Smrg	  ;;
67471b12faf6Smrg	*N32*)
67481b12faf6Smrg	  LD="${LD-ld} -melf32bmipn32"
67491b12faf6Smrg	  ;;
67501b12faf6Smrg	*64-bit*)
67511b12faf6Smrg	  LD="${LD-ld} -melf64bmip"
67521b12faf6Smrg	;;
67531b12faf6Smrg      esac
67541b12faf6Smrg    else
67551b12faf6Smrg      case `/usr/bin/file conftest.$ac_objext` in
67561b12faf6Smrg	*32-bit*)
67571b12faf6Smrg	  LD="${LD-ld} -32"
67581b12faf6Smrg	  ;;
67591b12faf6Smrg	*N32*)
67601b12faf6Smrg	  LD="${LD-ld} -n32"
67611b12faf6Smrg	  ;;
67621b12faf6Smrg	*64-bit*)
67631b12faf6Smrg	  LD="${LD-ld} -64"
67641b12faf6Smrg	  ;;
67651b12faf6Smrg      esac
676632b578d3Smrg    fi
67671b12faf6Smrg  fi
67681b12faf6Smrg  rm -rf conftest*
67691b12faf6Smrg  ;;
677032b578d3Smrg
67711b12faf6Smrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
67721b12faf6Smrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
67731b12faf6Smrg  # Find out which ABI we are using.
67741b12faf6Smrg  echo 'int i;' > conftest.$ac_ext
67751b12faf6Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
67761b12faf6Smrg  (eval $ac_compile) 2>&5
67771b12faf6Smrg  ac_status=$?
67781b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67791b12faf6Smrg  test $ac_status = 0; }; then
67801b12faf6Smrg    case `/usr/bin/file conftest.o` in
67811b12faf6Smrg      *32-bit*)
67821b12faf6Smrg	case $host in
67831b12faf6Smrg	  x86_64-*kfreebsd*-gnu)
67841b12faf6Smrg	    LD="${LD-ld} -m elf_i386_fbsd"
67851b12faf6Smrg	    ;;
67861b12faf6Smrg	  x86_64-*linux*)
67871b12faf6Smrg	    LD="${LD-ld} -m elf_i386"
67881b12faf6Smrg	    ;;
67891b12faf6Smrg	  ppc64-*linux*|powerpc64-*linux*)
67901b12faf6Smrg	    LD="${LD-ld} -m elf32ppclinux"
67911b12faf6Smrg	    ;;
67921b12faf6Smrg	  s390x-*linux*)
67931b12faf6Smrg	    LD="${LD-ld} -m elf_s390"
67941b12faf6Smrg	    ;;
67951b12faf6Smrg	  sparc64-*linux*)
67961b12faf6Smrg	    LD="${LD-ld} -m elf32_sparc"
67971b12faf6Smrg	    ;;
679832b578d3Smrg	esac
67991b12faf6Smrg	;;
68001b12faf6Smrg      *64-bit*)
68011b12faf6Smrg	case $host in
68021b12faf6Smrg	  x86_64-*kfreebsd*-gnu)
68031b12faf6Smrg	    LD="${LD-ld} -m elf_x86_64_fbsd"
68041b12faf6Smrg	    ;;
68051b12faf6Smrg	  x86_64-*linux*)
68061b12faf6Smrg	    LD="${LD-ld} -m elf_x86_64"
68071b12faf6Smrg	    ;;
68081b12faf6Smrg	  ppc*-*linux*|powerpc*-*linux*)
68091b12faf6Smrg	    LD="${LD-ld} -m elf64ppc"
68101b12faf6Smrg	    ;;
68111b12faf6Smrg	  s390*-*linux*|s390*-*tpf*)
68121b12faf6Smrg	    LD="${LD-ld} -m elf64_s390"
68131b12faf6Smrg	    ;;
68141b12faf6Smrg	  sparc*-*linux*)
68151b12faf6Smrg	    LD="${LD-ld} -m elf64_sparc"
68161b12faf6Smrg	    ;;
681732b578d3Smrg	esac
68181b12faf6Smrg	;;
68191b12faf6Smrg    esac
68201b12faf6Smrg  fi
68211b12faf6Smrg  rm -rf conftest*
68221b12faf6Smrg  ;;
682332b578d3Smrg
68241b12faf6Smrg*-*-sco3.2v5*)
68251b12faf6Smrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
68261b12faf6Smrg  SAVE_CFLAGS="$CFLAGS"
68271b12faf6Smrg  CFLAGS="$CFLAGS -belf"
68281b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
68291b12faf6Smrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
68301b12faf6Smrgif test "${lt_cv_cc_needs_belf+set}" = set; then :
68311b12faf6Smrg  $as_echo_n "(cached) " >&6
68321b12faf6Smrgelse
68331b12faf6Smrg  ac_ext=c
68341b12faf6Smrgac_cpp='$CPP $CPPFLAGS'
68351b12faf6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
68361b12faf6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
68371b12faf6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
68381b12faf6Smrg
68391b12faf6Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
684032b578d3Smrg/* end confdefs.h.  */
684132b578d3Smrg
684232b578d3Smrgint
684332b578d3Smrgmain ()
684432b578d3Smrg{
684532b578d3Smrg
684632b578d3Smrg  ;
684732b578d3Smrg  return 0;
684832b578d3Smrg}
684932b578d3Smrg_ACEOF
68501b12faf6Smrgif ac_fn_c_try_link "$LINENO"; then :
68511b12faf6Smrg  lt_cv_cc_needs_belf=yes
685232b578d3Smrgelse
68531b12faf6Smrg  lt_cv_cc_needs_belf=no
685432b578d3Smrgfi
68551b12faf6Smrgrm -f core conftest.err conftest.$ac_objext \
68561b12faf6Smrg    conftest$ac_exeext conftest.$ac_ext
68571b12faf6Smrg     ac_ext=c
68581b12faf6Smrgac_cpp='$CPP $CPPFLAGS'
68591b12faf6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
68601b12faf6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
68611b12faf6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
686232b578d3Smrg
68631b12faf6Smrgfi
68641b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
68651b12faf6Smrg$as_echo "$lt_cv_cc_needs_belf" >&6; }
68661b12faf6Smrg  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
68671b12faf6Smrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
68681b12faf6Smrg    CFLAGS="$SAVE_CFLAGS"
68691b12faf6Smrg  fi
68701b12faf6Smrg  ;;
68711b12faf6Smrgsparc*-*solaris*)
68721b12faf6Smrg  # Find out which ABI we are using.
68731b12faf6Smrg  echo 'int i;' > conftest.$ac_ext
68741b12faf6Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
68751b12faf6Smrg  (eval $ac_compile) 2>&5
68761b12faf6Smrg  ac_status=$?
68771b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68781b12faf6Smrg  test $ac_status = 0; }; then
68791b12faf6Smrg    case `/usr/bin/file conftest.o` in
68801b12faf6Smrg    *64-bit*)
68811b12faf6Smrg      case $lt_cv_prog_gnu_ld in
68821b12faf6Smrg      yes*) LD="${LD-ld} -m elf64_sparc" ;;
68831b12faf6Smrg      *)
68841b12faf6Smrg	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
68851b12faf6Smrg	  LD="${LD-ld} -64"
68861b12faf6Smrg	fi
68871b12faf6Smrg	;;
68881b12faf6Smrg      esac
68891b12faf6Smrg      ;;
68901b12faf6Smrg    esac
68911b12faf6Smrg  fi
68921b12faf6Smrg  rm -rf conftest*
68931b12faf6Smrg  ;;
68941b12faf6Smrgesac
689532b578d3Smrg
68961b12faf6Smrgneed_locks="$enable_libtool_lock"
689732b578d3Smrg
689832b578d3Smrg
68991b12faf6Smrg  case $host_os in
69001b12faf6Smrg    rhapsody* | darwin*)
69011b12faf6Smrg    if test -n "$ac_tool_prefix"; then
69021b12faf6Smrg  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
69031b12faf6Smrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
69041b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
69051b12faf6Smrg$as_echo_n "checking for $ac_word... " >&6; }
69061b12faf6Smrgif test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
69071b12faf6Smrg  $as_echo_n "(cached) " >&6
69081b12faf6Smrgelse
69091b12faf6Smrg  if test -n "$DSYMUTIL"; then
69101b12faf6Smrg  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
69111b12faf6Smrgelse
69121b12faf6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69131b12faf6Smrgfor as_dir in $PATH
69141b12faf6Smrgdo
69151b12faf6Smrg  IFS=$as_save_IFS
69161b12faf6Smrg  test -z "$as_dir" && as_dir=.
69171b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
69181b12faf6Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
69191b12faf6Smrg    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
69201b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69211b12faf6Smrg    break 2
69221b12faf6Smrg  fi
69231b12faf6Smrgdone
69241b12faf6Smrg  done
69251b12faf6SmrgIFS=$as_save_IFS
692632b578d3Smrg
69272a51b5beSmrgfi
69281b12faf6Smrgfi
69291b12faf6SmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL
69301b12faf6Smrgif test -n "$DSYMUTIL"; then
69311b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
69321b12faf6Smrg$as_echo "$DSYMUTIL" >&6; }
693332b578d3Smrgelse
69341b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69351b12faf6Smrg$as_echo "no" >&6; }
69361b12faf6Smrgfi
693732b578d3Smrg
693832b578d3Smrg
693932b578d3Smrgfi
69401b12faf6Smrgif test -z "$ac_cv_prog_DSYMUTIL"; then
69411b12faf6Smrg  ac_ct_DSYMUTIL=$DSYMUTIL
69421b12faf6Smrg  # Extract the first word of "dsymutil", so it can be a program name with args.
69431b12faf6Smrgset dummy dsymutil; ac_word=$2
69441b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
69451b12faf6Smrg$as_echo_n "checking for $ac_word... " >&6; }
69461b12faf6Smrgif test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
69471b12faf6Smrg  $as_echo_n "(cached) " >&6
69481b12faf6Smrgelse
69491b12faf6Smrg  if test -n "$ac_ct_DSYMUTIL"; then
69501b12faf6Smrg  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
69511b12faf6Smrgelse
69521b12faf6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69531b12faf6Smrgfor as_dir in $PATH
69541b12faf6Smrgdo
69551b12faf6Smrg  IFS=$as_save_IFS
69561b12faf6Smrg  test -z "$as_dir" && as_dir=.
69571b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
69581b12faf6Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
69591b12faf6Smrg    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
69601b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69611b12faf6Smrg    break 2
69621b12faf6Smrg  fi
69631b12faf6Smrgdone
69641b12faf6Smrg  done
69651b12faf6SmrgIFS=$as_save_IFS
696632b578d3Smrg
69671b12faf6Smrgfi
69681b12faf6Smrgfi
69691b12faf6Smrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
69701b12faf6Smrgif test -n "$ac_ct_DSYMUTIL"; then
69711b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
69721b12faf6Smrg$as_echo "$ac_ct_DSYMUTIL" >&6; }
69731b12faf6Smrgelse
69741b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69751b12faf6Smrg$as_echo "no" >&6; }
69761b12faf6Smrgfi
697732b578d3Smrg
69781b12faf6Smrg  if test "x$ac_ct_DSYMUTIL" = x; then
69791b12faf6Smrg    DSYMUTIL=":"
69801b12faf6Smrg  else
69811b12faf6Smrg    case $cross_compiling:$ac_tool_warned in
69821b12faf6Smrgyes:)
69831b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
69841b12faf6Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
69851b12faf6Smrgac_tool_warned=yes ;;
69861b12faf6Smrgesac
69871b12faf6Smrg    DSYMUTIL=$ac_ct_DSYMUTIL
69881b12faf6Smrg  fi
69891b12faf6Smrgelse
69901b12faf6Smrg  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
69911b12faf6Smrgfi
699232b578d3Smrg
69931b12faf6Smrg    if test -n "$ac_tool_prefix"; then
69941b12faf6Smrg  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
69951b12faf6Smrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2
69961b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
69971b12faf6Smrg$as_echo_n "checking for $ac_word... " >&6; }
69981b12faf6Smrgif test "${ac_cv_prog_NMEDIT+set}" = set; then :
69991b12faf6Smrg  $as_echo_n "(cached) " >&6
70001b12faf6Smrgelse
70011b12faf6Smrg  if test -n "$NMEDIT"; then
70021b12faf6Smrg  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
70031b12faf6Smrgelse
70041b12faf6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70051b12faf6Smrgfor as_dir in $PATH
70061b12faf6Smrgdo
70071b12faf6Smrg  IFS=$as_save_IFS
70081b12faf6Smrg  test -z "$as_dir" && as_dir=.
70091b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
70101b12faf6Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
70111b12faf6Smrg    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
70121b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70131b12faf6Smrg    break 2
70141b12faf6Smrg  fi
70151b12faf6Smrgdone
70161b12faf6Smrg  done
70171b12faf6SmrgIFS=$as_save_IFS
701832b578d3Smrg
70191b12faf6Smrgfi
70201b12faf6Smrgfi
70211b12faf6SmrgNMEDIT=$ac_cv_prog_NMEDIT
70221b12faf6Smrgif test -n "$NMEDIT"; then
70231b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
70241b12faf6Smrg$as_echo "$NMEDIT" >&6; }
70251b12faf6Smrgelse
70261b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70271b12faf6Smrg$as_echo "no" >&6; }
70281b12faf6Smrgfi
702932b578d3Smrg
703032b578d3Smrg
70311b12faf6Smrgfi
70321b12faf6Smrgif test -z "$ac_cv_prog_NMEDIT"; then
70331b12faf6Smrg  ac_ct_NMEDIT=$NMEDIT
70341b12faf6Smrg  # Extract the first word of "nmedit", so it can be a program name with args.
70351b12faf6Smrgset dummy nmedit; ac_word=$2
70361b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
70371b12faf6Smrg$as_echo_n "checking for $ac_word... " >&6; }
70381b12faf6Smrgif test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
70391b12faf6Smrg  $as_echo_n "(cached) " >&6
70401b12faf6Smrgelse
70411b12faf6Smrg  if test -n "$ac_ct_NMEDIT"; then
70421b12faf6Smrg  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
70431b12faf6Smrgelse
70441b12faf6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70451b12faf6Smrgfor as_dir in $PATH
70461b12faf6Smrgdo
70471b12faf6Smrg  IFS=$as_save_IFS
70481b12faf6Smrg  test -z "$as_dir" && as_dir=.
70491b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
70501b12faf6Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
70511b12faf6Smrg    ac_cv_prog_ac_ct_NMEDIT="nmedit"
70521b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70531b12faf6Smrg    break 2
70541b12faf6Smrg  fi
70551b12faf6Smrgdone
70561b12faf6Smrg  done
70571b12faf6SmrgIFS=$as_save_IFS
705832b578d3Smrg
70591b12faf6Smrgfi
70601b12faf6Smrgfi
70611b12faf6Smrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
70621b12faf6Smrgif test -n "$ac_ct_NMEDIT"; then
70631b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
70641b12faf6Smrg$as_echo "$ac_ct_NMEDIT" >&6; }
70651b12faf6Smrgelse
70661b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70671b12faf6Smrg$as_echo "no" >&6; }
70681b12faf6Smrgfi
706932b578d3Smrg
70701b12faf6Smrg  if test "x$ac_ct_NMEDIT" = x; then
70711b12faf6Smrg    NMEDIT=":"
70721b12faf6Smrg  else
70731b12faf6Smrg    case $cross_compiling:$ac_tool_warned in
70741b12faf6Smrgyes:)
70751b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
70761b12faf6Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
70771b12faf6Smrgac_tool_warned=yes ;;
70781b12faf6Smrgesac
70791b12faf6Smrg    NMEDIT=$ac_ct_NMEDIT
70801b12faf6Smrg  fi
70811b12faf6Smrgelse
70821b12faf6Smrg  NMEDIT="$ac_cv_prog_NMEDIT"
70831b12faf6Smrgfi
708432b578d3Smrg
70851b12faf6Smrg    if test -n "$ac_tool_prefix"; then
70861b12faf6Smrg  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
70871b12faf6Smrgset dummy ${ac_tool_prefix}lipo; ac_word=$2
70881b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
70891b12faf6Smrg$as_echo_n "checking for $ac_word... " >&6; }
70901b12faf6Smrgif test "${ac_cv_prog_LIPO+set}" = set; then :
70911b12faf6Smrg  $as_echo_n "(cached) " >&6
70921b12faf6Smrgelse
70931b12faf6Smrg  if test -n "$LIPO"; then
70941b12faf6Smrg  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
70951b12faf6Smrgelse
70961b12faf6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70971b12faf6Smrgfor as_dir in $PATH
70981b12faf6Smrgdo
70991b12faf6Smrg  IFS=$as_save_IFS
71001b12faf6Smrg  test -z "$as_dir" && as_dir=.
71011b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
71021b12faf6Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
71031b12faf6Smrg    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
71041b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
71051b12faf6Smrg    break 2
71061b12faf6Smrg  fi
71071b12faf6Smrgdone
71081b12faf6Smrg  done
71091b12faf6SmrgIFS=$as_save_IFS
711032b578d3Smrg
71111b12faf6Smrgfi
71121b12faf6Smrgfi
71131b12faf6SmrgLIPO=$ac_cv_prog_LIPO
71141b12faf6Smrgif test -n "$LIPO"; then
71151b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
71161b12faf6Smrg$as_echo "$LIPO" >&6; }
71171b12faf6Smrgelse
71181b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71191b12faf6Smrg$as_echo "no" >&6; }
71201b12faf6Smrgfi
712132b578d3Smrg
712232b578d3Smrg
71231b12faf6Smrgfi
71241b12faf6Smrgif test -z "$ac_cv_prog_LIPO"; then
71251b12faf6Smrg  ac_ct_LIPO=$LIPO
71261b12faf6Smrg  # Extract the first word of "lipo", so it can be a program name with args.
71271b12faf6Smrgset dummy lipo; ac_word=$2
71281b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
71291b12faf6Smrg$as_echo_n "checking for $ac_word... " >&6; }
71301b12faf6Smrgif test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
71311b12faf6Smrg  $as_echo_n "(cached) " >&6
71321b12faf6Smrgelse
71331b12faf6Smrg  if test -n "$ac_ct_LIPO"; then
71341b12faf6Smrg  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
71351b12faf6Smrgelse
71361b12faf6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
71371b12faf6Smrgfor as_dir in $PATH
71381b12faf6Smrgdo
71391b12faf6Smrg  IFS=$as_save_IFS
71401b12faf6Smrg  test -z "$as_dir" && as_dir=.
71411b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
71421b12faf6Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
71431b12faf6Smrg    ac_cv_prog_ac_ct_LIPO="lipo"
71441b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
71451b12faf6Smrg    break 2
71461b12faf6Smrg  fi
71471b12faf6Smrgdone
71481b12faf6Smrg  done
71491b12faf6SmrgIFS=$as_save_IFS
715032b578d3Smrg
71511b12faf6Smrgfi
71521b12faf6Smrgfi
71531b12faf6Smrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
71541b12faf6Smrgif test -n "$ac_ct_LIPO"; then
71551b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
71561b12faf6Smrg$as_echo "$ac_ct_LIPO" >&6; }
71571b12faf6Smrgelse
71581b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71591b12faf6Smrg$as_echo "no" >&6; }
71601b12faf6Smrgfi
716132b578d3Smrg
71621b12faf6Smrg  if test "x$ac_ct_LIPO" = x; then
71631b12faf6Smrg    LIPO=":"
71641b12faf6Smrg  else
71651b12faf6Smrg    case $cross_compiling:$ac_tool_warned in
71661b12faf6Smrgyes:)
71671b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
71681b12faf6Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
71691b12faf6Smrgac_tool_warned=yes ;;
71701b12faf6Smrgesac
71711b12faf6Smrg    LIPO=$ac_ct_LIPO
71721b12faf6Smrg  fi
71731b12faf6Smrgelse
71741b12faf6Smrg  LIPO="$ac_cv_prog_LIPO"
71751b12faf6Smrgfi
717632b578d3Smrg
71771b12faf6Smrg    if test -n "$ac_tool_prefix"; then
71781b12faf6Smrg  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
71791b12faf6Smrgset dummy ${ac_tool_prefix}otool; ac_word=$2
71801b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
71811b12faf6Smrg$as_echo_n "checking for $ac_word... " >&6; }
71821b12faf6Smrgif test "${ac_cv_prog_OTOOL+set}" = set; then :
71831b12faf6Smrg  $as_echo_n "(cached) " >&6
71841b12faf6Smrgelse
71851b12faf6Smrg  if test -n "$OTOOL"; then
71861b12faf6Smrg  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
71871b12faf6Smrgelse
71881b12faf6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
71891b12faf6Smrgfor as_dir in $PATH
71901b12faf6Smrgdo
71911b12faf6Smrg  IFS=$as_save_IFS
71921b12faf6Smrg  test -z "$as_dir" && as_dir=.
71931b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
71941b12faf6Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
71951b12faf6Smrg    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
71961b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
71971b12faf6Smrg    break 2
71981b12faf6Smrg  fi
71991b12faf6Smrgdone
72001b12faf6Smrg  done
72011b12faf6SmrgIFS=$as_save_IFS
720232b578d3Smrg
72031b12faf6Smrgfi
72041b12faf6Smrgfi
72051b12faf6SmrgOTOOL=$ac_cv_prog_OTOOL
72061b12faf6Smrgif test -n "$OTOOL"; then
72071b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
72081b12faf6Smrg$as_echo "$OTOOL" >&6; }
72091b12faf6Smrgelse
72101b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72111b12faf6Smrg$as_echo "no" >&6; }
72121b12faf6Smrgfi
721332b578d3Smrg
721432b578d3Smrg
72151b12faf6Smrgfi
72161b12faf6Smrgif test -z "$ac_cv_prog_OTOOL"; then
72171b12faf6Smrg  ac_ct_OTOOL=$OTOOL
72181b12faf6Smrg  # Extract the first word of "otool", so it can be a program name with args.
72191b12faf6Smrgset dummy otool; ac_word=$2
72201b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72211b12faf6Smrg$as_echo_n "checking for $ac_word... " >&6; }
72221b12faf6Smrgif test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
72231b12faf6Smrg  $as_echo_n "(cached) " >&6
72241b12faf6Smrgelse
72251b12faf6Smrg  if test -n "$ac_ct_OTOOL"; then
72261b12faf6Smrg  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
72271b12faf6Smrgelse
72281b12faf6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72291b12faf6Smrgfor as_dir in $PATH
72301b12faf6Smrgdo
72311b12faf6Smrg  IFS=$as_save_IFS
72321b12faf6Smrg  test -z "$as_dir" && as_dir=.
72331b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
72341b12faf6Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72351b12faf6Smrg    ac_cv_prog_ac_ct_OTOOL="otool"
72361b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72371b12faf6Smrg    break 2
72381b12faf6Smrg  fi
72391b12faf6Smrgdone
72401b12faf6Smrg  done
72411b12faf6SmrgIFS=$as_save_IFS
724232b578d3Smrg
72431b12faf6Smrgfi
72441b12faf6Smrgfi
72451b12faf6Smrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
72461b12faf6Smrgif test -n "$ac_ct_OTOOL"; then
72471b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
72481b12faf6Smrg$as_echo "$ac_ct_OTOOL" >&6; }
72491b12faf6Smrgelse
72501b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72511b12faf6Smrg$as_echo "no" >&6; }
72521b12faf6Smrgfi
725332b578d3Smrg
72541b12faf6Smrg  if test "x$ac_ct_OTOOL" = x; then
72551b12faf6Smrg    OTOOL=":"
72561b12faf6Smrg  else
72571b12faf6Smrg    case $cross_compiling:$ac_tool_warned in
72581b12faf6Smrgyes:)
72591b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
72601b12faf6Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
72611b12faf6Smrgac_tool_warned=yes ;;
72621b12faf6Smrgesac
72631b12faf6Smrg    OTOOL=$ac_ct_OTOOL
72641b12faf6Smrg  fi
72651b12faf6Smrgelse
72661b12faf6Smrg  OTOOL="$ac_cv_prog_OTOOL"
72671b12faf6Smrgfi
726832b578d3Smrg
72691b12faf6Smrg    if test -n "$ac_tool_prefix"; then
72701b12faf6Smrg  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
72711b12faf6Smrgset dummy ${ac_tool_prefix}otool64; ac_word=$2
72721b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72731b12faf6Smrg$as_echo_n "checking for $ac_word... " >&6; }
72741b12faf6Smrgif test "${ac_cv_prog_OTOOL64+set}" = set; then :
72751b12faf6Smrg  $as_echo_n "(cached) " >&6
72761b12faf6Smrgelse
72771b12faf6Smrg  if test -n "$OTOOL64"; then
72781b12faf6Smrg  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
72791b12faf6Smrgelse
72801b12faf6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72811b12faf6Smrgfor as_dir in $PATH
72821b12faf6Smrgdo
72831b12faf6Smrg  IFS=$as_save_IFS
72841b12faf6Smrg  test -z "$as_dir" && as_dir=.
72851b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
72861b12faf6Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72871b12faf6Smrg    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
72881b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72891b12faf6Smrg    break 2
72901b12faf6Smrg  fi
72911b12faf6Smrgdone
72921b12faf6Smrg  done
72931b12faf6SmrgIFS=$as_save_IFS
729432b578d3Smrg
72951b12faf6Smrgfi
72961b12faf6Smrgfi
72971b12faf6SmrgOTOOL64=$ac_cv_prog_OTOOL64
72981b12faf6Smrgif test -n "$OTOOL64"; then
72991b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
73001b12faf6Smrg$as_echo "$OTOOL64" >&6; }
73011b12faf6Smrgelse
73021b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73031b12faf6Smrg$as_echo "no" >&6; }
73041b12faf6Smrgfi
730532b578d3Smrg
730632b578d3Smrg
73071b12faf6Smrgfi
73081b12faf6Smrgif test -z "$ac_cv_prog_OTOOL64"; then
73091b12faf6Smrg  ac_ct_OTOOL64=$OTOOL64
73101b12faf6Smrg  # Extract the first word of "otool64", so it can be a program name with args.
73111b12faf6Smrgset dummy otool64; ac_word=$2
73121b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73131b12faf6Smrg$as_echo_n "checking for $ac_word... " >&6; }
73141b12faf6Smrgif test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
73151b12faf6Smrg  $as_echo_n "(cached) " >&6
73161b12faf6Smrgelse
73171b12faf6Smrg  if test -n "$ac_ct_OTOOL64"; then
73181b12faf6Smrg  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
73191b12faf6Smrgelse
73201b12faf6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73211b12faf6Smrgfor as_dir in $PATH
73221b12faf6Smrgdo
73231b12faf6Smrg  IFS=$as_save_IFS
73241b12faf6Smrg  test -z "$as_dir" && as_dir=.
73251b12faf6Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
73261b12faf6Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
73271b12faf6Smrg    ac_cv_prog_ac_ct_OTOOL64="otool64"
73281b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73291b12faf6Smrg    break 2
73301b12faf6Smrg  fi
73311b12faf6Smrgdone
73321b12faf6Smrg  done
73331b12faf6SmrgIFS=$as_save_IFS
733432b578d3Smrg
73351b12faf6Smrgfi
73361b12faf6Smrgfi
73371b12faf6Smrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
73381b12faf6Smrgif test -n "$ac_ct_OTOOL64"; then
73391b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
73401b12faf6Smrg$as_echo "$ac_ct_OTOOL64" >&6; }
73411b12faf6Smrgelse
73421b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73431b12faf6Smrg$as_echo "no" >&6; }
73441b12faf6Smrgfi
734532b578d3Smrg
73461b12faf6Smrg  if test "x$ac_ct_OTOOL64" = x; then
73471b12faf6Smrg    OTOOL64=":"
73481b12faf6Smrg  else
73491b12faf6Smrg    case $cross_compiling:$ac_tool_warned in
73501b12faf6Smrgyes:)
73511b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
73521b12faf6Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
73531b12faf6Smrgac_tool_warned=yes ;;
73541b12faf6Smrgesac
73551b12faf6Smrg    OTOOL64=$ac_ct_OTOOL64
73561b12faf6Smrg  fi
73571b12faf6Smrgelse
73581b12faf6Smrg  OTOOL64="$ac_cv_prog_OTOOL64"
73591b12faf6Smrgfi
736032b578d3Smrg
736132b578d3Smrg
736232b578d3Smrg
736332b578d3Smrg
736432b578d3Smrg
736532b578d3Smrg
736632b578d3Smrg
736732b578d3Smrg
736832b578d3Smrg
736932b578d3Smrg
737032b578d3Smrg
737132b578d3Smrg
737232b578d3Smrg
737332b578d3Smrg
737432b578d3Smrg
73751b12faf6Smrg
73761b12faf6Smrg
73771b12faf6Smrg
73781b12faf6Smrg
73791b12faf6Smrg
73801b12faf6Smrg
73811b12faf6Smrg
73821b12faf6Smrg
73831b12faf6Smrg
73841b12faf6Smrg
73851b12faf6Smrg
73861b12faf6Smrg
73871b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
73881b12faf6Smrg$as_echo_n "checking for -single_module linker flag... " >&6; }
73891b12faf6Smrgif test "${lt_cv_apple_cc_single_mod+set}" = set; then :
73901b12faf6Smrg  $as_echo_n "(cached) " >&6
73911b12faf6Smrgelse
73921b12faf6Smrg  lt_cv_apple_cc_single_mod=no
73931b12faf6Smrg      if test -z "${LT_MULTI_MODULE}"; then
73941b12faf6Smrg	# By default we will add the -single_module flag. You can override
73951b12faf6Smrg	# by either setting the environment variable LT_MULTI_MODULE
73961b12faf6Smrg	# non-empty at configure time, or by adding -multi_module to the
73971b12faf6Smrg	# link flags.
73981b12faf6Smrg	rm -rf libconftest.dylib*
73991b12faf6Smrg	echo "int foo(void){return 1;}" > conftest.c
74001b12faf6Smrg	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
74011b12faf6Smrg-dynamiclib -Wl,-single_module conftest.c" >&5
74021b12faf6Smrg	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
74031b12faf6Smrg	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
74041b12faf6Smrg        _lt_result=$?
74051b12faf6Smrg	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
74061b12faf6Smrg	  lt_cv_apple_cc_single_mod=yes
74071b12faf6Smrg	else
74081b12faf6Smrg	  cat conftest.err >&5
74091b12faf6Smrg	fi
74101b12faf6Smrg	rm -rf libconftest.dylib*
74111b12faf6Smrg	rm -f conftest.*
741232b578d3Smrg      fi
74131b12faf6Smrgfi
74141b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
74151b12faf6Smrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
74161b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
74171b12faf6Smrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
74181b12faf6Smrgif test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
74191b12faf6Smrg  $as_echo_n "(cached) " >&6
74201b12faf6Smrgelse
74211b12faf6Smrg  lt_cv_ld_exported_symbols_list=no
74221b12faf6Smrg      save_LDFLAGS=$LDFLAGS
74231b12faf6Smrg      echo "_main" > conftest.sym
74241b12faf6Smrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
74251b12faf6Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74261b12faf6Smrg/* end confdefs.h.  */
742732b578d3Smrg
74281b12faf6Smrgint
74291b12faf6Smrgmain ()
74301b12faf6Smrg{
74312a51b5beSmrg
74321b12faf6Smrg  ;
74331b12faf6Smrg  return 0;
74341b12faf6Smrg}
74351b12faf6Smrg_ACEOF
74361b12faf6Smrgif ac_fn_c_try_link "$LINENO"; then :
74371b12faf6Smrg  lt_cv_ld_exported_symbols_list=yes
74381b12faf6Smrgelse
74391b12faf6Smrg  lt_cv_ld_exported_symbols_list=no
74401b12faf6Smrgfi
74411b12faf6Smrgrm -f core conftest.err conftest.$ac_objext \
74421b12faf6Smrg    conftest$ac_exeext conftest.$ac_ext
74431b12faf6Smrg	LDFLAGS="$save_LDFLAGS"
74441b12faf6Smrg
74451b12faf6Smrgfi
74461b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
74471b12faf6Smrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
74481b12faf6Smrg    case $host_os in
74491b12faf6Smrg    rhapsody* | darwin1.[012])
74501b12faf6Smrg      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
74511b12faf6Smrg    darwin1.*)
74521b12faf6Smrg      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
74531b12faf6Smrg    darwin*) # darwin 5.x on
74541b12faf6Smrg      # if running on 10.5 or later, the deployment target defaults
74551b12faf6Smrg      # to the OS version, if on x86, and 10.4, the deployment
74561b12faf6Smrg      # target defaults to 10.4. Don't you love it?
74571b12faf6Smrg      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
74581b12faf6Smrg	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
74591b12faf6Smrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
74601b12faf6Smrg	10.[012]*)
74611b12faf6Smrg	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
74621b12faf6Smrg	10.*)
74631b12faf6Smrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
74641b12faf6Smrg      esac
74651b12faf6Smrg    ;;
74662a51b5beSmrg  esac
74671b12faf6Smrg    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
74681b12faf6Smrg      _lt_dar_single_mod='$single_module'
74691b12faf6Smrg    fi
74701b12faf6Smrg    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
74711b12faf6Smrg      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
74722a51b5beSmrg    else
74731b12faf6Smrg      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
74742a51b5beSmrg    fi
74751b12faf6Smrg    if test "$DSYMUTIL" != ":"; then
74761b12faf6Smrg      _lt_dsymutil='~$DSYMUTIL $lib || :'
74771b12faf6Smrg    else
74781b12faf6Smrg      _lt_dsymutil=
74791b12faf6Smrg    fi
74801b12faf6Smrg    ;;
74811b12faf6Smrg  esac
74821b12faf6Smrg
74831b12faf6Smrgfor ac_header in dlfcn.h
74841b12faf6Smrgdo :
74851b12faf6Smrg  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
74861b12faf6Smrg"
74871b12faf6Smrgif test "x$ac_cv_header_dlfcn_h" = x""yes; then :
74881b12faf6Smrg  cat >>confdefs.h <<_ACEOF
74891b12faf6Smrg#define HAVE_DLFCN_H 1
74901b12faf6Smrg_ACEOF
74911b12faf6Smrg
749232b578d3Smrgfi
749332b578d3Smrg
74941b12faf6Smrgdone
749532b578d3Smrg
749632b578d3Smrg
749732b578d3Smrg
74981b12faf6Smrg# Set options
74991b12faf6Smrg
75001b12faf6Smrg
75011b12faf6Smrg
75021b12faf6Smrg        enable_dlopen=no
75031b12faf6Smrg
75041b12faf6Smrg
75051b12faf6Smrg  enable_win32_dll=no
75061b12faf6Smrg
75071b12faf6Smrg
75081b12faf6Smrg            # Check whether --enable-shared was given.
75091b12faf6Smrgif test "${enable_shared+set}" = set; then :
75101b12faf6Smrg  enableval=$enable_shared; p=${PACKAGE-default}
75111b12faf6Smrg    case $enableval in
75121b12faf6Smrg    yes) enable_shared=yes ;;
75131b12faf6Smrg    no) enable_shared=no ;;
75141b12faf6Smrg    *)
75151b12faf6Smrg      enable_shared=no
75161b12faf6Smrg      # Look at the argument we got.  We use all the common list separators.
75171b12faf6Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
75181b12faf6Smrg      for pkg in $enableval; do
75191b12faf6Smrg	IFS="$lt_save_ifs"
75201b12faf6Smrg	if test "X$pkg" = "X$p"; then
75211b12faf6Smrg	  enable_shared=yes
75221b12faf6Smrg	fi
75231b12faf6Smrg      done
75241b12faf6Smrg      IFS="$lt_save_ifs"
752532b578d3Smrg      ;;
752632b578d3Smrg    esac
75271b12faf6Smrgelse
75281b12faf6Smrg  enable_shared=yes
75291b12faf6Smrgfi
753032b578d3Smrg
753132b578d3Smrg
753232b578d3Smrg
753332b578d3Smrg
753432b578d3Smrg
753532b578d3Smrg
753632b578d3Smrg
753732b578d3Smrg
75382a51b5beSmrg
753932b578d3Smrg
754032b578d3Smrg
75411b12faf6Smrg# Check whether --with-pic was given.
75421b12faf6Smrgif test "${with_pic+set}" = set; then :
75431b12faf6Smrg  withval=$with_pic; pic_mode="$withval"
75441b12faf6Smrgelse
75451b12faf6Smrg  pic_mode=default
75461b12faf6Smrgfi
754732b578d3Smrg
754832b578d3Smrg
75491b12faf6Smrgtest -z "$pic_mode" && pic_mode=default
755032b578d3Smrg
755132b578d3Smrg
755232b578d3Smrg
75531b12faf6Smrg
75541b12faf6Smrg
75551b12faf6Smrg
75561b12faf6Smrg
75571b12faf6Smrg  # Check whether --enable-fast-install was given.
75581b12faf6Smrgif test "${enable_fast_install+set}" = set; then :
75591b12faf6Smrg  enableval=$enable_fast_install; p=${PACKAGE-default}
75601b12faf6Smrg    case $enableval in
75611b12faf6Smrg    yes) enable_fast_install=yes ;;
75621b12faf6Smrg    no) enable_fast_install=no ;;
756332b578d3Smrg    *)
75641b12faf6Smrg      enable_fast_install=no
75651b12faf6Smrg      # Look at the argument we got.  We use all the common list separators.
75661b12faf6Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
75671b12faf6Smrg      for pkg in $enableval; do
75681b12faf6Smrg	IFS="$lt_save_ifs"
75691b12faf6Smrg	if test "X$pkg" = "X$p"; then
75701b12faf6Smrg	  enable_fast_install=yes
75711b12faf6Smrg	fi
75721b12faf6Smrg      done
75731b12faf6Smrg      IFS="$lt_save_ifs"
75741b12faf6Smrg      ;;
757532b578d3Smrg    esac
75761b12faf6Smrgelse
75771b12faf6Smrg  enable_fast_install=yes
75781b12faf6Smrgfi
757932b578d3Smrg
758032b578d3Smrg
758132b578d3Smrg
758232b578d3Smrg
758332b578d3Smrg
758432b578d3Smrg
758532b578d3Smrg
758632b578d3Smrg
758732b578d3Smrg
758832b578d3Smrg
758932b578d3Smrg
75901b12faf6Smrg# This can be used to rebuild libtool when needed
75911b12faf6SmrgLIBTOOL_DEPS="$ltmain"
75922a51b5beSmrg
75931b12faf6Smrg# Always use our own libtool.
75941b12faf6SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
759532b578d3Smrg
759632b578d3Smrg
759732b578d3Smrg
759832b578d3Smrg
759932b578d3Smrg
760032b578d3Smrg
760132b578d3Smrg
76022a51b5beSmrg
76032a51b5beSmrg
76042a51b5beSmrg
760532b578d3Smrg
760632b578d3Smrg
760732b578d3Smrg
760832b578d3Smrg
760932b578d3Smrg
761032b578d3Smrg
761132b578d3Smrg
761232b578d3Smrg
761332b578d3Smrg
76141b12faf6Smrg
76151b12faf6Smrg
76161b12faf6Smrg
76171b12faf6Smrg
76181b12faf6Smrg
76191b12faf6Smrg
76201b12faf6Smrgtest -z "$LN_S" && LN_S="ln -s"
76211b12faf6Smrg
76221b12faf6Smrg
76231b12faf6Smrg
76241b12faf6Smrg
76251b12faf6Smrg
76261b12faf6Smrg
76271b12faf6Smrg
76281b12faf6Smrg
76291b12faf6Smrg
76301b12faf6Smrg
76311b12faf6Smrg
76321b12faf6Smrg
76331b12faf6Smrg
76341b12faf6Smrg
76351b12faf6Smrgif test -n "${ZSH_VERSION+set}" ; then
76361b12faf6Smrg   setopt NO_GLOB_SUBST
76371b12faf6Smrgfi
76381b12faf6Smrg
76391b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
76401b12faf6Smrg$as_echo_n "checking for objdir... " >&6; }
76411b12faf6Smrgif test "${lt_cv_objdir+set}" = set; then :
76422a51b5beSmrg  $as_echo_n "(cached) " >&6
764332b578d3Smrgelse
76441b12faf6Smrg  rm -f .libs 2>/dev/null
76451b12faf6Smrgmkdir .libs 2>/dev/null
76461b12faf6Smrgif test -d .libs; then
76471b12faf6Smrg  lt_cv_objdir=.libs
764832b578d3Smrgelse
76491b12faf6Smrg  # MS-DOS does not allow filenames that begin with a dot.
76501b12faf6Smrg  lt_cv_objdir=_libs
765132b578d3Smrgfi
76521b12faf6Smrgrmdir .libs 2>/dev/null
765332b578d3Smrgfi
76541b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
76551b12faf6Smrg$as_echo "$lt_cv_objdir" >&6; }
76561b12faf6Smrgobjdir=$lt_cv_objdir
765732b578d3Smrg
765832b578d3Smrg
765932b578d3Smrg
766032b578d3Smrg
76611b12faf6Smrg
76621b12faf6Smrgcat >>confdefs.h <<_ACEOF
76631b12faf6Smrg#define LT_OBJDIR "$lt_cv_objdir/"
766432b578d3Smrg_ACEOF
766532b578d3Smrg
766632b578d3Smrg
766732b578d3Smrg
766832b578d3Smrg
766932b578d3Smrg
767032b578d3Smrg
767132b578d3Smrg
767232b578d3Smrg
767332b578d3Smrg
767432b578d3Smrg
767532b578d3Smrg
767632b578d3Smrg
767732b578d3Smrg
767832b578d3Smrg
767932b578d3Smrg
76801b12faf6Smrg
76811b12faf6Smrg
76821b12faf6Smrgcase $host_os in
76831b12faf6Smrgaix3*)
76841b12faf6Smrg  # AIX sometimes has problems with the GCC collect2 program.  For some
76851b12faf6Smrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
76861b12faf6Smrg  # vanish in a puff of smoke.
76871b12faf6Smrg  if test "X${COLLECT_NAMES+set}" != Xset; then
76881b12faf6Smrg    COLLECT_NAMES=
76891b12faf6Smrg    export COLLECT_NAMES
76901b12faf6Smrg  fi
76911b12faf6Smrg  ;;
769232b578d3Smrgesac
769332b578d3Smrg
76941b12faf6Smrg# Sed substitution that helps us do robust quoting.  It backslashifies
76951b12faf6Smrg# metacharacters that are still active within double-quoted strings.
76961b12faf6Smrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
769732b578d3Smrg
76981b12faf6Smrg# Same as above, but do not quote variable references.
76991b12faf6Smrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
770032b578d3Smrg
77011b12faf6Smrg# Sed substitution to delay expansion of an escaped shell variable in a
77021b12faf6Smrg# double_quote_subst'ed string.
77031b12faf6Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
770432b578d3Smrg
77051b12faf6Smrg# Sed substitution to delay expansion of an escaped single quote.
77061b12faf6Smrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
770732b578d3Smrg
77081b12faf6Smrg# Sed substitution to avoid accidental globbing in evaled expressions
77091b12faf6Smrgno_glob_subst='s/\*/\\\*/g'
771032b578d3Smrg
77111b12faf6Smrg# Global variables:
77121b12faf6Smrgofile=libtool
77131b12faf6Smrgcan_build_shared=yes
771432b578d3Smrg
77151b12faf6Smrg# All known linkers require a `.a' archive for static linking (except MSVC,
77161b12faf6Smrg# which needs '.lib').
77171b12faf6Smrglibext=a
771832b578d3Smrg
77191b12faf6Smrgwith_gnu_ld="$lt_cv_prog_gnu_ld"
77201b12faf6Smrg
77211b12faf6Smrgold_CC="$CC"
77221b12faf6Smrgold_CFLAGS="$CFLAGS"
77231b12faf6Smrg
77241b12faf6Smrg# Set sane defaults for various variables
77251b12faf6Smrgtest -z "$CC" && CC=cc
77261b12faf6Smrgtest -z "$LTCC" && LTCC=$CC
77271b12faf6Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
77281b12faf6Smrgtest -z "$LD" && LD=ld
77291b12faf6Smrgtest -z "$ac_objext" && ac_objext=o
77301b12faf6Smrg
77311b12faf6Smrgfor cc_temp in $compiler""; do
77321b12faf6Smrg  case $cc_temp in
77331b12faf6Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
77341b12faf6Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
77351b12faf6Smrg    \-*) ;;
77361b12faf6Smrg    *) break;;
77371b12faf6Smrg  esac
77381b12faf6Smrgdone
77391b12faf6Smrgcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
77401b12faf6Smrg
77411b12faf6Smrg
77421b12faf6Smrg# Only perform the check for file, if the check method requires it
77431b12faf6Smrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
77441b12faf6Smrgcase $deplibs_check_method in
77451b12faf6Smrgfile_magic*)
77461b12faf6Smrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
77471b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
77481b12faf6Smrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
77491b12faf6Smrgif test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
77502a51b5beSmrg  $as_echo_n "(cached) " >&6
775132b578d3Smrgelse
77521b12faf6Smrg  case $MAGIC_CMD in
77531b12faf6Smrg[\\/*] |  ?:[\\/]*)
77541b12faf6Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
77551b12faf6Smrg  ;;
77561b12faf6Smrg*)
77571b12faf6Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
77581b12faf6Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
77591b12faf6Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
77601b12faf6Smrg  for ac_dir in $ac_dummy; do
77611b12faf6Smrg    IFS="$lt_save_ifs"
77621b12faf6Smrg    test -z "$ac_dir" && ac_dir=.
77631b12faf6Smrg    if test -f $ac_dir/${ac_tool_prefix}file; then
77641b12faf6Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
77651b12faf6Smrg      if test -n "$file_magic_test_file"; then
77661b12faf6Smrg	case $deplibs_check_method in
77671b12faf6Smrg	"file_magic "*)
77681b12faf6Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
77691b12faf6Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
77701b12faf6Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
77711b12faf6Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
77721b12faf6Smrg	    :
77731b12faf6Smrg	  else
77741b12faf6Smrg	    cat <<_LT_EOF 1>&2
777532b578d3Smrg
77761b12faf6Smrg*** Warning: the command libtool uses to detect shared libraries,
77771b12faf6Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
77781b12faf6Smrg*** The result is that libtool may fail to recognize shared libraries
77791b12faf6Smrg*** as such.  This will affect the creation of libtool libraries that
77801b12faf6Smrg*** depend on shared libraries, but programs linked with such libtool
77811b12faf6Smrg*** libraries will work regardless of this problem.  Nevertheless, you
77821b12faf6Smrg*** may want to report the problem to your system manager and/or to
77831b12faf6Smrg*** bug-libtool@gnu.org
778432b578d3Smrg
77851b12faf6Smrg_LT_EOF
77861b12faf6Smrg	  fi ;;
77871b12faf6Smrg	esac
77881b12faf6Smrg      fi
77891b12faf6Smrg      break
77901b12faf6Smrg    fi
77911b12faf6Smrg  done
77921b12faf6Smrg  IFS="$lt_save_ifs"
77931b12faf6Smrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
77941b12faf6Smrg  ;;
77951b12faf6Smrgesac
779632b578d3Smrgfi
779732b578d3Smrg
77981b12faf6SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
77991b12faf6Smrgif test -n "$MAGIC_CMD"; then
78001b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
78011b12faf6Smrg$as_echo "$MAGIC_CMD" >&6; }
78021b12faf6Smrgelse
78031b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78041b12faf6Smrg$as_echo "no" >&6; }
780532b578d3Smrgfi
780632b578d3Smrg
780732b578d3Smrg
780832b578d3Smrg
780932b578d3Smrg
781032b578d3Smrg
78111b12faf6Smrgif test -z "$lt_cv_path_MAGIC_CMD"; then
78121b12faf6Smrg  if test -n "$ac_tool_prefix"; then
78131b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
78141b12faf6Smrg$as_echo_n "checking for file... " >&6; }
78151b12faf6Smrgif test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
78161b12faf6Smrg  $as_echo_n "(cached) " >&6
78171b12faf6Smrgelse
78181b12faf6Smrg  case $MAGIC_CMD in
78191b12faf6Smrg[\\/*] |  ?:[\\/]*)
78201b12faf6Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
78211b12faf6Smrg  ;;
78221b12faf6Smrg*)
78231b12faf6Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
78241b12faf6Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
78251b12faf6Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
78261b12faf6Smrg  for ac_dir in $ac_dummy; do
78271b12faf6Smrg    IFS="$lt_save_ifs"
78281b12faf6Smrg    test -z "$ac_dir" && ac_dir=.
78291b12faf6Smrg    if test -f $ac_dir/file; then
78301b12faf6Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/file"
78311b12faf6Smrg      if test -n "$file_magic_test_file"; then
78321b12faf6Smrg	case $deplibs_check_method in
78331b12faf6Smrg	"file_magic "*)
78341b12faf6Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
78351b12faf6Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
78361b12faf6Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
78371b12faf6Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
78381b12faf6Smrg	    :
78391b12faf6Smrg	  else
78401b12faf6Smrg	    cat <<_LT_EOF 1>&2
784132b578d3Smrg
78421b12faf6Smrg*** Warning: the command libtool uses to detect shared libraries,
78431b12faf6Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
78441b12faf6Smrg*** The result is that libtool may fail to recognize shared libraries
78451b12faf6Smrg*** as such.  This will affect the creation of libtool libraries that
78461b12faf6Smrg*** depend on shared libraries, but programs linked with such libtool
78471b12faf6Smrg*** libraries will work regardless of this problem.  Nevertheless, you
78481b12faf6Smrg*** may want to report the problem to your system manager and/or to
78491b12faf6Smrg*** bug-libtool@gnu.org
785032b578d3Smrg
78511b12faf6Smrg_LT_EOF
78521b12faf6Smrg	  fi ;;
78531b12faf6Smrg	esac
78541b12faf6Smrg      fi
78551b12faf6Smrg      break
78561b12faf6Smrg    fi
78571b12faf6Smrg  done
78581b12faf6Smrg  IFS="$lt_save_ifs"
78591b12faf6Smrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
78601b12faf6Smrg  ;;
78611b12faf6Smrgesac
786232b578d3Smrgfi
786332b578d3Smrg
78641b12faf6SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
78651b12faf6Smrgif test -n "$MAGIC_CMD"; then
78661b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
78671b12faf6Smrg$as_echo "$MAGIC_CMD" >&6; }
78681b12faf6Smrgelse
78691b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78701b12faf6Smrg$as_echo "no" >&6; }
787132b578d3Smrgfi
787232b578d3Smrg
787332b578d3Smrg
787432b578d3Smrg  else
78751b12faf6Smrg    MAGIC_CMD=:
787632b578d3Smrg  fi
78771b12faf6Smrgfi
787832b578d3Smrg
78791b12faf6Smrg  fi
78801b12faf6Smrg  ;;
78811b12faf6Smrgesac
788232b578d3Smrg
78831b12faf6Smrg# Use C for the default configuration in the libtool script
788432b578d3Smrg
78851b12faf6Smrglt_save_CC="$CC"
78861b12faf6Smrgac_ext=c
78871b12faf6Smrgac_cpp='$CPP $CPPFLAGS'
78881b12faf6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
78891b12faf6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
78901b12faf6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
789132b578d3Smrg
789232b578d3Smrg
78931b12faf6Smrg# Source file extension for C test sources.
78941b12faf6Smrgac_ext=c
789532b578d3Smrg
78961b12faf6Smrg# Object file extension for compiled C test sources.
78971b12faf6Smrgobjext=o
78981b12faf6Smrgobjext=$objext
789932b578d3Smrg
79001b12faf6Smrg# Code to be used in simple compile tests
79011b12faf6Smrglt_simple_compile_test_code="int some_variable = 0;"
790232b578d3Smrg
79031b12faf6Smrg# Code to be used in simple link tests
79041b12faf6Smrglt_simple_link_test_code='int main(){return(0);}'
790532b578d3Smrg
790632b578d3Smrg
790732b578d3Smrg
790832b578d3Smrg
790932b578d3Smrg
791032b578d3Smrg
791132b578d3Smrg
79121b12faf6Smrg# If no C compiler was specified, use CC.
79131b12faf6SmrgLTCC=${LTCC-"$CC"}
791432b578d3Smrg
79151b12faf6Smrg# If no C compiler flags were specified, use CFLAGS.
79161b12faf6SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
791732b578d3Smrg
79181b12faf6Smrg# Allow CC to be a program name with arguments.
79191b12faf6Smrgcompiler=$CC
792032b578d3Smrg
79211b12faf6Smrg# Save the default compiler, since it gets overwritten when the other
79221b12faf6Smrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
79231b12faf6Smrgcompiler_DEFAULT=$CC
792432b578d3Smrg
79251b12faf6Smrg# save warnings/boilerplate of simple test code
79261b12faf6Smrgac_outfile=conftest.$ac_objext
79271b12faf6Smrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
79281b12faf6Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
79291b12faf6Smrg_lt_compiler_boilerplate=`cat conftest.err`
79301b12faf6Smrg$RM conftest*
793132b578d3Smrg
79321b12faf6Smrgac_outfile=conftest.$ac_objext
79331b12faf6Smrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
79341b12faf6Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
79351b12faf6Smrg_lt_linker_boilerplate=`cat conftest.err`
79361b12faf6Smrg$RM -r conftest*
793732b578d3Smrg
793832b578d3Smrg
79391b12faf6Smrgif test -n "$compiler"; then
794032b578d3Smrg
79411b12faf6Smrglt_prog_compiler_no_builtin_flag=
794232b578d3Smrg
79431b12faf6Smrgif test "$GCC" = yes; then
79441b12faf6Smrg  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
794532b578d3Smrg
79461b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
79471b12faf6Smrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
79481b12faf6Smrgif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
79491b12faf6Smrg  $as_echo_n "(cached) " >&6
79501b12faf6Smrgelse
79511b12faf6Smrg  lt_cv_prog_compiler_rtti_exceptions=no
79521b12faf6Smrg   ac_outfile=conftest.$ac_objext
79531b12faf6Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
79541b12faf6Smrg   lt_compiler_flag="-fno-rtti -fno-exceptions"
79551b12faf6Smrg   # Insert the option either (1) after the last *FLAGS variable, or
79561b12faf6Smrg   # (2) before a word containing "conftest.", or (3) at the end.
79571b12faf6Smrg   # Note that $ac_compile itself does not contain backslashes and begins
79581b12faf6Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
79591b12faf6Smrg   # The option is referenced via a variable to avoid confusing sed.
79601b12faf6Smrg   lt_compile=`echo "$ac_compile" | $SED \
79611b12faf6Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
79621b12faf6Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
79631b12faf6Smrg   -e 's:$: $lt_compiler_flag:'`
79641b12faf6Smrg   (eval echo "\"\$as_me:7964: $lt_compile\"" >&5)
79651b12faf6Smrg   (eval "$lt_compile" 2>conftest.err)
79661b12faf6Smrg   ac_status=$?
79671b12faf6Smrg   cat conftest.err >&5
79681b12faf6Smrg   echo "$as_me:7968: \$? = $ac_status" >&5
79691b12faf6Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
79701b12faf6Smrg     # The compiler can only warn and ignore the option if not recognized
79711b12faf6Smrg     # So say no if there are warnings other than the usual output.
79721b12faf6Smrg     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
79731b12faf6Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
79741b12faf6Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
79751b12faf6Smrg       lt_cv_prog_compiler_rtti_exceptions=yes
79761b12faf6Smrg     fi
79771b12faf6Smrg   fi
79781b12faf6Smrg   $RM conftest*
797932b578d3Smrg
798032b578d3Smrgfi
79811b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
79821b12faf6Smrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
798332b578d3Smrg
79841b12faf6Smrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
79851b12faf6Smrg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
79861b12faf6Smrgelse
79871b12faf6Smrg    :
79881b12faf6Smrgfi
798932b578d3Smrg
79901b12faf6Smrgfi
799132b578d3Smrg
799232b578d3Smrg
799332b578d3Smrg
799432b578d3Smrg
799532b578d3Smrg
799632b578d3Smrg
79971b12faf6Smrg  lt_prog_compiler_wl=
79981b12faf6Smrglt_prog_compiler_pic=
79991b12faf6Smrglt_prog_compiler_static=
800032b578d3Smrg
80011b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
80021b12faf6Smrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
800332b578d3Smrg
80041b12faf6Smrg  if test "$GCC" = yes; then
80051b12faf6Smrg    lt_prog_compiler_wl='-Wl,'
80061b12faf6Smrg    lt_prog_compiler_static='-static'
800732b578d3Smrg
80081b12faf6Smrg    case $host_os in
80091b12faf6Smrg      aix*)
80101b12faf6Smrg      # All AIX code is PIC.
80111b12faf6Smrg      if test "$host_cpu" = ia64; then
80121b12faf6Smrg	# AIX 5 now supports IA64 processor
80131b12faf6Smrg	lt_prog_compiler_static='-Bstatic'
80141b12faf6Smrg      fi
80151b12faf6Smrg      ;;
801632b578d3Smrg
80171b12faf6Smrg    amigaos*)
80181b12faf6Smrg      case $host_cpu in
80191b12faf6Smrg      powerpc)
80201b12faf6Smrg            # see comment about AmigaOS4 .so support
80211b12faf6Smrg            lt_prog_compiler_pic='-fPIC'
80221b12faf6Smrg        ;;
80231b12faf6Smrg      m68k)
80241b12faf6Smrg            # FIXME: we need at least 68020 code to build shared libraries, but
80251b12faf6Smrg            # adding the `-m68020' flag to GCC prevents building anything better,
80261b12faf6Smrg            # like `-m68040'.
80271b12faf6Smrg            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
80281b12faf6Smrg        ;;
80291b12faf6Smrg      esac
80301b12faf6Smrg      ;;
803132b578d3Smrg
80321b12faf6Smrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
80331b12faf6Smrg      # PIC is the default for these OSes.
80341b12faf6Smrg      ;;
803532b578d3Smrg
80361b12faf6Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
80371b12faf6Smrg      # This hack is so that the source file can tell whether it is being
80381b12faf6Smrg      # built for inclusion in a dll (and should export symbols for example).
80391b12faf6Smrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
80401b12faf6Smrg      # (--disable-auto-import) libraries
80411b12faf6Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
80421b12faf6Smrg      ;;
804332b578d3Smrg
80441b12faf6Smrg    darwin* | rhapsody*)
80451b12faf6Smrg      # PIC is the default on this platform
80461b12faf6Smrg      # Common symbols not allowed in MH_DYLIB files
80471b12faf6Smrg      lt_prog_compiler_pic='-fno-common'
80481b12faf6Smrg      ;;
804932b578d3Smrg
80501b12faf6Smrg    hpux*)
80511b12faf6Smrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
80521b12faf6Smrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
80531b12faf6Smrg      # sets the default TLS model and affects inlining.
80541b12faf6Smrg      case $host_cpu in
80551b12faf6Smrg      hppa*64*)
80561b12faf6Smrg	# +Z the default
80571b12faf6Smrg	;;
80581b12faf6Smrg      *)
80591b12faf6Smrg	lt_prog_compiler_pic='-fPIC'
80601b12faf6Smrg	;;
80611b12faf6Smrg      esac
80621b12faf6Smrg      ;;
806332b578d3Smrg
80641b12faf6Smrg    interix[3-9]*)
80651b12faf6Smrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
80661b12faf6Smrg      # Instead, we relocate shared libraries at runtime.
80671b12faf6Smrg      ;;
806832b578d3Smrg
80691b12faf6Smrg    msdosdjgpp*)
80701b12faf6Smrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
80711b12faf6Smrg      # on systems that don't support them.
80721b12faf6Smrg      lt_prog_compiler_can_build_shared=no
80731b12faf6Smrg      enable_shared=no
80741b12faf6Smrg      ;;
807532b578d3Smrg
80761b12faf6Smrg    *nto* | *qnx*)
80771b12faf6Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
80781b12faf6Smrg      # it will coredump.
80791b12faf6Smrg      lt_prog_compiler_pic='-fPIC -shared'
80801b12faf6Smrg      ;;
808132b578d3Smrg
80821b12faf6Smrg    sysv4*MP*)
80831b12faf6Smrg      if test -d /usr/nec; then
80841b12faf6Smrg	lt_prog_compiler_pic=-Kconform_pic
80851b12faf6Smrg      fi
80861b12faf6Smrg      ;;
808732b578d3Smrg
80881b12faf6Smrg    *)
80891b12faf6Smrg      lt_prog_compiler_pic='-fPIC'
80901b12faf6Smrg      ;;
80911b12faf6Smrg    esac
80921b12faf6Smrg  else
80931b12faf6Smrg    # PORTME Check for flag to pass linker flags through the system compiler.
80941b12faf6Smrg    case $host_os in
80951b12faf6Smrg    aix*)
80961b12faf6Smrg      lt_prog_compiler_wl='-Wl,'
80971b12faf6Smrg      if test "$host_cpu" = ia64; then
80981b12faf6Smrg	# AIX 5 now supports IA64 processor
80991b12faf6Smrg	lt_prog_compiler_static='-Bstatic'
81001b12faf6Smrg      else
81011b12faf6Smrg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
81021b12faf6Smrg      fi
81031b12faf6Smrg      ;;
810432b578d3Smrg
81051b12faf6Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
81061b12faf6Smrg      # This hack is so that the source file can tell whether it is being
81071b12faf6Smrg      # built for inclusion in a dll (and should export symbols for example).
81081b12faf6Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
81091b12faf6Smrg      ;;
811032b578d3Smrg
81111b12faf6Smrg    hpux9* | hpux10* | hpux11*)
81121b12faf6Smrg      lt_prog_compiler_wl='-Wl,'
81131b12faf6Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
81141b12faf6Smrg      # not for PA HP-UX.
81151b12faf6Smrg      case $host_cpu in
81161b12faf6Smrg      hppa*64*|ia64*)
81171b12faf6Smrg	# +Z the default
81181b12faf6Smrg	;;
81191b12faf6Smrg      *)
81201b12faf6Smrg	lt_prog_compiler_pic='+Z'
81211b12faf6Smrg	;;
81221b12faf6Smrg      esac
81231b12faf6Smrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
81241b12faf6Smrg      lt_prog_compiler_static='${wl}-a ${wl}archive'
81251b12faf6Smrg      ;;
812632b578d3Smrg
81271b12faf6Smrg    irix5* | irix6* | nonstopux*)
81281b12faf6Smrg      lt_prog_compiler_wl='-Wl,'
81291b12faf6Smrg      # PIC (with -KPIC) is the default.
81301b12faf6Smrg      lt_prog_compiler_static='-non_shared'
81311b12faf6Smrg      ;;
813232b578d3Smrg
81331b12faf6Smrg    linux* | k*bsd*-gnu | kopensolaris*-gnu)
81341b12faf6Smrg      case $cc_basename in
81351b12faf6Smrg      # old Intel for x86_64 which still supported -KPIC.
81361b12faf6Smrg      ecc*)
81371b12faf6Smrg	lt_prog_compiler_wl='-Wl,'
81381b12faf6Smrg	lt_prog_compiler_pic='-KPIC'
81391b12faf6Smrg	lt_prog_compiler_static='-static'
81401b12faf6Smrg        ;;
81411b12faf6Smrg      # icc used to be incompatible with GCC.
81421b12faf6Smrg      # ICC 10 doesn't accept -KPIC any more.
81431b12faf6Smrg      icc* | ifort*)
81441b12faf6Smrg	lt_prog_compiler_wl='-Wl,'
81451b12faf6Smrg	lt_prog_compiler_pic='-fPIC'
81461b12faf6Smrg	lt_prog_compiler_static='-static'
81471b12faf6Smrg        ;;
81481b12faf6Smrg      # Lahey Fortran 8.1.
81491b12faf6Smrg      lf95*)
81501b12faf6Smrg	lt_prog_compiler_wl='-Wl,'
81511b12faf6Smrg	lt_prog_compiler_pic='--shared'
81521b12faf6Smrg	lt_prog_compiler_static='--static'
81531b12faf6Smrg	;;
81541b12faf6Smrg      pgcc* | pgf77* | pgf90* | pgf95*)
81551b12faf6Smrg        # Portland Group compilers (*not* the Pentium gcc compiler,
81561b12faf6Smrg	# which looks to be a dead project)
81571b12faf6Smrg	lt_prog_compiler_wl='-Wl,'
81581b12faf6Smrg	lt_prog_compiler_pic='-fpic'
81591b12faf6Smrg	lt_prog_compiler_static='-Bstatic'
81601b12faf6Smrg        ;;
81611b12faf6Smrg      ccc*)
81621b12faf6Smrg        lt_prog_compiler_wl='-Wl,'
81631b12faf6Smrg        # All Alpha code is PIC.
81641b12faf6Smrg        lt_prog_compiler_static='-non_shared'
81651b12faf6Smrg        ;;
81661b12faf6Smrg      xl*)
81671b12faf6Smrg	# IBM XL C 8.0/Fortran 10.1 on PPC
81681b12faf6Smrg	lt_prog_compiler_wl='-Wl,'
81691b12faf6Smrg	lt_prog_compiler_pic='-qpic'
81701b12faf6Smrg	lt_prog_compiler_static='-qstaticlink'
81711b12faf6Smrg	;;
81721b12faf6Smrg      *)
81731b12faf6Smrg	case `$CC -V 2>&1 | sed 5q` in
81741b12faf6Smrg	*Sun\ C*)
81751b12faf6Smrg	  # Sun C 5.9
81761b12faf6Smrg	  lt_prog_compiler_pic='-KPIC'
81771b12faf6Smrg	  lt_prog_compiler_static='-Bstatic'
81781b12faf6Smrg	  lt_prog_compiler_wl='-Wl,'
81791b12faf6Smrg	  ;;
81801b12faf6Smrg	*Sun\ F*)
81811b12faf6Smrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
81821b12faf6Smrg	  lt_prog_compiler_pic='-KPIC'
81831b12faf6Smrg	  lt_prog_compiler_static='-Bstatic'
81841b12faf6Smrg	  lt_prog_compiler_wl=''
81851b12faf6Smrg	  ;;
81861b12faf6Smrg	esac
81871b12faf6Smrg	;;
81881b12faf6Smrg      esac
81891b12faf6Smrg      ;;
819032b578d3Smrg
81911b12faf6Smrg    newsos6)
81921b12faf6Smrg      lt_prog_compiler_pic='-KPIC'
81931b12faf6Smrg      lt_prog_compiler_static='-Bstatic'
81941b12faf6Smrg      ;;
819532b578d3Smrg
81961b12faf6Smrg    *nto* | *qnx*)
81971b12faf6Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
81981b12faf6Smrg      # it will coredump.
81991b12faf6Smrg      lt_prog_compiler_pic='-fPIC -shared'
82001b12faf6Smrg      ;;
820132b578d3Smrg
82021b12faf6Smrg    osf3* | osf4* | osf5*)
82031b12faf6Smrg      lt_prog_compiler_wl='-Wl,'
82041b12faf6Smrg      # All OSF/1 code is PIC.
82051b12faf6Smrg      lt_prog_compiler_static='-non_shared'
82061b12faf6Smrg      ;;
820732b578d3Smrg
82081b12faf6Smrg    rdos*)
82091b12faf6Smrg      lt_prog_compiler_static='-non_shared'
82101b12faf6Smrg      ;;
821132b578d3Smrg
82121b12faf6Smrg    solaris*)
82131b12faf6Smrg      lt_prog_compiler_pic='-KPIC'
82141b12faf6Smrg      lt_prog_compiler_static='-Bstatic'
82151b12faf6Smrg      case $cc_basename in
82161b12faf6Smrg      f77* | f90* | f95*)
82171b12faf6Smrg	lt_prog_compiler_wl='-Qoption ld ';;
82181b12faf6Smrg      *)
82191b12faf6Smrg	lt_prog_compiler_wl='-Wl,';;
82201b12faf6Smrg      esac
82211b12faf6Smrg      ;;
822232b578d3Smrg
82231b12faf6Smrg    sunos4*)
82241b12faf6Smrg      lt_prog_compiler_wl='-Qoption ld '
82251b12faf6Smrg      lt_prog_compiler_pic='-PIC'
82261b12faf6Smrg      lt_prog_compiler_static='-Bstatic'
82271b12faf6Smrg      ;;
822832b578d3Smrg
82291b12faf6Smrg    sysv4 | sysv4.2uw2* | sysv4.3*)
82301b12faf6Smrg      lt_prog_compiler_wl='-Wl,'
82311b12faf6Smrg      lt_prog_compiler_pic='-KPIC'
82321b12faf6Smrg      lt_prog_compiler_static='-Bstatic'
82331b12faf6Smrg      ;;
823432b578d3Smrg
82351b12faf6Smrg    sysv4*MP*)
82361b12faf6Smrg      if test -d /usr/nec ;then
82371b12faf6Smrg	lt_prog_compiler_pic='-Kconform_pic'
82381b12faf6Smrg	lt_prog_compiler_static='-Bstatic'
82391b12faf6Smrg      fi
82401b12faf6Smrg      ;;
824132b578d3Smrg
82421b12faf6Smrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
82431b12faf6Smrg      lt_prog_compiler_wl='-Wl,'
82441b12faf6Smrg      lt_prog_compiler_pic='-KPIC'
82451b12faf6Smrg      lt_prog_compiler_static='-Bstatic'
82461b12faf6Smrg      ;;
824732b578d3Smrg
82481b12faf6Smrg    unicos*)
82491b12faf6Smrg      lt_prog_compiler_wl='-Wl,'
82501b12faf6Smrg      lt_prog_compiler_can_build_shared=no
82511b12faf6Smrg      ;;
825232b578d3Smrg
82531b12faf6Smrg    uts4*)
82541b12faf6Smrg      lt_prog_compiler_pic='-pic'
82551b12faf6Smrg      lt_prog_compiler_static='-Bstatic'
82561b12faf6Smrg      ;;
825732b578d3Smrg
82581b12faf6Smrg    *)
82591b12faf6Smrg      lt_prog_compiler_can_build_shared=no
82601b12faf6Smrg      ;;
82611b12faf6Smrg    esac
82621b12faf6Smrg  fi
826332b578d3Smrg
82641b12faf6Smrgcase $host_os in
82651b12faf6Smrg  # For platforms which do not support PIC, -DPIC is meaningless:
82661b12faf6Smrg  *djgpp*)
82671b12faf6Smrg    lt_prog_compiler_pic=
82681b12faf6Smrg    ;;
82691b12faf6Smrg  *)
82701b12faf6Smrg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
82711b12faf6Smrg    ;;
82721b12faf6Smrgesac
82731b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
82741b12faf6Smrg$as_echo "$lt_prog_compiler_pic" >&6; }
827532b578d3Smrg
827632b578d3Smrg
827732b578d3Smrg
827832b578d3Smrg
827932b578d3Smrg
828032b578d3Smrg
82811b12faf6Smrg#
82821b12faf6Smrg# Check to make sure the PIC flag actually works.
82831b12faf6Smrg#
82841b12faf6Smrgif test -n "$lt_prog_compiler_pic"; then
82851b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
82861b12faf6Smrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
82871b12faf6Smrgif test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
82881b12faf6Smrg  $as_echo_n "(cached) " >&6
82891b12faf6Smrgelse
82901b12faf6Smrg  lt_cv_prog_compiler_pic_works=no
82911b12faf6Smrg   ac_outfile=conftest.$ac_objext
82921b12faf6Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
82931b12faf6Smrg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
82941b12faf6Smrg   # Insert the option either (1) after the last *FLAGS variable, or
82951b12faf6Smrg   # (2) before a word containing "conftest.", or (3) at the end.
82961b12faf6Smrg   # Note that $ac_compile itself does not contain backslashes and begins
82971b12faf6Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
82981b12faf6Smrg   # The option is referenced via a variable to avoid confusing sed.
82991b12faf6Smrg   lt_compile=`echo "$ac_compile" | $SED \
83001b12faf6Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
83011b12faf6Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
83021b12faf6Smrg   -e 's:$: $lt_compiler_flag:'`
83031b12faf6Smrg   (eval echo "\"\$as_me:8303: $lt_compile\"" >&5)
83041b12faf6Smrg   (eval "$lt_compile" 2>conftest.err)
83051b12faf6Smrg   ac_status=$?
83061b12faf6Smrg   cat conftest.err >&5
83071b12faf6Smrg   echo "$as_me:8307: \$? = $ac_status" >&5
83081b12faf6Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
83091b12faf6Smrg     # The compiler can only warn and ignore the option if not recognized
83101b12faf6Smrg     # So say no if there are warnings other than the usual output.
83111b12faf6Smrg     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
83121b12faf6Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
83131b12faf6Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
83141b12faf6Smrg       lt_cv_prog_compiler_pic_works=yes
83151b12faf6Smrg     fi
83161b12faf6Smrg   fi
83171b12faf6Smrg   $RM conftest*
831832b578d3Smrg
83191b12faf6Smrgfi
83201b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
83211b12faf6Smrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
832232b578d3Smrg
83231b12faf6Smrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
83241b12faf6Smrg    case $lt_prog_compiler_pic in
83251b12faf6Smrg     "" | " "*) ;;
83261b12faf6Smrg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
83271b12faf6Smrg     esac
83281b12faf6Smrgelse
83291b12faf6Smrg    lt_prog_compiler_pic=
83301b12faf6Smrg     lt_prog_compiler_can_build_shared=no
83311b12faf6Smrgfi
833232b578d3Smrg
83331b12faf6Smrgfi
833432b578d3Smrg
833532b578d3Smrg
833632b578d3Smrg
833732b578d3Smrg
833832b578d3Smrg
833932b578d3Smrg
83401b12faf6Smrg#
83411b12faf6Smrg# Check to make sure the static flag actually works.
83421b12faf6Smrg#
83431b12faf6Smrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
83441b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
83451b12faf6Smrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
83461b12faf6Smrgif test "${lt_cv_prog_compiler_static_works+set}" = set; then :
83471b12faf6Smrg  $as_echo_n "(cached) " >&6
83481b12faf6Smrgelse
83491b12faf6Smrg  lt_cv_prog_compiler_static_works=no
83501b12faf6Smrg   save_LDFLAGS="$LDFLAGS"
83511b12faf6Smrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
83521b12faf6Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
83531b12faf6Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
83541b12faf6Smrg     # The linker can only warn and ignore the option if not recognized
83551b12faf6Smrg     # So say no if there are warnings
83561b12faf6Smrg     if test -s conftest.err; then
83571b12faf6Smrg       # Append any errors to the config.log.
83581b12faf6Smrg       cat conftest.err 1>&5
83591b12faf6Smrg       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
83601b12faf6Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
83611b12faf6Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
83621b12faf6Smrg         lt_cv_prog_compiler_static_works=yes
83631b12faf6Smrg       fi
83641b12faf6Smrg     else
83651b12faf6Smrg       lt_cv_prog_compiler_static_works=yes
83661b12faf6Smrg     fi
83671b12faf6Smrg   fi
83681b12faf6Smrg   $RM -r conftest*
83691b12faf6Smrg   LDFLAGS="$save_LDFLAGS"
837032b578d3Smrg
83711b12faf6Smrgfi
83721b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
83731b12faf6Smrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
837432b578d3Smrg
83751b12faf6Smrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then
83761b12faf6Smrg    :
83771b12faf6Smrgelse
83781b12faf6Smrg    lt_prog_compiler_static=
83791b12faf6Smrgfi
838032b578d3Smrg
838132b578d3Smrg
838232b578d3Smrg
838332b578d3Smrg
838432b578d3Smrg
838532b578d3Smrg
838632b578d3Smrg
83871b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
83881b12faf6Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
83891b12faf6Smrgif test "${lt_cv_prog_compiler_c_o+set}" = set; then :
83901b12faf6Smrg  $as_echo_n "(cached) " >&6
83911b12faf6Smrgelse
83921b12faf6Smrg  lt_cv_prog_compiler_c_o=no
83931b12faf6Smrg   $RM -r conftest 2>/dev/null
83941b12faf6Smrg   mkdir conftest
83951b12faf6Smrg   cd conftest
83961b12faf6Smrg   mkdir out
83971b12faf6Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
839832b578d3Smrg
83991b12faf6Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
84001b12faf6Smrg   # Insert the option either (1) after the last *FLAGS variable, or
84011b12faf6Smrg   # (2) before a word containing "conftest.", or (3) at the end.
84021b12faf6Smrg   # Note that $ac_compile itself does not contain backslashes and begins
84031b12faf6Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
84041b12faf6Smrg   lt_compile=`echo "$ac_compile" | $SED \
84051b12faf6Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
84061b12faf6Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
84071b12faf6Smrg   -e 's:$: $lt_compiler_flag:'`
84081b12faf6Smrg   (eval echo "\"\$as_me:8408: $lt_compile\"" >&5)
84091b12faf6Smrg   (eval "$lt_compile" 2>out/conftest.err)
84101b12faf6Smrg   ac_status=$?
84111b12faf6Smrg   cat out/conftest.err >&5
84121b12faf6Smrg   echo "$as_me:8412: \$? = $ac_status" >&5
84131b12faf6Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
84141b12faf6Smrg   then
84151b12faf6Smrg     # The compiler can only warn and ignore the option if not recognized
84161b12faf6Smrg     # So say no if there are warnings
84171b12faf6Smrg     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
84181b12faf6Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
84191b12faf6Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
84201b12faf6Smrg       lt_cv_prog_compiler_c_o=yes
84211b12faf6Smrg     fi
84221b12faf6Smrg   fi
84231b12faf6Smrg   chmod u+w . 2>&5
84241b12faf6Smrg   $RM conftest*
84251b12faf6Smrg   # SGI C++ compiler will create directory out/ii_files/ for
84261b12faf6Smrg   # template instantiation
84271b12faf6Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
84281b12faf6Smrg   $RM out/* && rmdir out
84291b12faf6Smrg   cd ..
84301b12faf6Smrg   $RM -r conftest
84311b12faf6Smrg   $RM conftest*
843232b578d3Smrg
84331b12faf6Smrgfi
84341b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
84351b12faf6Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
843632b578d3Smrg
843732b578d3Smrg
84382a51b5beSmrg
843932b578d3Smrg
844032b578d3Smrg
844132b578d3Smrg
84421b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
84431b12faf6Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
84441b12faf6Smrgif test "${lt_cv_prog_compiler_c_o+set}" = set; then :
84451b12faf6Smrg  $as_echo_n "(cached) " >&6
84461b12faf6Smrgelse
84471b12faf6Smrg  lt_cv_prog_compiler_c_o=no
84481b12faf6Smrg   $RM -r conftest 2>/dev/null
84491b12faf6Smrg   mkdir conftest
84501b12faf6Smrg   cd conftest
84511b12faf6Smrg   mkdir out
84521b12faf6Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
845332b578d3Smrg
84541b12faf6Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
84551b12faf6Smrg   # Insert the option either (1) after the last *FLAGS variable, or
84561b12faf6Smrg   # (2) before a word containing "conftest.", or (3) at the end.
84571b12faf6Smrg   # Note that $ac_compile itself does not contain backslashes and begins
84581b12faf6Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
84591b12faf6Smrg   lt_compile=`echo "$ac_compile" | $SED \
84601b12faf6Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
84611b12faf6Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
84621b12faf6Smrg   -e 's:$: $lt_compiler_flag:'`
84631b12faf6Smrg   (eval echo "\"\$as_me:8463: $lt_compile\"" >&5)
84641b12faf6Smrg   (eval "$lt_compile" 2>out/conftest.err)
84651b12faf6Smrg   ac_status=$?
84661b12faf6Smrg   cat out/conftest.err >&5
84671b12faf6Smrg   echo "$as_me:8467: \$? = $ac_status" >&5
84681b12faf6Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
84691b12faf6Smrg   then
84701b12faf6Smrg     # The compiler can only warn and ignore the option if not recognized
84711b12faf6Smrg     # So say no if there are warnings
84721b12faf6Smrg     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
84731b12faf6Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
84741b12faf6Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
84751b12faf6Smrg       lt_cv_prog_compiler_c_o=yes
84761b12faf6Smrg     fi
84771b12faf6Smrg   fi
84781b12faf6Smrg   chmod u+w . 2>&5
84791b12faf6Smrg   $RM conftest*
84801b12faf6Smrg   # SGI C++ compiler will create directory out/ii_files/ for
84811b12faf6Smrg   # template instantiation
84821b12faf6Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
84831b12faf6Smrg   $RM out/* && rmdir out
84841b12faf6Smrg   cd ..
84851b12faf6Smrg   $RM -r conftest
84861b12faf6Smrg   $RM conftest*
848732b578d3Smrg
84881b12faf6Smrgfi
84891b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
84901b12faf6Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
849132b578d3Smrg
849232b578d3Smrg
849332b578d3Smrg
849432b578d3Smrg
84951b12faf6Smrghard_links="nottested"
84961b12faf6Smrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
84971b12faf6Smrg  # do not overwrite the value of need_locks provided by the user
84981b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
84991b12faf6Smrg$as_echo_n "checking if we can lock with hard links... " >&6; }
85001b12faf6Smrg  hard_links=yes
85011b12faf6Smrg  $RM conftest*
85021b12faf6Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
85031b12faf6Smrg  touch conftest.a
85041b12faf6Smrg  ln conftest.a conftest.b 2>&5 || hard_links=no
85051b12faf6Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
85061b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
85071b12faf6Smrg$as_echo "$hard_links" >&6; }
85081b12faf6Smrg  if test "$hard_links" = no; then
85091b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
85101b12faf6Smrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
85111b12faf6Smrg    need_locks=warn
85121b12faf6Smrg  fi
85131b12faf6Smrgelse
85141b12faf6Smrg  need_locks=no
85151b12faf6Smrgfi
851632b578d3Smrg
851732b578d3Smrg
851832b578d3Smrg
851932b578d3Smrg
852032b578d3Smrg
852132b578d3Smrg
85221b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
85231b12faf6Smrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
852432b578d3Smrg
85251b12faf6Smrg  runpath_var=
85261b12faf6Smrg  allow_undefined_flag=
85271b12faf6Smrg  always_export_symbols=no
85281b12faf6Smrg  archive_cmds=
85291b12faf6Smrg  archive_expsym_cmds=
85301b12faf6Smrg  compiler_needs_object=no
85311b12faf6Smrg  enable_shared_with_static_runtimes=no
85321b12faf6Smrg  export_dynamic_flag_spec=
85331b12faf6Smrg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
85341b12faf6Smrg  hardcode_automatic=no
85351b12faf6Smrg  hardcode_direct=no
85361b12faf6Smrg  hardcode_direct_absolute=no
85371b12faf6Smrg  hardcode_libdir_flag_spec=
85381b12faf6Smrg  hardcode_libdir_flag_spec_ld=
85391b12faf6Smrg  hardcode_libdir_separator=
85401b12faf6Smrg  hardcode_minus_L=no
85411b12faf6Smrg  hardcode_shlibpath_var=unsupported
85421b12faf6Smrg  inherit_rpath=no
85431b12faf6Smrg  link_all_deplibs=unknown
85441b12faf6Smrg  module_cmds=
85451b12faf6Smrg  module_expsym_cmds=
85461b12faf6Smrg  old_archive_from_new_cmds=
85471b12faf6Smrg  old_archive_from_expsyms_cmds=
85481b12faf6Smrg  thread_safe_flag_spec=
85491b12faf6Smrg  whole_archive_flag_spec=
85501b12faf6Smrg  # include_expsyms should be a list of space-separated symbols to be *always*
85511b12faf6Smrg  # included in the symbol list
85521b12faf6Smrg  include_expsyms=
85531b12faf6Smrg  # exclude_expsyms can be an extended regexp of symbols to exclude
85541b12faf6Smrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
85551b12faf6Smrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
85561b12faf6Smrg  # as well as any symbol that contains `d'.
85571b12faf6Smrg  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
85581b12faf6Smrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
85591b12faf6Smrg  # platforms (ab)use it in PIC code, but their linkers get confused if
85601b12faf6Smrg  # the symbol is explicitly referenced.  Since portable code cannot
85611b12faf6Smrg  # rely on this symbol name, it's probably fine to never include it in
85621b12faf6Smrg  # preloaded symbol tables.
85631b12faf6Smrg  # Exclude shared library initialization/finalization symbols.
85641b12faf6Smrg  extract_expsyms_cmds=
856532b578d3Smrg
85661b12faf6Smrg  case $host_os in
85671b12faf6Smrg  cygwin* | mingw* | pw32* | cegcc*)
85681b12faf6Smrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
85691b12faf6Smrg    # When not using gcc, we currently assume that we are using
85701b12faf6Smrg    # Microsoft Visual C++.
85711b12faf6Smrg    if test "$GCC" != yes; then
85721b12faf6Smrg      with_gnu_ld=no
85731b12faf6Smrg    fi
85741b12faf6Smrg    ;;
85751b12faf6Smrg  interix*)
85761b12faf6Smrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
85771b12faf6Smrg    with_gnu_ld=yes
85781b12faf6Smrg    ;;
85791b12faf6Smrg  openbsd*)
85801b12faf6Smrg    with_gnu_ld=no
85811b12faf6Smrg    ;;
85821b12faf6Smrg  linux* | k*bsd*-gnu)
85831b12faf6Smrg    link_all_deplibs=no
85841b12faf6Smrg    ;;
85851b12faf6Smrg  esac
858632b578d3Smrg
85871b12faf6Smrg  ld_shlibs=yes
85881b12faf6Smrg  if test "$with_gnu_ld" = yes; then
85891b12faf6Smrg    # If archive_cmds runs LD, not CC, wlarc should be empty
85901b12faf6Smrg    wlarc='${wl}'
859132b578d3Smrg
85921b12faf6Smrg    # Set some defaults for GNU ld with shared library support. These
85931b12faf6Smrg    # are reset later if shared libraries are not supported. Putting them
85941b12faf6Smrg    # here allows them to be overridden if necessary.
85951b12faf6Smrg    runpath_var=LD_RUN_PATH
85961b12faf6Smrg    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
85971b12faf6Smrg    export_dynamic_flag_spec='${wl}--export-dynamic'
85981b12faf6Smrg    # ancient GNU ld didn't support --whole-archive et. al.
85991b12faf6Smrg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
86001b12faf6Smrg      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
86011b12faf6Smrg    else
86021b12faf6Smrg      whole_archive_flag_spec=
86031b12faf6Smrg    fi
86041b12faf6Smrg    supports_anon_versioning=no
86051b12faf6Smrg    case `$LD -v 2>&1` in
86061b12faf6Smrg      *GNU\ gold*) supports_anon_versioning=yes ;;
86071b12faf6Smrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
86081b12faf6Smrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
86091b12faf6Smrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
86101b12faf6Smrg      *\ 2.11.*) ;; # other 2.11 versions
86111b12faf6Smrg      *) supports_anon_versioning=yes ;;
86121b12faf6Smrg    esac
861332b578d3Smrg
86141b12faf6Smrg    # See if GNU ld supports shared libraries.
86151b12faf6Smrg    case $host_os in
86161b12faf6Smrg    aix[3-9]*)
86171b12faf6Smrg      # On AIX/PPC, the GNU linker is very broken
86181b12faf6Smrg      if test "$host_cpu" != ia64; then
86191b12faf6Smrg	ld_shlibs=no
86201b12faf6Smrg	cat <<_LT_EOF 1>&2
862132b578d3Smrg
86221b12faf6Smrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported
86231b12faf6Smrg*** to be unable to reliably create shared libraries on AIX.
86241b12faf6Smrg*** Therefore, libtool is disabling shared libraries support.  If you
86251b12faf6Smrg*** really care for shared libraries, you may want to modify your PATH
86261b12faf6Smrg*** so that a non-GNU linker is found, and then restart.
862732b578d3Smrg
86281b12faf6Smrg_LT_EOF
86291b12faf6Smrg      fi
86301b12faf6Smrg      ;;
863132b578d3Smrg
86321b12faf6Smrg    amigaos*)
86331b12faf6Smrg      case $host_cpu in
86341b12faf6Smrg      powerpc)
86351b12faf6Smrg            # see comment about AmigaOS4 .so support
86361b12faf6Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
86371b12faf6Smrg            archive_expsym_cmds=''
86381b12faf6Smrg        ;;
86391b12faf6Smrg      m68k)
86401b12faf6Smrg            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)'
86411b12faf6Smrg            hardcode_libdir_flag_spec='-L$libdir'
86421b12faf6Smrg            hardcode_minus_L=yes
86431b12faf6Smrg        ;;
86441b12faf6Smrg      esac
86451b12faf6Smrg      ;;
864632b578d3Smrg
86471b12faf6Smrg    beos*)
86481b12faf6Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
86491b12faf6Smrg	allow_undefined_flag=unsupported
86501b12faf6Smrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
86511b12faf6Smrg	# support --undefined.  This deserves some investigation.  FIXME
86521b12faf6Smrg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
86531b12faf6Smrg      else
86541b12faf6Smrg	ld_shlibs=no
86551b12faf6Smrg      fi
86561b12faf6Smrg      ;;
865732b578d3Smrg
86581b12faf6Smrg    cygwin* | mingw* | pw32* | cegcc*)
86591b12faf6Smrg      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
86601b12faf6Smrg      # as there is no search path for DLLs.
86611b12faf6Smrg      hardcode_libdir_flag_spec='-L$libdir'
86621b12faf6Smrg      allow_undefined_flag=unsupported
86631b12faf6Smrg      always_export_symbols=no
86641b12faf6Smrg      enable_shared_with_static_runtimes=yes
86651b12faf6Smrg      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
866632b578d3Smrg
86671b12faf6Smrg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
86681b12faf6Smrg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
86691b12faf6Smrg	# If the export-symbols file already is a .def file (1st line
86701b12faf6Smrg	# is EXPORTS), use it as is; otherwise, prepend...
86711b12faf6Smrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
86721b12faf6Smrg	  cp $export_symbols $output_objdir/$soname.def;
86731b12faf6Smrg	else
86741b12faf6Smrg	  echo EXPORTS > $output_objdir/$soname.def;
86751b12faf6Smrg	  cat $export_symbols >> $output_objdir/$soname.def;
86761b12faf6Smrg	fi~
86771b12faf6Smrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
86781b12faf6Smrg      else
86791b12faf6Smrg	ld_shlibs=no
86801b12faf6Smrg      fi
86811b12faf6Smrg      ;;
868232b578d3Smrg
86831b12faf6Smrg    interix[3-9]*)
86841b12faf6Smrg      hardcode_direct=no
86851b12faf6Smrg      hardcode_shlibpath_var=no
86861b12faf6Smrg      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
86871b12faf6Smrg      export_dynamic_flag_spec='${wl}-E'
86881b12faf6Smrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
86891b12faf6Smrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
86901b12faf6Smrg      # default) and relocated if they conflict, which is a slow very memory
86911b12faf6Smrg      # consuming and fragmenting process.  To avoid this, we pick a random,
86921b12faf6Smrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
86931b12faf6Smrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
86941b12faf6Smrg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
86951b12faf6Smrg      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'
86961b12faf6Smrg      ;;
869732b578d3Smrg
86981b12faf6Smrg    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
86991b12faf6Smrg      tmp_diet=no
87001b12faf6Smrg      if test "$host_os" = linux-dietlibc; then
87011b12faf6Smrg	case $cc_basename in
87021b12faf6Smrg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
87031b12faf6Smrg	esac
87041b12faf6Smrg      fi
87051b12faf6Smrg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
87061b12faf6Smrg	 && test "$tmp_diet" = no
87071b12faf6Smrg      then
87081b12faf6Smrg	tmp_addflag=
87091b12faf6Smrg	tmp_sharedflag='-shared'
87101b12faf6Smrg	case $cc_basename,$host_cpu in
87111b12faf6Smrg        pgcc*)				# Portland Group C compiler
87121b12faf6Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
87131b12faf6Smrg	  tmp_addflag=' $pic_flag'
87141b12faf6Smrg	  ;;
87151b12faf6Smrg	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
87161b12faf6Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
87171b12faf6Smrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
87181b12faf6Smrg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
87191b12faf6Smrg	  tmp_addflag=' -i_dynamic' ;;
87201b12faf6Smrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
87211b12faf6Smrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
87221b12faf6Smrg	ifc* | ifort*)			# Intel Fortran compiler
87231b12faf6Smrg	  tmp_addflag=' -nofor_main' ;;
87241b12faf6Smrg	lf95*)				# Lahey Fortran 8.1
87251b12faf6Smrg	  whole_archive_flag_spec=
87261b12faf6Smrg	  tmp_sharedflag='--shared' ;;
87271b12faf6Smrg	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
87281b12faf6Smrg	  tmp_sharedflag='-qmkshrobj'
87291b12faf6Smrg	  tmp_addflag= ;;
87301b12faf6Smrg	esac
87311b12faf6Smrg	case `$CC -V 2>&1 | sed 5q` in
87321b12faf6Smrg	*Sun\ C*)			# Sun C 5.9
87331b12faf6Smrg	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
87341b12faf6Smrg	  compiler_needs_object=yes
87351b12faf6Smrg	  tmp_sharedflag='-G' ;;
87361b12faf6Smrg	*Sun\ F*)			# Sun Fortran 8.3
87371b12faf6Smrg	  tmp_sharedflag='-G' ;;
87381b12faf6Smrg	esac
87391b12faf6Smrg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
874032b578d3Smrg
87411b12faf6Smrg        if test "x$supports_anon_versioning" = xyes; then
87421b12faf6Smrg          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
87431b12faf6Smrg	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
87441b12faf6Smrg	    echo "local: *; };" >> $output_objdir/$libname.ver~
87451b12faf6Smrg	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
87461b12faf6Smrg        fi
874732b578d3Smrg
87481b12faf6Smrg	case $cc_basename in
87491b12faf6Smrg	xlf*)
87501b12faf6Smrg	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
87511b12faf6Smrg	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
87521b12faf6Smrg	  hardcode_libdir_flag_spec=
87531b12faf6Smrg	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
87541b12faf6Smrg	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
87551b12faf6Smrg	  if test "x$supports_anon_versioning" = xyes; then
87561b12faf6Smrg	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
87571b12faf6Smrg	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
87581b12faf6Smrg	      echo "local: *; };" >> $output_objdir/$libname.ver~
87591b12faf6Smrg	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
87601b12faf6Smrg	  fi
87611b12faf6Smrg	  ;;
87621b12faf6Smrg	esac
87631b12faf6Smrg      else
87641b12faf6Smrg        ld_shlibs=no
87651b12faf6Smrg      fi
87661b12faf6Smrg      ;;
876732b578d3Smrg
87681b12faf6Smrg    netbsd* | netbsdelf*-gnu)
87691b12faf6Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
87701b12faf6Smrg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
87711b12faf6Smrg	wlarc=
87721b12faf6Smrg      else
87731b12faf6Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
87741b12faf6Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
87751b12faf6Smrg      fi
87761b12faf6Smrg      ;;
877732b578d3Smrg
87781b12faf6Smrg    solaris*)
87791b12faf6Smrg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
87801b12faf6Smrg	ld_shlibs=no
87811b12faf6Smrg	cat <<_LT_EOF 1>&2
878232b578d3Smrg
87831b12faf6Smrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
87841b12faf6Smrg*** create shared libraries on Solaris systems.  Therefore, libtool
87851b12faf6Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
87861b12faf6Smrg*** binutils to release 2.9.1 or newer.  Another option is to modify
87871b12faf6Smrg*** your PATH or compiler configuration so that the native linker is
87881b12faf6Smrg*** used, and then restart.
878932b578d3Smrg
87901b12faf6Smrg_LT_EOF
87911b12faf6Smrg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
87921b12faf6Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
87931b12faf6Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
87941b12faf6Smrg      else
87951b12faf6Smrg	ld_shlibs=no
87961b12faf6Smrg      fi
87971b12faf6Smrg      ;;
879832b578d3Smrg
87991b12faf6Smrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
88001b12faf6Smrg      case `$LD -v 2>&1` in
88011b12faf6Smrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
88021b12faf6Smrg	ld_shlibs=no
88031b12faf6Smrg	cat <<_LT_EOF 1>&2
880432b578d3Smrg
88051b12faf6Smrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
88061b12faf6Smrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
88071b12faf6Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
88081b12faf6Smrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
88091b12faf6Smrg*** your PATH or compiler configuration so that the native linker is
88101b12faf6Smrg*** used, and then restart.
881132b578d3Smrg
88121b12faf6Smrg_LT_EOF
88131b12faf6Smrg	;;
88141b12faf6Smrg	*)
88151b12faf6Smrg	  # For security reasons, it is highly recommended that you always
88161b12faf6Smrg	  # use absolute paths for naming shared libraries, and exclude the
88171b12faf6Smrg	  # DT_RUNPATH tag from executables and libraries.  But doing so
88181b12faf6Smrg	  # requires that you compile everything twice, which is a pain.
88191b12faf6Smrg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
88201b12faf6Smrg	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
88211b12faf6Smrg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
88221b12faf6Smrg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
88231b12faf6Smrg	  else
88241b12faf6Smrg	    ld_shlibs=no
88251b12faf6Smrg	  fi
88261b12faf6Smrg	;;
88271b12faf6Smrg      esac
88281b12faf6Smrg      ;;
882932b578d3Smrg
88301b12faf6Smrg    sunos4*)
88311b12faf6Smrg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
88321b12faf6Smrg      wlarc=
88331b12faf6Smrg      hardcode_direct=yes
88341b12faf6Smrg      hardcode_shlibpath_var=no
88351b12faf6Smrg      ;;
883632b578d3Smrg
88371b12faf6Smrg    *)
88381b12faf6Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
88391b12faf6Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
88401b12faf6Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
88411b12faf6Smrg      else
88421b12faf6Smrg	ld_shlibs=no
88431b12faf6Smrg      fi
88441b12faf6Smrg      ;;
88451b12faf6Smrg    esac
884632b578d3Smrg
88471b12faf6Smrg    if test "$ld_shlibs" = no; then
88481b12faf6Smrg      runpath_var=
88491b12faf6Smrg      hardcode_libdir_flag_spec=
88501b12faf6Smrg      export_dynamic_flag_spec=
88511b12faf6Smrg      whole_archive_flag_spec=
88521b12faf6Smrg    fi
88531b12faf6Smrg  else
88541b12faf6Smrg    # PORTME fill in a description of your system's linker (not GNU ld)
88551b12faf6Smrg    case $host_os in
88561b12faf6Smrg    aix3*)
88571b12faf6Smrg      allow_undefined_flag=unsupported
88581b12faf6Smrg      always_export_symbols=yes
88591b12faf6Smrg      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'
88601b12faf6Smrg      # Note: this linker hardcodes the directories in LIBPATH if there
88611b12faf6Smrg      # are no directories specified by -L.
88621b12faf6Smrg      hardcode_minus_L=yes
88631b12faf6Smrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
88641b12faf6Smrg	# Neither direct hardcoding nor static linking is supported with a
88651b12faf6Smrg	# broken collect2.
88661b12faf6Smrg	hardcode_direct=unsupported
88671b12faf6Smrg      fi
88681b12faf6Smrg      ;;
886932b578d3Smrg
88701b12faf6Smrg    aix[4-9]*)
88711b12faf6Smrg      if test "$host_cpu" = ia64; then
88721b12faf6Smrg	# On IA64, the linker does run time linking by default, so we don't
88731b12faf6Smrg	# have to do anything special.
88741b12faf6Smrg	aix_use_runtimelinking=no
88751b12faf6Smrg	exp_sym_flag='-Bexport'
88761b12faf6Smrg	no_entry_flag=""
88771b12faf6Smrg      else
88781b12faf6Smrg	# If we're using GNU nm, then we don't want the "-C" option.
88791b12faf6Smrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
88801b12faf6Smrg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
88811b12faf6Smrg	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
88821b12faf6Smrg	else
88831b12faf6Smrg	  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'
88841b12faf6Smrg	fi
88851b12faf6Smrg	aix_use_runtimelinking=no
888632b578d3Smrg
88871b12faf6Smrg	# Test if we are trying to use run time linking or normal
88881b12faf6Smrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
88891b12faf6Smrg	# need to do runtime linking.
88901b12faf6Smrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
88911b12faf6Smrg	  for ld_flag in $LDFLAGS; do
88921b12faf6Smrg	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
88931b12faf6Smrg	    aix_use_runtimelinking=yes
88941b12faf6Smrg	    break
88951b12faf6Smrg	  fi
88961b12faf6Smrg	  done
88971b12faf6Smrg	  ;;
88981b12faf6Smrg	esac
889932b578d3Smrg
89001b12faf6Smrg	exp_sym_flag='-bexport'
89011b12faf6Smrg	no_entry_flag='-bnoentry'
89021b12faf6Smrg      fi
890332b578d3Smrg
89041b12faf6Smrg      # When large executables or shared objects are built, AIX ld can
89051b12faf6Smrg      # have problems creating the table of contents.  If linking a library
89061b12faf6Smrg      # or program results in "error TOC overflow" add -mminimal-toc to
89071b12faf6Smrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
89081b12faf6Smrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
890932b578d3Smrg
89101b12faf6Smrg      archive_cmds=''
89111b12faf6Smrg      hardcode_direct=yes
89121b12faf6Smrg      hardcode_direct_absolute=yes
89131b12faf6Smrg      hardcode_libdir_separator=':'
89141b12faf6Smrg      link_all_deplibs=yes
89151b12faf6Smrg      file_list_spec='${wl}-f,'
891632b578d3Smrg
89171b12faf6Smrg      if test "$GCC" = yes; then
89181b12faf6Smrg	case $host_os in aix4.[012]|aix4.[012].*)
89191b12faf6Smrg	# We only want to do this on AIX 4.2 and lower, the check
89201b12faf6Smrg	# below for broken collect2 doesn't work under 4.3+
89211b12faf6Smrg	  collect2name=`${CC} -print-prog-name=collect2`
89221b12faf6Smrg	  if test -f "$collect2name" &&
89231b12faf6Smrg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
89241b12faf6Smrg	  then
89251b12faf6Smrg	  # We have reworked collect2
89261b12faf6Smrg	  :
89271b12faf6Smrg	  else
89281b12faf6Smrg	  # We have old collect2
89291b12faf6Smrg	  hardcode_direct=unsupported
89301b12faf6Smrg	  # It fails to find uninstalled libraries when the uninstalled
89311b12faf6Smrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
89321b12faf6Smrg	  # to unsupported forces relinking
89331b12faf6Smrg	  hardcode_minus_L=yes
89341b12faf6Smrg	  hardcode_libdir_flag_spec='-L$libdir'
89351b12faf6Smrg	  hardcode_libdir_separator=
89361b12faf6Smrg	  fi
89371b12faf6Smrg	  ;;
89381b12faf6Smrg	esac
89391b12faf6Smrg	shared_flag='-shared'
89401b12faf6Smrg	if test "$aix_use_runtimelinking" = yes; then
89411b12faf6Smrg	  shared_flag="$shared_flag "'${wl}-G'
89421b12faf6Smrg	fi
89431b12faf6Smrg	link_all_deplibs=no
89441b12faf6Smrg      else
89451b12faf6Smrg	# not using gcc
89461b12faf6Smrg	if test "$host_cpu" = ia64; then
89471b12faf6Smrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
89481b12faf6Smrg	# chokes on -Wl,-G. The following line is correct:
89491b12faf6Smrg	  shared_flag='-G'
89501b12faf6Smrg	else
89511b12faf6Smrg	  if test "$aix_use_runtimelinking" = yes; then
89521b12faf6Smrg	    shared_flag='${wl}-G'
89531b12faf6Smrg	  else
89541b12faf6Smrg	    shared_flag='${wl}-bM:SRE'
89551b12faf6Smrg	  fi
89561b12faf6Smrg	fi
89571b12faf6Smrg      fi
895832b578d3Smrg
89591b12faf6Smrg      export_dynamic_flag_spec='${wl}-bexpall'
89601b12faf6Smrg      # It seems that -bexpall does not export symbols beginning with
89611b12faf6Smrg      # underscore (_), so it is better to generate a list of symbols to export.
89621b12faf6Smrg      always_export_symbols=yes
89631b12faf6Smrg      if test "$aix_use_runtimelinking" = yes; then
89641b12faf6Smrg	# Warning - without using the other runtime loading flags (-brtl),
89651b12faf6Smrg	# -berok will link without error, but may produce a broken library.
89661b12faf6Smrg	allow_undefined_flag='-berok'
89671b12faf6Smrg        # Determine the default libpath from the value encoded in an
89681b12faf6Smrg        # empty executable.
89691b12faf6Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89701b12faf6Smrg/* end confdefs.h.  */
897132b578d3Smrg
89721b12faf6Smrgint
89731b12faf6Smrgmain ()
89741b12faf6Smrg{
897532b578d3Smrg
89761b12faf6Smrg  ;
89771b12faf6Smrg  return 0;
89781b12faf6Smrg}
89791b12faf6Smrg_ACEOF
89801b12faf6Smrgif ac_fn_c_try_link "$LINENO"; then :
898132b578d3Smrg
89821b12faf6Smrglt_aix_libpath_sed='
89831b12faf6Smrg    /Import File Strings/,/^$/ {
89841b12faf6Smrg	/^0/ {
89851b12faf6Smrg	    s/^0  *\(.*\)$/\1/
89861b12faf6Smrg	    p
89871b12faf6Smrg	}
89881b12faf6Smrg    }'
89891b12faf6Smrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
89901b12faf6Smrg# Check for a 64-bit object if we didn't find anything.
89911b12faf6Smrgif test -z "$aix_libpath"; then
89921b12faf6Smrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
89931b12faf6Smrgfi
89941b12faf6Smrgfi
89951b12faf6Smrgrm -f core conftest.err conftest.$ac_objext \
89961b12faf6Smrg    conftest$ac_exeext conftest.$ac_ext
89971b12faf6Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
899832b578d3Smrg
89991b12faf6Smrg        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
90001b12faf6Smrg        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
90011b12faf6Smrg      else
90021b12faf6Smrg	if test "$host_cpu" = ia64; then
90031b12faf6Smrg	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
90041b12faf6Smrg	  allow_undefined_flag="-z nodefs"
90051b12faf6Smrg	  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"
90061b12faf6Smrg	else
90071b12faf6Smrg	 # Determine the default libpath from the value encoded in an
90081b12faf6Smrg	 # empty executable.
90091b12faf6Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90101b12faf6Smrg/* end confdefs.h.  */
901132b578d3Smrg
90121b12faf6Smrgint
90131b12faf6Smrgmain ()
90141b12faf6Smrg{
901532b578d3Smrg
90161b12faf6Smrg  ;
90171b12faf6Smrg  return 0;
90181b12faf6Smrg}
90191b12faf6Smrg_ACEOF
90201b12faf6Smrgif ac_fn_c_try_link "$LINENO"; then :
902132b578d3Smrg
90221b12faf6Smrglt_aix_libpath_sed='
90231b12faf6Smrg    /Import File Strings/,/^$/ {
90241b12faf6Smrg	/^0/ {
90251b12faf6Smrg	    s/^0  *\(.*\)$/\1/
90261b12faf6Smrg	    p
90271b12faf6Smrg	}
90281b12faf6Smrg    }'
90291b12faf6Smrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
90301b12faf6Smrg# Check for a 64-bit object if we didn't find anything.
90311b12faf6Smrgif test -z "$aix_libpath"; then
90321b12faf6Smrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
90331b12faf6Smrgfi
90341b12faf6Smrgfi
90351b12faf6Smrgrm -f core conftest.err conftest.$ac_objext \
90361b12faf6Smrg    conftest$ac_exeext conftest.$ac_ext
90371b12faf6Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
903832b578d3Smrg
90391b12faf6Smrg	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
90401b12faf6Smrg	  # Warning - without using the other run time loading flags,
90411b12faf6Smrg	  # -berok will link without error, but may produce a broken library.
90421b12faf6Smrg	  no_undefined_flag=' ${wl}-bernotok'
90431b12faf6Smrg	  allow_undefined_flag=' ${wl}-berok'
90441b12faf6Smrg	  # Exported symbols can be pulled into shared objects from archives
90451b12faf6Smrg	  whole_archive_flag_spec='$convenience'
90461b12faf6Smrg	  archive_cmds_need_lc=yes
90471b12faf6Smrg	  # This is similar to how AIX traditionally builds its shared libraries.
90481b12faf6Smrg	  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'
90491b12faf6Smrg	fi
90501b12faf6Smrg      fi
90511b12faf6Smrg      ;;
905232b578d3Smrg
90531b12faf6Smrg    amigaos*)
90541b12faf6Smrg      case $host_cpu in
90551b12faf6Smrg      powerpc)
90561b12faf6Smrg            # see comment about AmigaOS4 .so support
90571b12faf6Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
90581b12faf6Smrg            archive_expsym_cmds=''
90591b12faf6Smrg        ;;
90601b12faf6Smrg      m68k)
90611b12faf6Smrg            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)'
90621b12faf6Smrg            hardcode_libdir_flag_spec='-L$libdir'
90631b12faf6Smrg            hardcode_minus_L=yes
90641b12faf6Smrg        ;;
90651b12faf6Smrg      esac
90661b12faf6Smrg      ;;
906732b578d3Smrg
90681b12faf6Smrg    bsdi[45]*)
90691b12faf6Smrg      export_dynamic_flag_spec=-rdynamic
90701b12faf6Smrg      ;;
907132b578d3Smrg
90721b12faf6Smrg    cygwin* | mingw* | pw32* | cegcc*)
90731b12faf6Smrg      # When not using gcc, we currently assume that we are using
90741b12faf6Smrg      # Microsoft Visual C++.
90751b12faf6Smrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
90761b12faf6Smrg      # no search path for DLLs.
90771b12faf6Smrg      hardcode_libdir_flag_spec=' '
90781b12faf6Smrg      allow_undefined_flag=unsupported
90791b12faf6Smrg      # Tell ltmain to make .lib files, not .a files.
90801b12faf6Smrg      libext=lib
90811b12faf6Smrg      # Tell ltmain to make .dll files, not .so files.
90821b12faf6Smrg      shrext_cmds=".dll"
90831b12faf6Smrg      # FIXME: Setting linknames here is a bad hack.
90841b12faf6Smrg      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
90851b12faf6Smrg      # The linker will automatically build a .lib file if we build a DLL.
90861b12faf6Smrg      old_archive_from_new_cmds='true'
90871b12faf6Smrg      # FIXME: Should let the user specify the lib program.
90881b12faf6Smrg      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
90891b12faf6Smrg      fix_srcfile_path='`cygpath -w "$srcfile"`'
90901b12faf6Smrg      enable_shared_with_static_runtimes=yes
90911b12faf6Smrg      ;;
909232b578d3Smrg
90931b12faf6Smrg    darwin* | rhapsody*)
909432b578d3Smrg
909532b578d3Smrg
90961b12faf6Smrg  archive_cmds_need_lc=no
90971b12faf6Smrg  hardcode_direct=no
90981b12faf6Smrg  hardcode_automatic=yes
90991b12faf6Smrg  hardcode_shlibpath_var=unsupported
91001b12faf6Smrg  whole_archive_flag_spec=''
91011b12faf6Smrg  link_all_deplibs=yes
91021b12faf6Smrg  allow_undefined_flag="$_lt_dar_allow_undefined"
91031b12faf6Smrg  case $cc_basename in
91041b12faf6Smrg     ifort*) _lt_dar_can_shared=yes ;;
91051b12faf6Smrg     *) _lt_dar_can_shared=$GCC ;;
910632b578d3Smrg  esac
91071b12faf6Smrg  if test "$_lt_dar_can_shared" = "yes"; then
91081b12faf6Smrg    output_verbose_link_cmd=echo
91091b12faf6Smrg    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
91101b12faf6Smrg    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
91111b12faf6Smrg    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}"
91121b12faf6Smrg    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}"
911332b578d3Smrg
91141b12faf6Smrg  else
91151b12faf6Smrg  ld_shlibs=no
91161b12faf6Smrg  fi
911732b578d3Smrg
91181b12faf6Smrg      ;;
911932b578d3Smrg
91201b12faf6Smrg    dgux*)
91211b12faf6Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
91221b12faf6Smrg      hardcode_libdir_flag_spec='-L$libdir'
91231b12faf6Smrg      hardcode_shlibpath_var=no
91241b12faf6Smrg      ;;
912532b578d3Smrg
91261b12faf6Smrg    freebsd1*)
91271b12faf6Smrg      ld_shlibs=no
91281b12faf6Smrg      ;;
912932b578d3Smrg
91301b12faf6Smrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
91311b12faf6Smrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
91321b12faf6Smrg    # does not break anything, and helps significantly (at the cost of a little
91331b12faf6Smrg    # extra space).
91341b12faf6Smrg    freebsd2.2*)
91351b12faf6Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
91361b12faf6Smrg      hardcode_libdir_flag_spec='-R$libdir'
91371b12faf6Smrg      hardcode_direct=yes
91381b12faf6Smrg      hardcode_shlibpath_var=no
91391b12faf6Smrg      ;;
914032b578d3Smrg
91411b12faf6Smrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
91421b12faf6Smrg    freebsd2*)
91431b12faf6Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
91441b12faf6Smrg      hardcode_direct=yes
91451b12faf6Smrg      hardcode_minus_L=yes
91461b12faf6Smrg      hardcode_shlibpath_var=no
914732b578d3Smrg      ;;
914832b578d3Smrg
91491b12faf6Smrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
91501b12faf6Smrg    freebsd* | dragonfly*)
91511b12faf6Smrg      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
91521b12faf6Smrg      hardcode_libdir_flag_spec='-R$libdir'
91531b12faf6Smrg      hardcode_direct=yes
91541b12faf6Smrg      hardcode_shlibpath_var=no
91551b12faf6Smrg      ;;
915632b578d3Smrg
91571b12faf6Smrg    hpux9*)
91581b12faf6Smrg      if test "$GCC" = yes; then
91591b12faf6Smrg	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'
91601b12faf6Smrg      else
91611b12faf6Smrg	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'
91621b12faf6Smrg      fi
91631b12faf6Smrg      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
91641b12faf6Smrg      hardcode_libdir_separator=:
91651b12faf6Smrg      hardcode_direct=yes
916632b578d3Smrg
91671b12faf6Smrg      # hardcode_minus_L: Not really in the search PATH,
91681b12faf6Smrg      # but as the default location of the library.
91691b12faf6Smrg      hardcode_minus_L=yes
91701b12faf6Smrg      export_dynamic_flag_spec='${wl}-E'
91711b12faf6Smrg      ;;
917232b578d3Smrg
91731b12faf6Smrg    hpux10*)
91741b12faf6Smrg      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
91751b12faf6Smrg	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
91761b12faf6Smrg      else
91771b12faf6Smrg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
91781b12faf6Smrg      fi
91791b12faf6Smrg      if test "$with_gnu_ld" = no; then
91801b12faf6Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
91811b12faf6Smrg	hardcode_libdir_flag_spec_ld='+b $libdir'
91821b12faf6Smrg	hardcode_libdir_separator=:
91831b12faf6Smrg	hardcode_direct=yes
91841b12faf6Smrg	hardcode_direct_absolute=yes
91851b12faf6Smrg	export_dynamic_flag_spec='${wl}-E'
91861b12faf6Smrg	# hardcode_minus_L: Not really in the search PATH,
91871b12faf6Smrg	# but as the default location of the library.
91881b12faf6Smrg	hardcode_minus_L=yes
91891b12faf6Smrg      fi
91901b12faf6Smrg      ;;
919132b578d3Smrg
91921b12faf6Smrg    hpux11*)
91931b12faf6Smrg      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
91941b12faf6Smrg	case $host_cpu in
91951b12faf6Smrg	hppa*64*)
91961b12faf6Smrg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
91971b12faf6Smrg	  ;;
91981b12faf6Smrg	ia64*)
91991b12faf6Smrg	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
92001b12faf6Smrg	  ;;
92011b12faf6Smrg	*)
92021b12faf6Smrg	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
92031b12faf6Smrg	  ;;
92041b12faf6Smrg	esac
92051b12faf6Smrg      else
92061b12faf6Smrg	case $host_cpu in
92071b12faf6Smrg	hppa*64*)
92081b12faf6Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
92091b12faf6Smrg	  ;;
92101b12faf6Smrg	ia64*)
92111b12faf6Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
92121b12faf6Smrg	  ;;
92131b12faf6Smrg	*)
92141b12faf6Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
92151b12faf6Smrg	  ;;
92161b12faf6Smrg	esac
92171b12faf6Smrg      fi
92181b12faf6Smrg      if test "$with_gnu_ld" = no; then
92191b12faf6Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
92201b12faf6Smrg	hardcode_libdir_separator=:
922132b578d3Smrg
92221b12faf6Smrg	case $host_cpu in
92231b12faf6Smrg	hppa*64*|ia64*)
92241b12faf6Smrg	  hardcode_direct=no
92251b12faf6Smrg	  hardcode_shlibpath_var=no
92261b12faf6Smrg	  ;;
92271b12faf6Smrg	*)
92281b12faf6Smrg	  hardcode_direct=yes
92291b12faf6Smrg	  hardcode_direct_absolute=yes
92301b12faf6Smrg	  export_dynamic_flag_spec='${wl}-E'
923132b578d3Smrg
92321b12faf6Smrg	  # hardcode_minus_L: Not really in the search PATH,
92331b12faf6Smrg	  # but as the default location of the library.
92341b12faf6Smrg	  hardcode_minus_L=yes
92351b12faf6Smrg	  ;;
92361b12faf6Smrg	esac
92371b12faf6Smrg      fi
92381b12faf6Smrg      ;;
923932b578d3Smrg
92401b12faf6Smrg    irix5* | irix6* | nonstopux*)
92411b12faf6Smrg      if test "$GCC" = yes; then
92421b12faf6Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
92431b12faf6Smrg	# Try to use the -exported_symbol ld option, if it does not
92441b12faf6Smrg	# work, assume that -exports_file does not work either and
92451b12faf6Smrg	# implicitly export all symbols.
92461b12faf6Smrg        save_LDFLAGS="$LDFLAGS"
92471b12faf6Smrg        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
92481b12faf6Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92491b12faf6Smrg/* end confdefs.h.  */
92501b12faf6Smrgint foo(void) {}
92511b12faf6Smrg_ACEOF
92521b12faf6Smrgif ac_fn_c_try_link "$LINENO"; then :
92531b12faf6Smrg  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
925432b578d3Smrg
925532b578d3Smrgfi
92561b12faf6Smrgrm -f core conftest.err conftest.$ac_objext \
92571b12faf6Smrg    conftest$ac_exeext conftest.$ac_ext
92581b12faf6Smrg        LDFLAGS="$save_LDFLAGS"
925932b578d3Smrg      else
92601b12faf6Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
92611b12faf6Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
926232b578d3Smrg      fi
92631b12faf6Smrg      archive_cmds_need_lc='no'
92641b12faf6Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
92651b12faf6Smrg      hardcode_libdir_separator=:
92661b12faf6Smrg      inherit_rpath=yes
92671b12faf6Smrg      link_all_deplibs=yes
92681b12faf6Smrg      ;;
926932b578d3Smrg
92701b12faf6Smrg    netbsd* | netbsdelf*-gnu)
92711b12faf6Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
92721b12faf6Smrg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
92731b12faf6Smrg      else
92741b12faf6Smrg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
92751b12faf6Smrg      fi
92761b12faf6Smrg      hardcode_libdir_flag_spec='-R$libdir'
92771b12faf6Smrg      hardcode_direct=yes
92781b12faf6Smrg      hardcode_shlibpath_var=no
92791b12faf6Smrg      ;;
928032b578d3Smrg
92811b12faf6Smrg    newsos6)
92821b12faf6Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
92831b12faf6Smrg      hardcode_direct=yes
92841b12faf6Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
92851b12faf6Smrg      hardcode_libdir_separator=:
92861b12faf6Smrg      hardcode_shlibpath_var=no
92871b12faf6Smrg      ;;
928832b578d3Smrg
92891b12faf6Smrg    *nto* | *qnx*)
92901b12faf6Smrg      ;;
929132b578d3Smrg
92921b12faf6Smrg    openbsd*)
92931b12faf6Smrg      if test -f /usr/libexec/ld.so; then
92941b12faf6Smrg	hardcode_direct=yes
92951b12faf6Smrg	hardcode_shlibpath_var=no
92961b12faf6Smrg	hardcode_direct_absolute=yes
92971b12faf6Smrg	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
92981b12faf6Smrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
92991b12faf6Smrg	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
93001b12faf6Smrg	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
93011b12faf6Smrg	  export_dynamic_flag_spec='${wl}-E'
93021b12faf6Smrg	else
93031b12faf6Smrg	  case $host_os in
93041b12faf6Smrg	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
93051b12faf6Smrg	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
93061b12faf6Smrg	     hardcode_libdir_flag_spec='-R$libdir'
93071b12faf6Smrg	     ;;
93081b12faf6Smrg	   *)
93091b12faf6Smrg	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
93101b12faf6Smrg	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
93111b12faf6Smrg	     ;;
93121b12faf6Smrg	  esac
93131b12faf6Smrg	fi
931432b578d3Smrg      else
93151b12faf6Smrg	ld_shlibs=no
931632b578d3Smrg      fi
93171b12faf6Smrg      ;;
931832b578d3Smrg
93191b12faf6Smrg    os2*)
93201b12faf6Smrg      hardcode_libdir_flag_spec='-L$libdir'
93211b12faf6Smrg      hardcode_minus_L=yes
93221b12faf6Smrg      allow_undefined_flag=unsupported
93231b12faf6Smrg      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'
93241b12faf6Smrg      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
93251b12faf6Smrg      ;;
932632b578d3Smrg
93271b12faf6Smrg    osf3*)
93281b12faf6Smrg      if test "$GCC" = yes; then
93291b12faf6Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
93301b12faf6Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
933132b578d3Smrg      else
93321b12faf6Smrg	allow_undefined_flag=' -expect_unresolved \*'
93331b12faf6Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
933432b578d3Smrg      fi
93351b12faf6Smrg      archive_cmds_need_lc='no'
93361b12faf6Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
93371b12faf6Smrg      hardcode_libdir_separator=:
933832b578d3Smrg      ;;
93391b12faf6Smrg
93401b12faf6Smrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
93411b12faf6Smrg      if test "$GCC" = yes; then
93421b12faf6Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
93431b12faf6Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
93441b12faf6Smrg	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
934532b578d3Smrg      else
93461b12faf6Smrg	allow_undefined_flag=' -expect_unresolved \*'
93471b12faf6Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
93481b12faf6Smrg	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~
93491b12faf6Smrg	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
935032b578d3Smrg
93511b12faf6Smrg	# Both c and cxx compiler support -rpath directly
93521b12faf6Smrg	hardcode_libdir_flag_spec='-rpath $libdir'
93531b12faf6Smrg      fi
93541b12faf6Smrg      archive_cmds_need_lc='no'
93551b12faf6Smrg      hardcode_libdir_separator=:
935632b578d3Smrg      ;;
935732b578d3Smrg
93581b12faf6Smrg    solaris*)
93591b12faf6Smrg      no_undefined_flag=' -z defs'
93601b12faf6Smrg      if test "$GCC" = yes; then
93611b12faf6Smrg	wlarc='${wl}'
93621b12faf6Smrg	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
93631b12faf6Smrg	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
93641b12faf6Smrg	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
93651b12faf6Smrg      else
93661b12faf6Smrg	case `$CC -V 2>&1` in
93671b12faf6Smrg	*"Compilers 5.0"*)
93681b12faf6Smrg	  wlarc=''
93691b12faf6Smrg	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
93701b12faf6Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
93711b12faf6Smrg	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
937232b578d3Smrg	  ;;
937332b578d3Smrg	*)
93741b12faf6Smrg	  wlarc='${wl}'
93751b12faf6Smrg	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
93761b12faf6Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
93771b12faf6Smrg	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
937832b578d3Smrg	  ;;
937932b578d3Smrg	esac
93801b12faf6Smrg      fi
93811b12faf6Smrg      hardcode_libdir_flag_spec='-R$libdir'
93821b12faf6Smrg      hardcode_shlibpath_var=no
93831b12faf6Smrg      case $host_os in
93841b12faf6Smrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
938532b578d3Smrg      *)
93861b12faf6Smrg	# The compiler driver will combine and reorder linker options,
93871b12faf6Smrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
93881b12faf6Smrg	# but is careful enough not to reorder.
93891b12faf6Smrg	# Supported since Solaris 2.6 (maybe 2.5.1?)
93901b12faf6Smrg	if test "$GCC" = yes; then
93911b12faf6Smrg	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
939232b578d3Smrg	else
93931b12faf6Smrg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
939432b578d3Smrg	fi
939532b578d3Smrg	;;
93961b12faf6Smrg      esac
93971b12faf6Smrg      link_all_deplibs=yes
93981b12faf6Smrg      ;;
93991b12faf6Smrg
94001b12faf6Smrg    sunos4*)
94011b12faf6Smrg      if test "x$host_vendor" = xsequent; then
94021b12faf6Smrg	# Use $CC to link under sequent, because it throws in some extra .o
94031b12faf6Smrg	# files that make .init and .fini sections work.
94041b12faf6Smrg	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
94051b12faf6Smrg      else
94061b12faf6Smrg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
94071b12faf6Smrg      fi
94081b12faf6Smrg      hardcode_libdir_flag_spec='-L$libdir'
94091b12faf6Smrg      hardcode_direct=yes
94101b12faf6Smrg      hardcode_minus_L=yes
94111b12faf6Smrg      hardcode_shlibpath_var=no
94121b12faf6Smrg      ;;
94131b12faf6Smrg
94141b12faf6Smrg    sysv4)
94151b12faf6Smrg      case $host_vendor in
94161b12faf6Smrg	sni)
94171b12faf6Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
94181b12faf6Smrg	  hardcode_direct=yes # is this really true???
941932b578d3Smrg	;;
94201b12faf6Smrg	siemens)
94211b12faf6Smrg	  ## LD is ld it makes a PLAMLIB
94221b12faf6Smrg	  ## CC just makes a GrossModule.
94231b12faf6Smrg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
94241b12faf6Smrg	  reload_cmds='$CC -r -o $output$reload_objs'
94251b12faf6Smrg	  hardcode_direct=no
942632b578d3Smrg        ;;
94271b12faf6Smrg	motorola)
94281b12faf6Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
94291b12faf6Smrg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
943032b578d3Smrg	;;
94311b12faf6Smrg      esac
94321b12faf6Smrg      runpath_var='LD_RUN_PATH'
94331b12faf6Smrg      hardcode_shlibpath_var=no
94341b12faf6Smrg      ;;
94351b12faf6Smrg
94361b12faf6Smrg    sysv4.3*)
94371b12faf6Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
94381b12faf6Smrg      hardcode_shlibpath_var=no
94391b12faf6Smrg      export_dynamic_flag_spec='-Bexport'
94401b12faf6Smrg      ;;
944132b578d3Smrg
94421b12faf6Smrg    sysv4*MP*)
94431b12faf6Smrg      if test -d /usr/nec; then
94441b12faf6Smrg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
94451b12faf6Smrg	hardcode_shlibpath_var=no
94461b12faf6Smrg	runpath_var=LD_RUN_PATH
94471b12faf6Smrg	hardcode_runpath_var=yes
94481b12faf6Smrg	ld_shlibs=yes
94491b12faf6Smrg      fi
94501b12faf6Smrg      ;;
945132b578d3Smrg
94521b12faf6Smrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
94531b12faf6Smrg      no_undefined_flag='${wl}-z,text'
94541b12faf6Smrg      archive_cmds_need_lc=no
94551b12faf6Smrg      hardcode_shlibpath_var=no
94561b12faf6Smrg      runpath_var='LD_RUN_PATH'
945732b578d3Smrg
94581b12faf6Smrg      if test "$GCC" = yes; then
94591b12faf6Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94601b12faf6Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94611b12faf6Smrg      else
94621b12faf6Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94631b12faf6Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94641b12faf6Smrg      fi
94651b12faf6Smrg      ;;
946632b578d3Smrg
94671b12faf6Smrg    sysv5* | sco3.2v5* | sco5v6*)
94681b12faf6Smrg      # Note: We can NOT use -z defs as we might desire, because we do not
94691b12faf6Smrg      # link with -lc, and that would cause any symbols used from libc to
94701b12faf6Smrg      # always be unresolved, which means just about no library would
94711b12faf6Smrg      # ever link correctly.  If we're not using GNU ld we use -z text
94721b12faf6Smrg      # though, which does catch some bad symbols but isn't as heavy-handed
94731b12faf6Smrg      # as -z defs.
94741b12faf6Smrg      no_undefined_flag='${wl}-z,text'
94751b12faf6Smrg      allow_undefined_flag='${wl}-z,nodefs'
94761b12faf6Smrg      archive_cmds_need_lc=no
94771b12faf6Smrg      hardcode_shlibpath_var=no
94781b12faf6Smrg      hardcode_libdir_flag_spec='${wl}-R,$libdir'
94791b12faf6Smrg      hardcode_libdir_separator=':'
94801b12faf6Smrg      link_all_deplibs=yes
94811b12faf6Smrg      export_dynamic_flag_spec='${wl}-Bexport'
94821b12faf6Smrg      runpath_var='LD_RUN_PATH'
948332b578d3Smrg
94841b12faf6Smrg      if test "$GCC" = yes; then
94851b12faf6Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94861b12faf6Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94871b12faf6Smrg      else
94881b12faf6Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94891b12faf6Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94901b12faf6Smrg      fi
94911b12faf6Smrg      ;;
949232b578d3Smrg
94931b12faf6Smrg    uts4*)
94941b12faf6Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
94951b12faf6Smrg      hardcode_libdir_flag_spec='-L$libdir'
94961b12faf6Smrg      hardcode_shlibpath_var=no
94971b12faf6Smrg      ;;
949832b578d3Smrg
94991b12faf6Smrg    *)
95001b12faf6Smrg      ld_shlibs=no
95011b12faf6Smrg      ;;
950232b578d3Smrg    esac
950332b578d3Smrg
95041b12faf6Smrg    if test x$host_vendor = xsni; then
95051b12faf6Smrg      case $host in
95061b12faf6Smrg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
95071b12faf6Smrg	export_dynamic_flag_spec='${wl}-Blargedynsym'
95081b12faf6Smrg	;;
95091b12faf6Smrg      esac
95101b12faf6Smrg    fi
95111b12faf6Smrg  fi
951232b578d3Smrg
95131b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
95141b12faf6Smrg$as_echo "$ld_shlibs" >&6; }
95151b12faf6Smrgtest "$ld_shlibs" = no && can_build_shared=no
951632b578d3Smrg
95171b12faf6Smrgwith_gnu_ld=$with_gnu_ld
951832b578d3Smrg
951932b578d3Smrg
952032b578d3Smrg
952132b578d3Smrg
952232b578d3Smrg
952332b578d3Smrg
952432b578d3Smrg
952532b578d3Smrg
952632b578d3Smrg
952732b578d3Smrg
952832b578d3Smrg
952932b578d3Smrg
953032b578d3Smrg
953132b578d3Smrg
95322a51b5beSmrg
95331b12faf6Smrg#
95341b12faf6Smrg# Do we need to explicitly link libc?
95351b12faf6Smrg#
95361b12faf6Smrgcase "x$archive_cmds_need_lc" in
95371b12faf6Smrgx|xyes)
95381b12faf6Smrg  # Assume -lc should be added
95391b12faf6Smrg  archive_cmds_need_lc=yes
954032b578d3Smrg
95411b12faf6Smrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
95421b12faf6Smrg    case $archive_cmds in
95431b12faf6Smrg    *'~'*)
95441b12faf6Smrg      # FIXME: we may have to deal with multi-command sequences.
95452a51b5beSmrg      ;;
95461b12faf6Smrg    '$CC '*)
95471b12faf6Smrg      # Test whether the compiler implicitly links with -lc since on some
95481b12faf6Smrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
95491b12faf6Smrg      # to ld, don't add -lc before -lgcc.
95501b12faf6Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
95511b12faf6Smrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
95521b12faf6Smrg      $RM conftest*
95531b12faf6Smrg      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
95542a51b5beSmrg
95551b12faf6Smrg      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
95561b12faf6Smrg  (eval $ac_compile) 2>&5
95571b12faf6Smrg  ac_status=$?
95581b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95591b12faf6Smrg  test $ac_status = 0; } 2>conftest.err; then
95601b12faf6Smrg        soname=conftest
95611b12faf6Smrg        lib=conftest
95621b12faf6Smrg        libobjs=conftest.$ac_objext
95631b12faf6Smrg        deplibs=
95641b12faf6Smrg        wl=$lt_prog_compiler_wl
95651b12faf6Smrg	pic_flag=$lt_prog_compiler_pic
95661b12faf6Smrg        compiler_flags=-v
95671b12faf6Smrg        linker_flags=-v
95681b12faf6Smrg        verstring=
95691b12faf6Smrg        output_objdir=.
95701b12faf6Smrg        libname=conftest
95711b12faf6Smrg        lt_save_allow_undefined_flag=$allow_undefined_flag
95721b12faf6Smrg        allow_undefined_flag=
95731b12faf6Smrg        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
95741b12faf6Smrg  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
95751b12faf6Smrg  ac_status=$?
95761b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95771b12faf6Smrg  test $ac_status = 0; }
95781b12faf6Smrg        then
95791b12faf6Smrg	  archive_cmds_need_lc=no
95801b12faf6Smrg        else
95811b12faf6Smrg	  archive_cmds_need_lc=yes
95821b12faf6Smrg        fi
95831b12faf6Smrg        allow_undefined_flag=$lt_save_allow_undefined_flag
95841b12faf6Smrg      else
95851b12faf6Smrg        cat conftest.err 1>&5
95861b12faf6Smrg      fi
95871b12faf6Smrg      $RM conftest*
95881b12faf6Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
95891b12faf6Smrg$as_echo "$archive_cmds_need_lc" >&6; }
95902a51b5beSmrg      ;;
95912a51b5beSmrg    esac
95921b12faf6Smrg  fi
959332b578d3Smrg  ;;
959432b578d3Smrgesac
959532b578d3Smrg
959632b578d3Smrg
959732b578d3Smrg
959832b578d3Smrg
959932b578d3Smrg
960032b578d3Smrg
960132b578d3Smrg
960232b578d3Smrg
960332b578d3Smrg
960432b578d3Smrg
960532b578d3Smrg
960632b578d3Smrg
960732b578d3Smrg
960832b578d3Smrg
960932b578d3Smrg
961032b578d3Smrg
961132b578d3Smrg
961232b578d3Smrg
961332b578d3Smrg
961432b578d3Smrg
961532b578d3Smrg
961632b578d3Smrg
961732b578d3Smrg
961832b578d3Smrg
961932b578d3Smrg
962032b578d3Smrg
962132b578d3Smrg
96221b12faf6Smrg
96231b12faf6Smrg
96241b12faf6Smrg
96251b12faf6Smrg
96261b12faf6Smrg
96271b12faf6Smrg
96281b12faf6Smrg
96291b12faf6Smrg
96301b12faf6Smrg
96311b12faf6Smrg
96321b12faf6Smrg
96331b12faf6Smrg
96341b12faf6Smrg
96351b12faf6Smrg
96361b12faf6Smrg
96371b12faf6Smrg
96381b12faf6Smrg
96391b12faf6Smrg
96401b12faf6Smrg
96411b12faf6Smrg
96421b12faf6Smrg
96431b12faf6Smrg
96441b12faf6Smrg
96451b12faf6Smrg
96461b12faf6Smrg
96471b12faf6Smrg
96481b12faf6Smrg
96491b12faf6Smrg
96501b12faf6Smrg
96511b12faf6Smrg
96521b12faf6Smrg
96531b12faf6Smrg
96541b12faf6Smrg
96551b12faf6Smrg
96561b12faf6Smrg
96571b12faf6Smrg
96581b12faf6Smrg
96591b12faf6Smrg
96601b12faf6Smrg
96611b12faf6Smrg
96621b12faf6Smrg
96631b12faf6Smrg
96641b12faf6Smrg
96651b12faf6Smrg
96661b12faf6Smrg
96671b12faf6Smrg
96681b12faf6Smrg
96691b12faf6Smrg
96701b12faf6Smrg
96711b12faf6Smrg
96721b12faf6Smrg
96731b12faf6Smrg
96741b12faf6Smrg
96751b12faf6Smrg
96761b12faf6Smrg
96771b12faf6Smrg
96781b12faf6Smrg
96791b12faf6Smrg
96801b12faf6Smrg
96811b12faf6Smrg
96821b12faf6Smrg
96831b12faf6Smrg
96841b12faf6Smrg
96851b12faf6Smrg
96861b12faf6Smrg
96871b12faf6Smrg
96881b12faf6Smrg
96891b12faf6Smrg
96901b12faf6Smrg
96911b12faf6Smrg
96921b12faf6Smrg
96931b12faf6Smrg
96941b12faf6Smrg
96951b12faf6Smrg
96961b12faf6Smrg
96971b12faf6Smrg
96981b12faf6Smrg
96991b12faf6Smrg
97001b12faf6Smrg
97011b12faf6Smrg
97021b12faf6Smrg
97031b12faf6Smrg
97041b12faf6Smrg
97051b12faf6Smrg
97061b12faf6Smrg
97071b12faf6Smrg
97081b12faf6Smrg
97091b12faf6Smrg
97101b12faf6Smrg
97111b12faf6Smrg
97121b12faf6Smrg
97131b12faf6Smrg
97141b12faf6Smrg
97151b12faf6Smrg
97161b12faf6Smrg
97171b12faf6Smrg
97181b12faf6Smrg
97191b12faf6Smrg
97201b12faf6Smrg
97211b12faf6Smrg
97221b12faf6Smrg
97231b12faf6Smrg
97241b12faf6Smrg
97251b12faf6Smrg
97261b12faf6Smrg
97271b12faf6Smrg
97281b12faf6Smrg
97291b12faf6Smrg
97301b12faf6Smrg
97311b12faf6Smrg
97321b12faf6Smrg
97331b12faf6Smrg
97341b12faf6Smrg
97351b12faf6Smrg
97361b12faf6Smrg
97371b12faf6Smrg
97381b12faf6Smrg
97391b12faf6Smrg
97401b12faf6Smrg
97411b12faf6Smrg
97421b12faf6Smrg
97431b12faf6Smrg
97441b12faf6Smrg
97451b12faf6Smrg
97461b12faf6Smrg
97471b12faf6Smrg
97481b12faf6Smrg
97491b12faf6Smrg
97501b12faf6Smrg
97511b12faf6Smrg
97521b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
97532a51b5beSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
97541b12faf6Smrg
97551b12faf6Smrgif test "$GCC" = yes; then
97561b12faf6Smrg  case $host_os in
97571b12faf6Smrg    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
97581b12faf6Smrg    *) lt_awk_arg="/^libraries:/" ;;
97591b12faf6Smrg  esac
97601b12faf6Smrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
97611b12faf6Smrg  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
97621b12faf6Smrg    # if the path contains ";" then we assume it to be the separator
97631b12faf6Smrg    # otherwise default to the standard path separator (i.e. ":") - it is
97641b12faf6Smrg    # assumed that no part of a normal pathname contains ";" but that should
97651b12faf6Smrg    # okay in the real world where ";" in dirpaths is itself problematic.
97661b12faf6Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
97671b12faf6Smrg  else
97681b12faf6Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
97691b12faf6Smrg  fi
97701b12faf6Smrg  # Ok, now we have the path, separated by spaces, we can step through it
97711b12faf6Smrg  # and add multilib dir if necessary.
97721b12faf6Smrg  lt_tmp_lt_search_path_spec=
97731b12faf6Smrg  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
97741b12faf6Smrg  for lt_sys_path in $lt_search_path_spec; do
97751b12faf6Smrg    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
97761b12faf6Smrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
97771b12faf6Smrg    else
97781b12faf6Smrg      test -d "$lt_sys_path" && \
97791b12faf6Smrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
97801b12faf6Smrg    fi
97811b12faf6Smrg  done
97821b12faf6Smrg  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
97831b12faf6SmrgBEGIN {RS=" "; FS="/|\n";} {
97841b12faf6Smrg  lt_foo="";
97851b12faf6Smrg  lt_count=0;
97861b12faf6Smrg  for (lt_i = NF; lt_i > 0; lt_i--) {
97871b12faf6Smrg    if ($lt_i != "" && $lt_i != ".") {
97881b12faf6Smrg      if ($lt_i == "..") {
97891b12faf6Smrg        lt_count++;
97901b12faf6Smrg      } else {
97911b12faf6Smrg        if (lt_count == 0) {
97921b12faf6Smrg          lt_foo="/" $lt_i lt_foo;
97931b12faf6Smrg        } else {
97941b12faf6Smrg          lt_count--;
97951b12faf6Smrg        }
97961b12faf6Smrg      }
97971b12faf6Smrg    }
97981b12faf6Smrg  }
97991b12faf6Smrg  if (lt_foo != "") { lt_freq[lt_foo]++; }
98001b12faf6Smrg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
98011b12faf6Smrg}'`
98021b12faf6Smrg  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
98031b12faf6Smrgelse
98041b12faf6Smrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
98051b12faf6Smrgfi
980632b578d3Smrglibrary_names_spec=
980732b578d3Smrglibname_spec='lib$name'
980832b578d3Smrgsoname_spec=
980932b578d3Smrgshrext_cmds=".so"
981032b578d3Smrgpostinstall_cmds=
981132b578d3Smrgpostuninstall_cmds=
981232b578d3Smrgfinish_cmds=
981332b578d3Smrgfinish_eval=
981432b578d3Smrgshlibpath_var=
981532b578d3Smrgshlibpath_overrides_runpath=unknown
981632b578d3Smrgversion_type=none
981732b578d3Smrgdynamic_linker="$host_os ld.so"
981832b578d3Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
981932b578d3Smrgneed_lib_prefix=unknown
982032b578d3Smrghardcode_into_libs=no
982132b578d3Smrg
982232b578d3Smrg# when you set need_version to no, make sure it does not cause -set_version
982332b578d3Smrg# flags to be left without arguments
982432b578d3Smrgneed_version=unknown
982532b578d3Smrg
982632b578d3Smrgcase $host_os in
982732b578d3Smrgaix3*)
982832b578d3Smrg  version_type=linux
982932b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
983032b578d3Smrg  shlibpath_var=LIBPATH
983132b578d3Smrg
983232b578d3Smrg  # AIX 3 has no versioning support, so we append a major version to the name.
983332b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
983432b578d3Smrg  ;;
983532b578d3Smrg
98362a51b5beSmrgaix[4-9]*)
983732b578d3Smrg  version_type=linux
983832b578d3Smrg  need_lib_prefix=no
983932b578d3Smrg  need_version=no
984032b578d3Smrg  hardcode_into_libs=yes
984132b578d3Smrg  if test "$host_cpu" = ia64; then
984232b578d3Smrg    # AIX 5 supports IA64
984332b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
984432b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
984532b578d3Smrg  else
984632b578d3Smrg    # With GCC up to 2.95.x, collect2 would create an import file
984732b578d3Smrg    # for dependence libraries.  The import file would start with
984832b578d3Smrg    # the line `#! .'.  This would cause the generated library to
984932b578d3Smrg    # depend on `.', always an invalid library.  This was fixed in
985032b578d3Smrg    # development snapshots of GCC prior to 3.0.
985132b578d3Smrg    case $host_os in
985232b578d3Smrg      aix4 | aix4.[01] | aix4.[01].*)
985332b578d3Smrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
985432b578d3Smrg	   echo ' yes '
98551b12faf6Smrg	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
985632b578d3Smrg	:
985732b578d3Smrg      else
985832b578d3Smrg	can_build_shared=no
985932b578d3Smrg      fi
986032b578d3Smrg      ;;
986132b578d3Smrg    esac
986232b578d3Smrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
986332b578d3Smrg    # soname into executable. Probably we can add versioning support to
986432b578d3Smrg    # collect2, so additional links can be useful in future.
986532b578d3Smrg    if test "$aix_use_runtimelinking" = yes; then
986632b578d3Smrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
986732b578d3Smrg      # instead of lib<name>.a to let people know that these are not
986832b578d3Smrg      # typical AIX shared libraries.
986932b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
987032b578d3Smrg    else
987132b578d3Smrg      # We preserve .a as extension for shared libraries through AIX4.2
987232b578d3Smrg      # and later when we are not doing run time linking.
987332b578d3Smrg      library_names_spec='${libname}${release}.a $libname.a'
987432b578d3Smrg      soname_spec='${libname}${release}${shared_ext}$major'
987532b578d3Smrg    fi
987632b578d3Smrg    shlibpath_var=LIBPATH
987732b578d3Smrg  fi
987832b578d3Smrg  ;;
987932b578d3Smrg
988032b578d3Smrgamigaos*)
98811b12faf6Smrg  case $host_cpu in
98821b12faf6Smrg  powerpc)
98831b12faf6Smrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
98841b12faf6Smrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
98851b12faf6Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
98861b12faf6Smrg    ;;
98871b12faf6Smrg  m68k)
98881b12faf6Smrg    library_names_spec='$libname.ixlibrary $libname.a'
98891b12faf6Smrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
98901b12faf6Smrg    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
98911b12faf6Smrg    ;;
98921b12faf6Smrg  esac
989332b578d3Smrg  ;;
989432b578d3Smrg
989532b578d3Smrgbeos*)
989632b578d3Smrg  library_names_spec='${libname}${shared_ext}'
989732b578d3Smrg  dynamic_linker="$host_os ld.so"
989832b578d3Smrg  shlibpath_var=LIBRARY_PATH
989932b578d3Smrg  ;;
990032b578d3Smrg
990132b578d3Smrgbsdi[45]*)
990232b578d3Smrg  version_type=linux
990332b578d3Smrg  need_version=no
990432b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
990532b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
990632b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
990732b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
990832b578d3Smrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
990932b578d3Smrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
991032b578d3Smrg  # the default ld.so.conf also contains /usr/contrib/lib and
991132b578d3Smrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
991232b578d3Smrg  # libtool to hard-code these into programs
991332b578d3Smrg  ;;
991432b578d3Smrg
99151b12faf6Smrgcygwin* | mingw* | pw32* | cegcc*)
991632b578d3Smrg  version_type=windows
991732b578d3Smrg  shrext_cmds=".dll"
991832b578d3Smrg  need_version=no
991932b578d3Smrg  need_lib_prefix=no
992032b578d3Smrg
992132b578d3Smrg  case $GCC,$host_os in
99221b12faf6Smrg  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
992332b578d3Smrg    library_names_spec='$libname.dll.a'
992432b578d3Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
992532b578d3Smrg    postinstall_cmds='base_file=`basename \${file}`~
99261b12faf6Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
992732b578d3Smrg      dldir=$destdir/`dirname \$dlpath`~
992832b578d3Smrg      test -d \$dldir || mkdir -p \$dldir~
992932b578d3Smrg      $install_prog $dir/$dlname \$dldir/$dlname~
99301b12faf6Smrg      chmod a+x \$dldir/$dlname~
99311b12faf6Smrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
99321b12faf6Smrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
99331b12faf6Smrg      fi'
993432b578d3Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
993532b578d3Smrg      dlpath=$dir/\$dldll~
99361b12faf6Smrg       $RM \$dlpath'
993732b578d3Smrg    shlibpath_overrides_runpath=yes
993832b578d3Smrg
993932b578d3Smrg    case $host_os in
994032b578d3Smrg    cygwin*)
994132b578d3Smrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
994232b578d3Smrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
994332b578d3Smrg      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
994432b578d3Smrg      ;;
99451b12faf6Smrg    mingw* | cegcc*)
994632b578d3Smrg      # MinGW DLLs use traditional 'lib' prefix
994732b578d3Smrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
99481b12faf6Smrg      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
99491b12faf6Smrg      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
995032b578d3Smrg        # It is most probably a Windows format PATH printed by
995132b578d3Smrg        # mingw gcc, but we are running on Cygwin. Gcc prints its search
995232b578d3Smrg        # path with ; separators, and with drive letters. We can handle the
995332b578d3Smrg        # drive letters (cygwin fileutils understands them), so leave them,
995432b578d3Smrg        # especially as we might pass files found there to a mingw objdump,
995532b578d3Smrg        # which wouldn't understand a cygwinified path. Ahh.
99561b12faf6Smrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
995732b578d3Smrg      else
99581b12faf6Smrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
995932b578d3Smrg      fi
996032b578d3Smrg      ;;
996132b578d3Smrg    pw32*)
996232b578d3Smrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
996332b578d3Smrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
996432b578d3Smrg      ;;
996532b578d3Smrg    esac
996632b578d3Smrg    ;;
996732b578d3Smrg
996832b578d3Smrg  *)
996932b578d3Smrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
997032b578d3Smrg    ;;
997132b578d3Smrg  esac
997232b578d3Smrg  dynamic_linker='Win32 ld.exe'
997332b578d3Smrg  # FIXME: first we should search . and the directory the executable is in
997432b578d3Smrg  shlibpath_var=PATH
997532b578d3Smrg  ;;
997632b578d3Smrg
997732b578d3Smrgdarwin* | rhapsody*)
997832b578d3Smrg  dynamic_linker="$host_os dyld"
997932b578d3Smrg  version_type=darwin
998032b578d3Smrg  need_lib_prefix=no
998132b578d3Smrg  need_version=no
99821b12faf6Smrg  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
998332b578d3Smrg  soname_spec='${libname}${release}${major}$shared_ext'
998432b578d3Smrg  shlibpath_overrides_runpath=yes
998532b578d3Smrg  shlibpath_var=DYLD_LIBRARY_PATH
998632b578d3Smrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
99872a51b5beSmrg
99881b12faf6Smrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
998932b578d3Smrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
999032b578d3Smrg  ;;
999132b578d3Smrg
999232b578d3Smrgdgux*)
999332b578d3Smrg  version_type=linux
999432b578d3Smrg  need_lib_prefix=no
999532b578d3Smrg  need_version=no
999632b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
999732b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
999832b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
999932b578d3Smrg  ;;
1000032b578d3Smrg
1000132b578d3Smrgfreebsd1*)
1000232b578d3Smrg  dynamic_linker=no
1000332b578d3Smrg  ;;
1000432b578d3Smrg
1000532b578d3Smrgfreebsd* | dragonfly*)
1000632b578d3Smrg  # DragonFly does not have aout.  When/if they implement a new
1000732b578d3Smrg  # versioning mechanism, adjust this.
1000832b578d3Smrg  if test -x /usr/bin/objformat; then
1000932b578d3Smrg    objformat=`/usr/bin/objformat`
1001032b578d3Smrg  else
1001132b578d3Smrg    case $host_os in
1001232b578d3Smrg    freebsd[123]*) objformat=aout ;;
1001332b578d3Smrg    *) objformat=elf ;;
1001432b578d3Smrg    esac
1001532b578d3Smrg  fi
1001632b578d3Smrg  version_type=freebsd-$objformat
1001732b578d3Smrg  case $version_type in
1001832b578d3Smrg    freebsd-elf*)
1001932b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1002032b578d3Smrg      need_version=no
1002132b578d3Smrg      need_lib_prefix=no
1002232b578d3Smrg      ;;
1002332b578d3Smrg    freebsd-*)
1002432b578d3Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1002532b578d3Smrg      need_version=yes
1002632b578d3Smrg      ;;
1002732b578d3Smrg  esac
1002832b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1002932b578d3Smrg  case $host_os in
1003032b578d3Smrg  freebsd2*)
1003132b578d3Smrg    shlibpath_overrides_runpath=yes
1003232b578d3Smrg    ;;
1003332b578d3Smrg  freebsd3.[01]* | freebsdelf3.[01]*)
1003432b578d3Smrg    shlibpath_overrides_runpath=yes
1003532b578d3Smrg    hardcode_into_libs=yes
1003632b578d3Smrg    ;;
1003732b578d3Smrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
1003832b578d3Smrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1003932b578d3Smrg    shlibpath_overrides_runpath=no
1004032b578d3Smrg    hardcode_into_libs=yes
1004132b578d3Smrg    ;;
100422a51b5beSmrg  *) # from 4.6 on, and DragonFly
1004332b578d3Smrg    shlibpath_overrides_runpath=yes
1004432b578d3Smrg    hardcode_into_libs=yes
1004532b578d3Smrg    ;;
1004632b578d3Smrg  esac
1004732b578d3Smrg  ;;
1004832b578d3Smrg
1004932b578d3Smrggnu*)
1005032b578d3Smrg  version_type=linux
1005132b578d3Smrg  need_lib_prefix=no
1005232b578d3Smrg  need_version=no
1005332b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1005432b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1005532b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1005632b578d3Smrg  hardcode_into_libs=yes
1005732b578d3Smrg  ;;
1005832b578d3Smrg
1005932b578d3Smrghpux9* | hpux10* | hpux11*)
1006032b578d3Smrg  # Give a soname corresponding to the major version so that dld.sl refuses to
1006132b578d3Smrg  # link against other versions.
1006232b578d3Smrg  version_type=sunos
1006332b578d3Smrg  need_lib_prefix=no
1006432b578d3Smrg  need_version=no
1006532b578d3Smrg  case $host_cpu in
1006632b578d3Smrg  ia64*)
1006732b578d3Smrg    shrext_cmds='.so'
1006832b578d3Smrg    hardcode_into_libs=yes
1006932b578d3Smrg    dynamic_linker="$host_os dld.so"
1007032b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
1007132b578d3Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1007232b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1007332b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1007432b578d3Smrg    if test "X$HPUX_IA64_MODE" = X32; then
1007532b578d3Smrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1007632b578d3Smrg    else
1007732b578d3Smrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1007832b578d3Smrg    fi
1007932b578d3Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1008032b578d3Smrg    ;;
100811b12faf6Smrg  hppa*64*)
100821b12faf6Smrg    shrext_cmds='.sl'
100831b12faf6Smrg    hardcode_into_libs=yes
100841b12faf6Smrg    dynamic_linker="$host_os dld.sl"
100851b12faf6Smrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
100861b12faf6Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
100871b12faf6Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
100881b12faf6Smrg    soname_spec='${libname}${release}${shared_ext}$major'
100891b12faf6Smrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
100901b12faf6Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
100911b12faf6Smrg    ;;
100921b12faf6Smrg  *)
1009332b578d3Smrg    shrext_cmds='.sl'
1009432b578d3Smrg    dynamic_linker="$host_os dld.sl"
1009532b578d3Smrg    shlibpath_var=SHLIB_PATH
1009632b578d3Smrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1009732b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1009832b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1009932b578d3Smrg    ;;
1010032b578d3Smrg  esac
1010132b578d3Smrg  # HP-UX runs *really* slowly unless shared libraries are mode 555.
1010232b578d3Smrg  postinstall_cmds='chmod 555 $lib'
1010332b578d3Smrg  ;;
1010432b578d3Smrg
101052a51b5beSmrginterix[3-9]*)
1010632b578d3Smrg  version_type=linux
1010732b578d3Smrg  need_lib_prefix=no
1010832b578d3Smrg  need_version=no
1010932b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1011032b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1011132b578d3Smrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1011232b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1011332b578d3Smrg  shlibpath_overrides_runpath=no
1011432b578d3Smrg  hardcode_into_libs=yes
1011532b578d3Smrg  ;;
1011632b578d3Smrg
1011732b578d3Smrgirix5* | irix6* | nonstopux*)
1011832b578d3Smrg  case $host_os in
1011932b578d3Smrg    nonstopux*) version_type=nonstopux ;;
1012032b578d3Smrg    *)
1012132b578d3Smrg	if test "$lt_cv_prog_gnu_ld" = yes; then
1012232b578d3Smrg		version_type=linux
1012332b578d3Smrg	else
1012432b578d3Smrg		version_type=irix
1012532b578d3Smrg	fi ;;
1012632b578d3Smrg  esac
1012732b578d3Smrg  need_lib_prefix=no
1012832b578d3Smrg  need_version=no
1012932b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1013032b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1013132b578d3Smrg  case $host_os in
1013232b578d3Smrg  irix5* | nonstopux*)
1013332b578d3Smrg    libsuff= shlibsuff=
1013432b578d3Smrg    ;;
1013532b578d3Smrg  *)
1013632b578d3Smrg    case $LD in # libtool.m4 will add one of these switches to LD
1013732b578d3Smrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1013832b578d3Smrg      libsuff= shlibsuff= libmagic=32-bit;;
1013932b578d3Smrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1014032b578d3Smrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
1014132b578d3Smrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1014232b578d3Smrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
1014332b578d3Smrg    *) libsuff= shlibsuff= libmagic=never-match;;
1014432b578d3Smrg    esac
1014532b578d3Smrg    ;;
1014632b578d3Smrg  esac
1014732b578d3Smrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1014832b578d3Smrg  shlibpath_overrides_runpath=no
1014932b578d3Smrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1015032b578d3Smrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1015132b578d3Smrg  hardcode_into_libs=yes
1015232b578d3Smrg  ;;
1015332b578d3Smrg
1015432b578d3Smrg# No shared lib support for Linux oldld, aout, or coff.
1015532b578d3Smrglinux*oldld* | linux*aout* | linux*coff*)
1015632b578d3Smrg  dynamic_linker=no
1015732b578d3Smrg  ;;
1015832b578d3Smrg
1015932b578d3Smrg# This must be Linux ELF.
101601b12faf6Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
1016132b578d3Smrg  version_type=linux
1016232b578d3Smrg  need_lib_prefix=no
1016332b578d3Smrg  need_version=no
1016432b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1016532b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1016632b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1016732b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1016832b578d3Smrg  shlibpath_overrides_runpath=no
101691b12faf6Smrg  # Some binutils ld are patched to set DT_RUNPATH
101701b12faf6Smrg  save_LDFLAGS=$LDFLAGS
101711b12faf6Smrg  save_libdir=$libdir
101721b12faf6Smrg  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
101731b12faf6Smrg       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
101741b12faf6Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101751b12faf6Smrg/* end confdefs.h.  */
101761b12faf6Smrg
101771b12faf6Smrgint
101781b12faf6Smrgmain ()
101791b12faf6Smrg{
101801b12faf6Smrg
101811b12faf6Smrg  ;
101821b12faf6Smrg  return 0;
101831b12faf6Smrg}
101841b12faf6Smrg_ACEOF
101851b12faf6Smrgif ac_fn_c_try_link "$LINENO"; then :
101861b12faf6Smrg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
101871b12faf6Smrg  shlibpath_overrides_runpath=yes
101881b12faf6Smrgfi
101891b12faf6Smrgfi
101901b12faf6Smrgrm -f core conftest.err conftest.$ac_objext \
101911b12faf6Smrg    conftest$ac_exeext conftest.$ac_ext
101921b12faf6Smrg  LDFLAGS=$save_LDFLAGS
101931b12faf6Smrg  libdir=$save_libdir
101941b12faf6Smrg
1019532b578d3Smrg  # This implies no fast_install, which is unacceptable.
1019632b578d3Smrg  # Some rework will be needed to allow for fast_install
1019732b578d3Smrg  # before this can be enabled.
1019832b578d3Smrg  hardcode_into_libs=yes
1019932b578d3Smrg
1020032b578d3Smrg  # Append ld.so.conf contents to the search path
1020132b578d3Smrg  if test -f /etc/ld.so.conf; then
102021b12faf6Smrg    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;/^$/d' | tr '\n' ' '`
102031b12faf6Smrg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1020432b578d3Smrg  fi
1020532b578d3Smrg
1020632b578d3Smrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
1020732b578d3Smrg  # powerpc, because MkLinux only supported shared libraries with the
1020832b578d3Smrg  # GNU dynamic linker.  Since this was broken with cross compilers,
1020932b578d3Smrg  # most powerpc-linux boxes support dynamic linking these days and
1021032b578d3Smrg  # people can always --disable-shared, the test was removed, and we
1021132b578d3Smrg  # assume the GNU/Linux dynamic linker is in use.
1021232b578d3Smrg  dynamic_linker='GNU/Linux ld.so'
1021332b578d3Smrg  ;;
1021432b578d3Smrg
102151b12faf6Smrgnetbsdelf*-gnu)
102161b12faf6Smrg  version_type=linux
102171b12faf6Smrg  need_lib_prefix=no
102181b12faf6Smrg  need_version=no
102191b12faf6Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
102201b12faf6Smrg  soname_spec='${libname}${release}${shared_ext}$major'
102211b12faf6Smrg  shlibpath_var=LD_LIBRARY_PATH
102221b12faf6Smrg  shlibpath_overrides_runpath=no
102231b12faf6Smrg  hardcode_into_libs=yes
102241b12faf6Smrg  dynamic_linker='NetBSD ld.elf_so'
102251b12faf6Smrg  ;;
102261b12faf6Smrg
1022732b578d3Smrgnetbsd*)
1022832b578d3Smrg  version_type=sunos
1022932b578d3Smrg  need_lib_prefix=no
1023032b578d3Smrg  need_version=no
102311b12faf6Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1023232b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1023332b578d3Smrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1023432b578d3Smrg    dynamic_linker='NetBSD (a.out) ld.so'
1023532b578d3Smrg  else
1023632b578d3Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1023732b578d3Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1023832b578d3Smrg    dynamic_linker='NetBSD ld.elf_so'
1023932b578d3Smrg  fi
1024032b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1024132b578d3Smrg  shlibpath_overrides_runpath=yes
1024232b578d3Smrg  hardcode_into_libs=yes
1024332b578d3Smrg  ;;
1024432b578d3Smrg
1024532b578d3Smrgnewsos6)
1024632b578d3Smrg  version_type=linux
1024732b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1024832b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1024932b578d3Smrg  shlibpath_overrides_runpath=yes
1025032b578d3Smrg  ;;
1025132b578d3Smrg
102521b12faf6Smrg*nto* | *qnx*)
102531b12faf6Smrg  version_type=qnx
1025432b578d3Smrg  need_lib_prefix=no
1025532b578d3Smrg  need_version=no
1025632b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1025732b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1025832b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
102591b12faf6Smrg  shlibpath_overrides_runpath=no
102601b12faf6Smrg  hardcode_into_libs=yes
102611b12faf6Smrg  dynamic_linker='ldqnx.so'
1026232b578d3Smrg  ;;
1026332b578d3Smrg
1026432b578d3Smrgopenbsd*)
1026532b578d3Smrg  version_type=sunos
1026632b578d3Smrg  sys_lib_dlsearch_path_spec="/usr/lib"
1026732b578d3Smrg  need_lib_prefix=no
1026832b578d3Smrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1026932b578d3Smrg  case $host_os in
102701b12faf6Smrg    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
102711b12faf6Smrg    *)				need_version=no  ;;
1027232b578d3Smrg  esac
1027332b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1027432b578d3Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1027532b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
102761b12faf6Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1027732b578d3Smrg    case $host_os in
1027832b578d3Smrg      openbsd2.[89] | openbsd2.[89].*)
1027932b578d3Smrg	shlibpath_overrides_runpath=no
1028032b578d3Smrg	;;
1028132b578d3Smrg      *)
1028232b578d3Smrg	shlibpath_overrides_runpath=yes
1028332b578d3Smrg	;;
1028432b578d3Smrg      esac
1028532b578d3Smrg  else
1028632b578d3Smrg    shlibpath_overrides_runpath=yes
1028732b578d3Smrg  fi
1028832b578d3Smrg  ;;
1028932b578d3Smrg
1029032b578d3Smrgos2*)
1029132b578d3Smrg  libname_spec='$name'
1029232b578d3Smrg  shrext_cmds=".dll"
1029332b578d3Smrg  need_lib_prefix=no
1029432b578d3Smrg  library_names_spec='$libname${shared_ext} $libname.a'
1029532b578d3Smrg  dynamic_linker='OS/2 ld.exe'
1029632b578d3Smrg  shlibpath_var=LIBPATH
1029732b578d3Smrg  ;;
1029832b578d3Smrg
1029932b578d3Smrgosf3* | osf4* | osf5*)
1030032b578d3Smrg  version_type=osf
1030132b578d3Smrg  need_lib_prefix=no
1030232b578d3Smrg  need_version=no
1030332b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1030432b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1030532b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1030632b578d3Smrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1030732b578d3Smrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1030832b578d3Smrg  ;;
1030932b578d3Smrg
103102a51b5beSmrgrdos*)
103112a51b5beSmrg  dynamic_linker=no
103122a51b5beSmrg  ;;
103132a51b5beSmrg
1031432b578d3Smrgsolaris*)
1031532b578d3Smrg  version_type=linux
1031632b578d3Smrg  need_lib_prefix=no
1031732b578d3Smrg  need_version=no
1031832b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1031932b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1032032b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1032132b578d3Smrg  shlibpath_overrides_runpath=yes
1032232b578d3Smrg  hardcode_into_libs=yes
1032332b578d3Smrg  # ldd complains unless libraries are executable
1032432b578d3Smrg  postinstall_cmds='chmod +x $lib'
1032532b578d3Smrg  ;;
1032632b578d3Smrg
1032732b578d3Smrgsunos4*)
1032832b578d3Smrg  version_type=sunos
1032932b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1033032b578d3Smrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1033132b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1033232b578d3Smrg  shlibpath_overrides_runpath=yes
1033332b578d3Smrg  if test "$with_gnu_ld" = yes; then
1033432b578d3Smrg    need_lib_prefix=no
1033532b578d3Smrg  fi
1033632b578d3Smrg  need_version=yes
1033732b578d3Smrg  ;;
1033832b578d3Smrg
1033932b578d3Smrgsysv4 | sysv4.3*)
1034032b578d3Smrg  version_type=linux
1034132b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1034232b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1034332b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1034432b578d3Smrg  case $host_vendor in
1034532b578d3Smrg    sni)
1034632b578d3Smrg      shlibpath_overrides_runpath=no
1034732b578d3Smrg      need_lib_prefix=no
1034832b578d3Smrg      runpath_var=LD_RUN_PATH
1034932b578d3Smrg      ;;
1035032b578d3Smrg    siemens)
1035132b578d3Smrg      need_lib_prefix=no
1035232b578d3Smrg      ;;
1035332b578d3Smrg    motorola)
1035432b578d3Smrg      need_lib_prefix=no
1035532b578d3Smrg      need_version=no
1035632b578d3Smrg      shlibpath_overrides_runpath=no
1035732b578d3Smrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1035832b578d3Smrg      ;;
1035932b578d3Smrg  esac
1036032b578d3Smrg  ;;
1036132b578d3Smrg
1036232b578d3Smrgsysv4*MP*)
1036332b578d3Smrg  if test -d /usr/nec ;then
1036432b578d3Smrg    version_type=linux
1036532b578d3Smrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1036632b578d3Smrg    soname_spec='$libname${shared_ext}.$major'
1036732b578d3Smrg    shlibpath_var=LD_LIBRARY_PATH
1036832b578d3Smrg  fi
1036932b578d3Smrg  ;;
1037032b578d3Smrg
1037132b578d3Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1037232b578d3Smrg  version_type=freebsd-elf
1037332b578d3Smrg  need_lib_prefix=no
1037432b578d3Smrg  need_version=no
1037532b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1037632b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1037732b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
103781b12faf6Smrg  shlibpath_overrides_runpath=yes
1037932b578d3Smrg  hardcode_into_libs=yes
1038032b578d3Smrg  if test "$with_gnu_ld" = yes; then
1038132b578d3Smrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1038232b578d3Smrg  else
1038332b578d3Smrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1038432b578d3Smrg    case $host_os in
1038532b578d3Smrg      sco3.2v5*)
1038632b578d3Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1038732b578d3Smrg	;;
1038832b578d3Smrg    esac
1038932b578d3Smrg  fi
1039032b578d3Smrg  sys_lib_dlsearch_path_spec='/usr/lib'
1039132b578d3Smrg  ;;
1039232b578d3Smrg
103931b12faf6Smrgtpf*)
103941b12faf6Smrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
103951b12faf6Smrg  version_type=linux
103961b12faf6Smrg  need_lib_prefix=no
103971b12faf6Smrg  need_version=no
103981b12faf6Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
103991b12faf6Smrg  shlibpath_var=LD_LIBRARY_PATH
104001b12faf6Smrg  shlibpath_overrides_runpath=no
104011b12faf6Smrg  hardcode_into_libs=yes
104021b12faf6Smrg  ;;
104031b12faf6Smrg
1040432b578d3Smrguts4*)
1040532b578d3Smrg  version_type=linux
1040632b578d3Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1040732b578d3Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1040832b578d3Smrg  shlibpath_var=LD_LIBRARY_PATH
1040932b578d3Smrg  ;;
1041032b578d3Smrg
1041132b578d3Smrg*)
1041232b578d3Smrg  dynamic_linker=no
1041332b578d3Smrg  ;;
1041432b578d3Smrgesac
104151b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
104162a51b5beSmrg$as_echo "$dynamic_linker" >&6; }
1041732b578d3Smrgtest "$dynamic_linker" = no && can_build_shared=no
1041832b578d3Smrg
104191b12faf6Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
104201b12faf6Smrgif test "$GCC" = yes; then
104211b12faf6Smrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
104222a51b5beSmrgfi
104232a51b5beSmrg
104241b12faf6Smrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
104251b12faf6Smrg  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
104261b12faf6Smrgfi
104272a51b5beSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
104281b12faf6Smrg  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1042932b578d3Smrgfi
1043032b578d3Smrg
1043132b578d3Smrg
1043232b578d3Smrg
1043332b578d3Smrg
1043432b578d3Smrg
1043532b578d3Smrg
1043632b578d3Smrg
1043732b578d3Smrg
1043832b578d3Smrg
1043932b578d3Smrg
1044032b578d3Smrg
1044132b578d3Smrg
1044232b578d3Smrg
1044332b578d3Smrg
1044432b578d3Smrg
1044532b578d3Smrg
1044632b578d3Smrg
1044732b578d3Smrg
1044832b578d3Smrg
1044932b578d3Smrg
1045032b578d3Smrg
1045132b578d3Smrg
1045232b578d3Smrg
1045332b578d3Smrg
1045432b578d3Smrg
1045532b578d3Smrg
1045632b578d3Smrg
1045732b578d3Smrg
1045832b578d3Smrg
1045932b578d3Smrg
1046032b578d3Smrg
1046132b578d3Smrg
1046232b578d3Smrg
1046332b578d3Smrg
1046432b578d3Smrg
1046532b578d3Smrg
1046632b578d3Smrg
1046732b578d3Smrg
1046832b578d3Smrg
1046932b578d3Smrg
1047032b578d3Smrg
1047132b578d3Smrg
1047232b578d3Smrg
1047332b578d3Smrg
1047432b578d3Smrg
1047532b578d3Smrg
1047632b578d3Smrg
1047732b578d3Smrg
1047832b578d3Smrg
1047932b578d3Smrg
1048032b578d3Smrg
1048132b578d3Smrg
1048232b578d3Smrg
1048332b578d3Smrg
1048432b578d3Smrg
1048532b578d3Smrg
1048632b578d3Smrg
1048732b578d3Smrg
1048832b578d3Smrg
1048932b578d3Smrg
1049032b578d3Smrg
1049132b578d3Smrg
1049232b578d3Smrg
1049332b578d3Smrg
104942a51b5beSmrg
1049532b578d3Smrg
1049632b578d3Smrg
1049732b578d3Smrg
1049832b578d3Smrg
1049932b578d3Smrg
1050032b578d3Smrg
1050132b578d3Smrg
1050232b578d3Smrg
1050332b578d3Smrg
1050432b578d3Smrg
1050532b578d3Smrg
1050632b578d3Smrg
1050732b578d3Smrg
1050832b578d3Smrg
1050932b578d3Smrg
1051032b578d3Smrg
1051132b578d3Smrg
1051232b578d3Smrg
1051332b578d3Smrg
1051432b578d3Smrg
1051532b578d3Smrg
1051632b578d3Smrg
105171b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
105181b12faf6Smrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
105191b12faf6Smrghardcode_action=
105201b12faf6Smrgif test -n "$hardcode_libdir_flag_spec" ||
105211b12faf6Smrg   test -n "$runpath_var" ||
105221b12faf6Smrg   test "X$hardcode_automatic" = "Xyes" ; then
1052332b578d3Smrg
105241b12faf6Smrg  # We can hardcode non-existent directories.
105251b12faf6Smrg  if test "$hardcode_direct" != no &&
105261b12faf6Smrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
105271b12faf6Smrg     # have to relink, otherwise we might link with an installed library
105281b12faf6Smrg     # when we should be linking with a yet-to-be-installed one
105291b12faf6Smrg     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
105301b12faf6Smrg     test "$hardcode_minus_L" != no; then
105311b12faf6Smrg    # Linking always hardcodes the temporary library directory.
105321b12faf6Smrg    hardcode_action=relink
105331b12faf6Smrg  else
105341b12faf6Smrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
105351b12faf6Smrg    hardcode_action=immediate
105361b12faf6Smrg  fi
105371b12faf6Smrgelse
105381b12faf6Smrg  # We cannot hardcode anything, or else we can only hardcode existing
105391b12faf6Smrg  # directories.
105401b12faf6Smrg  hardcode_action=unsupported
105411b12faf6Smrgfi
105421b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
105431b12faf6Smrg$as_echo "$hardcode_action" >&6; }
1054432b578d3Smrg
105451b12faf6Smrgif test "$hardcode_action" = relink ||
105461b12faf6Smrg   test "$inherit_rpath" = yes; then
105471b12faf6Smrg  # Fast installation is not supported
105481b12faf6Smrg  enable_fast_install=no
105491b12faf6Smrgelif test "$shlibpath_overrides_runpath" = yes ||
105501b12faf6Smrg     test "$enable_shared" = no; then
105511b12faf6Smrg  # Fast installation is not necessary
105521b12faf6Smrg  enable_fast_install=needless
105531b12faf6Smrgfi
1055432b578d3Smrg
1055532b578d3Smrg
1055632b578d3Smrg
1055732b578d3Smrg
1055832b578d3Smrg
1055932b578d3Smrg
105601b12faf6Smrg  if test "x$enable_dlopen" != xyes; then
105611b12faf6Smrg  enable_dlopen=unknown
105621b12faf6Smrg  enable_dlopen_self=unknown
105631b12faf6Smrg  enable_dlopen_self_static=unknown
105641b12faf6Smrgelse
105651b12faf6Smrg  lt_cv_dlopen=no
105661b12faf6Smrg  lt_cv_dlopen_libs=
1056732b578d3Smrg
105681b12faf6Smrg  case $host_os in
105691b12faf6Smrg  beos*)
105701b12faf6Smrg    lt_cv_dlopen="load_add_on"
105711b12faf6Smrg    lt_cv_dlopen_libs=
105721b12faf6Smrg    lt_cv_dlopen_self=yes
105731b12faf6Smrg    ;;
1057432b578d3Smrg
105751b12faf6Smrg  mingw* | pw32* | cegcc*)
105761b12faf6Smrg    lt_cv_dlopen="LoadLibrary"
105771b12faf6Smrg    lt_cv_dlopen_libs=
105781b12faf6Smrg    ;;
1057932b578d3Smrg
105801b12faf6Smrg  cygwin*)
105811b12faf6Smrg    lt_cv_dlopen="dlopen"
105821b12faf6Smrg    lt_cv_dlopen_libs=
105831b12faf6Smrg    ;;
1058432b578d3Smrg
105851b12faf6Smrg  darwin*)
105861b12faf6Smrg  # if libdl is installed we need to link against it
105871b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
105881b12faf6Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
105891b12faf6Smrgif test "${ac_cv_lib_dl_dlopen+set}" = set; then :
105901b12faf6Smrg  $as_echo_n "(cached) " >&6
105911b12faf6Smrgelse
105921b12faf6Smrg  ac_check_lib_save_LIBS=$LIBS
105931b12faf6SmrgLIBS="-ldl  $LIBS"
105941b12faf6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
105951b12faf6Smrg/* end confdefs.h.  */
1059632b578d3Smrg
105971b12faf6Smrg/* Override any GCC internal prototype to avoid an error.
105981b12faf6Smrg   Use char because int might match the return type of a GCC
105991b12faf6Smrg   builtin and then its argument prototype would still apply.  */
106001b12faf6Smrg#ifdef __cplusplus
106011b12faf6Smrgextern "C"
106021b12faf6Smrg#endif
106031b12faf6Smrgchar dlopen ();
106041b12faf6Smrgint
106051b12faf6Smrgmain ()
106061b12faf6Smrg{
106071b12faf6Smrgreturn dlopen ();
106081b12faf6Smrg  ;
106091b12faf6Smrg  return 0;
106101b12faf6Smrg}
106111b12faf6Smrg_ACEOF
106121b12faf6Smrgif ac_fn_c_try_link "$LINENO"; then :
106131b12faf6Smrg  ac_cv_lib_dl_dlopen=yes
1061432b578d3Smrgelse
106151b12faf6Smrg  ac_cv_lib_dl_dlopen=no
1061632b578d3Smrgfi
106171b12faf6Smrgrm -f core conftest.err conftest.$ac_objext \
106181b12faf6Smrg    conftest$ac_exeext conftest.$ac_ext
106191b12faf6SmrgLIBS=$ac_check_lib_save_LIBS
106201b12faf6Smrgfi
106211b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
106221b12faf6Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
106231b12faf6Smrgif test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
106241b12faf6Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
106251b12faf6Smrgelse
1062632b578d3Smrg
106271b12faf6Smrg    lt_cv_dlopen="dyld"
106281b12faf6Smrg    lt_cv_dlopen_libs=
106291b12faf6Smrg    lt_cv_dlopen_self=yes
1063032b578d3Smrg
106311b12faf6Smrgfi
1063232b578d3Smrg
106331b12faf6Smrg    ;;
1063432b578d3Smrg
106351b12faf6Smrg  *)
106361b12faf6Smrg    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
106371b12faf6Smrgif test "x$ac_cv_func_shl_load" = x""yes; then :
106381b12faf6Smrg  lt_cv_dlopen="shl_load"
106391b12faf6Smrgelse
106401b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
106411b12faf6Smrg$as_echo_n "checking for shl_load in -ldld... " >&6; }
106421b12faf6Smrgif test "${ac_cv_lib_dld_shl_load+set}" = set; then :
106431b12faf6Smrg  $as_echo_n "(cached) " >&6
106441b12faf6Smrgelse
106451b12faf6Smrg  ac_check_lib_save_LIBS=$LIBS
106461b12faf6SmrgLIBS="-ldld  $LIBS"
106471b12faf6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
106481b12faf6Smrg/* end confdefs.h.  */
1064932b578d3Smrg
106501b12faf6Smrg/* Override any GCC internal prototype to avoid an error.
106511b12faf6Smrg   Use char because int might match the return type of a GCC
106521b12faf6Smrg   builtin and then its argument prototype would still apply.  */
106531b12faf6Smrg#ifdef __cplusplus
106541b12faf6Smrgextern "C"
106551b12faf6Smrg#endif
106561b12faf6Smrgchar shl_load ();
106571b12faf6Smrgint
106581b12faf6Smrgmain ()
106591b12faf6Smrg{
106601b12faf6Smrgreturn shl_load ();
106611b12faf6Smrg  ;
106621b12faf6Smrg  return 0;
106631b12faf6Smrg}
106641b12faf6Smrg_ACEOF
106651b12faf6Smrgif ac_fn_c_try_link "$LINENO"; then :
106661b12faf6Smrg  ac_cv_lib_dld_shl_load=yes
106671b12faf6Smrgelse
106681b12faf6Smrg  ac_cv_lib_dld_shl_load=no
106691b12faf6Smrgfi
106701b12faf6Smrgrm -f core conftest.err conftest.$ac_objext \
106711b12faf6Smrg    conftest$ac_exeext conftest.$ac_ext
106721b12faf6SmrgLIBS=$ac_check_lib_save_LIBS
106731b12faf6Smrgfi
106741b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
106751b12faf6Smrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
106761b12faf6Smrgif test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
106771b12faf6Smrg  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
106781b12faf6Smrgelse
106791b12faf6Smrg  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
106801b12faf6Smrgif test "x$ac_cv_func_dlopen" = x""yes; then :
106811b12faf6Smrg  lt_cv_dlopen="dlopen"
106821b12faf6Smrgelse
106831b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
106841b12faf6Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
106851b12faf6Smrgif test "${ac_cv_lib_dl_dlopen+set}" = set; then :
106861b12faf6Smrg  $as_echo_n "(cached) " >&6
106871b12faf6Smrgelse
106881b12faf6Smrg  ac_check_lib_save_LIBS=$LIBS
106891b12faf6SmrgLIBS="-ldl  $LIBS"
106901b12faf6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
106911b12faf6Smrg/* end confdefs.h.  */
1069232b578d3Smrg
106931b12faf6Smrg/* Override any GCC internal prototype to avoid an error.
106941b12faf6Smrg   Use char because int might match the return type of a GCC
106951b12faf6Smrg   builtin and then its argument prototype would still apply.  */
106961b12faf6Smrg#ifdef __cplusplus
106971b12faf6Smrgextern "C"
106981b12faf6Smrg#endif
106991b12faf6Smrgchar dlopen ();
107001b12faf6Smrgint
107011b12faf6Smrgmain ()
107021b12faf6Smrg{
107031b12faf6Smrgreturn dlopen ();
107041b12faf6Smrg  ;
107051b12faf6Smrg  return 0;
107061b12faf6Smrg}
107071b12faf6Smrg_ACEOF
107081b12faf6Smrgif ac_fn_c_try_link "$LINENO"; then :
107091b12faf6Smrg  ac_cv_lib_dl_dlopen=yes
107101b12faf6Smrgelse
107111b12faf6Smrg  ac_cv_lib_dl_dlopen=no
107121b12faf6Smrgfi
107131b12faf6Smrgrm -f core conftest.err conftest.$ac_objext \
107141b12faf6Smrg    conftest$ac_exeext conftest.$ac_ext
107151b12faf6SmrgLIBS=$ac_check_lib_save_LIBS
107161b12faf6Smrgfi
107171b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
107181b12faf6Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
107191b12faf6Smrgif test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
107201b12faf6Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
107211b12faf6Smrgelse
107221b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
107231b12faf6Smrg$as_echo_n "checking for dlopen in -lsvld... " >&6; }
107241b12faf6Smrgif test "${ac_cv_lib_svld_dlopen+set}" = set; then :
107251b12faf6Smrg  $as_echo_n "(cached) " >&6
107261b12faf6Smrgelse
107271b12faf6Smrg  ac_check_lib_save_LIBS=$LIBS
107281b12faf6SmrgLIBS="-lsvld  $LIBS"
107291b12faf6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
107301b12faf6Smrg/* end confdefs.h.  */
1073132b578d3Smrg
107321b12faf6Smrg/* Override any GCC internal prototype to avoid an error.
107331b12faf6Smrg   Use char because int might match the return type of a GCC
107341b12faf6Smrg   builtin and then its argument prototype would still apply.  */
107351b12faf6Smrg#ifdef __cplusplus
107361b12faf6Smrgextern "C"
107371b12faf6Smrg#endif
107381b12faf6Smrgchar dlopen ();
107391b12faf6Smrgint
107401b12faf6Smrgmain ()
107411b12faf6Smrg{
107421b12faf6Smrgreturn dlopen ();
107431b12faf6Smrg  ;
107441b12faf6Smrg  return 0;
107451b12faf6Smrg}
107461b12faf6Smrg_ACEOF
107471b12faf6Smrgif ac_fn_c_try_link "$LINENO"; then :
107481b12faf6Smrg  ac_cv_lib_svld_dlopen=yes
107491b12faf6Smrgelse
107501b12faf6Smrg  ac_cv_lib_svld_dlopen=no
107511b12faf6Smrgfi
107521b12faf6Smrgrm -f core conftest.err conftest.$ac_objext \
107531b12faf6Smrg    conftest$ac_exeext conftest.$ac_ext
107541b12faf6SmrgLIBS=$ac_check_lib_save_LIBS
107551b12faf6Smrgfi
107561b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
107571b12faf6Smrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
107581b12faf6Smrgif test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
107591b12faf6Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
107601b12faf6Smrgelse
107611b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
107621b12faf6Smrg$as_echo_n "checking for dld_link in -ldld... " >&6; }
107631b12faf6Smrgif test "${ac_cv_lib_dld_dld_link+set}" = set; then :
107641b12faf6Smrg  $as_echo_n "(cached) " >&6
107651b12faf6Smrgelse
107661b12faf6Smrg  ac_check_lib_save_LIBS=$LIBS
107671b12faf6SmrgLIBS="-ldld  $LIBS"
107681b12faf6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
107691b12faf6Smrg/* end confdefs.h.  */
1077032b578d3Smrg
107711b12faf6Smrg/* Override any GCC internal prototype to avoid an error.
107721b12faf6Smrg   Use char because int might match the return type of a GCC
107731b12faf6Smrg   builtin and then its argument prototype would still apply.  */
107741b12faf6Smrg#ifdef __cplusplus
107751b12faf6Smrgextern "C"
107761b12faf6Smrg#endif
107771b12faf6Smrgchar dld_link ();
107781b12faf6Smrgint
107791b12faf6Smrgmain ()
107801b12faf6Smrg{
107811b12faf6Smrgreturn dld_link ();
107821b12faf6Smrg  ;
107831b12faf6Smrg  return 0;
107841b12faf6Smrg}
107851b12faf6Smrg_ACEOF
107861b12faf6Smrgif ac_fn_c_try_link "$LINENO"; then :
107871b12faf6Smrg  ac_cv_lib_dld_dld_link=yes
107881b12faf6Smrgelse
107891b12faf6Smrg  ac_cv_lib_dld_dld_link=no
107901b12faf6Smrgfi
107911b12faf6Smrgrm -f core conftest.err conftest.$ac_objext \
107921b12faf6Smrg    conftest$ac_exeext conftest.$ac_ext
107931b12faf6SmrgLIBS=$ac_check_lib_save_LIBS
107941b12faf6Smrgfi
107951b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
107961b12faf6Smrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
107971b12faf6Smrgif test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
107981b12faf6Smrg  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
107991b12faf6Smrgfi
1080032b578d3Smrg
1080132b578d3Smrg
108021b12faf6Smrgfi
1080332b578d3Smrg
1080432b578d3Smrg
108051b12faf6Smrgfi
1080632b578d3Smrg
1080732b578d3Smrg
108081b12faf6Smrgfi
1080932b578d3Smrg
1081032b578d3Smrg
108111b12faf6Smrgfi
1081232b578d3Smrg
1081332b578d3Smrg
108141b12faf6Smrgfi
1081532b578d3Smrg
108161b12faf6Smrg    ;;
108171b12faf6Smrg  esac
1081832b578d3Smrg
108191b12faf6Smrg  if test "x$lt_cv_dlopen" != xno; then
108201b12faf6Smrg    enable_dlopen=yes
108211b12faf6Smrg  else
108221b12faf6Smrg    enable_dlopen=no
108231b12faf6Smrg  fi
1082432b578d3Smrg
108251b12faf6Smrg  case $lt_cv_dlopen in
108261b12faf6Smrg  dlopen)
108271b12faf6Smrg    save_CPPFLAGS="$CPPFLAGS"
108281b12faf6Smrg    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1082932b578d3Smrg
108301b12faf6Smrg    save_LDFLAGS="$LDFLAGS"
108311b12faf6Smrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1083232b578d3Smrg
108331b12faf6Smrg    save_LIBS="$LIBS"
108341b12faf6Smrg    LIBS="$lt_cv_dlopen_libs $LIBS"
1083532b578d3Smrg
108361b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
108371b12faf6Smrg$as_echo_n "checking whether a program can dlopen itself... " >&6; }
108381b12faf6Smrgif test "${lt_cv_dlopen_self+set}" = set; then :
108391b12faf6Smrg  $as_echo_n "(cached) " >&6
108401b12faf6Smrgelse
108411b12faf6Smrg  	  if test "$cross_compiling" = yes; then :
108421b12faf6Smrg  lt_cv_dlopen_self=cross
108431b12faf6Smrgelse
108441b12faf6Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
108451b12faf6Smrg  lt_status=$lt_dlunknown
108461b12faf6Smrg  cat > conftest.$ac_ext <<_LT_EOF
108471b12faf6Smrg#line 10847 "configure"
108481b12faf6Smrg#include "confdefs.h"
1084932b578d3Smrg
108501b12faf6Smrg#if HAVE_DLFCN_H
108511b12faf6Smrg#include <dlfcn.h>
108521b12faf6Smrg#endif
1085332b578d3Smrg
108541b12faf6Smrg#include <stdio.h>
1085532b578d3Smrg
108561b12faf6Smrg#ifdef RTLD_GLOBAL
108571b12faf6Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
108581b12faf6Smrg#else
108591b12faf6Smrg#  ifdef DL_GLOBAL
108601b12faf6Smrg#    define LT_DLGLOBAL		DL_GLOBAL
108611b12faf6Smrg#  else
108621b12faf6Smrg#    define LT_DLGLOBAL		0
108631b12faf6Smrg#  endif
108641b12faf6Smrg#endif
1086532b578d3Smrg
108661b12faf6Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
108671b12faf6Smrg   find out it does not work in some platform. */
108681b12faf6Smrg#ifndef LT_DLLAZY_OR_NOW
108691b12faf6Smrg#  ifdef RTLD_LAZY
108701b12faf6Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
108711b12faf6Smrg#  else
108721b12faf6Smrg#    ifdef DL_LAZY
108731b12faf6Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
108741b12faf6Smrg#    else
108751b12faf6Smrg#      ifdef RTLD_NOW
108761b12faf6Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
108771b12faf6Smrg#      else
108781b12faf6Smrg#        ifdef DL_NOW
108791b12faf6Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
108801b12faf6Smrg#        else
108811b12faf6Smrg#          define LT_DLLAZY_OR_NOW	0
108821b12faf6Smrg#        endif
108831b12faf6Smrg#      endif
108841b12faf6Smrg#    endif
108851b12faf6Smrg#  endif
108861b12faf6Smrg#endif
1088732b578d3Smrg
108881b12faf6Smrgvoid fnord() { int i=42;}
108891b12faf6Smrgint main ()
108901b12faf6Smrg{
108911b12faf6Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
108921b12faf6Smrg  int status = $lt_dlunknown;
1089332b578d3Smrg
108941b12faf6Smrg  if (self)
108951b12faf6Smrg    {
108961b12faf6Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
108971b12faf6Smrg      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
108981b12faf6Smrg      /* dlclose (self); */
108991b12faf6Smrg    }
109001b12faf6Smrg  else
109011b12faf6Smrg    puts (dlerror ());
1090232b578d3Smrg
109031b12faf6Smrg  return status;
109041b12faf6Smrg}
109051b12faf6Smrg_LT_EOF
109061b12faf6Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
109071b12faf6Smrg  (eval $ac_link) 2>&5
109081b12faf6Smrg  ac_status=$?
109091b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109101b12faf6Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
109111b12faf6Smrg    (./conftest; exit; ) >&5 2>/dev/null
109121b12faf6Smrg    lt_status=$?
109131b12faf6Smrg    case x$lt_status in
109141b12faf6Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
109151b12faf6Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
109161b12faf6Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1091732b578d3Smrg    esac
109181b12faf6Smrg  else :
109191b12faf6Smrg    # compilation failed
109201b12faf6Smrg    lt_cv_dlopen_self=no
109211b12faf6Smrg  fi
109221b12faf6Smrgfi
109231b12faf6Smrgrm -fr conftest*
109241b12faf6Smrg
109251b12faf6Smrg
109261b12faf6Smrgfi
109271b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
109281b12faf6Smrg$as_echo "$lt_cv_dlopen_self" >&6; }
109291b12faf6Smrg
109301b12faf6Smrg    if test "x$lt_cv_dlopen_self" = xyes; then
109311b12faf6Smrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
109321b12faf6Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
109331b12faf6Smrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
109341b12faf6Smrgif test "${lt_cv_dlopen_self_static+set}" = set; then :
109351b12faf6Smrg  $as_echo_n "(cached) " >&6
109361b12faf6Smrgelse
109371b12faf6Smrg  	  if test "$cross_compiling" = yes; then :
109381b12faf6Smrg  lt_cv_dlopen_self_static=cross
109391b12faf6Smrgelse
109401b12faf6Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
109411b12faf6Smrg  lt_status=$lt_dlunknown
109421b12faf6Smrg  cat > conftest.$ac_ext <<_LT_EOF
109431b12faf6Smrg#line 10943 "configure"
109441b12faf6Smrg#include "confdefs.h"
109451b12faf6Smrg
109461b12faf6Smrg#if HAVE_DLFCN_H
109471b12faf6Smrg#include <dlfcn.h>
109481b12faf6Smrg#endif
109491b12faf6Smrg
109501b12faf6Smrg#include <stdio.h>
109511b12faf6Smrg
109521b12faf6Smrg#ifdef RTLD_GLOBAL
109531b12faf6Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
109541b12faf6Smrg#else
109551b12faf6Smrg#  ifdef DL_GLOBAL
109561b12faf6Smrg#    define LT_DLGLOBAL		DL_GLOBAL
109571b12faf6Smrg#  else
109581b12faf6Smrg#    define LT_DLGLOBAL		0
109591b12faf6Smrg#  endif
109601b12faf6Smrg#endif
109611b12faf6Smrg
109621b12faf6Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
109631b12faf6Smrg   find out it does not work in some platform. */
109641b12faf6Smrg#ifndef LT_DLLAZY_OR_NOW
109651b12faf6Smrg#  ifdef RTLD_LAZY
109661b12faf6Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
109671b12faf6Smrg#  else
109681b12faf6Smrg#    ifdef DL_LAZY
109691b12faf6Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
109701b12faf6Smrg#    else
109711b12faf6Smrg#      ifdef RTLD_NOW
109721b12faf6Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
109731b12faf6Smrg#      else
109741b12faf6Smrg#        ifdef DL_NOW
109751b12faf6Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
109761b12faf6Smrg#        else
109771b12faf6Smrg#          define LT_DLLAZY_OR_NOW	0
109781b12faf6Smrg#        endif
109791b12faf6Smrg#      endif
109801b12faf6Smrg#    endif
109811b12faf6Smrg#  endif
109821b12faf6Smrg#endif
109831b12faf6Smrg
109841b12faf6Smrgvoid fnord() { int i=42;}
109851b12faf6Smrgint main ()
109861b12faf6Smrg{
109871b12faf6Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
109881b12faf6Smrg  int status = $lt_dlunknown;
109891b12faf6Smrg
109901b12faf6Smrg  if (self)
109911b12faf6Smrg    {
109921b12faf6Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
109931b12faf6Smrg      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
109941b12faf6Smrg      /* dlclose (self); */
109951b12faf6Smrg    }
1099632b578d3Smrg  else
109971b12faf6Smrg    puts (dlerror ());
1099832b578d3Smrg
109991b12faf6Smrg  return status;
110001b12faf6Smrg}
110011b12faf6Smrg_LT_EOF
110021b12faf6Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
110031b12faf6Smrg  (eval $ac_link) 2>&5
110041b12faf6Smrg  ac_status=$?
110051b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110061b12faf6Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
110071b12faf6Smrg    (./conftest; exit; ) >&5 2>/dev/null
110081b12faf6Smrg    lt_status=$?
110091b12faf6Smrg    case x$lt_status in
110101b12faf6Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
110111b12faf6Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
110121b12faf6Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
110131b12faf6Smrg    esac
110141b12faf6Smrg  else :
110151b12faf6Smrg    # compilation failed
110161b12faf6Smrg    lt_cv_dlopen_self_static=no
110171b12faf6Smrg  fi
110181b12faf6Smrgfi
110191b12faf6Smrgrm -fr conftest*
1102032b578d3Smrg
1102132b578d3Smrg
110221b12faf6Smrgfi
110231b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
110241b12faf6Smrg$as_echo "$lt_cv_dlopen_self_static" >&6; }
110251b12faf6Smrg    fi
1102632b578d3Smrg
110271b12faf6Smrg    CPPFLAGS="$save_CPPFLAGS"
110281b12faf6Smrg    LDFLAGS="$save_LDFLAGS"
110291b12faf6Smrg    LIBS="$save_LIBS"
110301b12faf6Smrg    ;;
110311b12faf6Smrg  esac
1103232b578d3Smrg
110331b12faf6Smrg  case $lt_cv_dlopen_self in
110341b12faf6Smrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
110351b12faf6Smrg  *) enable_dlopen_self=unknown ;;
110361b12faf6Smrg  esac
1103732b578d3Smrg
110381b12faf6Smrg  case $lt_cv_dlopen_self_static in
110391b12faf6Smrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
110401b12faf6Smrg  *) enable_dlopen_self_static=unknown ;;
110411b12faf6Smrg  esac
110421b12faf6Smrgfi
1104332b578d3Smrg
110442a51b5beSmrg
1104532b578d3Smrg
1104632b578d3Smrg
1104732b578d3Smrg
1104832b578d3Smrg
1104932b578d3Smrg
1105032b578d3Smrg
1105132b578d3Smrg
1105232b578d3Smrg
1105332b578d3Smrg
1105432b578d3Smrg
1105532b578d3Smrg
1105632b578d3Smrg
1105732b578d3Smrg
1105832b578d3Smrg
1105932b578d3Smrg
110601b12faf6Smrgstriplib=
110611b12faf6Smrgold_striplib=
110621b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
110631b12faf6Smrg$as_echo_n "checking whether stripping libraries is possible... " >&6; }
110641b12faf6Smrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
110651b12faf6Smrg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
110661b12faf6Smrg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
110671b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
110681b12faf6Smrg$as_echo "yes" >&6; }
1106932b578d3Smrgelse
110701b12faf6Smrg# FIXME - insert some real tests, host_os isn't really good enough
110711b12faf6Smrg  case $host_os in
110721b12faf6Smrg  darwin*)
110731b12faf6Smrg    if test -n "$STRIP" ; then
110741b12faf6Smrg      striplib="$STRIP -x"
110751b12faf6Smrg      old_striplib="$STRIP -S"
110761b12faf6Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
110771b12faf6Smrg$as_echo "yes" >&6; }
110781b12faf6Smrg    else
110791b12faf6Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110801b12faf6Smrg$as_echo "no" >&6; }
110811b12faf6Smrg    fi
110821b12faf6Smrg    ;;
110831b12faf6Smrg  *)
110841b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110851b12faf6Smrg$as_echo "no" >&6; }
110861b12faf6Smrg    ;;
110871b12faf6Smrg  esac
1108832b578d3Smrgfi
1108932b578d3Smrg
1109032b578d3Smrg
1109132b578d3Smrg
1109232b578d3Smrg
1109332b578d3Smrg
1109432b578d3Smrg
1109532b578d3Smrg
1109632b578d3Smrg
1109732b578d3Smrg
110981b12faf6Smrg
110991b12faf6Smrg
111001b12faf6Smrg
111011b12faf6Smrg  # Report which library types will actually be built
111021b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
111031b12faf6Smrg$as_echo_n "checking if libtool supports shared libraries... " >&6; }
111041b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
111051b12faf6Smrg$as_echo "$can_build_shared" >&6; }
111061b12faf6Smrg
111071b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
111081b12faf6Smrg$as_echo_n "checking whether to build shared libraries... " >&6; }
111091b12faf6Smrg  test "$can_build_shared" = "no" && enable_shared=no
111101b12faf6Smrg
111111b12faf6Smrg  # On AIX, shared libraries and static libraries use the same namespace, and
111121b12faf6Smrg  # are all built from PIC.
1111332b578d3Smrg  case $host_os in
111141b12faf6Smrg  aix3*)
111151b12faf6Smrg    test "$enable_shared" = yes && enable_static=no
111161b12faf6Smrg    if test -n "$RANLIB"; then
111171b12faf6Smrg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
111181b12faf6Smrg      postinstall_cmds='$RANLIB $lib'
1111932b578d3Smrg    fi
1112032b578d3Smrg    ;;
111211b12faf6Smrg
111221b12faf6Smrg  aix[4-9]*)
111231b12faf6Smrg    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
111241b12faf6Smrg      test "$enable_shared" = yes && enable_static=no
111251b12faf6Smrg    fi
1112632b578d3Smrg    ;;
1112732b578d3Smrg  esac
111281b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
111291b12faf6Smrg$as_echo "$enable_shared" >&6; }
1113032b578d3Smrg
111311b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
111321b12faf6Smrg$as_echo_n "checking whether to build static libraries... " >&6; }
111331b12faf6Smrg  # Make sure either enable_shared or enable_static is yes.
111341b12faf6Smrg  test "$enable_shared" = yes || enable_static=yes
111351b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
111361b12faf6Smrg$as_echo "$enable_static" >&6; }
1113732b578d3Smrg
1113832b578d3Smrg
1113932b578d3Smrg
1114032b578d3Smrg
111411b12faf6Smrgfi
111421b12faf6Smrgac_ext=c
111431b12faf6Smrgac_cpp='$CPP $CPPFLAGS'
111441b12faf6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
111451b12faf6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
111461b12faf6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1114732b578d3Smrg
111481b12faf6SmrgCC="$lt_save_CC"
1114932b578d3Smrg
1115032b578d3Smrg
1115132b578d3Smrg
1115232b578d3Smrg
1115332b578d3Smrg
1115432b578d3Smrg
1115532b578d3Smrg
1115632b578d3Smrg
1115732b578d3Smrg
1115832b578d3Smrg
1115932b578d3Smrg
1116032b578d3Smrg
1116132b578d3Smrg
111621b12faf6Smrg        ac_config_commands="$ac_config_commands libtool"
1116332b578d3Smrg
1116432b578d3Smrg
1116532b578d3Smrg
1116632b578d3Smrg
111671b12faf6Smrg# Only expand once:
1116832b578d3Smrg
1116932b578d3Smrg
1117032b578d3Smrg
1117132b578d3Smrg
1117232b578d3Smrg
111731b12faf6Smrg# Define a configure option for an alternate module directory
1117432b578d3Smrg
111751b12faf6Smrg# Check whether --with-xorg-module-dir was given.
111761b12faf6Smrgif test "${with_xorg_module_dir+set}" = set; then :
111771b12faf6Smrg  withval=$with_xorg_module_dir; moduledir="$withval"
1117832b578d3Smrgelse
111791b12faf6Smrg  moduledir="$libdir/xorg/modules"
111801b12faf6Smrgfi
1118132b578d3Smrg
1118232b578d3Smrg
111831b12faf6Smrg# Check whether --enable-dri was given.
111841b12faf6Smrgif test "${enable_dri+set}" = set; then :
111851b12faf6Smrg  enableval=$enable_dri; DRI="$enableval"
111861b12faf6Smrgelse
111871b12faf6Smrg  DRI=auto
1118832b578d3Smrgfi
1118932b578d3Smrg
1119032b578d3Smrg
111911b12faf6Smrg# Check whether --enable-exa was given.
111921b12faf6Smrgif test "${enable_exa+set}" = set; then :
111931b12faf6Smrg  enableval=$enable_exa; EXA="$enableval"
111941b12faf6Smrgelse
111951b12faf6Smrg  EXA=yes
111961b12faf6Smrgfi
1119732b578d3Smrg
1119832b578d3Smrg
111991b12faf6Smrg# Store the list of server defined optional extensions in REQUIRED_MODULES
1120032b578d3Smrg
1120132b578d3Smrg
112021b12faf6Smrg	SAVE_CFLAGS="$CFLAGS"
112031b12faf6Smrg	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
112041b12faf6Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
112051b12faf6Smrg/* end confdefs.h.  */
1120632b578d3Smrg
112071b12faf6Smrg#include "xorg-server.h"
112081b12faf6Smrg#if !defined RANDR
112091b12faf6Smrg#error RANDR not defined
112101b12faf6Smrg#endif
1121132b578d3Smrg
112121b12faf6Smrgint
112131b12faf6Smrgmain ()
112141b12faf6Smrg{
112151b12faf6Smrg
112161b12faf6Smrg  ;
112171b12faf6Smrg  return 0;
112181b12faf6Smrg}
112191b12faf6Smrg_ACEOF
112201b12faf6Smrgif ac_fn_c_try_compile "$LINENO"; then :
112211b12faf6Smrg  _EXT_CHECK=yes
112221b12faf6Smrgelse
112231b12faf6Smrg  _EXT_CHECK=no
112241b12faf6Smrgfi
112251b12faf6Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
112261b12faf6Smrg	CFLAGS="$SAVE_CFLAGS"
112271b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
112281b12faf6Smrg$as_echo_n "checking if RANDR is defined... " >&6; }
112291b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
112301b12faf6Smrg$as_echo "$_EXT_CHECK" >&6; }
112311b12faf6Smrg	if test "$_EXT_CHECK" != no; then
112321b12faf6Smrg		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
1123332b578d3Smrg	fi
1123432b578d3Smrg
1123532b578d3Smrg
1123632b578d3Smrg
112371b12faf6Smrg	SAVE_CFLAGS="$CFLAGS"
112381b12faf6Smrg	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
112391b12faf6Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
112401b12faf6Smrg/* end confdefs.h.  */
1124132b578d3Smrg
112421b12faf6Smrg#include "xorg-server.h"
112431b12faf6Smrg#if !defined RENDER
112441b12faf6Smrg#error RENDER not defined
112451b12faf6Smrg#endif
1124632b578d3Smrg
112471b12faf6Smrgint
112481b12faf6Smrgmain ()
112491b12faf6Smrg{
1125032b578d3Smrg
112511b12faf6Smrg  ;
112521b12faf6Smrg  return 0;
112531b12faf6Smrg}
112541b12faf6Smrg_ACEOF
112551b12faf6Smrgif ac_fn_c_try_compile "$LINENO"; then :
112561b12faf6Smrg  _EXT_CHECK=yes
112571b12faf6Smrgelse
112581b12faf6Smrg  _EXT_CHECK=no
112591b12faf6Smrgfi
112601b12faf6Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
112611b12faf6Smrg	CFLAGS="$SAVE_CFLAGS"
112621b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
112631b12faf6Smrg$as_echo_n "checking if RENDER is defined... " >&6; }
112641b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
112651b12faf6Smrg$as_echo "$_EXT_CHECK" >&6; }
112661b12faf6Smrg	if test "$_EXT_CHECK" != no; then
112671b12faf6Smrg		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
112681b12faf6Smrg	fi
1126932b578d3Smrg
1127032b578d3Smrg
1127132b578d3Smrg
112721b12faf6Smrg	SAVE_CFLAGS="$CFLAGS"
112731b12faf6Smrg	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
112741b12faf6Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
112751b12faf6Smrg/* end confdefs.h.  */
1127632b578d3Smrg
112771b12faf6Smrg#include "xorg-server.h"
112781b12faf6Smrg#if !defined XV
112791b12faf6Smrg#error XV not defined
112801b12faf6Smrg#endif
1128132b578d3Smrg
112821b12faf6Smrgint
112831b12faf6Smrgmain ()
112841b12faf6Smrg{
1128532b578d3Smrg
112861b12faf6Smrg  ;
112871b12faf6Smrg  return 0;
112881b12faf6Smrg}
112891b12faf6Smrg_ACEOF
112901b12faf6Smrgif ac_fn_c_try_compile "$LINENO"; then :
112911b12faf6Smrg  _EXT_CHECK=yes
112921b12faf6Smrgelse
112931b12faf6Smrg  _EXT_CHECK=no
112941b12faf6Smrgfi
112951b12faf6Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
112961b12faf6Smrg	CFLAGS="$SAVE_CFLAGS"
112971b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
112981b12faf6Smrg$as_echo_n "checking if XV is defined... " >&6; }
112991b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
113001b12faf6Smrg$as_echo "$_EXT_CHECK" >&6; }
113011b12faf6Smrg	if test "$_EXT_CHECK" != no; then
113021b12faf6Smrg		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
113031b12faf6Smrg	fi
1130432b578d3Smrg
1130532b578d3Smrg
1130632b578d3Smrg
113071b12faf6Smrg	SAVE_CFLAGS="$CFLAGS"
113081b12faf6Smrg	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
113091b12faf6Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
113101b12faf6Smrg/* end confdefs.h.  */
1131132b578d3Smrg
113121b12faf6Smrg#include "xorg-server.h"
113131b12faf6Smrg#if !defined DPMSExtension
113141b12faf6Smrg#error DPMSExtension not defined
113151b12faf6Smrg#endif
1131632b578d3Smrg
113171b12faf6Smrgint
113181b12faf6Smrgmain ()
113191b12faf6Smrg{
1132032b578d3Smrg
113211b12faf6Smrg  ;
113221b12faf6Smrg  return 0;
113231b12faf6Smrg}
113241b12faf6Smrg_ACEOF
113251b12faf6Smrgif ac_fn_c_try_compile "$LINENO"; then :
113261b12faf6Smrg  _EXT_CHECK=yes
113271b12faf6Smrgelse
113281b12faf6Smrg  _EXT_CHECK=no
113291b12faf6Smrgfi
113301b12faf6Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
113311b12faf6Smrg	CFLAGS="$SAVE_CFLAGS"
113321b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
113331b12faf6Smrg$as_echo_n "checking if DPMSExtension is defined... " >&6; }
113341b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
113351b12faf6Smrg$as_echo "$_EXT_CHECK" >&6; }
113361b12faf6Smrg	if test "$_EXT_CHECK" != no; then
113371b12faf6Smrg		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
113381b12faf6Smrg	fi
1133932b578d3Smrg
1134032b578d3Smrg
113411b12faf6Smrg# Obtain compiler/linker options for the driver dependencies
1134232b578d3Smrg
113431b12faf6Smrgpkg_failed=no
113441b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
113451b12faf6Smrg$as_echo_n "checking for XORG... " >&6; }
1134632b578d3Smrg
113471b12faf6Smrgif test -n "$XORG_CFLAGS"; then
113481b12faf6Smrg    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
113491b12faf6Smrg elif test -n "$PKG_CONFIG"; then
113501b12faf6Smrg    if test -n "$PKG_CONFIG" && \
113511b12faf6Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
113521b12faf6Smrg  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
113531b12faf6Smrg  ac_status=$?
113541b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
113551b12faf6Smrg  test $ac_status = 0; }; then
113561b12faf6Smrg  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
113571b12faf6Smrgelse
113581b12faf6Smrg  pkg_failed=yes
113591b12faf6Smrgfi
113601b12faf6Smrg else
113611b12faf6Smrg    pkg_failed=untried
113621b12faf6Smrgfi
113631b12faf6Smrgif test -n "$XORG_LIBS"; then
113641b12faf6Smrg    pkg_cv_XORG_LIBS="$XORG_LIBS"
113651b12faf6Smrg elif test -n "$PKG_CONFIG"; then
113661b12faf6Smrg    if test -n "$PKG_CONFIG" && \
113671b12faf6Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
113681b12faf6Smrg  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
113691b12faf6Smrg  ac_status=$?
113701b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
113711b12faf6Smrg  test $ac_status = 0; }; then
113721b12faf6Smrg  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
113731b12faf6Smrgelse
113741b12faf6Smrg  pkg_failed=yes
113751b12faf6Smrgfi
113761b12faf6Smrg else
113771b12faf6Smrg    pkg_failed=untried
113781b12faf6Smrgfi
1137932b578d3Smrg
1138032b578d3Smrg
1138132b578d3Smrg
113821b12faf6Smrgif test $pkg_failed = yes; then
113831b12faf6Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
113841b12faf6Smrg$as_echo "no" >&6; }
1138532b578d3Smrg
113861b12faf6Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
113871b12faf6Smrg        _pkg_short_errors_supported=yes
113881b12faf6Smrgelse
113891b12faf6Smrg        _pkg_short_errors_supported=no
113901b12faf6Smrgfi
113911b12faf6Smrg        if test $_pkg_short_errors_supported = yes; then
113921b12faf6Smrg	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
113931b12faf6Smrg        else
113941b12faf6Smrg	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
113951b12faf6Smrg        fi
113961b12faf6Smrg	# Put the nasty error message in config.log where it belongs
113971b12faf6Smrg	echo "$XORG_PKG_ERRORS" >&5
1139832b578d3Smrg
113991b12faf6Smrg	as_fn_error $? "Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met:
1140032b578d3Smrg
114011b12faf6Smrg$XORG_PKG_ERRORS
1140232b578d3Smrg
114031b12faf6SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
114041b12faf6Smrginstalled software in a non-standard prefix.
1140532b578d3Smrg
114061b12faf6SmrgAlternatively, you may set the environment variables XORG_CFLAGS
114071b12faf6Smrgand XORG_LIBS to avoid the need to call pkg-config.
114081b12faf6SmrgSee the pkg-config man page for more details." "$LINENO" 5
114091b12faf6Smrgelif test $pkg_failed = untried; then
114101b12faf6Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
114111b12faf6Smrg$as_echo "no" >&6; }
114121b12faf6Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
114131b12faf6Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
114141b12faf6Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
114151b12faf6Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
114161b12faf6Smrgpath to pkg-config.
1141732b578d3Smrg
114181b12faf6SmrgAlternatively, you may set the environment variables XORG_CFLAGS
114191b12faf6Smrgand XORG_LIBS to avoid the need to call pkg-config.
114201b12faf6SmrgSee the pkg-config man page for more details.
1142132b578d3Smrg
114221b12faf6SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
114231b12faf6SmrgSee \`config.log' for more details" "$LINENO" 5 ; }
114241b12faf6Smrgelse
114251b12faf6Smrg	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
114261b12faf6Smrg	XORG_LIBS=$pkg_cv_XORG_LIBS
114271b12faf6Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
114281b12faf6Smrg$as_echo "yes" >&6; }
1142932b578d3Smrg
114301b12faf6Smrgfi
1143132b578d3Smrg
114321b12faf6Smrgpkg_failed=no
114331b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
114341b12faf6Smrg$as_echo_n "checking for XEXT... " >&6; }
1143532b578d3Smrg
114361b12faf6Smrgif test -n "$XEXT_CFLAGS"; then
114371b12faf6Smrg    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
114381b12faf6Smrg elif test -n "$PKG_CONFIG"; then
114391b12faf6Smrg    if test -n "$PKG_CONFIG" && \
114401b12faf6Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
114411b12faf6Smrg  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
1144232b578d3Smrg  ac_status=$?
114431b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
114441b12faf6Smrg  test $ac_status = 0; }; then
114451b12faf6Smrg  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
114461b12faf6Smrgelse
114471b12faf6Smrg  pkg_failed=yes
114481b12faf6Smrgfi
114491b12faf6Smrg else
114501b12faf6Smrg    pkg_failed=untried
114511b12faf6Smrgfi
114521b12faf6Smrgif test -n "$XEXT_LIBS"; then
114531b12faf6Smrg    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
114541b12faf6Smrg elif test -n "$PKG_CONFIG"; then
114551b12faf6Smrg    if test -n "$PKG_CONFIG" && \
114561b12faf6Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
114571b12faf6Smrg  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
1145832b578d3Smrg  ac_status=$?
114591b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
114601b12faf6Smrg  test $ac_status = 0; }; then
114611b12faf6Smrg  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
114621b12faf6Smrgelse
114631b12faf6Smrg  pkg_failed=yes
114641b12faf6Smrgfi
114651b12faf6Smrg else
114661b12faf6Smrg    pkg_failed=untried
114671b12faf6Smrgfi
1146832b578d3Smrg
114692a51b5beSmrg
1147032b578d3Smrg
114711b12faf6Smrgif test $pkg_failed = yes; then
114721b12faf6Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
114731b12faf6Smrg$as_echo "no" >&6; }
1147432b578d3Smrg
114751b12faf6Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
114761b12faf6Smrg        _pkg_short_errors_supported=yes
114771b12faf6Smrgelse
114781b12faf6Smrg        _pkg_short_errors_supported=no
114791b12faf6Smrgfi
114801b12faf6Smrg        if test $_pkg_short_errors_supported = yes; then
114811b12faf6Smrg	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
114821b12faf6Smrg        else
114831b12faf6Smrg	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
114841b12faf6Smrg        fi
114851b12faf6Smrg	# Put the nasty error message in config.log where it belongs
114861b12faf6Smrg	echo "$XEXT_PKG_ERRORS" >&5
1148732b578d3Smrg
114881b12faf6Smrg	HAVE_XEXTPROTO_71="no"
114891b12faf6Smrgelif test $pkg_failed = untried; then
114901b12faf6Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
114911b12faf6Smrg$as_echo "no" >&6; }
114921b12faf6Smrg	HAVE_XEXTPROTO_71="no"
114931b12faf6Smrgelse
114941b12faf6Smrg	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
114951b12faf6Smrg	XEXT_LIBS=$pkg_cv_XEXT_LIBS
114961b12faf6Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
114971b12faf6Smrg$as_echo "yes" >&6; }
114981b12faf6Smrg	HAVE_XEXTPROTO_71="yes";
114991b12faf6Smrg$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
1150032b578d3Smrg
115011b12faf6Smrgfi
115021b12faf6Smrg if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
115031b12faf6Smrg  HAVE_XEXTPROTO_71_TRUE=
115041b12faf6Smrg  HAVE_XEXTPROTO_71_FALSE='#'
115051b12faf6Smrgelse
115061b12faf6Smrg  HAVE_XEXTPROTO_71_TRUE='#'
115071b12faf6Smrg  HAVE_XEXTPROTO_71_FALSE=
115081b12faf6Smrgfi
1150932b578d3Smrg
115101b12faf6Smrgsdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
1151132b578d3Smrg
115121b12faf6Smrg# Checks for libraries.
1151332b578d3Smrg
115141b12faf6Smrgif test "$DRI" != no; then
115151b12faf6Smrg	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
115161b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
115171b12faf6Smrg$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
115181b12faf6Smrgif eval "test \"\${$as_ac_File+set}\"" = set; then :
115191b12faf6Smrg  $as_echo_n "(cached) " >&6
115201b12faf6Smrgelse
115211b12faf6Smrg  test "$cross_compiling" = yes &&
115221b12faf6Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
115231b12faf6Smrgif test -r "${sdkdir}/dri.h"; then
115241b12faf6Smrg  eval "$as_ac_File=yes"
115251b12faf6Smrgelse
115261b12faf6Smrg  eval "$as_ac_File=no"
115271b12faf6Smrgfi
115281b12faf6Smrgfi
115291b12faf6Smrgeval ac_res=\$$as_ac_File
115301b12faf6Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
115311b12faf6Smrg$as_echo "$ac_res" >&6; }
115321b12faf6Smrgif eval test \"x\$"$as_ac_File"\" = x"yes"; then :
115331b12faf6Smrg  have_dri_h="yes"
115341b12faf6Smrgelse
115351b12faf6Smrg  have_dri_h="no"
115361b12faf6Smrgfi
1153732b578d3Smrg
115381b12faf6Smrg	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
115391b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
115401b12faf6Smrg$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
115411b12faf6Smrgif eval "test \"\${$as_ac_File+set}\"" = set; then :
115421b12faf6Smrg  $as_echo_n "(cached) " >&6
115431b12faf6Smrgelse
115441b12faf6Smrg  test "$cross_compiling" = yes &&
115451b12faf6Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
115461b12faf6Smrgif test -r "${sdkdir}/sarea.h"; then
115471b12faf6Smrg  eval "$as_ac_File=yes"
115481b12faf6Smrgelse
115491b12faf6Smrg  eval "$as_ac_File=no"
115501b12faf6Smrgfi
115511b12faf6Smrgfi
115521b12faf6Smrgeval ac_res=\$$as_ac_File
115531b12faf6Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
115541b12faf6Smrg$as_echo "$ac_res" >&6; }
115551b12faf6Smrgif eval test \"x\$"$as_ac_File"\" = x"yes"; then :
115561b12faf6Smrg  have_sarea_h="yes"
115571b12faf6Smrgelse
115581b12faf6Smrg  have_sarea_h="no"
115591b12faf6Smrgfi
1156032b578d3Smrg
115611b12faf6Smrg	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
115621b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
115631b12faf6Smrg$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
115641b12faf6Smrgif eval "test \"\${$as_ac_File+set}\"" = set; then :
115651b12faf6Smrg  $as_echo_n "(cached) " >&6
115661b12faf6Smrgelse
115671b12faf6Smrg  test "$cross_compiling" = yes &&
115681b12faf6Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
115691b12faf6Smrgif test -r "${sdkdir}/dristruct.h"; then
115701b12faf6Smrg  eval "$as_ac_File=yes"
115711b12faf6Smrgelse
115721b12faf6Smrg  eval "$as_ac_File=no"
115731b12faf6Smrgfi
115741b12faf6Smrgfi
115751b12faf6Smrgeval ac_res=\$$as_ac_File
115761b12faf6Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
115771b12faf6Smrg$as_echo "$ac_res" >&6; }
115781b12faf6Smrgif eval test \"x\$"$as_ac_File"\" = x"yes"; then :
115791b12faf6Smrg  have_dristruct_h="yes"
115801b12faf6Smrgelse
115811b12faf6Smrg  have_dristruct_h="no"
115821b12faf6Smrgfi
1158332b578d3Smrg
115841b12faf6Smrg	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh`
115851b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/damage.h" >&5
115861b12faf6Smrg$as_echo_n "checking for ${sdkdir}/damage.h... " >&6; }
115871b12faf6Smrgif eval "test \"\${$as_ac_File+set}\"" = set; then :
115881b12faf6Smrg  $as_echo_n "(cached) " >&6
115891b12faf6Smrgelse
115901b12faf6Smrg  test "$cross_compiling" = yes &&
115911b12faf6Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
115921b12faf6Smrgif test -r "${sdkdir}/damage.h"; then
115931b12faf6Smrg  eval "$as_ac_File=yes"
115941b12faf6Smrgelse
115951b12faf6Smrg  eval "$as_ac_File=no"
115961b12faf6Smrgfi
115971b12faf6Smrgfi
115981b12faf6Smrgeval ac_res=\$$as_ac_File
115991b12faf6Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
116001b12faf6Smrg$as_echo "$ac_res" >&6; }
116011b12faf6Smrgif eval test \"x\$"$as_ac_File"\" = x"yes"; then :
116021b12faf6Smrg  have_damage_h="yes"
116031b12faf6Smrgelse
116041b12faf6Smrg  have_damage_h="no"
116051b12faf6Smrgfi
1160632b578d3Smrg
116071b12faf6Smrgfi
1160832b578d3Smrg
116091b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
116101b12faf6Smrg$as_echo_n "checking whether to include DRI support... " >&6; }
116111b12faf6Smrgif test x$DRI = xauto; then
116121b12faf6Smrg	if test "$have_dri_h" = yes -a \
116131b12faf6Smrg                "$have_sarea_h" = yes -a \
116141b12faf6Smrg                "$have_dristruct_h" = yes; then
116151b12faf6Smrg		DRI="yes"
116161b12faf6Smrg	else
116171b12faf6Smrg		DRI="no"
116181b12faf6Smrg	fi
116191b12faf6Smrgfi
116201b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
116211b12faf6Smrg$as_echo "$DRI" >&6; }
116222a51b5beSmrg
116231b12faf6Smrg if test x$DRI = xyes; then
116241b12faf6Smrg  DRI_TRUE=
116251b12faf6Smrg  DRI_FALSE='#'
116261b12faf6Smrgelse
116271b12faf6Smrg  DRI_TRUE='#'
116281b12faf6Smrg  DRI_FALSE=
116291b12faf6Smrgfi
1163032b578d3Smrg
116311b12faf6Smrgif test "$DRI" = yes; then
1163232b578d3Smrg
116331b12faf6Smrgpkg_failed=no
116341b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
116351b12faf6Smrg$as_echo_n "checking for DRI... " >&6; }
1163632b578d3Smrg
116371b12faf6Smrgif test -n "$DRI_CFLAGS"; then
116381b12faf6Smrg    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
116391b12faf6Smrg elif test -n "$PKG_CONFIG"; then
116401b12faf6Smrg    if test -n "$PKG_CONFIG" && \
116411b12faf6Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
116421b12faf6Smrg  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
116431b12faf6Smrg  ac_status=$?
116441b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
116451b12faf6Smrg  test $ac_status = 0; }; then
116461b12faf6Smrg  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
116471b12faf6Smrgelse
116481b12faf6Smrg  pkg_failed=yes
116491b12faf6Smrgfi
116501b12faf6Smrg else
116511b12faf6Smrg    pkg_failed=untried
116521b12faf6Smrgfi
116531b12faf6Smrgif test -n "$DRI_LIBS"; then
116541b12faf6Smrg    pkg_cv_DRI_LIBS="$DRI_LIBS"
116551b12faf6Smrg elif test -n "$PKG_CONFIG"; then
116561b12faf6Smrg    if test -n "$PKG_CONFIG" && \
116571b12faf6Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
116581b12faf6Smrg  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
116591b12faf6Smrg  ac_status=$?
116601b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
116611b12faf6Smrg  test $ac_status = 0; }; then
116621b12faf6Smrg  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
116631b12faf6Smrgelse
116641b12faf6Smrg  pkg_failed=yes
116651b12faf6Smrgfi
116661b12faf6Smrg else
116671b12faf6Smrg    pkg_failed=untried
116681b12faf6Smrgfi
1166932b578d3Smrg
1167032b578d3Smrg
1167132b578d3Smrg
116721b12faf6Smrgif test $pkg_failed = yes; then
116731b12faf6Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
116741b12faf6Smrg$as_echo "no" >&6; }
1167532b578d3Smrg
116761b12faf6Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
116771b12faf6Smrg        _pkg_short_errors_supported=yes
116781b12faf6Smrgelse
116791b12faf6Smrg        _pkg_short_errors_supported=no
116801b12faf6Smrgfi
116811b12faf6Smrg        if test $_pkg_short_errors_supported = yes; then
116821b12faf6Smrg	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
116831b12faf6Smrg        else
116841b12faf6Smrg	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
116851b12faf6Smrg        fi
116861b12faf6Smrg	# Put the nasty error message in config.log where it belongs
116871b12faf6Smrg	echo "$DRI_PKG_ERRORS" >&5
1168832b578d3Smrg
116891b12faf6Smrg	as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
1169032b578d3Smrg
116911b12faf6Smrg$DRI_PKG_ERRORS
1169232b578d3Smrg
116931b12faf6SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
116941b12faf6Smrginstalled software in a non-standard prefix.
1169532b578d3Smrg
116961b12faf6SmrgAlternatively, you may set the environment variables DRI_CFLAGS
116971b12faf6Smrgand DRI_LIBS to avoid the need to call pkg-config.
116981b12faf6SmrgSee the pkg-config man page for more details." "$LINENO" 5
116991b12faf6Smrgelif test $pkg_failed = untried; then
117001b12faf6Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
117011b12faf6Smrg$as_echo "no" >&6; }
117021b12faf6Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
117031b12faf6Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
117041b12faf6Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
117051b12faf6Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
117061b12faf6Smrgpath to pkg-config.
1170732b578d3Smrg
117081b12faf6SmrgAlternatively, you may set the environment variables DRI_CFLAGS
117091b12faf6Smrgand DRI_LIBS to avoid the need to call pkg-config.
117101b12faf6SmrgSee the pkg-config man page for more details.
1171132b578d3Smrg
117121b12faf6SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
117131b12faf6SmrgSee \`config.log' for more details" "$LINENO" 5 ; }
117141b12faf6Smrgelse
117151b12faf6Smrg	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
117161b12faf6Smrg	DRI_LIBS=$pkg_cv_DRI_LIBS
117171b12faf6Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
117181b12faf6Smrg$as_echo "yes" >&6; }
1171932b578d3Smrg
117201b12faf6Smrgfi
1172132b578d3Smrg
117221b12faf6Smrg$as_echo "#define XF86DRI 1" >>confdefs.h
117232a51b5beSmrg
1172432b578d3Smrg
117251b12faf6Smrg$as_echo "#define XF86DRI_DEVEL 1" >>confdefs.h
1172632b578d3Smrg
117271b12faf6Smrgfi
1172832b578d3Smrg
117291b12faf6Smrg# Note that this is sort of inverted from drivers/ati/Imakefile in
117301b12faf6Smrg# the monolith.  We test for foo, not for !foo (i.e. ATMISC_CPIO, not
117311b12faf6Smrg# ATIMISC_AVOID_CPIO), but the defines are negative.  So beware.  Oh yeah,
117321b12faf6Smrg# TV_OUT is the special case where it's a positive define, not AVOID_TV_OUT.
1173332b578d3Smrg
117341b12faf6Smrg# AVOID_CPIO: Only x86, amd64, and alpha are cool with CPIO.  It needs a
117351b12faf6Smrg# little-endian, undirected PIO space of at least 64kB.
117361b12faf6Smrg# AVOID_DGA: ???
117371b12faf6Smrg# ATI_TV_OUT: This only works on x86.
1173832b578d3Smrg
117391b12faf6SmrgATIMISC_CPIO=no
117401b12faf6SmrgATIMISC_DGA=yes
117411b12faf6SmrgATIMISC_TV_OUT=no
1174232b578d3Smrg
117431b12faf6Smrgcase $host_cpu in
117441b12faf6Smrg  i*86)
117451b12faf6Smrg    ATIMISC_TV_OUT=yes
117461b12faf6Smrg    ATIMISC_CPIO=yes
117471b12faf6Smrg    ;;
117481b12faf6Smrg  x86_64|amd64|alpha|ia64)
117491b12faf6Smrg    ATIMISC_CPIO=yes
117501b12faf6Smrg    ;;
117511b12faf6Smrg  sparc)
117521b12faf6Smrg    ATIMISC_DGA=no
117531b12faf6Smrg    ;;
117541b12faf6Smrg  *)
117551b12faf6Smrg    ;;
1175632b578d3Smrgesac
1175732b578d3Smrg
117581b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include PIO support" >&5
117591b12faf6Smrg$as_echo_n "checking whether to include PIO support... " >&6; }
117601b12faf6Smrg if test "x$ATIMISC_CPIO" = xyes; then
117611b12faf6Smrg  ATIMISC_CPIO_TRUE=
117621b12faf6Smrg  ATIMISC_CPIO_FALSE='#'
117632a51b5beSmrgelse
117641b12faf6Smrg  ATIMISC_CPIO_TRUE='#'
117651b12faf6Smrg  ATIMISC_CPIO_FALSE=
117662a51b5beSmrgfi
117672a51b5beSmrg
117681b12faf6Smrgif test "x$ATIMISC_CPIO" = xyes; then
117691b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, PIO" >&5
117701b12faf6Smrg$as_echo "yes, PIO" >&6; }
117712a51b5beSmrgelse
117722a51b5beSmrg
117731b12faf6Smrg$as_echo "#define AVOID_CPIO 1" >>confdefs.h
117742a51b5beSmrg
117751b12faf6Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, MMIO" >&5
117761b12faf6Smrg$as_echo "no, MMIO" >&6; }
1177732b578d3Smrgfi
1177832b578d3Smrg
117791b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5
117801b12faf6Smrg$as_echo_n "checking whether to include DGA support... " >&6; }
117811b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_DGA" >&5
117821b12faf6Smrg$as_echo "$ATIMISC_DGA" >&6; }
117831b12faf6Smrg if test "x$ATIMISC_DGA" = xyes; then
117841b12faf6Smrg  ATIMISC_DGA_TRUE=
117851b12faf6Smrg  ATIMISC_DGA_FALSE='#'
1178632b578d3Smrgelse
117871b12faf6Smrg  ATIMISC_DGA_TRUE='#'
117881b12faf6Smrg  ATIMISC_DGA_FALSE=
1178932b578d3Smrgfi
1179032b578d3Smrg
117911b12faf6Smrgif ! test "x$ATIMISC_DGA" = xyes; then
1179232b578d3Smrg
117931b12faf6Smrg$as_echo "#define AVOID_DGA 1" >>confdefs.h
1179432b578d3Smrg
117951b12faf6Smrgfi
1179632b578d3Smrg
117971b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include TV Out support" >&5
117981b12faf6Smrg$as_echo_n "checking whether to include TV Out support... " >&6; }
117991b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_TV_OUT" >&5
118001b12faf6Smrg$as_echo "$ATIMISC_TV_OUT" >&6; }
118011b12faf6Smrg if test "x$ATIMISC_TV_OUT" = xyes; then
118021b12faf6Smrg  ATIMISC_TV_OUT_TRUE=
118031b12faf6Smrg  ATIMISC_TV_OUT_FALSE='#'
118041b12faf6Smrgelse
118051b12faf6Smrg  ATIMISC_TV_OUT_TRUE='#'
118061b12faf6Smrg  ATIMISC_TV_OUT_FALSE=
118071b12faf6Smrgfi
1180832b578d3Smrg
118091b12faf6Smrgif test "x$ATIMISC_TV_OUT" = xyes; then
1181032b578d3Smrg
118111b12faf6Smrg$as_echo "#define TV_OUT 1" >>confdefs.h
1181232b578d3Smrg
118131b12faf6Smrgfi
1181432b578d3Smrg
1181532b578d3Smrg
118161b12faf6Smrg$as_echo "#define USE_XAA 1" >>confdefs.h
1181732b578d3Smrg
1181832b578d3Smrg
118191b12faf6Smrg# Properly handle EXA.
118201b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
118211b12faf6Smrg$as_echo_n "checking whether to enable EXA support... " >&6; }
118221b12faf6Smrgif test "x$EXA" = xyes; then
118231b12faf6Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
118241b12faf6Smrg$as_echo "yes" >&6; }
1182532b578d3Smrg
118261b12faf6Smrg        SAVE_CPPFLAGS="$CPPFLAGS"
118271b12faf6Smrg        CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
118281b12faf6Smrg        ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
118291b12faf6Smrgif test "x$ac_cv_header_exa_h" = x""yes; then :
118301b12faf6Smrg  have_exa_h="yes"
118311b12faf6Smrgelse
118321b12faf6Smrg  have_exa_h="no"
118331b12faf6Smrgfi
1183432b578d3Smrg
1183532b578d3Smrg
118361b12faf6Smrg        CPPFLAGS="$SAVE_CPPFLAGS"
118371b12faf6Smrgelse
118381b12faf6Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
118391b12faf6Smrg$as_echo "no" >&6; }
118401b12faf6Smrgfi
1184132b578d3Smrg
118421b12faf6SmrgSAVE_CPPFLAGS="$CPPFLAGS"
118431b12faf6SmrgCPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
118441b12faf6Smrgif test "x$have_exa_h" = xyes; then
118451b12faf6Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
118461b12faf6Smrg$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
118471b12faf6Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
118481b12faf6Smrg/* end confdefs.h.  */
1184932b578d3Smrg
118501b12faf6Smrg#include "exa.h"
118511b12faf6Smrg#if EXA_VERSION_MAJOR < 2
118521b12faf6Smrg#error OLD EXA!
118531b12faf6Smrg#endif
1185432b578d3Smrg
118551b12faf6Smrgint
118561b12faf6Smrgmain ()
118571b12faf6Smrg{
1185832b578d3Smrg
118591b12faf6Smrg  ;
118601b12faf6Smrg  return 0;
118611b12faf6Smrg}
118621b12faf6Smrg_ACEOF
118631b12faf6Smrgif ac_fn_c_try_cpp "$LINENO"; then :
118641b12faf6Smrg  USE_EXA=yes
118651b12faf6Smrgelse
118661b12faf6Smrg  USE_EXA=no
118671b12faf6Smrgfi
118681b12faf6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
118691b12faf6Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
118701b12faf6Smrg$as_echo "$USE_EXA" >&6; }
1187132b578d3Smrg
118721b12faf6Smrg        if test "x$USE_EXA" = xyes; then
1187332b578d3Smrg
118741b12faf6Smrg$as_echo "#define USE_EXA 1" >>confdefs.h
1187532b578d3Smrg
118761b12faf6Smrg        fi
118771b12faf6Smrgfi
1187832b578d3Smrg
118791b12faf6Smrgac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
118801b12faf6Smrg"
118811b12faf6Smrgif test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then :
118821b12faf6Smrg  XSERVER_LIBPCIACCESS=yes
118831b12faf6Smrgelse
118841b12faf6Smrg  XSERVER_LIBPCIACCESS=no
118851b12faf6Smrgfi
1188632b578d3Smrg
1188732b578d3Smrg
118881b12faf6SmrgCPPFLAGS="$SAVE_CPPFLAGS"
1188932b578d3Smrg
118901b12faf6Smrg if test "x$USE_EXA" = xyes; then
118911b12faf6Smrg  USE_EXA_TRUE=
118921b12faf6Smrg  USE_EXA_FALSE='#'
118931b12faf6Smrgelse
118941b12faf6Smrg  USE_EXA_TRUE='#'
118951b12faf6Smrg  USE_EXA_FALSE=
118961b12faf6Smrgfi
1189732b578d3Smrg
1189832b578d3Smrg
118991b12faf6Smrgif test "x$XSERVER_LIBPCIACCESS" = xyes; then
1190032b578d3Smrg
119011b12faf6Smrgpkg_failed=no
119021b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
119031b12faf6Smrg$as_echo_n "checking for PCIACCESS... " >&6; }
1190432b578d3Smrg
119051b12faf6Smrgif test -n "$PCIACCESS_CFLAGS"; then
119061b12faf6Smrg    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
119071b12faf6Smrg elif test -n "$PKG_CONFIG"; then
119081b12faf6Smrg    if test -n "$PKG_CONFIG" && \
119091b12faf6Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
119101b12faf6Smrg  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
119111b12faf6Smrg  ac_status=$?
119121b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
119131b12faf6Smrg  test $ac_status = 0; }; then
119141b12faf6Smrg  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
119151b12faf6Smrgelse
119161b12faf6Smrg  pkg_failed=yes
119171b12faf6Smrgfi
119181b12faf6Smrg else
119191b12faf6Smrg    pkg_failed=untried
119201b12faf6Smrgfi
119211b12faf6Smrgif test -n "$PCIACCESS_LIBS"; then
119221b12faf6Smrg    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
119231b12faf6Smrg elif test -n "$PKG_CONFIG"; then
119241b12faf6Smrg    if test -n "$PKG_CONFIG" && \
119251b12faf6Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
119261b12faf6Smrg  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
119271b12faf6Smrg  ac_status=$?
119281b12faf6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
119291b12faf6Smrg  test $ac_status = 0; }; then
119301b12faf6Smrg  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
119311b12faf6Smrgelse
119321b12faf6Smrg  pkg_failed=yes
119331b12faf6Smrgfi
119341b12faf6Smrg else
119351b12faf6Smrg    pkg_failed=untried
119361b12faf6Smrgfi
1193732b578d3Smrg
1193832b578d3Smrg
1193932b578d3Smrg
119401b12faf6Smrgif test $pkg_failed = yes; then
119411b12faf6Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
119421b12faf6Smrg$as_echo "no" >&6; }
1194332b578d3Smrg
119441b12faf6Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
119451b12faf6Smrg        _pkg_short_errors_supported=yes
119461b12faf6Smrgelse
119471b12faf6Smrg        _pkg_short_errors_supported=no
119481b12faf6Smrgfi
119491b12faf6Smrg        if test $_pkg_short_errors_supported = yes; then
119501b12faf6Smrg	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
119511b12faf6Smrg        else
119521b12faf6Smrg	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
119531b12faf6Smrg        fi
119541b12faf6Smrg	# Put the nasty error message in config.log where it belongs
119551b12faf6Smrg	echo "$PCIACCESS_PKG_ERRORS" >&5
1195632b578d3Smrg
119571b12faf6Smrg	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
1195832b578d3Smrg
119591b12faf6Smrg$PCIACCESS_PKG_ERRORS
1196032b578d3Smrg
119611b12faf6SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
119621b12faf6Smrginstalled software in a non-standard prefix.
1196332b578d3Smrg
119641b12faf6SmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS
119651b12faf6Smrgand PCIACCESS_LIBS to avoid the need to call pkg-config.
119661b12faf6SmrgSee the pkg-config man page for more details." "$LINENO" 5
119671b12faf6Smrgelif test $pkg_failed = untried; then
119681b12faf6Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
119691b12faf6Smrg$as_echo "no" >&6; }
119701b12faf6Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
119711b12faf6Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
119721b12faf6Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
119731b12faf6Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
119741b12faf6Smrgpath to pkg-config.
1197532b578d3Smrg
119761b12faf6SmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS
119771b12faf6Smrgand PCIACCESS_LIBS to avoid the need to call pkg-config.
119781b12faf6SmrgSee the pkg-config man page for more details.
1197932b578d3Smrg
119801b12faf6SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
119811b12faf6SmrgSee \`config.log' for more details" "$LINENO" 5 ; }
119821b12faf6Smrgelse
119831b12faf6Smrg	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
119841b12faf6Smrg	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
119851b12faf6Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
119861b12faf6Smrg$as_echo "yes" >&6; }
1198732b578d3Smrg
119881b12faf6Smrgfi
119891b12faf6Smrg    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
119901b12faf6Smrgfi
119911b12faf6Smrg if test "x$XSERVER_LIBPCIACCESS" = xyes; then
119921b12faf6Smrg  XSERVER_LIBPCIACCESS_TRUE=
119931b12faf6Smrg  XSERVER_LIBPCIACCESS_FALSE='#'
119941b12faf6Smrgelse
119951b12faf6Smrg  XSERVER_LIBPCIACCESS_TRUE='#'
119961b12faf6Smrg  XSERVER_LIBPCIACCESS_FALSE=
119971b12faf6Smrgfi
1199832b578d3Smrg
1199932b578d3Smrg
1200032b578d3Smrg
1200132b578d3Smrg
120021b12faf6SmrgDRIVER_NAME=mach64
1200332b578d3Smrg
1200432b578d3Smrg
120051b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
120061b12faf6Smrg or install the ati wrapper as well:
120071b12faf6Smrg    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
120081b12faf6Smrg" >&5
120091b12faf6Smrg$as_echo "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
120101b12faf6Smrg or install the ati wrapper as well:
120111b12faf6Smrg    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
120121b12faf6Smrg" >&6;}
1201332b578d3Smrg
120141b12faf6Smrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
1201532b578d3Smrg
120161b12faf6Smrgcat >confcache <<\_ACEOF
120171b12faf6Smrg# This file is a shell script that caches the results of configure
120181b12faf6Smrg# tests run on this system so they can be shared between configure
120191b12faf6Smrg# scripts and configure runs, see configure's option --config-cache.
120201b12faf6Smrg# It is not useful on other systems.  If it contains results you don't
120211b12faf6Smrg# want to keep, you may remove or edit it.
120221b12faf6Smrg#
120231b12faf6Smrg# config.status only pays attention to the cache file if you give it
120241b12faf6Smrg# the --recheck option to rerun configure.
120251b12faf6Smrg#
120261b12faf6Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
120271b12faf6Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
120281b12faf6Smrg# following values.
1202932b578d3Smrg
120301b12faf6Smrg_ACEOF
1203132b578d3Smrg
120321b12faf6Smrg# The following way of writing the cache mishandles newlines in values,
120331b12faf6Smrg# but we know of no workaround that is simple, portable, and efficient.
120341b12faf6Smrg# So, we kill variables containing newlines.
120351b12faf6Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
120361b12faf6Smrg# and sets the high bit in the cache file unless we assign to the vars.
120371b12faf6Smrg(
120381b12faf6Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
120391b12faf6Smrg    eval ac_val=\$$ac_var
120401b12faf6Smrg    case $ac_val in #(
120411b12faf6Smrg    *${as_nl}*)
120421b12faf6Smrg      case $ac_var in #(
120431b12faf6Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
120441b12faf6Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
120451b12faf6Smrg      esac
120461b12faf6Smrg      case $ac_var in #(
120471b12faf6Smrg      _ | IFS | as_nl) ;; #(
120481b12faf6Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
120491b12faf6Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
120501b12faf6Smrg      esac ;;
120511b12faf6Smrg    esac
120521b12faf6Smrg  done
1205332b578d3Smrg
120541b12faf6Smrg  (set) 2>&1 |
120551b12faf6Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
120561b12faf6Smrg    *${as_nl}ac_space=\ *)
120571b12faf6Smrg      # `set' does not quote correctly, so add quotes: double-quote
120581b12faf6Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
120591b12faf6Smrg      sed -n \
120601b12faf6Smrg	"s/'/'\\\\''/g;
120611b12faf6Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
120621b12faf6Smrg      ;; #(
120631b12faf6Smrg    *)
120641b12faf6Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
120651b12faf6Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
120661b12faf6Smrg      ;;
120671b12faf6Smrg    esac |
120681b12faf6Smrg    sort
120691b12faf6Smrg) |
120701b12faf6Smrg  sed '
120711b12faf6Smrg     /^ac_cv_env_/b end
120721b12faf6Smrg     t clear
120731b12faf6Smrg     :clear
120741b12faf6Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
120751b12faf6Smrg     t end
120761b12faf6Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
120771b12faf6Smrg     :end' >>confcache
120781b12faf6Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
120791b12faf6Smrg  if test -w "$cache_file"; then
120801b12faf6Smrg    test "x$cache_file" != "x/dev/null" &&
120811b12faf6Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
120821b12faf6Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
120831b12faf6Smrg    cat confcache >$cache_file
120841b12faf6Smrg  else
120851b12faf6Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
120861b12faf6Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
120871b12faf6Smrg  fi
120881b12faf6Smrgfi
120891b12faf6Smrgrm -f confcache
1209032b578d3Smrg
120911b12faf6Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
120921b12faf6Smrg# Let make expand exec_prefix.
120931b12faf6Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1209432b578d3Smrg
120951b12faf6SmrgDEFS=-DHAVE_CONFIG_H
1209632b578d3Smrg
120971b12faf6Smrgac_libobjs=
120981b12faf6Smrgac_ltlibobjs=
120991b12faf6SmrgU=
121001b12faf6Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
121011b12faf6Smrg  # 1. Remove the extension, and $U if already installed.
121021b12faf6Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
121031b12faf6Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
121041b12faf6Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
121051b12faf6Smrg  #    will be set to the directory where LIBOBJS objects are built.
121061b12faf6Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
121071b12faf6Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
121081b12faf6Smrgdone
121091b12faf6SmrgLIBOBJS=$ac_libobjs
1211032b578d3Smrg
121111b12faf6SmrgLTLIBOBJS=$ac_ltlibobjs
1211232b578d3Smrg
1211332b578d3Smrg
121141b12faf6Smrg if test -n "$EXEEXT"; then
121151b12faf6Smrg  am__EXEEXT_TRUE=
121161b12faf6Smrg  am__EXEEXT_FALSE='#'
121171b12faf6Smrgelse
121181b12faf6Smrg  am__EXEEXT_TRUE='#'
121191b12faf6Smrg  am__EXEEXT_FALSE=
121201b12faf6Smrgfi
1212132b578d3Smrg
121221b12faf6Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
121231b12faf6Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
121241b12faf6SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
121251b12faf6Smrgfi
121261b12faf6Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
121271b12faf6Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
121281b12faf6SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
121291b12faf6Smrgfi
121301b12faf6Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
121311b12faf6Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
121321b12faf6SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
121331b12faf6Smrgfi
121341b12faf6Smrgif test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
121351b12faf6Smrg  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
121361b12faf6SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
121371b12faf6Smrgfi
121381b12faf6Smrgif test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
121391b12faf6Smrg  as_fn_error $? "conditional \"DRI\" was never defined.
121401b12faf6SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
121411b12faf6Smrgfi
121421b12faf6Smrgif test -z "${ATIMISC_CPIO_TRUE}" && test -z "${ATIMISC_CPIO_FALSE}"; then
121431b12faf6Smrg  as_fn_error $? "conditional \"ATIMISC_CPIO\" was never defined.
121441b12faf6SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
121451b12faf6Smrgfi
121461b12faf6Smrgif test -z "${ATIMISC_DGA_TRUE}" && test -z "${ATIMISC_DGA_FALSE}"; then
121471b12faf6Smrg  as_fn_error $? "conditional \"ATIMISC_DGA\" was never defined.
121481b12faf6SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
121491b12faf6Smrgfi
121501b12faf6Smrgif test -z "${ATIMISC_TV_OUT_TRUE}" && test -z "${ATIMISC_TV_OUT_FALSE}"; then
121511b12faf6Smrg  as_fn_error $? "conditional \"ATIMISC_TV_OUT\" was never defined.
121521b12faf6SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
121531b12faf6Smrgfi
121541b12faf6Smrgif test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
121551b12faf6Smrg  as_fn_error $? "conditional \"USE_EXA\" was never defined.
121561b12faf6SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
121571b12faf6Smrgfi
121581b12faf6Smrgif test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
121591b12faf6Smrg  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
121601b12faf6SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
121611b12faf6Smrgfi
1216232b578d3Smrg
121631b12faf6Smrg: ${CONFIG_STATUS=./config.status}
121641b12faf6Smrgac_write_fail=0
121651b12faf6Smrgac_clean_files_save=$ac_clean_files
121661b12faf6Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
121671b12faf6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
121681b12faf6Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
121691b12faf6Smrgas_write_fail=0
121701b12faf6Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
121711b12faf6Smrg#! $SHELL
121721b12faf6Smrg# Generated by $as_me.
121731b12faf6Smrg# Run this file to recreate the current configuration.
121741b12faf6Smrg# Compiler output produced by configure, useful for debugging
121751b12faf6Smrg# configure, is in config.log if it exists.
121762a51b5beSmrg
121771b12faf6Smrgdebug=false
121781b12faf6Smrgac_cs_recheck=false
121791b12faf6Smrgac_cs_silent=false
1218032b578d3Smrg
121811b12faf6SmrgSHELL=\${CONFIG_SHELL-$SHELL}
121821b12faf6Smrgexport SHELL
121831b12faf6Smrg_ASEOF
121841b12faf6Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
121851b12faf6Smrg## -------------------- ##
121861b12faf6Smrg## M4sh Initialization. ##
121871b12faf6Smrg## -------------------- ##
1218832b578d3Smrg
121891b12faf6Smrg# Be more Bourne compatible
121901b12faf6SmrgDUALCASE=1; export DUALCASE # for MKS sh
121911b12faf6Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
121921b12faf6Smrg  emulate sh
121931b12faf6Smrg  NULLCMD=:
121941b12faf6Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
121951b12faf6Smrg  # is contrary to our usage.  Disable this feature.
121961b12faf6Smrg  alias -g '${1+"$@"}'='"$@"'
121971b12faf6Smrg  setopt NO_GLOB_SUBST
121981b12faf6Smrgelse
121991b12faf6Smrg  case `(set -o) 2>/dev/null` in #(
122001b12faf6Smrg  *posix*) :
122011b12faf6Smrg    set -o posix ;; #(
122021b12faf6Smrg  *) :
122031b12faf6Smrg     ;;
122041b12faf6Smrgesac
122051b12faf6Smrgfi
1220632b578d3Smrg
1220732b578d3Smrg
122081b12faf6Smrgas_nl='
122091b12faf6Smrg'
122101b12faf6Smrgexport as_nl
122111b12faf6Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
122121b12faf6Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
122131b12faf6Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
122141b12faf6Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
122151b12faf6Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
122161b12faf6Smrg# but without wasting forks for bash or zsh.
122171b12faf6Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
122181b12faf6Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
122191b12faf6Smrg  as_echo='print -r --'
122201b12faf6Smrg  as_echo_n='print -rn --'
122211b12faf6Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
122221b12faf6Smrg  as_echo='printf %s\n'
122231b12faf6Smrg  as_echo_n='printf %s'
122241b12faf6Smrgelse
122251b12faf6Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
122261b12faf6Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
122271b12faf6Smrg    as_echo_n='/usr/ucb/echo -n'
122281b12faf6Smrg  else
122291b12faf6Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
122301b12faf6Smrg    as_echo_n_body='eval
122311b12faf6Smrg      arg=$1;
122321b12faf6Smrg      case $arg in #(
122331b12faf6Smrg      *"$as_nl"*)
122341b12faf6Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
122351b12faf6Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
122361b12faf6Smrg      esac;
122371b12faf6Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
122381b12faf6Smrg    '
122391b12faf6Smrg    export as_echo_n_body
122401b12faf6Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
122411b12faf6Smrg  fi
122421b12faf6Smrg  export as_echo_body
122431b12faf6Smrg  as_echo='sh -c $as_echo_body as_echo'
122441b12faf6Smrgfi
1224532b578d3Smrg
122461b12faf6Smrg# The user is always right.
122471b12faf6Smrgif test "${PATH_SEPARATOR+set}" != set; then
122481b12faf6Smrg  PATH_SEPARATOR=:
122491b12faf6Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
122501b12faf6Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
122511b12faf6Smrg      PATH_SEPARATOR=';'
122521b12faf6Smrg  }
122531b12faf6Smrgfi
1225432b578d3Smrg
1225532b578d3Smrg
122561b12faf6Smrg# IFS
122571b12faf6Smrg# We need space, tab and new line, in precisely that order.  Quoting is
122581b12faf6Smrg# there to prevent editors from complaining about space-tab.
122591b12faf6Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
122601b12faf6Smrg# splitting by setting IFS to empty value.)
122611b12faf6SmrgIFS=" ""	$as_nl"
1226232b578d3Smrg
122631b12faf6Smrg# Find who we are.  Look in the path if we contain no directory separator.
122641b12faf6Smrgcase $0 in #((
122651b12faf6Smrg  *[\\/]* ) as_myself=$0 ;;
122661b12faf6Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
122671b12faf6Smrgfor as_dir in $PATH
122681b12faf6Smrgdo
122691b12faf6Smrg  IFS=$as_save_IFS
122701b12faf6Smrg  test -z "$as_dir" && as_dir=.
122711b12faf6Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122721b12faf6Smrg  done
122731b12faf6SmrgIFS=$as_save_IFS
1227432b578d3Smrg
122751b12faf6Smrg     ;;
122761b12faf6Smrgesac
122771b12faf6Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
122781b12faf6Smrg# in which case we are not to be found in the path.
122791b12faf6Smrgif test "x$as_myself" = x; then
122801b12faf6Smrg  as_myself=$0
122811b12faf6Smrgfi
122821b12faf6Smrgif test ! -f "$as_myself"; then
122831b12faf6Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
122841b12faf6Smrg  exit 1
122851b12faf6Smrgfi
1228632b578d3Smrg
122871b12faf6Smrg# Unset variables that we do not need and which cause bugs (e.g. in
122881b12faf6Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
122891b12faf6Smrg# suppresses any "Segmentation fault" message there.  '((' could
122901b12faf6Smrg# trigger a bug in pdksh 5.2.14.
122911b12faf6Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
122921b12faf6Smrgdo eval test x\${$as_var+set} = xset \
122931b12faf6Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122941b12faf6Smrgdone
122951b12faf6SmrgPS1='$ '
122961b12faf6SmrgPS2='> '
122971b12faf6SmrgPS4='+ '
1229832b578d3Smrg
122991b12faf6Smrg# NLS nuisances.
123001b12faf6SmrgLC_ALL=C
123011b12faf6Smrgexport LC_ALL
123021b12faf6SmrgLANGUAGE=C
123031b12faf6Smrgexport LANGUAGE
1230432b578d3Smrg
123051b12faf6Smrg# CDPATH.
123061b12faf6Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1230732b578d3Smrg
1230832b578d3Smrg
123091b12faf6Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
123101b12faf6Smrg# ----------------------------------------
123111b12faf6Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
123121b12faf6Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
123131b12faf6Smrg# script with STATUS, using 1 if that was 0.
123141b12faf6Smrgas_fn_error ()
123151b12faf6Smrg{
123161b12faf6Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
123171b12faf6Smrg  if test "$4"; then
123181b12faf6Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
123191b12faf6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
123201b12faf6Smrg  fi
123211b12faf6Smrg  $as_echo "$as_me: error: $2" >&2
123221b12faf6Smrg  as_fn_exit $as_status
123231b12faf6Smrg} # as_fn_error
1232432b578d3Smrg
1232532b578d3Smrg
123261b12faf6Smrg# as_fn_set_status STATUS
123271b12faf6Smrg# -----------------------
123281b12faf6Smrg# Set $? to STATUS, without forking.
123291b12faf6Smrgas_fn_set_status ()
123301b12faf6Smrg{
123311b12faf6Smrg  return $1
123321b12faf6Smrg} # as_fn_set_status
1233332b578d3Smrg
123341b12faf6Smrg# as_fn_exit STATUS
123351b12faf6Smrg# -----------------
123361b12faf6Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
123371b12faf6Smrgas_fn_exit ()
123381b12faf6Smrg{
123391b12faf6Smrg  set +e
123401b12faf6Smrg  as_fn_set_status $1
123411b12faf6Smrg  exit $1
123421b12faf6Smrg} # as_fn_exit
123431b12faf6Smrg
123441b12faf6Smrg# as_fn_unset VAR
123451b12faf6Smrg# ---------------
123461b12faf6Smrg# Portably unset VAR.
123471b12faf6Smrgas_fn_unset ()
123481b12faf6Smrg{
123491b12faf6Smrg  { eval $1=; unset $1;}
123501b12faf6Smrg}
123511b12faf6Smrgas_unset=as_fn_unset
123521b12faf6Smrg# as_fn_append VAR VALUE
123531b12faf6Smrg# ----------------------
123541b12faf6Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
123551b12faf6Smrg# advantage of any shell optimizations that allow amortized linear growth over
123561b12faf6Smrg# repeated appends, instead of the typical quadratic growth present in naive
123571b12faf6Smrg# implementations.
123581b12faf6Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
123591b12faf6Smrg  eval 'as_fn_append ()
123601b12faf6Smrg  {
123611b12faf6Smrg    eval $1+=\$2
123621b12faf6Smrg  }'
123631b12faf6Smrgelse
123641b12faf6Smrg  as_fn_append ()
123651b12faf6Smrg  {
123661b12faf6Smrg    eval $1=\$$1\$2
123671b12faf6Smrg  }
123681b12faf6Smrgfi # as_fn_append
123691b12faf6Smrg
123701b12faf6Smrg# as_fn_arith ARG...
123711b12faf6Smrg# ------------------
123721b12faf6Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
123731b12faf6Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
123741b12faf6Smrg# must be portable across $(()) and expr.
123751b12faf6Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
123761b12faf6Smrg  eval 'as_fn_arith ()
123771b12faf6Smrg  {
123781b12faf6Smrg    as_val=$(( $* ))
123791b12faf6Smrg  }'
123801b12faf6Smrgelse
123811b12faf6Smrg  as_fn_arith ()
123821b12faf6Smrg  {
123831b12faf6Smrg    as_val=`expr "$@" || test $? -eq 1`
123841b12faf6Smrg  }
123851b12faf6Smrgfi # as_fn_arith
1238632b578d3Smrg
1238732b578d3Smrg
123881b12faf6Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
123891b12faf6Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
123901b12faf6Smrg  as_expr=expr
123911b12faf6Smrgelse
123921b12faf6Smrg  as_expr=false
123931b12faf6Smrgfi
1239432b578d3Smrg
123951b12faf6Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123961b12faf6Smrg  as_basename=basename
123971b12faf6Smrgelse
123981b12faf6Smrg  as_basename=false
123991b12faf6Smrgfi
1240032b578d3Smrg
124011b12faf6Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
124021b12faf6Smrg  as_dirname=dirname
124031b12faf6Smrgelse
124041b12faf6Smrg  as_dirname=false
124051b12faf6Smrgfi
1240632b578d3Smrg
124071b12faf6Smrgas_me=`$as_basename -- "$0" ||
124081b12faf6Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
124091b12faf6Smrg	 X"$0" : 'X\(//\)$' \| \
124101b12faf6Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
124111b12faf6Smrg$as_echo X/"$0" |
124121b12faf6Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
124131b12faf6Smrg	    s//\1/
124141b12faf6Smrg	    q
124151b12faf6Smrg	  }
124161b12faf6Smrg	  /^X\/\(\/\/\)$/{
124171b12faf6Smrg	    s//\1/
124181b12faf6Smrg	    q
124191b12faf6Smrg	  }
124201b12faf6Smrg	  /^X\/\(\/\).*/{
124211b12faf6Smrg	    s//\1/
124221b12faf6Smrg	    q
124231b12faf6Smrg	  }
124241b12faf6Smrg	  s/.*/./; q'`
1242532b578d3Smrg
124261b12faf6Smrg# Avoid depending upon Character Ranges.
124271b12faf6Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
124281b12faf6Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
124291b12faf6Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
124301b12faf6Smrgas_cr_digits='0123456789'
124311b12faf6Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
1243232b578d3Smrg
124331b12faf6SmrgECHO_C= ECHO_N= ECHO_T=
124341b12faf6Smrgcase `echo -n x` in #(((((
124351b12faf6Smrg-n*)
124361b12faf6Smrg  case `echo 'xy\c'` in
124371b12faf6Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
124381b12faf6Smrg  xy)  ECHO_C='\c';;
124391b12faf6Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
124401b12faf6Smrg       ECHO_T='	';;
124411b12faf6Smrg  esac;;
124421b12faf6Smrg*)
124431b12faf6Smrg  ECHO_N='-n';;
124441b12faf6Smrgesac
1244532b578d3Smrg
124461b12faf6Smrgrm -f conf$$ conf$$.exe conf$$.file
124471b12faf6Smrgif test -d conf$$.dir; then
124481b12faf6Smrg  rm -f conf$$.dir/conf$$.file
124491b12faf6Smrgelse
124501b12faf6Smrg  rm -f conf$$.dir
124511b12faf6Smrg  mkdir conf$$.dir 2>/dev/null
124521b12faf6Smrgfi
124531b12faf6Smrgif (echo >conf$$.file) 2>/dev/null; then
124541b12faf6Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
124551b12faf6Smrg    as_ln_s='ln -s'
124561b12faf6Smrg    # ... but there are two gotchas:
124571b12faf6Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
124581b12faf6Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
124591b12faf6Smrg    # In both cases, we have to default to `cp -p'.
124601b12faf6Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
124611b12faf6Smrg      as_ln_s='cp -p'
124621b12faf6Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
124631b12faf6Smrg    as_ln_s=ln
124641b12faf6Smrg  else
124651b12faf6Smrg    as_ln_s='cp -p'
124661b12faf6Smrg  fi
124671b12faf6Smrgelse
124681b12faf6Smrg  as_ln_s='cp -p'
124691b12faf6Smrgfi
124701b12faf6Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
124711b12faf6Smrgrmdir conf$$.dir 2>/dev/null
1247232b578d3Smrg
1247332b578d3Smrg
124741b12faf6Smrg# as_fn_mkdir_p
124751b12faf6Smrg# -------------
124761b12faf6Smrg# Create "$as_dir" as a directory, including parents if necessary.
124771b12faf6Smrgas_fn_mkdir_p ()
124781b12faf6Smrg{
1247932b578d3Smrg
124801b12faf6Smrg  case $as_dir in #(
124811b12faf6Smrg  -*) as_dir=./$as_dir;;
124821b12faf6Smrg  esac
124831b12faf6Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
124841b12faf6Smrg    as_dirs=
124851b12faf6Smrg    while :; do
124861b12faf6Smrg      case $as_dir in #(
124871b12faf6Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
124881b12faf6Smrg      *) as_qdir=$as_dir;;
124891b12faf6Smrg      esac
124901b12faf6Smrg      as_dirs="'$as_qdir' $as_dirs"
124911b12faf6Smrg      as_dir=`$as_dirname -- "$as_dir" ||
124921b12faf6Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
124931b12faf6Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
124941b12faf6Smrg	 X"$as_dir" : 'X\(//\)$' \| \
124951b12faf6Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
124961b12faf6Smrg$as_echo X"$as_dir" |
124971b12faf6Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
124981b12faf6Smrg	    s//\1/
124991b12faf6Smrg	    q
125001b12faf6Smrg	  }
125011b12faf6Smrg	  /^X\(\/\/\)[^/].*/{
125021b12faf6Smrg	    s//\1/
125031b12faf6Smrg	    q
125041b12faf6Smrg	  }
125051b12faf6Smrg	  /^X\(\/\/\)$/{
125061b12faf6Smrg	    s//\1/
125071b12faf6Smrg	    q
125081b12faf6Smrg	  }
125091b12faf6Smrg	  /^X\(\/\).*/{
125101b12faf6Smrg	    s//\1/
125111b12faf6Smrg	    q
125121b12faf6Smrg	  }
125131b12faf6Smrg	  s/.*/./; q'`
125141b12faf6Smrg      test -d "$as_dir" && break
125151b12faf6Smrg    done
125161b12faf6Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
125171b12faf6Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1251832b578d3Smrg
1251932b578d3Smrg
125201b12faf6Smrg} # as_fn_mkdir_p
125211b12faf6Smrgif mkdir -p . 2>/dev/null; then
125221b12faf6Smrg  as_mkdir_p='mkdir -p "$as_dir"'
125231b12faf6Smrgelse
125241b12faf6Smrg  test -d ./-p && rmdir ./-p
125251b12faf6Smrg  as_mkdir_p=false
125261b12faf6Smrgfi
1252732b578d3Smrg
125281b12faf6Smrgif test -x / >/dev/null 2>&1; then
125291b12faf6Smrg  as_test_x='test -x'
1253032b578d3Smrgelse
125311b12faf6Smrg  if ls -dL / >/dev/null 2>&1; then
125321b12faf6Smrg    as_ls_L_option=L
125331b12faf6Smrg  else
125341b12faf6Smrg    as_ls_L_option=
1253532b578d3Smrg  fi
125361b12faf6Smrg  as_test_x='
125371b12faf6Smrg    eval sh -c '\''
125381b12faf6Smrg      if test -d "$1"; then
125391b12faf6Smrg	test -d "$1/.";
125401b12faf6Smrg      else
125411b12faf6Smrg	case $1 in #(
125421b12faf6Smrg	-*)set "./$1";;
125431b12faf6Smrg	esac;
125441b12faf6Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
125451b12faf6Smrg	???[sx]*):;;*)false;;esac;fi
125461b12faf6Smrg    '\'' sh
125471b12faf6Smrg  '
1254832b578d3Smrgfi
125491b12faf6Smrgas_executable_p=$as_test_x
1255032b578d3Smrg
125511b12faf6Smrg# Sed expression to map a string onto a valid CPP name.
125521b12faf6Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1255332b578d3Smrg
125541b12faf6Smrg# Sed expression to map a string onto a valid variable name.
125551b12faf6Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1255632b578d3Smrg
1255732b578d3Smrg
125581b12faf6Smrgexec 6>&1
125591b12faf6Smrg## ----------------------------------- ##
125601b12faf6Smrg## Main body of $CONFIG_STATUS script. ##
125611b12faf6Smrg## ----------------------------------- ##
125621b12faf6Smrg_ASEOF
125631b12faf6Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1256432b578d3Smrg
125651b12faf6Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
125661b12faf6Smrg# Save the log message, to keep $0 and so on meaningful, and to
125671b12faf6Smrg# report actual input values of CONFIG_FILES etc. instead of their
125681b12faf6Smrg# values after options handling.
125691b12faf6Smrgac_log="
125701b12faf6SmrgThis file was extended by xf86-video-mach64 $as_me 6.9.0, which was
125711b12faf6Smrggenerated by GNU Autoconf 2.67.  Invocation command line was
1257232b578d3Smrg
125731b12faf6Smrg  CONFIG_FILES    = $CONFIG_FILES
125741b12faf6Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
125751b12faf6Smrg  CONFIG_LINKS    = $CONFIG_LINKS
125761b12faf6Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
125771b12faf6Smrg  $ $0 $@
1257832b578d3Smrg
125791b12faf6Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
125801b12faf6Smrg"
1258132b578d3Smrg
125821b12faf6Smrg_ACEOF
1258332b578d3Smrg
125841b12faf6Smrgcase $ac_config_files in *"
125851b12faf6Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
125861b12faf6Smrgesac
1258732b578d3Smrg
125881b12faf6Smrgcase $ac_config_headers in *"
125891b12faf6Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
125901b12faf6Smrgesac
1259132b578d3Smrg
1259232b578d3Smrg
125931b12faf6Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
125941b12faf6Smrg# Files that config.status was made for.
125951b12faf6Smrgconfig_files="$ac_config_files"
125961b12faf6Smrgconfig_headers="$ac_config_headers"
125971b12faf6Smrgconfig_commands="$ac_config_commands"
1259832b578d3Smrg
125991b12faf6Smrg_ACEOF
1260032b578d3Smrg
126011b12faf6Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
126021b12faf6Smrgac_cs_usage="\
126031b12faf6Smrg\`$as_me' instantiates files and other configuration actions
126041b12faf6Smrgfrom templates according to the current configuration.  Unless the files
126051b12faf6Smrgand actions are specified as TAGs, all are instantiated by default.
1260632b578d3Smrg
126071b12faf6SmrgUsage: $0 [OPTION]... [TAG]...
1260832b578d3Smrg
126091b12faf6Smrg  -h, --help       print this help, then exit
126101b12faf6Smrg  -V, --version    print version number and configuration settings, then exit
126111b12faf6Smrg      --config     print configuration, then exit
126121b12faf6Smrg  -q, --quiet, --silent
126131b12faf6Smrg                   do not print progress messages
126141b12faf6Smrg  -d, --debug      don't remove temporary files
126151b12faf6Smrg      --recheck    update $as_me by reconfiguring in the same conditions
126161b12faf6Smrg      --file=FILE[:TEMPLATE]
126171b12faf6Smrg                   instantiate the configuration file FILE
126181b12faf6Smrg      --header=FILE[:TEMPLATE]
126191b12faf6Smrg                   instantiate the configuration header FILE
1262032b578d3Smrg
126211b12faf6SmrgConfiguration files:
126221b12faf6Smrg$config_files
1262332b578d3Smrg
126241b12faf6SmrgConfiguration headers:
126251b12faf6Smrg$config_headers
1262632b578d3Smrg
126271b12faf6SmrgConfiguration commands:
126281b12faf6Smrg$config_commands
1262932b578d3Smrg
126301b12faf6SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
1263132b578d3Smrg
126321b12faf6Smrg_ACEOF
126331b12faf6Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
126341b12faf6Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
126351b12faf6Smrgac_cs_version="\\
126361b12faf6Smrgxf86-video-mach64 config.status 6.9.0
126371b12faf6Smrgconfigured by $0, generated by GNU Autoconf 2.67,
126381b12faf6Smrg  with options \\"\$ac_cs_config\\"
1263932b578d3Smrg
126401b12faf6SmrgCopyright (C) 2010 Free Software Foundation, Inc.
126411b12faf6SmrgThis config.status script is free software; the Free Software Foundation
126421b12faf6Smrggives unlimited permission to copy, distribute and modify it."
1264332b578d3Smrg
126441b12faf6Smrgac_pwd='$ac_pwd'
126451b12faf6Smrgsrcdir='$srcdir'
126461b12faf6SmrgINSTALL='$INSTALL'
126471b12faf6SmrgMKDIR_P='$MKDIR_P'
126481b12faf6SmrgAWK='$AWK'
126491b12faf6Smrgtest -n "\$AWK" || AWK=awk
126501b12faf6Smrg_ACEOF
1265132b578d3Smrg
126521b12faf6Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
126531b12faf6Smrg# The default lists apply if the user does not specify any file.
126541b12faf6Smrgac_need_defaults=:
126551b12faf6Smrgwhile test $# != 0
126561b12faf6Smrgdo
126571b12faf6Smrg  case $1 in
126581b12faf6Smrg  --*=?*)
126591b12faf6Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
126601b12faf6Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
126611b12faf6Smrg    ac_shift=:
126621b12faf6Smrg    ;;
126631b12faf6Smrg  --*=)
126641b12faf6Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
126651b12faf6Smrg    ac_optarg=
126661b12faf6Smrg    ac_shift=:
126671b12faf6Smrg    ;;
126681b12faf6Smrg  *)
126691b12faf6Smrg    ac_option=$1
126701b12faf6Smrg    ac_optarg=$2
126711b12faf6Smrg    ac_shift=shift
126721b12faf6Smrg    ;;
126731b12faf6Smrg  esac
1267432b578d3Smrg
126751b12faf6Smrg  case $ac_option in
126761b12faf6Smrg  # Handling of the options.
126771b12faf6Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
126781b12faf6Smrg    ac_cs_recheck=: ;;
126791b12faf6Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
126801b12faf6Smrg    $as_echo "$ac_cs_version"; exit ;;
126811b12faf6Smrg  --config | --confi | --conf | --con | --co | --c )
126821b12faf6Smrg    $as_echo "$ac_cs_config"; exit ;;
126831b12faf6Smrg  --debug | --debu | --deb | --de | --d | -d )
126841b12faf6Smrg    debug=: ;;
126851b12faf6Smrg  --file | --fil | --fi | --f )
126861b12faf6Smrg    $ac_shift
126871b12faf6Smrg    case $ac_optarg in
126881b12faf6Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
126891b12faf6Smrg    '') as_fn_error $? "missing file argument" ;;
126901b12faf6Smrg    esac
126911b12faf6Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
126921b12faf6Smrg    ac_need_defaults=false;;
126931b12faf6Smrg  --header | --heade | --head | --hea )
126941b12faf6Smrg    $ac_shift
126951b12faf6Smrg    case $ac_optarg in
126961b12faf6Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
126971b12faf6Smrg    esac
126981b12faf6Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
126991b12faf6Smrg    ac_need_defaults=false;;
127001b12faf6Smrg  --he | --h)
127011b12faf6Smrg    # Conflict between --help and --header
127021b12faf6Smrg    as_fn_error $? "ambiguous option: \`$1'
127031b12faf6SmrgTry \`$0 --help' for more information.";;
127041b12faf6Smrg  --help | --hel | -h )
127051b12faf6Smrg    $as_echo "$ac_cs_usage"; exit ;;
127061b12faf6Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
127071b12faf6Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
127081b12faf6Smrg    ac_cs_silent=: ;;
1270932b578d3Smrg
127101b12faf6Smrg  # This is an error.
127111b12faf6Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
127121b12faf6SmrgTry \`$0 --help' for more information." ;;
1271332b578d3Smrg
127141b12faf6Smrg  *) as_fn_append ac_config_targets " $1"
127151b12faf6Smrg     ac_need_defaults=false ;;
1271632b578d3Smrg
127171b12faf6Smrg  esac
127181b12faf6Smrg  shift
127191b12faf6Smrgdone
1272032b578d3Smrg
127211b12faf6Smrgac_configure_extra_args=
1272232b578d3Smrg
127231b12faf6Smrgif $ac_cs_silent; then
127241b12faf6Smrg  exec 6>/dev/null
127251b12faf6Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
127261b12faf6Smrgfi
127272a51b5beSmrg
127281b12faf6Smrg_ACEOF
127291b12faf6Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
127301b12faf6Smrgif \$ac_cs_recheck; then
127311b12faf6Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
127321b12faf6Smrg  shift
127331b12faf6Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
127341b12faf6Smrg  CONFIG_SHELL='$SHELL'
127351b12faf6Smrg  export CONFIG_SHELL
127361b12faf6Smrg  exec "\$@"
127371b12faf6Smrgfi
1273832b578d3Smrg
127391b12faf6Smrg_ACEOF
127401b12faf6Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
127411b12faf6Smrgexec 5>>config.log
127421b12faf6Smrg{
127431b12faf6Smrg  echo
127441b12faf6Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
127451b12faf6Smrg## Running $as_me. ##
127461b12faf6Smrg_ASBOX
127471b12faf6Smrg  $as_echo "$ac_log"
127481b12faf6Smrg} >&5
1274932b578d3Smrg
127501b12faf6Smrg_ACEOF
127511b12faf6Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
127521b12faf6Smrg#
127531b12faf6Smrg# INIT-COMMANDS
127541b12faf6Smrg#
127551b12faf6SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1275632b578d3Smrg
1275732b578d3Smrg
127581b12faf6Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout
127591b12faf6Smrg# if CDPATH is set.
127601b12faf6Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1276132b578d3Smrg
127621b12faf6Smrgsed_quote_subst='$sed_quote_subst'
127631b12faf6Smrgdouble_quote_subst='$double_quote_subst'
127641b12faf6Smrgdelay_variable_subst='$delay_variable_subst'
127651b12faf6Smrgenable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
127661b12faf6Smrgmacro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
127671b12faf6Smrgmacro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
127681b12faf6Smrgenable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
127691b12faf6Smrgpic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
127701b12faf6Smrgenable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
127711b12faf6Smrghost_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
127721b12faf6Smrghost='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
127731b12faf6Smrghost_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
127741b12faf6Smrgbuild_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
127751b12faf6Smrgbuild='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
127761b12faf6Smrgbuild_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
127771b12faf6SmrgSED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
127781b12faf6SmrgXsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
127791b12faf6SmrgGREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
127801b12faf6SmrgEGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
127811b12faf6SmrgFGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
127821b12faf6SmrgLD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
127831b12faf6SmrgNM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
127841b12faf6SmrgLN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
127851b12faf6Smrgmax_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
127861b12faf6Smrgac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
127871b12faf6Smrgexeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
127881b12faf6Smrglt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
127891b12faf6Smrglt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
127901b12faf6Smrglt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
127911b12faf6Smrgreload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
127921b12faf6Smrgreload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
127931b12faf6SmrgOBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
127941b12faf6Smrgdeplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
127951b12faf6Smrgfile_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
127961b12faf6SmrgAR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
127971b12faf6SmrgAR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
127981b12faf6SmrgSTRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
127991b12faf6SmrgRANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
128001b12faf6Smrgold_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128011b12faf6Smrgold_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128021b12faf6Smrgold_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128031b12faf6SmrgCC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
128041b12faf6SmrgCFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
128051b12faf6Smrgcompiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
128061b12faf6SmrgGCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
128071b12faf6Smrglt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
128081b12faf6Smrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
128091b12faf6Smrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
128101b12faf6Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
128111b12faf6Smrgobjdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
128121b12faf6SmrgSHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
128131b12faf6SmrgECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
128141b12faf6SmrgMAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
128151b12faf6Smrglt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
128161b12faf6Smrglt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
128171b12faf6Smrglt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
128181b12faf6Smrglt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
128191b12faf6Smrglt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
128201b12faf6Smrgneed_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
128211b12faf6SmrgDSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
128221b12faf6SmrgNMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
128231b12faf6SmrgLIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
128241b12faf6SmrgOTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
128251b12faf6SmrgOTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
128261b12faf6Smrglibext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
128271b12faf6Smrgshrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128281b12faf6Smrgextract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128291b12faf6Smrgarchive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
128301b12faf6Smrgenable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
128311b12faf6Smrgexport_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
128321b12faf6Smrgwhole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
128331b12faf6Smrgcompiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
128341b12faf6Smrgold_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128351b12faf6Smrgold_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128361b12faf6Smrgarchive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128371b12faf6Smrgarchive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128381b12faf6Smrgmodule_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128391b12faf6Smrgmodule_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128401b12faf6Smrgwith_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
128411b12faf6Smrgallow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
128421b12faf6Smrgno_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
128431b12faf6Smrghardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
128441b12faf6Smrghardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
128451b12faf6Smrghardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
128461b12faf6Smrghardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
128471b12faf6Smrghardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
128481b12faf6Smrghardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
128491b12faf6Smrghardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
128501b12faf6Smrghardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
128511b12faf6Smrginherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
128521b12faf6Smrglink_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
128531b12faf6Smrgfix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
128541b12faf6Smrgalways_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
128551b12faf6Smrgexport_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128561b12faf6Smrgexclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
128571b12faf6Smrginclude_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
128581b12faf6Smrgprelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128591b12faf6Smrgfile_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
128601b12faf6Smrgvariables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
128611b12faf6Smrgneed_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
128621b12faf6Smrgneed_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
128631b12faf6Smrgversion_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
128641b12faf6Smrgrunpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
128651b12faf6Smrgshlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
128661b12faf6Smrgshlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
128671b12faf6Smrglibname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
128681b12faf6Smrglibrary_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
128691b12faf6Smrgsoname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
128701b12faf6Smrgpostinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128711b12faf6Smrgpostuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128721b12faf6Smrgfinish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
128731b12faf6Smrgfinish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
128741b12faf6Smrghardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
128751b12faf6Smrgsys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
128761b12faf6Smrgsys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
128771b12faf6Smrghardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
128781b12faf6Smrgenable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
128791b12faf6Smrgenable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
128801b12faf6Smrgenable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
128811b12faf6Smrgold_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
128821b12faf6Smrgstriplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
128831b12faf6Smrg
128841b12faf6SmrgLTCC='$LTCC'
128851b12faf6SmrgLTCFLAGS='$LTCFLAGS'
128861b12faf6Smrgcompiler='$compiler_DEFAULT'
128871b12faf6Smrg
128881b12faf6Smrg# Quote evaled strings.
128891b12faf6Smrgfor var in SED \
128901b12faf6SmrgGREP \
128911b12faf6SmrgEGREP \
128921b12faf6SmrgFGREP \
128931b12faf6SmrgLD \
128941b12faf6SmrgNM \
128951b12faf6SmrgLN_S \
128961b12faf6Smrglt_SP2NL \
128971b12faf6Smrglt_NL2SP \
128981b12faf6Smrgreload_flag \
128991b12faf6SmrgOBJDUMP \
129001b12faf6Smrgdeplibs_check_method \
129011b12faf6Smrgfile_magic_cmd \
129021b12faf6SmrgAR \
129031b12faf6SmrgAR_FLAGS \
129041b12faf6SmrgSTRIP \
129051b12faf6SmrgRANLIB \
129061b12faf6SmrgCC \
129071b12faf6SmrgCFLAGS \
129081b12faf6Smrgcompiler \
129091b12faf6Smrglt_cv_sys_global_symbol_pipe \
129101b12faf6Smrglt_cv_sys_global_symbol_to_cdecl \
129111b12faf6Smrglt_cv_sys_global_symbol_to_c_name_address \
129121b12faf6Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
129131b12faf6SmrgSHELL \
129141b12faf6SmrgECHO \
129151b12faf6Smrglt_prog_compiler_no_builtin_flag \
129161b12faf6Smrglt_prog_compiler_wl \
129171b12faf6Smrglt_prog_compiler_pic \
129181b12faf6Smrglt_prog_compiler_static \
129191b12faf6Smrglt_cv_prog_compiler_c_o \
129201b12faf6Smrgneed_locks \
129211b12faf6SmrgDSYMUTIL \
129221b12faf6SmrgNMEDIT \
129231b12faf6SmrgLIPO \
129241b12faf6SmrgOTOOL \
129251b12faf6SmrgOTOOL64 \
129261b12faf6Smrgshrext_cmds \
129271b12faf6Smrgexport_dynamic_flag_spec \
129281b12faf6Smrgwhole_archive_flag_spec \
129291b12faf6Smrgcompiler_needs_object \
129301b12faf6Smrgwith_gnu_ld \
129311b12faf6Smrgallow_undefined_flag \
129321b12faf6Smrgno_undefined_flag \
129331b12faf6Smrghardcode_libdir_flag_spec \
129341b12faf6Smrghardcode_libdir_flag_spec_ld \
129351b12faf6Smrghardcode_libdir_separator \
129361b12faf6Smrgfix_srcfile_path \
129371b12faf6Smrgexclude_expsyms \
129381b12faf6Smrginclude_expsyms \
129391b12faf6Smrgfile_list_spec \
129401b12faf6Smrgvariables_saved_for_relink \
129411b12faf6Smrglibname_spec \
129421b12faf6Smrglibrary_names_spec \
129431b12faf6Smrgsoname_spec \
129441b12faf6Smrgfinish_eval \
129451b12faf6Smrgold_striplib \
129461b12faf6Smrgstriplib; do
129471b12faf6Smrg    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
129481b12faf6Smrg    *[\\\\\\\`\\"\\\$]*)
129491b12faf6Smrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1295032b578d3Smrg      ;;
1295132b578d3Smrg    *)
129521b12faf6Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1295332b578d3Smrg      ;;
1295432b578d3Smrg    esac
129551b12faf6Smrgdone
129562a51b5beSmrg
129571b12faf6Smrg# Double-quote double-evaled strings.
129581b12faf6Smrgfor var in reload_cmds \
129591b12faf6Smrgold_postinstall_cmds \
129601b12faf6Smrgold_postuninstall_cmds \
129611b12faf6Smrgold_archive_cmds \
129621b12faf6Smrgextract_expsyms_cmds \
129631b12faf6Smrgold_archive_from_new_cmds \
129641b12faf6Smrgold_archive_from_expsyms_cmds \
129651b12faf6Smrgarchive_cmds \
129661b12faf6Smrgarchive_expsym_cmds \
129671b12faf6Smrgmodule_cmds \
129681b12faf6Smrgmodule_expsym_cmds \
129691b12faf6Smrgexport_symbols_cmds \
129701b12faf6Smrgprelink_cmds \
129711b12faf6Smrgpostinstall_cmds \
129721b12faf6Smrgpostuninstall_cmds \
129731b12faf6Smrgfinish_cmds \
129741b12faf6Smrgsys_lib_search_path_spec \
129751b12faf6Smrgsys_lib_dlsearch_path_spec; do
129761b12faf6Smrg    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
129771b12faf6Smrg    *[\\\\\\\`\\"\\\$]*)
129781b12faf6Smrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1297932b578d3Smrg      ;;
129801b12faf6Smrg    *)
129811b12faf6Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1298232b578d3Smrg      ;;
129831b12faf6Smrg    esac
129841b12faf6Smrgdone
1298532b578d3Smrg
129861b12faf6Smrg# Fix-up fallback echo if it was mangled by the above quoting rules.
129871b12faf6Smrgcase \$lt_ECHO in
129881b12faf6Smrg*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
129891b12faf6Smrg  ;;
129901b12faf6Smrgesac
1299132b578d3Smrg
129921b12faf6Smrgac_aux_dir='$ac_aux_dir'
129931b12faf6Smrgxsi_shell='$xsi_shell'
129941b12faf6Smrglt_shell_append='$lt_shell_append'
1299532b578d3Smrg
129961b12faf6Smrg# See if we are running on zsh, and set the options which allow our
129971b12faf6Smrg# commands through without removal of \ escapes INIT.
129981b12faf6Smrgif test -n "\${ZSH_VERSION+set}" ; then
129991b12faf6Smrg   setopt NO_GLOB_SUBST
130001b12faf6Smrgfi
1300132b578d3Smrg
1300232b578d3Smrg
130031b12faf6Smrg    PACKAGE='$PACKAGE'
130041b12faf6Smrg    VERSION='$VERSION'
130051b12faf6Smrg    TIMESTAMP='$TIMESTAMP'
130061b12faf6Smrg    RM='$RM'
130071b12faf6Smrg    ofile='$ofile'
130082a51b5beSmrg
1300932b578d3Smrg
1301032b578d3Smrg
1301132b578d3Smrg
130121b12faf6Smrg_ACEOF
1301332b578d3Smrg
130141b12faf6Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1301532b578d3Smrg
130161b12faf6Smrg# Handling of arguments.
130171b12faf6Smrgfor ac_config_target in $ac_config_targets
130181b12faf6Smrgdo
130191b12faf6Smrg  case $ac_config_target in
130201b12faf6Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
130211b12faf6Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
130221b12faf6Smrg    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
130231b12faf6Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
130241b12faf6Smrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
130251b12faf6Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
1302632b578d3Smrg
130271b12faf6Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
130281b12faf6Smrg  esac
130291b12faf6Smrgdone
1303032b578d3Smrg
1303132b578d3Smrg
130321b12faf6Smrg# If the user did not use the arguments to specify the items to instantiate,
130331b12faf6Smrg# then the envvar interface is used.  Set only those that are not.
130341b12faf6Smrg# We use the long form for the default assignment because of an extremely
130351b12faf6Smrg# bizarre bug on SunOS 4.1.3.
130361b12faf6Smrgif $ac_need_defaults; then
130371b12faf6Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
130381b12faf6Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
130391b12faf6Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
130401b12faf6Smrgfi
1304132b578d3Smrg
130421b12faf6Smrg# Have a temporary directory for convenience.  Make it in the build tree
130431b12faf6Smrg# simply because there is no reason against having it here, and in addition,
130441b12faf6Smrg# creating and moving files from /tmp can sometimes cause problems.
130451b12faf6Smrg# Hook for its removal unless debugging.
130461b12faf6Smrg# Note that there is a small window in which the directory will not be cleaned:
130471b12faf6Smrg# after its creation but before its name has been assigned to `$tmp'.
130481b12faf6Smrg$debug ||
130491b12faf6Smrg{
130501b12faf6Smrg  tmp=
130511b12faf6Smrg  trap 'exit_status=$?
130521b12faf6Smrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
130531b12faf6Smrg' 0
130541b12faf6Smrg  trap 'as_fn_exit 1' 1 2 13 15
130551b12faf6Smrg}
130561b12faf6Smrg# Create a (secure) tmp directory for tmp files.
1305732b578d3Smrg
130581b12faf6Smrg{
130591b12faf6Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
130601b12faf6Smrg  test -n "$tmp" && test -d "$tmp"
130611b12faf6Smrg}  ||
130621b12faf6Smrg{
130631b12faf6Smrg  tmp=./conf$$-$RANDOM
130641b12faf6Smrg  (umask 077 && mkdir "$tmp")
130651b12faf6Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1306632b578d3Smrg
130671b12faf6Smrg# Set up the scripts for CONFIG_FILES section.
130681b12faf6Smrg# No need to generate them if there are no CONFIG_FILES.
130691b12faf6Smrg# This happens for instance with `./config.status config.h'.
130701b12faf6Smrgif test -n "$CONFIG_FILES"; then
1307132b578d3Smrg
1307232b578d3Smrg
130731b12faf6Smrgac_cr=`echo X | tr X '\015'`
130741b12faf6Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
130751b12faf6Smrg# But we know of no other shell where ac_cr would be empty at this
130761b12faf6Smrg# point, so we can use a bashism as a fallback.
130771b12faf6Smrgif test "x$ac_cr" = x; then
130781b12faf6Smrg  eval ac_cr=\$\'\\r\'
1307932b578d3Smrgfi
130801b12faf6Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
130811b12faf6Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
130821b12faf6Smrg  ac_cs_awk_cr='\\r'
1308332b578d3Smrgelse
130841b12faf6Smrg  ac_cs_awk_cr=$ac_cr
1308532b578d3Smrgfi
1308632b578d3Smrg
130871b12faf6Smrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
130881b12faf6Smrg_ACEOF
1308932b578d3Smrg
1309032b578d3Smrg
130911b12faf6Smrg{
130921b12faf6Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
130931b12faf6Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
130941b12faf6Smrg  echo "_ACEOF"
130951b12faf6Smrg} >conf$$subs.sh ||
130961b12faf6Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
130971b12faf6Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
130981b12faf6Smrgac_delim='%!_!# '
130991b12faf6Smrgfor ac_last_try in false false false false false :; do
131001b12faf6Smrg  . ./conf$$subs.sh ||
131011b12faf6Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1310232b578d3Smrg
131031b12faf6Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
131041b12faf6Smrg  if test $ac_delim_n = $ac_delim_num; then
131051b12faf6Smrg    break
131061b12faf6Smrg  elif $ac_last_try; then
131071b12faf6Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
131081b12faf6Smrg  else
131091b12faf6Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
131101b12faf6Smrg  fi
131111b12faf6Smrgdone
131121b12faf6Smrgrm -f conf$$subs.sh
1311332b578d3Smrg
131141b12faf6Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
131151b12faf6Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
131161b12faf6Smrg_ACEOF
131171b12faf6Smrgsed -n '
131181b12faf6Smrgh
131191b12faf6Smrgs/^/S["/; s/!.*/"]=/
131201b12faf6Smrgp
131211b12faf6Smrgg
131221b12faf6Smrgs/^[^!]*!//
131231b12faf6Smrg:repl
131241b12faf6Smrgt repl
131251b12faf6Smrgs/'"$ac_delim"'$//
131261b12faf6Smrgt delim
131271b12faf6Smrg:nl
131281b12faf6Smrgh
131291b12faf6Smrgs/\(.\{148\}\)..*/\1/
131301b12faf6Smrgt more1
131311b12faf6Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
131321b12faf6Smrgp
131331b12faf6Smrgn
131341b12faf6Smrgb repl
131351b12faf6Smrg:more1
131361b12faf6Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
131371b12faf6Smrgp
131381b12faf6Smrgg
131391b12faf6Smrgs/.\{148\}//
131401b12faf6Smrgt nl
131411b12faf6Smrg:delim
131421b12faf6Smrgh
131431b12faf6Smrgs/\(.\{148\}\)..*/\1/
131441b12faf6Smrgt more2
131451b12faf6Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
131461b12faf6Smrgp
131471b12faf6Smrgb
131481b12faf6Smrg:more2
131491b12faf6Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
131501b12faf6Smrgp
131511b12faf6Smrgg
131521b12faf6Smrgs/.\{148\}//
131531b12faf6Smrgt delim
131541b12faf6Smrg' <conf$$subs.awk | sed '
131551b12faf6Smrg/^[^""]/{
131561b12faf6Smrg  N
131571b12faf6Smrg  s/\n//
131581b12faf6Smrg}
131591b12faf6Smrg' >>$CONFIG_STATUS || ac_write_fail=1
131601b12faf6Smrgrm -f conf$$subs.awk
131611b12faf6Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
131621b12faf6Smrg_ACAWK
131631b12faf6Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
131641b12faf6Smrg  for (key in S) S_is_set[key] = 1
131651b12faf6Smrg  FS = ""
131661b12faf6Smrg
131671b12faf6Smrg}
131681b12faf6Smrg{
131691b12faf6Smrg  line = $ 0
131701b12faf6Smrg  nfields = split(line, field, "@")
131711b12faf6Smrg  substed = 0
131721b12faf6Smrg  len = length(field[1])
131731b12faf6Smrg  for (i = 2; i < nfields; i++) {
131741b12faf6Smrg    key = field[i]
131751b12faf6Smrg    keylen = length(key)
131761b12faf6Smrg    if (S_is_set[key]) {
131771b12faf6Smrg      value = S[key]
131781b12faf6Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
131791b12faf6Smrg      len += length(value) + length(field[++i])
131801b12faf6Smrg      substed = 1
131811b12faf6Smrg    } else
131821b12faf6Smrg      len += 1 + keylen
131831b12faf6Smrg  }
1318432b578d3Smrg
131851b12faf6Smrg  print line
131861b12faf6Smrg}
1318732b578d3Smrg
131881b12faf6Smrg_ACAWK
131891b12faf6Smrg_ACEOF
131901b12faf6Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
131911b12faf6Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
131921b12faf6Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1319332b578d3Smrgelse
131941b12faf6Smrg  cat
131951b12faf6Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
131961b12faf6Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
131971b12faf6Smrg_ACEOF
131981b12faf6Smrg
131991b12faf6Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
132001b12faf6Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
132011b12faf6Smrg# trailing colons and then remove the whole line if VPATH becomes empty
132021b12faf6Smrg# (actually we leave an empty line to preserve line numbers).
132031b12faf6Smrgif test "x$srcdir" = x.; then
132041b12faf6Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
132051b12faf6Smrgh
132061b12faf6Smrgs///
132071b12faf6Smrgs/^/:/
132081b12faf6Smrgs/[	 ]*$/:/
132091b12faf6Smrgs/:\$(srcdir):/:/g
132101b12faf6Smrgs/:\${srcdir}:/:/g
132111b12faf6Smrgs/:@srcdir@:/:/g
132121b12faf6Smrgs/^:*//
132131b12faf6Smrgs/:*$//
132141b12faf6Smrgx
132151b12faf6Smrgs/\(=[	 ]*\).*/\1/
132161b12faf6SmrgG
132171b12faf6Smrgs/\n//
132181b12faf6Smrgs/^[^=]*=[	 ]*$//
132191b12faf6Smrg}'
1322032b578d3Smrgfi
1322132b578d3Smrg
132221b12faf6Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
132231b12faf6Smrgfi # test -n "$CONFIG_FILES"
1322432b578d3Smrg
132251b12faf6Smrg# Set up the scripts for CONFIG_HEADERS section.
132261b12faf6Smrg# No need to generate them if there are no CONFIG_HEADERS.
132271b12faf6Smrg# This happens for instance with `./config.status Makefile'.
132281b12faf6Smrgif test -n "$CONFIG_HEADERS"; then
132291b12faf6Smrgcat >"$tmp/defines.awk" <<\_ACAWK ||
132301b12faf6SmrgBEGIN {
132311b12faf6Smrg_ACEOF
1323232b578d3Smrg
132331b12faf6Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
132341b12faf6Smrg# here-document in config.status, that substitutes the proper values into
132351b12faf6Smrg# config.h.in to produce config.h.
1323632b578d3Smrg
132371b12faf6Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
132381b12faf6Smrg# handling of long lines.
132391b12faf6Smrgac_delim='%!_!# '
132401b12faf6Smrgfor ac_last_try in false false :; do
132411b12faf6Smrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
132421b12faf6Smrg  if test -z "$ac_t"; then
132431b12faf6Smrg    break
132441b12faf6Smrg  elif $ac_last_try; then
132451b12faf6Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
132461b12faf6Smrg  else
132471b12faf6Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
132481b12faf6Smrg  fi
132491b12faf6Smrgdone
1325032b578d3Smrg
132511b12faf6Smrg# For the awk script, D is an array of macro values keyed by name,
132521b12faf6Smrg# likewise P contains macro parameters if any.  Preserve backslash
132531b12faf6Smrg# newline sequences.
1325432b578d3Smrg
132551b12faf6Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
132561b12faf6Smrgsed -n '
132571b12faf6Smrgs/.\{148\}/&'"$ac_delim"'/g
132581b12faf6Smrgt rset
132591b12faf6Smrg:rset
132601b12faf6Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
132611b12faf6Smrgt def
132621b12faf6Smrgd
132631b12faf6Smrg:def
132641b12faf6Smrgs/\\$//
132651b12faf6Smrgt bsnl
132661b12faf6Smrgs/["\\]/\\&/g
132671b12faf6Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
132681b12faf6SmrgD["\1"]=" \3"/p
132691b12faf6Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
132701b12faf6Smrgd
132711b12faf6Smrg:bsnl
132721b12faf6Smrgs/["\\]/\\&/g
132731b12faf6Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
132741b12faf6SmrgD["\1"]=" \3\\\\\\n"\\/p
132751b12faf6Smrgt cont
132761b12faf6Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
132771b12faf6Smrgt cont
132781b12faf6Smrgd
132791b12faf6Smrg:cont
132801b12faf6Smrgn
132811b12faf6Smrgs/.\{148\}/&'"$ac_delim"'/g
132821b12faf6Smrgt clear
132831b12faf6Smrg:clear
132841b12faf6Smrgs/\\$//
132851b12faf6Smrgt bsnlc
132861b12faf6Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
132871b12faf6Smrgd
132881b12faf6Smrg:bsnlc
132891b12faf6Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
132901b12faf6Smrgb cont
132911b12faf6Smrg' <confdefs.h | sed '
132921b12faf6Smrgs/'"$ac_delim"'/"\\\
132931b12faf6Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
1329432b578d3Smrg
132951b12faf6Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
132961b12faf6Smrg  for (key in D) D_is_set[key] = 1
132971b12faf6Smrg  FS = ""
132981b12faf6Smrg}
132991b12faf6Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
133001b12faf6Smrg  line = \$ 0
133011b12faf6Smrg  split(line, arg, " ")
133021b12faf6Smrg  if (arg[1] == "#") {
133031b12faf6Smrg    defundef = arg[2]
133041b12faf6Smrg    mac1 = arg[3]
133051b12faf6Smrg  } else {
133061b12faf6Smrg    defundef = substr(arg[1], 2)
133071b12faf6Smrg    mac1 = arg[2]
133081b12faf6Smrg  }
133091b12faf6Smrg  split(mac1, mac2, "(") #)
133101b12faf6Smrg  macro = mac2[1]
133111b12faf6Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
133121b12faf6Smrg  if (D_is_set[macro]) {
133131b12faf6Smrg    # Preserve the white space surrounding the "#".
133141b12faf6Smrg    print prefix "define", macro P[macro] D[macro]
133151b12faf6Smrg    next
133161b12faf6Smrg  } else {
133171b12faf6Smrg    # Replace #undef with comments.  This is necessary, for example,
133181b12faf6Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
133191b12faf6Smrg    # on some systems where configure will not decide to define it.
133201b12faf6Smrg    if (defundef == "undef") {
133211b12faf6Smrg      print "/*", prefix defundef, macro, "*/"
133221b12faf6Smrg      next
133231b12faf6Smrg    }
133241b12faf6Smrg  }
133251b12faf6Smrg}
133261b12faf6Smrg{ print }
133271b12faf6Smrg_ACAWK
133281b12faf6Smrg_ACEOF
133291b12faf6Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
133301b12faf6Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
133311b12faf6Smrgfi # test -n "$CONFIG_HEADERS"
1333232b578d3Smrg
1333332b578d3Smrg
133341b12faf6Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
133351b12faf6Smrgshift
133361b12faf6Smrgfor ac_tag
133371b12faf6Smrgdo
133381b12faf6Smrg  case $ac_tag in
133391b12faf6Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
133401b12faf6Smrg  esac
133411b12faf6Smrg  case $ac_mode$ac_tag in
133421b12faf6Smrg  :[FHL]*:*);;
133431b12faf6Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
133441b12faf6Smrg  :[FH]-) ac_tag=-:-;;
133451b12faf6Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
133461b12faf6Smrg  esac
133471b12faf6Smrg  ac_save_IFS=$IFS
133481b12faf6Smrg  IFS=:
133491b12faf6Smrg  set x $ac_tag
133501b12faf6Smrg  IFS=$ac_save_IFS
133511b12faf6Smrg  shift
133521b12faf6Smrg  ac_file=$1
133531b12faf6Smrg  shift
1335432b578d3Smrg
133551b12faf6Smrg  case $ac_mode in
133561b12faf6Smrg  :L) ac_source=$1;;
133571b12faf6Smrg  :[FH])
133581b12faf6Smrg    ac_file_inputs=
133591b12faf6Smrg    for ac_f
133601b12faf6Smrg    do
133611b12faf6Smrg      case $ac_f in
133621b12faf6Smrg      -) ac_f="$tmp/stdin";;
133631b12faf6Smrg      *) # Look for the file first in the build tree, then in the source tree
133641b12faf6Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
133651b12faf6Smrg	 # because $ac_f cannot contain `:'.
133661b12faf6Smrg	 test -f "$ac_f" ||
133671b12faf6Smrg	   case $ac_f in
133681b12faf6Smrg	   [\\/$]*) false;;
133691b12faf6Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
133701b12faf6Smrg	   esac ||
133711b12faf6Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
133721b12faf6Smrg      esac
133731b12faf6Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
133741b12faf6Smrg      as_fn_append ac_file_inputs " '$ac_f'"
133751b12faf6Smrg    done
1337632b578d3Smrg
133771b12faf6Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
133781b12faf6Smrg    # use $as_me), people would be surprised to read:
133791b12faf6Smrg    #    /* config.h.  Generated by config.status.  */
133801b12faf6Smrg    configure_input='Generated from '`
133811b12faf6Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
133821b12faf6Smrg	`' by configure.'
133831b12faf6Smrg    if test x"$ac_file" != x-; then
133841b12faf6Smrg      configure_input="$ac_file.  $configure_input"
133851b12faf6Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
133861b12faf6Smrg$as_echo "$as_me: creating $ac_file" >&6;}
133871b12faf6Smrg    fi
133881b12faf6Smrg    # Neutralize special characters interpreted by sed in replacement strings.
133891b12faf6Smrg    case $configure_input in #(
133901b12faf6Smrg    *\&* | *\|* | *\\* )
133911b12faf6Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
133921b12faf6Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
133931b12faf6Smrg    *) ac_sed_conf_input=$configure_input;;
133941b12faf6Smrg    esac
1339532b578d3Smrg
133961b12faf6Smrg    case $ac_tag in
133971b12faf6Smrg    *:-:* | *:-) cat >"$tmp/stdin" \
133981b12faf6Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
133991b12faf6Smrg    esac
134001b12faf6Smrg    ;;
134011b12faf6Smrg  esac
1340232b578d3Smrg
134031b12faf6Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
134041b12faf6Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
134051b12faf6Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
134061b12faf6Smrg	 X"$ac_file" : 'X\(//\)$' \| \
134071b12faf6Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
134081b12faf6Smrg$as_echo X"$ac_file" |
134091b12faf6Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
134101b12faf6Smrg	    s//\1/
134111b12faf6Smrg	    q
134121b12faf6Smrg	  }
134131b12faf6Smrg	  /^X\(\/\/\)[^/].*/{
134141b12faf6Smrg	    s//\1/
134151b12faf6Smrg	    q
134161b12faf6Smrg	  }
134171b12faf6Smrg	  /^X\(\/\/\)$/{
134181b12faf6Smrg	    s//\1/
134191b12faf6Smrg	    q
134201b12faf6Smrg	  }
134211b12faf6Smrg	  /^X\(\/\).*/{
134221b12faf6Smrg	    s//\1/
134231b12faf6Smrg	    q
134241b12faf6Smrg	  }
134251b12faf6Smrg	  s/.*/./; q'`
134261b12faf6Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
134271b12faf6Smrg  ac_builddir=.
1342832b578d3Smrg
134291b12faf6Smrgcase "$ac_dir" in
134301b12faf6Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
134311b12faf6Smrg*)
134321b12faf6Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
134331b12faf6Smrg  # A ".." for each directory in $ac_dir_suffix.
134341b12faf6Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
134351b12faf6Smrg  case $ac_top_builddir_sub in
134361b12faf6Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
134371b12faf6Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
134381b12faf6Smrg  esac ;;
134391b12faf6Smrgesac
134401b12faf6Smrgac_abs_top_builddir=$ac_pwd
134411b12faf6Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
134421b12faf6Smrg# for backward compatibility:
134431b12faf6Smrgac_top_builddir=$ac_top_build_prefix
1344432b578d3Smrg
134451b12faf6Smrgcase $srcdir in
134461b12faf6Smrg  .)  # We are building in place.
134471b12faf6Smrg    ac_srcdir=.
134481b12faf6Smrg    ac_top_srcdir=$ac_top_builddir_sub
134491b12faf6Smrg    ac_abs_top_srcdir=$ac_pwd ;;
134501b12faf6Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
134511b12faf6Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
134521b12faf6Smrg    ac_top_srcdir=$srcdir
134531b12faf6Smrg    ac_abs_top_srcdir=$srcdir ;;
134541b12faf6Smrg  *) # Relative name.
134551b12faf6Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
134561b12faf6Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
134571b12faf6Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
134581b12faf6Smrgesac
134591b12faf6Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1346032b578d3Smrg
1346132b578d3Smrg
134621b12faf6Smrg  case $ac_mode in
134631b12faf6Smrg  :F)
134641b12faf6Smrg  #
134651b12faf6Smrg  # CONFIG_FILE
134661b12faf6Smrg  #
1346732b578d3Smrg
134681b12faf6Smrg  case $INSTALL in
134691b12faf6Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
134701b12faf6Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
134711b12faf6Smrg  esac
134721b12faf6Smrg  ac_MKDIR_P=$MKDIR_P
134731b12faf6Smrg  case $MKDIR_P in
134741b12faf6Smrg  [\\/$]* | ?:[\\/]* ) ;;
134751b12faf6Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
134761b12faf6Smrg  esac
134771b12faf6Smrg_ACEOF
1347832b578d3Smrg
134791b12faf6Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
134801b12faf6Smrg# If the template does not know about datarootdir, expand it.
134811b12faf6Smrg# FIXME: This hack should be removed a few years after 2.60.
134821b12faf6Smrgac_datarootdir_hack=; ac_datarootdir_seen=
134831b12faf6Smrgac_sed_dataroot='
134841b12faf6Smrg/datarootdir/ {
134851b12faf6Smrg  p
134861b12faf6Smrg  q
134871b12faf6Smrg}
134881b12faf6Smrg/@datadir@/p
134891b12faf6Smrg/@docdir@/p
134901b12faf6Smrg/@infodir@/p
134911b12faf6Smrg/@localedir@/p
134921b12faf6Smrg/@mandir@/p'
134931b12faf6Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
134941b12faf6Smrg*datarootdir*) ac_datarootdir_seen=yes;;
134951b12faf6Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
134961b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
134971b12faf6Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
134981b12faf6Smrg_ACEOF
134991b12faf6Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
135001b12faf6Smrg  ac_datarootdir_hack='
135011b12faf6Smrg  s&@datadir@&$datadir&g
135021b12faf6Smrg  s&@docdir@&$docdir&g
135031b12faf6Smrg  s&@infodir@&$infodir&g
135041b12faf6Smrg  s&@localedir@&$localedir&g
135051b12faf6Smrg  s&@mandir@&$mandir&g
135061b12faf6Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
135071b12faf6Smrgesac
135081b12faf6Smrg_ACEOF
1350932b578d3Smrg
135101b12faf6Smrg# Neutralize VPATH when `$srcdir' = `.'.
135111b12faf6Smrg# Shell code in configure.ac might set extrasub.
135121b12faf6Smrg# FIXME: do we really want to maintain this feature?
135131b12faf6Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
135141b12faf6Smrgac_sed_extra="$ac_vpsub
135151b12faf6Smrg$extrasub
135161b12faf6Smrg_ACEOF
135171b12faf6Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
135181b12faf6Smrg:t
135191b12faf6Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
135201b12faf6Smrgs|@configure_input@|$ac_sed_conf_input|;t t
135211b12faf6Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
135221b12faf6Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
135231b12faf6Smrgs&@srcdir@&$ac_srcdir&;t t
135241b12faf6Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
135251b12faf6Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
135261b12faf6Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
135271b12faf6Smrgs&@builddir@&$ac_builddir&;t t
135281b12faf6Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
135291b12faf6Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
135301b12faf6Smrgs&@INSTALL@&$ac_INSTALL&;t t
135311b12faf6Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
135321b12faf6Smrg$ac_datarootdir_hack
135331b12faf6Smrg"
135341b12faf6Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
135351b12faf6Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1353632b578d3Smrg
135371b12faf6Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
135381b12faf6Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
135391b12faf6Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
135401b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
135411b12faf6Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
135421b12faf6Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
135431b12faf6Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
1354432b578d3Smrg
135451b12faf6Smrg  rm -f "$tmp/stdin"
135461b12faf6Smrg  case $ac_file in
135471b12faf6Smrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
135481b12faf6Smrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
135491b12faf6Smrg  esac \
135501b12faf6Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
135511b12faf6Smrg ;;
135521b12faf6Smrg  :H)
135531b12faf6Smrg  #
135541b12faf6Smrg  # CONFIG_HEADER
135551b12faf6Smrg  #
135561b12faf6Smrg  if test x"$ac_file" != x-; then
135571b12faf6Smrg    {
135581b12faf6Smrg      $as_echo "/* $configure_input  */" \
135591b12faf6Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
135601b12faf6Smrg    } >"$tmp/config.h" \
135611b12faf6Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
135621b12faf6Smrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
135631b12faf6Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
135641b12faf6Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
135651b12faf6Smrg    else
135661b12faf6Smrg      rm -f "$ac_file"
135671b12faf6Smrg      mv "$tmp/config.h" "$ac_file" \
135681b12faf6Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1356932b578d3Smrg    fi
1357032b578d3Smrg  else
135711b12faf6Smrg    $as_echo "/* $configure_input  */" \
135721b12faf6Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
135731b12faf6Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
135741b12faf6Smrg  fi
135751b12faf6Smrg# Compute "$ac_file"'s index in $config_headers.
135761b12faf6Smrg_am_arg="$ac_file"
135771b12faf6Smrg_am_stamp_count=1
135781b12faf6Smrgfor _am_header in $config_headers :; do
135791b12faf6Smrg  case $_am_header in
135801b12faf6Smrg    $_am_arg | $_am_arg:* )
135811b12faf6Smrg      break ;;
135821b12faf6Smrg    * )
135831b12faf6Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
135841b12faf6Smrg  esac
135851b12faf6Smrgdone
135861b12faf6Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
135871b12faf6Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
135881b12faf6Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
135891b12faf6Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
135901b12faf6Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
135911b12faf6Smrg$as_echo X"$_am_arg" |
135921b12faf6Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
135931b12faf6Smrg	    s//\1/
135941b12faf6Smrg	    q
135951b12faf6Smrg	  }
135961b12faf6Smrg	  /^X\(\/\/\)[^/].*/{
135971b12faf6Smrg	    s//\1/
135981b12faf6Smrg	    q
135991b12faf6Smrg	  }
136001b12faf6Smrg	  /^X\(\/\/\)$/{
136011b12faf6Smrg	    s//\1/
136021b12faf6Smrg	    q
136031b12faf6Smrg	  }
136041b12faf6Smrg	  /^X\(\/\).*/{
136051b12faf6Smrg	    s//\1/
136061b12faf6Smrg	    q
136071b12faf6Smrg	  }
136081b12faf6Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
136091b12faf6Smrg ;;
1361032b578d3Smrg
136111b12faf6Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
136121b12faf6Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
136131b12faf6Smrg ;;
136141b12faf6Smrg  esac
1361532b578d3Smrg
1361632b578d3Smrg
136171b12faf6Smrg  case $ac_file$ac_mode in
136181b12faf6Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
136191b12faf6Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
136201b12faf6Smrg  # are listed without --file.  Let's play safe and only enable the eval
136211b12faf6Smrg  # if we detect the quoting.
136221b12faf6Smrg  case $CONFIG_FILES in
136231b12faf6Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
136241b12faf6Smrg  *)   set x $CONFIG_FILES ;;
136251b12faf6Smrg  esac
136261b12faf6Smrg  shift
136271b12faf6Smrg  for mf
136281b12faf6Smrg  do
136291b12faf6Smrg    # Strip MF so we end up with the name of the file.
136301b12faf6Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
136311b12faf6Smrg    # Check whether this is an Automake generated Makefile or not.
136321b12faf6Smrg    # We used to match only the files named `Makefile.in', but
136331b12faf6Smrg    # some people rename them; so instead we look at the file content.
136341b12faf6Smrg    # Grep'ing the first line is not enough: some people post-process
136351b12faf6Smrg    # each Makefile.in and add a new line on top of each file to say so.
136361b12faf6Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
136371b12faf6Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
136381b12faf6Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
136391b12faf6Smrg      dirpart=`$as_dirname -- "$mf" ||
136401b12faf6Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
136411b12faf6Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
136421b12faf6Smrg	 X"$mf" : 'X\(//\)$' \| \
136431b12faf6Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
136441b12faf6Smrg$as_echo X"$mf" |
136451b12faf6Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
136461b12faf6Smrg	    s//\1/
136471b12faf6Smrg	    q
136481b12faf6Smrg	  }
136491b12faf6Smrg	  /^X\(\/\/\)[^/].*/{
136501b12faf6Smrg	    s//\1/
136511b12faf6Smrg	    q
136521b12faf6Smrg	  }
136531b12faf6Smrg	  /^X\(\/\/\)$/{
136541b12faf6Smrg	    s//\1/
136551b12faf6Smrg	    q
136561b12faf6Smrg	  }
136571b12faf6Smrg	  /^X\(\/\).*/{
136581b12faf6Smrg	    s//\1/
136591b12faf6Smrg	    q
136601b12faf6Smrg	  }
136611b12faf6Smrg	  s/.*/./; q'`
136621b12faf6Smrg    else
136631b12faf6Smrg      continue
136641b12faf6Smrg    fi
136651b12faf6Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
136661b12faf6Smrg    # from the Makefile without running `make'.
136671b12faf6Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
136681b12faf6Smrg    test -z "$DEPDIR" && continue
136691b12faf6Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
136701b12faf6Smrg    test -z "am__include" && continue
136711b12faf6Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
136721b12faf6Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
136731b12faf6Smrg    U=`sed -n 's/^U = //p' < "$mf"`
136741b12faf6Smrg    # Find all dependency output files, they are included files with
136751b12faf6Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
136761b12faf6Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
136771b12faf6Smrg    # expansion.
136781b12faf6Smrg    for file in `sed -n "
136791b12faf6Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
136801b12faf6Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
136811b12faf6Smrg      # Make sure the directory exists.
136821b12faf6Smrg      test -f "$dirpart/$file" && continue
136831b12faf6Smrg      fdir=`$as_dirname -- "$file" ||
136841b12faf6Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
136851b12faf6Smrg	 X"$file" : 'X\(//\)[^/]' \| \
136861b12faf6Smrg	 X"$file" : 'X\(//\)$' \| \
136871b12faf6Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
136881b12faf6Smrg$as_echo X"$file" |
136891b12faf6Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
136901b12faf6Smrg	    s//\1/
136911b12faf6Smrg	    q
136921b12faf6Smrg	  }
136931b12faf6Smrg	  /^X\(\/\/\)[^/].*/{
136941b12faf6Smrg	    s//\1/
136951b12faf6Smrg	    q
136961b12faf6Smrg	  }
136971b12faf6Smrg	  /^X\(\/\/\)$/{
136981b12faf6Smrg	    s//\1/
136991b12faf6Smrg	    q
137001b12faf6Smrg	  }
137011b12faf6Smrg	  /^X\(\/\).*/{
137021b12faf6Smrg	    s//\1/
137031b12faf6Smrg	    q
137041b12faf6Smrg	  }
137051b12faf6Smrg	  s/.*/./; q'`
137061b12faf6Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
137071b12faf6Smrg      # echo "creating $dirpart/$file"
137081b12faf6Smrg      echo '# dummy' > "$dirpart/$file"
137091b12faf6Smrg    done
137101b12faf6Smrg  done
137111b12faf6Smrg}
137121b12faf6Smrg ;;
137131b12faf6Smrg    "libtool":C)
1371432b578d3Smrg
137151b12faf6Smrg    # See if we are running on zsh, and set the options which allow our
137161b12faf6Smrg    # commands through without removal of \ escapes.
137171b12faf6Smrg    if test -n "${ZSH_VERSION+set}" ; then
137181b12faf6Smrg      setopt NO_GLOB_SUBST
137191b12faf6Smrg    fi
1372032b578d3Smrg
137211b12faf6Smrg    cfgfile="${ofile}T"
137221b12faf6Smrg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
137231b12faf6Smrg    $RM "$cfgfile"
1372432b578d3Smrg
137251b12faf6Smrg    cat <<_LT_EOF >> "$cfgfile"
137261b12faf6Smrg#! $SHELL
1372732b578d3Smrg
137281b12faf6Smrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
137291b12faf6Smrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
137301b12faf6Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
137311b12faf6Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
137321b12faf6Smrg#
137331b12faf6Smrg#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
137341b12faf6Smrg#                 2006, 2007, 2008 Free Software Foundation, Inc.
137351b12faf6Smrg#   Written by Gordon Matzigkeit, 1996
137361b12faf6Smrg#
137371b12faf6Smrg#   This file is part of GNU Libtool.
137381b12faf6Smrg#
137391b12faf6Smrg# GNU Libtool is free software; you can redistribute it and/or
137401b12faf6Smrg# modify it under the terms of the GNU General Public License as
137411b12faf6Smrg# published by the Free Software Foundation; either version 2 of
137421b12faf6Smrg# the License, or (at your option) any later version.
137431b12faf6Smrg#
137441b12faf6Smrg# As a special exception to the GNU General Public License,
137451b12faf6Smrg# if you distribute this file as part of a program or library that
137461b12faf6Smrg# is built using GNU Libtool, you may include this file under the
137471b12faf6Smrg# same distribution terms that you use for the rest of that program.
137481b12faf6Smrg#
137491b12faf6Smrg# GNU Libtool is distributed in the hope that it will be useful,
137501b12faf6Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
137511b12faf6Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
137521b12faf6Smrg# GNU General Public License for more details.
137531b12faf6Smrg#
137541b12faf6Smrg# You should have received a copy of the GNU General Public License
137551b12faf6Smrg# along with GNU Libtool; see the file COPYING.  If not, a copy
137561b12faf6Smrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
137571b12faf6Smrg# obtained by writing to the Free Software Foundation, Inc.,
137581b12faf6Smrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1375932b578d3Smrg
1376032b578d3Smrg
137611b12faf6Smrg# The names of the tagged configurations supported by this script.
137621b12faf6Smrgavailable_tags=""
1376332b578d3Smrg
137641b12faf6Smrg# ### BEGIN LIBTOOL CONFIG
1376532b578d3Smrg
137661b12faf6Smrg# Whether or not to build static libraries.
137671b12faf6Smrgbuild_old_libs=$enable_static
1376832b578d3Smrg
137691b12faf6Smrg# Which release of libtool.m4 was used?
137701b12faf6Smrgmacro_version=$macro_version
137711b12faf6Smrgmacro_revision=$macro_revision
1377232b578d3Smrg
137731b12faf6Smrg# Whether or not to build shared libraries.
137741b12faf6Smrgbuild_libtool_libs=$enable_shared
1377532b578d3Smrg
137761b12faf6Smrg# What type of objects to build.
137771b12faf6Smrgpic_mode=$pic_mode
1377832b578d3Smrg
137791b12faf6Smrg# Whether or not to optimize for fast installation.
137801b12faf6Smrgfast_install=$enable_fast_install
1378132b578d3Smrg
137821b12faf6Smrg# The host system.
137831b12faf6Smrghost_alias=$host_alias
137841b12faf6Smrghost=$host
137851b12faf6Smrghost_os=$host_os
1378632b578d3Smrg
137871b12faf6Smrg# The build system.
137881b12faf6Smrgbuild_alias=$build_alias
137891b12faf6Smrgbuild=$build
137901b12faf6Smrgbuild_os=$build_os
1379132b578d3Smrg
137921b12faf6Smrg# A sed program that does not truncate output.
137931b12faf6SmrgSED=$lt_SED
1379432b578d3Smrg
137951b12faf6Smrg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
137961b12faf6SmrgXsed="\$SED -e 1s/^X//"
1379732b578d3Smrg
137981b12faf6Smrg# A grep program that handles long lines.
137991b12faf6SmrgGREP=$lt_GREP
1380032b578d3Smrg
138011b12faf6Smrg# An ERE matcher.
138021b12faf6SmrgEGREP=$lt_EGREP
1380332b578d3Smrg
138041b12faf6Smrg# A literal string matcher.
138051b12faf6SmrgFGREP=$lt_FGREP
1380632b578d3Smrg
138071b12faf6Smrg# A BSD- or MS-compatible name lister.
138081b12faf6SmrgNM=$lt_NM
1380932b578d3Smrg
138101b12faf6Smrg# Whether we need soft or hard links.
138111b12faf6SmrgLN_S=$lt_LN_S
1381232b578d3Smrg
138131b12faf6Smrg# What is the maximum length of a command?
138141b12faf6Smrgmax_cmd_len=$max_cmd_len
1381532b578d3Smrg
138161b12faf6Smrg# Object file suffix (normally "o").
138171b12faf6Smrgobjext=$ac_objext
1381832b578d3Smrg
138191b12faf6Smrg# Executable file suffix (normally "").
138201b12faf6Smrgexeext=$exeext
1382132b578d3Smrg
138221b12faf6Smrg# whether the shell understands "unset".
138231b12faf6Smrglt_unset=$lt_unset
1382432b578d3Smrg
138251b12faf6Smrg# turn spaces into newlines.
138261b12faf6SmrgSP2NL=$lt_lt_SP2NL
1382732b578d3Smrg
138281b12faf6Smrg# turn newlines into spaces.
138291b12faf6SmrgNL2SP=$lt_lt_NL2SP
1383032b578d3Smrg
138311b12faf6Smrg# How to create reloadable object files.
138321b12faf6Smrgreload_flag=$lt_reload_flag
138331b12faf6Smrgreload_cmds=$lt_reload_cmds
1383432b578d3Smrg
138351b12faf6Smrg# An object symbol dumper.
138361b12faf6SmrgOBJDUMP=$lt_OBJDUMP
1383732b578d3Smrg
138381b12faf6Smrg# Method to check whether dependent libraries are shared objects.
138391b12faf6Smrgdeplibs_check_method=$lt_deplibs_check_method
1384032b578d3Smrg
138411b12faf6Smrg# Command to use when deplibs_check_method == "file_magic".
138421b12faf6Smrgfile_magic_cmd=$lt_file_magic_cmd
1384332b578d3Smrg
138441b12faf6Smrg# The archiver.
138451b12faf6SmrgAR=$lt_AR
138461b12faf6SmrgAR_FLAGS=$lt_AR_FLAGS
1384732b578d3Smrg
138481b12faf6Smrg# A symbol stripping program.
138491b12faf6SmrgSTRIP=$lt_STRIP
1385032b578d3Smrg
138511b12faf6Smrg# Commands used to install an old-style archive.
138521b12faf6SmrgRANLIB=$lt_RANLIB
138531b12faf6Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
138541b12faf6Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
1385532b578d3Smrg
138561b12faf6Smrg# A C compiler.
138571b12faf6SmrgLTCC=$lt_CC
1385832b578d3Smrg
138591b12faf6Smrg# LTCC compiler flags.
138601b12faf6SmrgLTCFLAGS=$lt_CFLAGS
1386132b578d3Smrg
138621b12faf6Smrg# Take the output of nm and produce a listing of raw symbols and C names.
138631b12faf6Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1386432b578d3Smrg
138651b12faf6Smrg# Transform the output of nm in a proper C declaration.
138661b12faf6Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1386732b578d3Smrg
138681b12faf6Smrg# Transform the output of nm in a C name address pair.
138691b12faf6Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1387032b578d3Smrg
138711b12faf6Smrg# Transform the output of nm in a C name address pair when lib prefix is needed.
138721b12faf6Smrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1387332b578d3Smrg
138741b12faf6Smrg# The name of the directory that contains temporary libtool files.
138751b12faf6Smrgobjdir=$objdir
1387632b578d3Smrg
138771b12faf6Smrg# Shell to use when invoking shell scripts.
138781b12faf6SmrgSHELL=$lt_SHELL
1387932b578d3Smrg
138801b12faf6Smrg# An echo program that does not interpret backslashes.
138811b12faf6SmrgECHO=$lt_ECHO
1388232b578d3Smrg
138831b12faf6Smrg# Used to examine libraries when file_magic_cmd begins with "file".
138841b12faf6SmrgMAGIC_CMD=$MAGIC_CMD
1388532b578d3Smrg
138861b12faf6Smrg# Must we lock files when doing compilation?
138871b12faf6Smrgneed_locks=$lt_need_locks
1388832b578d3Smrg
138891b12faf6Smrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
138901b12faf6SmrgDSYMUTIL=$lt_DSYMUTIL
1389132b578d3Smrg
138921b12faf6Smrg# Tool to change global to local symbols on Mac OS X.
138931b12faf6SmrgNMEDIT=$lt_NMEDIT
1389432b578d3Smrg
138951b12faf6Smrg# Tool to manipulate fat objects and archives on Mac OS X.
138961b12faf6SmrgLIPO=$lt_LIPO
1389732b578d3Smrg
138981b12faf6Smrg# ldd/readelf like tool for Mach-O binaries on Mac OS X.
138991b12faf6SmrgOTOOL=$lt_OTOOL
1390032b578d3Smrg
139011b12faf6Smrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
139021b12faf6SmrgOTOOL64=$lt_OTOOL64
1390332b578d3Smrg
139041b12faf6Smrg# Old archive suffix (normally "a").
139051b12faf6Smrglibext=$libext
1390632b578d3Smrg
139071b12faf6Smrg# Shared library suffix (normally ".so").
139081b12faf6Smrgshrext_cmds=$lt_shrext_cmds
1390932b578d3Smrg
139101b12faf6Smrg# The commands to extract the exported symbol list from a shared archive.
139111b12faf6Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
1391232b578d3Smrg
139131b12faf6Smrg# Variables whose values should be saved in libtool wrapper scripts and
139141b12faf6Smrg# restored at link time.
139151b12faf6Smrgvariables_saved_for_relink=$lt_variables_saved_for_relink
1391632b578d3Smrg
139171b12faf6Smrg# Do we need the "lib" prefix for modules?
139181b12faf6Smrgneed_lib_prefix=$need_lib_prefix
1391932b578d3Smrg
139201b12faf6Smrg# Do we need a version for libraries?
139211b12faf6Smrgneed_version=$need_version
1392232b578d3Smrg
139231b12faf6Smrg# Library versioning type.
139241b12faf6Smrgversion_type=$version_type
1392532b578d3Smrg
139261b12faf6Smrg# Shared library runtime path variable.
139271b12faf6Smrgrunpath_var=$runpath_var
1392832b578d3Smrg
139291b12faf6Smrg# Shared library path variable.
139301b12faf6Smrgshlibpath_var=$shlibpath_var
139312a51b5beSmrg
139321b12faf6Smrg# Is shlibpath searched before the hard-coded library search path?
139331b12faf6Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
1393432b578d3Smrg
139351b12faf6Smrg# Format of library name prefix.
139361b12faf6Smrglibname_spec=$lt_libname_spec
1393732b578d3Smrg
139381b12faf6Smrg# List of archive names.  First name is the real one, the rest are links.
139391b12faf6Smrg# The last name is the one that the linker finds with -lNAME
139401b12faf6Smrglibrary_names_spec=$lt_library_names_spec
1394132b578d3Smrg
139421b12faf6Smrg# The coded name of the library, if different from the real name.
139431b12faf6Smrgsoname_spec=$lt_soname_spec
1394432b578d3Smrg
139451b12faf6Smrg# Command to use after installation of a shared archive.
139461b12faf6Smrgpostinstall_cmds=$lt_postinstall_cmds
1394732b578d3Smrg
139481b12faf6Smrg# Command to use after uninstallation of a shared archive.
139491b12faf6Smrgpostuninstall_cmds=$lt_postuninstall_cmds
1395032b578d3Smrg
139511b12faf6Smrg# Commands used to finish a libtool library installation in a directory.
139521b12faf6Smrgfinish_cmds=$lt_finish_cmds
1395332b578d3Smrg
139541b12faf6Smrg# As "finish_cmds", except a single script fragment to be evaled but
139551b12faf6Smrg# not shown.
139561b12faf6Smrgfinish_eval=$lt_finish_eval
1395732b578d3Smrg
139581b12faf6Smrg# Whether we should hardcode library paths into libraries.
139591b12faf6Smrghardcode_into_libs=$hardcode_into_libs
1396032b578d3Smrg
139611b12faf6Smrg# Compile-time system search path for libraries.
139621b12faf6Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1396332b578d3Smrg
139641b12faf6Smrg# Run-time system search path for libraries.
139651b12faf6Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1396632b578d3Smrg
139671b12faf6Smrg# Whether dlopen is supported.
139681b12faf6Smrgdlopen_support=$enable_dlopen
1396932b578d3Smrg
139701b12faf6Smrg# Whether dlopen of programs is supported.
139711b12faf6Smrgdlopen_self=$enable_dlopen_self
139722a51b5beSmrg
139731b12faf6Smrg# Whether dlopen of statically linked programs is supported.
139741b12faf6Smrgdlopen_self_static=$enable_dlopen_self_static
1397532b578d3Smrg
139761b12faf6Smrg# Commands to strip libraries.
139771b12faf6Smrgold_striplib=$lt_old_striplib
139781b12faf6Smrgstriplib=$lt_striplib
139792a51b5beSmrg
13980d31dbc53Smrg
139811b12faf6Smrg# The linker used to build libraries.
139821b12faf6SmrgLD=$lt_LD
1398332b578d3Smrg
139841b12faf6Smrg# Commands used to build an old-style archive.
139851b12faf6Smrgold_archive_cmds=$lt_old_archive_cmds
1398632b578d3Smrg
139871b12faf6Smrg# A language specific compiler.
139881b12faf6SmrgCC=$lt_compiler
1398932b578d3Smrg
139901b12faf6Smrg# Is the compiler the GNU compiler?
139911b12faf6Smrgwith_gcc=$GCC
1399232b578d3Smrg
139931b12faf6Smrg# Compiler flag to turn off builtin functions.
139941b12faf6Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1399532b578d3Smrg
139961b12faf6Smrg# How to pass a linker flag through the compiler.
139971b12faf6Smrgwl=$lt_lt_prog_compiler_wl
1399832b578d3Smrg
139991b12faf6Smrg# Additional compiler flags for building library objects.
140001b12faf6Smrgpic_flag=$lt_lt_prog_compiler_pic
1400132b578d3Smrg
140021b12faf6Smrg# Compiler flag to prevent dynamic linking.
140031b12faf6Smrglink_static_flag=$lt_lt_prog_compiler_static
1400432b578d3Smrg
140051b12faf6Smrg# Does compiler simultaneously support -c and -o options?
140061b12faf6Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
1400732b578d3Smrg
140081b12faf6Smrg# Whether or not to add -lc for building shared libraries.
140091b12faf6Smrgbuild_libtool_need_lc=$archive_cmds_need_lc
1401032b578d3Smrg
140111b12faf6Smrg# Whether or not to disallow shared libs when runtime libs are static.
140121b12faf6Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1401332b578d3Smrg
140141b12faf6Smrg# Compiler flag to allow reflexive dlopens.
140151b12faf6Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1401632b578d3Smrg
140171b12faf6Smrg# Compiler flag to generate shared objects directly from archives.
140181b12faf6Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
1401932b578d3Smrg
140201b12faf6Smrg# Whether the compiler copes with passing no objects directly.
140211b12faf6Smrgcompiler_needs_object=$lt_compiler_needs_object
1402232b578d3Smrg
140231b12faf6Smrg# Create an old-style archive from a shared archive.
140241b12faf6Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1402532b578d3Smrg
140261b12faf6Smrg# Create a temporary old-style archive to link instead of a shared archive.
140271b12faf6Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
140282a51b5beSmrg
140291b12faf6Smrg# Commands used to build a shared archive.
140301b12faf6Smrgarchive_cmds=$lt_archive_cmds
140311b12faf6Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds
1403232b578d3Smrg
140331b12faf6Smrg# Commands used to build a loadable module if different from building
140341b12faf6Smrg# a shared archive.
140351b12faf6Smrgmodule_cmds=$lt_module_cmds
140361b12faf6Smrgmodule_expsym_cmds=$lt_module_expsym_cmds
1403732b578d3Smrg
140381b12faf6Smrg# Whether we are building with GNU ld or not.
140391b12faf6Smrgwith_gnu_ld=$lt_with_gnu_ld
140402a51b5beSmrg
140411b12faf6Smrg# Flag that allows shared libraries with undefined symbols to be built.
140421b12faf6Smrgallow_undefined_flag=$lt_allow_undefined_flag
140432a51b5beSmrg
140441b12faf6Smrg# Flag that enforces no undefined symbols.
140451b12faf6Smrgno_undefined_flag=$lt_no_undefined_flag
1404632b578d3Smrg
140471b12faf6Smrg# Flag to hardcode \$libdir into a binary during linking.
140481b12faf6Smrg# This must work even if \$libdir does not exist
140491b12faf6Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1405032b578d3Smrg
140511b12faf6Smrg# If ld is used when linking, flag to hardcode \$libdir into a binary
140521b12faf6Smrg# during linking.  This must work even if \$libdir does not exist.
140531b12faf6Smrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1405432b578d3Smrg
140551b12faf6Smrg# Whether we need a single "-rpath" flag with a separated argument.
140561b12faf6Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator
1405732b578d3Smrg
140581b12faf6Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
140591b12faf6Smrg# DIR into the resulting binary.
140601b12faf6Smrghardcode_direct=$hardcode_direct
1406132b578d3Smrg
140621b12faf6Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
140631b12faf6Smrg# DIR into the resulting binary and the resulting library dependency is
140641b12faf6Smrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
140651b12faf6Smrg# library is relocated.
140661b12faf6Smrghardcode_direct_absolute=$hardcode_direct_absolute
1406732b578d3Smrg
140681b12faf6Smrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
140691b12faf6Smrg# into the resulting binary.
140701b12faf6Smrghardcode_minus_L=$hardcode_minus_L
1407132b578d3Smrg
140721b12faf6Smrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
140731b12faf6Smrg# into the resulting binary.
140741b12faf6Smrghardcode_shlibpath_var=$hardcode_shlibpath_var
1407532b578d3Smrg
140761b12faf6Smrg# Set to "yes" if building a shared library automatically hardcodes DIR
140771b12faf6Smrg# into the library and all subsequent libraries and executables linked
140781b12faf6Smrg# against it.
140791b12faf6Smrghardcode_automatic=$hardcode_automatic
1408032b578d3Smrg
140811b12faf6Smrg# Set to yes if linker adds runtime paths of dependent libraries
140821b12faf6Smrg# to runtime path list.
140831b12faf6Smrginherit_rpath=$inherit_rpath
1408432b578d3Smrg
140851b12faf6Smrg# Whether libtool must link a program against all its dependency libraries.
140861b12faf6Smrglink_all_deplibs=$link_all_deplibs
1408732b578d3Smrg
140881b12faf6Smrg# Fix the shell variable \$srcfile for the compiler.
140891b12faf6Smrgfix_srcfile_path=$lt_fix_srcfile_path
1409032b578d3Smrg
140911b12faf6Smrg# Set to "yes" if exported symbols are required.
140921b12faf6Smrgalways_export_symbols=$always_export_symbols
1409332b578d3Smrg
140941b12faf6Smrg# The commands to list exported symbols.
140951b12faf6Smrgexport_symbols_cmds=$lt_export_symbols_cmds
1409632b578d3Smrg
140971b12faf6Smrg# Symbols that should not be listed in the preloaded symbols.
140981b12faf6Smrgexclude_expsyms=$lt_exclude_expsyms
1409932b578d3Smrg
141001b12faf6Smrg# Symbols that must always be exported.
141011b12faf6Smrginclude_expsyms=$lt_include_expsyms
1410232b578d3Smrg
141031b12faf6Smrg# Commands necessary for linking programs (against libraries) with templates.
141041b12faf6Smrgprelink_cmds=$lt_prelink_cmds
1410532b578d3Smrg
141061b12faf6Smrg# Specify filename containing input files.
141071b12faf6Smrgfile_list_spec=$lt_file_list_spec
1410832b578d3Smrg
141091b12faf6Smrg# How to hardcode a shared library path into an executable.
141101b12faf6Smrghardcode_action=$hardcode_action
1411132b578d3Smrg
141121b12faf6Smrg# ### END LIBTOOL CONFIG
1411332b578d3Smrg
141141b12faf6Smrg_LT_EOF
1411532b578d3Smrg
141161b12faf6Smrg  case $host_os in
141171b12faf6Smrg  aix3*)
141181b12faf6Smrg    cat <<\_LT_EOF >> "$cfgfile"
141191b12faf6Smrg# AIX sometimes has problems with the GCC collect2 program.  For some
141201b12faf6Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems
141211b12faf6Smrg# vanish in a puff of smoke.
141221b12faf6Smrgif test "X${COLLECT_NAMES+set}" != Xset; then
141231b12faf6Smrg  COLLECT_NAMES=
141241b12faf6Smrg  export COLLECT_NAMES
141251b12faf6Smrgfi
141261b12faf6Smrg_LT_EOF
141271b12faf6Smrg    ;;
141281b12faf6Smrg  esac
1412932b578d3Smrg
1413032b578d3Smrg
141311b12faf6Smrgltmain="$ac_aux_dir/ltmain.sh"
1413232b578d3Smrg
1413332b578d3Smrg
141341b12faf6Smrg  # We use sed instead of cat because bash on DJGPP gets confused if
141351b12faf6Smrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
141361b12faf6Smrg  # text mode, it properly converts lines to CR/LF.  This bash problem
141371b12faf6Smrg  # is reportedly fixed, but why not run on old versions too?
141381b12faf6Smrg  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
141391b12faf6Smrg    || (rm -f "$cfgfile"; exit 1)
1414032b578d3Smrg
141411b12faf6Smrg  case $xsi_shell in
141421b12faf6Smrg  yes)
141431b12faf6Smrg    cat << \_LT_EOF >> "$cfgfile"
1414432b578d3Smrg
141451b12faf6Smrg# func_dirname file append nondir_replacement
141461b12faf6Smrg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
141471b12faf6Smrg# otherwise set result to NONDIR_REPLACEMENT.
141481b12faf6Smrgfunc_dirname ()
141491b12faf6Smrg{
141501b12faf6Smrg  case ${1} in
141511b12faf6Smrg    */*) func_dirname_result="${1%/*}${2}" ;;
141521b12faf6Smrg    *  ) func_dirname_result="${3}" ;;
141531b12faf6Smrg  esac
141541b12faf6Smrg}
1415532b578d3Smrg
141561b12faf6Smrg# func_basename file
141571b12faf6Smrgfunc_basename ()
141581b12faf6Smrg{
141591b12faf6Smrg  func_basename_result="${1##*/}"
141601b12faf6Smrg}
1416132b578d3Smrg
141621b12faf6Smrg# func_dirname_and_basename file append nondir_replacement
141631b12faf6Smrg# perform func_basename and func_dirname in a single function
141641b12faf6Smrg# call:
141651b12faf6Smrg#   dirname:  Compute the dirname of FILE.  If nonempty,
141661b12faf6Smrg#             add APPEND to the result, otherwise set result
141671b12faf6Smrg#             to NONDIR_REPLACEMENT.
141681b12faf6Smrg#             value returned in "$func_dirname_result"
141691b12faf6Smrg#   basename: Compute filename of FILE.
141701b12faf6Smrg#             value retuned in "$func_basename_result"
141711b12faf6Smrg# Implementation must be kept synchronized with func_dirname
141721b12faf6Smrg# and func_basename. For efficiency, we do not delegate to
141731b12faf6Smrg# those functions but instead duplicate the functionality here.
141741b12faf6Smrgfunc_dirname_and_basename ()
141751b12faf6Smrg{
141761b12faf6Smrg  case ${1} in
141771b12faf6Smrg    */*) func_dirname_result="${1%/*}${2}" ;;
141781b12faf6Smrg    *  ) func_dirname_result="${3}" ;;
141791b12faf6Smrg  esac
141801b12faf6Smrg  func_basename_result="${1##*/}"
141811b12faf6Smrg}
1418232b578d3Smrg
141831b12faf6Smrg# func_stripname prefix suffix name
141841b12faf6Smrg# strip PREFIX and SUFFIX off of NAME.
141851b12faf6Smrg# PREFIX and SUFFIX must not contain globbing or regex special
141861b12faf6Smrg# characters, hashes, percent signs, but SUFFIX may contain a leading
141871b12faf6Smrg# dot (in which case that matches only a dot).
141881b12faf6Smrgfunc_stripname ()
141891b12faf6Smrg{
141901b12faf6Smrg  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
141911b12faf6Smrg  # positional parameters, so assign one to ordinary parameter first.
141921b12faf6Smrg  func_stripname_result=${3}
141931b12faf6Smrg  func_stripname_result=${func_stripname_result#"${1}"}
141941b12faf6Smrg  func_stripname_result=${func_stripname_result%"${2}"}
141951b12faf6Smrg}
1419632b578d3Smrg
141971b12faf6Smrg# func_opt_split
141981b12faf6Smrgfunc_opt_split ()
141991b12faf6Smrg{
142001b12faf6Smrg  func_opt_split_opt=${1%%=*}
142011b12faf6Smrg  func_opt_split_arg=${1#*=}
142021b12faf6Smrg}
1420332b578d3Smrg
142041b12faf6Smrg# func_lo2o object
142051b12faf6Smrgfunc_lo2o ()
142061b12faf6Smrg{
142071b12faf6Smrg  case ${1} in
142081b12faf6Smrg    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
142091b12faf6Smrg    *)    func_lo2o_result=${1} ;;
142101b12faf6Smrg  esac
142111b12faf6Smrg}
1421232b578d3Smrg
142131b12faf6Smrg# func_xform libobj-or-source
142141b12faf6Smrgfunc_xform ()
142151b12faf6Smrg{
142161b12faf6Smrg  func_xform_result=${1%.*}.lo
142171b12faf6Smrg}
1421832b578d3Smrg
142191b12faf6Smrg# func_arith arithmetic-term...
142201b12faf6Smrgfunc_arith ()
142211b12faf6Smrg{
142221b12faf6Smrg  func_arith_result=$(( $* ))
142231b12faf6Smrg}
1422432b578d3Smrg
142251b12faf6Smrg# func_len string
142261b12faf6Smrg# STRING may not start with a hyphen.
142271b12faf6Smrgfunc_len ()
142281b12faf6Smrg{
142291b12faf6Smrg  func_len_result=${#1}
142301b12faf6Smrg}
1423132b578d3Smrg
142321b12faf6Smrg_LT_EOF
142331b12faf6Smrg    ;;
142341b12faf6Smrg  *) # Bourne compatible functions.
142351b12faf6Smrg    cat << \_LT_EOF >> "$cfgfile"
1423632b578d3Smrg
142371b12faf6Smrg# func_dirname file append nondir_replacement
142381b12faf6Smrg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
142391b12faf6Smrg# otherwise set result to NONDIR_REPLACEMENT.
142401b12faf6Smrgfunc_dirname ()
142411b12faf6Smrg{
142421b12faf6Smrg  # Extract subdirectory from the argument.
142431b12faf6Smrg  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
142441b12faf6Smrg  if test "X$func_dirname_result" = "X${1}"; then
142451b12faf6Smrg    func_dirname_result="${3}"
142461b12faf6Smrg  else
142471b12faf6Smrg    func_dirname_result="$func_dirname_result${2}"
142481b12faf6Smrg  fi
142491b12faf6Smrg}
1425032b578d3Smrg
142511b12faf6Smrg# func_basename file
142521b12faf6Smrgfunc_basename ()
142531b12faf6Smrg{
142541b12faf6Smrg  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
142551b12faf6Smrg}
1425632b578d3Smrg
1425732b578d3Smrg
142581b12faf6Smrg# func_stripname prefix suffix name
142591b12faf6Smrg# strip PREFIX and SUFFIX off of NAME.
142601b12faf6Smrg# PREFIX and SUFFIX must not contain globbing or regex special
142611b12faf6Smrg# characters, hashes, percent signs, but SUFFIX may contain a leading
142621b12faf6Smrg# dot (in which case that matches only a dot).
142631b12faf6Smrg# func_strip_suffix prefix name
142641b12faf6Smrgfunc_stripname ()
142651b12faf6Smrg{
142661b12faf6Smrg  case ${2} in
142671b12faf6Smrg    .*) func_stripname_result=`$ECHO "X${3}" \
142681b12faf6Smrg           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
142691b12faf6Smrg    *)  func_stripname_result=`$ECHO "X${3}" \
142701b12faf6Smrg           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
142711b12faf6Smrg  esac
142721b12faf6Smrg}
1427332b578d3Smrg
142741b12faf6Smrg# sed scripts:
142751b12faf6Smrgmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
142761b12faf6Smrgmy_sed_long_arg='1s/^-[^=]*=//'
1427732b578d3Smrg
142781b12faf6Smrg# func_opt_split
142791b12faf6Smrgfunc_opt_split ()
142801b12faf6Smrg{
142811b12faf6Smrg  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
142821b12faf6Smrg  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
142831b12faf6Smrg}
1428432b578d3Smrg
142851b12faf6Smrg# func_lo2o object
142861b12faf6Smrgfunc_lo2o ()
142871b12faf6Smrg{
142881b12faf6Smrg  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
142891b12faf6Smrg}
1429032b578d3Smrg
142911b12faf6Smrg# func_xform libobj-or-source
142921b12faf6Smrgfunc_xform ()
142931b12faf6Smrg{
142941b12faf6Smrg  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
142951b12faf6Smrg}
1429632b578d3Smrg
142971b12faf6Smrg# func_arith arithmetic-term...
142981b12faf6Smrgfunc_arith ()
142991b12faf6Smrg{
143001b12faf6Smrg  func_arith_result=`expr "$@"`
143011b12faf6Smrg}
1430232b578d3Smrg
143031b12faf6Smrg# func_len string
143041b12faf6Smrg# STRING may not start with a hyphen.
143051b12faf6Smrgfunc_len ()
143061b12faf6Smrg{
143071b12faf6Smrg  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
143081b12faf6Smrg}
1430932b578d3Smrg
143101b12faf6Smrg_LT_EOF
143111b12faf6Smrgesac
1431232b578d3Smrg
143131b12faf6Smrgcase $lt_shell_append in
143141b12faf6Smrg  yes)
143151b12faf6Smrg    cat << \_LT_EOF >> "$cfgfile"
1431632b578d3Smrg
143171b12faf6Smrg# func_append var value
143181b12faf6Smrg# Append VALUE to the end of shell variable VAR.
143191b12faf6Smrgfunc_append ()
143201b12faf6Smrg{
143211b12faf6Smrg  eval "$1+=\$2"
143221b12faf6Smrg}
143231b12faf6Smrg_LT_EOF
143241b12faf6Smrg    ;;
143251b12faf6Smrg  *)
143261b12faf6Smrg    cat << \_LT_EOF >> "$cfgfile"
1432732b578d3Smrg
143281b12faf6Smrg# func_append var value
143291b12faf6Smrg# Append VALUE to the end of shell variable VAR.
143301b12faf6Smrgfunc_append ()
143311b12faf6Smrg{
143321b12faf6Smrg  eval "$1=\$$1\$2"
143331b12faf6Smrg}
1433432b578d3Smrg
143351b12faf6Smrg_LT_EOF
143361b12faf6Smrg    ;;
143371b12faf6Smrg  esac
1433832b578d3Smrg
1433932b578d3Smrg
143401b12faf6Smrg  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
143411b12faf6Smrg    || (rm -f "$cfgfile"; exit 1)
1434232b578d3Smrg
143431b12faf6Smrg  mv -f "$cfgfile" "$ofile" ||
143441b12faf6Smrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
143451b12faf6Smrg  chmod +x "$ofile"
1434632b578d3Smrg
1434732b578d3Smrg ;;
1434832b578d3Smrg
1434932b578d3Smrg  esac
1435032b578d3Smrgdone # for ac_tag
1435132b578d3Smrg
1435232b578d3Smrg
143531b12faf6Smrgas_fn_exit 0
1435432b578d3Smrg_ACEOF
1435532b578d3Smrgac_clean_files=$ac_clean_files_save
1435632b578d3Smrg
143572a51b5beSmrgtest $ac_write_fail = 0 ||
143581b12faf6Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
143592a51b5beSmrg
1436032b578d3Smrg
1436132b578d3Smrg# configure is writing to config.log, and then calls config.status.
1436232b578d3Smrg# config.status does its own redirection, appending to config.log.
1436332b578d3Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
1436432b578d3Smrg# by configure, so config.status won't be able to write to it; its
1436532b578d3Smrg# output is simply discarded.  So we exec the FD to /dev/null,
1436632b578d3Smrg# effectively closing config.log, so it can be properly (re)opened and
1436732b578d3Smrg# appended to by config.status.  When coming back to configure, we
1436832b578d3Smrg# need to make the FD available again.
1436932b578d3Smrgif test "$no_create" != yes; then
1437032b578d3Smrg  ac_cs_success=:
1437132b578d3Smrg  ac_config_status_args=
1437232b578d3Smrg  test "$silent" = yes &&
1437332b578d3Smrg    ac_config_status_args="$ac_config_status_args --quiet"
1437432b578d3Smrg  exec 5>/dev/null
1437532b578d3Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1437632b578d3Smrg  exec 5>>config.log
1437732b578d3Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1437832b578d3Smrg  # would make configure fail if this is the last instruction.
143791b12faf6Smrg  $ac_cs_success || as_fn_exit 1
1438032b578d3Smrgfi
143812a51b5beSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
143821b12faf6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
143832a51b5beSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
143842a51b5beSmrgfi
1438532b578d3Smrg
14386