configure revision 48c85eb7
13da084b3Smrg#! /bin/sh
23da084b3Smrg# Guess values for system-dependent variables and create Makefiles.
348c85eb7Smrg# Generated by GNU Autoconf 2.68 for libfontenc 1.1.2.
43da084b3Smrg#
53da084b3Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
63da084b3Smrg#
755acc8fcSmrg#
83da084b3Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
955acc8fcSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
1055acc8fcSmrg# Foundation, Inc.
1155acc8fcSmrg#
1255acc8fcSmrg#
133da084b3Smrg# This configure script is free software; the Free Software Foundation
143da084b3Smrg# gives unlimited permission to copy, distribute and modify it.
1555acc8fcSmrg## -------------------- ##
1655acc8fcSmrg## M4sh Initialization. ##
1755acc8fcSmrg## -------------------- ##
183da084b3Smrg
19d63fdb69Smrg# Be more Bourne compatible
20d63fdb69SmrgDUALCASE=1; export DUALCASE # for MKS sh
2155acc8fcSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
223da084b3Smrg  emulate sh
233da084b3Smrg  NULLCMD=:
24d63fdb69Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
253da084b3Smrg  # is contrary to our usage.  Disable this feature.
263da084b3Smrg  alias -g '${1+"$@"}'='"$@"'
273da084b3Smrg  setopt NO_GLOB_SUBST
283da084b3Smrgelse
2955acc8fcSmrg  case `(set -o) 2>/dev/null` in #(
3055acc8fcSmrg  *posix*) :
3155acc8fcSmrg    set -o posix ;; #(
3255acc8fcSmrg  *) :
3355acc8fcSmrg     ;;
34d63fdb69Smrgesac
353da084b3Smrgfi
36d63fdb69Smrg
37d63fdb69Smrg
38d63fdb69Smrgas_nl='
39d63fdb69Smrg'
40d63fdb69Smrgexport as_nl
41d63fdb69Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42d63fdb69Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43d63fdb69Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44d63fdb69Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4555acc8fcSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4655acc8fcSmrg# but without wasting forks for bash or zsh.
4755acc8fcSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4855acc8fcSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4955acc8fcSmrg  as_echo='print -r --'
5055acc8fcSmrg  as_echo_n='print -rn --'
5155acc8fcSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52d63fdb69Smrg  as_echo='printf %s\n'
53d63fdb69Smrg  as_echo_n='printf %s'
54d63fdb69Smrgelse
55d63fdb69Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56d63fdb69Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57d63fdb69Smrg    as_echo_n='/usr/ucb/echo -n'
58d63fdb69Smrg  else
59d63fdb69Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60d63fdb69Smrg    as_echo_n_body='eval
61d63fdb69Smrg      arg=$1;
6255acc8fcSmrg      case $arg in #(
63d63fdb69Smrg      *"$as_nl"*)
64d63fdb69Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65d63fdb69Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66d63fdb69Smrg      esac;
67d63fdb69Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68d63fdb69Smrg    '
69d63fdb69Smrg    export as_echo_n_body
70d63fdb69Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71d63fdb69Smrg  fi
72d63fdb69Smrg  export as_echo_body
73d63fdb69Smrg  as_echo='sh -c $as_echo_body as_echo'
74d63fdb69Smrgfi
75d63fdb69Smrg
763da084b3Smrg# The user is always right.
773da084b3Smrgif test "${PATH_SEPARATOR+set}" != set; then
78d63fdb69Smrg  PATH_SEPARATOR=:
79d63fdb69Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80d63fdb69Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81d63fdb69Smrg      PATH_SEPARATOR=';'
82d63fdb69Smrg  }
833da084b3Smrgfi
843da084b3Smrg
853da084b3Smrg
863da084b3Smrg# IFS
873da084b3Smrg# We need space, tab and new line, in precisely that order.  Quoting is
883da084b3Smrg# there to prevent editors from complaining about space-tab.
893da084b3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
903da084b3Smrg# splitting by setting IFS to empty value.)
913da084b3SmrgIFS=" ""	$as_nl"
923da084b3Smrg
933da084b3Smrg# Find who we are.  Look in the path if we contain no directory separator.
9455acc8fcSmrgas_myself=
9555acc8fcSmrgcase $0 in #((
963da084b3Smrg  *[\\/]* ) as_myself=$0 ;;
973da084b3Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983da084b3Smrgfor as_dir in $PATH
993da084b3Smrgdo
1003da084b3Smrg  IFS=$as_save_IFS
1013da084b3Smrg  test -z "$as_dir" && as_dir=.
10255acc8fcSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10355acc8fcSmrg  done
1043da084b3SmrgIFS=$as_save_IFS
1053da084b3Smrg
1063da084b3Smrg     ;;
1073da084b3Smrgesac
1083da084b3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1093da084b3Smrg# in which case we are not to be found in the path.
1103da084b3Smrgif test "x$as_myself" = x; then
1113da084b3Smrg  as_myself=$0
1123da084b3Smrgfi
1133da084b3Smrgif test ! -f "$as_myself"; then
114d63fdb69Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11555acc8fcSmrg  exit 1
1163da084b3Smrgfi
1173da084b3Smrg
11855acc8fcSmrg# Unset variables that we do not need and which cause bugs (e.g. in
11955acc8fcSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12055acc8fcSmrg# suppresses any "Segmentation fault" message there.  '((' could
12155acc8fcSmrg# trigger a bug in pdksh 5.2.14.
12255acc8fcSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
12355acc8fcSmrgdo eval test x\${$as_var+set} = xset \
12455acc8fcSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1253da084b3Smrgdone
1263da084b3SmrgPS1='$ '
1273da084b3SmrgPS2='> '
1283da084b3SmrgPS4='+ '
1293da084b3Smrg
1303da084b3Smrg# NLS nuisances.
131d63fdb69SmrgLC_ALL=C
132d63fdb69Smrgexport LC_ALL
133d63fdb69SmrgLANGUAGE=C
134d63fdb69Smrgexport LANGUAGE
1353da084b3Smrg
13655acc8fcSmrg# CDPATH.
13755acc8fcSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13855acc8fcSmrg
13955acc8fcSmrgif test "x$CONFIG_SHELL" = x; then
14055acc8fcSmrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
14155acc8fcSmrg  emulate sh
14255acc8fcSmrg  NULLCMD=:
14355acc8fcSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14455acc8fcSmrg  # is contrary to our usage.  Disable this feature.
14555acc8fcSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
14655acc8fcSmrg  setopt NO_GLOB_SUBST
14755acc8fcSmrgelse
14855acc8fcSmrg  case \`(set -o) 2>/dev/null\` in #(
14955acc8fcSmrg  *posix*) :
15055acc8fcSmrg    set -o posix ;; #(
15155acc8fcSmrg  *) :
15255acc8fcSmrg     ;;
15355acc8fcSmrgesac
15455acc8fcSmrgfi
15555acc8fcSmrg"
15655acc8fcSmrg  as_required="as_fn_return () { (exit \$1); }
15755acc8fcSmrgas_fn_success () { as_fn_return 0; }
15855acc8fcSmrgas_fn_failure () { as_fn_return 1; }
15955acc8fcSmrgas_fn_ret_success () { return 0; }
16055acc8fcSmrgas_fn_ret_failure () { return 1; }
16155acc8fcSmrg
16255acc8fcSmrgexitcode=0
16355acc8fcSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16455acc8fcSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
16555acc8fcSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
16655acc8fcSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
16755acc8fcSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
16855acc8fcSmrg
16955acc8fcSmrgelse
17055acc8fcSmrg  exitcode=1; echo positional parameters were not saved.
17155acc8fcSmrgfi
17255acc8fcSmrgtest x\$exitcode = x0 || exit 1"
17355acc8fcSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
17455acc8fcSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
17555acc8fcSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
17655acc8fcSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
17755acc8fcSmrg
17855acc8fcSmrg  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
17955acc8fcSmrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18055acc8fcSmrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
18155acc8fcSmrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
18255acc8fcSmrg    PATH=/empty FPATH=/empty; export PATH FPATH
18355acc8fcSmrg    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
18448c85eb7Smrg      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
18548c85eb7Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
18655acc8fcSmrg  if (eval "$as_required") 2>/dev/null; then :
18755acc8fcSmrg  as_have_required=yes
18855acc8fcSmrgelse
18955acc8fcSmrg  as_have_required=no
19055acc8fcSmrgfi
19155acc8fcSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
19255acc8fcSmrg
19355acc8fcSmrgelse
19455acc8fcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19555acc8fcSmrgas_found=false
19655acc8fcSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19755acc8fcSmrgdo
19855acc8fcSmrg  IFS=$as_save_IFS
19955acc8fcSmrg  test -z "$as_dir" && as_dir=.
20055acc8fcSmrg  as_found=:
20155acc8fcSmrg  case $as_dir in #(
20255acc8fcSmrg	 /*)
20355acc8fcSmrg	   for as_base in sh bash ksh sh5; do
20455acc8fcSmrg	     # Try only shells that exist, to save several forks.
20555acc8fcSmrg	     as_shell=$as_dir/$as_base
20655acc8fcSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
20755acc8fcSmrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
20855acc8fcSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
20955acc8fcSmrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
21055acc8fcSmrg  break 2
21155acc8fcSmrgfi
21255acc8fcSmrgfi
21355acc8fcSmrg	   done;;
21455acc8fcSmrg       esac
21555acc8fcSmrg  as_found=false
21655acc8fcSmrgdone
21755acc8fcSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
21855acc8fcSmrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
21955acc8fcSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
22055acc8fcSmrgfi; }
22155acc8fcSmrgIFS=$as_save_IFS
22255acc8fcSmrg
22355acc8fcSmrg
22455acc8fcSmrg      if test "x$CONFIG_SHELL" != x; then :
22555acc8fcSmrg  # We cannot yet assume a decent shell, so we have to provide a
22655acc8fcSmrg	# neutralization value for shells without unset; and this also
22755acc8fcSmrg	# works around shells that cannot unset nonexistent variables.
22855acc8fcSmrg	# Preserve -v and -x to the replacement shell.
22955acc8fcSmrg	BASH_ENV=/dev/null
23055acc8fcSmrg	ENV=/dev/null
23155acc8fcSmrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
23255acc8fcSmrg	export CONFIG_SHELL
23355acc8fcSmrg	case $- in # ((((
23455acc8fcSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
23555acc8fcSmrg	  *v* ) as_opts=-v ;;
23655acc8fcSmrg	  *x* ) as_opts=-x ;;
23755acc8fcSmrg	  * ) as_opts= ;;
23855acc8fcSmrg	esac
23955acc8fcSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
24055acc8fcSmrgfi
24155acc8fcSmrg
24255acc8fcSmrg    if test x$as_have_required = xno; then :
24355acc8fcSmrg  $as_echo "$0: This script requires a shell more modern than all"
24455acc8fcSmrg  $as_echo "$0: the shells that I found on your system."
24555acc8fcSmrg  if test x${ZSH_VERSION+set} = xset ; then
24655acc8fcSmrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
24755acc8fcSmrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
24855acc8fcSmrg  else
24955acc8fcSmrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
25055acc8fcSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
25155acc8fcSmrg$0: about your system, including any error possibly output
25255acc8fcSmrg$0: before this message. Then install a modern shell, or
25355acc8fcSmrg$0: manually run the script under such a shell if you do
25455acc8fcSmrg$0: have one."
25555acc8fcSmrg  fi
25655acc8fcSmrg  exit 1
25755acc8fcSmrgfi
25855acc8fcSmrgfi
25955acc8fcSmrgfi
26055acc8fcSmrgSHELL=${CONFIG_SHELL-/bin/sh}
26155acc8fcSmrgexport SHELL
26255acc8fcSmrg# Unset more variables known to interfere with behavior of common tools.
26355acc8fcSmrgCLICOLOR_FORCE= GREP_OPTIONS=
26455acc8fcSmrgunset CLICOLOR_FORCE GREP_OPTIONS
26555acc8fcSmrg
26655acc8fcSmrg## --------------------- ##
26755acc8fcSmrg## M4sh Shell Functions. ##
26855acc8fcSmrg## --------------------- ##
26955acc8fcSmrg# as_fn_unset VAR
27055acc8fcSmrg# ---------------
27155acc8fcSmrg# Portably unset VAR.
27255acc8fcSmrgas_fn_unset ()
27355acc8fcSmrg{
27455acc8fcSmrg  { eval $1=; unset $1;}
27555acc8fcSmrg}
27655acc8fcSmrgas_unset=as_fn_unset
27755acc8fcSmrg
27855acc8fcSmrg# as_fn_set_status STATUS
27955acc8fcSmrg# -----------------------
28055acc8fcSmrg# Set $? to STATUS, without forking.
28155acc8fcSmrgas_fn_set_status ()
28255acc8fcSmrg{
28355acc8fcSmrg  return $1
28455acc8fcSmrg} # as_fn_set_status
28555acc8fcSmrg
28655acc8fcSmrg# as_fn_exit STATUS
28755acc8fcSmrg# -----------------
28855acc8fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28955acc8fcSmrgas_fn_exit ()
29055acc8fcSmrg{
29155acc8fcSmrg  set +e
29255acc8fcSmrg  as_fn_set_status $1
29355acc8fcSmrg  exit $1
29455acc8fcSmrg} # as_fn_exit
29555acc8fcSmrg
29655acc8fcSmrg# as_fn_mkdir_p
29755acc8fcSmrg# -------------
29855acc8fcSmrg# Create "$as_dir" as a directory, including parents if necessary.
29955acc8fcSmrgas_fn_mkdir_p ()
30055acc8fcSmrg{
30155acc8fcSmrg
30255acc8fcSmrg  case $as_dir in #(
30355acc8fcSmrg  -*) as_dir=./$as_dir;;
30455acc8fcSmrg  esac
30555acc8fcSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
30655acc8fcSmrg    as_dirs=
30755acc8fcSmrg    while :; do
30855acc8fcSmrg      case $as_dir in #(
30955acc8fcSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31055acc8fcSmrg      *) as_qdir=$as_dir;;
31155acc8fcSmrg      esac
31255acc8fcSmrg      as_dirs="'$as_qdir' $as_dirs"
31355acc8fcSmrg      as_dir=`$as_dirname -- "$as_dir" ||
31455acc8fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31555acc8fcSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
31655acc8fcSmrg	 X"$as_dir" : 'X\(//\)$' \| \
31755acc8fcSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31855acc8fcSmrg$as_echo X"$as_dir" |
31955acc8fcSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32055acc8fcSmrg	    s//\1/
32155acc8fcSmrg	    q
32255acc8fcSmrg	  }
32355acc8fcSmrg	  /^X\(\/\/\)[^/].*/{
32455acc8fcSmrg	    s//\1/
32555acc8fcSmrg	    q
32655acc8fcSmrg	  }
32755acc8fcSmrg	  /^X\(\/\/\)$/{
32855acc8fcSmrg	    s//\1/
32955acc8fcSmrg	    q
33055acc8fcSmrg	  }
33155acc8fcSmrg	  /^X\(\/\).*/{
33255acc8fcSmrg	    s//\1/
33355acc8fcSmrg	    q
33455acc8fcSmrg	  }
33555acc8fcSmrg	  s/.*/./; q'`
33655acc8fcSmrg      test -d "$as_dir" && break
33755acc8fcSmrg    done
33855acc8fcSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
33955acc8fcSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34055acc8fcSmrg
34155acc8fcSmrg
34255acc8fcSmrg} # as_fn_mkdir_p
34355acc8fcSmrg# as_fn_append VAR VALUE
34455acc8fcSmrg# ----------------------
34555acc8fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
34655acc8fcSmrg# advantage of any shell optimizations that allow amortized linear growth over
34755acc8fcSmrg# repeated appends, instead of the typical quadratic growth present in naive
34855acc8fcSmrg# implementations.
34955acc8fcSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35055acc8fcSmrg  eval 'as_fn_append ()
35155acc8fcSmrg  {
35255acc8fcSmrg    eval $1+=\$2
35355acc8fcSmrg  }'
35455acc8fcSmrgelse
35555acc8fcSmrg  as_fn_append ()
35655acc8fcSmrg  {
35755acc8fcSmrg    eval $1=\$$1\$2
35855acc8fcSmrg  }
35955acc8fcSmrgfi # as_fn_append
36055acc8fcSmrg
36155acc8fcSmrg# as_fn_arith ARG...
36255acc8fcSmrg# ------------------
36355acc8fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
36455acc8fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
36555acc8fcSmrg# must be portable across $(()) and expr.
36655acc8fcSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36755acc8fcSmrg  eval 'as_fn_arith ()
36855acc8fcSmrg  {
36955acc8fcSmrg    as_val=$(( $* ))
37055acc8fcSmrg  }'
37155acc8fcSmrgelse
37255acc8fcSmrg  as_fn_arith ()
37355acc8fcSmrg  {
37455acc8fcSmrg    as_val=`expr "$@" || test $? -eq 1`
37555acc8fcSmrg  }
37655acc8fcSmrgfi # as_fn_arith
37755acc8fcSmrg
37855acc8fcSmrg
37955acc8fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
38055acc8fcSmrg# ----------------------------------------
38155acc8fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
38255acc8fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
38355acc8fcSmrg# script with STATUS, using 1 if that was 0.
38455acc8fcSmrgas_fn_error ()
38555acc8fcSmrg{
38655acc8fcSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
38755acc8fcSmrg  if test "$4"; then
38855acc8fcSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
38955acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
39055acc8fcSmrg  fi
39155acc8fcSmrg  $as_echo "$as_me: error: $2" >&2
39255acc8fcSmrg  as_fn_exit $as_status
39355acc8fcSmrg} # as_fn_error
39455acc8fcSmrg
3953da084b3Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
3963da084b3Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3973da084b3Smrg  as_expr=expr
3983da084b3Smrgelse
3993da084b3Smrg  as_expr=false
4003da084b3Smrgfi
4013da084b3Smrg
4023da084b3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4033da084b3Smrg  as_basename=basename
4043da084b3Smrgelse
4053da084b3Smrg  as_basename=false
4063da084b3Smrgfi
4073da084b3Smrg
40855acc8fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40955acc8fcSmrg  as_dirname=dirname
41055acc8fcSmrgelse
41155acc8fcSmrg  as_dirname=false
41255acc8fcSmrgfi
4133da084b3Smrg
4143da084b3Smrgas_me=`$as_basename -- "$0" ||
4153da084b3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4163da084b3Smrg	 X"$0" : 'X\(//\)$' \| \
4173da084b3Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418d63fdb69Smrg$as_echo X/"$0" |
4193da084b3Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4203da084b3Smrg	    s//\1/
4213da084b3Smrg	    q
4223da084b3Smrg	  }
4233da084b3Smrg	  /^X\/\(\/\/\)$/{
4243da084b3Smrg	    s//\1/
4253da084b3Smrg	    q
4263da084b3Smrg	  }
4273da084b3Smrg	  /^X\/\(\/\).*/{
4283da084b3Smrg	    s//\1/
4293da084b3Smrg	    q
4303da084b3Smrg	  }
4313da084b3Smrg	  s/.*/./; q'`
4323da084b3Smrg
43355acc8fcSmrg# Avoid depending upon Character Ranges.
43455acc8fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
43555acc8fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43655acc8fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
43755acc8fcSmrgas_cr_digits='0123456789'
43855acc8fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4393da084b3Smrg
4403da084b3Smrg
44155acc8fcSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
44255acc8fcSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
44355acc8fcSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
44455acc8fcSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
44555acc8fcSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
44655acc8fcSmrg  sed -n '
44755acc8fcSmrg    p
44855acc8fcSmrg    /[$]LINENO/=
44955acc8fcSmrg  ' <$as_myself |
45055acc8fcSmrg    sed '
45155acc8fcSmrg      s/[$]LINENO.*/&-/
45255acc8fcSmrg      t lineno
45355acc8fcSmrg      b
45455acc8fcSmrg      :lineno
45555acc8fcSmrg      N
45655acc8fcSmrg      :loop
45755acc8fcSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45855acc8fcSmrg      t loop
45955acc8fcSmrg      s/-\n.*//
46055acc8fcSmrg    ' >$as_me.lineno &&
46155acc8fcSmrg  chmod +x "$as_me.lineno" ||
46255acc8fcSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4633da084b3Smrg
46455acc8fcSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
46555acc8fcSmrg  # (the dirname of $[0] is not the place where we might find the
46655acc8fcSmrg  # original and so on.  Autoconf is especially sensitive to this).
46755acc8fcSmrg  . "./$as_me.lineno"
46855acc8fcSmrg  # Exit status is that of the last command.
46955acc8fcSmrg  exit
4703da084b3Smrg}
4713da084b3Smrg
47255acc8fcSmrgECHO_C= ECHO_N= ECHO_T=
47355acc8fcSmrgcase `echo -n x` in #(((((
47455acc8fcSmrg-n*)
47555acc8fcSmrg  case `echo 'xy\c'` in
47655acc8fcSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
47755acc8fcSmrg  xy)  ECHO_C='\c';;
47855acc8fcSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
47955acc8fcSmrg       ECHO_T='	';;
48055acc8fcSmrg  esac;;
48155acc8fcSmrg*)
48255acc8fcSmrg  ECHO_N='-n';;
48355acc8fcSmrgesac
4843da084b3Smrg
48555acc8fcSmrgrm -f conf$$ conf$$.exe conf$$.file
48655acc8fcSmrgif test -d conf$$.dir; then
48755acc8fcSmrg  rm -f conf$$.dir/conf$$.file
48855acc8fcSmrgelse
48955acc8fcSmrg  rm -f conf$$.dir
49055acc8fcSmrg  mkdir conf$$.dir 2>/dev/null
4913da084b3Smrgfi
49255acc8fcSmrgif (echo >conf$$.file) 2>/dev/null; then
49355acc8fcSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
49455acc8fcSmrg    as_ln_s='ln -s'
49555acc8fcSmrg    # ... but there are two gotchas:
49655acc8fcSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
49755acc8fcSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49855acc8fcSmrg    # In both cases, we have to default to `cp -p'.
49955acc8fcSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50055acc8fcSmrg      as_ln_s='cp -p'
50155acc8fcSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
50255acc8fcSmrg    as_ln_s=ln
50355acc8fcSmrg  else
50455acc8fcSmrg    as_ln_s='cp -p'
50555acc8fcSmrg  fi
5063da084b3Smrgelse
50755acc8fcSmrg  as_ln_s='cp -p'
5083da084b3Smrgfi
50955acc8fcSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51055acc8fcSmrgrmdir conf$$.dir 2>/dev/null
5113da084b3Smrg
51255acc8fcSmrgif mkdir -p . 2>/dev/null; then
51355acc8fcSmrg  as_mkdir_p='mkdir -p "$as_dir"'
51455acc8fcSmrgelse
51555acc8fcSmrg  test -d ./-p && rmdir ./-p
51655acc8fcSmrg  as_mkdir_p=false
5173da084b3Smrgfi
5183da084b3Smrg
51955acc8fcSmrgif test -x / >/dev/null 2>&1; then
52055acc8fcSmrg  as_test_x='test -x'
5213da084b3Smrgelse
52255acc8fcSmrg  if ls -dL / >/dev/null 2>&1; then
52355acc8fcSmrg    as_ls_L_option=L
52455acc8fcSmrg  else
52555acc8fcSmrg    as_ls_L_option=
52655acc8fcSmrg  fi
52755acc8fcSmrg  as_test_x='
52855acc8fcSmrg    eval sh -c '\''
52955acc8fcSmrg      if test -d "$1"; then
53055acc8fcSmrg	test -d "$1/.";
53155acc8fcSmrg      else
53255acc8fcSmrg	case $1 in #(
53355acc8fcSmrg	-*)set "./$1";;
53455acc8fcSmrg	esac;
53555acc8fcSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
53655acc8fcSmrg	???[sx]*):;;*)false;;esac;fi
53755acc8fcSmrg    '\'' sh
53855acc8fcSmrg  '
5393da084b3Smrgfi
54055acc8fcSmrgas_executable_p=$as_test_x
5413da084b3Smrg
54255acc8fcSmrg# Sed expression to map a string onto a valid CPP name.
54355acc8fcSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5443da084b3Smrg
54555acc8fcSmrg# Sed expression to map a string onto a valid variable name.
54655acc8fcSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5473da084b3Smrg
54855acc8fcSmrgSHELL=${CONFIG_SHELL-/bin/sh}
5493da084b3Smrg
55055acc8fcSmrg
55155acc8fcSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
55255acc8fcSmrgexec 6>&1
55355acc8fcSmrg
55455acc8fcSmrg# Name of the host.
55555acc8fcSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
55655acc8fcSmrg# so uname gets run too.
55755acc8fcSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
55855acc8fcSmrg
55955acc8fcSmrg#
56055acc8fcSmrg# Initializations.
56155acc8fcSmrg#
56255acc8fcSmrgac_default_prefix=/usr/local
56355acc8fcSmrgac_clean_files=
56455acc8fcSmrgac_config_libobj_dir=.
56555acc8fcSmrgLIBOBJS=
56655acc8fcSmrgcross_compiling=no
56755acc8fcSmrgsubdirs=
56855acc8fcSmrgMFLAGS=
56955acc8fcSmrgMAKEFLAGS=
57055acc8fcSmrg
57155acc8fcSmrg# Identity of this package.
57255acc8fcSmrgPACKAGE_NAME='libfontenc'
57355acc8fcSmrgPACKAGE_TARNAME='libfontenc'
57448c85eb7SmrgPACKAGE_VERSION='1.1.2'
57548c85eb7SmrgPACKAGE_STRING='libfontenc 1.1.2'
57655acc8fcSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
57755acc8fcSmrgPACKAGE_URL=''
57855acc8fcSmrg
57948c85eb7Smrgac_unique_file="Makefile.am"
58055acc8fcSmrg# Factoring default headers for most tests.
58155acc8fcSmrgac_includes_default="\
58255acc8fcSmrg#include <stdio.h>
58355acc8fcSmrg#ifdef HAVE_SYS_TYPES_H
58455acc8fcSmrg# include <sys/types.h>
58555acc8fcSmrg#endif
58655acc8fcSmrg#ifdef HAVE_SYS_STAT_H
58755acc8fcSmrg# include <sys/stat.h>
58855acc8fcSmrg#endif
58955acc8fcSmrg#ifdef STDC_HEADERS
59055acc8fcSmrg# include <stdlib.h>
59155acc8fcSmrg# include <stddef.h>
59255acc8fcSmrg#else
59355acc8fcSmrg# ifdef HAVE_STDLIB_H
59455acc8fcSmrg#  include <stdlib.h>
59555acc8fcSmrg# endif
59655acc8fcSmrg#endif
59755acc8fcSmrg#ifdef HAVE_STRING_H
59855acc8fcSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
59955acc8fcSmrg#  include <memory.h>
60055acc8fcSmrg# endif
60155acc8fcSmrg# include <string.h>
60255acc8fcSmrg#endif
60355acc8fcSmrg#ifdef HAVE_STRINGS_H
60455acc8fcSmrg# include <strings.h>
60555acc8fcSmrg#endif
60655acc8fcSmrg#ifdef HAVE_INTTYPES_H
60755acc8fcSmrg# include <inttypes.h>
60855acc8fcSmrg#endif
60955acc8fcSmrg#ifdef HAVE_STDINT_H
61055acc8fcSmrg# include <stdint.h>
61155acc8fcSmrg#endif
61255acc8fcSmrg#ifdef HAVE_UNISTD_H
61355acc8fcSmrg# include <unistd.h>
61455acc8fcSmrg#endif"
61555acc8fcSmrg
61655acc8fcSmrgac_subst_vars='am__EXEEXT_FALSE
61755acc8fcSmrgam__EXEEXT_TRUE
61855acc8fcSmrgLTLIBOBJS
61955acc8fcSmrgLIBOBJS
62055acc8fcSmrgLINT_FALSE
62155acc8fcSmrgLINT_TRUE
62255acc8fcSmrgLINT_FLAGS
62355acc8fcSmrgLINT
62455acc8fcSmrgFONTENC_LIBS
62555acc8fcSmrgFONTENC_CFLAGS
62655acc8fcSmrgENCODINGSDIR
62755acc8fcSmrgFONTROOTDIR
62855acc8fcSmrgAM_BACKSLASH
62955acc8fcSmrgAM_DEFAULT_VERBOSITY
63055acc8fcSmrgMAN_SUBSTS
63155acc8fcSmrgXORG_MAN_PAGE
63255acc8fcSmrgADMIN_MAN_DIR
63355acc8fcSmrgDRIVER_MAN_DIR
63455acc8fcSmrgMISC_MAN_DIR
63555acc8fcSmrgFILE_MAN_DIR
63655acc8fcSmrgLIB_MAN_DIR
63755acc8fcSmrgAPP_MAN_DIR
63855acc8fcSmrgADMIN_MAN_SUFFIX
63955acc8fcSmrgDRIVER_MAN_SUFFIX
64055acc8fcSmrgMISC_MAN_SUFFIX
64155acc8fcSmrgFILE_MAN_SUFFIX
64255acc8fcSmrgLIB_MAN_SUFFIX
64355acc8fcSmrgAPP_MAN_SUFFIX
64455acc8fcSmrgINSTALL_CMD
64555acc8fcSmrgPKG_CONFIG
64655acc8fcSmrgCHANGELOG_CMD
64748c85eb7SmrgSTRICT_CFLAGS
64855acc8fcSmrgCWARNFLAGS
64948c85eb7SmrgBASE_CFLAGS
65048c85eb7SmrgCPP
65148c85eb7SmrgOTOOL64
65248c85eb7SmrgOTOOL
65348c85eb7SmrgLIPO
65448c85eb7SmrgNMEDIT
65548c85eb7SmrgDSYMUTIL
65648c85eb7SmrgMANIFEST_TOOL
65748c85eb7SmrgRANLIB
65848c85eb7Smrgac_ct_AR
65948c85eb7SmrgAR
66048c85eb7SmrgDLLTOOL
66148c85eb7SmrgOBJDUMP
66248c85eb7SmrgLN_S
66348c85eb7SmrgNM
66448c85eb7Smrgac_ct_DUMPBIN
66548c85eb7SmrgDUMPBIN
66648c85eb7SmrgLD
66748c85eb7SmrgFGREP
66855acc8fcSmrgEGREP
66955acc8fcSmrgGREP
67048c85eb7SmrgSED
67155acc8fcSmrgam__fastdepCC_FALSE
67255acc8fcSmrgam__fastdepCC_TRUE
67355acc8fcSmrgCCDEPMODE
67448c85eb7Smrgam__nodep
67555acc8fcSmrgAMDEPBACKSLASH
67655acc8fcSmrgAMDEP_FALSE
67755acc8fcSmrgAMDEP_TRUE
67855acc8fcSmrgam__quote
67955acc8fcSmrgam__include
68055acc8fcSmrgDEPDIR
68155acc8fcSmrgOBJEXT
68255acc8fcSmrgEXEEXT
68355acc8fcSmrgac_ct_CC
68455acc8fcSmrgCPPFLAGS
68555acc8fcSmrgLDFLAGS
68655acc8fcSmrgCFLAGS
68755acc8fcSmrgCC
68848c85eb7Smrghost_os
68948c85eb7Smrghost_vendor
69048c85eb7Smrghost_cpu
69148c85eb7Smrghost
69248c85eb7Smrgbuild_os
69348c85eb7Smrgbuild_vendor
69448c85eb7Smrgbuild_cpu
69548c85eb7Smrgbuild
69648c85eb7SmrgLIBTOOL
69755acc8fcSmrgam__untar
69855acc8fcSmrgam__tar
69955acc8fcSmrgAMTAR
70055acc8fcSmrgam__leading_dot
70155acc8fcSmrgSET_MAKE
70255acc8fcSmrgAWK
70355acc8fcSmrgmkdir_p
70455acc8fcSmrgMKDIR_P
70555acc8fcSmrgINSTALL_STRIP_PROGRAM
70655acc8fcSmrgSTRIP
70755acc8fcSmrginstall_sh
70855acc8fcSmrgMAKEINFO
70955acc8fcSmrgAUTOHEADER
71055acc8fcSmrgAUTOMAKE
71155acc8fcSmrgAUTOCONF
71255acc8fcSmrgACLOCAL
71355acc8fcSmrgVERSION
71455acc8fcSmrgPACKAGE
71555acc8fcSmrgCYGPATH_W
71655acc8fcSmrgam__isrc
71755acc8fcSmrgINSTALL_DATA
71855acc8fcSmrgINSTALL_SCRIPT
71955acc8fcSmrgINSTALL_PROGRAM
72055acc8fcSmrgtarget_alias
72155acc8fcSmrghost_alias
72255acc8fcSmrgbuild_alias
72355acc8fcSmrgLIBS
72455acc8fcSmrgECHO_T
72555acc8fcSmrgECHO_N
72655acc8fcSmrgECHO_C
72755acc8fcSmrgDEFS
72855acc8fcSmrgmandir
72955acc8fcSmrglocaledir
73055acc8fcSmrglibdir
73155acc8fcSmrgpsdir
73255acc8fcSmrgpdfdir
73355acc8fcSmrgdvidir
73455acc8fcSmrghtmldir
73555acc8fcSmrginfodir
73655acc8fcSmrgdocdir
73755acc8fcSmrgoldincludedir
73855acc8fcSmrgincludedir
73955acc8fcSmrglocalstatedir
74055acc8fcSmrgsharedstatedir
74155acc8fcSmrgsysconfdir
74255acc8fcSmrgdatadir
74355acc8fcSmrgdatarootdir
74455acc8fcSmrglibexecdir
74555acc8fcSmrgsbindir
74655acc8fcSmrgbindir
74755acc8fcSmrgprogram_transform_name
74855acc8fcSmrgprefix
74955acc8fcSmrgexec_prefix
75055acc8fcSmrgPACKAGE_URL
75155acc8fcSmrgPACKAGE_BUGREPORT
75255acc8fcSmrgPACKAGE_STRING
75355acc8fcSmrgPACKAGE_VERSION
75455acc8fcSmrgPACKAGE_TARNAME
75555acc8fcSmrgPACKAGE_NAME
75655acc8fcSmrgPATH_SEPARATOR
75755acc8fcSmrgSHELL'
75855acc8fcSmrgac_subst_files=''
75955acc8fcSmrgac_user_opts='
76055acc8fcSmrgenable_option_checking
76155acc8fcSmrgenable_shared
76255acc8fcSmrgenable_static
76355acc8fcSmrgwith_pic
76455acc8fcSmrgenable_fast_install
76548c85eb7Smrgenable_dependency_tracking
76655acc8fcSmrgwith_gnu_ld
76748c85eb7Smrgwith_sysroot
76855acc8fcSmrgenable_libtool_lock
76948c85eb7Smrgenable_selective_werror
77048c85eb7Smrgenable_strict_compilation
77148c85eb7Smrgenable_silent_rules
77255acc8fcSmrgwith_fontrootdir
77355acc8fcSmrgwith_encodingsdir
77455acc8fcSmrgwith_lint
77555acc8fcSmrg'
77655acc8fcSmrg      ac_precious_vars='build_alias
77755acc8fcSmrghost_alias
77855acc8fcSmrgtarget_alias
77955acc8fcSmrgCC
78055acc8fcSmrgCFLAGS
78155acc8fcSmrgLDFLAGS
78255acc8fcSmrgLIBS
78355acc8fcSmrgCPPFLAGS
78455acc8fcSmrgCPP
78555acc8fcSmrgPKG_CONFIG
78655acc8fcSmrgFONTENC_CFLAGS
78755acc8fcSmrgFONTENC_LIBS
78855acc8fcSmrgLINT
78955acc8fcSmrgLINT_FLAGS'
79055acc8fcSmrg
79155acc8fcSmrg
79255acc8fcSmrg# Initialize some variables set by options.
79355acc8fcSmrgac_init_help=
79455acc8fcSmrgac_init_version=false
79555acc8fcSmrgac_unrecognized_opts=
79655acc8fcSmrgac_unrecognized_sep=
79755acc8fcSmrg# The variables have the same names as the options, with
79855acc8fcSmrg# dashes changed to underlines.
79955acc8fcSmrgcache_file=/dev/null
80055acc8fcSmrgexec_prefix=NONE
80155acc8fcSmrgno_create=
80255acc8fcSmrgno_recursion=
80355acc8fcSmrgprefix=NONE
80455acc8fcSmrgprogram_prefix=NONE
80555acc8fcSmrgprogram_suffix=NONE
80655acc8fcSmrgprogram_transform_name=s,x,x,
80755acc8fcSmrgsilent=
80855acc8fcSmrgsite=
80955acc8fcSmrgsrcdir=
81055acc8fcSmrgverbose=
81155acc8fcSmrgx_includes=NONE
81255acc8fcSmrgx_libraries=NONE
81355acc8fcSmrg
81455acc8fcSmrg# Installation directory options.
81555acc8fcSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
81655acc8fcSmrg# and all the variables that are supposed to be based on exec_prefix
81755acc8fcSmrg# by default will actually change.
81855acc8fcSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
81955acc8fcSmrg# (The list follows the same order as the GNU Coding Standards.)
82055acc8fcSmrgbindir='${exec_prefix}/bin'
82155acc8fcSmrgsbindir='${exec_prefix}/sbin'
82255acc8fcSmrglibexecdir='${exec_prefix}/libexec'
82355acc8fcSmrgdatarootdir='${prefix}/share'
82455acc8fcSmrgdatadir='${datarootdir}'
82555acc8fcSmrgsysconfdir='${prefix}/etc'
82655acc8fcSmrgsharedstatedir='${prefix}/com'
82755acc8fcSmrglocalstatedir='${prefix}/var'
82855acc8fcSmrgincludedir='${prefix}/include'
82955acc8fcSmrgoldincludedir='/usr/include'
83055acc8fcSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
83155acc8fcSmrginfodir='${datarootdir}/info'
83255acc8fcSmrghtmldir='${docdir}'
83355acc8fcSmrgdvidir='${docdir}'
83455acc8fcSmrgpdfdir='${docdir}'
83555acc8fcSmrgpsdir='${docdir}'
83655acc8fcSmrglibdir='${exec_prefix}/lib'
83755acc8fcSmrglocaledir='${datarootdir}/locale'
83855acc8fcSmrgmandir='${datarootdir}/man'
83955acc8fcSmrg
84055acc8fcSmrgac_prev=
84155acc8fcSmrgac_dashdash=
84255acc8fcSmrgfor ac_option
84355acc8fcSmrgdo
84455acc8fcSmrg  # If the previous option needs an argument, assign it.
84555acc8fcSmrg  if test -n "$ac_prev"; then
84655acc8fcSmrg    eval $ac_prev=\$ac_option
84755acc8fcSmrg    ac_prev=
84855acc8fcSmrg    continue
84955acc8fcSmrg  fi
85055acc8fcSmrg
85155acc8fcSmrg  case $ac_option in
85255acc8fcSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
85355acc8fcSmrg  *=)   ac_optarg= ;;
85455acc8fcSmrg  *)    ac_optarg=yes ;;
85555acc8fcSmrg  esac
85655acc8fcSmrg
85755acc8fcSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
85855acc8fcSmrg
85955acc8fcSmrg  case $ac_dashdash$ac_option in
86055acc8fcSmrg  --)
86155acc8fcSmrg    ac_dashdash=yes ;;
86255acc8fcSmrg
86355acc8fcSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
86455acc8fcSmrg    ac_prev=bindir ;;
86555acc8fcSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86655acc8fcSmrg    bindir=$ac_optarg ;;
86755acc8fcSmrg
86855acc8fcSmrg  -build | --build | --buil | --bui | --bu)
86955acc8fcSmrg    ac_prev=build_alias ;;
87055acc8fcSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87155acc8fcSmrg    build_alias=$ac_optarg ;;
87255acc8fcSmrg
87355acc8fcSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
87455acc8fcSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
87555acc8fcSmrg    ac_prev=cache_file ;;
87655acc8fcSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
87755acc8fcSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
87855acc8fcSmrg    cache_file=$ac_optarg ;;
87955acc8fcSmrg
88055acc8fcSmrg  --config-cache | -C)
88155acc8fcSmrg    cache_file=config.cache ;;
88255acc8fcSmrg
88355acc8fcSmrg  -datadir | --datadir | --datadi | --datad)
88455acc8fcSmrg    ac_prev=datadir ;;
88555acc8fcSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
88655acc8fcSmrg    datadir=$ac_optarg ;;
88755acc8fcSmrg
88855acc8fcSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
88955acc8fcSmrg  | --dataroo | --dataro | --datar)
89055acc8fcSmrg    ac_prev=datarootdir ;;
89155acc8fcSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
89255acc8fcSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
89355acc8fcSmrg    datarootdir=$ac_optarg ;;
89455acc8fcSmrg
89555acc8fcSmrg  -disable-* | --disable-*)
89655acc8fcSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
89755acc8fcSmrg    # Reject names that are not valid shell variable names.
89855acc8fcSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
89955acc8fcSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
90055acc8fcSmrg    ac_useropt_orig=$ac_useropt
90155acc8fcSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
90255acc8fcSmrg    case $ac_user_opts in
90355acc8fcSmrg      *"
90455acc8fcSmrg"enable_$ac_useropt"
90555acc8fcSmrg"*) ;;
90655acc8fcSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
90755acc8fcSmrg	 ac_unrecognized_sep=', ';;
90855acc8fcSmrg    esac
90955acc8fcSmrg    eval enable_$ac_useropt=no ;;
91055acc8fcSmrg
91155acc8fcSmrg  -docdir | --docdir | --docdi | --doc | --do)
91255acc8fcSmrg    ac_prev=docdir ;;
91355acc8fcSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
91455acc8fcSmrg    docdir=$ac_optarg ;;
91555acc8fcSmrg
91655acc8fcSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
91755acc8fcSmrg    ac_prev=dvidir ;;
91855acc8fcSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
91955acc8fcSmrg    dvidir=$ac_optarg ;;
92055acc8fcSmrg
92155acc8fcSmrg  -enable-* | --enable-*)
92255acc8fcSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
92355acc8fcSmrg    # Reject names that are not valid shell variable names.
92455acc8fcSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
92555acc8fcSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
92655acc8fcSmrg    ac_useropt_orig=$ac_useropt
92755acc8fcSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
92855acc8fcSmrg    case $ac_user_opts in
92955acc8fcSmrg      *"
93055acc8fcSmrg"enable_$ac_useropt"
93155acc8fcSmrg"*) ;;
93255acc8fcSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
93355acc8fcSmrg	 ac_unrecognized_sep=', ';;
93455acc8fcSmrg    esac
93555acc8fcSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
93655acc8fcSmrg
93755acc8fcSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
93855acc8fcSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
93955acc8fcSmrg  | --exec | --exe | --ex)
94055acc8fcSmrg    ac_prev=exec_prefix ;;
94155acc8fcSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
94255acc8fcSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
94355acc8fcSmrg  | --exec=* | --exe=* | --ex=*)
94455acc8fcSmrg    exec_prefix=$ac_optarg ;;
94555acc8fcSmrg
94655acc8fcSmrg  -gas | --gas | --ga | --g)
94755acc8fcSmrg    # Obsolete; use --with-gas.
94855acc8fcSmrg    with_gas=yes ;;
94955acc8fcSmrg
95055acc8fcSmrg  -help | --help | --hel | --he | -h)
95155acc8fcSmrg    ac_init_help=long ;;
95255acc8fcSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
95355acc8fcSmrg    ac_init_help=recursive ;;
95455acc8fcSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
95555acc8fcSmrg    ac_init_help=short ;;
95655acc8fcSmrg
95755acc8fcSmrg  -host | --host | --hos | --ho)
95855acc8fcSmrg    ac_prev=host_alias ;;
95955acc8fcSmrg  -host=* | --host=* | --hos=* | --ho=*)
96055acc8fcSmrg    host_alias=$ac_optarg ;;
96155acc8fcSmrg
96255acc8fcSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
96355acc8fcSmrg    ac_prev=htmldir ;;
96455acc8fcSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
96555acc8fcSmrg  | --ht=*)
96655acc8fcSmrg    htmldir=$ac_optarg ;;
96755acc8fcSmrg
96855acc8fcSmrg  -includedir | --includedir | --includedi | --included | --include \
96955acc8fcSmrg  | --includ | --inclu | --incl | --inc)
97055acc8fcSmrg    ac_prev=includedir ;;
97155acc8fcSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
97255acc8fcSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
97355acc8fcSmrg    includedir=$ac_optarg ;;
97455acc8fcSmrg
97555acc8fcSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
97655acc8fcSmrg    ac_prev=infodir ;;
97755acc8fcSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
97855acc8fcSmrg    infodir=$ac_optarg ;;
97955acc8fcSmrg
98055acc8fcSmrg  -libdir | --libdir | --libdi | --libd)
98155acc8fcSmrg    ac_prev=libdir ;;
98255acc8fcSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
98355acc8fcSmrg    libdir=$ac_optarg ;;
98455acc8fcSmrg
98555acc8fcSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
98655acc8fcSmrg  | --libexe | --libex | --libe)
98755acc8fcSmrg    ac_prev=libexecdir ;;
98855acc8fcSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
98955acc8fcSmrg  | --libexe=* | --libex=* | --libe=*)
99055acc8fcSmrg    libexecdir=$ac_optarg ;;
99155acc8fcSmrg
99255acc8fcSmrg  -localedir | --localedir | --localedi | --localed | --locale)
99355acc8fcSmrg    ac_prev=localedir ;;
99455acc8fcSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
99555acc8fcSmrg    localedir=$ac_optarg ;;
99655acc8fcSmrg
99755acc8fcSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
99855acc8fcSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
99955acc8fcSmrg    ac_prev=localstatedir ;;
100055acc8fcSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
100155acc8fcSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
100255acc8fcSmrg    localstatedir=$ac_optarg ;;
100355acc8fcSmrg
100455acc8fcSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
100555acc8fcSmrg    ac_prev=mandir ;;
100655acc8fcSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
100755acc8fcSmrg    mandir=$ac_optarg ;;
100855acc8fcSmrg
100955acc8fcSmrg  -nfp | --nfp | --nf)
101055acc8fcSmrg    # Obsolete; use --without-fp.
101155acc8fcSmrg    with_fp=no ;;
101255acc8fcSmrg
101355acc8fcSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
101455acc8fcSmrg  | --no-cr | --no-c | -n)
101555acc8fcSmrg    no_create=yes ;;
101655acc8fcSmrg
101755acc8fcSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
101855acc8fcSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
101955acc8fcSmrg    no_recursion=yes ;;
102055acc8fcSmrg
102155acc8fcSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
102255acc8fcSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
102355acc8fcSmrg  | --oldin | --oldi | --old | --ol | --o)
102455acc8fcSmrg    ac_prev=oldincludedir ;;
102555acc8fcSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
102655acc8fcSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
102755acc8fcSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
102855acc8fcSmrg    oldincludedir=$ac_optarg ;;
102955acc8fcSmrg
103055acc8fcSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
103155acc8fcSmrg    ac_prev=prefix ;;
103255acc8fcSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
103355acc8fcSmrg    prefix=$ac_optarg ;;
103455acc8fcSmrg
103555acc8fcSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
103655acc8fcSmrg  | --program-pre | --program-pr | --program-p)
103755acc8fcSmrg    ac_prev=program_prefix ;;
103855acc8fcSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
103955acc8fcSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
104055acc8fcSmrg    program_prefix=$ac_optarg ;;
104155acc8fcSmrg
104255acc8fcSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
104355acc8fcSmrg  | --program-suf | --program-su | --program-s)
104455acc8fcSmrg    ac_prev=program_suffix ;;
104555acc8fcSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
104655acc8fcSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
104755acc8fcSmrg    program_suffix=$ac_optarg ;;
104855acc8fcSmrg
104955acc8fcSmrg  -program-transform-name | --program-transform-name \
105055acc8fcSmrg  | --program-transform-nam | --program-transform-na \
105155acc8fcSmrg  | --program-transform-n | --program-transform- \
105255acc8fcSmrg  | --program-transform | --program-transfor \
105355acc8fcSmrg  | --program-transfo | --program-transf \
105455acc8fcSmrg  | --program-trans | --program-tran \
105555acc8fcSmrg  | --progr-tra | --program-tr | --program-t)
105655acc8fcSmrg    ac_prev=program_transform_name ;;
105755acc8fcSmrg  -program-transform-name=* | --program-transform-name=* \
105855acc8fcSmrg  | --program-transform-nam=* | --program-transform-na=* \
105955acc8fcSmrg  | --program-transform-n=* | --program-transform-=* \
106055acc8fcSmrg  | --program-transform=* | --program-transfor=* \
106155acc8fcSmrg  | --program-transfo=* | --program-transf=* \
106255acc8fcSmrg  | --program-trans=* | --program-tran=* \
106355acc8fcSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
106455acc8fcSmrg    program_transform_name=$ac_optarg ;;
106555acc8fcSmrg
106655acc8fcSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
106755acc8fcSmrg    ac_prev=pdfdir ;;
106855acc8fcSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
106955acc8fcSmrg    pdfdir=$ac_optarg ;;
107055acc8fcSmrg
107155acc8fcSmrg  -psdir | --psdir | --psdi | --psd | --ps)
107255acc8fcSmrg    ac_prev=psdir ;;
107355acc8fcSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
107455acc8fcSmrg    psdir=$ac_optarg ;;
107555acc8fcSmrg
107655acc8fcSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
107755acc8fcSmrg  | -silent | --silent | --silen | --sile | --sil)
107855acc8fcSmrg    silent=yes ;;
107955acc8fcSmrg
108055acc8fcSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
108155acc8fcSmrg    ac_prev=sbindir ;;
108255acc8fcSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
108355acc8fcSmrg  | --sbi=* | --sb=*)
108455acc8fcSmrg    sbindir=$ac_optarg ;;
108555acc8fcSmrg
108655acc8fcSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
108755acc8fcSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
108855acc8fcSmrg  | --sharedst | --shareds | --shared | --share | --shar \
108955acc8fcSmrg  | --sha | --sh)
109055acc8fcSmrg    ac_prev=sharedstatedir ;;
109155acc8fcSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
109255acc8fcSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
109355acc8fcSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
109455acc8fcSmrg  | --sha=* | --sh=*)
109555acc8fcSmrg    sharedstatedir=$ac_optarg ;;
109655acc8fcSmrg
109755acc8fcSmrg  -site | --site | --sit)
109855acc8fcSmrg    ac_prev=site ;;
109955acc8fcSmrg  -site=* | --site=* | --sit=*)
110055acc8fcSmrg    site=$ac_optarg ;;
110155acc8fcSmrg
110255acc8fcSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
110355acc8fcSmrg    ac_prev=srcdir ;;
110455acc8fcSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
110555acc8fcSmrg    srcdir=$ac_optarg ;;
110655acc8fcSmrg
110755acc8fcSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
110855acc8fcSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
110955acc8fcSmrg    ac_prev=sysconfdir ;;
111055acc8fcSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
111155acc8fcSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
111255acc8fcSmrg    sysconfdir=$ac_optarg ;;
111355acc8fcSmrg
111455acc8fcSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
111555acc8fcSmrg    ac_prev=target_alias ;;
111655acc8fcSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
111755acc8fcSmrg    target_alias=$ac_optarg ;;
111855acc8fcSmrg
111955acc8fcSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
112055acc8fcSmrg    verbose=yes ;;
112155acc8fcSmrg
112255acc8fcSmrg  -version | --version | --versio | --versi | --vers | -V)
112355acc8fcSmrg    ac_init_version=: ;;
112455acc8fcSmrg
112555acc8fcSmrg  -with-* | --with-*)
112655acc8fcSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
112755acc8fcSmrg    # Reject names that are not valid shell variable names.
112855acc8fcSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
112955acc8fcSmrg      as_fn_error $? "invalid package name: $ac_useropt"
113055acc8fcSmrg    ac_useropt_orig=$ac_useropt
113155acc8fcSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
113255acc8fcSmrg    case $ac_user_opts in
113355acc8fcSmrg      *"
113455acc8fcSmrg"with_$ac_useropt"
113555acc8fcSmrg"*) ;;
113655acc8fcSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
113755acc8fcSmrg	 ac_unrecognized_sep=', ';;
113855acc8fcSmrg    esac
113955acc8fcSmrg    eval with_$ac_useropt=\$ac_optarg ;;
114055acc8fcSmrg
114155acc8fcSmrg  -without-* | --without-*)
114255acc8fcSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
114355acc8fcSmrg    # Reject names that are not valid shell variable names.
114455acc8fcSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
114555acc8fcSmrg      as_fn_error $? "invalid package name: $ac_useropt"
114655acc8fcSmrg    ac_useropt_orig=$ac_useropt
114755acc8fcSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
114855acc8fcSmrg    case $ac_user_opts in
114955acc8fcSmrg      *"
115055acc8fcSmrg"with_$ac_useropt"
115155acc8fcSmrg"*) ;;
115255acc8fcSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
115355acc8fcSmrg	 ac_unrecognized_sep=', ';;
115455acc8fcSmrg    esac
115555acc8fcSmrg    eval with_$ac_useropt=no ;;
115655acc8fcSmrg
115755acc8fcSmrg  --x)
115855acc8fcSmrg    # Obsolete; use --with-x.
115955acc8fcSmrg    with_x=yes ;;
116055acc8fcSmrg
116155acc8fcSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
116255acc8fcSmrg  | --x-incl | --x-inc | --x-in | --x-i)
116355acc8fcSmrg    ac_prev=x_includes ;;
116455acc8fcSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
116555acc8fcSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
116655acc8fcSmrg    x_includes=$ac_optarg ;;
116755acc8fcSmrg
116855acc8fcSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
116955acc8fcSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
117055acc8fcSmrg    ac_prev=x_libraries ;;
117155acc8fcSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
117255acc8fcSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
117355acc8fcSmrg    x_libraries=$ac_optarg ;;
117455acc8fcSmrg
117555acc8fcSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
117655acc8fcSmrgTry \`$0 --help' for more information"
117755acc8fcSmrg    ;;
117855acc8fcSmrg
117955acc8fcSmrg  *=*)
118055acc8fcSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
118155acc8fcSmrg    # Reject names that are not valid shell variable names.
118255acc8fcSmrg    case $ac_envvar in #(
118355acc8fcSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
118455acc8fcSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
118555acc8fcSmrg    esac
118655acc8fcSmrg    eval $ac_envvar=\$ac_optarg
118755acc8fcSmrg    export $ac_envvar ;;
118855acc8fcSmrg
118955acc8fcSmrg  *)
119055acc8fcSmrg    # FIXME: should be removed in autoconf 3.0.
119155acc8fcSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
119255acc8fcSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
119355acc8fcSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
119455acc8fcSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
119555acc8fcSmrg    ;;
119655acc8fcSmrg
119755acc8fcSmrg  esac
119855acc8fcSmrgdone
119955acc8fcSmrg
120055acc8fcSmrgif test -n "$ac_prev"; then
120155acc8fcSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
120255acc8fcSmrg  as_fn_error $? "missing argument to $ac_option"
120355acc8fcSmrgfi
120455acc8fcSmrg
120555acc8fcSmrgif test -n "$ac_unrecognized_opts"; then
120655acc8fcSmrg  case $enable_option_checking in
120755acc8fcSmrg    no) ;;
120855acc8fcSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
120955acc8fcSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
121055acc8fcSmrg  esac
121155acc8fcSmrgfi
121255acc8fcSmrg
121355acc8fcSmrg# Check all directory arguments for consistency.
121455acc8fcSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
121555acc8fcSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
121655acc8fcSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
121755acc8fcSmrg		libdir localedir mandir
121855acc8fcSmrgdo
121955acc8fcSmrg  eval ac_val=\$$ac_var
122055acc8fcSmrg  # Remove trailing slashes.
122155acc8fcSmrg  case $ac_val in
122255acc8fcSmrg    */ )
122355acc8fcSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
122455acc8fcSmrg      eval $ac_var=\$ac_val;;
122555acc8fcSmrg  esac
122655acc8fcSmrg  # Be sure to have absolute directory names.
122755acc8fcSmrg  case $ac_val in
122855acc8fcSmrg    [\\/$]* | ?:[\\/]* )  continue;;
122955acc8fcSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
123055acc8fcSmrg  esac
123155acc8fcSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
123255acc8fcSmrgdone
123355acc8fcSmrg
123455acc8fcSmrg# There might be people who depend on the old broken behavior: `$host'
123555acc8fcSmrg# used to hold the argument of --host etc.
123655acc8fcSmrg# FIXME: To remove some day.
123755acc8fcSmrgbuild=$build_alias
123855acc8fcSmrghost=$host_alias
123955acc8fcSmrgtarget=$target_alias
124055acc8fcSmrg
124155acc8fcSmrg# FIXME: To remove some day.
124255acc8fcSmrgif test "x$host_alias" != x; then
124355acc8fcSmrg  if test "x$build_alias" = x; then
124455acc8fcSmrg    cross_compiling=maybe
124555acc8fcSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
124655acc8fcSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
124755acc8fcSmrg  elif test "x$build_alias" != "x$host_alias"; then
124855acc8fcSmrg    cross_compiling=yes
124955acc8fcSmrg  fi
125055acc8fcSmrgfi
125155acc8fcSmrg
125255acc8fcSmrgac_tool_prefix=
125355acc8fcSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
125455acc8fcSmrg
125555acc8fcSmrgtest "$silent" = yes && exec 6>/dev/null
125655acc8fcSmrg
125755acc8fcSmrg
125855acc8fcSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
125955acc8fcSmrgac_ls_di=`ls -di .` &&
126055acc8fcSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
126155acc8fcSmrg  as_fn_error $? "working directory cannot be determined"
126255acc8fcSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
126355acc8fcSmrg  as_fn_error $? "pwd does not report name of working directory"
126455acc8fcSmrg
126555acc8fcSmrg
126655acc8fcSmrg# Find the source files, if location was not specified.
126755acc8fcSmrgif test -z "$srcdir"; then
126855acc8fcSmrg  ac_srcdir_defaulted=yes
126955acc8fcSmrg  # Try the directory containing this script, then the parent directory.
127055acc8fcSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
127155acc8fcSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
127255acc8fcSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
127355acc8fcSmrg	 X"$as_myself" : 'X\(//\)$' \| \
127455acc8fcSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
127555acc8fcSmrg$as_echo X"$as_myself" |
127655acc8fcSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
127755acc8fcSmrg	    s//\1/
127855acc8fcSmrg	    q
127955acc8fcSmrg	  }
128055acc8fcSmrg	  /^X\(\/\/\)[^/].*/{
128155acc8fcSmrg	    s//\1/
128255acc8fcSmrg	    q
128355acc8fcSmrg	  }
128455acc8fcSmrg	  /^X\(\/\/\)$/{
128555acc8fcSmrg	    s//\1/
128655acc8fcSmrg	    q
128755acc8fcSmrg	  }
128855acc8fcSmrg	  /^X\(\/\).*/{
128955acc8fcSmrg	    s//\1/
129055acc8fcSmrg	    q
129155acc8fcSmrg	  }
129255acc8fcSmrg	  s/.*/./; q'`
129355acc8fcSmrg  srcdir=$ac_confdir
129455acc8fcSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
129555acc8fcSmrg    srcdir=..
129655acc8fcSmrg  fi
129755acc8fcSmrgelse
129855acc8fcSmrg  ac_srcdir_defaulted=no
129955acc8fcSmrgfi
130055acc8fcSmrgif test ! -r "$srcdir/$ac_unique_file"; then
130155acc8fcSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
130255acc8fcSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
130355acc8fcSmrgfi
130455acc8fcSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
130555acc8fcSmrgac_abs_confdir=`(
130655acc8fcSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
130755acc8fcSmrg	pwd)`
130855acc8fcSmrg# When building in place, set srcdir=.
130955acc8fcSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
131055acc8fcSmrg  srcdir=.
131155acc8fcSmrgfi
131255acc8fcSmrg# Remove unnecessary trailing slashes from srcdir.
131355acc8fcSmrg# Double slashes in file names in object file debugging info
131455acc8fcSmrg# mess up M-x gdb in Emacs.
131555acc8fcSmrgcase $srcdir in
131655acc8fcSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
131755acc8fcSmrgesac
131855acc8fcSmrgfor ac_var in $ac_precious_vars; do
131955acc8fcSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
132055acc8fcSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
132155acc8fcSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
132255acc8fcSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
132355acc8fcSmrgdone
132455acc8fcSmrg
132555acc8fcSmrg#
132655acc8fcSmrg# Report the --help message.
132755acc8fcSmrg#
132855acc8fcSmrgif test "$ac_init_help" = "long"; then
132955acc8fcSmrg  # Omit some internal or obsolete options to make the list less imposing.
133055acc8fcSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
133155acc8fcSmrg  cat <<_ACEOF
133248c85eb7Smrg\`configure' configures libfontenc 1.1.2 to adapt to many kinds of systems.
133355acc8fcSmrg
133455acc8fcSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
133555acc8fcSmrg
133655acc8fcSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
133755acc8fcSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
133855acc8fcSmrg
133955acc8fcSmrgDefaults for the options are specified in brackets.
134055acc8fcSmrg
134155acc8fcSmrgConfiguration:
134255acc8fcSmrg  -h, --help              display this help and exit
134355acc8fcSmrg      --help=short        display options specific to this package
134455acc8fcSmrg      --help=recursive    display the short help of all the included packages
134555acc8fcSmrg  -V, --version           display version information and exit
134655acc8fcSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
134755acc8fcSmrg      --cache-file=FILE   cache test results in FILE [disabled]
134855acc8fcSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
134955acc8fcSmrg  -n, --no-create         do not create output files
135055acc8fcSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
135155acc8fcSmrg
135255acc8fcSmrgInstallation directories:
135355acc8fcSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
135455acc8fcSmrg                          [$ac_default_prefix]
135555acc8fcSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
135655acc8fcSmrg                          [PREFIX]
135755acc8fcSmrg
135855acc8fcSmrgBy default, \`make install' will install all the files in
135955acc8fcSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
136055acc8fcSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
136155acc8fcSmrgfor instance \`--prefix=\$HOME'.
136255acc8fcSmrg
136355acc8fcSmrgFor better control, use the options below.
136455acc8fcSmrg
136555acc8fcSmrgFine tuning of the installation directories:
136655acc8fcSmrg  --bindir=DIR            user executables [EPREFIX/bin]
136755acc8fcSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
136855acc8fcSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
136955acc8fcSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
137055acc8fcSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
137155acc8fcSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
137255acc8fcSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
137355acc8fcSmrg  --includedir=DIR        C header files [PREFIX/include]
137455acc8fcSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
137555acc8fcSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
137655acc8fcSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
137755acc8fcSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
137855acc8fcSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
137955acc8fcSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
138055acc8fcSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/libfontenc]
138155acc8fcSmrg  --htmldir=DIR           html documentation [DOCDIR]
138255acc8fcSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
138355acc8fcSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
138455acc8fcSmrg  --psdir=DIR             ps documentation [DOCDIR]
138555acc8fcSmrg_ACEOF
138655acc8fcSmrg
138755acc8fcSmrg  cat <<\_ACEOF
138855acc8fcSmrg
138955acc8fcSmrgProgram names:
139055acc8fcSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
139155acc8fcSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
139255acc8fcSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
139355acc8fcSmrg
139455acc8fcSmrgSystem types:
139555acc8fcSmrg  --build=BUILD     configure for building on BUILD [guessed]
139655acc8fcSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
139755acc8fcSmrg_ACEOF
139855acc8fcSmrgfi
139955acc8fcSmrg
140055acc8fcSmrgif test -n "$ac_init_help"; then
140155acc8fcSmrg  case $ac_init_help in
140248c85eb7Smrg     short | recursive ) echo "Configuration of libfontenc 1.1.2:";;
140355acc8fcSmrg   esac
140455acc8fcSmrg  cat <<\_ACEOF
140555acc8fcSmrg
140655acc8fcSmrgOptional Features:
140755acc8fcSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
140855acc8fcSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
140955acc8fcSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
141048c85eb7Smrg  --enable-shared[=PKGS]  build shared libraries [default=yes]
141148c85eb7Smrg  --enable-static[=PKGS]  build static libraries [default=yes]
141248c85eb7Smrg  --enable-fast-install[=PKGS]
141348c85eb7Smrg                          optimize for fast installation [default=yes]
141455acc8fcSmrg  --disable-dependency-tracking  speeds up one-time build
141555acc8fcSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
141648c85eb7Smrg  --disable-libtool-lock  avoid locking (might break parallel builds)
141748c85eb7Smrg  --disable-selective-werror
141848c85eb7Smrg                          Turn off selective compiler errors. (default:
141948c85eb7Smrg                          enabled)
142055acc8fcSmrg  --enable-strict-compilation
142155acc8fcSmrg                          Enable all warnings from compiler and make them
142255acc8fcSmrg                          errors (default: disabled)
142355acc8fcSmrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
142455acc8fcSmrg  --disable-silent-rules         verbose build output (undo: `make V=0')
142555acc8fcSmrg
142655acc8fcSmrgOptional Packages:
142755acc8fcSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
142855acc8fcSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
142948c85eb7Smrg  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
143055acc8fcSmrg                          both]
143155acc8fcSmrg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
143248c85eb7Smrg  --with-sysroot=DIR Search for dependent libraries within DIR
143348c85eb7Smrg                        (or the compiler's sysroot if not specified).
143455acc8fcSmrg  --with-fontrootdir=DIR  Path to root directory for font files
143555acc8fcSmrg  --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings]
143655acc8fcSmrg  --with-lint             Use a lint-style source code checker (default:
143755acc8fcSmrg                          disabled)
143855acc8fcSmrg
143955acc8fcSmrgSome influential environment variables:
144055acc8fcSmrg  CC          C compiler command
144155acc8fcSmrg  CFLAGS      C compiler flags
144255acc8fcSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
144355acc8fcSmrg              nonstandard directory <lib dir>
144455acc8fcSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
144555acc8fcSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
144655acc8fcSmrg              you have headers in a nonstandard directory <include dir>
144755acc8fcSmrg  CPP         C preprocessor
144855acc8fcSmrg  PKG_CONFIG  path to pkg-config utility
144955acc8fcSmrg  FONTENC_CFLAGS
145055acc8fcSmrg              C compiler flags for FONTENC, overriding pkg-config
145155acc8fcSmrg  FONTENC_LIBS
145255acc8fcSmrg              linker flags for FONTENC, overriding pkg-config
145355acc8fcSmrg  LINT        Path to a lint-style command
145455acc8fcSmrg  LINT_FLAGS  Flags for the lint-style command
145555acc8fcSmrg
145655acc8fcSmrgUse these variables to override the choices made by `configure' or to help
145755acc8fcSmrgit to find libraries and programs with nonstandard names/locations.
145855acc8fcSmrg
145955acc8fcSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
146055acc8fcSmrg_ACEOF
146155acc8fcSmrgac_status=$?
146255acc8fcSmrgfi
146355acc8fcSmrg
146455acc8fcSmrgif test "$ac_init_help" = "recursive"; then
146555acc8fcSmrg  # If there are subdirs, report their specific --help.
146655acc8fcSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
146755acc8fcSmrg    test -d "$ac_dir" ||
146855acc8fcSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
146955acc8fcSmrg      continue
147055acc8fcSmrg    ac_builddir=.
147155acc8fcSmrg
147255acc8fcSmrgcase "$ac_dir" in
147355acc8fcSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
147455acc8fcSmrg*)
147555acc8fcSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
147655acc8fcSmrg  # A ".." for each directory in $ac_dir_suffix.
147755acc8fcSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
147855acc8fcSmrg  case $ac_top_builddir_sub in
147955acc8fcSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
148055acc8fcSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
148155acc8fcSmrg  esac ;;
148255acc8fcSmrgesac
148355acc8fcSmrgac_abs_top_builddir=$ac_pwd
148455acc8fcSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
148555acc8fcSmrg# for backward compatibility:
148655acc8fcSmrgac_top_builddir=$ac_top_build_prefix
148755acc8fcSmrg
148855acc8fcSmrgcase $srcdir in
148955acc8fcSmrg  .)  # We are building in place.
149055acc8fcSmrg    ac_srcdir=.
149155acc8fcSmrg    ac_top_srcdir=$ac_top_builddir_sub
149255acc8fcSmrg    ac_abs_top_srcdir=$ac_pwd ;;
149355acc8fcSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
149455acc8fcSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
149555acc8fcSmrg    ac_top_srcdir=$srcdir
149655acc8fcSmrg    ac_abs_top_srcdir=$srcdir ;;
149755acc8fcSmrg  *) # Relative name.
149855acc8fcSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
149955acc8fcSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
150055acc8fcSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
150155acc8fcSmrgesac
150255acc8fcSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
150355acc8fcSmrg
150455acc8fcSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
150555acc8fcSmrg    # Check for guested configure.
150655acc8fcSmrg    if test -f "$ac_srcdir/configure.gnu"; then
150755acc8fcSmrg      echo &&
150855acc8fcSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
150955acc8fcSmrg    elif test -f "$ac_srcdir/configure"; then
151055acc8fcSmrg      echo &&
151155acc8fcSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
151255acc8fcSmrg    else
151355acc8fcSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
151455acc8fcSmrg    fi || ac_status=$?
151555acc8fcSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
151655acc8fcSmrg  done
151755acc8fcSmrgfi
151855acc8fcSmrg
151955acc8fcSmrgtest -n "$ac_init_help" && exit $ac_status
152055acc8fcSmrgif $ac_init_version; then
152155acc8fcSmrg  cat <<\_ACEOF
152248c85eb7Smrglibfontenc configure 1.1.2
152355acc8fcSmrggenerated by GNU Autoconf 2.68
152455acc8fcSmrg
152555acc8fcSmrgCopyright (C) 2010 Free Software Foundation, Inc.
152655acc8fcSmrgThis configure script is free software; the Free Software Foundation
152755acc8fcSmrggives unlimited permission to copy, distribute and modify it.
152855acc8fcSmrg_ACEOF
152955acc8fcSmrg  exit
153055acc8fcSmrgfi
153155acc8fcSmrg
153255acc8fcSmrg## ------------------------ ##
153355acc8fcSmrg## Autoconf initialization. ##
153455acc8fcSmrg## ------------------------ ##
153555acc8fcSmrg
153655acc8fcSmrg# ac_fn_c_try_compile LINENO
153755acc8fcSmrg# --------------------------
153855acc8fcSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
153955acc8fcSmrgac_fn_c_try_compile ()
154055acc8fcSmrg{
154155acc8fcSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
154255acc8fcSmrg  rm -f conftest.$ac_objext
154355acc8fcSmrg  if { { ac_try="$ac_compile"
154455acc8fcSmrgcase "(($ac_try" in
154555acc8fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
154655acc8fcSmrg  *) ac_try_echo=$ac_try;;
154755acc8fcSmrgesac
154855acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
154955acc8fcSmrg$as_echo "$ac_try_echo"; } >&5
155055acc8fcSmrg  (eval "$ac_compile") 2>conftest.err
155155acc8fcSmrg  ac_status=$?
155255acc8fcSmrg  if test -s conftest.err; then
155355acc8fcSmrg    grep -v '^ *+' conftest.err >conftest.er1
155455acc8fcSmrg    cat conftest.er1 >&5
155555acc8fcSmrg    mv -f conftest.er1 conftest.err
155655acc8fcSmrg  fi
155755acc8fcSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
155855acc8fcSmrg  test $ac_status = 0; } && {
155955acc8fcSmrg	 test -z "$ac_c_werror_flag" ||
156055acc8fcSmrg	 test ! -s conftest.err
156155acc8fcSmrg       } && test -s conftest.$ac_objext; then :
156255acc8fcSmrg  ac_retval=0
156355acc8fcSmrgelse
156455acc8fcSmrg  $as_echo "$as_me: failed program was:" >&5
156555acc8fcSmrgsed 's/^/| /' conftest.$ac_ext >&5
156655acc8fcSmrg
156755acc8fcSmrg	ac_retval=1
156855acc8fcSmrgfi
156955acc8fcSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
157055acc8fcSmrg  as_fn_set_status $ac_retval
157155acc8fcSmrg
157255acc8fcSmrg} # ac_fn_c_try_compile
157355acc8fcSmrg
157448c85eb7Smrg# ac_fn_c_try_link LINENO
157548c85eb7Smrg# -----------------------
157648c85eb7Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
157748c85eb7Smrgac_fn_c_try_link ()
157855acc8fcSmrg{
157955acc8fcSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
158048c85eb7Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
158148c85eb7Smrg  if { { ac_try="$ac_link"
158248c85eb7Smrgcase "(($ac_try" in
158348c85eb7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
158448c85eb7Smrg  *) ac_try_echo=$ac_try;;
158548c85eb7Smrgesac
158648c85eb7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
158748c85eb7Smrg$as_echo "$ac_try_echo"; } >&5
158848c85eb7Smrg  (eval "$ac_link") 2>conftest.err
158948c85eb7Smrg  ac_status=$?
159048c85eb7Smrg  if test -s conftest.err; then
159148c85eb7Smrg    grep -v '^ *+' conftest.err >conftest.er1
159248c85eb7Smrg    cat conftest.er1 >&5
159348c85eb7Smrg    mv -f conftest.er1 conftest.err
159448c85eb7Smrg  fi
159548c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
159648c85eb7Smrg  test $ac_status = 0; } && {
159748c85eb7Smrg	 test -z "$ac_c_werror_flag" ||
159848c85eb7Smrg	 test ! -s conftest.err
159948c85eb7Smrg       } && test -s conftest$ac_exeext && {
160048c85eb7Smrg	 test "$cross_compiling" = yes ||
160148c85eb7Smrg	 $as_test_x conftest$ac_exeext
160248c85eb7Smrg       }; then :
160348c85eb7Smrg  ac_retval=0
160448c85eb7Smrgelse
160548c85eb7Smrg  $as_echo "$as_me: failed program was:" >&5
160648c85eb7Smrgsed 's/^/| /' conftest.$ac_ext >&5
160748c85eb7Smrg
160848c85eb7Smrg	ac_retval=1
160948c85eb7Smrgfi
161048c85eb7Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
161148c85eb7Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
161248c85eb7Smrg  # interfere with the next link command; also delete a directory that is
161348c85eb7Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
161448c85eb7Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
161548c85eb7Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
161648c85eb7Smrg  as_fn_set_status $ac_retval
161748c85eb7Smrg
161848c85eb7Smrg} # ac_fn_c_try_link
161948c85eb7Smrg
162048c85eb7Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
162148c85eb7Smrg# -------------------------------------------------------
162248c85eb7Smrg# Tests whether HEADER exists and can be compiled using the include files in
162348c85eb7Smrg# INCLUDES, setting the cache variable VAR accordingly.
162448c85eb7Smrgac_fn_c_check_header_compile ()
162548c85eb7Smrg{
162648c85eb7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
162748c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
162848c85eb7Smrg$as_echo_n "checking for $2... " >&6; }
162955acc8fcSmrgif eval \${$3+:} false; then :
163055acc8fcSmrg  $as_echo_n "(cached) " >&6
163155acc8fcSmrgelse
163255acc8fcSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
163355acc8fcSmrg/* end confdefs.h.  */
163455acc8fcSmrg$4
163548c85eb7Smrg#include <$2>
163655acc8fcSmrg_ACEOF
163755acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then :
163855acc8fcSmrg  eval "$3=yes"
163955acc8fcSmrgelse
164055acc8fcSmrg  eval "$3=no"
164155acc8fcSmrgfi
164255acc8fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
164355acc8fcSmrgfi
164455acc8fcSmrgeval ac_res=\$$3
164555acc8fcSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
164655acc8fcSmrg$as_echo "$ac_res" >&6; }
164755acc8fcSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
164855acc8fcSmrg
164948c85eb7Smrg} # ac_fn_c_check_header_compile
165055acc8fcSmrg
165155acc8fcSmrg# ac_fn_c_try_cpp LINENO
165255acc8fcSmrg# ----------------------
165355acc8fcSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
165455acc8fcSmrgac_fn_c_try_cpp ()
165555acc8fcSmrg{
165655acc8fcSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
165755acc8fcSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
165855acc8fcSmrgcase "(($ac_try" in
165955acc8fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
166055acc8fcSmrg  *) ac_try_echo=$ac_try;;
166155acc8fcSmrgesac
166255acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
166355acc8fcSmrg$as_echo "$ac_try_echo"; } >&5
166455acc8fcSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
166555acc8fcSmrg  ac_status=$?
166655acc8fcSmrg  if test -s conftest.err; then
166755acc8fcSmrg    grep -v '^ *+' conftest.err >conftest.er1
166855acc8fcSmrg    cat conftest.er1 >&5
166955acc8fcSmrg    mv -f conftest.er1 conftest.err
167055acc8fcSmrg  fi
167155acc8fcSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
167255acc8fcSmrg  test $ac_status = 0; } > conftest.i && {
167355acc8fcSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
167455acc8fcSmrg	 test ! -s conftest.err
167555acc8fcSmrg       }; then :
167655acc8fcSmrg  ac_retval=0
167755acc8fcSmrgelse
167855acc8fcSmrg  $as_echo "$as_me: failed program was:" >&5
167955acc8fcSmrgsed 's/^/| /' conftest.$ac_ext >&5
168055acc8fcSmrg
168155acc8fcSmrg    ac_retval=1
168255acc8fcSmrgfi
168355acc8fcSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
168455acc8fcSmrg  as_fn_set_status $ac_retval
168555acc8fcSmrg
168655acc8fcSmrg} # ac_fn_c_try_cpp
168755acc8fcSmrg
168855acc8fcSmrg# ac_fn_c_try_run LINENO
168955acc8fcSmrg# ----------------------
169055acc8fcSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
169155acc8fcSmrg# that executables *can* be run.
169255acc8fcSmrgac_fn_c_try_run ()
169355acc8fcSmrg{
169455acc8fcSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
169555acc8fcSmrg  if { { ac_try="$ac_link"
169655acc8fcSmrgcase "(($ac_try" in
169755acc8fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
169855acc8fcSmrg  *) ac_try_echo=$ac_try;;
169955acc8fcSmrgesac
170055acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
170155acc8fcSmrg$as_echo "$ac_try_echo"; } >&5
170255acc8fcSmrg  (eval "$ac_link") 2>&5
170355acc8fcSmrg  ac_status=$?
170455acc8fcSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
170555acc8fcSmrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
170655acc8fcSmrg  { { case "(($ac_try" in
170755acc8fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
170855acc8fcSmrg  *) ac_try_echo=$ac_try;;
1709d63fdb69Smrgesac
171055acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
171155acc8fcSmrg$as_echo "$ac_try_echo"; } >&5
171255acc8fcSmrg  (eval "$ac_try") 2>&5
171355acc8fcSmrg  ac_status=$?
171455acc8fcSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
171555acc8fcSmrg  test $ac_status = 0; }; }; then :
171655acc8fcSmrg  ac_retval=0
171755acc8fcSmrgelse
171855acc8fcSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
171955acc8fcSmrg       $as_echo "$as_me: failed program was:" >&5
172055acc8fcSmrgsed 's/^/| /' conftest.$ac_ext >&5
1721d63fdb69Smrg
172255acc8fcSmrg       ac_retval=$ac_status
17233da084b3Smrgfi
172455acc8fcSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
172555acc8fcSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
172655acc8fcSmrg  as_fn_set_status $ac_retval
1727d63fdb69Smrg
172855acc8fcSmrg} # ac_fn_c_try_run
17293da084b3Smrg
173055acc8fcSmrg# ac_fn_c_check_func LINENO FUNC VAR
173155acc8fcSmrg# ----------------------------------
173255acc8fcSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
173355acc8fcSmrgac_fn_c_check_func ()
173455acc8fcSmrg{
173555acc8fcSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
173655acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
173755acc8fcSmrg$as_echo_n "checking for $2... " >&6; }
173855acc8fcSmrgif eval \${$3+:} false; then :
173955acc8fcSmrg  $as_echo_n "(cached) " >&6
17403da084b3Smrgelse
174155acc8fcSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
174255acc8fcSmrg/* end confdefs.h.  */
174355acc8fcSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
174455acc8fcSmrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
174555acc8fcSmrg#define $2 innocuous_$2
17463da084b3Smrg
174755acc8fcSmrg/* System header to define __stub macros and hopefully few prototypes,
174855acc8fcSmrg    which can conflict with char $2 (); below.
174955acc8fcSmrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
175055acc8fcSmrg    <limits.h> exists even on freestanding compilers.  */
17513da084b3Smrg
175255acc8fcSmrg#ifdef __STDC__
175355acc8fcSmrg# include <limits.h>
175455acc8fcSmrg#else
175555acc8fcSmrg# include <assert.h>
175655acc8fcSmrg#endif
175755acc8fcSmrg
175855acc8fcSmrg#undef $2
175955acc8fcSmrg
176055acc8fcSmrg/* Override any GCC internal prototype to avoid an error.
176155acc8fcSmrg   Use char because int might match the return type of a GCC
176255acc8fcSmrg   builtin and then its argument prototype would still apply.  */
176355acc8fcSmrg#ifdef __cplusplus
176455acc8fcSmrgextern "C"
176555acc8fcSmrg#endif
176655acc8fcSmrgchar $2 ();
176755acc8fcSmrg/* The GNU C library defines this for functions which it implements
176855acc8fcSmrg    to always fail with ENOSYS.  Some functions are actually named
176955acc8fcSmrg    something starting with __ and the normal name is an alias.  */
177055acc8fcSmrg#if defined __stub_$2 || defined __stub___$2
177155acc8fcSmrgchoke me
177255acc8fcSmrg#endif
177355acc8fcSmrg
177455acc8fcSmrgint
177555acc8fcSmrgmain ()
177655acc8fcSmrg{
177755acc8fcSmrgreturn $2 ();
177855acc8fcSmrg  ;
177955acc8fcSmrg  return 0;
178055acc8fcSmrg}
178155acc8fcSmrg_ACEOF
178255acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then :
178355acc8fcSmrg  eval "$3=yes"
17843da084b3Smrgelse
178555acc8fcSmrg  eval "$3=no"
178655acc8fcSmrgfi
178755acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \
178855acc8fcSmrg    conftest$ac_exeext conftest.$ac_ext
17893da084b3Smrgfi
179055acc8fcSmrgeval ac_res=\$$3
179155acc8fcSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
179255acc8fcSmrg$as_echo "$ac_res" >&6; }
179355acc8fcSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
179455acc8fcSmrg
179555acc8fcSmrg} # ac_fn_c_check_func
179655acc8fcSmrg
179748c85eb7Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
179848c85eb7Smrg# ---------------------------------------------
179948c85eb7Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
180048c85eb7Smrg# accordingly.
180148c85eb7Smrgac_fn_c_check_decl ()
180255acc8fcSmrg{
180348c85eb7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
180448c85eb7Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
180548c85eb7Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
180648c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
180748c85eb7Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
180848c85eb7Smrgif eval \${$3+:} false; then :
180948c85eb7Smrg  $as_echo_n "(cached) " >&6
181048c85eb7Smrgelse
181148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
181248c85eb7Smrg/* end confdefs.h.  */
181348c85eb7Smrg$4
181448c85eb7Smrgint
181548c85eb7Smrgmain ()
181648c85eb7Smrg{
181748c85eb7Smrg#ifndef $as_decl_name
181848c85eb7Smrg#ifdef __cplusplus
181948c85eb7Smrg  (void) $as_decl_use;
182048c85eb7Smrg#else
182148c85eb7Smrg  (void) $as_decl_name;
182248c85eb7Smrg#endif
182348c85eb7Smrg#endif
182448c85eb7Smrg
182548c85eb7Smrg  ;
182648c85eb7Smrg  return 0;
182748c85eb7Smrg}
182848c85eb7Smrg_ACEOF
182948c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
183048c85eb7Smrg  eval "$3=yes"
183148c85eb7Smrgelse
183248c85eb7Smrg  eval "$3=no"
183348c85eb7Smrgfi
183448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
183548c85eb7Smrgfi
183648c85eb7Smrgeval ac_res=\$$3
183748c85eb7Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
183848c85eb7Smrg$as_echo "$ac_res" >&6; }
183948c85eb7Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
184048c85eb7Smrg
184148c85eb7Smrg} # ac_fn_c_check_decl
184248c85eb7Smrg
184348c85eb7Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
184448c85eb7Smrg# -------------------------------------------------------
184548c85eb7Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
184648c85eb7Smrg# the include files in INCLUDES and setting the cache variable VAR
184748c85eb7Smrg# accordingly.
184848c85eb7Smrgac_fn_c_check_header_mongrel ()
184948c85eb7Smrg{
185048c85eb7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
185148c85eb7Smrg  if eval \${$3+:} false; then :
185248c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
185348c85eb7Smrg$as_echo_n "checking for $2... " >&6; }
185448c85eb7Smrgif eval \${$3+:} false; then :
185548c85eb7Smrg  $as_echo_n "(cached) " >&6
185648c85eb7Smrgfi
185748c85eb7Smrgeval ac_res=\$$3
185848c85eb7Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
185948c85eb7Smrg$as_echo "$ac_res" >&6; }
186048c85eb7Smrgelse
186148c85eb7Smrg  # Is the header compilable?
186248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
186348c85eb7Smrg$as_echo_n "checking $2 usability... " >&6; }
186448c85eb7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
186548c85eb7Smrg/* end confdefs.h.  */
186648c85eb7Smrg$4
186748c85eb7Smrg#include <$2>
186848c85eb7Smrg_ACEOF
186948c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
187048c85eb7Smrg  ac_header_compiler=yes
187148c85eb7Smrgelse
187248c85eb7Smrg  ac_header_compiler=no
187348c85eb7Smrgfi
187448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
187548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
187648c85eb7Smrg$as_echo "$ac_header_compiler" >&6; }
187748c85eb7Smrg
187848c85eb7Smrg# Is the header present?
187948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
188048c85eb7Smrg$as_echo_n "checking $2 presence... " >&6; }
188148c85eb7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
188248c85eb7Smrg/* end confdefs.h.  */
188348c85eb7Smrg#include <$2>
188448c85eb7Smrg_ACEOF
188548c85eb7Smrgif ac_fn_c_try_cpp "$LINENO"; then :
188648c85eb7Smrg  ac_header_preproc=yes
188748c85eb7Smrgelse
188848c85eb7Smrg  ac_header_preproc=no
188948c85eb7Smrgfi
189048c85eb7Smrgrm -f conftest.err conftest.i conftest.$ac_ext
189148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
189248c85eb7Smrg$as_echo "$ac_header_preproc" >&6; }
189348c85eb7Smrg
189448c85eb7Smrg# So?  What about this header?
189548c85eb7Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
189648c85eb7Smrg  yes:no: )
189748c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
189848c85eb7Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
189948c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
190048c85eb7Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
190148c85eb7Smrg    ;;
190248c85eb7Smrg  no:yes:* )
190348c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
190448c85eb7Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
190548c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
190648c85eb7Smrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
190748c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
190848c85eb7Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
190948c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
191048c85eb7Smrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
191148c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
191248c85eb7Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
191348c85eb7Smrg( $as_echo "## ---------------------------------------------------------------------- ##
191448c85eb7Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
191548c85eb7Smrg## ---------------------------------------------------------------------- ##"
191648c85eb7Smrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
191748c85eb7Smrg    ;;
191848c85eb7Smrgesac
191948c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
192048c85eb7Smrg$as_echo_n "checking for $2... " >&6; }
192148c85eb7Smrgif eval \${$3+:} false; then :
192248c85eb7Smrg  $as_echo_n "(cached) " >&6
192348c85eb7Smrgelse
192448c85eb7Smrg  eval "$3=\$ac_header_compiler"
192548c85eb7Smrgfi
192648c85eb7Smrgeval ac_res=\$$3
192748c85eb7Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
192848c85eb7Smrg$as_echo "$ac_res" >&6; }
192948c85eb7Smrgfi
193048c85eb7Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
193148c85eb7Smrg
193248c85eb7Smrg} # ac_fn_c_check_header_mongrel
193348c85eb7Smrgcat >config.log <<_ACEOF
193448c85eb7SmrgThis file contains any messages produced by compilers while
193548c85eb7Smrgrunning configure, to aid debugging if configure makes a mistake.
193648c85eb7Smrg
193748c85eb7SmrgIt was created by libfontenc $as_me 1.1.2, which was
193848c85eb7Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
193948c85eb7Smrg
194048c85eb7Smrg  $ $0 $@
194148c85eb7Smrg
194248c85eb7Smrg_ACEOF
194348c85eb7Smrgexec 5>>config.log
194448c85eb7Smrg{
194548c85eb7Smrgcat <<_ASUNAME
194648c85eb7Smrg## --------- ##
194748c85eb7Smrg## Platform. ##
194848c85eb7Smrg## --------- ##
194948c85eb7Smrg
195048c85eb7Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
195148c85eb7Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
195248c85eb7Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
195348c85eb7Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
195448c85eb7Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
195548c85eb7Smrg
195648c85eb7Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
195748c85eb7Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
195848c85eb7Smrg
195948c85eb7Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
196048c85eb7Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
196148c85eb7Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
196248c85eb7Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
196348c85eb7Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
196448c85eb7Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
196555acc8fcSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
196655acc8fcSmrg
196755acc8fcSmrg_ASUNAME
196855acc8fcSmrg
196955acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197055acc8fcSmrgfor as_dir in $PATH
197155acc8fcSmrgdo
197255acc8fcSmrg  IFS=$as_save_IFS
197355acc8fcSmrg  test -z "$as_dir" && as_dir=.
197455acc8fcSmrg    $as_echo "PATH: $as_dir"
197555acc8fcSmrg  done
197655acc8fcSmrgIFS=$as_save_IFS
197755acc8fcSmrg
197855acc8fcSmrg} >&5
197955acc8fcSmrg
198055acc8fcSmrgcat >&5 <<_ACEOF
198155acc8fcSmrg
198255acc8fcSmrg
198355acc8fcSmrg## ----------- ##
198455acc8fcSmrg## Core tests. ##
198555acc8fcSmrg## ----------- ##
198655acc8fcSmrg
198755acc8fcSmrg_ACEOF
198855acc8fcSmrg
198955acc8fcSmrg
199055acc8fcSmrg# Keep a trace of the command line.
199155acc8fcSmrg# Strip out --no-create and --no-recursion so they do not pile up.
199255acc8fcSmrg# Strip out --silent because we don't want to record it for future runs.
199355acc8fcSmrg# Also quote any args containing shell meta-characters.
199455acc8fcSmrg# Make two passes to allow for proper duplicate-argument suppression.
199555acc8fcSmrgac_configure_args=
199655acc8fcSmrgac_configure_args0=
199755acc8fcSmrgac_configure_args1=
199855acc8fcSmrgac_must_keep_next=false
199955acc8fcSmrgfor ac_pass in 1 2
200055acc8fcSmrgdo
200155acc8fcSmrg  for ac_arg
200255acc8fcSmrg  do
200355acc8fcSmrg    case $ac_arg in
200455acc8fcSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
200555acc8fcSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
200655acc8fcSmrg    | -silent | --silent | --silen | --sile | --sil)
200755acc8fcSmrg      continue ;;
200855acc8fcSmrg    *\'*)
200955acc8fcSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
201055acc8fcSmrg    esac
201155acc8fcSmrg    case $ac_pass in
201255acc8fcSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
201355acc8fcSmrg    2)
201455acc8fcSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
201555acc8fcSmrg      if test $ac_must_keep_next = true; then
201655acc8fcSmrg	ac_must_keep_next=false # Got value, back to normal.
201755acc8fcSmrg      else
201855acc8fcSmrg	case $ac_arg in
201955acc8fcSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
202055acc8fcSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
202155acc8fcSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
202255acc8fcSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
202355acc8fcSmrg	    case "$ac_configure_args0 " in
202455acc8fcSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
202555acc8fcSmrg	    esac
202655acc8fcSmrg	    ;;
202755acc8fcSmrg	  -* ) ac_must_keep_next=true ;;
202855acc8fcSmrg	esac
202955acc8fcSmrg      fi
203055acc8fcSmrg      as_fn_append ac_configure_args " '$ac_arg'"
203155acc8fcSmrg      ;;
203255acc8fcSmrg    esac
203355acc8fcSmrg  done
203455acc8fcSmrgdone
203555acc8fcSmrg{ ac_configure_args0=; unset ac_configure_args0;}
203655acc8fcSmrg{ ac_configure_args1=; unset ac_configure_args1;}
20373da084b3Smrg
203855acc8fcSmrg# When interrupted or exit'd, cleanup temporary files, and complete
203955acc8fcSmrg# config.log.  We remove comments because anyway the quotes in there
204055acc8fcSmrg# would cause problems or look ugly.
204155acc8fcSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
204255acc8fcSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
204355acc8fcSmrgtrap 'exit_status=$?
204455acc8fcSmrg  # Save into config.log some information that might help in debugging.
204555acc8fcSmrg  {
204655acc8fcSmrg    echo
20473da084b3Smrg
204855acc8fcSmrg    $as_echo "## ---------------- ##
204955acc8fcSmrg## Cache variables. ##
205055acc8fcSmrg## ---------------- ##"
205155acc8fcSmrg    echo
205255acc8fcSmrg    # The following way of writing the cache mishandles newlines in values,
20533da084b3Smrg(
205455acc8fcSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
205555acc8fcSmrg    eval ac_val=\$$ac_var
205655acc8fcSmrg    case $ac_val in #(
205755acc8fcSmrg    *${as_nl}*)
205855acc8fcSmrg      case $ac_var in #(
205955acc8fcSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
206055acc8fcSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
206155acc8fcSmrg      esac
206255acc8fcSmrg      case $ac_var in #(
206355acc8fcSmrg      _ | IFS | as_nl) ;; #(
206455acc8fcSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
206555acc8fcSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
206655acc8fcSmrg      esac ;;
206755acc8fcSmrg    esac
206855acc8fcSmrg  done
206955acc8fcSmrg  (set) 2>&1 |
207055acc8fcSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
207155acc8fcSmrg    *${as_nl}ac_space=\ *)
207255acc8fcSmrg      sed -n \
207355acc8fcSmrg	"s/'\''/'\''\\\\'\'''\''/g;
207455acc8fcSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
207555acc8fcSmrg      ;; #(
207655acc8fcSmrg    *)
207755acc8fcSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
207855acc8fcSmrg      ;;
207955acc8fcSmrg    esac |
208055acc8fcSmrg    sort
208155acc8fcSmrg)
208255acc8fcSmrg    echo
20833da084b3Smrg
208455acc8fcSmrg    $as_echo "## ----------------- ##
208555acc8fcSmrg## Output variables. ##
208655acc8fcSmrg## ----------------- ##"
208755acc8fcSmrg    echo
208855acc8fcSmrg    for ac_var in $ac_subst_vars
208955acc8fcSmrg    do
209055acc8fcSmrg      eval ac_val=\$$ac_var
209155acc8fcSmrg      case $ac_val in
209255acc8fcSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
209355acc8fcSmrg      esac
209455acc8fcSmrg      $as_echo "$ac_var='\''$ac_val'\''"
209555acc8fcSmrg    done | sort
209655acc8fcSmrg    echo
209755acc8fcSmrg
209855acc8fcSmrg    if test -n "$ac_subst_files"; then
209955acc8fcSmrg      $as_echo "## ------------------- ##
210055acc8fcSmrg## File substitutions. ##
210155acc8fcSmrg## ------------------- ##"
210255acc8fcSmrg      echo
210355acc8fcSmrg      for ac_var in $ac_subst_files
210455acc8fcSmrg      do
210555acc8fcSmrg	eval ac_val=\$$ac_var
210655acc8fcSmrg	case $ac_val in
210755acc8fcSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
210855acc8fcSmrg	esac
210955acc8fcSmrg	$as_echo "$ac_var='\''$ac_val'\''"
211055acc8fcSmrg      done | sort
211155acc8fcSmrg      echo
211255acc8fcSmrg    fi
21133da084b3Smrg
211455acc8fcSmrg    if test -s confdefs.h; then
211555acc8fcSmrg      $as_echo "## ----------- ##
211655acc8fcSmrg## confdefs.h. ##
211755acc8fcSmrg## ----------- ##"
211855acc8fcSmrg      echo
211955acc8fcSmrg      cat confdefs.h
212055acc8fcSmrg      echo
212155acc8fcSmrg    fi
212255acc8fcSmrg    test "$ac_signal" != 0 &&
212355acc8fcSmrg      $as_echo "$as_me: caught signal $ac_signal"
212455acc8fcSmrg    $as_echo "$as_me: exit $exit_status"
212555acc8fcSmrg  } >&5
212655acc8fcSmrg  rm -f core *.core core.conftest.* &&
212755acc8fcSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
212855acc8fcSmrg    exit $exit_status
212955acc8fcSmrg' 0
213055acc8fcSmrgfor ac_signal in 1 2 13 15; do
213155acc8fcSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
213255acc8fcSmrgdone
213355acc8fcSmrgac_signal=0
21343da084b3Smrg
213555acc8fcSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
213655acc8fcSmrgrm -f -r conftest* confdefs.h
21373da084b3Smrg
213855acc8fcSmrg$as_echo "/* confdefs.h */" > confdefs.h
21393da084b3Smrg
214055acc8fcSmrg# Predefined preprocessor variables.
21413da084b3Smrg
214255acc8fcSmrgcat >>confdefs.h <<_ACEOF
214355acc8fcSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
214455acc8fcSmrg_ACEOF
21453da084b3Smrg
214655acc8fcSmrgcat >>confdefs.h <<_ACEOF
214755acc8fcSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
214855acc8fcSmrg_ACEOF
21493da084b3Smrg
215055acc8fcSmrgcat >>confdefs.h <<_ACEOF
215155acc8fcSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
215255acc8fcSmrg_ACEOF
21533da084b3Smrg
215455acc8fcSmrgcat >>confdefs.h <<_ACEOF
215555acc8fcSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
215655acc8fcSmrg_ACEOF
21573da084b3Smrg
215855acc8fcSmrgcat >>confdefs.h <<_ACEOF
215955acc8fcSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
216055acc8fcSmrg_ACEOF
21613da084b3Smrg
216255acc8fcSmrgcat >>confdefs.h <<_ACEOF
216355acc8fcSmrg#define PACKAGE_URL "$PACKAGE_URL"
216455acc8fcSmrg_ACEOF
21653da084b3Smrg
21663da084b3Smrg
216755acc8fcSmrg# Let the site file select an alternate cache file if it wants to.
216855acc8fcSmrg# Prefer an explicitly selected file to automatically selected ones.
216955acc8fcSmrgac_site_file1=NONE
217055acc8fcSmrgac_site_file2=NONE
217155acc8fcSmrgif test -n "$CONFIG_SITE"; then
217255acc8fcSmrg  # We do not want a PATH search for config.site.
217355acc8fcSmrg  case $CONFIG_SITE in #((
217455acc8fcSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
217555acc8fcSmrg    */*) ac_site_file1=$CONFIG_SITE;;
217655acc8fcSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
217755acc8fcSmrg  esac
217855acc8fcSmrgelif test "x$prefix" != xNONE; then
217955acc8fcSmrg  ac_site_file1=$prefix/share/config.site
218055acc8fcSmrg  ac_site_file2=$prefix/etc/config.site
21813da084b3Smrgelse
218255acc8fcSmrg  ac_site_file1=$ac_default_prefix/share/config.site
218355acc8fcSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
21843da084b3Smrgfi
218555acc8fcSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
218655acc8fcSmrgdo
218755acc8fcSmrg  test "x$ac_site_file" = xNONE && continue
218855acc8fcSmrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
218955acc8fcSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
219055acc8fcSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
219155acc8fcSmrg    sed 's/^/| /' "$ac_site_file" >&5
219255acc8fcSmrg    . "$ac_site_file" \
219355acc8fcSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
219455acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
219555acc8fcSmrgas_fn_error $? "failed to load site script $ac_site_file
219655acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
219755acc8fcSmrg  fi
219855acc8fcSmrgdone
21993da084b3Smrg
220055acc8fcSmrgif test -r "$cache_file"; then
220155acc8fcSmrg  # Some versions of bash will fail to source /dev/null (special files
220255acc8fcSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
220355acc8fcSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
220455acc8fcSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
220555acc8fcSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
220655acc8fcSmrg    case $cache_file in
220755acc8fcSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
220855acc8fcSmrg      *)                      . "./$cache_file";;
220955acc8fcSmrg    esac
221055acc8fcSmrg  fi
22113da084b3Smrgelse
221255acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
221355acc8fcSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
221455acc8fcSmrg  >$cache_file
22153da084b3Smrgfi
22163da084b3Smrg
221755acc8fcSmrg# Check that the precious variables saved in the cache have kept the same
221855acc8fcSmrg# value.
221955acc8fcSmrgac_cache_corrupted=false
222055acc8fcSmrgfor ac_var in $ac_precious_vars; do
222155acc8fcSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
222255acc8fcSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
222355acc8fcSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
222455acc8fcSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
222555acc8fcSmrg  case $ac_old_set,$ac_new_set in
222655acc8fcSmrg    set,)
222755acc8fcSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
222855acc8fcSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
222955acc8fcSmrg      ac_cache_corrupted=: ;;
223055acc8fcSmrg    ,set)
223155acc8fcSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
223255acc8fcSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
223355acc8fcSmrg      ac_cache_corrupted=: ;;
223455acc8fcSmrg    ,);;
223555acc8fcSmrg    *)
223655acc8fcSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
223755acc8fcSmrg	# differences in whitespace do not lead to failure.
223855acc8fcSmrg	ac_old_val_w=`echo x $ac_old_val`
223955acc8fcSmrg	ac_new_val_w=`echo x $ac_new_val`
224055acc8fcSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
224155acc8fcSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
224255acc8fcSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
224355acc8fcSmrg	  ac_cache_corrupted=:
224455acc8fcSmrg	else
224555acc8fcSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
224655acc8fcSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
224755acc8fcSmrg	  eval $ac_var=\$ac_old_val
224855acc8fcSmrg	fi
224955acc8fcSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
225055acc8fcSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
225155acc8fcSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
225255acc8fcSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
225355acc8fcSmrg      fi;;
225455acc8fcSmrg  esac
225555acc8fcSmrg  # Pass precious variables to config.status.
225655acc8fcSmrg  if test "$ac_new_set" = set; then
225755acc8fcSmrg    case $ac_new_val in
225855acc8fcSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
225955acc8fcSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
226055acc8fcSmrg    esac
226155acc8fcSmrg    case " $ac_configure_args " in
226255acc8fcSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
226355acc8fcSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
226455acc8fcSmrg    esac
226555acc8fcSmrg  fi
226655acc8fcSmrgdone
226755acc8fcSmrgif $ac_cache_corrupted; then
226855acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
226955acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
227055acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
227155acc8fcSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
227255acc8fcSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
22733da084b3Smrgfi
227455acc8fcSmrg## -------------------- ##
227555acc8fcSmrg## Main body of script. ##
227655acc8fcSmrg## -------------------- ##
22773da084b3Smrg
227855acc8fcSmrgac_ext=c
227955acc8fcSmrgac_cpp='$CPP $CPPFLAGS'
228055acc8fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
228155acc8fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
228255acc8fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
22833da084b3Smrg
22843da084b3Smrg
228548c85eb7Smrg
228648c85eb7Smrgac_config_headers="$ac_config_headers config.h"
228748c85eb7Smrg
228848c85eb7Smrg
228948c85eb7Smrg# Initialize Automake
229055acc8fcSmrgam__api_version='1.11'
22913da084b3Smrg
229255acc8fcSmrgac_aux_dir=
229355acc8fcSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
229455acc8fcSmrg  if test -f "$ac_dir/install-sh"; then
229555acc8fcSmrg    ac_aux_dir=$ac_dir
229655acc8fcSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
229755acc8fcSmrg    break
229855acc8fcSmrg  elif test -f "$ac_dir/install.sh"; then
229955acc8fcSmrg    ac_aux_dir=$ac_dir
230055acc8fcSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
230155acc8fcSmrg    break
230255acc8fcSmrg  elif test -f "$ac_dir/shtool"; then
230355acc8fcSmrg    ac_aux_dir=$ac_dir
230455acc8fcSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
230555acc8fcSmrg    break
230655acc8fcSmrg  fi
230755acc8fcSmrgdone
230855acc8fcSmrgif test -z "$ac_aux_dir"; then
230955acc8fcSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
231055acc8fcSmrgfi
23113da084b3Smrg
231255acc8fcSmrg# These three variables are undocumented and unsupported,
231355acc8fcSmrg# and are intended to be withdrawn in a future Autoconf release.
231455acc8fcSmrg# They can cause serious problems if a builder's source tree is in a directory
231555acc8fcSmrg# whose full name contains unusual characters.
231655acc8fcSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
231755acc8fcSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
231855acc8fcSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
23193da084b3Smrg
23203da084b3Smrg
232155acc8fcSmrg# Find a good install program.  We prefer a C program (faster),
232255acc8fcSmrg# so one script is as good as another.  But avoid the broken or
232355acc8fcSmrg# incompatible versions:
232455acc8fcSmrg# SysV /etc/install, /usr/sbin/install
232555acc8fcSmrg# SunOS /usr/etc/install
232655acc8fcSmrg# IRIX /sbin/install
232755acc8fcSmrg# AIX /bin/install
232855acc8fcSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
232955acc8fcSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
233055acc8fcSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
233155acc8fcSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
233255acc8fcSmrg# OS/2's system install, which has a completely different semantic
233355acc8fcSmrg# ./install, which can be erroneously created by make from ./install.sh.
233455acc8fcSmrg# Reject install programs that cannot install multiple files.
233555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
233655acc8fcSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
233755acc8fcSmrgif test -z "$INSTALL"; then
233855acc8fcSmrgif ${ac_cv_path_install+:} false; then :
233955acc8fcSmrg  $as_echo_n "(cached) " >&6
23403da084b3Smrgelse
234155acc8fcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
234255acc8fcSmrgfor as_dir in $PATH
234355acc8fcSmrgdo
234455acc8fcSmrg  IFS=$as_save_IFS
234555acc8fcSmrg  test -z "$as_dir" && as_dir=.
234655acc8fcSmrg    # Account for people who put trailing slashes in PATH elements.
234755acc8fcSmrgcase $as_dir/ in #((
234855acc8fcSmrg  ./ | .// | /[cC]/* | \
234955acc8fcSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
235055acc8fcSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
235155acc8fcSmrg  /usr/ucb/* ) ;;
235255acc8fcSmrg  *)
235355acc8fcSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
235455acc8fcSmrg    # Don't use installbsd from OSF since it installs stuff as root
235555acc8fcSmrg    # by default.
235655acc8fcSmrg    for ac_prog in ginstall scoinst install; do
235755acc8fcSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
235855acc8fcSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
235955acc8fcSmrg	  if test $ac_prog = install &&
236055acc8fcSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
236155acc8fcSmrg	    # AIX install.  It has an incompatible calling convention.
236255acc8fcSmrg	    :
236355acc8fcSmrg	  elif test $ac_prog = install &&
236455acc8fcSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
236555acc8fcSmrg	    # program-specific install script used by HP pwplus--don't use.
236655acc8fcSmrg	    :
236755acc8fcSmrg	  else
236855acc8fcSmrg	    rm -rf conftest.one conftest.two conftest.dir
236955acc8fcSmrg	    echo one > conftest.one
237055acc8fcSmrg	    echo two > conftest.two
237155acc8fcSmrg	    mkdir conftest.dir
237255acc8fcSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
237355acc8fcSmrg	      test -s conftest.one && test -s conftest.two &&
237455acc8fcSmrg	      test -s conftest.dir/conftest.one &&
237555acc8fcSmrg	      test -s conftest.dir/conftest.two
237655acc8fcSmrg	    then
237755acc8fcSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
237855acc8fcSmrg	      break 3
237955acc8fcSmrg	    fi
238055acc8fcSmrg	  fi
238155acc8fcSmrg	fi
238255acc8fcSmrg      done
238355acc8fcSmrg    done
238455acc8fcSmrg    ;;
23853da084b3Smrgesac
23863da084b3Smrg
238755acc8fcSmrg  done
238855acc8fcSmrgIFS=$as_save_IFS
23893da084b3Smrg
239055acc8fcSmrgrm -rf conftest.one conftest.two conftest.dir
23913da084b3Smrg
239255acc8fcSmrgfi
239355acc8fcSmrg  if test "${ac_cv_path_install+set}" = set; then
239455acc8fcSmrg    INSTALL=$ac_cv_path_install
2395d63fdb69Smrg  else
239655acc8fcSmrg    # As a last resort, use the slow shell script.  Don't cache a
239755acc8fcSmrg    # value for INSTALL within a source directory, because that will
239855acc8fcSmrg    # break other packages using the cache if that directory is
239955acc8fcSmrg    # removed, or if the value is a relative name.
240055acc8fcSmrg    INSTALL=$ac_install_sh
2401d63fdb69Smrg  fi
24023da084b3Smrgfi
240355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
240455acc8fcSmrg$as_echo "$INSTALL" >&6; }
24053da084b3Smrg
240655acc8fcSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
240755acc8fcSmrg# It thinks the first close brace ends the variable substitution.
240855acc8fcSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
24093da084b3Smrg
241055acc8fcSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
24113da084b3Smrg
241255acc8fcSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
24133da084b3Smrg
241455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
241555acc8fcSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
241655acc8fcSmrg# Just in case
241755acc8fcSmrgsleep 1
241855acc8fcSmrgecho timestamp > conftest.file
241955acc8fcSmrg# Reject unsafe characters in $srcdir or the absolute working directory
242055acc8fcSmrg# name.  Accept space and tab only in the latter.
242155acc8fcSmrgam_lf='
242255acc8fcSmrg'
242355acc8fcSmrgcase `pwd` in
242455acc8fcSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
242555acc8fcSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
242655acc8fcSmrgesac
242755acc8fcSmrgcase $srcdir in
242855acc8fcSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
242955acc8fcSmrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
243055acc8fcSmrgesac
24313da084b3Smrg
243255acc8fcSmrg# Do `set' in a subshell so we don't clobber the current shell's
243355acc8fcSmrg# arguments.  Must try -L first in case configure is actually a
243455acc8fcSmrg# symlink; some systems play weird games with the mod time of symlinks
243555acc8fcSmrg# (eg FreeBSD returns the mod time of the symlink's containing
243655acc8fcSmrg# directory).
243755acc8fcSmrgif (
243855acc8fcSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
243955acc8fcSmrg   if test "$*" = "X"; then
244055acc8fcSmrg      # -L didn't work.
244155acc8fcSmrg      set X `ls -t "$srcdir/configure" conftest.file`
244255acc8fcSmrg   fi
244355acc8fcSmrg   rm -f conftest.file
244455acc8fcSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
244555acc8fcSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
24463da084b3Smrg
244755acc8fcSmrg      # If neither matched, then we have a broken ls.  This can happen
244855acc8fcSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
244955acc8fcSmrg      # broken ls alias from the environment.  This has actually
245055acc8fcSmrg      # happened.  Such a system could not be considered "sane".
245155acc8fcSmrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
245255acc8fcSmrgalias in your environment" "$LINENO" 5
245355acc8fcSmrg   fi
24543da084b3Smrg
245555acc8fcSmrg   test "$2" = conftest.file
245655acc8fcSmrg   )
245755acc8fcSmrgthen
245855acc8fcSmrg   # Ok.
245955acc8fcSmrg   :
24603da084b3Smrgelse
246155acc8fcSmrg   as_fn_error $? "newly created file is older than distributed files!
246255acc8fcSmrgCheck your system clock" "$LINENO" 5
24633da084b3Smrgfi
246455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
246555acc8fcSmrg$as_echo "yes" >&6; }
246655acc8fcSmrgtest "$program_prefix" != NONE &&
246755acc8fcSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
246855acc8fcSmrg# Use a double $ so make ignores it.
246955acc8fcSmrgtest "$program_suffix" != NONE &&
247055acc8fcSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
247155acc8fcSmrg# Double any \ or $.
247255acc8fcSmrg# By default was `s,x,x', remove it if useless.
247355acc8fcSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
247455acc8fcSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
24753da084b3Smrg
247655acc8fcSmrg# expand $ac_aux_dir to an absolute path
247755acc8fcSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
247855acc8fcSmrg
247955acc8fcSmrgif test x"${MISSING+set}" != xset; then
248055acc8fcSmrg  case $am_aux_dir in
248155acc8fcSmrg  *\ * | *\	*)
248255acc8fcSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
248355acc8fcSmrg  *)
248455acc8fcSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
248555acc8fcSmrg  esac
248655acc8fcSmrgfi
248755acc8fcSmrg# Use eval to expand $SHELL
248855acc8fcSmrgif eval "$MISSING --run true"; then
248955acc8fcSmrg  am_missing_run="$MISSING --run "
249055acc8fcSmrgelse
249155acc8fcSmrg  am_missing_run=
249255acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
249355acc8fcSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
24943da084b3Smrgfi
24953da084b3Smrg
249655acc8fcSmrgif test x"${install_sh}" != xset; then
249755acc8fcSmrg  case $am_aux_dir in
249855acc8fcSmrg  *\ * | *\	*)
249955acc8fcSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
250055acc8fcSmrg  *)
250155acc8fcSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
250255acc8fcSmrg  esac
250355acc8fcSmrgfi
25043da084b3Smrg
250555acc8fcSmrg# Installed binaries are usually stripped using `strip' when the user
250655acc8fcSmrg# run `make install-strip'.  However `strip' might not be the right
250755acc8fcSmrg# tool to use in cross-compilation environments, therefore Automake
250855acc8fcSmrg# will honor the `STRIP' environment variable to overrule this program.
250955acc8fcSmrgif test "$cross_compiling" != no; then
251055acc8fcSmrg  if test -n "$ac_tool_prefix"; then
251155acc8fcSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
251255acc8fcSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
251355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
251455acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; }
251555acc8fcSmrgif ${ac_cv_prog_STRIP+:} false; then :
251655acc8fcSmrg  $as_echo_n "(cached) " >&6
251755acc8fcSmrgelse
251855acc8fcSmrg  if test -n "$STRIP"; then
251955acc8fcSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252055acc8fcSmrgelse
252155acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
252255acc8fcSmrgfor as_dir in $PATH
252355acc8fcSmrgdo
252455acc8fcSmrg  IFS=$as_save_IFS
252555acc8fcSmrg  test -z "$as_dir" && as_dir=.
252655acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
252755acc8fcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
252855acc8fcSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
252955acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
253055acc8fcSmrg    break 2
2531d63fdb69Smrg  fi
253255acc8fcSmrgdone
253355acc8fcSmrg  done
253455acc8fcSmrgIFS=$as_save_IFS
25353da084b3Smrg
253655acc8fcSmrgfi
253755acc8fcSmrgfi
253855acc8fcSmrgSTRIP=$ac_cv_prog_STRIP
253955acc8fcSmrgif test -n "$STRIP"; then
254055acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
254155acc8fcSmrg$as_echo "$STRIP" >&6; }
254255acc8fcSmrgelse
254355acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
254455acc8fcSmrg$as_echo "no" >&6; }
254555acc8fcSmrgfi
25463da084b3Smrg
25473da084b3Smrg
254855acc8fcSmrgfi
254955acc8fcSmrgif test -z "$ac_cv_prog_STRIP"; then
255055acc8fcSmrg  ac_ct_STRIP=$STRIP
255155acc8fcSmrg  # Extract the first word of "strip", so it can be a program name with args.
255255acc8fcSmrgset dummy strip; ac_word=$2
255355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
255455acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; }
255555acc8fcSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
255655acc8fcSmrg  $as_echo_n "(cached) " >&6
255755acc8fcSmrgelse
255855acc8fcSmrg  if test -n "$ac_ct_STRIP"; then
255955acc8fcSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
256055acc8fcSmrgelse
256155acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
256255acc8fcSmrgfor as_dir in $PATH
256355acc8fcSmrgdo
256455acc8fcSmrg  IFS=$as_save_IFS
256555acc8fcSmrg  test -z "$as_dir" && as_dir=.
256655acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
256755acc8fcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
256855acc8fcSmrg    ac_cv_prog_ac_ct_STRIP="strip"
256955acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
257055acc8fcSmrg    break 2
257155acc8fcSmrg  fi
257255acc8fcSmrgdone
257355acc8fcSmrg  done
257455acc8fcSmrgIFS=$as_save_IFS
25753da084b3Smrg
257655acc8fcSmrgfi
257755acc8fcSmrgfi
257855acc8fcSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
257955acc8fcSmrgif test -n "$ac_ct_STRIP"; then
258055acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
258155acc8fcSmrg$as_echo "$ac_ct_STRIP" >&6; }
258255acc8fcSmrgelse
258355acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
258455acc8fcSmrg$as_echo "no" >&6; }
258555acc8fcSmrgfi
25863da084b3Smrg
258755acc8fcSmrg  if test "x$ac_ct_STRIP" = x; then
258855acc8fcSmrg    STRIP=":"
258955acc8fcSmrg  else
259055acc8fcSmrg    case $cross_compiling:$ac_tool_warned in
259155acc8fcSmrgyes:)
259255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
259355acc8fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
259455acc8fcSmrgac_tool_warned=yes ;;
259555acc8fcSmrgesac
259655acc8fcSmrg    STRIP=$ac_ct_STRIP
25973da084b3Smrg  fi
259855acc8fcSmrgelse
259955acc8fcSmrg  STRIP="$ac_cv_prog_STRIP"
26003da084b3Smrgfi
26013da084b3Smrg
26023da084b3Smrgfi
260355acc8fcSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
26043da084b3Smrg
260555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
260655acc8fcSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
260755acc8fcSmrgif test -z "$MKDIR_P"; then
260855acc8fcSmrg  if ${ac_cv_path_mkdir+:} false; then :
260955acc8fcSmrg  $as_echo_n "(cached) " >&6
261055acc8fcSmrgelse
261155acc8fcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
261255acc8fcSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
261355acc8fcSmrgdo
261455acc8fcSmrg  IFS=$as_save_IFS
261555acc8fcSmrg  test -z "$as_dir" && as_dir=.
261655acc8fcSmrg    for ac_prog in mkdir gmkdir; do
261755acc8fcSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
261855acc8fcSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
261955acc8fcSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
262055acc8fcSmrg	     'mkdir (GNU coreutils) '* | \
262155acc8fcSmrg	     'mkdir (coreutils) '* | \
262255acc8fcSmrg	     'mkdir (fileutils) '4.1*)
262355acc8fcSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
262455acc8fcSmrg	       break 3;;
262555acc8fcSmrg	   esac
262655acc8fcSmrg	 done
262755acc8fcSmrg       done
262855acc8fcSmrg  done
262955acc8fcSmrgIFS=$as_save_IFS
26303da084b3Smrg
263155acc8fcSmrgfi
26323da084b3Smrg
263355acc8fcSmrg  test -d ./--version && rmdir ./--version
263455acc8fcSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
263555acc8fcSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
263655acc8fcSmrg  else
263755acc8fcSmrg    # As a last resort, use the slow shell script.  Don't cache a
263855acc8fcSmrg    # value for MKDIR_P within a source directory, because that will
263955acc8fcSmrg    # break other packages using the cache if that directory is
264055acc8fcSmrg    # removed, or if the value is a relative name.
264155acc8fcSmrg    MKDIR_P="$ac_install_sh -d"
264255acc8fcSmrg  fi
264355acc8fcSmrgfi
264455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
264555acc8fcSmrg$as_echo "$MKDIR_P" >&6; }
26463da084b3Smrg
264755acc8fcSmrgmkdir_p="$MKDIR_P"
264855acc8fcSmrgcase $mkdir_p in
264955acc8fcSmrg  [\\/$]* | ?:[\\/]*) ;;
265055acc8fcSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
265155acc8fcSmrgesac
26523da084b3Smrg
265355acc8fcSmrgfor ac_prog in gawk mawk nawk awk
265455acc8fcSmrgdo
265555acc8fcSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
265655acc8fcSmrgset dummy $ac_prog; ac_word=$2
265755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
265855acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; }
265955acc8fcSmrgif ${ac_cv_prog_AWK+:} false; then :
266055acc8fcSmrg  $as_echo_n "(cached) " >&6
266155acc8fcSmrgelse
266255acc8fcSmrg  if test -n "$AWK"; then
266355acc8fcSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
266455acc8fcSmrgelse
266555acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266655acc8fcSmrgfor as_dir in $PATH
266755acc8fcSmrgdo
266855acc8fcSmrg  IFS=$as_save_IFS
266955acc8fcSmrg  test -z "$as_dir" && as_dir=.
267055acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
267155acc8fcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
267255acc8fcSmrg    ac_cv_prog_AWK="$ac_prog"
267355acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
267455acc8fcSmrg    break 2
267555acc8fcSmrg  fi
267655acc8fcSmrgdone
267755acc8fcSmrg  done
267855acc8fcSmrgIFS=$as_save_IFS
26793da084b3Smrg
268055acc8fcSmrgfi
268155acc8fcSmrgfi
268255acc8fcSmrgAWK=$ac_cv_prog_AWK
268355acc8fcSmrgif test -n "$AWK"; then
268455acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
268555acc8fcSmrg$as_echo "$AWK" >&6; }
268655acc8fcSmrgelse
268755acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
268855acc8fcSmrg$as_echo "no" >&6; }
268955acc8fcSmrgfi
26903da084b3Smrg
26913da084b3Smrg
269255acc8fcSmrg  test -n "$AWK" && break
269355acc8fcSmrgdone
26943da084b3Smrg
269555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
269655acc8fcSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
269755acc8fcSmrgset x ${MAKE-make}
269855acc8fcSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
269955acc8fcSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
270055acc8fcSmrg  $as_echo_n "(cached) " >&6
270155acc8fcSmrgelse
270255acc8fcSmrg  cat >conftest.make <<\_ACEOF
270355acc8fcSmrgSHELL = /bin/sh
270455acc8fcSmrgall:
270555acc8fcSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
270655acc8fcSmrg_ACEOF
270755acc8fcSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
270855acc8fcSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
270955acc8fcSmrg  *@@@%%%=?*=@@@%%%*)
271055acc8fcSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
271155acc8fcSmrg  *)
271255acc8fcSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
271355acc8fcSmrgesac
271455acc8fcSmrgrm -f conftest.make
271555acc8fcSmrgfi
271655acc8fcSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
271755acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
271855acc8fcSmrg$as_echo "yes" >&6; }
271955acc8fcSmrg  SET_MAKE=
272055acc8fcSmrgelse
272155acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
272255acc8fcSmrg$as_echo "no" >&6; }
272355acc8fcSmrg  SET_MAKE="MAKE=${MAKE-make}"
272455acc8fcSmrgfi
272555acc8fcSmrg
272655acc8fcSmrgrm -rf .tst 2>/dev/null
272755acc8fcSmrgmkdir .tst 2>/dev/null
272855acc8fcSmrgif test -d .tst; then
272955acc8fcSmrg  am__leading_dot=.
273055acc8fcSmrgelse
273155acc8fcSmrg  am__leading_dot=_
273255acc8fcSmrgfi
273355acc8fcSmrgrmdir .tst 2>/dev/null
273455acc8fcSmrg
273555acc8fcSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
273655acc8fcSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
273755acc8fcSmrg  # is not polluted with repeated "-I."
273855acc8fcSmrg  am__isrc=' -I$(srcdir)'
273955acc8fcSmrg  # test to see if srcdir already configured
274055acc8fcSmrg  if test -f $srcdir/config.status; then
274155acc8fcSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
27423da084b3Smrg  fi
274355acc8fcSmrgfi
27443da084b3Smrg
274555acc8fcSmrg# test whether we have cygpath
274655acc8fcSmrgif test -z "$CYGPATH_W"; then
274755acc8fcSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
274855acc8fcSmrg    CYGPATH_W='cygpath -w'
274955acc8fcSmrg  else
275055acc8fcSmrg    CYGPATH_W=echo
275155acc8fcSmrg  fi
275255acc8fcSmrgfi
27533da084b3Smrg
27543da084b3Smrg
275555acc8fcSmrg# Define the identity of the package.
275655acc8fcSmrg PACKAGE='libfontenc'
275748c85eb7Smrg VERSION='1.1.2'
27583da084b3Smrg
27593da084b3Smrg
276055acc8fcSmrgcat >>confdefs.h <<_ACEOF
276155acc8fcSmrg#define PACKAGE "$PACKAGE"
276255acc8fcSmrg_ACEOF
27633da084b3Smrg
27643da084b3Smrg
276555acc8fcSmrgcat >>confdefs.h <<_ACEOF
276655acc8fcSmrg#define VERSION "$VERSION"
276755acc8fcSmrg_ACEOF
27683da084b3Smrg
276955acc8fcSmrg# Some tools Automake needs.
27703da084b3Smrg
277155acc8fcSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
27723da084b3Smrg
27733da084b3Smrg
277455acc8fcSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
27753da084b3Smrg
27763da084b3Smrg
277755acc8fcSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
27783da084b3Smrg
27793da084b3Smrg
278055acc8fcSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
27813da084b3Smrg
27823da084b3Smrg
278355acc8fcSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
278455acc8fcSmrg
278555acc8fcSmrg# We need awk for the "check" target.  The system "awk" is bad on
278655acc8fcSmrg# some platforms.
278755acc8fcSmrg# Always define AMTAR for backward compatibility.
278855acc8fcSmrg
278955acc8fcSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
279055acc8fcSmrg
279155acc8fcSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
27923da084b3Smrg
27933da084b3Smrg
27943da084b3Smrg
27953da084b3Smrg
27963da084b3Smrg
27973da084b3Smrg
279848c85eb7Smrg# Initialize libtool
279948c85eb7Smrgcase `pwd` in
280048c85eb7Smrg  *\ * | *\	*)
280148c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
280248c85eb7Smrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
280348c85eb7Smrgesac
28043da084b3Smrg
28053da084b3Smrg
28063da084b3Smrg
280748c85eb7Smrgmacro_version='2.4.2'
280848c85eb7Smrgmacro_revision='1.3337'
28093da084b3Smrg
28103da084b3Smrg
28113da084b3Smrg
28123da084b3Smrg
28133da084b3Smrg
28143da084b3Smrg
28153da084b3Smrg
28163da084b3Smrg
28173da084b3Smrg
28183da084b3Smrg
28193da084b3Smrg
28203da084b3Smrg
28213da084b3Smrg
282248c85eb7Smrgltmain="$ac_aux_dir/ltmain.sh"
28233da084b3Smrg
282448c85eb7Smrg# Make sure we can run config.sub.
282548c85eb7Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
282648c85eb7Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
28273da084b3Smrg
282848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
282948c85eb7Smrg$as_echo_n "checking build system type... " >&6; }
283048c85eb7Smrgif ${ac_cv_build+:} false; then :
283148c85eb7Smrg  $as_echo_n "(cached) " >&6
283255acc8fcSmrgelse
283348c85eb7Smrg  ac_build_alias=$build_alias
283448c85eb7Smrgtest "x$ac_build_alias" = x &&
283548c85eb7Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
283648c85eb7Smrgtest "x$ac_build_alias" = x &&
283748c85eb7Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
283848c85eb7Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
283948c85eb7Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
284048c85eb7Smrg
284155acc8fcSmrgfi
284248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
284348c85eb7Smrg$as_echo "$ac_cv_build" >&6; }
284448c85eb7Smrgcase $ac_cv_build in
284548c85eb7Smrg*-*-*) ;;
284648c85eb7Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
284748c85eb7Smrgesac
284848c85eb7Smrgbuild=$ac_cv_build
284948c85eb7Smrgac_save_IFS=$IFS; IFS='-'
285048c85eb7Smrgset x $ac_cv_build
285148c85eb7Smrgshift
285248c85eb7Smrgbuild_cpu=$1
285348c85eb7Smrgbuild_vendor=$2
285448c85eb7Smrgshift; shift
285548c85eb7Smrg# Remember, the first character of IFS is used to create $*,
285648c85eb7Smrg# except with old shells:
285748c85eb7Smrgbuild_os=$*
285848c85eb7SmrgIFS=$ac_save_IFS
285948c85eb7Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
286055acc8fcSmrg
286155acc8fcSmrg
286248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
286348c85eb7Smrg$as_echo_n "checking host system type... " >&6; }
286448c85eb7Smrgif ${ac_cv_host+:} false; then :
286555acc8fcSmrg  $as_echo_n "(cached) " >&6
286655acc8fcSmrgelse
286748c85eb7Smrg  if test "x$host_alias" = x; then
286848c85eb7Smrg  ac_cv_host=$ac_cv_build
286955acc8fcSmrgelse
287048c85eb7Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
287148c85eb7Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
287248c85eb7Smrgfi
287348c85eb7Smrg
287448c85eb7Smrgfi
287548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
287648c85eb7Smrg$as_echo "$ac_cv_host" >&6; }
287748c85eb7Smrgcase $ac_cv_host in
287848c85eb7Smrg*-*-*) ;;
287948c85eb7Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
288048c85eb7Smrgesac
288148c85eb7Smrghost=$ac_cv_host
288248c85eb7Smrgac_save_IFS=$IFS; IFS='-'
288348c85eb7Smrgset x $ac_cv_host
288448c85eb7Smrgshift
288548c85eb7Smrghost_cpu=$1
288648c85eb7Smrghost_vendor=$2
288748c85eb7Smrgshift; shift
288848c85eb7Smrg# Remember, the first character of IFS is used to create $*,
288948c85eb7Smrg# except with old shells:
289048c85eb7Smrghost_os=$*
289148c85eb7SmrgIFS=$ac_save_IFS
289248c85eb7Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
289348c85eb7Smrg
289448c85eb7Smrg
289548c85eb7Smrg# Backslashify metacharacters that are still active within
289648c85eb7Smrg# double-quoted strings.
289748c85eb7Smrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
289848c85eb7Smrg
289948c85eb7Smrg# Same as above, but do not quote variable references.
290048c85eb7Smrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
290148c85eb7Smrg
290248c85eb7Smrg# Sed substitution to delay expansion of an escaped shell variable in a
290348c85eb7Smrg# double_quote_subst'ed string.
290448c85eb7Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
290548c85eb7Smrg
290648c85eb7Smrg# Sed substitution to delay expansion of an escaped single quote.
290748c85eb7Smrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
290848c85eb7Smrg
290948c85eb7Smrg# Sed substitution to avoid accidental globbing in evaled expressions
291048c85eb7Smrgno_glob_subst='s/\*/\\\*/g'
291148c85eb7Smrg
291248c85eb7SmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
291348c85eb7SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
291448c85eb7SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
291548c85eb7Smrg
291648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
291748c85eb7Smrg$as_echo_n "checking how to print strings... " >&6; }
291848c85eb7Smrg# Test print first, because it will be a builtin if present.
291948c85eb7Smrgif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
292048c85eb7Smrg   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
292148c85eb7Smrg  ECHO='print -r --'
292248c85eb7Smrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
292348c85eb7Smrg  ECHO='printf %s\n'
292448c85eb7Smrgelse
292548c85eb7Smrg  # Use this function as a fallback that always works.
292648c85eb7Smrg  func_fallback_echo ()
292748c85eb7Smrg  {
292848c85eb7Smrg    eval 'cat <<_LTECHO_EOF
292948c85eb7Smrg$1
293048c85eb7Smrg_LTECHO_EOF'
293148c85eb7Smrg  }
293248c85eb7Smrg  ECHO='func_fallback_echo'
293348c85eb7Smrgfi
293448c85eb7Smrg
293548c85eb7Smrg# func_echo_all arg...
293648c85eb7Smrg# Invoke $ECHO with all args, space-separated.
293748c85eb7Smrgfunc_echo_all ()
293848c85eb7Smrg{
293948c85eb7Smrg    $ECHO ""
294048c85eb7Smrg}
294148c85eb7Smrg
294248c85eb7Smrgcase "$ECHO" in
294348c85eb7Smrg  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
294448c85eb7Smrg$as_echo "printf" >&6; } ;;
294548c85eb7Smrg  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
294648c85eb7Smrg$as_echo "print -r" >&6; } ;;
294748c85eb7Smrg  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
294848c85eb7Smrg$as_echo "cat" >&6; } ;;
294948c85eb7Smrgesac
295048c85eb7Smrg
295148c85eb7Smrg
295248c85eb7Smrg
295348c85eb7Smrg
295448c85eb7Smrg
295548c85eb7Smrg
295648c85eb7Smrg
295748c85eb7Smrg
295848c85eb7Smrg
295948c85eb7Smrg
296048c85eb7Smrg
296148c85eb7Smrg
296248c85eb7Smrg
296348c85eb7Smrg
296448c85eb7SmrgDEPDIR="${am__leading_dot}deps"
296548c85eb7Smrg
296648c85eb7Smrgac_config_commands="$ac_config_commands depfiles"
296748c85eb7Smrg
296848c85eb7Smrg
296948c85eb7Smrgam_make=${MAKE-make}
297048c85eb7Smrgcat > confinc << 'END'
297148c85eb7Smrgam__doit:
297248c85eb7Smrg	@echo this is the am__doit target
297348c85eb7Smrg.PHONY: am__doit
297448c85eb7SmrgEND
297548c85eb7Smrg# If we don't find an include directive, just comment out the code.
297648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
297748c85eb7Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
297848c85eb7Smrgam__include="#"
297948c85eb7Smrgam__quote=
298048c85eb7Smrg_am_result=none
298148c85eb7Smrg# First try GNU make style include.
298248c85eb7Smrgecho "include confinc" > confmf
298348c85eb7Smrg# Ignore all kinds of additional output from `make'.
298448c85eb7Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
298548c85eb7Smrg*the\ am__doit\ target*)
298648c85eb7Smrg  am__include=include
298748c85eb7Smrg  am__quote=
298848c85eb7Smrg  _am_result=GNU
298948c85eb7Smrg  ;;
299048c85eb7Smrgesac
299148c85eb7Smrg# Now try BSD make style include.
299248c85eb7Smrgif test "$am__include" = "#"; then
299348c85eb7Smrg   echo '.include "confinc"' > confmf
299448c85eb7Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
299548c85eb7Smrg   *the\ am__doit\ target*)
299648c85eb7Smrg     am__include=.include
299748c85eb7Smrg     am__quote="\""
299848c85eb7Smrg     _am_result=BSD
299948c85eb7Smrg     ;;
300048c85eb7Smrg   esac
300148c85eb7Smrgfi
300248c85eb7Smrg
300348c85eb7Smrg
300448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
300548c85eb7Smrg$as_echo "$_am_result" >&6; }
300648c85eb7Smrgrm -f confinc confmf
300748c85eb7Smrg
300848c85eb7Smrg# Check whether --enable-dependency-tracking was given.
300948c85eb7Smrgif test "${enable_dependency_tracking+set}" = set; then :
301048c85eb7Smrg  enableval=$enable_dependency_tracking;
301148c85eb7Smrgfi
301248c85eb7Smrg
301348c85eb7Smrgif test "x$enable_dependency_tracking" != xno; then
301448c85eb7Smrg  am_depcomp="$ac_aux_dir/depcomp"
301548c85eb7Smrg  AMDEPBACKSLASH='\'
301648c85eb7Smrg  am__nodep='_no'
301748c85eb7Smrgfi
301848c85eb7Smrg if test "x$enable_dependency_tracking" != xno; then
301948c85eb7Smrg  AMDEP_TRUE=
302048c85eb7Smrg  AMDEP_FALSE='#'
302148c85eb7Smrgelse
302248c85eb7Smrg  AMDEP_TRUE='#'
302348c85eb7Smrg  AMDEP_FALSE=
302448c85eb7Smrgfi
302548c85eb7Smrg
302648c85eb7Smrg
302748c85eb7Smrgac_ext=c
302848c85eb7Smrgac_cpp='$CPP $CPPFLAGS'
302948c85eb7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
303048c85eb7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
303148c85eb7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
303248c85eb7Smrgif test -n "$ac_tool_prefix"; then
303348c85eb7Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
303448c85eb7Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
303548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
303648c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
303748c85eb7Smrgif ${ac_cv_prog_CC+:} false; then :
303848c85eb7Smrg  $as_echo_n "(cached) " >&6
303948c85eb7Smrgelse
304048c85eb7Smrg  if test -n "$CC"; then
304148c85eb7Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
304248c85eb7Smrgelse
304348c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
304448c85eb7Smrgfor as_dir in $PATH
304548c85eb7Smrgdo
304648c85eb7Smrg  IFS=$as_save_IFS
304748c85eb7Smrg  test -z "$as_dir" && as_dir=.
304848c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
304948c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
305048c85eb7Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
305148c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
305248c85eb7Smrg    break 2
305348c85eb7Smrg  fi
305448c85eb7Smrgdone
305548c85eb7Smrg  done
305648c85eb7SmrgIFS=$as_save_IFS
305748c85eb7Smrg
305855acc8fcSmrgfi
305955acc8fcSmrgfi
306055acc8fcSmrgCC=$ac_cv_prog_CC
306155acc8fcSmrgif test -n "$CC"; then
306255acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
306355acc8fcSmrg$as_echo "$CC" >&6; }
306455acc8fcSmrgelse
306555acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
306655acc8fcSmrg$as_echo "no" >&6; }
306755acc8fcSmrgfi
30683da084b3Smrg
30693da084b3Smrg
307055acc8fcSmrgfi
307155acc8fcSmrgif test -z "$ac_cv_prog_CC"; then
307255acc8fcSmrg  ac_ct_CC=$CC
307355acc8fcSmrg  # Extract the first word of "gcc", so it can be a program name with args.
307455acc8fcSmrgset dummy gcc; ac_word=$2
307555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
307655acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; }
307755acc8fcSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
307855acc8fcSmrg  $as_echo_n "(cached) " >&6
307955acc8fcSmrgelse
308055acc8fcSmrg  if test -n "$ac_ct_CC"; then
308155acc8fcSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
308255acc8fcSmrgelse
308355acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
308455acc8fcSmrgfor as_dir in $PATH
308555acc8fcSmrgdo
308655acc8fcSmrg  IFS=$as_save_IFS
308755acc8fcSmrg  test -z "$as_dir" && as_dir=.
308855acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
308955acc8fcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
309055acc8fcSmrg    ac_cv_prog_ac_ct_CC="gcc"
309155acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
309255acc8fcSmrg    break 2
309355acc8fcSmrg  fi
309455acc8fcSmrgdone
309555acc8fcSmrg  done
309655acc8fcSmrgIFS=$as_save_IFS
30973da084b3Smrg
309855acc8fcSmrgfi
309955acc8fcSmrgfi
310055acc8fcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
310155acc8fcSmrgif test -n "$ac_ct_CC"; then
310255acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
310355acc8fcSmrg$as_echo "$ac_ct_CC" >&6; }
310455acc8fcSmrgelse
310555acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
310655acc8fcSmrg$as_echo "no" >&6; }
310755acc8fcSmrgfi
31083da084b3Smrg
310955acc8fcSmrg  if test "x$ac_ct_CC" = x; then
311055acc8fcSmrg    CC=""
311155acc8fcSmrg  else
311255acc8fcSmrg    case $cross_compiling:$ac_tool_warned in
311355acc8fcSmrgyes:)
311455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
311555acc8fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
311655acc8fcSmrgac_tool_warned=yes ;;
311755acc8fcSmrgesac
311855acc8fcSmrg    CC=$ac_ct_CC
311955acc8fcSmrg  fi
312055acc8fcSmrgelse
312155acc8fcSmrg  CC="$ac_cv_prog_CC"
312255acc8fcSmrgfi
31233da084b3Smrg
312455acc8fcSmrgif test -z "$CC"; then
312555acc8fcSmrg          if test -n "$ac_tool_prefix"; then
312655acc8fcSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
312755acc8fcSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
312855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
312955acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; }
313055acc8fcSmrgif ${ac_cv_prog_CC+:} false; then :
313155acc8fcSmrg  $as_echo_n "(cached) " >&6
313255acc8fcSmrgelse
313355acc8fcSmrg  if test -n "$CC"; then
313455acc8fcSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
313555acc8fcSmrgelse
313655acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
313755acc8fcSmrgfor as_dir in $PATH
313855acc8fcSmrgdo
313955acc8fcSmrg  IFS=$as_save_IFS
314055acc8fcSmrg  test -z "$as_dir" && as_dir=.
314155acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
314255acc8fcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
314355acc8fcSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
314455acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
314555acc8fcSmrg    break 2
314655acc8fcSmrg  fi
314755acc8fcSmrgdone
314855acc8fcSmrg  done
314955acc8fcSmrgIFS=$as_save_IFS
31503da084b3Smrg
315155acc8fcSmrgfi
315255acc8fcSmrgfi
315355acc8fcSmrgCC=$ac_cv_prog_CC
315455acc8fcSmrgif test -n "$CC"; then
315555acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
315655acc8fcSmrg$as_echo "$CC" >&6; }
315755acc8fcSmrgelse
315855acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
315955acc8fcSmrg$as_echo "no" >&6; }
316055acc8fcSmrgfi
31613da084b3Smrg
31623da084b3Smrg
316355acc8fcSmrg  fi
31643da084b3Smrgfi
316555acc8fcSmrgif test -z "$CC"; then
316655acc8fcSmrg  # Extract the first word of "cc", so it can be a program name with args.
316755acc8fcSmrgset dummy cc; ac_word=$2
316855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
316955acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; }
317055acc8fcSmrgif ${ac_cv_prog_CC+:} false; then :
317155acc8fcSmrg  $as_echo_n "(cached) " >&6
317255acc8fcSmrgelse
317355acc8fcSmrg  if test -n "$CC"; then
317455acc8fcSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
317555acc8fcSmrgelse
317655acc8fcSmrg  ac_prog_rejected=no
317755acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
317855acc8fcSmrgfor as_dir in $PATH
317955acc8fcSmrgdo
318055acc8fcSmrg  IFS=$as_save_IFS
318155acc8fcSmrg  test -z "$as_dir" && as_dir=.
318255acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
318355acc8fcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
318455acc8fcSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
318555acc8fcSmrg       ac_prog_rejected=yes
318655acc8fcSmrg       continue
318755acc8fcSmrg     fi
318855acc8fcSmrg    ac_cv_prog_CC="cc"
318955acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
319055acc8fcSmrg    break 2
319155acc8fcSmrg  fi
319255acc8fcSmrgdone
319355acc8fcSmrg  done
319455acc8fcSmrgIFS=$as_save_IFS
31953da084b3Smrg
319655acc8fcSmrgif test $ac_prog_rejected = yes; then
319755acc8fcSmrg  # We found a bogon in the path, so make sure we never use it.
319855acc8fcSmrg  set dummy $ac_cv_prog_CC
319955acc8fcSmrg  shift
320055acc8fcSmrg  if test $# != 0; then
320155acc8fcSmrg    # We chose a different compiler from the bogus one.
320255acc8fcSmrg    # However, it has the same basename, so the bogon will be chosen
320355acc8fcSmrg    # first if we set CC to just the basename; use the full file name.
320455acc8fcSmrg    shift
320555acc8fcSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
320655acc8fcSmrg  fi
320755acc8fcSmrgfi
320855acc8fcSmrgfi
320955acc8fcSmrgfi
321055acc8fcSmrgCC=$ac_cv_prog_CC
321155acc8fcSmrgif test -n "$CC"; then
321255acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
321355acc8fcSmrg$as_echo "$CC" >&6; }
321455acc8fcSmrgelse
321555acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
321655acc8fcSmrg$as_echo "no" >&6; }
3217d63fdb69Smrgfi
3218d63fdb69Smrg
321955acc8fcSmrg
322055acc8fcSmrgfi
322155acc8fcSmrgif test -z "$CC"; then
322255acc8fcSmrg  if test -n "$ac_tool_prefix"; then
322355acc8fcSmrg  for ac_prog in cl.exe
322455acc8fcSmrg  do
322555acc8fcSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
322655acc8fcSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
322755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322855acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; }
322955acc8fcSmrgif ${ac_cv_prog_CC+:} false; then :
323055acc8fcSmrg  $as_echo_n "(cached) " >&6
323155acc8fcSmrgelse
323255acc8fcSmrg  if test -n "$CC"; then
323355acc8fcSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
323455acc8fcSmrgelse
323555acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
323655acc8fcSmrgfor as_dir in $PATH
32373da084b3Smrgdo
323855acc8fcSmrg  IFS=$as_save_IFS
323955acc8fcSmrg  test -z "$as_dir" && as_dir=.
324055acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
324155acc8fcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
324255acc8fcSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
324355acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
324455acc8fcSmrg    break 2
324555acc8fcSmrg  fi
32463da084b3Smrgdone
324755acc8fcSmrg  done
324855acc8fcSmrgIFS=$as_save_IFS
32493da084b3Smrg
325055acc8fcSmrgfi
325155acc8fcSmrgfi
325255acc8fcSmrgCC=$ac_cv_prog_CC
325355acc8fcSmrgif test -n "$CC"; then
325455acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
325555acc8fcSmrg$as_echo "$CC" >&6; }
325655acc8fcSmrgelse
325755acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
325855acc8fcSmrg$as_echo "no" >&6; }
325955acc8fcSmrgfi
32603da084b3Smrg
326155acc8fcSmrg
326255acc8fcSmrg    test -n "$CC" && break
326355acc8fcSmrg  done
326455acc8fcSmrgfi
326555acc8fcSmrgif test -z "$CC"; then
326655acc8fcSmrg  ac_ct_CC=$CC
326755acc8fcSmrg  for ac_prog in cl.exe
326855acc8fcSmrgdo
326955acc8fcSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
327055acc8fcSmrgset dummy $ac_prog; ac_word=$2
327155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
327255acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; }
327355acc8fcSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
327455acc8fcSmrg  $as_echo_n "(cached) " >&6
327555acc8fcSmrgelse
327655acc8fcSmrg  if test -n "$ac_ct_CC"; then
327755acc8fcSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
327855acc8fcSmrgelse
327955acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
328055acc8fcSmrgfor as_dir in $PATH
328155acc8fcSmrgdo
328255acc8fcSmrg  IFS=$as_save_IFS
328355acc8fcSmrg  test -z "$as_dir" && as_dir=.
328455acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
328555acc8fcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
328655acc8fcSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
328755acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
328855acc8fcSmrg    break 2
32893da084b3Smrg  fi
329055acc8fcSmrgdone
329155acc8fcSmrg  done
329255acc8fcSmrgIFS=$as_save_IFS
329355acc8fcSmrg
329455acc8fcSmrgfi
329555acc8fcSmrgfi
329655acc8fcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
329755acc8fcSmrgif test -n "$ac_ct_CC"; then
329855acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
329955acc8fcSmrg$as_echo "$ac_ct_CC" >&6; }
330055acc8fcSmrgelse
330155acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
330255acc8fcSmrg$as_echo "no" >&6; }
33033da084b3Smrgfi
33043da084b3Smrg
33053da084b3Smrg
330655acc8fcSmrg  test -n "$ac_ct_CC" && break
330755acc8fcSmrgdone
33083da084b3Smrg
330955acc8fcSmrg  if test "x$ac_ct_CC" = x; then
331055acc8fcSmrg    CC=""
331155acc8fcSmrg  else
331255acc8fcSmrg    case $cross_compiling:$ac_tool_warned in
331355acc8fcSmrgyes:)
331455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
331555acc8fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
331655acc8fcSmrgac_tool_warned=yes ;;
331755acc8fcSmrgesac
331855acc8fcSmrg    CC=$ac_ct_CC
33193da084b3Smrg  fi
33203da084b3Smrgfi
332155acc8fcSmrg
33223da084b3Smrgfi
33233da084b3Smrg
33243da084b3Smrg
332555acc8fcSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
332655acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
332755acc8fcSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
332855acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
33293da084b3Smrg
333055acc8fcSmrg# Provide some information about the compiler.
333155acc8fcSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
333255acc8fcSmrgset X $ac_compile
333355acc8fcSmrgac_compiler=$2
333455acc8fcSmrgfor ac_option in --version -v -V -qversion; do
333555acc8fcSmrg  { { ac_try="$ac_compiler $ac_option >&5"
333655acc8fcSmrgcase "(($ac_try" in
333755acc8fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
333855acc8fcSmrg  *) ac_try_echo=$ac_try;;
333955acc8fcSmrgesac
334055acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
334155acc8fcSmrg$as_echo "$ac_try_echo"; } >&5
334255acc8fcSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
334355acc8fcSmrg  ac_status=$?
334455acc8fcSmrg  if test -s conftest.err; then
334555acc8fcSmrg    sed '10a\
334655acc8fcSmrg... rest of stderr output deleted ...
334755acc8fcSmrg         10q' conftest.err >conftest.er1
334855acc8fcSmrg    cat conftest.er1 >&5
334955acc8fcSmrg  fi
335055acc8fcSmrg  rm -f conftest.er1 conftest.err
335155acc8fcSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
335255acc8fcSmrg  test $ac_status = 0; }
335355acc8fcSmrgdone
33543da084b3Smrg
335555acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
335655acc8fcSmrg/* end confdefs.h.  */
33573da084b3Smrg
335855acc8fcSmrgint
335955acc8fcSmrgmain ()
336055acc8fcSmrg{
33613da084b3Smrg
336255acc8fcSmrg  ;
336355acc8fcSmrg  return 0;
336455acc8fcSmrg}
336555acc8fcSmrg_ACEOF
336655acc8fcSmrgac_clean_files_save=$ac_clean_files
336755acc8fcSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
336855acc8fcSmrg# Try to create an executable without -o first, disregard a.out.
336955acc8fcSmrg# It will help us diagnose broken compilers, and finding out an intuition
337055acc8fcSmrg# of exeext.
337155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
337255acc8fcSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
337355acc8fcSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
33743da084b3Smrg
337555acc8fcSmrg# The possible output files:
337655acc8fcSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
33773da084b3Smrg
337855acc8fcSmrgac_rmfiles=
337955acc8fcSmrgfor ac_file in $ac_files
338055acc8fcSmrgdo
338155acc8fcSmrg  case $ac_file in
338255acc8fcSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
338355acc8fcSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
338455acc8fcSmrg  esac
338555acc8fcSmrgdone
338655acc8fcSmrgrm -f $ac_rmfiles
33873da084b3Smrg
338855acc8fcSmrgif { { ac_try="$ac_link_default"
338955acc8fcSmrgcase "(($ac_try" in
339055acc8fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
339155acc8fcSmrg  *) ac_try_echo=$ac_try;;
339255acc8fcSmrgesac
339355acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
339455acc8fcSmrg$as_echo "$ac_try_echo"; } >&5
339555acc8fcSmrg  (eval "$ac_link_default") 2>&5
339655acc8fcSmrg  ac_status=$?
339755acc8fcSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
339855acc8fcSmrg  test $ac_status = 0; }; then :
339955acc8fcSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
340055acc8fcSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
340155acc8fcSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
340255acc8fcSmrg# so that the user can short-circuit this test for compilers unknown to
340355acc8fcSmrg# Autoconf.
340455acc8fcSmrgfor ac_file in $ac_files ''
340555acc8fcSmrgdo
340655acc8fcSmrg  test -f "$ac_file" || continue
340755acc8fcSmrg  case $ac_file in
340855acc8fcSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
340955acc8fcSmrg	;;
341055acc8fcSmrg    [ab].out )
341155acc8fcSmrg	# We found the default executable, but exeext='' is most
341255acc8fcSmrg	# certainly right.
341355acc8fcSmrg	break;;
341455acc8fcSmrg    *.* )
341555acc8fcSmrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
341655acc8fcSmrg	then :; else
341755acc8fcSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
341855acc8fcSmrg	fi
341955acc8fcSmrg	# We set ac_cv_exeext here because the later test for it is not
342055acc8fcSmrg	# safe: cross compilers may not add the suffix if given an `-o'
342155acc8fcSmrg	# argument, so we may need to know it at that point already.
342255acc8fcSmrg	# Even if this section looks crufty: it has the advantage of
342355acc8fcSmrg	# actually working.
342455acc8fcSmrg	break;;
342555acc8fcSmrg    * )
342655acc8fcSmrg	break;;
342755acc8fcSmrg  esac
342855acc8fcSmrgdone
342955acc8fcSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
34303da084b3Smrg
343155acc8fcSmrgelse
343255acc8fcSmrg  ac_file=''
343355acc8fcSmrgfi
343455acc8fcSmrgif test -z "$ac_file"; then :
343555acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
343655acc8fcSmrg$as_echo "no" >&6; }
343755acc8fcSmrg$as_echo "$as_me: failed program was:" >&5
343855acc8fcSmrgsed 's/^/| /' conftest.$ac_ext >&5
34393da084b3Smrg
344055acc8fcSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
344155acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
344255acc8fcSmrgas_fn_error 77 "C compiler cannot create executables
344355acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
344455acc8fcSmrgelse
344555acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
344655acc8fcSmrg$as_echo "yes" >&6; }
344755acc8fcSmrgfi
344855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
344955acc8fcSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
345055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
345155acc8fcSmrg$as_echo "$ac_file" >&6; }
345255acc8fcSmrgac_exeext=$ac_cv_exeext
34533da084b3Smrg
345455acc8fcSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
345555acc8fcSmrgac_clean_files=$ac_clean_files_save
345655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
345755acc8fcSmrg$as_echo_n "checking for suffix of executables... " >&6; }
345855acc8fcSmrgif { { ac_try="$ac_link"
345955acc8fcSmrgcase "(($ac_try" in
346055acc8fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
346155acc8fcSmrg  *) ac_try_echo=$ac_try;;
346255acc8fcSmrgesac
346355acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
346455acc8fcSmrg$as_echo "$ac_try_echo"; } >&5
346555acc8fcSmrg  (eval "$ac_link") 2>&5
346655acc8fcSmrg  ac_status=$?
346755acc8fcSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
346855acc8fcSmrg  test $ac_status = 0; }; then :
346955acc8fcSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
347055acc8fcSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
347155acc8fcSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
347255acc8fcSmrg# `rm'.
347355acc8fcSmrgfor ac_file in conftest.exe conftest conftest.*; do
347455acc8fcSmrg  test -f "$ac_file" || continue
347555acc8fcSmrg  case $ac_file in
347655acc8fcSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
347755acc8fcSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
347855acc8fcSmrg	  break;;
347955acc8fcSmrg    * ) break;;
348055acc8fcSmrg  esac
348155acc8fcSmrgdone
348255acc8fcSmrgelse
348355acc8fcSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
348455acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
348555acc8fcSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
348655acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
348755acc8fcSmrgfi
348855acc8fcSmrgrm -f conftest conftest$ac_cv_exeext
348955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
349055acc8fcSmrg$as_echo "$ac_cv_exeext" >&6; }
349155acc8fcSmrg
349255acc8fcSmrgrm -f conftest.$ac_ext
349355acc8fcSmrgEXEEXT=$ac_cv_exeext
349455acc8fcSmrgac_exeext=$EXEEXT
349555acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
349655acc8fcSmrg/* end confdefs.h.  */
349755acc8fcSmrg#include <stdio.h>
349855acc8fcSmrgint
349955acc8fcSmrgmain ()
350055acc8fcSmrg{
350155acc8fcSmrgFILE *f = fopen ("conftest.out", "w");
350255acc8fcSmrg return ferror (f) || fclose (f) != 0;
350355acc8fcSmrg
350455acc8fcSmrg  ;
350555acc8fcSmrg  return 0;
350655acc8fcSmrg}
35073da084b3Smrg_ACEOF
350855acc8fcSmrgac_clean_files="$ac_clean_files conftest.out"
350955acc8fcSmrg# Check that the compiler produces executables we can run.  If not, either
351055acc8fcSmrg# the compiler is broken, or we cross compile.
351155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
351255acc8fcSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
351355acc8fcSmrgif test "$cross_compiling" != yes; then
351455acc8fcSmrg  { { ac_try="$ac_link"
351555acc8fcSmrgcase "(($ac_try" in
351655acc8fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
351755acc8fcSmrg  *) ac_try_echo=$ac_try;;
351855acc8fcSmrgesac
351955acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
352055acc8fcSmrg$as_echo "$ac_try_echo"; } >&5
352155acc8fcSmrg  (eval "$ac_link") 2>&5
352255acc8fcSmrg  ac_status=$?
352355acc8fcSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
352455acc8fcSmrg  test $ac_status = 0; }
352555acc8fcSmrg  if { ac_try='./conftest$ac_cv_exeext'
352655acc8fcSmrg  { { case "(($ac_try" in
352755acc8fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
352855acc8fcSmrg  *) ac_try_echo=$ac_try;;
352955acc8fcSmrgesac
353055acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
353155acc8fcSmrg$as_echo "$ac_try_echo"; } >&5
353255acc8fcSmrg  (eval "$ac_try") 2>&5
353355acc8fcSmrg  ac_status=$?
353455acc8fcSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
353555acc8fcSmrg  test $ac_status = 0; }; }; then
353655acc8fcSmrg    cross_compiling=no
353755acc8fcSmrg  else
353855acc8fcSmrg    if test "$cross_compiling" = maybe; then
353955acc8fcSmrg	cross_compiling=yes
354055acc8fcSmrg    else
354155acc8fcSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
354255acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
354355acc8fcSmrgas_fn_error $? "cannot run C compiled programs.
354455acc8fcSmrgIf you meant to cross compile, use \`--host'.
354555acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
354655acc8fcSmrg    fi
354755acc8fcSmrg  fi
35483da084b3Smrgfi
354955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
355055acc8fcSmrg$as_echo "$cross_compiling" >&6; }
35513da084b3Smrg
355255acc8fcSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
355355acc8fcSmrgac_clean_files=$ac_clean_files_save
355455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
355555acc8fcSmrg$as_echo_n "checking for suffix of object files... " >&6; }
355655acc8fcSmrgif ${ac_cv_objext+:} false; then :
355755acc8fcSmrg  $as_echo_n "(cached) " >&6
355855acc8fcSmrgelse
355955acc8fcSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
356055acc8fcSmrg/* end confdefs.h.  */
35613da084b3Smrg
356255acc8fcSmrgint
356355acc8fcSmrgmain ()
356455acc8fcSmrg{
35653da084b3Smrg
356655acc8fcSmrg  ;
356755acc8fcSmrg  return 0;
356855acc8fcSmrg}
356955acc8fcSmrg_ACEOF
357055acc8fcSmrgrm -f conftest.o conftest.obj
357155acc8fcSmrgif { { ac_try="$ac_compile"
357255acc8fcSmrgcase "(($ac_try" in
357355acc8fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
357455acc8fcSmrg  *) ac_try_echo=$ac_try;;
357555acc8fcSmrgesac
357655acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
357755acc8fcSmrg$as_echo "$ac_try_echo"; } >&5
357855acc8fcSmrg  (eval "$ac_compile") 2>&5
357955acc8fcSmrg  ac_status=$?
358055acc8fcSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
358155acc8fcSmrg  test $ac_status = 0; }; then :
358255acc8fcSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
358355acc8fcSmrg  test -f "$ac_file" || continue;
358455acc8fcSmrg  case $ac_file in
358555acc8fcSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
358655acc8fcSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
358755acc8fcSmrg       break;;
358855acc8fcSmrg  esac
358955acc8fcSmrgdone
359055acc8fcSmrgelse
359155acc8fcSmrg  $as_echo "$as_me: failed program was:" >&5
359255acc8fcSmrgsed 's/^/| /' conftest.$ac_ext >&5
35933da084b3Smrg
359455acc8fcSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
359555acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
359655acc8fcSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
359755acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
359855acc8fcSmrgfi
359955acc8fcSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
360055acc8fcSmrgfi
360155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
360255acc8fcSmrg$as_echo "$ac_cv_objext" >&6; }
360355acc8fcSmrgOBJEXT=$ac_cv_objext
360455acc8fcSmrgac_objext=$OBJEXT
360555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
360655acc8fcSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
360755acc8fcSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
360855acc8fcSmrg  $as_echo_n "(cached) " >&6
360955acc8fcSmrgelse
361055acc8fcSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
361155acc8fcSmrg/* end confdefs.h.  */
36123da084b3Smrg
361355acc8fcSmrgint
361455acc8fcSmrgmain ()
361555acc8fcSmrg{
361655acc8fcSmrg#ifndef __GNUC__
361755acc8fcSmrg       choke me
361855acc8fcSmrg#endif
36193da084b3Smrg
362055acc8fcSmrg  ;
362155acc8fcSmrg  return 0;
362255acc8fcSmrg}
36233da084b3Smrg_ACEOF
362455acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then :
362555acc8fcSmrg  ac_compiler_gnu=yes
362655acc8fcSmrgelse
362755acc8fcSmrg  ac_compiler_gnu=no
36283da084b3Smrgfi
362955acc8fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
363055acc8fcSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
36313da084b3Smrg
363255acc8fcSmrgfi
363355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
363455acc8fcSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
363555acc8fcSmrgif test $ac_compiler_gnu = yes; then
363655acc8fcSmrg  GCC=yes
363755acc8fcSmrgelse
363855acc8fcSmrg  GCC=
363955acc8fcSmrgfi
364055acc8fcSmrgac_test_CFLAGS=${CFLAGS+set}
364155acc8fcSmrgac_save_CFLAGS=$CFLAGS
364255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
364355acc8fcSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
364455acc8fcSmrgif ${ac_cv_prog_cc_g+:} false; then :
364555acc8fcSmrg  $as_echo_n "(cached) " >&6
364655acc8fcSmrgelse
364755acc8fcSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
364855acc8fcSmrg   ac_c_werror_flag=yes
364955acc8fcSmrg   ac_cv_prog_cc_g=no
365055acc8fcSmrg   CFLAGS="-g"
365155acc8fcSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
365255acc8fcSmrg/* end confdefs.h.  */
36533da084b3Smrg
365455acc8fcSmrgint
365555acc8fcSmrgmain ()
365655acc8fcSmrg{
36573da084b3Smrg
365855acc8fcSmrg  ;
365955acc8fcSmrg  return 0;
366055acc8fcSmrg}
366155acc8fcSmrg_ACEOF
366255acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then :
366355acc8fcSmrg  ac_cv_prog_cc_g=yes
366455acc8fcSmrgelse
366555acc8fcSmrg  CFLAGS=""
366655acc8fcSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
366755acc8fcSmrg/* end confdefs.h.  */
36683da084b3Smrg
366955acc8fcSmrgint
367055acc8fcSmrgmain ()
367155acc8fcSmrg{
36723da084b3Smrg
367355acc8fcSmrg  ;
367455acc8fcSmrg  return 0;
367555acc8fcSmrg}
36763da084b3Smrg_ACEOF
367755acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then :
36783da084b3Smrg
367955acc8fcSmrgelse
368055acc8fcSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
368155acc8fcSmrg	 CFLAGS="-g"
368255acc8fcSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
368355acc8fcSmrg/* end confdefs.h.  */
36843da084b3Smrg
368555acc8fcSmrgint
368655acc8fcSmrgmain ()
368755acc8fcSmrg{
36883da084b3Smrg
368955acc8fcSmrg  ;
369055acc8fcSmrg  return 0;
369155acc8fcSmrg}
36923da084b3Smrg_ACEOF
369355acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then :
369455acc8fcSmrg  ac_cv_prog_cc_g=yes
369555acc8fcSmrgfi
369655acc8fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
369755acc8fcSmrgfi
369855acc8fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
369955acc8fcSmrgfi
370055acc8fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
370155acc8fcSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
370255acc8fcSmrgfi
370355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
370455acc8fcSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
370555acc8fcSmrgif test "$ac_test_CFLAGS" = set; then
370655acc8fcSmrg  CFLAGS=$ac_save_CFLAGS
370755acc8fcSmrgelif test $ac_cv_prog_cc_g = yes; then
370855acc8fcSmrg  if test "$GCC" = yes; then
370955acc8fcSmrg    CFLAGS="-g -O2"
371055acc8fcSmrg  else
371155acc8fcSmrg    CFLAGS="-g"
371255acc8fcSmrg  fi
371355acc8fcSmrgelse
371455acc8fcSmrg  if test "$GCC" = yes; then
371555acc8fcSmrg    CFLAGS="-O2"
371655acc8fcSmrg  else
371755acc8fcSmrg    CFLAGS=
371855acc8fcSmrg  fi
371955acc8fcSmrgfi
372055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
372155acc8fcSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
372255acc8fcSmrgif ${ac_cv_prog_cc_c89+:} false; then :
372355acc8fcSmrg  $as_echo_n "(cached) " >&6
372455acc8fcSmrgelse
372555acc8fcSmrg  ac_cv_prog_cc_c89=no
372655acc8fcSmrgac_save_CC=$CC
372755acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
372855acc8fcSmrg/* end confdefs.h.  */
372955acc8fcSmrg#include <stdarg.h>
373055acc8fcSmrg#include <stdio.h>
373155acc8fcSmrg#include <sys/types.h>
373255acc8fcSmrg#include <sys/stat.h>
373355acc8fcSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
373455acc8fcSmrgstruct buf { int x; };
373555acc8fcSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
373655acc8fcSmrgstatic char *e (p, i)
373755acc8fcSmrg     char **p;
373855acc8fcSmrg     int i;
37393da084b3Smrg{
374055acc8fcSmrg  return p[i];
374155acc8fcSmrg}
374255acc8fcSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
374355acc8fcSmrg{
374455acc8fcSmrg  char *s;
374555acc8fcSmrg  va_list v;
374655acc8fcSmrg  va_start (v,p);
374755acc8fcSmrg  s = g (p, va_arg (v,int));
374855acc8fcSmrg  va_end (v);
374955acc8fcSmrg  return s;
375055acc8fcSmrg}
37513da084b3Smrg
375255acc8fcSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
375355acc8fcSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
375455acc8fcSmrg   These don't provoke an error unfortunately, instead are silently treated
375555acc8fcSmrg   as 'x'.  The following induces an error, until -std is added to get
375655acc8fcSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
375755acc8fcSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
375855acc8fcSmrg   that's true only with -std.  */
375955acc8fcSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
37603da084b3Smrg
376155acc8fcSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
376255acc8fcSmrg   inside strings and character constants.  */
376355acc8fcSmrg#define FOO(x) 'x'
376455acc8fcSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
37653da084b3Smrg
376655acc8fcSmrgint test (int i, double x);
376755acc8fcSmrgstruct s1 {int (*f) (int a);};
376855acc8fcSmrgstruct s2 {int (*f) (double a);};
376955acc8fcSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
377055acc8fcSmrgint argc;
377155acc8fcSmrgchar **argv;
377255acc8fcSmrgint
377355acc8fcSmrgmain ()
377455acc8fcSmrg{
377555acc8fcSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
377655acc8fcSmrg  ;
377755acc8fcSmrg  return 0;
377855acc8fcSmrg}
377955acc8fcSmrg_ACEOF
378055acc8fcSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
378155acc8fcSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
37823da084b3Smrgdo
378355acc8fcSmrg  CC="$ac_save_CC $ac_arg"
378455acc8fcSmrg  if ac_fn_c_try_compile "$LINENO"; then :
378555acc8fcSmrg  ac_cv_prog_cc_c89=$ac_arg
378655acc8fcSmrgfi
378755acc8fcSmrgrm -f core conftest.err conftest.$ac_objext
378855acc8fcSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
37893da084b3Smrgdone
379055acc8fcSmrgrm -f conftest.$ac_ext
379155acc8fcSmrgCC=$ac_save_CC
37923da084b3Smrg
379355acc8fcSmrgfi
379455acc8fcSmrg# AC_CACHE_VAL
379555acc8fcSmrgcase "x$ac_cv_prog_cc_c89" in
379655acc8fcSmrg  x)
379755acc8fcSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
379855acc8fcSmrg$as_echo "none needed" >&6; } ;;
379955acc8fcSmrg  xno)
380055acc8fcSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
380155acc8fcSmrg$as_echo "unsupported" >&6; } ;;
380255acc8fcSmrg  *)
380355acc8fcSmrg    CC="$CC $ac_cv_prog_cc_c89"
380455acc8fcSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
380555acc8fcSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
380655acc8fcSmrgesac
380755acc8fcSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
38083da084b3Smrg
380955acc8fcSmrgfi
38103da084b3Smrg
381155acc8fcSmrgac_ext=c
381255acc8fcSmrgac_cpp='$CPP $CPPFLAGS'
381355acc8fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
381455acc8fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
381555acc8fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38163da084b3Smrg
381755acc8fcSmrgdepcc="$CC"   am_compiler_list=
38183da084b3Smrg
381955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
382055acc8fcSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
382155acc8fcSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
382255acc8fcSmrg  $as_echo_n "(cached) " >&6
382355acc8fcSmrgelse
382455acc8fcSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
382555acc8fcSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
382655acc8fcSmrg  # making bogus files that we don't know about and never remove.  For
382755acc8fcSmrg  # instance it was reported that on HP-UX the gcc test will end up
382855acc8fcSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
382955acc8fcSmrg  # in D'.
383048c85eb7Smrg  rm -rf conftest.dir
383155acc8fcSmrg  mkdir conftest.dir
383255acc8fcSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
383355acc8fcSmrg  # using a relative directory.
383455acc8fcSmrg  cp "$am_depcomp" conftest.dir
383555acc8fcSmrg  cd conftest.dir
383655acc8fcSmrg  # We will build objects and dependencies in a subdirectory because
383755acc8fcSmrg  # it helps to detect inapplicable dependency modes.  For instance
383855acc8fcSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
383955acc8fcSmrg  # side effect of compilation, but ICC will put the dependencies in
384055acc8fcSmrg  # the current directory while Tru64 will put them in the object
384155acc8fcSmrg  # directory.
384255acc8fcSmrg  mkdir sub
38433da084b3Smrg
384455acc8fcSmrg  am_cv_CC_dependencies_compiler_type=none
384555acc8fcSmrg  if test "$am_compiler_list" = ""; then
384655acc8fcSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
384755acc8fcSmrg  fi
384855acc8fcSmrg  am__universal=false
384955acc8fcSmrg  case " $depcc " in #(
385055acc8fcSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
385155acc8fcSmrg     esac
38523da084b3Smrg
385355acc8fcSmrg  for depmode in $am_compiler_list; do
385455acc8fcSmrg    # Setup a source with many dependencies, because some compilers
385555acc8fcSmrg    # like to wrap large dependency lists on column 80 (with \), and
385655acc8fcSmrg    # we should not choose a depcomp mode which is confused by this.
385755acc8fcSmrg    #
385855acc8fcSmrg    # We need to recreate these files for each test, as the compiler may
385955acc8fcSmrg    # overwrite some of them when testing with obscure command lines.
386055acc8fcSmrg    # This happens at least with the AIX C compiler.
386155acc8fcSmrg    : > sub/conftest.c
386255acc8fcSmrg    for i in 1 2 3 4 5 6; do
386355acc8fcSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
386455acc8fcSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
386555acc8fcSmrg      # Solaris 8's {/usr,}/bin/sh.
386655acc8fcSmrg      touch sub/conftst$i.h
386755acc8fcSmrg    done
386855acc8fcSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
38693da084b3Smrg
387055acc8fcSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
387155acc8fcSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
387255acc8fcSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
387355acc8fcSmrg    # versions had trouble with output in subdirs
387455acc8fcSmrg    am__obj=sub/conftest.${OBJEXT-o}
387555acc8fcSmrg    am__minus_obj="-o $am__obj"
387655acc8fcSmrg    case $depmode in
387755acc8fcSmrg    gcc)
387855acc8fcSmrg      # This depmode causes a compiler race in universal mode.
387955acc8fcSmrg      test "$am__universal" = false || continue
388055acc8fcSmrg      ;;
388155acc8fcSmrg    nosideeffect)
388255acc8fcSmrg      # after this tag, mechanisms are not by side-effect, so they'll
388355acc8fcSmrg      # only be used when explicitly requested
388455acc8fcSmrg      if test "x$enable_dependency_tracking" = xyes; then
388555acc8fcSmrg	continue
388655acc8fcSmrg      else
388755acc8fcSmrg	break
388855acc8fcSmrg      fi
388955acc8fcSmrg      ;;
389048c85eb7Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
389155acc8fcSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
389255acc8fcSmrg      # not run yet.  These depmodes are late enough in the game, and
389355acc8fcSmrg      # so weak that their functioning should not be impacted.
389455acc8fcSmrg      am__obj=conftest.${OBJEXT-o}
389555acc8fcSmrg      am__minus_obj=
389655acc8fcSmrg      ;;
389755acc8fcSmrg    none) break ;;
389855acc8fcSmrg    esac
389955acc8fcSmrg    if depmode=$depmode \
390055acc8fcSmrg       source=sub/conftest.c object=$am__obj \
390155acc8fcSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
390255acc8fcSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
390355acc8fcSmrg         >/dev/null 2>conftest.err &&
390455acc8fcSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
390555acc8fcSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
390655acc8fcSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
390755acc8fcSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
390855acc8fcSmrg      # icc doesn't choke on unknown options, it will just issue warnings
390955acc8fcSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
391055acc8fcSmrg      # that says an option was ignored or not supported.
391155acc8fcSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
391255acc8fcSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
391355acc8fcSmrg      # The diagnosis changed in icc 8.0:
391455acc8fcSmrg      #   icc: Command line remark: option '-MP' not supported
391555acc8fcSmrg      if (grep 'ignoring option' conftest.err ||
391655acc8fcSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
391755acc8fcSmrg        am_cv_CC_dependencies_compiler_type=$depmode
391855acc8fcSmrg        break
391955acc8fcSmrg      fi
39203da084b3Smrg    fi
392155acc8fcSmrg  done
39223da084b3Smrg
392355acc8fcSmrg  cd ..
392455acc8fcSmrg  rm -rf conftest.dir
392555acc8fcSmrgelse
392655acc8fcSmrg  am_cv_CC_dependencies_compiler_type=none
392755acc8fcSmrgfi
39283da084b3Smrg
392955acc8fcSmrgfi
393055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
393155acc8fcSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
393255acc8fcSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
39333da084b3Smrg
393455acc8fcSmrg if
393555acc8fcSmrg  test "x$enable_dependency_tracking" != xno \
393655acc8fcSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
393755acc8fcSmrg  am__fastdepCC_TRUE=
393855acc8fcSmrg  am__fastdepCC_FALSE='#'
393955acc8fcSmrgelse
394055acc8fcSmrg  am__fastdepCC_TRUE='#'
394155acc8fcSmrg  am__fastdepCC_FALSE=
394255acc8fcSmrgfi
39433da084b3Smrg
39443da084b3Smrg
394548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
394648c85eb7Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
394748c85eb7Smrgif ${ac_cv_path_SED+:} false; then :
394855acc8fcSmrg  $as_echo_n "(cached) " >&6
394955acc8fcSmrgelse
395048c85eb7Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
395148c85eb7Smrg     for ac_i in 1 2 3 4 5 6 7; do
395248c85eb7Smrg       ac_script="$ac_script$as_nl$ac_script"
395348c85eb7Smrg     done
395448c85eb7Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
395548c85eb7Smrg     { ac_script=; unset ac_script;}
395648c85eb7Smrg     if test -z "$SED"; then
395748c85eb7Smrg  ac_path_SED_found=false
395848c85eb7Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
395948c85eb7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
396048c85eb7Smrgfor as_dir in $PATH
396148c85eb7Smrgdo
396248c85eb7Smrg  IFS=$as_save_IFS
396348c85eb7Smrg  test -z "$as_dir" && as_dir=.
396448c85eb7Smrg    for ac_prog in sed gsed; do
396548c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
396648c85eb7Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
396748c85eb7Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
396848c85eb7Smrg# Check for GNU ac_path_SED and select it if it is found.
396948c85eb7Smrg  # Check for GNU $ac_path_SED
397048c85eb7Smrgcase `"$ac_path_SED" --version 2>&1` in
397148c85eb7Smrg*GNU*)
397248c85eb7Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
397348c85eb7Smrg*)
397448c85eb7Smrg  ac_count=0
397548c85eb7Smrg  $as_echo_n 0123456789 >"conftest.in"
397648c85eb7Smrg  while :
397748c85eb7Smrg  do
397848c85eb7Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
397948c85eb7Smrg    mv "conftest.tmp" "conftest.in"
398048c85eb7Smrg    cp "conftest.in" "conftest.nl"
398148c85eb7Smrg    $as_echo '' >> "conftest.nl"
398248c85eb7Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
398348c85eb7Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
398448c85eb7Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
398548c85eb7Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
398648c85eb7Smrg      # Best one so far, save it but keep looking for a better one
398748c85eb7Smrg      ac_cv_path_SED="$ac_path_SED"
398848c85eb7Smrg      ac_path_SED_max=$ac_count
398948c85eb7Smrg    fi
399048c85eb7Smrg    # 10*(2^10) chars as input seems more than enough
399148c85eb7Smrg    test $ac_count -gt 10 && break
399248c85eb7Smrg  done
399348c85eb7Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
399448c85eb7Smrgesac
39953da084b3Smrg
399648c85eb7Smrg      $ac_path_SED_found && break 3
399748c85eb7Smrg    done
399848c85eb7Smrg  done
399948c85eb7Smrg  done
400048c85eb7SmrgIFS=$as_save_IFS
400148c85eb7Smrg  if test -z "$ac_cv_path_SED"; then
400248c85eb7Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
400348c85eb7Smrg  fi
400448c85eb7Smrgelse
400548c85eb7Smrg  ac_cv_path_SED=$SED
400648c85eb7Smrgfi
40073da084b3Smrg
400848c85eb7Smrgfi
400948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
401048c85eb7Smrg$as_echo "$ac_cv_path_SED" >&6; }
401148c85eb7Smrg SED="$ac_cv_path_SED"
401248c85eb7Smrg  rm -f conftest.sed
40133da084b3Smrg
401448c85eb7Smrgtest -z "$SED" && SED=sed
401548c85eb7SmrgXsed="$SED -e 1s/^X//"
40163da084b3Smrg
40173da084b3Smrg
40183da084b3Smrg
40193da084b3Smrg
40203da084b3Smrg
40213da084b3Smrg
40223da084b3Smrg
40233da084b3Smrg
40243da084b3Smrg
40253da084b3Smrg
40263da084b3Smrg
402748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
402848c85eb7Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
402948c85eb7Smrgif ${ac_cv_path_GREP+:} false; then :
403048c85eb7Smrg  $as_echo_n "(cached) " >&6
403148c85eb7Smrgelse
403248c85eb7Smrg  if test -z "$GREP"; then
403348c85eb7Smrg  ac_path_GREP_found=false
403448c85eb7Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
403548c85eb7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
403648c85eb7Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
403755acc8fcSmrgdo
403848c85eb7Smrg  IFS=$as_save_IFS
403948c85eb7Smrg  test -z "$as_dir" && as_dir=.
404048c85eb7Smrg    for ac_prog in grep ggrep; do
404148c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
404248c85eb7Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
404348c85eb7Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
404448c85eb7Smrg# Check for GNU ac_path_GREP and select it if it is found.
404548c85eb7Smrg  # Check for GNU $ac_path_GREP
404648c85eb7Smrgcase `"$ac_path_GREP" --version 2>&1` in
404748c85eb7Smrg*GNU*)
404848c85eb7Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
404948c85eb7Smrg*)
405048c85eb7Smrg  ac_count=0
405148c85eb7Smrg  $as_echo_n 0123456789 >"conftest.in"
405248c85eb7Smrg  while :
405348c85eb7Smrg  do
405448c85eb7Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
405548c85eb7Smrg    mv "conftest.tmp" "conftest.in"
405648c85eb7Smrg    cp "conftest.in" "conftest.nl"
405748c85eb7Smrg    $as_echo 'GREP' >> "conftest.nl"
405848c85eb7Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
405948c85eb7Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
406048c85eb7Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
406148c85eb7Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
406248c85eb7Smrg      # Best one so far, save it but keep looking for a better one
406348c85eb7Smrg      ac_cv_path_GREP="$ac_path_GREP"
406448c85eb7Smrg      ac_path_GREP_max=$ac_count
406548c85eb7Smrg    fi
406648c85eb7Smrg    # 10*(2^10) chars as input seems more than enough
406748c85eb7Smrg    test $ac_count -gt 10 && break
406848c85eb7Smrg  done
406948c85eb7Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
407055acc8fcSmrgesac
40713da084b3Smrg
407248c85eb7Smrg      $ac_path_GREP_found && break 3
407348c85eb7Smrg    done
407448c85eb7Smrg  done
407548c85eb7Smrg  done
407648c85eb7SmrgIFS=$as_save_IFS
407748c85eb7Smrg  if test -z "$ac_cv_path_GREP"; then
407848c85eb7Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
407948c85eb7Smrg  fi
408048c85eb7Smrgelse
408148c85eb7Smrg  ac_cv_path_GREP=$GREP
408255acc8fcSmrgfi
40833da084b3Smrg
408448c85eb7Smrgfi
408548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
408648c85eb7Smrg$as_echo "$ac_cv_path_GREP" >&6; }
408748c85eb7Smrg GREP="$ac_cv_path_GREP"
40883da084b3Smrg
40893da084b3Smrg
409048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
409148c85eb7Smrg$as_echo_n "checking for egrep... " >&6; }
409248c85eb7Smrgif ${ac_cv_path_EGREP+:} false; then :
409355acc8fcSmrg  $as_echo_n "(cached) " >&6
409455acc8fcSmrgelse
409548c85eb7Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
409648c85eb7Smrg   then ac_cv_path_EGREP="$GREP -E"
409748c85eb7Smrg   else
409848c85eb7Smrg     if test -z "$EGREP"; then
409948c85eb7Smrg  ac_path_EGREP_found=false
410048c85eb7Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
410148c85eb7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
410248c85eb7Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
410355acc8fcSmrgdo
410455acc8fcSmrg  IFS=$as_save_IFS
410555acc8fcSmrg  test -z "$as_dir" && as_dir=.
410648c85eb7Smrg    for ac_prog in egrep; do
410755acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
410848c85eb7Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
410948c85eb7Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
411048c85eb7Smrg# Check for GNU ac_path_EGREP and select it if it is found.
411148c85eb7Smrg  # Check for GNU $ac_path_EGREP
411248c85eb7Smrgcase `"$ac_path_EGREP" --version 2>&1` in
411355acc8fcSmrg*GNU*)
411448c85eb7Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
411555acc8fcSmrg*)
411655acc8fcSmrg  ac_count=0
411755acc8fcSmrg  $as_echo_n 0123456789 >"conftest.in"
411855acc8fcSmrg  while :
411955acc8fcSmrg  do
412055acc8fcSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
412155acc8fcSmrg    mv "conftest.tmp" "conftest.in"
412255acc8fcSmrg    cp "conftest.in" "conftest.nl"
412348c85eb7Smrg    $as_echo 'EGREP' >> "conftest.nl"
412448c85eb7Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
412555acc8fcSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
412655acc8fcSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
412748c85eb7Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
412855acc8fcSmrg      # Best one so far, save it but keep looking for a better one
412948c85eb7Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
413048c85eb7Smrg      ac_path_EGREP_max=$ac_count
413155acc8fcSmrg    fi
413255acc8fcSmrg    # 10*(2^10) chars as input seems more than enough
413355acc8fcSmrg    test $ac_count -gt 10 && break
413455acc8fcSmrg  done
413555acc8fcSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
413655acc8fcSmrgesac
4137d63fdb69Smrg
413848c85eb7Smrg      $ac_path_EGREP_found && break 3
413955acc8fcSmrg    done
414055acc8fcSmrg  done
414155acc8fcSmrg  done
414255acc8fcSmrgIFS=$as_save_IFS
414348c85eb7Smrg  if test -z "$ac_cv_path_EGREP"; then
414448c85eb7Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41453da084b3Smrg  fi
414655acc8fcSmrgelse
414748c85eb7Smrg  ac_cv_path_EGREP=$EGREP
41483da084b3Smrgfi
41493da084b3Smrg
415048c85eb7Smrg   fi
415155acc8fcSmrgfi
415248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
415348c85eb7Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
415448c85eb7Smrg EGREP="$ac_cv_path_EGREP"
41553da084b3Smrg
41563da084b3Smrg
415748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
415848c85eb7Smrg$as_echo_n "checking for fgrep... " >&6; }
415948c85eb7Smrgif ${ac_cv_path_FGREP+:} false; then :
4160d63fdb69Smrg  $as_echo_n "(cached) " >&6
41613da084b3Smrgelse
416248c85eb7Smrg  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
416348c85eb7Smrg   then ac_cv_path_FGREP="$GREP -F"
416455acc8fcSmrg   else
416548c85eb7Smrg     if test -z "$FGREP"; then
416648c85eb7Smrg  ac_path_FGREP_found=false
416755acc8fcSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
41683da084b3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
416955acc8fcSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
41703da084b3Smrgdo
41713da084b3Smrg  IFS=$as_save_IFS
41723da084b3Smrg  test -z "$as_dir" && as_dir=.
417348c85eb7Smrg    for ac_prog in fgrep; do
417455acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
417548c85eb7Smrg      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
417648c85eb7Smrg      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
417748c85eb7Smrg# Check for GNU ac_path_FGREP and select it if it is found.
417848c85eb7Smrg  # Check for GNU $ac_path_FGREP
417948c85eb7Smrgcase `"$ac_path_FGREP" --version 2>&1` in
418055acc8fcSmrg*GNU*)
418148c85eb7Smrg  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
418255acc8fcSmrg*)
418355acc8fcSmrg  ac_count=0
418455acc8fcSmrg  $as_echo_n 0123456789 >"conftest.in"
418555acc8fcSmrg  while :
418655acc8fcSmrg  do
418755acc8fcSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
418855acc8fcSmrg    mv "conftest.tmp" "conftest.in"
418955acc8fcSmrg    cp "conftest.in" "conftest.nl"
419048c85eb7Smrg    $as_echo 'FGREP' >> "conftest.nl"
419148c85eb7Smrg    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
419255acc8fcSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
419355acc8fcSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
419448c85eb7Smrg    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
419555acc8fcSmrg      # Best one so far, save it but keep looking for a better one
419648c85eb7Smrg      ac_cv_path_FGREP="$ac_path_FGREP"
419748c85eb7Smrg      ac_path_FGREP_max=$ac_count
419855acc8fcSmrg    fi
419955acc8fcSmrg    # 10*(2^10) chars as input seems more than enough
420055acc8fcSmrg    test $ac_count -gt 10 && break
420155acc8fcSmrg  done
420255acc8fcSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
420355acc8fcSmrgesac
42043da084b3Smrg
420548c85eb7Smrg      $ac_path_FGREP_found && break 3
420655acc8fcSmrg    done
420755acc8fcSmrg  done
420855acc8fcSmrg  done
420955acc8fcSmrgIFS=$as_save_IFS
421048c85eb7Smrg  if test -z "$ac_cv_path_FGREP"; then
421148c85eb7Smrg    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
42123da084b3Smrg  fi
421355acc8fcSmrgelse
421448c85eb7Smrg  ac_cv_path_FGREP=$FGREP
42153da084b3Smrgfi
42163da084b3Smrg
421755acc8fcSmrg   fi
421855acc8fcSmrgfi
421948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
422048c85eb7Smrg$as_echo "$ac_cv_path_FGREP" >&6; }
422148c85eb7Smrg FGREP="$ac_cv_path_FGREP"
42223da084b3Smrg
42233da084b3Smrg
422448c85eb7Smrgtest -z "$GREP" && GREP=grep
42253da084b3Smrg
4226d63fdb69Smrg
42273da084b3Smrg
422855acc8fcSmrg
42293da084b3Smrg
42303da084b3Smrg
42313da084b3Smrg
423255acc8fcSmrg
423355acc8fcSmrg
423455acc8fcSmrg
423555acc8fcSmrg
423655acc8fcSmrg
423755acc8fcSmrg
423848c85eb7Smrg
423948c85eb7Smrg
424048c85eb7Smrg
424148c85eb7Smrg
424248c85eb7Smrg
424348c85eb7Smrg
424448c85eb7Smrg# Check whether --with-gnu-ld was given.
424548c85eb7Smrgif test "${with_gnu_ld+set}" = set; then :
424648c85eb7Smrg  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
424755acc8fcSmrgelse
424848c85eb7Smrg  with_gnu_ld=no
424948c85eb7Smrgfi
425048c85eb7Smrg
425148c85eb7Smrgac_prog=ld
425248c85eb7Smrgif test "$GCC" = yes; then
425348c85eb7Smrg  # Check if gcc -print-prog-name=ld gives a path.
425448c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
425548c85eb7Smrg$as_echo_n "checking for ld used by $CC... " >&6; }
425648c85eb7Smrg  case $host in
425748c85eb7Smrg  *-*-mingw*)
425848c85eb7Smrg    # gcc leaves a trailing carriage return which upsets mingw
425948c85eb7Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
426048c85eb7Smrg  *)
426148c85eb7Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
426248c85eb7Smrg  esac
426348c85eb7Smrg  case $ac_prog in
426448c85eb7Smrg    # Accept absolute paths.
426548c85eb7Smrg    [\\/]* | ?:[\\/]*)
426648c85eb7Smrg      re_direlt='/[^/][^/]*/\.\./'
426748c85eb7Smrg      # Canonicalize the pathname of ld
426848c85eb7Smrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
426948c85eb7Smrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
427048c85eb7Smrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
427148c85eb7Smrg      done
427248c85eb7Smrg      test -z "$LD" && LD="$ac_prog"
427348c85eb7Smrg      ;;
427448c85eb7Smrg  "")
427548c85eb7Smrg    # If it fails, then pretend we aren't using GCC.
427648c85eb7Smrg    ac_prog=ld
427748c85eb7Smrg    ;;
427848c85eb7Smrg  *)
427948c85eb7Smrg    # If it is relative, then search for the first ld in PATH.
428048c85eb7Smrg    with_gnu_ld=unknown
428148c85eb7Smrg    ;;
428248c85eb7Smrg  esac
428348c85eb7Smrgelif test "$with_gnu_ld" = yes; then
428448c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
428548c85eb7Smrg$as_echo_n "checking for GNU ld... " >&6; }
428648c85eb7Smrgelse
428748c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
428848c85eb7Smrg$as_echo_n "checking for non-GNU ld... " >&6; }
428948c85eb7Smrgfi
429048c85eb7Smrgif ${lt_cv_path_LD+:} false; then :
429148c85eb7Smrg  $as_echo_n "(cached) " >&6
429248c85eb7Smrgelse
429348c85eb7Smrg  if test -z "$LD"; then
429448c85eb7Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
429548c85eb7Smrg  for ac_dir in $PATH; do
429648c85eb7Smrg    IFS="$lt_save_ifs"
429748c85eb7Smrg    test -z "$ac_dir" && ac_dir=.
429848c85eb7Smrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
429948c85eb7Smrg      lt_cv_path_LD="$ac_dir/$ac_prog"
430048c85eb7Smrg      # Check to see if the program is GNU ld.  I'd rather use --version,
430148c85eb7Smrg      # but apparently some variants of GNU ld only accept -v.
430248c85eb7Smrg      # Break only if it was the GNU/non-GNU ld that we prefer.
430348c85eb7Smrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
430448c85eb7Smrg      *GNU* | *'with BFD'*)
430548c85eb7Smrg	test "$with_gnu_ld" != no && break
430648c85eb7Smrg	;;
430748c85eb7Smrg      *)
430848c85eb7Smrg	test "$with_gnu_ld" != yes && break
430948c85eb7Smrg	;;
431048c85eb7Smrg      esac
431148c85eb7Smrg    fi
431248c85eb7Smrg  done
431348c85eb7Smrg  IFS="$lt_save_ifs"
431448c85eb7Smrgelse
431548c85eb7Smrg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
431655acc8fcSmrgfi
4317d63fdb69Smrgfi
4318d63fdb69Smrg
431948c85eb7SmrgLD="$lt_cv_path_LD"
432048c85eb7Smrgif test -n "$LD"; then
432148c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
432248c85eb7Smrg$as_echo "$LD" >&6; }
432348c85eb7Smrgelse
432448c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
432548c85eb7Smrg$as_echo "no" >&6; }
4326d63fdb69Smrgfi
432748c85eb7Smrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
432848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
432948c85eb7Smrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
433048c85eb7Smrgif ${lt_cv_prog_gnu_ld+:} false; then :
433148c85eb7Smrg  $as_echo_n "(cached) " >&6
433248c85eb7Smrgelse
433348c85eb7Smrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
433448c85eb7Smrgcase `$LD -v 2>&1 </dev/null` in
433548c85eb7Smrg*GNU* | *'with BFD'*)
433648c85eb7Smrg  lt_cv_prog_gnu_ld=yes
433748c85eb7Smrg  ;;
433848c85eb7Smrg*)
433948c85eb7Smrg  lt_cv_prog_gnu_ld=no
434048c85eb7Smrg  ;;
434148c85eb7Smrgesac
434255acc8fcSmrgfi
434348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
434448c85eb7Smrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
434548c85eb7Smrgwith_gnu_ld=$lt_cv_prog_gnu_ld
4346d63fdb69Smrg
434755acc8fcSmrg
434855acc8fcSmrg
434955acc8fcSmrg
435055acc8fcSmrg
435155acc8fcSmrg
435255acc8fcSmrg
435355acc8fcSmrg
435455acc8fcSmrg
435548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
435648c85eb7Smrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
435748c85eb7Smrgif ${lt_cv_path_NM+:} false; then :
435848c85eb7Smrg  $as_echo_n "(cached) " >&6
435948c85eb7Smrgelse
436048c85eb7Smrg  if test -n "$NM"; then
436148c85eb7Smrg  # Let the user override the test.
436248c85eb7Smrg  lt_cv_path_NM="$NM"
436348c85eb7Smrgelse
436448c85eb7Smrg  lt_nm_to_check="${ac_tool_prefix}nm"
436548c85eb7Smrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
436648c85eb7Smrg    lt_nm_to_check="$lt_nm_to_check nm"
436748c85eb7Smrg  fi
436848c85eb7Smrg  for lt_tmp_nm in $lt_nm_to_check; do
436948c85eb7Smrg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
437048c85eb7Smrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
437148c85eb7Smrg      IFS="$lt_save_ifs"
437248c85eb7Smrg      test -z "$ac_dir" && ac_dir=.
437348c85eb7Smrg      tmp_nm="$ac_dir/$lt_tmp_nm"
437448c85eb7Smrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
437548c85eb7Smrg	# Check to see if the nm accepts a BSD-compat flag.
437648c85eb7Smrg	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
437748c85eb7Smrg	#   nm: unknown option "B" ignored
437848c85eb7Smrg	# Tru64's nm complains that /dev/null is an invalid object file
437948c85eb7Smrg	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
438048c85eb7Smrg	*/dev/null* | *'Invalid file or object type'*)
438148c85eb7Smrg	  lt_cv_path_NM="$tmp_nm -B"
438248c85eb7Smrg	  break
438348c85eb7Smrg	  ;;
438448c85eb7Smrg	*)
438548c85eb7Smrg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
438648c85eb7Smrg	  */dev/null*)
438748c85eb7Smrg	    lt_cv_path_NM="$tmp_nm -p"
438848c85eb7Smrg	    break
438948c85eb7Smrg	    ;;
439048c85eb7Smrg	  *)
439148c85eb7Smrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
439248c85eb7Smrg	    continue # so that we can try to find one that supports BSD flags
439348c85eb7Smrg	    ;;
439448c85eb7Smrg	  esac
439548c85eb7Smrg	  ;;
439648c85eb7Smrg	esac
439748c85eb7Smrg      fi
439848c85eb7Smrg    done
439948c85eb7Smrg    IFS="$lt_save_ifs"
440048c85eb7Smrg  done
440148c85eb7Smrg  : ${lt_cv_path_NM=no}
440248c85eb7Smrgfi
440348c85eb7Smrgfi
440448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
440548c85eb7Smrg$as_echo "$lt_cv_path_NM" >&6; }
440648c85eb7Smrgif test "$lt_cv_path_NM" != "no"; then
440748c85eb7Smrg  NM="$lt_cv_path_NM"
440848c85eb7Smrgelse
440948c85eb7Smrg  # Didn't find any BSD compatible name lister, look for dumpbin.
441048c85eb7Smrg  if test -n "$DUMPBIN"; then :
441148c85eb7Smrg    # Let the user override the test.
441248c85eb7Smrg  else
441348c85eb7Smrg    if test -n "$ac_tool_prefix"; then
441448c85eb7Smrg  for ac_prog in dumpbin "link -dump"
441548c85eb7Smrg  do
441648c85eb7Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
441748c85eb7Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
441855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; }
442048c85eb7Smrgif ${ac_cv_prog_DUMPBIN+:} false; then :
4421d63fdb69Smrg  $as_echo_n "(cached) " >&6
4422d63fdb69Smrgelse
442348c85eb7Smrg  if test -n "$DUMPBIN"; then
442448c85eb7Smrg  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
442548c85eb7Smrgelse
442648c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427d63fdb69Smrgfor as_dir in $PATH
4428d63fdb69Smrgdo
4429d63fdb69Smrg  IFS=$as_save_IFS
4430d63fdb69Smrg  test -z "$as_dir" && as_dir=.
443155acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4432d63fdb69Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
443348c85eb7Smrg    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
443455acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435d63fdb69Smrg    break 2
4436d63fdb69Smrg  fi
4437d63fdb69Smrgdone
443855acc8fcSmrg  done
4439d63fdb69SmrgIFS=$as_save_IFS
4440d63fdb69Smrg
4441d63fdb69Smrgfi
444248c85eb7Smrgfi
444348c85eb7SmrgDUMPBIN=$ac_cv_prog_DUMPBIN
444448c85eb7Smrgif test -n "$DUMPBIN"; then
444548c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
444648c85eb7Smrg$as_echo "$DUMPBIN" >&6; }
4447d63fdb69Smrgelse
444855acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449d63fdb69Smrg$as_echo "no" >&6; }
4450d63fdb69Smrgfi
4451d63fdb69Smrg
4452d63fdb69Smrg
445348c85eb7Smrg    test -n "$DUMPBIN" && break
445448c85eb7Smrg  done
4455d63fdb69Smrgfi
445648c85eb7Smrgif test -z "$DUMPBIN"; then
445748c85eb7Smrg  ac_ct_DUMPBIN=$DUMPBIN
445848c85eb7Smrg  for ac_prog in dumpbin "link -dump"
445948c85eb7Smrgdo
446048c85eb7Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
446148c85eb7Smrgset dummy $ac_prog; ac_word=$2
446255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; }
446448c85eb7Smrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4465d63fdb69Smrg  $as_echo_n "(cached) " >&6
4466d63fdb69Smrgelse
446748c85eb7Smrg  if test -n "$ac_ct_DUMPBIN"; then
446848c85eb7Smrg  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
446948c85eb7Smrgelse
447048c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471d63fdb69Smrgfor as_dir in $PATH
4472d63fdb69Smrgdo
4473d63fdb69Smrg  IFS=$as_save_IFS
4474d63fdb69Smrg  test -z "$as_dir" && as_dir=.
447555acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4476d63fdb69Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
447748c85eb7Smrg    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
447855acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479d63fdb69Smrg    break 2
4480d63fdb69Smrg  fi
4481d63fdb69Smrgdone
448255acc8fcSmrg  done
4483d63fdb69SmrgIFS=$as_save_IFS
4484d63fdb69Smrg
4485d63fdb69Smrgfi
448648c85eb7Smrgfi
448748c85eb7Smrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
448848c85eb7Smrgif test -n "$ac_ct_DUMPBIN"; then
448948c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
449048c85eb7Smrg$as_echo "$ac_ct_DUMPBIN" >&6; }
4491d63fdb69Smrgelse
449255acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493d63fdb69Smrg$as_echo "no" >&6; }
4494d63fdb69Smrgfi
4495d63fdb69Smrg
449648c85eb7Smrg
449748c85eb7Smrg  test -n "$ac_ct_DUMPBIN" && break
449848c85eb7Smrgdone
449948c85eb7Smrg
450048c85eb7Smrg  if test "x$ac_ct_DUMPBIN" = x; then
450148c85eb7Smrg    DUMPBIN=":"
4502d63fdb69Smrg  else
4503d63fdb69Smrg    case $cross_compiling:$ac_tool_warned in
4504d63fdb69Smrgyes:)
450555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507d63fdb69Smrgac_tool_warned=yes ;;
4508d63fdb69Smrgesac
450948c85eb7Smrg    DUMPBIN=$ac_ct_DUMPBIN
4510d63fdb69Smrg  fi
4511d63fdb69Smrgfi
4512d63fdb69Smrg
451348c85eb7Smrg    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
451448c85eb7Smrg    *COFF*)
451548c85eb7Smrg      DUMPBIN="$DUMPBIN -symbols"
451648c85eb7Smrg      ;;
451748c85eb7Smrg    *)
451848c85eb7Smrg      DUMPBIN=:
451948c85eb7Smrg      ;;
452048c85eb7Smrg    esac
452148c85eb7Smrg  fi
4522d63fdb69Smrg
452348c85eb7Smrg  if test "$DUMPBIN" != ":"; then
452448c85eb7Smrg    NM="$DUMPBIN"
452548c85eb7Smrg  fi
452655acc8fcSmrgfi
452748c85eb7Smrgtest -z "$NM" && NM=nm
4528d63fdb69Smrg
4529d63fdb69Smrg
453055acc8fcSmrg
4531d63fdb69Smrg
45323da084b3Smrg
453355acc8fcSmrg
453448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
453548c85eb7Smrg$as_echo_n "checking the name lister ($NM) interface... " >&6; }
453648c85eb7Smrgif ${lt_cv_nm_interface+:} false; then :
4537d63fdb69Smrg  $as_echo_n "(cached) " >&6
45383da084b3Smrgelse
453948c85eb7Smrg  lt_cv_nm_interface="BSD nm"
454048c85eb7Smrg  echo "int some_variable = 0;" > conftest.$ac_ext
454148c85eb7Smrg  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
454248c85eb7Smrg  (eval "$ac_compile" 2>conftest.err)
454348c85eb7Smrg  cat conftest.err >&5
454448c85eb7Smrg  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
454548c85eb7Smrg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
454648c85eb7Smrg  cat conftest.err >&5
454748c85eb7Smrg  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
454848c85eb7Smrg  cat conftest.out >&5
454948c85eb7Smrg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
455048c85eb7Smrg    lt_cv_nm_interface="MS dumpbin"
455155acc8fcSmrg  fi
455248c85eb7Smrg  rm -f conftest*
455355acc8fcSmrgfi
455448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
455548c85eb7Smrg$as_echo "$lt_cv_nm_interface" >&6; }
455655acc8fcSmrg
455748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
455848c85eb7Smrg$as_echo_n "checking whether ln -s works... " >&6; }
455948c85eb7SmrgLN_S=$as_ln_s
456048c85eb7Smrgif test "$LN_S" = "ln -s"; then
456148c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
456248c85eb7Smrg$as_echo "yes" >&6; }
456348c85eb7Smrgelse
456448c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
456548c85eb7Smrg$as_echo "no, using $LN_S" >&6; }
45663da084b3Smrgfi
456755acc8fcSmrg
456848c85eb7Smrg# find the maximum length of command line arguments
456948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
457048c85eb7Smrg$as_echo_n "checking the maximum length of command line arguments... " >&6; }
457148c85eb7Smrgif ${lt_cv_sys_max_cmd_len+:} false; then :
457248c85eb7Smrg  $as_echo_n "(cached) " >&6
45733da084b3Smrgelse
457448c85eb7Smrg    i=0
457548c85eb7Smrg  teststring="ABCD"
45763da084b3Smrg
457748c85eb7Smrg  case $build_os in
457848c85eb7Smrg  msdosdjgpp*)
457948c85eb7Smrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
458048c85eb7Smrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
458148c85eb7Smrg    # during glob expansion).  Even if it were fixed, the result of this
458248c85eb7Smrg    # check would be larger than it should be.
458348c85eb7Smrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
458448c85eb7Smrg    ;;
45853da084b3Smrg
458648c85eb7Smrg  gnu*)
458748c85eb7Smrg    # Under GNU Hurd, this test is not required because there is
458848c85eb7Smrg    # no limit to the length of command line arguments.
458948c85eb7Smrg    # Libtool will interpret -1 as no limit whatsoever
459048c85eb7Smrg    lt_cv_sys_max_cmd_len=-1;
459148c85eb7Smrg    ;;
459255acc8fcSmrg
459348c85eb7Smrg  cygwin* | mingw* | cegcc*)
459448c85eb7Smrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
459548c85eb7Smrg    # about 5 minutes as the teststring grows exponentially.
459648c85eb7Smrg    # Worse, since 9x/ME are not pre-emptively multitasking,
459748c85eb7Smrg    # you end up with a "frozen" computer, even though with patience
459848c85eb7Smrg    # the test eventually succeeds (with a max line length of 256k).
459948c85eb7Smrg    # Instead, let's just punt: use the minimum linelength reported by
460048c85eb7Smrg    # all of the supported platforms: 8192 (on NT/2K/XP).
460148c85eb7Smrg    lt_cv_sys_max_cmd_len=8192;
460248c85eb7Smrg    ;;
460355acc8fcSmrg
460448c85eb7Smrg  mint*)
460548c85eb7Smrg    # On MiNT this can take a long time and run out of memory.
460648c85eb7Smrg    lt_cv_sys_max_cmd_len=8192;
460748c85eb7Smrg    ;;
460855acc8fcSmrg
460948c85eb7Smrg  amigaos*)
461048c85eb7Smrg    # On AmigaOS with pdksh, this test takes hours, literally.
461148c85eb7Smrg    # So we just punt and use a minimum line length of 8192.
461248c85eb7Smrg    lt_cv_sys_max_cmd_len=8192;
461348c85eb7Smrg    ;;
461455acc8fcSmrg
461548c85eb7Smrg  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
461648c85eb7Smrg    # This has been around since 386BSD, at least.  Likely further.
461748c85eb7Smrg    if test -x /sbin/sysctl; then
461848c85eb7Smrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
461948c85eb7Smrg    elif test -x /usr/sbin/sysctl; then
462048c85eb7Smrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
462148c85eb7Smrg    else
462248c85eb7Smrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
462348c85eb7Smrg    fi
462448c85eb7Smrg    # And add a safety zone
462548c85eb7Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
462648c85eb7Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
462748c85eb7Smrg    ;;
462855acc8fcSmrg
462948c85eb7Smrg  interix*)
463048c85eb7Smrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
463148c85eb7Smrg    lt_cv_sys_max_cmd_len=196608
463248c85eb7Smrg    ;;
463348c85eb7Smrg
463448c85eb7Smrg  os2*)
463548c85eb7Smrg    # The test takes a long time on OS/2.
463648c85eb7Smrg    lt_cv_sys_max_cmd_len=8192
463748c85eb7Smrg    ;;
463848c85eb7Smrg
463948c85eb7Smrg  osf*)
464048c85eb7Smrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
464148c85eb7Smrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
464248c85eb7Smrg    # nice to cause kernel panics so lets avoid the loop below.
464348c85eb7Smrg    # First set a reasonable default.
464448c85eb7Smrg    lt_cv_sys_max_cmd_len=16384
464548c85eb7Smrg    #
464648c85eb7Smrg    if test -x /sbin/sysconfig; then
464748c85eb7Smrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
464848c85eb7Smrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
464948c85eb7Smrg      esac
465048c85eb7Smrg    fi
465148c85eb7Smrg    ;;
465248c85eb7Smrg  sco3.2v5*)
465348c85eb7Smrg    lt_cv_sys_max_cmd_len=102400
465448c85eb7Smrg    ;;
465548c85eb7Smrg  sysv5* | sco5v6* | sysv4.2uw2*)
465648c85eb7Smrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
465748c85eb7Smrg    if test -n "$kargmax"; then
465848c85eb7Smrg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
465948c85eb7Smrg    else
466048c85eb7Smrg      lt_cv_sys_max_cmd_len=32768
466148c85eb7Smrg    fi
466248c85eb7Smrg    ;;
466348c85eb7Smrg  *)
466448c85eb7Smrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
466548c85eb7Smrg    if test -n "$lt_cv_sys_max_cmd_len"; then
466648c85eb7Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
466748c85eb7Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
466848c85eb7Smrg    else
466948c85eb7Smrg      # Make teststring a little bigger before we do anything with it.
467048c85eb7Smrg      # a 1K string should be a reasonable start.
467148c85eb7Smrg      for i in 1 2 3 4 5 6 7 8 ; do
467248c85eb7Smrg        teststring=$teststring$teststring
467348c85eb7Smrg      done
467448c85eb7Smrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
467548c85eb7Smrg      # If test is not a shell built-in, we'll probably end up computing a
467648c85eb7Smrg      # maximum length that is only half of the actual maximum length, but
467748c85eb7Smrg      # we can't tell.
467848c85eb7Smrg      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
467948c85eb7Smrg	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
468048c85eb7Smrg	      test $i != 17 # 1/2 MB should be enough
468148c85eb7Smrg      do
468248c85eb7Smrg        i=`expr $i + 1`
468348c85eb7Smrg        teststring=$teststring$teststring
468448c85eb7Smrg      done
468548c85eb7Smrg      # Only check the string length outside the loop.
468648c85eb7Smrg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
468748c85eb7Smrg      teststring=
468848c85eb7Smrg      # Add a significant safety factor because C++ compilers can tack on
468948c85eb7Smrg      # massive amounts of additional arguments before passing them to the
469048c85eb7Smrg      # linker.  It appears as though 1/2 is a usable value.
469148c85eb7Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
469248c85eb7Smrg    fi
469348c85eb7Smrg    ;;
469448c85eb7Smrg  esac
46953da084b3Smrg
469655acc8fcSmrgfi
469755acc8fcSmrg
469848c85eb7Smrgif test -n $lt_cv_sys_max_cmd_len ; then
469948c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
470048c85eb7Smrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
470155acc8fcSmrgelse
470248c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
470348c85eb7Smrg$as_echo "none" >&6; }
470455acc8fcSmrgfi
470548c85eb7Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len
470655acc8fcSmrg
47073da084b3Smrg
47083da084b3Smrg
47093da084b3Smrg
47103da084b3Smrg
47113da084b3Smrg
471248c85eb7Smrg: ${CP="cp -f"}
471348c85eb7Smrg: ${MV="mv -f"}
471448c85eb7Smrg: ${RM="rm -f"}
47153da084b3Smrg
471648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
471748c85eb7Smrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
471848c85eb7Smrg# Try some XSI features
471948c85eb7Smrgxsi_shell=no
472048c85eb7Smrg( _lt_dummy="a/b/c"
472148c85eb7Smrg  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
472248c85eb7Smrg      = c,a/b,b/c, \
472348c85eb7Smrg    && eval 'test $(( 1 + 1 )) -eq 2 \
472448c85eb7Smrg    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
472548c85eb7Smrg  && xsi_shell=yes
472648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
472748c85eb7Smrg$as_echo "$xsi_shell" >&6; }
47283da084b3Smrg
47293da084b3Smrg
473048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
473148c85eb7Smrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
473248c85eb7Smrglt_shell_append=no
473348c85eb7Smrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
473448c85eb7Smrg    >/dev/null 2>&1 \
473548c85eb7Smrg  && lt_shell_append=yes
473648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
473748c85eb7Smrg$as_echo "$lt_shell_append" >&6; }
47383da084b3Smrg
47393da084b3Smrg
474048c85eb7Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
474148c85eb7Smrg  lt_unset=unset
474248c85eb7Smrgelse
474348c85eb7Smrg  lt_unset=false
474448c85eb7Smrgfi
47453da084b3Smrg
47463da084b3Smrg
47473da084b3Smrg
47483da084b3Smrg
47493da084b3Smrg
475048c85eb7Smrg# test EBCDIC or ASCII
475148c85eb7Smrgcase `echo X|tr X '\101'` in
475248c85eb7Smrg A) # ASCII based system
475348c85eb7Smrg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
475448c85eb7Smrg  lt_SP2NL='tr \040 \012'
475548c85eb7Smrg  lt_NL2SP='tr \015\012 \040\040'
475648c85eb7Smrg  ;;
475748c85eb7Smrg *) # EBCDIC based system
475848c85eb7Smrg  lt_SP2NL='tr \100 \n'
475948c85eb7Smrg  lt_NL2SP='tr \r\n \100\100'
476048c85eb7Smrg  ;;
476148c85eb7Smrgesac
47623da084b3Smrg
47633da084b3Smrg
47643da084b3Smrg
4765d63fdb69Smrg
4766d63fdb69Smrg
4767d63fdb69Smrg
4768d63fdb69Smrg
4769d63fdb69Smrg
4770d63fdb69Smrg
477148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
477248c85eb7Smrg$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
477348c85eb7Smrgif ${lt_cv_to_host_file_cmd+:} false; then :
477448c85eb7Smrg  $as_echo_n "(cached) " >&6
477548c85eb7Smrgelse
477648c85eb7Smrg  case $host in
477748c85eb7Smrg  *-*-mingw* )
477848c85eb7Smrg    case $build in
477948c85eb7Smrg      *-*-mingw* ) # actually msys
478048c85eb7Smrg        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
478148c85eb7Smrg        ;;
478248c85eb7Smrg      *-*-cygwin* )
478348c85eb7Smrg        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
478448c85eb7Smrg        ;;
478548c85eb7Smrg      * ) # otherwise, assume *nix
478648c85eb7Smrg        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
478748c85eb7Smrg        ;;
478855acc8fcSmrg    esac
478948c85eb7Smrg    ;;
479048c85eb7Smrg  *-*-cygwin* )
479148c85eb7Smrg    case $build in
479248c85eb7Smrg      *-*-mingw* ) # actually msys
479348c85eb7Smrg        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
479448c85eb7Smrg        ;;
479548c85eb7Smrg      *-*-cygwin* )
479648c85eb7Smrg        lt_cv_to_host_file_cmd=func_convert_file_noop
479748c85eb7Smrg        ;;
479848c85eb7Smrg      * ) # otherwise, assume *nix
479948c85eb7Smrg        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
480048c85eb7Smrg        ;;
480155acc8fcSmrg    esac
480248c85eb7Smrg    ;;
480348c85eb7Smrg  * ) # unhandled hosts (and "normal" native builds)
480448c85eb7Smrg    lt_cv_to_host_file_cmd=func_convert_file_noop
480548c85eb7Smrg    ;;
480648c85eb7Smrgesac
4807d63fdb69Smrg
4808d63fdb69Smrgfi
4809d63fdb69Smrg
481048c85eb7Smrgto_host_file_cmd=$lt_cv_to_host_file_cmd
481148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
481248c85eb7Smrg$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4813d63fdb69Smrg
4814d63fdb69Smrg
4815d63fdb69Smrg
4816d63fdb69Smrg
4817d63fdb69Smrg
481848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
481948c85eb7Smrg$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
482048c85eb7Smrgif ${lt_cv_to_tool_file_cmd+:} false; then :
482148c85eb7Smrg  $as_echo_n "(cached) " >&6
482248c85eb7Smrgelse
482348c85eb7Smrg  #assume ordinary cross tools, or native build.
482448c85eb7Smrglt_cv_to_tool_file_cmd=func_convert_file_noop
482548c85eb7Smrgcase $host in
482648c85eb7Smrg  *-*-mingw* )
482748c85eb7Smrg    case $build in
482848c85eb7Smrg      *-*-mingw* ) # actually msys
482948c85eb7Smrg        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
483048c85eb7Smrg        ;;
483148c85eb7Smrg    esac
483248c85eb7Smrg    ;;
483348c85eb7Smrgesac
4834d63fdb69Smrg
483548c85eb7Smrgfi
4836d63fdb69Smrg
483748c85eb7Smrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd
483848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
483948c85eb7Smrg$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4840d63fdb69Smrg
4841d63fdb69Smrg
4842d63fdb69Smrg
4843d63fdb69Smrg
4844d63fdb69Smrg
484548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
484648c85eb7Smrg$as_echo_n "checking for $LD option to reload object files... " >&6; }
484748c85eb7Smrgif ${lt_cv_ld_reload_flag+:} false; then :
484848c85eb7Smrg  $as_echo_n "(cached) " >&6
484948c85eb7Smrgelse
485048c85eb7Smrg  lt_cv_ld_reload_flag='-r'
485155acc8fcSmrgfi
485248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
485348c85eb7Smrg$as_echo "$lt_cv_ld_reload_flag" >&6; }
485448c85eb7Smrgreload_flag=$lt_cv_ld_reload_flag
485548c85eb7Smrgcase $reload_flag in
485648c85eb7Smrg"" | " "*) ;;
485748c85eb7Smrg*) reload_flag=" $reload_flag" ;;
485848c85eb7Smrgesac
485948c85eb7Smrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
486048c85eb7Smrgcase $host_os in
486148c85eb7Smrg  cygwin* | mingw* | pw32* | cegcc*)
486248c85eb7Smrg    if test "$GCC" != yes; then
486348c85eb7Smrg      reload_cmds=false
486448c85eb7Smrg    fi
486548c85eb7Smrg    ;;
486648c85eb7Smrg  darwin*)
486748c85eb7Smrg    if test "$GCC" = yes; then
486848c85eb7Smrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
486948c85eb7Smrg    else
487048c85eb7Smrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
487148c85eb7Smrg    fi
487248c85eb7Smrg    ;;
487355acc8fcSmrgesac
487455acc8fcSmrg
487555acc8fcSmrg
4876d63fdb69Smrg
4877d63fdb69Smrg
487848c85eb7Smrg
487948c85eb7Smrg
488048c85eb7Smrg
488148c85eb7Smrg
488248c85eb7Smrg
4883d63fdb69Smrgif test -n "$ac_tool_prefix"; then
488448c85eb7Smrg  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
488548c85eb7Smrgset dummy ${ac_tool_prefix}objdump; ac_word=$2
488655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; }
488848c85eb7Smrgif ${ac_cv_prog_OBJDUMP+:} false; then :
4889d63fdb69Smrg  $as_echo_n "(cached) " >&6
4890d63fdb69Smrgelse
489148c85eb7Smrg  if test -n "$OBJDUMP"; then
489248c85eb7Smrg  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
48933da084b3Smrgelse
48943da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48953da084b3Smrgfor as_dir in $PATH
48963da084b3Smrgdo
48973da084b3Smrg  IFS=$as_save_IFS
48983da084b3Smrg  test -z "$as_dir" && as_dir=.
489955acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4900d63fdb69Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
490148c85eb7Smrg    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
490255acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49033da084b3Smrg    break 2
49043da084b3Smrg  fi
49053da084b3Smrgdone
490655acc8fcSmrg  done
49073da084b3SmrgIFS=$as_save_IFS
49083da084b3Smrg
49093da084b3Smrgfi
49103da084b3Smrgfi
491148c85eb7SmrgOBJDUMP=$ac_cv_prog_OBJDUMP
491248c85eb7Smrgif test -n "$OBJDUMP"; then
491348c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
491448c85eb7Smrg$as_echo "$OBJDUMP" >&6; }
49153da084b3Smrgelse
491655acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917d63fdb69Smrg$as_echo "no" >&6; }
49183da084b3Smrgfi
49193da084b3Smrg
49203da084b3Smrg
49213da084b3Smrgfi
492248c85eb7Smrgif test -z "$ac_cv_prog_OBJDUMP"; then
492348c85eb7Smrg  ac_ct_OBJDUMP=$OBJDUMP
492448c85eb7Smrg  # Extract the first word of "objdump", so it can be a program name with args.
492548c85eb7Smrgset dummy objdump; ac_word=$2
492655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; }
492848c85eb7Smrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4929d63fdb69Smrg  $as_echo_n "(cached) " >&6
49303da084b3Smrgelse
493148c85eb7Smrg  if test -n "$ac_ct_OBJDUMP"; then
493248c85eb7Smrg  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
49333da084b3Smrgelse
49343da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49353da084b3Smrgfor as_dir in $PATH
49363da084b3Smrgdo
49373da084b3Smrg  IFS=$as_save_IFS
49383da084b3Smrg  test -z "$as_dir" && as_dir=.
493955acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4940d63fdb69Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
494148c85eb7Smrg    ac_cv_prog_ac_ct_OBJDUMP="objdump"
494255acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49433da084b3Smrg    break 2
49443da084b3Smrg  fi
49453da084b3Smrgdone
494655acc8fcSmrg  done
49473da084b3SmrgIFS=$as_save_IFS
49483da084b3Smrg
49493da084b3Smrgfi
49503da084b3Smrgfi
495148c85eb7Smrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
495248c85eb7Smrgif test -n "$ac_ct_OBJDUMP"; then
495348c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
495448c85eb7Smrg$as_echo "$ac_ct_OBJDUMP" >&6; }
49553da084b3Smrgelse
495655acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957d63fdb69Smrg$as_echo "no" >&6; }
49583da084b3Smrgfi
49593da084b3Smrg
496048c85eb7Smrg  if test "x$ac_ct_OBJDUMP" = x; then
496148c85eb7Smrg    OBJDUMP="false"
49623da084b3Smrg  else
49633da084b3Smrg    case $cross_compiling:$ac_tool_warned in
49643da084b3Smrgyes:)
496555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
49673da084b3Smrgac_tool_warned=yes ;;
49683da084b3Smrgesac
496948c85eb7Smrg    OBJDUMP=$ac_ct_OBJDUMP
49703da084b3Smrg  fi
49713da084b3Smrgelse
497248c85eb7Smrg  OBJDUMP="$ac_cv_prog_OBJDUMP"
49733da084b3Smrgfi
49743da084b3Smrg
497548c85eb7Smrgtest -z "$OBJDUMP" && OBJDUMP=objdump
49763da084b3Smrg
49773da084b3Smrg
49783da084b3Smrg
49793da084b3Smrg
49803da084b3Smrg
49813da084b3Smrg
49823da084b3Smrg
49833da084b3Smrg
49843da084b3Smrg
498548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
498648c85eb7Smrg$as_echo_n "checking how to recognize dependent libraries... " >&6; }
498748c85eb7Smrgif ${lt_cv_deplibs_check_method+:} false; then :
4988d63fdb69Smrg  $as_echo_n "(cached) " >&6
49893da084b3Smrgelse
499048c85eb7Smrg  lt_cv_file_magic_cmd='$MAGIC_CMD'
499148c85eb7Smrglt_cv_file_magic_test_file=
499248c85eb7Smrglt_cv_deplibs_check_method='unknown'
499348c85eb7Smrg# Need to set the preceding variable on all platforms that support
499448c85eb7Smrg# interlibrary dependencies.
499548c85eb7Smrg# 'none' -- dependencies not supported.
499648c85eb7Smrg# `unknown' -- same as none, but documents that we really don't know.
499748c85eb7Smrg# 'pass_all' -- all dependencies passed with no checks.
499848c85eb7Smrg# 'test_compile' -- check by making test program.
499948c85eb7Smrg# 'file_magic [[regex]]' -- check by looking for files in library path
500048c85eb7Smrg# which responds to the $file_magic_cmd with a given extended regex.
500148c85eb7Smrg# If you have `file' or equivalent on your system and you're not sure
500248c85eb7Smrg# whether `pass_all' will *always* work, you probably want this one.
500355acc8fcSmrg
500448c85eb7Smrgcase $host_os in
500548c85eb7Smrgaix[4-9]*)
500648c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
500748c85eb7Smrg  ;;
50083da084b3Smrg
500948c85eb7Smrgbeos*)
501048c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
501148c85eb7Smrg  ;;
50123da084b3Smrg
501348c85eb7Smrgbsdi[45]*)
501448c85eb7Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
501548c85eb7Smrg  lt_cv_file_magic_cmd='/usr/bin/file -L'
501648c85eb7Smrg  lt_cv_file_magic_test_file=/shlib/libc.so
501748c85eb7Smrg  ;;
501855acc8fcSmrg
501948c85eb7Smrgcygwin*)
502048c85eb7Smrg  # func_win32_libid is a shell function defined in ltmain.sh
502148c85eb7Smrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
502248c85eb7Smrg  lt_cv_file_magic_cmd='func_win32_libid'
502348c85eb7Smrg  ;;
502448c85eb7Smrg
502548c85eb7Smrgmingw* | pw32*)
502648c85eb7Smrg  # Base MSYS/MinGW do not provide the 'file' command needed by
502748c85eb7Smrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
502848c85eb7Smrg  # unless we find 'file', for example because we are cross-compiling.
502948c85eb7Smrg  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
503048c85eb7Smrg  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
503148c85eb7Smrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
503248c85eb7Smrg    lt_cv_file_magic_cmd='func_win32_libid'
503355acc8fcSmrg  else
503448c85eb7Smrg    # Keep this pattern in sync with the one in func_win32_libid.
503548c85eb7Smrg    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
503648c85eb7Smrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
503755acc8fcSmrg  fi
503848c85eb7Smrg  ;;
50393da084b3Smrg
504048c85eb7Smrgcegcc*)
504148c85eb7Smrg  # use the weaker test based on 'objdump'. See mingw*.
504248c85eb7Smrg  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
504348c85eb7Smrg  lt_cv_file_magic_cmd='$OBJDUMP -f'
504448c85eb7Smrg  ;;
50453da084b3Smrg
504648c85eb7Smrgdarwin* | rhapsody*)
504748c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
504848c85eb7Smrg  ;;
50493da084b3Smrg
505048c85eb7Smrgfreebsd* | dragonfly*)
505148c85eb7Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
505248c85eb7Smrg    case $host_cpu in
505348c85eb7Smrg    i*86 )
505448c85eb7Smrg      # Not sure whether the presence of OpenBSD here was a mistake.
505548c85eb7Smrg      # Let's accept both of them until this is cleared up.
505648c85eb7Smrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
505748c85eb7Smrg      lt_cv_file_magic_cmd=/usr/bin/file
505848c85eb7Smrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
505948c85eb7Smrg      ;;
506048c85eb7Smrg    esac
506148c85eb7Smrg  else
506248c85eb7Smrg    lt_cv_deplibs_check_method=pass_all
506355acc8fcSmrg  fi
506448c85eb7Smrg  ;;
50653da084b3Smrg
506648c85eb7Smrggnu*)
506748c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
506848c85eb7Smrg  ;;
50693da084b3Smrg
507048c85eb7Smrghaiku*)
507148c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
507248c85eb7Smrg  ;;
50733da084b3Smrg
507448c85eb7Smrghpux10.20* | hpux11*)
507548c85eb7Smrg  lt_cv_file_magic_cmd=/usr/bin/file
507648c85eb7Smrg  case $host_cpu in
507748c85eb7Smrg  ia64*)
507848c85eb7Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
507948c85eb7Smrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
508048c85eb7Smrg    ;;
508148c85eb7Smrg  hppa*64*)
508248c85eb7Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
508348c85eb7Smrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
508448c85eb7Smrg    ;;
508548c85eb7Smrg  *)
508648c85eb7Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
508748c85eb7Smrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
508848c85eb7Smrg    ;;
508948c85eb7Smrg  esac
509048c85eb7Smrg  ;;
50913da084b3Smrg
509248c85eb7Smrginterix[3-9]*)
509348c85eb7Smrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
509448c85eb7Smrg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
509548c85eb7Smrg  ;;
50963da084b3Smrg
509748c85eb7Smrgirix5* | irix6* | nonstopux*)
509848c85eb7Smrg  case $LD in
509948c85eb7Smrg  *-32|*"-32 ") libmagic=32-bit;;
510048c85eb7Smrg  *-n32|*"-n32 ") libmagic=N32;;
510148c85eb7Smrg  *-64|*"-64 ") libmagic=64-bit;;
510248c85eb7Smrg  *) libmagic=never-match;;
510348c85eb7Smrg  esac
510448c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
510548c85eb7Smrg  ;;
51063da084b3Smrg
510748c85eb7Smrg# This must be glibc/ELF.
510848c85eb7Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
510948c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
511048c85eb7Smrg  ;;
51113da084b3Smrg
511248c85eb7Smrgnetbsd*)
511348c85eb7Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
511448c85eb7Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
511548c85eb7Smrg  else
511648c85eb7Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
511748c85eb7Smrg  fi
511848c85eb7Smrg  ;;
51193da084b3Smrg
512048c85eb7Smrgnewos6*)
512148c85eb7Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
512248c85eb7Smrg  lt_cv_file_magic_cmd=/usr/bin/file
512348c85eb7Smrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
512448c85eb7Smrg  ;;
51253da084b3Smrg
512648c85eb7Smrg*nto* | *qnx*)
512748c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
512848c85eb7Smrg  ;;
51293da084b3Smrg
513048c85eb7Smrgopenbsd*)
513148c85eb7Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
513248c85eb7Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
513348c85eb7Smrg  else
513448c85eb7Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
513548c85eb7Smrg  fi
513648c85eb7Smrg  ;;
513748c85eb7Smrg
513848c85eb7Smrgosf3* | osf4* | osf5*)
513948c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
514048c85eb7Smrg  ;;
514148c85eb7Smrg
514248c85eb7Smrgrdos*)
514348c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
514448c85eb7Smrg  ;;
514548c85eb7Smrg
514648c85eb7Smrgsolaris*)
514748c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
514848c85eb7Smrg  ;;
514948c85eb7Smrg
515048c85eb7Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
515148c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
515248c85eb7Smrg  ;;
515348c85eb7Smrg
515448c85eb7Smrgsysv4 | sysv4.3*)
515548c85eb7Smrg  case $host_vendor in
515648c85eb7Smrg  motorola)
515748c85eb7Smrg    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]'
515848c85eb7Smrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
515948c85eb7Smrg    ;;
516048c85eb7Smrg  ncr)
516148c85eb7Smrg    lt_cv_deplibs_check_method=pass_all
516248c85eb7Smrg    ;;
516348c85eb7Smrg  sequent)
516448c85eb7Smrg    lt_cv_file_magic_cmd='/bin/file'
516548c85eb7Smrg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
516648c85eb7Smrg    ;;
516748c85eb7Smrg  sni)
516848c85eb7Smrg    lt_cv_file_magic_cmd='/bin/file'
516948c85eb7Smrg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
517048c85eb7Smrg    lt_cv_file_magic_test_file=/lib/libc.so
517148c85eb7Smrg    ;;
517248c85eb7Smrg  siemens)
517348c85eb7Smrg    lt_cv_deplibs_check_method=pass_all
517448c85eb7Smrg    ;;
517548c85eb7Smrg  pc)
517648c85eb7Smrg    lt_cv_deplibs_check_method=pass_all
517748c85eb7Smrg    ;;
517848c85eb7Smrg  esac
517948c85eb7Smrg  ;;
518048c85eb7Smrg
518148c85eb7Smrgtpf*)
518248c85eb7Smrg  lt_cv_deplibs_check_method=pass_all
518348c85eb7Smrg  ;;
518448c85eb7Smrgesac
51853da084b3Smrg
51863da084b3Smrgfi
518748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
518848c85eb7Smrg$as_echo "$lt_cv_deplibs_check_method" >&6; }
518948c85eb7Smrg
519048c85eb7Smrgfile_magic_glob=
519148c85eb7Smrgwant_nocaseglob=no
519248c85eb7Smrgif test "$build" = "$host"; then
519348c85eb7Smrg  case $host_os in
519448c85eb7Smrg  mingw* | pw32*)
519548c85eb7Smrg    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
519648c85eb7Smrg      want_nocaseglob=yes
519748c85eb7Smrg    else
519848c85eb7Smrg      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
519948c85eb7Smrg    fi
520048c85eb7Smrg    ;;
520148c85eb7Smrg  esac
52023da084b3Smrgfi
520348c85eb7Smrg
520448c85eb7Smrgfile_magic_cmd=$lt_cv_file_magic_cmd
520548c85eb7Smrgdeplibs_check_method=$lt_cv_deplibs_check_method
520648c85eb7Smrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
520748c85eb7Smrg
520848c85eb7Smrg
520948c85eb7Smrg
521048c85eb7Smrg
521148c85eb7Smrg
521248c85eb7Smrg
521348c85eb7Smrg
521448c85eb7Smrg
521548c85eb7Smrg
521648c85eb7Smrg
521748c85eb7Smrg
521848c85eb7Smrg
521948c85eb7Smrg
522048c85eb7Smrg
522148c85eb7Smrg
522248c85eb7Smrg
522348c85eb7Smrg
522448c85eb7Smrg
522548c85eb7Smrg
522648c85eb7Smrg
522748c85eb7Smrg
522848c85eb7Smrg
522948c85eb7Smrgif test -n "$ac_tool_prefix"; then
523048c85eb7Smrg  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
523148c85eb7Smrgset dummy ${ac_tool_prefix}dlltool; ac_word=$2
523248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
523348c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
523448c85eb7Smrgif ${ac_cv_prog_DLLTOOL+:} false; then :
523548c85eb7Smrg  $as_echo_n "(cached) " >&6
52363da084b3Smrgelse
523748c85eb7Smrg  if test -n "$DLLTOOL"; then
523848c85eb7Smrg  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
523948c85eb7Smrgelse
524048c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
524148c85eb7Smrgfor as_dir in $PATH
524248c85eb7Smrgdo
524348c85eb7Smrg  IFS=$as_save_IFS
524448c85eb7Smrg  test -z "$as_dir" && as_dir=.
524548c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
524648c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
524748c85eb7Smrg    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
524848c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
524948c85eb7Smrg    break 2
52503da084b3Smrg  fi
525148c85eb7Smrgdone
525248c85eb7Smrg  done
525348c85eb7SmrgIFS=$as_save_IFS
525448c85eb7Smrg
52553da084b3Smrgfi
525648c85eb7Smrgfi
525748c85eb7SmrgDLLTOOL=$ac_cv_prog_DLLTOOL
525848c85eb7Smrgif test -n "$DLLTOOL"; then
525948c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
526048c85eb7Smrg$as_echo "$DLLTOOL" >&6; }
52613da084b3Smrgelse
526248c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
526348c85eb7Smrg$as_echo "no" >&6; }
526448c85eb7Smrgfi
52653da084b3Smrg
52663da084b3Smrg
52673da084b3Smrgfi
526848c85eb7Smrgif test -z "$ac_cv_prog_DLLTOOL"; then
526948c85eb7Smrg  ac_ct_DLLTOOL=$DLLTOOL
527048c85eb7Smrg  # Extract the first word of "dlltool", so it can be a program name with args.
527148c85eb7Smrgset dummy dlltool; ac_word=$2
527248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
527348c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
527448c85eb7Smrgif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
527548c85eb7Smrg  $as_echo_n "(cached) " >&6
527648c85eb7Smrgelse
527748c85eb7Smrg  if test -n "$ac_ct_DLLTOOL"; then
527848c85eb7Smrg  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
527948c85eb7Smrgelse
528048c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
528148c85eb7Smrgfor as_dir in $PATH
528248c85eb7Smrgdo
528348c85eb7Smrg  IFS=$as_save_IFS
528448c85eb7Smrg  test -z "$as_dir" && as_dir=.
528548c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
528648c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
528748c85eb7Smrg    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
528848c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
528948c85eb7Smrg    break 2
529048c85eb7Smrg  fi
52913da084b3Smrgdone
529248c85eb7Smrg  done
529348c85eb7SmrgIFS=$as_save_IFS
52943da084b3Smrg
52953da084b3Smrgfi
529648c85eb7Smrgfi
529748c85eb7Smrgac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
529848c85eb7Smrgif test -n "$ac_ct_DLLTOOL"; then
529948c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
530048c85eb7Smrg$as_echo "$ac_ct_DLLTOOL" >&6; }
530148c85eb7Smrgelse
530248c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
530348c85eb7Smrg$as_echo "no" >&6; }
530448c85eb7Smrgfi
53053da084b3Smrg
530648c85eb7Smrg  if test "x$ac_ct_DLLTOOL" = x; then
530748c85eb7Smrg    DLLTOOL="false"
530848c85eb7Smrg  else
530948c85eb7Smrg    case $cross_compiling:$ac_tool_warned in
531048c85eb7Smrgyes:)
531148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
531248c85eb7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
531348c85eb7Smrgac_tool_warned=yes ;;
531448c85eb7Smrgesac
531548c85eb7Smrg    DLLTOOL=$ac_ct_DLLTOOL
531648c85eb7Smrg  fi
531748c85eb7Smrgelse
531848c85eb7Smrg  DLLTOOL="$ac_cv_prog_DLLTOOL"
531955acc8fcSmrgfi
53203da084b3Smrg
532148c85eb7Smrgtest -z "$DLLTOOL" && DLLTOOL=dlltool
53223da084b3Smrg
53233da084b3Smrg
53243da084b3Smrg
5325d63fdb69Smrg
53263da084b3Smrg
532748c85eb7Smrg
532848c85eb7Smrg
532948c85eb7Smrg
533048c85eb7Smrg
533148c85eb7Smrg
533248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
533348c85eb7Smrg$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
533448c85eb7Smrgif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
533548c85eb7Smrg  $as_echo_n "(cached) " >&6
533648c85eb7Smrgelse
533748c85eb7Smrg  lt_cv_sharedlib_from_linklib_cmd='unknown'
533848c85eb7Smrg
533948c85eb7Smrgcase $host_os in
534048c85eb7Smrgcygwin* | mingw* | pw32* | cegcc*)
534148c85eb7Smrg  # two different shell functions defined in ltmain.sh
534248c85eb7Smrg  # decide which to use based on capabilities of $DLLTOOL
534348c85eb7Smrg  case `$DLLTOOL --help 2>&1` in
534448c85eb7Smrg  *--identify-strict*)
534548c85eb7Smrg    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
534648c85eb7Smrg    ;;
534748c85eb7Smrg  *)
534848c85eb7Smrg    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
534948c85eb7Smrg    ;;
535048c85eb7Smrg  esac
535148c85eb7Smrg  ;;
535248c85eb7Smrg*)
535348c85eb7Smrg  # fallback: assume linklib IS sharedlib
535448c85eb7Smrg  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
535548c85eb7Smrg  ;;
535648c85eb7Smrgesac
535748c85eb7Smrg
535848c85eb7Smrgfi
535948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
536048c85eb7Smrg$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
536148c85eb7Smrgsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
536248c85eb7Smrgtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
536348c85eb7Smrg
536448c85eb7Smrg
536548c85eb7Smrg
536648c85eb7Smrg
536748c85eb7Smrg
536848c85eb7Smrg
536948c85eb7Smrg
537048c85eb7Smrg
537148c85eb7Smrgif test -n "$ac_tool_prefix"; then
537248c85eb7Smrg  for ac_prog in ar
537348c85eb7Smrg  do
537448c85eb7Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
537548c85eb7Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
537648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
537748c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
537848c85eb7Smrgif ${ac_cv_prog_AR+:} false; then :
537948c85eb7Smrg  $as_echo_n "(cached) " >&6
538048c85eb7Smrgelse
538148c85eb7Smrg  if test -n "$AR"; then
538248c85eb7Smrg  ac_cv_prog_AR="$AR" # Let the user override the test.
538348c85eb7Smrgelse
538448c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
538548c85eb7Smrgfor as_dir in $PATH
538648c85eb7Smrgdo
538748c85eb7Smrg  IFS=$as_save_IFS
538848c85eb7Smrg  test -z "$as_dir" && as_dir=.
538948c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
539048c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
539148c85eb7Smrg    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
539248c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
539348c85eb7Smrg    break 2
539448c85eb7Smrg  fi
539548c85eb7Smrgdone
53963da084b3Smrg  done
539748c85eb7SmrgIFS=$as_save_IFS
53983da084b3Smrg
539948c85eb7Smrgfi
540048c85eb7Smrgfi
540148c85eb7SmrgAR=$ac_cv_prog_AR
540248c85eb7Smrgif test -n "$AR"; then
540348c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
540448c85eb7Smrg$as_echo "$AR" >&6; }
54053da084b3Smrgelse
540648c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
540748c85eb7Smrg$as_echo "no" >&6; }
54083da084b3Smrgfi
54093da084b3Smrg
541048c85eb7Smrg
541148c85eb7Smrg    test -n "$AR" && break
541248c85eb7Smrg  done
54133da084b3Smrgfi
541448c85eb7Smrgif test -z "$AR"; then
541548c85eb7Smrg  ac_ct_AR=$AR
541648c85eb7Smrg  for ac_prog in ar
541748c85eb7Smrgdo
541848c85eb7Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
541948c85eb7Smrgset dummy $ac_prog; ac_word=$2
542048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
542148c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
542248c85eb7Smrgif ${ac_cv_prog_ac_ct_AR+:} false; then :
542348c85eb7Smrg  $as_echo_n "(cached) " >&6
542448c85eb7Smrgelse
542548c85eb7Smrg  if test -n "$ac_ct_AR"; then
542648c85eb7Smrg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
542748c85eb7Smrgelse
542848c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
542948c85eb7Smrgfor as_dir in $PATH
543048c85eb7Smrgdo
543148c85eb7Smrg  IFS=$as_save_IFS
543248c85eb7Smrg  test -z "$as_dir" && as_dir=.
543348c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
543448c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
543548c85eb7Smrg    ac_cv_prog_ac_ct_AR="$ac_prog"
543648c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
543748c85eb7Smrg    break 2
543848c85eb7Smrg  fi
543948c85eb7Smrgdone
544048c85eb7Smrg  done
544148c85eb7SmrgIFS=$as_save_IFS
54423da084b3Smrg
544348c85eb7Smrgfi
544448c85eb7Smrgfi
544548c85eb7Smrgac_ct_AR=$ac_cv_prog_ac_ct_AR
544648c85eb7Smrgif test -n "$ac_ct_AR"; then
544748c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
544848c85eb7Smrg$as_echo "$ac_ct_AR" >&6; }
54493da084b3Smrgelse
545048c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
545148c85eb7Smrg$as_echo "no" >&6; }
54523da084b3Smrgfi
54533da084b3Smrg
54543da084b3Smrg
545548c85eb7Smrg  test -n "$ac_ct_AR" && break
545648c85eb7Smrgdone
545748c85eb7Smrg
545848c85eb7Smrg  if test "x$ac_ct_AR" = x; then
545948c85eb7Smrg    AR="false"
546048c85eb7Smrg  else
546148c85eb7Smrg    case $cross_compiling:$ac_tool_warned in
546248c85eb7Smrgyes:)
546348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
546448c85eb7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
546548c85eb7Smrgac_tool_warned=yes ;;
5466d63fdb69Smrgesac
546748c85eb7Smrg    AR=$ac_ct_AR
546848c85eb7Smrg  fi
546948c85eb7Smrgfi
5470d63fdb69Smrg
547148c85eb7Smrg: ${AR=ar}
547248c85eb7Smrg: ${AR_FLAGS=cru}
5473d63fdb69Smrg
5474d63fdb69Smrg
547555acc8fcSmrg
547655acc8fcSmrg
547755acc8fcSmrg
547855acc8fcSmrg
547955acc8fcSmrg
548055acc8fcSmrg
548155acc8fcSmrg
548255acc8fcSmrg
5483d63fdb69Smrg
548448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
548548c85eb7Smrg$as_echo_n "checking for archiver @FILE support... " >&6; }
548648c85eb7Smrgif ${lt_cv_ar_at_file+:} false; then :
548748c85eb7Smrg  $as_echo_n "(cached) " >&6
548848c85eb7Smrgelse
548948c85eb7Smrg  lt_cv_ar_at_file=no
549048c85eb7Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
549148c85eb7Smrg/* end confdefs.h.  */
54923da084b3Smrg
549348c85eb7Smrgint
549448c85eb7Smrgmain ()
549548c85eb7Smrg{
54963da084b3Smrg
549748c85eb7Smrg  ;
549848c85eb7Smrg  return 0;
549948c85eb7Smrg}
550048c85eb7Smrg_ACEOF
550148c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
550248c85eb7Smrg  echo conftest.$ac_objext > conftest.lst
550348c85eb7Smrg      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
550448c85eb7Smrg      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
550548c85eb7Smrg  (eval $lt_ar_try) 2>&5
550648c85eb7Smrg  ac_status=$?
550748c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
550848c85eb7Smrg  test $ac_status = 0; }
550948c85eb7Smrg      if test "$ac_status" -eq 0; then
551048c85eb7Smrg	# Ensure the archiver fails upon bogus file names.
551148c85eb7Smrg	rm -f conftest.$ac_objext libconftest.a
551248c85eb7Smrg	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
551348c85eb7Smrg  (eval $lt_ar_try) 2>&5
551448c85eb7Smrg  ac_status=$?
551548c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
551648c85eb7Smrg  test $ac_status = 0; }
551748c85eb7Smrg	if test "$ac_status" -ne 0; then
551848c85eb7Smrg          lt_cv_ar_at_file=@
551948c85eb7Smrg        fi
552048c85eb7Smrg      fi
552148c85eb7Smrg      rm -f conftest.* libconftest.a
55223da084b3Smrg
552348c85eb7Smrgfi
552448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55253da084b3Smrg
552648c85eb7Smrgfi
552748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
552848c85eb7Smrg$as_echo "$lt_cv_ar_at_file" >&6; }
552955acc8fcSmrg
553048c85eb7Smrgif test "x$lt_cv_ar_at_file" = xno; then
553148c85eb7Smrg  archiver_list_spec=
553248c85eb7Smrgelse
553348c85eb7Smrg  archiver_list_spec=$lt_cv_ar_at_file
553448c85eb7Smrgfi
553555acc8fcSmrg
553655acc8fcSmrg
553755acc8fcSmrg
553855acc8fcSmrg
553955acc8fcSmrg
554055acc8fcSmrg
55413da084b3Smrg
554248c85eb7Smrgif test -n "$ac_tool_prefix"; then
554348c85eb7Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
554448c85eb7Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
554548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
554648c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
554748c85eb7Smrgif ${ac_cv_prog_STRIP+:} false; then :
554848c85eb7Smrg  $as_echo_n "(cached) " >&6
554948c85eb7Smrgelse
555048c85eb7Smrg  if test -n "$STRIP"; then
555148c85eb7Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
555248c85eb7Smrgelse
555348c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
555448c85eb7Smrgfor as_dir in $PATH
555548c85eb7Smrgdo
555648c85eb7Smrg  IFS=$as_save_IFS
555748c85eb7Smrg  test -z "$as_dir" && as_dir=.
555848c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
555948c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
556048c85eb7Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
556148c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
556248c85eb7Smrg    break 2
556348c85eb7Smrg  fi
556448c85eb7Smrgdone
556548c85eb7Smrg  done
556648c85eb7SmrgIFS=$as_save_IFS
55673da084b3Smrg
556848c85eb7Smrgfi
556948c85eb7Smrgfi
557048c85eb7SmrgSTRIP=$ac_cv_prog_STRIP
557148c85eb7Smrgif test -n "$STRIP"; then
557248c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
557348c85eb7Smrg$as_echo "$STRIP" >&6; }
557448c85eb7Smrgelse
557548c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
557648c85eb7Smrg$as_echo "no" >&6; }
557748c85eb7Smrgfi
5578d63fdb69Smrg
5579d63fdb69Smrg
558048c85eb7Smrgfi
558148c85eb7Smrgif test -z "$ac_cv_prog_STRIP"; then
558248c85eb7Smrg  ac_ct_STRIP=$STRIP
558348c85eb7Smrg  # Extract the first word of "strip", so it can be a program name with args.
558448c85eb7Smrgset dummy strip; ac_word=$2
558548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
558648c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
558748c85eb7Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
558848c85eb7Smrg  $as_echo_n "(cached) " >&6
558948c85eb7Smrgelse
559048c85eb7Smrg  if test -n "$ac_ct_STRIP"; then
559148c85eb7Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
559248c85eb7Smrgelse
559348c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
559448c85eb7Smrgfor as_dir in $PATH
559548c85eb7Smrgdo
559648c85eb7Smrg  IFS=$as_save_IFS
559748c85eb7Smrg  test -z "$as_dir" && as_dir=.
559848c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
559948c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
560048c85eb7Smrg    ac_cv_prog_ac_ct_STRIP="strip"
560148c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
560248c85eb7Smrg    break 2
560348c85eb7Smrg  fi
560448c85eb7Smrgdone
560548c85eb7Smrg  done
560648c85eb7SmrgIFS=$as_save_IFS
5607d63fdb69Smrg
560848c85eb7Smrgfi
560948c85eb7Smrgfi
561048c85eb7Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
561148c85eb7Smrgif test -n "$ac_ct_STRIP"; then
561248c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
561348c85eb7Smrg$as_echo "$ac_ct_STRIP" >&6; }
561448c85eb7Smrgelse
561548c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
561648c85eb7Smrg$as_echo "no" >&6; }
561748c85eb7Smrgfi
5618d63fdb69Smrg
561948c85eb7Smrg  if test "x$ac_ct_STRIP" = x; then
562048c85eb7Smrg    STRIP=":"
562148c85eb7Smrg  else
562248c85eb7Smrg    case $cross_compiling:$ac_tool_warned in
562348c85eb7Smrgyes:)
562448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
562548c85eb7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
562648c85eb7Smrgac_tool_warned=yes ;;
562748c85eb7Smrgesac
562848c85eb7Smrg    STRIP=$ac_ct_STRIP
562948c85eb7Smrg  fi
563048c85eb7Smrgelse
563148c85eb7Smrg  STRIP="$ac_cv_prog_STRIP"
563248c85eb7Smrgfi
5633d63fdb69Smrg
563448c85eb7Smrgtest -z "$STRIP" && STRIP=:
5635d63fdb69Smrg
5636d63fdb69Smrg
56373da084b3Smrg
56383da084b3Smrg
56393da084b3Smrg
56403da084b3Smrg
564148c85eb7Smrgif test -n "$ac_tool_prefix"; then
564248c85eb7Smrg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
564348c85eb7Smrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
564448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
564548c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
564648c85eb7Smrgif ${ac_cv_prog_RANLIB+:} false; then :
564748c85eb7Smrg  $as_echo_n "(cached) " >&6
564848c85eb7Smrgelse
564948c85eb7Smrg  if test -n "$RANLIB"; then
565048c85eb7Smrg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
565148c85eb7Smrgelse
565248c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
565348c85eb7Smrgfor as_dir in $PATH
565448c85eb7Smrgdo
565548c85eb7Smrg  IFS=$as_save_IFS
565648c85eb7Smrg  test -z "$as_dir" && as_dir=.
565748c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
565848c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
565948c85eb7Smrg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
566048c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
566148c85eb7Smrg    break 2
566248c85eb7Smrg  fi
566348c85eb7Smrgdone
566448c85eb7Smrg  done
566548c85eb7SmrgIFS=$as_save_IFS
56663da084b3Smrg
566748c85eb7Smrgfi
566848c85eb7Smrgfi
566948c85eb7SmrgRANLIB=$ac_cv_prog_RANLIB
567048c85eb7Smrgif test -n "$RANLIB"; then
567148c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
567248c85eb7Smrg$as_echo "$RANLIB" >&6; }
567348c85eb7Smrgelse
567448c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
567548c85eb7Smrg$as_echo "no" >&6; }
567648c85eb7Smrgfi
56773da084b3Smrg
56783da084b3Smrg
567948c85eb7Smrgfi
568048c85eb7Smrgif test -z "$ac_cv_prog_RANLIB"; then
568148c85eb7Smrg  ac_ct_RANLIB=$RANLIB
568248c85eb7Smrg  # Extract the first word of "ranlib", so it can be a program name with args.
568348c85eb7Smrgset dummy ranlib; ac_word=$2
568448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
568548c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
568648c85eb7Smrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5687d63fdb69Smrg  $as_echo_n "(cached) " >&6
5688d63fdb69Smrgelse
568948c85eb7Smrg  if test -n "$ac_ct_RANLIB"; then
569048c85eb7Smrg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
569148c85eb7Smrgelse
569248c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56933da084b3Smrgfor as_dir in $PATH
56943da084b3Smrgdo
56953da084b3Smrg  IFS=$as_save_IFS
56963da084b3Smrg  test -z "$as_dir" && as_dir=.
56973da084b3Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
569848c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
569948c85eb7Smrg    ac_cv_prog_ac_ct_RANLIB="ranlib"
570048c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
570148c85eb7Smrg    break 2
570248c85eb7Smrg  fi
570348c85eb7Smrgdone
570455acc8fcSmrg  done
5705d63fdb69SmrgIFS=$as_save_IFS
570648c85eb7Smrg
570748c85eb7Smrgfi
570848c85eb7Smrgfi
570948c85eb7Smrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
571048c85eb7Smrgif test -n "$ac_ct_RANLIB"; then
571148c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
571248c85eb7Smrg$as_echo "$ac_ct_RANLIB" >&6; }
5713d63fdb69Smrgelse
571448c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
571548c85eb7Smrg$as_echo "no" >&6; }
5716d63fdb69Smrgfi
57173da084b3Smrg
571848c85eb7Smrg  if test "x$ac_ct_RANLIB" = x; then
571948c85eb7Smrg    RANLIB=":"
572048c85eb7Smrg  else
572148c85eb7Smrg    case $cross_compiling:$ac_tool_warned in
572248c85eb7Smrgyes:)
572348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
572448c85eb7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
572548c85eb7Smrgac_tool_warned=yes ;;
572648c85eb7Smrgesac
572748c85eb7Smrg    RANLIB=$ac_ct_RANLIB
572848c85eb7Smrg  fi
572948c85eb7Smrgelse
573048c85eb7Smrg  RANLIB="$ac_cv_prog_RANLIB"
57313da084b3Smrgfi
5732d63fdb69Smrg
573348c85eb7Smrgtest -z "$RANLIB" && RANLIB=:
5734d63fdb69Smrg
5735d63fdb69Smrg
5736d63fdb69Smrg
5737d63fdb69Smrg
5738d63fdb69Smrg
5739d63fdb69Smrg
574048c85eb7Smrg# Determine commands to create old-style static archives.
574148c85eb7Smrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
574248c85eb7Smrgold_postinstall_cmds='chmod 644 $oldlib'
574348c85eb7Smrgold_postuninstall_cmds=
5744d63fdb69Smrg
574548c85eb7Smrgif test -n "$RANLIB"; then
574648c85eb7Smrg  case $host_os in
574748c85eb7Smrg  openbsd*)
574848c85eb7Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
574948c85eb7Smrg    ;;
575048c85eb7Smrg  *)
575148c85eb7Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
575248c85eb7Smrg    ;;
575348c85eb7Smrg  esac
575448c85eb7Smrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
575548c85eb7Smrgfi
5756d63fdb69Smrg
575748c85eb7Smrgcase $host_os in
575848c85eb7Smrg  darwin*)
575948c85eb7Smrg    lock_old_archive_extraction=yes ;;
576048c85eb7Smrg  *)
576148c85eb7Smrg    lock_old_archive_extraction=no ;;
5762d63fdb69Smrgesac
57633da084b3Smrg
57643da084b3Smrg
5765d63fdb69Smrg
5766d63fdb69Smrg
5767d63fdb69Smrg
5768d63fdb69Smrg
5769d63fdb69Smrg
5770d63fdb69Smrg
5771d63fdb69Smrg
5772d63fdb69Smrg
5773d63fdb69Smrg
5774d63fdb69Smrg
5775d63fdb69Smrg
5776d63fdb69Smrg
5777d63fdb69Smrg
5778d63fdb69Smrg
5779d63fdb69Smrg
5780d63fdb69Smrg
5781d63fdb69Smrg
5782d63fdb69Smrg
57833da084b3Smrg
57843da084b3Smrg
57853da084b3Smrg
57863da084b3Smrg
57873da084b3Smrg
57883da084b3Smrg
57893da084b3Smrg
57903da084b3Smrg
5791d63fdb69Smrg
5792d63fdb69Smrg
5793d63fdb69Smrg
5794d63fdb69Smrg
5795d63fdb69Smrg
5796d63fdb69Smrg
579748c85eb7Smrg
579848c85eb7Smrg
579948c85eb7Smrg
580048c85eb7Smrg
580148c85eb7Smrg
580248c85eb7Smrg# If no C compiler was specified, use CC.
580348c85eb7SmrgLTCC=${LTCC-"$CC"}
580448c85eb7Smrg
580548c85eb7Smrg# If no C compiler flags were specified, use CFLAGS.
580648c85eb7SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
580748c85eb7Smrg
580848c85eb7Smrg# Allow CC to be a program name with arguments.
580948c85eb7Smrgcompiler=$CC
581048c85eb7Smrg
581148c85eb7Smrg
581248c85eb7Smrg# Check for command to grab the raw symbol name followed by C symbol from nm.
581348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
581448c85eb7Smrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
581548c85eb7Smrgif ${lt_cv_sys_global_symbol_pipe+:} false; then :
5816d63fdb69Smrg  $as_echo_n "(cached) " >&6
58173da084b3Smrgelse
581848c85eb7Smrg
581948c85eb7Smrg# These are sane defaults that work on at least a few old systems.
582048c85eb7Smrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
582148c85eb7Smrg
582248c85eb7Smrg# Character class describing NM global symbol codes.
582348c85eb7Smrgsymcode='[BCDEGRST]'
582448c85eb7Smrg
582548c85eb7Smrg# Regexp to match symbols that can be accessed directly from C.
582648c85eb7Smrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
582748c85eb7Smrg
582848c85eb7Smrg# Define system-specific variables.
582948c85eb7Smrgcase $host_os in
583048c85eb7Smrgaix*)
583148c85eb7Smrg  symcode='[BCDT]'
583248c85eb7Smrg  ;;
583348c85eb7Smrgcygwin* | mingw* | pw32* | cegcc*)
583448c85eb7Smrg  symcode='[ABCDGISTW]'
583548c85eb7Smrg  ;;
583648c85eb7Smrghpux*)
583748c85eb7Smrg  if test "$host_cpu" = ia64; then
583848c85eb7Smrg    symcode='[ABCDEGRST]'
58393da084b3Smrg  fi
584048c85eb7Smrg  ;;
584148c85eb7Smrgirix* | nonstopux*)
584248c85eb7Smrg  symcode='[BCDEGRST]'
584348c85eb7Smrg  ;;
584448c85eb7Smrgosf*)
584548c85eb7Smrg  symcode='[BCDEGQRST]'
584648c85eb7Smrg  ;;
584748c85eb7Smrgsolaris*)
584848c85eb7Smrg  symcode='[BDRT]'
584948c85eb7Smrg  ;;
585048c85eb7Smrgsco3.2v5*)
585148c85eb7Smrg  symcode='[DT]'
585248c85eb7Smrg  ;;
585348c85eb7Smrgsysv4.2uw2*)
585448c85eb7Smrg  symcode='[DT]'
585548c85eb7Smrg  ;;
585648c85eb7Smrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
585748c85eb7Smrg  symcode='[ABDT]'
585848c85eb7Smrg  ;;
585948c85eb7Smrgsysv4)
586048c85eb7Smrg  symcode='[DFNSTU]'
586148c85eb7Smrg  ;;
586248c85eb7Smrgesac
58633da084b3Smrg
586448c85eb7Smrg# If we're using GNU nm, then use its standard symbol codes.
586548c85eb7Smrgcase `$NM -V 2>&1` in
586648c85eb7Smrg*GNU* | *'with BFD'*)
586748c85eb7Smrg  symcode='[ABCDGIRSTW]' ;;
586848c85eb7Smrgesac
58693da084b3Smrg
587048c85eb7Smrg# Transform an extracted symbol line into a proper C declaration.
587148c85eb7Smrg# Some systems (esp. on ia64) link data and code symbols differently,
587248c85eb7Smrg# so use this general approach.
587348c85eb7Smrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
58743da084b3Smrg
587548c85eb7Smrg# Transform an extracted symbol line into symbol name and symbol address
587648c85eb7Smrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
587748c85eb7Smrglt_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'"
58783da084b3Smrg
587948c85eb7Smrg# Handle CRLF in mingw tool chain
588048c85eb7Smrgopt_cr=
588148c85eb7Smrgcase $build_os in
588248c85eb7Smrgmingw*)
588348c85eb7Smrg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
588448c85eb7Smrg  ;;
588548c85eb7Smrgesac
58863da084b3Smrg
588748c85eb7Smrg# Try without a prefix underscore, then with it.
588848c85eb7Smrgfor ac_symprfx in "" "_"; do
58893da084b3Smrg
589048c85eb7Smrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
589148c85eb7Smrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
58923da084b3Smrg
589348c85eb7Smrg  # Write the raw and C identifiers.
589448c85eb7Smrg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
589548c85eb7Smrg    # Fake it for dumpbin and say T for any non-static function
589648c85eb7Smrg    # and D for any global variable.
589748c85eb7Smrg    # Also find C++ and __fastcall symbols from MSVC++,
589848c85eb7Smrg    # which start with @ or ?.
589948c85eb7Smrg    lt_cv_sys_global_symbol_pipe="$AWK '"\
590048c85eb7Smrg"     {last_section=section; section=\$ 3};"\
590148c85eb7Smrg"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
590248c85eb7Smrg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
590348c85eb7Smrg"     \$ 0!~/External *\|/{next};"\
590448c85eb7Smrg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
590548c85eb7Smrg"     {if(hide[section]) next};"\
590648c85eb7Smrg"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
590748c85eb7Smrg"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
590848c85eb7Smrg"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
590948c85eb7Smrg"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
591048c85eb7Smrg"     ' prfx=^$ac_symprfx"
5911d63fdb69Smrg  else
591248c85eb7Smrg    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
591355acc8fcSmrg  fi
591448c85eb7Smrg  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
59153da084b3Smrg
591648c85eb7Smrg  # Check to see that the pipe works correctly.
591748c85eb7Smrg  pipe_works=no
59183da084b3Smrg
591948c85eb7Smrg  rm -f conftest*
592048c85eb7Smrg  cat > conftest.$ac_ext <<_LT_EOF
592148c85eb7Smrg#ifdef __cplusplus
592248c85eb7Smrgextern "C" {
592348c85eb7Smrg#endif
592448c85eb7Smrgchar nm_test_var;
592548c85eb7Smrgvoid nm_test_func(void);
592648c85eb7Smrgvoid nm_test_func(void){}
592748c85eb7Smrg#ifdef __cplusplus
592848c85eb7Smrg}
592948c85eb7Smrg#endif
593048c85eb7Smrgint main(){nm_test_var='a';nm_test_func();return(0);}
593148c85eb7Smrg_LT_EOF
59323da084b3Smrg
593348c85eb7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
593448c85eb7Smrg  (eval $ac_compile) 2>&5
593548c85eb7Smrg  ac_status=$?
593648c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
593748c85eb7Smrg  test $ac_status = 0; }; then
593848c85eb7Smrg    # Now try to grab the symbols.
593948c85eb7Smrg    nlist=conftest.nm
594048c85eb7Smrg    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
594148c85eb7Smrg  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
594248c85eb7Smrg  ac_status=$?
594348c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
594448c85eb7Smrg  test $ac_status = 0; } && test -s "$nlist"; then
594548c85eb7Smrg      # Try sorting and uniquifying the output.
594648c85eb7Smrg      if sort "$nlist" | uniq > "$nlist"T; then
594748c85eb7Smrg	mv -f "$nlist"T "$nlist"
594848c85eb7Smrg      else
594948c85eb7Smrg	rm -f "$nlist"T
595048c85eb7Smrg      fi
59513da084b3Smrg
595248c85eb7Smrg      # Make sure that we snagged all the symbols we need.
595348c85eb7Smrg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
595448c85eb7Smrg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
595548c85eb7Smrg	  cat <<_LT_EOF > conftest.$ac_ext
595648c85eb7Smrg/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
595748c85eb7Smrg#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
595848c85eb7Smrg/* DATA imports from DLLs on WIN32 con't be const, because runtime
595948c85eb7Smrg   relocations are performed -- see ld's documentation on pseudo-relocs.  */
596048c85eb7Smrg# define LT_DLSYM_CONST
596148c85eb7Smrg#elif defined(__osf__)
596248c85eb7Smrg/* This system does not cope well with relocations in const data.  */
596348c85eb7Smrg# define LT_DLSYM_CONST
596448c85eb7Smrg#else
596548c85eb7Smrg# define LT_DLSYM_CONST const
596648c85eb7Smrg#endif
59673da084b3Smrg
596848c85eb7Smrg#ifdef __cplusplus
596948c85eb7Smrgextern "C" {
597048c85eb7Smrg#endif
59713da084b3Smrg
597248c85eb7Smrg_LT_EOF
597348c85eb7Smrg	  # Now generate the symbol file.
597448c85eb7Smrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
59753da084b3Smrg
597648c85eb7Smrg	  cat <<_LT_EOF >> conftest.$ac_ext
59773da084b3Smrg
597848c85eb7Smrg/* The mapping between symbol names and symbols.  */
597948c85eb7SmrgLT_DLSYM_CONST struct {
598048c85eb7Smrg  const char *name;
598148c85eb7Smrg  void       *address;
598248c85eb7Smrg}
598348c85eb7Smrglt__PROGRAM__LTX_preloaded_symbols[] =
598448c85eb7Smrg{
598548c85eb7Smrg  { "@PROGRAM@", (void *) 0 },
598648c85eb7Smrg_LT_EOF
598748c85eb7Smrg	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
598848c85eb7Smrg	  cat <<\_LT_EOF >> conftest.$ac_ext
598948c85eb7Smrg  {0, (void *) 0}
599048c85eb7Smrg};
599155acc8fcSmrg
599248c85eb7Smrg/* This works around a problem in FreeBSD linker */
599348c85eb7Smrg#ifdef FREEBSD_WORKAROUND
599448c85eb7Smrgstatic const void *lt_preloaded_setup() {
599548c85eb7Smrg  return lt__PROGRAM__LTX_preloaded_symbols;
599648c85eb7Smrg}
599748c85eb7Smrg#endif
5998d63fdb69Smrg
599948c85eb7Smrg#ifdef __cplusplus
600048c85eb7Smrg}
600148c85eb7Smrg#endif
600248c85eb7Smrg_LT_EOF
600348c85eb7Smrg	  # Now try linking the two files.
600448c85eb7Smrg	  mv conftest.$ac_objext conftstm.$ac_objext
600548c85eb7Smrg	  lt_globsym_save_LIBS=$LIBS
600648c85eb7Smrg	  lt_globsym_save_CFLAGS=$CFLAGS
600748c85eb7Smrg	  LIBS="conftstm.$ac_objext"
600848c85eb7Smrg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
600948c85eb7Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
601048c85eb7Smrg  (eval $ac_link) 2>&5
601148c85eb7Smrg  ac_status=$?
601248c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
601348c85eb7Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
601448c85eb7Smrg	    pipe_works=yes
601548c85eb7Smrg	  fi
601648c85eb7Smrg	  LIBS=$lt_globsym_save_LIBS
601748c85eb7Smrg	  CFLAGS=$lt_globsym_save_CFLAGS
601848c85eb7Smrg	else
601948c85eb7Smrg	  echo "cannot find nm_test_func in $nlist" >&5
602048c85eb7Smrg	fi
602148c85eb7Smrg      else
602248c85eb7Smrg	echo "cannot find nm_test_var in $nlist" >&5
602348c85eb7Smrg      fi
6024d63fdb69Smrg    else
602548c85eb7Smrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6026d63fdb69Smrg    fi
602748c85eb7Smrg  else
602848c85eb7Smrg    echo "$progname: failed program was:" >&5
602948c85eb7Smrg    cat conftest.$ac_ext >&5
603048c85eb7Smrg  fi
603148c85eb7Smrg  rm -rf conftest* conftst*
6032d63fdb69Smrg
603348c85eb7Smrg  # Do not use the global_symbol_pipe unless it works.
603448c85eb7Smrg  if test "$pipe_works" = yes; then
603548c85eb7Smrg    break
603648c85eb7Smrg  else
603748c85eb7Smrg    lt_cv_sys_global_symbol_pipe=
603848c85eb7Smrg  fi
603948c85eb7Smrgdone
60403da084b3Smrg
6041d63fdb69Smrgfi
60423da084b3Smrg
604348c85eb7Smrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
604448c85eb7Smrg  lt_cv_sys_global_symbol_to_cdecl=
604548c85eb7Smrgfi
604648c85eb7Smrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
604748c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
604848c85eb7Smrg$as_echo "failed" >&6; }
6049d63fdb69Smrgelse
605048c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
605148c85eb7Smrg$as_echo "ok" >&6; }
60523da084b3Smrgfi
60533da084b3Smrg
605448c85eb7Smrg# Response file support.
605548c85eb7Smrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then
605648c85eb7Smrg  nm_file_list_spec='@'
605748c85eb7Smrgelif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
605848c85eb7Smrg  nm_file_list_spec='@'
605948c85eb7Smrgfi
60603da084b3Smrg
60613da084b3Smrg
60623da084b3Smrg
60633da084b3Smrg
60643da084b3Smrg
60653da084b3Smrg
60663da084b3Smrg
6067d63fdb69Smrg
6068d63fdb69Smrg
6069d63fdb69Smrg
60703da084b3Smrg
60713da084b3Smrg
6072d63fdb69Smrg
6073d63fdb69Smrg
6074d63fdb69Smrg
60753da084b3Smrg
60763da084b3Smrg
60773da084b3Smrg
60783da084b3Smrg
60793da084b3Smrg
6080d63fdb69Smrg
6081d63fdb69Smrg
6082d63fdb69Smrg
6083d63fdb69Smrg
608448c85eb7Smrg
608548c85eb7Smrg
608648c85eb7Smrg
608748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
608848c85eb7Smrg$as_echo_n "checking for sysroot... " >&6; }
608948c85eb7Smrg
609048c85eb7Smrg# Check whether --with-sysroot was given.
609148c85eb7Smrgif test "${with_sysroot+set}" = set; then :
609248c85eb7Smrg  withval=$with_sysroot;
6093d63fdb69Smrgelse
609448c85eb7Smrg  with_sysroot=no
6095d63fdb69Smrgfi
60963da084b3Smrg
60973da084b3Smrg
609848c85eb7Smrglt_sysroot=
609948c85eb7Smrgcase ${with_sysroot} in #(
610048c85eb7Smrg yes)
610148c85eb7Smrg   if test "$GCC" = yes; then
610248c85eb7Smrg     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
610348c85eb7Smrg   fi
610448c85eb7Smrg   ;; #(
610548c85eb7Smrg /*)
610648c85eb7Smrg   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
610748c85eb7Smrg   ;; #(
610848c85eb7Smrg no|'')
610948c85eb7Smrg   ;; #(
611048c85eb7Smrg *)
611148c85eb7Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
611248c85eb7Smrg$as_echo "${with_sysroot}" >&6; }
611348c85eb7Smrg   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
611448c85eb7Smrg   ;;
611548c85eb7Smrgesac
61163da084b3Smrg
611748c85eb7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
611848c85eb7Smrg$as_echo "${lt_sysroot:-no}" >&6; }
61193da084b3Smrg
61203da084b3Smrg
61213da084b3Smrg
61223da084b3Smrg
6123d63fdb69Smrg
612448c85eb7Smrg# Check whether --enable-libtool-lock was given.
612548c85eb7Smrgif test "${enable_libtool_lock+set}" = set; then :
612648c85eb7Smrg  enableval=$enable_libtool_lock;
612748c85eb7Smrgfi
612848c85eb7Smrg
612948c85eb7Smrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
613048c85eb7Smrg
613148c85eb7Smrg# Some flags need to be propagated to the compiler or linker for good
613248c85eb7Smrg# libtool support.
613348c85eb7Smrgcase $host in
613448c85eb7Smrgia64-*-hpux*)
613548c85eb7Smrg  # Find out which ABI we are using.
613648c85eb7Smrg  echo 'int i;' > conftest.$ac_ext
613748c85eb7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
613848c85eb7Smrg  (eval $ac_compile) 2>&5
613948c85eb7Smrg  ac_status=$?
614048c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
614148c85eb7Smrg  test $ac_status = 0; }; then
614248c85eb7Smrg    case `/usr/bin/file conftest.$ac_objext` in
614348c85eb7Smrg      *ELF-32*)
614448c85eb7Smrg	HPUX_IA64_MODE="32"
614548c85eb7Smrg	;;
614648c85eb7Smrg      *ELF-64*)
614748c85eb7Smrg	HPUX_IA64_MODE="64"
614848c85eb7Smrg	;;
614948c85eb7Smrg    esac
615048c85eb7Smrg  fi
615148c85eb7Smrg  rm -rf conftest*
615248c85eb7Smrg  ;;
615348c85eb7Smrg*-*-irix6*)
615448c85eb7Smrg  # Find out which ABI we are using.
615548c85eb7Smrg  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
615648c85eb7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
615748c85eb7Smrg  (eval $ac_compile) 2>&5
615848c85eb7Smrg  ac_status=$?
615948c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
616048c85eb7Smrg  test $ac_status = 0; }; then
616148c85eb7Smrg    if test "$lt_cv_prog_gnu_ld" = yes; then
616248c85eb7Smrg      case `/usr/bin/file conftest.$ac_objext` in
616348c85eb7Smrg	*32-bit*)
616448c85eb7Smrg	  LD="${LD-ld} -melf32bsmip"
616548c85eb7Smrg	  ;;
616648c85eb7Smrg	*N32*)
616748c85eb7Smrg	  LD="${LD-ld} -melf32bmipn32"
616848c85eb7Smrg	  ;;
616948c85eb7Smrg	*64-bit*)
617048c85eb7Smrg	  LD="${LD-ld} -melf64bmip"
617148c85eb7Smrg	;;
617248c85eb7Smrg      esac
617348c85eb7Smrg    else
617448c85eb7Smrg      case `/usr/bin/file conftest.$ac_objext` in
617548c85eb7Smrg	*32-bit*)
617648c85eb7Smrg	  LD="${LD-ld} -32"
617748c85eb7Smrg	  ;;
617848c85eb7Smrg	*N32*)
617948c85eb7Smrg	  LD="${LD-ld} -n32"
618048c85eb7Smrg	  ;;
618148c85eb7Smrg	*64-bit*)
618248c85eb7Smrg	  LD="${LD-ld} -64"
618348c85eb7Smrg	  ;;
618448c85eb7Smrg      esac
618548c85eb7Smrg    fi
618648c85eb7Smrg  fi
618748c85eb7Smrg  rm -rf conftest*
618848c85eb7Smrg  ;;
618948c85eb7Smrg
619048c85eb7Smrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
619148c85eb7Smrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
619248c85eb7Smrg  # Find out which ABI we are using.
619348c85eb7Smrg  echo 'int i;' > conftest.$ac_ext
619448c85eb7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
619548c85eb7Smrg  (eval $ac_compile) 2>&5
619648c85eb7Smrg  ac_status=$?
619748c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
619848c85eb7Smrg  test $ac_status = 0; }; then
619948c85eb7Smrg    case `/usr/bin/file conftest.o` in
620048c85eb7Smrg      *32-bit*)
620148c85eb7Smrg	case $host in
620248c85eb7Smrg	  x86_64-*kfreebsd*-gnu)
620348c85eb7Smrg	    LD="${LD-ld} -m elf_i386_fbsd"
620448c85eb7Smrg	    ;;
620548c85eb7Smrg	  x86_64-*linux*)
620648c85eb7Smrg	    LD="${LD-ld} -m elf_i386"
620748c85eb7Smrg	    ;;
620848c85eb7Smrg	  ppc64-*linux*|powerpc64-*linux*)
620948c85eb7Smrg	    LD="${LD-ld} -m elf32ppclinux"
621048c85eb7Smrg	    ;;
621148c85eb7Smrg	  s390x-*linux*)
621248c85eb7Smrg	    LD="${LD-ld} -m elf_s390"
621348c85eb7Smrg	    ;;
621448c85eb7Smrg	  sparc64-*linux*)
621548c85eb7Smrg	    LD="${LD-ld} -m elf32_sparc"
621648c85eb7Smrg	    ;;
621748c85eb7Smrg	esac
621848c85eb7Smrg	;;
621948c85eb7Smrg      *64-bit*)
622048c85eb7Smrg	case $host in
622148c85eb7Smrg	  x86_64-*kfreebsd*-gnu)
622248c85eb7Smrg	    LD="${LD-ld} -m elf_x86_64_fbsd"
622348c85eb7Smrg	    ;;
622448c85eb7Smrg	  x86_64-*linux*)
622548c85eb7Smrg	    LD="${LD-ld} -m elf_x86_64"
622648c85eb7Smrg	    ;;
622748c85eb7Smrg	  ppc*-*linux*|powerpc*-*linux*)
622848c85eb7Smrg	    LD="${LD-ld} -m elf64ppc"
622948c85eb7Smrg	    ;;
623048c85eb7Smrg	  s390*-*linux*|s390*-*tpf*)
623148c85eb7Smrg	    LD="${LD-ld} -m elf64_s390"
623248c85eb7Smrg	    ;;
623348c85eb7Smrg	  sparc*-*linux*)
623448c85eb7Smrg	    LD="${LD-ld} -m elf64_sparc"
623548c85eb7Smrg	    ;;
623648c85eb7Smrg	esac
623748c85eb7Smrg	;;
623848c85eb7Smrg    esac
623948c85eb7Smrg  fi
624048c85eb7Smrg  rm -rf conftest*
624148c85eb7Smrg  ;;
624248c85eb7Smrg
624348c85eb7Smrg*-*-sco3.2v5*)
624448c85eb7Smrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
624548c85eb7Smrg  SAVE_CFLAGS="$CFLAGS"
624648c85eb7Smrg  CFLAGS="$CFLAGS -belf"
624748c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
624848c85eb7Smrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
624948c85eb7Smrgif ${lt_cv_cc_needs_belf+:} false; then :
625048c85eb7Smrg  $as_echo_n "(cached) " >&6
625148c85eb7Smrgelse
625248c85eb7Smrg  ac_ext=c
625348c85eb7Smrgac_cpp='$CPP $CPPFLAGS'
625448c85eb7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
625548c85eb7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
625648c85eb7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
625748c85eb7Smrg
625848c85eb7Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
625948c85eb7Smrg/* end confdefs.h.  */
626048c85eb7Smrg
626148c85eb7Smrgint
626248c85eb7Smrgmain ()
626348c85eb7Smrg{
626448c85eb7Smrg
626548c85eb7Smrg  ;
626648c85eb7Smrg  return 0;
626748c85eb7Smrg}
626848c85eb7Smrg_ACEOF
626948c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
627048c85eb7Smrg  lt_cv_cc_needs_belf=yes
627148c85eb7Smrgelse
627248c85eb7Smrg  lt_cv_cc_needs_belf=no
627348c85eb7Smrgfi
627448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
627548c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
627648c85eb7Smrg     ac_ext=c
627748c85eb7Smrgac_cpp='$CPP $CPPFLAGS'
627848c85eb7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
627948c85eb7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
628048c85eb7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
628148c85eb7Smrg
628248c85eb7Smrgfi
628348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
628448c85eb7Smrg$as_echo "$lt_cv_cc_needs_belf" >&6; }
628548c85eb7Smrg  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
628648c85eb7Smrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
628748c85eb7Smrg    CFLAGS="$SAVE_CFLAGS"
628848c85eb7Smrg  fi
628948c85eb7Smrg  ;;
629048c85eb7Smrg*-*solaris*)
629148c85eb7Smrg  # Find out which ABI we are using.
629248c85eb7Smrg  echo 'int i;' > conftest.$ac_ext
629348c85eb7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
629448c85eb7Smrg  (eval $ac_compile) 2>&5
629548c85eb7Smrg  ac_status=$?
629648c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
629748c85eb7Smrg  test $ac_status = 0; }; then
629848c85eb7Smrg    case `/usr/bin/file conftest.o` in
629948c85eb7Smrg    *64-bit*)
630048c85eb7Smrg      case $lt_cv_prog_gnu_ld in
630148c85eb7Smrg      yes*)
630248c85eb7Smrg        case $host in
630348c85eb7Smrg        i?86-*-solaris*)
630448c85eb7Smrg          LD="${LD-ld} -m elf_x86_64"
630548c85eb7Smrg          ;;
630648c85eb7Smrg        sparc*-*-solaris*)
630748c85eb7Smrg          LD="${LD-ld} -m elf64_sparc"
630848c85eb7Smrg          ;;
630948c85eb7Smrg        esac
631048c85eb7Smrg        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
631148c85eb7Smrg        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
631248c85eb7Smrg          LD="${LD-ld}_sol2"
631348c85eb7Smrg        fi
631448c85eb7Smrg        ;;
631548c85eb7Smrg      *)
631648c85eb7Smrg	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
631748c85eb7Smrg	  LD="${LD-ld} -64"
631848c85eb7Smrg	fi
631948c85eb7Smrg	;;
632048c85eb7Smrg      esac
632148c85eb7Smrg      ;;
632248c85eb7Smrg    esac
632348c85eb7Smrg  fi
632448c85eb7Smrg  rm -rf conftest*
632548c85eb7Smrg  ;;
632648c85eb7Smrgesac
632748c85eb7Smrg
632848c85eb7Smrgneed_locks="$enable_libtool_lock"
632948c85eb7Smrg
6330d63fdb69Smrgif test -n "$ac_tool_prefix"; then
633148c85eb7Smrg  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
633248c85eb7Smrgset dummy ${ac_tool_prefix}mt; ac_word=$2
633355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; }
633548c85eb7Smrgif ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6336d63fdb69Smrg  $as_echo_n "(cached) " >&6
63373da084b3Smrgelse
633848c85eb7Smrg  if test -n "$MANIFEST_TOOL"; then
633948c85eb7Smrg  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6340d63fdb69Smrgelse
6341d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342d63fdb69Smrgfor as_dir in $PATH
63433da084b3Smrgdo
6344d63fdb69Smrg  IFS=$as_save_IFS
6345d63fdb69Smrg  test -z "$as_dir" && as_dir=.
634655acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6347d63fdb69Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
634848c85eb7Smrg    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
634955acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350d63fdb69Smrg    break 2
63513da084b3Smrg  fi
6352d63fdb69Smrgdone
635355acc8fcSmrg  done
6354d63fdb69SmrgIFS=$as_save_IFS
6355d63fdb69Smrg
63563da084b3Smrgfi
6357d63fdb69Smrgfi
635848c85eb7SmrgMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
635948c85eb7Smrgif test -n "$MANIFEST_TOOL"; then
636048c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
636148c85eb7Smrg$as_echo "$MANIFEST_TOOL" >&6; }
63623da084b3Smrgelse
636355acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364d63fdb69Smrg$as_echo "no" >&6; }
6365d63fdb69Smrgfi
6366d63fdb69Smrg
63673da084b3Smrg
63683da084b3Smrgfi
636948c85eb7Smrgif test -z "$ac_cv_prog_MANIFEST_TOOL"; then
637048c85eb7Smrg  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
637148c85eb7Smrg  # Extract the first word of "mt", so it can be a program name with args.
637248c85eb7Smrgset dummy mt; ac_word=$2
637355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; }
637548c85eb7Smrgif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6376d63fdb69Smrg  $as_echo_n "(cached) " >&6
6377d63fdb69Smrgelse
637848c85eb7Smrg  if test -n "$ac_ct_MANIFEST_TOOL"; then
637948c85eb7Smrg  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6380d63fdb69Smrgelse
6381d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382d63fdb69Smrgfor as_dir in $PATH
6383d63fdb69Smrgdo
6384d63fdb69Smrg  IFS=$as_save_IFS
6385d63fdb69Smrg  test -z "$as_dir" && as_dir=.
638655acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6387d63fdb69Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
638848c85eb7Smrg    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
638955acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390d63fdb69Smrg    break 2
6391d63fdb69Smrg  fi
6392d63fdb69Smrgdone
639355acc8fcSmrg  done
6394d63fdb69SmrgIFS=$as_save_IFS
63953da084b3Smrg
6396d63fdb69Smrgfi
6397d63fdb69Smrgfi
639848c85eb7Smrgac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
639948c85eb7Smrgif test -n "$ac_ct_MANIFEST_TOOL"; then
640048c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
640148c85eb7Smrg$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6402d63fdb69Smrgelse
640355acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404d63fdb69Smrg$as_echo "no" >&6; }
6405d63fdb69Smrgfi
64063da084b3Smrg
640748c85eb7Smrg  if test "x$ac_ct_MANIFEST_TOOL" = x; then
640848c85eb7Smrg    MANIFEST_TOOL=":"
64093da084b3Smrg  else
6410d63fdb69Smrg    case $cross_compiling:$ac_tool_warned in
6411d63fdb69Smrgyes:)
641255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6413d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6414d63fdb69Smrgac_tool_warned=yes ;;
6415d63fdb69Smrgesac
641648c85eb7Smrg    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
64173da084b3Smrg  fi
64183da084b3Smrgelse
641948c85eb7Smrg  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
64203da084b3Smrgfi
64213da084b3Smrg
642248c85eb7Smrgtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
642348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
642448c85eb7Smrg$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
642548c85eb7Smrgif ${lt_cv_path_mainfest_tool+:} false; then :
642648c85eb7Smrg  $as_echo_n "(cached) " >&6
642748c85eb7Smrgelse
642848c85eb7Smrg  lt_cv_path_mainfest_tool=no
642948c85eb7Smrg  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
643048c85eb7Smrg  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
643148c85eb7Smrg  cat conftest.err >&5
643248c85eb7Smrg  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
643348c85eb7Smrg    lt_cv_path_mainfest_tool=yes
643448c85eb7Smrg  fi
643548c85eb7Smrg  rm -f conftest*
643648c85eb7Smrgfi
643748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
643848c85eb7Smrg$as_echo "$lt_cv_path_mainfest_tool" >&6; }
643948c85eb7Smrgif test "x$lt_cv_path_mainfest_tool" != xyes; then
644048c85eb7Smrg  MANIFEST_TOOL=:
644148c85eb7Smrgfi
64423da084b3Smrg
64433da084b3Smrg
64443da084b3Smrg
64453da084b3Smrg
64463da084b3Smrg
64473da084b3Smrg
644848c85eb7Smrg  case $host_os in
644948c85eb7Smrg    rhapsody* | darwin*)
645048c85eb7Smrg    if test -n "$ac_tool_prefix"; then
645148c85eb7Smrg  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
645248c85eb7Smrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
645348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
645448c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
645548c85eb7Smrgif ${ac_cv_prog_DSYMUTIL+:} false; then :
6456d63fdb69Smrg  $as_echo_n "(cached) " >&6
64573da084b3Smrgelse
645848c85eb7Smrg  if test -n "$DSYMUTIL"; then
645948c85eb7Smrg  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6460d63fdb69Smrgelse
6461d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462d63fdb69Smrgfor as_dir in $PATH
6463d63fdb69Smrgdo
6464d63fdb69Smrg  IFS=$as_save_IFS
6465d63fdb69Smrg  test -z "$as_dir" && as_dir=.
646655acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6467d63fdb69Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
646848c85eb7Smrg    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
646955acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470d63fdb69Smrg    break 2
6471d63fdb69Smrg  fi
6472d63fdb69Smrgdone
647355acc8fcSmrg  done
6474d63fdb69SmrgIFS=$as_save_IFS
64753da084b3Smrg
6476d63fdb69Smrgfi
6477d63fdb69Smrgfi
647848c85eb7SmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL
647948c85eb7Smrgif test -n "$DSYMUTIL"; then
648048c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
648148c85eb7Smrg$as_echo "$DSYMUTIL" >&6; }
6482d63fdb69Smrgelse
648355acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484d63fdb69Smrg$as_echo "no" >&6; }
6485d63fdb69Smrgfi
64863da084b3Smrg
64873da084b3Smrg
64883da084b3Smrgfi
648948c85eb7Smrgif test -z "$ac_cv_prog_DSYMUTIL"; then
649048c85eb7Smrg  ac_ct_DSYMUTIL=$DSYMUTIL
649148c85eb7Smrg  # Extract the first word of "dsymutil", so it can be a program name with args.
649248c85eb7Smrgset dummy dsymutil; ac_word=$2
649355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; }
649548c85eb7Smrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6496d63fdb69Smrg  $as_echo_n "(cached) " >&6
64973da084b3Smrgelse
649848c85eb7Smrg  if test -n "$ac_ct_DSYMUTIL"; then
649948c85eb7Smrg  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
65003da084b3Smrgelse
6501d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502d63fdb69Smrgfor as_dir in $PATH
6503d63fdb69Smrgdo
6504d63fdb69Smrg  IFS=$as_save_IFS
6505d63fdb69Smrg  test -z "$as_dir" && as_dir=.
650655acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6507d63fdb69Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
650848c85eb7Smrg    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
650955acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510d63fdb69Smrg    break 2
6511d63fdb69Smrg  fi
6512d63fdb69Smrgdone
651355acc8fcSmrg  done
6514d63fdb69SmrgIFS=$as_save_IFS
65153da084b3Smrg
65163da084b3Smrgfi
65173da084b3Smrgfi
651848c85eb7Smrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
651948c85eb7Smrgif test -n "$ac_ct_DSYMUTIL"; then
652048c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
652148c85eb7Smrg$as_echo "$ac_ct_DSYMUTIL" >&6; }
65223da084b3Smrgelse
652355acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524d63fdb69Smrg$as_echo "no" >&6; }
65253da084b3Smrgfi
65263da084b3Smrg
652748c85eb7Smrg  if test "x$ac_ct_DSYMUTIL" = x; then
652848c85eb7Smrg    DSYMUTIL=":"
6529d63fdb69Smrg  else
6530d63fdb69Smrg    case $cross_compiling:$ac_tool_warned in
6531d63fdb69Smrgyes:)
653255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6533d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534d63fdb69Smrgac_tool_warned=yes ;;
65353da084b3Smrgesac
653648c85eb7Smrg    DSYMUTIL=$ac_ct_DSYMUTIL
6537d63fdb69Smrg  fi
65383da084b3Smrgelse
653948c85eb7Smrg  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
65403da084b3Smrgfi
65413da084b3Smrg
654248c85eb7Smrg    if test -n "$ac_tool_prefix"; then
654348c85eb7Smrg  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
654448c85eb7Smrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2
654555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; }
654748c85eb7Smrgif ${ac_cv_prog_NMEDIT+:} false; then :
6548d63fdb69Smrg  $as_echo_n "(cached) " >&6
65493da084b3Smrgelse
655048c85eb7Smrg  if test -n "$NMEDIT"; then
655148c85eb7Smrg  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
65523da084b3Smrgelse
65533da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
65543da084b3Smrgfor as_dir in $PATH
65553da084b3Smrgdo
65563da084b3Smrg  IFS=$as_save_IFS
65573da084b3Smrg  test -z "$as_dir" && as_dir=.
655855acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6559d63fdb69Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
656048c85eb7Smrg    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
656155acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
65623da084b3Smrg    break 2
65633da084b3Smrg  fi
65643da084b3Smrgdone
656555acc8fcSmrg  done
65663da084b3SmrgIFS=$as_save_IFS
65673da084b3Smrg
65683da084b3Smrgfi
65693da084b3Smrgfi
657048c85eb7SmrgNMEDIT=$ac_cv_prog_NMEDIT
657148c85eb7Smrgif test -n "$NMEDIT"; then
657248c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
657348c85eb7Smrg$as_echo "$NMEDIT" >&6; }
65743da084b3Smrgelse
657555acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576d63fdb69Smrg$as_echo "no" >&6; }
65773da084b3Smrgfi
65783da084b3Smrg
65793da084b3Smrg
65803da084b3Smrgfi
658148c85eb7Smrgif test -z "$ac_cv_prog_NMEDIT"; then
658248c85eb7Smrg  ac_ct_NMEDIT=$NMEDIT
658348c85eb7Smrg  # Extract the first word of "nmedit", so it can be a program name with args.
658448c85eb7Smrgset dummy nmedit; ac_word=$2
658555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; }
658748c85eb7Smrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6588d63fdb69Smrg  $as_echo_n "(cached) " >&6
65893da084b3Smrgelse
659048c85eb7Smrg  if test -n "$ac_ct_NMEDIT"; then
659148c85eb7Smrg  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
65923da084b3Smrgelse
65933da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
65943da084b3Smrgfor as_dir in $PATH
65953da084b3Smrgdo
65963da084b3Smrg  IFS=$as_save_IFS
65973da084b3Smrg  test -z "$as_dir" && as_dir=.
659855acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6599d63fdb69Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
660048c85eb7Smrg    ac_cv_prog_ac_ct_NMEDIT="nmedit"
660155acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
66023da084b3Smrg    break 2
66033da084b3Smrg  fi
66043da084b3Smrgdone
660555acc8fcSmrg  done
66063da084b3SmrgIFS=$as_save_IFS
66073da084b3Smrg
66083da084b3Smrgfi
66093da084b3Smrgfi
661048c85eb7Smrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
661148c85eb7Smrgif test -n "$ac_ct_NMEDIT"; then
661248c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
661348c85eb7Smrg$as_echo "$ac_ct_NMEDIT" >&6; }
66143da084b3Smrgelse
661555acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616d63fdb69Smrg$as_echo "no" >&6; }
66173da084b3Smrgfi
66183da084b3Smrg
661948c85eb7Smrg  if test "x$ac_ct_NMEDIT" = x; then
662048c85eb7Smrg    NMEDIT=":"
66213da084b3Smrg  else
66223da084b3Smrg    case $cross_compiling:$ac_tool_warned in
66233da084b3Smrgyes:)
662455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6625d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
66263da084b3Smrgac_tool_warned=yes ;;
66273da084b3Smrgesac
662848c85eb7Smrg    NMEDIT=$ac_ct_NMEDIT
66293da084b3Smrg  fi
6630d63fdb69Smrgelse
663148c85eb7Smrg  NMEDIT="$ac_cv_prog_NMEDIT"
66323da084b3Smrgfi
66333da084b3Smrg
663448c85eb7Smrg    if test -n "$ac_tool_prefix"; then
663548c85eb7Smrg  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
663648c85eb7Smrgset dummy ${ac_tool_prefix}lipo; ac_word=$2
663755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; }
663948c85eb7Smrgif ${ac_cv_prog_LIPO+:} false; then :
6640d63fdb69Smrg  $as_echo_n "(cached) " >&6
6641d63fdb69Smrgelse
664248c85eb7Smrg  if test -n "$LIPO"; then
664348c85eb7Smrg  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6644d63fdb69Smrgelse
6645d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646d63fdb69Smrgfor as_dir in $PATH
6647d63fdb69Smrgdo
6648d63fdb69Smrg  IFS=$as_save_IFS
6649d63fdb69Smrg  test -z "$as_dir" && as_dir=.
665055acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6651d63fdb69Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
665248c85eb7Smrg    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
665355acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654d63fdb69Smrg    break 2
66553da084b3Smrg  fi
6656d63fdb69Smrgdone
665755acc8fcSmrg  done
6658d63fdb69SmrgIFS=$as_save_IFS
66593da084b3Smrg
6660d63fdb69Smrgfi
6661d63fdb69Smrgfi
666248c85eb7SmrgLIPO=$ac_cv_prog_LIPO
666348c85eb7Smrgif test -n "$LIPO"; then
666448c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
666548c85eb7Smrg$as_echo "$LIPO" >&6; }
66663da084b3Smrgelse
666755acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668d63fdb69Smrg$as_echo "no" >&6; }
6669d63fdb69Smrgfi
66703da084b3Smrg
66713da084b3Smrg
6672d63fdb69Smrgfi
667348c85eb7Smrgif test -z "$ac_cv_prog_LIPO"; then
667448c85eb7Smrg  ac_ct_LIPO=$LIPO
667548c85eb7Smrg  # Extract the first word of "lipo", so it can be a program name with args.
667648c85eb7Smrgset dummy lipo; ac_word=$2
667755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; }
667948c85eb7Smrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6680d63fdb69Smrg  $as_echo_n "(cached) " >&6
66813da084b3Smrgelse
668248c85eb7Smrg  if test -n "$ac_ct_LIPO"; then
668348c85eb7Smrg  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6684d63fdb69Smrgelse
6685d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686d63fdb69Smrgfor as_dir in $PATH
6687d63fdb69Smrgdo
6688d63fdb69Smrg  IFS=$as_save_IFS
6689d63fdb69Smrg  test -z "$as_dir" && as_dir=.
669055acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6691d63fdb69Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
669248c85eb7Smrg    ac_cv_prog_ac_ct_LIPO="lipo"
669355acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694d63fdb69Smrg    break 2
6695d63fdb69Smrg  fi
6696d63fdb69Smrgdone
669755acc8fcSmrg  done
6698d63fdb69SmrgIFS=$as_save_IFS
66993da084b3Smrg
6700d63fdb69Smrgfi
6701d63fdb69Smrgfi
670248c85eb7Smrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
670348c85eb7Smrgif test -n "$ac_ct_LIPO"; then
670448c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
670548c85eb7Smrg$as_echo "$ac_ct_LIPO" >&6; }
6706d63fdb69Smrgelse
670755acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708d63fdb69Smrg$as_echo "no" >&6; }
67093da084b3Smrgfi
67103da084b3Smrg
671148c85eb7Smrg  if test "x$ac_ct_LIPO" = x; then
671248c85eb7Smrg    LIPO=":"
6713d63fdb69Smrg  else
6714d63fdb69Smrg    case $cross_compiling:$ac_tool_warned in
6715d63fdb69Smrgyes:)
671655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6717d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6718d63fdb69Smrgac_tool_warned=yes ;;
67193da084b3Smrgesac
672048c85eb7Smrg    LIPO=$ac_ct_LIPO
6721d63fdb69Smrg  fi
67223da084b3Smrgelse
672348c85eb7Smrg  LIPO="$ac_cv_prog_LIPO"
6724d63fdb69Smrgfi
67253da084b3Smrg
672648c85eb7Smrg    if test -n "$ac_tool_prefix"; then
672748c85eb7Smrg  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
672848c85eb7Smrgset dummy ${ac_tool_prefix}otool; ac_word=$2
672948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
673048c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
673148c85eb7Smrgif ${ac_cv_prog_OTOOL+:} false; then :
673248c85eb7Smrg  $as_echo_n "(cached) " >&6
673348c85eb7Smrgelse
673448c85eb7Smrg  if test -n "$OTOOL"; then
673548c85eb7Smrg  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
673648c85eb7Smrgelse
673748c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
673848c85eb7Smrgfor as_dir in $PATH
673948c85eb7Smrgdo
674048c85eb7Smrg  IFS=$as_save_IFS
674148c85eb7Smrg  test -z "$as_dir" && as_dir=.
674248c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
674348c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
674448c85eb7Smrg    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
674548c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
674648c85eb7Smrg    break 2
674748c85eb7Smrg  fi
674848c85eb7Smrgdone
674948c85eb7Smrg  done
675048c85eb7SmrgIFS=$as_save_IFS
67513da084b3Smrg
675248c85eb7Smrgfi
675348c85eb7Smrgfi
675448c85eb7SmrgOTOOL=$ac_cv_prog_OTOOL
675548c85eb7Smrgif test -n "$OTOOL"; then
675648c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
675748c85eb7Smrg$as_echo "$OTOOL" >&6; }
675848c85eb7Smrgelse
675948c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
676048c85eb7Smrg$as_echo "no" >&6; }
676148c85eb7Smrgfi
67623da084b3Smrg
67633da084b3Smrg
676448c85eb7Smrgfi
676548c85eb7Smrgif test -z "$ac_cv_prog_OTOOL"; then
676648c85eb7Smrg  ac_ct_OTOOL=$OTOOL
676748c85eb7Smrg  # Extract the first word of "otool", so it can be a program name with args.
676848c85eb7Smrgset dummy otool; ac_word=$2
676948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
677048c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
677148c85eb7Smrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
677248c85eb7Smrg  $as_echo_n "(cached) " >&6
677348c85eb7Smrgelse
677448c85eb7Smrg  if test -n "$ac_ct_OTOOL"; then
677548c85eb7Smrg  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
677648c85eb7Smrgelse
677748c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
677848c85eb7Smrgfor as_dir in $PATH
677948c85eb7Smrgdo
678048c85eb7Smrg  IFS=$as_save_IFS
678148c85eb7Smrg  test -z "$as_dir" && as_dir=.
678248c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
678348c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
678448c85eb7Smrg    ac_cv_prog_ac_ct_OTOOL="otool"
678548c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
678648c85eb7Smrg    break 2
678748c85eb7Smrg  fi
678848c85eb7Smrgdone
678948c85eb7Smrg  done
679048c85eb7SmrgIFS=$as_save_IFS
67913da084b3Smrg
679248c85eb7Smrgfi
679348c85eb7Smrgfi
679448c85eb7Smrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
679548c85eb7Smrgif test -n "$ac_ct_OTOOL"; then
679648c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
679748c85eb7Smrg$as_echo "$ac_ct_OTOOL" >&6; }
679848c85eb7Smrgelse
679948c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
680048c85eb7Smrg$as_echo "no" >&6; }
68013da084b3Smrgfi
68023da084b3Smrg
680348c85eb7Smrg  if test "x$ac_ct_OTOOL" = x; then
680448c85eb7Smrg    OTOOL=":"
680548c85eb7Smrg  else
680648c85eb7Smrg    case $cross_compiling:$ac_tool_warned in
680748c85eb7Smrgyes:)
680848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
680948c85eb7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
681048c85eb7Smrgac_tool_warned=yes ;;
681155acc8fcSmrgesac
681248c85eb7Smrg    OTOOL=$ac_ct_OTOOL
681348c85eb7Smrg  fi
681448c85eb7Smrgelse
681548c85eb7Smrg  OTOOL="$ac_cv_prog_OTOOL"
681648c85eb7Smrgfi
681755acc8fcSmrg
681848c85eb7Smrg    if test -n "$ac_tool_prefix"; then
681948c85eb7Smrg  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
682048c85eb7Smrgset dummy ${ac_tool_prefix}otool64; ac_word=$2
682148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
682248c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
682348c85eb7Smrgif ${ac_cv_prog_OTOOL64+:} false; then :
682448c85eb7Smrg  $as_echo_n "(cached) " >&6
682548c85eb7Smrgelse
682648c85eb7Smrg  if test -n "$OTOOL64"; then
682748c85eb7Smrg  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
682848c85eb7Smrgelse
682948c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
683048c85eb7Smrgfor as_dir in $PATH
683148c85eb7Smrgdo
683248c85eb7Smrg  IFS=$as_save_IFS
683348c85eb7Smrg  test -z "$as_dir" && as_dir=.
683448c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
683548c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
683648c85eb7Smrg    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
683748c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
683848c85eb7Smrg    break 2
683948c85eb7Smrg  fi
684048c85eb7Smrgdone
684148c85eb7Smrg  done
684248c85eb7SmrgIFS=$as_save_IFS
684355acc8fcSmrg
684448c85eb7Smrgfi
684548c85eb7Smrgfi
684648c85eb7SmrgOTOOL64=$ac_cv_prog_OTOOL64
684748c85eb7Smrgif test -n "$OTOOL64"; then
684848c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
684948c85eb7Smrg$as_echo "$OTOOL64" >&6; }
685048c85eb7Smrgelse
685148c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
685248c85eb7Smrg$as_echo "no" >&6; }
685348c85eb7Smrgfi
685455acc8fcSmrg
685555acc8fcSmrg
685648c85eb7Smrgfi
685748c85eb7Smrgif test -z "$ac_cv_prog_OTOOL64"; then
685848c85eb7Smrg  ac_ct_OTOOL64=$OTOOL64
685948c85eb7Smrg  # Extract the first word of "otool64", so it can be a program name with args.
686048c85eb7Smrgset dummy otool64; ac_word=$2
686148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
686248c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
686348c85eb7Smrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
686448c85eb7Smrg  $as_echo_n "(cached) " >&6
686548c85eb7Smrgelse
686648c85eb7Smrg  if test -n "$ac_ct_OTOOL64"; then
686748c85eb7Smrg  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
686848c85eb7Smrgelse
686948c85eb7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
687048c85eb7Smrgfor as_dir in $PATH
687148c85eb7Smrgdo
687248c85eb7Smrg  IFS=$as_save_IFS
687348c85eb7Smrg  test -z "$as_dir" && as_dir=.
687448c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
687548c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
687648c85eb7Smrg    ac_cv_prog_ac_ct_OTOOL64="otool64"
687748c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
687848c85eb7Smrg    break 2
687948c85eb7Smrg  fi
688048c85eb7Smrgdone
688148c85eb7Smrg  done
688248c85eb7SmrgIFS=$as_save_IFS
688355acc8fcSmrg
688448c85eb7Smrgfi
688548c85eb7Smrgfi
688648c85eb7Smrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
688748c85eb7Smrgif test -n "$ac_ct_OTOOL64"; then
688848c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
688948c85eb7Smrg$as_echo "$ac_ct_OTOOL64" >&6; }
689048c85eb7Smrgelse
689148c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
689248c85eb7Smrg$as_echo "no" >&6; }
689348c85eb7Smrgfi
689455acc8fcSmrg
689548c85eb7Smrg  if test "x$ac_ct_OTOOL64" = x; then
689648c85eb7Smrg    OTOOL64=":"
689748c85eb7Smrg  else
689848c85eb7Smrg    case $cross_compiling:$ac_tool_warned in
689948c85eb7Smrgyes:)
690048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
690148c85eb7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
690248c85eb7Smrgac_tool_warned=yes ;;
690348c85eb7Smrgesac
690448c85eb7Smrg    OTOOL64=$ac_ct_OTOOL64
690548c85eb7Smrg  fi
690648c85eb7Smrgelse
690748c85eb7Smrg  OTOOL64="$ac_cv_prog_OTOOL64"
690848c85eb7Smrgfi
69093da084b3Smrg
69103da084b3Smrg
69113da084b3Smrg
69123da084b3Smrg
69133da084b3Smrg
69143da084b3Smrg
69153da084b3Smrg
69163da084b3Smrg
69173da084b3Smrg
69183da084b3Smrg
69193da084b3Smrg
69203da084b3Smrg
69213da084b3Smrg
69223da084b3Smrg
69233da084b3Smrg
69243da084b3Smrg
69253da084b3Smrg
69263da084b3Smrg
69273da084b3Smrg
69283da084b3Smrg
69293da084b3Smrg
69303da084b3Smrg
69313da084b3Smrg
69323da084b3Smrg
69333da084b3Smrg
69343da084b3Smrg
69353da084b3Smrg
693648c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
693748c85eb7Smrg$as_echo_n "checking for -single_module linker flag... " >&6; }
693848c85eb7Smrgif ${lt_cv_apple_cc_single_mod+:} false; then :
693948c85eb7Smrg  $as_echo_n "(cached) " >&6
694048c85eb7Smrgelse
694148c85eb7Smrg  lt_cv_apple_cc_single_mod=no
694248c85eb7Smrg      if test -z "${LT_MULTI_MODULE}"; then
694348c85eb7Smrg	# By default we will add the -single_module flag. You can override
694448c85eb7Smrg	# by either setting the environment variable LT_MULTI_MODULE
694548c85eb7Smrg	# non-empty at configure time, or by adding -multi_module to the
694648c85eb7Smrg	# link flags.
694748c85eb7Smrg	rm -rf libconftest.dylib*
694848c85eb7Smrg	echo "int foo(void){return 1;}" > conftest.c
694948c85eb7Smrg	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
695048c85eb7Smrg-dynamiclib -Wl,-single_module conftest.c" >&5
695148c85eb7Smrg	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
695248c85eb7Smrg	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
695348c85eb7Smrg        _lt_result=$?
695448c85eb7Smrg	# If there is a non-empty error log, and "single_module"
695548c85eb7Smrg	# appears in it, assume the flag caused a linker warning
695648c85eb7Smrg        if test -s conftest.err && $GREP single_module conftest.err; then
695748c85eb7Smrg	  cat conftest.err >&5
695848c85eb7Smrg	# Otherwise, if the output was created with a 0 exit code from
695948c85eb7Smrg	# the compiler, it worked.
696048c85eb7Smrg	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
696148c85eb7Smrg	  lt_cv_apple_cc_single_mod=yes
696248c85eb7Smrg	else
696348c85eb7Smrg	  cat conftest.err >&5
696448c85eb7Smrg	fi
696548c85eb7Smrg	rm -rf libconftest.dylib*
696648c85eb7Smrg	rm -f conftest.*
696748c85eb7Smrg      fi
696848c85eb7Smrgfi
696948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
697048c85eb7Smrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
69713da084b3Smrg
697248c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
697348c85eb7Smrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
697448c85eb7Smrgif ${lt_cv_ld_exported_symbols_list+:} false; then :
697548c85eb7Smrg  $as_echo_n "(cached) " >&6
697648c85eb7Smrgelse
697748c85eb7Smrg  lt_cv_ld_exported_symbols_list=no
697848c85eb7Smrg      save_LDFLAGS=$LDFLAGS
697948c85eb7Smrg      echo "_main" > conftest.sym
698048c85eb7Smrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
698148c85eb7Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
698248c85eb7Smrg/* end confdefs.h.  */
69833da084b3Smrg
698448c85eb7Smrgint
698548c85eb7Smrgmain ()
698648c85eb7Smrg{
69873da084b3Smrg
698848c85eb7Smrg  ;
698948c85eb7Smrg  return 0;
699048c85eb7Smrg}
699148c85eb7Smrg_ACEOF
699248c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
699348c85eb7Smrg  lt_cv_ld_exported_symbols_list=yes
699448c85eb7Smrgelse
699548c85eb7Smrg  lt_cv_ld_exported_symbols_list=no
699648c85eb7Smrgfi
699748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
699848c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
699948c85eb7Smrg	LDFLAGS="$save_LDFLAGS"
70003da084b3Smrg
700148c85eb7Smrgfi
700248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
700348c85eb7Smrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
70043da084b3Smrg
700548c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
700648c85eb7Smrg$as_echo_n "checking for -force_load linker flag... " >&6; }
700748c85eb7Smrgif ${lt_cv_ld_force_load+:} false; then :
700848c85eb7Smrg  $as_echo_n "(cached) " >&6
700948c85eb7Smrgelse
701048c85eb7Smrg  lt_cv_ld_force_load=no
701148c85eb7Smrg      cat > conftest.c << _LT_EOF
701248c85eb7Smrgint forced_loaded() { return 2;}
701348c85eb7Smrg_LT_EOF
701448c85eb7Smrg      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
701548c85eb7Smrg      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
701648c85eb7Smrg      echo "$AR cru libconftest.a conftest.o" >&5
701748c85eb7Smrg      $AR cru libconftest.a conftest.o 2>&5
701848c85eb7Smrg      echo "$RANLIB libconftest.a" >&5
701948c85eb7Smrg      $RANLIB libconftest.a 2>&5
702048c85eb7Smrg      cat > conftest.c << _LT_EOF
702148c85eb7Smrgint main() { return 0;}
702248c85eb7Smrg_LT_EOF
702348c85eb7Smrg      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
702448c85eb7Smrg      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
702548c85eb7Smrg      _lt_result=$?
702648c85eb7Smrg      if test -s conftest.err && $GREP force_load conftest.err; then
702748c85eb7Smrg	cat conftest.err >&5
702848c85eb7Smrg      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
702948c85eb7Smrg	lt_cv_ld_force_load=yes
703048c85eb7Smrg      else
703148c85eb7Smrg	cat conftest.err >&5
703248c85eb7Smrg      fi
703348c85eb7Smrg        rm -f conftest.err libconftest.a conftest conftest.c
703448c85eb7Smrg        rm -rf conftest.dSYM
70353da084b3Smrg
703648c85eb7Smrgfi
703748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
703848c85eb7Smrg$as_echo "$lt_cv_ld_force_load" >&6; }
703948c85eb7Smrg    case $host_os in
704048c85eb7Smrg    rhapsody* | darwin1.[012])
704148c85eb7Smrg      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
704248c85eb7Smrg    darwin1.*)
704348c85eb7Smrg      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
704448c85eb7Smrg    darwin*) # darwin 5.x on
704548c85eb7Smrg      # if running on 10.5 or later, the deployment target defaults
704648c85eb7Smrg      # to the OS version, if on x86, and 10.4, the deployment
704748c85eb7Smrg      # target defaults to 10.4. Don't you love it?
704848c85eb7Smrg      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
704948c85eb7Smrg	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
705048c85eb7Smrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
705148c85eb7Smrg	10.[012]*)
705248c85eb7Smrg	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
705348c85eb7Smrg	10.*)
705448c85eb7Smrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
705548c85eb7Smrg      esac
705648c85eb7Smrg    ;;
705748c85eb7Smrg  esac
705848c85eb7Smrg    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
705948c85eb7Smrg      _lt_dar_single_mod='$single_module'
706048c85eb7Smrg    fi
706148c85eb7Smrg    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
706248c85eb7Smrg      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
706348c85eb7Smrg    else
706448c85eb7Smrg      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
706548c85eb7Smrg    fi
706648c85eb7Smrg    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
706748c85eb7Smrg      _lt_dsymutil='~$DSYMUTIL $lib || :'
706848c85eb7Smrg    else
706948c85eb7Smrg      _lt_dsymutil=
707048c85eb7Smrg    fi
707148c85eb7Smrg    ;;
707248c85eb7Smrg  esac
70733da084b3Smrg
707448c85eb7Smrgac_ext=c
707548c85eb7Smrgac_cpp='$CPP $CPPFLAGS'
707648c85eb7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
707748c85eb7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
707848c85eb7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
707948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
708048c85eb7Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
708148c85eb7Smrg# On Suns, sometimes $CPP names a directory.
708248c85eb7Smrgif test -n "$CPP" && test -d "$CPP"; then
708348c85eb7Smrg  CPP=
708448c85eb7Smrgfi
708548c85eb7Smrgif test -z "$CPP"; then
708648c85eb7Smrg  if ${ac_cv_prog_CPP+:} false; then :
7087d63fdb69Smrg  $as_echo_n "(cached) " >&6
70883da084b3Smrgelse
708948c85eb7Smrg      # Double quotes because CPP needs to be expanded
709048c85eb7Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
709148c85eb7Smrg    do
709248c85eb7Smrg      ac_preproc_ok=false
709348c85eb7Smrgfor ac_c_preproc_warn_flag in '' yes
709448c85eb7Smrgdo
709548c85eb7Smrg  # Use a header file that comes with gcc, so configuring glibc
709648c85eb7Smrg  # with a fresh cross-compiler works.
709748c85eb7Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
709848c85eb7Smrg  # <limits.h> exists even on freestanding compilers.
709948c85eb7Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
710048c85eb7Smrg  # not just through cpp. "Syntax error" is here to catch this case.
710148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
710248c85eb7Smrg/* end confdefs.h.  */
710348c85eb7Smrg#ifdef __STDC__
710448c85eb7Smrg# include <limits.h>
710548c85eb7Smrg#else
710648c85eb7Smrg# include <assert.h>
710748c85eb7Smrg#endif
710848c85eb7Smrg		     Syntax error
710948c85eb7Smrg_ACEOF
711048c85eb7Smrgif ac_fn_c_try_cpp "$LINENO"; then :
71113da084b3Smrg
711248c85eb7Smrgelse
711348c85eb7Smrg  # Broken: fails on valid input.
711448c85eb7Smrgcontinue
711548c85eb7Smrgfi
711648c85eb7Smrgrm -f conftest.err conftest.i conftest.$ac_ext
71173da084b3Smrg
711848c85eb7Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
711948c85eb7Smrg  # can be detected and how.
712048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
712148c85eb7Smrg/* end confdefs.h.  */
712248c85eb7Smrg#include <ac_nonexistent.h>
712348c85eb7Smrg_ACEOF
712448c85eb7Smrgif ac_fn_c_try_cpp "$LINENO"; then :
712548c85eb7Smrg  # Broken: success on invalid input.
712648c85eb7Smrgcontinue
712748c85eb7Smrgelse
712848c85eb7Smrg  # Passes both tests.
712948c85eb7Smrgac_preproc_ok=:
713048c85eb7Smrgbreak
713148c85eb7Smrgfi
713248c85eb7Smrgrm -f conftest.err conftest.i conftest.$ac_ext
71333da084b3Smrg
713448c85eb7Smrgdone
713548c85eb7Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
713648c85eb7Smrgrm -f conftest.i conftest.err conftest.$ac_ext
713748c85eb7Smrgif $ac_preproc_ok; then :
713848c85eb7Smrg  break
713948c85eb7Smrgfi
71403da084b3Smrg
714148c85eb7Smrg    done
714248c85eb7Smrg    ac_cv_prog_CPP=$CPP
71433da084b3Smrg
714448c85eb7Smrgfi
714548c85eb7Smrg  CPP=$ac_cv_prog_CPP
714648c85eb7Smrgelse
714748c85eb7Smrg  ac_cv_prog_CPP=$CPP
714848c85eb7Smrgfi
714948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
715048c85eb7Smrg$as_echo "$CPP" >&6; }
715148c85eb7Smrgac_preproc_ok=false
715248c85eb7Smrgfor ac_c_preproc_warn_flag in '' yes
715348c85eb7Smrgdo
715448c85eb7Smrg  # Use a header file that comes with gcc, so configuring glibc
715548c85eb7Smrg  # with a fresh cross-compiler works.
715648c85eb7Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
715748c85eb7Smrg  # <limits.h> exists even on freestanding compilers.
715848c85eb7Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
715948c85eb7Smrg  # not just through cpp. "Syntax error" is here to catch this case.
716048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
716148c85eb7Smrg/* end confdefs.h.  */
716248c85eb7Smrg#ifdef __STDC__
716348c85eb7Smrg# include <limits.h>
716448c85eb7Smrg#else
716548c85eb7Smrg# include <assert.h>
716648c85eb7Smrg#endif
716748c85eb7Smrg		     Syntax error
716848c85eb7Smrg_ACEOF
716948c85eb7Smrgif ac_fn_c_try_cpp "$LINENO"; then :
71703da084b3Smrg
717148c85eb7Smrgelse
717248c85eb7Smrg  # Broken: fails on valid input.
717348c85eb7Smrgcontinue
717448c85eb7Smrgfi
717548c85eb7Smrgrm -f conftest.err conftest.i conftest.$ac_ext
71763da084b3Smrg
717748c85eb7Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
717848c85eb7Smrg  # can be detected and how.
717948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718048c85eb7Smrg/* end confdefs.h.  */
718148c85eb7Smrg#include <ac_nonexistent.h>
718248c85eb7Smrg_ACEOF
718348c85eb7Smrgif ac_fn_c_try_cpp "$LINENO"; then :
718448c85eb7Smrg  # Broken: success on invalid input.
718548c85eb7Smrgcontinue
718648c85eb7Smrgelse
718748c85eb7Smrg  # Passes both tests.
718848c85eb7Smrgac_preproc_ok=:
718948c85eb7Smrgbreak
719048c85eb7Smrgfi
719148c85eb7Smrgrm -f conftest.err conftest.i conftest.$ac_ext
7192d63fdb69Smrg
719348c85eb7Smrgdone
719448c85eb7Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
719548c85eb7Smrgrm -f conftest.i conftest.err conftest.$ac_ext
719648c85eb7Smrgif $ac_preproc_ok; then :
71973da084b3Smrg
719848c85eb7Smrgelse
719948c85eb7Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
720048c85eb7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
720148c85eb7Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
720248c85eb7SmrgSee \`config.log' for more details" "$LINENO" 5; }
720348c85eb7Smrgfi
72043da084b3Smrg
720548c85eb7Smrgac_ext=c
720648c85eb7Smrgac_cpp='$CPP $CPPFLAGS'
720748c85eb7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
720848c85eb7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
720948c85eb7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
72103da084b3Smrg
72113da084b3Smrg
721248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
721348c85eb7Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
721448c85eb7Smrgif ${ac_cv_header_stdc+:} false; then :
721548c85eb7Smrg  $as_echo_n "(cached) " >&6
721648c85eb7Smrgelse
721748c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
721848c85eb7Smrg/* end confdefs.h.  */
721948c85eb7Smrg#include <stdlib.h>
722048c85eb7Smrg#include <stdarg.h>
722148c85eb7Smrg#include <string.h>
722248c85eb7Smrg#include <float.h>
7223d63fdb69Smrg
722448c85eb7Smrgint
722548c85eb7Smrgmain ()
722648c85eb7Smrg{
722748c85eb7Smrg
722848c85eb7Smrg  ;
722948c85eb7Smrg  return 0;
7230d63fdb69Smrg}
723148c85eb7Smrg_ACEOF
723248c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
723348c85eb7Smrg  ac_cv_header_stdc=yes
723448c85eb7Smrgelse
723548c85eb7Smrg  ac_cv_header_stdc=no
723648c85eb7Smrgfi
723748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238d63fdb69Smrg
723948c85eb7Smrgif test $ac_cv_header_stdc = yes; then
724048c85eb7Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
724148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
724248c85eb7Smrg/* end confdefs.h.  */
724348c85eb7Smrg#include <string.h>
72443da084b3Smrg
724548c85eb7Smrg_ACEOF
724648c85eb7Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
724748c85eb7Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
72483da084b3Smrg
724948c85eb7Smrgelse
725048c85eb7Smrg  ac_cv_header_stdc=no
725148c85eb7Smrgfi
725248c85eb7Smrgrm -f conftest*
72533da084b3Smrg
725448c85eb7Smrgfi
7255d63fdb69Smrg
725648c85eb7Smrgif test $ac_cv_header_stdc = yes; then
725748c85eb7Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
725848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
725948c85eb7Smrg/* end confdefs.h.  */
726048c85eb7Smrg#include <stdlib.h>
7261d63fdb69Smrg
726248c85eb7Smrg_ACEOF
726348c85eb7Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
726448c85eb7Smrg  $EGREP "free" >/dev/null 2>&1; then :
7265d63fdb69Smrg
726648c85eb7Smrgelse
726748c85eb7Smrg  ac_cv_header_stdc=no
72683da084b3Smrgfi
726948c85eb7Smrgrm -f conftest*
72703da084b3Smrg
7271d63fdb69Smrgfi
727248c85eb7Smrg
727348c85eb7Smrgif test $ac_cv_header_stdc = yes; then
727448c85eb7Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
727548c85eb7Smrg  if test "$cross_compiling" = yes; then :
727648c85eb7Smrg  :
7277d63fdb69Smrgelse
727848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
727948c85eb7Smrg/* end confdefs.h.  */
728048c85eb7Smrg#include <ctype.h>
728148c85eb7Smrg#include <stdlib.h>
728248c85eb7Smrg#if ((' ' & 0x0FF) == 0x020)
728348c85eb7Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
728448c85eb7Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
728548c85eb7Smrg#else
728648c85eb7Smrg# define ISLOWER(c) \
728748c85eb7Smrg		   (('a' <= (c) && (c) <= 'i') \
728848c85eb7Smrg		     || ('j' <= (c) && (c) <= 'r') \
728948c85eb7Smrg		     || ('s' <= (c) && (c) <= 'z'))
729048c85eb7Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
729148c85eb7Smrg#endif
729248c85eb7Smrg
729348c85eb7Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
729448c85eb7Smrgint
729548c85eb7Smrgmain ()
729648c85eb7Smrg{
729748c85eb7Smrg  int i;
729848c85eb7Smrg  for (i = 0; i < 256; i++)
729948c85eb7Smrg    if (XOR (islower (i), ISLOWER (i))
730048c85eb7Smrg	|| toupper (i) != TOUPPER (i))
730148c85eb7Smrg      return 2;
730248c85eb7Smrg  return 0;
730348c85eb7Smrg}
730448c85eb7Smrg_ACEOF
730548c85eb7Smrgif ac_fn_c_try_run "$LINENO"; then :
730648c85eb7Smrg
730748c85eb7Smrgelse
730848c85eb7Smrg  ac_cv_header_stdc=no
730948c85eb7Smrgfi
731048c85eb7Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
731148c85eb7Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
7312d63fdb69Smrgfi
73133da084b3Smrg
731448c85eb7Smrgfi
731548c85eb7Smrgfi
731648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
731748c85eb7Smrg$as_echo "$ac_cv_header_stdc" >&6; }
731848c85eb7Smrgif test $ac_cv_header_stdc = yes; then
73193da084b3Smrg
732048c85eb7Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
73213da084b3Smrg
732248c85eb7Smrgfi
73233da084b3Smrg
732448c85eb7Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
732548c85eb7Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
732648c85eb7Smrg		  inttypes.h stdint.h unistd.h
732748c85eb7Smrgdo :
732848c85eb7Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
732948c85eb7Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
733048c85eb7Smrg"
733148c85eb7Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
733248c85eb7Smrg  cat >>confdefs.h <<_ACEOF
733348c85eb7Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
733448c85eb7Smrg_ACEOF
73353da084b3Smrg
733648c85eb7Smrgfi
73373da084b3Smrg
733848c85eb7Smrgdone
73393da084b3Smrg
73403da084b3Smrg
734148c85eb7Smrgfor ac_header in dlfcn.h
734248c85eb7Smrgdo :
734348c85eb7Smrg  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
734448c85eb7Smrg"
734548c85eb7Smrgif test "x$ac_cv_header_dlfcn_h" = xyes; then :
734648c85eb7Smrg  cat >>confdefs.h <<_ACEOF
734748c85eb7Smrg#define HAVE_DLFCN_H 1
734848c85eb7Smrg_ACEOF
73493da084b3Smrg
735048c85eb7Smrgfi
73513da084b3Smrg
735248c85eb7Smrgdone
73533da084b3Smrg
73543da084b3Smrg
73553da084b3Smrg
73563da084b3Smrg
73573da084b3Smrg
735848c85eb7Smrg# Set options
73593da084b3Smrg
73603da084b3Smrg
73613da084b3Smrg
736248c85eb7Smrg        enable_dlopen=no
73633da084b3Smrg
73643da084b3Smrg
736548c85eb7Smrg  enable_win32_dll=no
73663da084b3Smrg
73673da084b3Smrg
736848c85eb7Smrg            # Check whether --enable-shared was given.
736948c85eb7Smrgif test "${enable_shared+set}" = set; then :
737048c85eb7Smrg  enableval=$enable_shared; p=${PACKAGE-default}
737148c85eb7Smrg    case $enableval in
737248c85eb7Smrg    yes) enable_shared=yes ;;
737348c85eb7Smrg    no) enable_shared=no ;;
737448c85eb7Smrg    *)
737548c85eb7Smrg      enable_shared=no
737648c85eb7Smrg      # Look at the argument we got.  We use all the common list separators.
737748c85eb7Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
737848c85eb7Smrg      for pkg in $enableval; do
737948c85eb7Smrg	IFS="$lt_save_ifs"
738048c85eb7Smrg	if test "X$pkg" = "X$p"; then
738148c85eb7Smrg	  enable_shared=yes
738248c85eb7Smrg	fi
738348c85eb7Smrg      done
738448c85eb7Smrg      IFS="$lt_save_ifs"
738548c85eb7Smrg      ;;
738648c85eb7Smrg    esac
738748c85eb7Smrgelse
738848c85eb7Smrg  enable_shared=yes
7389d63fdb69Smrgfi
7390d63fdb69Smrg
7391d63fdb69Smrg
73923da084b3Smrg
73933da084b3Smrg
73943da084b3Smrg
73953da084b3Smrg
739655acc8fcSmrg
73973da084b3Smrg
739848c85eb7Smrg
739948c85eb7Smrg  # Check whether --enable-static was given.
740048c85eb7Smrgif test "${enable_static+set}" = set; then :
740148c85eb7Smrg  enableval=$enable_static; p=${PACKAGE-default}
740248c85eb7Smrg    case $enableval in
740348c85eb7Smrg    yes) enable_static=yes ;;
740448c85eb7Smrg    no) enable_static=no ;;
740548c85eb7Smrg    *)
740648c85eb7Smrg     enable_static=no
740748c85eb7Smrg      # Look at the argument we got.  We use all the common list separators.
740848c85eb7Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
740948c85eb7Smrg      for pkg in $enableval; do
741048c85eb7Smrg	IFS="$lt_save_ifs"
741148c85eb7Smrg	if test "X$pkg" = "X$p"; then
741248c85eb7Smrg	  enable_static=yes
7413d63fdb69Smrg	fi
741448c85eb7Smrg      done
741548c85eb7Smrg      IFS="$lt_save_ifs"
741655acc8fcSmrg      ;;
741755acc8fcSmrg    esac
741848c85eb7Smrgelse
741948c85eb7Smrg  enable_static=yes
742048c85eb7Smrgfi
742155acc8fcSmrg
742255acc8fcSmrg
74233da084b3Smrg
74243da084b3Smrg
74253da084b3Smrg
74263da084b3Smrg
74273da084b3Smrg
74283da084b3Smrg
74293da084b3Smrg
74303da084b3Smrg
743148c85eb7Smrg# Check whether --with-pic was given.
743248c85eb7Smrgif test "${with_pic+set}" = set; then :
743348c85eb7Smrg  withval=$with_pic; lt_p=${PACKAGE-default}
743448c85eb7Smrg    case $withval in
743548c85eb7Smrg    yes|no) pic_mode=$withval ;;
743648c85eb7Smrg    *)
743748c85eb7Smrg      pic_mode=default
743848c85eb7Smrg      # Look at the argument we got.  We use all the common list separators.
743948c85eb7Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
744048c85eb7Smrg      for lt_pkg in $withval; do
744148c85eb7Smrg	IFS="$lt_save_ifs"
744248c85eb7Smrg	if test "X$lt_pkg" = "X$lt_p"; then
744348c85eb7Smrg	  pic_mode=yes
744448c85eb7Smrg	fi
744548c85eb7Smrg      done
744648c85eb7Smrg      IFS="$lt_save_ifs"
744748c85eb7Smrg      ;;
744848c85eb7Smrg    esac
74493da084b3Smrgelse
745048c85eb7Smrg  pic_mode=default
74513da084b3Smrgfi
74523da084b3Smrg
74533da084b3Smrg
745448c85eb7Smrgtest -z "$pic_mode" && pic_mode=default
74553da084b3Smrg
74563da084b3Smrg
745755acc8fcSmrg
74583da084b3Smrg
74593da084b3Smrg
74603da084b3Smrg
74613da084b3Smrg
746248c85eb7Smrg  # Check whether --enable-fast-install was given.
746348c85eb7Smrgif test "${enable_fast_install+set}" = set; then :
746448c85eb7Smrg  enableval=$enable_fast_install; p=${PACKAGE-default}
746548c85eb7Smrg    case $enableval in
746648c85eb7Smrg    yes) enable_fast_install=yes ;;
746748c85eb7Smrg    no) enable_fast_install=no ;;
746848c85eb7Smrg    *)
746948c85eb7Smrg      enable_fast_install=no
747048c85eb7Smrg      # Look at the argument we got.  We use all the common list separators.
747148c85eb7Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
747248c85eb7Smrg      for pkg in $enableval; do
747348c85eb7Smrg	IFS="$lt_save_ifs"
747448c85eb7Smrg	if test "X$pkg" = "X$p"; then
747548c85eb7Smrg	  enable_fast_install=yes
747648c85eb7Smrg	fi
747748c85eb7Smrg      done
747848c85eb7Smrg      IFS="$lt_save_ifs"
747948c85eb7Smrg      ;;
748048c85eb7Smrg    esac
748155acc8fcSmrgelse
748248c85eb7Smrg  enable_fast_install=yes
7483d63fdb69Smrgfi
74843da084b3Smrg
74853da084b3Smrg
748655acc8fcSmrg
74873da084b3Smrg
74883da084b3Smrg
748948c85eb7Smrg
749048c85eb7Smrg
749148c85eb7Smrg
749248c85eb7Smrg
749348c85eb7Smrg
749448c85eb7Smrg
749548c85eb7Smrg# This can be used to rebuild libtool when needed
749648c85eb7SmrgLIBTOOL_DEPS="$ltmain"
749748c85eb7Smrg
749848c85eb7Smrg# Always use our own libtool.
749948c85eb7SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
750048c85eb7Smrg
750148c85eb7Smrg
750248c85eb7Smrg
750348c85eb7Smrg
750448c85eb7Smrg
750548c85eb7Smrg
750648c85eb7Smrg
750748c85eb7Smrg
750848c85eb7Smrg
750948c85eb7Smrg
751048c85eb7Smrg
751148c85eb7Smrg
751248c85eb7Smrg
751348c85eb7Smrg
751448c85eb7Smrg
751548c85eb7Smrg
751648c85eb7Smrg
751748c85eb7Smrg
751848c85eb7Smrg
751948c85eb7Smrg
752048c85eb7Smrg
752148c85eb7Smrg
752248c85eb7Smrg
752348c85eb7Smrg
752448c85eb7Smrg
752548c85eb7Smrg
752648c85eb7Smrg
752748c85eb7Smrg
752848c85eb7Smrg
752948c85eb7Smrg
753048c85eb7Smrgtest -z "$LN_S" && LN_S="ln -s"
753148c85eb7Smrg
753248c85eb7Smrg
753348c85eb7Smrg
753448c85eb7Smrg
753548c85eb7Smrg
753648c85eb7Smrg
753748c85eb7Smrg
753848c85eb7Smrg
753948c85eb7Smrg
754048c85eb7Smrg
754148c85eb7Smrg
754248c85eb7Smrg
754348c85eb7Smrg
754448c85eb7Smrg
754548c85eb7Smrgif test -n "${ZSH_VERSION+set}" ; then
754648c85eb7Smrg   setopt NO_GLOB_SUBST
7547d63fdb69Smrgfi
754848c85eb7Smrg
754948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
755048c85eb7Smrg$as_echo_n "checking for objdir... " >&6; }
755148c85eb7Smrgif ${lt_cv_objdir+:} false; then :
755255acc8fcSmrg  $as_echo_n "(cached) " >&6
7553d63fdb69Smrgelse
755448c85eb7Smrg  rm -f .libs 2>/dev/null
755548c85eb7Smrgmkdir .libs 2>/dev/null
755648c85eb7Smrgif test -d .libs; then
755748c85eb7Smrg  lt_cv_objdir=.libs
7558d63fdb69Smrgelse
755948c85eb7Smrg  # MS-DOS does not allow filenames that begin with a dot.
756048c85eb7Smrg  lt_cv_objdir=_libs
756155acc8fcSmrgfi
756248c85eb7Smrgrmdir .libs 2>/dev/null
7563d63fdb69Smrgfi
756448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
756548c85eb7Smrg$as_echo "$lt_cv_objdir" >&6; }
756648c85eb7Smrgobjdir=$lt_cv_objdir
75673da084b3Smrg
75683da084b3Smrg
756948c85eb7Smrg
757048c85eb7Smrg
757148c85eb7Smrg
757248c85eb7Smrgcat >>confdefs.h <<_ACEOF
757348c85eb7Smrg#define LT_OBJDIR "$lt_cv_objdir/"
757448c85eb7Smrg_ACEOF
757548c85eb7Smrg
757648c85eb7Smrg
757748c85eb7Smrg
757848c85eb7Smrg
757948c85eb7Smrgcase $host_os in
758048c85eb7Smrgaix3*)
758148c85eb7Smrg  # AIX sometimes has problems with the GCC collect2 program.  For some
758248c85eb7Smrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
758348c85eb7Smrg  # vanish in a puff of smoke.
758448c85eb7Smrg  if test "X${COLLECT_NAMES+set}" != Xset; then
758548c85eb7Smrg    COLLECT_NAMES=
758648c85eb7Smrg    export COLLECT_NAMES
758755acc8fcSmrg  fi
758848c85eb7Smrg  ;;
758948c85eb7Smrgesac
759048c85eb7Smrg
759148c85eb7Smrg# Global variables:
759248c85eb7Smrgofile=libtool
759348c85eb7Smrgcan_build_shared=yes
759448c85eb7Smrg
759548c85eb7Smrg# All known linkers require a `.a' archive for static linking (except MSVC,
759648c85eb7Smrg# which needs '.lib').
759748c85eb7Smrglibext=a
759848c85eb7Smrg
759948c85eb7Smrgwith_gnu_ld="$lt_cv_prog_gnu_ld"
760048c85eb7Smrg
760148c85eb7Smrgold_CC="$CC"
760248c85eb7Smrgold_CFLAGS="$CFLAGS"
760348c85eb7Smrg
760448c85eb7Smrg# Set sane defaults for various variables
760548c85eb7Smrgtest -z "$CC" && CC=cc
760648c85eb7Smrgtest -z "$LTCC" && LTCC=$CC
760748c85eb7Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
760848c85eb7Smrgtest -z "$LD" && LD=ld
760948c85eb7Smrgtest -z "$ac_objext" && ac_objext=o
761048c85eb7Smrg
761148c85eb7Smrgfor cc_temp in $compiler""; do
761248c85eb7Smrg  case $cc_temp in
761348c85eb7Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
761448c85eb7Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
761548c85eb7Smrg    \-*) ;;
761648c85eb7Smrg    *) break;;
761748c85eb7Smrg  esac
7618d63fdb69Smrgdone
761948c85eb7Smrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
762055acc8fcSmrg
762148c85eb7Smrg
762248c85eb7Smrg# Only perform the check for file, if the check method requires it
762348c85eb7Smrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
762448c85eb7Smrgcase $deplibs_check_method in
762548c85eb7Smrgfile_magic*)
762648c85eb7Smrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
762748c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
762848c85eb7Smrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
762948c85eb7Smrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
763048c85eb7Smrg  $as_echo_n "(cached) " >&6
763148c85eb7Smrgelse
763248c85eb7Smrg  case $MAGIC_CMD in
763348c85eb7Smrg[\\/*] |  ?:[\\/]*)
763448c85eb7Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
763548c85eb7Smrg  ;;
763648c85eb7Smrg*)
763748c85eb7Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
763848c85eb7Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
763948c85eb7Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
764048c85eb7Smrg  for ac_dir in $ac_dummy; do
764148c85eb7Smrg    IFS="$lt_save_ifs"
764248c85eb7Smrg    test -z "$ac_dir" && ac_dir=.
764348c85eb7Smrg    if test -f $ac_dir/${ac_tool_prefix}file; then
764448c85eb7Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
764548c85eb7Smrg      if test -n "$file_magic_test_file"; then
764648c85eb7Smrg	case $deplibs_check_method in
764748c85eb7Smrg	"file_magic "*)
764848c85eb7Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
764948c85eb7Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
765048c85eb7Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
765148c85eb7Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
765248c85eb7Smrg	    :
765348c85eb7Smrg	  else
765448c85eb7Smrg	    cat <<_LT_EOF 1>&2
765548c85eb7Smrg
765648c85eb7Smrg*** Warning: the command libtool uses to detect shared libraries,
765748c85eb7Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
765848c85eb7Smrg*** The result is that libtool may fail to recognize shared libraries
765948c85eb7Smrg*** as such.  This will affect the creation of libtool libraries that
766048c85eb7Smrg*** depend on shared libraries, but programs linked with such libtool
766148c85eb7Smrg*** libraries will work regardless of this problem.  Nevertheless, you
766248c85eb7Smrg*** may want to report the problem to your system manager and/or to
766348c85eb7Smrg*** bug-libtool@gnu.org
766448c85eb7Smrg
766548c85eb7Smrg_LT_EOF
766648c85eb7Smrg	  fi ;;
766748c85eb7Smrg	esac
766848c85eb7Smrg      fi
766948c85eb7Smrg      break
767048c85eb7Smrg    fi
767148c85eb7Smrg  done
767248c85eb7Smrg  IFS="$lt_save_ifs"
767348c85eb7Smrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
767448c85eb7Smrg  ;;
767548c85eb7Smrgesac
767655acc8fcSmrgfi
767748c85eb7Smrg
767848c85eb7SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
767948c85eb7Smrgif test -n "$MAGIC_CMD"; then
768048c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
768148c85eb7Smrg$as_echo "$MAGIC_CMD" >&6; }
7682d63fdb69Smrgelse
768355acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
768455acc8fcSmrg$as_echo "no" >&6; }
7685d63fdb69Smrgfi
76863da084b3Smrg
76873da084b3Smrg
768848c85eb7Smrg
768948c85eb7Smrg
769048c85eb7Smrg
769148c85eb7Smrgif test -z "$lt_cv_path_MAGIC_CMD"; then
769248c85eb7Smrg  if test -n "$ac_tool_prefix"; then
769348c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
769448c85eb7Smrg$as_echo_n "checking for file... " >&6; }
769548c85eb7Smrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
7696d63fdb69Smrg  $as_echo_n "(cached) " >&6
76973da084b3Smrgelse
769848c85eb7Smrg  case $MAGIC_CMD in
769948c85eb7Smrg[\\/*] |  ?:[\\/]*)
770048c85eb7Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
770148c85eb7Smrg  ;;
770248c85eb7Smrg*)
770348c85eb7Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
770448c85eb7Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
770548c85eb7Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
770648c85eb7Smrg  for ac_dir in $ac_dummy; do
770748c85eb7Smrg    IFS="$lt_save_ifs"
770848c85eb7Smrg    test -z "$ac_dir" && ac_dir=.
770948c85eb7Smrg    if test -f $ac_dir/file; then
771048c85eb7Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/file"
771148c85eb7Smrg      if test -n "$file_magic_test_file"; then
771248c85eb7Smrg	case $deplibs_check_method in
771348c85eb7Smrg	"file_magic "*)
771448c85eb7Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
771548c85eb7Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
771648c85eb7Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
771748c85eb7Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
771848c85eb7Smrg	    :
771948c85eb7Smrg	  else
772048c85eb7Smrg	    cat <<_LT_EOF 1>&2
77213da084b3Smrg
772248c85eb7Smrg*** Warning: the command libtool uses to detect shared libraries,
772348c85eb7Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
772448c85eb7Smrg*** The result is that libtool may fail to recognize shared libraries
772548c85eb7Smrg*** as such.  This will affect the creation of libtool libraries that
772648c85eb7Smrg*** depend on shared libraries, but programs linked with such libtool
772748c85eb7Smrg*** libraries will work regardless of this problem.  Nevertheless, you
772848c85eb7Smrg*** may want to report the problem to your system manager and/or to
772948c85eb7Smrg*** bug-libtool@gnu.org
773048c85eb7Smrg
773148c85eb7Smrg_LT_EOF
773248c85eb7Smrg	  fi ;;
773348c85eb7Smrg	esac
773448c85eb7Smrg      fi
773548c85eb7Smrg      break
773648c85eb7Smrg    fi
773748c85eb7Smrg  done
773848c85eb7Smrg  IFS="$lt_save_ifs"
773948c85eb7Smrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
774048c85eb7Smrg  ;;
774148c85eb7Smrgesac
77423da084b3Smrgfi
774348c85eb7Smrg
774448c85eb7SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
774548c85eb7Smrgif test -n "$MAGIC_CMD"; then
774648c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
774748c85eb7Smrg$as_echo "$MAGIC_CMD" >&6; }
774855acc8fcSmrgelse
774955acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
775055acc8fcSmrg$as_echo "no" >&6; }
7751d63fdb69Smrgfi
77523da084b3Smrg
775348c85eb7Smrg
775455acc8fcSmrg  else
775548c85eb7Smrg    MAGIC_CMD=:
775655acc8fcSmrg  fi
7757d63fdb69Smrgfi
77583da084b3Smrg
775948c85eb7Smrg  fi
776048c85eb7Smrg  ;;
776148c85eb7Smrgesac
77623da084b3Smrg
776348c85eb7Smrg# Use C for the default configuration in the libtool script
77643da084b3Smrg
776548c85eb7Smrglt_save_CC="$CC"
776648c85eb7Smrgac_ext=c
776748c85eb7Smrgac_cpp='$CPP $CPPFLAGS'
776848c85eb7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
776948c85eb7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
777048c85eb7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
77713da084b3Smrg
77723da084b3Smrg
777348c85eb7Smrg# Source file extension for C test sources.
777448c85eb7Smrgac_ext=c
77753da084b3Smrg
777648c85eb7Smrg# Object file extension for compiled C test sources.
777748c85eb7Smrgobjext=o
777848c85eb7Smrgobjext=$objext
77793da084b3Smrg
778048c85eb7Smrg# Code to be used in simple compile tests
778148c85eb7Smrglt_simple_compile_test_code="int some_variable = 0;"
77823da084b3Smrg
778348c85eb7Smrg# Code to be used in simple link tests
778448c85eb7Smrglt_simple_link_test_code='int main(){return(0);}'
77853da084b3Smrg
77863da084b3Smrg
77873da084b3Smrg
77883da084b3Smrg
77893da084b3Smrg
77903da084b3Smrg
77913da084b3Smrg
779248c85eb7Smrg# If no C compiler was specified, use CC.
779348c85eb7SmrgLTCC=${LTCC-"$CC"}
77943da084b3Smrg
779548c85eb7Smrg# If no C compiler flags were specified, use CFLAGS.
779648c85eb7SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
77973da084b3Smrg
779848c85eb7Smrg# Allow CC to be a program name with arguments.
779948c85eb7Smrgcompiler=$CC
78003da084b3Smrg
780148c85eb7Smrg# Save the default compiler, since it gets overwritten when the other
780248c85eb7Smrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
780348c85eb7Smrgcompiler_DEFAULT=$CC
78043da084b3Smrg
780548c85eb7Smrg# save warnings/boilerplate of simple test code
780648c85eb7Smrgac_outfile=conftest.$ac_objext
780748c85eb7Smrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
780848c85eb7Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
780948c85eb7Smrg_lt_compiler_boilerplate=`cat conftest.err`
781048c85eb7Smrg$RM conftest*
78113da084b3Smrg
781248c85eb7Smrgac_outfile=conftest.$ac_objext
781348c85eb7Smrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
781448c85eb7Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
781548c85eb7Smrg_lt_linker_boilerplate=`cat conftest.err`
781648c85eb7Smrg$RM -r conftest*
78173da084b3Smrg
78183da084b3Smrg
781948c85eb7Smrgif test -n "$compiler"; then
78203da084b3Smrg
782148c85eb7Smrglt_prog_compiler_no_builtin_flag=
7822d63fdb69Smrg
782348c85eb7Smrgif test "$GCC" = yes; then
782448c85eb7Smrg  case $cc_basename in
782548c85eb7Smrg  nvcc*)
782648c85eb7Smrg    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
782748c85eb7Smrg  *)
782848c85eb7Smrg    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
782948c85eb7Smrg  esac
7830d63fdb69Smrg
783148c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
783248c85eb7Smrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
783348c85eb7Smrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
783455acc8fcSmrg  $as_echo_n "(cached) " >&6
783555acc8fcSmrgelse
783648c85eb7Smrg  lt_cv_prog_compiler_rtti_exceptions=no
783748c85eb7Smrg   ac_outfile=conftest.$ac_objext
783848c85eb7Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
783948c85eb7Smrg   lt_compiler_flag="-fno-rtti -fno-exceptions"
784048c85eb7Smrg   # Insert the option either (1) after the last *FLAGS variable, or
784148c85eb7Smrg   # (2) before a word containing "conftest.", or (3) at the end.
784248c85eb7Smrg   # Note that $ac_compile itself does not contain backslashes and begins
784348c85eb7Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
784448c85eb7Smrg   # The option is referenced via a variable to avoid confusing sed.
784548c85eb7Smrg   lt_compile=`echo "$ac_compile" | $SED \
784648c85eb7Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
784748c85eb7Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
784848c85eb7Smrg   -e 's:$: $lt_compiler_flag:'`
784948c85eb7Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
785048c85eb7Smrg   (eval "$lt_compile" 2>conftest.err)
785148c85eb7Smrg   ac_status=$?
785248c85eb7Smrg   cat conftest.err >&5
785348c85eb7Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
785448c85eb7Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
785548c85eb7Smrg     # The compiler can only warn and ignore the option if not recognized
785648c85eb7Smrg     # So say no if there are warnings other than the usual output.
785748c85eb7Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
785848c85eb7Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
785948c85eb7Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
786048c85eb7Smrg       lt_cv_prog_compiler_rtti_exceptions=yes
786148c85eb7Smrg     fi
786248c85eb7Smrg   fi
786348c85eb7Smrg   $RM conftest*
786455acc8fcSmrg
786555acc8fcSmrgfi
786648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
786748c85eb7Smrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
78683da084b3Smrg
786948c85eb7Smrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
787048c85eb7Smrg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
787155acc8fcSmrgelse
787248c85eb7Smrg    :
78733da084b3Smrgfi
78743da084b3Smrg
7875d63fdb69Smrgfi
78763da084b3Smrg
78773da084b3Smrg
78783da084b3Smrg
78793da084b3Smrg
788055acc8fcSmrg
788155acc8fcSmrg
788248c85eb7Smrg  lt_prog_compiler_wl=
788348c85eb7Smrglt_prog_compiler_pic=
788448c85eb7Smrglt_prog_compiler_static=
78853da084b3Smrg
78863da084b3Smrg
788748c85eb7Smrg  if test "$GCC" = yes; then
788848c85eb7Smrg    lt_prog_compiler_wl='-Wl,'
788948c85eb7Smrg    lt_prog_compiler_static='-static'
78903da084b3Smrg
789148c85eb7Smrg    case $host_os in
789248c85eb7Smrg      aix*)
789348c85eb7Smrg      # All AIX code is PIC.
789448c85eb7Smrg      if test "$host_cpu" = ia64; then
789548c85eb7Smrg	# AIX 5 now supports IA64 processor
789648c85eb7Smrg	lt_prog_compiler_static='-Bstatic'
789748c85eb7Smrg      fi
789848c85eb7Smrg      ;;
78993da084b3Smrg
790048c85eb7Smrg    amigaos*)
790148c85eb7Smrg      case $host_cpu in
790248c85eb7Smrg      powerpc)
790348c85eb7Smrg            # see comment about AmigaOS4 .so support
790448c85eb7Smrg            lt_prog_compiler_pic='-fPIC'
790548c85eb7Smrg        ;;
790648c85eb7Smrg      m68k)
790748c85eb7Smrg            # FIXME: we need at least 68020 code to build shared libraries, but
790848c85eb7Smrg            # adding the `-m68020' flag to GCC prevents building anything better,
790948c85eb7Smrg            # like `-m68040'.
791048c85eb7Smrg            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
791148c85eb7Smrg        ;;
791248c85eb7Smrg      esac
791348c85eb7Smrg      ;;
79143da084b3Smrg
791548c85eb7Smrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
791648c85eb7Smrg      # PIC is the default for these OSes.
791748c85eb7Smrg      ;;
79183da084b3Smrg
791948c85eb7Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
792048c85eb7Smrg      # This hack is so that the source file can tell whether it is being
792148c85eb7Smrg      # built for inclusion in a dll (and should export symbols for example).
792248c85eb7Smrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
792348c85eb7Smrg      # (--disable-auto-import) libraries
792448c85eb7Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
792548c85eb7Smrg      ;;
7926d63fdb69Smrg
792748c85eb7Smrg    darwin* | rhapsody*)
792848c85eb7Smrg      # PIC is the default on this platform
792948c85eb7Smrg      # Common symbols not allowed in MH_DYLIB files
793048c85eb7Smrg      lt_prog_compiler_pic='-fno-common'
7931d63fdb69Smrg      ;;
79323da084b3Smrg
793348c85eb7Smrg    haiku*)
793448c85eb7Smrg      # PIC is the default for Haiku.
793548c85eb7Smrg      # The "-static" flag exists, but is broken.
793648c85eb7Smrg      lt_prog_compiler_static=
793748c85eb7Smrg      ;;
79383da084b3Smrg
793948c85eb7Smrg    hpux*)
794048c85eb7Smrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
794148c85eb7Smrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
794248c85eb7Smrg      # sets the default TLS model and affects inlining.
794348c85eb7Smrg      case $host_cpu in
794448c85eb7Smrg      hppa*64*)
794548c85eb7Smrg	# +Z the default
794648c85eb7Smrg	;;
794748c85eb7Smrg      *)
794848c85eb7Smrg	lt_prog_compiler_pic='-fPIC'
794948c85eb7Smrg	;;
795048c85eb7Smrg      esac
795148c85eb7Smrg      ;;
79523da084b3Smrg
795348c85eb7Smrg    interix[3-9]*)
795448c85eb7Smrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
795548c85eb7Smrg      # Instead, we relocate shared libraries at runtime.
795648c85eb7Smrg      ;;
79573da084b3Smrg
795848c85eb7Smrg    msdosdjgpp*)
795948c85eb7Smrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
796048c85eb7Smrg      # on systems that don't support them.
796148c85eb7Smrg      lt_prog_compiler_can_build_shared=no
796248c85eb7Smrg      enable_shared=no
796348c85eb7Smrg      ;;
79643da084b3Smrg
796548c85eb7Smrg    *nto* | *qnx*)
796648c85eb7Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
796748c85eb7Smrg      # it will coredump.
796848c85eb7Smrg      lt_prog_compiler_pic='-fPIC -shared'
796948c85eb7Smrg      ;;
79703da084b3Smrg
797148c85eb7Smrg    sysv4*MP*)
797248c85eb7Smrg      if test -d /usr/nec; then
797348c85eb7Smrg	lt_prog_compiler_pic=-Kconform_pic
797448c85eb7Smrg      fi
797548c85eb7Smrg      ;;
79763da084b3Smrg
7977d63fdb69Smrg    *)
797848c85eb7Smrg      lt_prog_compiler_pic='-fPIC'
79793da084b3Smrg      ;;
7980d63fdb69Smrg    esac
79813da084b3Smrg
798248c85eb7Smrg    case $cc_basename in
798348c85eb7Smrg    nvcc*) # Cuda Compiler Driver 2.2
798448c85eb7Smrg      lt_prog_compiler_wl='-Xlinker '
798548c85eb7Smrg      if test -n "$lt_prog_compiler_pic"; then
798648c85eb7Smrg        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
798748c85eb7Smrg      fi
798848c85eb7Smrg      ;;
798948c85eb7Smrg    esac
799048c85eb7Smrg  else
799148c85eb7Smrg    # PORTME Check for flag to pass linker flags through the system compiler.
799248c85eb7Smrg    case $host_os in
799348c85eb7Smrg    aix*)
799448c85eb7Smrg      lt_prog_compiler_wl='-Wl,'
799548c85eb7Smrg      if test "$host_cpu" = ia64; then
799648c85eb7Smrg	# AIX 5 now supports IA64 processor
799748c85eb7Smrg	lt_prog_compiler_static='-Bstatic'
799848c85eb7Smrg      else
799948c85eb7Smrg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
800048c85eb7Smrg      fi
800148c85eb7Smrg      ;;
80023da084b3Smrg
800348c85eb7Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
800448c85eb7Smrg      # This hack is so that the source file can tell whether it is being
800548c85eb7Smrg      # built for inclusion in a dll (and should export symbols for example).
800648c85eb7Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
800748c85eb7Smrg      ;;
80083da084b3Smrg
800948c85eb7Smrg    hpux9* | hpux10* | hpux11*)
801048c85eb7Smrg      lt_prog_compiler_wl='-Wl,'
801148c85eb7Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
801248c85eb7Smrg      # not for PA HP-UX.
801348c85eb7Smrg      case $host_cpu in
801448c85eb7Smrg      hppa*64*|ia64*)
801548c85eb7Smrg	# +Z the default
801648c85eb7Smrg	;;
801748c85eb7Smrg      *)
801848c85eb7Smrg	lt_prog_compiler_pic='+Z'
801948c85eb7Smrg	;;
802048c85eb7Smrg      esac
802148c85eb7Smrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
802248c85eb7Smrg      lt_prog_compiler_static='${wl}-a ${wl}archive'
802348c85eb7Smrg      ;;
80243da084b3Smrg
802548c85eb7Smrg    irix5* | irix6* | nonstopux*)
802648c85eb7Smrg      lt_prog_compiler_wl='-Wl,'
802748c85eb7Smrg      # PIC (with -KPIC) is the default.
802848c85eb7Smrg      lt_prog_compiler_static='-non_shared'
802948c85eb7Smrg      ;;
80303da084b3Smrg
803148c85eb7Smrg    linux* | k*bsd*-gnu | kopensolaris*-gnu)
803248c85eb7Smrg      case $cc_basename in
803348c85eb7Smrg      # old Intel for x86_64 which still supported -KPIC.
803448c85eb7Smrg      ecc*)
803548c85eb7Smrg	lt_prog_compiler_wl='-Wl,'
803648c85eb7Smrg	lt_prog_compiler_pic='-KPIC'
803748c85eb7Smrg	lt_prog_compiler_static='-static'
803848c85eb7Smrg        ;;
803948c85eb7Smrg      # icc used to be incompatible with GCC.
804048c85eb7Smrg      # ICC 10 doesn't accept -KPIC any more.
804148c85eb7Smrg      icc* | ifort*)
804248c85eb7Smrg	lt_prog_compiler_wl='-Wl,'
804348c85eb7Smrg	lt_prog_compiler_pic='-fPIC'
804448c85eb7Smrg	lt_prog_compiler_static='-static'
804548c85eb7Smrg        ;;
804648c85eb7Smrg      # Lahey Fortran 8.1.
804748c85eb7Smrg      lf95*)
804848c85eb7Smrg	lt_prog_compiler_wl='-Wl,'
804948c85eb7Smrg	lt_prog_compiler_pic='--shared'
805048c85eb7Smrg	lt_prog_compiler_static='--static'
805148c85eb7Smrg	;;
805248c85eb7Smrg      nagfor*)
805348c85eb7Smrg	# NAG Fortran compiler
805448c85eb7Smrg	lt_prog_compiler_wl='-Wl,-Wl,,'
805548c85eb7Smrg	lt_prog_compiler_pic='-PIC'
805648c85eb7Smrg	lt_prog_compiler_static='-Bstatic'
805748c85eb7Smrg	;;
805848c85eb7Smrg      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
805948c85eb7Smrg        # Portland Group compilers (*not* the Pentium gcc compiler,
806048c85eb7Smrg	# which looks to be a dead project)
806148c85eb7Smrg	lt_prog_compiler_wl='-Wl,'
806248c85eb7Smrg	lt_prog_compiler_pic='-fpic'
806348c85eb7Smrg	lt_prog_compiler_static='-Bstatic'
806448c85eb7Smrg        ;;
806548c85eb7Smrg      ccc*)
806648c85eb7Smrg        lt_prog_compiler_wl='-Wl,'
806748c85eb7Smrg        # All Alpha code is PIC.
806848c85eb7Smrg        lt_prog_compiler_static='-non_shared'
806948c85eb7Smrg        ;;
807048c85eb7Smrg      xl* | bgxl* | bgf* | mpixl*)
807148c85eb7Smrg	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
807248c85eb7Smrg	lt_prog_compiler_wl='-Wl,'
807348c85eb7Smrg	lt_prog_compiler_pic='-qpic'
807448c85eb7Smrg	lt_prog_compiler_static='-qstaticlink'
807548c85eb7Smrg	;;
807648c85eb7Smrg      *)
807748c85eb7Smrg	case `$CC -V 2>&1 | sed 5q` in
807848c85eb7Smrg	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
807948c85eb7Smrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
808048c85eb7Smrg	  lt_prog_compiler_pic='-KPIC'
808148c85eb7Smrg	  lt_prog_compiler_static='-Bstatic'
808248c85eb7Smrg	  lt_prog_compiler_wl=''
808348c85eb7Smrg	  ;;
808448c85eb7Smrg	*Sun\ F* | *Sun*Fortran*)
808548c85eb7Smrg	  lt_prog_compiler_pic='-KPIC'
808648c85eb7Smrg	  lt_prog_compiler_static='-Bstatic'
808748c85eb7Smrg	  lt_prog_compiler_wl='-Qoption ld '
808848c85eb7Smrg	  ;;
808948c85eb7Smrg	*Sun\ C*)
809048c85eb7Smrg	  # Sun C 5.9
809148c85eb7Smrg	  lt_prog_compiler_pic='-KPIC'
809248c85eb7Smrg	  lt_prog_compiler_static='-Bstatic'
809348c85eb7Smrg	  lt_prog_compiler_wl='-Wl,'
809448c85eb7Smrg	  ;;
809548c85eb7Smrg        *Intel*\ [CF]*Compiler*)
809648c85eb7Smrg	  lt_prog_compiler_wl='-Wl,'
809748c85eb7Smrg	  lt_prog_compiler_pic='-fPIC'
809848c85eb7Smrg	  lt_prog_compiler_static='-static'
809948c85eb7Smrg	  ;;
810048c85eb7Smrg	*Portland\ Group*)
810148c85eb7Smrg	  lt_prog_compiler_wl='-Wl,'
810248c85eb7Smrg	  lt_prog_compiler_pic='-fpic'
810348c85eb7Smrg	  lt_prog_compiler_static='-Bstatic'
810448c85eb7Smrg	  ;;
810548c85eb7Smrg	esac
810648c85eb7Smrg	;;
810748c85eb7Smrg      esac
810848c85eb7Smrg      ;;
81093da084b3Smrg
811048c85eb7Smrg    newsos6)
811148c85eb7Smrg      lt_prog_compiler_pic='-KPIC'
811248c85eb7Smrg      lt_prog_compiler_static='-Bstatic'
811348c85eb7Smrg      ;;
81143da084b3Smrg
811548c85eb7Smrg    *nto* | *qnx*)
811648c85eb7Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
811748c85eb7Smrg      # it will coredump.
811848c85eb7Smrg      lt_prog_compiler_pic='-fPIC -shared'
811948c85eb7Smrg      ;;
81203da084b3Smrg
812148c85eb7Smrg    osf3* | osf4* | osf5*)
812248c85eb7Smrg      lt_prog_compiler_wl='-Wl,'
812348c85eb7Smrg      # All OSF/1 code is PIC.
812448c85eb7Smrg      lt_prog_compiler_static='-non_shared'
812548c85eb7Smrg      ;;
81263da084b3Smrg
812748c85eb7Smrg    rdos*)
812848c85eb7Smrg      lt_prog_compiler_static='-non_shared'
812948c85eb7Smrg      ;;
81303da084b3Smrg
813148c85eb7Smrg    solaris*)
813248c85eb7Smrg      lt_prog_compiler_pic='-KPIC'
813348c85eb7Smrg      lt_prog_compiler_static='-Bstatic'
813448c85eb7Smrg      case $cc_basename in
813548c85eb7Smrg      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
813648c85eb7Smrg	lt_prog_compiler_wl='-Qoption ld ';;
813748c85eb7Smrg      *)
813848c85eb7Smrg	lt_prog_compiler_wl='-Wl,';;
813948c85eb7Smrg      esac
814048c85eb7Smrg      ;;
81413da084b3Smrg
814248c85eb7Smrg    sunos4*)
814348c85eb7Smrg      lt_prog_compiler_wl='-Qoption ld '
814448c85eb7Smrg      lt_prog_compiler_pic='-PIC'
814548c85eb7Smrg      lt_prog_compiler_static='-Bstatic'
814648c85eb7Smrg      ;;
81473da084b3Smrg
814848c85eb7Smrg    sysv4 | sysv4.2uw2* | sysv4.3*)
814948c85eb7Smrg      lt_prog_compiler_wl='-Wl,'
815048c85eb7Smrg      lt_prog_compiler_pic='-KPIC'
815148c85eb7Smrg      lt_prog_compiler_static='-Bstatic'
815248c85eb7Smrg      ;;
81533da084b3Smrg
815448c85eb7Smrg    sysv4*MP*)
815548c85eb7Smrg      if test -d /usr/nec ;then
815648c85eb7Smrg	lt_prog_compiler_pic='-Kconform_pic'
815748c85eb7Smrg	lt_prog_compiler_static='-Bstatic'
815848c85eb7Smrg      fi
815948c85eb7Smrg      ;;
81603da084b3Smrg
816148c85eb7Smrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
816248c85eb7Smrg      lt_prog_compiler_wl='-Wl,'
816348c85eb7Smrg      lt_prog_compiler_pic='-KPIC'
816448c85eb7Smrg      lt_prog_compiler_static='-Bstatic'
816548c85eb7Smrg      ;;
81663da084b3Smrg
816748c85eb7Smrg    unicos*)
816848c85eb7Smrg      lt_prog_compiler_wl='-Wl,'
816948c85eb7Smrg      lt_prog_compiler_can_build_shared=no
817048c85eb7Smrg      ;;
81713da084b3Smrg
817248c85eb7Smrg    uts4*)
817348c85eb7Smrg      lt_prog_compiler_pic='-pic'
817448c85eb7Smrg      lt_prog_compiler_static='-Bstatic'
817548c85eb7Smrg      ;;
8176d63fdb69Smrg
8177d63fdb69Smrg    *)
817848c85eb7Smrg      lt_prog_compiler_can_build_shared=no
8179d63fdb69Smrg      ;;
8180d63fdb69Smrg    esac
818148c85eb7Smrg  fi
81823da084b3Smrg
818348c85eb7Smrgcase $host_os in
818448c85eb7Smrg  # For platforms which do not support PIC, -DPIC is meaningless:
818548c85eb7Smrg  *djgpp*)
818648c85eb7Smrg    lt_prog_compiler_pic=
818748c85eb7Smrg    ;;
818848c85eb7Smrg  *)
818948c85eb7Smrg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
819048c85eb7Smrg    ;;
819148c85eb7Smrgesac
81923da084b3Smrg
819348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
819448c85eb7Smrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
819548c85eb7Smrgif ${lt_cv_prog_compiler_pic+:} false; then :
819648c85eb7Smrg  $as_echo_n "(cached) " >&6
819748c85eb7Smrgelse
819848c85eb7Smrg  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
819948c85eb7Smrgfi
820048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
820148c85eb7Smrg$as_echo "$lt_cv_prog_compiler_pic" >&6; }
820248c85eb7Smrglt_prog_compiler_pic=$lt_cv_prog_compiler_pic
82033da084b3Smrg
820448c85eb7Smrg#
820548c85eb7Smrg# Check to make sure the PIC flag actually works.
820648c85eb7Smrg#
820748c85eb7Smrgif test -n "$lt_prog_compiler_pic"; then
820848c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
820948c85eb7Smrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
821048c85eb7Smrgif ${lt_cv_prog_compiler_pic_works+:} false; then :
821148c85eb7Smrg  $as_echo_n "(cached) " >&6
821248c85eb7Smrgelse
821348c85eb7Smrg  lt_cv_prog_compiler_pic_works=no
821448c85eb7Smrg   ac_outfile=conftest.$ac_objext
821548c85eb7Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
821648c85eb7Smrg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
821748c85eb7Smrg   # Insert the option either (1) after the last *FLAGS variable, or
821848c85eb7Smrg   # (2) before a word containing "conftest.", or (3) at the end.
821948c85eb7Smrg   # Note that $ac_compile itself does not contain backslashes and begins
822048c85eb7Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
822148c85eb7Smrg   # The option is referenced via a variable to avoid confusing sed.
822248c85eb7Smrg   lt_compile=`echo "$ac_compile" | $SED \
822348c85eb7Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
822448c85eb7Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
822548c85eb7Smrg   -e 's:$: $lt_compiler_flag:'`
822648c85eb7Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
822748c85eb7Smrg   (eval "$lt_compile" 2>conftest.err)
822848c85eb7Smrg   ac_status=$?
822948c85eb7Smrg   cat conftest.err >&5
823048c85eb7Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
823148c85eb7Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
823248c85eb7Smrg     # The compiler can only warn and ignore the option if not recognized
823348c85eb7Smrg     # So say no if there are warnings other than the usual output.
823448c85eb7Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
823548c85eb7Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
823648c85eb7Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
823748c85eb7Smrg       lt_cv_prog_compiler_pic_works=yes
823848c85eb7Smrg     fi
823948c85eb7Smrg   fi
824048c85eb7Smrg   $RM conftest*
82413da084b3Smrg
824248c85eb7Smrgfi
824348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
824448c85eb7Smrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
82453da084b3Smrg
824648c85eb7Smrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
824748c85eb7Smrg    case $lt_prog_compiler_pic in
824848c85eb7Smrg     "" | " "*) ;;
824948c85eb7Smrg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
825048c85eb7Smrg     esac
825148c85eb7Smrgelse
825248c85eb7Smrg    lt_prog_compiler_pic=
825348c85eb7Smrg     lt_prog_compiler_can_build_shared=no
825448c85eb7Smrgfi
82553da084b3Smrg
825648c85eb7Smrgfi
82573da084b3Smrg
82583da084b3Smrg
82593da084b3Smrg
82603da084b3Smrg
82613da084b3Smrg
82623da084b3Smrg
82633da084b3Smrg
82643da084b3Smrg
82653da084b3Smrg
82663da084b3Smrg
82673da084b3Smrg
826848c85eb7Smrg#
826948c85eb7Smrg# Check to make sure the static flag actually works.
827048c85eb7Smrg#
827148c85eb7Smrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
827248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
827348c85eb7Smrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
827448c85eb7Smrgif ${lt_cv_prog_compiler_static_works+:} false; then :
827548c85eb7Smrg  $as_echo_n "(cached) " >&6
827648c85eb7Smrgelse
827748c85eb7Smrg  lt_cv_prog_compiler_static_works=no
827848c85eb7Smrg   save_LDFLAGS="$LDFLAGS"
827948c85eb7Smrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
828048c85eb7Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
828148c85eb7Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
828248c85eb7Smrg     # The linker can only warn and ignore the option if not recognized
828348c85eb7Smrg     # So say no if there are warnings
828448c85eb7Smrg     if test -s conftest.err; then
828548c85eb7Smrg       # Append any errors to the config.log.
828648c85eb7Smrg       cat conftest.err 1>&5
828748c85eb7Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
828848c85eb7Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
828948c85eb7Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
829048c85eb7Smrg         lt_cv_prog_compiler_static_works=yes
829148c85eb7Smrg       fi
829248c85eb7Smrg     else
829348c85eb7Smrg       lt_cv_prog_compiler_static_works=yes
829448c85eb7Smrg     fi
829548c85eb7Smrg   fi
829648c85eb7Smrg   $RM -r conftest*
829748c85eb7Smrg   LDFLAGS="$save_LDFLAGS"
82983da084b3Smrg
829948c85eb7Smrgfi
830048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
830148c85eb7Smrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
83023da084b3Smrg
830348c85eb7Smrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then
830448c85eb7Smrg    :
830548c85eb7Smrgelse
830648c85eb7Smrg    lt_prog_compiler_static=
830748c85eb7Smrgfi
83083da084b3Smrg
83093da084b3Smrg
83103da084b3Smrg
831155acc8fcSmrg
83123da084b3Smrg
83133da084b3Smrg
83143da084b3Smrg
831548c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
831648c85eb7Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
831748c85eb7Smrgif ${lt_cv_prog_compiler_c_o+:} false; then :
831848c85eb7Smrg  $as_echo_n "(cached) " >&6
831948c85eb7Smrgelse
832048c85eb7Smrg  lt_cv_prog_compiler_c_o=no
832148c85eb7Smrg   $RM -r conftest 2>/dev/null
832248c85eb7Smrg   mkdir conftest
832348c85eb7Smrg   cd conftest
832448c85eb7Smrg   mkdir out
832548c85eb7Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
83263da084b3Smrg
832748c85eb7Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
832848c85eb7Smrg   # Insert the option either (1) after the last *FLAGS variable, or
832948c85eb7Smrg   # (2) before a word containing "conftest.", or (3) at the end.
833048c85eb7Smrg   # Note that $ac_compile itself does not contain backslashes and begins
833148c85eb7Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
833248c85eb7Smrg   lt_compile=`echo "$ac_compile" | $SED \
833348c85eb7Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
833448c85eb7Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
833548c85eb7Smrg   -e 's:$: $lt_compiler_flag:'`
833648c85eb7Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
833748c85eb7Smrg   (eval "$lt_compile" 2>out/conftest.err)
833848c85eb7Smrg   ac_status=$?
833948c85eb7Smrg   cat out/conftest.err >&5
834048c85eb7Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
834148c85eb7Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
834248c85eb7Smrg   then
834348c85eb7Smrg     # The compiler can only warn and ignore the option if not recognized
834448c85eb7Smrg     # So say no if there are warnings
834548c85eb7Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
834648c85eb7Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
834748c85eb7Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
834848c85eb7Smrg       lt_cv_prog_compiler_c_o=yes
834948c85eb7Smrg     fi
835048c85eb7Smrg   fi
835148c85eb7Smrg   chmod u+w . 2>&5
835248c85eb7Smrg   $RM conftest*
835348c85eb7Smrg   # SGI C++ compiler will create directory out/ii_files/ for
835448c85eb7Smrg   # template instantiation
835548c85eb7Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
835648c85eb7Smrg   $RM out/* && rmdir out
835748c85eb7Smrg   cd ..
835848c85eb7Smrg   $RM -r conftest
835948c85eb7Smrg   $RM conftest*
83603da084b3Smrg
836148c85eb7Smrgfi
836248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
836348c85eb7Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
83643da084b3Smrg
83653da084b3Smrg
83663da084b3Smrg
83673da084b3Smrg
83683da084b3Smrg
83693da084b3Smrg
837048c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
837148c85eb7Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
837248c85eb7Smrgif ${lt_cv_prog_compiler_c_o+:} false; then :
837348c85eb7Smrg  $as_echo_n "(cached) " >&6
837448c85eb7Smrgelse
837548c85eb7Smrg  lt_cv_prog_compiler_c_o=no
837648c85eb7Smrg   $RM -r conftest 2>/dev/null
837748c85eb7Smrg   mkdir conftest
837848c85eb7Smrg   cd conftest
837948c85eb7Smrg   mkdir out
838048c85eb7Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
83813da084b3Smrg
838248c85eb7Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
838348c85eb7Smrg   # Insert the option either (1) after the last *FLAGS variable, or
838448c85eb7Smrg   # (2) before a word containing "conftest.", or (3) at the end.
838548c85eb7Smrg   # Note that $ac_compile itself does not contain backslashes and begins
838648c85eb7Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
838748c85eb7Smrg   lt_compile=`echo "$ac_compile" | $SED \
838848c85eb7Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
838948c85eb7Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
839048c85eb7Smrg   -e 's:$: $lt_compiler_flag:'`
839148c85eb7Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
839248c85eb7Smrg   (eval "$lt_compile" 2>out/conftest.err)
839348c85eb7Smrg   ac_status=$?
839448c85eb7Smrg   cat out/conftest.err >&5
839548c85eb7Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
839648c85eb7Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
839748c85eb7Smrg   then
839848c85eb7Smrg     # The compiler can only warn and ignore the option if not recognized
839948c85eb7Smrg     # So say no if there are warnings
840048c85eb7Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
840148c85eb7Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
840248c85eb7Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
840348c85eb7Smrg       lt_cv_prog_compiler_c_o=yes
840448c85eb7Smrg     fi
840548c85eb7Smrg   fi
840648c85eb7Smrg   chmod u+w . 2>&5
840748c85eb7Smrg   $RM conftest*
840848c85eb7Smrg   # SGI C++ compiler will create directory out/ii_files/ for
840948c85eb7Smrg   # template instantiation
841048c85eb7Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
841148c85eb7Smrg   $RM out/* && rmdir out
841248c85eb7Smrg   cd ..
841348c85eb7Smrg   $RM -r conftest
841448c85eb7Smrg   $RM conftest*
84153da084b3Smrg
841648c85eb7Smrgfi
841748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
841848c85eb7Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
84193da084b3Smrg
84203da084b3Smrg
84213da084b3Smrg
84223da084b3Smrg
842348c85eb7Smrghard_links="nottested"
842448c85eb7Smrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
842548c85eb7Smrg  # do not overwrite the value of need_locks provided by the user
842648c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
842748c85eb7Smrg$as_echo_n "checking if we can lock with hard links... " >&6; }
842848c85eb7Smrg  hard_links=yes
842948c85eb7Smrg  $RM conftest*
843048c85eb7Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
843148c85eb7Smrg  touch conftest.a
843248c85eb7Smrg  ln conftest.a conftest.b 2>&5 || hard_links=no
843348c85eb7Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
843448c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
843548c85eb7Smrg$as_echo "$hard_links" >&6; }
843648c85eb7Smrg  if test "$hard_links" = no; then
843748c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
843848c85eb7Smrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
843948c85eb7Smrg    need_locks=warn
844048c85eb7Smrg  fi
8441d63fdb69Smrgelse
844248c85eb7Smrg  need_locks=no
8443d63fdb69Smrgfi
84443da084b3Smrg
84453da084b3Smrg
84463da084b3Smrg
8447d63fdb69Smrg
8448d63fdb69Smrg
8449d63fdb69Smrg
845048c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
845148c85eb7Smrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8452d63fdb69Smrg
845348c85eb7Smrg  runpath_var=
845448c85eb7Smrg  allow_undefined_flag=
845548c85eb7Smrg  always_export_symbols=no
845648c85eb7Smrg  archive_cmds=
845748c85eb7Smrg  archive_expsym_cmds=
845848c85eb7Smrg  compiler_needs_object=no
845948c85eb7Smrg  enable_shared_with_static_runtimes=no
846048c85eb7Smrg  export_dynamic_flag_spec=
846148c85eb7Smrg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
846248c85eb7Smrg  hardcode_automatic=no
846348c85eb7Smrg  hardcode_direct=no
846448c85eb7Smrg  hardcode_direct_absolute=no
846548c85eb7Smrg  hardcode_libdir_flag_spec=
846648c85eb7Smrg  hardcode_libdir_separator=
846748c85eb7Smrg  hardcode_minus_L=no
846848c85eb7Smrg  hardcode_shlibpath_var=unsupported
846948c85eb7Smrg  inherit_rpath=no
847048c85eb7Smrg  link_all_deplibs=unknown
847148c85eb7Smrg  module_cmds=
847248c85eb7Smrg  module_expsym_cmds=
847348c85eb7Smrg  old_archive_from_new_cmds=
847448c85eb7Smrg  old_archive_from_expsyms_cmds=
847548c85eb7Smrg  thread_safe_flag_spec=
847648c85eb7Smrg  whole_archive_flag_spec=
847748c85eb7Smrg  # include_expsyms should be a list of space-separated symbols to be *always*
847848c85eb7Smrg  # included in the symbol list
847948c85eb7Smrg  include_expsyms=
848048c85eb7Smrg  # exclude_expsyms can be an extended regexp of symbols to exclude
848148c85eb7Smrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
848248c85eb7Smrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
848348c85eb7Smrg  # as well as any symbol that contains `d'.
848448c85eb7Smrg  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
848548c85eb7Smrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
848648c85eb7Smrg  # platforms (ab)use it in PIC code, but their linkers get confused if
848748c85eb7Smrg  # the symbol is explicitly referenced.  Since portable code cannot
848848c85eb7Smrg  # rely on this symbol name, it's probably fine to never include it in
848948c85eb7Smrg  # preloaded symbol tables.
849048c85eb7Smrg  # Exclude shared library initialization/finalization symbols.
849148c85eb7Smrg  extract_expsyms_cmds=
849248c85eb7Smrg
849348c85eb7Smrg  case $host_os in
849448c85eb7Smrg  cygwin* | mingw* | pw32* | cegcc*)
849548c85eb7Smrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
849648c85eb7Smrg    # When not using gcc, we currently assume that we are using
849748c85eb7Smrg    # Microsoft Visual C++.
849848c85eb7Smrg    if test "$GCC" != yes; then
849948c85eb7Smrg      with_gnu_ld=no
850048c85eb7Smrg    fi
850148c85eb7Smrg    ;;
850248c85eb7Smrg  interix*)
850348c85eb7Smrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
850448c85eb7Smrg    with_gnu_ld=yes
850548c85eb7Smrg    ;;
850648c85eb7Smrg  openbsd*)
850748c85eb7Smrg    with_gnu_ld=no
850848c85eb7Smrg    ;;
850948c85eb7Smrg  esac
851048c85eb7Smrg
851148c85eb7Smrg  ld_shlibs=yes
851248c85eb7Smrg
851348c85eb7Smrg  # On some targets, GNU ld is compatible enough with the native linker
851448c85eb7Smrg  # that we're better off using the native interface for both.
851548c85eb7Smrg  lt_use_gnu_ld_interface=no
851648c85eb7Smrg  if test "$with_gnu_ld" = yes; then
851748c85eb7Smrg    case $host_os in
851848c85eb7Smrg      aix*)
851948c85eb7Smrg	# The AIX port of GNU ld has always aspired to compatibility
852048c85eb7Smrg	# with the native linker.  However, as the warning in the GNU ld
852148c85eb7Smrg	# block says, versions before 2.19.5* couldn't really create working
852248c85eb7Smrg	# shared libraries, regardless of the interface used.
852348c85eb7Smrg	case `$LD -v 2>&1` in
852448c85eb7Smrg	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
852548c85eb7Smrg	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
852648c85eb7Smrg	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
852748c85eb7Smrg	  *)
852848c85eb7Smrg	    lt_use_gnu_ld_interface=yes
852948c85eb7Smrg	    ;;
853048c85eb7Smrg	esac
853148c85eb7Smrg	;;
853248c85eb7Smrg      *)
853348c85eb7Smrg	lt_use_gnu_ld_interface=yes
853448c85eb7Smrg	;;
853548c85eb7Smrg    esac
853648c85eb7Smrg  fi
853748c85eb7Smrg
853848c85eb7Smrg  if test "$lt_use_gnu_ld_interface" = yes; then
853948c85eb7Smrg    # If archive_cmds runs LD, not CC, wlarc should be empty
854048c85eb7Smrg    wlarc='${wl}'
854148c85eb7Smrg
854248c85eb7Smrg    # Set some defaults for GNU ld with shared library support. These
854348c85eb7Smrg    # are reset later if shared libraries are not supported. Putting them
854448c85eb7Smrg    # here allows them to be overridden if necessary.
854548c85eb7Smrg    runpath_var=LD_RUN_PATH
854648c85eb7Smrg    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
854748c85eb7Smrg    export_dynamic_flag_spec='${wl}--export-dynamic'
854848c85eb7Smrg    # ancient GNU ld didn't support --whole-archive et. al.
854948c85eb7Smrg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
855048c85eb7Smrg      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
855148c85eb7Smrg    else
855248c85eb7Smrg      whole_archive_flag_spec=
855348c85eb7Smrg    fi
855448c85eb7Smrg    supports_anon_versioning=no
855548c85eb7Smrg    case `$LD -v 2>&1` in
855648c85eb7Smrg      *GNU\ gold*) supports_anon_versioning=yes ;;
855748c85eb7Smrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
855848c85eb7Smrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
855948c85eb7Smrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
856048c85eb7Smrg      *\ 2.11.*) ;; # other 2.11 versions
856148c85eb7Smrg      *) supports_anon_versioning=yes ;;
856248c85eb7Smrg    esac
856348c85eb7Smrg
856448c85eb7Smrg    # See if GNU ld supports shared libraries.
856548c85eb7Smrg    case $host_os in
856648c85eb7Smrg    aix[3-9]*)
856748c85eb7Smrg      # On AIX/PPC, the GNU linker is very broken
856848c85eb7Smrg      if test "$host_cpu" != ia64; then
856948c85eb7Smrg	ld_shlibs=no
857048c85eb7Smrg	cat <<_LT_EOF 1>&2
857148c85eb7Smrg
857248c85eb7Smrg*** Warning: the GNU linker, at least up to release 2.19, is reported
857348c85eb7Smrg*** to be unable to reliably create shared libraries on AIX.
857448c85eb7Smrg*** Therefore, libtool is disabling shared libraries support.  If you
857548c85eb7Smrg*** really care for shared libraries, you may want to install binutils
857648c85eb7Smrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
857748c85eb7Smrg*** You will then need to restart the configuration process.
857848c85eb7Smrg
857948c85eb7Smrg_LT_EOF
858048c85eb7Smrg      fi
858148c85eb7Smrg      ;;
858248c85eb7Smrg
858348c85eb7Smrg    amigaos*)
858448c85eb7Smrg      case $host_cpu in
858548c85eb7Smrg      powerpc)
858648c85eb7Smrg            # see comment about AmigaOS4 .so support
858748c85eb7Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
858848c85eb7Smrg            archive_expsym_cmds=''
858948c85eb7Smrg        ;;
859048c85eb7Smrg      m68k)
859148c85eb7Smrg            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)'
859248c85eb7Smrg            hardcode_libdir_flag_spec='-L$libdir'
859348c85eb7Smrg            hardcode_minus_L=yes
859448c85eb7Smrg        ;;
859548c85eb7Smrg      esac
859648c85eb7Smrg      ;;
859748c85eb7Smrg
859848c85eb7Smrg    beos*)
859948c85eb7Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
860048c85eb7Smrg	allow_undefined_flag=unsupported
860148c85eb7Smrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
860248c85eb7Smrg	# support --undefined.  This deserves some investigation.  FIXME
860348c85eb7Smrg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
860448c85eb7Smrg      else
860548c85eb7Smrg	ld_shlibs=no
860648c85eb7Smrg      fi
860748c85eb7Smrg      ;;
860848c85eb7Smrg
860948c85eb7Smrg    cygwin* | mingw* | pw32* | cegcc*)
861048c85eb7Smrg      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
861148c85eb7Smrg      # as there is no search path for DLLs.
861248c85eb7Smrg      hardcode_libdir_flag_spec='-L$libdir'
861348c85eb7Smrg      export_dynamic_flag_spec='${wl}--export-all-symbols'
861448c85eb7Smrg      allow_undefined_flag=unsupported
861548c85eb7Smrg      always_export_symbols=no
861648c85eb7Smrg      enable_shared_with_static_runtimes=yes
861748c85eb7Smrg      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
861848c85eb7Smrg      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
861948c85eb7Smrg
862048c85eb7Smrg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
862148c85eb7Smrg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
862248c85eb7Smrg	# If the export-symbols file already is a .def file (1st line
862348c85eb7Smrg	# is EXPORTS), use it as is; otherwise, prepend...
862448c85eb7Smrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
862548c85eb7Smrg	  cp $export_symbols $output_objdir/$soname.def;
862648c85eb7Smrg	else
862748c85eb7Smrg	  echo EXPORTS > $output_objdir/$soname.def;
862848c85eb7Smrg	  cat $export_symbols >> $output_objdir/$soname.def;
862948c85eb7Smrg	fi~
863048c85eb7Smrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
863148c85eb7Smrg      else
863248c85eb7Smrg	ld_shlibs=no
863348c85eb7Smrg      fi
863448c85eb7Smrg      ;;
863548c85eb7Smrg
863648c85eb7Smrg    haiku*)
863748c85eb7Smrg      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
863848c85eb7Smrg      link_all_deplibs=yes
863948c85eb7Smrg      ;;
864048c85eb7Smrg
864148c85eb7Smrg    interix[3-9]*)
864248c85eb7Smrg      hardcode_direct=no
864348c85eb7Smrg      hardcode_shlibpath_var=no
864448c85eb7Smrg      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
864548c85eb7Smrg      export_dynamic_flag_spec='${wl}-E'
864648c85eb7Smrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
864748c85eb7Smrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
864848c85eb7Smrg      # default) and relocated if they conflict, which is a slow very memory
864948c85eb7Smrg      # consuming and fragmenting process.  To avoid this, we pick a random,
865048c85eb7Smrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
865148c85eb7Smrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
865248c85eb7Smrg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
865348c85eb7Smrg      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'
865448c85eb7Smrg      ;;
865548c85eb7Smrg
865648c85eb7Smrg    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
865748c85eb7Smrg      tmp_diet=no
865848c85eb7Smrg      if test "$host_os" = linux-dietlibc; then
865948c85eb7Smrg	case $cc_basename in
866048c85eb7Smrg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
866148c85eb7Smrg	esac
866248c85eb7Smrg      fi
866348c85eb7Smrg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
866448c85eb7Smrg	 && test "$tmp_diet" = no
866548c85eb7Smrg      then
866648c85eb7Smrg	tmp_addflag=' $pic_flag'
866748c85eb7Smrg	tmp_sharedflag='-shared'
866848c85eb7Smrg	case $cc_basename,$host_cpu in
866948c85eb7Smrg        pgcc*)				# Portland Group C compiler
867048c85eb7Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
867148c85eb7Smrg	  tmp_addflag=' $pic_flag'
867248c85eb7Smrg	  ;;
867348c85eb7Smrg	pgf77* | pgf90* | pgf95* | pgfortran*)
867448c85eb7Smrg					# Portland Group f77 and f90 compilers
867548c85eb7Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
867648c85eb7Smrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
867748c85eb7Smrg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
867848c85eb7Smrg	  tmp_addflag=' -i_dynamic' ;;
867948c85eb7Smrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
868048c85eb7Smrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
868148c85eb7Smrg	ifc* | ifort*)			# Intel Fortran compiler
868248c85eb7Smrg	  tmp_addflag=' -nofor_main' ;;
868348c85eb7Smrg	lf95*)				# Lahey Fortran 8.1
868448c85eb7Smrg	  whole_archive_flag_spec=
868548c85eb7Smrg	  tmp_sharedflag='--shared' ;;
868648c85eb7Smrg	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
868748c85eb7Smrg	  tmp_sharedflag='-qmkshrobj'
868848c85eb7Smrg	  tmp_addflag= ;;
868948c85eb7Smrg	nvcc*)	# Cuda Compiler Driver 2.2
869048c85eb7Smrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
869148c85eb7Smrg	  compiler_needs_object=yes
869248c85eb7Smrg	  ;;
869348c85eb7Smrg	esac
869448c85eb7Smrg	case `$CC -V 2>&1 | sed 5q` in
869548c85eb7Smrg	*Sun\ C*)			# Sun C 5.9
869648c85eb7Smrg	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
869748c85eb7Smrg	  compiler_needs_object=yes
869848c85eb7Smrg	  tmp_sharedflag='-G' ;;
869948c85eb7Smrg	*Sun\ F*)			# Sun Fortran 8.3
870048c85eb7Smrg	  tmp_sharedflag='-G' ;;
870148c85eb7Smrg	esac
870248c85eb7Smrg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
870348c85eb7Smrg
870448c85eb7Smrg        if test "x$supports_anon_versioning" = xyes; then
870548c85eb7Smrg          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
870648c85eb7Smrg	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
870748c85eb7Smrg	    echo "local: *; };" >> $output_objdir/$libname.ver~
870848c85eb7Smrg	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
870948c85eb7Smrg        fi
871048c85eb7Smrg
871148c85eb7Smrg	case $cc_basename in
871248c85eb7Smrg	xlf* | bgf* | bgxlf* | mpixlf*)
871348c85eb7Smrg	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
871448c85eb7Smrg	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
871548c85eb7Smrg	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
871648c85eb7Smrg	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
871748c85eb7Smrg	  if test "x$supports_anon_versioning" = xyes; then
871848c85eb7Smrg	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
871948c85eb7Smrg	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
872048c85eb7Smrg	      echo "local: *; };" >> $output_objdir/$libname.ver~
872148c85eb7Smrg	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
872248c85eb7Smrg	  fi
872348c85eb7Smrg	  ;;
872448c85eb7Smrg	esac
872548c85eb7Smrg      else
872648c85eb7Smrg        ld_shlibs=no
872748c85eb7Smrg      fi
872848c85eb7Smrg      ;;
872948c85eb7Smrg
873048c85eb7Smrg    netbsd*)
873148c85eb7Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
873248c85eb7Smrg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
873348c85eb7Smrg	wlarc=
873448c85eb7Smrg      else
873548c85eb7Smrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
873648c85eb7Smrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
873748c85eb7Smrg      fi
873848c85eb7Smrg      ;;
873948c85eb7Smrg
874048c85eb7Smrg    solaris*)
874148c85eb7Smrg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
874248c85eb7Smrg	ld_shlibs=no
874348c85eb7Smrg	cat <<_LT_EOF 1>&2
874448c85eb7Smrg
874548c85eb7Smrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
874648c85eb7Smrg*** create shared libraries on Solaris systems.  Therefore, libtool
874748c85eb7Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
874848c85eb7Smrg*** binutils to release 2.9.1 or newer.  Another option is to modify
874948c85eb7Smrg*** your PATH or compiler configuration so that the native linker is
875048c85eb7Smrg*** used, and then restart.
875148c85eb7Smrg
875248c85eb7Smrg_LT_EOF
875348c85eb7Smrg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
875448c85eb7Smrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
875548c85eb7Smrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
875648c85eb7Smrg      else
875748c85eb7Smrg	ld_shlibs=no
875848c85eb7Smrg      fi
875948c85eb7Smrg      ;;
876048c85eb7Smrg
876148c85eb7Smrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
876248c85eb7Smrg      case `$LD -v 2>&1` in
876348c85eb7Smrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
876448c85eb7Smrg	ld_shlibs=no
876548c85eb7Smrg	cat <<_LT_EOF 1>&2
876648c85eb7Smrg
876748c85eb7Smrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
876848c85eb7Smrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
876948c85eb7Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
877048c85eb7Smrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
877148c85eb7Smrg*** your PATH or compiler configuration so that the native linker is
877248c85eb7Smrg*** used, and then restart.
877348c85eb7Smrg
877448c85eb7Smrg_LT_EOF
877548c85eb7Smrg	;;
877648c85eb7Smrg	*)
877748c85eb7Smrg	  # For security reasons, it is highly recommended that you always
877848c85eb7Smrg	  # use absolute paths for naming shared libraries, and exclude the
877948c85eb7Smrg	  # DT_RUNPATH tag from executables and libraries.  But doing so
878048c85eb7Smrg	  # requires that you compile everything twice, which is a pain.
878148c85eb7Smrg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
878248c85eb7Smrg	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
878348c85eb7Smrg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
878448c85eb7Smrg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
878548c85eb7Smrg	  else
878648c85eb7Smrg	    ld_shlibs=no
878748c85eb7Smrg	  fi
878848c85eb7Smrg	;;
878948c85eb7Smrg      esac
879048c85eb7Smrg      ;;
879148c85eb7Smrg
879248c85eb7Smrg    sunos4*)
879348c85eb7Smrg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
879448c85eb7Smrg      wlarc=
879548c85eb7Smrg      hardcode_direct=yes
879648c85eb7Smrg      hardcode_shlibpath_var=no
879748c85eb7Smrg      ;;
879848c85eb7Smrg
879948c85eb7Smrg    *)
880048c85eb7Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
880148c85eb7Smrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
880248c85eb7Smrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
880348c85eb7Smrg      else
880448c85eb7Smrg	ld_shlibs=no
880548c85eb7Smrg      fi
880648c85eb7Smrg      ;;
880748c85eb7Smrg    esac
880848c85eb7Smrg
880948c85eb7Smrg    if test "$ld_shlibs" = no; then
881048c85eb7Smrg      runpath_var=
881148c85eb7Smrg      hardcode_libdir_flag_spec=
881248c85eb7Smrg      export_dynamic_flag_spec=
881348c85eb7Smrg      whole_archive_flag_spec=
881448c85eb7Smrg    fi
881548c85eb7Smrg  else
881648c85eb7Smrg    # PORTME fill in a description of your system's linker (not GNU ld)
881748c85eb7Smrg    case $host_os in
881848c85eb7Smrg    aix3*)
881948c85eb7Smrg      allow_undefined_flag=unsupported
882048c85eb7Smrg      always_export_symbols=yes
882148c85eb7Smrg      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'
882248c85eb7Smrg      # Note: this linker hardcodes the directories in LIBPATH if there
882348c85eb7Smrg      # are no directories specified by -L.
882448c85eb7Smrg      hardcode_minus_L=yes
882548c85eb7Smrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
882648c85eb7Smrg	# Neither direct hardcoding nor static linking is supported with a
882748c85eb7Smrg	# broken collect2.
882848c85eb7Smrg	hardcode_direct=unsupported
882948c85eb7Smrg      fi
883048c85eb7Smrg      ;;
883148c85eb7Smrg
883248c85eb7Smrg    aix[4-9]*)
883348c85eb7Smrg      if test "$host_cpu" = ia64; then
883448c85eb7Smrg	# On IA64, the linker does run time linking by default, so we don't
883548c85eb7Smrg	# have to do anything special.
883648c85eb7Smrg	aix_use_runtimelinking=no
883748c85eb7Smrg	exp_sym_flag='-Bexport'
883848c85eb7Smrg	no_entry_flag=""
883948c85eb7Smrg      else
884048c85eb7Smrg	# If we're using GNU nm, then we don't want the "-C" option.
884148c85eb7Smrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
884248c85eb7Smrg	# Also, AIX nm treats weak defined symbols like other global
884348c85eb7Smrg	# defined symbols, whereas GNU nm marks them as "W".
884448c85eb7Smrg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
884548c85eb7Smrg	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
884648c85eb7Smrg	else
884748c85eb7Smrg	  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'
884848c85eb7Smrg	fi
884948c85eb7Smrg	aix_use_runtimelinking=no
885048c85eb7Smrg
885148c85eb7Smrg	# Test if we are trying to use run time linking or normal
885248c85eb7Smrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
885348c85eb7Smrg	# need to do runtime linking.
885448c85eb7Smrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
885548c85eb7Smrg	  for ld_flag in $LDFLAGS; do
885648c85eb7Smrg	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
885748c85eb7Smrg	    aix_use_runtimelinking=yes
885848c85eb7Smrg	    break
885948c85eb7Smrg	  fi
886048c85eb7Smrg	  done
886148c85eb7Smrg	  ;;
886248c85eb7Smrg	esac
886348c85eb7Smrg
886448c85eb7Smrg	exp_sym_flag='-bexport'
886548c85eb7Smrg	no_entry_flag='-bnoentry'
886648c85eb7Smrg      fi
886748c85eb7Smrg
886848c85eb7Smrg      # When large executables or shared objects are built, AIX ld can
886948c85eb7Smrg      # have problems creating the table of contents.  If linking a library
887048c85eb7Smrg      # or program results in "error TOC overflow" add -mminimal-toc to
887148c85eb7Smrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
887248c85eb7Smrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
887348c85eb7Smrg
887448c85eb7Smrg      archive_cmds=''
887548c85eb7Smrg      hardcode_direct=yes
887648c85eb7Smrg      hardcode_direct_absolute=yes
887748c85eb7Smrg      hardcode_libdir_separator=':'
887848c85eb7Smrg      link_all_deplibs=yes
887948c85eb7Smrg      file_list_spec='${wl}-f,'
888048c85eb7Smrg
888148c85eb7Smrg      if test "$GCC" = yes; then
888248c85eb7Smrg	case $host_os in aix4.[012]|aix4.[012].*)
888348c85eb7Smrg	# We only want to do this on AIX 4.2 and lower, the check
888448c85eb7Smrg	# below for broken collect2 doesn't work under 4.3+
888548c85eb7Smrg	  collect2name=`${CC} -print-prog-name=collect2`
888648c85eb7Smrg	  if test -f "$collect2name" &&
888748c85eb7Smrg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
888848c85eb7Smrg	  then
888948c85eb7Smrg	  # We have reworked collect2
889048c85eb7Smrg	  :
889148c85eb7Smrg	  else
889248c85eb7Smrg	  # We have old collect2
889348c85eb7Smrg	  hardcode_direct=unsupported
889448c85eb7Smrg	  # It fails to find uninstalled libraries when the uninstalled
889548c85eb7Smrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
889648c85eb7Smrg	  # to unsupported forces relinking
889748c85eb7Smrg	  hardcode_minus_L=yes
889848c85eb7Smrg	  hardcode_libdir_flag_spec='-L$libdir'
889948c85eb7Smrg	  hardcode_libdir_separator=
890048c85eb7Smrg	  fi
890148c85eb7Smrg	  ;;
890248c85eb7Smrg	esac
890348c85eb7Smrg	shared_flag='-shared'
890448c85eb7Smrg	if test "$aix_use_runtimelinking" = yes; then
890548c85eb7Smrg	  shared_flag="$shared_flag "'${wl}-G'
890648c85eb7Smrg	fi
890748c85eb7Smrg      else
890848c85eb7Smrg	# not using gcc
890948c85eb7Smrg	if test "$host_cpu" = ia64; then
891048c85eb7Smrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
891148c85eb7Smrg	# chokes on -Wl,-G. The following line is correct:
891248c85eb7Smrg	  shared_flag='-G'
891348c85eb7Smrg	else
891448c85eb7Smrg	  if test "$aix_use_runtimelinking" = yes; then
891548c85eb7Smrg	    shared_flag='${wl}-G'
891648c85eb7Smrg	  else
891748c85eb7Smrg	    shared_flag='${wl}-bM:SRE'
891848c85eb7Smrg	  fi
891948c85eb7Smrg	fi
892048c85eb7Smrg      fi
892148c85eb7Smrg
892248c85eb7Smrg      export_dynamic_flag_spec='${wl}-bexpall'
892348c85eb7Smrg      # It seems that -bexpall does not export symbols beginning with
892448c85eb7Smrg      # underscore (_), so it is better to generate a list of symbols to export.
892548c85eb7Smrg      always_export_symbols=yes
892648c85eb7Smrg      if test "$aix_use_runtimelinking" = yes; then
892748c85eb7Smrg	# Warning - without using the other runtime loading flags (-brtl),
892848c85eb7Smrg	# -berok will link without error, but may produce a broken library.
892948c85eb7Smrg	allow_undefined_flag='-berok'
893048c85eb7Smrg        # Determine the default libpath from the value encoded in an
893148c85eb7Smrg        # empty executable.
893248c85eb7Smrg        if test "${lt_cv_aix_libpath+set}" = set; then
893348c85eb7Smrg  aix_libpath=$lt_cv_aix_libpath
893448c85eb7Smrgelse
893548c85eb7Smrg  if ${lt_cv_aix_libpath_+:} false; then :
893648c85eb7Smrg  $as_echo_n "(cached) " >&6
893748c85eb7Smrgelse
893848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
893948c85eb7Smrg/* end confdefs.h.  */
894048c85eb7Smrg
894148c85eb7Smrgint
894248c85eb7Smrgmain ()
894348c85eb7Smrg{
894448c85eb7Smrg
894548c85eb7Smrg  ;
894648c85eb7Smrg  return 0;
894748c85eb7Smrg}
894848c85eb7Smrg_ACEOF
894948c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
895048c85eb7Smrg
895148c85eb7Smrg  lt_aix_libpath_sed='
895248c85eb7Smrg      /Import File Strings/,/^$/ {
895348c85eb7Smrg	  /^0/ {
895448c85eb7Smrg	      s/^0  *\([^ ]*\) *$/\1/
895548c85eb7Smrg	      p
895648c85eb7Smrg	  }
895748c85eb7Smrg      }'
895848c85eb7Smrg  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
895948c85eb7Smrg  # Check for a 64-bit object if we didn't find anything.
896048c85eb7Smrg  if test -z "$lt_cv_aix_libpath_"; then
896148c85eb7Smrg    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
896248c85eb7Smrg  fi
896348c85eb7Smrgfi
896448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
896548c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
896648c85eb7Smrg  if test -z "$lt_cv_aix_libpath_"; then
896748c85eb7Smrg    lt_cv_aix_libpath_="/usr/lib:/lib"
896848c85eb7Smrg  fi
896948c85eb7Smrg
897048c85eb7Smrgfi
897148c85eb7Smrg
897248c85eb7Smrg  aix_libpath=$lt_cv_aix_libpath_
897348c85eb7Smrgfi
897448c85eb7Smrg
897548c85eb7Smrg        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
897648c85eb7Smrg        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
897748c85eb7Smrg      else
897848c85eb7Smrg	if test "$host_cpu" = ia64; then
897948c85eb7Smrg	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
898048c85eb7Smrg	  allow_undefined_flag="-z nodefs"
898148c85eb7Smrg	  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"
898248c85eb7Smrg	else
898348c85eb7Smrg	 # Determine the default libpath from the value encoded in an
898448c85eb7Smrg	 # empty executable.
898548c85eb7Smrg	 if test "${lt_cv_aix_libpath+set}" = set; then
898648c85eb7Smrg  aix_libpath=$lt_cv_aix_libpath
898748c85eb7Smrgelse
898848c85eb7Smrg  if ${lt_cv_aix_libpath_+:} false; then :
898948c85eb7Smrg  $as_echo_n "(cached) " >&6
899048c85eb7Smrgelse
899148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
899248c85eb7Smrg/* end confdefs.h.  */
899348c85eb7Smrg
899448c85eb7Smrgint
899548c85eb7Smrgmain ()
899648c85eb7Smrg{
899748c85eb7Smrg
899848c85eb7Smrg  ;
899948c85eb7Smrg  return 0;
900048c85eb7Smrg}
900148c85eb7Smrg_ACEOF
900248c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
900348c85eb7Smrg
900448c85eb7Smrg  lt_aix_libpath_sed='
900548c85eb7Smrg      /Import File Strings/,/^$/ {
900648c85eb7Smrg	  /^0/ {
900748c85eb7Smrg	      s/^0  *\([^ ]*\) *$/\1/
900848c85eb7Smrg	      p
900948c85eb7Smrg	  }
901048c85eb7Smrg      }'
901148c85eb7Smrg  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
901248c85eb7Smrg  # Check for a 64-bit object if we didn't find anything.
901348c85eb7Smrg  if test -z "$lt_cv_aix_libpath_"; then
901448c85eb7Smrg    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
901548c85eb7Smrg  fi
901648c85eb7Smrgfi
901748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
901848c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
901948c85eb7Smrg  if test -z "$lt_cv_aix_libpath_"; then
902048c85eb7Smrg    lt_cv_aix_libpath_="/usr/lib:/lib"
902148c85eb7Smrg  fi
902248c85eb7Smrg
902348c85eb7Smrgfi
902448c85eb7Smrg
902548c85eb7Smrg  aix_libpath=$lt_cv_aix_libpath_
902648c85eb7Smrgfi
902748c85eb7Smrg
902848c85eb7Smrg	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
902948c85eb7Smrg	  # Warning - without using the other run time loading flags,
903048c85eb7Smrg	  # -berok will link without error, but may produce a broken library.
903148c85eb7Smrg	  no_undefined_flag=' ${wl}-bernotok'
903248c85eb7Smrg	  allow_undefined_flag=' ${wl}-berok'
903348c85eb7Smrg	  if test "$with_gnu_ld" = yes; then
903448c85eb7Smrg	    # We only use this code for GNU lds that support --whole-archive.
903548c85eb7Smrg	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
903648c85eb7Smrg	  else
903748c85eb7Smrg	    # Exported symbols can be pulled into shared objects from archives
903848c85eb7Smrg	    whole_archive_flag_spec='$convenience'
903948c85eb7Smrg	  fi
904048c85eb7Smrg	  archive_cmds_need_lc=yes
904148c85eb7Smrg	  # This is similar to how AIX traditionally builds its shared libraries.
904248c85eb7Smrg	  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'
904348c85eb7Smrg	fi
904448c85eb7Smrg      fi
904548c85eb7Smrg      ;;
904648c85eb7Smrg
904748c85eb7Smrg    amigaos*)
904848c85eb7Smrg      case $host_cpu in
904948c85eb7Smrg      powerpc)
905048c85eb7Smrg            # see comment about AmigaOS4 .so support
905148c85eb7Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
905248c85eb7Smrg            archive_expsym_cmds=''
905348c85eb7Smrg        ;;
905448c85eb7Smrg      m68k)
905548c85eb7Smrg            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)'
905648c85eb7Smrg            hardcode_libdir_flag_spec='-L$libdir'
905748c85eb7Smrg            hardcode_minus_L=yes
905848c85eb7Smrg        ;;
905948c85eb7Smrg      esac
906048c85eb7Smrg      ;;
906148c85eb7Smrg
906248c85eb7Smrg    bsdi[45]*)
906348c85eb7Smrg      export_dynamic_flag_spec=-rdynamic
906448c85eb7Smrg      ;;
906548c85eb7Smrg
906648c85eb7Smrg    cygwin* | mingw* | pw32* | cegcc*)
906748c85eb7Smrg      # When not using gcc, we currently assume that we are using
906848c85eb7Smrg      # Microsoft Visual C++.
906948c85eb7Smrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
907048c85eb7Smrg      # no search path for DLLs.
907148c85eb7Smrg      case $cc_basename in
907248c85eb7Smrg      cl*)
907348c85eb7Smrg	# Native MSVC
907448c85eb7Smrg	hardcode_libdir_flag_spec=' '
907548c85eb7Smrg	allow_undefined_flag=unsupported
907648c85eb7Smrg	always_export_symbols=yes
907748c85eb7Smrg	file_list_spec='@'
907848c85eb7Smrg	# Tell ltmain to make .lib files, not .a files.
907948c85eb7Smrg	libext=lib
908048c85eb7Smrg	# Tell ltmain to make .dll files, not .so files.
908148c85eb7Smrg	shrext_cmds=".dll"
908248c85eb7Smrg	# FIXME: Setting linknames here is a bad hack.
908348c85eb7Smrg	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
908448c85eb7Smrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
908548c85eb7Smrg	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
908648c85eb7Smrg	  else
908748c85eb7Smrg	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
908848c85eb7Smrg	  fi~
908948c85eb7Smrg	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
909048c85eb7Smrg	  linknames='
909148c85eb7Smrg	# The linker will not automatically build a static lib if we build a DLL.
909248c85eb7Smrg	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
909348c85eb7Smrg	enable_shared_with_static_runtimes=yes
909448c85eb7Smrg	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
909548c85eb7Smrg	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
909648c85eb7Smrg	# Don't use ranlib
909748c85eb7Smrg	old_postinstall_cmds='chmod 644 $oldlib'
909848c85eb7Smrg	postlink_cmds='lt_outputfile="@OUTPUT@"~
909948c85eb7Smrg	  lt_tool_outputfile="@TOOL_OUTPUT@"~
910048c85eb7Smrg	  case $lt_outputfile in
910148c85eb7Smrg	    *.exe|*.EXE) ;;
910248c85eb7Smrg	    *)
910348c85eb7Smrg	      lt_outputfile="$lt_outputfile.exe"
910448c85eb7Smrg	      lt_tool_outputfile="$lt_tool_outputfile.exe"
910548c85eb7Smrg	      ;;
910648c85eb7Smrg	  esac~
910748c85eb7Smrg	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
910848c85eb7Smrg	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
910948c85eb7Smrg	    $RM "$lt_outputfile.manifest";
911048c85eb7Smrg	  fi'
911148c85eb7Smrg	;;
911248c85eb7Smrg      *)
911348c85eb7Smrg	# Assume MSVC wrapper
911448c85eb7Smrg	hardcode_libdir_flag_spec=' '
911548c85eb7Smrg	allow_undefined_flag=unsupported
911648c85eb7Smrg	# Tell ltmain to make .lib files, not .a files.
911748c85eb7Smrg	libext=lib
911848c85eb7Smrg	# Tell ltmain to make .dll files, not .so files.
911948c85eb7Smrg	shrext_cmds=".dll"
912048c85eb7Smrg	# FIXME: Setting linknames here is a bad hack.
912148c85eb7Smrg	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
912248c85eb7Smrg	# The linker will automatically build a .lib file if we build a DLL.
912348c85eb7Smrg	old_archive_from_new_cmds='true'
912448c85eb7Smrg	# FIXME: Should let the user specify the lib program.
912548c85eb7Smrg	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
912648c85eb7Smrg	enable_shared_with_static_runtimes=yes
912748c85eb7Smrg	;;
912848c85eb7Smrg      esac
912948c85eb7Smrg      ;;
913048c85eb7Smrg
913148c85eb7Smrg    darwin* | rhapsody*)
913248c85eb7Smrg
913348c85eb7Smrg
913448c85eb7Smrg  archive_cmds_need_lc=no
913548c85eb7Smrg  hardcode_direct=no
913648c85eb7Smrg  hardcode_automatic=yes
913748c85eb7Smrg  hardcode_shlibpath_var=unsupported
913848c85eb7Smrg  if test "$lt_cv_ld_force_load" = "yes"; then
913948c85eb7Smrg    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
914048c85eb7Smrg
914148c85eb7Smrg  else
914248c85eb7Smrg    whole_archive_flag_spec=''
914348c85eb7Smrg  fi
914448c85eb7Smrg  link_all_deplibs=yes
914548c85eb7Smrg  allow_undefined_flag="$_lt_dar_allow_undefined"
914648c85eb7Smrg  case $cc_basename in
914748c85eb7Smrg     ifort*) _lt_dar_can_shared=yes ;;
914848c85eb7Smrg     *) _lt_dar_can_shared=$GCC ;;
914948c85eb7Smrg  esac
915048c85eb7Smrg  if test "$_lt_dar_can_shared" = "yes"; then
915148c85eb7Smrg    output_verbose_link_cmd=func_echo_all
915248c85eb7Smrg    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
915348c85eb7Smrg    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
915448c85eb7Smrg    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}"
915548c85eb7Smrg    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}"
915648c85eb7Smrg
915748c85eb7Smrg  else
915848c85eb7Smrg  ld_shlibs=no
915948c85eb7Smrg  fi
916048c85eb7Smrg
916148c85eb7Smrg      ;;
916248c85eb7Smrg
916348c85eb7Smrg    dgux*)
916448c85eb7Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
916548c85eb7Smrg      hardcode_libdir_flag_spec='-L$libdir'
916648c85eb7Smrg      hardcode_shlibpath_var=no
916748c85eb7Smrg      ;;
916848c85eb7Smrg
916948c85eb7Smrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
917048c85eb7Smrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
917148c85eb7Smrg    # does not break anything, and helps significantly (at the cost of a little
917248c85eb7Smrg    # extra space).
917348c85eb7Smrg    freebsd2.2*)
917448c85eb7Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
917548c85eb7Smrg      hardcode_libdir_flag_spec='-R$libdir'
917648c85eb7Smrg      hardcode_direct=yes
917748c85eb7Smrg      hardcode_shlibpath_var=no
917848c85eb7Smrg      ;;
917948c85eb7Smrg
918048c85eb7Smrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
918148c85eb7Smrg    freebsd2.*)
918248c85eb7Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
918348c85eb7Smrg      hardcode_direct=yes
918448c85eb7Smrg      hardcode_minus_L=yes
918548c85eb7Smrg      hardcode_shlibpath_var=no
918648c85eb7Smrg      ;;
918748c85eb7Smrg
918848c85eb7Smrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
918948c85eb7Smrg    freebsd* | dragonfly*)
919048c85eb7Smrg      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
919148c85eb7Smrg      hardcode_libdir_flag_spec='-R$libdir'
919248c85eb7Smrg      hardcode_direct=yes
919348c85eb7Smrg      hardcode_shlibpath_var=no
919448c85eb7Smrg      ;;
919548c85eb7Smrg
919648c85eb7Smrg    hpux9*)
919748c85eb7Smrg      if test "$GCC" = yes; then
919848c85eb7Smrg	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
919948c85eb7Smrg      else
920048c85eb7Smrg	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'
920148c85eb7Smrg      fi
920248c85eb7Smrg      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
920348c85eb7Smrg      hardcode_libdir_separator=:
920448c85eb7Smrg      hardcode_direct=yes
920548c85eb7Smrg
920648c85eb7Smrg      # hardcode_minus_L: Not really in the search PATH,
920748c85eb7Smrg      # but as the default location of the library.
920848c85eb7Smrg      hardcode_minus_L=yes
920948c85eb7Smrg      export_dynamic_flag_spec='${wl}-E'
921048c85eb7Smrg      ;;
921148c85eb7Smrg
921248c85eb7Smrg    hpux10*)
921348c85eb7Smrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
921448c85eb7Smrg	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
921548c85eb7Smrg      else
921648c85eb7Smrg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
921748c85eb7Smrg      fi
921848c85eb7Smrg      if test "$with_gnu_ld" = no; then
921948c85eb7Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
922048c85eb7Smrg	hardcode_libdir_separator=:
922148c85eb7Smrg	hardcode_direct=yes
922248c85eb7Smrg	hardcode_direct_absolute=yes
922348c85eb7Smrg	export_dynamic_flag_spec='${wl}-E'
922448c85eb7Smrg	# hardcode_minus_L: Not really in the search PATH,
922548c85eb7Smrg	# but as the default location of the library.
922648c85eb7Smrg	hardcode_minus_L=yes
922748c85eb7Smrg      fi
922848c85eb7Smrg      ;;
922948c85eb7Smrg
923048c85eb7Smrg    hpux11*)
923148c85eb7Smrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
923248c85eb7Smrg	case $host_cpu in
923348c85eb7Smrg	hppa*64*)
923448c85eb7Smrg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
923548c85eb7Smrg	  ;;
923648c85eb7Smrg	ia64*)
923748c85eb7Smrg	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
923848c85eb7Smrg	  ;;
923948c85eb7Smrg	*)
924048c85eb7Smrg	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
924148c85eb7Smrg	  ;;
924248c85eb7Smrg	esac
924348c85eb7Smrg      else
924448c85eb7Smrg	case $host_cpu in
924548c85eb7Smrg	hppa*64*)
924648c85eb7Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
924748c85eb7Smrg	  ;;
924848c85eb7Smrg	ia64*)
924948c85eb7Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
925048c85eb7Smrg	  ;;
925148c85eb7Smrg	*)
925248c85eb7Smrg
925348c85eb7Smrg	  # Older versions of the 11.00 compiler do not understand -b yet
925448c85eb7Smrg	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
925548c85eb7Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
925648c85eb7Smrg$as_echo_n "checking if $CC understands -b... " >&6; }
925748c85eb7Smrgif ${lt_cv_prog_compiler__b+:} false; then :
925848c85eb7Smrg  $as_echo_n "(cached) " >&6
925948c85eb7Smrgelse
926048c85eb7Smrg  lt_cv_prog_compiler__b=no
926148c85eb7Smrg   save_LDFLAGS="$LDFLAGS"
926248c85eb7Smrg   LDFLAGS="$LDFLAGS -b"
926348c85eb7Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
926448c85eb7Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
926548c85eb7Smrg     # The linker can only warn and ignore the option if not recognized
926648c85eb7Smrg     # So say no if there are warnings
926748c85eb7Smrg     if test -s conftest.err; then
926848c85eb7Smrg       # Append any errors to the config.log.
926948c85eb7Smrg       cat conftest.err 1>&5
927048c85eb7Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
927148c85eb7Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
927248c85eb7Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
927348c85eb7Smrg         lt_cv_prog_compiler__b=yes
927448c85eb7Smrg       fi
927548c85eb7Smrg     else
927648c85eb7Smrg       lt_cv_prog_compiler__b=yes
927748c85eb7Smrg     fi
927848c85eb7Smrg   fi
927948c85eb7Smrg   $RM -r conftest*
928048c85eb7Smrg   LDFLAGS="$save_LDFLAGS"
928148c85eb7Smrg
928248c85eb7Smrgfi
928348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
928448c85eb7Smrg$as_echo "$lt_cv_prog_compiler__b" >&6; }
928548c85eb7Smrg
928648c85eb7Smrgif test x"$lt_cv_prog_compiler__b" = xyes; then
928748c85eb7Smrg    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
928848c85eb7Smrgelse
928948c85eb7Smrg    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
929048c85eb7Smrgfi
929148c85eb7Smrg
929248c85eb7Smrg	  ;;
929348c85eb7Smrg	esac
929448c85eb7Smrg      fi
929548c85eb7Smrg      if test "$with_gnu_ld" = no; then
929648c85eb7Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
929748c85eb7Smrg	hardcode_libdir_separator=:
929848c85eb7Smrg
929948c85eb7Smrg	case $host_cpu in
930048c85eb7Smrg	hppa*64*|ia64*)
930148c85eb7Smrg	  hardcode_direct=no
930248c85eb7Smrg	  hardcode_shlibpath_var=no
930348c85eb7Smrg	  ;;
930448c85eb7Smrg	*)
930548c85eb7Smrg	  hardcode_direct=yes
930648c85eb7Smrg	  hardcode_direct_absolute=yes
930748c85eb7Smrg	  export_dynamic_flag_spec='${wl}-E'
930848c85eb7Smrg
930948c85eb7Smrg	  # hardcode_minus_L: Not really in the search PATH,
931048c85eb7Smrg	  # but as the default location of the library.
931148c85eb7Smrg	  hardcode_minus_L=yes
931248c85eb7Smrg	  ;;
931348c85eb7Smrg	esac
931448c85eb7Smrg      fi
931548c85eb7Smrg      ;;
931648c85eb7Smrg
931748c85eb7Smrg    irix5* | irix6* | nonstopux*)
931848c85eb7Smrg      if test "$GCC" = yes; then
931948c85eb7Smrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
932048c85eb7Smrg	# Try to use the -exported_symbol ld option, if it does not
932148c85eb7Smrg	# work, assume that -exports_file does not work either and
932248c85eb7Smrg	# implicitly export all symbols.
932348c85eb7Smrg	# This should be the same for all languages, so no per-tag cache variable.
932448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
932548c85eb7Smrg$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
932648c85eb7Smrgif ${lt_cv_irix_exported_symbol+:} false; then :
932748c85eb7Smrg  $as_echo_n "(cached) " >&6
932848c85eb7Smrgelse
932948c85eb7Smrg  save_LDFLAGS="$LDFLAGS"
933048c85eb7Smrg	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
933148c85eb7Smrg	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
933248c85eb7Smrg/* end confdefs.h.  */
933348c85eb7Smrgint foo (void) { return 0; }
933448c85eb7Smrg_ACEOF
933548c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
933648c85eb7Smrg  lt_cv_irix_exported_symbol=yes
933748c85eb7Smrgelse
933848c85eb7Smrg  lt_cv_irix_exported_symbol=no
933948c85eb7Smrgfi
934048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
934148c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
934248c85eb7Smrg           LDFLAGS="$save_LDFLAGS"
934348c85eb7Smrgfi
934448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
934548c85eb7Smrg$as_echo "$lt_cv_irix_exported_symbol" >&6; }
934648c85eb7Smrg	if test "$lt_cv_irix_exported_symbol" = yes; then
934748c85eb7Smrg          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
934848c85eb7Smrg	fi
934948c85eb7Smrg      else
935048c85eb7Smrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
935148c85eb7Smrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
935248c85eb7Smrg      fi
935348c85eb7Smrg      archive_cmds_need_lc='no'
935448c85eb7Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
935548c85eb7Smrg      hardcode_libdir_separator=:
935648c85eb7Smrg      inherit_rpath=yes
935748c85eb7Smrg      link_all_deplibs=yes
935848c85eb7Smrg      ;;
935948c85eb7Smrg
936048c85eb7Smrg    netbsd*)
936148c85eb7Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
936248c85eb7Smrg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
936348c85eb7Smrg      else
936448c85eb7Smrg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
936548c85eb7Smrg      fi
936648c85eb7Smrg      hardcode_libdir_flag_spec='-R$libdir'
936748c85eb7Smrg      hardcode_direct=yes
936848c85eb7Smrg      hardcode_shlibpath_var=no
936948c85eb7Smrg      ;;
937048c85eb7Smrg
937148c85eb7Smrg    newsos6)
937248c85eb7Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
937348c85eb7Smrg      hardcode_direct=yes
937448c85eb7Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
937548c85eb7Smrg      hardcode_libdir_separator=:
937648c85eb7Smrg      hardcode_shlibpath_var=no
937748c85eb7Smrg      ;;
937848c85eb7Smrg
937948c85eb7Smrg    *nto* | *qnx*)
938048c85eb7Smrg      ;;
938148c85eb7Smrg
938248c85eb7Smrg    openbsd*)
938348c85eb7Smrg      if test -f /usr/libexec/ld.so; then
938448c85eb7Smrg	hardcode_direct=yes
938548c85eb7Smrg	hardcode_shlibpath_var=no
938648c85eb7Smrg	hardcode_direct_absolute=yes
938748c85eb7Smrg	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
938848c85eb7Smrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
938948c85eb7Smrg	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
939048c85eb7Smrg	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
939148c85eb7Smrg	  export_dynamic_flag_spec='${wl}-E'
939248c85eb7Smrg	else
939348c85eb7Smrg	  case $host_os in
939448c85eb7Smrg	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
939548c85eb7Smrg	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
939648c85eb7Smrg	     hardcode_libdir_flag_spec='-R$libdir'
939748c85eb7Smrg	     ;;
939848c85eb7Smrg	   *)
939948c85eb7Smrg	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
940048c85eb7Smrg	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
940148c85eb7Smrg	     ;;
940248c85eb7Smrg	  esac
940348c85eb7Smrg	fi
940448c85eb7Smrg      else
940548c85eb7Smrg	ld_shlibs=no
940648c85eb7Smrg      fi
940748c85eb7Smrg      ;;
940848c85eb7Smrg
940948c85eb7Smrg    os2*)
941048c85eb7Smrg      hardcode_libdir_flag_spec='-L$libdir'
941148c85eb7Smrg      hardcode_minus_L=yes
941248c85eb7Smrg      allow_undefined_flag=unsupported
941348c85eb7Smrg      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'
941448c85eb7Smrg      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
941548c85eb7Smrg      ;;
941648c85eb7Smrg
941748c85eb7Smrg    osf3*)
941848c85eb7Smrg      if test "$GCC" = yes; then
941948c85eb7Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
942048c85eb7Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
942148c85eb7Smrg      else
942248c85eb7Smrg	allow_undefined_flag=' -expect_unresolved \*'
942348c85eb7Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
942448c85eb7Smrg      fi
942548c85eb7Smrg      archive_cmds_need_lc='no'
942648c85eb7Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
942748c85eb7Smrg      hardcode_libdir_separator=:
942848c85eb7Smrg      ;;
942948c85eb7Smrg
943048c85eb7Smrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
943148c85eb7Smrg      if test "$GCC" = yes; then
943248c85eb7Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
943348c85eb7Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
943448c85eb7Smrg	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
943548c85eb7Smrg      else
943648c85eb7Smrg	allow_undefined_flag=' -expect_unresolved \*'
943748c85eb7Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
943848c85eb7Smrg	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~
943948c85eb7Smrg	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
944048c85eb7Smrg
944148c85eb7Smrg	# Both c and cxx compiler support -rpath directly
944248c85eb7Smrg	hardcode_libdir_flag_spec='-rpath $libdir'
944348c85eb7Smrg      fi
944448c85eb7Smrg      archive_cmds_need_lc='no'
944548c85eb7Smrg      hardcode_libdir_separator=:
944648c85eb7Smrg      ;;
944748c85eb7Smrg
944848c85eb7Smrg    solaris*)
944948c85eb7Smrg      no_undefined_flag=' -z defs'
945048c85eb7Smrg      if test "$GCC" = yes; then
945148c85eb7Smrg	wlarc='${wl}'
945248c85eb7Smrg	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
945348c85eb7Smrg	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
945448c85eb7Smrg	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
945548c85eb7Smrg      else
945648c85eb7Smrg	case `$CC -V 2>&1` in
945748c85eb7Smrg	*"Compilers 5.0"*)
945848c85eb7Smrg	  wlarc=''
945948c85eb7Smrg	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
946048c85eb7Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
946148c85eb7Smrg	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
946248c85eb7Smrg	  ;;
946348c85eb7Smrg	*)
946448c85eb7Smrg	  wlarc='${wl}'
946548c85eb7Smrg	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
946648c85eb7Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
946748c85eb7Smrg	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
946848c85eb7Smrg	  ;;
946948c85eb7Smrg	esac
947048c85eb7Smrg      fi
947148c85eb7Smrg      hardcode_libdir_flag_spec='-R$libdir'
947248c85eb7Smrg      hardcode_shlibpath_var=no
947348c85eb7Smrg      case $host_os in
947448c85eb7Smrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
947548c85eb7Smrg      *)
947648c85eb7Smrg	# The compiler driver will combine and reorder linker options,
947748c85eb7Smrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
947848c85eb7Smrg	# but is careful enough not to reorder.
947948c85eb7Smrg	# Supported since Solaris 2.6 (maybe 2.5.1?)
948048c85eb7Smrg	if test "$GCC" = yes; then
948148c85eb7Smrg	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
948248c85eb7Smrg	else
948348c85eb7Smrg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
948448c85eb7Smrg	fi
948548c85eb7Smrg	;;
948648c85eb7Smrg      esac
948748c85eb7Smrg      link_all_deplibs=yes
948848c85eb7Smrg      ;;
948948c85eb7Smrg
949048c85eb7Smrg    sunos4*)
949148c85eb7Smrg      if test "x$host_vendor" = xsequent; then
949248c85eb7Smrg	# Use $CC to link under sequent, because it throws in some extra .o
949348c85eb7Smrg	# files that make .init and .fini sections work.
949448c85eb7Smrg	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
949548c85eb7Smrg      else
949648c85eb7Smrg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
949748c85eb7Smrg      fi
949848c85eb7Smrg      hardcode_libdir_flag_spec='-L$libdir'
949948c85eb7Smrg      hardcode_direct=yes
950048c85eb7Smrg      hardcode_minus_L=yes
950148c85eb7Smrg      hardcode_shlibpath_var=no
950248c85eb7Smrg      ;;
950348c85eb7Smrg
950448c85eb7Smrg    sysv4)
950548c85eb7Smrg      case $host_vendor in
950648c85eb7Smrg	sni)
950748c85eb7Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
950848c85eb7Smrg	  hardcode_direct=yes # is this really true???
950948c85eb7Smrg	;;
951048c85eb7Smrg	siemens)
951148c85eb7Smrg	  ## LD is ld it makes a PLAMLIB
951248c85eb7Smrg	  ## CC just makes a GrossModule.
951348c85eb7Smrg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
951448c85eb7Smrg	  reload_cmds='$CC -r -o $output$reload_objs'
951548c85eb7Smrg	  hardcode_direct=no
951648c85eb7Smrg        ;;
951748c85eb7Smrg	motorola)
951848c85eb7Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
951948c85eb7Smrg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
952048c85eb7Smrg	;;
952148c85eb7Smrg      esac
952248c85eb7Smrg      runpath_var='LD_RUN_PATH'
952348c85eb7Smrg      hardcode_shlibpath_var=no
952448c85eb7Smrg      ;;
952548c85eb7Smrg
952648c85eb7Smrg    sysv4.3*)
952748c85eb7Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
952848c85eb7Smrg      hardcode_shlibpath_var=no
952948c85eb7Smrg      export_dynamic_flag_spec='-Bexport'
953048c85eb7Smrg      ;;
953148c85eb7Smrg
953248c85eb7Smrg    sysv4*MP*)
953348c85eb7Smrg      if test -d /usr/nec; then
953448c85eb7Smrg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
953548c85eb7Smrg	hardcode_shlibpath_var=no
953648c85eb7Smrg	runpath_var=LD_RUN_PATH
953748c85eb7Smrg	hardcode_runpath_var=yes
953848c85eb7Smrg	ld_shlibs=yes
953948c85eb7Smrg      fi
954048c85eb7Smrg      ;;
954148c85eb7Smrg
954248c85eb7Smrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
954348c85eb7Smrg      no_undefined_flag='${wl}-z,text'
954448c85eb7Smrg      archive_cmds_need_lc=no
954548c85eb7Smrg      hardcode_shlibpath_var=no
954648c85eb7Smrg      runpath_var='LD_RUN_PATH'
954748c85eb7Smrg
954848c85eb7Smrg      if test "$GCC" = yes; then
954948c85eb7Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
955048c85eb7Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
955148c85eb7Smrg      else
955248c85eb7Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
955348c85eb7Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
955448c85eb7Smrg      fi
955548c85eb7Smrg      ;;
955648c85eb7Smrg
955748c85eb7Smrg    sysv5* | sco3.2v5* | sco5v6*)
955848c85eb7Smrg      # Note: We can NOT use -z defs as we might desire, because we do not
955948c85eb7Smrg      # link with -lc, and that would cause any symbols used from libc to
956048c85eb7Smrg      # always be unresolved, which means just about no library would
956148c85eb7Smrg      # ever link correctly.  If we're not using GNU ld we use -z text
956248c85eb7Smrg      # though, which does catch some bad symbols but isn't as heavy-handed
956348c85eb7Smrg      # as -z defs.
956448c85eb7Smrg      no_undefined_flag='${wl}-z,text'
956548c85eb7Smrg      allow_undefined_flag='${wl}-z,nodefs'
956648c85eb7Smrg      archive_cmds_need_lc=no
956748c85eb7Smrg      hardcode_shlibpath_var=no
956848c85eb7Smrg      hardcode_libdir_flag_spec='${wl}-R,$libdir'
956948c85eb7Smrg      hardcode_libdir_separator=':'
957048c85eb7Smrg      link_all_deplibs=yes
957148c85eb7Smrg      export_dynamic_flag_spec='${wl}-Bexport'
957248c85eb7Smrg      runpath_var='LD_RUN_PATH'
957348c85eb7Smrg
957448c85eb7Smrg      if test "$GCC" = yes; then
957548c85eb7Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
957648c85eb7Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
957748c85eb7Smrg      else
957848c85eb7Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
957948c85eb7Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
958048c85eb7Smrg      fi
958148c85eb7Smrg      ;;
958248c85eb7Smrg
958348c85eb7Smrg    uts4*)
958448c85eb7Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
958548c85eb7Smrg      hardcode_libdir_flag_spec='-L$libdir'
958648c85eb7Smrg      hardcode_shlibpath_var=no
958748c85eb7Smrg      ;;
958848c85eb7Smrg
958948c85eb7Smrg    *)
959048c85eb7Smrg      ld_shlibs=no
959148c85eb7Smrg      ;;
959248c85eb7Smrg    esac
959348c85eb7Smrg
959448c85eb7Smrg    if test x$host_vendor = xsni; then
959548c85eb7Smrg      case $host in
959648c85eb7Smrg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
959748c85eb7Smrg	export_dynamic_flag_spec='${wl}-Blargedynsym'
959848c85eb7Smrg	;;
959948c85eb7Smrg      esac
960048c85eb7Smrg    fi
960148c85eb7Smrg  fi
960248c85eb7Smrg
960348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
960448c85eb7Smrg$as_echo "$ld_shlibs" >&6; }
960548c85eb7Smrgtest "$ld_shlibs" = no && can_build_shared=no
960648c85eb7Smrg
960748c85eb7Smrgwith_gnu_ld=$with_gnu_ld
960848c85eb7Smrg
960948c85eb7Smrg
961048c85eb7Smrg
961148c85eb7Smrg
961248c85eb7Smrg
961348c85eb7Smrg
961448c85eb7Smrg
961548c85eb7Smrg
961648c85eb7Smrg
961748c85eb7Smrg
961848c85eb7Smrg
961948c85eb7Smrg
962048c85eb7Smrg
962148c85eb7Smrg
962248c85eb7Smrg
962348c85eb7Smrg#
962448c85eb7Smrg# Do we need to explicitly link libc?
962548c85eb7Smrg#
962648c85eb7Smrgcase "x$archive_cmds_need_lc" in
962748c85eb7Smrgx|xyes)
962848c85eb7Smrg  # Assume -lc should be added
962948c85eb7Smrg  archive_cmds_need_lc=yes
963048c85eb7Smrg
963148c85eb7Smrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
963248c85eb7Smrg    case $archive_cmds in
963348c85eb7Smrg    *'~'*)
963448c85eb7Smrg      # FIXME: we may have to deal with multi-command sequences.
963548c85eb7Smrg      ;;
963648c85eb7Smrg    '$CC '*)
963748c85eb7Smrg      # Test whether the compiler implicitly links with -lc since on some
963848c85eb7Smrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
963948c85eb7Smrg      # to ld, don't add -lc before -lgcc.
964048c85eb7Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
964148c85eb7Smrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
964248c85eb7Smrgif ${lt_cv_archive_cmds_need_lc+:} false; then :
964348c85eb7Smrg  $as_echo_n "(cached) " >&6
964448c85eb7Smrgelse
964548c85eb7Smrg  $RM conftest*
964648c85eb7Smrg	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
964748c85eb7Smrg
964848c85eb7Smrg	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
964948c85eb7Smrg  (eval $ac_compile) 2>&5
965048c85eb7Smrg  ac_status=$?
965148c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
965248c85eb7Smrg  test $ac_status = 0; } 2>conftest.err; then
965348c85eb7Smrg	  soname=conftest
965448c85eb7Smrg	  lib=conftest
965548c85eb7Smrg	  libobjs=conftest.$ac_objext
965648c85eb7Smrg	  deplibs=
965748c85eb7Smrg	  wl=$lt_prog_compiler_wl
965848c85eb7Smrg	  pic_flag=$lt_prog_compiler_pic
965948c85eb7Smrg	  compiler_flags=-v
966048c85eb7Smrg	  linker_flags=-v
966148c85eb7Smrg	  verstring=
966248c85eb7Smrg	  output_objdir=.
966348c85eb7Smrg	  libname=conftest
966448c85eb7Smrg	  lt_save_allow_undefined_flag=$allow_undefined_flag
966548c85eb7Smrg	  allow_undefined_flag=
966648c85eb7Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
966748c85eb7Smrg  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
966848c85eb7Smrg  ac_status=$?
966948c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
967048c85eb7Smrg  test $ac_status = 0; }
967148c85eb7Smrg	  then
967248c85eb7Smrg	    lt_cv_archive_cmds_need_lc=no
967348c85eb7Smrg	  else
967448c85eb7Smrg	    lt_cv_archive_cmds_need_lc=yes
967548c85eb7Smrg	  fi
967648c85eb7Smrg	  allow_undefined_flag=$lt_save_allow_undefined_flag
967748c85eb7Smrg	else
967848c85eb7Smrg	  cat conftest.err 1>&5
967948c85eb7Smrg	fi
968048c85eb7Smrg	$RM conftest*
968148c85eb7Smrg
968248c85eb7Smrgfi
968348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
968448c85eb7Smrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
968548c85eb7Smrg      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
968648c85eb7Smrg      ;;
968748c85eb7Smrg    esac
968848c85eb7Smrg  fi
968948c85eb7Smrg  ;;
969048c85eb7Smrgesac
969148c85eb7Smrg
969248c85eb7Smrg
969348c85eb7Smrg
969448c85eb7Smrg
969548c85eb7Smrg
969648c85eb7Smrg
969748c85eb7Smrg
969848c85eb7Smrg
969948c85eb7Smrg
970048c85eb7Smrg
970148c85eb7Smrg
970248c85eb7Smrg
970348c85eb7Smrg
970448c85eb7Smrg
970548c85eb7Smrg
970648c85eb7Smrg
970748c85eb7Smrg
970848c85eb7Smrg
970948c85eb7Smrg
971048c85eb7Smrg
971148c85eb7Smrg
971248c85eb7Smrg
971348c85eb7Smrg
971448c85eb7Smrg
971548c85eb7Smrg
971648c85eb7Smrg
971748c85eb7Smrg
971848c85eb7Smrg
971948c85eb7Smrg
972048c85eb7Smrg
972148c85eb7Smrg
972248c85eb7Smrg
972348c85eb7Smrg
972448c85eb7Smrg
972548c85eb7Smrg
972648c85eb7Smrg
972748c85eb7Smrg
972848c85eb7Smrg
972948c85eb7Smrg
973048c85eb7Smrg
973148c85eb7Smrg
973248c85eb7Smrg
973348c85eb7Smrg
973448c85eb7Smrg
973548c85eb7Smrg
973648c85eb7Smrg
973748c85eb7Smrg
973848c85eb7Smrg
973948c85eb7Smrg
974048c85eb7Smrg
974148c85eb7Smrg
974248c85eb7Smrg
974348c85eb7Smrg
974448c85eb7Smrg
974548c85eb7Smrg
974648c85eb7Smrg
974748c85eb7Smrg
974848c85eb7Smrg
974948c85eb7Smrg
975048c85eb7Smrg
975148c85eb7Smrg
975248c85eb7Smrg
975348c85eb7Smrg
975448c85eb7Smrg
975548c85eb7Smrg
975648c85eb7Smrg
975748c85eb7Smrg
975848c85eb7Smrg
975948c85eb7Smrg
976048c85eb7Smrg
976148c85eb7Smrg
976248c85eb7Smrg
976348c85eb7Smrg
976448c85eb7Smrg
976548c85eb7Smrg
976648c85eb7Smrg
976748c85eb7Smrg
976848c85eb7Smrg
976948c85eb7Smrg
977048c85eb7Smrg
977148c85eb7Smrg
977248c85eb7Smrg
977348c85eb7Smrg
977448c85eb7Smrg
977548c85eb7Smrg
977648c85eb7Smrg
977748c85eb7Smrg
977848c85eb7Smrg
977948c85eb7Smrg
978048c85eb7Smrg
978148c85eb7Smrg
978248c85eb7Smrg
978348c85eb7Smrg
978448c85eb7Smrg
978548c85eb7Smrg
978648c85eb7Smrg
978748c85eb7Smrg
978848c85eb7Smrg
978948c85eb7Smrg
979048c85eb7Smrg
979148c85eb7Smrg
979248c85eb7Smrg
979348c85eb7Smrg
979448c85eb7Smrg
979548c85eb7Smrg
979648c85eb7Smrg
979748c85eb7Smrg
979848c85eb7Smrg
979948c85eb7Smrg
980048c85eb7Smrg
980148c85eb7Smrg
980248c85eb7Smrg
980348c85eb7Smrg
980448c85eb7Smrg
980548c85eb7Smrg
980648c85eb7Smrg
980748c85eb7Smrg
980848c85eb7Smrg
980948c85eb7Smrg
981048c85eb7Smrg
981148c85eb7Smrg
981248c85eb7Smrg
981348c85eb7Smrg
981448c85eb7Smrg
981548c85eb7Smrg
981648c85eb7Smrg
981748c85eb7Smrg
981848c85eb7Smrg
981948c85eb7Smrg
982048c85eb7Smrg
982148c85eb7Smrg
982248c85eb7Smrg
982348c85eb7Smrg
982448c85eb7Smrg
982548c85eb7Smrg
982648c85eb7Smrg
982748c85eb7Smrg
982848c85eb7Smrg
982948c85eb7Smrg
983048c85eb7Smrg
983148c85eb7Smrg
983248c85eb7Smrg
983348c85eb7Smrg
983448c85eb7Smrg
983548c85eb7Smrg
983648c85eb7Smrg
983748c85eb7Smrg
983848c85eb7Smrg
983948c85eb7Smrg
984048c85eb7Smrg
984148c85eb7Smrg
984248c85eb7Smrg
984348c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
984448c85eb7Smrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
984548c85eb7Smrg
984648c85eb7Smrgif test "$GCC" = yes; then
984748c85eb7Smrg  case $host_os in
984848c85eb7Smrg    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
984948c85eb7Smrg    *) lt_awk_arg="/^libraries:/" ;;
985048c85eb7Smrg  esac
985148c85eb7Smrg  case $host_os in
985248c85eb7Smrg    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
985348c85eb7Smrg    *) lt_sed_strip_eq="s,=/,/,g" ;;
985448c85eb7Smrg  esac
985548c85eb7Smrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
985648c85eb7Smrg  case $lt_search_path_spec in
985748c85eb7Smrg  *\;*)
985848c85eb7Smrg    # if the path contains ";" then we assume it to be the separator
985948c85eb7Smrg    # otherwise default to the standard path separator (i.e. ":") - it is
986048c85eb7Smrg    # assumed that no part of a normal pathname contains ";" but that should
986148c85eb7Smrg    # okay in the real world where ";" in dirpaths is itself problematic.
986248c85eb7Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
986348c85eb7Smrg    ;;
986448c85eb7Smrg  *)
986548c85eb7Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
986648c85eb7Smrg    ;;
986748c85eb7Smrg  esac
986848c85eb7Smrg  # Ok, now we have the path, separated by spaces, we can step through it
986948c85eb7Smrg  # and add multilib dir if necessary.
987048c85eb7Smrg  lt_tmp_lt_search_path_spec=
987148c85eb7Smrg  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
987248c85eb7Smrg  for lt_sys_path in $lt_search_path_spec; do
987348c85eb7Smrg    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
987448c85eb7Smrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
987548c85eb7Smrg    else
987648c85eb7Smrg      test -d "$lt_sys_path" && \
987748c85eb7Smrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
987848c85eb7Smrg    fi
987948c85eb7Smrg  done
988048c85eb7Smrg  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
988148c85eb7SmrgBEGIN {RS=" "; FS="/|\n";} {
988248c85eb7Smrg  lt_foo="";
988348c85eb7Smrg  lt_count=0;
988448c85eb7Smrg  for (lt_i = NF; lt_i > 0; lt_i--) {
988548c85eb7Smrg    if ($lt_i != "" && $lt_i != ".") {
988648c85eb7Smrg      if ($lt_i == "..") {
988748c85eb7Smrg        lt_count++;
988848c85eb7Smrg      } else {
988948c85eb7Smrg        if (lt_count == 0) {
989048c85eb7Smrg          lt_foo="/" $lt_i lt_foo;
989148c85eb7Smrg        } else {
989248c85eb7Smrg          lt_count--;
989348c85eb7Smrg        }
989448c85eb7Smrg      }
989548c85eb7Smrg    }
989648c85eb7Smrg  }
989748c85eb7Smrg  if (lt_foo != "") { lt_freq[lt_foo]++; }
989848c85eb7Smrg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
989948c85eb7Smrg}'`
990048c85eb7Smrg  # AWK program above erroneously prepends '/' to C:/dos/paths
990148c85eb7Smrg  # for these hosts.
990248c85eb7Smrg  case $host_os in
990348c85eb7Smrg    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
990448c85eb7Smrg      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
990548c85eb7Smrg  esac
990648c85eb7Smrg  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
990748c85eb7Smrgelse
990848c85eb7Smrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
990948c85eb7Smrgfi
991048c85eb7Smrglibrary_names_spec=
991148c85eb7Smrglibname_spec='lib$name'
991248c85eb7Smrgsoname_spec=
991348c85eb7Smrgshrext_cmds=".so"
991448c85eb7Smrgpostinstall_cmds=
991548c85eb7Smrgpostuninstall_cmds=
991648c85eb7Smrgfinish_cmds=
991748c85eb7Smrgfinish_eval=
991848c85eb7Smrgshlibpath_var=
991948c85eb7Smrgshlibpath_overrides_runpath=unknown
992048c85eb7Smrgversion_type=none
992148c85eb7Smrgdynamic_linker="$host_os ld.so"
992248c85eb7Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
992348c85eb7Smrgneed_lib_prefix=unknown
992448c85eb7Smrghardcode_into_libs=no
992548c85eb7Smrg
992648c85eb7Smrg# when you set need_version to no, make sure it does not cause -set_version
992748c85eb7Smrg# flags to be left without arguments
992848c85eb7Smrgneed_version=unknown
992948c85eb7Smrg
993048c85eb7Smrgcase $host_os in
993148c85eb7Smrgaix3*)
993248c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
993348c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
993448c85eb7Smrg  shlibpath_var=LIBPATH
993548c85eb7Smrg
993648c85eb7Smrg  # AIX 3 has no versioning support, so we append a major version to the name.
993748c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
993848c85eb7Smrg  ;;
993948c85eb7Smrg
994048c85eb7Smrgaix[4-9]*)
994148c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
994248c85eb7Smrg  need_lib_prefix=no
994348c85eb7Smrg  need_version=no
994448c85eb7Smrg  hardcode_into_libs=yes
994548c85eb7Smrg  if test "$host_cpu" = ia64; then
994648c85eb7Smrg    # AIX 5 supports IA64
994748c85eb7Smrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
994848c85eb7Smrg    shlibpath_var=LD_LIBRARY_PATH
994948c85eb7Smrg  else
995048c85eb7Smrg    # With GCC up to 2.95.x, collect2 would create an import file
995148c85eb7Smrg    # for dependence libraries.  The import file would start with
995248c85eb7Smrg    # the line `#! .'.  This would cause the generated library to
995348c85eb7Smrg    # depend on `.', always an invalid library.  This was fixed in
995448c85eb7Smrg    # development snapshots of GCC prior to 3.0.
995548c85eb7Smrg    case $host_os in
995648c85eb7Smrg      aix4 | aix4.[01] | aix4.[01].*)
995748c85eb7Smrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
995848c85eb7Smrg	   echo ' yes '
995948c85eb7Smrg	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
996048c85eb7Smrg	:
996148c85eb7Smrg      else
996248c85eb7Smrg	can_build_shared=no
996348c85eb7Smrg      fi
996448c85eb7Smrg      ;;
996548c85eb7Smrg    esac
996648c85eb7Smrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
996748c85eb7Smrg    # soname into executable. Probably we can add versioning support to
996848c85eb7Smrg    # collect2, so additional links can be useful in future.
996948c85eb7Smrg    if test "$aix_use_runtimelinking" = yes; then
997048c85eb7Smrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
997148c85eb7Smrg      # instead of lib<name>.a to let people know that these are not
997248c85eb7Smrg      # typical AIX shared libraries.
997348c85eb7Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
997448c85eb7Smrg    else
997548c85eb7Smrg      # We preserve .a as extension for shared libraries through AIX4.2
997648c85eb7Smrg      # and later when we are not doing run time linking.
997748c85eb7Smrg      library_names_spec='${libname}${release}.a $libname.a'
997848c85eb7Smrg      soname_spec='${libname}${release}${shared_ext}$major'
997948c85eb7Smrg    fi
998048c85eb7Smrg    shlibpath_var=LIBPATH
998148c85eb7Smrg  fi
998248c85eb7Smrg  ;;
998348c85eb7Smrg
998448c85eb7Smrgamigaos*)
998548c85eb7Smrg  case $host_cpu in
998648c85eb7Smrg  powerpc)
998748c85eb7Smrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
998848c85eb7Smrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
998948c85eb7Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
999048c85eb7Smrg    ;;
999148c85eb7Smrg  m68k)
999248c85eb7Smrg    library_names_spec='$libname.ixlibrary $libname.a'
999348c85eb7Smrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
999448c85eb7Smrg    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
999548c85eb7Smrg    ;;
999648c85eb7Smrg  esac
999748c85eb7Smrg  ;;
999848c85eb7Smrg
999948c85eb7Smrgbeos*)
1000048c85eb7Smrg  library_names_spec='${libname}${shared_ext}'
1000148c85eb7Smrg  dynamic_linker="$host_os ld.so"
1000248c85eb7Smrg  shlibpath_var=LIBRARY_PATH
1000348c85eb7Smrg  ;;
1000448c85eb7Smrg
1000548c85eb7Smrgbsdi[45]*)
1000648c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
1000748c85eb7Smrg  need_version=no
1000848c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1000948c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1001048c85eb7Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1001148c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1001248c85eb7Smrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1001348c85eb7Smrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1001448c85eb7Smrg  # the default ld.so.conf also contains /usr/contrib/lib and
1001548c85eb7Smrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1001648c85eb7Smrg  # libtool to hard-code these into programs
1001748c85eb7Smrg  ;;
1001848c85eb7Smrg
1001948c85eb7Smrgcygwin* | mingw* | pw32* | cegcc*)
1002048c85eb7Smrg  version_type=windows
1002148c85eb7Smrg  shrext_cmds=".dll"
1002248c85eb7Smrg  need_version=no
1002348c85eb7Smrg  need_lib_prefix=no
1002448c85eb7Smrg
1002548c85eb7Smrg  case $GCC,$cc_basename in
1002648c85eb7Smrg  yes,*)
1002748c85eb7Smrg    # gcc
1002848c85eb7Smrg    library_names_spec='$libname.dll.a'
1002948c85eb7Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
1003048c85eb7Smrg    postinstall_cmds='base_file=`basename \${file}`~
1003148c85eb7Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1003248c85eb7Smrg      dldir=$destdir/`dirname \$dlpath`~
1003348c85eb7Smrg      test -d \$dldir || mkdir -p \$dldir~
1003448c85eb7Smrg      $install_prog $dir/$dlname \$dldir/$dlname~
1003548c85eb7Smrg      chmod a+x \$dldir/$dlname~
1003648c85eb7Smrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
1003748c85eb7Smrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
1003848c85eb7Smrg      fi'
1003948c85eb7Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1004048c85eb7Smrg      dlpath=$dir/\$dldll~
1004148c85eb7Smrg       $RM \$dlpath'
1004248c85eb7Smrg    shlibpath_overrides_runpath=yes
1004348c85eb7Smrg
1004448c85eb7Smrg    case $host_os in
1004548c85eb7Smrg    cygwin*)
1004648c85eb7Smrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1004748c85eb7Smrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1004848c85eb7Smrg
1004948c85eb7Smrg      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1005048c85eb7Smrg      ;;
1005148c85eb7Smrg    mingw* | cegcc*)
1005248c85eb7Smrg      # MinGW DLLs use traditional 'lib' prefix
1005348c85eb7Smrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1005448c85eb7Smrg      ;;
1005548c85eb7Smrg    pw32*)
1005648c85eb7Smrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
1005748c85eb7Smrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1005848c85eb7Smrg      ;;
1005948c85eb7Smrg    esac
1006048c85eb7Smrg    dynamic_linker='Win32 ld.exe'
1006148c85eb7Smrg    ;;
1006248c85eb7Smrg
1006348c85eb7Smrg  *,cl*)
1006448c85eb7Smrg    # Native MSVC
1006548c85eb7Smrg    libname_spec='$name'
1006648c85eb7Smrg    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1006748c85eb7Smrg    library_names_spec='${libname}.dll.lib'
1006848c85eb7Smrg
1006948c85eb7Smrg    case $build_os in
1007048c85eb7Smrg    mingw*)
1007148c85eb7Smrg      sys_lib_search_path_spec=
1007248c85eb7Smrg      lt_save_ifs=$IFS
1007348c85eb7Smrg      IFS=';'
1007448c85eb7Smrg      for lt_path in $LIB
1007548c85eb7Smrg      do
1007648c85eb7Smrg        IFS=$lt_save_ifs
1007748c85eb7Smrg        # Let DOS variable expansion print the short 8.3 style file name.
1007848c85eb7Smrg        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
1007948c85eb7Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
1008048c85eb7Smrg      done
1008148c85eb7Smrg      IFS=$lt_save_ifs
1008248c85eb7Smrg      # Convert to MSYS style.
1008348c85eb7Smrg      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1008448c85eb7Smrg      ;;
1008548c85eb7Smrg    cygwin*)
1008648c85eb7Smrg      # Convert to unix form, then to dos form, then back to unix form
1008748c85eb7Smrg      # but this time dos style (no spaces!) so that the unix form looks
1008848c85eb7Smrg      # like /cygdrive/c/PROGRA~1:/cygdr...
1008948c85eb7Smrg      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
1009048c85eb7Smrg      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
1009148c85eb7Smrg      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1009248c85eb7Smrg      ;;
1009348c85eb7Smrg    *)
1009448c85eb7Smrg      sys_lib_search_path_spec="$LIB"
1009548c85eb7Smrg      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1009648c85eb7Smrg        # It is most probably a Windows format PATH.
1009748c85eb7Smrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1009848c85eb7Smrg      else
1009948c85eb7Smrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1010048c85eb7Smrg      fi
1010148c85eb7Smrg      # FIXME: find the short name or the path components, as spaces are
1010248c85eb7Smrg      # common. (e.g. "Program Files" -> "PROGRA~1")
1010348c85eb7Smrg      ;;
1010448c85eb7Smrg    esac
1010548c85eb7Smrg
1010648c85eb7Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
1010748c85eb7Smrg    postinstall_cmds='base_file=`basename \${file}`~
1010848c85eb7Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1010948c85eb7Smrg      dldir=$destdir/`dirname \$dlpath`~
1011048c85eb7Smrg      test -d \$dldir || mkdir -p \$dldir~
1011148c85eb7Smrg      $install_prog $dir/$dlname \$dldir/$dlname'
1011248c85eb7Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1011348c85eb7Smrg      dlpath=$dir/\$dldll~
1011448c85eb7Smrg       $RM \$dlpath'
1011548c85eb7Smrg    shlibpath_overrides_runpath=yes
1011648c85eb7Smrg    dynamic_linker='Win32 link.exe'
1011748c85eb7Smrg    ;;
1011848c85eb7Smrg
1011948c85eb7Smrg  *)
1012048c85eb7Smrg    # Assume MSVC wrapper
1012148c85eb7Smrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1012248c85eb7Smrg    dynamic_linker='Win32 ld.exe'
1012348c85eb7Smrg    ;;
1012448c85eb7Smrg  esac
1012548c85eb7Smrg  # FIXME: first we should search . and the directory the executable is in
1012648c85eb7Smrg  shlibpath_var=PATH
1012748c85eb7Smrg  ;;
1012848c85eb7Smrg
1012948c85eb7Smrgdarwin* | rhapsody*)
1013048c85eb7Smrg  dynamic_linker="$host_os dyld"
1013148c85eb7Smrg  version_type=darwin
1013248c85eb7Smrg  need_lib_prefix=no
1013348c85eb7Smrg  need_version=no
1013448c85eb7Smrg  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1013548c85eb7Smrg  soname_spec='${libname}${release}${major}$shared_ext'
1013648c85eb7Smrg  shlibpath_overrides_runpath=yes
1013748c85eb7Smrg  shlibpath_var=DYLD_LIBRARY_PATH
1013848c85eb7Smrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1013948c85eb7Smrg
1014048c85eb7Smrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
1014148c85eb7Smrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1014248c85eb7Smrg  ;;
1014348c85eb7Smrg
1014448c85eb7Smrgdgux*)
1014548c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
1014648c85eb7Smrg  need_lib_prefix=no
1014748c85eb7Smrg  need_version=no
1014848c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1014948c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1015048c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1015148c85eb7Smrg  ;;
1015248c85eb7Smrg
1015348c85eb7Smrgfreebsd* | dragonfly*)
1015448c85eb7Smrg  # DragonFly does not have aout.  When/if they implement a new
1015548c85eb7Smrg  # versioning mechanism, adjust this.
1015648c85eb7Smrg  if test -x /usr/bin/objformat; then
1015748c85eb7Smrg    objformat=`/usr/bin/objformat`
1015848c85eb7Smrg  else
1015948c85eb7Smrg    case $host_os in
1016048c85eb7Smrg    freebsd[23].*) objformat=aout ;;
1016148c85eb7Smrg    *) objformat=elf ;;
1016248c85eb7Smrg    esac
1016348c85eb7Smrg  fi
1016448c85eb7Smrg  version_type=freebsd-$objformat
1016548c85eb7Smrg  case $version_type in
1016648c85eb7Smrg    freebsd-elf*)
1016748c85eb7Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1016848c85eb7Smrg      need_version=no
1016948c85eb7Smrg      need_lib_prefix=no
1017048c85eb7Smrg      ;;
1017148c85eb7Smrg    freebsd-*)
1017248c85eb7Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1017348c85eb7Smrg      need_version=yes
1017448c85eb7Smrg      ;;
1017548c85eb7Smrg  esac
1017648c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1017748c85eb7Smrg  case $host_os in
1017848c85eb7Smrg  freebsd2.*)
1017948c85eb7Smrg    shlibpath_overrides_runpath=yes
1018048c85eb7Smrg    ;;
1018148c85eb7Smrg  freebsd3.[01]* | freebsdelf3.[01]*)
1018248c85eb7Smrg    shlibpath_overrides_runpath=yes
1018348c85eb7Smrg    hardcode_into_libs=yes
1018448c85eb7Smrg    ;;
1018548c85eb7Smrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
1018648c85eb7Smrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1018748c85eb7Smrg    shlibpath_overrides_runpath=no
1018848c85eb7Smrg    hardcode_into_libs=yes
1018948c85eb7Smrg    ;;
1019048c85eb7Smrg  *) # from 4.6 on, and DragonFly
1019148c85eb7Smrg    shlibpath_overrides_runpath=yes
1019248c85eb7Smrg    hardcode_into_libs=yes
1019348c85eb7Smrg    ;;
1019448c85eb7Smrg  esac
1019548c85eb7Smrg  ;;
1019648c85eb7Smrg
1019748c85eb7Smrggnu*)
1019848c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
1019948c85eb7Smrg  need_lib_prefix=no
1020048c85eb7Smrg  need_version=no
1020148c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1020248c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1020348c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1020448c85eb7Smrg  shlibpath_overrides_runpath=no
1020548c85eb7Smrg  hardcode_into_libs=yes
1020648c85eb7Smrg  ;;
1020748c85eb7Smrg
1020848c85eb7Smrghaiku*)
1020948c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
1021048c85eb7Smrg  need_lib_prefix=no
1021148c85eb7Smrg  need_version=no
1021248c85eb7Smrg  dynamic_linker="$host_os runtime_loader"
1021348c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1021448c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1021548c85eb7Smrg  shlibpath_var=LIBRARY_PATH
1021648c85eb7Smrg  shlibpath_overrides_runpath=yes
1021748c85eb7Smrg  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1021848c85eb7Smrg  hardcode_into_libs=yes
1021948c85eb7Smrg  ;;
1022048c85eb7Smrg
1022148c85eb7Smrghpux9* | hpux10* | hpux11*)
1022248c85eb7Smrg  # Give a soname corresponding to the major version so that dld.sl refuses to
1022348c85eb7Smrg  # link against other versions.
1022448c85eb7Smrg  version_type=sunos
1022548c85eb7Smrg  need_lib_prefix=no
1022648c85eb7Smrg  need_version=no
1022748c85eb7Smrg  case $host_cpu in
1022848c85eb7Smrg  ia64*)
1022948c85eb7Smrg    shrext_cmds='.so'
1023048c85eb7Smrg    hardcode_into_libs=yes
1023148c85eb7Smrg    dynamic_linker="$host_os dld.so"
1023248c85eb7Smrg    shlibpath_var=LD_LIBRARY_PATH
1023348c85eb7Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1023448c85eb7Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1023548c85eb7Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1023648c85eb7Smrg    if test "X$HPUX_IA64_MODE" = X32; then
1023748c85eb7Smrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1023848c85eb7Smrg    else
1023948c85eb7Smrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1024048c85eb7Smrg    fi
1024148c85eb7Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1024248c85eb7Smrg    ;;
1024348c85eb7Smrg  hppa*64*)
1024448c85eb7Smrg    shrext_cmds='.sl'
1024548c85eb7Smrg    hardcode_into_libs=yes
1024648c85eb7Smrg    dynamic_linker="$host_os dld.sl"
1024748c85eb7Smrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1024848c85eb7Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1024948c85eb7Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1025048c85eb7Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1025148c85eb7Smrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1025248c85eb7Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1025348c85eb7Smrg    ;;
1025448c85eb7Smrg  *)
1025548c85eb7Smrg    shrext_cmds='.sl'
1025648c85eb7Smrg    dynamic_linker="$host_os dld.sl"
1025748c85eb7Smrg    shlibpath_var=SHLIB_PATH
1025848c85eb7Smrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1025948c85eb7Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1026048c85eb7Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1026148c85eb7Smrg    ;;
1026248c85eb7Smrg  esac
1026348c85eb7Smrg  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1026448c85eb7Smrg  postinstall_cmds='chmod 555 $lib'
1026548c85eb7Smrg  # or fails outright, so override atomically:
1026648c85eb7Smrg  install_override_mode=555
1026748c85eb7Smrg  ;;
1026848c85eb7Smrg
1026948c85eb7Smrginterix[3-9]*)
1027048c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
1027148c85eb7Smrg  need_lib_prefix=no
1027248c85eb7Smrg  need_version=no
1027348c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1027448c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1027548c85eb7Smrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1027648c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1027748c85eb7Smrg  shlibpath_overrides_runpath=no
1027848c85eb7Smrg  hardcode_into_libs=yes
1027948c85eb7Smrg  ;;
1028048c85eb7Smrg
1028148c85eb7Smrgirix5* | irix6* | nonstopux*)
1028248c85eb7Smrg  case $host_os in
1028348c85eb7Smrg    nonstopux*) version_type=nonstopux ;;
1028448c85eb7Smrg    *)
1028548c85eb7Smrg	if test "$lt_cv_prog_gnu_ld" = yes; then
1028648c85eb7Smrg		version_type=linux # correct to gnu/linux during the next big refactor
1028748c85eb7Smrg	else
1028848c85eb7Smrg		version_type=irix
1028948c85eb7Smrg	fi ;;
1029048c85eb7Smrg  esac
1029148c85eb7Smrg  need_lib_prefix=no
1029248c85eb7Smrg  need_version=no
1029348c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1029448c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1029548c85eb7Smrg  case $host_os in
1029648c85eb7Smrg  irix5* | nonstopux*)
1029748c85eb7Smrg    libsuff= shlibsuff=
1029848c85eb7Smrg    ;;
1029948c85eb7Smrg  *)
1030048c85eb7Smrg    case $LD in # libtool.m4 will add one of these switches to LD
1030148c85eb7Smrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1030248c85eb7Smrg      libsuff= shlibsuff= libmagic=32-bit;;
1030348c85eb7Smrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1030448c85eb7Smrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
1030548c85eb7Smrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1030648c85eb7Smrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
1030748c85eb7Smrg    *) libsuff= shlibsuff= libmagic=never-match;;
1030848c85eb7Smrg    esac
1030948c85eb7Smrg    ;;
1031048c85eb7Smrg  esac
1031148c85eb7Smrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1031248c85eb7Smrg  shlibpath_overrides_runpath=no
1031348c85eb7Smrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1031448c85eb7Smrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1031548c85eb7Smrg  hardcode_into_libs=yes
1031648c85eb7Smrg  ;;
1031748c85eb7Smrg
1031848c85eb7Smrg# No shared lib support for Linux oldld, aout, or coff.
1031948c85eb7Smrglinux*oldld* | linux*aout* | linux*coff*)
1032048c85eb7Smrg  dynamic_linker=no
1032148c85eb7Smrg  ;;
1032248c85eb7Smrg
1032348c85eb7Smrg# This must be glibc/ELF.
1032448c85eb7Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
1032548c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
1032648c85eb7Smrg  need_lib_prefix=no
1032748c85eb7Smrg  need_version=no
1032848c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1032948c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1033048c85eb7Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1033148c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1033248c85eb7Smrg  shlibpath_overrides_runpath=no
1033348c85eb7Smrg
1033448c85eb7Smrg  # Some binutils ld are patched to set DT_RUNPATH
1033548c85eb7Smrg  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
1033648c85eb7Smrg  $as_echo_n "(cached) " >&6
1033748c85eb7Smrgelse
1033848c85eb7Smrg  lt_cv_shlibpath_overrides_runpath=no
1033948c85eb7Smrg    save_LDFLAGS=$LDFLAGS
1034048c85eb7Smrg    save_libdir=$libdir
1034148c85eb7Smrg    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
1034248c85eb7Smrg	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1034348c85eb7Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1034448c85eb7Smrg/* end confdefs.h.  */
1034548c85eb7Smrg
1034648c85eb7Smrgint
1034748c85eb7Smrgmain ()
1034848c85eb7Smrg{
1034948c85eb7Smrg
1035048c85eb7Smrg  ;
1035148c85eb7Smrg  return 0;
1035248c85eb7Smrg}
1035348c85eb7Smrg_ACEOF
1035448c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1035548c85eb7Smrg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1035648c85eb7Smrg  lt_cv_shlibpath_overrides_runpath=yes
1035748c85eb7Smrgfi
1035848c85eb7Smrgfi
1035948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1036048c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1036148c85eb7Smrg    LDFLAGS=$save_LDFLAGS
1036248c85eb7Smrg    libdir=$save_libdir
1036348c85eb7Smrg
1036448c85eb7Smrgfi
1036548c85eb7Smrg
1036648c85eb7Smrg  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1036748c85eb7Smrg
1036848c85eb7Smrg  # This implies no fast_install, which is unacceptable.
1036948c85eb7Smrg  # Some rework will be needed to allow for fast_install
1037048c85eb7Smrg  # before this can be enabled.
1037148c85eb7Smrg  hardcode_into_libs=yes
1037248c85eb7Smrg
1037348c85eb7Smrg  # Append ld.so.conf contents to the search path
1037448c85eb7Smrg  if test -f /etc/ld.so.conf; then
1037548c85eb7Smrg    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1037648c85eb7Smrg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1037748c85eb7Smrg  fi
1037848c85eb7Smrg
1037948c85eb7Smrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
1038048c85eb7Smrg  # powerpc, because MkLinux only supported shared libraries with the
1038148c85eb7Smrg  # GNU dynamic linker.  Since this was broken with cross compilers,
1038248c85eb7Smrg  # most powerpc-linux boxes support dynamic linking these days and
1038348c85eb7Smrg  # people can always --disable-shared, the test was removed, and we
1038448c85eb7Smrg  # assume the GNU/Linux dynamic linker is in use.
1038548c85eb7Smrg  dynamic_linker='GNU/Linux ld.so'
1038648c85eb7Smrg  ;;
1038748c85eb7Smrg
1038848c85eb7Smrgnetbsd*)
1038948c85eb7Smrg  version_type=sunos
1039048c85eb7Smrg  need_lib_prefix=no
1039148c85eb7Smrg  need_version=no
1039248c85eb7Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1039348c85eb7Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1039448c85eb7Smrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1039548c85eb7Smrg    dynamic_linker='NetBSD (a.out) ld.so'
1039648c85eb7Smrg  else
1039748c85eb7Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1039848c85eb7Smrg    soname_spec='${libname}${release}${shared_ext}$major'
1039948c85eb7Smrg    dynamic_linker='NetBSD ld.elf_so'
1040048c85eb7Smrg  fi
1040148c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1040248c85eb7Smrg  shlibpath_overrides_runpath=yes
1040348c85eb7Smrg  hardcode_into_libs=yes
1040448c85eb7Smrg  ;;
1040548c85eb7Smrg
1040648c85eb7Smrgnewsos6)
1040748c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
1040848c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1040948c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1041048c85eb7Smrg  shlibpath_overrides_runpath=yes
1041148c85eb7Smrg  ;;
1041248c85eb7Smrg
1041348c85eb7Smrg*nto* | *qnx*)
1041448c85eb7Smrg  version_type=qnx
1041548c85eb7Smrg  need_lib_prefix=no
1041648c85eb7Smrg  need_version=no
1041748c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1041848c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1041948c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1042048c85eb7Smrg  shlibpath_overrides_runpath=no
1042148c85eb7Smrg  hardcode_into_libs=yes
1042248c85eb7Smrg  dynamic_linker='ldqnx.so'
1042348c85eb7Smrg  ;;
1042448c85eb7Smrg
1042548c85eb7Smrgopenbsd*)
1042648c85eb7Smrg  version_type=sunos
1042748c85eb7Smrg  sys_lib_dlsearch_path_spec="/usr/lib"
1042848c85eb7Smrg  need_lib_prefix=no
1042948c85eb7Smrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1043048c85eb7Smrg  case $host_os in
1043148c85eb7Smrg    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
1043248c85eb7Smrg    *)				need_version=no  ;;
1043348c85eb7Smrg  esac
1043448c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1043548c85eb7Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1043648c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1043748c85eb7Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1043848c85eb7Smrg    case $host_os in
1043948c85eb7Smrg      openbsd2.[89] | openbsd2.[89].*)
1044048c85eb7Smrg	shlibpath_overrides_runpath=no
1044148c85eb7Smrg	;;
1044248c85eb7Smrg      *)
1044348c85eb7Smrg	shlibpath_overrides_runpath=yes
1044448c85eb7Smrg	;;
1044548c85eb7Smrg      esac
1044648c85eb7Smrg  else
1044748c85eb7Smrg    shlibpath_overrides_runpath=yes
1044848c85eb7Smrg  fi
1044948c85eb7Smrg  ;;
1045048c85eb7Smrg
1045148c85eb7Smrgos2*)
1045248c85eb7Smrg  libname_spec='$name'
1045348c85eb7Smrg  shrext_cmds=".dll"
1045448c85eb7Smrg  need_lib_prefix=no
1045548c85eb7Smrg  library_names_spec='$libname${shared_ext} $libname.a'
1045648c85eb7Smrg  dynamic_linker='OS/2 ld.exe'
1045748c85eb7Smrg  shlibpath_var=LIBPATH
1045848c85eb7Smrg  ;;
1045948c85eb7Smrg
1046048c85eb7Smrgosf3* | osf4* | osf5*)
1046148c85eb7Smrg  version_type=osf
1046248c85eb7Smrg  need_lib_prefix=no
1046348c85eb7Smrg  need_version=no
1046448c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1046548c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1046648c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1046748c85eb7Smrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1046848c85eb7Smrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1046948c85eb7Smrg  ;;
1047048c85eb7Smrg
1047148c85eb7Smrgrdos*)
1047248c85eb7Smrg  dynamic_linker=no
1047348c85eb7Smrg  ;;
1047448c85eb7Smrg
1047548c85eb7Smrgsolaris*)
1047648c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
1047748c85eb7Smrg  need_lib_prefix=no
1047848c85eb7Smrg  need_version=no
1047948c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1048048c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1048148c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1048248c85eb7Smrg  shlibpath_overrides_runpath=yes
1048348c85eb7Smrg  hardcode_into_libs=yes
1048448c85eb7Smrg  # ldd complains unless libraries are executable
1048548c85eb7Smrg  postinstall_cmds='chmod +x $lib'
1048648c85eb7Smrg  ;;
1048748c85eb7Smrg
1048848c85eb7Smrgsunos4*)
1048948c85eb7Smrg  version_type=sunos
1049048c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1049148c85eb7Smrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1049248c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1049348c85eb7Smrg  shlibpath_overrides_runpath=yes
1049448c85eb7Smrg  if test "$with_gnu_ld" = yes; then
1049548c85eb7Smrg    need_lib_prefix=no
1049648c85eb7Smrg  fi
1049748c85eb7Smrg  need_version=yes
1049848c85eb7Smrg  ;;
1049948c85eb7Smrg
1050048c85eb7Smrgsysv4 | sysv4.3*)
1050148c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
1050248c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1050348c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1050448c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1050548c85eb7Smrg  case $host_vendor in
1050648c85eb7Smrg    sni)
1050748c85eb7Smrg      shlibpath_overrides_runpath=no
1050848c85eb7Smrg      need_lib_prefix=no
1050948c85eb7Smrg      runpath_var=LD_RUN_PATH
1051048c85eb7Smrg      ;;
1051148c85eb7Smrg    siemens)
1051248c85eb7Smrg      need_lib_prefix=no
1051348c85eb7Smrg      ;;
1051448c85eb7Smrg    motorola)
1051548c85eb7Smrg      need_lib_prefix=no
1051648c85eb7Smrg      need_version=no
1051748c85eb7Smrg      shlibpath_overrides_runpath=no
1051848c85eb7Smrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1051948c85eb7Smrg      ;;
1052048c85eb7Smrg  esac
1052148c85eb7Smrg  ;;
1052248c85eb7Smrg
1052348c85eb7Smrgsysv4*MP*)
1052448c85eb7Smrg  if test -d /usr/nec ;then
1052548c85eb7Smrg    version_type=linux # correct to gnu/linux during the next big refactor
1052648c85eb7Smrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1052748c85eb7Smrg    soname_spec='$libname${shared_ext}.$major'
1052848c85eb7Smrg    shlibpath_var=LD_LIBRARY_PATH
1052948c85eb7Smrg  fi
1053048c85eb7Smrg  ;;
1053148c85eb7Smrg
1053248c85eb7Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1053348c85eb7Smrg  version_type=freebsd-elf
1053448c85eb7Smrg  need_lib_prefix=no
1053548c85eb7Smrg  need_version=no
1053648c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1053748c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1053848c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1053948c85eb7Smrg  shlibpath_overrides_runpath=yes
1054048c85eb7Smrg  hardcode_into_libs=yes
1054148c85eb7Smrg  if test "$with_gnu_ld" = yes; then
1054248c85eb7Smrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1054348c85eb7Smrg  else
1054448c85eb7Smrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1054548c85eb7Smrg    case $host_os in
1054648c85eb7Smrg      sco3.2v5*)
1054748c85eb7Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1054848c85eb7Smrg	;;
1054948c85eb7Smrg    esac
1055048c85eb7Smrg  fi
1055148c85eb7Smrg  sys_lib_dlsearch_path_spec='/usr/lib'
1055248c85eb7Smrg  ;;
1055348c85eb7Smrg
1055448c85eb7Smrgtpf*)
1055548c85eb7Smrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
1055648c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
1055748c85eb7Smrg  need_lib_prefix=no
1055848c85eb7Smrg  need_version=no
1055948c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1056048c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1056148c85eb7Smrg  shlibpath_overrides_runpath=no
1056248c85eb7Smrg  hardcode_into_libs=yes
1056348c85eb7Smrg  ;;
1056448c85eb7Smrg
1056548c85eb7Smrguts4*)
1056648c85eb7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
1056748c85eb7Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1056848c85eb7Smrg  soname_spec='${libname}${release}${shared_ext}$major'
1056948c85eb7Smrg  shlibpath_var=LD_LIBRARY_PATH
1057048c85eb7Smrg  ;;
1057148c85eb7Smrg
1057248c85eb7Smrg*)
1057348c85eb7Smrg  dynamic_linker=no
1057448c85eb7Smrg  ;;
1057548c85eb7Smrgesac
1057648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1057748c85eb7Smrg$as_echo "$dynamic_linker" >&6; }
1057848c85eb7Smrgtest "$dynamic_linker" = no && can_build_shared=no
1057948c85eb7Smrg
1058048c85eb7Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1058148c85eb7Smrgif test "$GCC" = yes; then
1058248c85eb7Smrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1058348c85eb7Smrgfi
1058448c85eb7Smrg
1058548c85eb7Smrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
1058648c85eb7Smrg  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1058748c85eb7Smrgfi
1058848c85eb7Smrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1058948c85eb7Smrg  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1059048c85eb7Smrgfi
1059148c85eb7Smrg
1059248c85eb7Smrg
1059348c85eb7Smrg
1059448c85eb7Smrg
1059548c85eb7Smrg
1059648c85eb7Smrg
1059748c85eb7Smrg
1059848c85eb7Smrg
1059948c85eb7Smrg
1060048c85eb7Smrg
1060148c85eb7Smrg
1060248c85eb7Smrg
1060348c85eb7Smrg
1060448c85eb7Smrg
1060548c85eb7Smrg
1060648c85eb7Smrg
1060748c85eb7Smrg
1060848c85eb7Smrg
1060948c85eb7Smrg
1061048c85eb7Smrg
1061148c85eb7Smrg
1061248c85eb7Smrg
1061348c85eb7Smrg
1061448c85eb7Smrg
1061548c85eb7Smrg
1061648c85eb7Smrg
1061748c85eb7Smrg
1061848c85eb7Smrg
1061948c85eb7Smrg
1062048c85eb7Smrg
1062148c85eb7Smrg
1062248c85eb7Smrg
1062348c85eb7Smrg
1062448c85eb7Smrg
1062548c85eb7Smrg
1062648c85eb7Smrg
1062748c85eb7Smrg
1062848c85eb7Smrg
1062948c85eb7Smrg
1063048c85eb7Smrg
1063148c85eb7Smrg
1063248c85eb7Smrg
1063348c85eb7Smrg
1063448c85eb7Smrg
1063548c85eb7Smrg
1063648c85eb7Smrg
1063748c85eb7Smrg
1063848c85eb7Smrg
1063948c85eb7Smrg
1064048c85eb7Smrg
1064148c85eb7Smrg
1064248c85eb7Smrg
1064348c85eb7Smrg
1064448c85eb7Smrg
1064548c85eb7Smrg
1064648c85eb7Smrg
1064748c85eb7Smrg
1064848c85eb7Smrg
1064948c85eb7Smrg
1065048c85eb7Smrg
1065148c85eb7Smrg
1065248c85eb7Smrg
1065348c85eb7Smrg
1065448c85eb7Smrg
1065548c85eb7Smrg
1065648c85eb7Smrg
1065748c85eb7Smrg
1065848c85eb7Smrg
1065948c85eb7Smrg
1066048c85eb7Smrg
1066148c85eb7Smrg
1066248c85eb7Smrg
1066348c85eb7Smrg
1066448c85eb7Smrg
1066548c85eb7Smrg
1066648c85eb7Smrg
1066748c85eb7Smrg
1066848c85eb7Smrg
1066948c85eb7Smrg
1067048c85eb7Smrg
1067148c85eb7Smrg
1067248c85eb7Smrg
1067348c85eb7Smrg
1067448c85eb7Smrg
1067548c85eb7Smrg
1067648c85eb7Smrg
1067748c85eb7Smrg
1067848c85eb7Smrg
1067948c85eb7Smrg
1068048c85eb7Smrg
1068148c85eb7Smrg
1068248c85eb7Smrg
1068348c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
1068448c85eb7Smrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1068548c85eb7Smrghardcode_action=
1068648c85eb7Smrgif test -n "$hardcode_libdir_flag_spec" ||
1068748c85eb7Smrg   test -n "$runpath_var" ||
1068848c85eb7Smrg   test "X$hardcode_automatic" = "Xyes" ; then
1068948c85eb7Smrg
1069048c85eb7Smrg  # We can hardcode non-existent directories.
1069148c85eb7Smrg  if test "$hardcode_direct" != no &&
1069248c85eb7Smrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1069348c85eb7Smrg     # have to relink, otherwise we might link with an installed library
1069448c85eb7Smrg     # when we should be linking with a yet-to-be-installed one
1069548c85eb7Smrg     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
1069648c85eb7Smrg     test "$hardcode_minus_L" != no; then
1069748c85eb7Smrg    # Linking always hardcodes the temporary library directory.
1069848c85eb7Smrg    hardcode_action=relink
1069948c85eb7Smrg  else
1070048c85eb7Smrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1070148c85eb7Smrg    hardcode_action=immediate
1070248c85eb7Smrg  fi
1070348c85eb7Smrgelse
1070448c85eb7Smrg  # We cannot hardcode anything, or else we can only hardcode existing
1070548c85eb7Smrg  # directories.
1070648c85eb7Smrg  hardcode_action=unsupported
1070748c85eb7Smrgfi
1070848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1070948c85eb7Smrg$as_echo "$hardcode_action" >&6; }
1071048c85eb7Smrg
1071148c85eb7Smrgif test "$hardcode_action" = relink ||
1071248c85eb7Smrg   test "$inherit_rpath" = yes; then
1071348c85eb7Smrg  # Fast installation is not supported
1071448c85eb7Smrg  enable_fast_install=no
1071548c85eb7Smrgelif test "$shlibpath_overrides_runpath" = yes ||
1071648c85eb7Smrg     test "$enable_shared" = no; then
1071748c85eb7Smrg  # Fast installation is not necessary
1071848c85eb7Smrg  enable_fast_install=needless
1071948c85eb7Smrgfi
1072048c85eb7Smrg
1072148c85eb7Smrg
1072248c85eb7Smrg
1072348c85eb7Smrg
1072448c85eb7Smrg
1072548c85eb7Smrg
1072648c85eb7Smrg  if test "x$enable_dlopen" != xyes; then
1072748c85eb7Smrg  enable_dlopen=unknown
1072848c85eb7Smrg  enable_dlopen_self=unknown
1072948c85eb7Smrg  enable_dlopen_self_static=unknown
1073048c85eb7Smrgelse
1073148c85eb7Smrg  lt_cv_dlopen=no
1073248c85eb7Smrg  lt_cv_dlopen_libs=
1073348c85eb7Smrg
1073448c85eb7Smrg  case $host_os in
1073548c85eb7Smrg  beos*)
1073648c85eb7Smrg    lt_cv_dlopen="load_add_on"
1073748c85eb7Smrg    lt_cv_dlopen_libs=
1073848c85eb7Smrg    lt_cv_dlopen_self=yes
1073948c85eb7Smrg    ;;
1074048c85eb7Smrg
1074148c85eb7Smrg  mingw* | pw32* | cegcc*)
1074248c85eb7Smrg    lt_cv_dlopen="LoadLibrary"
1074348c85eb7Smrg    lt_cv_dlopen_libs=
1074448c85eb7Smrg    ;;
1074548c85eb7Smrg
1074648c85eb7Smrg  cygwin*)
1074748c85eb7Smrg    lt_cv_dlopen="dlopen"
1074848c85eb7Smrg    lt_cv_dlopen_libs=
1074948c85eb7Smrg    ;;
1075048c85eb7Smrg
1075148c85eb7Smrg  darwin*)
1075248c85eb7Smrg  # if libdl is installed we need to link against it
1075348c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1075448c85eb7Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
1075548c85eb7Smrgif ${ac_cv_lib_dl_dlopen+:} false; then :
1075648c85eb7Smrg  $as_echo_n "(cached) " >&6
1075748c85eb7Smrgelse
1075848c85eb7Smrg  ac_check_lib_save_LIBS=$LIBS
1075948c85eb7SmrgLIBS="-ldl  $LIBS"
1076048c85eb7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1076148c85eb7Smrg/* end confdefs.h.  */
1076248c85eb7Smrg
1076348c85eb7Smrg/* Override any GCC internal prototype to avoid an error.
1076448c85eb7Smrg   Use char because int might match the return type of a GCC
1076548c85eb7Smrg   builtin and then its argument prototype would still apply.  */
1076648c85eb7Smrg#ifdef __cplusplus
1076748c85eb7Smrgextern "C"
1076848c85eb7Smrg#endif
1076948c85eb7Smrgchar dlopen ();
1077048c85eb7Smrgint
1077148c85eb7Smrgmain ()
1077248c85eb7Smrg{
1077348c85eb7Smrgreturn dlopen ();
1077448c85eb7Smrg  ;
1077548c85eb7Smrg  return 0;
1077648c85eb7Smrg}
1077748c85eb7Smrg_ACEOF
1077848c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1077948c85eb7Smrg  ac_cv_lib_dl_dlopen=yes
1078048c85eb7Smrgelse
1078148c85eb7Smrg  ac_cv_lib_dl_dlopen=no
1078248c85eb7Smrgfi
1078348c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1078448c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1078548c85eb7SmrgLIBS=$ac_check_lib_save_LIBS
1078648c85eb7Smrgfi
1078748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1078848c85eb7Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1078948c85eb7Smrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1079048c85eb7Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1079148c85eb7Smrgelse
1079248c85eb7Smrg
1079348c85eb7Smrg    lt_cv_dlopen="dyld"
1079448c85eb7Smrg    lt_cv_dlopen_libs=
1079548c85eb7Smrg    lt_cv_dlopen_self=yes
1079648c85eb7Smrg
1079748c85eb7Smrgfi
1079848c85eb7Smrg
1079948c85eb7Smrg    ;;
1080048c85eb7Smrg
1080148c85eb7Smrg  *)
1080248c85eb7Smrg    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1080348c85eb7Smrgif test "x$ac_cv_func_shl_load" = xyes; then :
1080448c85eb7Smrg  lt_cv_dlopen="shl_load"
1080548c85eb7Smrgelse
1080648c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1080748c85eb7Smrg$as_echo_n "checking for shl_load in -ldld... " >&6; }
1080848c85eb7Smrgif ${ac_cv_lib_dld_shl_load+:} false; then :
1080948c85eb7Smrg  $as_echo_n "(cached) " >&6
1081048c85eb7Smrgelse
1081148c85eb7Smrg  ac_check_lib_save_LIBS=$LIBS
1081248c85eb7SmrgLIBS="-ldld  $LIBS"
1081348c85eb7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1081448c85eb7Smrg/* end confdefs.h.  */
1081548c85eb7Smrg
1081648c85eb7Smrg/* Override any GCC internal prototype to avoid an error.
1081748c85eb7Smrg   Use char because int might match the return type of a GCC
1081848c85eb7Smrg   builtin and then its argument prototype would still apply.  */
1081948c85eb7Smrg#ifdef __cplusplus
1082048c85eb7Smrgextern "C"
1082148c85eb7Smrg#endif
1082248c85eb7Smrgchar shl_load ();
1082348c85eb7Smrgint
1082448c85eb7Smrgmain ()
1082548c85eb7Smrg{
1082648c85eb7Smrgreturn shl_load ();
1082748c85eb7Smrg  ;
1082848c85eb7Smrg  return 0;
1082948c85eb7Smrg}
1083048c85eb7Smrg_ACEOF
1083148c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1083248c85eb7Smrg  ac_cv_lib_dld_shl_load=yes
1083348c85eb7Smrgelse
1083448c85eb7Smrg  ac_cv_lib_dld_shl_load=no
1083548c85eb7Smrgfi
1083648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1083748c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1083848c85eb7SmrgLIBS=$ac_check_lib_save_LIBS
1083948c85eb7Smrgfi
1084048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1084148c85eb7Smrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1084248c85eb7Smrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1084348c85eb7Smrg  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1084448c85eb7Smrgelse
1084548c85eb7Smrg  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1084648c85eb7Smrgif test "x$ac_cv_func_dlopen" = xyes; then :
1084748c85eb7Smrg  lt_cv_dlopen="dlopen"
1084848c85eb7Smrgelse
1084948c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1085048c85eb7Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
1085148c85eb7Smrgif ${ac_cv_lib_dl_dlopen+:} false; then :
1085248c85eb7Smrg  $as_echo_n "(cached) " >&6
1085348c85eb7Smrgelse
1085448c85eb7Smrg  ac_check_lib_save_LIBS=$LIBS
1085548c85eb7SmrgLIBS="-ldl  $LIBS"
1085648c85eb7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1085748c85eb7Smrg/* end confdefs.h.  */
1085848c85eb7Smrg
1085948c85eb7Smrg/* Override any GCC internal prototype to avoid an error.
1086048c85eb7Smrg   Use char because int might match the return type of a GCC
1086148c85eb7Smrg   builtin and then its argument prototype would still apply.  */
1086248c85eb7Smrg#ifdef __cplusplus
1086348c85eb7Smrgextern "C"
1086448c85eb7Smrg#endif
1086548c85eb7Smrgchar dlopen ();
1086648c85eb7Smrgint
1086748c85eb7Smrgmain ()
1086848c85eb7Smrg{
1086948c85eb7Smrgreturn dlopen ();
1087048c85eb7Smrg  ;
1087148c85eb7Smrg  return 0;
1087248c85eb7Smrg}
1087348c85eb7Smrg_ACEOF
1087448c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1087548c85eb7Smrg  ac_cv_lib_dl_dlopen=yes
1087648c85eb7Smrgelse
1087748c85eb7Smrg  ac_cv_lib_dl_dlopen=no
1087848c85eb7Smrgfi
1087948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1088048c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1088148c85eb7SmrgLIBS=$ac_check_lib_save_LIBS
1088248c85eb7Smrgfi
1088348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1088448c85eb7Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1088548c85eb7Smrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1088648c85eb7Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1088748c85eb7Smrgelse
1088848c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1088948c85eb7Smrg$as_echo_n "checking for dlopen in -lsvld... " >&6; }
1089048c85eb7Smrgif ${ac_cv_lib_svld_dlopen+:} false; then :
1089148c85eb7Smrg  $as_echo_n "(cached) " >&6
1089248c85eb7Smrgelse
1089348c85eb7Smrg  ac_check_lib_save_LIBS=$LIBS
1089448c85eb7SmrgLIBS="-lsvld  $LIBS"
1089548c85eb7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1089648c85eb7Smrg/* end confdefs.h.  */
1089748c85eb7Smrg
1089848c85eb7Smrg/* Override any GCC internal prototype to avoid an error.
1089948c85eb7Smrg   Use char because int might match the return type of a GCC
1090048c85eb7Smrg   builtin and then its argument prototype would still apply.  */
1090148c85eb7Smrg#ifdef __cplusplus
1090248c85eb7Smrgextern "C"
1090348c85eb7Smrg#endif
1090448c85eb7Smrgchar dlopen ();
1090548c85eb7Smrgint
1090648c85eb7Smrgmain ()
1090748c85eb7Smrg{
1090848c85eb7Smrgreturn dlopen ();
1090948c85eb7Smrg  ;
1091048c85eb7Smrg  return 0;
1091148c85eb7Smrg}
1091248c85eb7Smrg_ACEOF
1091348c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1091448c85eb7Smrg  ac_cv_lib_svld_dlopen=yes
1091548c85eb7Smrgelse
1091648c85eb7Smrg  ac_cv_lib_svld_dlopen=no
1091748c85eb7Smrgfi
1091848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1091948c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1092048c85eb7SmrgLIBS=$ac_check_lib_save_LIBS
1092148c85eb7Smrgfi
1092248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1092348c85eb7Smrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1092448c85eb7Smrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1092548c85eb7Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1092648c85eb7Smrgelse
1092748c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1092848c85eb7Smrg$as_echo_n "checking for dld_link in -ldld... " >&6; }
1092948c85eb7Smrgif ${ac_cv_lib_dld_dld_link+:} false; then :
1093048c85eb7Smrg  $as_echo_n "(cached) " >&6
1093148c85eb7Smrgelse
1093248c85eb7Smrg  ac_check_lib_save_LIBS=$LIBS
1093348c85eb7SmrgLIBS="-ldld  $LIBS"
1093448c85eb7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1093548c85eb7Smrg/* end confdefs.h.  */
1093648c85eb7Smrg
1093748c85eb7Smrg/* Override any GCC internal prototype to avoid an error.
1093848c85eb7Smrg   Use char because int might match the return type of a GCC
1093948c85eb7Smrg   builtin and then its argument prototype would still apply.  */
1094048c85eb7Smrg#ifdef __cplusplus
1094148c85eb7Smrgextern "C"
1094248c85eb7Smrg#endif
1094348c85eb7Smrgchar dld_link ();
1094448c85eb7Smrgint
1094548c85eb7Smrgmain ()
1094648c85eb7Smrg{
1094748c85eb7Smrgreturn dld_link ();
1094848c85eb7Smrg  ;
1094948c85eb7Smrg  return 0;
1095048c85eb7Smrg}
1095148c85eb7Smrg_ACEOF
1095248c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1095348c85eb7Smrg  ac_cv_lib_dld_dld_link=yes
1095448c85eb7Smrgelse
1095548c85eb7Smrg  ac_cv_lib_dld_dld_link=no
1095648c85eb7Smrgfi
1095748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1095848c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1095948c85eb7SmrgLIBS=$ac_check_lib_save_LIBS
1096048c85eb7Smrgfi
1096148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1096248c85eb7Smrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1096348c85eb7Smrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1096448c85eb7Smrg  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1096548c85eb7Smrgfi
1096648c85eb7Smrg
1096748c85eb7Smrg
1096848c85eb7Smrgfi
1096948c85eb7Smrg
1097048c85eb7Smrg
1097148c85eb7Smrgfi
1097248c85eb7Smrg
1097348c85eb7Smrg
1097448c85eb7Smrgfi
1097548c85eb7Smrg
1097648c85eb7Smrg
1097748c85eb7Smrgfi
1097848c85eb7Smrg
1097948c85eb7Smrg
1098048c85eb7Smrgfi
1098148c85eb7Smrg
1098248c85eb7Smrg    ;;
1098348c85eb7Smrg  esac
1098448c85eb7Smrg
1098548c85eb7Smrg  if test "x$lt_cv_dlopen" != xno; then
1098648c85eb7Smrg    enable_dlopen=yes
1098748c85eb7Smrg  else
1098848c85eb7Smrg    enable_dlopen=no
1098948c85eb7Smrg  fi
1099048c85eb7Smrg
1099148c85eb7Smrg  case $lt_cv_dlopen in
1099248c85eb7Smrg  dlopen)
1099348c85eb7Smrg    save_CPPFLAGS="$CPPFLAGS"
1099448c85eb7Smrg    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1099548c85eb7Smrg
1099648c85eb7Smrg    save_LDFLAGS="$LDFLAGS"
1099748c85eb7Smrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1099848c85eb7Smrg
1099948c85eb7Smrg    save_LIBS="$LIBS"
1100048c85eb7Smrg    LIBS="$lt_cv_dlopen_libs $LIBS"
1100148c85eb7Smrg
1100248c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1100348c85eb7Smrg$as_echo_n "checking whether a program can dlopen itself... " >&6; }
1100448c85eb7Smrgif ${lt_cv_dlopen_self+:} false; then :
1100548c85eb7Smrg  $as_echo_n "(cached) " >&6
1100648c85eb7Smrgelse
1100748c85eb7Smrg  	  if test "$cross_compiling" = yes; then :
1100848c85eb7Smrg  lt_cv_dlopen_self=cross
1100948c85eb7Smrgelse
1101048c85eb7Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1101148c85eb7Smrg  lt_status=$lt_dlunknown
1101248c85eb7Smrg  cat > conftest.$ac_ext <<_LT_EOF
1101348c85eb7Smrg#line $LINENO "configure"
1101448c85eb7Smrg#include "confdefs.h"
1101548c85eb7Smrg
1101648c85eb7Smrg#if HAVE_DLFCN_H
1101748c85eb7Smrg#include <dlfcn.h>
1101848c85eb7Smrg#endif
1101948c85eb7Smrg
1102048c85eb7Smrg#include <stdio.h>
1102148c85eb7Smrg
1102248c85eb7Smrg#ifdef RTLD_GLOBAL
1102348c85eb7Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
1102448c85eb7Smrg#else
1102548c85eb7Smrg#  ifdef DL_GLOBAL
1102648c85eb7Smrg#    define LT_DLGLOBAL		DL_GLOBAL
1102748c85eb7Smrg#  else
1102848c85eb7Smrg#    define LT_DLGLOBAL		0
1102948c85eb7Smrg#  endif
1103048c85eb7Smrg#endif
1103148c85eb7Smrg
1103248c85eb7Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1103348c85eb7Smrg   find out it does not work in some platform. */
1103448c85eb7Smrg#ifndef LT_DLLAZY_OR_NOW
1103548c85eb7Smrg#  ifdef RTLD_LAZY
1103648c85eb7Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
1103748c85eb7Smrg#  else
1103848c85eb7Smrg#    ifdef DL_LAZY
1103948c85eb7Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
1104048c85eb7Smrg#    else
1104148c85eb7Smrg#      ifdef RTLD_NOW
1104248c85eb7Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
1104348c85eb7Smrg#      else
1104448c85eb7Smrg#        ifdef DL_NOW
1104548c85eb7Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
1104648c85eb7Smrg#        else
1104748c85eb7Smrg#          define LT_DLLAZY_OR_NOW	0
1104848c85eb7Smrg#        endif
1104948c85eb7Smrg#      endif
1105048c85eb7Smrg#    endif
1105148c85eb7Smrg#  endif
1105248c85eb7Smrg#endif
1105348c85eb7Smrg
1105448c85eb7Smrg/* When -fvisbility=hidden is used, assume the code has been annotated
1105548c85eb7Smrg   correspondingly for the symbols needed.  */
1105648c85eb7Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1105748c85eb7Smrgint fnord () __attribute__((visibility("default")));
1105848c85eb7Smrg#endif
1105948c85eb7Smrg
1106048c85eb7Smrgint fnord () { return 42; }
1106148c85eb7Smrgint main ()
1106248c85eb7Smrg{
1106348c85eb7Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1106448c85eb7Smrg  int status = $lt_dlunknown;
1106548c85eb7Smrg
1106648c85eb7Smrg  if (self)
1106748c85eb7Smrg    {
1106848c85eb7Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1106948c85eb7Smrg      else
1107048c85eb7Smrg        {
1107148c85eb7Smrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
1107248c85eb7Smrg          else puts (dlerror ());
1107348c85eb7Smrg	}
1107448c85eb7Smrg      /* dlclose (self); */
1107548c85eb7Smrg    }
1107648c85eb7Smrg  else
1107748c85eb7Smrg    puts (dlerror ());
1107848c85eb7Smrg
1107948c85eb7Smrg  return status;
1108048c85eb7Smrg}
1108148c85eb7Smrg_LT_EOF
1108248c85eb7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1108348c85eb7Smrg  (eval $ac_link) 2>&5
1108448c85eb7Smrg  ac_status=$?
1108548c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1108648c85eb7Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1108748c85eb7Smrg    (./conftest; exit; ) >&5 2>/dev/null
1108848c85eb7Smrg    lt_status=$?
1108948c85eb7Smrg    case x$lt_status in
1109048c85eb7Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
1109148c85eb7Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1109248c85eb7Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1109348c85eb7Smrg    esac
1109448c85eb7Smrg  else :
1109548c85eb7Smrg    # compilation failed
1109648c85eb7Smrg    lt_cv_dlopen_self=no
1109748c85eb7Smrg  fi
1109848c85eb7Smrgfi
1109948c85eb7Smrgrm -fr conftest*
1110048c85eb7Smrg
1110148c85eb7Smrg
1110248c85eb7Smrgfi
1110348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1110448c85eb7Smrg$as_echo "$lt_cv_dlopen_self" >&6; }
1110548c85eb7Smrg
1110648c85eb7Smrg    if test "x$lt_cv_dlopen_self" = xyes; then
1110748c85eb7Smrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1110848c85eb7Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1110948c85eb7Smrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1111048c85eb7Smrgif ${lt_cv_dlopen_self_static+:} false; then :
1111148c85eb7Smrg  $as_echo_n "(cached) " >&6
1111248c85eb7Smrgelse
1111348c85eb7Smrg  	  if test "$cross_compiling" = yes; then :
1111448c85eb7Smrg  lt_cv_dlopen_self_static=cross
1111548c85eb7Smrgelse
1111648c85eb7Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1111748c85eb7Smrg  lt_status=$lt_dlunknown
1111848c85eb7Smrg  cat > conftest.$ac_ext <<_LT_EOF
1111948c85eb7Smrg#line $LINENO "configure"
1112048c85eb7Smrg#include "confdefs.h"
1112148c85eb7Smrg
1112248c85eb7Smrg#if HAVE_DLFCN_H
1112348c85eb7Smrg#include <dlfcn.h>
1112448c85eb7Smrg#endif
1112548c85eb7Smrg
1112648c85eb7Smrg#include <stdio.h>
1112748c85eb7Smrg
1112848c85eb7Smrg#ifdef RTLD_GLOBAL
1112948c85eb7Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
1113048c85eb7Smrg#else
1113148c85eb7Smrg#  ifdef DL_GLOBAL
1113248c85eb7Smrg#    define LT_DLGLOBAL		DL_GLOBAL
1113348c85eb7Smrg#  else
1113448c85eb7Smrg#    define LT_DLGLOBAL		0
1113548c85eb7Smrg#  endif
1113648c85eb7Smrg#endif
1113748c85eb7Smrg
1113848c85eb7Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1113948c85eb7Smrg   find out it does not work in some platform. */
1114048c85eb7Smrg#ifndef LT_DLLAZY_OR_NOW
1114148c85eb7Smrg#  ifdef RTLD_LAZY
1114248c85eb7Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
1114348c85eb7Smrg#  else
1114448c85eb7Smrg#    ifdef DL_LAZY
1114548c85eb7Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
1114648c85eb7Smrg#    else
1114748c85eb7Smrg#      ifdef RTLD_NOW
1114848c85eb7Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
1114948c85eb7Smrg#      else
1115048c85eb7Smrg#        ifdef DL_NOW
1115148c85eb7Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
1115248c85eb7Smrg#        else
1115348c85eb7Smrg#          define LT_DLLAZY_OR_NOW	0
1115448c85eb7Smrg#        endif
1115548c85eb7Smrg#      endif
1115648c85eb7Smrg#    endif
1115748c85eb7Smrg#  endif
1115848c85eb7Smrg#endif
1115948c85eb7Smrg
1116048c85eb7Smrg/* When -fvisbility=hidden is used, assume the code has been annotated
1116148c85eb7Smrg   correspondingly for the symbols needed.  */
1116248c85eb7Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1116348c85eb7Smrgint fnord () __attribute__((visibility("default")));
1116448c85eb7Smrg#endif
1116548c85eb7Smrg
1116648c85eb7Smrgint fnord () { return 42; }
1116748c85eb7Smrgint main ()
1116848c85eb7Smrg{
1116948c85eb7Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1117048c85eb7Smrg  int status = $lt_dlunknown;
1117148c85eb7Smrg
1117248c85eb7Smrg  if (self)
1117348c85eb7Smrg    {
1117448c85eb7Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1117548c85eb7Smrg      else
1117648c85eb7Smrg        {
1117748c85eb7Smrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
1117848c85eb7Smrg          else puts (dlerror ());
1117948c85eb7Smrg	}
1118048c85eb7Smrg      /* dlclose (self); */
1118148c85eb7Smrg    }
1118248c85eb7Smrg  else
1118348c85eb7Smrg    puts (dlerror ());
1118448c85eb7Smrg
1118548c85eb7Smrg  return status;
1118648c85eb7Smrg}
1118748c85eb7Smrg_LT_EOF
1118848c85eb7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1118948c85eb7Smrg  (eval $ac_link) 2>&5
1119048c85eb7Smrg  ac_status=$?
1119148c85eb7Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1119248c85eb7Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1119348c85eb7Smrg    (./conftest; exit; ) >&5 2>/dev/null
1119448c85eb7Smrg    lt_status=$?
1119548c85eb7Smrg    case x$lt_status in
1119648c85eb7Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
1119748c85eb7Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1119848c85eb7Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1119948c85eb7Smrg    esac
1120048c85eb7Smrg  else :
1120148c85eb7Smrg    # compilation failed
1120248c85eb7Smrg    lt_cv_dlopen_self_static=no
1120348c85eb7Smrg  fi
1120448c85eb7Smrgfi
1120548c85eb7Smrgrm -fr conftest*
1120648c85eb7Smrg
1120748c85eb7Smrg
1120848c85eb7Smrgfi
1120948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
1121048c85eb7Smrg$as_echo "$lt_cv_dlopen_self_static" >&6; }
1121148c85eb7Smrg    fi
1121248c85eb7Smrg
1121348c85eb7Smrg    CPPFLAGS="$save_CPPFLAGS"
1121448c85eb7Smrg    LDFLAGS="$save_LDFLAGS"
1121548c85eb7Smrg    LIBS="$save_LIBS"
1121648c85eb7Smrg    ;;
1121748c85eb7Smrg  esac
1121848c85eb7Smrg
1121948c85eb7Smrg  case $lt_cv_dlopen_self in
1122048c85eb7Smrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1122148c85eb7Smrg  *) enable_dlopen_self=unknown ;;
1122248c85eb7Smrg  esac
1122348c85eb7Smrg
1122448c85eb7Smrg  case $lt_cv_dlopen_self_static in
1122548c85eb7Smrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1122648c85eb7Smrg  *) enable_dlopen_self_static=unknown ;;
1122748c85eb7Smrg  esac
1122848c85eb7Smrgfi
1122948c85eb7Smrg
1123048c85eb7Smrg
1123148c85eb7Smrg
1123248c85eb7Smrg
1123348c85eb7Smrg
1123448c85eb7Smrg
1123548c85eb7Smrg
1123648c85eb7Smrg
1123748c85eb7Smrg
1123848c85eb7Smrg
1123948c85eb7Smrg
1124048c85eb7Smrg
1124148c85eb7Smrg
1124248c85eb7Smrg
1124348c85eb7Smrg
1124448c85eb7Smrg
1124548c85eb7Smrg
1124648c85eb7Smrgstriplib=
1124748c85eb7Smrgold_striplib=
1124848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
1124948c85eb7Smrg$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1125048c85eb7Smrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1125148c85eb7Smrg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1125248c85eb7Smrg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1125348c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1125448c85eb7Smrg$as_echo "yes" >&6; }
1125548c85eb7Smrgelse
1125648c85eb7Smrg# FIXME - insert some real tests, host_os isn't really good enough
1125748c85eb7Smrg  case $host_os in
1125848c85eb7Smrg  darwin*)
1125948c85eb7Smrg    if test -n "$STRIP" ; then
1126048c85eb7Smrg      striplib="$STRIP -x"
1126148c85eb7Smrg      old_striplib="$STRIP -S"
1126248c85eb7Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1126348c85eb7Smrg$as_echo "yes" >&6; }
1126448c85eb7Smrg    else
1126548c85eb7Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1126648c85eb7Smrg$as_echo "no" >&6; }
1126748c85eb7Smrg    fi
1126848c85eb7Smrg    ;;
1126948c85eb7Smrg  *)
1127048c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1127148c85eb7Smrg$as_echo "no" >&6; }
1127248c85eb7Smrg    ;;
1127348c85eb7Smrg  esac
1127448c85eb7Smrgfi
1127548c85eb7Smrg
1127648c85eb7Smrg
1127748c85eb7Smrg
1127848c85eb7Smrg
1127948c85eb7Smrg
1128048c85eb7Smrg
1128148c85eb7Smrg
1128248c85eb7Smrg
1128348c85eb7Smrg
1128448c85eb7Smrg
1128548c85eb7Smrg
1128648c85eb7Smrg
1128748c85eb7Smrg  # Report which library types will actually be built
1128848c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1128948c85eb7Smrg$as_echo_n "checking if libtool supports shared libraries... " >&6; }
1129048c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1129148c85eb7Smrg$as_echo "$can_build_shared" >&6; }
1129248c85eb7Smrg
1129348c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1129448c85eb7Smrg$as_echo_n "checking whether to build shared libraries... " >&6; }
1129548c85eb7Smrg  test "$can_build_shared" = "no" && enable_shared=no
1129648c85eb7Smrg
1129748c85eb7Smrg  # On AIX, shared libraries and static libraries use the same namespace, and
1129848c85eb7Smrg  # are all built from PIC.
1129948c85eb7Smrg  case $host_os in
1130048c85eb7Smrg  aix3*)
1130148c85eb7Smrg    test "$enable_shared" = yes && enable_static=no
1130248c85eb7Smrg    if test -n "$RANLIB"; then
1130348c85eb7Smrg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
1130448c85eb7Smrg      postinstall_cmds='$RANLIB $lib'
1130548c85eb7Smrg    fi
1130648c85eb7Smrg    ;;
1130748c85eb7Smrg
1130848c85eb7Smrg  aix[4-9]*)
1130948c85eb7Smrg    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1131048c85eb7Smrg      test "$enable_shared" = yes && enable_static=no
1131148c85eb7Smrg    fi
1131248c85eb7Smrg    ;;
1131348c85eb7Smrg  esac
1131448c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
1131548c85eb7Smrg$as_echo "$enable_shared" >&6; }
1131648c85eb7Smrg
1131748c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1131848c85eb7Smrg$as_echo_n "checking whether to build static libraries... " >&6; }
1131948c85eb7Smrg  # Make sure either enable_shared or enable_static is yes.
1132048c85eb7Smrg  test "$enable_shared" = yes || enable_static=yes
1132148c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1132248c85eb7Smrg$as_echo "$enable_static" >&6; }
1132348c85eb7Smrg
1132448c85eb7Smrg
1132548c85eb7Smrg
1132648c85eb7Smrg
1132748c85eb7Smrgfi
1132848c85eb7Smrgac_ext=c
1132948c85eb7Smrgac_cpp='$CPP $CPPFLAGS'
1133048c85eb7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1133148c85eb7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1133248c85eb7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1133348c85eb7Smrg
1133448c85eb7SmrgCC="$lt_save_CC"
1133548c85eb7Smrg
1133648c85eb7Smrg
1133748c85eb7Smrg
1133848c85eb7Smrg
1133948c85eb7Smrg
1134048c85eb7Smrg
1134148c85eb7Smrg
1134248c85eb7Smrg
1134348c85eb7Smrg
1134448c85eb7Smrg
1134548c85eb7Smrg
1134648c85eb7Smrg
1134748c85eb7Smrg
1134848c85eb7Smrg
1134948c85eb7Smrg
1135048c85eb7Smrg        ac_config_commands="$ac_config_commands libtool"
1135148c85eb7Smrg
1135248c85eb7Smrg
1135348c85eb7Smrg
1135448c85eb7Smrg
1135548c85eb7Smrg# Only expand once:
1135648c85eb7Smrg
1135748c85eb7Smrg
1135848c85eb7Smrg
1135948c85eb7Smrg# Require X.Org macros 1.8 or later
1136048c85eb7Smrg
1136148c85eb7Smrg
1136248c85eb7Smrg
1136348c85eb7Smrg
1136448c85eb7Smrg
1136548c85eb7Smrg
1136648c85eb7Smrg
1136748c85eb7Smrg
1136848c85eb7Smrg
1136948c85eb7Smrg
1137048c85eb7Smrg
1137148c85eb7Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
1137248c85eb7Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
1137348c85eb7Smrgif ${ac_cv_prog_cc_c99+:} false; then :
1137448c85eb7Smrg  $as_echo_n "(cached) " >&6
1137548c85eb7Smrgelse
1137648c85eb7Smrg  ac_cv_prog_cc_c99=no
1137748c85eb7Smrgac_save_CC=$CC
1137848c85eb7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1137948c85eb7Smrg/* end confdefs.h.  */
1138048c85eb7Smrg#include <stdarg.h>
1138148c85eb7Smrg#include <stdbool.h>
1138248c85eb7Smrg#include <stdlib.h>
1138348c85eb7Smrg#include <wchar.h>
1138448c85eb7Smrg#include <stdio.h>
1138548c85eb7Smrg
1138648c85eb7Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
1138748c85eb7Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
1138848c85eb7Smrg#define showlist(...) puts (#__VA_ARGS__)
1138948c85eb7Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1139048c85eb7Smrgstatic void
1139148c85eb7Smrgtest_varargs_macros (void)
1139248c85eb7Smrg{
1139348c85eb7Smrg  int x = 1234;
1139448c85eb7Smrg  int y = 5678;
1139548c85eb7Smrg  debug ("Flag");
1139648c85eb7Smrg  debug ("X = %d\n", x);
1139748c85eb7Smrg  showlist (The first, second, and third items.);
1139848c85eb7Smrg  report (x>y, "x is %d but y is %d", x, y);
1139948c85eb7Smrg}
1140048c85eb7Smrg
1140148c85eb7Smrg// Check long long types.
1140248c85eb7Smrg#define BIG64 18446744073709551615ull
1140348c85eb7Smrg#define BIG32 4294967295ul
1140448c85eb7Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1140548c85eb7Smrg#if !BIG_OK
1140648c85eb7Smrg  your preprocessor is broken;
1140748c85eb7Smrg#endif
1140848c85eb7Smrg#if BIG_OK
1140948c85eb7Smrg#else
1141048c85eb7Smrg  your preprocessor is broken;
1141148c85eb7Smrg#endif
1141248c85eb7Smrgstatic long long int bignum = -9223372036854775807LL;
1141348c85eb7Smrgstatic unsigned long long int ubignum = BIG64;
1141448c85eb7Smrg
1141548c85eb7Smrgstruct incomplete_array
1141648c85eb7Smrg{
1141748c85eb7Smrg  int datasize;
1141848c85eb7Smrg  double data[];
1141948c85eb7Smrg};
1142048c85eb7Smrg
1142148c85eb7Smrgstruct named_init {
1142248c85eb7Smrg  int number;
1142348c85eb7Smrg  const wchar_t *name;
1142448c85eb7Smrg  double average;
1142548c85eb7Smrg};
1142648c85eb7Smrg
1142748c85eb7Smrgtypedef const char *ccp;
1142848c85eb7Smrg
1142948c85eb7Smrgstatic inline int
1143048c85eb7Smrgtest_restrict (ccp restrict text)
1143148c85eb7Smrg{
1143248c85eb7Smrg  // See if C++-style comments work.
1143348c85eb7Smrg  // Iterate through items via the restricted pointer.
1143448c85eb7Smrg  // Also check for declarations in for loops.
1143548c85eb7Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
1143648c85eb7Smrg    continue;
1143748c85eb7Smrg  return 0;
1143848c85eb7Smrg}
1143948c85eb7Smrg
1144048c85eb7Smrg// Check varargs and va_copy.
1144148c85eb7Smrgstatic void
1144248c85eb7Smrgtest_varargs (const char *format, ...)
1144348c85eb7Smrg{
1144448c85eb7Smrg  va_list args;
1144548c85eb7Smrg  va_start (args, format);
1144648c85eb7Smrg  va_list args_copy;
1144748c85eb7Smrg  va_copy (args_copy, args);
1144848c85eb7Smrg
1144948c85eb7Smrg  const char *str;
1145048c85eb7Smrg  int number;
1145148c85eb7Smrg  float fnumber;
1145248c85eb7Smrg
1145348c85eb7Smrg  while (*format)
1145448c85eb7Smrg    {
1145548c85eb7Smrg      switch (*format++)
1145648c85eb7Smrg	{
1145748c85eb7Smrg	case 's': // string
1145848c85eb7Smrg	  str = va_arg (args_copy, const char *);
1145948c85eb7Smrg	  break;
1146048c85eb7Smrg	case 'd': // int
1146148c85eb7Smrg	  number = va_arg (args_copy, int);
1146248c85eb7Smrg	  break;
1146348c85eb7Smrg	case 'f': // float
1146448c85eb7Smrg	  fnumber = va_arg (args_copy, double);
1146548c85eb7Smrg	  break;
1146648c85eb7Smrg	default:
1146748c85eb7Smrg	  break;
1146848c85eb7Smrg	}
1146948c85eb7Smrg    }
1147048c85eb7Smrg  va_end (args_copy);
1147148c85eb7Smrg  va_end (args);
1147248c85eb7Smrg}
1147348c85eb7Smrg
1147448c85eb7Smrgint
1147548c85eb7Smrgmain ()
1147648c85eb7Smrg{
1147748c85eb7Smrg
1147848c85eb7Smrg  // Check bool.
1147948c85eb7Smrg  _Bool success = false;
1148048c85eb7Smrg
1148148c85eb7Smrg  // Check restrict.
1148248c85eb7Smrg  if (test_restrict ("String literal") == 0)
1148348c85eb7Smrg    success = true;
1148448c85eb7Smrg  char *restrict newvar = "Another string";
1148548c85eb7Smrg
1148648c85eb7Smrg  // Check varargs.
1148748c85eb7Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
1148848c85eb7Smrg  test_varargs_macros ();
1148948c85eb7Smrg
1149048c85eb7Smrg  // Check flexible array members.
1149148c85eb7Smrg  struct incomplete_array *ia =
1149248c85eb7Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
1149348c85eb7Smrg  ia->datasize = 10;
1149448c85eb7Smrg  for (int i = 0; i < ia->datasize; ++i)
1149548c85eb7Smrg    ia->data[i] = i * 1.234;
1149648c85eb7Smrg
1149748c85eb7Smrg  // Check named initializers.
1149848c85eb7Smrg  struct named_init ni = {
1149948c85eb7Smrg    .number = 34,
1150048c85eb7Smrg    .name = L"Test wide string",
1150148c85eb7Smrg    .average = 543.34343,
1150248c85eb7Smrg  };
1150348c85eb7Smrg
1150448c85eb7Smrg  ni.number = 58;
1150548c85eb7Smrg
1150648c85eb7Smrg  int dynamic_array[ni.number];
1150748c85eb7Smrg  dynamic_array[ni.number - 1] = 543;
1150848c85eb7Smrg
1150948c85eb7Smrg  // work around unused variable warnings
1151048c85eb7Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
1151148c85eb7Smrg	  || dynamic_array[ni.number - 1] != 543);
1151248c85eb7Smrg
1151348c85eb7Smrg  ;
1151448c85eb7Smrg  return 0;
1151548c85eb7Smrg}
1151648c85eb7Smrg_ACEOF
1151748c85eb7Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
1151848c85eb7Smrgdo
1151948c85eb7Smrg  CC="$ac_save_CC $ac_arg"
1152048c85eb7Smrg  if ac_fn_c_try_compile "$LINENO"; then :
1152148c85eb7Smrg  ac_cv_prog_cc_c99=$ac_arg
1152248c85eb7Smrgfi
1152348c85eb7Smrgrm -f core conftest.err conftest.$ac_objext
1152448c85eb7Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
1152548c85eb7Smrgdone
1152648c85eb7Smrgrm -f conftest.$ac_ext
1152748c85eb7SmrgCC=$ac_save_CC
1152848c85eb7Smrg
1152948c85eb7Smrgfi
1153048c85eb7Smrg# AC_CACHE_VAL
1153148c85eb7Smrgcase "x$ac_cv_prog_cc_c99" in
1153248c85eb7Smrg  x)
1153348c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
1153448c85eb7Smrg$as_echo "none needed" >&6; } ;;
1153548c85eb7Smrg  xno)
1153648c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
1153748c85eb7Smrg$as_echo "unsupported" >&6; } ;;
1153848c85eb7Smrg  *)
1153948c85eb7Smrg    CC="$CC $ac_cv_prog_cc_c99"
1154048c85eb7Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
1154148c85eb7Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
1154248c85eb7Smrgesac
1154348c85eb7Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
1154448c85eb7Smrg
1154548c85eb7Smrgfi
1154648c85eb7Smrg
1154748c85eb7Smrg
1154848c85eb7Smrg
1154948c85eb7Smrg
1155048c85eb7Smrg
1155148c85eb7Smrg
1155248c85eb7Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
1155348c85eb7Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
1155448c85eb7Smrg  CLANGCC="yes"
1155548c85eb7Smrgelse
1155648c85eb7Smrg  CLANGCC="no"
1155748c85eb7Smrgfi
1155848c85eb7Smrg
1155948c85eb7Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
1156048c85eb7Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
1156148c85eb7Smrg  INTELCC="yes"
1156248c85eb7Smrgelse
1156348c85eb7Smrg  INTELCC="no"
1156448c85eb7Smrgfi
1156548c85eb7Smrg
1156648c85eb7Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
1156748c85eb7Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
1156848c85eb7Smrg  SUNCC="yes"
1156948c85eb7Smrgelse
1157048c85eb7Smrg  SUNCC="no"
1157148c85eb7Smrgfi
1157248c85eb7Smrg
1157348c85eb7Smrg
1157448c85eb7Smrg
1157548c85eb7Smrg
1157648c85eb7Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1157748c85eb7Smrg	if test -n "$ac_tool_prefix"; then
1157848c85eb7Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1157948c85eb7Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
1158048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1158148c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
1158248c85eb7Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
1158348c85eb7Smrg  $as_echo_n "(cached) " >&6
1158448c85eb7Smrgelse
1158548c85eb7Smrg  case $PKG_CONFIG in
1158648c85eb7Smrg  [\\/]* | ?:[\\/]*)
1158748c85eb7Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1158848c85eb7Smrg  ;;
1158948c85eb7Smrg  *)
1159048c85eb7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1159148c85eb7Smrgfor as_dir in $PATH
1159248c85eb7Smrgdo
1159348c85eb7Smrg  IFS=$as_save_IFS
1159448c85eb7Smrg  test -z "$as_dir" && as_dir=.
1159548c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
1159648c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1159748c85eb7Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1159848c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1159948c85eb7Smrg    break 2
1160048c85eb7Smrg  fi
1160148c85eb7Smrgdone
1160248c85eb7Smrg  done
1160348c85eb7SmrgIFS=$as_save_IFS
1160448c85eb7Smrg
1160548c85eb7Smrg  ;;
1160648c85eb7Smrgesac
1160748c85eb7Smrgfi
1160848c85eb7SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
1160948c85eb7Smrgif test -n "$PKG_CONFIG"; then
1161048c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
1161148c85eb7Smrg$as_echo "$PKG_CONFIG" >&6; }
1161248c85eb7Smrgelse
1161348c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1161448c85eb7Smrg$as_echo "no" >&6; }
1161548c85eb7Smrgfi
1161648c85eb7Smrg
1161748c85eb7Smrg
1161848c85eb7Smrgfi
1161948c85eb7Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
1162048c85eb7Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
1162148c85eb7Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
1162248c85eb7Smrgset dummy pkg-config; ac_word=$2
1162348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1162448c85eb7Smrg$as_echo_n "checking for $ac_word... " >&6; }
1162548c85eb7Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
1162648c85eb7Smrg  $as_echo_n "(cached) " >&6
1162748c85eb7Smrgelse
1162848c85eb7Smrg  case $ac_pt_PKG_CONFIG in
1162948c85eb7Smrg  [\\/]* | ?:[\\/]*)
1163048c85eb7Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
1163148c85eb7Smrg  ;;
1163248c85eb7Smrg  *)
1163348c85eb7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1163448c85eb7Smrgfor as_dir in $PATH
1163548c85eb7Smrgdo
1163648c85eb7Smrg  IFS=$as_save_IFS
1163748c85eb7Smrg  test -z "$as_dir" && as_dir=.
1163848c85eb7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
1163948c85eb7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1164048c85eb7Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1164148c85eb7Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1164248c85eb7Smrg    break 2
1164348c85eb7Smrg  fi
1164448c85eb7Smrgdone
1164548c85eb7Smrg  done
1164648c85eb7SmrgIFS=$as_save_IFS
1164748c85eb7Smrg
1164848c85eb7Smrg  ;;
1164948c85eb7Smrgesac
1165048c85eb7Smrgfi
1165148c85eb7Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
1165248c85eb7Smrgif test -n "$ac_pt_PKG_CONFIG"; then
1165348c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
1165448c85eb7Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
1165548c85eb7Smrgelse
1165648c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1165748c85eb7Smrg$as_echo "no" >&6; }
1165848c85eb7Smrgfi
1165948c85eb7Smrg
1166048c85eb7Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
1166148c85eb7Smrg    PKG_CONFIG=""
1166248c85eb7Smrg  else
1166348c85eb7Smrg    case $cross_compiling:$ac_tool_warned in
1166448c85eb7Smrgyes:)
1166548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1166648c85eb7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1166748c85eb7Smrgac_tool_warned=yes ;;
1166848c85eb7Smrgesac
1166948c85eb7Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
1167048c85eb7Smrg  fi
1167148c85eb7Smrgelse
1167248c85eb7Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
1167348c85eb7Smrgfi
1167448c85eb7Smrg
1167548c85eb7Smrgfi
1167648c85eb7Smrgif test -n "$PKG_CONFIG"; then
1167748c85eb7Smrg	_pkg_min_version=0.9.0
1167848c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
1167948c85eb7Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
1168048c85eb7Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1168148c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1168248c85eb7Smrg$as_echo "yes" >&6; }
1168348c85eb7Smrg	else
1168448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1168548c85eb7Smrg$as_echo "no" >&6; }
1168648c85eb7Smrg		PKG_CONFIG=""
1168748c85eb7Smrg	fi
1168848c85eb7Smrg
1168948c85eb7Smrgfi
1169048c85eb7Smrg
1169148c85eb7Smrg
1169248c85eb7Smrg
1169348c85eb7Smrg
1169448c85eb7Smrg
1169548c85eb7Smrg# Check whether --enable-selective-werror was given.
1169648c85eb7Smrgif test "${enable_selective_werror+set}" = set; then :
1169748c85eb7Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
1169848c85eb7Smrgelse
1169948c85eb7Smrg  SELECTIVE_WERROR=yes
1170048c85eb7Smrgfi
1170148c85eb7Smrg
1170248c85eb7Smrg
1170348c85eb7Smrg
1170448c85eb7Smrg
1170548c85eb7Smrg
1170648c85eb7Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
1170748c85eb7Smrgif test "x$SUNCC" = "xyes"; then
1170848c85eb7Smrg    BASE_CFLAGS="-v"
1170948c85eb7Smrgelse
1171048c85eb7Smrg    BASE_CFLAGS=""
1171148c85eb7Smrgfi
1171248c85eb7Smrg
1171348c85eb7Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
1171448c85eb7Smrg
1171548c85eb7Smrg
1171648c85eb7Smrg
1171748c85eb7Smrg
1171848c85eb7Smrg
1171948c85eb7Smrg
1172048c85eb7Smrg
1172148c85eb7Smrg
1172248c85eb7Smrg
1172348c85eb7Smrg
1172448c85eb7Smrg
1172548c85eb7Smrg
1172648c85eb7Smrg
1172748c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1172848c85eb7Smrg
1172948c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1173048c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1173148c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1173248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1173348c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1173448c85eb7Smrg  $as_echo_n "(cached) " >&6
1173548c85eb7Smrgelse
1173648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1173748c85eb7Smrg/* end confdefs.h.  */
1173848c85eb7Smrgint i;
1173948c85eb7Smrg_ACEOF
1174048c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1174148c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1174248c85eb7Smrgelse
1174348c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1174448c85eb7Smrgfi
1174548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1174648c85eb7Smrgfi
1174748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1174848c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1174948c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1175048c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1175148c85eb7Smrgfi
1175248c85eb7Smrg
1175348c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1175448c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1175548c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1175648c85eb7Smrg	fi
1175748c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1175848c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1175948c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1176048c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1176148c85eb7Smrg  $as_echo_n "(cached) " >&6
1176248c85eb7Smrgelse
1176348c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1176448c85eb7Smrg/* end confdefs.h.  */
1176548c85eb7Smrgint i;
1176648c85eb7Smrg_ACEOF
1176748c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1176848c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1176948c85eb7Smrgelse
1177048c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1177148c85eb7Smrgfi
1177248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1177348c85eb7Smrgfi
1177448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1177548c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1177648c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1177748c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1177848c85eb7Smrgfi
1177948c85eb7Smrg
1178048c85eb7Smrgfound="no"
1178148c85eb7Smrg
1178248c85eb7Smrg	if test $found = "no" ; then
1178348c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1178448c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1178548c85eb7Smrg		fi
1178648c85eb7Smrg
1178748c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1178848c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1178948c85eb7Smrg		fi
1179048c85eb7Smrg
1179148c85eb7Smrg		CFLAGS="$CFLAGS -Wall"
1179248c85eb7Smrg
1179348c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
1179448c85eb7Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; }
1179548c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wall
1179648c85eb7Smrg		if eval \${$cacheid+:} false; then :
1179748c85eb7Smrg  $as_echo_n "(cached) " >&6
1179848c85eb7Smrgelse
1179948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1180048c85eb7Smrg/* end confdefs.h.  */
1180148c85eb7Smrgint i;
1180248c85eb7Smrgint
1180348c85eb7Smrgmain ()
1180448c85eb7Smrg{
1180548c85eb7Smrg
1180648c85eb7Smrg  ;
1180748c85eb7Smrg  return 0;
1180848c85eb7Smrg}
1180948c85eb7Smrg_ACEOF
1181048c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1181148c85eb7Smrg  eval $cacheid=yes
1181248c85eb7Smrgelse
1181348c85eb7Smrg  eval $cacheid=no
1181448c85eb7Smrgfi
1181548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1181648c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1181748c85eb7Smrgfi
1181848c85eb7Smrg
1181948c85eb7Smrg
1182048c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1182148c85eb7Smrg
1182248c85eb7Smrg		eval supported=\$$cacheid
1182348c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1182448c85eb7Smrg$as_echo "$supported" >&6; }
1182548c85eb7Smrg		if test "$supported" = "yes" ; then
1182648c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
1182748c85eb7Smrg			found="yes"
1182848c85eb7Smrg		fi
1182948c85eb7Smrg	fi
1183048c85eb7Smrg
1183148c85eb7Smrg
1183248c85eb7Smrg
1183348c85eb7Smrg
1183448c85eb7Smrg
1183548c85eb7Smrg
1183648c85eb7Smrg
1183748c85eb7Smrg
1183848c85eb7Smrg
1183948c85eb7Smrg
1184048c85eb7Smrg
1184148c85eb7Smrg
1184248c85eb7Smrg
1184348c85eb7Smrg
1184448c85eb7Smrg
1184548c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1184648c85eb7Smrg
1184748c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1184848c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1184948c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1185048c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1185148c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1185248c85eb7Smrg  $as_echo_n "(cached) " >&6
1185348c85eb7Smrgelse
1185448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1185548c85eb7Smrg/* end confdefs.h.  */
1185648c85eb7Smrgint i;
1185748c85eb7Smrg_ACEOF
1185848c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1185948c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1186048c85eb7Smrgelse
1186148c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1186248c85eb7Smrgfi
1186348c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1186448c85eb7Smrgfi
1186548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1186648c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1186748c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1186848c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1186948c85eb7Smrgfi
1187048c85eb7Smrg
1187148c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1187248c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1187348c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1187448c85eb7Smrg	fi
1187548c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1187648c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1187748c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1187848c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1187948c85eb7Smrg  $as_echo_n "(cached) " >&6
1188048c85eb7Smrgelse
1188148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1188248c85eb7Smrg/* end confdefs.h.  */
1188348c85eb7Smrgint i;
1188448c85eb7Smrg_ACEOF
1188548c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1188648c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1188748c85eb7Smrgelse
1188848c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1188948c85eb7Smrgfi
1189048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1189148c85eb7Smrgfi
1189248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1189348c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1189448c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1189548c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1189648c85eb7Smrgfi
1189748c85eb7Smrg
1189848c85eb7Smrgfound="no"
1189948c85eb7Smrg
1190048c85eb7Smrg	if test $found = "no" ; then
1190148c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1190248c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1190348c85eb7Smrg		fi
1190448c85eb7Smrg
1190548c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1190648c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1190748c85eb7Smrg		fi
1190848c85eb7Smrg
1190948c85eb7Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
1191048c85eb7Smrg
1191148c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
1191248c85eb7Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
1191348c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
1191448c85eb7Smrg		if eval \${$cacheid+:} false; then :
1191548c85eb7Smrg  $as_echo_n "(cached) " >&6
1191648c85eb7Smrgelse
1191748c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1191848c85eb7Smrg/* end confdefs.h.  */
1191948c85eb7Smrgint i;
1192048c85eb7Smrgint
1192148c85eb7Smrgmain ()
1192248c85eb7Smrg{
1192348c85eb7Smrg
1192448c85eb7Smrg  ;
1192548c85eb7Smrg  return 0;
1192648c85eb7Smrg}
1192748c85eb7Smrg_ACEOF
1192848c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1192948c85eb7Smrg  eval $cacheid=yes
1193048c85eb7Smrgelse
1193148c85eb7Smrg  eval $cacheid=no
1193248c85eb7Smrgfi
1193348c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1193448c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1193548c85eb7Smrgfi
1193648c85eb7Smrg
1193748c85eb7Smrg
1193848c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1193948c85eb7Smrg
1194048c85eb7Smrg		eval supported=\$$cacheid
1194148c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1194248c85eb7Smrg$as_echo "$supported" >&6; }
1194348c85eb7Smrg		if test "$supported" = "yes" ; then
1194448c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
1194548c85eb7Smrg			found="yes"
1194648c85eb7Smrg		fi
1194748c85eb7Smrg	fi
1194848c85eb7Smrg
1194948c85eb7Smrg
1195048c85eb7Smrg
1195148c85eb7Smrg
1195248c85eb7Smrg
1195348c85eb7Smrg
1195448c85eb7Smrg
1195548c85eb7Smrg
1195648c85eb7Smrg
1195748c85eb7Smrg
1195848c85eb7Smrg
1195948c85eb7Smrg
1196048c85eb7Smrg
1196148c85eb7Smrg
1196248c85eb7Smrg
1196348c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1196448c85eb7Smrg
1196548c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1196648c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1196748c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1196848c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1196948c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1197048c85eb7Smrg  $as_echo_n "(cached) " >&6
1197148c85eb7Smrgelse
1197248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1197348c85eb7Smrg/* end confdefs.h.  */
1197448c85eb7Smrgint i;
1197548c85eb7Smrg_ACEOF
1197648c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1197748c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1197848c85eb7Smrgelse
1197948c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1198048c85eb7Smrgfi
1198148c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1198248c85eb7Smrgfi
1198348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1198448c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1198548c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1198648c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1198748c85eb7Smrgfi
1198848c85eb7Smrg
1198948c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1199048c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1199148c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1199248c85eb7Smrg	fi
1199348c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1199448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1199548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1199648c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1199748c85eb7Smrg  $as_echo_n "(cached) " >&6
1199848c85eb7Smrgelse
1199948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1200048c85eb7Smrg/* end confdefs.h.  */
1200148c85eb7Smrgint i;
1200248c85eb7Smrg_ACEOF
1200348c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1200448c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1200548c85eb7Smrgelse
1200648c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1200748c85eb7Smrgfi
1200848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1200948c85eb7Smrgfi
1201048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1201148c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1201248c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1201348c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1201448c85eb7Smrgfi
1201548c85eb7Smrg
1201648c85eb7Smrgfound="no"
1201748c85eb7Smrg
1201848c85eb7Smrg	if test $found = "no" ; then
1201948c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1202048c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1202148c85eb7Smrg		fi
1202248c85eb7Smrg
1202348c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1202448c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1202548c85eb7Smrg		fi
1202648c85eb7Smrg
1202748c85eb7Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
1202848c85eb7Smrg
1202948c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
1203048c85eb7Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
1203148c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
1203248c85eb7Smrg		if eval \${$cacheid+:} false; then :
1203348c85eb7Smrg  $as_echo_n "(cached) " >&6
1203448c85eb7Smrgelse
1203548c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1203648c85eb7Smrg/* end confdefs.h.  */
1203748c85eb7Smrgint i;
1203848c85eb7Smrgint
1203948c85eb7Smrgmain ()
1204048c85eb7Smrg{
1204148c85eb7Smrg
1204248c85eb7Smrg  ;
1204348c85eb7Smrg  return 0;
1204448c85eb7Smrg}
1204548c85eb7Smrg_ACEOF
1204648c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1204748c85eb7Smrg  eval $cacheid=yes
1204848c85eb7Smrgelse
1204948c85eb7Smrg  eval $cacheid=no
1205048c85eb7Smrgfi
1205148c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1205248c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1205348c85eb7Smrgfi
1205448c85eb7Smrg
1205548c85eb7Smrg
1205648c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1205748c85eb7Smrg
1205848c85eb7Smrg		eval supported=\$$cacheid
1205948c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1206048c85eb7Smrg$as_echo "$supported" >&6; }
1206148c85eb7Smrg		if test "$supported" = "yes" ; then
1206248c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
1206348c85eb7Smrg			found="yes"
1206448c85eb7Smrg		fi
1206548c85eb7Smrg	fi
1206648c85eb7Smrg
1206748c85eb7Smrg
1206848c85eb7Smrg
1206948c85eb7Smrg
1207048c85eb7Smrg
1207148c85eb7Smrg
1207248c85eb7Smrg
1207348c85eb7Smrg
1207448c85eb7Smrg
1207548c85eb7Smrg
1207648c85eb7Smrg
1207748c85eb7Smrg
1207848c85eb7Smrg
1207948c85eb7Smrg
1208048c85eb7Smrg
1208148c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1208248c85eb7Smrg
1208348c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1208448c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1208548c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1208648c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1208748c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1208848c85eb7Smrg  $as_echo_n "(cached) " >&6
1208948c85eb7Smrgelse
1209048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1209148c85eb7Smrg/* end confdefs.h.  */
1209248c85eb7Smrgint i;
1209348c85eb7Smrg_ACEOF
1209448c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1209548c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1209648c85eb7Smrgelse
1209748c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1209848c85eb7Smrgfi
1209948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1210048c85eb7Smrgfi
1210148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1210248c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1210348c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1210448c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1210548c85eb7Smrgfi
1210648c85eb7Smrg
1210748c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1210848c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1210948c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1211048c85eb7Smrg	fi
1211148c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1211248c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1211348c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1211448c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1211548c85eb7Smrg  $as_echo_n "(cached) " >&6
1211648c85eb7Smrgelse
1211748c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1211848c85eb7Smrg/* end confdefs.h.  */
1211948c85eb7Smrgint i;
1212048c85eb7Smrg_ACEOF
1212148c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1212248c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1212348c85eb7Smrgelse
1212448c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1212548c85eb7Smrgfi
1212648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1212748c85eb7Smrgfi
1212848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1212948c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1213048c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1213148c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1213248c85eb7Smrgfi
1213348c85eb7Smrg
1213448c85eb7Smrgfound="no"
1213548c85eb7Smrg
1213648c85eb7Smrg	if test $found = "no" ; then
1213748c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1213848c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1213948c85eb7Smrg		fi
1214048c85eb7Smrg
1214148c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1214248c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1214348c85eb7Smrg		fi
1214448c85eb7Smrg
1214548c85eb7Smrg		CFLAGS="$CFLAGS -Wformat=2"
1214648c85eb7Smrg
1214748c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
1214848c85eb7Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
1214948c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
1215048c85eb7Smrg		if eval \${$cacheid+:} false; then :
1215148c85eb7Smrg  $as_echo_n "(cached) " >&6
1215248c85eb7Smrgelse
1215348c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1215448c85eb7Smrg/* end confdefs.h.  */
1215548c85eb7Smrgint i;
1215648c85eb7Smrgint
1215748c85eb7Smrgmain ()
1215848c85eb7Smrg{
1215948c85eb7Smrg
1216048c85eb7Smrg  ;
1216148c85eb7Smrg  return 0;
1216248c85eb7Smrg}
1216348c85eb7Smrg_ACEOF
1216448c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1216548c85eb7Smrg  eval $cacheid=yes
1216648c85eb7Smrgelse
1216748c85eb7Smrg  eval $cacheid=no
1216848c85eb7Smrgfi
1216948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1217048c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1217148c85eb7Smrgfi
1217248c85eb7Smrg
1217348c85eb7Smrg
1217448c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1217548c85eb7Smrg
1217648c85eb7Smrg		eval supported=\$$cacheid
1217748c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1217848c85eb7Smrg$as_echo "$supported" >&6; }
1217948c85eb7Smrg		if test "$supported" = "yes" ; then
1218048c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
1218148c85eb7Smrg			found="yes"
1218248c85eb7Smrg		fi
1218348c85eb7Smrg	fi
1218448c85eb7Smrg
1218548c85eb7Smrg	if test $found = "no" ; then
1218648c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1218748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1218848c85eb7Smrg		fi
1218948c85eb7Smrg
1219048c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1219148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1219248c85eb7Smrg		fi
1219348c85eb7Smrg
1219448c85eb7Smrg		CFLAGS="$CFLAGS -Wformat"
1219548c85eb7Smrg
1219648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
1219748c85eb7Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; }
1219848c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wformat
1219948c85eb7Smrg		if eval \${$cacheid+:} false; then :
1220048c85eb7Smrg  $as_echo_n "(cached) " >&6
1220148c85eb7Smrgelse
1220248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1220348c85eb7Smrg/* end confdefs.h.  */
1220448c85eb7Smrgint i;
1220548c85eb7Smrgint
1220648c85eb7Smrgmain ()
1220748c85eb7Smrg{
1220848c85eb7Smrg
1220948c85eb7Smrg  ;
1221048c85eb7Smrg  return 0;
1221148c85eb7Smrg}
1221248c85eb7Smrg_ACEOF
1221348c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1221448c85eb7Smrg  eval $cacheid=yes
1221548c85eb7Smrgelse
1221648c85eb7Smrg  eval $cacheid=no
1221748c85eb7Smrgfi
1221848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1221948c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1222048c85eb7Smrgfi
1222148c85eb7Smrg
1222248c85eb7Smrg
1222348c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1222448c85eb7Smrg
1222548c85eb7Smrg		eval supported=\$$cacheid
1222648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1222748c85eb7Smrg$as_echo "$supported" >&6; }
1222848c85eb7Smrg		if test "$supported" = "yes" ; then
1222948c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
1223048c85eb7Smrg			found="yes"
1223148c85eb7Smrg		fi
1223248c85eb7Smrg	fi
1223348c85eb7Smrg
1223448c85eb7Smrg
1223548c85eb7Smrg
1223648c85eb7Smrg
1223748c85eb7Smrg
1223848c85eb7Smrg
1223948c85eb7Smrg
1224048c85eb7Smrg
1224148c85eb7Smrg
1224248c85eb7Smrg
1224348c85eb7Smrg
1224448c85eb7Smrg
1224548c85eb7Smrg
1224648c85eb7Smrg
1224748c85eb7Smrg
1224848c85eb7Smrg
1224948c85eb7Smrg
1225048c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1225148c85eb7Smrg
1225248c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1225348c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1225448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1225548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1225648c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1225748c85eb7Smrg  $as_echo_n "(cached) " >&6
1225848c85eb7Smrgelse
1225948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1226048c85eb7Smrg/* end confdefs.h.  */
1226148c85eb7Smrgint i;
1226248c85eb7Smrg_ACEOF
1226348c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1226448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1226548c85eb7Smrgelse
1226648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1226748c85eb7Smrgfi
1226848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1226948c85eb7Smrgfi
1227048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1227148c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1227248c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1227348c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1227448c85eb7Smrgfi
1227548c85eb7Smrg
1227648c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1227748c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1227848c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1227948c85eb7Smrg	fi
1228048c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1228148c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1228248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1228348c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1228448c85eb7Smrg  $as_echo_n "(cached) " >&6
1228548c85eb7Smrgelse
1228648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1228748c85eb7Smrg/* end confdefs.h.  */
1228848c85eb7Smrgint i;
1228948c85eb7Smrg_ACEOF
1229048c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1229148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1229248c85eb7Smrgelse
1229348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1229448c85eb7Smrgfi
1229548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1229648c85eb7Smrgfi
1229748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1229848c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1229948c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1230048c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1230148c85eb7Smrgfi
1230248c85eb7Smrg
1230348c85eb7Smrgfound="no"
1230448c85eb7Smrg
1230548c85eb7Smrg	if test $found = "no" ; then
1230648c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1230748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1230848c85eb7Smrg		fi
1230948c85eb7Smrg
1231048c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1231148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1231248c85eb7Smrg		fi
1231348c85eb7Smrg
1231448c85eb7Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
1231548c85eb7Smrg
1231648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
1231748c85eb7Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
1231848c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
1231948c85eb7Smrg		if eval \${$cacheid+:} false; then :
1232048c85eb7Smrg  $as_echo_n "(cached) " >&6
1232148c85eb7Smrgelse
1232248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1232348c85eb7Smrg/* end confdefs.h.  */
1232448c85eb7Smrgint i;
1232548c85eb7Smrgint
1232648c85eb7Smrgmain ()
1232748c85eb7Smrg{
1232848c85eb7Smrg
1232948c85eb7Smrg  ;
1233048c85eb7Smrg  return 0;
1233148c85eb7Smrg}
1233248c85eb7Smrg_ACEOF
1233348c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1233448c85eb7Smrg  eval $cacheid=yes
1233548c85eb7Smrgelse
1233648c85eb7Smrg  eval $cacheid=no
1233748c85eb7Smrgfi
1233848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1233948c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1234048c85eb7Smrgfi
1234148c85eb7Smrg
1234248c85eb7Smrg
1234348c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1234448c85eb7Smrg
1234548c85eb7Smrg		eval supported=\$$cacheid
1234648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1234748c85eb7Smrg$as_echo "$supported" >&6; }
1234848c85eb7Smrg		if test "$supported" = "yes" ; then
1234948c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
1235048c85eb7Smrg			found="yes"
1235148c85eb7Smrg		fi
1235248c85eb7Smrg	fi
1235348c85eb7Smrg
1235448c85eb7Smrg
1235548c85eb7Smrg
1235648c85eb7Smrg
1235748c85eb7Smrg
1235848c85eb7Smrg
1235948c85eb7Smrg
1236048c85eb7Smrg
1236148c85eb7Smrg
1236248c85eb7Smrg
1236348c85eb7Smrg
1236448c85eb7Smrg
1236548c85eb7Smrg
1236648c85eb7Smrg
1236748c85eb7Smrg
1236848c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1236948c85eb7Smrg
1237048c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1237148c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1237248c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1237348c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1237448c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1237548c85eb7Smrg  $as_echo_n "(cached) " >&6
1237648c85eb7Smrgelse
1237748c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1237848c85eb7Smrg/* end confdefs.h.  */
1237948c85eb7Smrgint i;
1238048c85eb7Smrg_ACEOF
1238148c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1238248c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1238348c85eb7Smrgelse
1238448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1238548c85eb7Smrgfi
1238648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1238748c85eb7Smrgfi
1238848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1238948c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1239048c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1239148c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1239248c85eb7Smrgfi
1239348c85eb7Smrg
1239448c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1239548c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1239648c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1239748c85eb7Smrg	fi
1239848c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1239948c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1240048c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1240148c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1240248c85eb7Smrg  $as_echo_n "(cached) " >&6
1240348c85eb7Smrgelse
1240448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1240548c85eb7Smrg/* end confdefs.h.  */
1240648c85eb7Smrgint i;
1240748c85eb7Smrg_ACEOF
1240848c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1240948c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1241048c85eb7Smrgelse
1241148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1241248c85eb7Smrgfi
1241348c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1241448c85eb7Smrgfi
1241548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1241648c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1241748c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1241848c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1241948c85eb7Smrgfi
1242048c85eb7Smrg
1242148c85eb7Smrgfound="no"
1242248c85eb7Smrg
1242348c85eb7Smrg	if test $found = "no" ; then
1242448c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1242548c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1242648c85eb7Smrg		fi
1242748c85eb7Smrg
1242848c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1242948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1243048c85eb7Smrg		fi
1243148c85eb7Smrg
1243248c85eb7Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
1243348c85eb7Smrg
1243448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
1243548c85eb7Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
1243648c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
1243748c85eb7Smrg		if eval \${$cacheid+:} false; then :
1243848c85eb7Smrg  $as_echo_n "(cached) " >&6
1243948c85eb7Smrgelse
1244048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1244148c85eb7Smrg/* end confdefs.h.  */
1244248c85eb7Smrgint i;
1244348c85eb7Smrgint
1244448c85eb7Smrgmain ()
1244548c85eb7Smrg{
1244648c85eb7Smrg
1244748c85eb7Smrg  ;
1244848c85eb7Smrg  return 0;
1244948c85eb7Smrg}
1245048c85eb7Smrg_ACEOF
1245148c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1245248c85eb7Smrg  eval $cacheid=yes
1245348c85eb7Smrgelse
1245448c85eb7Smrg  eval $cacheid=no
1245548c85eb7Smrgfi
1245648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1245748c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1245848c85eb7Smrgfi
1245948c85eb7Smrg
1246048c85eb7Smrg
1246148c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1246248c85eb7Smrg
1246348c85eb7Smrg		eval supported=\$$cacheid
1246448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1246548c85eb7Smrg$as_echo "$supported" >&6; }
1246648c85eb7Smrg		if test "$supported" = "yes" ; then
1246748c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
1246848c85eb7Smrg			found="yes"
1246948c85eb7Smrg		fi
1247048c85eb7Smrg	fi
1247148c85eb7Smrg
1247248c85eb7Smrg
1247348c85eb7Smrg
1247448c85eb7Smrg
1247548c85eb7Smrg
1247648c85eb7Smrg
1247748c85eb7Smrg
1247848c85eb7Smrg
1247948c85eb7Smrg
1248048c85eb7Smrg
1248148c85eb7Smrg
1248248c85eb7Smrg
1248348c85eb7Smrg
1248448c85eb7Smrg
1248548c85eb7Smrg
1248648c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1248748c85eb7Smrg
1248848c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1248948c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1249048c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1249148c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1249248c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1249348c85eb7Smrg  $as_echo_n "(cached) " >&6
1249448c85eb7Smrgelse
1249548c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1249648c85eb7Smrg/* end confdefs.h.  */
1249748c85eb7Smrgint i;
1249848c85eb7Smrg_ACEOF
1249948c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1250048c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1250148c85eb7Smrgelse
1250248c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1250348c85eb7Smrgfi
1250448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1250548c85eb7Smrgfi
1250648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1250748c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1250848c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1250948c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1251048c85eb7Smrgfi
1251148c85eb7Smrg
1251248c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1251348c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1251448c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1251548c85eb7Smrg	fi
1251648c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1251748c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1251848c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1251948c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1252048c85eb7Smrg  $as_echo_n "(cached) " >&6
1252148c85eb7Smrgelse
1252248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1252348c85eb7Smrg/* end confdefs.h.  */
1252448c85eb7Smrgint i;
1252548c85eb7Smrg_ACEOF
1252648c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1252748c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1252848c85eb7Smrgelse
1252948c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1253048c85eb7Smrgfi
1253148c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1253248c85eb7Smrgfi
1253348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1253448c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1253548c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1253648c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1253748c85eb7Smrgfi
1253848c85eb7Smrg
1253948c85eb7Smrgfound="no"
1254048c85eb7Smrg
1254148c85eb7Smrg	if test $found = "no" ; then
1254248c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1254348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1254448c85eb7Smrg		fi
1254548c85eb7Smrg
1254648c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1254748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1254848c85eb7Smrg		fi
1254948c85eb7Smrg
1255048c85eb7Smrg		CFLAGS="$CFLAGS -Wnested-externs"
1255148c85eb7Smrg
1255248c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
1255348c85eb7Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
1255448c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
1255548c85eb7Smrg		if eval \${$cacheid+:} false; then :
1255648c85eb7Smrg  $as_echo_n "(cached) " >&6
1255748c85eb7Smrgelse
1255848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1255948c85eb7Smrg/* end confdefs.h.  */
1256048c85eb7Smrgint i;
1256148c85eb7Smrgint
1256248c85eb7Smrgmain ()
1256348c85eb7Smrg{
1256448c85eb7Smrg
1256548c85eb7Smrg  ;
1256648c85eb7Smrg  return 0;
1256748c85eb7Smrg}
1256848c85eb7Smrg_ACEOF
1256948c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1257048c85eb7Smrg  eval $cacheid=yes
1257148c85eb7Smrgelse
1257248c85eb7Smrg  eval $cacheid=no
1257348c85eb7Smrgfi
1257448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1257548c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1257648c85eb7Smrgfi
1257748c85eb7Smrg
1257848c85eb7Smrg
1257948c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1258048c85eb7Smrg
1258148c85eb7Smrg		eval supported=\$$cacheid
1258248c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1258348c85eb7Smrg$as_echo "$supported" >&6; }
1258448c85eb7Smrg		if test "$supported" = "yes" ; then
1258548c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
1258648c85eb7Smrg			found="yes"
1258748c85eb7Smrg		fi
1258848c85eb7Smrg	fi
1258948c85eb7Smrg
1259048c85eb7Smrg
1259148c85eb7Smrg
1259248c85eb7Smrg
1259348c85eb7Smrg
1259448c85eb7Smrg
1259548c85eb7Smrg
1259648c85eb7Smrg
1259748c85eb7Smrg
1259848c85eb7Smrg
1259948c85eb7Smrg
1260048c85eb7Smrg
1260148c85eb7Smrg
1260248c85eb7Smrg
1260348c85eb7Smrg
1260448c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1260548c85eb7Smrg
1260648c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1260748c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1260848c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1260948c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1261048c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1261148c85eb7Smrg  $as_echo_n "(cached) " >&6
1261248c85eb7Smrgelse
1261348c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1261448c85eb7Smrg/* end confdefs.h.  */
1261548c85eb7Smrgint i;
1261648c85eb7Smrg_ACEOF
1261748c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1261848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1261948c85eb7Smrgelse
1262048c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1262148c85eb7Smrgfi
1262248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1262348c85eb7Smrgfi
1262448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1262548c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1262648c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1262748c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1262848c85eb7Smrgfi
1262948c85eb7Smrg
1263048c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1263148c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1263248c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1263348c85eb7Smrg	fi
1263448c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1263548c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1263648c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1263748c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1263848c85eb7Smrg  $as_echo_n "(cached) " >&6
1263948c85eb7Smrgelse
1264048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1264148c85eb7Smrg/* end confdefs.h.  */
1264248c85eb7Smrgint i;
1264348c85eb7Smrg_ACEOF
1264448c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1264548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1264648c85eb7Smrgelse
1264748c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1264848c85eb7Smrgfi
1264948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1265048c85eb7Smrgfi
1265148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1265248c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1265348c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1265448c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1265548c85eb7Smrgfi
1265648c85eb7Smrg
1265748c85eb7Smrgfound="no"
1265848c85eb7Smrg
1265948c85eb7Smrg	if test $found = "no" ; then
1266048c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1266148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1266248c85eb7Smrg		fi
1266348c85eb7Smrg
1266448c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1266548c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1266648c85eb7Smrg		fi
1266748c85eb7Smrg
1266848c85eb7Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
1266948c85eb7Smrg
1267048c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
1267148c85eb7Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
1267248c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
1267348c85eb7Smrg		if eval \${$cacheid+:} false; then :
1267448c85eb7Smrg  $as_echo_n "(cached) " >&6
1267548c85eb7Smrgelse
1267648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1267748c85eb7Smrg/* end confdefs.h.  */
1267848c85eb7Smrgint i;
1267948c85eb7Smrgint
1268048c85eb7Smrgmain ()
1268148c85eb7Smrg{
1268248c85eb7Smrg
1268348c85eb7Smrg  ;
1268448c85eb7Smrg  return 0;
1268548c85eb7Smrg}
1268648c85eb7Smrg_ACEOF
1268748c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1268848c85eb7Smrg  eval $cacheid=yes
1268948c85eb7Smrgelse
1269048c85eb7Smrg  eval $cacheid=no
1269148c85eb7Smrgfi
1269248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1269348c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1269448c85eb7Smrgfi
1269548c85eb7Smrg
1269648c85eb7Smrg
1269748c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1269848c85eb7Smrg
1269948c85eb7Smrg		eval supported=\$$cacheid
1270048c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1270148c85eb7Smrg$as_echo "$supported" >&6; }
1270248c85eb7Smrg		if test "$supported" = "yes" ; then
1270348c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
1270448c85eb7Smrg			found="yes"
1270548c85eb7Smrg		fi
1270648c85eb7Smrg	fi
1270748c85eb7Smrg
1270848c85eb7Smrg
1270948c85eb7Smrg
1271048c85eb7Smrg
1271148c85eb7Smrg
1271248c85eb7Smrg
1271348c85eb7Smrg
1271448c85eb7Smrg
1271548c85eb7Smrg
1271648c85eb7Smrg
1271748c85eb7Smrg
1271848c85eb7Smrg
1271948c85eb7Smrg
1272048c85eb7Smrg
1272148c85eb7Smrg
1272248c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1272348c85eb7Smrg
1272448c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1272548c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1272648c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1272748c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1272848c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1272948c85eb7Smrg  $as_echo_n "(cached) " >&6
1273048c85eb7Smrgelse
1273148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1273248c85eb7Smrg/* end confdefs.h.  */
1273348c85eb7Smrgint i;
1273448c85eb7Smrg_ACEOF
1273548c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1273648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1273748c85eb7Smrgelse
1273848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1273948c85eb7Smrgfi
1274048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1274148c85eb7Smrgfi
1274248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1274348c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1274448c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1274548c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1274648c85eb7Smrgfi
1274748c85eb7Smrg
1274848c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1274948c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1275048c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1275148c85eb7Smrg	fi
1275248c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1275348c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1275448c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1275548c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1275648c85eb7Smrg  $as_echo_n "(cached) " >&6
1275748c85eb7Smrgelse
1275848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1275948c85eb7Smrg/* end confdefs.h.  */
1276048c85eb7Smrgint i;
1276148c85eb7Smrg_ACEOF
1276248c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1276348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1276448c85eb7Smrgelse
1276548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1276648c85eb7Smrgfi
1276748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1276848c85eb7Smrgfi
1276948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1277048c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1277148c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1277248c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1277348c85eb7Smrgfi
1277448c85eb7Smrg
1277548c85eb7Smrgfound="no"
1277648c85eb7Smrg
1277748c85eb7Smrg	if test $found = "no" ; then
1277848c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1277948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1278048c85eb7Smrg		fi
1278148c85eb7Smrg
1278248c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1278348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1278448c85eb7Smrg		fi
1278548c85eb7Smrg
1278648c85eb7Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
1278748c85eb7Smrg
1278848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
1278948c85eb7Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
1279048c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
1279148c85eb7Smrg		if eval \${$cacheid+:} false; then :
1279248c85eb7Smrg  $as_echo_n "(cached) " >&6
1279348c85eb7Smrgelse
1279448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1279548c85eb7Smrg/* end confdefs.h.  */
1279648c85eb7Smrgint i;
1279748c85eb7Smrgint
1279848c85eb7Smrgmain ()
1279948c85eb7Smrg{
1280048c85eb7Smrg
1280148c85eb7Smrg  ;
1280248c85eb7Smrg  return 0;
1280348c85eb7Smrg}
1280448c85eb7Smrg_ACEOF
1280548c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1280648c85eb7Smrg  eval $cacheid=yes
1280748c85eb7Smrgelse
1280848c85eb7Smrg  eval $cacheid=no
1280948c85eb7Smrgfi
1281048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1281148c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1281248c85eb7Smrgfi
1281348c85eb7Smrg
1281448c85eb7Smrg
1281548c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1281648c85eb7Smrg
1281748c85eb7Smrg		eval supported=\$$cacheid
1281848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1281948c85eb7Smrg$as_echo "$supported" >&6; }
1282048c85eb7Smrg		if test "$supported" = "yes" ; then
1282148c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
1282248c85eb7Smrg			found="yes"
1282348c85eb7Smrg		fi
1282448c85eb7Smrg	fi
1282548c85eb7Smrg
1282648c85eb7Smrg
1282748c85eb7Smrg
1282848c85eb7Smrg
1282948c85eb7Smrg
1283048c85eb7Smrg
1283148c85eb7Smrg
1283248c85eb7Smrg
1283348c85eb7Smrg
1283448c85eb7Smrg
1283548c85eb7Smrg
1283648c85eb7Smrg
1283748c85eb7Smrg
1283848c85eb7Smrg
1283948c85eb7Smrg
1284048c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1284148c85eb7Smrg
1284248c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1284348c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1284448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1284548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1284648c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1284748c85eb7Smrg  $as_echo_n "(cached) " >&6
1284848c85eb7Smrgelse
1284948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1285048c85eb7Smrg/* end confdefs.h.  */
1285148c85eb7Smrgint i;
1285248c85eb7Smrg_ACEOF
1285348c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1285448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1285548c85eb7Smrgelse
1285648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1285748c85eb7Smrgfi
1285848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1285948c85eb7Smrgfi
1286048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1286148c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1286248c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1286348c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1286448c85eb7Smrgfi
1286548c85eb7Smrg
1286648c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1286748c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1286848c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1286948c85eb7Smrg	fi
1287048c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1287148c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1287248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1287348c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1287448c85eb7Smrg  $as_echo_n "(cached) " >&6
1287548c85eb7Smrgelse
1287648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1287748c85eb7Smrg/* end confdefs.h.  */
1287848c85eb7Smrgint i;
1287948c85eb7Smrg_ACEOF
1288048c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1288148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1288248c85eb7Smrgelse
1288348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1288448c85eb7Smrgfi
1288548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1288648c85eb7Smrgfi
1288748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1288848c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1288948c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1289048c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1289148c85eb7Smrgfi
1289248c85eb7Smrg
1289348c85eb7Smrgfound="no"
1289448c85eb7Smrg
1289548c85eb7Smrg	if test $found = "no" ; then
1289648c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1289748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1289848c85eb7Smrg		fi
1289948c85eb7Smrg
1290048c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1290148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1290248c85eb7Smrg		fi
1290348c85eb7Smrg
1290448c85eb7Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
1290548c85eb7Smrg
1290648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
1290748c85eb7Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
1290848c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
1290948c85eb7Smrg		if eval \${$cacheid+:} false; then :
1291048c85eb7Smrg  $as_echo_n "(cached) " >&6
1291148c85eb7Smrgelse
1291248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1291348c85eb7Smrg/* end confdefs.h.  */
1291448c85eb7Smrgint i;
1291548c85eb7Smrgint
1291648c85eb7Smrgmain ()
1291748c85eb7Smrg{
1291848c85eb7Smrg
1291948c85eb7Smrg  ;
1292048c85eb7Smrg  return 0;
1292148c85eb7Smrg}
1292248c85eb7Smrg_ACEOF
1292348c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1292448c85eb7Smrg  eval $cacheid=yes
1292548c85eb7Smrgelse
1292648c85eb7Smrg  eval $cacheid=no
1292748c85eb7Smrgfi
1292848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1292948c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1293048c85eb7Smrgfi
1293148c85eb7Smrg
1293248c85eb7Smrg
1293348c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1293448c85eb7Smrg
1293548c85eb7Smrg		eval supported=\$$cacheid
1293648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1293748c85eb7Smrg$as_echo "$supported" >&6; }
1293848c85eb7Smrg		if test "$supported" = "yes" ; then
1293948c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
1294048c85eb7Smrg			found="yes"
1294148c85eb7Smrg		fi
1294248c85eb7Smrg	fi
1294348c85eb7Smrg
1294448c85eb7Smrg
1294548c85eb7Smrg
1294648c85eb7Smrg
1294748c85eb7Smrg
1294848c85eb7Smrg# This chunk adds additional warnings that could catch undesired effects.
1294948c85eb7Smrg
1295048c85eb7Smrg
1295148c85eb7Smrg
1295248c85eb7Smrg
1295348c85eb7Smrg
1295448c85eb7Smrg
1295548c85eb7Smrg
1295648c85eb7Smrg
1295748c85eb7Smrg
1295848c85eb7Smrg
1295948c85eb7Smrg
1296048c85eb7Smrg
1296148c85eb7Smrg
1296248c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1296348c85eb7Smrg
1296448c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1296548c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1296648c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1296748c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1296848c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1296948c85eb7Smrg  $as_echo_n "(cached) " >&6
1297048c85eb7Smrgelse
1297148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1297248c85eb7Smrg/* end confdefs.h.  */
1297348c85eb7Smrgint i;
1297448c85eb7Smrg_ACEOF
1297548c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1297648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1297748c85eb7Smrgelse
1297848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1297948c85eb7Smrgfi
1298048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1298148c85eb7Smrgfi
1298248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1298348c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1298448c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1298548c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1298648c85eb7Smrgfi
1298748c85eb7Smrg
1298848c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1298948c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1299048c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1299148c85eb7Smrg	fi
1299248c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1299348c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1299448c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1299548c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1299648c85eb7Smrg  $as_echo_n "(cached) " >&6
1299748c85eb7Smrgelse
1299848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1299948c85eb7Smrg/* end confdefs.h.  */
1300048c85eb7Smrgint i;
1300148c85eb7Smrg_ACEOF
1300248c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1300348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1300448c85eb7Smrgelse
1300548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1300648c85eb7Smrgfi
1300748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1300848c85eb7Smrgfi
1300948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1301048c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1301148c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1301248c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1301348c85eb7Smrgfi
1301448c85eb7Smrg
1301548c85eb7Smrgfound="no"
1301648c85eb7Smrg
1301748c85eb7Smrg	if test $found = "no" ; then
1301848c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1301948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1302048c85eb7Smrg		fi
1302148c85eb7Smrg
1302248c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1302348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1302448c85eb7Smrg		fi
1302548c85eb7Smrg
1302648c85eb7Smrg		CFLAGS="$CFLAGS -Wunused"
1302748c85eb7Smrg
1302848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
1302948c85eb7Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; }
1303048c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wunused
1303148c85eb7Smrg		if eval \${$cacheid+:} false; then :
1303248c85eb7Smrg  $as_echo_n "(cached) " >&6
1303348c85eb7Smrgelse
1303448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1303548c85eb7Smrg/* end confdefs.h.  */
1303648c85eb7Smrgint i;
1303748c85eb7Smrgint
1303848c85eb7Smrgmain ()
1303948c85eb7Smrg{
1304048c85eb7Smrg
1304148c85eb7Smrg  ;
1304248c85eb7Smrg  return 0;
1304348c85eb7Smrg}
1304448c85eb7Smrg_ACEOF
1304548c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1304648c85eb7Smrg  eval $cacheid=yes
1304748c85eb7Smrgelse
1304848c85eb7Smrg  eval $cacheid=no
1304948c85eb7Smrgfi
1305048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1305148c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1305248c85eb7Smrgfi
1305348c85eb7Smrg
1305448c85eb7Smrg
1305548c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1305648c85eb7Smrg
1305748c85eb7Smrg		eval supported=\$$cacheid
1305848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1305948c85eb7Smrg$as_echo "$supported" >&6; }
1306048c85eb7Smrg		if test "$supported" = "yes" ; then
1306148c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
1306248c85eb7Smrg			found="yes"
1306348c85eb7Smrg		fi
1306448c85eb7Smrg	fi
1306548c85eb7Smrg
1306648c85eb7Smrg
1306748c85eb7Smrg
1306848c85eb7Smrg
1306948c85eb7Smrg
1307048c85eb7Smrg
1307148c85eb7Smrg
1307248c85eb7Smrg
1307348c85eb7Smrg
1307448c85eb7Smrg
1307548c85eb7Smrg
1307648c85eb7Smrg
1307748c85eb7Smrg
1307848c85eb7Smrg
1307948c85eb7Smrg
1308048c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1308148c85eb7Smrg
1308248c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1308348c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1308448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1308548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1308648c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1308748c85eb7Smrg  $as_echo_n "(cached) " >&6
1308848c85eb7Smrgelse
1308948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1309048c85eb7Smrg/* end confdefs.h.  */
1309148c85eb7Smrgint i;
1309248c85eb7Smrg_ACEOF
1309348c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1309448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1309548c85eb7Smrgelse
1309648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1309748c85eb7Smrgfi
1309848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1309948c85eb7Smrgfi
1310048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1310148c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1310248c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1310348c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1310448c85eb7Smrgfi
1310548c85eb7Smrg
1310648c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1310748c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1310848c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1310948c85eb7Smrg	fi
1311048c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1311148c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1311248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1311348c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1311448c85eb7Smrg  $as_echo_n "(cached) " >&6
1311548c85eb7Smrgelse
1311648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1311748c85eb7Smrg/* end confdefs.h.  */
1311848c85eb7Smrgint i;
1311948c85eb7Smrg_ACEOF
1312048c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1312148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1312248c85eb7Smrgelse
1312348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1312448c85eb7Smrgfi
1312548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1312648c85eb7Smrgfi
1312748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1312848c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1312948c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1313048c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1313148c85eb7Smrgfi
1313248c85eb7Smrg
1313348c85eb7Smrgfound="no"
1313448c85eb7Smrg
1313548c85eb7Smrg	if test $found = "no" ; then
1313648c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1313748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1313848c85eb7Smrg		fi
1313948c85eb7Smrg
1314048c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1314148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1314248c85eb7Smrg		fi
1314348c85eb7Smrg
1314448c85eb7Smrg		CFLAGS="$CFLAGS -Wuninitialized"
1314548c85eb7Smrg
1314648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
1314748c85eb7Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
1314848c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
1314948c85eb7Smrg		if eval \${$cacheid+:} false; then :
1315048c85eb7Smrg  $as_echo_n "(cached) " >&6
1315148c85eb7Smrgelse
1315248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1315348c85eb7Smrg/* end confdefs.h.  */
1315448c85eb7Smrgint i;
1315548c85eb7Smrgint
1315648c85eb7Smrgmain ()
1315748c85eb7Smrg{
1315848c85eb7Smrg
1315948c85eb7Smrg  ;
1316048c85eb7Smrg  return 0;
1316148c85eb7Smrg}
1316248c85eb7Smrg_ACEOF
1316348c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1316448c85eb7Smrg  eval $cacheid=yes
1316548c85eb7Smrgelse
1316648c85eb7Smrg  eval $cacheid=no
1316748c85eb7Smrgfi
1316848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1316948c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1317048c85eb7Smrgfi
1317148c85eb7Smrg
1317248c85eb7Smrg
1317348c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1317448c85eb7Smrg
1317548c85eb7Smrg		eval supported=\$$cacheid
1317648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1317748c85eb7Smrg$as_echo "$supported" >&6; }
1317848c85eb7Smrg		if test "$supported" = "yes" ; then
1317948c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
1318048c85eb7Smrg			found="yes"
1318148c85eb7Smrg		fi
1318248c85eb7Smrg	fi
1318348c85eb7Smrg
1318448c85eb7Smrg
1318548c85eb7Smrg
1318648c85eb7Smrg
1318748c85eb7Smrg
1318848c85eb7Smrg
1318948c85eb7Smrg
1319048c85eb7Smrg
1319148c85eb7Smrg
1319248c85eb7Smrg
1319348c85eb7Smrg
1319448c85eb7Smrg
1319548c85eb7Smrg
1319648c85eb7Smrg
1319748c85eb7Smrg
1319848c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1319948c85eb7Smrg
1320048c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1320148c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1320248c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1320348c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1320448c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1320548c85eb7Smrg  $as_echo_n "(cached) " >&6
1320648c85eb7Smrgelse
1320748c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1320848c85eb7Smrg/* end confdefs.h.  */
1320948c85eb7Smrgint i;
1321048c85eb7Smrg_ACEOF
1321148c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1321248c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1321348c85eb7Smrgelse
1321448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1321548c85eb7Smrgfi
1321648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1321748c85eb7Smrgfi
1321848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1321948c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1322048c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1322148c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1322248c85eb7Smrgfi
1322348c85eb7Smrg
1322448c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1322548c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1322648c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1322748c85eb7Smrg	fi
1322848c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1322948c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1323048c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1323148c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1323248c85eb7Smrg  $as_echo_n "(cached) " >&6
1323348c85eb7Smrgelse
1323448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1323548c85eb7Smrg/* end confdefs.h.  */
1323648c85eb7Smrgint i;
1323748c85eb7Smrg_ACEOF
1323848c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1323948c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1324048c85eb7Smrgelse
1324148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1324248c85eb7Smrgfi
1324348c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1324448c85eb7Smrgfi
1324548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1324648c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1324748c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1324848c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1324948c85eb7Smrgfi
1325048c85eb7Smrg
1325148c85eb7Smrgfound="no"
1325248c85eb7Smrg
1325348c85eb7Smrg	if test $found = "no" ; then
1325448c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1325548c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1325648c85eb7Smrg		fi
1325748c85eb7Smrg
1325848c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1325948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1326048c85eb7Smrg		fi
1326148c85eb7Smrg
1326248c85eb7Smrg		CFLAGS="$CFLAGS -Wshadow"
1326348c85eb7Smrg
1326448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
1326548c85eb7Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
1326648c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wshadow
1326748c85eb7Smrg		if eval \${$cacheid+:} false; then :
1326848c85eb7Smrg  $as_echo_n "(cached) " >&6
1326948c85eb7Smrgelse
1327048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1327148c85eb7Smrg/* end confdefs.h.  */
1327248c85eb7Smrgint i;
1327348c85eb7Smrgint
1327448c85eb7Smrgmain ()
1327548c85eb7Smrg{
1327648c85eb7Smrg
1327748c85eb7Smrg  ;
1327848c85eb7Smrg  return 0;
1327948c85eb7Smrg}
1328048c85eb7Smrg_ACEOF
1328148c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1328248c85eb7Smrg  eval $cacheid=yes
1328348c85eb7Smrgelse
1328448c85eb7Smrg  eval $cacheid=no
1328548c85eb7Smrgfi
1328648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1328748c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1328848c85eb7Smrgfi
1328948c85eb7Smrg
1329048c85eb7Smrg
1329148c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1329248c85eb7Smrg
1329348c85eb7Smrg		eval supported=\$$cacheid
1329448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1329548c85eb7Smrg$as_echo "$supported" >&6; }
1329648c85eb7Smrg		if test "$supported" = "yes" ; then
1329748c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
1329848c85eb7Smrg			found="yes"
1329948c85eb7Smrg		fi
1330048c85eb7Smrg	fi
1330148c85eb7Smrg
1330248c85eb7Smrg
1330348c85eb7Smrg
1330448c85eb7Smrg
1330548c85eb7Smrg
1330648c85eb7Smrg
1330748c85eb7Smrg
1330848c85eb7Smrg
1330948c85eb7Smrg
1331048c85eb7Smrg
1331148c85eb7Smrg
1331248c85eb7Smrg
1331348c85eb7Smrg
1331448c85eb7Smrg
1331548c85eb7Smrg
1331648c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1331748c85eb7Smrg
1331848c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1331948c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1332048c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1332148c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1332248c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1332348c85eb7Smrg  $as_echo_n "(cached) " >&6
1332448c85eb7Smrgelse
1332548c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1332648c85eb7Smrg/* end confdefs.h.  */
1332748c85eb7Smrgint i;
1332848c85eb7Smrg_ACEOF
1332948c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1333048c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1333148c85eb7Smrgelse
1333248c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1333348c85eb7Smrgfi
1333448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1333548c85eb7Smrgfi
1333648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1333748c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1333848c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1333948c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1334048c85eb7Smrgfi
1334148c85eb7Smrg
1334248c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1334348c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1334448c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1334548c85eb7Smrg	fi
1334648c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1334748c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1334848c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1334948c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1335048c85eb7Smrg  $as_echo_n "(cached) " >&6
1335148c85eb7Smrgelse
1335248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1335348c85eb7Smrg/* end confdefs.h.  */
1335448c85eb7Smrgint i;
1335548c85eb7Smrg_ACEOF
1335648c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1335748c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1335848c85eb7Smrgelse
1335948c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1336048c85eb7Smrgfi
1336148c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1336248c85eb7Smrgfi
1336348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1336448c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1336548c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1336648c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1336748c85eb7Smrgfi
1336848c85eb7Smrg
1336948c85eb7Smrgfound="no"
1337048c85eb7Smrg
1337148c85eb7Smrg	if test $found = "no" ; then
1337248c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1337348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1337448c85eb7Smrg		fi
1337548c85eb7Smrg
1337648c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1337748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1337848c85eb7Smrg		fi
1337948c85eb7Smrg
1338048c85eb7Smrg		CFLAGS="$CFLAGS -Wcast-qual"
1338148c85eb7Smrg
1338248c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
1338348c85eb7Smrg$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
1338448c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wcast_qual
1338548c85eb7Smrg		if eval \${$cacheid+:} false; then :
1338648c85eb7Smrg  $as_echo_n "(cached) " >&6
1338748c85eb7Smrgelse
1338848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1338948c85eb7Smrg/* end confdefs.h.  */
1339048c85eb7Smrgint i;
1339148c85eb7Smrgint
1339248c85eb7Smrgmain ()
1339348c85eb7Smrg{
1339448c85eb7Smrg
1339548c85eb7Smrg  ;
1339648c85eb7Smrg  return 0;
1339748c85eb7Smrg}
1339848c85eb7Smrg_ACEOF
1339948c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1340048c85eb7Smrg  eval $cacheid=yes
1340148c85eb7Smrgelse
1340248c85eb7Smrg  eval $cacheid=no
1340348c85eb7Smrgfi
1340448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1340548c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1340648c85eb7Smrgfi
1340748c85eb7Smrg
1340848c85eb7Smrg
1340948c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1341048c85eb7Smrg
1341148c85eb7Smrg		eval supported=\$$cacheid
1341248c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1341348c85eb7Smrg$as_echo "$supported" >&6; }
1341448c85eb7Smrg		if test "$supported" = "yes" ; then
1341548c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
1341648c85eb7Smrg			found="yes"
1341748c85eb7Smrg		fi
1341848c85eb7Smrg	fi
1341948c85eb7Smrg
1342048c85eb7Smrg
1342148c85eb7Smrg
1342248c85eb7Smrg
1342348c85eb7Smrg
1342448c85eb7Smrg
1342548c85eb7Smrg
1342648c85eb7Smrg
1342748c85eb7Smrg
1342848c85eb7Smrg
1342948c85eb7Smrg
1343048c85eb7Smrg
1343148c85eb7Smrg
1343248c85eb7Smrg
1343348c85eb7Smrg
1343448c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1343548c85eb7Smrg
1343648c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1343748c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1343848c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1343948c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1344048c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1344148c85eb7Smrg  $as_echo_n "(cached) " >&6
1344248c85eb7Smrgelse
1344348c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1344448c85eb7Smrg/* end confdefs.h.  */
1344548c85eb7Smrgint i;
1344648c85eb7Smrg_ACEOF
1344748c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1344848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1344948c85eb7Smrgelse
1345048c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1345148c85eb7Smrgfi
1345248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1345348c85eb7Smrgfi
1345448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1345548c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1345648c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1345748c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1345848c85eb7Smrgfi
1345948c85eb7Smrg
1346048c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1346148c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1346248c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1346348c85eb7Smrg	fi
1346448c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1346548c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1346648c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1346748c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1346848c85eb7Smrg  $as_echo_n "(cached) " >&6
1346948c85eb7Smrgelse
1347048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1347148c85eb7Smrg/* end confdefs.h.  */
1347248c85eb7Smrgint i;
1347348c85eb7Smrg_ACEOF
1347448c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1347548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1347648c85eb7Smrgelse
1347748c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1347848c85eb7Smrgfi
1347948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1348048c85eb7Smrgfi
1348148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1348248c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1348348c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1348448c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1348548c85eb7Smrgfi
1348648c85eb7Smrg
1348748c85eb7Smrgfound="no"
1348848c85eb7Smrg
1348948c85eb7Smrg	if test $found = "no" ; then
1349048c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1349148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1349248c85eb7Smrg		fi
1349348c85eb7Smrg
1349448c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1349548c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1349648c85eb7Smrg		fi
1349748c85eb7Smrg
1349848c85eb7Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
1349948c85eb7Smrg
1350048c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
1350148c85eb7Smrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
1350248c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
1350348c85eb7Smrg		if eval \${$cacheid+:} false; then :
1350448c85eb7Smrg  $as_echo_n "(cached) " >&6
1350548c85eb7Smrgelse
1350648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1350748c85eb7Smrg/* end confdefs.h.  */
1350848c85eb7Smrgint i;
1350948c85eb7Smrgint
1351048c85eb7Smrgmain ()
1351148c85eb7Smrg{
1351248c85eb7Smrg
1351348c85eb7Smrg  ;
1351448c85eb7Smrg  return 0;
1351548c85eb7Smrg}
1351648c85eb7Smrg_ACEOF
1351748c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1351848c85eb7Smrg  eval $cacheid=yes
1351948c85eb7Smrgelse
1352048c85eb7Smrg  eval $cacheid=no
1352148c85eb7Smrgfi
1352248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1352348c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1352448c85eb7Smrgfi
1352548c85eb7Smrg
1352648c85eb7Smrg
1352748c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1352848c85eb7Smrg
1352948c85eb7Smrg		eval supported=\$$cacheid
1353048c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1353148c85eb7Smrg$as_echo "$supported" >&6; }
1353248c85eb7Smrg		if test "$supported" = "yes" ; then
1353348c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
1353448c85eb7Smrg			found="yes"
1353548c85eb7Smrg		fi
1353648c85eb7Smrg	fi
1353748c85eb7Smrg
1353848c85eb7Smrg
1353948c85eb7Smrg
1354048c85eb7Smrg
1354148c85eb7Smrg
1354248c85eb7Smrg
1354348c85eb7Smrg
1354448c85eb7Smrg
1354548c85eb7Smrg
1354648c85eb7Smrg
1354748c85eb7Smrg
1354848c85eb7Smrg
1354948c85eb7Smrg
1355048c85eb7Smrg
1355148c85eb7Smrg
1355248c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1355348c85eb7Smrg
1355448c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1355548c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1355648c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1355748c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1355848c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1355948c85eb7Smrg  $as_echo_n "(cached) " >&6
1356048c85eb7Smrgelse
1356148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1356248c85eb7Smrg/* end confdefs.h.  */
1356348c85eb7Smrgint i;
1356448c85eb7Smrg_ACEOF
1356548c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1356648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1356748c85eb7Smrgelse
1356848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1356948c85eb7Smrgfi
1357048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1357148c85eb7Smrgfi
1357248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1357348c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1357448c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1357548c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1357648c85eb7Smrgfi
1357748c85eb7Smrg
1357848c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1357948c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1358048c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1358148c85eb7Smrg	fi
1358248c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1358348c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1358448c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1358548c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1358648c85eb7Smrg  $as_echo_n "(cached) " >&6
1358748c85eb7Smrgelse
1358848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1358948c85eb7Smrg/* end confdefs.h.  */
1359048c85eb7Smrgint i;
1359148c85eb7Smrg_ACEOF
1359248c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1359348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1359448c85eb7Smrgelse
1359548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1359648c85eb7Smrgfi
1359748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1359848c85eb7Smrgfi
1359948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1360048c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1360148c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1360248c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1360348c85eb7Smrgfi
1360448c85eb7Smrg
1360548c85eb7Smrgfound="no"
1360648c85eb7Smrg
1360748c85eb7Smrg	if test $found = "no" ; then
1360848c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1360948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1361048c85eb7Smrg		fi
1361148c85eb7Smrg
1361248c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1361348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1361448c85eb7Smrg		fi
1361548c85eb7Smrg
1361648c85eb7Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
1361748c85eb7Smrg
1361848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
1361948c85eb7Smrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
1362048c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
1362148c85eb7Smrg		if eval \${$cacheid+:} false; then :
1362248c85eb7Smrg  $as_echo_n "(cached) " >&6
1362348c85eb7Smrgelse
1362448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1362548c85eb7Smrg/* end confdefs.h.  */
1362648c85eb7Smrgint i;
1362748c85eb7Smrgint
1362848c85eb7Smrgmain ()
1362948c85eb7Smrg{
1363048c85eb7Smrg
1363148c85eb7Smrg  ;
1363248c85eb7Smrg  return 0;
1363348c85eb7Smrg}
1363448c85eb7Smrg_ACEOF
1363548c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1363648c85eb7Smrg  eval $cacheid=yes
1363748c85eb7Smrgelse
1363848c85eb7Smrg  eval $cacheid=no
1363948c85eb7Smrgfi
1364048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1364148c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1364248c85eb7Smrgfi
1364348c85eb7Smrg
1364448c85eb7Smrg
1364548c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1364648c85eb7Smrg
1364748c85eb7Smrg		eval supported=\$$cacheid
1364848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1364948c85eb7Smrg$as_echo "$supported" >&6; }
1365048c85eb7Smrg		if test "$supported" = "yes" ; then
1365148c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
1365248c85eb7Smrg			found="yes"
1365348c85eb7Smrg		fi
1365448c85eb7Smrg	fi
1365548c85eb7Smrg
1365648c85eb7Smrg
1365748c85eb7Smrg
1365848c85eb7Smrg
1365948c85eb7Smrg
1366048c85eb7Smrg
1366148c85eb7Smrg
1366248c85eb7Smrg
1366348c85eb7Smrg
1366448c85eb7Smrg
1366548c85eb7Smrg
1366648c85eb7Smrg
1366748c85eb7Smrg
1366848c85eb7Smrg
1366948c85eb7Smrg
1367048c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1367148c85eb7Smrg
1367248c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1367348c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1367448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1367548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1367648c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1367748c85eb7Smrg  $as_echo_n "(cached) " >&6
1367848c85eb7Smrgelse
1367948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1368048c85eb7Smrg/* end confdefs.h.  */
1368148c85eb7Smrgint i;
1368248c85eb7Smrg_ACEOF
1368348c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1368448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1368548c85eb7Smrgelse
1368648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1368748c85eb7Smrgfi
1368848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1368948c85eb7Smrgfi
1369048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1369148c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1369248c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1369348c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1369448c85eb7Smrgfi
1369548c85eb7Smrg
1369648c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1369748c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1369848c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1369948c85eb7Smrg	fi
1370048c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1370148c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1370248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1370348c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1370448c85eb7Smrg  $as_echo_n "(cached) " >&6
1370548c85eb7Smrgelse
1370648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1370748c85eb7Smrg/* end confdefs.h.  */
1370848c85eb7Smrgint i;
1370948c85eb7Smrg_ACEOF
1371048c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1371148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1371248c85eb7Smrgelse
1371348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1371448c85eb7Smrgfi
1371548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1371648c85eb7Smrgfi
1371748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1371848c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1371948c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1372048c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1372148c85eb7Smrgfi
1372248c85eb7Smrg
1372348c85eb7Smrgfound="no"
1372448c85eb7Smrg
1372548c85eb7Smrg	if test $found = "no" ; then
1372648c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1372748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1372848c85eb7Smrg		fi
1372948c85eb7Smrg
1373048c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1373148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1373248c85eb7Smrg		fi
1373348c85eb7Smrg
1373448c85eb7Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
1373548c85eb7Smrg
1373648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
1373748c85eb7Smrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
1373848c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
1373948c85eb7Smrg		if eval \${$cacheid+:} false; then :
1374048c85eb7Smrg  $as_echo_n "(cached) " >&6
1374148c85eb7Smrgelse
1374248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1374348c85eb7Smrg/* end confdefs.h.  */
1374448c85eb7Smrgint i;
1374548c85eb7Smrgint
1374648c85eb7Smrgmain ()
1374748c85eb7Smrg{
13748d63fdb69Smrg
1374948c85eb7Smrg  ;
1375048c85eb7Smrg  return 0;
1375148c85eb7Smrg}
1375248c85eb7Smrg_ACEOF
1375348c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1375448c85eb7Smrg  eval $cacheid=yes
1375548c85eb7Smrgelse
1375648c85eb7Smrg  eval $cacheid=no
1375748c85eb7Smrgfi
1375848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1375948c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1376048c85eb7Smrgfi
13761d63fdb69Smrg
137623da084b3Smrg
1376348c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
13764d63fdb69Smrg
1376548c85eb7Smrg		eval supported=\$$cacheid
1376648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1376748c85eb7Smrg$as_echo "$supported" >&6; }
1376848c85eb7Smrg		if test "$supported" = "yes" ; then
1376948c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
1377048c85eb7Smrg			found="yes"
1377148c85eb7Smrg		fi
1377248c85eb7Smrg	fi
13773d63fdb69Smrg
13774d63fdb69Smrg
13775d63fdb69Smrg
1377648c85eb7Smrg# These are currently disabled because they are noisy.  They will be enabled
1377748c85eb7Smrg# in the future once the codebase is sufficiently modernized to silence
1377848c85eb7Smrg# them.  For now, I don't want them to drown out the other warnings.
1377948c85eb7Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
1378048c85eb7Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
1378148c85eb7Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13782d63fdb69Smrg
1378348c85eb7Smrg# Turn some warnings into errors, so we don't accidently get successful builds
1378448c85eb7Smrg# when there are problems that should be fixed.
13785d63fdb69Smrg
1378648c85eb7Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
13787d63fdb69Smrg
13788d63fdb69Smrg
13789d63fdb69Smrg
1379048c85eb7Smrg
1379148c85eb7Smrg
1379248c85eb7Smrg
1379348c85eb7Smrg
1379448c85eb7Smrg
1379548c85eb7Smrg
1379648c85eb7Smrg
1379748c85eb7Smrg
1379848c85eb7Smrg
1379948c85eb7Smrg
1380048c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1380148c85eb7Smrg
1380248c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1380348c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1380448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1380548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1380648c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1380748c85eb7Smrg  $as_echo_n "(cached) " >&6
1380848c85eb7Smrgelse
1380948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1381048c85eb7Smrg/* end confdefs.h.  */
1381148c85eb7Smrgint i;
1381248c85eb7Smrg_ACEOF
1381348c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1381448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1381548c85eb7Smrgelse
1381648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1381748c85eb7Smrgfi
1381848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1381948c85eb7Smrgfi
1382048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1382148c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1382248c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1382348c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13824d63fdb69Smrgfi
138253da084b3Smrg
1382648c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1382748c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1382848c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1382948c85eb7Smrg	fi
1383048c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1383148c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1383248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1383348c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1383448c85eb7Smrg  $as_echo_n "(cached) " >&6
13835d63fdb69Smrgelse
1383648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1383748c85eb7Smrg/* end confdefs.h.  */
1383848c85eb7Smrgint i;
1383948c85eb7Smrg_ACEOF
1384048c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1384148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1384248c85eb7Smrgelse
1384348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1384448c85eb7Smrgfi
1384548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1384648c85eb7Smrgfi
1384748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1384848c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1384948c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1385048c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13851d63fdb69Smrgfi
138523da084b3Smrg
1385348c85eb7Smrgfound="no"
138543da084b3Smrg
1385548c85eb7Smrg	if test $found = "no" ; then
1385648c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1385748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1385848c85eb7Smrg		fi
138593da084b3Smrg
1386048c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1386148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1386248c85eb7Smrg		fi
138633da084b3Smrg
1386448c85eb7Smrg		CFLAGS="$CFLAGS -Werror=implicit"
138653da084b3Smrg
1386648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
1386748c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
1386848c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
1386948c85eb7Smrg		if eval \${$cacheid+:} false; then :
13870d63fdb69Smrg  $as_echo_n "(cached) " >&6
13871d63fdb69Smrgelse
1387248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1387348c85eb7Smrg/* end confdefs.h.  */
1387448c85eb7Smrgint i;
1387548c85eb7Smrgint
1387648c85eb7Smrgmain ()
1387748c85eb7Smrg{
138783da084b3Smrg
1387948c85eb7Smrg  ;
1388048c85eb7Smrg  return 0;
1388148c85eb7Smrg}
1388248c85eb7Smrg_ACEOF
1388348c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1388448c85eb7Smrg  eval $cacheid=yes
1388548c85eb7Smrgelse
1388648c85eb7Smrg  eval $cacheid=no
1388748c85eb7Smrgfi
1388848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1388948c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1389048c85eb7Smrgfi
13891d63fdb69Smrg
1389248c85eb7Smrg
1389348c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1389448c85eb7Smrg
1389548c85eb7Smrg		eval supported=\$$cacheid
1389648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1389748c85eb7Smrg$as_echo "$supported" >&6; }
1389848c85eb7Smrg		if test "$supported" = "yes" ; then
1389948c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
1390048c85eb7Smrg			found="yes"
1390148c85eb7Smrg		fi
1390248c85eb7Smrg	fi
1390348c85eb7Smrg
1390448c85eb7Smrg	if test $found = "no" ; then
1390548c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1390648c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1390748c85eb7Smrg		fi
1390848c85eb7Smrg
1390948c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1391048c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1391148c85eb7Smrg		fi
1391248c85eb7Smrg
1391348c85eb7Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
1391448c85eb7Smrg
1391548c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
1391648c85eb7Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
1391748c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
1391848c85eb7Smrg		if eval \${$cacheid+:} false; then :
1391948c85eb7Smrg  $as_echo_n "(cached) " >&6
1392048c85eb7Smrgelse
1392148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1392248c85eb7Smrg/* end confdefs.h.  */
1392348c85eb7Smrgint i;
1392448c85eb7Smrgint
1392548c85eb7Smrgmain ()
1392648c85eb7Smrg{
1392748c85eb7Smrg
1392848c85eb7Smrg  ;
1392948c85eb7Smrg  return 0;
1393048c85eb7Smrg}
1393148c85eb7Smrg_ACEOF
1393248c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1393348c85eb7Smrg  eval $cacheid=yes
1393448c85eb7Smrgelse
1393548c85eb7Smrg  eval $cacheid=no
1393648c85eb7Smrgfi
1393748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1393848c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
13939d63fdb69Smrgfi
13940d63fdb69Smrg
1394148c85eb7Smrg
1394248c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1394348c85eb7Smrg
1394448c85eb7Smrg		eval supported=\$$cacheid
1394548c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1394648c85eb7Smrg$as_echo "$supported" >&6; }
1394748c85eb7Smrg		if test "$supported" = "yes" ; then
1394848c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
1394948c85eb7Smrg			found="yes"
1395048c85eb7Smrg		fi
1395148c85eb7Smrg	fi
1395248c85eb7Smrg
1395348c85eb7Smrg
1395448c85eb7Smrg
1395548c85eb7Smrg
1395648c85eb7Smrg
1395748c85eb7Smrg
1395848c85eb7Smrg
1395948c85eb7Smrg
1396048c85eb7Smrg
1396148c85eb7Smrg
1396248c85eb7Smrg
1396348c85eb7Smrg
1396448c85eb7Smrg
1396548c85eb7Smrg
1396648c85eb7Smrg
1396748c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1396848c85eb7Smrg
1396948c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1397048c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1397148c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1397248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1397348c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1397448c85eb7Smrg  $as_echo_n "(cached) " >&6
13975d63fdb69Smrgelse
1397648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1397748c85eb7Smrg/* end confdefs.h.  */
1397848c85eb7Smrgint i;
1397948c85eb7Smrg_ACEOF
1398048c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1398148c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1398248c85eb7Smrgelse
1398348c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1398448c85eb7Smrgfi
1398548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1398648c85eb7Smrgfi
1398748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1398848c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1398948c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1399048c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13991d63fdb69Smrgfi
13992d63fdb69Smrg
1399348c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1399448c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1399548c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1399648c85eb7Smrg	fi
1399748c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1399848c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1399948c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1400048c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1400148c85eb7Smrg  $as_echo_n "(cached) " >&6
1400248c85eb7Smrgelse
1400348c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1400448c85eb7Smrg/* end confdefs.h.  */
1400548c85eb7Smrgint i;
1400648c85eb7Smrg_ACEOF
1400748c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1400848c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1400948c85eb7Smrgelse
1401048c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1401148c85eb7Smrgfi
1401248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1401348c85eb7Smrgfi
1401448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1401548c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1401648c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1401748c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14018d63fdb69Smrgfi
140193da084b3Smrg
1402048c85eb7Smrgfound="no"
140213da084b3Smrg
1402248c85eb7Smrg	if test $found = "no" ; then
1402348c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1402448c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1402548c85eb7Smrg		fi
140263da084b3Smrg
1402748c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1402848c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1402948c85eb7Smrg		fi
140303da084b3Smrg
1403148c85eb7Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
140323da084b3Smrg
1403348c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
1403448c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
1403548c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
1403648c85eb7Smrg		if eval \${$cacheid+:} false; then :
1403748c85eb7Smrg  $as_echo_n "(cached) " >&6
1403848c85eb7Smrgelse
1403948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1404048c85eb7Smrg/* end confdefs.h.  */
1404148c85eb7Smrgint i;
1404248c85eb7Smrgint
1404348c85eb7Smrgmain ()
1404448c85eb7Smrg{
140453da084b3Smrg
1404648c85eb7Smrg  ;
1404748c85eb7Smrg  return 0;
1404848c85eb7Smrg}
1404948c85eb7Smrg_ACEOF
1405048c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1405148c85eb7Smrg  eval $cacheid=yes
1405248c85eb7Smrgelse
1405348c85eb7Smrg  eval $cacheid=no
1405448c85eb7Smrgfi
1405548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1405648c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1405748c85eb7Smrgfi
140583da084b3Smrg
140593da084b3Smrg
1406048c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
140613da084b3Smrg
1406248c85eb7Smrg		eval supported=\$$cacheid
1406348c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1406448c85eb7Smrg$as_echo "$supported" >&6; }
1406548c85eb7Smrg		if test "$supported" = "yes" ; then
1406648c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
1406748c85eb7Smrg			found="yes"
1406848c85eb7Smrg		fi
1406948c85eb7Smrg	fi
140703da084b3Smrg
140713da084b3Smrg
140723da084b3Smrg
140733da084b3Smrg
140743da084b3Smrg
140753da084b3Smrg
140763da084b3Smrg
140773da084b3Smrg
140783da084b3Smrg
140793da084b3Smrg
140803da084b3Smrg
140813da084b3Smrg
140823da084b3Smrg
140833da084b3Smrg
140843da084b3Smrg
1408548c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
140863da084b3Smrg
1408748c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1408848c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1408948c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1409048c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1409148c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14092d63fdb69Smrg  $as_echo_n "(cached) " >&6
140933da084b3Smrgelse
1409448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409548c85eb7Smrg/* end confdefs.h.  */
1409648c85eb7Smrgint i;
1409748c85eb7Smrg_ACEOF
1409848c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1409948c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1410048c85eb7Smrgelse
1410148c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1410248c85eb7Smrgfi
1410348c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1410448c85eb7Smrgfi
1410548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1410648c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1410748c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1410848c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
141093da084b3Smrgfi
141103da084b3Smrg
1411148c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1411248c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1411348c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1411448c85eb7Smrg	fi
1411548c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1411648c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1411748c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1411848c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1411948c85eb7Smrg  $as_echo_n "(cached) " >&6
141203da084b3Smrgelse
1412148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1412248c85eb7Smrg/* end confdefs.h.  */
1412348c85eb7Smrgint i;
1412448c85eb7Smrg_ACEOF
1412548c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1412648c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1412748c85eb7Smrgelse
1412848c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1412948c85eb7Smrgfi
1413048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1413148c85eb7Smrgfi
1413248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1413348c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1413448c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1413548c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
141363da084b3Smrgfi
141373da084b3Smrg
1413848c85eb7Smrgfound="no"
1413948c85eb7Smrg
1414048c85eb7Smrg	if test $found = "no" ; then
1414148c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1414248c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1414348c85eb7Smrg		fi
1414448c85eb7Smrg
1414548c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1414648c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1414748c85eb7Smrg		fi
1414848c85eb7Smrg
1414948c85eb7Smrg		CFLAGS="$CFLAGS -Werror=init-self"
1415048c85eb7Smrg
1415148c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
1415248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
1415348c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
1415448c85eb7Smrg		if eval \${$cacheid+:} false; then :
1415548c85eb7Smrg  $as_echo_n "(cached) " >&6
1415648c85eb7Smrgelse
1415748c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1415848c85eb7Smrg/* end confdefs.h.  */
1415948c85eb7Smrgint i;
1416048c85eb7Smrgint
1416148c85eb7Smrgmain ()
1416248c85eb7Smrg{
1416348c85eb7Smrg
1416448c85eb7Smrg  ;
1416548c85eb7Smrg  return 0;
1416648c85eb7Smrg}
1416748c85eb7Smrg_ACEOF
1416848c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1416948c85eb7Smrg  eval $cacheid=yes
1417048c85eb7Smrgelse
1417148c85eb7Smrg  eval $cacheid=no
1417248c85eb7Smrgfi
1417348c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1417448c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
14175d63fdb69Smrgfi
141763da084b3Smrg
141773da084b3Smrg
1417848c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
141793da084b3Smrg
1418048c85eb7Smrg		eval supported=\$$cacheid
1418148c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1418248c85eb7Smrg$as_echo "$supported" >&6; }
1418348c85eb7Smrg		if test "$supported" = "yes" ; then
1418448c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
1418548c85eb7Smrg			found="yes"
1418648c85eb7Smrg		fi
1418748c85eb7Smrg	fi
141883da084b3Smrg
141893da084b3Smrg
141903da084b3Smrg
141913da084b3Smrg
141923da084b3Smrg
141933da084b3Smrg
141943da084b3Smrg
141953da084b3Smrg
141963da084b3Smrg
141973da084b3Smrg
14198d63fdb69Smrg
1419955acc8fcSmrg
142003da084b3Smrg
142013da084b3Smrg
142023da084b3Smrg
1420348c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
14204d63fdb69Smrg
1420548c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1420648c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1420748c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1420848c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1420948c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1421048c85eb7Smrg  $as_echo_n "(cached) " >&6
1421148c85eb7Smrgelse
1421248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1421348c85eb7Smrg/* end confdefs.h.  */
1421448c85eb7Smrgint i;
1421548c85eb7Smrg_ACEOF
1421648c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1421748c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1421848c85eb7Smrgelse
1421948c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1422048c85eb7Smrgfi
1422148c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1422248c85eb7Smrgfi
1422348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1422448c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1422548c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1422648c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1422748c85eb7Smrgfi
1422848c85eb7Smrg
1422948c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1423048c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1423148c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1423248c85eb7Smrg	fi
1423348c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1423448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1423548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1423648c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1423748c85eb7Smrg  $as_echo_n "(cached) " >&6
1423848c85eb7Smrgelse
1423948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1424048c85eb7Smrg/* end confdefs.h.  */
1424148c85eb7Smrgint i;
1424248c85eb7Smrg_ACEOF
1424348c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1424448c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1424548c85eb7Smrgelse
1424648c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1424748c85eb7Smrgfi
1424848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1424948c85eb7Smrgfi
1425048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1425148c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1425248c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1425348c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1425448c85eb7Smrgfi
142553da084b3Smrg
1425648c85eb7Smrgfound="no"
1425755acc8fcSmrg
1425848c85eb7Smrg	if test $found = "no" ; then
1425948c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1426048c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1426148c85eb7Smrg		fi
142623da084b3Smrg
1426348c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1426448c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1426548c85eb7Smrg		fi
142663da084b3Smrg
1426748c85eb7Smrg		CFLAGS="$CFLAGS -Werror=main"
142683da084b3Smrg
1426948c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
1427048c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
1427148c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
1427248c85eb7Smrg		if eval \${$cacheid+:} false; then :
1427348c85eb7Smrg  $as_echo_n "(cached) " >&6
1427448c85eb7Smrgelse
1427548c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1427648c85eb7Smrg/* end confdefs.h.  */
1427748c85eb7Smrgint i;
1427848c85eb7Smrgint
1427948c85eb7Smrgmain ()
1428048c85eb7Smrg{
142813da084b3Smrg
1428248c85eb7Smrg  ;
1428348c85eb7Smrg  return 0;
1428448c85eb7Smrg}
1428548c85eb7Smrg_ACEOF
1428648c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1428748c85eb7Smrg  eval $cacheid=yes
1428848c85eb7Smrgelse
1428948c85eb7Smrg  eval $cacheid=no
1429048c85eb7Smrgfi
1429148c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1429248c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1429348c85eb7Smrgfi
142943da084b3Smrg
14295d63fdb69Smrg
1429648c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
14297d63fdb69Smrg
1429848c85eb7Smrg		eval supported=\$$cacheid
1429948c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1430048c85eb7Smrg$as_echo "$supported" >&6; }
1430148c85eb7Smrg		if test "$supported" = "yes" ; then
1430248c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
1430348c85eb7Smrg			found="yes"
1430448c85eb7Smrg		fi
1430548c85eb7Smrg	fi
14306d63fdb69Smrg
143073da084b3Smrg
143083da084b3Smrg
143093da084b3Smrg
143103da084b3Smrg
143113da084b3Smrg
143123da084b3Smrg
143133da084b3Smrg
143143da084b3Smrg
143153da084b3Smrg
14316d63fdb69Smrg
14317d63fdb69Smrg
14318d63fdb69Smrg
14319d63fdb69Smrg
14320d63fdb69Smrg
1432148c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
143223da084b3Smrg
1432348c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1432448c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1432548c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1432648c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1432748c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14328d63fdb69Smrg  $as_echo_n "(cached) " >&6
14329d63fdb69Smrgelse
1433048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1433148c85eb7Smrg/* end confdefs.h.  */
1433248c85eb7Smrgint i;
1433348c85eb7Smrg_ACEOF
1433448c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1433548c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1433648c85eb7Smrgelse
1433748c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1433848c85eb7Smrgfi
1433948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1434048c85eb7Smrgfi
1434148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1434248c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1434348c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1434448c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
143453da084b3Smrgfi
143463da084b3Smrg
1434748c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1434848c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1434948c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1435048c85eb7Smrg	fi
1435148c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1435248c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1435348c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1435448c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1435548c85eb7Smrg  $as_echo_n "(cached) " >&6
1435648c85eb7Smrgelse
1435748c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1435848c85eb7Smrg/* end confdefs.h.  */
1435948c85eb7Smrgint i;
1436048c85eb7Smrg_ACEOF
1436148c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1436248c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
143633da084b3Smrgelse
1436448c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
143653da084b3Smrgfi
1436648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1436748c85eb7Smrgfi
1436848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1436948c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1437048c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1437148c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
143723da084b3Smrgfi
14373d63fdb69Smrg
1437448c85eb7Smrgfound="no"
14375d63fdb69Smrg
1437648c85eb7Smrg	if test $found = "no" ; then
1437748c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1437848c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1437948c85eb7Smrg		fi
14380d63fdb69Smrg
1438148c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1438248c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1438348c85eb7Smrg		fi
14384d63fdb69Smrg
1438548c85eb7Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
14386d63fdb69Smrg
1438748c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
1438848c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
1438948c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
1439048c85eb7Smrg		if eval \${$cacheid+:} false; then :
14391d63fdb69Smrg  $as_echo_n "(cached) " >&6
143923da084b3Smrgelse
1439348c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1439448c85eb7Smrg/* end confdefs.h.  */
1439548c85eb7Smrgint i;
1439648c85eb7Smrgint
1439748c85eb7Smrgmain ()
1439848c85eb7Smrg{
143993da084b3Smrg
1440048c85eb7Smrg  ;
1440148c85eb7Smrg  return 0;
1440248c85eb7Smrg}
1440348c85eb7Smrg_ACEOF
1440448c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1440548c85eb7Smrg  eval $cacheid=yes
144063da084b3Smrgelse
1440748c85eb7Smrg  eval $cacheid=no
1440848c85eb7Smrgfi
1440948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1441048c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
14411d63fdb69Smrgfi
14412d63fdb69Smrg
14413d63fdb69Smrg
1441448c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
14415d63fdb69Smrg
1441648c85eb7Smrg		eval supported=\$$cacheid
1441748c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1441848c85eb7Smrg$as_echo "$supported" >&6; }
1441948c85eb7Smrg		if test "$supported" = "yes" ; then
1442048c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
1442148c85eb7Smrg			found="yes"
1442248c85eb7Smrg		fi
1442348c85eb7Smrg	fi
14424d63fdb69Smrg
14425d63fdb69Smrg
14426d63fdb69Smrg
14427d63fdb69Smrg
14428d63fdb69Smrg
14429d63fdb69Smrg
14430d63fdb69Smrg
144313da084b3Smrg
144323da084b3Smrg
14433d63fdb69Smrg
14434d63fdb69Smrg
14435d63fdb69Smrg
1443648c85eb7Smrg
1443748c85eb7Smrg
1443848c85eb7Smrg
1443948c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1444048c85eb7Smrg
1444148c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1444248c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1444348c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1444448c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1444548c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14446d63fdb69Smrg  $as_echo_n "(cached) " >&6
144473da084b3Smrgelse
1444848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1444948c85eb7Smrg/* end confdefs.h.  */
1445048c85eb7Smrgint i;
1445148c85eb7Smrg_ACEOF
1445248c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1445348c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1445448c85eb7Smrgelse
1445548c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1445648c85eb7Smrgfi
1445748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1445848c85eb7Smrgfi
1445948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1446048c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1446148c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1446248c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1446348c85eb7Smrgfi
144643da084b3Smrg
1446548c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1446648c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1446748c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1446848c85eb7Smrg	fi
1446948c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1447048c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1447148c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1447248c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1447348c85eb7Smrg  $as_echo_n "(cached) " >&6
1447448c85eb7Smrgelse
1447548c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1447648c85eb7Smrg/* end confdefs.h.  */
1447748c85eb7Smrgint i;
1447848c85eb7Smrg_ACEOF
1447948c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1448048c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1448148c85eb7Smrgelse
1448248c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1448348c85eb7Smrgfi
1448448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1448548c85eb7Smrgfi
1448648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1448748c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1448848c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1448948c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
144903da084b3Smrgfi
14491d63fdb69Smrg
1449248c85eb7Smrgfound="no"
14493d63fdb69Smrg
1449448c85eb7Smrg	if test $found = "no" ; then
1449548c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1449648c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1449748c85eb7Smrg		fi
144983da084b3Smrg
1449948c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1450048c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1450148c85eb7Smrg		fi
145023da084b3Smrg
1450348c85eb7Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
1450448c85eb7Smrg
1450548c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
1450648c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
1450748c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
1450848c85eb7Smrg		if eval \${$cacheid+:} false; then :
1450948c85eb7Smrg  $as_echo_n "(cached) " >&6
145103da084b3Smrgelse
1451148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1451248c85eb7Smrg/* end confdefs.h.  */
1451348c85eb7Smrgint i;
1451448c85eb7Smrgint
1451548c85eb7Smrgmain ()
1451648c85eb7Smrg{
1451748c85eb7Smrg
1451848c85eb7Smrg  ;
1451948c85eb7Smrg  return 0;
1452048c85eb7Smrg}
1452148c85eb7Smrg_ACEOF
1452248c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1452348c85eb7Smrg  eval $cacheid=yes
1452448c85eb7Smrgelse
1452548c85eb7Smrg  eval $cacheid=no
1452648c85eb7Smrgfi
1452748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1452848c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
145293da084b3Smrgfi
145303da084b3Smrg
14531d63fdb69Smrg
1453248c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1453348c85eb7Smrg
1453448c85eb7Smrg		eval supported=\$$cacheid
1453548c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1453648c85eb7Smrg$as_echo "$supported" >&6; }
1453748c85eb7Smrg		if test "$supported" = "yes" ; then
1453848c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
1453948c85eb7Smrg			found="yes"
1454048c85eb7Smrg		fi
1454148c85eb7Smrg	fi
1454248c85eb7Smrg
1454348c85eb7Smrg
14544d63fdb69Smrg
14545d63fdb69Smrg
14546d63fdb69Smrg
14547d63fdb69Smrg
145483da084b3Smrg
145493da084b3Smrg
145503da084b3Smrg
1455155acc8fcSmrg
1455255acc8fcSmrg
145533da084b3Smrg
145543da084b3Smrg
145553da084b3Smrg
145563da084b3Smrg
1455748c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
145583da084b3Smrg
1455948c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1456048c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1456148c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1456248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1456348c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1456448c85eb7Smrg  $as_echo_n "(cached) " >&6
1456548c85eb7Smrgelse
1456648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1456748c85eb7Smrg/* end confdefs.h.  */
1456848c85eb7Smrgint i;
1456948c85eb7Smrg_ACEOF
1457048c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1457148c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1457248c85eb7Smrgelse
1457348c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1457448c85eb7Smrgfi
1457548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1457648c85eb7Smrgfi
1457748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1457848c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1457948c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1458048c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1458148c85eb7Smrgfi
145823da084b3Smrg
1458348c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1458448c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1458548c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1458648c85eb7Smrg	fi
1458748c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1458848c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1458948c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1459048c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1459148c85eb7Smrg  $as_echo_n "(cached) " >&6
1459248c85eb7Smrgelse
1459348c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1459448c85eb7Smrg/* end confdefs.h.  */
1459548c85eb7Smrgint i;
1459648c85eb7Smrg_ACEOF
1459748c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1459848c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1459948c85eb7Smrgelse
1460048c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1460148c85eb7Smrgfi
1460248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1460348c85eb7Smrgfi
1460448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1460548c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1460648c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1460748c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1460848c85eb7Smrgfi
146093da084b3Smrg
1461048c85eb7Smrgfound="no"
14611d63fdb69Smrg
1461248c85eb7Smrg	if test $found = "no" ; then
1461348c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1461448c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1461548c85eb7Smrg		fi
146163da084b3Smrg
1461748c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1461848c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1461948c85eb7Smrg		fi
1462055acc8fcSmrg
1462148c85eb7Smrg		CFLAGS="$CFLAGS -Werror=return-type"
146223da084b3Smrg
1462348c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
1462448c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
1462548c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
1462648c85eb7Smrg		if eval \${$cacheid+:} false; then :
1462748c85eb7Smrg  $as_echo_n "(cached) " >&6
1462848c85eb7Smrgelse
1462948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1463048c85eb7Smrg/* end confdefs.h.  */
1463148c85eb7Smrgint i;
1463248c85eb7Smrgint
1463348c85eb7Smrgmain ()
1463448c85eb7Smrg{
1463548c85eb7Smrg
1463648c85eb7Smrg  ;
1463748c85eb7Smrg  return 0;
1463848c85eb7Smrg}
1463948c85eb7Smrg_ACEOF
1464048c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1464148c85eb7Smrg  eval $cacheid=yes
1464248c85eb7Smrgelse
1464348c85eb7Smrg  eval $cacheid=no
1464448c85eb7Smrgfi
1464548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1464648c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1464748c85eb7Smrgfi
1464848c85eb7Smrg
1464948c85eb7Smrg
1465048c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1465148c85eb7Smrg
1465248c85eb7Smrg		eval supported=\$$cacheid
1465348c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1465448c85eb7Smrg$as_echo "$supported" >&6; }
1465548c85eb7Smrg		if test "$supported" = "yes" ; then
1465648c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
1465748c85eb7Smrg			found="yes"
1465848c85eb7Smrg		fi
1465948c85eb7Smrg	fi
1466048c85eb7Smrg
1466148c85eb7Smrg	if test $found = "no" ; then
1466248c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1466348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1466448c85eb7Smrg		fi
1466548c85eb7Smrg
1466648c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1466748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1466848c85eb7Smrg		fi
1466948c85eb7Smrg
1467048c85eb7Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
1467148c85eb7Smrg
1467248c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
1467348c85eb7Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
1467448c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
1467548c85eb7Smrg		if eval \${$cacheid+:} false; then :
1467648c85eb7Smrg  $as_echo_n "(cached) " >&6
1467748c85eb7Smrgelse
1467848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1467948c85eb7Smrg/* end confdefs.h.  */
1468048c85eb7Smrgint i;
1468148c85eb7Smrgint
1468248c85eb7Smrgmain ()
1468348c85eb7Smrg{
1468448c85eb7Smrg
1468548c85eb7Smrg  ;
1468648c85eb7Smrg  return 0;
1468748c85eb7Smrg}
1468848c85eb7Smrg_ACEOF
1468948c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1469048c85eb7Smrg  eval $cacheid=yes
1469148c85eb7Smrgelse
1469248c85eb7Smrg  eval $cacheid=no
1469348c85eb7Smrgfi
1469448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1469548c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1469648c85eb7Smrgfi
146973da084b3Smrg
14698d63fdb69Smrg
1469948c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
147003da084b3Smrg
1470148c85eb7Smrg		eval supported=\$$cacheid
1470248c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1470348c85eb7Smrg$as_echo "$supported" >&6; }
1470448c85eb7Smrg		if test "$supported" = "yes" ; then
1470548c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
1470648c85eb7Smrg			found="yes"
1470748c85eb7Smrg		fi
1470848c85eb7Smrg	fi
147093da084b3Smrg
147103da084b3Smrg
147113da084b3Smrg
147123da084b3Smrg
147133da084b3Smrg
147143da084b3Smrg
147153da084b3Smrg
147163da084b3Smrg
147173da084b3Smrg
147183da084b3Smrg
147193da084b3Smrg
147203da084b3Smrg
147213da084b3Smrg
147223da084b3Smrg
147233da084b3Smrg
1472448c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1472548c85eb7Smrg
1472648c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1472748c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1472848c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1472948c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1473048c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1473148c85eb7Smrg  $as_echo_n "(cached) " >&6
1473248c85eb7Smrgelse
1473348c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1473448c85eb7Smrg/* end confdefs.h.  */
1473548c85eb7Smrgint i;
1473648c85eb7Smrg_ACEOF
1473748c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1473848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1473948c85eb7Smrgelse
1474048c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1474148c85eb7Smrgfi
1474248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1474348c85eb7Smrgfi
1474448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1474548c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1474648c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1474748c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1474848c85eb7Smrgfi
1474948c85eb7Smrg
1475048c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1475148c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1475248c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
147533da084b3Smrg	fi
1475448c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1475548c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1475648c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1475748c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1475848c85eb7Smrg  $as_echo_n "(cached) " >&6
1475948c85eb7Smrgelse
1476048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1476148c85eb7Smrg/* end confdefs.h.  */
1476248c85eb7Smrgint i;
1476348c85eb7Smrg_ACEOF
1476448c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1476548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1476648c85eb7Smrgelse
1476748c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1476848c85eb7Smrgfi
1476948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1477048c85eb7Smrgfi
1477148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1477248c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1477348c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1477448c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1477548c85eb7Smrgfi
1477648c85eb7Smrg
1477748c85eb7Smrgfound="no"
1477848c85eb7Smrg
1477948c85eb7Smrg	if test $found = "no" ; then
1478048c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1478148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1478248c85eb7Smrg		fi
1478348c85eb7Smrg
1478448c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1478548c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1478648c85eb7Smrg		fi
1478748c85eb7Smrg
1478848c85eb7Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
1478948c85eb7Smrg
1479048c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
1479148c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
1479248c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
1479348c85eb7Smrg		if eval \${$cacheid+:} false; then :
1479448c85eb7Smrg  $as_echo_n "(cached) " >&6
1479548c85eb7Smrgelse
1479648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1479748c85eb7Smrg/* end confdefs.h.  */
1479848c85eb7Smrgint i;
1479948c85eb7Smrgint
1480048c85eb7Smrgmain ()
1480148c85eb7Smrg{
1480248c85eb7Smrg
1480348c85eb7Smrg  ;
1480448c85eb7Smrg  return 0;
1480548c85eb7Smrg}
1480648c85eb7Smrg_ACEOF
1480748c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1480848c85eb7Smrg  eval $cacheid=yes
1480948c85eb7Smrgelse
1481048c85eb7Smrg  eval $cacheid=no
1481148c85eb7Smrgfi
1481248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1481348c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1481448c85eb7Smrgfi
1481548c85eb7Smrg
1481648c85eb7Smrg
1481748c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1481848c85eb7Smrg
1481948c85eb7Smrg		eval supported=\$$cacheid
1482048c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1482148c85eb7Smrg$as_echo "$supported" >&6; }
1482248c85eb7Smrg		if test "$supported" = "yes" ; then
1482348c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
1482448c85eb7Smrg			found="yes"
1482548c85eb7Smrg		fi
148263da084b3Smrg	fi
148273da084b3Smrg
148283da084b3Smrg
148293da084b3Smrg
14830d63fdb69Smrg
1483148c85eb7Smrg
1483248c85eb7Smrg
1483348c85eb7Smrg
1483448c85eb7Smrg
1483548c85eb7Smrg
1483648c85eb7Smrg
1483748c85eb7Smrg
1483848c85eb7Smrg
1483948c85eb7Smrg
1484048c85eb7Smrg
1484148c85eb7Smrg
1484248c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1484348c85eb7Smrg
1484448c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1484548c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1484648c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1484748c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1484848c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1484948c85eb7Smrg  $as_echo_n "(cached) " >&6
1485048c85eb7Smrgelse
1485148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1485248c85eb7Smrg/* end confdefs.h.  */
1485348c85eb7Smrgint i;
1485448c85eb7Smrg_ACEOF
1485548c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1485648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1485748c85eb7Smrgelse
1485848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
14859d63fdb69Smrgfi
1486048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1486148c85eb7Smrgfi
1486248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1486348c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1486448c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1486548c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
148663da084b3Smrgfi
148673da084b3Smrg
1486848c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1486948c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1487048c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1487148c85eb7Smrg	fi
1487248c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1487348c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1487448c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1487548c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1487648c85eb7Smrg  $as_echo_n "(cached) " >&6
1487748c85eb7Smrgelse
1487848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
148793da084b3Smrg/* end confdefs.h.  */
1488048c85eb7Smrgint i;
1488148c85eb7Smrg_ACEOF
1488248c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1488348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1488448c85eb7Smrgelse
1488548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1488648c85eb7Smrgfi
1488748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1488848c85eb7Smrgfi
1488948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1489048c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1489148c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1489248c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1489348c85eb7Smrgfi
1489448c85eb7Smrg
1489548c85eb7Smrgfound="no"
148963da084b3Smrg
1489748c85eb7Smrg	if test $found = "no" ; then
1489848c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1489948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1490048c85eb7Smrg		fi
1490148c85eb7Smrg
1490248c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1490348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1490448c85eb7Smrg		fi
1490548c85eb7Smrg
1490648c85eb7Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
1490748c85eb7Smrg
1490848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
1490948c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
1491048c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
1491148c85eb7Smrg		if eval \${$cacheid+:} false; then :
1491248c85eb7Smrg  $as_echo_n "(cached) " >&6
1491348c85eb7Smrgelse
1491448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1491548c85eb7Smrg/* end confdefs.h.  */
1491648c85eb7Smrgint i;
149173da084b3Smrgint
149183da084b3Smrgmain ()
149193da084b3Smrg{
149203da084b3Smrg
149213da084b3Smrg  ;
149223da084b3Smrg  return 0;
149233da084b3Smrg}
149243da084b3Smrg_ACEOF
1492555acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then :
1492648c85eb7Smrg  eval $cacheid=yes
1492748c85eb7Smrgelse
1492848c85eb7Smrg  eval $cacheid=no
149293da084b3Smrgfi
1493055acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \
1493155acc8fcSmrg    conftest$ac_exeext conftest.$ac_ext
1493248c85eb7Smrgfi
149333da084b3Smrg
149343da084b3Smrg
1493548c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
149363da084b3Smrg
1493748c85eb7Smrg		eval supported=\$$cacheid
1493848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1493948c85eb7Smrg$as_echo "$supported" >&6; }
1494048c85eb7Smrg		if test "$supported" = "yes" ; then
1494148c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
1494248c85eb7Smrg			found="yes"
1494348c85eb7Smrg		fi
1494448c85eb7Smrg	fi
149453da084b3Smrg
149463da084b3Smrg
14947d63fdb69Smrg
14948d63fdb69Smrg
14949d63fdb69Smrg
14950d63fdb69Smrg
149513da084b3Smrg
149523da084b3Smrg
149533da084b3Smrg
149543da084b3Smrg
149553da084b3Smrg
149563da084b3Smrg
149573da084b3Smrg
149583da084b3Smrg
149593da084b3Smrg
1496048c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1496155acc8fcSmrg
1496248c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1496348c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1496448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1496548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1496648c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1496755acc8fcSmrg  $as_echo_n "(cached) " >&6
1496855acc8fcSmrgelse
1496948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1497048c85eb7Smrg/* end confdefs.h.  */
1497148c85eb7Smrgint i;
1497248c85eb7Smrg_ACEOF
1497348c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1497448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1497548c85eb7Smrgelse
1497648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1497755acc8fcSmrgfi
1497848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1497948c85eb7Smrgfi
1498048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1498148c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1498248c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1498348c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1498448c85eb7Smrgfi
1498548c85eb7Smrg
1498648c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1498748c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1498848c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1498948c85eb7Smrg	fi
1499048c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1499148c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1499248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1499348c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1499448c85eb7Smrg  $as_echo_n "(cached) " >&6
1499555acc8fcSmrgelse
1499648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1499748c85eb7Smrg/* end confdefs.h.  */
1499848c85eb7Smrgint i;
1499948c85eb7Smrg_ACEOF
1500048c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1500148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1500248c85eb7Smrgelse
1500348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1500448c85eb7Smrgfi
1500548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1500648c85eb7Smrgfi
1500748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1500848c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1500948c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1501048c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1501155acc8fcSmrgfi
1501255acc8fcSmrg
1501348c85eb7Smrgfound="no"
150143da084b3Smrg
1501548c85eb7Smrg	if test $found = "no" ; then
1501648c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1501748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1501848c85eb7Smrg		fi
150193da084b3Smrg
1502048c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1502148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1502248c85eb7Smrg		fi
150233da084b3Smrg
1502448c85eb7Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
1502548c85eb7Smrg
1502648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
1502748c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
1502848c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
1502948c85eb7Smrg		if eval \${$cacheid+:} false; then :
1503048c85eb7Smrg  $as_echo_n "(cached) " >&6
1503148c85eb7Smrgelse
1503248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1503355acc8fcSmrg/* end confdefs.h.  */
1503448c85eb7Smrgint i;
1503548c85eb7Smrgint
1503648c85eb7Smrgmain ()
1503748c85eb7Smrg{
1503848c85eb7Smrg
1503948c85eb7Smrg  ;
1504048c85eb7Smrg  return 0;
1504148c85eb7Smrg}
15042d63fdb69Smrg_ACEOF
1504355acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then :
1504448c85eb7Smrg  eval $cacheid=yes
1504548c85eb7Smrgelse
1504648c85eb7Smrg  eval $cacheid=no
15047d63fdb69Smrgfi
1504855acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \
1504955acc8fcSmrg    conftest$ac_exeext conftest.$ac_ext
1505048c85eb7Smrgfi
150513da084b3Smrg
15052d63fdb69Smrg
1505348c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
150543da084b3Smrg
1505548c85eb7Smrg		eval supported=\$$cacheid
1505648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1505748c85eb7Smrg$as_echo "$supported" >&6; }
1505848c85eb7Smrg		if test "$supported" = "yes" ; then
1505948c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
1506048c85eb7Smrg			found="yes"
1506148c85eb7Smrg		fi
15062d63fdb69Smrg	fi
150633da084b3Smrg
150643da084b3Smrg
150653da084b3Smrg
150663da084b3Smrg
150673da084b3Smrg
150683da084b3Smrg
150693da084b3Smrg
150703da084b3Smrg
150713da084b3Smrg
150723da084b3Smrg
150733da084b3Smrg
150743da084b3Smrg
150753da084b3Smrg
150763da084b3Smrg
150773da084b3Smrg
1507848c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1507948c85eb7Smrg
1508048c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1508148c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1508248c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1508348c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1508448c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1508548c85eb7Smrg  $as_echo_n "(cached) " >&6
1508648c85eb7Smrgelse
1508748c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1508848c85eb7Smrg/* end confdefs.h.  */
1508948c85eb7Smrgint i;
1509048c85eb7Smrg_ACEOF
1509148c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1509248c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1509348c85eb7Smrgelse
1509448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1509548c85eb7Smrgfi
1509648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1509748c85eb7Smrgfi
1509848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1509948c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1510048c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1510148c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1510248c85eb7Smrgfi
1510348c85eb7Smrg
1510448c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1510548c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1510648c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1510748c85eb7Smrg	fi
1510848c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1510948c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1511048c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1511148c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1511248c85eb7Smrg  $as_echo_n "(cached) " >&6
1511348c85eb7Smrgelse
1511448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1511548c85eb7Smrg/* end confdefs.h.  */
1511648c85eb7Smrgint i;
1511748c85eb7Smrg_ACEOF
1511848c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1511948c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1512048c85eb7Smrgelse
1512148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1512248c85eb7Smrgfi
1512348c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1512448c85eb7Smrgfi
1512548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1512648c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1512748c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1512848c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1512948c85eb7Smrgfi
1513048c85eb7Smrg
1513148c85eb7Smrgfound="no"
1513248c85eb7Smrg
1513348c85eb7Smrg	if test $found = "no" ; then
1513448c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1513548c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1513648c85eb7Smrg		fi
1513748c85eb7Smrg
1513848c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1513948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1514048c85eb7Smrg		fi
1514148c85eb7Smrg
1514248c85eb7Smrg		CFLAGS="$CFLAGS -Werror=address"
1514348c85eb7Smrg
1514448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
1514548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
1514648c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
1514748c85eb7Smrg		if eval \${$cacheid+:} false; then :
1514848c85eb7Smrg  $as_echo_n "(cached) " >&6
1514948c85eb7Smrgelse
1515048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1515148c85eb7Smrg/* end confdefs.h.  */
1515248c85eb7Smrgint i;
1515348c85eb7Smrgint
1515448c85eb7Smrgmain ()
1515548c85eb7Smrg{
1515648c85eb7Smrg
1515748c85eb7Smrg  ;
1515848c85eb7Smrg  return 0;
1515948c85eb7Smrg}
1516048c85eb7Smrg_ACEOF
1516148c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1516248c85eb7Smrg  eval $cacheid=yes
1516348c85eb7Smrgelse
1516448c85eb7Smrg  eval $cacheid=no
1516548c85eb7Smrgfi
1516648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1516748c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1516848c85eb7Smrgfi
15169d63fdb69Smrg
151703da084b3Smrg
1517148c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15172d63fdb69Smrg
1517348c85eb7Smrg		eval supported=\$$cacheid
1517448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1517548c85eb7Smrg$as_echo "$supported" >&6; }
1517648c85eb7Smrg		if test "$supported" = "yes" ; then
1517748c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
1517848c85eb7Smrg			found="yes"
1517948c85eb7Smrg		fi
1518048c85eb7Smrg	fi
15181d63fdb69Smrg
15182d63fdb69Smrg
15183d63fdb69Smrg
15184d63fdb69Smrg
15185d63fdb69Smrg
15186d63fdb69Smrg
15187d63fdb69Smrg
15188d63fdb69Smrg
15189d63fdb69Smrg
15190d63fdb69Smrg
15191d63fdb69Smrg
15192d63fdb69Smrg
15193d63fdb69Smrg
15194d63fdb69Smrg
151953da084b3Smrg
1519648c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
151973da084b3Smrg
1519848c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1519948c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1520048c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1520148c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1520248c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1520355acc8fcSmrg  $as_echo_n "(cached) " >&6
1520455acc8fcSmrgelse
1520548c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1520648c85eb7Smrg/* end confdefs.h.  */
1520748c85eb7Smrgint i;
1520848c85eb7Smrg_ACEOF
1520948c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1521048c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1521148c85eb7Smrgelse
1521248c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1521348c85eb7Smrgfi
1521448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1521548c85eb7Smrgfi
1521648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1521748c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1521848c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1521948c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1522048c85eb7Smrgfi
152213da084b3Smrg
1522248c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1522348c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1522448c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1522555acc8fcSmrg	fi
1522648c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1522748c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1522848c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1522948c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1523048c85eb7Smrg  $as_echo_n "(cached) " >&6
1523148c85eb7Smrgelse
1523248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1523348c85eb7Smrg/* end confdefs.h.  */
1523448c85eb7Smrgint i;
1523548c85eb7Smrg_ACEOF
1523648c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1523748c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1523848c85eb7Smrgelse
1523948c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1524048c85eb7Smrgfi
1524148c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1524248c85eb7Smrgfi
1524348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1524448c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1524548c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1524648c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1524748c85eb7Smrgfi
1524848c85eb7Smrg
1524948c85eb7Smrgfound="no"
1525048c85eb7Smrg
1525148c85eb7Smrg	if test $found = "no" ; then
1525248c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1525348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1525448c85eb7Smrg		fi
1525548c85eb7Smrg
1525648c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1525748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1525848c85eb7Smrg		fi
1525948c85eb7Smrg
1526048c85eb7Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
1526148c85eb7Smrg
1526248c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
1526348c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
1526448c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
1526548c85eb7Smrg		if eval \${$cacheid+:} false; then :
1526648c85eb7Smrg  $as_echo_n "(cached) " >&6
1526748c85eb7Smrgelse
1526848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1526948c85eb7Smrg/* end confdefs.h.  */
1527048c85eb7Smrgint i;
1527148c85eb7Smrgint
1527248c85eb7Smrgmain ()
1527348c85eb7Smrg{
1527455acc8fcSmrg
1527548c85eb7Smrg  ;
1527648c85eb7Smrg  return 0;
1527748c85eb7Smrg}
1527848c85eb7Smrg_ACEOF
1527948c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1528048c85eb7Smrg  eval $cacheid=yes
1528148c85eb7Smrgelse
1528248c85eb7Smrg  eval $cacheid=no
1528355acc8fcSmrgfi
1528448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1528548c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1528648c85eb7Smrgfi
1528748c85eb7Smrg
1528848c85eb7Smrg
1528948c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
152903da084b3Smrg
1529148c85eb7Smrg		eval supported=\$$cacheid
1529248c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1529348c85eb7Smrg$as_echo "$supported" >&6; }
1529448c85eb7Smrg		if test "$supported" = "yes" ; then
1529548c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
1529648c85eb7Smrg			found="yes"
1529748c85eb7Smrg		fi
1529848c85eb7Smrg	fi
1529948c85eb7Smrg
1530048c85eb7Smrg	if test $found = "no" ; then
1530148c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1530248c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1530348c85eb7Smrg		fi
1530448c85eb7Smrg
1530548c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1530648c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1530748c85eb7Smrg		fi
1530848c85eb7Smrg
1530948c85eb7Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15310d63fdb69Smrg
1531148c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
1531248c85eb7Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
1531348c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
1531448c85eb7Smrg		if eval \${$cacheid+:} false; then :
1531548c85eb7Smrg  $as_echo_n "(cached) " >&6
1531648c85eb7Smrgelse
1531748c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1531848c85eb7Smrg/* end confdefs.h.  */
1531948c85eb7Smrgint i;
1532048c85eb7Smrgint
1532148c85eb7Smrgmain ()
1532248c85eb7Smrg{
15323d63fdb69Smrg
1532448c85eb7Smrg  ;
1532548c85eb7Smrg  return 0;
1532648c85eb7Smrg}
1532748c85eb7Smrg_ACEOF
1532848c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1532948c85eb7Smrg  eval $cacheid=yes
1533048c85eb7Smrgelse
1533148c85eb7Smrg  eval $cacheid=no
1533248c85eb7Smrgfi
1533348c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1533448c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1533548c85eb7Smrgfi
15336d63fdb69Smrg
15337d63fdb69Smrg
1533848c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15339d63fdb69Smrg
1534048c85eb7Smrg		eval supported=\$$cacheid
1534148c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1534248c85eb7Smrg$as_echo "$supported" >&6; }
1534348c85eb7Smrg		if test "$supported" = "yes" ; then
1534448c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
1534548c85eb7Smrg			found="yes"
1534648c85eb7Smrg		fi
1534748c85eb7Smrg	fi
15348d63fdb69Smrg
15349d63fdb69Smrg
15350d63fdb69Smrg
15351d63fdb69Smrg
15352d63fdb69Smrg
15353d63fdb69Smrg
15354d63fdb69Smrg
15355d63fdb69Smrg
15356d63fdb69Smrg
15357d63fdb69Smrg
15358d63fdb69Smrg
15359d63fdb69Smrg
15360d63fdb69Smrg
15361d63fdb69Smrg
15362d63fdb69Smrg
1536348c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15364d63fdb69Smrg
1536548c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1536648c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1536748c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1536848c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1536948c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1537048c85eb7Smrg  $as_echo_n "(cached) " >&6
1537148c85eb7Smrgelse
1537248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1537348c85eb7Smrg/* end confdefs.h.  */
1537448c85eb7Smrgint i;
1537548c85eb7Smrg_ACEOF
1537648c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1537748c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1537848c85eb7Smrgelse
1537948c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1538048c85eb7Smrgfi
1538148c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1538248c85eb7Smrgfi
1538348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1538448c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1538548c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1538648c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1538748c85eb7Smrgfi
15388d63fdb69Smrg
1538948c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1539048c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1539148c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1539248c85eb7Smrg	fi
1539348c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1539448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1539548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1539648c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1539748c85eb7Smrg  $as_echo_n "(cached) " >&6
1539848c85eb7Smrgelse
1539948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1540048c85eb7Smrg/* end confdefs.h.  */
1540148c85eb7Smrgint i;
1540248c85eb7Smrg_ACEOF
1540348c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1540448c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1540548c85eb7Smrgelse
1540648c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1540748c85eb7Smrgfi
1540848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1540948c85eb7Smrgfi
1541048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1541148c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1541248c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1541348c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1541448c85eb7Smrgfi
15415d63fdb69Smrg
1541648c85eb7Smrgfound="no"
15417d63fdb69Smrg
1541848c85eb7Smrg	if test $found = "no" ; then
1541948c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1542048c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1542148c85eb7Smrg		fi
15422d63fdb69Smrg
1542348c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1542448c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1542548c85eb7Smrg		fi
15426d63fdb69Smrg
1542748c85eb7Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15428d63fdb69Smrg
1542948c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
1543048c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
1543148c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
1543248c85eb7Smrg		if eval \${$cacheid+:} false; then :
1543348c85eb7Smrg  $as_echo_n "(cached) " >&6
1543448c85eb7Smrgelse
1543548c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1543648c85eb7Smrg/* end confdefs.h.  */
1543748c85eb7Smrgint i;
1543848c85eb7Smrgint
1543948c85eb7Smrgmain ()
1544048c85eb7Smrg{
15441d63fdb69Smrg
1544248c85eb7Smrg  ;
1544348c85eb7Smrg  return 0;
1544448c85eb7Smrg}
1544548c85eb7Smrg_ACEOF
1544648c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1544748c85eb7Smrg  eval $cacheid=yes
1544848c85eb7Smrgelse
1544948c85eb7Smrg  eval $cacheid=no
1545048c85eb7Smrgfi
1545148c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1545248c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1545348c85eb7Smrgfi
15454d63fdb69Smrg
15455d63fdb69Smrg
1545648c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15457d63fdb69Smrg
1545848c85eb7Smrg		eval supported=\$$cacheid
1545948c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1546048c85eb7Smrg$as_echo "$supported" >&6; }
1546148c85eb7Smrg		if test "$supported" = "yes" ; then
1546248c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
1546348c85eb7Smrg			found="yes"
1546448c85eb7Smrg		fi
1546548c85eb7Smrg	fi
15466d63fdb69Smrg
1546748c85eb7Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
1546848c85eb7Smrgelse
1546948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
1547048c85eb7Smrg$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
15471d63fdb69Smrg
15472d63fdb69Smrg
15473d63fdb69Smrg
15474d63fdb69Smrg
15475d63fdb69Smrg
15476d63fdb69Smrg
15477d63fdb69Smrg
15478d63fdb69Smrg
15479d63fdb69Smrg
15480d63fdb69Smrg
15481d63fdb69Smrg
15482d63fdb69Smrg
15483d63fdb69Smrg
1548448c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15485d63fdb69Smrg
1548648c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1548748c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1548848c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1548948c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1549048c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1549148c85eb7Smrg  $as_echo_n "(cached) " >&6
1549248c85eb7Smrgelse
1549348c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1549448c85eb7Smrg/* end confdefs.h.  */
1549548c85eb7Smrgint i;
1549648c85eb7Smrg_ACEOF
1549748c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1549848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1549948c85eb7Smrgelse
1550048c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1550148c85eb7Smrgfi
1550248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1550348c85eb7Smrgfi
1550448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1550548c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1550648c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1550748c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1550848c85eb7Smrgfi
15509d63fdb69Smrg
1551048c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1551148c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1551248c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1551348c85eb7Smrg	fi
1551448c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1551548c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1551648c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1551748c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1551848c85eb7Smrg  $as_echo_n "(cached) " >&6
1551948c85eb7Smrgelse
1552048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552148c85eb7Smrg/* end confdefs.h.  */
1552248c85eb7Smrgint i;
1552348c85eb7Smrg_ACEOF
1552448c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1552548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1552648c85eb7Smrgelse
1552748c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1552848c85eb7Smrgfi
1552948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1553048c85eb7Smrgfi
1553148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1553248c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1553348c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1553448c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1553548c85eb7Smrgfi
15536d63fdb69Smrg
1553748c85eb7Smrgfound="no"
15538d63fdb69Smrg
1553948c85eb7Smrg	if test $found = "no" ; then
1554048c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1554148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1554248c85eb7Smrg		fi
15543d63fdb69Smrg
1554448c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1554548c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1554648c85eb7Smrg		fi
15547d63fdb69Smrg
1554848c85eb7Smrg		CFLAGS="$CFLAGS -Wimplicit"
15549d63fdb69Smrg
1555048c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
1555148c85eb7Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
1555248c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
1555348c85eb7Smrg		if eval \${$cacheid+:} false; then :
1555448c85eb7Smrg  $as_echo_n "(cached) " >&6
1555548c85eb7Smrgelse
1555648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1555748c85eb7Smrg/* end confdefs.h.  */
1555848c85eb7Smrgint i;
1555948c85eb7Smrgint
1556048c85eb7Smrgmain ()
1556148c85eb7Smrg{
15562d63fdb69Smrg
1556348c85eb7Smrg  ;
1556448c85eb7Smrg  return 0;
1556548c85eb7Smrg}
1556648c85eb7Smrg_ACEOF
1556748c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1556848c85eb7Smrg  eval $cacheid=yes
1556948c85eb7Smrgelse
1557048c85eb7Smrg  eval $cacheid=no
1557148c85eb7Smrgfi
1557248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1557348c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1557448c85eb7Smrgfi
15575d63fdb69Smrg
15576d63fdb69Smrg
1557748c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15578d63fdb69Smrg
1557948c85eb7Smrg		eval supported=\$$cacheid
1558048c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1558148c85eb7Smrg$as_echo "$supported" >&6; }
1558248c85eb7Smrg		if test "$supported" = "yes" ; then
1558348c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
1558448c85eb7Smrg			found="yes"
1558548c85eb7Smrg		fi
1558648c85eb7Smrg	fi
15587d63fdb69Smrg
15588d63fdb69Smrg
15589d63fdb69Smrg
15590d63fdb69Smrg
15591d63fdb69Smrg
15592d63fdb69Smrg
15593d63fdb69Smrg
15594d63fdb69Smrg
15595d63fdb69Smrg
15596d63fdb69Smrg
15597d63fdb69Smrg
15598d63fdb69Smrg
15599d63fdb69Smrg
15600d63fdb69Smrg
15601d63fdb69Smrg
1560248c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15603d63fdb69Smrg
1560448c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1560548c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1560648c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1560748c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1560848c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1560948c85eb7Smrg  $as_echo_n "(cached) " >&6
1561048c85eb7Smrgelse
1561148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1561248c85eb7Smrg/* end confdefs.h.  */
1561348c85eb7Smrgint i;
1561448c85eb7Smrg_ACEOF
1561548c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1561648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1561748c85eb7Smrgelse
1561848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1561948c85eb7Smrgfi
1562048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1562148c85eb7Smrgfi
1562248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1562348c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1562448c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1562548c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1562648c85eb7Smrgfi
15627d63fdb69Smrg
1562848c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1562948c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1563048c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1563148c85eb7Smrg	fi
1563248c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1563348c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1563448c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1563548c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1563648c85eb7Smrg  $as_echo_n "(cached) " >&6
1563748c85eb7Smrgelse
1563848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1563948c85eb7Smrg/* end confdefs.h.  */
1564048c85eb7Smrgint i;
1564148c85eb7Smrg_ACEOF
1564248c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1564348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1564448c85eb7Smrgelse
1564548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1564648c85eb7Smrgfi
1564748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1564848c85eb7Smrgfi
1564948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1565048c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1565148c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1565248c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1565348c85eb7Smrgfi
15654d63fdb69Smrg
1565548c85eb7Smrgfound="no"
15656d63fdb69Smrg
1565748c85eb7Smrg	if test $found = "no" ; then
1565848c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1565948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1566048c85eb7Smrg		fi
15661d63fdb69Smrg
1566248c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1566348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1566448c85eb7Smrg		fi
15665d63fdb69Smrg
1566648c85eb7Smrg		CFLAGS="$CFLAGS -Wnonnull"
15667d63fdb69Smrg
1566848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
1566948c85eb7Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
1567048c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
1567148c85eb7Smrg		if eval \${$cacheid+:} false; then :
1567248c85eb7Smrg  $as_echo_n "(cached) " >&6
1567348c85eb7Smrgelse
1567448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1567548c85eb7Smrg/* end confdefs.h.  */
1567648c85eb7Smrgint i;
1567748c85eb7Smrgint
1567848c85eb7Smrgmain ()
1567948c85eb7Smrg{
15680d63fdb69Smrg
1568148c85eb7Smrg  ;
1568248c85eb7Smrg  return 0;
1568348c85eb7Smrg}
1568448c85eb7Smrg_ACEOF
1568548c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1568648c85eb7Smrg  eval $cacheid=yes
1568748c85eb7Smrgelse
1568848c85eb7Smrg  eval $cacheid=no
1568948c85eb7Smrgfi
1569048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1569148c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1569248c85eb7Smrgfi
15693d63fdb69Smrg
15694d63fdb69Smrg
1569548c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15696d63fdb69Smrg
1569748c85eb7Smrg		eval supported=\$$cacheid
1569848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1569948c85eb7Smrg$as_echo "$supported" >&6; }
1570048c85eb7Smrg		if test "$supported" = "yes" ; then
1570148c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
1570248c85eb7Smrg			found="yes"
1570348c85eb7Smrg		fi
1570448c85eb7Smrg	fi
15705d63fdb69Smrg
15706d63fdb69Smrg
15707d63fdb69Smrg
15708d63fdb69Smrg
15709d63fdb69Smrg
15710d63fdb69Smrg
15711d63fdb69Smrg
15712d63fdb69Smrg
15713d63fdb69Smrg
15714d63fdb69Smrg
15715d63fdb69Smrg
15716d63fdb69Smrg
15717d63fdb69Smrg
15718d63fdb69Smrg
15719d63fdb69Smrg
1572048c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15721d63fdb69Smrg
1572248c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1572348c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1572448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1572548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1572648c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1572748c85eb7Smrg  $as_echo_n "(cached) " >&6
1572848c85eb7Smrgelse
1572948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1573048c85eb7Smrg/* end confdefs.h.  */
1573148c85eb7Smrgint i;
1573248c85eb7Smrg_ACEOF
1573348c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1573448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1573548c85eb7Smrgelse
1573648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1573748c85eb7Smrgfi
1573848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1573948c85eb7Smrgfi
1574048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1574148c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1574248c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1574348c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1574448c85eb7Smrgfi
15745d63fdb69Smrg
1574648c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1574748c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1574848c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1574948c85eb7Smrg	fi
1575048c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1575148c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1575248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1575348c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1575448c85eb7Smrg  $as_echo_n "(cached) " >&6
1575548c85eb7Smrgelse
1575648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575748c85eb7Smrg/* end confdefs.h.  */
1575848c85eb7Smrgint i;
1575948c85eb7Smrg_ACEOF
1576048c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1576148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1576248c85eb7Smrgelse
1576348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1576448c85eb7Smrgfi
1576548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1576648c85eb7Smrgfi
1576748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1576848c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1576948c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1577048c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1577148c85eb7Smrgfi
15772d63fdb69Smrg
1577348c85eb7Smrgfound="no"
15774d63fdb69Smrg
1577548c85eb7Smrg	if test $found = "no" ; then
1577648c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1577748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1577848c85eb7Smrg		fi
15779d63fdb69Smrg
1578048c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1578148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1578248c85eb7Smrg		fi
15783d63fdb69Smrg
1578448c85eb7Smrg		CFLAGS="$CFLAGS -Winit-self"
15785d63fdb69Smrg
1578648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
1578748c85eb7Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
1578848c85eb7Smrg		cacheid=xorg_cv_cc_flag__Winit_self
1578948c85eb7Smrg		if eval \${$cacheid+:} false; then :
1579048c85eb7Smrg  $as_echo_n "(cached) " >&6
1579148c85eb7Smrgelse
1579248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579348c85eb7Smrg/* end confdefs.h.  */
1579448c85eb7Smrgint i;
1579548c85eb7Smrgint
1579648c85eb7Smrgmain ()
1579748c85eb7Smrg{
15798d63fdb69Smrg
1579948c85eb7Smrg  ;
1580048c85eb7Smrg  return 0;
1580148c85eb7Smrg}
1580248c85eb7Smrg_ACEOF
1580348c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1580448c85eb7Smrg  eval $cacheid=yes
1580548c85eb7Smrgelse
1580648c85eb7Smrg  eval $cacheid=no
1580748c85eb7Smrgfi
1580848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1580948c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1581048c85eb7Smrgfi
15811d63fdb69Smrg
15812d63fdb69Smrg
1581348c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15814d63fdb69Smrg
1581548c85eb7Smrg		eval supported=\$$cacheid
1581648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1581748c85eb7Smrg$as_echo "$supported" >&6; }
1581848c85eb7Smrg		if test "$supported" = "yes" ; then
1581948c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
1582048c85eb7Smrg			found="yes"
1582148c85eb7Smrg		fi
1582248c85eb7Smrg	fi
15823d63fdb69Smrg
15824d63fdb69Smrg
15825d63fdb69Smrg
15826d63fdb69Smrg
15827d63fdb69Smrg
15828d63fdb69Smrg
15829d63fdb69Smrg
15830d63fdb69Smrg
15831d63fdb69Smrg
15832d63fdb69Smrg
15833d63fdb69Smrg
15834d63fdb69Smrg
15835d63fdb69Smrg
15836d63fdb69Smrg
15837d63fdb69Smrg
1583848c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15839d63fdb69Smrg
1584048c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1584148c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1584248c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1584348c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1584448c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1584548c85eb7Smrg  $as_echo_n "(cached) " >&6
1584648c85eb7Smrgelse
1584748c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1584848c85eb7Smrg/* end confdefs.h.  */
1584948c85eb7Smrgint i;
1585048c85eb7Smrg_ACEOF
1585148c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1585248c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1585348c85eb7Smrgelse
1585448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1585548c85eb7Smrgfi
1585648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1585748c85eb7Smrgfi
1585848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1585948c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1586048c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1586148c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1586248c85eb7Smrgfi
15863d63fdb69Smrg
1586448c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1586548c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1586648c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1586748c85eb7Smrg	fi
1586848c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1586948c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1587048c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1587148c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1587248c85eb7Smrg  $as_echo_n "(cached) " >&6
1587348c85eb7Smrgelse
1587448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587548c85eb7Smrg/* end confdefs.h.  */
1587648c85eb7Smrgint i;
1587748c85eb7Smrg_ACEOF
1587848c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1587948c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1588048c85eb7Smrgelse
1588148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1588248c85eb7Smrgfi
1588348c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1588448c85eb7Smrgfi
1588548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1588648c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1588748c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1588848c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1588948c85eb7Smrgfi
15890d63fdb69Smrg
1589148c85eb7Smrgfound="no"
15892d63fdb69Smrg
1589348c85eb7Smrg	if test $found = "no" ; then
1589448c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1589548c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1589648c85eb7Smrg		fi
15897d63fdb69Smrg
1589848c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1589948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1590048c85eb7Smrg		fi
15901d63fdb69Smrg
1590248c85eb7Smrg		CFLAGS="$CFLAGS -Wmain"
15903d63fdb69Smrg
1590448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
1590548c85eb7Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; }
1590648c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wmain
1590748c85eb7Smrg		if eval \${$cacheid+:} false; then :
1590848c85eb7Smrg  $as_echo_n "(cached) " >&6
1590948c85eb7Smrgelse
1591048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591148c85eb7Smrg/* end confdefs.h.  */
1591248c85eb7Smrgint i;
1591348c85eb7Smrgint
1591448c85eb7Smrgmain ()
1591548c85eb7Smrg{
15916d63fdb69Smrg
1591748c85eb7Smrg  ;
1591848c85eb7Smrg  return 0;
1591948c85eb7Smrg}
1592048c85eb7Smrg_ACEOF
1592148c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1592248c85eb7Smrg  eval $cacheid=yes
1592348c85eb7Smrgelse
1592448c85eb7Smrg  eval $cacheid=no
1592548c85eb7Smrgfi
1592648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1592748c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1592848c85eb7Smrgfi
15929d63fdb69Smrg
15930d63fdb69Smrg
1593148c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15932d63fdb69Smrg
1593348c85eb7Smrg		eval supported=\$$cacheid
1593448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1593548c85eb7Smrg$as_echo "$supported" >&6; }
1593648c85eb7Smrg		if test "$supported" = "yes" ; then
1593748c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
1593848c85eb7Smrg			found="yes"
1593948c85eb7Smrg		fi
1594048c85eb7Smrg	fi
15941d63fdb69Smrg
15942d63fdb69Smrg
15943d63fdb69Smrg
15944d63fdb69Smrg
15945d63fdb69Smrg
15946d63fdb69Smrg
15947d63fdb69Smrg
15948d63fdb69Smrg
15949d63fdb69Smrg
15950d63fdb69Smrg
15951d63fdb69Smrg
15952d63fdb69Smrg
15953d63fdb69Smrg
15954d63fdb69Smrg
15955d63fdb69Smrg
1595648c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15957d63fdb69Smrg
1595848c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1595948c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1596048c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1596148c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1596248c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1596348c85eb7Smrg  $as_echo_n "(cached) " >&6
1596448c85eb7Smrgelse
1596548c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596648c85eb7Smrg/* end confdefs.h.  */
1596748c85eb7Smrgint i;
1596848c85eb7Smrg_ACEOF
1596948c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1597048c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1597148c85eb7Smrgelse
1597248c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1597348c85eb7Smrgfi
1597448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1597548c85eb7Smrgfi
1597648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1597748c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1597848c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1597948c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1598048c85eb7Smrgfi
15981d63fdb69Smrg
1598248c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1598348c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1598448c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1598548c85eb7Smrg	fi
1598648c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1598748c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1598848c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1598948c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1599048c85eb7Smrg  $as_echo_n "(cached) " >&6
1599148c85eb7Smrgelse
1599248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599348c85eb7Smrg/* end confdefs.h.  */
1599448c85eb7Smrgint i;
1599548c85eb7Smrg_ACEOF
1599648c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1599748c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1599848c85eb7Smrgelse
1599948c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1600048c85eb7Smrgfi
1600148c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1600248c85eb7Smrgfi
1600348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1600448c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1600548c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1600648c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1600748c85eb7Smrgfi
16008d63fdb69Smrg
1600948c85eb7Smrgfound="no"
16010d63fdb69Smrg
1601148c85eb7Smrg	if test $found = "no" ; then
1601248c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1601348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1601448c85eb7Smrg		fi
16015d63fdb69Smrg
1601648c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1601748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1601848c85eb7Smrg		fi
16019d63fdb69Smrg
1602048c85eb7Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
16021d63fdb69Smrg
1602248c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
1602348c85eb7Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
1602448c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
1602548c85eb7Smrg		if eval \${$cacheid+:} false; then :
1602648c85eb7Smrg  $as_echo_n "(cached) " >&6
1602748c85eb7Smrgelse
1602848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602948c85eb7Smrg/* end confdefs.h.  */
1603048c85eb7Smrgint i;
1603148c85eb7Smrgint
1603248c85eb7Smrgmain ()
1603348c85eb7Smrg{
16034d63fdb69Smrg
1603548c85eb7Smrg  ;
1603648c85eb7Smrg  return 0;
1603748c85eb7Smrg}
1603848c85eb7Smrg_ACEOF
1603948c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1604048c85eb7Smrg  eval $cacheid=yes
16041d63fdb69Smrgelse
1604248c85eb7Smrg  eval $cacheid=no
1604348c85eb7Smrgfi
1604448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1604548c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
16046d63fdb69Smrgfi
160473da084b3Smrg
160483da084b3Smrg
1604948c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
160503da084b3Smrg
1605148c85eb7Smrg		eval supported=\$$cacheid
1605248c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1605348c85eb7Smrg$as_echo "$supported" >&6; }
1605448c85eb7Smrg		if test "$supported" = "yes" ; then
1605548c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
1605648c85eb7Smrg			found="yes"
1605748c85eb7Smrg		fi
1605848c85eb7Smrg	fi
160593da084b3Smrg
160603da084b3Smrg
160613da084b3Smrg
160623da084b3Smrg
160633da084b3Smrg
160643da084b3Smrg
160653da084b3Smrg
1606655acc8fcSmrg
160673da084b3Smrg
160683da084b3Smrg
16069d63fdb69Smrg
160703da084b3Smrg
160713da084b3Smrg
160723da084b3Smrg
160733da084b3Smrg
1607448c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1607548c85eb7Smrg
1607648c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1607748c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1607848c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1607948c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1608048c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1608148c85eb7Smrg  $as_echo_n "(cached) " >&6
1608248c85eb7Smrgelse
1608348c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608448c85eb7Smrg/* end confdefs.h.  */
1608548c85eb7Smrgint i;
1608648c85eb7Smrg_ACEOF
1608748c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1608848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1608948c85eb7Smrgelse
1609048c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1609148c85eb7Smrgfi
1609248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1609348c85eb7Smrgfi
1609448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1609548c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1609648c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1609748c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1609848c85eb7Smrgfi
1609948c85eb7Smrg
1610048c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1610148c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1610248c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1610348c85eb7Smrg	fi
1610448c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1610548c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1610648c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1610748c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1610848c85eb7Smrg  $as_echo_n "(cached) " >&6
1610948c85eb7Smrgelse
1611048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611148c85eb7Smrg/* end confdefs.h.  */
1611248c85eb7Smrgint i;
1611348c85eb7Smrg_ACEOF
1611448c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1611548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1611648c85eb7Smrgelse
1611748c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1611848c85eb7Smrgfi
1611948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1612048c85eb7Smrgfi
1612148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1612248c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1612348c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1612448c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1612548c85eb7Smrgfi
1612648c85eb7Smrg
1612748c85eb7Smrgfound="no"
1612848c85eb7Smrg
1612948c85eb7Smrg	if test $found = "no" ; then
1613048c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1613148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1613248c85eb7Smrg		fi
1613348c85eb7Smrg
1613448c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1613548c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1613648c85eb7Smrg		fi
1613748c85eb7Smrg
1613848c85eb7Smrg		CFLAGS="$CFLAGS -Wsequence-point"
1613948c85eb7Smrg
1614048c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
1614148c85eb7Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
1614248c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
1614348c85eb7Smrg		if eval \${$cacheid+:} false; then :
1614448c85eb7Smrg  $as_echo_n "(cached) " >&6
1614548c85eb7Smrgelse
1614648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614748c85eb7Smrg/* end confdefs.h.  */
1614848c85eb7Smrgint i;
1614948c85eb7Smrgint
1615048c85eb7Smrgmain ()
1615148c85eb7Smrg{
1615248c85eb7Smrg
1615348c85eb7Smrg  ;
1615448c85eb7Smrg  return 0;
1615548c85eb7Smrg}
1615648c85eb7Smrg_ACEOF
1615748c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1615848c85eb7Smrg  eval $cacheid=yes
1615948c85eb7Smrgelse
1616048c85eb7Smrg  eval $cacheid=no
1616148c85eb7Smrgfi
1616248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1616348c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1616448c85eb7Smrgfi
1616548c85eb7Smrg
1616655acc8fcSmrg
1616748c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
161683da084b3Smrg
1616948c85eb7Smrg		eval supported=\$$cacheid
1617048c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1617148c85eb7Smrg$as_echo "$supported" >&6; }
1617248c85eb7Smrg		if test "$supported" = "yes" ; then
1617348c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
1617448c85eb7Smrg			found="yes"
1617548c85eb7Smrg		fi
1617648c85eb7Smrg	fi
161773da084b3Smrg
161783da084b3Smrg
161793da084b3Smrg
161803da084b3Smrg
1618155acc8fcSmrg
1618248c85eb7Smrg
1618348c85eb7Smrg
1618448c85eb7Smrg
1618548c85eb7Smrg
1618648c85eb7Smrg
1618748c85eb7Smrg
1618848c85eb7Smrg
1618948c85eb7Smrg
1619048c85eb7Smrg
1619148c85eb7Smrg
1619248c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1619348c85eb7Smrg
1619448c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1619548c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1619648c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1619748c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1619848c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1619955acc8fcSmrg  $as_echo_n "(cached) " >&6
1620055acc8fcSmrgelse
1620148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202d63fdb69Smrg/* end confdefs.h.  */
1620348c85eb7Smrgint i;
1620448c85eb7Smrg_ACEOF
1620548c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1620648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1620748c85eb7Smrgelse
1620848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1620948c85eb7Smrgfi
1621048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621148c85eb7Smrgfi
1621248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1621348c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1621448c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1621548c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1621648c85eb7Smrgfi
1621748c85eb7Smrg
1621848c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1621948c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1622048c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1622148c85eb7Smrg	fi
1622248c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1622348c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1622448c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1622548c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1622648c85eb7Smrg  $as_echo_n "(cached) " >&6
1622748c85eb7Smrgelse
1622848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622948c85eb7Smrg/* end confdefs.h.  */
1623048c85eb7Smrgint i;
1623148c85eb7Smrg_ACEOF
1623248c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1623348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1623448c85eb7Smrgelse
1623548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1623648c85eb7Smrgfi
1623748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1623848c85eb7Smrgfi
1623948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1624048c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1624148c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1624248c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1624348c85eb7Smrgfi
1624448c85eb7Smrg
1624548c85eb7Smrgfound="no"
1624648c85eb7Smrg
1624748c85eb7Smrg	if test $found = "no" ; then
1624848c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1624948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1625048c85eb7Smrg		fi
1625148c85eb7Smrg
1625248c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1625348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1625448c85eb7Smrg		fi
1625548c85eb7Smrg
1625648c85eb7Smrg		CFLAGS="$CFLAGS -Wreturn-type"
16257d63fdb69Smrg
1625848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
1625948c85eb7Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
1626048c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
1626148c85eb7Smrg		if eval \${$cacheid+:} false; then :
1626248c85eb7Smrg  $as_echo_n "(cached) " >&6
1626348c85eb7Smrgelse
1626448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626548c85eb7Smrg/* end confdefs.h.  */
1626648c85eb7Smrgint i;
16267d63fdb69Smrgint
16268d63fdb69Smrgmain ()
16269d63fdb69Smrg{
16270d63fdb69Smrg
16271d63fdb69Smrg  ;
16272d63fdb69Smrg  return 0;
16273d63fdb69Smrg}
16274d63fdb69Smrg_ACEOF
1627555acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then :
1627648c85eb7Smrg  eval $cacheid=yes
1627748c85eb7Smrgelse
1627848c85eb7Smrg  eval $cacheid=no
1627955acc8fcSmrgfi
1628055acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \
1628155acc8fcSmrg    conftest$ac_exeext conftest.$ac_ext
1628248c85eb7Smrgfi
1628348c85eb7Smrg
1628448c85eb7Smrg
1628548c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1628648c85eb7Smrg
1628748c85eb7Smrg		eval supported=\$$cacheid
1628848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1628948c85eb7Smrg$as_echo "$supported" >&6; }
1629048c85eb7Smrg		if test "$supported" = "yes" ; then
1629148c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
1629248c85eb7Smrg			found="yes"
1629348c85eb7Smrg		fi
1629448c85eb7Smrg	fi
1629548c85eb7Smrg
1629648c85eb7Smrg
1629748c85eb7Smrg
1629848c85eb7Smrg
1629948c85eb7Smrg
1630048c85eb7Smrg
1630148c85eb7Smrg
1630248c85eb7Smrg
1630348c85eb7Smrg
16304d63fdb69Smrg
1630548c85eb7Smrg
1630648c85eb7Smrg
1630748c85eb7Smrg
1630848c85eb7Smrg
1630948c85eb7Smrg
1631048c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1631148c85eb7Smrg
1631248c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1631348c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1631448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1631548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1631648c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1631748c85eb7Smrg  $as_echo_n "(cached) " >&6
1631848c85eb7Smrgelse
1631948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632048c85eb7Smrg/* end confdefs.h.  */
1632148c85eb7Smrgint i;
1632248c85eb7Smrg_ACEOF
1632348c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1632448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1632548c85eb7Smrgelse
1632648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1632748c85eb7Smrgfi
1632848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632948c85eb7Smrgfi
1633048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1633148c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1633248c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1633348c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16334d63fdb69Smrgfi
16335d63fdb69Smrg
1633648c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1633748c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1633848c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1633948c85eb7Smrg	fi
1634048c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1634148c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1634248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1634348c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1634448c85eb7Smrg  $as_echo_n "(cached) " >&6
1634548c85eb7Smrgelse
1634648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634748c85eb7Smrg/* end confdefs.h.  */
1634848c85eb7Smrgint i;
1634948c85eb7Smrg_ACEOF
1635048c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1635148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1635248c85eb7Smrgelse
1635348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1635448c85eb7Smrgfi
1635548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635648c85eb7Smrgfi
1635748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1635848c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1635948c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1636048c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1636148c85eb7Smrgfi
16362d63fdb69Smrg
1636348c85eb7Smrgfound="no"
163643da084b3Smrg
1636548c85eb7Smrg	if test $found = "no" ; then
1636648c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1636748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1636848c85eb7Smrg		fi
163693da084b3Smrg
1637048c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1637148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1637248c85eb7Smrg		fi
1637348c85eb7Smrg
1637448c85eb7Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
1637548c85eb7Smrg
1637648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
1637748c85eb7Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
1637848c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
1637948c85eb7Smrg		if eval \${$cacheid+:} false; then :
1638048c85eb7Smrg  $as_echo_n "(cached) " >&6
1638148c85eb7Smrgelse
1638248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638348c85eb7Smrg/* end confdefs.h.  */
1638448c85eb7Smrgint i;
1638548c85eb7Smrgint
1638648c85eb7Smrgmain ()
1638748c85eb7Smrg{
1638848c85eb7Smrg
1638948c85eb7Smrg  ;
1639048c85eb7Smrg  return 0;
1639148c85eb7Smrg}
1639248c85eb7Smrg_ACEOF
1639348c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1639448c85eb7Smrg  eval $cacheid=yes
1639548c85eb7Smrgelse
1639648c85eb7Smrg  eval $cacheid=no
1639748c85eb7Smrgfi
1639848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1639948c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1640048c85eb7Smrgfi
164013da084b3Smrg
164023da084b3Smrg
1640348c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
164043da084b3Smrg
1640548c85eb7Smrg		eval supported=\$$cacheid
1640648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1640748c85eb7Smrg$as_echo "$supported" >&6; }
1640848c85eb7Smrg		if test "$supported" = "yes" ; then
1640948c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
1641048c85eb7Smrg			found="yes"
1641148c85eb7Smrg		fi
1641248c85eb7Smrg	fi
164133da084b3Smrg
164143da084b3Smrg
164153da084b3Smrg
164163da084b3Smrg
16417d63fdb69Smrg
164183da084b3Smrg
164193da084b3Smrg
164203da084b3Smrg
164213da084b3Smrg
164223da084b3Smrg
16423d63fdb69Smrg
164243da084b3Smrg
164253da084b3Smrg
164263da084b3Smrg
1642748c85eb7Smrg
1642848c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1642948c85eb7Smrg
1643048c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1643148c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1643248c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1643348c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1643448c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1643548c85eb7Smrg  $as_echo_n "(cached) " >&6
1643648c85eb7Smrgelse
1643748c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643848c85eb7Smrg/* end confdefs.h.  */
1643948c85eb7Smrgint i;
1644048c85eb7Smrg_ACEOF
1644148c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1644248c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1644348c85eb7Smrgelse
1644448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
16445d63fdb69Smrgfi
1644648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644748c85eb7Smrgfi
1644848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1644948c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1645048c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1645148c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16452d63fdb69Smrgfi
16453d63fdb69Smrg
1645448c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1645548c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1645648c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1645748c85eb7Smrg	fi
1645848c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1645948c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1646048c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1646148c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1646248c85eb7Smrg  $as_echo_n "(cached) " >&6
1646348c85eb7Smrgelse
1646448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646548c85eb7Smrg/* end confdefs.h.  */
1646648c85eb7Smrgint i;
1646748c85eb7Smrg_ACEOF
1646848c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1646948c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1647048c85eb7Smrgelse
1647148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1647248c85eb7Smrgfi
1647348c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647448c85eb7Smrgfi
1647548c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1647648c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1647748c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1647848c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1647948c85eb7Smrgfi
16480d63fdb69Smrg
1648148c85eb7Smrgfound="no"
16482d63fdb69Smrg
1648348c85eb7Smrg	if test $found = "no" ; then
1648448c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1648548c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1648648c85eb7Smrg		fi
16487d63fdb69Smrg
1648848c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1648948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1649048c85eb7Smrg		fi
16491d63fdb69Smrg
1649248c85eb7Smrg		CFLAGS="$CFLAGS -Warray-bounds"
16493d63fdb69Smrg
1649448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
1649548c85eb7Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
1649648c85eb7Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
1649748c85eb7Smrg		if eval \${$cacheid+:} false; then :
1649848c85eb7Smrg  $as_echo_n "(cached) " >&6
1649948c85eb7Smrgelse
1650048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650148c85eb7Smrg/* end confdefs.h.  */
1650248c85eb7Smrgint i;
1650348c85eb7Smrgint
1650448c85eb7Smrgmain ()
1650548c85eb7Smrg{
16506d63fdb69Smrg
1650748c85eb7Smrg  ;
1650848c85eb7Smrg  return 0;
1650948c85eb7Smrg}
1651048c85eb7Smrg_ACEOF
1651148c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1651248c85eb7Smrg  eval $cacheid=yes
1651348c85eb7Smrgelse
1651448c85eb7Smrg  eval $cacheid=no
1651548c85eb7Smrgfi
1651648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1651748c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1651848c85eb7Smrgfi
16519d63fdb69Smrg
16520d63fdb69Smrg
1652148c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
16522d63fdb69Smrg
1652348c85eb7Smrg		eval supported=\$$cacheid
1652448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1652548c85eb7Smrg$as_echo "$supported" >&6; }
1652648c85eb7Smrg		if test "$supported" = "yes" ; then
1652748c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
1652848c85eb7Smrg			found="yes"
1652948c85eb7Smrg		fi
1653048c85eb7Smrg	fi
16531d63fdb69Smrg
16532d63fdb69Smrg
16533d63fdb69Smrg
16534d63fdb69Smrg
16535d63fdb69Smrg
16536d63fdb69Smrg
16537d63fdb69Smrg
16538d63fdb69Smrg
16539d63fdb69Smrg
16540d63fdb69Smrg
16541d63fdb69Smrg
16542d63fdb69Smrg
16543d63fdb69Smrg
16544d63fdb69Smrg
16545d63fdb69Smrg
1654648c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16547d63fdb69Smrg
1654848c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1654948c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1655048c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1655148c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1655248c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1655348c85eb7Smrg  $as_echo_n "(cached) " >&6
1655448c85eb7Smrgelse
1655548c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655648c85eb7Smrg/* end confdefs.h.  */
1655748c85eb7Smrgint i;
1655848c85eb7Smrg_ACEOF
1655948c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1656048c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1656148c85eb7Smrgelse
1656248c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1656348c85eb7Smrgfi
1656448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656548c85eb7Smrgfi
1656648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1656748c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1656848c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1656948c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1657048c85eb7Smrgfi
16571d63fdb69Smrg
1657248c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1657348c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1657448c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1657548c85eb7Smrg	fi
1657648c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1657748c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1657848c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1657948c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1658048c85eb7Smrg  $as_echo_n "(cached) " >&6
1658148c85eb7Smrgelse
1658248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658348c85eb7Smrg/* end confdefs.h.  */
1658448c85eb7Smrgint i;
1658548c85eb7Smrg_ACEOF
1658648c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1658748c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1658848c85eb7Smrgelse
1658948c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1659048c85eb7Smrgfi
1659148c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659248c85eb7Smrgfi
1659348c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1659448c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1659548c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1659648c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1659748c85eb7Smrgfi
16598d63fdb69Smrg
1659948c85eb7Smrgfound="no"
16600d63fdb69Smrg
1660148c85eb7Smrg	if test $found = "no" ; then
1660248c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1660348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1660448c85eb7Smrg		fi
16605d63fdb69Smrg
1660648c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1660748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1660848c85eb7Smrg		fi
16609d63fdb69Smrg
1661048c85eb7Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
16611d63fdb69Smrg
1661248c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
1661348c85eb7Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
1661448c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
1661548c85eb7Smrg		if eval \${$cacheid+:} false; then :
1661648c85eb7Smrg  $as_echo_n "(cached) " >&6
1661748c85eb7Smrgelse
1661848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661948c85eb7Smrg/* end confdefs.h.  */
1662048c85eb7Smrgint i;
1662148c85eb7Smrgint
1662248c85eb7Smrgmain ()
1662348c85eb7Smrg{
16624d63fdb69Smrg
1662548c85eb7Smrg  ;
1662648c85eb7Smrg  return 0;
1662748c85eb7Smrg}
1662848c85eb7Smrg_ACEOF
1662948c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1663048c85eb7Smrg  eval $cacheid=yes
1663148c85eb7Smrgelse
1663248c85eb7Smrg  eval $cacheid=no
1663348c85eb7Smrgfi
1663448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1663548c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1663648c85eb7Smrgfi
16637d63fdb69Smrg
16638d63fdb69Smrg
1663948c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
16640d63fdb69Smrg
1664148c85eb7Smrg		eval supported=\$$cacheid
1664248c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1664348c85eb7Smrg$as_echo "$supported" >&6; }
1664448c85eb7Smrg		if test "$supported" = "yes" ; then
1664548c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
1664648c85eb7Smrg			found="yes"
1664748c85eb7Smrg		fi
1664848c85eb7Smrg	fi
16649d63fdb69Smrg
16650d63fdb69Smrg
16651d63fdb69Smrg
16652d63fdb69Smrg
16653d63fdb69Smrg
16654d63fdb69Smrg
16655d63fdb69Smrg
16656d63fdb69Smrg
16657d63fdb69Smrg
16658d63fdb69Smrg
166593da084b3Smrg
16660d63fdb69Smrg
16661d63fdb69Smrg
16662d63fdb69Smrg
16663d63fdb69Smrg
1666448c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16665d63fdb69Smrg
1666648c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1666748c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1666848c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1666948c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1667048c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1667148c85eb7Smrg  $as_echo_n "(cached) " >&6
1667248c85eb7Smrgelse
1667348c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667448c85eb7Smrg/* end confdefs.h.  */
1667548c85eb7Smrgint i;
1667648c85eb7Smrg_ACEOF
1667748c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1667848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1667948c85eb7Smrgelse
1668048c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1668148c85eb7Smrgfi
1668248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668348c85eb7Smrgfi
1668448c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1668548c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1668648c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1668748c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1668848c85eb7Smrgfi
16689d63fdb69Smrg
1669048c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1669148c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1669248c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1669348c85eb7Smrg	fi
1669448c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1669548c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1669648c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1669748c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1669848c85eb7Smrg  $as_echo_n "(cached) " >&6
1669948c85eb7Smrgelse
1670048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670148c85eb7Smrg/* end confdefs.h.  */
1670248c85eb7Smrgint i;
1670348c85eb7Smrg_ACEOF
1670448c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1670548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1670648c85eb7Smrgelse
1670748c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1670848c85eb7Smrgfi
1670948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671048c85eb7Smrgfi
1671148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1671248c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1671348c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1671448c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1671548c85eb7Smrgfi
16716d63fdb69Smrg
1671748c85eb7Smrgfound="no"
16718d63fdb69Smrg
1671948c85eb7Smrg	if test $found = "no" ; then
1672048c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1672148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1672248c85eb7Smrg		fi
16723d63fdb69Smrg
1672448c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1672548c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1672648c85eb7Smrg		fi
16727d63fdb69Smrg
1672848c85eb7Smrg		CFLAGS="$CFLAGS -Waddress"
16729d63fdb69Smrg
1673048c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
1673148c85eb7Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; }
1673248c85eb7Smrg		cacheid=xorg_cv_cc_flag__Waddress
1673348c85eb7Smrg		if eval \${$cacheid+:} false; then :
1673448c85eb7Smrg  $as_echo_n "(cached) " >&6
1673548c85eb7Smrgelse
1673648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673748c85eb7Smrg/* end confdefs.h.  */
1673848c85eb7Smrgint i;
1673948c85eb7Smrgint
1674048c85eb7Smrgmain ()
1674148c85eb7Smrg{
16742d63fdb69Smrg
1674348c85eb7Smrg  ;
1674448c85eb7Smrg  return 0;
1674548c85eb7Smrg}
1674648c85eb7Smrg_ACEOF
1674748c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1674848c85eb7Smrg  eval $cacheid=yes
1674948c85eb7Smrgelse
1675048c85eb7Smrg  eval $cacheid=no
1675148c85eb7Smrgfi
1675248c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1675348c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1675448c85eb7Smrgfi
16755d63fdb69Smrg
16756d63fdb69Smrg
1675748c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
16758d63fdb69Smrg
1675948c85eb7Smrg		eval supported=\$$cacheid
1676048c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1676148c85eb7Smrg$as_echo "$supported" >&6; }
1676248c85eb7Smrg		if test "$supported" = "yes" ; then
1676348c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
1676448c85eb7Smrg			found="yes"
1676548c85eb7Smrg		fi
1676648c85eb7Smrg	fi
16767d63fdb69Smrg
16768d63fdb69Smrg
16769d63fdb69Smrg
16770d63fdb69Smrg
16771d63fdb69Smrg
16772d63fdb69Smrg
16773d63fdb69Smrg
16774d63fdb69Smrg
16775d63fdb69Smrg
16776d63fdb69Smrg
16777d63fdb69Smrg
16778d63fdb69Smrg
16779d63fdb69Smrg
16780d63fdb69Smrg
16781d63fdb69Smrg
1678248c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16783d63fdb69Smrg
1678448c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1678548c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1678648c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1678748c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1678848c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1678948c85eb7Smrg  $as_echo_n "(cached) " >&6
1679048c85eb7Smrgelse
1679148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679248c85eb7Smrg/* end confdefs.h.  */
1679348c85eb7Smrgint i;
1679448c85eb7Smrg_ACEOF
1679548c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1679648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1679748c85eb7Smrgelse
1679848c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1679948c85eb7Smrgfi
1680048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680148c85eb7Smrgfi
1680248c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1680348c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1680448c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1680548c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1680648c85eb7Smrgfi
16807d63fdb69Smrg
1680848c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1680948c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1681048c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1681148c85eb7Smrg	fi
1681248c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1681348c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1681448c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1681548c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1681648c85eb7Smrg  $as_echo_n "(cached) " >&6
1681748c85eb7Smrgelse
1681848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681948c85eb7Smrg/* end confdefs.h.  */
1682048c85eb7Smrgint i;
1682148c85eb7Smrg_ACEOF
1682248c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1682348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1682448c85eb7Smrgelse
1682548c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1682648c85eb7Smrgfi
1682748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682848c85eb7Smrgfi
1682948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1683048c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1683148c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1683248c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1683348c85eb7Smrgfi
16834d63fdb69Smrg
1683548c85eb7Smrgfound="no"
16836d63fdb69Smrg
1683748c85eb7Smrg	if test $found = "no" ; then
1683848c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1683948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1684048c85eb7Smrg		fi
16841d63fdb69Smrg
1684248c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1684348c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1684448c85eb7Smrg		fi
16845d63fdb69Smrg
1684648c85eb7Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16847d63fdb69Smrg
1684848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
1684948c85eb7Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
1685048c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
1685148c85eb7Smrg		if eval \${$cacheid+:} false; then :
1685248c85eb7Smrg  $as_echo_n "(cached) " >&6
1685348c85eb7Smrgelse
1685448c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685548c85eb7Smrg/* end confdefs.h.  */
1685648c85eb7Smrgint i;
1685748c85eb7Smrgint
1685848c85eb7Smrgmain ()
1685948c85eb7Smrg{
16860d63fdb69Smrg
1686148c85eb7Smrg  ;
1686248c85eb7Smrg  return 0;
1686348c85eb7Smrg}
1686448c85eb7Smrg_ACEOF
1686548c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1686648c85eb7Smrg  eval $cacheid=yes
1686748c85eb7Smrgelse
1686848c85eb7Smrg  eval $cacheid=no
1686948c85eb7Smrgfi
1687048c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1687148c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1687248c85eb7Smrgfi
16873d63fdb69Smrg
16874d63fdb69Smrg
1687548c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1687655acc8fcSmrg
1687748c85eb7Smrg		eval supported=\$$cacheid
1687848c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1687948c85eb7Smrg$as_echo "$supported" >&6; }
1688048c85eb7Smrg		if test "$supported" = "yes" ; then
1688148c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
1688248c85eb7Smrg			found="yes"
1688348c85eb7Smrg		fi
1688448c85eb7Smrg	fi
1688555acc8fcSmrg
1688655acc8fcSmrg
1688755acc8fcSmrg
1688855acc8fcSmrg
16889d63fdb69Smrg
16890d63fdb69Smrg
16891d63fdb69Smrg
16892d63fdb69Smrg
16893d63fdb69Smrg
16894d63fdb69Smrg
16895d63fdb69Smrg
16896d63fdb69Smrg
16897d63fdb69Smrg
16898d63fdb69Smrg
16899d63fdb69Smrg
1690048c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16901d63fdb69Smrg
1690248c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1690348c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1690448c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1690548c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1690648c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16907d63fdb69Smrg  $as_echo_n "(cached) " >&6
16908d63fdb69Smrgelse
1690948c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910d63fdb69Smrg/* end confdefs.h.  */
1691148c85eb7Smrgint i;
16912d63fdb69Smrg_ACEOF
1691348c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1691448c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
16915d63fdb69Smrgelse
1691648c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
169173da084b3Smrgfi
1691848c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
169193da084b3Smrgfi
1692048c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1692148c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1692248c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1692348c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16924d63fdb69Smrgfi
169253da084b3Smrg
1692648c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1692748c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1692848c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1692948c85eb7Smrg	fi
1693048c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1693148c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1693248c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1693348c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16934d63fdb69Smrg  $as_echo_n "(cached) " >&6
16935d63fdb69Smrgelse
1693648c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937d63fdb69Smrg/* end confdefs.h.  */
1693848c85eb7Smrgint i;
16939d63fdb69Smrg_ACEOF
1694048c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1694148c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
16942d63fdb69Smrgelse
1694348c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
16944d63fdb69Smrgfi
1694548c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694648c85eb7Smrgfi
1694748c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1694848c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1694948c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1695048c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16951d63fdb69Smrgfi
169523da084b3Smrg
1695348c85eb7Smrgfound="no"
1695448c85eb7Smrg
1695548c85eb7Smrg	if test $found = "no" ; then
1695648c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1695748c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1695848c85eb7Smrg		fi
1695948c85eb7Smrg
1696048c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1696148c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1696248c85eb7Smrg		fi
1696348c85eb7Smrg
1696448c85eb7Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
1696548c85eb7Smrg
1696648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
1696748c85eb7Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
1696848c85eb7Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
1696948c85eb7Smrg		if eval \${$cacheid+:} false; then :
1697048c85eb7Smrg  $as_echo_n "(cached) " >&6
1697148c85eb7Smrgelse
1697248c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697348c85eb7Smrg/* end confdefs.h.  */
1697448c85eb7Smrgint i;
16975d63fdb69Smrgint
16976d63fdb69Smrgmain ()
16977d63fdb69Smrg{
1697848c85eb7Smrg
16979d63fdb69Smrg  ;
16980d63fdb69Smrg  return 0;
16981d63fdb69Smrg}
16982d63fdb69Smrg_ACEOF
1698355acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then :
1698448c85eb7Smrg  eval $cacheid=yes
16985d63fdb69Smrgelse
1698648c85eb7Smrg  eval $cacheid=no
16987d63fdb69Smrgfi
1698855acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \
1698955acc8fcSmrg    conftest$ac_exeext conftest.$ac_ext
16990d63fdb69Smrgfi
1699148c85eb7Smrg
1699248c85eb7Smrg
1699348c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1699448c85eb7Smrg
1699548c85eb7Smrg		eval supported=\$$cacheid
1699648c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1699748c85eb7Smrg$as_echo "$supported" >&6; }
1699848c85eb7Smrg		if test "$supported" = "yes" ; then
1699948c85eb7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
1700048c85eb7Smrg			found="yes"
1700148c85eb7Smrg		fi
1700248c85eb7Smrg	fi
1700348c85eb7Smrg
1700448c85eb7Smrg
1700548c85eb7Smrgfi
1700648c85eb7Smrg
1700748c85eb7Smrg
1700848c85eb7Smrg
1700948c85eb7Smrg
1701048c85eb7Smrg
1701148c85eb7Smrg
1701248c85eb7Smrg
1701348c85eb7Smrg		CWARNFLAGS="$BASE_CFLAGS"
1701448c85eb7Smrg		if  test "x$GCC" = xyes ; then
1701548c85eb7Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
1701648c85eb7Smrg		fi
1701748c85eb7Smrg
1701848c85eb7Smrg
1701948c85eb7Smrg
1702048c85eb7Smrg
1702148c85eb7Smrg
1702248c85eb7Smrg
1702348c85eb7Smrg
1702448c85eb7Smrg
1702548c85eb7Smrg# Check whether --enable-strict-compilation was given.
1702648c85eb7Smrgif test "${enable_strict_compilation+set}" = set; then :
1702748c85eb7Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17028d63fdb69Smrgelse
1702948c85eb7Smrg  STRICT_COMPILE=no
1703048c85eb7Smrgfi
1703148c85eb7Smrg
1703248c85eb7Smrg
1703348c85eb7Smrg
1703448c85eb7Smrg
1703548c85eb7Smrg
1703648c85eb7Smrg
1703748c85eb7SmrgSTRICT_CFLAGS=""
1703848c85eb7Smrg
1703948c85eb7Smrg
1704048c85eb7Smrg
1704148c85eb7Smrg
1704248c85eb7Smrg
1704348c85eb7Smrg
1704448c85eb7Smrg
1704548c85eb7Smrg
1704648c85eb7Smrg
1704748c85eb7Smrg
1704848c85eb7Smrg
1704948c85eb7Smrg
1705048c85eb7Smrg
1705148c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1705248c85eb7Smrg
1705348c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1705448c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1705548c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1705648c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1705748c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17058d63fdb69Smrg  $as_echo_n "(cached) " >&6
17059d63fdb69Smrgelse
1706048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061d63fdb69Smrg/* end confdefs.h.  */
1706248c85eb7Smrgint i;
17063d63fdb69Smrg_ACEOF
1706448c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1706548c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
17066d63fdb69Smrgelse
1706748c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
17068d63fdb69Smrgfi
1706948c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070d63fdb69Smrgfi
1707148c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1707248c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1707348c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1707448c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1707548c85eb7Smrgfi
1707648c85eb7Smrg
1707748c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1707848c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1707948c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1708048c85eb7Smrg	fi
1708148c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1708248c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1708348c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1708448c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17085d63fdb69Smrg  $as_echo_n "(cached) " >&6
17086d63fdb69Smrgelse
1708748c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088d63fdb69Smrg/* end confdefs.h.  */
1708948c85eb7Smrgint i;
1709048c85eb7Smrg_ACEOF
1709148c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1709248c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1709348c85eb7Smrgelse
1709448c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1709548c85eb7Smrgfi
1709648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709748c85eb7Smrgfi
1709848c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1709948c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1710048c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1710148c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1710248c85eb7Smrgfi
171033da084b3Smrg
1710448c85eb7Smrgfound="no"
1710548c85eb7Smrg
1710648c85eb7Smrg	if test $found = "no" ; then
1710748c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1710848c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1710948c85eb7Smrg		fi
1711048c85eb7Smrg
1711148c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1711248c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1711348c85eb7Smrg		fi
1711448c85eb7Smrg
1711548c85eb7Smrg		CFLAGS="$CFLAGS -pedantic"
1711648c85eb7Smrg
1711748c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
1711848c85eb7Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; }
1711948c85eb7Smrg		cacheid=xorg_cv_cc_flag__pedantic
1712048c85eb7Smrg		if eval \${$cacheid+:} false; then :
1712148c85eb7Smrg  $as_echo_n "(cached) " >&6
1712248c85eb7Smrgelse
1712348c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712448c85eb7Smrg/* end confdefs.h.  */
1712548c85eb7Smrgint i;
17126d63fdb69Smrgint
17127d63fdb69Smrgmain ()
17128d63fdb69Smrg{
1712948c85eb7Smrg
17130d63fdb69Smrg  ;
17131d63fdb69Smrg  return 0;
17132d63fdb69Smrg}
17133d63fdb69Smrg_ACEOF
1713455acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then :
1713548c85eb7Smrg  eval $cacheid=yes
17136d63fdb69Smrgelse
1713748c85eb7Smrg  eval $cacheid=no
17138d63fdb69Smrgfi
1713955acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \
1714055acc8fcSmrg    conftest$ac_exeext conftest.$ac_ext
17141d63fdb69Smrgfi
171423da084b3Smrg
171433da084b3Smrg
1714448c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
171453da084b3Smrg
1714648c85eb7Smrg		eval supported=\$$cacheid
1714748c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1714848c85eb7Smrg$as_echo "$supported" >&6; }
1714948c85eb7Smrg		if test "$supported" = "yes" ; then
1715048c85eb7Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
1715148c85eb7Smrg			found="yes"
1715248c85eb7Smrg		fi
1715348c85eb7Smrg	fi
171543da084b3Smrg
171553da084b3Smrg
171563da084b3Smrg
171573da084b3Smrg
171583da084b3Smrg
171593da084b3Smrg
171603da084b3Smrg
171613da084b3Smrg
171623da084b3Smrg
171633da084b3Smrg
171643da084b3Smrg
171653da084b3Smrg
171663da084b3Smrg
1716755acc8fcSmrg
171683da084b3Smrg
1716948c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
171703da084b3Smrg
1717148c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1717248c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1717348c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1717448c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1717548c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1717648c85eb7Smrg  $as_echo_n "(cached) " >&6
1717748c85eb7Smrgelse
1717848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717948c85eb7Smrg/* end confdefs.h.  */
1718048c85eb7Smrgint i;
1718148c85eb7Smrg_ACEOF
1718248c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1718348c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1718448c85eb7Smrgelse
1718548c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1718648c85eb7Smrgfi
1718748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718848c85eb7Smrgfi
1718948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1719048c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1719148c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1719248c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
17193d63fdb69Smrgfi
171943da084b3Smrg
1719548c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1719648c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1719748c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1719848c85eb7Smrg	fi
1719948c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1720048c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1720148c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1720248c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1720348c85eb7Smrg  $as_echo_n "(cached) " >&6
1720448c85eb7Smrgelse
1720548c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720648c85eb7Smrg/* end confdefs.h.  */
1720748c85eb7Smrgint i;
1720848c85eb7Smrg_ACEOF
1720948c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1721048c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1721148c85eb7Smrgelse
1721248c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1721348c85eb7Smrgfi
1721448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721548c85eb7Smrgfi
1721648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1721748c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1721848c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1721948c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
17220d63fdb69Smrgfi
172213da084b3Smrg
1722248c85eb7Smrgfound="no"
1722348c85eb7Smrg
1722448c85eb7Smrg	if test $found = "no" ; then
1722548c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1722648c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1722748c85eb7Smrg		fi
1722848c85eb7Smrg
1722948c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1723048c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1723148c85eb7Smrg		fi
1723248c85eb7Smrg
1723348c85eb7Smrg		CFLAGS="$CFLAGS -Werror"
1723448c85eb7Smrg
1723548c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
1723648c85eb7Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; }
1723748c85eb7Smrg		cacheid=xorg_cv_cc_flag__Werror
1723848c85eb7Smrg		if eval \${$cacheid+:} false; then :
17239d63fdb69Smrg  $as_echo_n "(cached) " >&6
17240d63fdb69Smrgelse
1724148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724248c85eb7Smrg/* end confdefs.h.  */
1724348c85eb7Smrgint i;
1724448c85eb7Smrgint
1724548c85eb7Smrgmain ()
1724648c85eb7Smrg{
1724748c85eb7Smrg
1724848c85eb7Smrg  ;
1724948c85eb7Smrg  return 0;
1725048c85eb7Smrg}
1725148c85eb7Smrg_ACEOF
1725248c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1725348c85eb7Smrg  eval $cacheid=yes
17254d63fdb69Smrgelse
1725548c85eb7Smrg  eval $cacheid=no
1725648c85eb7Smrgfi
1725748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1725848c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1725948c85eb7Smrgfi
172603da084b3Smrg
172613da084b3Smrg
1726248c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
172633da084b3Smrg
1726448c85eb7Smrg		eval supported=\$$cacheid
1726548c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1726648c85eb7Smrg$as_echo "$supported" >&6; }
1726748c85eb7Smrg		if test "$supported" = "yes" ; then
1726848c85eb7Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
1726948c85eb7Smrg			found="yes"
1727048c85eb7Smrg		fi
1727148c85eb7Smrg	fi
172723da084b3Smrg
1727348c85eb7Smrg	if test $found = "no" ; then
1727448c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1727548c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1727648c85eb7Smrg		fi
172773da084b3Smrg
1727848c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1727948c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1728048c85eb7Smrg		fi
1728155acc8fcSmrg
1728248c85eb7Smrg		CFLAGS="$CFLAGS -errwarn"
172833da084b3Smrg
1728448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
1728548c85eb7Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; }
1728648c85eb7Smrg		cacheid=xorg_cv_cc_flag__errwarn
1728748c85eb7Smrg		if eval \${$cacheid+:} false; then :
1728848c85eb7Smrg  $as_echo_n "(cached) " >&6
1728948c85eb7Smrgelse
1729048c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729148c85eb7Smrg/* end confdefs.h.  */
1729248c85eb7Smrgint i;
1729348c85eb7Smrgint
1729448c85eb7Smrgmain ()
1729548c85eb7Smrg{
172963da084b3Smrg
1729748c85eb7Smrg  ;
1729848c85eb7Smrg  return 0;
17299d63fdb69Smrg}
1730048c85eb7Smrg_ACEOF
1730148c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1730248c85eb7Smrg  eval $cacheid=yes
1730348c85eb7Smrgelse
1730448c85eb7Smrg  eval $cacheid=no
1730548c85eb7Smrgfi
1730648c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1730748c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
17308d63fdb69Smrgfi
173093da084b3Smrg
173103da084b3Smrg
1731148c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
173123da084b3Smrg
1731348c85eb7Smrg		eval supported=\$$cacheid
1731448c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1731548c85eb7Smrg$as_echo "$supported" >&6; }
1731648c85eb7Smrg		if test "$supported" = "yes" ; then
1731748c85eb7Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1731848c85eb7Smrg			found="yes"
1731948c85eb7Smrg		fi
1732048c85eb7Smrg	fi
1732148c85eb7Smrg
1732248c85eb7Smrg
1732348c85eb7Smrg
1732448c85eb7Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1732548c85eb7Smrg# activate it with -Werror, so we add it here explicitly.
173263da084b3Smrg
173273da084b3Smrg
173283da084b3Smrg
173293da084b3Smrg
173303da084b3Smrg
173313da084b3Smrg
173323da084b3Smrg
173333da084b3Smrg
173343da084b3Smrg
173353da084b3Smrg
173363da084b3Smrg
173373da084b3Smrg
173383da084b3Smrg
1733948c85eb7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
173403da084b3Smrg
1734148c85eb7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1734248c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1734348c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1734448c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1734548c85eb7Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1734648c85eb7Smrg  $as_echo_n "(cached) " >&6
1734748c85eb7Smrgelse
1734848c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734948c85eb7Smrg/* end confdefs.h.  */
1735048c85eb7Smrgint i;
1735148c85eb7Smrg_ACEOF
1735248c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1735348c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1735448c85eb7Smrgelse
1735548c85eb7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1735648c85eb7Smrgfi
1735748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735848c85eb7Smrgfi
1735948c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1736048c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1736148c85eb7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1736248c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1736348c85eb7Smrgfi
173643da084b3Smrg
1736548c85eb7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1736648c85eb7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1736748c85eb7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1736848c85eb7Smrg	fi
1736948c85eb7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1737048c85eb7Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1737148c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1737248c85eb7Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1737348c85eb7Smrg  $as_echo_n "(cached) " >&6
1737448c85eb7Smrgelse
1737548c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737648c85eb7Smrg/* end confdefs.h.  */
1737748c85eb7Smrgint i;
1737848c85eb7Smrg_ACEOF
1737948c85eb7Smrgif ac_fn_c_try_compile "$LINENO"; then :
1738048c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1738148c85eb7Smrgelse
1738248c85eb7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1738348c85eb7Smrgfi
1738448c85eb7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738548c85eb7Smrgfi
1738648c85eb7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1738748c85eb7Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1738848c85eb7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1738948c85eb7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1739048c85eb7Smrgfi
173913da084b3Smrg
1739248c85eb7Smrgfound="no"
173933da084b3Smrg
1739448c85eb7Smrg	if test $found = "no" ; then
1739548c85eb7Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1739648c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1739748c85eb7Smrg		fi
173983da084b3Smrg
1739948c85eb7Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1740048c85eb7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1740148c85eb7Smrg		fi
174023da084b3Smrg
1740348c85eb7Smrg		CFLAGS="$CFLAGS -Werror=attributes"
1740448c85eb7Smrg
1740548c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
1740648c85eb7Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
1740748c85eb7Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
1740848c85eb7Smrg		if eval \${$cacheid+:} false; then :
1740948c85eb7Smrg  $as_echo_n "(cached) " >&6
17410d63fdb69Smrgelse
1741148c85eb7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741248c85eb7Smrg/* end confdefs.h.  */
1741348c85eb7Smrgint i;
1741448c85eb7Smrgint
1741548c85eb7Smrgmain ()
1741648c85eb7Smrg{
1741748c85eb7Smrg
1741848c85eb7Smrg  ;
1741948c85eb7Smrg  return 0;
1742048c85eb7Smrg}
1742148c85eb7Smrg_ACEOF
1742248c85eb7Smrgif ac_fn_c_try_link "$LINENO"; then :
1742348c85eb7Smrg  eval $cacheid=yes
1742448c85eb7Smrgelse
1742548c85eb7Smrg  eval $cacheid=no
17426d63fdb69Smrgfi
1742748c85eb7Smrgrm -f core conftest.err conftest.$ac_objext \
1742848c85eb7Smrg    conftest$ac_exeext conftest.$ac_ext
1742948c85eb7Smrgfi
1743048c85eb7Smrg
1743148c85eb7Smrg
1743248c85eb7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1743348c85eb7Smrg
1743448c85eb7Smrg		eval supported=\$$cacheid
1743548c85eb7Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1743648c85eb7Smrg$as_echo "$supported" >&6; }
1743748c85eb7Smrg		if test "$supported" = "yes" ; then
1743848c85eb7Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1743948c85eb7Smrg			found="yes"
1744048c85eb7Smrg		fi
1744148c85eb7Smrg	fi
1744248c85eb7Smrg
1744348c85eb7Smrg
1744448c85eb7Smrg
1744548c85eb7Smrgif test "x$STRICT_COMPILE" = "xyes"; then
1744648c85eb7Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
1744748c85eb7Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
1744848c85eb7Smrgfi
1744948c85eb7Smrg
1745048c85eb7Smrg
1745148c85eb7Smrg
1745248c85eb7Smrg
174533da084b3Smrg
174543da084b3Smrg
1745548c85eb7Smrgcat >>confdefs.h <<_ACEOF
1745648c85eb7Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1745748c85eb7Smrg_ACEOF
1745848c85eb7Smrg
1745948c85eb7Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1746048c85eb7Smrg	if test "x$PVM" = "x"; then
1746148c85eb7Smrg		PVM="0"
1746248c85eb7Smrg	fi
1746348c85eb7Smrg
1746448c85eb7Smrgcat >>confdefs.h <<_ACEOF
1746548c85eb7Smrg#define PACKAGE_VERSION_MINOR $PVM
1746648c85eb7Smrg_ACEOF
1746748c85eb7Smrg
1746848c85eb7Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1746948c85eb7Smrg	if test "x$PVP" = "x"; then
1747048c85eb7Smrg		PVP="0"
1747148c85eb7Smrg	fi
1747248c85eb7Smrg
1747348c85eb7Smrgcat >>confdefs.h <<_ACEOF
1747448c85eb7Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
1747548c85eb7Smrg_ACEOF
174763da084b3Smrg
174773da084b3Smrg
174783da084b3Smrg
1747948c85eb7SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
1748048c85eb7Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1748148c85eb7Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
1748248c85eb7Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
174833da084b3Smrg
174843da084b3Smrg
174853da084b3Smrg
174863da084b3Smrg
1748748c85eb7Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1748848c85eb7SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1748948c85eb7Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1749048c85eb7Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
1749148c85eb7Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
174923da084b3Smrg
174933da084b3Smrg
174943da084b3Smrg
174953da084b3Smrg
174963da084b3Smrg
174973da084b3Smrg
1749848c85eb7Smrgif test x$APP_MAN_SUFFIX = x    ; then
1749948c85eb7Smrg    APP_MAN_SUFFIX=1
1750048c85eb7Smrgfi
1750148c85eb7Smrgif test x$APP_MAN_DIR = x    ; then
1750248c85eb7Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1750348c85eb7Smrgfi
175043da084b3Smrg
1750548c85eb7Smrgif test x$LIB_MAN_SUFFIX = x    ; then
1750648c85eb7Smrg    LIB_MAN_SUFFIX=3
1750748c85eb7Smrgfi
1750848c85eb7Smrgif test x$LIB_MAN_DIR = x    ; then
1750948c85eb7Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1751048c85eb7Smrgfi
175113da084b3Smrg
1751248c85eb7Smrgif test x$FILE_MAN_SUFFIX = x    ; then
1751348c85eb7Smrg    case $host_os in
1751448c85eb7Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
1751548c85eb7Smrg	*)		FILE_MAN_SUFFIX=5  ;;
1751648c85eb7Smrg    esac
1751748c85eb7Smrgfi
1751848c85eb7Smrgif test x$FILE_MAN_DIR = x    ; then
1751948c85eb7Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1752048c85eb7Smrgfi
175213da084b3Smrg
1752248c85eb7Smrgif test x$MISC_MAN_SUFFIX = x    ; then
1752348c85eb7Smrg    case $host_os in
1752448c85eb7Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
1752548c85eb7Smrg	*)		MISC_MAN_SUFFIX=7  ;;
1752648c85eb7Smrg    esac
1752748c85eb7Smrgfi
1752848c85eb7Smrgif test x$MISC_MAN_DIR = x    ; then
1752948c85eb7Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1753048c85eb7Smrgfi
175313da084b3Smrg
1753248c85eb7Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
1753348c85eb7Smrg    case $host_os in
1753448c85eb7Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
1753548c85eb7Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
1753648c85eb7Smrg    esac
1753748c85eb7Smrgfi
1753848c85eb7Smrgif test x$DRIVER_MAN_DIR = x    ; then
1753948c85eb7Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1754048c85eb7Smrgfi
175413da084b3Smrg
1754248c85eb7Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
1754348c85eb7Smrg    case $host_os in
1754448c85eb7Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
1754548c85eb7Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
1754648c85eb7Smrg    esac
1754748c85eb7Smrgfi
1754848c85eb7Smrgif test x$ADMIN_MAN_DIR = x    ; then
1754948c85eb7Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17550d63fdb69Smrgfi
175513da084b3Smrg
175523da084b3Smrg
175533da084b3Smrg
175543da084b3Smrg
175553da084b3Smrg
175563da084b3Smrg
175573da084b3Smrg
175583da084b3Smrg
175593da084b3Smrg
175603da084b3Smrg
175613da084b3Smrg
175623da084b3Smrg
175633da084b3Smrg
175643da084b3Smrg
1756548c85eb7Smrg
1756648c85eb7SmrgXORG_MAN_PAGE="X Version 11"
1756748c85eb7Smrg
1756848c85eb7SmrgMAN_SUBSTS="\
1756948c85eb7Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1757048c85eb7Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1757148c85eb7Smrg	-e 's|__xservername__|Xorg|g' \
1757248c85eb7Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
1757348c85eb7Smrg	-e 's|__projectroot__|\$(prefix)|g' \
1757448c85eb7Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
1757548c85eb7Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
1757648c85eb7Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
1757748c85eb7Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
1757848c85eb7Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
1757948c85eb7Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
1758048c85eb7Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
175813da084b3Smrg
175823da084b3Smrg
175833da084b3Smrg
1758448c85eb7Smrg# Check whether --enable-silent-rules was given.
1758548c85eb7Smrgif test "${enable_silent_rules+set}" = set; then :
1758648c85eb7Smrg  enableval=$enable_silent_rules;
1758748c85eb7Smrgfi
17588d63fdb69Smrg
1758948c85eb7Smrgcase $enable_silent_rules in
1759048c85eb7Smrgyes) AM_DEFAULT_VERBOSITY=0;;
1759148c85eb7Smrgno)  AM_DEFAULT_VERBOSITY=1;;
1759248c85eb7Smrg*)   AM_DEFAULT_VERBOSITY=0;;
1759348c85eb7Smrgesac
1759448c85eb7SmrgAM_BACKSLASH='\'
17595d63fdb69Smrg
17596d63fdb69Smrg
17597d63fdb69Smrg
1759855acc8fcSmrg# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
1759955acc8fcSmrg
1760055acc8fcSmrg
1760155acc8fcSmrg
1760255acc8fcSmrg
1760355acc8fcSmrg
1760455acc8fcSmrg
17605d63fdb69Smrg
176063da084b3Smrg
17607d63fdb69Smrg
17608d63fdb69Smrg
176093da084b3Smrg
176103da084b3Smrg
1761155acc8fcSmrg
1761255acc8fcSmrg
1761355acc8fcSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
1761455acc8fcSmrg$as_echo_n "checking for root directory for font files... " >&6; }
1761555acc8fcSmrg
1761655acc8fcSmrg# Check whether --with-fontrootdir was given.
1761755acc8fcSmrgif test "${with_fontrootdir+set}" = set; then :
1761855acc8fcSmrg  withval=$with_fontrootdir; FONTROOTDIR="$withval"
17619d63fdb69Smrgfi
176203da084b3Smrg
1762155acc8fcSmrg	# if --with-fontrootdir not specified...
1762255acc8fcSmrg	if test "x${FONTROOTDIR}" = "x"; then
1762355acc8fcSmrg		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
1762455acc8fcSmrg	fi
1762555acc8fcSmrg	# ...and if pkg-config didn't find fontdir in fontutil.pc...
1762655acc8fcSmrg	if test "x${FONTROOTDIR}" = "x"; then
1762755acc8fcSmrg		FONTROOTDIR="${datadir}/fonts/X11"
1762855acc8fcSmrg	fi
176293da084b3Smrg
1763055acc8fcSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
1763155acc8fcSmrg$as_echo "${FONTROOTDIR}" >&6; }
176323da084b3Smrg
176333da084b3Smrg
1763455acc8fcSmrg
1763555acc8fcSmrg
1763655acc8fcSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5
1763755acc8fcSmrg$as_echo_n "checking for directory for encodings files... " >&6; }
176383da084b3Smrg
17639d63fdb69Smrg# Check whether --with-encodingsdir was given.
1764055acc8fcSmrgif test "${with_encodingsdir+set}" = set; then :
1764155acc8fcSmrg  withval=$with_encodingsdir; ENCODINGSDIR="${withval}"
1764255acc8fcSmrgelse
1764355acc8fcSmrg  ENCODINGSDIR='${FONTROOTDIR}/encodings'
17644d63fdb69Smrgfi
176453da084b3Smrg
176463da084b3Smrg
1764755acc8fcSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5
1764855acc8fcSmrg$as_echo "${ENCODINGSDIR}" >&6; }
176493da084b3Smrg
17650d63fdb69Smrg
1765155acc8fcSmrg# zlib
1765248c85eb7Smrgac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
1765348c85eb7Smrgif test "x$ac_cv_header_zlib_h" = xyes; then :
1765448c85eb7Smrg
1765548c85eb7Smrgelse
1765648c85eb7Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1765748c85eb7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1765848c85eb7Smrgas_fn_error $? "zlib.h is required to compile libfontenc
1765948c85eb7SmrgSee \`config.log' for more details" "$LINENO" 5; }
1766048c85eb7Smrgfi
1766148c85eb7Smrg
17662d63fdb69Smrg
1766355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5
17664d63fdb69Smrg$as_echo_n "checking for gzclose in -lz... " >&6; }
1766555acc8fcSmrgif ${ac_cv_lib_z_gzclose+:} false; then :
17666d63fdb69Smrg  $as_echo_n "(cached) " >&6
17667d63fdb69Smrgelse
17668d63fdb69Smrg  ac_check_lib_save_LIBS=$LIBS
17669d63fdb69SmrgLIBS="-lz  $LIBS"
1767055acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671d63fdb69Smrg/* end confdefs.h.  */
17672d63fdb69Smrg
17673d63fdb69Smrg/* Override any GCC internal prototype to avoid an error.
17674d63fdb69Smrg   Use char because int might match the return type of a GCC
17675d63fdb69Smrg   builtin and then its argument prototype would still apply.  */
17676d63fdb69Smrg#ifdef __cplusplus
17677d63fdb69Smrgextern "C"
17678d63fdb69Smrg#endif
17679d63fdb69Smrgchar gzclose ();
17680d63fdb69Smrgint
17681d63fdb69Smrgmain ()
17682d63fdb69Smrg{
17683d63fdb69Smrgreturn gzclose ();
17684d63fdb69Smrg  ;
17685d63fdb69Smrg  return 0;
17686d63fdb69Smrg}
17687d63fdb69Smrg_ACEOF
1768855acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then :
17689d63fdb69Smrg  ac_cv_lib_z_gzclose=yes
17690d63fdb69Smrgelse
1769155acc8fcSmrg  ac_cv_lib_z_gzclose=no
17692d63fdb69Smrgfi
1769355acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \
1769455acc8fcSmrg    conftest$ac_exeext conftest.$ac_ext
17695d63fdb69SmrgLIBS=$ac_check_lib_save_LIBS
17696d63fdb69Smrgfi
1769755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5
17698d63fdb69Smrg$as_echo "$ac_cv_lib_z_gzclose" >&6; }
1769955acc8fcSmrgif test "x$ac_cv_lib_z_gzclose" = xyes; then :
17700d63fdb69Smrg  cat >>confdefs.h <<_ACEOF
17701d63fdb69Smrg#define HAVE_LIBZ 1
17702d63fdb69Smrg_ACEOF
177033da084b3Smrg
17704d63fdb69Smrg  LIBS="-lz $LIBS"
177053da084b3Smrg
1770648c85eb7Smrgelse
1770748c85eb7Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1770848c85eb7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1770948c85eb7Smrgas_fn_error $? "zlib is required to compile libfontenc
1771048c85eb7SmrgSee \`config.log' for more details" "$LINENO" 5; }
17711d63fdb69Smrgfi
177123da084b3Smrg
177133da084b3Smrg
1771448c85eb7Smrg# Obtain compiler/linker options for depedencies
177153da084b3Smrg
17716d63fdb69Smrgpkg_failed=no
1771755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTENC" >&5
17718d63fdb69Smrg$as_echo_n "checking for FONTENC... " >&6; }
17719d63fdb69Smrg
17720d63fdb69Smrgif test -n "$FONTENC_CFLAGS"; then
17721d63fdb69Smrg    pkg_cv_FONTENC_CFLAGS="$FONTENC_CFLAGS"
17722d63fdb69Smrg elif test -n "$PKG_CONFIG"; then
17723d63fdb69Smrg    if test -n "$PKG_CONFIG" && \
1772455acc8fcSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
17725d63fdb69Smrg  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
17726d63fdb69Smrg  ac_status=$?
1772755acc8fcSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772855acc8fcSmrg  test $ac_status = 0; }; then
17729d63fdb69Smrg  pkg_cv_FONTENC_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
17730d63fdb69Smrgelse
17731d63fdb69Smrg  pkg_failed=yes
17732d63fdb69Smrgfi
17733d63fdb69Smrg else
17734d63fdb69Smrg    pkg_failed=untried
17735d63fdb69Smrgfi
17736d63fdb69Smrgif test -n "$FONTENC_LIBS"; then
17737d63fdb69Smrg    pkg_cv_FONTENC_LIBS="$FONTENC_LIBS"
17738d63fdb69Smrg elif test -n "$PKG_CONFIG"; then
17739d63fdb69Smrg    if test -n "$PKG_CONFIG" && \
1774055acc8fcSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
17741d63fdb69Smrg  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
17742d63fdb69Smrg  ac_status=$?
1774355acc8fcSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774455acc8fcSmrg  test $ac_status = 0; }; then
17745d63fdb69Smrg  pkg_cv_FONTENC_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
17746d63fdb69Smrgelse
17747d63fdb69Smrg  pkg_failed=yes
17748d63fdb69Smrgfi
17749d63fdb69Smrg else
17750d63fdb69Smrg    pkg_failed=untried
17751d63fdb69Smrgfi
177523da084b3Smrg
177533da084b3Smrg
177543da084b3Smrg
17755d63fdb69Smrgif test $pkg_failed = yes; then
177563da084b3Smrg
17757d63fdb69Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17758d63fdb69Smrg        _pkg_short_errors_supported=yes
17759d63fdb69Smrgelse
17760d63fdb69Smrg        _pkg_short_errors_supported=no
17761d63fdb69Smrgfi
17762d63fdb69Smrg        if test $_pkg_short_errors_supported = yes; then
17763d63fdb69Smrg	        FONTENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
17764d63fdb69Smrg        else
17765d63fdb69Smrg	        FONTENC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
17766d63fdb69Smrg        fi
17767d63fdb69Smrg	# Put the nasty error message in config.log where it belongs
17768d63fdb69Smrg	echo "$FONTENC_PKG_ERRORS" >&5
177693da084b3Smrg
1777055acc8fcSmrg	as_fn_error $? "Package requirements (xproto) were not met:
177713da084b3Smrg
17772d63fdb69Smrg$FONTENC_PKG_ERRORS
177733da084b3Smrg
17774d63fdb69SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
17775d63fdb69Smrginstalled software in a non-standard prefix.
177763da084b3Smrg
17777d63fdb69SmrgAlternatively, you may set the environment variables FONTENC_CFLAGS
17778d63fdb69Smrgand FONTENC_LIBS to avoid the need to call pkg-config.
17779d63fdb69SmrgSee the pkg-config man page for more details.
1778055acc8fcSmrg" "$LINENO" 5
17781d63fdb69Smrgelif test $pkg_failed = untried; then
1778255acc8fcSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17783d63fdb69Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1778455acc8fcSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17785d63fdb69Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
17786d63fdb69Smrgpath to pkg-config.
177873da084b3Smrg
17788d63fdb69SmrgAlternatively, you may set the environment variables FONTENC_CFLAGS
17789d63fdb69Smrgand FONTENC_LIBS to avoid the need to call pkg-config.
17790d63fdb69SmrgSee the pkg-config man page for more details.
177913da084b3Smrg
17792d63fdb69SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1779355acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
17794d63fdb69Smrgelse
17795d63fdb69Smrg	FONTENC_CFLAGS=$pkg_cv_FONTENC_CFLAGS
17796d63fdb69Smrg	FONTENC_LIBS=$pkg_cv_FONTENC_LIBS
1779755acc8fcSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17798d63fdb69Smrg$as_echo "yes" >&6; }
17799d63fdb69Smrg	:
17800d63fdb69Smrgfi
178013da084b3Smrg
1780248c85eb7Smrg# Allow checking code with lint, sparse, etc.
178033da084b3Smrg
178043da084b3Smrg
178053da084b3Smrg
178063da084b3Smrg
178073da084b3Smrg
17808d63fdb69Smrg# Check whether --with-lint was given.
1780955acc8fcSmrgif test "${with_lint+set}" = set; then :
17810d63fdb69Smrg  withval=$with_lint; use_lint=$withval
17811d63fdb69Smrgelse
17812d63fdb69Smrg  use_lint=no
17813d63fdb69Smrgfi
178143da084b3Smrg
1781555acc8fcSmrg
1781655acc8fcSmrg# Obtain platform specific info like program name and options
1781755acc8fcSmrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris
1781855acc8fcSmrgcase $host_os in
1781955acc8fcSmrg  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
1782055acc8fcSmrg	lint_name=splint
1782155acc8fcSmrg	lint_options="-badflag"
1782255acc8fcSmrg	;;
1782355acc8fcSmrg  *freebsd* | *netbsd*)
1782455acc8fcSmrg	lint_name=lint
1782555acc8fcSmrg	lint_options="-u -b"
1782655acc8fcSmrg	;;
1782755acc8fcSmrg  *solaris*)
1782855acc8fcSmrg	lint_name=lint
1782955acc8fcSmrg	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
1783055acc8fcSmrg	;;
1783155acc8fcSmrgesac
1783255acc8fcSmrg
1783355acc8fcSmrg# Test for the presence of the program (either guessed by the code or spelled out by the user)
1783455acc8fcSmrgif test "x$use_lint" = x"yes" ; then
1783555acc8fcSmrg   # Extract the first word of "$lint_name", so it can be a program name with args.
1783655acc8fcSmrgset dummy $lint_name; ac_word=$2
1783755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1783855acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; }
1783955acc8fcSmrgif ${ac_cv_path_LINT+:} false; then :
1784055acc8fcSmrg  $as_echo_n "(cached) " >&6
1784155acc8fcSmrgelse
1784255acc8fcSmrg  case $LINT in
1784355acc8fcSmrg  [\\/]* | ?:[\\/]*)
1784455acc8fcSmrg  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
1784555acc8fcSmrg  ;;
1784655acc8fcSmrg  *)
1784755acc8fcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784855acc8fcSmrgfor as_dir in $PATH
1784955acc8fcSmrgdo
1785055acc8fcSmrg  IFS=$as_save_IFS
1785155acc8fcSmrg  test -z "$as_dir" && as_dir=.
1785255acc8fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
1785355acc8fcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1785455acc8fcSmrg    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
1785555acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1785655acc8fcSmrg    break 2
1785755acc8fcSmrg  fi
1785855acc8fcSmrgdone
1785955acc8fcSmrg  done
1786055acc8fcSmrgIFS=$as_save_IFS
1786155acc8fcSmrg
1786255acc8fcSmrg  ;;
1786355acc8fcSmrgesac
1786455acc8fcSmrgfi
1786555acc8fcSmrgLINT=$ac_cv_path_LINT
1786655acc8fcSmrgif test -n "$LINT"; then
1786755acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
1786855acc8fcSmrg$as_echo "$LINT" >&6; }
17869d63fdb69Smrgelse
1787055acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1787155acc8fcSmrg$as_echo "no" >&6; }
17872d63fdb69Smrgfi
1787355acc8fcSmrg
1787455acc8fcSmrg
1787555acc8fcSmrg   if test "x$LINT" = "x"; then
1787655acc8fcSmrg        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
1787755acc8fcSmrg   fi
1787855acc8fcSmrgelif test "x$use_lint" = x"no" ; then
1787955acc8fcSmrg   if test "x$LINT" != "x"; then
1788055acc8fcSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
1788155acc8fcSmrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
1788255acc8fcSmrg   fi
1788355acc8fcSmrgelse
1788455acc8fcSmrg   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17885d63fdb69Smrgfi
178863da084b3Smrg
1788755acc8fcSmrg# User supplied flags override default flags
1788855acc8fcSmrgif test "x$LINT_FLAGS" != "x"; then
1788955acc8fcSmrg   lint_options=$LINT_FLAGS
1789055acc8fcSmrgfi
178913da084b3Smrg
1789255acc8fcSmrgLINT_FLAGS=$lint_options
178933da084b3Smrg
1789455acc8fcSmrg if test "x$LINT" != x; then
17895d63fdb69Smrg  LINT_TRUE=
17896d63fdb69Smrg  LINT_FALSE='#'
17897d63fdb69Smrgelse
17898d63fdb69Smrg  LINT_TRUE='#'
17899d63fdb69Smrg  LINT_FALSE=
17900d63fdb69Smrgfi
179013da084b3Smrg
179023da084b3Smrg
179033da084b3Smrg
17904d63fdb69SmrgLINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
179053da084b3Smrg
17906d63fdb69Smrgac_config_files="$ac_config_files Makefile src/Makefile fontenc.pc"
179073da084b3Smrg
17908d63fdb69Smrgcat >confcache <<\_ACEOF
17909d63fdb69Smrg# This file is a shell script that caches the results of configure
17910d63fdb69Smrg# tests run on this system so they can be shared between configure
17911d63fdb69Smrg# scripts and configure runs, see configure's option --config-cache.
17912d63fdb69Smrg# It is not useful on other systems.  If it contains results you don't
17913d63fdb69Smrg# want to keep, you may remove or edit it.
17914d63fdb69Smrg#
17915d63fdb69Smrg# config.status only pays attention to the cache file if you give it
17916d63fdb69Smrg# the --recheck option to rerun configure.
17917d63fdb69Smrg#
17918d63fdb69Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
17919d63fdb69Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
17920d63fdb69Smrg# following values.
179213da084b3Smrg
17922d63fdb69Smrg_ACEOF
179233da084b3Smrg
17924d63fdb69Smrg# The following way of writing the cache mishandles newlines in values,
17925d63fdb69Smrg# but we know of no workaround that is simple, portable, and efficient.
17926d63fdb69Smrg# So, we kill variables containing newlines.
17927d63fdb69Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
17928d63fdb69Smrg# and sets the high bit in the cache file unless we assign to the vars.
17929d63fdb69Smrg(
17930d63fdb69Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17931d63fdb69Smrg    eval ac_val=\$$ac_var
17932d63fdb69Smrg    case $ac_val in #(
17933d63fdb69Smrg    *${as_nl}*)
17934d63fdb69Smrg      case $ac_var in #(
1793555acc8fcSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17936d63fdb69Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17937d63fdb69Smrg      esac
17938d63fdb69Smrg      case $ac_var in #(
17939d63fdb69Smrg      _ | IFS | as_nl) ;; #(
17940d63fdb69Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1794155acc8fcSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
17942d63fdb69Smrg      esac ;;
17943d63fdb69Smrg    esac
17944d63fdb69Smrg  done
179453da084b3Smrg
17946d63fdb69Smrg  (set) 2>&1 |
17947d63fdb69Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17948d63fdb69Smrg    *${as_nl}ac_space=\ *)
1794955acc8fcSmrg      # `set' does not quote correctly, so add quotes: double-quote
1795055acc8fcSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
17951d63fdb69Smrg      sed -n \
17952d63fdb69Smrg	"s/'/'\\\\''/g;
17953d63fdb69Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17954d63fdb69Smrg      ;; #(
17955d63fdb69Smrg    *)
17956d63fdb69Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
17957d63fdb69Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17958d63fdb69Smrg      ;;
17959d63fdb69Smrg    esac |
17960d63fdb69Smrg    sort
17961d63fdb69Smrg) |
17962d63fdb69Smrg  sed '
17963d63fdb69Smrg     /^ac_cv_env_/b end
17964d63fdb69Smrg     t clear
17965d63fdb69Smrg     :clear
17966d63fdb69Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17967d63fdb69Smrg     t end
17968d63fdb69Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17969d63fdb69Smrg     :end' >>confcache
17970d63fdb69Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17971d63fdb69Smrg  if test -w "$cache_file"; then
1797255acc8fcSmrg    if test "x$cache_file" != "x/dev/null"; then
1797355acc8fcSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17974d63fdb69Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
1797555acc8fcSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
1797655acc8fcSmrg	cat confcache >"$cache_file"
1797755acc8fcSmrg      else
1797855acc8fcSmrg        case $cache_file in #(
1797955acc8fcSmrg        */* | ?:*)
1798055acc8fcSmrg	  mv -f confcache "$cache_file"$$ &&
1798155acc8fcSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
1798255acc8fcSmrg        *)
1798355acc8fcSmrg	  mv -f confcache "$cache_file" ;;
1798455acc8fcSmrg	esac
1798555acc8fcSmrg      fi
1798655acc8fcSmrg    fi
17987d63fdb69Smrg  else
1798855acc8fcSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17989d63fdb69Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17990d63fdb69Smrg  fi
17991d63fdb69Smrgfi
17992d63fdb69Smrgrm -f confcache
179933da084b3Smrg
17994d63fdb69Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
17995d63fdb69Smrg# Let make expand exec_prefix.
17996d63fdb69Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
179973da084b3Smrg
17998d63fdb69SmrgDEFS=-DHAVE_CONFIG_H
179993da084b3Smrg
18000d63fdb69Smrgac_libobjs=
18001d63fdb69Smrgac_ltlibobjs=
1800255acc8fcSmrgU=
18003d63fdb69Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18004d63fdb69Smrg  # 1. Remove the extension, and $U if already installed.
18005d63fdb69Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18006d63fdb69Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18007d63fdb69Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18008d63fdb69Smrg  #    will be set to the directory where LIBOBJS objects are built.
1800955acc8fcSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1801055acc8fcSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18011d63fdb69Smrgdone
18012d63fdb69SmrgLIBOBJS=$ac_libobjs
180133da084b3Smrg
18014d63fdb69SmrgLTLIBOBJS=$ac_ltlibobjs
180153da084b3Smrg
180163da084b3Smrg
18017d63fdb69Smrg if test -n "$EXEEXT"; then
18018d63fdb69Smrg  am__EXEEXT_TRUE=
18019d63fdb69Smrg  am__EXEEXT_FALSE='#'
18020d63fdb69Smrgelse
18021d63fdb69Smrg  am__EXEEXT_TRUE='#'
18022d63fdb69Smrg  am__EXEEXT_FALSE=
18023d63fdb69Smrgfi
180243da084b3Smrg
18025d63fdb69Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1802655acc8fcSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
1802755acc8fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18028d63fdb69Smrgfi
18029d63fdb69Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1803055acc8fcSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1803155acc8fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1803255acc8fcSmrgfi
18033d63fdb69Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
1803455acc8fcSmrg  as_fn_error $? "conditional \"LINT\" was never defined.
1803555acc8fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18036d63fdb69Smrgfi
180373da084b3Smrg
1803855acc8fcSmrg: "${CONFIG_STATUS=./config.status}"
18039d63fdb69Smrgac_write_fail=0
18040d63fdb69Smrgac_clean_files_save=$ac_clean_files
18041d63fdb69Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
1804255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18043d63fdb69Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1804455acc8fcSmrgas_write_fail=0
1804555acc8fcSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18046d63fdb69Smrg#! $SHELL
18047d63fdb69Smrg# Generated by $as_me.
18048d63fdb69Smrg# Run this file to recreate the current configuration.
18049d63fdb69Smrg# Compiler output produced by configure, useful for debugging
18050d63fdb69Smrg# configure, is in config.log if it exists.
180513da084b3Smrg
18052d63fdb69Smrgdebug=false
18053d63fdb69Smrgac_cs_recheck=false
18054d63fdb69Smrgac_cs_silent=false
180553da084b3Smrg
1805655acc8fcSmrgSHELL=\${CONFIG_SHELL-$SHELL}
1805755acc8fcSmrgexport SHELL
1805855acc8fcSmrg_ASEOF
1805955acc8fcSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
1806055acc8fcSmrg## -------------------- ##
1806155acc8fcSmrg## M4sh Initialization. ##
1806255acc8fcSmrg## -------------------- ##
180633da084b3Smrg
18064d63fdb69Smrg# Be more Bourne compatible
18065d63fdb69SmrgDUALCASE=1; export DUALCASE # for MKS sh
1806655acc8fcSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18067d63fdb69Smrg  emulate sh
18068d63fdb69Smrg  NULLCMD=:
18069d63fdb69Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18070d63fdb69Smrg  # is contrary to our usage.  Disable this feature.
18071d63fdb69Smrg  alias -g '${1+"$@"}'='"$@"'
18072d63fdb69Smrg  setopt NO_GLOB_SUBST
18073d63fdb69Smrgelse
1807455acc8fcSmrg  case `(set -o) 2>/dev/null` in #(
1807555acc8fcSmrg  *posix*) :
1807655acc8fcSmrg    set -o posix ;; #(
1807755acc8fcSmrg  *) :
1807855acc8fcSmrg     ;;
18079d63fdb69Smrgesac
18080d63fdb69Smrgfi
180813da084b3Smrg
180823da084b3Smrg
18083d63fdb69Smrgas_nl='
18084d63fdb69Smrg'
18085d63fdb69Smrgexport as_nl
18086d63fdb69Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
18087d63fdb69Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18088d63fdb69Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18089d63fdb69Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1809055acc8fcSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
1809155acc8fcSmrg# but without wasting forks for bash or zsh.
1809255acc8fcSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
1809355acc8fcSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
1809455acc8fcSmrg  as_echo='print -r --'
1809555acc8fcSmrg  as_echo_n='print -rn --'
1809655acc8fcSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18097d63fdb69Smrg  as_echo='printf %s\n'
18098d63fdb69Smrg  as_echo_n='printf %s'
18099d63fdb69Smrgelse
18100d63fdb69Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18101d63fdb69Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18102d63fdb69Smrg    as_echo_n='/usr/ucb/echo -n'
18103d63fdb69Smrg  else
18104d63fdb69Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18105d63fdb69Smrg    as_echo_n_body='eval
18106d63fdb69Smrg      arg=$1;
1810755acc8fcSmrg      case $arg in #(
18108d63fdb69Smrg      *"$as_nl"*)
18109d63fdb69Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
18110d63fdb69Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18111d63fdb69Smrg      esac;
18112d63fdb69Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18113d63fdb69Smrg    '
18114d63fdb69Smrg    export as_echo_n_body
18115d63fdb69Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
18116d63fdb69Smrg  fi
18117d63fdb69Smrg  export as_echo_body
18118d63fdb69Smrg  as_echo='sh -c $as_echo_body as_echo'
18119d63fdb69Smrgfi
181203da084b3Smrg
18121d63fdb69Smrg# The user is always right.
18122d63fdb69Smrgif test "${PATH_SEPARATOR+set}" != set; then
18123d63fdb69Smrg  PATH_SEPARATOR=:
18124d63fdb69Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18125d63fdb69Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18126d63fdb69Smrg      PATH_SEPARATOR=';'
18127d63fdb69Smrg  }
18128d63fdb69Smrgfi
181293da084b3Smrg
181303da084b3Smrg
18131d63fdb69Smrg# IFS
18132d63fdb69Smrg# We need space, tab and new line, in precisely that order.  Quoting is
18133d63fdb69Smrg# there to prevent editors from complaining about space-tab.
18134d63fdb69Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18135d63fdb69Smrg# splitting by setting IFS to empty value.)
18136d63fdb69SmrgIFS=" ""	$as_nl"
181373da084b3Smrg
18138d63fdb69Smrg# Find who we are.  Look in the path if we contain no directory separator.
1813955acc8fcSmrgas_myself=
1814055acc8fcSmrgcase $0 in #((
18141d63fdb69Smrg  *[\\/]* ) as_myself=$0 ;;
18142d63fdb69Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18143d63fdb69Smrgfor as_dir in $PATH
18144d63fdb69Smrgdo
18145d63fdb69Smrg  IFS=$as_save_IFS
18146d63fdb69Smrg  test -z "$as_dir" && as_dir=.
1814755acc8fcSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1814855acc8fcSmrg  done
18149d63fdb69SmrgIFS=$as_save_IFS
181503da084b3Smrg
18151d63fdb69Smrg     ;;
18152d63fdb69Smrgesac
18153d63fdb69Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
18154d63fdb69Smrg# in which case we are not to be found in the path.
18155d63fdb69Smrgif test "x$as_myself" = x; then
18156d63fdb69Smrg  as_myself=$0
18157d63fdb69Smrgfi
18158d63fdb69Smrgif test ! -f "$as_myself"; then
18159d63fdb69Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1816055acc8fcSmrg  exit 1
181613da084b3Smrgfi
181623da084b3Smrg
1816355acc8fcSmrg# Unset variables that we do not need and which cause bugs (e.g. in
1816455acc8fcSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1816555acc8fcSmrg# suppresses any "Segmentation fault" message there.  '((' could
1816655acc8fcSmrg# trigger a bug in pdksh 5.2.14.
1816755acc8fcSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1816855acc8fcSmrgdo eval test x\${$as_var+set} = xset \
1816955acc8fcSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18170d63fdb69Smrgdone
18171d63fdb69SmrgPS1='$ '
18172d63fdb69SmrgPS2='> '
18173d63fdb69SmrgPS4='+ '
181743da084b3Smrg
18175d63fdb69Smrg# NLS nuisances.
18176d63fdb69SmrgLC_ALL=C
18177d63fdb69Smrgexport LC_ALL
18178d63fdb69SmrgLANGUAGE=C
18179d63fdb69Smrgexport LANGUAGE
181803da084b3Smrg
1818155acc8fcSmrg# CDPATH.
1818255acc8fcSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1818355acc8fcSmrg
1818455acc8fcSmrg
1818555acc8fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
1818655acc8fcSmrg# ----------------------------------------
1818755acc8fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1818855acc8fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1818955acc8fcSmrg# script with STATUS, using 1 if that was 0.
1819055acc8fcSmrgas_fn_error ()
1819155acc8fcSmrg{
1819255acc8fcSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
1819355acc8fcSmrg  if test "$4"; then
1819455acc8fcSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819555acc8fcSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1819655acc8fcSmrg  fi
1819755acc8fcSmrg  $as_echo "$as_me: error: $2" >&2
1819855acc8fcSmrg  as_fn_exit $as_status
1819955acc8fcSmrg} # as_fn_error
1820055acc8fcSmrg
1820155acc8fcSmrg
1820255acc8fcSmrg# as_fn_set_status STATUS
1820355acc8fcSmrg# -----------------------
1820455acc8fcSmrg# Set $? to STATUS, without forking.
1820555acc8fcSmrgas_fn_set_status ()
1820655acc8fcSmrg{
1820755acc8fcSmrg  return $1
1820855acc8fcSmrg} # as_fn_set_status
1820955acc8fcSmrg
1821055acc8fcSmrg# as_fn_exit STATUS
1821155acc8fcSmrg# -----------------
1821255acc8fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
1821355acc8fcSmrgas_fn_exit ()
1821455acc8fcSmrg{
1821555acc8fcSmrg  set +e
1821655acc8fcSmrg  as_fn_set_status $1
1821755acc8fcSmrg  exit $1
1821855acc8fcSmrg} # as_fn_exit
1821955acc8fcSmrg
1822055acc8fcSmrg# as_fn_unset VAR
1822155acc8fcSmrg# ---------------
1822255acc8fcSmrg# Portably unset VAR.
1822355acc8fcSmrgas_fn_unset ()
1822455acc8fcSmrg{
1822555acc8fcSmrg  { eval $1=; unset $1;}
1822655acc8fcSmrg}
1822755acc8fcSmrgas_unset=as_fn_unset
1822855acc8fcSmrg# as_fn_append VAR VALUE
1822955acc8fcSmrg# ----------------------
1823055acc8fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
1823155acc8fcSmrg# advantage of any shell optimizations that allow amortized linear growth over
1823255acc8fcSmrg# repeated appends, instead of the typical quadratic growth present in naive
1823355acc8fcSmrg# implementations.
1823455acc8fcSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
1823555acc8fcSmrg  eval 'as_fn_append ()
1823655acc8fcSmrg  {
1823755acc8fcSmrg    eval $1+=\$2
1823855acc8fcSmrg  }'
1823955acc8fcSmrgelse
1824055acc8fcSmrg  as_fn_append ()
1824155acc8fcSmrg  {
1824255acc8fcSmrg    eval $1=\$$1\$2
1824355acc8fcSmrg  }
1824455acc8fcSmrgfi # as_fn_append
1824555acc8fcSmrg
1824655acc8fcSmrg# as_fn_arith ARG...
1824755acc8fcSmrg# ------------------
1824855acc8fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
1824955acc8fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
1825055acc8fcSmrg# must be portable across $(()) and expr.
1825155acc8fcSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
1825255acc8fcSmrg  eval 'as_fn_arith ()
1825355acc8fcSmrg  {
1825455acc8fcSmrg    as_val=$(( $* ))
1825555acc8fcSmrg  }'
1825655acc8fcSmrgelse
1825755acc8fcSmrg  as_fn_arith ()
1825855acc8fcSmrg  {
1825955acc8fcSmrg    as_val=`expr "$@" || test $? -eq 1`
1826055acc8fcSmrg  }
1826155acc8fcSmrgfi # as_fn_arith
1826255acc8fcSmrg
1826355acc8fcSmrg
18264d63fdb69Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
18265d63fdb69Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18266d63fdb69Smrg  as_expr=expr
18267d63fdb69Smrgelse
18268d63fdb69Smrg  as_expr=false
18269d63fdb69Smrgfi
182703da084b3Smrg
18271d63fdb69Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18272d63fdb69Smrg  as_basename=basename
18273d63fdb69Smrgelse
18274d63fdb69Smrg  as_basename=false
182753da084b3Smrgfi
182763da084b3Smrg
1827755acc8fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1827855acc8fcSmrg  as_dirname=dirname
1827955acc8fcSmrgelse
1828055acc8fcSmrg  as_dirname=false
1828155acc8fcSmrgfi
182823da084b3Smrg
18283d63fdb69Smrgas_me=`$as_basename -- "$0" ||
18284d63fdb69Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18285d63fdb69Smrg	 X"$0" : 'X\(//\)$' \| \
18286d63fdb69Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18287d63fdb69Smrg$as_echo X/"$0" |
18288d63fdb69Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
18289d63fdb69Smrg	    s//\1/
18290d63fdb69Smrg	    q
18291d63fdb69Smrg	  }
18292d63fdb69Smrg	  /^X\/\(\/\/\)$/{
18293d63fdb69Smrg	    s//\1/
18294d63fdb69Smrg	    q
18295d63fdb69Smrg	  }
18296d63fdb69Smrg	  /^X\/\(\/\).*/{
18297d63fdb69Smrg	    s//\1/
18298d63fdb69Smrg	    q
18299d63fdb69Smrg	  }
18300d63fdb69Smrg	  s/.*/./; q'`
183013da084b3Smrg
1830255acc8fcSmrg# Avoid depending upon Character Ranges.
1830355acc8fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
1830455acc8fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1830555acc8fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
1830655acc8fcSmrgas_cr_digits='0123456789'
1830755acc8fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
183083da084b3Smrg
18309d63fdb69SmrgECHO_C= ECHO_N= ECHO_T=
1831055acc8fcSmrgcase `echo -n x` in #(((((
18311d63fdb69Smrg-n*)
1831255acc8fcSmrg  case `echo 'xy\c'` in
18313d63fdb69Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
1831455acc8fcSmrg  xy)  ECHO_C='\c';;
1831555acc8fcSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
1831655acc8fcSmrg       ECHO_T='	';;
18317d63fdb69Smrg  esac;;
18318d63fdb69Smrg*)
18319d63fdb69Smrg  ECHO_N='-n';;
18320d63fdb69Smrgesac
183213da084b3Smrg
18322d63fdb69Smrgrm -f conf$$ conf$$.exe conf$$.file
18323d63fdb69Smrgif test -d conf$$.dir; then
18324d63fdb69Smrg  rm -f conf$$.dir/conf$$.file
18325d63fdb69Smrgelse
18326d63fdb69Smrg  rm -f conf$$.dir
18327d63fdb69Smrg  mkdir conf$$.dir 2>/dev/null
18328d63fdb69Smrgfi
18329d63fdb69Smrgif (echo >conf$$.file) 2>/dev/null; then
18330d63fdb69Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
18331d63fdb69Smrg    as_ln_s='ln -s'
18332d63fdb69Smrg    # ... but there are two gotchas:
18333d63fdb69Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18334d63fdb69Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18335d63fdb69Smrg    # In both cases, we have to default to `cp -p'.
18336d63fdb69Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18337d63fdb69Smrg      as_ln_s='cp -p'
18338d63fdb69Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
18339d63fdb69Smrg    as_ln_s=ln
18340d63fdb69Smrg  else
18341d63fdb69Smrg    as_ln_s='cp -p'
18342d63fdb69Smrg  fi
18343d63fdb69Smrgelse
18344d63fdb69Smrg  as_ln_s='cp -p'
18345d63fdb69Smrgfi
18346d63fdb69Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18347d63fdb69Smrgrmdir conf$$.dir 2>/dev/null
183483da084b3Smrg
1834955acc8fcSmrg
1835055acc8fcSmrg# as_fn_mkdir_p
1835155acc8fcSmrg# -------------
1835255acc8fcSmrg# Create "$as_dir" as a directory, including parents if necessary.
1835355acc8fcSmrgas_fn_mkdir_p ()
1835455acc8fcSmrg{
1835555acc8fcSmrg
1835655acc8fcSmrg  case $as_dir in #(
1835755acc8fcSmrg  -*) as_dir=./$as_dir;;
1835855acc8fcSmrg  esac
1835955acc8fcSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
1836055acc8fcSmrg    as_dirs=
1836155acc8fcSmrg    while :; do
1836255acc8fcSmrg      case $as_dir in #(
1836355acc8fcSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1836455acc8fcSmrg      *) as_qdir=$as_dir;;
1836555acc8fcSmrg      esac
1836655acc8fcSmrg      as_dirs="'$as_qdir' $as_dirs"
1836755acc8fcSmrg      as_dir=`$as_dirname -- "$as_dir" ||
1836855acc8fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1836955acc8fcSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
1837055acc8fcSmrg	 X"$as_dir" : 'X\(//\)$' \| \
1837155acc8fcSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1837255acc8fcSmrg$as_echo X"$as_dir" |
1837355acc8fcSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1837455acc8fcSmrg	    s//\1/
1837555acc8fcSmrg	    q
1837655acc8fcSmrg	  }
1837755acc8fcSmrg	  /^X\(\/\/\)[^/].*/{
1837855acc8fcSmrg	    s//\1/
1837955acc8fcSmrg	    q
1838055acc8fcSmrg	  }
1838155acc8fcSmrg	  /^X\(\/\/\)$/{
1838255acc8fcSmrg	    s//\1/
1838355acc8fcSmrg	    q
1838455acc8fcSmrg	  }
1838555acc8fcSmrg	  /^X\(\/\).*/{
1838655acc8fcSmrg	    s//\1/
1838755acc8fcSmrg	    q
1838855acc8fcSmrg	  }
1838955acc8fcSmrg	  s/.*/./; q'`
1839055acc8fcSmrg      test -d "$as_dir" && break
1839155acc8fcSmrg    done
1839255acc8fcSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
1839355acc8fcSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1839455acc8fcSmrg
1839555acc8fcSmrg
1839655acc8fcSmrg} # as_fn_mkdir_p
18397d63fdb69Smrgif mkdir -p . 2>/dev/null; then
1839855acc8fcSmrg  as_mkdir_p='mkdir -p "$as_dir"'
18399d63fdb69Smrgelse
18400d63fdb69Smrg  test -d ./-p && rmdir ./-p
18401d63fdb69Smrg  as_mkdir_p=false
18402d63fdb69Smrgfi
184033da084b3Smrg
18404d63fdb69Smrgif test -x / >/dev/null 2>&1; then
18405d63fdb69Smrg  as_test_x='test -x'
18406d63fdb69Smrgelse
18407d63fdb69Smrg  if ls -dL / >/dev/null 2>&1; then
18408d63fdb69Smrg    as_ls_L_option=L
18409d63fdb69Smrg  else
18410d63fdb69Smrg    as_ls_L_option=
18411d63fdb69Smrg  fi
18412d63fdb69Smrg  as_test_x='
18413d63fdb69Smrg    eval sh -c '\''
18414d63fdb69Smrg      if test -d "$1"; then
18415d63fdb69Smrg	test -d "$1/.";
18416d63fdb69Smrg      else
1841755acc8fcSmrg	case $1 in #(
18418d63fdb69Smrg	-*)set "./$1";;
18419d63fdb69Smrg	esac;
1842055acc8fcSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18421d63fdb69Smrg	???[sx]*):;;*)false;;esac;fi
18422d63fdb69Smrg    '\'' sh
18423d63fdb69Smrg  '
18424d63fdb69Smrgfi
18425d63fdb69Smrgas_executable_p=$as_test_x
184263da084b3Smrg
18427d63fdb69Smrg# Sed expression to map a string onto a valid CPP name.
18428d63fdb69Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
184293da084b3Smrg
18430d63fdb69Smrg# Sed expression to map a string onto a valid variable name.
18431d63fdb69Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
184323da084b3Smrg
184333da084b3Smrg
18434d63fdb69Smrgexec 6>&1
1843555acc8fcSmrg## ----------------------------------- ##
1843655acc8fcSmrg## Main body of $CONFIG_STATUS script. ##
1843755acc8fcSmrg## ----------------------------------- ##
1843855acc8fcSmrg_ASEOF
1843955acc8fcSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
184403da084b3Smrg
1844155acc8fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1844255acc8fcSmrg# Save the log message, to keep $0 and so on meaningful, and to
18443d63fdb69Smrg# report actual input values of CONFIG_FILES etc. instead of their
18444d63fdb69Smrg# values after options handling.
18445d63fdb69Smrgac_log="
1844648c85eb7SmrgThis file was extended by libfontenc $as_me 1.1.2, which was
1844755acc8fcSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
184483da084b3Smrg
18449d63fdb69Smrg  CONFIG_FILES    = $CONFIG_FILES
18450d63fdb69Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
18451d63fdb69Smrg  CONFIG_LINKS    = $CONFIG_LINKS
18452d63fdb69Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
18453d63fdb69Smrg  $ $0 $@
184543da084b3Smrg
18455d63fdb69Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
18456d63fdb69Smrg"
184573da084b3Smrg
18458d63fdb69Smrg_ACEOF
184593da084b3Smrg
18460d63fdb69Smrgcase $ac_config_files in *"
18461d63fdb69Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
18462d63fdb69Smrgesac
184633da084b3Smrg
18464d63fdb69Smrgcase $ac_config_headers in *"
18465d63fdb69Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18466d63fdb69Smrgesac
184673da084b3Smrg
184683da084b3Smrg
18469d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18470d63fdb69Smrg# Files that config.status was made for.
18471d63fdb69Smrgconfig_files="$ac_config_files"
18472d63fdb69Smrgconfig_headers="$ac_config_headers"
18473d63fdb69Smrgconfig_commands="$ac_config_commands"
184743da084b3Smrg
18475d63fdb69Smrg_ACEOF
184763da084b3Smrg
18477d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18478d63fdb69Smrgac_cs_usage="\
1847955acc8fcSmrg\`$as_me' instantiates files and other configuration actions
1848055acc8fcSmrgfrom templates according to the current configuration.  Unless the files
1848155acc8fcSmrgand actions are specified as TAGs, all are instantiated by default.
184823da084b3Smrg
1848355acc8fcSmrgUsage: $0 [OPTION]... [TAG]...
184843da084b3Smrg
18485d63fdb69Smrg  -h, --help       print this help, then exit
18486d63fdb69Smrg  -V, --version    print version number and configuration settings, then exit
1848755acc8fcSmrg      --config     print configuration, then exit
18488d63fdb69Smrg  -q, --quiet, --silent
18489d63fdb69Smrg                   do not print progress messages
18490d63fdb69Smrg  -d, --debug      don't remove temporary files
18491d63fdb69Smrg      --recheck    update $as_me by reconfiguring in the same conditions
18492d63fdb69Smrg      --file=FILE[:TEMPLATE]
18493d63fdb69Smrg                   instantiate the configuration file FILE
18494d63fdb69Smrg      --header=FILE[:TEMPLATE]
18495d63fdb69Smrg                   instantiate the configuration header FILE
184963da084b3Smrg
18497d63fdb69SmrgConfiguration files:
18498d63fdb69Smrg$config_files
184993da084b3Smrg
18500d63fdb69SmrgConfiguration headers:
18501d63fdb69Smrg$config_headers
185023da084b3Smrg
18503d63fdb69SmrgConfiguration commands:
18504d63fdb69Smrg$config_commands
185053da084b3Smrg
1850655acc8fcSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
185073da084b3Smrg
185083da084b3Smrg_ACEOF
18509d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1851055acc8fcSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18511d63fdb69Smrgac_cs_version="\\
1851248c85eb7Smrglibfontenc config.status 1.1.2
1851355acc8fcSmrgconfigured by $0, generated by GNU Autoconf 2.68,
1851455acc8fcSmrg  with options \\"\$ac_cs_config\\"
185153da084b3Smrg
1851655acc8fcSmrgCopyright (C) 2010 Free Software Foundation, Inc.
18517d63fdb69SmrgThis config.status script is free software; the Free Software Foundation
18518d63fdb69Smrggives unlimited permission to copy, distribute and modify it."
185193da084b3Smrg
18520d63fdb69Smrgac_pwd='$ac_pwd'
18521d63fdb69Smrgsrcdir='$srcdir'
18522d63fdb69SmrgINSTALL='$INSTALL'
18523d63fdb69SmrgMKDIR_P='$MKDIR_P'
18524d63fdb69SmrgAWK='$AWK'
18525d63fdb69Smrgtest -n "\$AWK" || AWK=awk
18526d63fdb69Smrg_ACEOF
185273da084b3Smrg
18528d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18529d63fdb69Smrg# The default lists apply if the user does not specify any file.
18530d63fdb69Smrgac_need_defaults=:
18531d63fdb69Smrgwhile test $# != 0
18532d63fdb69Smrgdo
18533d63fdb69Smrg  case $1 in
1853455acc8fcSmrg  --*=?*)
18535d63fdb69Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18536d63fdb69Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18537d63fdb69Smrg    ac_shift=:
18538d63fdb69Smrg    ;;
1853955acc8fcSmrg  --*=)
1854055acc8fcSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1854155acc8fcSmrg    ac_optarg=
1854255acc8fcSmrg    ac_shift=:
1854355acc8fcSmrg    ;;
18544d63fdb69Smrg  *)
18545d63fdb69Smrg    ac_option=$1
18546d63fdb69Smrg    ac_optarg=$2
18547d63fdb69Smrg    ac_shift=shift
18548d63fdb69Smrg    ;;
18549d63fdb69Smrg  esac
185503da084b3Smrg
18551d63fdb69Smrg  case $ac_option in
18552d63fdb69Smrg  # Handling of the options.
18553d63fdb69Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18554d63fdb69Smrg    ac_cs_recheck=: ;;
18555d63fdb69Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18556d63fdb69Smrg    $as_echo "$ac_cs_version"; exit ;;
1855755acc8fcSmrg  --config | --confi | --conf | --con | --co | --c )
1855855acc8fcSmrg    $as_echo "$ac_cs_config"; exit ;;
18559d63fdb69Smrg  --debug | --debu | --deb | --de | --d | -d )
18560d63fdb69Smrg    debug=: ;;
18561d63fdb69Smrg  --file | --fil | --fi | --f )
18562d63fdb69Smrg    $ac_shift
18563d63fdb69Smrg    case $ac_optarg in
18564d63fdb69Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1856555acc8fcSmrg    '') as_fn_error $? "missing file argument" ;;
18566d63fdb69Smrg    esac
1856755acc8fcSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
18568d63fdb69Smrg    ac_need_defaults=false;;
18569d63fdb69Smrg  --header | --heade | --head | --hea )
18570d63fdb69Smrg    $ac_shift
18571d63fdb69Smrg    case $ac_optarg in
18572d63fdb69Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18573d63fdb69Smrg    esac
1857455acc8fcSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18575d63fdb69Smrg    ac_need_defaults=false;;
18576d63fdb69Smrg  --he | --h)
18577d63fdb69Smrg    # Conflict between --help and --header
1857855acc8fcSmrg    as_fn_error $? "ambiguous option: \`$1'
1857955acc8fcSmrgTry \`$0 --help' for more information.";;
18580d63fdb69Smrg  --help | --hel | -h )
18581d63fdb69Smrg    $as_echo "$ac_cs_usage"; exit ;;
18582d63fdb69Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18583d63fdb69Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18584d63fdb69Smrg    ac_cs_silent=: ;;
185853da084b3Smrg
18586d63fdb69Smrg  # This is an error.
1858755acc8fcSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
1858855acc8fcSmrgTry \`$0 --help' for more information." ;;
185893da084b3Smrg
1859055acc8fcSmrg  *) as_fn_append ac_config_targets " $1"
18591d63fdb69Smrg     ac_need_defaults=false ;;
185923da084b3Smrg
18593d63fdb69Smrg  esac
18594d63fdb69Smrg  shift
185953da084b3Smrgdone
185963da084b3Smrg
18597d63fdb69Smrgac_configure_extra_args=
18598d63fdb69Smrg
18599d63fdb69Smrgif $ac_cs_silent; then
18600d63fdb69Smrg  exec 6>/dev/null
18601d63fdb69Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
186023da084b3Smrgfi
18603d63fdb69Smrg
18604d63fdb69Smrg_ACEOF
18605d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18606d63fdb69Smrgif \$ac_cs_recheck; then
18607d63fdb69Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18608d63fdb69Smrg  shift
18609d63fdb69Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18610d63fdb69Smrg  CONFIG_SHELL='$SHELL'
18611d63fdb69Smrg  export CONFIG_SHELL
18612d63fdb69Smrg  exec "\$@"
186133da084b3Smrgfi
186143da084b3Smrg
18615d63fdb69Smrg_ACEOF
18616d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18617d63fdb69Smrgexec 5>>config.log
18618d63fdb69Smrg{
18619d63fdb69Smrg  echo
18620d63fdb69Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18621d63fdb69Smrg## Running $as_me. ##
18622d63fdb69Smrg_ASBOX
18623d63fdb69Smrg  $as_echo "$ac_log"
18624d63fdb69Smrg} >&5
186253da084b3Smrg
18626d63fdb69Smrg_ACEOF
18627d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18628d63fdb69Smrg#
18629d63fdb69Smrg# INIT-COMMANDS
18630d63fdb69Smrg#
18631d63fdb69SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18632d63fdb69Smrg
18633d63fdb69Smrg
18634d63fdb69Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout
18635d63fdb69Smrg# if CDPATH is set.
18636d63fdb69Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18637d63fdb69Smrg
18638d63fdb69Smrgsed_quote_subst='$sed_quote_subst'
18639d63fdb69Smrgdouble_quote_subst='$double_quote_subst'
18640d63fdb69Smrgdelay_variable_subst='$delay_variable_subst'
1864155acc8fcSmrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
1864255acc8fcSmrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1864355acc8fcSmrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1864455acc8fcSmrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1864555acc8fcSmrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1864655acc8fcSmrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
1864755acc8fcSmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1864855acc8fcSmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1864948c85eb7SmrgPATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1865055acc8fcSmrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
1865155acc8fcSmrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
1865255acc8fcSmrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
1865355acc8fcSmrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
1865455acc8fcSmrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
1865555acc8fcSmrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
1865655acc8fcSmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
1865755acc8fcSmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
1865855acc8fcSmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
1865955acc8fcSmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
1866055acc8fcSmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
1866155acc8fcSmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
1866255acc8fcSmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
1866355acc8fcSmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
1866455acc8fcSmrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
1866555acc8fcSmrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
1866655acc8fcSmrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
1866755acc8fcSmrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
1866855acc8fcSmrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
1866955acc8fcSmrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
1867048c85eb7Smrglt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
1867148c85eb7Smrglt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
1867255acc8fcSmrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1867355acc8fcSmrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1867455acc8fcSmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1867555acc8fcSmrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1867655acc8fcSmrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
1867748c85eb7Smrgfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
1867848c85eb7Smrgwant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
1867948c85eb7SmrgDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
1868048c85eb7Smrgsharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
1868155acc8fcSmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1868255acc8fcSmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
1868348c85eb7Smrgarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
1868455acc8fcSmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1868555acc8fcSmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
1868655acc8fcSmrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
1868755acc8fcSmrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
1868855acc8fcSmrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
1868955acc8fcSmrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
1869055acc8fcSmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
1869155acc8fcSmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
1869255acc8fcSmrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
1869355acc8fcSmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
1869455acc8fcSmrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
1869555acc8fcSmrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1869655acc8fcSmrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1869755acc8fcSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
1869848c85eb7Smrgnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
1869948c85eb7Smrglt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1870055acc8fcSmrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1870155acc8fcSmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1870255acc8fcSmrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1870355acc8fcSmrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1870448c85eb7Smrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
1870555acc8fcSmrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
1870655acc8fcSmrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
1870755acc8fcSmrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
1870848c85eb7SmrgMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
1870955acc8fcSmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
1871055acc8fcSmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
1871155acc8fcSmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
1871255acc8fcSmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
1871355acc8fcSmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
1871455acc8fcSmrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
1871555acc8fcSmrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
1871655acc8fcSmrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
1871755acc8fcSmrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
1871855acc8fcSmrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
1871955acc8fcSmrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
1872055acc8fcSmrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
1872155acc8fcSmrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
1872255acc8fcSmrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
1872355acc8fcSmrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
1872455acc8fcSmrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
1872555acc8fcSmrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
1872655acc8fcSmrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
1872755acc8fcSmrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
1872855acc8fcSmrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
1872955acc8fcSmrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
1873055acc8fcSmrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
1873155acc8fcSmrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
1873255acc8fcSmrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
1873355acc8fcSmrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
1873455acc8fcSmrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
1873555acc8fcSmrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
1873655acc8fcSmrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
1873755acc8fcSmrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
1873855acc8fcSmrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
1873955acc8fcSmrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
1874055acc8fcSmrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
1874155acc8fcSmrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
1874255acc8fcSmrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
1874355acc8fcSmrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
1874455acc8fcSmrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
1874548c85eb7Smrgpostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
1874655acc8fcSmrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
1874755acc8fcSmrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
1874855acc8fcSmrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
1874955acc8fcSmrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
1875055acc8fcSmrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
1875155acc8fcSmrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
1875255acc8fcSmrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
1875355acc8fcSmrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
1875455acc8fcSmrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
1875555acc8fcSmrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
1875655acc8fcSmrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
1875755acc8fcSmrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
1875855acc8fcSmrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
1875955acc8fcSmrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
1876055acc8fcSmrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
1876155acc8fcSmrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
1876255acc8fcSmrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
1876355acc8fcSmrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
1876455acc8fcSmrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
1876555acc8fcSmrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
1876655acc8fcSmrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
1876755acc8fcSmrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
1876855acc8fcSmrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
1876955acc8fcSmrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
1877055acc8fcSmrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18771d63fdb69Smrg
18772d63fdb69SmrgLTCC='$LTCC'
18773d63fdb69SmrgLTCFLAGS='$LTCFLAGS'
18774d63fdb69Smrgcompiler='$compiler_DEFAULT'
18775d63fdb69Smrg
1877655acc8fcSmrg# A function that is used when there is no print builtin or printf.
1877755acc8fcSmrgfunc_fallback_echo ()
1877855acc8fcSmrg{
1877955acc8fcSmrg  eval 'cat <<_LTECHO_EOF
1878055acc8fcSmrg\$1
1878155acc8fcSmrg_LTECHO_EOF'
1878255acc8fcSmrg}
1878355acc8fcSmrg
18784d63fdb69Smrg# Quote evaled strings.
1878555acc8fcSmrgfor var in SHELL \
1878655acc8fcSmrgECHO \
1878748c85eb7SmrgPATH_SEPARATOR \
1878855acc8fcSmrgSED \
18789d63fdb69SmrgGREP \
18790d63fdb69SmrgEGREP \
18791d63fdb69SmrgFGREP \
18792d63fdb69SmrgLD \
18793d63fdb69SmrgNM \
18794d63fdb69SmrgLN_S \
18795d63fdb69Smrglt_SP2NL \
18796d63fdb69Smrglt_NL2SP \
18797d63fdb69Smrgreload_flag \
18798d63fdb69SmrgOBJDUMP \
18799d63fdb69Smrgdeplibs_check_method \
18800d63fdb69Smrgfile_magic_cmd \
1880148c85eb7Smrgfile_magic_glob \
1880248c85eb7Smrgwant_nocaseglob \
1880348c85eb7SmrgDLLTOOL \
1880448c85eb7Smrgsharedlib_from_linklib_cmd \
18805d63fdb69SmrgAR \
18806d63fdb69SmrgAR_FLAGS \
1880748c85eb7Smrgarchiver_list_spec \
18808d63fdb69SmrgSTRIP \
18809d63fdb69SmrgRANLIB \
18810d63fdb69SmrgCC \
18811d63fdb69SmrgCFLAGS \
18812d63fdb69Smrgcompiler \
18813d63fdb69Smrglt_cv_sys_global_symbol_pipe \
18814d63fdb69Smrglt_cv_sys_global_symbol_to_cdecl \
18815d63fdb69Smrglt_cv_sys_global_symbol_to_c_name_address \
18816d63fdb69Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1881748c85eb7Smrgnm_file_list_spec \
18818d63fdb69Smrglt_prog_compiler_no_builtin_flag \
18819d63fdb69Smrglt_prog_compiler_pic \
1882048c85eb7Smrglt_prog_compiler_wl \
18821d63fdb69Smrglt_prog_compiler_static \
18822d63fdb69Smrglt_cv_prog_compiler_c_o \
18823d63fdb69Smrgneed_locks \
1882448c85eb7SmrgMANIFEST_TOOL \
18825d63fdb69SmrgDSYMUTIL \
18826d63fdb69SmrgNMEDIT \
18827d63fdb69SmrgLIPO \
18828d63fdb69SmrgOTOOL \
18829d63fdb69SmrgOTOOL64 \
18830d63fdb69Smrgshrext_cmds \
18831d63fdb69Smrgexport_dynamic_flag_spec \
18832d63fdb69Smrgwhole_archive_flag_spec \
18833d63fdb69Smrgcompiler_needs_object \
18834d63fdb69Smrgwith_gnu_ld \
18835d63fdb69Smrgallow_undefined_flag \
18836d63fdb69Smrgno_undefined_flag \
18837d63fdb69Smrghardcode_libdir_flag_spec \
18838d63fdb69Smrghardcode_libdir_separator \
18839d63fdb69Smrgexclude_expsyms \
18840d63fdb69Smrginclude_expsyms \
18841d63fdb69Smrgfile_list_spec \
18842d63fdb69Smrgvariables_saved_for_relink \
18843d63fdb69Smrglibname_spec \
18844d63fdb69Smrglibrary_names_spec \
18845d63fdb69Smrgsoname_spec \
1884655acc8fcSmrginstall_override_mode \
18847d63fdb69Smrgfinish_eval \
18848d63fdb69Smrgold_striplib \
18849d63fdb69Smrgstriplib; do
1885055acc8fcSmrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18851d63fdb69Smrg    *[\\\\\\\`\\"\\\$]*)
1885255acc8fcSmrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18853d63fdb69Smrg      ;;
18854d63fdb69Smrg    *)
18855d63fdb69Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18856d63fdb69Smrg      ;;
18857d63fdb69Smrg    esac
188583da084b3Smrgdone
18859d63fdb69Smrg
18860d63fdb69Smrg# Double-quote double-evaled strings.
18861d63fdb69Smrgfor var in reload_cmds \
18862d63fdb69Smrgold_postinstall_cmds \
18863d63fdb69Smrgold_postuninstall_cmds \
18864d63fdb69Smrgold_archive_cmds \
18865d63fdb69Smrgextract_expsyms_cmds \
18866d63fdb69Smrgold_archive_from_new_cmds \
18867d63fdb69Smrgold_archive_from_expsyms_cmds \
18868d63fdb69Smrgarchive_cmds \
18869d63fdb69Smrgarchive_expsym_cmds \
18870d63fdb69Smrgmodule_cmds \
18871d63fdb69Smrgmodule_expsym_cmds \
18872d63fdb69Smrgexport_symbols_cmds \
18873d63fdb69Smrgprelink_cmds \
1887448c85eb7Smrgpostlink_cmds \
18875d63fdb69Smrgpostinstall_cmds \
18876d63fdb69Smrgpostuninstall_cmds \
18877d63fdb69Smrgfinish_cmds \
18878d63fdb69Smrgsys_lib_search_path_spec \
18879d63fdb69Smrgsys_lib_dlsearch_path_spec; do
1888055acc8fcSmrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18881d63fdb69Smrg    *[\\\\\\\`\\"\\\$]*)
1888255acc8fcSmrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18883d63fdb69Smrg      ;;
18884d63fdb69Smrg    *)
18885d63fdb69Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18886d63fdb69Smrg      ;;
18887d63fdb69Smrg    esac
188883da084b3Smrgdone
188893da084b3Smrg
18890d63fdb69Smrgac_aux_dir='$ac_aux_dir'
18891d63fdb69Smrgxsi_shell='$xsi_shell'
18892d63fdb69Smrglt_shell_append='$lt_shell_append'
188933da084b3Smrg
18894d63fdb69Smrg# See if we are running on zsh, and set the options which allow our
18895d63fdb69Smrg# commands through without removal of \ escapes INIT.
18896d63fdb69Smrgif test -n "\${ZSH_VERSION+set}" ; then
18897d63fdb69Smrg   setopt NO_GLOB_SUBST
188983da084b3Smrgfi
188993da084b3Smrg
189003da084b3Smrg
18901d63fdb69Smrg    PACKAGE='$PACKAGE'
18902d63fdb69Smrg    VERSION='$VERSION'
18903d63fdb69Smrg    TIMESTAMP='$TIMESTAMP'
18904d63fdb69Smrg    RM='$RM'
18905d63fdb69Smrg    ofile='$ofile'
189063da084b3Smrg
189073da084b3Smrg
189083da084b3Smrg
189093da084b3Smrg
18910d63fdb69Smrg_ACEOF
189113da084b3Smrg
18912d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
189133da084b3Smrg
18914d63fdb69Smrg# Handling of arguments.
18915d63fdb69Smrgfor ac_config_target in $ac_config_targets
18916d63fdb69Smrgdo
18917d63fdb69Smrg  case $ac_config_target in
1891855acc8fcSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1891948c85eb7Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18920d63fdb69Smrg    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18921d63fdb69Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18922d63fdb69Smrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18923d63fdb69Smrg    "fontenc.pc") CONFIG_FILES="$CONFIG_FILES fontenc.pc" ;;
189243da084b3Smrg
1892555acc8fcSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18926d63fdb69Smrg  esac
18927d63fdb69Smrgdone
189283da084b3Smrg
189293da084b3Smrg
18930d63fdb69Smrg# If the user did not use the arguments to specify the items to instantiate,
18931d63fdb69Smrg# then the envvar interface is used.  Set only those that are not.
18932d63fdb69Smrg# We use the long form for the default assignment because of an extremely
18933d63fdb69Smrg# bizarre bug on SunOS 4.1.3.
18934d63fdb69Smrgif $ac_need_defaults; then
18935d63fdb69Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18936d63fdb69Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18937d63fdb69Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18938d63fdb69Smrgfi
189393da084b3Smrg
18940d63fdb69Smrg# Have a temporary directory for convenience.  Make it in the build tree
18941d63fdb69Smrg# simply because there is no reason against having it here, and in addition,
18942d63fdb69Smrg# creating and moving files from /tmp can sometimes cause problems.
18943d63fdb69Smrg# Hook for its removal unless debugging.
18944d63fdb69Smrg# Note that there is a small window in which the directory will not be cleaned:
18945d63fdb69Smrg# after its creation but before its name has been assigned to `$tmp'.
18946d63fdb69Smrg$debug ||
18947d63fdb69Smrg{
1894855acc8fcSmrg  tmp= ac_tmp=
18949d63fdb69Smrg  trap 'exit_status=$?
1895055acc8fcSmrg  : "${ac_tmp:=$tmp}"
1895155acc8fcSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18952d63fdb69Smrg' 0
1895355acc8fcSmrg  trap 'as_fn_exit 1' 1 2 13 15
18954d63fdb69Smrg}
18955d63fdb69Smrg# Create a (secure) tmp directory for tmp files.
189563da084b3Smrg
18957d63fdb69Smrg{
18958d63fdb69Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1895955acc8fcSmrg  test -d "$tmp"
18960d63fdb69Smrg}  ||
18961d63fdb69Smrg{
18962d63fdb69Smrg  tmp=./conf$$-$RANDOM
18963d63fdb69Smrg  (umask 077 && mkdir "$tmp")
1896455acc8fcSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1896555acc8fcSmrgac_tmp=$tmp
189663da084b3Smrg
18967d63fdb69Smrg# Set up the scripts for CONFIG_FILES section.
18968d63fdb69Smrg# No need to generate them if there are no CONFIG_FILES.
18969d63fdb69Smrg# This happens for instance with `./config.status config.h'.
18970d63fdb69Smrgif test -n "$CONFIG_FILES"; then
189713da084b3Smrg
189723da084b3Smrg
1897355acc8fcSmrgac_cr=`echo X | tr X '\015'`
1897455acc8fcSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
1897555acc8fcSmrg# But we know of no other shell where ac_cr would be empty at this
1897655acc8fcSmrg# point, so we can use a bashism as a fallback.
1897755acc8fcSmrgif test "x$ac_cr" = x; then
1897855acc8fcSmrg  eval ac_cr=\$\'\\r\'
1897955acc8fcSmrgfi
18980d63fdb69Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18981d63fdb69Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18982d63fdb69Smrg  ac_cs_awk_cr='\\r'
189833da084b3Smrgelse
18984d63fdb69Smrg  ac_cs_awk_cr=$ac_cr
189853da084b3Smrgfi
189863da084b3Smrg
1898755acc8fcSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18988d63fdb69Smrg_ACEOF
189893da084b3Smrg
189903da084b3Smrg
18991d63fdb69Smrg{
18992d63fdb69Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
18993d63fdb69Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18994d63fdb69Smrg  echo "_ACEOF"
18995d63fdb69Smrg} >conf$$subs.sh ||
1899655acc8fcSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1899755acc8fcSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18998d63fdb69Smrgac_delim='%!_!# '
18999d63fdb69Smrgfor ac_last_try in false false false false false :; do
19000d63fdb69Smrg  . ./conf$$subs.sh ||
1900155acc8fcSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
190023da084b3Smrg
19003d63fdb69Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19004d63fdb69Smrg  if test $ac_delim_n = $ac_delim_num; then
19005d63fdb69Smrg    break
19006d63fdb69Smrg  elif $ac_last_try; then
1900755acc8fcSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19008d63fdb69Smrg  else
19009d63fdb69Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19010d63fdb69Smrg  fi
19011d63fdb69Smrgdone
19012d63fdb69Smrgrm -f conf$$subs.sh
19013d63fdb69Smrg
19014d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1901555acc8fcSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19016d63fdb69Smrg_ACEOF
19017d63fdb69Smrgsed -n '
19018d63fdb69Smrgh
19019d63fdb69Smrgs/^/S["/; s/!.*/"]=/
19020d63fdb69Smrgp
19021d63fdb69Smrgg
19022d63fdb69Smrgs/^[^!]*!//
19023d63fdb69Smrg:repl
19024d63fdb69Smrgt repl
19025d63fdb69Smrgs/'"$ac_delim"'$//
19026d63fdb69Smrgt delim
19027d63fdb69Smrg:nl
19028d63fdb69Smrgh
1902955acc8fcSmrgs/\(.\{148\}\)..*/\1/
19030d63fdb69Smrgt more1
19031d63fdb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19032d63fdb69Smrgp
19033d63fdb69Smrgn
19034d63fdb69Smrgb repl
19035d63fdb69Smrg:more1
19036d63fdb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
19037d63fdb69Smrgp
19038d63fdb69Smrgg
19039d63fdb69Smrgs/.\{148\}//
19040d63fdb69Smrgt nl
19041d63fdb69Smrg:delim
19042d63fdb69Smrgh
1904355acc8fcSmrgs/\(.\{148\}\)..*/\1/
19044d63fdb69Smrgt more2
19045d63fdb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
19046d63fdb69Smrgp
19047d63fdb69Smrgb
19048d63fdb69Smrg:more2
19049d63fdb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
19050d63fdb69Smrgp
19051d63fdb69Smrgg
19052d63fdb69Smrgs/.\{148\}//
19053d63fdb69Smrgt delim
19054d63fdb69Smrg' <conf$$subs.awk | sed '
19055d63fdb69Smrg/^[^""]/{
19056d63fdb69Smrg  N
19057d63fdb69Smrg  s/\n//
19058d63fdb69Smrg}
19059d63fdb69Smrg' >>$CONFIG_STATUS || ac_write_fail=1
19060d63fdb69Smrgrm -f conf$$subs.awk
19061d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19062d63fdb69Smrg_ACAWK
1906355acc8fcSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19064d63fdb69Smrg  for (key in S) S_is_set[key] = 1
19065d63fdb69Smrg  FS = ""
190663da084b3Smrg
19067d63fdb69Smrg}
19068d63fdb69Smrg{
19069d63fdb69Smrg  line = $ 0
19070d63fdb69Smrg  nfields = split(line, field, "@")
19071d63fdb69Smrg  substed = 0
19072d63fdb69Smrg  len = length(field[1])
19073d63fdb69Smrg  for (i = 2; i < nfields; i++) {
19074d63fdb69Smrg    key = field[i]
19075d63fdb69Smrg    keylen = length(key)
19076d63fdb69Smrg    if (S_is_set[key]) {
19077d63fdb69Smrg      value = S[key]
19078d63fdb69Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19079d63fdb69Smrg      len += length(value) + length(field[++i])
19080d63fdb69Smrg      substed = 1
19081d63fdb69Smrg    } else
19082d63fdb69Smrg      len += 1 + keylen
19083d63fdb69Smrg  }
19084d63fdb69Smrg
19085d63fdb69Smrg  print line
19086d63fdb69Smrg}
190873da084b3Smrg
19088d63fdb69Smrg_ACAWK
19089d63fdb69Smrg_ACEOF
19090d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19091d63fdb69Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19092d63fdb69Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
190933da084b3Smrgelse
19094d63fdb69Smrg  cat
1909555acc8fcSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1909655acc8fcSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19097d63fdb69Smrg_ACEOF
190983da084b3Smrg
1909955acc8fcSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
1910055acc8fcSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19101d63fdb69Smrg# trailing colons and then remove the whole line if VPATH becomes empty
19102d63fdb69Smrg# (actually we leave an empty line to preserve line numbers).
19103d63fdb69Smrgif test "x$srcdir" = x.; then
1910455acc8fcSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
1910555acc8fcSmrgh
1910655acc8fcSmrgs///
1910755acc8fcSmrgs/^/:/
1910855acc8fcSmrgs/[	 ]*$/:/
1910955acc8fcSmrgs/:\$(srcdir):/:/g
1911055acc8fcSmrgs/:\${srcdir}:/:/g
1911155acc8fcSmrgs/:@srcdir@:/:/g
1911255acc8fcSmrgs/^:*//
19113d63fdb69Smrgs/:*$//
1911455acc8fcSmrgx
1911555acc8fcSmrgs/\(=[	 ]*\).*/\1/
1911655acc8fcSmrgG
1911755acc8fcSmrgs/\n//
19118d63fdb69Smrgs/^[^=]*=[	 ]*$//
19119d63fdb69Smrg}'
191203da084b3Smrgfi
191213da084b3Smrg
19122d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19123d63fdb69Smrgfi # test -n "$CONFIG_FILES"
19124d63fdb69Smrg
19125d63fdb69Smrg# Set up the scripts for CONFIG_HEADERS section.
19126d63fdb69Smrg# No need to generate them if there are no CONFIG_HEADERS.
19127d63fdb69Smrg# This happens for instance with `./config.status Makefile'.
19128d63fdb69Smrgif test -n "$CONFIG_HEADERS"; then
1912955acc8fcSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19130d63fdb69SmrgBEGIN {
19131d63fdb69Smrg_ACEOF
191323da084b3Smrg
19133d63fdb69Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
19134d63fdb69Smrg# here-document in config.status, that substitutes the proper values into
19135d63fdb69Smrg# config.h.in to produce config.h.
191363da084b3Smrg
19137d63fdb69Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
19138d63fdb69Smrg# handling of long lines.
19139d63fdb69Smrgac_delim='%!_!# '
19140d63fdb69Smrgfor ac_last_try in false false :; do
1914155acc8fcSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
1914255acc8fcSmrg  if test -z "$ac_tt"; then
19143d63fdb69Smrg    break
19144d63fdb69Smrg  elif $ac_last_try; then
1914555acc8fcSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19146d63fdb69Smrg  else
19147d63fdb69Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19148d63fdb69Smrg  fi
19149d63fdb69Smrgdone
191503da084b3Smrg
19151d63fdb69Smrg# For the awk script, D is an array of macro values keyed by name,
19152d63fdb69Smrg# likewise P contains macro parameters if any.  Preserve backslash
19153d63fdb69Smrg# newline sequences.
191543da084b3Smrg
19155d63fdb69Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19156d63fdb69Smrgsed -n '
19157d63fdb69Smrgs/.\{148\}/&'"$ac_delim"'/g
19158d63fdb69Smrgt rset
19159d63fdb69Smrg:rset
19160d63fdb69Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19161d63fdb69Smrgt def
19162d63fdb69Smrgd
19163d63fdb69Smrg:def
19164d63fdb69Smrgs/\\$//
19165d63fdb69Smrgt bsnl
19166d63fdb69Smrgs/["\\]/\\&/g
19167d63fdb69Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19168d63fdb69SmrgD["\1"]=" \3"/p
19169d63fdb69Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19170d63fdb69Smrgd
19171d63fdb69Smrg:bsnl
19172d63fdb69Smrgs/["\\]/\\&/g
19173d63fdb69Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19174d63fdb69SmrgD["\1"]=" \3\\\\\\n"\\/p
19175d63fdb69Smrgt cont
19176d63fdb69Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19177d63fdb69Smrgt cont
19178d63fdb69Smrgd
19179d63fdb69Smrg:cont
19180d63fdb69Smrgn
19181d63fdb69Smrgs/.\{148\}/&'"$ac_delim"'/g
19182d63fdb69Smrgt clear
19183d63fdb69Smrg:clear
19184d63fdb69Smrgs/\\$//
19185d63fdb69Smrgt bsnlc
19186d63fdb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
19187d63fdb69Smrgd
19188d63fdb69Smrg:bsnlc
19189d63fdb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19190d63fdb69Smrgb cont
19191d63fdb69Smrg' <confdefs.h | sed '
19192d63fdb69Smrgs/'"$ac_delim"'/"\\\
19193d63fdb69Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
19194d63fdb69Smrg
19195d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19196d63fdb69Smrg  for (key in D) D_is_set[key] = 1
19197d63fdb69Smrg  FS = ""
19198d63fdb69Smrg}
19199d63fdb69Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19200d63fdb69Smrg  line = \$ 0
19201d63fdb69Smrg  split(line, arg, " ")
19202d63fdb69Smrg  if (arg[1] == "#") {
19203d63fdb69Smrg    defundef = arg[2]
19204d63fdb69Smrg    mac1 = arg[3]
19205d63fdb69Smrg  } else {
19206d63fdb69Smrg    defundef = substr(arg[1], 2)
19207d63fdb69Smrg    mac1 = arg[2]
19208d63fdb69Smrg  }
19209d63fdb69Smrg  split(mac1, mac2, "(") #)
19210d63fdb69Smrg  macro = mac2[1]
19211d63fdb69Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
19212d63fdb69Smrg  if (D_is_set[macro]) {
19213d63fdb69Smrg    # Preserve the white space surrounding the "#".
19214d63fdb69Smrg    print prefix "define", macro P[macro] D[macro]
19215d63fdb69Smrg    next
19216d63fdb69Smrg  } else {
19217d63fdb69Smrg    # Replace #undef with comments.  This is necessary, for example,
19218d63fdb69Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
19219d63fdb69Smrg    # on some systems where configure will not decide to define it.
19220d63fdb69Smrg    if (defundef == "undef") {
19221d63fdb69Smrg      print "/*", prefix defundef, macro, "*/"
19222d63fdb69Smrg      next
19223d63fdb69Smrg    }
19224d63fdb69Smrg  }
19225d63fdb69Smrg}
19226d63fdb69Smrg{ print }
19227d63fdb69Smrg_ACAWK
19228d63fdb69Smrg_ACEOF
19229d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1923055acc8fcSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19231d63fdb69Smrgfi # test -n "$CONFIG_HEADERS"
192323da084b3Smrg
192333da084b3Smrg
19234d63fdb69Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19235d63fdb69Smrgshift
19236d63fdb69Smrgfor ac_tag
19237d63fdb69Smrgdo
19238d63fdb69Smrg  case $ac_tag in
19239d63fdb69Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
19240d63fdb69Smrg  esac
19241d63fdb69Smrg  case $ac_mode$ac_tag in
19242d63fdb69Smrg  :[FHL]*:*);;
1924355acc8fcSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19244d63fdb69Smrg  :[FH]-) ac_tag=-:-;;
19245d63fdb69Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19246d63fdb69Smrg  esac
19247d63fdb69Smrg  ac_save_IFS=$IFS
19248d63fdb69Smrg  IFS=:
19249d63fdb69Smrg  set x $ac_tag
19250d63fdb69Smrg  IFS=$ac_save_IFS
19251d63fdb69Smrg  shift
19252d63fdb69Smrg  ac_file=$1
19253d63fdb69Smrg  shift
192543da084b3Smrg
19255d63fdb69Smrg  case $ac_mode in
19256d63fdb69Smrg  :L) ac_source=$1;;
19257d63fdb69Smrg  :[FH])
19258d63fdb69Smrg    ac_file_inputs=
19259d63fdb69Smrg    for ac_f
19260d63fdb69Smrg    do
19261d63fdb69Smrg      case $ac_f in
1926255acc8fcSmrg      -) ac_f="$ac_tmp/stdin";;
19263d63fdb69Smrg      *) # Look for the file first in the build tree, then in the source tree
19264d63fdb69Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19265d63fdb69Smrg	 # because $ac_f cannot contain `:'.
19266d63fdb69Smrg	 test -f "$ac_f" ||
19267d63fdb69Smrg	   case $ac_f in
19268d63fdb69Smrg	   [\\/$]*) false;;
19269d63fdb69Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19270d63fdb69Smrg	   esac ||
1927155acc8fcSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19272d63fdb69Smrg      esac
19273d63fdb69Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1927455acc8fcSmrg      as_fn_append ac_file_inputs " '$ac_f'"
19275d63fdb69Smrg    done
192763da084b3Smrg
19277d63fdb69Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
19278d63fdb69Smrg    # use $as_me), people would be surprised to read:
19279d63fdb69Smrg    #    /* config.h.  Generated by config.status.  */
19280d63fdb69Smrg    configure_input='Generated from '`
19281d63fdb69Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19282d63fdb69Smrg	`' by configure.'
19283d63fdb69Smrg    if test x"$ac_file" != x-; then
19284d63fdb69Smrg      configure_input="$ac_file.  $configure_input"
1928555acc8fcSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19286d63fdb69Smrg$as_echo "$as_me: creating $ac_file" >&6;}
19287d63fdb69Smrg    fi
19288d63fdb69Smrg    # Neutralize special characters interpreted by sed in replacement strings.
19289d63fdb69Smrg    case $configure_input in #(
19290d63fdb69Smrg    *\&* | *\|* | *\\* )
19291d63fdb69Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
19292d63fdb69Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19293d63fdb69Smrg    *) ac_sed_conf_input=$configure_input;;
19294d63fdb69Smrg    esac
192953da084b3Smrg
19296d63fdb69Smrg    case $ac_tag in
1929755acc8fcSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
1929855acc8fcSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19299d63fdb69Smrg    esac
19300d63fdb69Smrg    ;;
19301d63fdb69Smrg  esac
193023da084b3Smrg
19303d63fdb69Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
19304d63fdb69Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19305d63fdb69Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
19306d63fdb69Smrg	 X"$ac_file" : 'X\(//\)$' \| \
19307d63fdb69Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19308d63fdb69Smrg$as_echo X"$ac_file" |
19309d63fdb69Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19310d63fdb69Smrg	    s//\1/
19311d63fdb69Smrg	    q
19312d63fdb69Smrg	  }
19313d63fdb69Smrg	  /^X\(\/\/\)[^/].*/{
19314d63fdb69Smrg	    s//\1/
19315d63fdb69Smrg	    q
19316d63fdb69Smrg	  }
19317d63fdb69Smrg	  /^X\(\/\/\)$/{
19318d63fdb69Smrg	    s//\1/
19319d63fdb69Smrg	    q
19320d63fdb69Smrg	  }
19321d63fdb69Smrg	  /^X\(\/\).*/{
19322d63fdb69Smrg	    s//\1/
19323d63fdb69Smrg	    q
19324d63fdb69Smrg	  }
19325d63fdb69Smrg	  s/.*/./; q'`
1932655acc8fcSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
19327d63fdb69Smrg  ac_builddir=.
193283da084b3Smrg
19329d63fdb69Smrgcase "$ac_dir" in
19330d63fdb69Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19331d63fdb69Smrg*)
19332d63fdb69Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19333d63fdb69Smrg  # A ".." for each directory in $ac_dir_suffix.
19334d63fdb69Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19335d63fdb69Smrg  case $ac_top_builddir_sub in
19336d63fdb69Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19337d63fdb69Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19338d63fdb69Smrg  esac ;;
19339d63fdb69Smrgesac
19340d63fdb69Smrgac_abs_top_builddir=$ac_pwd
19341d63fdb69Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
19342d63fdb69Smrg# for backward compatibility:
19343d63fdb69Smrgac_top_builddir=$ac_top_build_prefix
19344d63fdb69Smrg
19345d63fdb69Smrgcase $srcdir in
19346d63fdb69Smrg  .)  # We are building in place.
19347d63fdb69Smrg    ac_srcdir=.
19348d63fdb69Smrg    ac_top_srcdir=$ac_top_builddir_sub
19349d63fdb69Smrg    ac_abs_top_srcdir=$ac_pwd ;;
19350d63fdb69Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
19351d63fdb69Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
19352d63fdb69Smrg    ac_top_srcdir=$srcdir
19353d63fdb69Smrg    ac_abs_top_srcdir=$srcdir ;;
19354d63fdb69Smrg  *) # Relative name.
19355d63fdb69Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19356d63fdb69Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
19357d63fdb69Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19358d63fdb69Smrgesac
19359d63fdb69Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19360d63fdb69Smrg
19361d63fdb69Smrg
19362d63fdb69Smrg  case $ac_mode in
19363d63fdb69Smrg  :F)
19364d63fdb69Smrg  #
19365d63fdb69Smrg  # CONFIG_FILE
19366d63fdb69Smrg  #
193673da084b3Smrg
19368d63fdb69Smrg  case $INSTALL in
19369d63fdb69Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19370d63fdb69Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19371d63fdb69Smrg  esac
19372d63fdb69Smrg  ac_MKDIR_P=$MKDIR_P
19373d63fdb69Smrg  case $MKDIR_P in
19374d63fdb69Smrg  [\\/$]* | ?:[\\/]* ) ;;
19375d63fdb69Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19376d63fdb69Smrg  esac
193773da084b3Smrg_ACEOF
193783da084b3Smrg
19379d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19380d63fdb69Smrg# If the template does not know about datarootdir, expand it.
19381d63fdb69Smrg# FIXME: This hack should be removed a few years after 2.60.
19382d63fdb69Smrgac_datarootdir_hack=; ac_datarootdir_seen=
19383d63fdb69Smrgac_sed_dataroot='
19384d63fdb69Smrg/datarootdir/ {
19385d63fdb69Smrg  p
19386d63fdb69Smrg  q
19387d63fdb69Smrg}
19388d63fdb69Smrg/@datadir@/p
19389d63fdb69Smrg/@docdir@/p
19390d63fdb69Smrg/@infodir@/p
19391d63fdb69Smrg/@localedir@/p
1939255acc8fcSmrg/@mandir@/p'
19393d63fdb69Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19394d63fdb69Smrg*datarootdir*) ac_datarootdir_seen=yes;;
19395d63fdb69Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1939655acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19397d63fdb69Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
193983da084b3Smrg_ACEOF
19399d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19400d63fdb69Smrg  ac_datarootdir_hack='
19401d63fdb69Smrg  s&@datadir@&$datadir&g
19402d63fdb69Smrg  s&@docdir@&$docdir&g
19403d63fdb69Smrg  s&@infodir@&$infodir&g
19404d63fdb69Smrg  s&@localedir@&$localedir&g
19405d63fdb69Smrg  s&@mandir@&$mandir&g
1940655acc8fcSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
19407d63fdb69Smrgesac
194083da084b3Smrg_ACEOF
194093da084b3Smrg
19410d63fdb69Smrg# Neutralize VPATH when `$srcdir' = `.'.
19411d63fdb69Smrg# Shell code in configure.ac might set extrasub.
19412d63fdb69Smrg# FIXME: do we really want to maintain this feature?
19413d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19414d63fdb69Smrgac_sed_extra="$ac_vpsub
19415d63fdb69Smrg$extrasub
19416d63fdb69Smrg_ACEOF
19417d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19418d63fdb69Smrg:t
19419d63fdb69Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19420d63fdb69Smrgs|@configure_input@|$ac_sed_conf_input|;t t
19421d63fdb69Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
19422d63fdb69Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
19423d63fdb69Smrgs&@srcdir@&$ac_srcdir&;t t
19424d63fdb69Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
19425d63fdb69Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
19426d63fdb69Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19427d63fdb69Smrgs&@builddir@&$ac_builddir&;t t
19428d63fdb69Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
19429d63fdb69Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19430d63fdb69Smrgs&@INSTALL@&$ac_INSTALL&;t t
19431d63fdb69Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
19432d63fdb69Smrg$ac_datarootdir_hack
19433d63fdb69Smrg"
1943455acc8fcSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
1943555acc8fcSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
194363da084b3Smrg
19437d63fdb69Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1943855acc8fcSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1943955acc8fcSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
1944055acc8fcSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
1944155acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1944255acc8fcSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
19443d63fdb69Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1944455acc8fcSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
194453da084b3Smrg
1944655acc8fcSmrg  rm -f "$ac_tmp/stdin"
19447d63fdb69Smrg  case $ac_file in
1944855acc8fcSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
1944955acc8fcSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19450d63fdb69Smrg  esac \
1945155acc8fcSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19452d63fdb69Smrg ;;
19453d63fdb69Smrg  :H)
19454d63fdb69Smrg  #
19455d63fdb69Smrg  # CONFIG_HEADER
19456d63fdb69Smrg  #
19457d63fdb69Smrg  if test x"$ac_file" != x-; then
19458d63fdb69Smrg    {
19459d63fdb69Smrg      $as_echo "/* $configure_input  */" \
1946055acc8fcSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1946155acc8fcSmrg    } >"$ac_tmp/config.h" \
1946255acc8fcSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1946355acc8fcSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1946455acc8fcSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19465d63fdb69Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
19466d63fdb69Smrg    else
19467d63fdb69Smrg      rm -f "$ac_file"
1946855acc8fcSmrg      mv "$ac_tmp/config.h" "$ac_file" \
1946955acc8fcSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19470d63fdb69Smrg    fi
19471d63fdb69Smrg  else
19472d63fdb69Smrg    $as_echo "/* $configure_input  */" \
1947355acc8fcSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1947455acc8fcSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
19475d63fdb69Smrg  fi
19476d63fdb69Smrg# Compute "$ac_file"'s index in $config_headers.
19477d63fdb69Smrg_am_arg="$ac_file"
19478d63fdb69Smrg_am_stamp_count=1
19479d63fdb69Smrgfor _am_header in $config_headers :; do
19480d63fdb69Smrg  case $_am_header in
19481d63fdb69Smrg    $_am_arg | $_am_arg:* )
19482d63fdb69Smrg      break ;;
19483d63fdb69Smrg    * )
19484d63fdb69Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19485d63fdb69Smrg  esac
19486d63fdb69Smrgdone
19487d63fdb69Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19488d63fdb69Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19489d63fdb69Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19490d63fdb69Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
19491d63fdb69Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19492d63fdb69Smrg$as_echo X"$_am_arg" |
19493d63fdb69Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19494d63fdb69Smrg	    s//\1/
19495d63fdb69Smrg	    q
19496d63fdb69Smrg	  }
19497d63fdb69Smrg	  /^X\(\/\/\)[^/].*/{
19498d63fdb69Smrg	    s//\1/
19499d63fdb69Smrg	    q
19500d63fdb69Smrg	  }
19501d63fdb69Smrg	  /^X\(\/\/\)$/{
19502d63fdb69Smrg	    s//\1/
19503d63fdb69Smrg	    q
19504d63fdb69Smrg	  }
19505d63fdb69Smrg	  /^X\(\/\).*/{
19506d63fdb69Smrg	    s//\1/
19507d63fdb69Smrg	    q
19508d63fdb69Smrg	  }
19509d63fdb69Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
19510d63fdb69Smrg ;;
195113da084b3Smrg
1951255acc8fcSmrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19513d63fdb69Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
19514d63fdb69Smrg ;;
19515d63fdb69Smrg  esac
195163da084b3Smrg
195173da084b3Smrg
19518d63fdb69Smrg  case $ac_file$ac_mode in
19519d63fdb69Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19520d63fdb69Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19521d63fdb69Smrg  # are listed without --file.  Let's play safe and only enable the eval
19522d63fdb69Smrg  # if we detect the quoting.
19523d63fdb69Smrg  case $CONFIG_FILES in
19524d63fdb69Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
19525d63fdb69Smrg  *)   set x $CONFIG_FILES ;;
19526d63fdb69Smrg  esac
19527d63fdb69Smrg  shift
19528d63fdb69Smrg  for mf
19529d63fdb69Smrg  do
19530d63fdb69Smrg    # Strip MF so we end up with the name of the file.
19531d63fdb69Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
19532d63fdb69Smrg    # Check whether this is an Automake generated Makefile or not.
19533d63fdb69Smrg    # We used to match only the files named `Makefile.in', but
19534d63fdb69Smrg    # some people rename them; so instead we look at the file content.
19535d63fdb69Smrg    # Grep'ing the first line is not enough: some people post-process
19536d63fdb69Smrg    # each Makefile.in and add a new line on top of each file to say so.
19537d63fdb69Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
19538d63fdb69Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
19539d63fdb69Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19540d63fdb69Smrg      dirpart=`$as_dirname -- "$mf" ||
19541d63fdb69Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19542d63fdb69Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
19543d63fdb69Smrg	 X"$mf" : 'X\(//\)$' \| \
19544d63fdb69Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19545d63fdb69Smrg$as_echo X"$mf" |
19546d63fdb69Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19547d63fdb69Smrg	    s//\1/
19548d63fdb69Smrg	    q
19549d63fdb69Smrg	  }
19550d63fdb69Smrg	  /^X\(\/\/\)[^/].*/{
19551d63fdb69Smrg	    s//\1/
19552d63fdb69Smrg	    q
19553d63fdb69Smrg	  }
19554d63fdb69Smrg	  /^X\(\/\/\)$/{
19555d63fdb69Smrg	    s//\1/
19556d63fdb69Smrg	    q
19557d63fdb69Smrg	  }
19558d63fdb69Smrg	  /^X\(\/\).*/{
19559d63fdb69Smrg	    s//\1/
19560d63fdb69Smrg	    q
19561d63fdb69Smrg	  }
19562d63fdb69Smrg	  s/.*/./; q'`
19563d63fdb69Smrg    else
19564d63fdb69Smrg      continue
19565d63fdb69Smrg    fi
19566d63fdb69Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
19567d63fdb69Smrg    # from the Makefile without running `make'.
19568d63fdb69Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19569d63fdb69Smrg    test -z "$DEPDIR" && continue
19570d63fdb69Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19571d63fdb69Smrg    test -z "am__include" && continue
19572d63fdb69Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19573d63fdb69Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
19574d63fdb69Smrg    U=`sed -n 's/^U = //p' < "$mf"`
19575d63fdb69Smrg    # Find all dependency output files, they are included files with
19576d63fdb69Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19577d63fdb69Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
19578d63fdb69Smrg    # expansion.
19579d63fdb69Smrg    for file in `sed -n "
19580d63fdb69Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19581d63fdb69Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19582d63fdb69Smrg      # Make sure the directory exists.
19583d63fdb69Smrg      test -f "$dirpart/$file" && continue
19584d63fdb69Smrg      fdir=`$as_dirname -- "$file" ||
19585d63fdb69Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19586d63fdb69Smrg	 X"$file" : 'X\(//\)[^/]' \| \
19587d63fdb69Smrg	 X"$file" : 'X\(//\)$' \| \
19588d63fdb69Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19589d63fdb69Smrg$as_echo X"$file" |
19590d63fdb69Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19591d63fdb69Smrg	    s//\1/
19592d63fdb69Smrg	    q
19593d63fdb69Smrg	  }
19594d63fdb69Smrg	  /^X\(\/\/\)[^/].*/{
19595d63fdb69Smrg	    s//\1/
19596d63fdb69Smrg	    q
19597d63fdb69Smrg	  }
19598d63fdb69Smrg	  /^X\(\/\/\)$/{
19599d63fdb69Smrg	    s//\1/
19600d63fdb69Smrg	    q
19601d63fdb69Smrg	  }
19602d63fdb69Smrg	  /^X\(\/\).*/{
19603d63fdb69Smrg	    s//\1/
19604d63fdb69Smrg	    q
19605d63fdb69Smrg	  }
19606d63fdb69Smrg	  s/.*/./; q'`
1960755acc8fcSmrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19608d63fdb69Smrg      # echo "creating $dirpart/$file"
19609d63fdb69Smrg      echo '# dummy' > "$dirpart/$file"
19610d63fdb69Smrg    done
19611d63fdb69Smrg  done
19612d63fdb69Smrg}
19613d63fdb69Smrg ;;
19614d63fdb69Smrg    "libtool":C)
196153da084b3Smrg
19616d63fdb69Smrg    # See if we are running on zsh, and set the options which allow our
19617d63fdb69Smrg    # commands through without removal of \ escapes.
19618d63fdb69Smrg    if test -n "${ZSH_VERSION+set}" ; then
19619d63fdb69Smrg      setopt NO_GLOB_SUBST
19620d63fdb69Smrg    fi
196213da084b3Smrg
19622d63fdb69Smrg    cfgfile="${ofile}T"
19623d63fdb69Smrg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19624d63fdb69Smrg    $RM "$cfgfile"
196253da084b3Smrg
19626d63fdb69Smrg    cat <<_LT_EOF >> "$cfgfile"
19627d63fdb69Smrg#! $SHELL
196283da084b3Smrg
19629d63fdb69Smrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19630d63fdb69Smrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19631d63fdb69Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19632d63fdb69Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19633d63fdb69Smrg#
19634d63fdb69Smrg#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1963548c85eb7Smrg#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
1963648c85eb7Smrg#                 Foundation, Inc.
19637d63fdb69Smrg#   Written by Gordon Matzigkeit, 1996
19638d63fdb69Smrg#
19639d63fdb69Smrg#   This file is part of GNU Libtool.
19640d63fdb69Smrg#
19641d63fdb69Smrg# GNU Libtool is free software; you can redistribute it and/or
19642d63fdb69Smrg# modify it under the terms of the GNU General Public License as
19643d63fdb69Smrg# published by the Free Software Foundation; either version 2 of
19644d63fdb69Smrg# the License, or (at your option) any later version.
19645d63fdb69Smrg#
19646d63fdb69Smrg# As a special exception to the GNU General Public License,
19647d63fdb69Smrg# if you distribute this file as part of a program or library that
19648d63fdb69Smrg# is built using GNU Libtool, you may include this file under the
19649d63fdb69Smrg# same distribution terms that you use for the rest of that program.
19650d63fdb69Smrg#
19651d63fdb69Smrg# GNU Libtool is distributed in the hope that it will be useful,
19652d63fdb69Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
19653d63fdb69Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19654d63fdb69Smrg# GNU General Public License for more details.
19655d63fdb69Smrg#
19656d63fdb69Smrg# You should have received a copy of the GNU General Public License
19657d63fdb69Smrg# along with GNU Libtool; see the file COPYING.  If not, a copy
19658d63fdb69Smrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19659d63fdb69Smrg# obtained by writing to the Free Software Foundation, Inc.,
19660d63fdb69Smrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
196613da084b3Smrg
196623da084b3Smrg
19663d63fdb69Smrg# The names of the tagged configurations supported by this script.
19664d63fdb69Smrgavailable_tags=""
196653da084b3Smrg
19666d63fdb69Smrg# ### BEGIN LIBTOOL CONFIG
196673da084b3Smrg
19668d63fdb69Smrg# Which release of libtool.m4 was used?
19669d63fdb69Smrgmacro_version=$macro_version
19670d63fdb69Smrgmacro_revision=$macro_revision
196713da084b3Smrg
19672d63fdb69Smrg# Whether or not to build shared libraries.
19673d63fdb69Smrgbuild_libtool_libs=$enable_shared
196743da084b3Smrg
19675d63fdb69Smrg# Whether or not to build static libraries.
19676d63fdb69Smrgbuild_old_libs=$enable_static
196773da084b3Smrg
19678d63fdb69Smrg# What type of objects to build.
19679d63fdb69Smrgpic_mode=$pic_mode
196803da084b3Smrg
19681d63fdb69Smrg# Whether or not to optimize for fast installation.
19682d63fdb69Smrgfast_install=$enable_fast_install
196833da084b3Smrg
1968455acc8fcSmrg# Shell to use when invoking shell scripts.
1968555acc8fcSmrgSHELL=$lt_SHELL
1968655acc8fcSmrg
1968755acc8fcSmrg# An echo program that protects backslashes.
1968855acc8fcSmrgECHO=$lt_ECHO
1968955acc8fcSmrg
1969048c85eb7Smrg# The PATH separator for the build system.
1969148c85eb7SmrgPATH_SEPARATOR=$lt_PATH_SEPARATOR
1969248c85eb7Smrg
19693d63fdb69Smrg# The host system.
19694d63fdb69Smrghost_alias=$host_alias
19695d63fdb69Smrghost=$host
19696d63fdb69Smrghost_os=$host_os
196973da084b3Smrg
19698d63fdb69Smrg# The build system.
19699d63fdb69Smrgbuild_alias=$build_alias
19700d63fdb69Smrgbuild=$build
19701d63fdb69Smrgbuild_os=$build_os
197023da084b3Smrg
19703d63fdb69Smrg# A sed program that does not truncate output.
19704d63fdb69SmrgSED=$lt_SED
197053da084b3Smrg
19706d63fdb69Smrg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19707d63fdb69SmrgXsed="\$SED -e 1s/^X//"
197083da084b3Smrg
19709d63fdb69Smrg# A grep program that handles long lines.
19710d63fdb69SmrgGREP=$lt_GREP
197113da084b3Smrg
19712d63fdb69Smrg# An ERE matcher.
19713d63fdb69SmrgEGREP=$lt_EGREP
197143da084b3Smrg
19715d63fdb69Smrg# A literal string matcher.
19716d63fdb69SmrgFGREP=$lt_FGREP
197173da084b3Smrg
19718d63fdb69Smrg# A BSD- or MS-compatible name lister.
19719d63fdb69SmrgNM=$lt_NM
197203da084b3Smrg
19721d63fdb69Smrg# Whether we need soft or hard links.
19722d63fdb69SmrgLN_S=$lt_LN_S
197233da084b3Smrg
19724d63fdb69Smrg# What is the maximum length of a command?
19725d63fdb69Smrgmax_cmd_len=$max_cmd_len
197263da084b3Smrg
19727d63fdb69Smrg# Object file suffix (normally "o").
19728d63fdb69Smrgobjext=$ac_objext
197293da084b3Smrg
19730d63fdb69Smrg# Executable file suffix (normally "").
19731d63fdb69Smrgexeext=$exeext
197323da084b3Smrg
19733d63fdb69Smrg# whether the shell understands "unset".
19734d63fdb69Smrglt_unset=$lt_unset
197353da084b3Smrg
19736d63fdb69Smrg# turn spaces into newlines.
19737d63fdb69SmrgSP2NL=$lt_lt_SP2NL
197383da084b3Smrg
19739d63fdb69Smrg# turn newlines into spaces.
19740d63fdb69SmrgNL2SP=$lt_lt_NL2SP
197413da084b3Smrg
1974248c85eb7Smrg# convert \$build file names to \$host format.
1974348c85eb7Smrgto_host_file_cmd=$lt_cv_to_host_file_cmd
1974448c85eb7Smrg
1974548c85eb7Smrg# convert \$build files to toolchain format.
1974648c85eb7Smrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd
1974748c85eb7Smrg
19748d63fdb69Smrg# An object symbol dumper.
19749d63fdb69SmrgOBJDUMP=$lt_OBJDUMP
19750d63fdb69Smrg
19751d63fdb69Smrg# Method to check whether dependent libraries are shared objects.
19752d63fdb69Smrgdeplibs_check_method=$lt_deplibs_check_method
19753d63fdb69Smrg
1975448c85eb7Smrg# Command to use when deplibs_check_method = "file_magic".
19755d63fdb69Smrgfile_magic_cmd=$lt_file_magic_cmd
19756d63fdb69Smrg
1975748c85eb7Smrg# How to find potential files when deplibs_check_method = "file_magic".
1975848c85eb7Smrgfile_magic_glob=$lt_file_magic_glob
1975948c85eb7Smrg
1976048c85eb7Smrg# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
1976148c85eb7Smrgwant_nocaseglob=$lt_want_nocaseglob
1976248c85eb7Smrg
1976348c85eb7Smrg# DLL creation program.
1976448c85eb7SmrgDLLTOOL=$lt_DLLTOOL
1976548c85eb7Smrg
1976648c85eb7Smrg# Command to associate shared and link libraries.
1976748c85eb7Smrgsharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1976848c85eb7Smrg
19769d63fdb69Smrg# The archiver.
19770d63fdb69SmrgAR=$lt_AR
1977148c85eb7Smrg
1977248c85eb7Smrg# Flags to create an archive.
19773d63fdb69SmrgAR_FLAGS=$lt_AR_FLAGS
19774d63fdb69Smrg
1977548c85eb7Smrg# How to feed a file listing to the archiver.
1977648c85eb7Smrgarchiver_list_spec=$lt_archiver_list_spec
1977748c85eb7Smrg
19778d63fdb69Smrg# A symbol stripping program.
19779d63fdb69SmrgSTRIP=$lt_STRIP
19780d63fdb69Smrg
19781d63fdb69Smrg# Commands used to install an old-style archive.
19782d63fdb69SmrgRANLIB=$lt_RANLIB
19783d63fdb69Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
19784d63fdb69Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
19785d63fdb69Smrg
1978655acc8fcSmrg# Whether to use a lock for old archive extraction.
1978755acc8fcSmrglock_old_archive_extraction=$lock_old_archive_extraction
1978855acc8fcSmrg
19789d63fdb69Smrg# A C compiler.
19790d63fdb69SmrgLTCC=$lt_CC
19791d63fdb69Smrg
19792d63fdb69Smrg# LTCC compiler flags.
19793d63fdb69SmrgLTCFLAGS=$lt_CFLAGS
19794d63fdb69Smrg
19795d63fdb69Smrg# Take the output of nm and produce a listing of raw symbols and C names.
19796d63fdb69Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
197973da084b3Smrg
19798d63fdb69Smrg# Transform the output of nm in a proper C declaration.
19799d63fdb69Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
198003da084b3Smrg
19801d63fdb69Smrg# Transform the output of nm in a C name address pair.
19802d63fdb69Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
198033da084b3Smrg
19804d63fdb69Smrg# Transform the output of nm in a C name address pair when lib prefix is needed.
19805d63fdb69Smrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
198063da084b3Smrg
1980748c85eb7Smrg# Specify filename containing input files for \$NM.
1980848c85eb7Smrgnm_file_list_spec=$lt_nm_file_list_spec
1980948c85eb7Smrg
1981048c85eb7Smrg# The root where to search for dependent libraries,and in which our libraries should be installed.
1981148c85eb7Smrglt_sysroot=$lt_sysroot
1981248c85eb7Smrg
19813d63fdb69Smrg# The name of the directory that contains temporary libtool files.
19814d63fdb69Smrgobjdir=$objdir
198153da084b3Smrg
19816d63fdb69Smrg# Used to examine libraries when file_magic_cmd begins with "file".
19817d63fdb69SmrgMAGIC_CMD=$MAGIC_CMD
198183da084b3Smrg
19819d63fdb69Smrg# Must we lock files when doing compilation?
19820d63fdb69Smrgneed_locks=$lt_need_locks
198213da084b3Smrg
1982248c85eb7Smrg# Manifest tool.
1982348c85eb7SmrgMANIFEST_TOOL=$lt_MANIFEST_TOOL
1982448c85eb7Smrg
19825d63fdb69Smrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19826d63fdb69SmrgDSYMUTIL=$lt_DSYMUTIL
198273da084b3Smrg
19828d63fdb69Smrg# Tool to change global to local symbols on Mac OS X.
19829d63fdb69SmrgNMEDIT=$lt_NMEDIT
198303da084b3Smrg
19831d63fdb69Smrg# Tool to manipulate fat objects and archives on Mac OS X.
19832d63fdb69SmrgLIPO=$lt_LIPO
198333da084b3Smrg
19834d63fdb69Smrg# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19835d63fdb69SmrgOTOOL=$lt_OTOOL
198363da084b3Smrg
19837d63fdb69Smrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19838d63fdb69SmrgOTOOL64=$lt_OTOOL64
198393da084b3Smrg
19840d63fdb69Smrg# Old archive suffix (normally "a").
19841d63fdb69Smrglibext=$libext
198423da084b3Smrg
19843d63fdb69Smrg# Shared library suffix (normally ".so").
19844d63fdb69Smrgshrext_cmds=$lt_shrext_cmds
198453da084b3Smrg
19846d63fdb69Smrg# The commands to extract the exported symbol list from a shared archive.
19847d63fdb69Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
198483da084b3Smrg
19849d63fdb69Smrg# Variables whose values should be saved in libtool wrapper scripts and
19850d63fdb69Smrg# restored at link time.
19851d63fdb69Smrgvariables_saved_for_relink=$lt_variables_saved_for_relink
198523da084b3Smrg
19853d63fdb69Smrg# Do we need the "lib" prefix for modules?
19854d63fdb69Smrgneed_lib_prefix=$need_lib_prefix
198553da084b3Smrg
19856d63fdb69Smrg# Do we need a version for libraries?
19857d63fdb69Smrgneed_version=$need_version
198583da084b3Smrg
19859d63fdb69Smrg# Library versioning type.
19860d63fdb69Smrgversion_type=$version_type
198613da084b3Smrg
19862d63fdb69Smrg# Shared library runtime path variable.
19863d63fdb69Smrgrunpath_var=$runpath_var
198643da084b3Smrg
19865d63fdb69Smrg# Shared library path variable.
19866d63fdb69Smrgshlibpath_var=$shlibpath_var
198673da084b3Smrg
19868d63fdb69Smrg# Is shlibpath searched before the hard-coded library search path?
19869d63fdb69Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
198703da084b3Smrg
19871d63fdb69Smrg# Format of library name prefix.
19872d63fdb69Smrglibname_spec=$lt_libname_spec
198733da084b3Smrg
19874d63fdb69Smrg# List of archive names.  First name is the real one, the rest are links.
19875d63fdb69Smrg# The last name is the one that the linker finds with -lNAME
19876d63fdb69Smrglibrary_names_spec=$lt_library_names_spec
198773da084b3Smrg
19878d63fdb69Smrg# The coded name of the library, if different from the real name.
19879d63fdb69Smrgsoname_spec=$lt_soname_spec
198803da084b3Smrg
1988155acc8fcSmrg# Permission mode override for installation of shared libraries.
1988255acc8fcSmrginstall_override_mode=$lt_install_override_mode
1988355acc8fcSmrg
19884d63fdb69Smrg# Command to use after installation of a shared archive.
19885d63fdb69Smrgpostinstall_cmds=$lt_postinstall_cmds
198863da084b3Smrg
19887d63fdb69Smrg# Command to use after uninstallation of a shared archive.
19888d63fdb69Smrgpostuninstall_cmds=$lt_postuninstall_cmds
198893da084b3Smrg
19890d63fdb69Smrg# Commands used to finish a libtool library installation in a directory.
19891d63fdb69Smrgfinish_cmds=$lt_finish_cmds
198923da084b3Smrg
19893d63fdb69Smrg# As "finish_cmds", except a single script fragment to be evaled but
19894d63fdb69Smrg# not shown.
19895d63fdb69Smrgfinish_eval=$lt_finish_eval
198963da084b3Smrg
19897d63fdb69Smrg# Whether we should hardcode library paths into libraries.
19898d63fdb69Smrghardcode_into_libs=$hardcode_into_libs
198993da084b3Smrg
19900d63fdb69Smrg# Compile-time system search path for libraries.
19901d63fdb69Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
199023da084b3Smrg
19903d63fdb69Smrg# Run-time system search path for libraries.
19904d63fdb69Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
199053da084b3Smrg
19906d63fdb69Smrg# Whether dlopen is supported.
19907d63fdb69Smrgdlopen_support=$enable_dlopen
199083da084b3Smrg
19909d63fdb69Smrg# Whether dlopen of programs is supported.
19910d63fdb69Smrgdlopen_self=$enable_dlopen_self
199113da084b3Smrg
19912d63fdb69Smrg# Whether dlopen of statically linked programs is supported.
19913d63fdb69Smrgdlopen_self_static=$enable_dlopen_self_static
199143da084b3Smrg
19915d63fdb69Smrg# Commands to strip libraries.
19916d63fdb69Smrgold_striplib=$lt_old_striplib
19917d63fdb69Smrgstriplib=$lt_striplib
199183da084b3Smrg
199193da084b3Smrg
19920d63fdb69Smrg# The linker used to build libraries.
19921d63fdb69SmrgLD=$lt_LD
199223da084b3Smrg
1992355acc8fcSmrg# How to create reloadable object files.
1992455acc8fcSmrgreload_flag=$lt_reload_flag
1992555acc8fcSmrgreload_cmds=$lt_reload_cmds
1992655acc8fcSmrg
19927d63fdb69Smrg# Commands used to build an old-style archive.
19928d63fdb69Smrgold_archive_cmds=$lt_old_archive_cmds
199293da084b3Smrg
19930d63fdb69Smrg# A language specific compiler.
19931d63fdb69SmrgCC=$lt_compiler
199323da084b3Smrg
19933d63fdb69Smrg# Is the compiler the GNU compiler?
19934d63fdb69Smrgwith_gcc=$GCC
19935d63fdb69Smrg
19936d63fdb69Smrg# Compiler flag to turn off builtin functions.
19937d63fdb69Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19938d63fdb69Smrg
19939d63fdb69Smrg# Additional compiler flags for building library objects.
19940d63fdb69Smrgpic_flag=$lt_lt_prog_compiler_pic
19941d63fdb69Smrg
1994248c85eb7Smrg# How to pass a linker flag through the compiler.
1994348c85eb7Smrgwl=$lt_lt_prog_compiler_wl
1994448c85eb7Smrg
19945d63fdb69Smrg# Compiler flag to prevent dynamic linking.
19946d63fdb69Smrglink_static_flag=$lt_lt_prog_compiler_static
19947d63fdb69Smrg
19948d63fdb69Smrg# Does compiler simultaneously support -c and -o options?
19949d63fdb69Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
19950d63fdb69Smrg
19951d63fdb69Smrg# Whether or not to add -lc for building shared libraries.
19952d63fdb69Smrgbuild_libtool_need_lc=$archive_cmds_need_lc
19953d63fdb69Smrg
19954d63fdb69Smrg# Whether or not to disallow shared libs when runtime libs are static.
19955d63fdb69Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19956d63fdb69Smrg
19957d63fdb69Smrg# Compiler flag to allow reflexive dlopens.
19958d63fdb69Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19959d63fdb69Smrg
19960d63fdb69Smrg# Compiler flag to generate shared objects directly from archives.
19961d63fdb69Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
19962d63fdb69Smrg
19963d63fdb69Smrg# Whether the compiler copes with passing no objects directly.
19964d63fdb69Smrgcompiler_needs_object=$lt_compiler_needs_object
19965d63fdb69Smrg
19966d63fdb69Smrg# Create an old-style archive from a shared archive.
19967d63fdb69Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19968d63fdb69Smrg
19969d63fdb69Smrg# Create a temporary old-style archive to link instead of a shared archive.
19970d63fdb69Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
199713da084b3Smrg
19972d63fdb69Smrg# Commands used to build a shared archive.
19973d63fdb69Smrgarchive_cmds=$lt_archive_cmds
19974d63fdb69Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds
199753da084b3Smrg
19976d63fdb69Smrg# Commands used to build a loadable module if different from building
19977d63fdb69Smrg# a shared archive.
19978d63fdb69Smrgmodule_cmds=$lt_module_cmds
19979d63fdb69Smrgmodule_expsym_cmds=$lt_module_expsym_cmds
199803da084b3Smrg
19981d63fdb69Smrg# Whether we are building with GNU ld or not.
19982d63fdb69Smrgwith_gnu_ld=$lt_with_gnu_ld
199833da084b3Smrg
19984d63fdb69Smrg# Flag that allows shared libraries with undefined symbols to be built.
19985d63fdb69Smrgallow_undefined_flag=$lt_allow_undefined_flag
199863da084b3Smrg
19987d63fdb69Smrg# Flag that enforces no undefined symbols.
19988d63fdb69Smrgno_undefined_flag=$lt_no_undefined_flag
199893da084b3Smrg
19990d63fdb69Smrg# Flag to hardcode \$libdir into a binary during linking.
19991d63fdb69Smrg# This must work even if \$libdir does not exist
19992d63fdb69Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
199933da084b3Smrg
19994d63fdb69Smrg# Whether we need a single "-rpath" flag with a separated argument.
19995d63fdb69Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator
199963da084b3Smrg
19997d63fdb69Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19998d63fdb69Smrg# DIR into the resulting binary.
19999d63fdb69Smrghardcode_direct=$hardcode_direct
200003da084b3Smrg
20001d63fdb69Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20002d63fdb69Smrg# DIR into the resulting binary and the resulting library dependency is
20003d63fdb69Smrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20004d63fdb69Smrg# library is relocated.
20005d63fdb69Smrghardcode_direct_absolute=$hardcode_direct_absolute
200063da084b3Smrg
20007d63fdb69Smrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20008d63fdb69Smrg# into the resulting binary.
20009d63fdb69Smrghardcode_minus_L=$hardcode_minus_L
200103da084b3Smrg
20011d63fdb69Smrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20012d63fdb69Smrg# into the resulting binary.
20013d63fdb69Smrghardcode_shlibpath_var=$hardcode_shlibpath_var
200143da084b3Smrg
20015d63fdb69Smrg# Set to "yes" if building a shared library automatically hardcodes DIR
20016d63fdb69Smrg# into the library and all subsequent libraries and executables linked
20017d63fdb69Smrg# against it.
20018d63fdb69Smrghardcode_automatic=$hardcode_automatic
200193da084b3Smrg
20020d63fdb69Smrg# Set to yes if linker adds runtime paths of dependent libraries
20021d63fdb69Smrg# to runtime path list.
20022d63fdb69Smrginherit_rpath=$inherit_rpath
200233da084b3Smrg
20024d63fdb69Smrg# Whether libtool must link a program against all its dependency libraries.
20025d63fdb69Smrglink_all_deplibs=$link_all_deplibs
200263da084b3Smrg
20027d63fdb69Smrg# Set to "yes" if exported symbols are required.
20028d63fdb69Smrgalways_export_symbols=$always_export_symbols
200293da084b3Smrg
20030d63fdb69Smrg# The commands to list exported symbols.
20031d63fdb69Smrgexport_symbols_cmds=$lt_export_symbols_cmds
200323da084b3Smrg
20033d63fdb69Smrg# Symbols that should not be listed in the preloaded symbols.
20034d63fdb69Smrgexclude_expsyms=$lt_exclude_expsyms
200353da084b3Smrg
20036d63fdb69Smrg# Symbols that must always be exported.
20037d63fdb69Smrginclude_expsyms=$lt_include_expsyms
200383da084b3Smrg
20039d63fdb69Smrg# Commands necessary for linking programs (against libraries) with templates.
20040d63fdb69Smrgprelink_cmds=$lt_prelink_cmds
200413da084b3Smrg
2004248c85eb7Smrg# Commands necessary for finishing linking programs.
2004348c85eb7Smrgpostlink_cmds=$lt_postlink_cmds
2004448c85eb7Smrg
20045d63fdb69Smrg# Specify filename containing input files.
20046d63fdb69Smrgfile_list_spec=$lt_file_list_spec
200473da084b3Smrg
20048d63fdb69Smrg# How to hardcode a shared library path into an executable.
20049d63fdb69Smrghardcode_action=$hardcode_action
200503da084b3Smrg
20051d63fdb69Smrg# ### END LIBTOOL CONFIG
200523da084b3Smrg
20053d63fdb69Smrg_LT_EOF
200543da084b3Smrg
20055d63fdb69Smrg  case $host_os in
20056d63fdb69Smrg  aix3*)
20057d63fdb69Smrg    cat <<\_LT_EOF >> "$cfgfile"
20058d63fdb69Smrg# AIX sometimes has problems with the GCC collect2 program.  For some
20059d63fdb69Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems
20060d63fdb69Smrg# vanish in a puff of smoke.
20061d63fdb69Smrgif test "X${COLLECT_NAMES+set}" != Xset; then
20062d63fdb69Smrg  COLLECT_NAMES=
20063d63fdb69Smrg  export COLLECT_NAMES
20064d63fdb69Smrgfi
20065d63fdb69Smrg_LT_EOF
200663da084b3Smrg    ;;
200673da084b3Smrg  esac
200683da084b3Smrg
200693da084b3Smrg
20070d63fdb69Smrgltmain="$ac_aux_dir/ltmain.sh"
200713da084b3Smrg
200723da084b3Smrg
20073d63fdb69Smrg  # We use sed instead of cat because bash on DJGPP gets confused if
20074d63fdb69Smrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20075d63fdb69Smrg  # text mode, it properly converts lines to CR/LF.  This bash problem
20076d63fdb69Smrg  # is reportedly fixed, but why not run on old versions too?
2007748c85eb7Smrg  sed '$q' "$ltmain" >> "$cfgfile" \
2007848c85eb7Smrg     || (rm -f "$cfgfile"; exit 1)
2007948c85eb7Smrg
2008048c85eb7Smrg  if test x"$xsi_shell" = xyes; then
2008148c85eb7Smrg  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
2008248c85eb7Smrgfunc_dirname ()\
2008348c85eb7Smrg{\
2008448c85eb7Smrg\    case ${1} in\
2008548c85eb7Smrg\      */*) func_dirname_result="${1%/*}${2}" ;;\
2008648c85eb7Smrg\      *  ) func_dirname_result="${3}" ;;\
2008748c85eb7Smrg\    esac\
2008848c85eb7Smrg} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
2008948c85eb7Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
2009048c85eb7Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2009148c85eb7Smrgtest 0 -eq $? || _lt_function_replace_fail=:
2009248c85eb7Smrg
2009348c85eb7Smrg
2009448c85eb7Smrg  sed -e '/^func_basename ()$/,/^} # func_basename /c\
2009548c85eb7Smrgfunc_basename ()\
2009648c85eb7Smrg{\
2009748c85eb7Smrg\    func_basename_result="${1##*/}"\
2009848c85eb7Smrg} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
2009948c85eb7Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
2010048c85eb7Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2010148c85eb7Smrgtest 0 -eq $? || _lt_function_replace_fail=:
2010248c85eb7Smrg
2010348c85eb7Smrg
2010448c85eb7Smrg  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
2010548c85eb7Smrgfunc_dirname_and_basename ()\
2010648c85eb7Smrg{\
2010748c85eb7Smrg\    case ${1} in\
2010848c85eb7Smrg\      */*) func_dirname_result="${1%/*}${2}" ;;\
2010948c85eb7Smrg\      *  ) func_dirname_result="${3}" ;;\
2011048c85eb7Smrg\    esac\
2011148c85eb7Smrg\    func_basename_result="${1##*/}"\
2011248c85eb7Smrg} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
2011348c85eb7Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
2011448c85eb7Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2011548c85eb7Smrgtest 0 -eq $? || _lt_function_replace_fail=:
2011648c85eb7Smrg
2011748c85eb7Smrg
2011848c85eb7Smrg  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
2011948c85eb7Smrgfunc_stripname ()\
2012048c85eb7Smrg{\
2012148c85eb7Smrg\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
2012248c85eb7Smrg\    # positional parameters, so assign one to ordinary parameter first.\
2012348c85eb7Smrg\    func_stripname_result=${3}\
2012448c85eb7Smrg\    func_stripname_result=${func_stripname_result#"${1}"}\
2012548c85eb7Smrg\    func_stripname_result=${func_stripname_result%"${2}"}\
2012648c85eb7Smrg} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
2012748c85eb7Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
2012848c85eb7Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2012948c85eb7Smrgtest 0 -eq $? || _lt_function_replace_fail=:
2013048c85eb7Smrg
2013148c85eb7Smrg
2013248c85eb7Smrg  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
2013348c85eb7Smrgfunc_split_long_opt ()\
2013448c85eb7Smrg{\
2013548c85eb7Smrg\    func_split_long_opt_name=${1%%=*}\
2013648c85eb7Smrg\    func_split_long_opt_arg=${1#*=}\
2013748c85eb7Smrg} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
2013848c85eb7Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
2013948c85eb7Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2014048c85eb7Smrgtest 0 -eq $? || _lt_function_replace_fail=:
2014148c85eb7Smrg
2014248c85eb7Smrg
2014348c85eb7Smrg  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
2014448c85eb7Smrgfunc_split_short_opt ()\
2014548c85eb7Smrg{\
2014648c85eb7Smrg\    func_split_short_opt_arg=${1#??}\
2014748c85eb7Smrg\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
2014848c85eb7Smrg} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
2014948c85eb7Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
2015048c85eb7Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2015148c85eb7Smrgtest 0 -eq $? || _lt_function_replace_fail=:
2015248c85eb7Smrg
2015348c85eb7Smrg
2015448c85eb7Smrg  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
2015548c85eb7Smrgfunc_lo2o ()\
2015648c85eb7Smrg{\
2015748c85eb7Smrg\    case ${1} in\
2015848c85eb7Smrg\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
2015948c85eb7Smrg\      *)    func_lo2o_result=${1} ;;\
2016048c85eb7Smrg\    esac\
2016148c85eb7Smrg} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
2016248c85eb7Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
2016348c85eb7Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2016448c85eb7Smrgtest 0 -eq $? || _lt_function_replace_fail=:
2016548c85eb7Smrg
2016648c85eb7Smrg
2016748c85eb7Smrg  sed -e '/^func_xform ()$/,/^} # func_xform /c\
2016848c85eb7Smrgfunc_xform ()\
2016948c85eb7Smrg{\
2017048c85eb7Smrg    func_xform_result=${1%.*}.lo\
2017148c85eb7Smrg} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
2017248c85eb7Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
2017348c85eb7Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2017448c85eb7Smrgtest 0 -eq $? || _lt_function_replace_fail=:
2017548c85eb7Smrg
2017648c85eb7Smrg
2017748c85eb7Smrg  sed -e '/^func_arith ()$/,/^} # func_arith /c\
2017848c85eb7Smrgfunc_arith ()\
2017948c85eb7Smrg{\
2018048c85eb7Smrg    func_arith_result=$(( $* ))\
2018148c85eb7Smrg} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
2018248c85eb7Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
2018348c85eb7Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2018448c85eb7Smrgtest 0 -eq $? || _lt_function_replace_fail=:
2018548c85eb7Smrg
2018648c85eb7Smrg
2018748c85eb7Smrg  sed -e '/^func_len ()$/,/^} # func_len /c\
2018848c85eb7Smrgfunc_len ()\
2018948c85eb7Smrg{\
2019048c85eb7Smrg    func_len_result=${#1}\
2019148c85eb7Smrg} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
2019248c85eb7Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
2019348c85eb7Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2019448c85eb7Smrgtest 0 -eq $? || _lt_function_replace_fail=:
2019548c85eb7Smrg
2019648c85eb7Smrgfi
2019748c85eb7Smrg
2019848c85eb7Smrgif test x"$lt_shell_append" = xyes; then
2019948c85eb7Smrg  sed -e '/^func_append ()$/,/^} # func_append /c\
2020048c85eb7Smrgfunc_append ()\
2020148c85eb7Smrg{\
2020248c85eb7Smrg    eval "${1}+=\\${2}"\
2020348c85eb7Smrg} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
2020448c85eb7Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
2020548c85eb7Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2020648c85eb7Smrgtest 0 -eq $? || _lt_function_replace_fail=:
2020748c85eb7Smrg
2020848c85eb7Smrg
2020948c85eb7Smrg  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
2021048c85eb7Smrgfunc_append_quoted ()\
2021148c85eb7Smrg{\
2021248c85eb7Smrg\    func_quote_for_eval "${2}"\
2021348c85eb7Smrg\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
2021448c85eb7Smrg} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
2021548c85eb7Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
2021648c85eb7Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2021748c85eb7Smrgtest 0 -eq $? || _lt_function_replace_fail=:
2021848c85eb7Smrg
2021948c85eb7Smrg
2022048c85eb7Smrg  # Save a `func_append' function call where possible by direct use of '+='
2022148c85eb7Smrg  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
2022248c85eb7Smrg    && mv -f "$cfgfile.tmp" "$cfgfile" \
2022348c85eb7Smrg      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2022448c85eb7Smrg  test 0 -eq $? || _lt_function_replace_fail=:
2022548c85eb7Smrgelse
2022648c85eb7Smrg  # Save a `func_append' function call even when '+=' is not available
2022748c85eb7Smrg  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
2022848c85eb7Smrg    && mv -f "$cfgfile.tmp" "$cfgfile" \
2022948c85eb7Smrg      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
2023048c85eb7Smrg  test 0 -eq $? || _lt_function_replace_fail=:
2023148c85eb7Smrgfi
2023248c85eb7Smrg
2023348c85eb7Smrgif test x"$_lt_function_replace_fail" = x":"; then
2023448c85eb7Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
2023548c85eb7Smrg$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
2023648c85eb7Smrgfi
2023748c85eb7Smrg
2023848c85eb7Smrg
2023948c85eb7Smrg   mv -f "$cfgfile" "$ofile" ||
20240d63fdb69Smrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20241d63fdb69Smrg  chmod +x "$ofile"
20242d63fdb69Smrg
202433da084b3Smrg ;;
202443da084b3Smrg
202453da084b3Smrg  esac
202463da084b3Smrgdone # for ac_tag
202473da084b3Smrg
202483da084b3Smrg
2024955acc8fcSmrgas_fn_exit 0
202503da084b3Smrg_ACEOF
202513da084b3Smrgac_clean_files=$ac_clean_files_save
202523da084b3Smrg
20253d63fdb69Smrgtest $ac_write_fail = 0 ||
2025455acc8fcSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20255d63fdb69Smrg
202563da084b3Smrg
202573da084b3Smrg# configure is writing to config.log, and then calls config.status.
202583da084b3Smrg# config.status does its own redirection, appending to config.log.
202593da084b3Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
202603da084b3Smrg# by configure, so config.status won't be able to write to it; its
202613da084b3Smrg# output is simply discarded.  So we exec the FD to /dev/null,
202623da084b3Smrg# effectively closing config.log, so it can be properly (re)opened and
202633da084b3Smrg# appended to by config.status.  When coming back to configure, we
202643da084b3Smrg# need to make the FD available again.
202653da084b3Smrgif test "$no_create" != yes; then
202663da084b3Smrg  ac_cs_success=:
202673da084b3Smrg  ac_config_status_args=
202683da084b3Smrg  test "$silent" = yes &&
202693da084b3Smrg    ac_config_status_args="$ac_config_status_args --quiet"
202703da084b3Smrg  exec 5>/dev/null
202713da084b3Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
202723da084b3Smrg  exec 5>>config.log
202733da084b3Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
202743da084b3Smrg  # would make configure fail if this is the last instruction.
2027555acc8fcSmrg  $ac_cs_success || as_fn_exit 1
202763da084b3Smrgfi
20277d63fdb69Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
2027855acc8fcSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20279d63fdb69Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20280d63fdb69Smrgfi
202813da084b3Smrg
20282