configure revision acd6767f
1fe5e51b7Smrg#! /bin/sh
2fe5e51b7Smrg# Guess values for system-dependent variables and create Makefiles.
3acd6767fSmrg# Generated by GNU Autoconf 2.69 for xf86-video-mga 1.6.3.
4fe5e51b7Smrg#
5fe5e51b7Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6fe5e51b7Smrg#
70bb88ba4Smrg#
8acd6767fSmrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
90bb88ba4Smrg#
100bb88ba4Smrg#
11fe5e51b7Smrg# This configure script is free software; the Free Software Foundation
12fe5e51b7Smrg# gives unlimited permission to copy, distribute and modify it.
130bb88ba4Smrg## -------------------- ##
140bb88ba4Smrg## M4sh Initialization. ##
150bb88ba4Smrg## -------------------- ##
16fe5e51b7Smrg
17fe5e51b7Smrg# Be more Bourne compatible
18fe5e51b7SmrgDUALCASE=1; export DUALCASE # for MKS sh
190bb88ba4Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20fe5e51b7Smrg  emulate sh
21fe5e51b7Smrg  NULLCMD=:
22eda3803bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23fe5e51b7Smrg  # is contrary to our usage.  Disable this feature.
24fe5e51b7Smrg  alias -g '${1+"$@"}'='"$@"'
25fe5e51b7Smrg  setopt NO_GLOB_SUBST
26fe5e51b7Smrgelse
270bb88ba4Smrg  case `(set -o) 2>/dev/null` in #(
280bb88ba4Smrg  *posix*) :
290bb88ba4Smrg    set -o posix ;; #(
300bb88ba4Smrg  *) :
310bb88ba4Smrg     ;;
32fe5e51b7Smrgesac
33fe5e51b7Smrgfi
34fe5e51b7Smrg
35fe5e51b7Smrg
36eda3803bSmrgas_nl='
37eda3803bSmrg'
38eda3803bSmrgexport as_nl
39eda3803bSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
40eda3803bSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41eda3803bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42eda3803bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
430bb88ba4Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
440bb88ba4Smrg# but without wasting forks for bash or zsh.
450bb88ba4Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
460bb88ba4Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
470bb88ba4Smrg  as_echo='print -r --'
480bb88ba4Smrg  as_echo_n='print -rn --'
490bb88ba4Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50eda3803bSmrg  as_echo='printf %s\n'
51eda3803bSmrg  as_echo_n='printf %s'
52eda3803bSmrgelse
53eda3803bSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54eda3803bSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55eda3803bSmrg    as_echo_n='/usr/ucb/echo -n'
56eda3803bSmrg  else
57eda3803bSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58eda3803bSmrg    as_echo_n_body='eval
59eda3803bSmrg      arg=$1;
600bb88ba4Smrg      case $arg in #(
61eda3803bSmrg      *"$as_nl"*)
62eda3803bSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
63eda3803bSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64eda3803bSmrg      esac;
65eda3803bSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66eda3803bSmrg    '
67eda3803bSmrg    export as_echo_n_body
68eda3803bSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
69eda3803bSmrg  fi
70eda3803bSmrg  export as_echo_body
71eda3803bSmrg  as_echo='sh -c $as_echo_body as_echo'
72eda3803bSmrgfi
73eda3803bSmrg
74fe5e51b7Smrg# The user is always right.
75fe5e51b7Smrgif test "${PATH_SEPARATOR+set}" != set; then
76eda3803bSmrg  PATH_SEPARATOR=:
77eda3803bSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78eda3803bSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79eda3803bSmrg      PATH_SEPARATOR=';'
80eda3803bSmrg  }
81fe5e51b7Smrgfi
82fe5e51b7Smrg
83fe5e51b7Smrg
84fe5e51b7Smrg# IFS
85fe5e51b7Smrg# We need space, tab and new line, in precisely that order.  Quoting is
86fe5e51b7Smrg# there to prevent editors from complaining about space-tab.
87fe5e51b7Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88fe5e51b7Smrg# splitting by setting IFS to empty value.)
89fe5e51b7SmrgIFS=" ""	$as_nl"
90fe5e51b7Smrg
91fe5e51b7Smrg# Find who we are.  Look in the path if we contain no directory separator.
920bb88ba4Smrgas_myself=
930bb88ba4Smrgcase $0 in #((
94fe5e51b7Smrg  *[\\/]* ) as_myself=$0 ;;
95fe5e51b7Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96fe5e51b7Smrgfor as_dir in $PATH
97fe5e51b7Smrgdo
98fe5e51b7Smrg  IFS=$as_save_IFS
99fe5e51b7Smrg  test -z "$as_dir" && as_dir=.
1000bb88ba4Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1010bb88ba4Smrg  done
102fe5e51b7SmrgIFS=$as_save_IFS
103fe5e51b7Smrg
104fe5e51b7Smrg     ;;
105fe5e51b7Smrgesac
106fe5e51b7Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
107fe5e51b7Smrg# in which case we are not to be found in the path.
108fe5e51b7Smrgif test "x$as_myself" = x; then
109fe5e51b7Smrg  as_myself=$0
110fe5e51b7Smrgfi
111fe5e51b7Smrgif test ! -f "$as_myself"; then
112eda3803bSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1130bb88ba4Smrg  exit 1
114fe5e51b7Smrgfi
115fe5e51b7Smrg
1160bb88ba4Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1170bb88ba4Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1180bb88ba4Smrg# suppresses any "Segmentation fault" message there.  '((' could
1190bb88ba4Smrg# trigger a bug in pdksh 5.2.14.
1200bb88ba4Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1210bb88ba4Smrgdo eval test x\${$as_var+set} = xset \
1220bb88ba4Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123fe5e51b7Smrgdone
124fe5e51b7SmrgPS1='$ '
125fe5e51b7SmrgPS2='> '
126fe5e51b7SmrgPS4='+ '
127fe5e51b7Smrg
128fe5e51b7Smrg# NLS nuisances.
129eda3803bSmrgLC_ALL=C
130eda3803bSmrgexport LC_ALL
131eda3803bSmrgLANGUAGE=C
132eda3803bSmrgexport LANGUAGE
133fe5e51b7Smrg
1340bb88ba4Smrg# CDPATH.
1350bb88ba4Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1360bb88ba4Smrg
137acd6767fSmrg# Use a proper internal environment variable to ensure we don't fall
138acd6767fSmrg  # into an infinite loop, continuously re-executing ourselves.
139acd6767fSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140acd6767fSmrg    _as_can_reexec=no; export _as_can_reexec;
141acd6767fSmrg    # We cannot yet assume a decent shell, so we have to provide a
142acd6767fSmrg# neutralization value for shells without unset; and this also
143acd6767fSmrg# works around shells that cannot unset nonexistent variables.
144acd6767fSmrg# Preserve -v and -x to the replacement shell.
145acd6767fSmrgBASH_ENV=/dev/null
146acd6767fSmrgENV=/dev/null
147acd6767fSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148acd6767fSmrgcase $- in # ((((
149acd6767fSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
150acd6767fSmrg  *v* ) as_opts=-v ;;
151acd6767fSmrg  *x* ) as_opts=-x ;;
152acd6767fSmrg  * ) as_opts= ;;
153acd6767fSmrgesac
154acd6767fSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155acd6767fSmrg# Admittedly, this is quite paranoid, since all the known shells bail
156acd6767fSmrg# out after a failed `exec'.
157acd6767fSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158acd6767fSmrgas_fn_exit 255
159acd6767fSmrg  fi
160acd6767fSmrg  # We don't want this to propagate to other subprocesses.
161acd6767fSmrg          { _as_can_reexec=; unset _as_can_reexec;}
1620bb88ba4Smrgif test "x$CONFIG_SHELL" = x; then
1630bb88ba4Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1640bb88ba4Smrg  emulate sh
1650bb88ba4Smrg  NULLCMD=:
1660bb88ba4Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1670bb88ba4Smrg  # is contrary to our usage.  Disable this feature.
1680bb88ba4Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1690bb88ba4Smrg  setopt NO_GLOB_SUBST
1700bb88ba4Smrgelse
1710bb88ba4Smrg  case \`(set -o) 2>/dev/null\` in #(
1720bb88ba4Smrg  *posix*) :
1730bb88ba4Smrg    set -o posix ;; #(
1740bb88ba4Smrg  *) :
1750bb88ba4Smrg     ;;
1760bb88ba4Smrgesac
1770bb88ba4Smrgfi
1780bb88ba4Smrg"
1790bb88ba4Smrg  as_required="as_fn_return () { (exit \$1); }
1800bb88ba4Smrgas_fn_success () { as_fn_return 0; }
1810bb88ba4Smrgas_fn_failure () { as_fn_return 1; }
1820bb88ba4Smrgas_fn_ret_success () { return 0; }
1830bb88ba4Smrgas_fn_ret_failure () { return 1; }
1840bb88ba4Smrg
1850bb88ba4Smrgexitcode=0
1860bb88ba4Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1870bb88ba4Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1880bb88ba4Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1890bb88ba4Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1900bb88ba4Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1910bb88ba4Smrg
1920bb88ba4Smrgelse
1930bb88ba4Smrg  exitcode=1; echo positional parameters were not saved.
1940bb88ba4Smrgfi
195acd6767fSmrgtest x\$exitcode = x0 || exit 1
196acd6767fSmrgtest -x / || exit 1"
1970bb88ba4Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1980bb88ba4Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1990bb88ba4Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
2000bb88ba4Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
2010bb88ba4Smrgtest \$(( 1 + 1 )) = 2 || exit 1
2020bb88ba4Smrg
2030bb88ba4Smrg  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
2040bb88ba4Smrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2050bb88ba4Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
2060bb88ba4Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
2070bb88ba4Smrg    PATH=/empty FPATH=/empty; export PATH FPATH
2080bb88ba4Smrg    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
2090bb88ba4Smrg      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
2100bb88ba4Smrg  if (eval "$as_required") 2>/dev/null; then :
2110bb88ba4Smrg  as_have_required=yes
2120bb88ba4Smrgelse
2130bb88ba4Smrg  as_have_required=no
2140bb88ba4Smrgfi
2150bb88ba4Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
2160bb88ba4Smrg
2170bb88ba4Smrgelse
2180bb88ba4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190bb88ba4Smrgas_found=false
2200bb88ba4Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2210bb88ba4Smrgdo
2220bb88ba4Smrg  IFS=$as_save_IFS
2230bb88ba4Smrg  test -z "$as_dir" && as_dir=.
2240bb88ba4Smrg  as_found=:
2250bb88ba4Smrg  case $as_dir in #(
2260bb88ba4Smrg	 /*)
2270bb88ba4Smrg	   for as_base in sh bash ksh sh5; do
2280bb88ba4Smrg	     # Try only shells that exist, to save several forks.
2290bb88ba4Smrg	     as_shell=$as_dir/$as_base
2300bb88ba4Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2310bb88ba4Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2320bb88ba4Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2330bb88ba4Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2340bb88ba4Smrg  break 2
2350bb88ba4Smrgfi
2360bb88ba4Smrgfi
2370bb88ba4Smrg	   done;;
2380bb88ba4Smrg       esac
2390bb88ba4Smrg  as_found=false
2400bb88ba4Smrgdone
2410bb88ba4Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2420bb88ba4Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2430bb88ba4Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2440bb88ba4Smrgfi; }
2450bb88ba4SmrgIFS=$as_save_IFS
2460bb88ba4Smrg
2470bb88ba4Smrg
2480bb88ba4Smrg      if test "x$CONFIG_SHELL" != x; then :
249acd6767fSmrg  export CONFIG_SHELL
250acd6767fSmrg             # We cannot yet assume a decent shell, so we have to provide a
251acd6767fSmrg# neutralization value for shells without unset; and this also
252acd6767fSmrg# works around shells that cannot unset nonexistent variables.
253acd6767fSmrg# Preserve -v and -x to the replacement shell.
254acd6767fSmrgBASH_ENV=/dev/null
255acd6767fSmrgENV=/dev/null
256acd6767fSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257acd6767fSmrgcase $- in # ((((
258acd6767fSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
259acd6767fSmrg  *v* ) as_opts=-v ;;
260acd6767fSmrg  *x* ) as_opts=-x ;;
261acd6767fSmrg  * ) as_opts= ;;
262acd6767fSmrgesac
263acd6767fSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264acd6767fSmrg# Admittedly, this is quite paranoid, since all the known shells bail
265acd6767fSmrg# out after a failed `exec'.
266acd6767fSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267acd6767fSmrgexit 255
2680bb88ba4Smrgfi
2690bb88ba4Smrg
2700bb88ba4Smrg    if test x$as_have_required = xno; then :
2710bb88ba4Smrg  $as_echo "$0: This script requires a shell more modern than all"
2720bb88ba4Smrg  $as_echo "$0: the shells that I found on your system."
2730bb88ba4Smrg  if test x${ZSH_VERSION+set} = xset ; then
2740bb88ba4Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2750bb88ba4Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2760bb88ba4Smrg  else
2770bb88ba4Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2780bb88ba4Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2790bb88ba4Smrg$0: about your system, including any error possibly output
2800bb88ba4Smrg$0: before this message. Then install a modern shell, or
2810bb88ba4Smrg$0: manually run the script under such a shell if you do
2820bb88ba4Smrg$0: have one."
2830bb88ba4Smrg  fi
2840bb88ba4Smrg  exit 1
2850bb88ba4Smrgfi
2860bb88ba4Smrgfi
2870bb88ba4Smrgfi
2880bb88ba4SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2890bb88ba4Smrgexport SHELL
2900bb88ba4Smrg# Unset more variables known to interfere with behavior of common tools.
2910bb88ba4SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2920bb88ba4Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2930bb88ba4Smrg
2940bb88ba4Smrg## --------------------- ##
2950bb88ba4Smrg## M4sh Shell Functions. ##
2960bb88ba4Smrg## --------------------- ##
2970bb88ba4Smrg# as_fn_unset VAR
2980bb88ba4Smrg# ---------------
2990bb88ba4Smrg# Portably unset VAR.
3000bb88ba4Smrgas_fn_unset ()
3010bb88ba4Smrg{
3020bb88ba4Smrg  { eval $1=; unset $1;}
3030bb88ba4Smrg}
3040bb88ba4Smrgas_unset=as_fn_unset
3050bb88ba4Smrg
3060bb88ba4Smrg# as_fn_set_status STATUS
3070bb88ba4Smrg# -----------------------
3080bb88ba4Smrg# Set $? to STATUS, without forking.
3090bb88ba4Smrgas_fn_set_status ()
3100bb88ba4Smrg{
3110bb88ba4Smrg  return $1
3120bb88ba4Smrg} # as_fn_set_status
3130bb88ba4Smrg
3140bb88ba4Smrg# as_fn_exit STATUS
3150bb88ba4Smrg# -----------------
3160bb88ba4Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3170bb88ba4Smrgas_fn_exit ()
3180bb88ba4Smrg{
3190bb88ba4Smrg  set +e
3200bb88ba4Smrg  as_fn_set_status $1
3210bb88ba4Smrg  exit $1
3220bb88ba4Smrg} # as_fn_exit
3230bb88ba4Smrg
3240bb88ba4Smrg# as_fn_mkdir_p
3250bb88ba4Smrg# -------------
3260bb88ba4Smrg# Create "$as_dir" as a directory, including parents if necessary.
3270bb88ba4Smrgas_fn_mkdir_p ()
3280bb88ba4Smrg{
3290bb88ba4Smrg
3300bb88ba4Smrg  case $as_dir in #(
3310bb88ba4Smrg  -*) as_dir=./$as_dir;;
3320bb88ba4Smrg  esac
3330bb88ba4Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
3340bb88ba4Smrg    as_dirs=
3350bb88ba4Smrg    while :; do
3360bb88ba4Smrg      case $as_dir in #(
3370bb88ba4Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3380bb88ba4Smrg      *) as_qdir=$as_dir;;
3390bb88ba4Smrg      esac
3400bb88ba4Smrg      as_dirs="'$as_qdir' $as_dirs"
3410bb88ba4Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3420bb88ba4Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3430bb88ba4Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3440bb88ba4Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3450bb88ba4Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3460bb88ba4Smrg$as_echo X"$as_dir" |
3470bb88ba4Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3480bb88ba4Smrg	    s//\1/
3490bb88ba4Smrg	    q
3500bb88ba4Smrg	  }
3510bb88ba4Smrg	  /^X\(\/\/\)[^/].*/{
3520bb88ba4Smrg	    s//\1/
3530bb88ba4Smrg	    q
3540bb88ba4Smrg	  }
3550bb88ba4Smrg	  /^X\(\/\/\)$/{
3560bb88ba4Smrg	    s//\1/
3570bb88ba4Smrg	    q
3580bb88ba4Smrg	  }
3590bb88ba4Smrg	  /^X\(\/\).*/{
3600bb88ba4Smrg	    s//\1/
3610bb88ba4Smrg	    q
3620bb88ba4Smrg	  }
3630bb88ba4Smrg	  s/.*/./; q'`
3640bb88ba4Smrg      test -d "$as_dir" && break
3650bb88ba4Smrg    done
3660bb88ba4Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3670bb88ba4Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3680bb88ba4Smrg
3690bb88ba4Smrg
3700bb88ba4Smrg} # as_fn_mkdir_p
371acd6767fSmrg
372acd6767fSmrg# as_fn_executable_p FILE
373acd6767fSmrg# -----------------------
374acd6767fSmrg# Test if FILE is an executable regular file.
375acd6767fSmrgas_fn_executable_p ()
376acd6767fSmrg{
377acd6767fSmrg  test -f "$1" && test -x "$1"
378acd6767fSmrg} # as_fn_executable_p
3790bb88ba4Smrg# as_fn_append VAR VALUE
3800bb88ba4Smrg# ----------------------
3810bb88ba4Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3820bb88ba4Smrg# advantage of any shell optimizations that allow amortized linear growth over
3830bb88ba4Smrg# repeated appends, instead of the typical quadratic growth present in naive
3840bb88ba4Smrg# implementations.
3850bb88ba4Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3860bb88ba4Smrg  eval 'as_fn_append ()
3870bb88ba4Smrg  {
3880bb88ba4Smrg    eval $1+=\$2
3890bb88ba4Smrg  }'
3900bb88ba4Smrgelse
3910bb88ba4Smrg  as_fn_append ()
3920bb88ba4Smrg  {
3930bb88ba4Smrg    eval $1=\$$1\$2
3940bb88ba4Smrg  }
3950bb88ba4Smrgfi # as_fn_append
3960bb88ba4Smrg
3970bb88ba4Smrg# as_fn_arith ARG...
3980bb88ba4Smrg# ------------------
3990bb88ba4Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
4000bb88ba4Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
4010bb88ba4Smrg# must be portable across $(()) and expr.
4020bb88ba4Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4030bb88ba4Smrg  eval 'as_fn_arith ()
4040bb88ba4Smrg  {
4050bb88ba4Smrg    as_val=$(( $* ))
4060bb88ba4Smrg  }'
4070bb88ba4Smrgelse
4080bb88ba4Smrg  as_fn_arith ()
4090bb88ba4Smrg  {
4100bb88ba4Smrg    as_val=`expr "$@" || test $? -eq 1`
4110bb88ba4Smrg  }
4120bb88ba4Smrgfi # as_fn_arith
4130bb88ba4Smrg
4140bb88ba4Smrg
4150bb88ba4Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
4160bb88ba4Smrg# ----------------------------------------
4170bb88ba4Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4180bb88ba4Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4190bb88ba4Smrg# script with STATUS, using 1 if that was 0.
4200bb88ba4Smrgas_fn_error ()
4210bb88ba4Smrg{
4220bb88ba4Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
4230bb88ba4Smrg  if test "$4"; then
4240bb88ba4Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4250bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4260bb88ba4Smrg  fi
4270bb88ba4Smrg  $as_echo "$as_me: error: $2" >&2
4280bb88ba4Smrg  as_fn_exit $as_status
4290bb88ba4Smrg} # as_fn_error
4300bb88ba4Smrg
431fe5e51b7Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
432fe5e51b7Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433fe5e51b7Smrg  as_expr=expr
434fe5e51b7Smrgelse
435fe5e51b7Smrg  as_expr=false
436fe5e51b7Smrgfi
437fe5e51b7Smrg
438fe5e51b7Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439fe5e51b7Smrg  as_basename=basename
440fe5e51b7Smrgelse
441fe5e51b7Smrg  as_basename=false
442fe5e51b7Smrgfi
443fe5e51b7Smrg
4440bb88ba4Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4450bb88ba4Smrg  as_dirname=dirname
4460bb88ba4Smrgelse
4470bb88ba4Smrg  as_dirname=false
4480bb88ba4Smrgfi
449fe5e51b7Smrg
450fe5e51b7Smrgas_me=`$as_basename -- "$0" ||
451fe5e51b7Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452fe5e51b7Smrg	 X"$0" : 'X\(//\)$' \| \
453fe5e51b7Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454eda3803bSmrg$as_echo X/"$0" |
455fe5e51b7Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
456fe5e51b7Smrg	    s//\1/
457fe5e51b7Smrg	    q
458fe5e51b7Smrg	  }
459fe5e51b7Smrg	  /^X\/\(\/\/\)$/{
460fe5e51b7Smrg	    s//\1/
461fe5e51b7Smrg	    q
462fe5e51b7Smrg	  }
463fe5e51b7Smrg	  /^X\/\(\/\).*/{
464fe5e51b7Smrg	    s//\1/
465fe5e51b7Smrg	    q
466fe5e51b7Smrg	  }
467fe5e51b7Smrg	  s/.*/./; q'`
468fe5e51b7Smrg
4690bb88ba4Smrg# Avoid depending upon Character Ranges.
4700bb88ba4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4710bb88ba4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4720bb88ba4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4730bb88ba4Smrgas_cr_digits='0123456789'
4740bb88ba4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
475fe5e51b7Smrg
476fe5e51b7Smrg
4770bb88ba4Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4780bb88ba4Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4790bb88ba4Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4800bb88ba4Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4810bb88ba4Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4820bb88ba4Smrg  sed -n '
4830bb88ba4Smrg    p
4840bb88ba4Smrg    /[$]LINENO/=
4850bb88ba4Smrg  ' <$as_myself |
4860bb88ba4Smrg    sed '
4870bb88ba4Smrg      s/[$]LINENO.*/&-/
4880bb88ba4Smrg      t lineno
4890bb88ba4Smrg      b
4900bb88ba4Smrg      :lineno
4910bb88ba4Smrg      N
4920bb88ba4Smrg      :loop
4930bb88ba4Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4940bb88ba4Smrg      t loop
4950bb88ba4Smrg      s/-\n.*//
4960bb88ba4Smrg    ' >$as_me.lineno &&
4970bb88ba4Smrg  chmod +x "$as_me.lineno" ||
4980bb88ba4Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499fe5e51b7Smrg
500acd6767fSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501acd6767fSmrg  # already done that, so ensure we don't try to do so again and fall
502acd6767fSmrg  # in an infinite loop.  This has already happened in practice.
503acd6767fSmrg  _as_can_reexec=no; export _as_can_reexec
5040bb88ba4Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
5050bb88ba4Smrg  # (the dirname of $[0] is not the place where we might find the
5060bb88ba4Smrg  # original and so on.  Autoconf is especially sensitive to this).
5070bb88ba4Smrg  . "./$as_me.lineno"
5080bb88ba4Smrg  # Exit status is that of the last command.
5090bb88ba4Smrg  exit
510fe5e51b7Smrg}
511fe5e51b7Smrg
5120bb88ba4SmrgECHO_C= ECHO_N= ECHO_T=
5130bb88ba4Smrgcase `echo -n x` in #(((((
5140bb88ba4Smrg-n*)
5150bb88ba4Smrg  case `echo 'xy\c'` in
5160bb88ba4Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5170bb88ba4Smrg  xy)  ECHO_C='\c';;
5180bb88ba4Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5190bb88ba4Smrg       ECHO_T='	';;
5200bb88ba4Smrg  esac;;
5210bb88ba4Smrg*)
5220bb88ba4Smrg  ECHO_N='-n';;
5230bb88ba4Smrgesac
524fe5e51b7Smrg
5250bb88ba4Smrgrm -f conf$$ conf$$.exe conf$$.file
5260bb88ba4Smrgif test -d conf$$.dir; then
5270bb88ba4Smrg  rm -f conf$$.dir/conf$$.file
5280bb88ba4Smrgelse
5290bb88ba4Smrg  rm -f conf$$.dir
5300bb88ba4Smrg  mkdir conf$$.dir 2>/dev/null
531fe5e51b7Smrgfi
5320bb88ba4Smrgif (echo >conf$$.file) 2>/dev/null; then
5330bb88ba4Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5340bb88ba4Smrg    as_ln_s='ln -s'
5350bb88ba4Smrg    # ... but there are two gotchas:
5360bb88ba4Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5370bb88ba4Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538acd6767fSmrg    # In both cases, we have to default to `cp -pR'.
5390bb88ba4Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540acd6767fSmrg      as_ln_s='cp -pR'
5410bb88ba4Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5420bb88ba4Smrg    as_ln_s=ln
5430bb88ba4Smrg  else
544acd6767fSmrg    as_ln_s='cp -pR'
5450bb88ba4Smrg  fi
546fe5e51b7Smrgelse
547acd6767fSmrg  as_ln_s='cp -pR'
548fe5e51b7Smrgfi
5490bb88ba4Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5500bb88ba4Smrgrmdir conf$$.dir 2>/dev/null
551fe5e51b7Smrg
5520bb88ba4Smrgif mkdir -p . 2>/dev/null; then
5530bb88ba4Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5540bb88ba4Smrgelse
5550bb88ba4Smrg  test -d ./-p && rmdir ./-p
5560bb88ba4Smrg  as_mkdir_p=false
557fe5e51b7Smrgfi
558fe5e51b7Smrg
559acd6767fSmrgas_test_x='test -x'
560acd6767fSmrgas_executable_p=as_fn_executable_p
561fe5e51b7Smrg
5620bb88ba4Smrg# Sed expression to map a string onto a valid CPP name.
5630bb88ba4Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564fe5e51b7Smrg
5650bb88ba4Smrg# Sed expression to map a string onto a valid variable name.
5660bb88ba4Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567fe5e51b7Smrg
5680bb88ba4SmrgSHELL=${CONFIG_SHELL-/bin/sh}
569fe5e51b7Smrg
5700bb88ba4Smrg
5710bb88ba4Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5720bb88ba4Smrgexec 6>&1
5730bb88ba4Smrg
5740bb88ba4Smrg# Name of the host.
5750bb88ba4Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5760bb88ba4Smrg# so uname gets run too.
5770bb88ba4Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5780bb88ba4Smrg
5790bb88ba4Smrg#
5800bb88ba4Smrg# Initializations.
5810bb88ba4Smrg#
5820bb88ba4Smrgac_default_prefix=/usr/local
5830bb88ba4Smrgac_clean_files=
5840bb88ba4Smrgac_config_libobj_dir=.
5850bb88ba4SmrgLIBOBJS=
5860bb88ba4Smrgcross_compiling=no
5870bb88ba4Smrgsubdirs=
5880bb88ba4SmrgMFLAGS=
5890bb88ba4SmrgMAKEFLAGS=
5900bb88ba4Smrg
5910bb88ba4Smrg# Identity of this package.
5920bb88ba4SmrgPACKAGE_NAME='xf86-video-mga'
5930bb88ba4SmrgPACKAGE_TARNAME='xf86-video-mga'
594acd6767fSmrgPACKAGE_VERSION='1.6.3'
595acd6767fSmrgPACKAGE_STRING='xf86-video-mga 1.6.3'
5960bb88ba4SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5970bb88ba4SmrgPACKAGE_URL=''
5980bb88ba4Smrg
5990bb88ba4Smrgac_unique_file="Makefile.am"
6000bb88ba4Smrg# Factoring default headers for most tests.
6010bb88ba4Smrgac_includes_default="\
6020bb88ba4Smrg#include <stdio.h>
6030bb88ba4Smrg#ifdef HAVE_SYS_TYPES_H
6040bb88ba4Smrg# include <sys/types.h>
6050bb88ba4Smrg#endif
6060bb88ba4Smrg#ifdef HAVE_SYS_STAT_H
6070bb88ba4Smrg# include <sys/stat.h>
6080bb88ba4Smrg#endif
6090bb88ba4Smrg#ifdef STDC_HEADERS
6100bb88ba4Smrg# include <stdlib.h>
6110bb88ba4Smrg# include <stddef.h>
6120bb88ba4Smrg#else
6130bb88ba4Smrg# ifdef HAVE_STDLIB_H
6140bb88ba4Smrg#  include <stdlib.h>
6150bb88ba4Smrg# endif
6160bb88ba4Smrg#endif
6170bb88ba4Smrg#ifdef HAVE_STRING_H
6180bb88ba4Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6190bb88ba4Smrg#  include <memory.h>
6200bb88ba4Smrg# endif
6210bb88ba4Smrg# include <string.h>
6220bb88ba4Smrg#endif
6230bb88ba4Smrg#ifdef HAVE_STRINGS_H
6240bb88ba4Smrg# include <strings.h>
6250bb88ba4Smrg#endif
6260bb88ba4Smrg#ifdef HAVE_INTTYPES_H
6270bb88ba4Smrg# include <inttypes.h>
6280bb88ba4Smrg#endif
6290bb88ba4Smrg#ifdef HAVE_STDINT_H
6300bb88ba4Smrg# include <stdint.h>
6310bb88ba4Smrg#endif
6320bb88ba4Smrg#ifdef HAVE_UNISTD_H
6330bb88ba4Smrg# include <unistd.h>
6340bb88ba4Smrg#endif"
6350bb88ba4Smrg
6360bb88ba4Smrgac_subst_vars='am__EXEEXT_FALSE
6370bb88ba4Smrgam__EXEEXT_TRUE
6380bb88ba4SmrgLTLIBOBJS
6390bb88ba4SmrgLIBOBJS
6400bb88ba4SmrgDRIVER_NAME
6410bb88ba4Smrgmoduledir
6420bb88ba4SmrgUSE_EXA_FALSE
6430bb88ba4SmrgUSE_EXA_TRUE
6440bb88ba4SmrgXAA_FALSE
6450bb88ba4SmrgXAA_TRUE
6460bb88ba4SmrgXSERVER_LIBPCIACCESS_FALSE
6470bb88ba4SmrgXSERVER_LIBPCIACCESS_TRUE
6480bb88ba4SmrgPCIACCESS_LIBS
6490bb88ba4SmrgPCIACCESS_CFLAGS
6500bb88ba4SmrgDRI_LIBS
6510bb88ba4SmrgDRI_CFLAGS
6520bb88ba4SmrgDRI_FALSE
6530bb88ba4SmrgDRI_TRUE
6540bb88ba4SmrgXORG_LIBS
6550bb88ba4SmrgXORG_CFLAGS
6560bb88ba4SmrgOTOOL64
6570bb88ba4SmrgOTOOL
6580bb88ba4SmrgLIPO
6590bb88ba4SmrgNMEDIT
6600bb88ba4SmrgDSYMUTIL
6610bb88ba4SmrgMANIFEST_TOOL
6620bb88ba4SmrgRANLIB
6630bb88ba4Smrgac_ct_AR
6640bb88ba4SmrgAR
6650bb88ba4SmrgDLLTOOL
6660bb88ba4SmrgOBJDUMP
6670bb88ba4SmrgLN_S
6680bb88ba4SmrgNM
6690bb88ba4Smrgac_ct_DUMPBIN
6700bb88ba4SmrgDUMPBIN
6710bb88ba4SmrgLD
6720bb88ba4SmrgFGREP
6730bb88ba4SmrgLIBTOOL
6740bb88ba4SmrgMAINT
6750bb88ba4SmrgMAINTAINER_MODE_FALSE
6760bb88ba4SmrgMAINTAINER_MODE_TRUE
6770bb88ba4Smrgam__fastdepCC_FALSE
6780bb88ba4Smrgam__fastdepCC_TRUE
6790bb88ba4SmrgCCDEPMODE
6800bb88ba4Smrgam__nodep
6810bb88ba4SmrgAMDEPBACKSLASH
6820bb88ba4SmrgAMDEP_FALSE
6830bb88ba4SmrgAMDEP_TRUE
6840bb88ba4Smrgam__quote
6850bb88ba4Smrgam__include
6860bb88ba4SmrgDEPDIR
6870bb88ba4Smrgam__untar
6880bb88ba4Smrgam__tar
6890bb88ba4SmrgAMTAR
6900bb88ba4Smrgam__leading_dot
6910bb88ba4SmrgSET_MAKE
6920bb88ba4SmrgAWK
6930bb88ba4Smrgmkdir_p
6940bb88ba4SmrgMKDIR_P
6950bb88ba4SmrgINSTALL_STRIP_PROGRAM
6960bb88ba4SmrgSTRIP
6970bb88ba4Smrginstall_sh
6980bb88ba4SmrgMAKEINFO
6990bb88ba4SmrgAUTOHEADER
7000bb88ba4SmrgAUTOMAKE
7010bb88ba4SmrgAUTOCONF
7020bb88ba4SmrgACLOCAL
7030bb88ba4SmrgVERSION
7040bb88ba4SmrgPACKAGE
7050bb88ba4SmrgCYGPATH_W
7060bb88ba4Smrgam__isrc
7070bb88ba4SmrgAM_BACKSLASH
7080bb88ba4SmrgAM_DEFAULT_VERBOSITY
7090bb88ba4SmrgAM_DEFAULT_V
7100bb88ba4SmrgAM_V
7110bb88ba4SmrgMAN_SUBSTS
7120bb88ba4SmrgXORG_MAN_PAGE
7130bb88ba4SmrgADMIN_MAN_DIR
7140bb88ba4SmrgDRIVER_MAN_DIR
7150bb88ba4SmrgMISC_MAN_DIR
7160bb88ba4SmrgFILE_MAN_DIR
7170bb88ba4SmrgLIB_MAN_DIR
7180bb88ba4SmrgAPP_MAN_DIR
7190bb88ba4SmrgADMIN_MAN_SUFFIX
7200bb88ba4SmrgDRIVER_MAN_SUFFIX
7210bb88ba4SmrgMISC_MAN_SUFFIX
7220bb88ba4SmrgFILE_MAN_SUFFIX
7230bb88ba4SmrgLIB_MAN_SUFFIX
7240bb88ba4SmrgAPP_MAN_SUFFIX
7250bb88ba4SmrgSED
7260bb88ba4Smrghost_os
7270bb88ba4Smrghost_vendor
7280bb88ba4Smrghost_cpu
7290bb88ba4Smrghost
7300bb88ba4Smrgbuild_os
7310bb88ba4Smrgbuild_vendor
7320bb88ba4Smrgbuild_cpu
7330bb88ba4Smrgbuild
7340bb88ba4SmrgINSTALL_CMD
7350bb88ba4SmrgPKG_CONFIG_LIBDIR
7360bb88ba4SmrgPKG_CONFIG_PATH
7370bb88ba4SmrgPKG_CONFIG
7380bb88ba4SmrgCHANGELOG_CMD
7390bb88ba4SmrgSTRICT_CFLAGS
7400bb88ba4SmrgCWARNFLAGS
7410bb88ba4SmrgBASE_CFLAGS
7420bb88ba4SmrgEGREP
7430bb88ba4SmrgGREP
7440bb88ba4SmrgCPP
7450bb88ba4SmrgOBJEXT
7460bb88ba4SmrgEXEEXT
7470bb88ba4Smrgac_ct_CC
7480bb88ba4SmrgCPPFLAGS
7490bb88ba4SmrgLDFLAGS
7500bb88ba4SmrgCFLAGS
7510bb88ba4SmrgCC
7520bb88ba4SmrgINSTALL_DATA
7530bb88ba4SmrgINSTALL_SCRIPT
7540bb88ba4SmrgINSTALL_PROGRAM
7550bb88ba4Smrgtarget_alias
7560bb88ba4Smrghost_alias
7570bb88ba4Smrgbuild_alias
7580bb88ba4SmrgLIBS
7590bb88ba4SmrgECHO_T
7600bb88ba4SmrgECHO_N
7610bb88ba4SmrgECHO_C
7620bb88ba4SmrgDEFS
7630bb88ba4Smrgmandir
7640bb88ba4Smrglocaledir
7650bb88ba4Smrglibdir
7660bb88ba4Smrgpsdir
7670bb88ba4Smrgpdfdir
7680bb88ba4Smrgdvidir
7690bb88ba4Smrghtmldir
7700bb88ba4Smrginfodir
7710bb88ba4Smrgdocdir
7720bb88ba4Smrgoldincludedir
7730bb88ba4Smrgincludedir
7740bb88ba4Smrglocalstatedir
7750bb88ba4Smrgsharedstatedir
7760bb88ba4Smrgsysconfdir
7770bb88ba4Smrgdatadir
7780bb88ba4Smrgdatarootdir
7790bb88ba4Smrglibexecdir
7800bb88ba4Smrgsbindir
7810bb88ba4Smrgbindir
7820bb88ba4Smrgprogram_transform_name
7830bb88ba4Smrgprefix
7840bb88ba4Smrgexec_prefix
7850bb88ba4SmrgPACKAGE_URL
7860bb88ba4SmrgPACKAGE_BUGREPORT
7870bb88ba4SmrgPACKAGE_STRING
7880bb88ba4SmrgPACKAGE_VERSION
7890bb88ba4SmrgPACKAGE_TARNAME
7900bb88ba4SmrgPACKAGE_NAME
7910bb88ba4SmrgPATH_SEPARATOR
7920bb88ba4SmrgSHELL'
7930bb88ba4Smrgac_subst_files=''
7940bb88ba4Smrgac_user_opts='
7950bb88ba4Smrgenable_option_checking
7960bb88ba4Smrgenable_selective_werror
7970bb88ba4Smrgenable_strict_compilation
7980bb88ba4Smrgenable_silent_rules
7990bb88ba4Smrgenable_dependency_tracking
8000bb88ba4Smrgenable_maintainer_mode
8010bb88ba4Smrgenable_static
8020bb88ba4Smrgenable_shared
8030bb88ba4Smrgwith_pic
8040bb88ba4Smrgenable_fast_install
8050bb88ba4Smrgwith_gnu_ld
8060bb88ba4Smrgwith_sysroot
8070bb88ba4Smrgenable_libtool_lock
8080bb88ba4Smrgwith_xorg_module_dir
8090bb88ba4Smrgenable_dri
8100bb88ba4Smrgenable_exa
8110bb88ba4Smrgenable_xaa
8120bb88ba4Smrg'
8130bb88ba4Smrg      ac_precious_vars='build_alias
8140bb88ba4Smrghost_alias
8150bb88ba4Smrgtarget_alias
8160bb88ba4SmrgCC
8170bb88ba4SmrgCFLAGS
8180bb88ba4SmrgLDFLAGS
8190bb88ba4SmrgLIBS
8200bb88ba4SmrgCPPFLAGS
8210bb88ba4SmrgCPP
8220bb88ba4SmrgPKG_CONFIG
8230bb88ba4SmrgPKG_CONFIG_PATH
8240bb88ba4SmrgPKG_CONFIG_LIBDIR
8250bb88ba4SmrgXORG_CFLAGS
8260bb88ba4SmrgXORG_LIBS
8270bb88ba4SmrgDRI_CFLAGS
8280bb88ba4SmrgDRI_LIBS
8290bb88ba4SmrgPCIACCESS_CFLAGS
8300bb88ba4SmrgPCIACCESS_LIBS'
8310bb88ba4Smrg
8320bb88ba4Smrg
8330bb88ba4Smrg# Initialize some variables set by options.
8340bb88ba4Smrgac_init_help=
8350bb88ba4Smrgac_init_version=false
8360bb88ba4Smrgac_unrecognized_opts=
8370bb88ba4Smrgac_unrecognized_sep=
8380bb88ba4Smrg# The variables have the same names as the options, with
8390bb88ba4Smrg# dashes changed to underlines.
8400bb88ba4Smrgcache_file=/dev/null
8410bb88ba4Smrgexec_prefix=NONE
8420bb88ba4Smrgno_create=
8430bb88ba4Smrgno_recursion=
8440bb88ba4Smrgprefix=NONE
8450bb88ba4Smrgprogram_prefix=NONE
8460bb88ba4Smrgprogram_suffix=NONE
8470bb88ba4Smrgprogram_transform_name=s,x,x,
8480bb88ba4Smrgsilent=
8490bb88ba4Smrgsite=
8500bb88ba4Smrgsrcdir=
8510bb88ba4Smrgverbose=
8520bb88ba4Smrgx_includes=NONE
8530bb88ba4Smrgx_libraries=NONE
8540bb88ba4Smrg
8550bb88ba4Smrg# Installation directory options.
8560bb88ba4Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8570bb88ba4Smrg# and all the variables that are supposed to be based on exec_prefix
8580bb88ba4Smrg# by default will actually change.
8590bb88ba4Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
8600bb88ba4Smrg# (The list follows the same order as the GNU Coding Standards.)
8610bb88ba4Smrgbindir='${exec_prefix}/bin'
8620bb88ba4Smrgsbindir='${exec_prefix}/sbin'
8630bb88ba4Smrglibexecdir='${exec_prefix}/libexec'
8640bb88ba4Smrgdatarootdir='${prefix}/share'
8650bb88ba4Smrgdatadir='${datarootdir}'
8660bb88ba4Smrgsysconfdir='${prefix}/etc'
8670bb88ba4Smrgsharedstatedir='${prefix}/com'
8680bb88ba4Smrglocalstatedir='${prefix}/var'
8690bb88ba4Smrgincludedir='${prefix}/include'
8700bb88ba4Smrgoldincludedir='/usr/include'
8710bb88ba4Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8720bb88ba4Smrginfodir='${datarootdir}/info'
8730bb88ba4Smrghtmldir='${docdir}'
8740bb88ba4Smrgdvidir='${docdir}'
8750bb88ba4Smrgpdfdir='${docdir}'
8760bb88ba4Smrgpsdir='${docdir}'
8770bb88ba4Smrglibdir='${exec_prefix}/lib'
8780bb88ba4Smrglocaledir='${datarootdir}/locale'
8790bb88ba4Smrgmandir='${datarootdir}/man'
8800bb88ba4Smrg
8810bb88ba4Smrgac_prev=
8820bb88ba4Smrgac_dashdash=
8830bb88ba4Smrgfor ac_option
8840bb88ba4Smrgdo
8850bb88ba4Smrg  # If the previous option needs an argument, assign it.
8860bb88ba4Smrg  if test -n "$ac_prev"; then
8870bb88ba4Smrg    eval $ac_prev=\$ac_option
8880bb88ba4Smrg    ac_prev=
8890bb88ba4Smrg    continue
8900bb88ba4Smrg  fi
8910bb88ba4Smrg
8920bb88ba4Smrg  case $ac_option in
8930bb88ba4Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8940bb88ba4Smrg  *=)   ac_optarg= ;;
8950bb88ba4Smrg  *)    ac_optarg=yes ;;
8960bb88ba4Smrg  esac
8970bb88ba4Smrg
8980bb88ba4Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8990bb88ba4Smrg
9000bb88ba4Smrg  case $ac_dashdash$ac_option in
9010bb88ba4Smrg  --)
9020bb88ba4Smrg    ac_dashdash=yes ;;
9030bb88ba4Smrg
9040bb88ba4Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
9050bb88ba4Smrg    ac_prev=bindir ;;
9060bb88ba4Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
9070bb88ba4Smrg    bindir=$ac_optarg ;;
9080bb88ba4Smrg
9090bb88ba4Smrg  -build | --build | --buil | --bui | --bu)
9100bb88ba4Smrg    ac_prev=build_alias ;;
9110bb88ba4Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
9120bb88ba4Smrg    build_alias=$ac_optarg ;;
9130bb88ba4Smrg
9140bb88ba4Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
9150bb88ba4Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9160bb88ba4Smrg    ac_prev=cache_file ;;
9170bb88ba4Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9180bb88ba4Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9190bb88ba4Smrg    cache_file=$ac_optarg ;;
9200bb88ba4Smrg
9210bb88ba4Smrg  --config-cache | -C)
9220bb88ba4Smrg    cache_file=config.cache ;;
9230bb88ba4Smrg
9240bb88ba4Smrg  -datadir | --datadir | --datadi | --datad)
9250bb88ba4Smrg    ac_prev=datadir ;;
9260bb88ba4Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
9270bb88ba4Smrg    datadir=$ac_optarg ;;
9280bb88ba4Smrg
9290bb88ba4Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
9300bb88ba4Smrg  | --dataroo | --dataro | --datar)
9310bb88ba4Smrg    ac_prev=datarootdir ;;
9320bb88ba4Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
9330bb88ba4Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
9340bb88ba4Smrg    datarootdir=$ac_optarg ;;
9350bb88ba4Smrg
9360bb88ba4Smrg  -disable-* | --disable-*)
9370bb88ba4Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9380bb88ba4Smrg    # Reject names that are not valid shell variable names.
9390bb88ba4Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9400bb88ba4Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
9410bb88ba4Smrg    ac_useropt_orig=$ac_useropt
9420bb88ba4Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9430bb88ba4Smrg    case $ac_user_opts in
9440bb88ba4Smrg      *"
9450bb88ba4Smrg"enable_$ac_useropt"
9460bb88ba4Smrg"*) ;;
9470bb88ba4Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
9480bb88ba4Smrg	 ac_unrecognized_sep=', ';;
9490bb88ba4Smrg    esac
9500bb88ba4Smrg    eval enable_$ac_useropt=no ;;
9510bb88ba4Smrg
9520bb88ba4Smrg  -docdir | --docdir | --docdi | --doc | --do)
9530bb88ba4Smrg    ac_prev=docdir ;;
9540bb88ba4Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
9550bb88ba4Smrg    docdir=$ac_optarg ;;
9560bb88ba4Smrg
9570bb88ba4Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
9580bb88ba4Smrg    ac_prev=dvidir ;;
9590bb88ba4Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9600bb88ba4Smrg    dvidir=$ac_optarg ;;
9610bb88ba4Smrg
9620bb88ba4Smrg  -enable-* | --enable-*)
9630bb88ba4Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9640bb88ba4Smrg    # Reject names that are not valid shell variable names.
9650bb88ba4Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9660bb88ba4Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
9670bb88ba4Smrg    ac_useropt_orig=$ac_useropt
9680bb88ba4Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9690bb88ba4Smrg    case $ac_user_opts in
9700bb88ba4Smrg      *"
9710bb88ba4Smrg"enable_$ac_useropt"
9720bb88ba4Smrg"*) ;;
9730bb88ba4Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9740bb88ba4Smrg	 ac_unrecognized_sep=', ';;
9750bb88ba4Smrg    esac
9760bb88ba4Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
9770bb88ba4Smrg
9780bb88ba4Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9790bb88ba4Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9800bb88ba4Smrg  | --exec | --exe | --ex)
9810bb88ba4Smrg    ac_prev=exec_prefix ;;
9820bb88ba4Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9830bb88ba4Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9840bb88ba4Smrg  | --exec=* | --exe=* | --ex=*)
9850bb88ba4Smrg    exec_prefix=$ac_optarg ;;
9860bb88ba4Smrg
9870bb88ba4Smrg  -gas | --gas | --ga | --g)
9880bb88ba4Smrg    # Obsolete; use --with-gas.
9890bb88ba4Smrg    with_gas=yes ;;
9900bb88ba4Smrg
9910bb88ba4Smrg  -help | --help | --hel | --he | -h)
9920bb88ba4Smrg    ac_init_help=long ;;
9930bb88ba4Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9940bb88ba4Smrg    ac_init_help=recursive ;;
9950bb88ba4Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9960bb88ba4Smrg    ac_init_help=short ;;
9970bb88ba4Smrg
9980bb88ba4Smrg  -host | --host | --hos | --ho)
9990bb88ba4Smrg    ac_prev=host_alias ;;
10000bb88ba4Smrg  -host=* | --host=* | --hos=* | --ho=*)
10010bb88ba4Smrg    host_alias=$ac_optarg ;;
10020bb88ba4Smrg
10030bb88ba4Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
10040bb88ba4Smrg    ac_prev=htmldir ;;
10050bb88ba4Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
10060bb88ba4Smrg  | --ht=*)
10070bb88ba4Smrg    htmldir=$ac_optarg ;;
10080bb88ba4Smrg
10090bb88ba4Smrg  -includedir | --includedir | --includedi | --included | --include \
10100bb88ba4Smrg  | --includ | --inclu | --incl | --inc)
10110bb88ba4Smrg    ac_prev=includedir ;;
10120bb88ba4Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
10130bb88ba4Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
10140bb88ba4Smrg    includedir=$ac_optarg ;;
10150bb88ba4Smrg
10160bb88ba4Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
10170bb88ba4Smrg    ac_prev=infodir ;;
10180bb88ba4Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
10190bb88ba4Smrg    infodir=$ac_optarg ;;
10200bb88ba4Smrg
10210bb88ba4Smrg  -libdir | --libdir | --libdi | --libd)
10220bb88ba4Smrg    ac_prev=libdir ;;
10230bb88ba4Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
10240bb88ba4Smrg    libdir=$ac_optarg ;;
10250bb88ba4Smrg
10260bb88ba4Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
10270bb88ba4Smrg  | --libexe | --libex | --libe)
10280bb88ba4Smrg    ac_prev=libexecdir ;;
10290bb88ba4Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
10300bb88ba4Smrg  | --libexe=* | --libex=* | --libe=*)
10310bb88ba4Smrg    libexecdir=$ac_optarg ;;
10320bb88ba4Smrg
10330bb88ba4Smrg  -localedir | --localedir | --localedi | --localed | --locale)
10340bb88ba4Smrg    ac_prev=localedir ;;
10350bb88ba4Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
10360bb88ba4Smrg    localedir=$ac_optarg ;;
10370bb88ba4Smrg
10380bb88ba4Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
10390bb88ba4Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
10400bb88ba4Smrg    ac_prev=localstatedir ;;
10410bb88ba4Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
10420bb88ba4Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
10430bb88ba4Smrg    localstatedir=$ac_optarg ;;
10440bb88ba4Smrg
10450bb88ba4Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
10460bb88ba4Smrg    ac_prev=mandir ;;
10470bb88ba4Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
10480bb88ba4Smrg    mandir=$ac_optarg ;;
10490bb88ba4Smrg
10500bb88ba4Smrg  -nfp | --nfp | --nf)
10510bb88ba4Smrg    # Obsolete; use --without-fp.
10520bb88ba4Smrg    with_fp=no ;;
10530bb88ba4Smrg
10540bb88ba4Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10550bb88ba4Smrg  | --no-cr | --no-c | -n)
10560bb88ba4Smrg    no_create=yes ;;
10570bb88ba4Smrg
10580bb88ba4Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10590bb88ba4Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10600bb88ba4Smrg    no_recursion=yes ;;
10610bb88ba4Smrg
10620bb88ba4Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10630bb88ba4Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10640bb88ba4Smrg  | --oldin | --oldi | --old | --ol | --o)
10650bb88ba4Smrg    ac_prev=oldincludedir ;;
10660bb88ba4Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10670bb88ba4Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10680bb88ba4Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10690bb88ba4Smrg    oldincludedir=$ac_optarg ;;
10700bb88ba4Smrg
10710bb88ba4Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10720bb88ba4Smrg    ac_prev=prefix ;;
10730bb88ba4Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10740bb88ba4Smrg    prefix=$ac_optarg ;;
10750bb88ba4Smrg
10760bb88ba4Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10770bb88ba4Smrg  | --program-pre | --program-pr | --program-p)
10780bb88ba4Smrg    ac_prev=program_prefix ;;
10790bb88ba4Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10800bb88ba4Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10810bb88ba4Smrg    program_prefix=$ac_optarg ;;
10820bb88ba4Smrg
10830bb88ba4Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10840bb88ba4Smrg  | --program-suf | --program-su | --program-s)
10850bb88ba4Smrg    ac_prev=program_suffix ;;
10860bb88ba4Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10870bb88ba4Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10880bb88ba4Smrg    program_suffix=$ac_optarg ;;
10890bb88ba4Smrg
10900bb88ba4Smrg  -program-transform-name | --program-transform-name \
10910bb88ba4Smrg  | --program-transform-nam | --program-transform-na \
10920bb88ba4Smrg  | --program-transform-n | --program-transform- \
10930bb88ba4Smrg  | --program-transform | --program-transfor \
10940bb88ba4Smrg  | --program-transfo | --program-transf \
10950bb88ba4Smrg  | --program-trans | --program-tran \
10960bb88ba4Smrg  | --progr-tra | --program-tr | --program-t)
10970bb88ba4Smrg    ac_prev=program_transform_name ;;
10980bb88ba4Smrg  -program-transform-name=* | --program-transform-name=* \
10990bb88ba4Smrg  | --program-transform-nam=* | --program-transform-na=* \
11000bb88ba4Smrg  | --program-transform-n=* | --program-transform-=* \
11010bb88ba4Smrg  | --program-transform=* | --program-transfor=* \
11020bb88ba4Smrg  | --program-transfo=* | --program-transf=* \
11030bb88ba4Smrg  | --program-trans=* | --program-tran=* \
11040bb88ba4Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
11050bb88ba4Smrg    program_transform_name=$ac_optarg ;;
11060bb88ba4Smrg
11070bb88ba4Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
11080bb88ba4Smrg    ac_prev=pdfdir ;;
11090bb88ba4Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
11100bb88ba4Smrg    pdfdir=$ac_optarg ;;
11110bb88ba4Smrg
11120bb88ba4Smrg  -psdir | --psdir | --psdi | --psd | --ps)
11130bb88ba4Smrg    ac_prev=psdir ;;
11140bb88ba4Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
11150bb88ba4Smrg    psdir=$ac_optarg ;;
11160bb88ba4Smrg
11170bb88ba4Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11180bb88ba4Smrg  | -silent | --silent | --silen | --sile | --sil)
11190bb88ba4Smrg    silent=yes ;;
11200bb88ba4Smrg
11210bb88ba4Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11220bb88ba4Smrg    ac_prev=sbindir ;;
11230bb88ba4Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
11240bb88ba4Smrg  | --sbi=* | --sb=*)
11250bb88ba4Smrg    sbindir=$ac_optarg ;;
11260bb88ba4Smrg
11270bb88ba4Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
11280bb88ba4Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
11290bb88ba4Smrg  | --sharedst | --shareds | --shared | --share | --shar \
11300bb88ba4Smrg  | --sha | --sh)
11310bb88ba4Smrg    ac_prev=sharedstatedir ;;
11320bb88ba4Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
11330bb88ba4Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
11340bb88ba4Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
11350bb88ba4Smrg  | --sha=* | --sh=*)
11360bb88ba4Smrg    sharedstatedir=$ac_optarg ;;
11370bb88ba4Smrg
11380bb88ba4Smrg  -site | --site | --sit)
11390bb88ba4Smrg    ac_prev=site ;;
11400bb88ba4Smrg  -site=* | --site=* | --sit=*)
11410bb88ba4Smrg    site=$ac_optarg ;;
11420bb88ba4Smrg
11430bb88ba4Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11440bb88ba4Smrg    ac_prev=srcdir ;;
11450bb88ba4Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11460bb88ba4Smrg    srcdir=$ac_optarg ;;
11470bb88ba4Smrg
11480bb88ba4Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
11490bb88ba4Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
11500bb88ba4Smrg    ac_prev=sysconfdir ;;
11510bb88ba4Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11520bb88ba4Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11530bb88ba4Smrg    sysconfdir=$ac_optarg ;;
11540bb88ba4Smrg
11550bb88ba4Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11560bb88ba4Smrg    ac_prev=target_alias ;;
11570bb88ba4Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11580bb88ba4Smrg    target_alias=$ac_optarg ;;
11590bb88ba4Smrg
11600bb88ba4Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11610bb88ba4Smrg    verbose=yes ;;
11620bb88ba4Smrg
11630bb88ba4Smrg  -version | --version | --versio | --versi | --vers | -V)
11640bb88ba4Smrg    ac_init_version=: ;;
11650bb88ba4Smrg
11660bb88ba4Smrg  -with-* | --with-*)
11670bb88ba4Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11680bb88ba4Smrg    # Reject names that are not valid shell variable names.
11690bb88ba4Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11700bb88ba4Smrg      as_fn_error $? "invalid package name: $ac_useropt"
11710bb88ba4Smrg    ac_useropt_orig=$ac_useropt
11720bb88ba4Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11730bb88ba4Smrg    case $ac_user_opts in
11740bb88ba4Smrg      *"
11750bb88ba4Smrg"with_$ac_useropt"
11760bb88ba4Smrg"*) ;;
11770bb88ba4Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11780bb88ba4Smrg	 ac_unrecognized_sep=', ';;
11790bb88ba4Smrg    esac
11800bb88ba4Smrg    eval with_$ac_useropt=\$ac_optarg ;;
11810bb88ba4Smrg
11820bb88ba4Smrg  -without-* | --without-*)
11830bb88ba4Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11840bb88ba4Smrg    # Reject names that are not valid shell variable names.
11850bb88ba4Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11860bb88ba4Smrg      as_fn_error $? "invalid package name: $ac_useropt"
11870bb88ba4Smrg    ac_useropt_orig=$ac_useropt
11880bb88ba4Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11890bb88ba4Smrg    case $ac_user_opts in
11900bb88ba4Smrg      *"
11910bb88ba4Smrg"with_$ac_useropt"
11920bb88ba4Smrg"*) ;;
11930bb88ba4Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11940bb88ba4Smrg	 ac_unrecognized_sep=', ';;
11950bb88ba4Smrg    esac
11960bb88ba4Smrg    eval with_$ac_useropt=no ;;
11970bb88ba4Smrg
11980bb88ba4Smrg  --x)
11990bb88ba4Smrg    # Obsolete; use --with-x.
12000bb88ba4Smrg    with_x=yes ;;
12010bb88ba4Smrg
12020bb88ba4Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
12030bb88ba4Smrg  | --x-incl | --x-inc | --x-in | --x-i)
12040bb88ba4Smrg    ac_prev=x_includes ;;
12050bb88ba4Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
12060bb88ba4Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
12070bb88ba4Smrg    x_includes=$ac_optarg ;;
12080bb88ba4Smrg
12090bb88ba4Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
12100bb88ba4Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
12110bb88ba4Smrg    ac_prev=x_libraries ;;
12120bb88ba4Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
12130bb88ba4Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
12140bb88ba4Smrg    x_libraries=$ac_optarg ;;
12150bb88ba4Smrg
12160bb88ba4Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
12170bb88ba4SmrgTry \`$0 --help' for more information"
12180bb88ba4Smrg    ;;
12190bb88ba4Smrg
12200bb88ba4Smrg  *=*)
12210bb88ba4Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
12220bb88ba4Smrg    # Reject names that are not valid shell variable names.
12230bb88ba4Smrg    case $ac_envvar in #(
12240bb88ba4Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
12250bb88ba4Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
12260bb88ba4Smrg    esac
12270bb88ba4Smrg    eval $ac_envvar=\$ac_optarg
12280bb88ba4Smrg    export $ac_envvar ;;
12290bb88ba4Smrg
12300bb88ba4Smrg  *)
12310bb88ba4Smrg    # FIXME: should be removed in autoconf 3.0.
12320bb88ba4Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
12330bb88ba4Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
12340bb88ba4Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
12350bb88ba4Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12360bb88ba4Smrg    ;;
12370bb88ba4Smrg
12380bb88ba4Smrg  esac
12390bb88ba4Smrgdone
12400bb88ba4Smrg
12410bb88ba4Smrgif test -n "$ac_prev"; then
12420bb88ba4Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12430bb88ba4Smrg  as_fn_error $? "missing argument to $ac_option"
12440bb88ba4Smrgfi
12450bb88ba4Smrg
12460bb88ba4Smrgif test -n "$ac_unrecognized_opts"; then
12470bb88ba4Smrg  case $enable_option_checking in
12480bb88ba4Smrg    no) ;;
12490bb88ba4Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
12500bb88ba4Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12510bb88ba4Smrg  esac
12520bb88ba4Smrgfi
12530bb88ba4Smrg
12540bb88ba4Smrg# Check all directory arguments for consistency.
12550bb88ba4Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
12560bb88ba4Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
12570bb88ba4Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12580bb88ba4Smrg		libdir localedir mandir
12590bb88ba4Smrgdo
12600bb88ba4Smrg  eval ac_val=\$$ac_var
12610bb88ba4Smrg  # Remove trailing slashes.
12620bb88ba4Smrg  case $ac_val in
12630bb88ba4Smrg    */ )
12640bb88ba4Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12650bb88ba4Smrg      eval $ac_var=\$ac_val;;
12660bb88ba4Smrg  esac
12670bb88ba4Smrg  # Be sure to have absolute directory names.
12680bb88ba4Smrg  case $ac_val in
12690bb88ba4Smrg    [\\/$]* | ?:[\\/]* )  continue;;
12700bb88ba4Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12710bb88ba4Smrg  esac
12720bb88ba4Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12730bb88ba4Smrgdone
12740bb88ba4Smrg
12750bb88ba4Smrg# There might be people who depend on the old broken behavior: `$host'
12760bb88ba4Smrg# used to hold the argument of --host etc.
12770bb88ba4Smrg# FIXME: To remove some day.
12780bb88ba4Smrgbuild=$build_alias
12790bb88ba4Smrghost=$host_alias
12800bb88ba4Smrgtarget=$target_alias
12810bb88ba4Smrg
12820bb88ba4Smrg# FIXME: To remove some day.
12830bb88ba4Smrgif test "x$host_alias" != x; then
12840bb88ba4Smrg  if test "x$build_alias" = x; then
12850bb88ba4Smrg    cross_compiling=maybe
12860bb88ba4Smrg  elif test "x$build_alias" != "x$host_alias"; then
12870bb88ba4Smrg    cross_compiling=yes
12880bb88ba4Smrg  fi
12890bb88ba4Smrgfi
12900bb88ba4Smrg
12910bb88ba4Smrgac_tool_prefix=
12920bb88ba4Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12930bb88ba4Smrg
12940bb88ba4Smrgtest "$silent" = yes && exec 6>/dev/null
12950bb88ba4Smrg
12960bb88ba4Smrg
12970bb88ba4Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12980bb88ba4Smrgac_ls_di=`ls -di .` &&
12990bb88ba4Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
13000bb88ba4Smrg  as_fn_error $? "working directory cannot be determined"
13010bb88ba4Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
13020bb88ba4Smrg  as_fn_error $? "pwd does not report name of working directory"
13030bb88ba4Smrg
13040bb88ba4Smrg
13050bb88ba4Smrg# Find the source files, if location was not specified.
13060bb88ba4Smrgif test -z "$srcdir"; then
13070bb88ba4Smrg  ac_srcdir_defaulted=yes
13080bb88ba4Smrg  # Try the directory containing this script, then the parent directory.
13090bb88ba4Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
13100bb88ba4Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13110bb88ba4Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
13120bb88ba4Smrg	 X"$as_myself" : 'X\(//\)$' \| \
13130bb88ba4Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
13140bb88ba4Smrg$as_echo X"$as_myself" |
13150bb88ba4Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13160bb88ba4Smrg	    s//\1/
13170bb88ba4Smrg	    q
13180bb88ba4Smrg	  }
13190bb88ba4Smrg	  /^X\(\/\/\)[^/].*/{
13200bb88ba4Smrg	    s//\1/
13210bb88ba4Smrg	    q
13220bb88ba4Smrg	  }
13230bb88ba4Smrg	  /^X\(\/\/\)$/{
13240bb88ba4Smrg	    s//\1/
13250bb88ba4Smrg	    q
13260bb88ba4Smrg	  }
13270bb88ba4Smrg	  /^X\(\/\).*/{
13280bb88ba4Smrg	    s//\1/
13290bb88ba4Smrg	    q
13300bb88ba4Smrg	  }
13310bb88ba4Smrg	  s/.*/./; q'`
13320bb88ba4Smrg  srcdir=$ac_confdir
13330bb88ba4Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
13340bb88ba4Smrg    srcdir=..
13350bb88ba4Smrg  fi
13360bb88ba4Smrgelse
13370bb88ba4Smrg  ac_srcdir_defaulted=no
13380bb88ba4Smrgfi
13390bb88ba4Smrgif test ! -r "$srcdir/$ac_unique_file"; then
13400bb88ba4Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
13410bb88ba4Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
13420bb88ba4Smrgfi
13430bb88ba4Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
13440bb88ba4Smrgac_abs_confdir=`(
13450bb88ba4Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
13460bb88ba4Smrg	pwd)`
13470bb88ba4Smrg# When building in place, set srcdir=.
13480bb88ba4Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
13490bb88ba4Smrg  srcdir=.
13500bb88ba4Smrgfi
13510bb88ba4Smrg# Remove unnecessary trailing slashes from srcdir.
13520bb88ba4Smrg# Double slashes in file names in object file debugging info
13530bb88ba4Smrg# mess up M-x gdb in Emacs.
13540bb88ba4Smrgcase $srcdir in
13550bb88ba4Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
13560bb88ba4Smrgesac
13570bb88ba4Smrgfor ac_var in $ac_precious_vars; do
13580bb88ba4Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
13590bb88ba4Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
13600bb88ba4Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13610bb88ba4Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
13620bb88ba4Smrgdone
13630bb88ba4Smrg
13640bb88ba4Smrg#
13650bb88ba4Smrg# Report the --help message.
13660bb88ba4Smrg#
13670bb88ba4Smrgif test "$ac_init_help" = "long"; then
13680bb88ba4Smrg  # Omit some internal or obsolete options to make the list less imposing.
13690bb88ba4Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13700bb88ba4Smrg  cat <<_ACEOF
1371acd6767fSmrg\`configure' configures xf86-video-mga 1.6.3 to adapt to many kinds of systems.
13720bb88ba4Smrg
13730bb88ba4SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13740bb88ba4Smrg
13750bb88ba4SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13760bb88ba4SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13770bb88ba4Smrg
13780bb88ba4SmrgDefaults for the options are specified in brackets.
13790bb88ba4Smrg
13800bb88ba4SmrgConfiguration:
13810bb88ba4Smrg  -h, --help              display this help and exit
13820bb88ba4Smrg      --help=short        display options specific to this package
13830bb88ba4Smrg      --help=recursive    display the short help of all the included packages
13840bb88ba4Smrg  -V, --version           display version information and exit
13850bb88ba4Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
13860bb88ba4Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13870bb88ba4Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13880bb88ba4Smrg  -n, --no-create         do not create output files
13890bb88ba4Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13900bb88ba4Smrg
13910bb88ba4SmrgInstallation directories:
13920bb88ba4Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13930bb88ba4Smrg                          [$ac_default_prefix]
13940bb88ba4Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13950bb88ba4Smrg                          [PREFIX]
13960bb88ba4Smrg
13970bb88ba4SmrgBy default, \`make install' will install all the files in
13980bb88ba4Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13990bb88ba4Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
14000bb88ba4Smrgfor instance \`--prefix=\$HOME'.
14010bb88ba4Smrg
14020bb88ba4SmrgFor better control, use the options below.
14030bb88ba4Smrg
14040bb88ba4SmrgFine tuning of the installation directories:
14050bb88ba4Smrg  --bindir=DIR            user executables [EPREFIX/bin]
14060bb88ba4Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
14070bb88ba4Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
14080bb88ba4Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
14090bb88ba4Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
14100bb88ba4Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
14110bb88ba4Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
14120bb88ba4Smrg  --includedir=DIR        C header files [PREFIX/include]
14130bb88ba4Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
14140bb88ba4Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
14150bb88ba4Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
14160bb88ba4Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
14170bb88ba4Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
14180bb88ba4Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
14190bb88ba4Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-mga]
14200bb88ba4Smrg  --htmldir=DIR           html documentation [DOCDIR]
14210bb88ba4Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
14220bb88ba4Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
14230bb88ba4Smrg  --psdir=DIR             ps documentation [DOCDIR]
14240bb88ba4Smrg_ACEOF
14250bb88ba4Smrg
14260bb88ba4Smrg  cat <<\_ACEOF
14270bb88ba4Smrg
14280bb88ba4SmrgProgram names:
14290bb88ba4Smrg  --program-prefix=C            prepend C to installed program names
14300bb88ba4Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
14310bb88ba4Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
14320bb88ba4Smrg
14330bb88ba4SmrgSystem types:
14340bb88ba4Smrg  --build=BUILD     configure for building on BUILD [guessed]
14350bb88ba4Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
14360bb88ba4Smrg_ACEOF
14370bb88ba4Smrgfi
14380bb88ba4Smrg
14390bb88ba4Smrgif test -n "$ac_init_help"; then
14400bb88ba4Smrg  case $ac_init_help in
1441acd6767fSmrg     short | recursive ) echo "Configuration of xf86-video-mga 1.6.3:";;
14420bb88ba4Smrg   esac
14430bb88ba4Smrg  cat <<\_ACEOF
14440bb88ba4Smrg
14450bb88ba4SmrgOptional Features:
14460bb88ba4Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
14470bb88ba4Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14480bb88ba4Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14490bb88ba4Smrg  --disable-selective-werror
14500bb88ba4Smrg                          Turn off selective compiler errors. (default:
14510bb88ba4Smrg                          enabled)
14520bb88ba4Smrg  --enable-strict-compilation
14530bb88ba4Smrg                          Enable all warnings from compiler and make them
14540bb88ba4Smrg                          errors (default: disabled)
1455acd6767fSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1456acd6767fSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
1457acd6767fSmrg  --enable-dependency-tracking
1458acd6767fSmrg                          do not reject slow dependency extractors
1459acd6767fSmrg  --disable-dependency-tracking
1460acd6767fSmrg                          speeds up one-time build
1461acd6767fSmrg  --enable-maintainer-mode
1462acd6767fSmrg                          enable make rules and dependencies not useful (and
1463acd6767fSmrg                          sometimes confusing) to the casual installer
14640bb88ba4Smrg  --enable-static[=PKGS]  build static libraries [default=no]
14650bb88ba4Smrg  --enable-shared[=PKGS]  build shared libraries [default=yes]
14660bb88ba4Smrg  --enable-fast-install[=PKGS]
14670bb88ba4Smrg                          optimize for fast installation [default=yes]
14680bb88ba4Smrg  --disable-libtool-lock  avoid locking (might break parallel builds)
14690bb88ba4Smrg  --disable-dri           Disable DRI support [[default=auto]]
14700bb88ba4Smrg  --disable-exa           Disable EXA support [[default=enabled]]
14710bb88ba4Smrg  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
14720bb88ba4Smrg                          [default=auto]
14730bb88ba4Smrg
14740bb88ba4SmrgOptional Packages:
14750bb88ba4Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14760bb88ba4Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14770bb88ba4Smrg  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
14780bb88ba4Smrg                          both]
14790bb88ba4Smrg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
14800bb88ba4Smrg  --with-sysroot=DIR Search for dependent libraries within DIR
14810bb88ba4Smrg                        (or the compiler's sysroot if not specified).
14820bb88ba4Smrg  --with-xorg-module-dir=DIR
14830bb88ba4Smrg                          Default xorg module directory
14840bb88ba4Smrg                          [[default=$libdir/xorg/modules]]
14850bb88ba4Smrg
14860bb88ba4SmrgSome influential environment variables:
14870bb88ba4Smrg  CC          C compiler command
14880bb88ba4Smrg  CFLAGS      C compiler flags
14890bb88ba4Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14900bb88ba4Smrg              nonstandard directory <lib dir>
14910bb88ba4Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14920bb88ba4Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14930bb88ba4Smrg              you have headers in a nonstandard directory <include dir>
14940bb88ba4Smrg  CPP         C preprocessor
14950bb88ba4Smrg  PKG_CONFIG  path to pkg-config utility
14960bb88ba4Smrg  PKG_CONFIG_PATH
14970bb88ba4Smrg              directories to add to pkg-config's search path
14980bb88ba4Smrg  PKG_CONFIG_LIBDIR
14990bb88ba4Smrg              path overriding pkg-config's built-in search path
15000bb88ba4Smrg  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
15010bb88ba4Smrg  XORG_LIBS   linker flags for XORG, overriding pkg-config
15020bb88ba4Smrg  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
15030bb88ba4Smrg  DRI_LIBS    linker flags for DRI, overriding pkg-config
15040bb88ba4Smrg  PCIACCESS_CFLAGS
15050bb88ba4Smrg              C compiler flags for PCIACCESS, overriding pkg-config
15060bb88ba4Smrg  PCIACCESS_LIBS
15070bb88ba4Smrg              linker flags for PCIACCESS, overriding pkg-config
15080bb88ba4Smrg
15090bb88ba4SmrgUse these variables to override the choices made by `configure' or to help
15100bb88ba4Smrgit to find libraries and programs with nonstandard names/locations.
15110bb88ba4Smrg
15120bb88ba4SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
15130bb88ba4Smrg_ACEOF
15140bb88ba4Smrgac_status=$?
15150bb88ba4Smrgfi
15160bb88ba4Smrg
15170bb88ba4Smrgif test "$ac_init_help" = "recursive"; then
15180bb88ba4Smrg  # If there are subdirs, report their specific --help.
15190bb88ba4Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
15200bb88ba4Smrg    test -d "$ac_dir" ||
15210bb88ba4Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
15220bb88ba4Smrg      continue
15230bb88ba4Smrg    ac_builddir=.
15240bb88ba4Smrg
15250bb88ba4Smrgcase "$ac_dir" in
15260bb88ba4Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15270bb88ba4Smrg*)
15280bb88ba4Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15290bb88ba4Smrg  # A ".." for each directory in $ac_dir_suffix.
15300bb88ba4Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15310bb88ba4Smrg  case $ac_top_builddir_sub in
15320bb88ba4Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15330bb88ba4Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15340bb88ba4Smrg  esac ;;
15350bb88ba4Smrgesac
15360bb88ba4Smrgac_abs_top_builddir=$ac_pwd
15370bb88ba4Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
15380bb88ba4Smrg# for backward compatibility:
15390bb88ba4Smrgac_top_builddir=$ac_top_build_prefix
15400bb88ba4Smrg
15410bb88ba4Smrgcase $srcdir in
15420bb88ba4Smrg  .)  # We are building in place.
15430bb88ba4Smrg    ac_srcdir=.
15440bb88ba4Smrg    ac_top_srcdir=$ac_top_builddir_sub
15450bb88ba4Smrg    ac_abs_top_srcdir=$ac_pwd ;;
15460bb88ba4Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
15470bb88ba4Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
15480bb88ba4Smrg    ac_top_srcdir=$srcdir
15490bb88ba4Smrg    ac_abs_top_srcdir=$srcdir ;;
15500bb88ba4Smrg  *) # Relative name.
15510bb88ba4Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15520bb88ba4Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
15530bb88ba4Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15540bb88ba4Smrgesac
15550bb88ba4Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15560bb88ba4Smrg
15570bb88ba4Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
15580bb88ba4Smrg    # Check for guested configure.
15590bb88ba4Smrg    if test -f "$ac_srcdir/configure.gnu"; then
15600bb88ba4Smrg      echo &&
15610bb88ba4Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15620bb88ba4Smrg    elif test -f "$ac_srcdir/configure"; then
15630bb88ba4Smrg      echo &&
15640bb88ba4Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
15650bb88ba4Smrg    else
15660bb88ba4Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15670bb88ba4Smrg    fi || ac_status=$?
15680bb88ba4Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
15690bb88ba4Smrg  done
15700bb88ba4Smrgfi
15710bb88ba4Smrg
15720bb88ba4Smrgtest -n "$ac_init_help" && exit $ac_status
15730bb88ba4Smrgif $ac_init_version; then
15740bb88ba4Smrg  cat <<\_ACEOF
1575acd6767fSmrgxf86-video-mga configure 1.6.3
1576acd6767fSmrggenerated by GNU Autoconf 2.69
15770bb88ba4Smrg
1578acd6767fSmrgCopyright (C) 2012 Free Software Foundation, Inc.
15790bb88ba4SmrgThis configure script is free software; the Free Software Foundation
15800bb88ba4Smrggives unlimited permission to copy, distribute and modify it.
15810bb88ba4Smrg_ACEOF
15820bb88ba4Smrg  exit
15830bb88ba4Smrgfi
15840bb88ba4Smrg
15850bb88ba4Smrg## ------------------------ ##
15860bb88ba4Smrg## Autoconf initialization. ##
15870bb88ba4Smrg## ------------------------ ##
15880bb88ba4Smrg
15890bb88ba4Smrg# ac_fn_c_try_compile LINENO
15900bb88ba4Smrg# --------------------------
15910bb88ba4Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15920bb88ba4Smrgac_fn_c_try_compile ()
15930bb88ba4Smrg{
15940bb88ba4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15950bb88ba4Smrg  rm -f conftest.$ac_objext
15960bb88ba4Smrg  if { { ac_try="$ac_compile"
15970bb88ba4Smrgcase "(($ac_try" in
15980bb88ba4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990bb88ba4Smrg  *) ac_try_echo=$ac_try;;
16000bb88ba4Smrgesac
16010bb88ba4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16020bb88ba4Smrg$as_echo "$ac_try_echo"; } >&5
16030bb88ba4Smrg  (eval "$ac_compile") 2>conftest.err
16040bb88ba4Smrg  ac_status=$?
16050bb88ba4Smrg  if test -s conftest.err; then
16060bb88ba4Smrg    grep -v '^ *+' conftest.err >conftest.er1
16070bb88ba4Smrg    cat conftest.er1 >&5
16080bb88ba4Smrg    mv -f conftest.er1 conftest.err
16090bb88ba4Smrg  fi
16100bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16110bb88ba4Smrg  test $ac_status = 0; } && {
16120bb88ba4Smrg	 test -z "$ac_c_werror_flag" ||
16130bb88ba4Smrg	 test ! -s conftest.err
16140bb88ba4Smrg       } && test -s conftest.$ac_objext; then :
16150bb88ba4Smrg  ac_retval=0
16160bb88ba4Smrgelse
16170bb88ba4Smrg  $as_echo "$as_me: failed program was:" >&5
16180bb88ba4Smrgsed 's/^/| /' conftest.$ac_ext >&5
16190bb88ba4Smrg
16200bb88ba4Smrg	ac_retval=1
16210bb88ba4Smrgfi
16220bb88ba4Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16230bb88ba4Smrg  as_fn_set_status $ac_retval
16240bb88ba4Smrg
16250bb88ba4Smrg} # ac_fn_c_try_compile
16260bb88ba4Smrg
16270bb88ba4Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
16280bb88ba4Smrg# ---------------------------------------------
16290bb88ba4Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
16300bb88ba4Smrg# accordingly.
16310bb88ba4Smrgac_fn_c_check_decl ()
16320bb88ba4Smrg{
16330bb88ba4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16340bb88ba4Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
16350bb88ba4Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
16360bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
16370bb88ba4Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
16380bb88ba4Smrgif eval \${$3+:} false; then :
16390bb88ba4Smrg  $as_echo_n "(cached) " >&6
16400bb88ba4Smrgelse
16410bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420bb88ba4Smrg/* end confdefs.h.  */
16430bb88ba4Smrg$4
16440bb88ba4Smrgint
16450bb88ba4Smrgmain ()
16460bb88ba4Smrg{
16470bb88ba4Smrg#ifndef $as_decl_name
16480bb88ba4Smrg#ifdef __cplusplus
16490bb88ba4Smrg  (void) $as_decl_use;
16500bb88ba4Smrg#else
16510bb88ba4Smrg  (void) $as_decl_name;
16520bb88ba4Smrg#endif
16530bb88ba4Smrg#endif
16540bb88ba4Smrg
16550bb88ba4Smrg  ;
16560bb88ba4Smrg  return 0;
16570bb88ba4Smrg}
16580bb88ba4Smrg_ACEOF
16590bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
16600bb88ba4Smrg  eval "$3=yes"
16610bb88ba4Smrgelse
16620bb88ba4Smrg  eval "$3=no"
16630bb88ba4Smrgfi
16640bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16650bb88ba4Smrgfi
16660bb88ba4Smrgeval ac_res=\$$3
16670bb88ba4Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16680bb88ba4Smrg$as_echo "$ac_res" >&6; }
16690bb88ba4Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16700bb88ba4Smrg
16710bb88ba4Smrg} # ac_fn_c_check_decl
16720bb88ba4Smrg
16730bb88ba4Smrg# ac_fn_c_try_cpp LINENO
16740bb88ba4Smrg# ----------------------
16750bb88ba4Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
16760bb88ba4Smrgac_fn_c_try_cpp ()
16770bb88ba4Smrg{
16780bb88ba4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16790bb88ba4Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
16800bb88ba4Smrgcase "(($ac_try" in
16810bb88ba4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820bb88ba4Smrg  *) ac_try_echo=$ac_try;;
16830bb88ba4Smrgesac
16840bb88ba4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16850bb88ba4Smrg$as_echo "$ac_try_echo"; } >&5
16860bb88ba4Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
16870bb88ba4Smrg  ac_status=$?
16880bb88ba4Smrg  if test -s conftest.err; then
16890bb88ba4Smrg    grep -v '^ *+' conftest.err >conftest.er1
16900bb88ba4Smrg    cat conftest.er1 >&5
16910bb88ba4Smrg    mv -f conftest.er1 conftest.err
16920bb88ba4Smrg  fi
16930bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16940bb88ba4Smrg  test $ac_status = 0; } > conftest.i && {
16950bb88ba4Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16960bb88ba4Smrg	 test ! -s conftest.err
16970bb88ba4Smrg       }; then :
16980bb88ba4Smrg  ac_retval=0
16990bb88ba4Smrgelse
17000bb88ba4Smrg  $as_echo "$as_me: failed program was:" >&5
17010bb88ba4Smrgsed 's/^/| /' conftest.$ac_ext >&5
17020bb88ba4Smrg
17030bb88ba4Smrg    ac_retval=1
17040bb88ba4Smrgfi
17050bb88ba4Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17060bb88ba4Smrg  as_fn_set_status $ac_retval
17070bb88ba4Smrg
17080bb88ba4Smrg} # ac_fn_c_try_cpp
17090bb88ba4Smrg
17100bb88ba4Smrg# ac_fn_c_try_run LINENO
17110bb88ba4Smrg# ----------------------
17120bb88ba4Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
17130bb88ba4Smrg# that executables *can* be run.
17140bb88ba4Smrgac_fn_c_try_run ()
17150bb88ba4Smrg{
17160bb88ba4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17170bb88ba4Smrg  if { { ac_try="$ac_link"
17180bb88ba4Smrgcase "(($ac_try" in
17190bb88ba4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200bb88ba4Smrg  *) ac_try_echo=$ac_try;;
17210bb88ba4Smrgesac
17220bb88ba4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17230bb88ba4Smrg$as_echo "$ac_try_echo"; } >&5
17240bb88ba4Smrg  (eval "$ac_link") 2>&5
17250bb88ba4Smrg  ac_status=$?
17260bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17270bb88ba4Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
17280bb88ba4Smrg  { { case "(($ac_try" in
17290bb88ba4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300bb88ba4Smrg  *) ac_try_echo=$ac_try;;
17310bb88ba4Smrgesac
17320bb88ba4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17330bb88ba4Smrg$as_echo "$ac_try_echo"; } >&5
17340bb88ba4Smrg  (eval "$ac_try") 2>&5
17350bb88ba4Smrg  ac_status=$?
17360bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17370bb88ba4Smrg  test $ac_status = 0; }; }; then :
17380bb88ba4Smrg  ac_retval=0
17390bb88ba4Smrgelse
17400bb88ba4Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
17410bb88ba4Smrg       $as_echo "$as_me: failed program was:" >&5
17420bb88ba4Smrgsed 's/^/| /' conftest.$ac_ext >&5
17430bb88ba4Smrg
17440bb88ba4Smrg       ac_retval=$ac_status
17450bb88ba4Smrgfi
17460bb88ba4Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17470bb88ba4Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17480bb88ba4Smrg  as_fn_set_status $ac_retval
17490bb88ba4Smrg
17500bb88ba4Smrg} # ac_fn_c_try_run
17510bb88ba4Smrg
17520bb88ba4Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
17530bb88ba4Smrg# -------------------------------------------------------
17540bb88ba4Smrg# Tests whether HEADER exists and can be compiled using the include files in
17550bb88ba4Smrg# INCLUDES, setting the cache variable VAR accordingly.
17560bb88ba4Smrgac_fn_c_check_header_compile ()
17570bb88ba4Smrg{
17580bb88ba4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17590bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17600bb88ba4Smrg$as_echo_n "checking for $2... " >&6; }
17610bb88ba4Smrgif eval \${$3+:} false; then :
17620bb88ba4Smrg  $as_echo_n "(cached) " >&6
17630bb88ba4Smrgelse
17640bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650bb88ba4Smrg/* end confdefs.h.  */
17660bb88ba4Smrg$4
17670bb88ba4Smrg#include <$2>
17680bb88ba4Smrg_ACEOF
17690bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
17700bb88ba4Smrg  eval "$3=yes"
17710bb88ba4Smrgelse
17720bb88ba4Smrg  eval "$3=no"
17730bb88ba4Smrgfi
17740bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750bb88ba4Smrgfi
17760bb88ba4Smrgeval ac_res=\$$3
17770bb88ba4Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17780bb88ba4Smrg$as_echo "$ac_res" >&6; }
17790bb88ba4Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17800bb88ba4Smrg
17810bb88ba4Smrg} # ac_fn_c_check_header_compile
17820bb88ba4Smrg
17830bb88ba4Smrg# ac_fn_c_try_link LINENO
17840bb88ba4Smrg# -----------------------
17850bb88ba4Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
17860bb88ba4Smrgac_fn_c_try_link ()
17870bb88ba4Smrg{
17880bb88ba4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17890bb88ba4Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
17900bb88ba4Smrg  if { { ac_try="$ac_link"
17910bb88ba4Smrgcase "(($ac_try" in
17920bb88ba4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930bb88ba4Smrg  *) ac_try_echo=$ac_try;;
17940bb88ba4Smrgesac
17950bb88ba4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17960bb88ba4Smrg$as_echo "$ac_try_echo"; } >&5
17970bb88ba4Smrg  (eval "$ac_link") 2>conftest.err
17980bb88ba4Smrg  ac_status=$?
17990bb88ba4Smrg  if test -s conftest.err; then
18000bb88ba4Smrg    grep -v '^ *+' conftest.err >conftest.er1
18010bb88ba4Smrg    cat conftest.er1 >&5
18020bb88ba4Smrg    mv -f conftest.er1 conftest.err
18030bb88ba4Smrg  fi
18040bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18050bb88ba4Smrg  test $ac_status = 0; } && {
18060bb88ba4Smrg	 test -z "$ac_c_werror_flag" ||
18070bb88ba4Smrg	 test ! -s conftest.err
18080bb88ba4Smrg       } && test -s conftest$ac_exeext && {
18090bb88ba4Smrg	 test "$cross_compiling" = yes ||
1810acd6767fSmrg	 test -x conftest$ac_exeext
18110bb88ba4Smrg       }; then :
18120bb88ba4Smrg  ac_retval=0
18130bb88ba4Smrgelse
18140bb88ba4Smrg  $as_echo "$as_me: failed program was:" >&5
18150bb88ba4Smrgsed 's/^/| /' conftest.$ac_ext >&5
18160bb88ba4Smrg
18170bb88ba4Smrg	ac_retval=1
18180bb88ba4Smrgfi
18190bb88ba4Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
18200bb88ba4Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
18210bb88ba4Smrg  # interfere with the next link command; also delete a directory that is
18220bb88ba4Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
18230bb88ba4Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
18240bb88ba4Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18250bb88ba4Smrg  as_fn_set_status $ac_retval
18260bb88ba4Smrg
18270bb88ba4Smrg} # ac_fn_c_try_link
18280bb88ba4Smrg
18290bb88ba4Smrg# ac_fn_c_check_func LINENO FUNC VAR
18300bb88ba4Smrg# ----------------------------------
18310bb88ba4Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
18320bb88ba4Smrgac_fn_c_check_func ()
18330bb88ba4Smrg{
18340bb88ba4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18350bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18360bb88ba4Smrg$as_echo_n "checking for $2... " >&6; }
18370bb88ba4Smrgif eval \${$3+:} false; then :
18380bb88ba4Smrg  $as_echo_n "(cached) " >&6
18390bb88ba4Smrgelse
18400bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410bb88ba4Smrg/* end confdefs.h.  */
18420bb88ba4Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18430bb88ba4Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18440bb88ba4Smrg#define $2 innocuous_$2
18450bb88ba4Smrg
18460bb88ba4Smrg/* System header to define __stub macros and hopefully few prototypes,
18470bb88ba4Smrg    which can conflict with char $2 (); below.
18480bb88ba4Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18490bb88ba4Smrg    <limits.h> exists even on freestanding compilers.  */
18500bb88ba4Smrg
18510bb88ba4Smrg#ifdef __STDC__
18520bb88ba4Smrg# include <limits.h>
18530bb88ba4Smrg#else
18540bb88ba4Smrg# include <assert.h>
18550bb88ba4Smrg#endif
18560bb88ba4Smrg
18570bb88ba4Smrg#undef $2
18580bb88ba4Smrg
18590bb88ba4Smrg/* Override any GCC internal prototype to avoid an error.
18600bb88ba4Smrg   Use char because int might match the return type of a GCC
18610bb88ba4Smrg   builtin and then its argument prototype would still apply.  */
18620bb88ba4Smrg#ifdef __cplusplus
18630bb88ba4Smrgextern "C"
18640bb88ba4Smrg#endif
18650bb88ba4Smrgchar $2 ();
18660bb88ba4Smrg/* The GNU C library defines this for functions which it implements
18670bb88ba4Smrg    to always fail with ENOSYS.  Some functions are actually named
18680bb88ba4Smrg    something starting with __ and the normal name is an alias.  */
18690bb88ba4Smrg#if defined __stub_$2 || defined __stub___$2
18700bb88ba4Smrgchoke me
18710bb88ba4Smrg#endif
18720bb88ba4Smrg
18730bb88ba4Smrgint
18740bb88ba4Smrgmain ()
18750bb88ba4Smrg{
18760bb88ba4Smrgreturn $2 ();
18770bb88ba4Smrg  ;
18780bb88ba4Smrg  return 0;
18790bb88ba4Smrg}
18800bb88ba4Smrg_ACEOF
18810bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
18820bb88ba4Smrg  eval "$3=yes"
18830bb88ba4Smrgelse
18840bb88ba4Smrg  eval "$3=no"
18850bb88ba4Smrgfi
18860bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
18870bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
18880bb88ba4Smrgfi
18890bb88ba4Smrgeval ac_res=\$$3
18900bb88ba4Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18910bb88ba4Smrg$as_echo "$ac_res" >&6; }
18920bb88ba4Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18930bb88ba4Smrg
18940bb88ba4Smrg} # ac_fn_c_check_func
18950bb88ba4Smrg
18960bb88ba4Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
18970bb88ba4Smrg# -------------------------------------------------------
18980bb88ba4Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
18990bb88ba4Smrg# the include files in INCLUDES and setting the cache variable VAR
19000bb88ba4Smrg# accordingly.
19010bb88ba4Smrgac_fn_c_check_header_mongrel ()
19020bb88ba4Smrg{
19030bb88ba4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19040bb88ba4Smrg  if eval \${$3+:} false; then :
19050bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
19060bb88ba4Smrg$as_echo_n "checking for $2... " >&6; }
19070bb88ba4Smrgif eval \${$3+:} false; then :
19080bb88ba4Smrg  $as_echo_n "(cached) " >&6
19090bb88ba4Smrgfi
19100bb88ba4Smrgeval ac_res=\$$3
19110bb88ba4Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19120bb88ba4Smrg$as_echo "$ac_res" >&6; }
19130bb88ba4Smrgelse
19140bb88ba4Smrg  # Is the header compilable?
19150bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
19160bb88ba4Smrg$as_echo_n "checking $2 usability... " >&6; }
19170bb88ba4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180bb88ba4Smrg/* end confdefs.h.  */
19190bb88ba4Smrg$4
19200bb88ba4Smrg#include <$2>
19210bb88ba4Smrg_ACEOF
19220bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
19230bb88ba4Smrg  ac_header_compiler=yes
19240bb88ba4Smrgelse
19250bb88ba4Smrg  ac_header_compiler=no
19260bb88ba4Smrgfi
19270bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
19290bb88ba4Smrg$as_echo "$ac_header_compiler" >&6; }
19300bb88ba4Smrg
19310bb88ba4Smrg# Is the header present?
19320bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
19330bb88ba4Smrg$as_echo_n "checking $2 presence... " >&6; }
19340bb88ba4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
19350bb88ba4Smrg/* end confdefs.h.  */
19360bb88ba4Smrg#include <$2>
19370bb88ba4Smrg_ACEOF
19380bb88ba4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
19390bb88ba4Smrg  ac_header_preproc=yes
19400bb88ba4Smrgelse
19410bb88ba4Smrg  ac_header_preproc=no
19420bb88ba4Smrgfi
19430bb88ba4Smrgrm -f conftest.err conftest.i conftest.$ac_ext
19440bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
19450bb88ba4Smrg$as_echo "$ac_header_preproc" >&6; }
19460bb88ba4Smrg
19470bb88ba4Smrg# So?  What about this header?
19480bb88ba4Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
19490bb88ba4Smrg  yes:no: )
19500bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
19510bb88ba4Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
19520bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
19530bb88ba4Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
19540bb88ba4Smrg    ;;
19550bb88ba4Smrg  no:yes:* )
19560bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
19570bb88ba4Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
19580bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
19590bb88ba4Smrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
19600bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
19610bb88ba4Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
19620bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
19630bb88ba4Smrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
19640bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
19650bb88ba4Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
19660bb88ba4Smrg( $as_echo "## ---------------------------------------------------------------------- ##
19670bb88ba4Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
19680bb88ba4Smrg## ---------------------------------------------------------------------- ##"
19690bb88ba4Smrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
19700bb88ba4Smrg    ;;
19710bb88ba4Smrgesac
19720bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
19730bb88ba4Smrg$as_echo_n "checking for $2... " >&6; }
19740bb88ba4Smrgif eval \${$3+:} false; then :
19750bb88ba4Smrg  $as_echo_n "(cached) " >&6
19760bb88ba4Smrgelse
19770bb88ba4Smrg  eval "$3=\$ac_header_compiler"
19780bb88ba4Smrgfi
19790bb88ba4Smrgeval ac_res=\$$3
19800bb88ba4Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19810bb88ba4Smrg$as_echo "$ac_res" >&6; }
19820bb88ba4Smrgfi
19830bb88ba4Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19840bb88ba4Smrg
19850bb88ba4Smrg} # ac_fn_c_check_header_mongrel
19860bb88ba4Smrgcat >config.log <<_ACEOF
19870bb88ba4SmrgThis file contains any messages produced by compilers while
19880bb88ba4Smrgrunning configure, to aid debugging if configure makes a mistake.
19890bb88ba4Smrg
1990acd6767fSmrgIt was created by xf86-video-mga $as_me 1.6.3, which was
1991acd6767fSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
19920bb88ba4Smrg
19930bb88ba4Smrg  $ $0 $@
19940bb88ba4Smrg
19950bb88ba4Smrg_ACEOF
19960bb88ba4Smrgexec 5>>config.log
19970bb88ba4Smrg{
19980bb88ba4Smrgcat <<_ASUNAME
19990bb88ba4Smrg## --------- ##
20000bb88ba4Smrg## Platform. ##
20010bb88ba4Smrg## --------- ##
20020bb88ba4Smrg
20030bb88ba4Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
20040bb88ba4Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
20050bb88ba4Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
20060bb88ba4Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
20070bb88ba4Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
20080bb88ba4Smrg
20090bb88ba4Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
20100bb88ba4Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
20110bb88ba4Smrg
20120bb88ba4Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
20130bb88ba4Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
20140bb88ba4Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
20150bb88ba4Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
20160bb88ba4Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
20170bb88ba4Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
20180bb88ba4Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
20190bb88ba4Smrg
20200bb88ba4Smrg_ASUNAME
20210bb88ba4Smrg
20220bb88ba4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20230bb88ba4Smrgfor as_dir in $PATH
20240bb88ba4Smrgdo
20250bb88ba4Smrg  IFS=$as_save_IFS
20260bb88ba4Smrg  test -z "$as_dir" && as_dir=.
20270bb88ba4Smrg    $as_echo "PATH: $as_dir"
20280bb88ba4Smrg  done
20290bb88ba4SmrgIFS=$as_save_IFS
20300bb88ba4Smrg
20310bb88ba4Smrg} >&5
20320bb88ba4Smrg
20330bb88ba4Smrgcat >&5 <<_ACEOF
20340bb88ba4Smrg
20350bb88ba4Smrg
20360bb88ba4Smrg## ----------- ##
20370bb88ba4Smrg## Core tests. ##
20380bb88ba4Smrg## ----------- ##
20390bb88ba4Smrg
20400bb88ba4Smrg_ACEOF
20410bb88ba4Smrg
20420bb88ba4Smrg
20430bb88ba4Smrg# Keep a trace of the command line.
20440bb88ba4Smrg# Strip out --no-create and --no-recursion so they do not pile up.
20450bb88ba4Smrg# Strip out --silent because we don't want to record it for future runs.
20460bb88ba4Smrg# Also quote any args containing shell meta-characters.
20470bb88ba4Smrg# Make two passes to allow for proper duplicate-argument suppression.
20480bb88ba4Smrgac_configure_args=
20490bb88ba4Smrgac_configure_args0=
20500bb88ba4Smrgac_configure_args1=
20510bb88ba4Smrgac_must_keep_next=false
20520bb88ba4Smrgfor ac_pass in 1 2
20530bb88ba4Smrgdo
20540bb88ba4Smrg  for ac_arg
20550bb88ba4Smrg  do
20560bb88ba4Smrg    case $ac_arg in
20570bb88ba4Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
20580bb88ba4Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20590bb88ba4Smrg    | -silent | --silent | --silen | --sile | --sil)
20600bb88ba4Smrg      continue ;;
20610bb88ba4Smrg    *\'*)
20620bb88ba4Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20630bb88ba4Smrg    esac
20640bb88ba4Smrg    case $ac_pass in
20650bb88ba4Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
20660bb88ba4Smrg    2)
20670bb88ba4Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
20680bb88ba4Smrg      if test $ac_must_keep_next = true; then
20690bb88ba4Smrg	ac_must_keep_next=false # Got value, back to normal.
20700bb88ba4Smrg      else
20710bb88ba4Smrg	case $ac_arg in
20720bb88ba4Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
20730bb88ba4Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
20740bb88ba4Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
20750bb88ba4Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
20760bb88ba4Smrg	    case "$ac_configure_args0 " in
20770bb88ba4Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
20780bb88ba4Smrg	    esac
20790bb88ba4Smrg	    ;;
20800bb88ba4Smrg	  -* ) ac_must_keep_next=true ;;
20810bb88ba4Smrg	esac
20820bb88ba4Smrg      fi
20830bb88ba4Smrg      as_fn_append ac_configure_args " '$ac_arg'"
20840bb88ba4Smrg      ;;
20850bb88ba4Smrg    esac
20860bb88ba4Smrg  done
20870bb88ba4Smrgdone
20880bb88ba4Smrg{ ac_configure_args0=; unset ac_configure_args0;}
20890bb88ba4Smrg{ ac_configure_args1=; unset ac_configure_args1;}
20900bb88ba4Smrg
20910bb88ba4Smrg# When interrupted or exit'd, cleanup temporary files, and complete
20920bb88ba4Smrg# config.log.  We remove comments because anyway the quotes in there
20930bb88ba4Smrg# would cause problems or look ugly.
20940bb88ba4Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
20950bb88ba4Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
20960bb88ba4Smrgtrap 'exit_status=$?
20970bb88ba4Smrg  # Save into config.log some information that might help in debugging.
20980bb88ba4Smrg  {
20990bb88ba4Smrg    echo
21000bb88ba4Smrg
21010bb88ba4Smrg    $as_echo "## ---------------- ##
21020bb88ba4Smrg## Cache variables. ##
21030bb88ba4Smrg## ---------------- ##"
21040bb88ba4Smrg    echo
21050bb88ba4Smrg    # The following way of writing the cache mishandles newlines in values,
21060bb88ba4Smrg(
21070bb88ba4Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
21080bb88ba4Smrg    eval ac_val=\$$ac_var
21090bb88ba4Smrg    case $ac_val in #(
21100bb88ba4Smrg    *${as_nl}*)
21110bb88ba4Smrg      case $ac_var in #(
21120bb88ba4Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21130bb88ba4Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21140bb88ba4Smrg      esac
21150bb88ba4Smrg      case $ac_var in #(
21160bb88ba4Smrg      _ | IFS | as_nl) ;; #(
21170bb88ba4Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21180bb88ba4Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
21190bb88ba4Smrg      esac ;;
21200bb88ba4Smrg    esac
21210bb88ba4Smrg  done
21220bb88ba4Smrg  (set) 2>&1 |
21230bb88ba4Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
21240bb88ba4Smrg    *${as_nl}ac_space=\ *)
21250bb88ba4Smrg      sed -n \
21260bb88ba4Smrg	"s/'\''/'\''\\\\'\'''\''/g;
21270bb88ba4Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
21280bb88ba4Smrg      ;; #(
21290bb88ba4Smrg    *)
21300bb88ba4Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21310bb88ba4Smrg      ;;
21320bb88ba4Smrg    esac |
21330bb88ba4Smrg    sort
21340bb88ba4Smrg)
21350bb88ba4Smrg    echo
21360bb88ba4Smrg
21370bb88ba4Smrg    $as_echo "## ----------------- ##
21380bb88ba4Smrg## Output variables. ##
21390bb88ba4Smrg## ----------------- ##"
21400bb88ba4Smrg    echo
21410bb88ba4Smrg    for ac_var in $ac_subst_vars
21420bb88ba4Smrg    do
21430bb88ba4Smrg      eval ac_val=\$$ac_var
21440bb88ba4Smrg      case $ac_val in
21450bb88ba4Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
21460bb88ba4Smrg      esac
21470bb88ba4Smrg      $as_echo "$ac_var='\''$ac_val'\''"
21480bb88ba4Smrg    done | sort
21490bb88ba4Smrg    echo
21500bb88ba4Smrg
21510bb88ba4Smrg    if test -n "$ac_subst_files"; then
21520bb88ba4Smrg      $as_echo "## ------------------- ##
21530bb88ba4Smrg## File substitutions. ##
21540bb88ba4Smrg## ------------------- ##"
21550bb88ba4Smrg      echo
21560bb88ba4Smrg      for ac_var in $ac_subst_files
21570bb88ba4Smrg      do
21580bb88ba4Smrg	eval ac_val=\$$ac_var
21590bb88ba4Smrg	case $ac_val in
21600bb88ba4Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
21610bb88ba4Smrg	esac
21620bb88ba4Smrg	$as_echo "$ac_var='\''$ac_val'\''"
21630bb88ba4Smrg      done | sort
21640bb88ba4Smrg      echo
21650bb88ba4Smrg    fi
21660bb88ba4Smrg
21670bb88ba4Smrg    if test -s confdefs.h; then
21680bb88ba4Smrg      $as_echo "## ----------- ##
21690bb88ba4Smrg## confdefs.h. ##
21700bb88ba4Smrg## ----------- ##"
21710bb88ba4Smrg      echo
21720bb88ba4Smrg      cat confdefs.h
21730bb88ba4Smrg      echo
21740bb88ba4Smrg    fi
21750bb88ba4Smrg    test "$ac_signal" != 0 &&
21760bb88ba4Smrg      $as_echo "$as_me: caught signal $ac_signal"
21770bb88ba4Smrg    $as_echo "$as_me: exit $exit_status"
21780bb88ba4Smrg  } >&5
21790bb88ba4Smrg  rm -f core *.core core.conftest.* &&
21800bb88ba4Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
21810bb88ba4Smrg    exit $exit_status
21820bb88ba4Smrg' 0
21830bb88ba4Smrgfor ac_signal in 1 2 13 15; do
21840bb88ba4Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
21850bb88ba4Smrgdone
21860bb88ba4Smrgac_signal=0
21870bb88ba4Smrg
21880bb88ba4Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
21890bb88ba4Smrgrm -f -r conftest* confdefs.h
21900bb88ba4Smrg
21910bb88ba4Smrg$as_echo "/* confdefs.h */" > confdefs.h
21920bb88ba4Smrg
21930bb88ba4Smrg# Predefined preprocessor variables.
21940bb88ba4Smrg
21950bb88ba4Smrgcat >>confdefs.h <<_ACEOF
21960bb88ba4Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
21970bb88ba4Smrg_ACEOF
21980bb88ba4Smrg
21990bb88ba4Smrgcat >>confdefs.h <<_ACEOF
22000bb88ba4Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
22010bb88ba4Smrg_ACEOF
22020bb88ba4Smrg
22030bb88ba4Smrgcat >>confdefs.h <<_ACEOF
22040bb88ba4Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
22050bb88ba4Smrg_ACEOF
22060bb88ba4Smrg
22070bb88ba4Smrgcat >>confdefs.h <<_ACEOF
22080bb88ba4Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
22090bb88ba4Smrg_ACEOF
22100bb88ba4Smrg
22110bb88ba4Smrgcat >>confdefs.h <<_ACEOF
22120bb88ba4Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
22130bb88ba4Smrg_ACEOF
22140bb88ba4Smrg
22150bb88ba4Smrgcat >>confdefs.h <<_ACEOF
22160bb88ba4Smrg#define PACKAGE_URL "$PACKAGE_URL"
22170bb88ba4Smrg_ACEOF
22180bb88ba4Smrg
22190bb88ba4Smrg
22200bb88ba4Smrg# Let the site file select an alternate cache file if it wants to.
22210bb88ba4Smrg# Prefer an explicitly selected file to automatically selected ones.
22220bb88ba4Smrgac_site_file1=NONE
22230bb88ba4Smrgac_site_file2=NONE
22240bb88ba4Smrgif test -n "$CONFIG_SITE"; then
22250bb88ba4Smrg  # We do not want a PATH search for config.site.
22260bb88ba4Smrg  case $CONFIG_SITE in #((
22270bb88ba4Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
22280bb88ba4Smrg    */*) ac_site_file1=$CONFIG_SITE;;
22290bb88ba4Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
22300bb88ba4Smrg  esac
22310bb88ba4Smrgelif test "x$prefix" != xNONE; then
22320bb88ba4Smrg  ac_site_file1=$prefix/share/config.site
22330bb88ba4Smrg  ac_site_file2=$prefix/etc/config.site
22340bb88ba4Smrgelse
22350bb88ba4Smrg  ac_site_file1=$ac_default_prefix/share/config.site
22360bb88ba4Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
22370bb88ba4Smrgfi
22380bb88ba4Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
22390bb88ba4Smrgdo
22400bb88ba4Smrg  test "x$ac_site_file" = xNONE && continue
22410bb88ba4Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
22420bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
22430bb88ba4Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
22440bb88ba4Smrg    sed 's/^/| /' "$ac_site_file" >&5
22450bb88ba4Smrg    . "$ac_site_file" \
22460bb88ba4Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22470bb88ba4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22480bb88ba4Smrgas_fn_error $? "failed to load site script $ac_site_file
22490bb88ba4SmrgSee \`config.log' for more details" "$LINENO" 5; }
22500bb88ba4Smrg  fi
22510bb88ba4Smrgdone
22520bb88ba4Smrg
22530bb88ba4Smrgif test -r "$cache_file"; then
22540bb88ba4Smrg  # Some versions of bash will fail to source /dev/null (special files
22550bb88ba4Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
22560bb88ba4Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
22570bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
22580bb88ba4Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
22590bb88ba4Smrg    case $cache_file in
22600bb88ba4Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
22610bb88ba4Smrg      *)                      . "./$cache_file";;
22620bb88ba4Smrg    esac
22630bb88ba4Smrg  fi
22640bb88ba4Smrgelse
22650bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
22660bb88ba4Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
22670bb88ba4Smrg  >$cache_file
22680bb88ba4Smrgfi
22690bb88ba4Smrg
22700bb88ba4Smrg# Check that the precious variables saved in the cache have kept the same
22710bb88ba4Smrg# value.
22720bb88ba4Smrgac_cache_corrupted=false
22730bb88ba4Smrgfor ac_var in $ac_precious_vars; do
22740bb88ba4Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
22750bb88ba4Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
22760bb88ba4Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
22770bb88ba4Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
22780bb88ba4Smrg  case $ac_old_set,$ac_new_set in
22790bb88ba4Smrg    set,)
22800bb88ba4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
22810bb88ba4Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
22820bb88ba4Smrg      ac_cache_corrupted=: ;;
22830bb88ba4Smrg    ,set)
22840bb88ba4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
22850bb88ba4Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
22860bb88ba4Smrg      ac_cache_corrupted=: ;;
22870bb88ba4Smrg    ,);;
22880bb88ba4Smrg    *)
22890bb88ba4Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
22900bb88ba4Smrg	# differences in whitespace do not lead to failure.
22910bb88ba4Smrg	ac_old_val_w=`echo x $ac_old_val`
22920bb88ba4Smrg	ac_new_val_w=`echo x $ac_new_val`
22930bb88ba4Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
22940bb88ba4Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
22950bb88ba4Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
22960bb88ba4Smrg	  ac_cache_corrupted=:
22970bb88ba4Smrg	else
22980bb88ba4Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
22990bb88ba4Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
23000bb88ba4Smrg	  eval $ac_var=\$ac_old_val
23010bb88ba4Smrg	fi
23020bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
23030bb88ba4Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
23040bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
23050bb88ba4Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
23060bb88ba4Smrg      fi;;
23070bb88ba4Smrg  esac
23080bb88ba4Smrg  # Pass precious variables to config.status.
23090bb88ba4Smrg  if test "$ac_new_set" = set; then
23100bb88ba4Smrg    case $ac_new_val in
23110bb88ba4Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
23120bb88ba4Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
23130bb88ba4Smrg    esac
23140bb88ba4Smrg    case " $ac_configure_args " in
23150bb88ba4Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
23160bb88ba4Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
23170bb88ba4Smrg    esac
23180bb88ba4Smrg  fi
23190bb88ba4Smrgdone
23200bb88ba4Smrgif $ac_cache_corrupted; then
23210bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23220bb88ba4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23230bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
23240bb88ba4Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
23250bb88ba4Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
23260bb88ba4Smrgfi
23270bb88ba4Smrg## -------------------- ##
23280bb88ba4Smrg## Main body of script. ##
23290bb88ba4Smrg## -------------------- ##
23300bb88ba4Smrg
23310bb88ba4Smrgac_ext=c
23320bb88ba4Smrgac_cpp='$CPP $CPPFLAGS'
23330bb88ba4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23340bb88ba4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23350bb88ba4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
23360bb88ba4Smrg
23370bb88ba4Smrg
23380bb88ba4Smrg
23390bb88ba4Smrgac_config_headers="$ac_config_headers config.h"
23400bb88ba4Smrg
23410bb88ba4Smrg
23420bb88ba4Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
23430bb88ba4Smrg
23440bb88ba4Smrg
23450bb88ba4Smrg
23460bb88ba4Smrg
23470bb88ba4Smrg
23480bb88ba4Smrg
23490bb88ba4Smrg
23500bb88ba4Smrg
23510bb88ba4Smrg
23520bb88ba4Smrg
23530bb88ba4Smrg
23540bb88ba4Smrgac_aux_dir=
23550bb88ba4Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
23560bb88ba4Smrg  if test -f "$ac_dir/install-sh"; then
23570bb88ba4Smrg    ac_aux_dir=$ac_dir
23580bb88ba4Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
23590bb88ba4Smrg    break
23600bb88ba4Smrg  elif test -f "$ac_dir/install.sh"; then
23610bb88ba4Smrg    ac_aux_dir=$ac_dir
23620bb88ba4Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
23630bb88ba4Smrg    break
23640bb88ba4Smrg  elif test -f "$ac_dir/shtool"; then
23650bb88ba4Smrg    ac_aux_dir=$ac_dir
23660bb88ba4Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
23670bb88ba4Smrg    break
23680bb88ba4Smrg  fi
23690bb88ba4Smrgdone
23700bb88ba4Smrgif test -z "$ac_aux_dir"; then
23710bb88ba4Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
23720bb88ba4Smrgfi
23730bb88ba4Smrg
23740bb88ba4Smrg# These three variables are undocumented and unsupported,
23750bb88ba4Smrg# and are intended to be withdrawn in a future Autoconf release.
23760bb88ba4Smrg# They can cause serious problems if a builder's source tree is in a directory
23770bb88ba4Smrg# whose full name contains unusual characters.
23780bb88ba4Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
23790bb88ba4Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
23800bb88ba4Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
23810bb88ba4Smrg
23820bb88ba4Smrg
23830bb88ba4Smrg# Find a good install program.  We prefer a C program (faster),
23840bb88ba4Smrg# so one script is as good as another.  But avoid the broken or
23850bb88ba4Smrg# incompatible versions:
23860bb88ba4Smrg# SysV /etc/install, /usr/sbin/install
23870bb88ba4Smrg# SunOS /usr/etc/install
23880bb88ba4Smrg# IRIX /sbin/install
23890bb88ba4Smrg# AIX /bin/install
23900bb88ba4Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
23910bb88ba4Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
23920bb88ba4Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
23930bb88ba4Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
23940bb88ba4Smrg# OS/2's system install, which has a completely different semantic
23950bb88ba4Smrg# ./install, which can be erroneously created by make from ./install.sh.
23960bb88ba4Smrg# Reject install programs that cannot install multiple files.
23970bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
23980bb88ba4Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
23990bb88ba4Smrgif test -z "$INSTALL"; then
24000bb88ba4Smrgif ${ac_cv_path_install+:} false; then :
24010bb88ba4Smrg  $as_echo_n "(cached) " >&6
24020bb88ba4Smrgelse
24030bb88ba4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24040bb88ba4Smrgfor as_dir in $PATH
24050bb88ba4Smrgdo
24060bb88ba4Smrg  IFS=$as_save_IFS
24070bb88ba4Smrg  test -z "$as_dir" && as_dir=.
24080bb88ba4Smrg    # Account for people who put trailing slashes in PATH elements.
24090bb88ba4Smrgcase $as_dir/ in #((
24100bb88ba4Smrg  ./ | .// | /[cC]/* | \
24110bb88ba4Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
24120bb88ba4Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
24130bb88ba4Smrg  /usr/ucb/* ) ;;
24140bb88ba4Smrg  *)
24150bb88ba4Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
24160bb88ba4Smrg    # Don't use installbsd from OSF since it installs stuff as root
24170bb88ba4Smrg    # by default.
24180bb88ba4Smrg    for ac_prog in ginstall scoinst install; do
24190bb88ba4Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2420acd6767fSmrg	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
24210bb88ba4Smrg	  if test $ac_prog = install &&
24220bb88ba4Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24230bb88ba4Smrg	    # AIX install.  It has an incompatible calling convention.
24240bb88ba4Smrg	    :
24250bb88ba4Smrg	  elif test $ac_prog = install &&
24260bb88ba4Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24270bb88ba4Smrg	    # program-specific install script used by HP pwplus--don't use.
24280bb88ba4Smrg	    :
24290bb88ba4Smrg	  else
24300bb88ba4Smrg	    rm -rf conftest.one conftest.two conftest.dir
24310bb88ba4Smrg	    echo one > conftest.one
24320bb88ba4Smrg	    echo two > conftest.two
24330bb88ba4Smrg	    mkdir conftest.dir
24340bb88ba4Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
24350bb88ba4Smrg	      test -s conftest.one && test -s conftest.two &&
24360bb88ba4Smrg	      test -s conftest.dir/conftest.one &&
24370bb88ba4Smrg	      test -s conftest.dir/conftest.two
24380bb88ba4Smrg	    then
24390bb88ba4Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
24400bb88ba4Smrg	      break 3
24410bb88ba4Smrg	    fi
24420bb88ba4Smrg	  fi
24430bb88ba4Smrg	fi
24440bb88ba4Smrg      done
24450bb88ba4Smrg    done
24460bb88ba4Smrg    ;;
24470bb88ba4Smrgesac
24480bb88ba4Smrg
24490bb88ba4Smrg  done
24500bb88ba4SmrgIFS=$as_save_IFS
24510bb88ba4Smrg
24520bb88ba4Smrgrm -rf conftest.one conftest.two conftest.dir
24530bb88ba4Smrg
24540bb88ba4Smrgfi
24550bb88ba4Smrg  if test "${ac_cv_path_install+set}" = set; then
24560bb88ba4Smrg    INSTALL=$ac_cv_path_install
24570bb88ba4Smrg  else
24580bb88ba4Smrg    # As a last resort, use the slow shell script.  Don't cache a
24590bb88ba4Smrg    # value for INSTALL within a source directory, because that will
24600bb88ba4Smrg    # break other packages using the cache if that directory is
24610bb88ba4Smrg    # removed, or if the value is a relative name.
24620bb88ba4Smrg    INSTALL=$ac_install_sh
24630bb88ba4Smrg  fi
24640bb88ba4Smrgfi
24650bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
24660bb88ba4Smrg$as_echo "$INSTALL" >&6; }
24670bb88ba4Smrg
24680bb88ba4Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
24690bb88ba4Smrg# It thinks the first close brace ends the variable substitution.
24700bb88ba4Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
24710bb88ba4Smrg
24720bb88ba4Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
24730bb88ba4Smrg
24740bb88ba4Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
24750bb88ba4Smrg
24760bb88ba4Smrgac_ext=c
24770bb88ba4Smrgac_cpp='$CPP $CPPFLAGS'
24780bb88ba4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24790bb88ba4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24800bb88ba4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
24810bb88ba4Smrgif test -n "$ac_tool_prefix"; then
24820bb88ba4Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
24830bb88ba4Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
24840bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24850bb88ba4Smrg$as_echo_n "checking for $ac_word... " >&6; }
24860bb88ba4Smrgif ${ac_cv_prog_CC+:} false; then :
24870bb88ba4Smrg  $as_echo_n "(cached) " >&6
24880bb88ba4Smrgelse
24890bb88ba4Smrg  if test -n "$CC"; then
24900bb88ba4Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
24910bb88ba4Smrgelse
24920bb88ba4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24930bb88ba4Smrgfor as_dir in $PATH
24940bb88ba4Smrgdo
24950bb88ba4Smrg  IFS=$as_save_IFS
24960bb88ba4Smrg  test -z "$as_dir" && as_dir=.
24970bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2498acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24990bb88ba4Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
25000bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25010bb88ba4Smrg    break 2
25020bb88ba4Smrg  fi
25030bb88ba4Smrgdone
25040bb88ba4Smrg  done
25050bb88ba4SmrgIFS=$as_save_IFS
25060bb88ba4Smrg
25070bb88ba4Smrgfi
25080bb88ba4Smrgfi
25090bb88ba4SmrgCC=$ac_cv_prog_CC
25100bb88ba4Smrgif test -n "$CC"; then
25110bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
25120bb88ba4Smrg$as_echo "$CC" >&6; }
25130bb88ba4Smrgelse
25140bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25150bb88ba4Smrg$as_echo "no" >&6; }
25160bb88ba4Smrgfi
25170bb88ba4Smrg
25180bb88ba4Smrg
25190bb88ba4Smrgfi
25200bb88ba4Smrgif test -z "$ac_cv_prog_CC"; then
25210bb88ba4Smrg  ac_ct_CC=$CC
25220bb88ba4Smrg  # Extract the first word of "gcc", so it can be a program name with args.
25230bb88ba4Smrgset dummy gcc; ac_word=$2
25240bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25250bb88ba4Smrg$as_echo_n "checking for $ac_word... " >&6; }
25260bb88ba4Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
25270bb88ba4Smrg  $as_echo_n "(cached) " >&6
25280bb88ba4Smrgelse
25290bb88ba4Smrg  if test -n "$ac_ct_CC"; then
25300bb88ba4Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
25310bb88ba4Smrgelse
25320bb88ba4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25330bb88ba4Smrgfor as_dir in $PATH
25340bb88ba4Smrgdo
25350bb88ba4Smrg  IFS=$as_save_IFS
25360bb88ba4Smrg  test -z "$as_dir" && as_dir=.
25370bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2538acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25390bb88ba4Smrg    ac_cv_prog_ac_ct_CC="gcc"
25400bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25410bb88ba4Smrg    break 2
25420bb88ba4Smrg  fi
25430bb88ba4Smrgdone
25440bb88ba4Smrg  done
25450bb88ba4SmrgIFS=$as_save_IFS
25460bb88ba4Smrg
25470bb88ba4Smrgfi
25480bb88ba4Smrgfi
25490bb88ba4Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
25500bb88ba4Smrgif test -n "$ac_ct_CC"; then
25510bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
25520bb88ba4Smrg$as_echo "$ac_ct_CC" >&6; }
25530bb88ba4Smrgelse
25540bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25550bb88ba4Smrg$as_echo "no" >&6; }
25560bb88ba4Smrgfi
25570bb88ba4Smrg
25580bb88ba4Smrg  if test "x$ac_ct_CC" = x; then
25590bb88ba4Smrg    CC=""
25600bb88ba4Smrg  else
25610bb88ba4Smrg    case $cross_compiling:$ac_tool_warned in
25620bb88ba4Smrgyes:)
25630bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25640bb88ba4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25650bb88ba4Smrgac_tool_warned=yes ;;
25660bb88ba4Smrgesac
25670bb88ba4Smrg    CC=$ac_ct_CC
25680bb88ba4Smrg  fi
25690bb88ba4Smrgelse
25700bb88ba4Smrg  CC="$ac_cv_prog_CC"
25710bb88ba4Smrgfi
25720bb88ba4Smrg
25730bb88ba4Smrgif test -z "$CC"; then
25740bb88ba4Smrg          if test -n "$ac_tool_prefix"; then
25750bb88ba4Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
25760bb88ba4Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
25770bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25780bb88ba4Smrg$as_echo_n "checking for $ac_word... " >&6; }
25790bb88ba4Smrgif ${ac_cv_prog_CC+:} false; then :
25800bb88ba4Smrg  $as_echo_n "(cached) " >&6
25810bb88ba4Smrgelse
25820bb88ba4Smrg  if test -n "$CC"; then
25830bb88ba4Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
25840bb88ba4Smrgelse
25850bb88ba4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25860bb88ba4Smrgfor as_dir in $PATH
25870bb88ba4Smrgdo
25880bb88ba4Smrg  IFS=$as_save_IFS
25890bb88ba4Smrg  test -z "$as_dir" && as_dir=.
25900bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2591acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25920bb88ba4Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
25930bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25940bb88ba4Smrg    break 2
25950bb88ba4Smrg  fi
25960bb88ba4Smrgdone
25970bb88ba4Smrg  done
25980bb88ba4SmrgIFS=$as_save_IFS
25990bb88ba4Smrg
26000bb88ba4Smrgfi
26010bb88ba4Smrgfi
26020bb88ba4SmrgCC=$ac_cv_prog_CC
26030bb88ba4Smrgif test -n "$CC"; then
26040bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
26050bb88ba4Smrg$as_echo "$CC" >&6; }
26060bb88ba4Smrgelse
26070bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26080bb88ba4Smrg$as_echo "no" >&6; }
26090bb88ba4Smrgfi
26100bb88ba4Smrg
26110bb88ba4Smrg
26120bb88ba4Smrg  fi
26130bb88ba4Smrgfi
26140bb88ba4Smrgif test -z "$CC"; then
26150bb88ba4Smrg  # Extract the first word of "cc", so it can be a program name with args.
26160bb88ba4Smrgset dummy cc; ac_word=$2
26170bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26180bb88ba4Smrg$as_echo_n "checking for $ac_word... " >&6; }
26190bb88ba4Smrgif ${ac_cv_prog_CC+:} false; then :
26200bb88ba4Smrg  $as_echo_n "(cached) " >&6
26210bb88ba4Smrgelse
26220bb88ba4Smrg  if test -n "$CC"; then
26230bb88ba4Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
26240bb88ba4Smrgelse
26250bb88ba4Smrg  ac_prog_rejected=no
26260bb88ba4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26270bb88ba4Smrgfor as_dir in $PATH
26280bb88ba4Smrgdo
26290bb88ba4Smrg  IFS=$as_save_IFS
26300bb88ba4Smrg  test -z "$as_dir" && as_dir=.
26310bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2632acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26330bb88ba4Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
26340bb88ba4Smrg       ac_prog_rejected=yes
26350bb88ba4Smrg       continue
26360bb88ba4Smrg     fi
26370bb88ba4Smrg    ac_cv_prog_CC="cc"
26380bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26390bb88ba4Smrg    break 2
26400bb88ba4Smrg  fi
26410bb88ba4Smrgdone
26420bb88ba4Smrg  done
26430bb88ba4SmrgIFS=$as_save_IFS
26440bb88ba4Smrg
26450bb88ba4Smrgif test $ac_prog_rejected = yes; then
26460bb88ba4Smrg  # We found a bogon in the path, so make sure we never use it.
26470bb88ba4Smrg  set dummy $ac_cv_prog_CC
26480bb88ba4Smrg  shift
26490bb88ba4Smrg  if test $# != 0; then
26500bb88ba4Smrg    # We chose a different compiler from the bogus one.
26510bb88ba4Smrg    # However, it has the same basename, so the bogon will be chosen
26520bb88ba4Smrg    # first if we set CC to just the basename; use the full file name.
26530bb88ba4Smrg    shift
26540bb88ba4Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
26550bb88ba4Smrg  fi
26560bb88ba4Smrgfi
26570bb88ba4Smrgfi
26580bb88ba4Smrgfi
26590bb88ba4SmrgCC=$ac_cv_prog_CC
26600bb88ba4Smrgif test -n "$CC"; then
26610bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
26620bb88ba4Smrg$as_echo "$CC" >&6; }
26630bb88ba4Smrgelse
26640bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26650bb88ba4Smrg$as_echo "no" >&6; }
26660bb88ba4Smrgfi
26670bb88ba4Smrg
26680bb88ba4Smrg
26690bb88ba4Smrgfi
26700bb88ba4Smrgif test -z "$CC"; then
26710bb88ba4Smrg  if test -n "$ac_tool_prefix"; then
26720bb88ba4Smrg  for ac_prog in cl.exe
26730bb88ba4Smrg  do
26740bb88ba4Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26750bb88ba4Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
26760bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26770bb88ba4Smrg$as_echo_n "checking for $ac_word... " >&6; }
26780bb88ba4Smrgif ${ac_cv_prog_CC+:} false; then :
26790bb88ba4Smrg  $as_echo_n "(cached) " >&6
26800bb88ba4Smrgelse
26810bb88ba4Smrg  if test -n "$CC"; then
26820bb88ba4Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
26830bb88ba4Smrgelse
26840bb88ba4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26850bb88ba4Smrgfor as_dir in $PATH
26860bb88ba4Smrgdo
26870bb88ba4Smrg  IFS=$as_save_IFS
26880bb88ba4Smrg  test -z "$as_dir" && as_dir=.
26890bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2690acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26910bb88ba4Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
26920bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26930bb88ba4Smrg    break 2
26940bb88ba4Smrg  fi
26950bb88ba4Smrgdone
26960bb88ba4Smrg  done
26970bb88ba4SmrgIFS=$as_save_IFS
26980bb88ba4Smrg
26990bb88ba4Smrgfi
27000bb88ba4Smrgfi
27010bb88ba4SmrgCC=$ac_cv_prog_CC
27020bb88ba4Smrgif test -n "$CC"; then
27030bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
27040bb88ba4Smrg$as_echo "$CC" >&6; }
27050bb88ba4Smrgelse
27060bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27070bb88ba4Smrg$as_echo "no" >&6; }
27080bb88ba4Smrgfi
27090bb88ba4Smrg
27100bb88ba4Smrg
27110bb88ba4Smrg    test -n "$CC" && break
27120bb88ba4Smrg  done
27130bb88ba4Smrgfi
27140bb88ba4Smrgif test -z "$CC"; then
27150bb88ba4Smrg  ac_ct_CC=$CC
27160bb88ba4Smrg  for ac_prog in cl.exe
27170bb88ba4Smrgdo
27180bb88ba4Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
27190bb88ba4Smrgset dummy $ac_prog; ac_word=$2
27200bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27210bb88ba4Smrg$as_echo_n "checking for $ac_word... " >&6; }
27220bb88ba4Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
27230bb88ba4Smrg  $as_echo_n "(cached) " >&6
27240bb88ba4Smrgelse
27250bb88ba4Smrg  if test -n "$ac_ct_CC"; then
27260bb88ba4Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27270bb88ba4Smrgelse
27280bb88ba4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27290bb88ba4Smrgfor as_dir in $PATH
27300bb88ba4Smrgdo
27310bb88ba4Smrg  IFS=$as_save_IFS
27320bb88ba4Smrg  test -z "$as_dir" && as_dir=.
27330bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2734acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27350bb88ba4Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
27360bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27370bb88ba4Smrg    break 2
27380bb88ba4Smrg  fi
27390bb88ba4Smrgdone
27400bb88ba4Smrg  done
27410bb88ba4SmrgIFS=$as_save_IFS
27420bb88ba4Smrg
27430bb88ba4Smrgfi
27440bb88ba4Smrgfi
27450bb88ba4Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
27460bb88ba4Smrgif test -n "$ac_ct_CC"; then
27470bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
27480bb88ba4Smrg$as_echo "$ac_ct_CC" >&6; }
27490bb88ba4Smrgelse
27500bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27510bb88ba4Smrg$as_echo "no" >&6; }
27520bb88ba4Smrgfi
27530bb88ba4Smrg
27540bb88ba4Smrg
27550bb88ba4Smrg  test -n "$ac_ct_CC" && break
27560bb88ba4Smrgdone
27570bb88ba4Smrg
27580bb88ba4Smrg  if test "x$ac_ct_CC" = x; then
27590bb88ba4Smrg    CC=""
27600bb88ba4Smrg  else
27610bb88ba4Smrg    case $cross_compiling:$ac_tool_warned in
27620bb88ba4Smrgyes:)
27630bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27640bb88ba4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27650bb88ba4Smrgac_tool_warned=yes ;;
27660bb88ba4Smrgesac
27670bb88ba4Smrg    CC=$ac_ct_CC
27680bb88ba4Smrg  fi
27690bb88ba4Smrgfi
27700bb88ba4Smrg
27710bb88ba4Smrgfi
27720bb88ba4Smrg
27730bb88ba4Smrg
27740bb88ba4Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27750bb88ba4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27760bb88ba4Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
27770bb88ba4SmrgSee \`config.log' for more details" "$LINENO" 5; }
27780bb88ba4Smrg
27790bb88ba4Smrg# Provide some information about the compiler.
27800bb88ba4Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
27810bb88ba4Smrgset X $ac_compile
27820bb88ba4Smrgac_compiler=$2
27830bb88ba4Smrgfor ac_option in --version -v -V -qversion; do
27840bb88ba4Smrg  { { ac_try="$ac_compiler $ac_option >&5"
27850bb88ba4Smrgcase "(($ac_try" in
27860bb88ba4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870bb88ba4Smrg  *) ac_try_echo=$ac_try;;
27880bb88ba4Smrgesac
27890bb88ba4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27900bb88ba4Smrg$as_echo "$ac_try_echo"; } >&5
27910bb88ba4Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
27920bb88ba4Smrg  ac_status=$?
27930bb88ba4Smrg  if test -s conftest.err; then
27940bb88ba4Smrg    sed '10a\
27950bb88ba4Smrg... rest of stderr output deleted ...
27960bb88ba4Smrg         10q' conftest.err >conftest.er1
27970bb88ba4Smrg    cat conftest.er1 >&5
27980bb88ba4Smrg  fi
27990bb88ba4Smrg  rm -f conftest.er1 conftest.err
28000bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28010bb88ba4Smrg  test $ac_status = 0; }
28020bb88ba4Smrgdone
28030bb88ba4Smrg
28040bb88ba4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
28050bb88ba4Smrg/* end confdefs.h.  */
28060bb88ba4Smrg
28070bb88ba4Smrgint
28080bb88ba4Smrgmain ()
28090bb88ba4Smrg{
28100bb88ba4Smrg
28110bb88ba4Smrg  ;
28120bb88ba4Smrg  return 0;
28130bb88ba4Smrg}
28140bb88ba4Smrg_ACEOF
28150bb88ba4Smrgac_clean_files_save=$ac_clean_files
28160bb88ba4Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
28170bb88ba4Smrg# Try to create an executable without -o first, disregard a.out.
28180bb88ba4Smrg# It will help us diagnose broken compilers, and finding out an intuition
28190bb88ba4Smrg# of exeext.
28200bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
28210bb88ba4Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
28220bb88ba4Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
28230bb88ba4Smrg
28240bb88ba4Smrg# The possible output files:
28250bb88ba4Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
28260bb88ba4Smrg
28270bb88ba4Smrgac_rmfiles=
28280bb88ba4Smrgfor ac_file in $ac_files
28290bb88ba4Smrgdo
28300bb88ba4Smrg  case $ac_file in
28310bb88ba4Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
28320bb88ba4Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
28330bb88ba4Smrg  esac
28340bb88ba4Smrgdone
28350bb88ba4Smrgrm -f $ac_rmfiles
28360bb88ba4Smrg
28370bb88ba4Smrgif { { ac_try="$ac_link_default"
28380bb88ba4Smrgcase "(($ac_try" in
28390bb88ba4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28400bb88ba4Smrg  *) ac_try_echo=$ac_try;;
28410bb88ba4Smrgesac
28420bb88ba4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28430bb88ba4Smrg$as_echo "$ac_try_echo"; } >&5
28440bb88ba4Smrg  (eval "$ac_link_default") 2>&5
28450bb88ba4Smrg  ac_status=$?
28460bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28470bb88ba4Smrg  test $ac_status = 0; }; then :
28480bb88ba4Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
28490bb88ba4Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
28500bb88ba4Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
28510bb88ba4Smrg# so that the user can short-circuit this test for compilers unknown to
28520bb88ba4Smrg# Autoconf.
28530bb88ba4Smrgfor ac_file in $ac_files ''
28540bb88ba4Smrgdo
28550bb88ba4Smrg  test -f "$ac_file" || continue
28560bb88ba4Smrg  case $ac_file in
28570bb88ba4Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
28580bb88ba4Smrg	;;
28590bb88ba4Smrg    [ab].out )
28600bb88ba4Smrg	# We found the default executable, but exeext='' is most
28610bb88ba4Smrg	# certainly right.
28620bb88ba4Smrg	break;;
28630bb88ba4Smrg    *.* )
28640bb88ba4Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
28650bb88ba4Smrg	then :; else
28660bb88ba4Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28670bb88ba4Smrg	fi
28680bb88ba4Smrg	# We set ac_cv_exeext here because the later test for it is not
28690bb88ba4Smrg	# safe: cross compilers may not add the suffix if given an `-o'
28700bb88ba4Smrg	# argument, so we may need to know it at that point already.
28710bb88ba4Smrg	# Even if this section looks crufty: it has the advantage of
28720bb88ba4Smrg	# actually working.
28730bb88ba4Smrg	break;;
28740bb88ba4Smrg    * )
28750bb88ba4Smrg	break;;
28760bb88ba4Smrg  esac
28770bb88ba4Smrgdone
28780bb88ba4Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
28790bb88ba4Smrg
28800bb88ba4Smrgelse
28810bb88ba4Smrg  ac_file=''
28820bb88ba4Smrgfi
28830bb88ba4Smrgif test -z "$ac_file"; then :
28840bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28850bb88ba4Smrg$as_echo "no" >&6; }
28860bb88ba4Smrg$as_echo "$as_me: failed program was:" >&5
28870bb88ba4Smrgsed 's/^/| /' conftest.$ac_ext >&5
28880bb88ba4Smrg
28890bb88ba4Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28900bb88ba4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28910bb88ba4Smrgas_fn_error 77 "C compiler cannot create executables
28920bb88ba4SmrgSee \`config.log' for more details" "$LINENO" 5; }
28930bb88ba4Smrgelse
28940bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28950bb88ba4Smrg$as_echo "yes" >&6; }
28960bb88ba4Smrgfi
28970bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
28980bb88ba4Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
28990bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
29000bb88ba4Smrg$as_echo "$ac_file" >&6; }
29010bb88ba4Smrgac_exeext=$ac_cv_exeext
29020bb88ba4Smrg
29030bb88ba4Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
29040bb88ba4Smrgac_clean_files=$ac_clean_files_save
29050bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
29060bb88ba4Smrg$as_echo_n "checking for suffix of executables... " >&6; }
29070bb88ba4Smrgif { { ac_try="$ac_link"
29080bb88ba4Smrgcase "(($ac_try" in
29090bb88ba4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29100bb88ba4Smrg  *) ac_try_echo=$ac_try;;
29110bb88ba4Smrgesac
29120bb88ba4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29130bb88ba4Smrg$as_echo "$ac_try_echo"; } >&5
29140bb88ba4Smrg  (eval "$ac_link") 2>&5
29150bb88ba4Smrg  ac_status=$?
29160bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29170bb88ba4Smrg  test $ac_status = 0; }; then :
29180bb88ba4Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
29190bb88ba4Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
29200bb88ba4Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
29210bb88ba4Smrg# `rm'.
29220bb88ba4Smrgfor ac_file in conftest.exe conftest conftest.*; do
29230bb88ba4Smrg  test -f "$ac_file" || continue
29240bb88ba4Smrg  case $ac_file in
29250bb88ba4Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
29260bb88ba4Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
29270bb88ba4Smrg	  break;;
29280bb88ba4Smrg    * ) break;;
29290bb88ba4Smrg  esac
29300bb88ba4Smrgdone
29310bb88ba4Smrgelse
29320bb88ba4Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29330bb88ba4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29340bb88ba4Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
29350bb88ba4SmrgSee \`config.log' for more details" "$LINENO" 5; }
29360bb88ba4Smrgfi
29370bb88ba4Smrgrm -f conftest conftest$ac_cv_exeext
29380bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
29390bb88ba4Smrg$as_echo "$ac_cv_exeext" >&6; }
29400bb88ba4Smrg
29410bb88ba4Smrgrm -f conftest.$ac_ext
29420bb88ba4SmrgEXEEXT=$ac_cv_exeext
29430bb88ba4Smrgac_exeext=$EXEEXT
29440bb88ba4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
29450bb88ba4Smrg/* end confdefs.h.  */
29460bb88ba4Smrg#include <stdio.h>
29470bb88ba4Smrgint
29480bb88ba4Smrgmain ()
29490bb88ba4Smrg{
29500bb88ba4SmrgFILE *f = fopen ("conftest.out", "w");
29510bb88ba4Smrg return ferror (f) || fclose (f) != 0;
29520bb88ba4Smrg
29530bb88ba4Smrg  ;
29540bb88ba4Smrg  return 0;
29550bb88ba4Smrg}
29560bb88ba4Smrg_ACEOF
29570bb88ba4Smrgac_clean_files="$ac_clean_files conftest.out"
29580bb88ba4Smrg# Check that the compiler produces executables we can run.  If not, either
29590bb88ba4Smrg# the compiler is broken, or we cross compile.
29600bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
29610bb88ba4Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
29620bb88ba4Smrgif test "$cross_compiling" != yes; then
29630bb88ba4Smrg  { { ac_try="$ac_link"
29640bb88ba4Smrgcase "(($ac_try" in
29650bb88ba4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660bb88ba4Smrg  *) ac_try_echo=$ac_try;;
29670bb88ba4Smrgesac
29680bb88ba4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29690bb88ba4Smrg$as_echo "$ac_try_echo"; } >&5
29700bb88ba4Smrg  (eval "$ac_link") 2>&5
29710bb88ba4Smrg  ac_status=$?
29720bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29730bb88ba4Smrg  test $ac_status = 0; }
29740bb88ba4Smrg  if { ac_try='./conftest$ac_cv_exeext'
29750bb88ba4Smrg  { { case "(($ac_try" in
29760bb88ba4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770bb88ba4Smrg  *) ac_try_echo=$ac_try;;
29780bb88ba4Smrgesac
29790bb88ba4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29800bb88ba4Smrg$as_echo "$ac_try_echo"; } >&5
29810bb88ba4Smrg  (eval "$ac_try") 2>&5
29820bb88ba4Smrg  ac_status=$?
29830bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29840bb88ba4Smrg  test $ac_status = 0; }; }; then
29850bb88ba4Smrg    cross_compiling=no
29860bb88ba4Smrg  else
29870bb88ba4Smrg    if test "$cross_compiling" = maybe; then
29880bb88ba4Smrg	cross_compiling=yes
29890bb88ba4Smrg    else
29900bb88ba4Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29910bb88ba4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29920bb88ba4Smrgas_fn_error $? "cannot run C compiled programs.
29930bb88ba4SmrgIf you meant to cross compile, use \`--host'.
29940bb88ba4SmrgSee \`config.log' for more details" "$LINENO" 5; }
29950bb88ba4Smrg    fi
29960bb88ba4Smrg  fi
29970bb88ba4Smrgfi
29980bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
29990bb88ba4Smrg$as_echo "$cross_compiling" >&6; }
30000bb88ba4Smrg
30010bb88ba4Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
30020bb88ba4Smrgac_clean_files=$ac_clean_files_save
30030bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
30040bb88ba4Smrg$as_echo_n "checking for suffix of object files... " >&6; }
30050bb88ba4Smrgif ${ac_cv_objext+:} false; then :
30060bb88ba4Smrg  $as_echo_n "(cached) " >&6
30070bb88ba4Smrgelse
30080bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30090bb88ba4Smrg/* end confdefs.h.  */
30100bb88ba4Smrg
30110bb88ba4Smrgint
30120bb88ba4Smrgmain ()
30130bb88ba4Smrg{
30140bb88ba4Smrg
30150bb88ba4Smrg  ;
30160bb88ba4Smrg  return 0;
30170bb88ba4Smrg}
30180bb88ba4Smrg_ACEOF
30190bb88ba4Smrgrm -f conftest.o conftest.obj
30200bb88ba4Smrgif { { ac_try="$ac_compile"
30210bb88ba4Smrgcase "(($ac_try" in
30220bb88ba4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230bb88ba4Smrg  *) ac_try_echo=$ac_try;;
30240bb88ba4Smrgesac
30250bb88ba4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30260bb88ba4Smrg$as_echo "$ac_try_echo"; } >&5
30270bb88ba4Smrg  (eval "$ac_compile") 2>&5
30280bb88ba4Smrg  ac_status=$?
30290bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30300bb88ba4Smrg  test $ac_status = 0; }; then :
30310bb88ba4Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
30320bb88ba4Smrg  test -f "$ac_file" || continue;
30330bb88ba4Smrg  case $ac_file in
30340bb88ba4Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
30350bb88ba4Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
30360bb88ba4Smrg       break;;
30370bb88ba4Smrg  esac
30380bb88ba4Smrgdone
30390bb88ba4Smrgelse
30400bb88ba4Smrg  $as_echo "$as_me: failed program was:" >&5
30410bb88ba4Smrgsed 's/^/| /' conftest.$ac_ext >&5
30420bb88ba4Smrg
30430bb88ba4Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30440bb88ba4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30450bb88ba4Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
30460bb88ba4SmrgSee \`config.log' for more details" "$LINENO" 5; }
30470bb88ba4Smrgfi
30480bb88ba4Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
30490bb88ba4Smrgfi
30500bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
30510bb88ba4Smrg$as_echo "$ac_cv_objext" >&6; }
30520bb88ba4SmrgOBJEXT=$ac_cv_objext
30530bb88ba4Smrgac_objext=$OBJEXT
30540bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
30550bb88ba4Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
30560bb88ba4Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
30570bb88ba4Smrg  $as_echo_n "(cached) " >&6
30580bb88ba4Smrgelse
30590bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30600bb88ba4Smrg/* end confdefs.h.  */
30610bb88ba4Smrg
30620bb88ba4Smrgint
30630bb88ba4Smrgmain ()
30640bb88ba4Smrg{
30650bb88ba4Smrg#ifndef __GNUC__
30660bb88ba4Smrg       choke me
30670bb88ba4Smrg#endif
30680bb88ba4Smrg
30690bb88ba4Smrg  ;
30700bb88ba4Smrg  return 0;
30710bb88ba4Smrg}
30720bb88ba4Smrg_ACEOF
30730bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
30740bb88ba4Smrg  ac_compiler_gnu=yes
30750bb88ba4Smrgelse
30760bb88ba4Smrg  ac_compiler_gnu=no
30770bb88ba4Smrgfi
30780bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30790bb88ba4Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
30800bb88ba4Smrg
30810bb88ba4Smrgfi
30820bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
30830bb88ba4Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
30840bb88ba4Smrgif test $ac_compiler_gnu = yes; then
30850bb88ba4Smrg  GCC=yes
30860bb88ba4Smrgelse
30870bb88ba4Smrg  GCC=
30880bb88ba4Smrgfi
30890bb88ba4Smrgac_test_CFLAGS=${CFLAGS+set}
30900bb88ba4Smrgac_save_CFLAGS=$CFLAGS
30910bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
30920bb88ba4Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
30930bb88ba4Smrgif ${ac_cv_prog_cc_g+:} false; then :
30940bb88ba4Smrg  $as_echo_n "(cached) " >&6
30950bb88ba4Smrgelse
30960bb88ba4Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
30970bb88ba4Smrg   ac_c_werror_flag=yes
30980bb88ba4Smrg   ac_cv_prog_cc_g=no
30990bb88ba4Smrg   CFLAGS="-g"
31000bb88ba4Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31010bb88ba4Smrg/* end confdefs.h.  */
31020bb88ba4Smrg
31030bb88ba4Smrgint
31040bb88ba4Smrgmain ()
31050bb88ba4Smrg{
31060bb88ba4Smrg
31070bb88ba4Smrg  ;
31080bb88ba4Smrg  return 0;
31090bb88ba4Smrg}
31100bb88ba4Smrg_ACEOF
31110bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
31120bb88ba4Smrg  ac_cv_prog_cc_g=yes
31130bb88ba4Smrgelse
31140bb88ba4Smrg  CFLAGS=""
31150bb88ba4Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31160bb88ba4Smrg/* end confdefs.h.  */
31170bb88ba4Smrg
31180bb88ba4Smrgint
31190bb88ba4Smrgmain ()
31200bb88ba4Smrg{
31210bb88ba4Smrg
31220bb88ba4Smrg  ;
31230bb88ba4Smrg  return 0;
31240bb88ba4Smrg}
31250bb88ba4Smrg_ACEOF
31260bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
31270bb88ba4Smrg
31280bb88ba4Smrgelse
31290bb88ba4Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
31300bb88ba4Smrg	 CFLAGS="-g"
31310bb88ba4Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31320bb88ba4Smrg/* end confdefs.h.  */
31330bb88ba4Smrg
31340bb88ba4Smrgint
31350bb88ba4Smrgmain ()
31360bb88ba4Smrg{
31370bb88ba4Smrg
31380bb88ba4Smrg  ;
31390bb88ba4Smrg  return 0;
31400bb88ba4Smrg}
31410bb88ba4Smrg_ACEOF
31420bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
31430bb88ba4Smrg  ac_cv_prog_cc_g=yes
31440bb88ba4Smrgfi
31450bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31460bb88ba4Smrgfi
31470bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31480bb88ba4Smrgfi
31490bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31500bb88ba4Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
31510bb88ba4Smrgfi
31520bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
31530bb88ba4Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
31540bb88ba4Smrgif test "$ac_test_CFLAGS" = set; then
31550bb88ba4Smrg  CFLAGS=$ac_save_CFLAGS
31560bb88ba4Smrgelif test $ac_cv_prog_cc_g = yes; then
31570bb88ba4Smrg  if test "$GCC" = yes; then
31580bb88ba4Smrg    CFLAGS="-g -O2"
31590bb88ba4Smrg  else
31600bb88ba4Smrg    CFLAGS="-g"
31610bb88ba4Smrg  fi
31620bb88ba4Smrgelse
31630bb88ba4Smrg  if test "$GCC" = yes; then
31640bb88ba4Smrg    CFLAGS="-O2"
31650bb88ba4Smrg  else
31660bb88ba4Smrg    CFLAGS=
31670bb88ba4Smrg  fi
31680bb88ba4Smrgfi
31690bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
31700bb88ba4Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
31710bb88ba4Smrgif ${ac_cv_prog_cc_c89+:} false; then :
31720bb88ba4Smrg  $as_echo_n "(cached) " >&6
31730bb88ba4Smrgelse
31740bb88ba4Smrg  ac_cv_prog_cc_c89=no
31750bb88ba4Smrgac_save_CC=$CC
31760bb88ba4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
31770bb88ba4Smrg/* end confdefs.h.  */
31780bb88ba4Smrg#include <stdarg.h>
31790bb88ba4Smrg#include <stdio.h>
3180acd6767fSmrgstruct stat;
31810bb88ba4Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
31820bb88ba4Smrgstruct buf { int x; };
31830bb88ba4SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
31840bb88ba4Smrgstatic char *e (p, i)
31850bb88ba4Smrg     char **p;
31860bb88ba4Smrg     int i;
31870bb88ba4Smrg{
31880bb88ba4Smrg  return p[i];
31890bb88ba4Smrg}
31900bb88ba4Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
31910bb88ba4Smrg{
31920bb88ba4Smrg  char *s;
31930bb88ba4Smrg  va_list v;
31940bb88ba4Smrg  va_start (v,p);
31950bb88ba4Smrg  s = g (p, va_arg (v,int));
31960bb88ba4Smrg  va_end (v);
31970bb88ba4Smrg  return s;
31980bb88ba4Smrg}
31990bb88ba4Smrg
32000bb88ba4Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
32010bb88ba4Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
32020bb88ba4Smrg   These don't provoke an error unfortunately, instead are silently treated
32030bb88ba4Smrg   as 'x'.  The following induces an error, until -std is added to get
32040bb88ba4Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
32050bb88ba4Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
32060bb88ba4Smrg   that's true only with -std.  */
32070bb88ba4Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
32080bb88ba4Smrg
32090bb88ba4Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
32100bb88ba4Smrg   inside strings and character constants.  */
32110bb88ba4Smrg#define FOO(x) 'x'
32120bb88ba4Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
32130bb88ba4Smrg
32140bb88ba4Smrgint test (int i, double x);
32150bb88ba4Smrgstruct s1 {int (*f) (int a);};
32160bb88ba4Smrgstruct s2 {int (*f) (double a);};
32170bb88ba4Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
32180bb88ba4Smrgint argc;
32190bb88ba4Smrgchar **argv;
32200bb88ba4Smrgint
32210bb88ba4Smrgmain ()
32220bb88ba4Smrg{
32230bb88ba4Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
32240bb88ba4Smrg  ;
32250bb88ba4Smrg  return 0;
32260bb88ba4Smrg}
32270bb88ba4Smrg_ACEOF
32280bb88ba4Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
32290bb88ba4Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
32300bb88ba4Smrgdo
32310bb88ba4Smrg  CC="$ac_save_CC $ac_arg"
32320bb88ba4Smrg  if ac_fn_c_try_compile "$LINENO"; then :
32330bb88ba4Smrg  ac_cv_prog_cc_c89=$ac_arg
32340bb88ba4Smrgfi
32350bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext
32360bb88ba4Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
32370bb88ba4Smrgdone
32380bb88ba4Smrgrm -f conftest.$ac_ext
32390bb88ba4SmrgCC=$ac_save_CC
32400bb88ba4Smrg
32410bb88ba4Smrgfi
32420bb88ba4Smrg# AC_CACHE_VAL
32430bb88ba4Smrgcase "x$ac_cv_prog_cc_c89" in
32440bb88ba4Smrg  x)
32450bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
32460bb88ba4Smrg$as_echo "none needed" >&6; } ;;
32470bb88ba4Smrg  xno)
32480bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
32490bb88ba4Smrg$as_echo "unsupported" >&6; } ;;
32500bb88ba4Smrg  *)
32510bb88ba4Smrg    CC="$CC $ac_cv_prog_cc_c89"
32520bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
32530bb88ba4Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
32540bb88ba4Smrgesac
32550bb88ba4Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
32560bb88ba4Smrg
32570bb88ba4Smrgfi
32580bb88ba4Smrg
32590bb88ba4Smrgac_ext=c
32600bb88ba4Smrgac_cpp='$CPP $CPPFLAGS'
32610bb88ba4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32620bb88ba4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32630bb88ba4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
32640bb88ba4Smrg
32650bb88ba4Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
32660bb88ba4Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
32670bb88ba4Smrgif ${ac_cv_prog_cc_c99+:} false; then :
32680bb88ba4Smrg  $as_echo_n "(cached) " >&6
32690bb88ba4Smrgelse
32700bb88ba4Smrg  ac_cv_prog_cc_c99=no
32710bb88ba4Smrgac_save_CC=$CC
32720bb88ba4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
32730bb88ba4Smrg/* end confdefs.h.  */
32740bb88ba4Smrg#include <stdarg.h>
32750bb88ba4Smrg#include <stdbool.h>
32760bb88ba4Smrg#include <stdlib.h>
32770bb88ba4Smrg#include <wchar.h>
32780bb88ba4Smrg#include <stdio.h>
32790bb88ba4Smrg
32800bb88ba4Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
32810bb88ba4Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
32820bb88ba4Smrg#define showlist(...) puts (#__VA_ARGS__)
32830bb88ba4Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
32840bb88ba4Smrgstatic void
32850bb88ba4Smrgtest_varargs_macros (void)
32860bb88ba4Smrg{
32870bb88ba4Smrg  int x = 1234;
32880bb88ba4Smrg  int y = 5678;
32890bb88ba4Smrg  debug ("Flag");
32900bb88ba4Smrg  debug ("X = %d\n", x);
32910bb88ba4Smrg  showlist (The first, second, and third items.);
32920bb88ba4Smrg  report (x>y, "x is %d but y is %d", x, y);
32930bb88ba4Smrg}
32940bb88ba4Smrg
32950bb88ba4Smrg// Check long long types.
32960bb88ba4Smrg#define BIG64 18446744073709551615ull
32970bb88ba4Smrg#define BIG32 4294967295ul
32980bb88ba4Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
32990bb88ba4Smrg#if !BIG_OK
33000bb88ba4Smrg  your preprocessor is broken;
33010bb88ba4Smrg#endif
33020bb88ba4Smrg#if BIG_OK
33030bb88ba4Smrg#else
33040bb88ba4Smrg  your preprocessor is broken;
33050bb88ba4Smrg#endif
33060bb88ba4Smrgstatic long long int bignum = -9223372036854775807LL;
33070bb88ba4Smrgstatic unsigned long long int ubignum = BIG64;
33080bb88ba4Smrg
33090bb88ba4Smrgstruct incomplete_array
33100bb88ba4Smrg{
33110bb88ba4Smrg  int datasize;
33120bb88ba4Smrg  double data[];
33130bb88ba4Smrg};
33140bb88ba4Smrg
33150bb88ba4Smrgstruct named_init {
33160bb88ba4Smrg  int number;
33170bb88ba4Smrg  const wchar_t *name;
33180bb88ba4Smrg  double average;
33190bb88ba4Smrg};
33200bb88ba4Smrg
33210bb88ba4Smrgtypedef const char *ccp;
33220bb88ba4Smrg
33230bb88ba4Smrgstatic inline int
33240bb88ba4Smrgtest_restrict (ccp restrict text)
33250bb88ba4Smrg{
33260bb88ba4Smrg  // See if C++-style comments work.
33270bb88ba4Smrg  // Iterate through items via the restricted pointer.
33280bb88ba4Smrg  // Also check for declarations in for loops.
33290bb88ba4Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
33300bb88ba4Smrg    continue;
33310bb88ba4Smrg  return 0;
33320bb88ba4Smrg}
33330bb88ba4Smrg
33340bb88ba4Smrg// Check varargs and va_copy.
33350bb88ba4Smrgstatic void
33360bb88ba4Smrgtest_varargs (const char *format, ...)
33370bb88ba4Smrg{
33380bb88ba4Smrg  va_list args;
33390bb88ba4Smrg  va_start (args, format);
33400bb88ba4Smrg  va_list args_copy;
33410bb88ba4Smrg  va_copy (args_copy, args);
33420bb88ba4Smrg
33430bb88ba4Smrg  const char *str;
33440bb88ba4Smrg  int number;
33450bb88ba4Smrg  float fnumber;
33460bb88ba4Smrg
33470bb88ba4Smrg  while (*format)
33480bb88ba4Smrg    {
33490bb88ba4Smrg      switch (*format++)
33500bb88ba4Smrg	{
33510bb88ba4Smrg	case 's': // string
33520bb88ba4Smrg	  str = va_arg (args_copy, const char *);
33530bb88ba4Smrg	  break;
33540bb88ba4Smrg	case 'd': // int
33550bb88ba4Smrg	  number = va_arg (args_copy, int);
33560bb88ba4Smrg	  break;
33570bb88ba4Smrg	case 'f': // float
33580bb88ba4Smrg	  fnumber = va_arg (args_copy, double);
33590bb88ba4Smrg	  break;
33600bb88ba4Smrg	default:
33610bb88ba4Smrg	  break;
33620bb88ba4Smrg	}
33630bb88ba4Smrg    }
33640bb88ba4Smrg  va_end (args_copy);
33650bb88ba4Smrg  va_end (args);
33660bb88ba4Smrg}
33670bb88ba4Smrg
33680bb88ba4Smrgint
33690bb88ba4Smrgmain ()
33700bb88ba4Smrg{
33710bb88ba4Smrg
33720bb88ba4Smrg  // Check bool.
33730bb88ba4Smrg  _Bool success = false;
33740bb88ba4Smrg
33750bb88ba4Smrg  // Check restrict.
33760bb88ba4Smrg  if (test_restrict ("String literal") == 0)
33770bb88ba4Smrg    success = true;
33780bb88ba4Smrg  char *restrict newvar = "Another string";
33790bb88ba4Smrg
33800bb88ba4Smrg  // Check varargs.
33810bb88ba4Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
33820bb88ba4Smrg  test_varargs_macros ();
33830bb88ba4Smrg
33840bb88ba4Smrg  // Check flexible array members.
33850bb88ba4Smrg  struct incomplete_array *ia =
33860bb88ba4Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
33870bb88ba4Smrg  ia->datasize = 10;
33880bb88ba4Smrg  for (int i = 0; i < ia->datasize; ++i)
33890bb88ba4Smrg    ia->data[i] = i * 1.234;
33900bb88ba4Smrg
33910bb88ba4Smrg  // Check named initializers.
33920bb88ba4Smrg  struct named_init ni = {
33930bb88ba4Smrg    .number = 34,
33940bb88ba4Smrg    .name = L"Test wide string",
33950bb88ba4Smrg    .average = 543.34343,
33960bb88ba4Smrg  };
33970bb88ba4Smrg
33980bb88ba4Smrg  ni.number = 58;
33990bb88ba4Smrg
34000bb88ba4Smrg  int dynamic_array[ni.number];
34010bb88ba4Smrg  dynamic_array[ni.number - 1] = 543;
34020bb88ba4Smrg
34030bb88ba4Smrg  // work around unused variable warnings
34040bb88ba4Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
34050bb88ba4Smrg	  || dynamic_array[ni.number - 1] != 543);
34060bb88ba4Smrg
34070bb88ba4Smrg  ;
34080bb88ba4Smrg  return 0;
34090bb88ba4Smrg}
34100bb88ba4Smrg_ACEOF
3411acd6767fSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
34120bb88ba4Smrgdo
34130bb88ba4Smrg  CC="$ac_save_CC $ac_arg"
34140bb88ba4Smrg  if ac_fn_c_try_compile "$LINENO"; then :
34150bb88ba4Smrg  ac_cv_prog_cc_c99=$ac_arg
34160bb88ba4Smrgfi
34170bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext
34180bb88ba4Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
34190bb88ba4Smrgdone
34200bb88ba4Smrgrm -f conftest.$ac_ext
34210bb88ba4SmrgCC=$ac_save_CC
34220bb88ba4Smrg
34230bb88ba4Smrgfi
34240bb88ba4Smrg# AC_CACHE_VAL
34250bb88ba4Smrgcase "x$ac_cv_prog_cc_c99" in
34260bb88ba4Smrg  x)
34270bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
34280bb88ba4Smrg$as_echo "none needed" >&6; } ;;
34290bb88ba4Smrg  xno)
34300bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
34310bb88ba4Smrg$as_echo "unsupported" >&6; } ;;
34320bb88ba4Smrg  *)
34330bb88ba4Smrg    CC="$CC $ac_cv_prog_cc_c99"
34340bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
34350bb88ba4Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
34360bb88ba4Smrgesac
34370bb88ba4Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
34380bb88ba4Smrg
34390bb88ba4Smrgfi
34400bb88ba4Smrg
34410bb88ba4Smrg
34420bb88ba4Smrg
34430bb88ba4Smrgac_ext=c
34440bb88ba4Smrgac_cpp='$CPP $CPPFLAGS'
34450bb88ba4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34460bb88ba4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34470bb88ba4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
34480bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
34490bb88ba4Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
34500bb88ba4Smrg# On Suns, sometimes $CPP names a directory.
34510bb88ba4Smrgif test -n "$CPP" && test -d "$CPP"; then
34520bb88ba4Smrg  CPP=
34530bb88ba4Smrgfi
34540bb88ba4Smrgif test -z "$CPP"; then
34550bb88ba4Smrg  if ${ac_cv_prog_CPP+:} false; then :
34560bb88ba4Smrg  $as_echo_n "(cached) " >&6
34570bb88ba4Smrgelse
34580bb88ba4Smrg      # Double quotes because CPP needs to be expanded
34590bb88ba4Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
34600bb88ba4Smrg    do
34610bb88ba4Smrg      ac_preproc_ok=false
34620bb88ba4Smrgfor ac_c_preproc_warn_flag in '' yes
34630bb88ba4Smrgdo
34640bb88ba4Smrg  # Use a header file that comes with gcc, so configuring glibc
34650bb88ba4Smrg  # with a fresh cross-compiler works.
34660bb88ba4Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34670bb88ba4Smrg  # <limits.h> exists even on freestanding compilers.
34680bb88ba4Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
34690bb88ba4Smrg  # not just through cpp. "Syntax error" is here to catch this case.
34700bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34710bb88ba4Smrg/* end confdefs.h.  */
34720bb88ba4Smrg#ifdef __STDC__
34730bb88ba4Smrg# include <limits.h>
34740bb88ba4Smrg#else
34750bb88ba4Smrg# include <assert.h>
34760bb88ba4Smrg#endif
34770bb88ba4Smrg		     Syntax error
34780bb88ba4Smrg_ACEOF
34790bb88ba4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
34800bb88ba4Smrg
34810bb88ba4Smrgelse
34820bb88ba4Smrg  # Broken: fails on valid input.
34830bb88ba4Smrgcontinue
34840bb88ba4Smrgfi
34850bb88ba4Smrgrm -f conftest.err conftest.i conftest.$ac_ext
34860bb88ba4Smrg
34870bb88ba4Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
34880bb88ba4Smrg  # can be detected and how.
34890bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34900bb88ba4Smrg/* end confdefs.h.  */
34910bb88ba4Smrg#include <ac_nonexistent.h>
34920bb88ba4Smrg_ACEOF
34930bb88ba4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
34940bb88ba4Smrg  # Broken: success on invalid input.
34950bb88ba4Smrgcontinue
34960bb88ba4Smrgelse
34970bb88ba4Smrg  # Passes both tests.
34980bb88ba4Smrgac_preproc_ok=:
34990bb88ba4Smrgbreak
35000bb88ba4Smrgfi
35010bb88ba4Smrgrm -f conftest.err conftest.i conftest.$ac_ext
35020bb88ba4Smrg
35030bb88ba4Smrgdone
35040bb88ba4Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35050bb88ba4Smrgrm -f conftest.i conftest.err conftest.$ac_ext
35060bb88ba4Smrgif $ac_preproc_ok; then :
35070bb88ba4Smrg  break
35080bb88ba4Smrgfi
35090bb88ba4Smrg
35100bb88ba4Smrg    done
35110bb88ba4Smrg    ac_cv_prog_CPP=$CPP
35120bb88ba4Smrg
35130bb88ba4Smrgfi
35140bb88ba4Smrg  CPP=$ac_cv_prog_CPP
35150bb88ba4Smrgelse
35160bb88ba4Smrg  ac_cv_prog_CPP=$CPP
35170bb88ba4Smrgfi
35180bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
35190bb88ba4Smrg$as_echo "$CPP" >&6; }
35200bb88ba4Smrgac_preproc_ok=false
35210bb88ba4Smrgfor ac_c_preproc_warn_flag in '' yes
35220bb88ba4Smrgdo
35230bb88ba4Smrg  # Use a header file that comes with gcc, so configuring glibc
35240bb88ba4Smrg  # with a fresh cross-compiler works.
35250bb88ba4Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35260bb88ba4Smrg  # <limits.h> exists even on freestanding compilers.
35270bb88ba4Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
35280bb88ba4Smrg  # not just through cpp. "Syntax error" is here to catch this case.
35290bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35300bb88ba4Smrg/* end confdefs.h.  */
35310bb88ba4Smrg#ifdef __STDC__
35320bb88ba4Smrg# include <limits.h>
35330bb88ba4Smrg#else
35340bb88ba4Smrg# include <assert.h>
35350bb88ba4Smrg#endif
35360bb88ba4Smrg		     Syntax error
35370bb88ba4Smrg_ACEOF
35380bb88ba4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
35390bb88ba4Smrg
35400bb88ba4Smrgelse
35410bb88ba4Smrg  # Broken: fails on valid input.
35420bb88ba4Smrgcontinue
35430bb88ba4Smrgfi
35440bb88ba4Smrgrm -f conftest.err conftest.i conftest.$ac_ext
35450bb88ba4Smrg
35460bb88ba4Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
35470bb88ba4Smrg  # can be detected and how.
35480bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35490bb88ba4Smrg/* end confdefs.h.  */
35500bb88ba4Smrg#include <ac_nonexistent.h>
35510bb88ba4Smrg_ACEOF
35520bb88ba4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
35530bb88ba4Smrg  # Broken: success on invalid input.
35540bb88ba4Smrgcontinue
35550bb88ba4Smrgelse
35560bb88ba4Smrg  # Passes both tests.
35570bb88ba4Smrgac_preproc_ok=:
35580bb88ba4Smrgbreak
35590bb88ba4Smrgfi
35600bb88ba4Smrgrm -f conftest.err conftest.i conftest.$ac_ext
35610bb88ba4Smrg
35620bb88ba4Smrgdone
35630bb88ba4Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35640bb88ba4Smrgrm -f conftest.i conftest.err conftest.$ac_ext
35650bb88ba4Smrgif $ac_preproc_ok; then :
35660bb88ba4Smrg
35670bb88ba4Smrgelse
35680bb88ba4Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35690bb88ba4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35700bb88ba4Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
35710bb88ba4SmrgSee \`config.log' for more details" "$LINENO" 5; }
35720bb88ba4Smrgfi
35730bb88ba4Smrg
35740bb88ba4Smrgac_ext=c
35750bb88ba4Smrgac_cpp='$CPP $CPPFLAGS'
35760bb88ba4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35770bb88ba4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35780bb88ba4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
35790bb88ba4Smrg
35800bb88ba4Smrg
35810bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
35820bb88ba4Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
35830bb88ba4Smrgif ${ac_cv_path_GREP+:} false; then :
35840bb88ba4Smrg  $as_echo_n "(cached) " >&6
35850bb88ba4Smrgelse
35860bb88ba4Smrg  if test -z "$GREP"; then
35870bb88ba4Smrg  ac_path_GREP_found=false
35880bb88ba4Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
35890bb88ba4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35900bb88ba4Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
35910bb88ba4Smrgdo
35920bb88ba4Smrg  IFS=$as_save_IFS
35930bb88ba4Smrg  test -z "$as_dir" && as_dir=.
35940bb88ba4Smrg    for ac_prog in grep ggrep; do
35950bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
35960bb88ba4Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3597acd6767fSmrg      as_fn_executable_p "$ac_path_GREP" || continue
35980bb88ba4Smrg# Check for GNU ac_path_GREP and select it if it is found.
35990bb88ba4Smrg  # Check for GNU $ac_path_GREP
36000bb88ba4Smrgcase `"$ac_path_GREP" --version 2>&1` in
36010bb88ba4Smrg*GNU*)
36020bb88ba4Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
36030bb88ba4Smrg*)
36040bb88ba4Smrg  ac_count=0
36050bb88ba4Smrg  $as_echo_n 0123456789 >"conftest.in"
36060bb88ba4Smrg  while :
36070bb88ba4Smrg  do
36080bb88ba4Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
36090bb88ba4Smrg    mv "conftest.tmp" "conftest.in"
36100bb88ba4Smrg    cp "conftest.in" "conftest.nl"
36110bb88ba4Smrg    $as_echo 'GREP' >> "conftest.nl"
36120bb88ba4Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
36130bb88ba4Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
36140bb88ba4Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
36150bb88ba4Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
36160bb88ba4Smrg      # Best one so far, save it but keep looking for a better one
36170bb88ba4Smrg      ac_cv_path_GREP="$ac_path_GREP"
36180bb88ba4Smrg      ac_path_GREP_max=$ac_count
36190bb88ba4Smrg    fi
36200bb88ba4Smrg    # 10*(2^10) chars as input seems more than enough
36210bb88ba4Smrg    test $ac_count -gt 10 && break
36220bb88ba4Smrg  done
36230bb88ba4Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
36240bb88ba4Smrgesac
36250bb88ba4Smrg
36260bb88ba4Smrg      $ac_path_GREP_found && break 3
36270bb88ba4Smrg    done
36280bb88ba4Smrg  done
36290bb88ba4Smrg  done
36300bb88ba4SmrgIFS=$as_save_IFS
36310bb88ba4Smrg  if test -z "$ac_cv_path_GREP"; then
36320bb88ba4Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
36330bb88ba4Smrg  fi
36340bb88ba4Smrgelse
36350bb88ba4Smrg  ac_cv_path_GREP=$GREP
36360bb88ba4Smrgfi
36370bb88ba4Smrg
36380bb88ba4Smrgfi
36390bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
36400bb88ba4Smrg$as_echo "$ac_cv_path_GREP" >&6; }
36410bb88ba4Smrg GREP="$ac_cv_path_GREP"
36420bb88ba4Smrg
36430bb88ba4Smrg
36440bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
36450bb88ba4Smrg$as_echo_n "checking for egrep... " >&6; }
36460bb88ba4Smrgif ${ac_cv_path_EGREP+:} false; then :
36470bb88ba4Smrg  $as_echo_n "(cached) " >&6
36480bb88ba4Smrgelse
36490bb88ba4Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
36500bb88ba4Smrg   then ac_cv_path_EGREP="$GREP -E"
36510bb88ba4Smrg   else
36520bb88ba4Smrg     if test -z "$EGREP"; then
36530bb88ba4Smrg  ac_path_EGREP_found=false
36540bb88ba4Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
36550bb88ba4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36560bb88ba4Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
36570bb88ba4Smrgdo
36580bb88ba4Smrg  IFS=$as_save_IFS
36590bb88ba4Smrg  test -z "$as_dir" && as_dir=.
36600bb88ba4Smrg    for ac_prog in egrep; do
36610bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
36620bb88ba4Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3663acd6767fSmrg      as_fn_executable_p "$ac_path_EGREP" || continue
36640bb88ba4Smrg# Check for GNU ac_path_EGREP and select it if it is found.
36650bb88ba4Smrg  # Check for GNU $ac_path_EGREP
36660bb88ba4Smrgcase `"$ac_path_EGREP" --version 2>&1` in
36670bb88ba4Smrg*GNU*)
36680bb88ba4Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
36690bb88ba4Smrg*)
36700bb88ba4Smrg  ac_count=0
36710bb88ba4Smrg  $as_echo_n 0123456789 >"conftest.in"
36720bb88ba4Smrg  while :
36730bb88ba4Smrg  do
36740bb88ba4Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
36750bb88ba4Smrg    mv "conftest.tmp" "conftest.in"
36760bb88ba4Smrg    cp "conftest.in" "conftest.nl"
36770bb88ba4Smrg    $as_echo 'EGREP' >> "conftest.nl"
36780bb88ba4Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
36790bb88ba4Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
36800bb88ba4Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
36810bb88ba4Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
36820bb88ba4Smrg      # Best one so far, save it but keep looking for a better one
36830bb88ba4Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
36840bb88ba4Smrg      ac_path_EGREP_max=$ac_count
36850bb88ba4Smrg    fi
36860bb88ba4Smrg    # 10*(2^10) chars as input seems more than enough
36870bb88ba4Smrg    test $ac_count -gt 10 && break
36880bb88ba4Smrg  done
36890bb88ba4Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
36900bb88ba4Smrgesac
36910bb88ba4Smrg
36920bb88ba4Smrg      $ac_path_EGREP_found && break 3
36930bb88ba4Smrg    done
36940bb88ba4Smrg  done
36950bb88ba4Smrg  done
36960bb88ba4SmrgIFS=$as_save_IFS
36970bb88ba4Smrg  if test -z "$ac_cv_path_EGREP"; then
36980bb88ba4Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
36990bb88ba4Smrg  fi
37000bb88ba4Smrgelse
37010bb88ba4Smrg  ac_cv_path_EGREP=$EGREP
37020bb88ba4Smrgfi
37030bb88ba4Smrg
37040bb88ba4Smrg   fi
37050bb88ba4Smrgfi
37060bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
37070bb88ba4Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
37080bb88ba4Smrg EGREP="$ac_cv_path_EGREP"
37090bb88ba4Smrg
37100bb88ba4Smrg
37110bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
37120bb88ba4Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
37130bb88ba4Smrgif ${ac_cv_header_stdc+:} false; then :
37140bb88ba4Smrg  $as_echo_n "(cached) " >&6
37150bb88ba4Smrgelse
37160bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37170bb88ba4Smrg/* end confdefs.h.  */
37180bb88ba4Smrg#include <stdlib.h>
37190bb88ba4Smrg#include <stdarg.h>
37200bb88ba4Smrg#include <string.h>
37210bb88ba4Smrg#include <float.h>
37220bb88ba4Smrg
37230bb88ba4Smrgint
37240bb88ba4Smrgmain ()
37250bb88ba4Smrg{
37260bb88ba4Smrg
37270bb88ba4Smrg  ;
37280bb88ba4Smrg  return 0;
37290bb88ba4Smrg}
37300bb88ba4Smrg_ACEOF
37310bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
37320bb88ba4Smrg  ac_cv_header_stdc=yes
37330bb88ba4Smrgelse
37340bb88ba4Smrg  ac_cv_header_stdc=no
37350bb88ba4Smrgfi
37360bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37370bb88ba4Smrg
37380bb88ba4Smrgif test $ac_cv_header_stdc = yes; then
37390bb88ba4Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
37400bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37410bb88ba4Smrg/* end confdefs.h.  */
37420bb88ba4Smrg#include <string.h>
37430bb88ba4Smrg
37440bb88ba4Smrg_ACEOF
37450bb88ba4Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37460bb88ba4Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
37470bb88ba4Smrg
37480bb88ba4Smrgelse
37490bb88ba4Smrg  ac_cv_header_stdc=no
37500bb88ba4Smrgfi
37510bb88ba4Smrgrm -f conftest*
37520bb88ba4Smrg
37530bb88ba4Smrgfi
37540bb88ba4Smrg
37550bb88ba4Smrgif test $ac_cv_header_stdc = yes; then
37560bb88ba4Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
37570bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37580bb88ba4Smrg/* end confdefs.h.  */
37590bb88ba4Smrg#include <stdlib.h>
37600bb88ba4Smrg
37610bb88ba4Smrg_ACEOF
37620bb88ba4Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37630bb88ba4Smrg  $EGREP "free" >/dev/null 2>&1; then :
37640bb88ba4Smrg
37650bb88ba4Smrgelse
37660bb88ba4Smrg  ac_cv_header_stdc=no
37670bb88ba4Smrgfi
37680bb88ba4Smrgrm -f conftest*
37690bb88ba4Smrg
37700bb88ba4Smrgfi
37710bb88ba4Smrg
37720bb88ba4Smrgif test $ac_cv_header_stdc = yes; then
37730bb88ba4Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
37740bb88ba4Smrg  if test "$cross_compiling" = yes; then :
37750bb88ba4Smrg  :
37760bb88ba4Smrgelse
37770bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37780bb88ba4Smrg/* end confdefs.h.  */
37790bb88ba4Smrg#include <ctype.h>
37800bb88ba4Smrg#include <stdlib.h>
37810bb88ba4Smrg#if ((' ' & 0x0FF) == 0x020)
37820bb88ba4Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
37830bb88ba4Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
37840bb88ba4Smrg#else
37850bb88ba4Smrg# define ISLOWER(c) \
37860bb88ba4Smrg		   (('a' <= (c) && (c) <= 'i') \
37870bb88ba4Smrg		     || ('j' <= (c) && (c) <= 'r') \
37880bb88ba4Smrg		     || ('s' <= (c) && (c) <= 'z'))
37890bb88ba4Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
37900bb88ba4Smrg#endif
37910bb88ba4Smrg
37920bb88ba4Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
37930bb88ba4Smrgint
37940bb88ba4Smrgmain ()
37950bb88ba4Smrg{
37960bb88ba4Smrg  int i;
37970bb88ba4Smrg  for (i = 0; i < 256; i++)
37980bb88ba4Smrg    if (XOR (islower (i), ISLOWER (i))
37990bb88ba4Smrg	|| toupper (i) != TOUPPER (i))
38000bb88ba4Smrg      return 2;
38010bb88ba4Smrg  return 0;
38020bb88ba4Smrg}
38030bb88ba4Smrg_ACEOF
38040bb88ba4Smrgif ac_fn_c_try_run "$LINENO"; then :
38050bb88ba4Smrg
38060bb88ba4Smrgelse
38070bb88ba4Smrg  ac_cv_header_stdc=no
38080bb88ba4Smrgfi
38090bb88ba4Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38100bb88ba4Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
38110bb88ba4Smrgfi
38120bb88ba4Smrg
38130bb88ba4Smrgfi
38140bb88ba4Smrgfi
38150bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
38160bb88ba4Smrg$as_echo "$ac_cv_header_stdc" >&6; }
38170bb88ba4Smrgif test $ac_cv_header_stdc = yes; then
38180bb88ba4Smrg
38190bb88ba4Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
38200bb88ba4Smrg
38210bb88ba4Smrgfi
38220bb88ba4Smrg
38230bb88ba4Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
38240bb88ba4Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
38250bb88ba4Smrg		  inttypes.h stdint.h unistd.h
38260bb88ba4Smrgdo :
38270bb88ba4Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38280bb88ba4Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
38290bb88ba4Smrg"
38300bb88ba4Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38310bb88ba4Smrg  cat >>confdefs.h <<_ACEOF
38320bb88ba4Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38330bb88ba4Smrg_ACEOF
38340bb88ba4Smrg
38350bb88ba4Smrgfi
38360bb88ba4Smrg
38370bb88ba4Smrgdone
38380bb88ba4Smrg
38390bb88ba4Smrg
38400bb88ba4Smrg
38410bb88ba4Smrg
38420bb88ba4Smrg
38430bb88ba4Smrg
38440bb88ba4Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
38450bb88ba4Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
38460bb88ba4Smrg  CLANGCC="yes"
38470bb88ba4Smrgelse
38480bb88ba4Smrg  CLANGCC="no"
38490bb88ba4Smrgfi
38500bb88ba4Smrg
38510bb88ba4Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
38520bb88ba4Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
38530bb88ba4Smrg  INTELCC="yes"
38540bb88ba4Smrgelse
38550bb88ba4Smrg  INTELCC="no"
38560bb88ba4Smrgfi
38570bb88ba4Smrg
38580bb88ba4Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
38590bb88ba4Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
38600bb88ba4Smrg  SUNCC="yes"
38610bb88ba4Smrgelse
38620bb88ba4Smrg  SUNCC="no"
38630bb88ba4Smrgfi
38640bb88ba4Smrg
38650bb88ba4Smrg
38660bb88ba4Smrg
38670bb88ba4Smrg
38680bb88ba4Smrg
38690bb88ba4Smrg
38700bb88ba4Smrg
38710bb88ba4Smrg
3872acd6767fSmrg
38730bb88ba4Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
38740bb88ba4Smrg	if test -n "$ac_tool_prefix"; then
38750bb88ba4Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
38760bb88ba4Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
38770bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38780bb88ba4Smrg$as_echo_n "checking for $ac_word... " >&6; }
38790bb88ba4Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
38800bb88ba4Smrg  $as_echo_n "(cached) " >&6
38810bb88ba4Smrgelse
38820bb88ba4Smrg  case $PKG_CONFIG in
38830bb88ba4Smrg  [\\/]* | ?:[\\/]*)
38840bb88ba4Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38850bb88ba4Smrg  ;;
38860bb88ba4Smrg  *)
38870bb88ba4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38880bb88ba4Smrgfor as_dir in $PATH
38890bb88ba4Smrgdo
38900bb88ba4Smrg  IFS=$as_save_IFS
38910bb88ba4Smrg  test -z "$as_dir" && as_dir=.
38920bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3893acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38940bb88ba4Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38950bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38960bb88ba4Smrg    break 2
38970bb88ba4Smrg  fi
38980bb88ba4Smrgdone
38990bb88ba4Smrg  done
39000bb88ba4SmrgIFS=$as_save_IFS
39010bb88ba4Smrg
39020bb88ba4Smrg  ;;
39030bb88ba4Smrgesac
39040bb88ba4Smrgfi
39050bb88ba4SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
39060bb88ba4Smrgif test -n "$PKG_CONFIG"; then
39070bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
39080bb88ba4Smrg$as_echo "$PKG_CONFIG" >&6; }
39090bb88ba4Smrgelse
39100bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39110bb88ba4Smrg$as_echo "no" >&6; }
39120bb88ba4Smrgfi
39130bb88ba4Smrg
39140bb88ba4Smrg
39150bb88ba4Smrgfi
39160bb88ba4Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
39170bb88ba4Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
39180bb88ba4Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
39190bb88ba4Smrgset dummy pkg-config; ac_word=$2
39200bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39210bb88ba4Smrg$as_echo_n "checking for $ac_word... " >&6; }
39220bb88ba4Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
39230bb88ba4Smrg  $as_echo_n "(cached) " >&6
39240bb88ba4Smrgelse
39250bb88ba4Smrg  case $ac_pt_PKG_CONFIG in
39260bb88ba4Smrg  [\\/]* | ?:[\\/]*)
39270bb88ba4Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
39280bb88ba4Smrg  ;;
39290bb88ba4Smrg  *)
39300bb88ba4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39310bb88ba4Smrgfor as_dir in $PATH
39320bb88ba4Smrgdo
39330bb88ba4Smrg  IFS=$as_save_IFS
39340bb88ba4Smrg  test -z "$as_dir" && as_dir=.
39350bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3936acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39370bb88ba4Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39380bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39390bb88ba4Smrg    break 2
39400bb88ba4Smrg  fi
39410bb88ba4Smrgdone
39420bb88ba4Smrg  done
39430bb88ba4SmrgIFS=$as_save_IFS
39440bb88ba4Smrg
39450bb88ba4Smrg  ;;
39460bb88ba4Smrgesac
39470bb88ba4Smrgfi
39480bb88ba4Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
39490bb88ba4Smrgif test -n "$ac_pt_PKG_CONFIG"; then
39500bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
39510bb88ba4Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
39520bb88ba4Smrgelse
39530bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39540bb88ba4Smrg$as_echo "no" >&6; }
39550bb88ba4Smrgfi
39560bb88ba4Smrg
39570bb88ba4Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
39580bb88ba4Smrg    PKG_CONFIG=""
39590bb88ba4Smrg  else
39600bb88ba4Smrg    case $cross_compiling:$ac_tool_warned in
39610bb88ba4Smrgyes:)
39620bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39630bb88ba4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39640bb88ba4Smrgac_tool_warned=yes ;;
39650bb88ba4Smrgesac
39660bb88ba4Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
39670bb88ba4Smrg  fi
39680bb88ba4Smrgelse
39690bb88ba4Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
39700bb88ba4Smrgfi
39710bb88ba4Smrg
39720bb88ba4Smrgfi
39730bb88ba4Smrgif test -n "$PKG_CONFIG"; then
39740bb88ba4Smrg	_pkg_min_version=0.9.0
39750bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
39760bb88ba4Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
39770bb88ba4Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
39780bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39790bb88ba4Smrg$as_echo "yes" >&6; }
39800bb88ba4Smrg	else
39810bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39820bb88ba4Smrg$as_echo "no" >&6; }
39830bb88ba4Smrg		PKG_CONFIG=""
39840bb88ba4Smrg	fi
39850bb88ba4Smrgfi
39860bb88ba4Smrg# Make sure we can run config.sub.
39870bb88ba4Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
39880bb88ba4Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
39890bb88ba4Smrg
39900bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
39910bb88ba4Smrg$as_echo_n "checking build system type... " >&6; }
39920bb88ba4Smrgif ${ac_cv_build+:} false; then :
39930bb88ba4Smrg  $as_echo_n "(cached) " >&6
39940bb88ba4Smrgelse
39950bb88ba4Smrg  ac_build_alias=$build_alias
39960bb88ba4Smrgtest "x$ac_build_alias" = x &&
39970bb88ba4Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
39980bb88ba4Smrgtest "x$ac_build_alias" = x &&
39990bb88ba4Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
40000bb88ba4Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
40010bb88ba4Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
40020bb88ba4Smrg
40030bb88ba4Smrgfi
40040bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
40050bb88ba4Smrg$as_echo "$ac_cv_build" >&6; }
40060bb88ba4Smrgcase $ac_cv_build in
40070bb88ba4Smrg*-*-*) ;;
40080bb88ba4Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
40090bb88ba4Smrgesac
40100bb88ba4Smrgbuild=$ac_cv_build
40110bb88ba4Smrgac_save_IFS=$IFS; IFS='-'
40120bb88ba4Smrgset x $ac_cv_build
40130bb88ba4Smrgshift
40140bb88ba4Smrgbuild_cpu=$1
40150bb88ba4Smrgbuild_vendor=$2
40160bb88ba4Smrgshift; shift
40170bb88ba4Smrg# Remember, the first character of IFS is used to create $*,
40180bb88ba4Smrg# except with old shells:
40190bb88ba4Smrgbuild_os=$*
40200bb88ba4SmrgIFS=$ac_save_IFS
40210bb88ba4Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
40220bb88ba4Smrg
40230bb88ba4Smrg
40240bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
40250bb88ba4Smrg$as_echo_n "checking host system type... " >&6; }
40260bb88ba4Smrgif ${ac_cv_host+:} false; then :
40270bb88ba4Smrg  $as_echo_n "(cached) " >&6
40280bb88ba4Smrgelse
40290bb88ba4Smrg  if test "x$host_alias" = x; then
40300bb88ba4Smrg  ac_cv_host=$ac_cv_build
40310bb88ba4Smrgelse
40320bb88ba4Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
40330bb88ba4Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
40340bb88ba4Smrgfi
40350bb88ba4Smrg
40360bb88ba4Smrgfi
40370bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
40380bb88ba4Smrg$as_echo "$ac_cv_host" >&6; }
40390bb88ba4Smrgcase $ac_cv_host in
40400bb88ba4Smrg*-*-*) ;;
40410bb88ba4Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
40420bb88ba4Smrgesac
40430bb88ba4Smrghost=$ac_cv_host
40440bb88ba4Smrgac_save_IFS=$IFS; IFS='-'
40450bb88ba4Smrgset x $ac_cv_host
40460bb88ba4Smrgshift
40470bb88ba4Smrghost_cpu=$1
40480bb88ba4Smrghost_vendor=$2
40490bb88ba4Smrgshift; shift
40500bb88ba4Smrg# Remember, the first character of IFS is used to create $*,
40510bb88ba4Smrg# except with old shells:
40520bb88ba4Smrghost_os=$*
40530bb88ba4SmrgIFS=$ac_save_IFS
40540bb88ba4Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
40550bb88ba4Smrg
40560bb88ba4Smrg
40570bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
40580bb88ba4Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
40590bb88ba4Smrgif ${ac_cv_path_SED+:} false; then :
40600bb88ba4Smrg  $as_echo_n "(cached) " >&6
40610bb88ba4Smrgelse
40620bb88ba4Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
40630bb88ba4Smrg     for ac_i in 1 2 3 4 5 6 7; do
40640bb88ba4Smrg       ac_script="$ac_script$as_nl$ac_script"
40650bb88ba4Smrg     done
40660bb88ba4Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
40670bb88ba4Smrg     { ac_script=; unset ac_script;}
40680bb88ba4Smrg     if test -z "$SED"; then
40690bb88ba4Smrg  ac_path_SED_found=false
40700bb88ba4Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
40710bb88ba4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40720bb88ba4Smrgfor as_dir in $PATH
40730bb88ba4Smrgdo
40740bb88ba4Smrg  IFS=$as_save_IFS
40750bb88ba4Smrg  test -z "$as_dir" && as_dir=.
40760bb88ba4Smrg    for ac_prog in sed gsed; do
40770bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
40780bb88ba4Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4079acd6767fSmrg      as_fn_executable_p "$ac_path_SED" || continue
40800bb88ba4Smrg# Check for GNU ac_path_SED and select it if it is found.
40810bb88ba4Smrg  # Check for GNU $ac_path_SED
40820bb88ba4Smrgcase `"$ac_path_SED" --version 2>&1` in
40830bb88ba4Smrg*GNU*)
40840bb88ba4Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
40850bb88ba4Smrg*)
40860bb88ba4Smrg  ac_count=0
40870bb88ba4Smrg  $as_echo_n 0123456789 >"conftest.in"
40880bb88ba4Smrg  while :
40890bb88ba4Smrg  do
40900bb88ba4Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
40910bb88ba4Smrg    mv "conftest.tmp" "conftest.in"
40920bb88ba4Smrg    cp "conftest.in" "conftest.nl"
40930bb88ba4Smrg    $as_echo '' >> "conftest.nl"
40940bb88ba4Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
40950bb88ba4Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40960bb88ba4Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
40970bb88ba4Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
40980bb88ba4Smrg      # Best one so far, save it but keep looking for a better one
40990bb88ba4Smrg      ac_cv_path_SED="$ac_path_SED"
41000bb88ba4Smrg      ac_path_SED_max=$ac_count
41010bb88ba4Smrg    fi
41020bb88ba4Smrg    # 10*(2^10) chars as input seems more than enough
41030bb88ba4Smrg    test $ac_count -gt 10 && break
41040bb88ba4Smrg  done
41050bb88ba4Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106fe5e51b7Smrgesac
4107fe5e51b7Smrg
41080bb88ba4Smrg      $ac_path_SED_found && break 3
41090bb88ba4Smrg    done
41100bb88ba4Smrg  done
41110bb88ba4Smrg  done
41120bb88ba4SmrgIFS=$as_save_IFS
41130bb88ba4Smrg  if test -z "$ac_cv_path_SED"; then
41140bb88ba4Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
41150bb88ba4Smrg  fi
41160bb88ba4Smrgelse
41170bb88ba4Smrg  ac_cv_path_SED=$SED
41180bb88ba4Smrgfi
41190bb88ba4Smrg
41200bb88ba4Smrgfi
41210bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
41220bb88ba4Smrg$as_echo "$ac_cv_path_SED" >&6; }
41230bb88ba4Smrg SED="$ac_cv_path_SED"
41240bb88ba4Smrg  rm -f conftest.sed
41250bb88ba4Smrg
41260bb88ba4Smrg
41270bb88ba4Smrg
41280bb88ba4Smrg
41290bb88ba4Smrg
41300bb88ba4Smrg
41310bb88ba4Smrg# Check whether --enable-selective-werror was given.
41320bb88ba4Smrgif test "${enable_selective_werror+set}" = set; then :
41330bb88ba4Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
41340bb88ba4Smrgelse
41350bb88ba4Smrg  SELECTIVE_WERROR=yes
41360bb88ba4Smrgfi
41370bb88ba4Smrg
41380bb88ba4Smrg
41390bb88ba4Smrg
41400bb88ba4Smrg
41410bb88ba4Smrg
41420bb88ba4Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
41430bb88ba4Smrgif test "x$SUNCC" = "xyes"; then
41440bb88ba4Smrg    BASE_CFLAGS="-v"
41450bb88ba4Smrgelse
41460bb88ba4Smrg    BASE_CFLAGS=""
41470bb88ba4Smrgfi
41480bb88ba4Smrg
41490bb88ba4Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
41500bb88ba4Smrg
41510bb88ba4Smrg
41520bb88ba4Smrg
41530bb88ba4Smrg
41540bb88ba4Smrg
41550bb88ba4Smrg
41560bb88ba4Smrg
41570bb88ba4Smrg
41580bb88ba4Smrg
41590bb88ba4Smrg
41600bb88ba4Smrg
41610bb88ba4Smrg
41620bb88ba4Smrg
41630bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
41640bb88ba4Smrg
41650bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
41660bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
41670bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
41680bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
41690bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
41700bb88ba4Smrg  $as_echo_n "(cached) " >&6
41710bb88ba4Smrgelse
41720bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41730bb88ba4Smrg/* end confdefs.h.  */
41740bb88ba4Smrgint i;
41750bb88ba4Smrg_ACEOF
41760bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
41770bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
41780bb88ba4Smrgelse
41790bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
41800bb88ba4Smrgfi
41810bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41820bb88ba4Smrgfi
41830bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
41840bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
41850bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
41860bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
41870bb88ba4Smrgfi
41880bb88ba4Smrg
41890bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
41900bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
41910bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
41920bb88ba4Smrg	fi
41930bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
41940bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
41950bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
41960bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
41970bb88ba4Smrg  $as_echo_n "(cached) " >&6
41980bb88ba4Smrgelse
41990bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42000bb88ba4Smrg/* end confdefs.h.  */
42010bb88ba4Smrgint i;
42020bb88ba4Smrg_ACEOF
42030bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
42040bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
42050bb88ba4Smrgelse
42060bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
42070bb88ba4Smrgfi
42080bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42090bb88ba4Smrgfi
42100bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
42110bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
42120bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
42130bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
42140bb88ba4Smrgfi
42150bb88ba4Smrg
42160bb88ba4Smrgfound="no"
42170bb88ba4Smrg
42180bb88ba4Smrg	if test $found = "no" ; then
42190bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
42200bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
42210bb88ba4Smrg		fi
42220bb88ba4Smrg
42230bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
42240bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
42250bb88ba4Smrg		fi
42260bb88ba4Smrg
42270bb88ba4Smrg		CFLAGS="$CFLAGS -Wall"
42280bb88ba4Smrg
4229acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4230acd6767fSmrg$as_echo_n "checking if $CC supports-Wall... " >&6; }
42310bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wall
42320bb88ba4Smrg		if eval \${$cacheid+:} false; then :
42330bb88ba4Smrg  $as_echo_n "(cached) " >&6
42340bb88ba4Smrgelse
42350bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42360bb88ba4Smrg/* end confdefs.h.  */
42370bb88ba4Smrgint i;
42380bb88ba4Smrgint
42390bb88ba4Smrgmain ()
42400bb88ba4Smrg{
42410bb88ba4Smrg
42420bb88ba4Smrg  ;
42430bb88ba4Smrg  return 0;
42440bb88ba4Smrg}
42450bb88ba4Smrg_ACEOF
42460bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
42470bb88ba4Smrg  eval $cacheid=yes
42480bb88ba4Smrgelse
42490bb88ba4Smrg  eval $cacheid=no
42500bb88ba4Smrgfi
42510bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
42520bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
42530bb88ba4Smrgfi
42540bb88ba4Smrg
42550bb88ba4Smrg
42560bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
42570bb88ba4Smrg
42580bb88ba4Smrg		eval supported=\$$cacheid
42590bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
42600bb88ba4Smrg$as_echo "$supported" >&6; }
42610bb88ba4Smrg		if test "$supported" = "yes" ; then
42620bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
42630bb88ba4Smrg			found="yes"
42640bb88ba4Smrg		fi
42650bb88ba4Smrg	fi
42660bb88ba4Smrg
42670bb88ba4Smrg
42680bb88ba4Smrg
42690bb88ba4Smrg
42700bb88ba4Smrg
42710bb88ba4Smrg
42720bb88ba4Smrg
42730bb88ba4Smrg
42740bb88ba4Smrg
42750bb88ba4Smrg
42760bb88ba4Smrg
42770bb88ba4Smrg
42780bb88ba4Smrg
42790bb88ba4Smrg
42800bb88ba4Smrg
42810bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
42820bb88ba4Smrg
42830bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
42840bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
42850bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
42860bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
42870bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
42880bb88ba4Smrg  $as_echo_n "(cached) " >&6
42890bb88ba4Smrgelse
42900bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42910bb88ba4Smrg/* end confdefs.h.  */
42920bb88ba4Smrgint i;
42930bb88ba4Smrg_ACEOF
42940bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
42950bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
42960bb88ba4Smrgelse
42970bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
42980bb88ba4Smrgfi
42990bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43000bb88ba4Smrgfi
43010bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
43020bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
43030bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
43040bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
43050bb88ba4Smrgfi
43060bb88ba4Smrg
43070bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
43080bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
43090bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
43100bb88ba4Smrg	fi
43110bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
43120bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
43130bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
43140bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
43150bb88ba4Smrg  $as_echo_n "(cached) " >&6
43160bb88ba4Smrgelse
43170bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43180bb88ba4Smrg/* end confdefs.h.  */
43190bb88ba4Smrgint i;
43200bb88ba4Smrg_ACEOF
43210bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
43220bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
43230bb88ba4Smrgelse
43240bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
43250bb88ba4Smrgfi
43260bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43270bb88ba4Smrgfi
43280bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
43290bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
43300bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
43310bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
43320bb88ba4Smrgfi
43330bb88ba4Smrg
43340bb88ba4Smrgfound="no"
43350bb88ba4Smrg
43360bb88ba4Smrg	if test $found = "no" ; then
43370bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
43380bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
43390bb88ba4Smrg		fi
43400bb88ba4Smrg
43410bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
43420bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
43430bb88ba4Smrg		fi
43440bb88ba4Smrg
43450bb88ba4Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
43460bb88ba4Smrg
4347acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4348acd6767fSmrg$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
43490bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
43500bb88ba4Smrg		if eval \${$cacheid+:} false; then :
43510bb88ba4Smrg  $as_echo_n "(cached) " >&6
43520bb88ba4Smrgelse
43530bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43540bb88ba4Smrg/* end confdefs.h.  */
43550bb88ba4Smrgint i;
43560bb88ba4Smrgint
43570bb88ba4Smrgmain ()
43580bb88ba4Smrg{
43590bb88ba4Smrg
43600bb88ba4Smrg  ;
43610bb88ba4Smrg  return 0;
43620bb88ba4Smrg}
43630bb88ba4Smrg_ACEOF
43640bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
43650bb88ba4Smrg  eval $cacheid=yes
43660bb88ba4Smrgelse
43670bb88ba4Smrg  eval $cacheid=no
43680bb88ba4Smrgfi
43690bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
43700bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
43710bb88ba4Smrgfi
43720bb88ba4Smrg
43730bb88ba4Smrg
43740bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
43750bb88ba4Smrg
43760bb88ba4Smrg		eval supported=\$$cacheid
43770bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
43780bb88ba4Smrg$as_echo "$supported" >&6; }
43790bb88ba4Smrg		if test "$supported" = "yes" ; then
43800bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
43810bb88ba4Smrg			found="yes"
43820bb88ba4Smrg		fi
43830bb88ba4Smrg	fi
43840bb88ba4Smrg
43850bb88ba4Smrg
43860bb88ba4Smrg
43870bb88ba4Smrg
43880bb88ba4Smrg
43890bb88ba4Smrg
43900bb88ba4Smrg
43910bb88ba4Smrg
43920bb88ba4Smrg
43930bb88ba4Smrg
43940bb88ba4Smrg
43950bb88ba4Smrg
43960bb88ba4Smrg
43970bb88ba4Smrg
43980bb88ba4Smrg
43990bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
44000bb88ba4Smrg
44010bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
44020bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
44030bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
44040bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
44050bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
44060bb88ba4Smrg  $as_echo_n "(cached) " >&6
44070bb88ba4Smrgelse
44080bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44090bb88ba4Smrg/* end confdefs.h.  */
44100bb88ba4Smrgint i;
44110bb88ba4Smrg_ACEOF
44120bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
44130bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
44140bb88ba4Smrgelse
44150bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
44160bb88ba4Smrgfi
44170bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44180bb88ba4Smrgfi
44190bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
44200bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
44210bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
44220bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
44230bb88ba4Smrgfi
44240bb88ba4Smrg
44250bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
44260bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
44270bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
44280bb88ba4Smrg	fi
44290bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
44300bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
44310bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
44320bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
44330bb88ba4Smrg  $as_echo_n "(cached) " >&6
44340bb88ba4Smrgelse
44350bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44360bb88ba4Smrg/* end confdefs.h.  */
44370bb88ba4Smrgint i;
44380bb88ba4Smrg_ACEOF
44390bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
44400bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
44410bb88ba4Smrgelse
44420bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
44430bb88ba4Smrgfi
44440bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44450bb88ba4Smrgfi
44460bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
44470bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
44480bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
44490bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
44500bb88ba4Smrgfi
44510bb88ba4Smrg
44520bb88ba4Smrgfound="no"
44530bb88ba4Smrg
44540bb88ba4Smrg	if test $found = "no" ; then
44550bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
44560bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
44570bb88ba4Smrg		fi
44580bb88ba4Smrg
44590bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
44600bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
44610bb88ba4Smrg		fi
44620bb88ba4Smrg
44630bb88ba4Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
44640bb88ba4Smrg
4465acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4466acd6767fSmrg$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
44670bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
44680bb88ba4Smrg		if eval \${$cacheid+:} false; then :
44690bb88ba4Smrg  $as_echo_n "(cached) " >&6
44700bb88ba4Smrgelse
44710bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44720bb88ba4Smrg/* end confdefs.h.  */
44730bb88ba4Smrgint i;
44740bb88ba4Smrgint
44750bb88ba4Smrgmain ()
44760bb88ba4Smrg{
44770bb88ba4Smrg
44780bb88ba4Smrg  ;
44790bb88ba4Smrg  return 0;
44800bb88ba4Smrg}
44810bb88ba4Smrg_ACEOF
44820bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
44830bb88ba4Smrg  eval $cacheid=yes
44840bb88ba4Smrgelse
44850bb88ba4Smrg  eval $cacheid=no
44860bb88ba4Smrgfi
44870bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
44880bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
44890bb88ba4Smrgfi
44900bb88ba4Smrg
44910bb88ba4Smrg
44920bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
44930bb88ba4Smrg
44940bb88ba4Smrg		eval supported=\$$cacheid
44950bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
44960bb88ba4Smrg$as_echo "$supported" >&6; }
44970bb88ba4Smrg		if test "$supported" = "yes" ; then
44980bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
44990bb88ba4Smrg			found="yes"
45000bb88ba4Smrg		fi
45010bb88ba4Smrg	fi
45020bb88ba4Smrg
45030bb88ba4Smrg
45040bb88ba4Smrg
45050bb88ba4Smrg
45060bb88ba4Smrg
45070bb88ba4Smrg
45080bb88ba4Smrg
45090bb88ba4Smrg
45100bb88ba4Smrg
45110bb88ba4Smrg
45120bb88ba4Smrg
45130bb88ba4Smrg
45140bb88ba4Smrg
45150bb88ba4Smrg
45160bb88ba4Smrg
45170bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
45180bb88ba4Smrg
45190bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
45200bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
45210bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
45220bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
45230bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
45240bb88ba4Smrg  $as_echo_n "(cached) " >&6
45250bb88ba4Smrgelse
45260bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45270bb88ba4Smrg/* end confdefs.h.  */
45280bb88ba4Smrgint i;
45290bb88ba4Smrg_ACEOF
45300bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
45310bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
45320bb88ba4Smrgelse
45330bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
45340bb88ba4Smrgfi
45350bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45360bb88ba4Smrgfi
45370bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
45380bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
45390bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
45400bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
45410bb88ba4Smrgfi
45420bb88ba4Smrg
45430bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
45440bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
45450bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
45460bb88ba4Smrg	fi
45470bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
45480bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
45490bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
45500bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
45510bb88ba4Smrg  $as_echo_n "(cached) " >&6
45520bb88ba4Smrgelse
45530bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45540bb88ba4Smrg/* end confdefs.h.  */
45550bb88ba4Smrgint i;
45560bb88ba4Smrg_ACEOF
45570bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
45580bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
45590bb88ba4Smrgelse
45600bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
45610bb88ba4Smrgfi
45620bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45630bb88ba4Smrgfi
45640bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
45650bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
45660bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
45670bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
45680bb88ba4Smrgfi
45690bb88ba4Smrg
45700bb88ba4Smrgfound="no"
45710bb88ba4Smrg
45720bb88ba4Smrg	if test $found = "no" ; then
45730bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
45740bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
45750bb88ba4Smrg		fi
45760bb88ba4Smrg
45770bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
45780bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
45790bb88ba4Smrg		fi
45800bb88ba4Smrg
45810bb88ba4Smrg		CFLAGS="$CFLAGS -Wformat=2"
45820bb88ba4Smrg
4583acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4584acd6767fSmrg$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4585acd6767fSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
45860bb88ba4Smrg		if eval \${$cacheid+:} false; then :
45870bb88ba4Smrg  $as_echo_n "(cached) " >&6
45880bb88ba4Smrgelse
45890bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45900bb88ba4Smrg/* end confdefs.h.  */
45910bb88ba4Smrgint i;
45920bb88ba4Smrgint
45930bb88ba4Smrgmain ()
45940bb88ba4Smrg{
45950bb88ba4Smrg
45960bb88ba4Smrg  ;
45970bb88ba4Smrg  return 0;
45980bb88ba4Smrg}
45990bb88ba4Smrg_ACEOF
46000bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
46010bb88ba4Smrg  eval $cacheid=yes
46020bb88ba4Smrgelse
46030bb88ba4Smrg  eval $cacheid=no
46040bb88ba4Smrgfi
46050bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
46060bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
46070bb88ba4Smrgfi
46080bb88ba4Smrg
46090bb88ba4Smrg
46100bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
46110bb88ba4Smrg
46120bb88ba4Smrg		eval supported=\$$cacheid
46130bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
46140bb88ba4Smrg$as_echo "$supported" >&6; }
46150bb88ba4Smrg		if test "$supported" = "yes" ; then
46160bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
46170bb88ba4Smrg			found="yes"
46180bb88ba4Smrg		fi
46190bb88ba4Smrg	fi
46200bb88ba4Smrg
46210bb88ba4Smrg	if test $found = "no" ; then
46220bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
46230bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
46240bb88ba4Smrg		fi
46250bb88ba4Smrg
46260bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
46270bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
46280bb88ba4Smrg		fi
46290bb88ba4Smrg
46300bb88ba4Smrg		CFLAGS="$CFLAGS -Wformat"
46310bb88ba4Smrg
4632acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
4633acd6767fSmrg$as_echo_n "checking if $CC supports-Wformat... " >&6; }
46340bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wformat
46350bb88ba4Smrg		if eval \${$cacheid+:} false; then :
46360bb88ba4Smrg  $as_echo_n "(cached) " >&6
46370bb88ba4Smrgelse
46380bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46390bb88ba4Smrg/* end confdefs.h.  */
46400bb88ba4Smrgint i;
46410bb88ba4Smrgint
46420bb88ba4Smrgmain ()
46430bb88ba4Smrg{
46440bb88ba4Smrg
46450bb88ba4Smrg  ;
46460bb88ba4Smrg  return 0;
46470bb88ba4Smrg}
46480bb88ba4Smrg_ACEOF
46490bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
46500bb88ba4Smrg  eval $cacheid=yes
46510bb88ba4Smrgelse
46520bb88ba4Smrg  eval $cacheid=no
46530bb88ba4Smrgfi
46540bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
46550bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
46560bb88ba4Smrgfi
46570bb88ba4Smrg
46580bb88ba4Smrg
46590bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
46600bb88ba4Smrg
46610bb88ba4Smrg		eval supported=\$$cacheid
46620bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
46630bb88ba4Smrg$as_echo "$supported" >&6; }
46640bb88ba4Smrg		if test "$supported" = "yes" ; then
46650bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
46660bb88ba4Smrg			found="yes"
46670bb88ba4Smrg		fi
46680bb88ba4Smrg	fi
46690bb88ba4Smrg
46700bb88ba4Smrg
46710bb88ba4Smrg
46720bb88ba4Smrg
46730bb88ba4Smrg
46740bb88ba4Smrg
46750bb88ba4Smrg
46760bb88ba4Smrg
46770bb88ba4Smrg
46780bb88ba4Smrg
46790bb88ba4Smrg
46800bb88ba4Smrg
46810bb88ba4Smrg
46820bb88ba4Smrg
46830bb88ba4Smrg
46840bb88ba4Smrg
46850bb88ba4Smrg
46860bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
46870bb88ba4Smrg
46880bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
46890bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
46900bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
46910bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
46920bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
46930bb88ba4Smrg  $as_echo_n "(cached) " >&6
46940bb88ba4Smrgelse
46950bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46960bb88ba4Smrg/* end confdefs.h.  */
46970bb88ba4Smrgint i;
46980bb88ba4Smrg_ACEOF
46990bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
47000bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
47010bb88ba4Smrgelse
47020bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
47030bb88ba4Smrgfi
47040bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47050bb88ba4Smrgfi
47060bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
47070bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
47080bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
47090bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
47100bb88ba4Smrgfi
47110bb88ba4Smrg
47120bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
47130bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
47140bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
47150bb88ba4Smrg	fi
47160bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
47170bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
47180bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
47190bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
47200bb88ba4Smrg  $as_echo_n "(cached) " >&6
47210bb88ba4Smrgelse
47220bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47230bb88ba4Smrg/* end confdefs.h.  */
47240bb88ba4Smrgint i;
47250bb88ba4Smrg_ACEOF
47260bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
47270bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
47280bb88ba4Smrgelse
47290bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
47300bb88ba4Smrgfi
47310bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47320bb88ba4Smrgfi
47330bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
47340bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
47350bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
47360bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
47370bb88ba4Smrgfi
47380bb88ba4Smrg
47390bb88ba4Smrgfound="no"
47400bb88ba4Smrg
47410bb88ba4Smrg	if test $found = "no" ; then
47420bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
47430bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
47440bb88ba4Smrg		fi
47450bb88ba4Smrg
47460bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
47470bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
47480bb88ba4Smrg		fi
47490bb88ba4Smrg
47500bb88ba4Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
47510bb88ba4Smrg
4752acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
4753acd6767fSmrg$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
47540bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
47550bb88ba4Smrg		if eval \${$cacheid+:} false; then :
47560bb88ba4Smrg  $as_echo_n "(cached) " >&6
47570bb88ba4Smrgelse
47580bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47590bb88ba4Smrg/* end confdefs.h.  */
47600bb88ba4Smrgint i;
47610bb88ba4Smrgint
47620bb88ba4Smrgmain ()
47630bb88ba4Smrg{
47640bb88ba4Smrg
47650bb88ba4Smrg  ;
47660bb88ba4Smrg  return 0;
47670bb88ba4Smrg}
47680bb88ba4Smrg_ACEOF
47690bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
47700bb88ba4Smrg  eval $cacheid=yes
47710bb88ba4Smrgelse
47720bb88ba4Smrg  eval $cacheid=no
47730bb88ba4Smrgfi
47740bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
47750bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
47760bb88ba4Smrgfi
47770bb88ba4Smrg
47780bb88ba4Smrg
47790bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
47800bb88ba4Smrg
47810bb88ba4Smrg		eval supported=\$$cacheid
47820bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
47830bb88ba4Smrg$as_echo "$supported" >&6; }
47840bb88ba4Smrg		if test "$supported" = "yes" ; then
47850bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
47860bb88ba4Smrg			found="yes"
47870bb88ba4Smrg		fi
47880bb88ba4Smrg	fi
47890bb88ba4Smrg
47900bb88ba4Smrg
47910bb88ba4Smrg
47920bb88ba4Smrg
47930bb88ba4Smrg
47940bb88ba4Smrg
47950bb88ba4Smrg
47960bb88ba4Smrg
47970bb88ba4Smrg
47980bb88ba4Smrg
47990bb88ba4Smrg
48000bb88ba4Smrg
48010bb88ba4Smrg
48020bb88ba4Smrg
48030bb88ba4Smrg
48040bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
48050bb88ba4Smrg
48060bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
48070bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
48080bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
48090bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
48100bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
48110bb88ba4Smrg  $as_echo_n "(cached) " >&6
48120bb88ba4Smrgelse
48130bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48140bb88ba4Smrg/* end confdefs.h.  */
48150bb88ba4Smrgint i;
48160bb88ba4Smrg_ACEOF
48170bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
48180bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
48190bb88ba4Smrgelse
48200bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
48210bb88ba4Smrgfi
48220bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48230bb88ba4Smrgfi
48240bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
48250bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
48260bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
48270bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
48280bb88ba4Smrgfi
48290bb88ba4Smrg
48300bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
48310bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
48320bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
48330bb88ba4Smrg	fi
48340bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
48350bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
48360bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
48370bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
48380bb88ba4Smrg  $as_echo_n "(cached) " >&6
48390bb88ba4Smrgelse
48400bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48410bb88ba4Smrg/* end confdefs.h.  */
48420bb88ba4Smrgint i;
48430bb88ba4Smrg_ACEOF
48440bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
48450bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
48460bb88ba4Smrgelse
48470bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
48480bb88ba4Smrgfi
48490bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48500bb88ba4Smrgfi
48510bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
48520bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
48530bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
48540bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
48550bb88ba4Smrgfi
48560bb88ba4Smrg
48570bb88ba4Smrgfound="no"
48580bb88ba4Smrg
48590bb88ba4Smrg	if test $found = "no" ; then
48600bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
48610bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
48620bb88ba4Smrg		fi
48630bb88ba4Smrg
48640bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
48650bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
48660bb88ba4Smrg		fi
48670bb88ba4Smrg
48680bb88ba4Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
48690bb88ba4Smrg
4870acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
4871acd6767fSmrg$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
48720bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
48730bb88ba4Smrg		if eval \${$cacheid+:} false; then :
48740bb88ba4Smrg  $as_echo_n "(cached) " >&6
48750bb88ba4Smrgelse
48760bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48770bb88ba4Smrg/* end confdefs.h.  */
48780bb88ba4Smrgint i;
48790bb88ba4Smrgint
48800bb88ba4Smrgmain ()
48810bb88ba4Smrg{
48820bb88ba4Smrg
48830bb88ba4Smrg  ;
48840bb88ba4Smrg  return 0;
48850bb88ba4Smrg}
48860bb88ba4Smrg_ACEOF
48870bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
48880bb88ba4Smrg  eval $cacheid=yes
48890bb88ba4Smrgelse
48900bb88ba4Smrg  eval $cacheid=no
48910bb88ba4Smrgfi
48920bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
48930bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
48940bb88ba4Smrgfi
48950bb88ba4Smrg
48960bb88ba4Smrg
48970bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
48980bb88ba4Smrg
48990bb88ba4Smrg		eval supported=\$$cacheid
49000bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
49010bb88ba4Smrg$as_echo "$supported" >&6; }
49020bb88ba4Smrg		if test "$supported" = "yes" ; then
49030bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
49040bb88ba4Smrg			found="yes"
49050bb88ba4Smrg		fi
49060bb88ba4Smrg	fi
49070bb88ba4Smrg
49080bb88ba4Smrg
49090bb88ba4Smrg
49100bb88ba4Smrg
49110bb88ba4Smrg
49120bb88ba4Smrg
49130bb88ba4Smrg
49140bb88ba4Smrg
49150bb88ba4Smrg
49160bb88ba4Smrg
49170bb88ba4Smrg
49180bb88ba4Smrg
49190bb88ba4Smrg
49200bb88ba4Smrg
49210bb88ba4Smrg
49220bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
49230bb88ba4Smrg
49240bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
49250bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49260bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
49270bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
49280bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
49290bb88ba4Smrg  $as_echo_n "(cached) " >&6
49300bb88ba4Smrgelse
49310bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49320bb88ba4Smrg/* end confdefs.h.  */
49330bb88ba4Smrgint i;
49340bb88ba4Smrg_ACEOF
49350bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
49360bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
49370bb88ba4Smrgelse
49380bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
49390bb88ba4Smrgfi
49400bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49410bb88ba4Smrgfi
49420bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
49430bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
49440bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
49450bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
49460bb88ba4Smrgfi
49470bb88ba4Smrg
49480bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
49490bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
49500bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49510bb88ba4Smrg	fi
49520bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
49530bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
49540bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
49550bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
49560bb88ba4Smrg  $as_echo_n "(cached) " >&6
49570bb88ba4Smrgelse
49580bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49590bb88ba4Smrg/* end confdefs.h.  */
49600bb88ba4Smrgint i;
49610bb88ba4Smrg_ACEOF
49620bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
49630bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
49640bb88ba4Smrgelse
49650bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
49660bb88ba4Smrgfi
49670bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49680bb88ba4Smrgfi
49690bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
49700bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
49710bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
49720bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
49730bb88ba4Smrgfi
49740bb88ba4Smrg
49750bb88ba4Smrgfound="no"
49760bb88ba4Smrg
49770bb88ba4Smrg	if test $found = "no" ; then
49780bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
49790bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49800bb88ba4Smrg		fi
49810bb88ba4Smrg
49820bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
49830bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
49840bb88ba4Smrg		fi
49850bb88ba4Smrg
49860bb88ba4Smrg		CFLAGS="$CFLAGS -Wnested-externs"
49870bb88ba4Smrg
4988acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
4989acd6767fSmrg$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
49900bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
49910bb88ba4Smrg		if eval \${$cacheid+:} false; then :
49920bb88ba4Smrg  $as_echo_n "(cached) " >&6
49930bb88ba4Smrgelse
49940bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49950bb88ba4Smrg/* end confdefs.h.  */
49960bb88ba4Smrgint i;
49970bb88ba4Smrgint
49980bb88ba4Smrgmain ()
49990bb88ba4Smrg{
50000bb88ba4Smrg
50010bb88ba4Smrg  ;
50020bb88ba4Smrg  return 0;
50030bb88ba4Smrg}
50040bb88ba4Smrg_ACEOF
50050bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
50060bb88ba4Smrg  eval $cacheid=yes
50070bb88ba4Smrgelse
50080bb88ba4Smrg  eval $cacheid=no
50090bb88ba4Smrgfi
50100bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
50110bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
50120bb88ba4Smrgfi
50130bb88ba4Smrg
50140bb88ba4Smrg
50150bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
50160bb88ba4Smrg
50170bb88ba4Smrg		eval supported=\$$cacheid
50180bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
50190bb88ba4Smrg$as_echo "$supported" >&6; }
50200bb88ba4Smrg		if test "$supported" = "yes" ; then
50210bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
50220bb88ba4Smrg			found="yes"
50230bb88ba4Smrg		fi
50240bb88ba4Smrg	fi
50250bb88ba4Smrg
50260bb88ba4Smrg
50270bb88ba4Smrg
50280bb88ba4Smrg
50290bb88ba4Smrg
50300bb88ba4Smrg
50310bb88ba4Smrg
50320bb88ba4Smrg
50330bb88ba4Smrg
50340bb88ba4Smrg
50350bb88ba4Smrg
50360bb88ba4Smrg
50370bb88ba4Smrg
50380bb88ba4Smrg
50390bb88ba4Smrg
50400bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
50410bb88ba4Smrg
50420bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
50430bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50440bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
50450bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
50460bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
50470bb88ba4Smrg  $as_echo_n "(cached) " >&6
50480bb88ba4Smrgelse
50490bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50500bb88ba4Smrg/* end confdefs.h.  */
50510bb88ba4Smrgint i;
50520bb88ba4Smrg_ACEOF
50530bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
50540bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
50550bb88ba4Smrgelse
50560bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
50570bb88ba4Smrgfi
50580bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50590bb88ba4Smrgfi
50600bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
50610bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
50620bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
50630bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
50640bb88ba4Smrgfi
50650bb88ba4Smrg
50660bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
50670bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50680bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50690bb88ba4Smrg	fi
50700bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
50710bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
50720bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
50730bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
50740bb88ba4Smrg  $as_echo_n "(cached) " >&6
50750bb88ba4Smrgelse
50760bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50770bb88ba4Smrg/* end confdefs.h.  */
50780bb88ba4Smrgint i;
50790bb88ba4Smrg_ACEOF
50800bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
50810bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
50820bb88ba4Smrgelse
50830bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
50840bb88ba4Smrgfi
50850bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50860bb88ba4Smrgfi
50870bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
50880bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
50890bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
50900bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
50910bb88ba4Smrgfi
50920bb88ba4Smrg
50930bb88ba4Smrgfound="no"
50940bb88ba4Smrg
50950bb88ba4Smrg	if test $found = "no" ; then
50960bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
50970bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50980bb88ba4Smrg		fi
50990bb88ba4Smrg
51000bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
51010bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51020bb88ba4Smrg		fi
51030bb88ba4Smrg
51040bb88ba4Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
51050bb88ba4Smrg
5106acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5107acd6767fSmrg$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
51080bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
51090bb88ba4Smrg		if eval \${$cacheid+:} false; then :
51100bb88ba4Smrg  $as_echo_n "(cached) " >&6
51110bb88ba4Smrgelse
51120bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51130bb88ba4Smrg/* end confdefs.h.  */
51140bb88ba4Smrgint i;
51150bb88ba4Smrgint
51160bb88ba4Smrgmain ()
51170bb88ba4Smrg{
51180bb88ba4Smrg
51190bb88ba4Smrg  ;
51200bb88ba4Smrg  return 0;
51210bb88ba4Smrg}
51220bb88ba4Smrg_ACEOF
51230bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
51240bb88ba4Smrg  eval $cacheid=yes
51250bb88ba4Smrgelse
51260bb88ba4Smrg  eval $cacheid=no
51270bb88ba4Smrgfi
51280bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
51290bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
51300bb88ba4Smrgfi
51310bb88ba4Smrg
51320bb88ba4Smrg
51330bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
51340bb88ba4Smrg
51350bb88ba4Smrg		eval supported=\$$cacheid
51360bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
51370bb88ba4Smrg$as_echo "$supported" >&6; }
51380bb88ba4Smrg		if test "$supported" = "yes" ; then
51390bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
51400bb88ba4Smrg			found="yes"
51410bb88ba4Smrg		fi
51420bb88ba4Smrg	fi
51430bb88ba4Smrg
51440bb88ba4Smrg
51450bb88ba4Smrg
51460bb88ba4Smrg
51470bb88ba4Smrg
51480bb88ba4Smrg
51490bb88ba4Smrg
51500bb88ba4Smrg
51510bb88ba4Smrg
51520bb88ba4Smrg
51530bb88ba4Smrg
51540bb88ba4Smrg
51550bb88ba4Smrg
51560bb88ba4Smrg
51570bb88ba4Smrg
51580bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
51590bb88ba4Smrg
51600bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
51610bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51620bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
51630bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
51640bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
51650bb88ba4Smrg  $as_echo_n "(cached) " >&6
51660bb88ba4Smrgelse
51670bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51680bb88ba4Smrg/* end confdefs.h.  */
51690bb88ba4Smrgint i;
51700bb88ba4Smrg_ACEOF
51710bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
51720bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
51730bb88ba4Smrgelse
51740bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
51750bb88ba4Smrgfi
51760bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51770bb88ba4Smrgfi
51780bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
51790bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
51800bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
51810bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
51820bb88ba4Smrgfi
51830bb88ba4Smrg
51840bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
51850bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51860bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51870bb88ba4Smrg	fi
51880bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51890bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
51900bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
51910bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
51920bb88ba4Smrg  $as_echo_n "(cached) " >&6
51930bb88ba4Smrgelse
51940bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51950bb88ba4Smrg/* end confdefs.h.  */
51960bb88ba4Smrgint i;
51970bb88ba4Smrg_ACEOF
51980bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
51990bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
52000bb88ba4Smrgelse
52010bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
52020bb88ba4Smrgfi
52030bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52040bb88ba4Smrgfi
52050bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
52060bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
52070bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
52080bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
52090bb88ba4Smrgfi
52100bb88ba4Smrg
52110bb88ba4Smrgfound="no"
52120bb88ba4Smrg
52130bb88ba4Smrg	if test $found = "no" ; then
52140bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
52150bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52160bb88ba4Smrg		fi
52170bb88ba4Smrg
52180bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
52190bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52200bb88ba4Smrg		fi
52210bb88ba4Smrg
52220bb88ba4Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
52230bb88ba4Smrg
5224acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5225acd6767fSmrg$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
52260bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
52270bb88ba4Smrg		if eval \${$cacheid+:} false; then :
52280bb88ba4Smrg  $as_echo_n "(cached) " >&6
52290bb88ba4Smrgelse
52300bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52310bb88ba4Smrg/* end confdefs.h.  */
52320bb88ba4Smrgint i;
52330bb88ba4Smrgint
52340bb88ba4Smrgmain ()
52350bb88ba4Smrg{
52360bb88ba4Smrg
52370bb88ba4Smrg  ;
52380bb88ba4Smrg  return 0;
52390bb88ba4Smrg}
52400bb88ba4Smrg_ACEOF
52410bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
52420bb88ba4Smrg  eval $cacheid=yes
52430bb88ba4Smrgelse
52440bb88ba4Smrg  eval $cacheid=no
52450bb88ba4Smrgfi
52460bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
52470bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
52480bb88ba4Smrgfi
52490bb88ba4Smrg
52500bb88ba4Smrg
52510bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
52520bb88ba4Smrg
52530bb88ba4Smrg		eval supported=\$$cacheid
52540bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
52550bb88ba4Smrg$as_echo "$supported" >&6; }
52560bb88ba4Smrg		if test "$supported" = "yes" ; then
52570bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
52580bb88ba4Smrg			found="yes"
52590bb88ba4Smrg		fi
52600bb88ba4Smrg	fi
52610bb88ba4Smrg
52620bb88ba4Smrg
52630bb88ba4Smrg
52640bb88ba4Smrg
52650bb88ba4Smrg
52660bb88ba4Smrg
52670bb88ba4Smrg
52680bb88ba4Smrg
52690bb88ba4Smrg
52700bb88ba4Smrg
52710bb88ba4Smrg
52720bb88ba4Smrg
52730bb88ba4Smrg
52740bb88ba4Smrg
52750bb88ba4Smrg
52760bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
52770bb88ba4Smrg
52780bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
52790bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52800bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
52810bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
52820bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
52830bb88ba4Smrg  $as_echo_n "(cached) " >&6
52840bb88ba4Smrgelse
52850bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52860bb88ba4Smrg/* end confdefs.h.  */
52870bb88ba4Smrgint i;
52880bb88ba4Smrg_ACEOF
52890bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
52900bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
52910bb88ba4Smrgelse
52920bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
52930bb88ba4Smrgfi
52940bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52950bb88ba4Smrgfi
52960bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
52970bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
52980bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
52990bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
53000bb88ba4Smrgfi
53010bb88ba4Smrg
53020bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
53030bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
53040bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53050bb88ba4Smrg	fi
53060bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53070bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
53080bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
53090bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
53100bb88ba4Smrg  $as_echo_n "(cached) " >&6
53110bb88ba4Smrgelse
53120bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53130bb88ba4Smrg/* end confdefs.h.  */
53140bb88ba4Smrgint i;
53150bb88ba4Smrg_ACEOF
53160bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
53170bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
53180bb88ba4Smrgelse
53190bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
53200bb88ba4Smrgfi
53210bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53220bb88ba4Smrgfi
53230bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
53240bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
53250bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
53260bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
53270bb88ba4Smrgfi
53280bb88ba4Smrg
53290bb88ba4Smrgfound="no"
53300bb88ba4Smrg
53310bb88ba4Smrg	if test $found = "no" ; then
53320bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
53330bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53340bb88ba4Smrg		fi
53350bb88ba4Smrg
53360bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
53370bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53380bb88ba4Smrg		fi
53390bb88ba4Smrg
53400bb88ba4Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
53410bb88ba4Smrg
5342acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5343acd6767fSmrg$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
53440bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
53450bb88ba4Smrg		if eval \${$cacheid+:} false; then :
53460bb88ba4Smrg  $as_echo_n "(cached) " >&6
53470bb88ba4Smrgelse
53480bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53490bb88ba4Smrg/* end confdefs.h.  */
53500bb88ba4Smrgint i;
53510bb88ba4Smrgint
53520bb88ba4Smrgmain ()
53530bb88ba4Smrg{
53540bb88ba4Smrg
53550bb88ba4Smrg  ;
53560bb88ba4Smrg  return 0;
53570bb88ba4Smrg}
53580bb88ba4Smrg_ACEOF
53590bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
53600bb88ba4Smrg  eval $cacheid=yes
53610bb88ba4Smrgelse
53620bb88ba4Smrg  eval $cacheid=no
53630bb88ba4Smrgfi
53640bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
53650bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
53660bb88ba4Smrgfi
53670bb88ba4Smrg
53680bb88ba4Smrg
53690bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
53700bb88ba4Smrg
53710bb88ba4Smrg		eval supported=\$$cacheid
53720bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
53730bb88ba4Smrg$as_echo "$supported" >&6; }
53740bb88ba4Smrg		if test "$supported" = "yes" ; then
53750bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
53760bb88ba4Smrg			found="yes"
53770bb88ba4Smrg		fi
53780bb88ba4Smrg	fi
53790bb88ba4Smrg
53800bb88ba4Smrg
53810bb88ba4Smrg
53820bb88ba4Smrg
53830bb88ba4Smrg
53840bb88ba4Smrg# This chunk adds additional warnings that could catch undesired effects.
53850bb88ba4Smrg
53860bb88ba4Smrg
53870bb88ba4Smrg
53880bb88ba4Smrg
53890bb88ba4Smrg
53900bb88ba4Smrg
53910bb88ba4Smrg
53920bb88ba4Smrg
53930bb88ba4Smrg
53940bb88ba4Smrg
53950bb88ba4Smrg
53960bb88ba4Smrg
53970bb88ba4Smrg
53980bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
53990bb88ba4Smrg
54000bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
54010bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54020bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
54030bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
54040bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
54050bb88ba4Smrg  $as_echo_n "(cached) " >&6
54060bb88ba4Smrgelse
54070bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54080bb88ba4Smrg/* end confdefs.h.  */
54090bb88ba4Smrgint i;
54100bb88ba4Smrg_ACEOF
54110bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
54120bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
54130bb88ba4Smrgelse
54140bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
54150bb88ba4Smrgfi
54160bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54170bb88ba4Smrgfi
54180bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
54190bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
54200bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
54210bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
54220bb88ba4Smrgfi
54230bb88ba4Smrg
54240bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
54250bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54260bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54270bb88ba4Smrg	fi
54280bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54290bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
54300bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
54310bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
54320bb88ba4Smrg  $as_echo_n "(cached) " >&6
54330bb88ba4Smrgelse
54340bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54350bb88ba4Smrg/* end confdefs.h.  */
54360bb88ba4Smrgint i;
54370bb88ba4Smrg_ACEOF
54380bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
54390bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
54400bb88ba4Smrgelse
54410bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
54420bb88ba4Smrgfi
54430bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54440bb88ba4Smrgfi
54450bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
54460bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
54470bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
54480bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
54490bb88ba4Smrgfi
54500bb88ba4Smrg
54510bb88ba4Smrgfound="no"
54520bb88ba4Smrg
54530bb88ba4Smrg	if test $found = "no" ; then
54540bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
54550bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54560bb88ba4Smrg		fi
54570bb88ba4Smrg
54580bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
54590bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54600bb88ba4Smrg		fi
54610bb88ba4Smrg
54620bb88ba4Smrg		CFLAGS="$CFLAGS -Wunused"
54630bb88ba4Smrg
5464acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5465acd6767fSmrg$as_echo_n "checking if $CC supports-Wunused... " >&6; }
54660bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wunused
54670bb88ba4Smrg		if eval \${$cacheid+:} false; then :
54680bb88ba4Smrg  $as_echo_n "(cached) " >&6
54690bb88ba4Smrgelse
54700bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54710bb88ba4Smrg/* end confdefs.h.  */
54720bb88ba4Smrgint i;
54730bb88ba4Smrgint
54740bb88ba4Smrgmain ()
54750bb88ba4Smrg{
54760bb88ba4Smrg
54770bb88ba4Smrg  ;
54780bb88ba4Smrg  return 0;
54790bb88ba4Smrg}
54800bb88ba4Smrg_ACEOF
54810bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
54820bb88ba4Smrg  eval $cacheid=yes
54830bb88ba4Smrgelse
54840bb88ba4Smrg  eval $cacheid=no
54850bb88ba4Smrgfi
54860bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
54870bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
54880bb88ba4Smrgfi
54890bb88ba4Smrg
54900bb88ba4Smrg
54910bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
54920bb88ba4Smrg
54930bb88ba4Smrg		eval supported=\$$cacheid
54940bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
54950bb88ba4Smrg$as_echo "$supported" >&6; }
54960bb88ba4Smrg		if test "$supported" = "yes" ; then
54970bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
54980bb88ba4Smrg			found="yes"
54990bb88ba4Smrg		fi
55000bb88ba4Smrg	fi
55010bb88ba4Smrg
55020bb88ba4Smrg
55030bb88ba4Smrg
55040bb88ba4Smrg
55050bb88ba4Smrg
55060bb88ba4Smrg
55070bb88ba4Smrg
55080bb88ba4Smrg
55090bb88ba4Smrg
55100bb88ba4Smrg
55110bb88ba4Smrg
55120bb88ba4Smrg
55130bb88ba4Smrg
55140bb88ba4Smrg
55150bb88ba4Smrg
55160bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
55170bb88ba4Smrg
55180bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
55190bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55200bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
55210bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
55220bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
55230bb88ba4Smrg  $as_echo_n "(cached) " >&6
55240bb88ba4Smrgelse
55250bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55260bb88ba4Smrg/* end confdefs.h.  */
55270bb88ba4Smrgint i;
55280bb88ba4Smrg_ACEOF
55290bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
55300bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
55310bb88ba4Smrgelse
55320bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
55330bb88ba4Smrgfi
55340bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55350bb88ba4Smrgfi
55360bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
55370bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
55380bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
55390bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
55400bb88ba4Smrgfi
55410bb88ba4Smrg
55420bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
55430bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55440bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55450bb88ba4Smrg	fi
55460bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55470bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
55480bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
55490bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
55500bb88ba4Smrg  $as_echo_n "(cached) " >&6
55510bb88ba4Smrgelse
55520bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55530bb88ba4Smrg/* end confdefs.h.  */
55540bb88ba4Smrgint i;
55550bb88ba4Smrg_ACEOF
55560bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
55570bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
55580bb88ba4Smrgelse
55590bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
55600bb88ba4Smrgfi
55610bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55620bb88ba4Smrgfi
55630bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
55640bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
55650bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
55660bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
55670bb88ba4Smrgfi
55680bb88ba4Smrg
55690bb88ba4Smrgfound="no"
55700bb88ba4Smrg
55710bb88ba4Smrg	if test $found = "no" ; then
55720bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
55730bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55740bb88ba4Smrg		fi
55750bb88ba4Smrg
55760bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
55770bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55780bb88ba4Smrg		fi
55790bb88ba4Smrg
55800bb88ba4Smrg		CFLAGS="$CFLAGS -Wuninitialized"
55810bb88ba4Smrg
5582acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5583acd6767fSmrg$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
55840bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
55850bb88ba4Smrg		if eval \${$cacheid+:} false; then :
55860bb88ba4Smrg  $as_echo_n "(cached) " >&6
55870bb88ba4Smrgelse
55880bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55890bb88ba4Smrg/* end confdefs.h.  */
55900bb88ba4Smrgint i;
55910bb88ba4Smrgint
55920bb88ba4Smrgmain ()
55930bb88ba4Smrg{
55940bb88ba4Smrg
55950bb88ba4Smrg  ;
55960bb88ba4Smrg  return 0;
55970bb88ba4Smrg}
55980bb88ba4Smrg_ACEOF
55990bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
56000bb88ba4Smrg  eval $cacheid=yes
56010bb88ba4Smrgelse
56020bb88ba4Smrg  eval $cacheid=no
56030bb88ba4Smrgfi
56040bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
56050bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
56060bb88ba4Smrgfi
56070bb88ba4Smrg
56080bb88ba4Smrg
56090bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
56100bb88ba4Smrg
56110bb88ba4Smrg		eval supported=\$$cacheid
56120bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
56130bb88ba4Smrg$as_echo "$supported" >&6; }
56140bb88ba4Smrg		if test "$supported" = "yes" ; then
56150bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
56160bb88ba4Smrg			found="yes"
56170bb88ba4Smrg		fi
56180bb88ba4Smrg	fi
56190bb88ba4Smrg
56200bb88ba4Smrg
56210bb88ba4Smrg
56220bb88ba4Smrg
56230bb88ba4Smrg
56240bb88ba4Smrg
56250bb88ba4Smrg
56260bb88ba4Smrg
56270bb88ba4Smrg
56280bb88ba4Smrg
56290bb88ba4Smrg
56300bb88ba4Smrg
56310bb88ba4Smrg
56320bb88ba4Smrg
56330bb88ba4Smrg
56340bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
56350bb88ba4Smrg
56360bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
56370bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56380bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
56390bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
56400bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
56410bb88ba4Smrg  $as_echo_n "(cached) " >&6
56420bb88ba4Smrgelse
56430bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56440bb88ba4Smrg/* end confdefs.h.  */
56450bb88ba4Smrgint i;
56460bb88ba4Smrg_ACEOF
56470bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
56480bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
56490bb88ba4Smrgelse
56500bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
56510bb88ba4Smrgfi
56520bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56530bb88ba4Smrgfi
56540bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
56550bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
56560bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
56570bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
56580bb88ba4Smrgfi
56590bb88ba4Smrg
56600bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
56610bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56620bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56630bb88ba4Smrg	fi
56640bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56650bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
56660bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
56670bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
56680bb88ba4Smrg  $as_echo_n "(cached) " >&6
56690bb88ba4Smrgelse
56700bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56710bb88ba4Smrg/* end confdefs.h.  */
56720bb88ba4Smrgint i;
56730bb88ba4Smrg_ACEOF
56740bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
56750bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
56760bb88ba4Smrgelse
56770bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
56780bb88ba4Smrgfi
56790bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56800bb88ba4Smrgfi
56810bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
56820bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
56830bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
56840bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
56850bb88ba4Smrgfi
56860bb88ba4Smrg
56870bb88ba4Smrgfound="no"
56880bb88ba4Smrg
56890bb88ba4Smrg	if test $found = "no" ; then
56900bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
56910bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56920bb88ba4Smrg		fi
56930bb88ba4Smrg
56940bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
56950bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56960bb88ba4Smrg		fi
56970bb88ba4Smrg
56980bb88ba4Smrg		CFLAGS="$CFLAGS -Wshadow"
56990bb88ba4Smrg
5700acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
5701acd6767fSmrg$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
57020bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wshadow
57030bb88ba4Smrg		if eval \${$cacheid+:} false; then :
57040bb88ba4Smrg  $as_echo_n "(cached) " >&6
57050bb88ba4Smrgelse
57060bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57070bb88ba4Smrg/* end confdefs.h.  */
57080bb88ba4Smrgint i;
57090bb88ba4Smrgint
57100bb88ba4Smrgmain ()
57110bb88ba4Smrg{
57120bb88ba4Smrg
57130bb88ba4Smrg  ;
57140bb88ba4Smrg  return 0;
57150bb88ba4Smrg}
57160bb88ba4Smrg_ACEOF
57170bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
57180bb88ba4Smrg  eval $cacheid=yes
57190bb88ba4Smrgelse
57200bb88ba4Smrg  eval $cacheid=no
57210bb88ba4Smrgfi
57220bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
57230bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
57240bb88ba4Smrgfi
57250bb88ba4Smrg
57260bb88ba4Smrg
57270bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
57280bb88ba4Smrg
57290bb88ba4Smrg		eval supported=\$$cacheid
57300bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
57310bb88ba4Smrg$as_echo "$supported" >&6; }
57320bb88ba4Smrg		if test "$supported" = "yes" ; then
57330bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
57340bb88ba4Smrg			found="yes"
57350bb88ba4Smrg		fi
57360bb88ba4Smrg	fi
57370bb88ba4Smrg
57380bb88ba4Smrg
57390bb88ba4Smrg
57400bb88ba4Smrg
57410bb88ba4Smrg
57420bb88ba4Smrg
57430bb88ba4Smrg
57440bb88ba4Smrg
57450bb88ba4Smrg
57460bb88ba4Smrg
57470bb88ba4Smrg
57480bb88ba4Smrg
57490bb88ba4Smrg
57500bb88ba4Smrg
57510bb88ba4Smrg
57520bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
57530bb88ba4Smrg
57540bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
57550bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57560bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
57570bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
57580bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
57590bb88ba4Smrg  $as_echo_n "(cached) " >&6
57600bb88ba4Smrgelse
57610bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57620bb88ba4Smrg/* end confdefs.h.  */
57630bb88ba4Smrgint i;
57640bb88ba4Smrg_ACEOF
57650bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
57660bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
57670bb88ba4Smrgelse
57680bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
57690bb88ba4Smrgfi
57700bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57710bb88ba4Smrgfi
57720bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
57730bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
57740bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
57750bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
57760bb88ba4Smrgfi
57770bb88ba4Smrg
57780bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
57790bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57800bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57810bb88ba4Smrg	fi
57820bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57830bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
57840bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
57850bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
57860bb88ba4Smrg  $as_echo_n "(cached) " >&6
57870bb88ba4Smrgelse
57880bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57890bb88ba4Smrg/* end confdefs.h.  */
57900bb88ba4Smrgint i;
57910bb88ba4Smrg_ACEOF
57920bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
57930bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
57940bb88ba4Smrgelse
57950bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
57960bb88ba4Smrgfi
57970bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57980bb88ba4Smrgfi
57990bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
58000bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
58010bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
58020bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
58030bb88ba4Smrgfi
58040bb88ba4Smrg
58050bb88ba4Smrgfound="no"
58060bb88ba4Smrg
58070bb88ba4Smrg	if test $found = "no" ; then
58080bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
58090bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58100bb88ba4Smrg		fi
58110bb88ba4Smrg
58120bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
58130bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
58140bb88ba4Smrg		fi
58150bb88ba4Smrg
58160bb88ba4Smrg		CFLAGS="$CFLAGS -Wcast-qual"
58170bb88ba4Smrg
5818acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
5819acd6767fSmrg$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
58200bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wcast_qual
58210bb88ba4Smrg		if eval \${$cacheid+:} false; then :
58220bb88ba4Smrg  $as_echo_n "(cached) " >&6
58230bb88ba4Smrgelse
58240bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58250bb88ba4Smrg/* end confdefs.h.  */
58260bb88ba4Smrgint i;
58270bb88ba4Smrgint
58280bb88ba4Smrgmain ()
58290bb88ba4Smrg{
58300bb88ba4Smrg
58310bb88ba4Smrg  ;
58320bb88ba4Smrg  return 0;
58330bb88ba4Smrg}
58340bb88ba4Smrg_ACEOF
58350bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
58360bb88ba4Smrg  eval $cacheid=yes
58370bb88ba4Smrgelse
58380bb88ba4Smrg  eval $cacheid=no
58390bb88ba4Smrgfi
58400bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
58410bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
58420bb88ba4Smrgfi
58430bb88ba4Smrg
58440bb88ba4Smrg
58450bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
58460bb88ba4Smrg
58470bb88ba4Smrg		eval supported=\$$cacheid
58480bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
58490bb88ba4Smrg$as_echo "$supported" >&6; }
58500bb88ba4Smrg		if test "$supported" = "yes" ; then
58510bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
58520bb88ba4Smrg			found="yes"
58530bb88ba4Smrg		fi
58540bb88ba4Smrg	fi
58550bb88ba4Smrg
58560bb88ba4Smrg
58570bb88ba4Smrg
58580bb88ba4Smrg
58590bb88ba4Smrg
58600bb88ba4Smrg
58610bb88ba4Smrg
58620bb88ba4Smrg
58630bb88ba4Smrg
58640bb88ba4Smrg
58650bb88ba4Smrg
58660bb88ba4Smrg
58670bb88ba4Smrg
58680bb88ba4Smrg
58690bb88ba4Smrg
58700bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
58710bb88ba4Smrg
58720bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
58730bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58740bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
58750bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
58760bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
58770bb88ba4Smrg  $as_echo_n "(cached) " >&6
58780bb88ba4Smrgelse
58790bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58800bb88ba4Smrg/* end confdefs.h.  */
58810bb88ba4Smrgint i;
58820bb88ba4Smrg_ACEOF
58830bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
58840bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
58850bb88ba4Smrgelse
58860bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
58870bb88ba4Smrgfi
58880bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58890bb88ba4Smrgfi
58900bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
58910bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
58920bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
58930bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
58940bb88ba4Smrgfi
58950bb88ba4Smrg
58960bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
58970bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
58980bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58990bb88ba4Smrg	fi
59000bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59010bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
59020bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
59030bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
59040bb88ba4Smrg  $as_echo_n "(cached) " >&6
59050bb88ba4Smrgelse
59060bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59070bb88ba4Smrg/* end confdefs.h.  */
59080bb88ba4Smrgint i;
59090bb88ba4Smrg_ACEOF
59100bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
59110bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
59120bb88ba4Smrgelse
59130bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
59140bb88ba4Smrgfi
59150bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59160bb88ba4Smrgfi
59170bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
59180bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
59190bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
59200bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
59210bb88ba4Smrgfi
59220bb88ba4Smrg
59230bb88ba4Smrgfound="no"
59240bb88ba4Smrg
59250bb88ba4Smrg	if test $found = "no" ; then
59260bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
59270bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59280bb88ba4Smrg		fi
59290bb88ba4Smrg
59300bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
59310bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59320bb88ba4Smrg		fi
59330bb88ba4Smrg
59340bb88ba4Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
59350bb88ba4Smrg
5936acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
5937acd6767fSmrg$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
59380bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
59390bb88ba4Smrg		if eval \${$cacheid+:} false; then :
59400bb88ba4Smrg  $as_echo_n "(cached) " >&6
59410bb88ba4Smrgelse
59420bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59430bb88ba4Smrg/* end confdefs.h.  */
59440bb88ba4Smrgint i;
59450bb88ba4Smrgint
59460bb88ba4Smrgmain ()
59470bb88ba4Smrg{
59480bb88ba4Smrg
59490bb88ba4Smrg  ;
59500bb88ba4Smrg  return 0;
59510bb88ba4Smrg}
59520bb88ba4Smrg_ACEOF
59530bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
59540bb88ba4Smrg  eval $cacheid=yes
59550bb88ba4Smrgelse
59560bb88ba4Smrg  eval $cacheid=no
59570bb88ba4Smrgfi
59580bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
59590bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
59600bb88ba4Smrgfi
59610bb88ba4Smrg
59620bb88ba4Smrg
59630bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
59640bb88ba4Smrg
59650bb88ba4Smrg		eval supported=\$$cacheid
59660bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
59670bb88ba4Smrg$as_echo "$supported" >&6; }
59680bb88ba4Smrg		if test "$supported" = "yes" ; then
59690bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
59700bb88ba4Smrg			found="yes"
59710bb88ba4Smrg		fi
59720bb88ba4Smrg	fi
59730bb88ba4Smrg
59740bb88ba4Smrg
59750bb88ba4Smrg
59760bb88ba4Smrg
59770bb88ba4Smrg
59780bb88ba4Smrg
59790bb88ba4Smrg
59800bb88ba4Smrg
59810bb88ba4Smrg
59820bb88ba4Smrg
59830bb88ba4Smrg
59840bb88ba4Smrg
59850bb88ba4Smrg
59860bb88ba4Smrg
59870bb88ba4Smrg
59880bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
59890bb88ba4Smrg
59900bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
59910bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59920bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
59930bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
59940bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
59950bb88ba4Smrg  $as_echo_n "(cached) " >&6
59960bb88ba4Smrgelse
59970bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59980bb88ba4Smrg/* end confdefs.h.  */
59990bb88ba4Smrgint i;
60000bb88ba4Smrg_ACEOF
60010bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
60020bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
60030bb88ba4Smrgelse
60040bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
60050bb88ba4Smrgfi
60060bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60070bb88ba4Smrgfi
60080bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
60090bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
60100bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
60110bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
60120bb88ba4Smrgfi
60130bb88ba4Smrg
60140bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
60150bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60160bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60170bb88ba4Smrg	fi
60180bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60190bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
60200bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
60210bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
60220bb88ba4Smrg  $as_echo_n "(cached) " >&6
60230bb88ba4Smrgelse
60240bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60250bb88ba4Smrg/* end confdefs.h.  */
60260bb88ba4Smrgint i;
60270bb88ba4Smrg_ACEOF
60280bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
60290bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
60300bb88ba4Smrgelse
60310bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
60320bb88ba4Smrgfi
60330bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60340bb88ba4Smrgfi
60350bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
60360bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
60370bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
60380bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
60390bb88ba4Smrgfi
60400bb88ba4Smrg
60410bb88ba4Smrgfound="no"
60420bb88ba4Smrg
60430bb88ba4Smrg	if test $found = "no" ; then
60440bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
60450bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60460bb88ba4Smrg		fi
60470bb88ba4Smrg
60480bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
60490bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60500bb88ba4Smrg		fi
60510bb88ba4Smrg
60520bb88ba4Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
60530bb88ba4Smrg
6054acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6055acd6767fSmrg$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
60560bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
60570bb88ba4Smrg		if eval \${$cacheid+:} false; then :
60580bb88ba4Smrg  $as_echo_n "(cached) " >&6
60590bb88ba4Smrgelse
60600bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60610bb88ba4Smrg/* end confdefs.h.  */
60620bb88ba4Smrgint i;
60630bb88ba4Smrgint
60640bb88ba4Smrgmain ()
60650bb88ba4Smrg{
60660bb88ba4Smrg
60670bb88ba4Smrg  ;
60680bb88ba4Smrg  return 0;
60690bb88ba4Smrg}
60700bb88ba4Smrg_ACEOF
60710bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
60720bb88ba4Smrg  eval $cacheid=yes
60730bb88ba4Smrgelse
60740bb88ba4Smrg  eval $cacheid=no
60750bb88ba4Smrgfi
60760bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
60770bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
60780bb88ba4Smrgfi
60790bb88ba4Smrg
60800bb88ba4Smrg
60810bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
60820bb88ba4Smrg
60830bb88ba4Smrg		eval supported=\$$cacheid
60840bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
60850bb88ba4Smrg$as_echo "$supported" >&6; }
60860bb88ba4Smrg		if test "$supported" = "yes" ; then
60870bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
60880bb88ba4Smrg			found="yes"
60890bb88ba4Smrg		fi
60900bb88ba4Smrg	fi
60910bb88ba4Smrg
60920bb88ba4Smrg
60930bb88ba4Smrg
60940bb88ba4Smrg
60950bb88ba4Smrg
60960bb88ba4Smrg
60970bb88ba4Smrg
60980bb88ba4Smrg
60990bb88ba4Smrg
61000bb88ba4Smrg
61010bb88ba4Smrg
61020bb88ba4Smrg
61030bb88ba4Smrg
61040bb88ba4Smrg
61050bb88ba4Smrg
61060bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
61070bb88ba4Smrg
61080bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
61090bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61100bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
61110bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
61120bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
61130bb88ba4Smrg  $as_echo_n "(cached) " >&6
61140bb88ba4Smrgelse
61150bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61160bb88ba4Smrg/* end confdefs.h.  */
61170bb88ba4Smrgint i;
61180bb88ba4Smrg_ACEOF
61190bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
61200bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
61210bb88ba4Smrgelse
61220bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
61230bb88ba4Smrgfi
61240bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61250bb88ba4Smrgfi
61260bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
61270bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
61280bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
61290bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
61300bb88ba4Smrgfi
61310bb88ba4Smrg
61320bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
61330bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61340bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61350bb88ba4Smrg	fi
61360bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61370bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
61380bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
61390bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
61400bb88ba4Smrg  $as_echo_n "(cached) " >&6
61410bb88ba4Smrgelse
61420bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61430bb88ba4Smrg/* end confdefs.h.  */
61440bb88ba4Smrgint i;
61450bb88ba4Smrg_ACEOF
61460bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
61470bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
61480bb88ba4Smrgelse
61490bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
61500bb88ba4Smrgfi
61510bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61520bb88ba4Smrgfi
61530bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
61540bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
61550bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
61560bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
61570bb88ba4Smrgfi
61580bb88ba4Smrg
61590bb88ba4Smrgfound="no"
61600bb88ba4Smrg
61610bb88ba4Smrg	if test $found = "no" ; then
61620bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
61630bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61640bb88ba4Smrg		fi
61650bb88ba4Smrg
61660bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
61670bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61680bb88ba4Smrg		fi
61690bb88ba4Smrg
61700bb88ba4Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
61710bb88ba4Smrg
6172acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6173acd6767fSmrg$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
61740bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
61750bb88ba4Smrg		if eval \${$cacheid+:} false; then :
61760bb88ba4Smrg  $as_echo_n "(cached) " >&6
61770bb88ba4Smrgelse
61780bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61790bb88ba4Smrg/* end confdefs.h.  */
61800bb88ba4Smrgint i;
61810bb88ba4Smrgint
61820bb88ba4Smrgmain ()
61830bb88ba4Smrg{
61840bb88ba4Smrg
61850bb88ba4Smrg  ;
61860bb88ba4Smrg  return 0;
61870bb88ba4Smrg}
61880bb88ba4Smrg_ACEOF
61890bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
61900bb88ba4Smrg  eval $cacheid=yes
61910bb88ba4Smrgelse
61920bb88ba4Smrg  eval $cacheid=no
61930bb88ba4Smrgfi
61940bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
61950bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
61960bb88ba4Smrgfi
61970bb88ba4Smrg
61980bb88ba4Smrg
61990bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
62000bb88ba4Smrg
62010bb88ba4Smrg		eval supported=\$$cacheid
62020bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
62030bb88ba4Smrg$as_echo "$supported" >&6; }
62040bb88ba4Smrg		if test "$supported" = "yes" ; then
62050bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
62060bb88ba4Smrg			found="yes"
62070bb88ba4Smrg		fi
62080bb88ba4Smrg	fi
62090bb88ba4Smrg
62100bb88ba4Smrg
62110bb88ba4Smrg
62120bb88ba4Smrg# These are currently disabled because they are noisy.  They will be enabled
62130bb88ba4Smrg# in the future once the codebase is sufficiently modernized to silence
62140bb88ba4Smrg# them.  For now, I don't want them to drown out the other warnings.
62150bb88ba4Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
62160bb88ba4Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
62170bb88ba4Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
62180bb88ba4Smrg
62190bb88ba4Smrg# Turn some warnings into errors, so we don't accidently get successful builds
62200bb88ba4Smrg# when there are problems that should be fixed.
62210bb88ba4Smrg
62220bb88ba4Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
62230bb88ba4Smrg
62240bb88ba4Smrg
62250bb88ba4Smrg
62260bb88ba4Smrg
62270bb88ba4Smrg
62280bb88ba4Smrg
62290bb88ba4Smrg
62300bb88ba4Smrg
62310bb88ba4Smrg
62320bb88ba4Smrg
62330bb88ba4Smrg
62340bb88ba4Smrg
62350bb88ba4Smrg
62360bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
62370bb88ba4Smrg
62380bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
62390bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62400bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
62410bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
62420bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
62430bb88ba4Smrg  $as_echo_n "(cached) " >&6
62440bb88ba4Smrgelse
62450bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62460bb88ba4Smrg/* end confdefs.h.  */
62470bb88ba4Smrgint i;
62480bb88ba4Smrg_ACEOF
62490bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
62500bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
62510bb88ba4Smrgelse
62520bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
62530bb88ba4Smrgfi
62540bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62550bb88ba4Smrgfi
62560bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
62570bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
62580bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
62590bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62600bb88ba4Smrgfi
62610bb88ba4Smrg
62620bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
62630bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62640bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62650bb88ba4Smrg	fi
62660bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62670bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
62680bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
62690bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
62700bb88ba4Smrg  $as_echo_n "(cached) " >&6
62710bb88ba4Smrgelse
62720bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62730bb88ba4Smrg/* end confdefs.h.  */
62740bb88ba4Smrgint i;
62750bb88ba4Smrg_ACEOF
62760bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
62770bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
62780bb88ba4Smrgelse
62790bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
62800bb88ba4Smrgfi
62810bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62820bb88ba4Smrgfi
62830bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
62840bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
62850bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
62860bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62870bb88ba4Smrgfi
62880bb88ba4Smrg
62890bb88ba4Smrgfound="no"
62900bb88ba4Smrg
62910bb88ba4Smrg	if test $found = "no" ; then
62920bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
62930bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62940bb88ba4Smrg		fi
62950bb88ba4Smrg
62960bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
62970bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62980bb88ba4Smrg		fi
62990bb88ba4Smrg
63000bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=implicit"
63010bb88ba4Smrg
6302acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6303acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6304acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
63050bb88ba4Smrg		if eval \${$cacheid+:} false; then :
63060bb88ba4Smrg  $as_echo_n "(cached) " >&6
63070bb88ba4Smrgelse
63080bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63090bb88ba4Smrg/* end confdefs.h.  */
63100bb88ba4Smrgint i;
63110bb88ba4Smrgint
63120bb88ba4Smrgmain ()
63130bb88ba4Smrg{
63140bb88ba4Smrg
63150bb88ba4Smrg  ;
63160bb88ba4Smrg  return 0;
63170bb88ba4Smrg}
63180bb88ba4Smrg_ACEOF
63190bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
63200bb88ba4Smrg  eval $cacheid=yes
63210bb88ba4Smrgelse
63220bb88ba4Smrg  eval $cacheid=no
63230bb88ba4Smrgfi
63240bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
63250bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
63260bb88ba4Smrgfi
63270bb88ba4Smrg
63280bb88ba4Smrg
63290bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
63300bb88ba4Smrg
63310bb88ba4Smrg		eval supported=\$$cacheid
63320bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
63330bb88ba4Smrg$as_echo "$supported" >&6; }
63340bb88ba4Smrg		if test "$supported" = "yes" ; then
63350bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
63360bb88ba4Smrg			found="yes"
63370bb88ba4Smrg		fi
63380bb88ba4Smrg	fi
63390bb88ba4Smrg
63400bb88ba4Smrg	if test $found = "no" ; then
63410bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
63420bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63430bb88ba4Smrg		fi
63440bb88ba4Smrg
63450bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
63460bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63470bb88ba4Smrg		fi
63480bb88ba4Smrg
63490bb88ba4Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
63500bb88ba4Smrg
6351acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6352acd6767fSmrg$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6353acd6767fSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
63540bb88ba4Smrg		if eval \${$cacheid+:} false; then :
63550bb88ba4Smrg  $as_echo_n "(cached) " >&6
63560bb88ba4Smrgelse
63570bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63580bb88ba4Smrg/* end confdefs.h.  */
63590bb88ba4Smrgint i;
63600bb88ba4Smrgint
63610bb88ba4Smrgmain ()
63620bb88ba4Smrg{
63630bb88ba4Smrg
63640bb88ba4Smrg  ;
63650bb88ba4Smrg  return 0;
63660bb88ba4Smrg}
63670bb88ba4Smrg_ACEOF
63680bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
63690bb88ba4Smrg  eval $cacheid=yes
63700bb88ba4Smrgelse
63710bb88ba4Smrg  eval $cacheid=no
63720bb88ba4Smrgfi
63730bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
63740bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
63750bb88ba4Smrgfi
63760bb88ba4Smrg
63770bb88ba4Smrg
63780bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
63790bb88ba4Smrg
63800bb88ba4Smrg		eval supported=\$$cacheid
63810bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
63820bb88ba4Smrg$as_echo "$supported" >&6; }
63830bb88ba4Smrg		if test "$supported" = "yes" ; then
63840bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
63850bb88ba4Smrg			found="yes"
63860bb88ba4Smrg		fi
63870bb88ba4Smrg	fi
63880bb88ba4Smrg
63890bb88ba4Smrg
6390fe5e51b7Smrg
6391fe5e51b7Smrg
6392fe5e51b7Smrg
6393fe5e51b7Smrg
6394fe5e51b7Smrg
6395fe5e51b7Smrg
6396fe5e51b7Smrg
6397fe5e51b7Smrg
63980bb88ba4Smrg
63990bb88ba4Smrg
64000bb88ba4Smrg
64010bb88ba4Smrg
64020bb88ba4Smrg
64030bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
64040bb88ba4Smrg
64050bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
64060bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64070bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
64080bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
64090bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
64100bb88ba4Smrg  $as_echo_n "(cached) " >&6
64110bb88ba4Smrgelse
64120bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64130bb88ba4Smrg/* end confdefs.h.  */
64140bb88ba4Smrgint i;
64150bb88ba4Smrg_ACEOF
64160bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
64170bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6418fe5e51b7Smrgelse
64190bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6420fe5e51b7Smrgfi
64210bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64220bb88ba4Smrgfi
64230bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
64240bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
64250bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
64260bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6427fe5e51b7Smrgfi
6428fe5e51b7Smrg
64290bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
64300bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64310bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64320bb88ba4Smrg	fi
64330bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64340bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
64350bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
64360bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
64370bb88ba4Smrg  $as_echo_n "(cached) " >&6
64380bb88ba4Smrgelse
64390bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64400bb88ba4Smrg/* end confdefs.h.  */
64410bb88ba4Smrgint i;
64420bb88ba4Smrg_ACEOF
64430bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
64440bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6445fe5e51b7Smrgelse
64460bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
64470bb88ba4Smrgfi
64480bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64490bb88ba4Smrgfi
64500bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
64510bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
64520bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
64530bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6454fe5e51b7Smrgfi
6455fe5e51b7Smrg
64560bb88ba4Smrgfound="no"
6457fe5e51b7Smrg
64580bb88ba4Smrg	if test $found = "no" ; then
64590bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
64600bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64610bb88ba4Smrg		fi
6462fe5e51b7Smrg
64630bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
64640bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64650bb88ba4Smrg		fi
6466fe5e51b7Smrg
64670bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
6468fe5e51b7Smrg
6469acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6470acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6471acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
64720bb88ba4Smrg		if eval \${$cacheid+:} false; then :
64730bb88ba4Smrg  $as_echo_n "(cached) " >&6
64740bb88ba4Smrgelse
64750bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64760bb88ba4Smrg/* end confdefs.h.  */
64770bb88ba4Smrgint i;
64780bb88ba4Smrgint
64790bb88ba4Smrgmain ()
64800bb88ba4Smrg{
6481fe5e51b7Smrg
64820bb88ba4Smrg  ;
64830bb88ba4Smrg  return 0;
64840bb88ba4Smrg}
64850bb88ba4Smrg_ACEOF
64860bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
64870bb88ba4Smrg  eval $cacheid=yes
64880bb88ba4Smrgelse
64890bb88ba4Smrg  eval $cacheid=no
6490fe5e51b7Smrgfi
64910bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
64920bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
6493fe5e51b7Smrgfi
6494fe5e51b7Smrg
6495fe5e51b7Smrg
64960bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6497fe5e51b7Smrg
64980bb88ba4Smrg		eval supported=\$$cacheid
64990bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
65000bb88ba4Smrg$as_echo "$supported" >&6; }
65010bb88ba4Smrg		if test "$supported" = "yes" ; then
65020bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
65030bb88ba4Smrg			found="yes"
65040bb88ba4Smrg		fi
65050bb88ba4Smrg	fi
6506fe5e51b7Smrg
6507fe5e51b7Smrg
6508fe5e51b7Smrg
6509fe5e51b7Smrg
6510fe5e51b7Smrg
6511fe5e51b7Smrg
6512fe5e51b7Smrg
6513fe5e51b7Smrg
6514fe5e51b7Smrg
6515fe5e51b7Smrg
6516fe5e51b7Smrg
6517fe5e51b7Smrg
6518fe5e51b7Smrg
6519fe5e51b7Smrg
6520fe5e51b7Smrg
65210bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6522fe5e51b7Smrg
65230bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
65240bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65250bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
65260bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
65270bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
65280bb88ba4Smrg  $as_echo_n "(cached) " >&6
6529fe5e51b7Smrgelse
65300bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65310bb88ba4Smrg/* end confdefs.h.  */
65320bb88ba4Smrgint i;
65330bb88ba4Smrg_ACEOF
65340bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
65350bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6536fe5e51b7Smrgelse
65370bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
65380bb88ba4Smrgfi
65390bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65400bb88ba4Smrgfi
65410bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
65420bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
65430bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
65440bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6545fe5e51b7Smrgfi
6546fe5e51b7Smrg
65470bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
65480bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65490bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65500bb88ba4Smrg	fi
65510bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65520bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
65530bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
65540bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
65550bb88ba4Smrg  $as_echo_n "(cached) " >&6
6556fe5e51b7Smrgelse
65570bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65580bb88ba4Smrg/* end confdefs.h.  */
65590bb88ba4Smrgint i;
65600bb88ba4Smrg_ACEOF
65610bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
65620bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6563fe5e51b7Smrgelse
65640bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
65650bb88ba4Smrgfi
65660bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65670bb88ba4Smrgfi
65680bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
65690bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
65700bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
65710bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6572fe5e51b7Smrgfi
6573fe5e51b7Smrg
65740bb88ba4Smrgfound="no"
65750bb88ba4Smrg
65760bb88ba4Smrg	if test $found = "no" ; then
65770bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
65780bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65790bb88ba4Smrg		fi
65800bb88ba4Smrg
65810bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
65820bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65830bb88ba4Smrg		fi
65840bb88ba4Smrg
65850bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=init-self"
65860bb88ba4Smrg
6587acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6588acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6589acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
65900bb88ba4Smrg		if eval \${$cacheid+:} false; then :
65910bb88ba4Smrg  $as_echo_n "(cached) " >&6
6592fe5e51b7Smrgelse
65930bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65940bb88ba4Smrg/* end confdefs.h.  */
65950bb88ba4Smrgint i;
65960bb88ba4Smrgint
65970bb88ba4Smrgmain ()
65980bb88ba4Smrg{
6599fe5e51b7Smrg
66000bb88ba4Smrg  ;
66010bb88ba4Smrg  return 0;
66020bb88ba4Smrg}
66030bb88ba4Smrg_ACEOF
66040bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
66050bb88ba4Smrg  eval $cacheid=yes
6606fe5e51b7Smrgelse
66070bb88ba4Smrg  eval $cacheid=no
66080bb88ba4Smrgfi
66090bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
66100bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
6611fe5e51b7Smrgfi
6612fe5e51b7Smrg
6613fe5e51b7Smrg
66140bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6615fe5e51b7Smrg
66160bb88ba4Smrg		eval supported=\$$cacheid
66170bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
66180bb88ba4Smrg$as_echo "$supported" >&6; }
66190bb88ba4Smrg		if test "$supported" = "yes" ; then
66200bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
66210bb88ba4Smrg			found="yes"
66220bb88ba4Smrg		fi
66230bb88ba4Smrg	fi
6624fe5e51b7Smrg
6625fe5e51b7Smrg
6626fe5e51b7Smrg
6627fe5e51b7Smrg
6628fe5e51b7Smrg
6629fe5e51b7Smrg
6630fe5e51b7Smrg
6631fe5e51b7Smrg
6632fe5e51b7Smrg
6633fe5e51b7Smrg
6634fe5e51b7Smrg
6635fe5e51b7Smrg
6636643b027fSmrg
66370bb88ba4Smrg
66380bb88ba4Smrg
66390bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
66400bb88ba4Smrg
66410bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
66420bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66430bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
66440bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
66450bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
66460bb88ba4Smrg  $as_echo_n "(cached) " >&6
66470bb88ba4Smrgelse
66480bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66490bb88ba4Smrg/* end confdefs.h.  */
66500bb88ba4Smrgint i;
66510bb88ba4Smrg_ACEOF
66520bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
66530bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
66540bb88ba4Smrgelse
66550bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
66560bb88ba4Smrgfi
66570bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66580bb88ba4Smrgfi
66590bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
66600bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
66610bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
66620bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
66630bb88ba4Smrgfi
66640bb88ba4Smrg
66650bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
66660bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66670bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66680bb88ba4Smrg	fi
66690bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66700bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
66710bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
66720bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
66730bb88ba4Smrg  $as_echo_n "(cached) " >&6
66740bb88ba4Smrgelse
66750bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66760bb88ba4Smrg/* end confdefs.h.  */
66770bb88ba4Smrgint i;
66780bb88ba4Smrg_ACEOF
66790bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
66800bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
66810bb88ba4Smrgelse
66820bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6683fe5e51b7Smrgfi
66840bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66850bb88ba4Smrgfi
66860bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
66870bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
66880bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
66890bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6690fe5e51b7Smrgfi
6691fe5e51b7Smrg
66920bb88ba4Smrgfound="no"
6693fe5e51b7Smrg
66940bb88ba4Smrg	if test $found = "no" ; then
66950bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
66960bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66970bb88ba4Smrg		fi
6698fe5e51b7Smrg
66990bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
67000bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67010bb88ba4Smrg		fi
6702fe5e51b7Smrg
67030bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=main"
6704fe5e51b7Smrg
6705acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
6706acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
6707acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_main
67080bb88ba4Smrg		if eval \${$cacheid+:} false; then :
67090bb88ba4Smrg  $as_echo_n "(cached) " >&6
67100bb88ba4Smrgelse
67110bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67120bb88ba4Smrg/* end confdefs.h.  */
67130bb88ba4Smrgint i;
67140bb88ba4Smrgint
67150bb88ba4Smrgmain ()
67160bb88ba4Smrg{
6717fe5e51b7Smrg
67180bb88ba4Smrg  ;
67190bb88ba4Smrg  return 0;
67200bb88ba4Smrg}
67210bb88ba4Smrg_ACEOF
67220bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
67230bb88ba4Smrg  eval $cacheid=yes
67240bb88ba4Smrgelse
67250bb88ba4Smrg  eval $cacheid=no
67260bb88ba4Smrgfi
67270bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
67280bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
67290bb88ba4Smrgfi
67300bb88ba4Smrg
67310bb88ba4Smrg
67320bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
67330bb88ba4Smrg
67340bb88ba4Smrg		eval supported=\$$cacheid
67350bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
67360bb88ba4Smrg$as_echo "$supported" >&6; }
67370bb88ba4Smrg		if test "$supported" = "yes" ; then
67380bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
67390bb88ba4Smrg			found="yes"
67400bb88ba4Smrg		fi
67410bb88ba4Smrg	fi
6742fe5e51b7Smrg
6743fe5e51b7Smrg
6744fe5e51b7Smrg
6745fe5e51b7Smrg
6746fe5e51b7Smrg
6747fe5e51b7Smrg
6748fe5e51b7Smrg
6749fe5e51b7Smrg
6750fe5e51b7Smrg
6751fe5e51b7Smrg
6752fe5e51b7Smrg
6753fe5e51b7Smrg
6754fe5e51b7Smrg
6755fe5e51b7Smrg
6756fe5e51b7Smrg
67570bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6758fe5e51b7Smrg
67590bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
67600bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67610bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
67620bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
67630bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
67640bb88ba4Smrg  $as_echo_n "(cached) " >&6
67650bb88ba4Smrgelse
67660bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67670bb88ba4Smrg/* end confdefs.h.  */
67680bb88ba4Smrgint i;
67690bb88ba4Smrg_ACEOF
67700bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
67710bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
67720bb88ba4Smrgelse
67730bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
67740bb88ba4Smrgfi
67750bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67760bb88ba4Smrgfi
67770bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
67780bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
67790bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
67800bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
67810bb88ba4Smrgfi
6782fe5e51b7Smrg
67830bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
67840bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67850bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67860bb88ba4Smrg	fi
67870bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67880bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
67890bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
67900bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
67910bb88ba4Smrg  $as_echo_n "(cached) " >&6
67920bb88ba4Smrgelse
67930bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67940bb88ba4Smrg/* end confdefs.h.  */
67950bb88ba4Smrgint i;
67960bb88ba4Smrg_ACEOF
67970bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
67980bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
67990bb88ba4Smrgelse
68000bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
68010bb88ba4Smrgfi
68020bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68030bb88ba4Smrgfi
68040bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
68050bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
68060bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
68070bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
68080bb88ba4Smrgfi
6809fe5e51b7Smrg
68100bb88ba4Smrgfound="no"
6811fe5e51b7Smrg
68120bb88ba4Smrg	if test $found = "no" ; then
68130bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
68140bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68150bb88ba4Smrg		fi
6816fe5e51b7Smrg
68170bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
68180bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68190bb88ba4Smrg		fi
6820fe5e51b7Smrg
68210bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
6822fe5e51b7Smrg
6823acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
6824acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
6825acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
68260bb88ba4Smrg		if eval \${$cacheid+:} false; then :
68270bb88ba4Smrg  $as_echo_n "(cached) " >&6
68280bb88ba4Smrgelse
68290bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68300bb88ba4Smrg/* end confdefs.h.  */
68310bb88ba4Smrgint i;
68320bb88ba4Smrgint
68330bb88ba4Smrgmain ()
68340bb88ba4Smrg{
6835fe5e51b7Smrg
68360bb88ba4Smrg  ;
68370bb88ba4Smrg  return 0;
68380bb88ba4Smrg}
68390bb88ba4Smrg_ACEOF
68400bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
68410bb88ba4Smrg  eval $cacheid=yes
68420bb88ba4Smrgelse
68430bb88ba4Smrg  eval $cacheid=no
68440bb88ba4Smrgfi
68450bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
68460bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
68470bb88ba4Smrgfi
6848fe5e51b7Smrg
6849fe5e51b7Smrg
68500bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
68510bb88ba4Smrg
68520bb88ba4Smrg		eval supported=\$$cacheid
68530bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
68540bb88ba4Smrg$as_echo "$supported" >&6; }
68550bb88ba4Smrg		if test "$supported" = "yes" ; then
68560bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
68570bb88ba4Smrg			found="yes"
68580bb88ba4Smrg		fi
68590bb88ba4Smrg	fi
68600bb88ba4Smrg
68610bb88ba4Smrg
68620bb88ba4Smrg
68630bb88ba4Smrg
68640bb88ba4Smrg
68650bb88ba4Smrg
68660bb88ba4Smrg
68670bb88ba4Smrg
68680bb88ba4Smrg
68690bb88ba4Smrg
68700bb88ba4Smrg
68710bb88ba4Smrg
68720bb88ba4Smrg
68730bb88ba4Smrg
68740bb88ba4Smrg
68750bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
68760bb88ba4Smrg
68770bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
68780bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68790bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
68800bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
68810bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
68820bb88ba4Smrg  $as_echo_n "(cached) " >&6
68830bb88ba4Smrgelse
68840bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68850bb88ba4Smrg/* end confdefs.h.  */
68860bb88ba4Smrgint i;
68870bb88ba4Smrg_ACEOF
68880bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
68890bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
68900bb88ba4Smrgelse
68910bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
68920bb88ba4Smrgfi
68930bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68940bb88ba4Smrgfi
68950bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
68960bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
68970bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
68980bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
68990bb88ba4Smrgfi
69000bb88ba4Smrg
69010bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
69020bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69030bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69040bb88ba4Smrg	fi
69050bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69060bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
69070bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
69080bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
69090bb88ba4Smrg  $as_echo_n "(cached) " >&6
69100bb88ba4Smrgelse
69110bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69120bb88ba4Smrg/* end confdefs.h.  */
69130bb88ba4Smrgint i;
69140bb88ba4Smrg_ACEOF
69150bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
69160bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
69170bb88ba4Smrgelse
69180bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
69190bb88ba4Smrgfi
69200bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69210bb88ba4Smrgfi
69220bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
69230bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
69240bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
69250bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
69260bb88ba4Smrgfi
69270bb88ba4Smrg
69280bb88ba4Smrgfound="no"
69290bb88ba4Smrg
69300bb88ba4Smrg	if test $found = "no" ; then
69310bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
69320bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69330bb88ba4Smrg		fi
69340bb88ba4Smrg
69350bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
69360bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69370bb88ba4Smrg		fi
69380bb88ba4Smrg
69390bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
69400bb88ba4Smrg
6941acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
6942acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
6943acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
69440bb88ba4Smrg		if eval \${$cacheid+:} false; then :
69450bb88ba4Smrg  $as_echo_n "(cached) " >&6
69460bb88ba4Smrgelse
69470bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69480bb88ba4Smrg/* end confdefs.h.  */
69490bb88ba4Smrgint i;
69500bb88ba4Smrgint
69510bb88ba4Smrgmain ()
69520bb88ba4Smrg{
69530bb88ba4Smrg
69540bb88ba4Smrg  ;
69550bb88ba4Smrg  return 0;
69560bb88ba4Smrg}
69570bb88ba4Smrg_ACEOF
69580bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
69590bb88ba4Smrg  eval $cacheid=yes
69600bb88ba4Smrgelse
69610bb88ba4Smrg  eval $cacheid=no
69620bb88ba4Smrgfi
69630bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
69640bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
69650bb88ba4Smrgfi
69660bb88ba4Smrg
69670bb88ba4Smrg
69680bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
69690bb88ba4Smrg
69700bb88ba4Smrg		eval supported=\$$cacheid
69710bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
69720bb88ba4Smrg$as_echo "$supported" >&6; }
69730bb88ba4Smrg		if test "$supported" = "yes" ; then
69740bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
69750bb88ba4Smrg			found="yes"
69760bb88ba4Smrg		fi
69770bb88ba4Smrg	fi
69780bb88ba4Smrg
69790bb88ba4Smrg
69800bb88ba4Smrg
69810bb88ba4Smrg
69820bb88ba4Smrg
69830bb88ba4Smrg
69840bb88ba4Smrg
69850bb88ba4Smrg
69860bb88ba4Smrg
69870bb88ba4Smrg
69880bb88ba4Smrg
69890bb88ba4Smrg
69900bb88ba4Smrg
69910bb88ba4Smrg
69920bb88ba4Smrg
69930bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
69940bb88ba4Smrg
69950bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
69960bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69970bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
69980bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
69990bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
70000bb88ba4Smrg  $as_echo_n "(cached) " >&6
70010bb88ba4Smrgelse
70020bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70030bb88ba4Smrg/* end confdefs.h.  */
70040bb88ba4Smrgint i;
70050bb88ba4Smrg_ACEOF
70060bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
70070bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
70080bb88ba4Smrgelse
70090bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
70100bb88ba4Smrgfi
70110bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70120bb88ba4Smrgfi
70130bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
70140bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
70150bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
70160bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
70170bb88ba4Smrgfi
70180bb88ba4Smrg
70190bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
70200bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70210bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70220bb88ba4Smrg	fi
70230bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70240bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
70250bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
70260bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
70270bb88ba4Smrg  $as_echo_n "(cached) " >&6
70280bb88ba4Smrgelse
70290bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70300bb88ba4Smrg/* end confdefs.h.  */
70310bb88ba4Smrgint i;
70320bb88ba4Smrg_ACEOF
70330bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
70340bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
70350bb88ba4Smrgelse
70360bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
70370bb88ba4Smrgfi
70380bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70390bb88ba4Smrgfi
70400bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
70410bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
70420bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
70430bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
70440bb88ba4Smrgfi
7045fe5e51b7Smrg
70460bb88ba4Smrgfound="no"
7047fe5e51b7Smrg
70480bb88ba4Smrg	if test $found = "no" ; then
70490bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
70500bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70510bb88ba4Smrg		fi
7052fe5e51b7Smrg
70530bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
70540bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70550bb88ba4Smrg		fi
7056fe5e51b7Smrg
70570bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=return-type"
7058fe5e51b7Smrg
7059acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7060acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7061acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
70620bb88ba4Smrg		if eval \${$cacheid+:} false; then :
70630bb88ba4Smrg  $as_echo_n "(cached) " >&6
70640bb88ba4Smrgelse
70650bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70660bb88ba4Smrg/* end confdefs.h.  */
70670bb88ba4Smrgint i;
70680bb88ba4Smrgint
70690bb88ba4Smrgmain ()
70700bb88ba4Smrg{
7071fe5e51b7Smrg
70720bb88ba4Smrg  ;
70730bb88ba4Smrg  return 0;
70740bb88ba4Smrg}
70750bb88ba4Smrg_ACEOF
70760bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
70770bb88ba4Smrg  eval $cacheid=yes
70780bb88ba4Smrgelse
70790bb88ba4Smrg  eval $cacheid=no
70800bb88ba4Smrgfi
70810bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
70820bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
70830bb88ba4Smrgfi
7084fe5e51b7Smrg
7085fe5e51b7Smrg
70860bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7087fe5e51b7Smrg
70880bb88ba4Smrg		eval supported=\$$cacheid
70890bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
70900bb88ba4Smrg$as_echo "$supported" >&6; }
70910bb88ba4Smrg		if test "$supported" = "yes" ; then
70920bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
70930bb88ba4Smrg			found="yes"
70940bb88ba4Smrg		fi
70950bb88ba4Smrg	fi
7096fe5e51b7Smrg
70970bb88ba4Smrg	if test $found = "no" ; then
70980bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
70990bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71000bb88ba4Smrg		fi
7101fe5e51b7Smrg
71020bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
71030bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71040bb88ba4Smrg		fi
7105fe5e51b7Smrg
71060bb88ba4Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7107fe5e51b7Smrg
7108acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7109acd6767fSmrg$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7110acd6767fSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
71110bb88ba4Smrg		if eval \${$cacheid+:} false; then :
71120bb88ba4Smrg  $as_echo_n "(cached) " >&6
71130bb88ba4Smrgelse
71140bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71150bb88ba4Smrg/* end confdefs.h.  */
71160bb88ba4Smrgint i;
71170bb88ba4Smrgint
71180bb88ba4Smrgmain ()
71190bb88ba4Smrg{
7120fe5e51b7Smrg
71210bb88ba4Smrg  ;
71220bb88ba4Smrg  return 0;
71230bb88ba4Smrg}
71240bb88ba4Smrg_ACEOF
71250bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
71260bb88ba4Smrg  eval $cacheid=yes
71270bb88ba4Smrgelse
71280bb88ba4Smrg  eval $cacheid=no
71290bb88ba4Smrgfi
71300bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
71310bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
71320bb88ba4Smrgfi
7133fe5e51b7Smrg
7134fe5e51b7Smrg
71350bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7136fe5e51b7Smrg
71370bb88ba4Smrg		eval supported=\$$cacheid
71380bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
71390bb88ba4Smrg$as_echo "$supported" >&6; }
71400bb88ba4Smrg		if test "$supported" = "yes" ; then
71410bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
71420bb88ba4Smrg			found="yes"
71430bb88ba4Smrg		fi
71440bb88ba4Smrg	fi
7145fe5e51b7Smrg
7146fe5e51b7Smrg
7147fe5e51b7Smrg
7148fe5e51b7Smrg
7149fe5e51b7Smrg
7150fe5e51b7Smrg
7151fe5e51b7Smrg
7152fe5e51b7Smrg
7153fe5e51b7Smrg
7154fe5e51b7Smrg
7155fe5e51b7Smrg
7156fe5e51b7Smrg
7157fe5e51b7Smrg
7158fe5e51b7Smrg
7159fe5e51b7Smrg
71600bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7161fe5e51b7Smrg
71620bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
71630bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71640bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
71650bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
71660bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
71670bb88ba4Smrg  $as_echo_n "(cached) " >&6
71680bb88ba4Smrgelse
71690bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71700bb88ba4Smrg/* end confdefs.h.  */
71710bb88ba4Smrgint i;
71720bb88ba4Smrg_ACEOF
71730bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
71740bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
71750bb88ba4Smrgelse
71760bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
71770bb88ba4Smrgfi
71780bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71790bb88ba4Smrgfi
71800bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
71810bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
71820bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
71830bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
71840bb88ba4Smrgfi
7185fe5e51b7Smrg
71860bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
71870bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71880bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71890bb88ba4Smrg	fi
71900bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71910bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
71920bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
71930bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
71940bb88ba4Smrg  $as_echo_n "(cached) " >&6
71950bb88ba4Smrgelse
71960bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71970bb88ba4Smrg/* end confdefs.h.  */
71980bb88ba4Smrgint i;
71990bb88ba4Smrg_ACEOF
72000bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
72010bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
72020bb88ba4Smrgelse
72030bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
72040bb88ba4Smrgfi
72050bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72060bb88ba4Smrgfi
72070bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
72080bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
72090bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
72100bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
72110bb88ba4Smrgfi
7212fe5e51b7Smrg
72130bb88ba4Smrgfound="no"
7214fe5e51b7Smrg
72150bb88ba4Smrg	if test $found = "no" ; then
72160bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
72170bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72180bb88ba4Smrg		fi
7219fe5e51b7Smrg
72200bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
72210bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
72220bb88ba4Smrg		fi
7223eda3803bSmrg
72240bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
7225fe5e51b7Smrg
7226acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7227acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7228acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
72290bb88ba4Smrg		if eval \${$cacheid+:} false; then :
72300bb88ba4Smrg  $as_echo_n "(cached) " >&6
72310bb88ba4Smrgelse
72320bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72330bb88ba4Smrg/* end confdefs.h.  */
72340bb88ba4Smrgint i;
72350bb88ba4Smrgint
72360bb88ba4Smrgmain ()
72370bb88ba4Smrg{
7238fe5e51b7Smrg
72390bb88ba4Smrg  ;
72400bb88ba4Smrg  return 0;
72410bb88ba4Smrg}
72420bb88ba4Smrg_ACEOF
72430bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
72440bb88ba4Smrg  eval $cacheid=yes
72450bb88ba4Smrgelse
72460bb88ba4Smrg  eval $cacheid=no
72470bb88ba4Smrgfi
72480bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
72490bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
7250fe5e51b7Smrgfi
7251fe5e51b7Smrg
7252fe5e51b7Smrg
72530bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7254fe5e51b7Smrg
72550bb88ba4Smrg		eval supported=\$$cacheid
72560bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
72570bb88ba4Smrg$as_echo "$supported" >&6; }
72580bb88ba4Smrg		if test "$supported" = "yes" ; then
72590bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
72600bb88ba4Smrg			found="yes"
72610bb88ba4Smrg		fi
72620bb88ba4Smrg	fi
7263fe5e51b7Smrg
7264fe5e51b7Smrg
7265fe5e51b7Smrg
7266fe5e51b7Smrg
7267fe5e51b7Smrg
7268fe5e51b7Smrg
7269fe5e51b7Smrg
7270fe5e51b7Smrg
7271fe5e51b7Smrg
7272fe5e51b7Smrg
7273fe5e51b7Smrg
7274fe5e51b7Smrg
7275fe5e51b7Smrg
7276fe5e51b7Smrg
7277fe5e51b7Smrg
72780bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
72790bb88ba4Smrg
72800bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
72810bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72820bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
72830bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
72840bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
72850bb88ba4Smrg  $as_echo_n "(cached) " >&6
72860bb88ba4Smrgelse
72870bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72880bb88ba4Smrg/* end confdefs.h.  */
72890bb88ba4Smrgint i;
7290fe5e51b7Smrg_ACEOF
72910bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
72920bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
72930bb88ba4Smrgelse
72940bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
72950bb88ba4Smrgfi
72960bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72970bb88ba4Smrgfi
72980bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
72990bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
73000bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
73010bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7302fe5e51b7Smrgfi
7303fe5e51b7Smrg
73040bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
73050bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73060bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73070bb88ba4Smrg	fi
73080bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73090bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
73100bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
73110bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
73120bb88ba4Smrg  $as_echo_n "(cached) " >&6
73130bb88ba4Smrgelse
73140bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73150bb88ba4Smrg/* end confdefs.h.  */
73160bb88ba4Smrgint i;
73170bb88ba4Smrg_ACEOF
73180bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
73190bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
73200bb88ba4Smrgelse
73210bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
73220bb88ba4Smrgfi
73230bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73240bb88ba4Smrgfi
73250bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
73260bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
73270bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
73280bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
73290bb88ba4Smrgfi
7330fe5e51b7Smrg
73310bb88ba4Smrgfound="no"
7332fe5e51b7Smrg
73330bb88ba4Smrg	if test $found = "no" ; then
73340bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
73350bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73360bb88ba4Smrg		fi
7337fe5e51b7Smrg
73380bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
73390bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73400bb88ba4Smrg		fi
7341fe5e51b7Smrg
73420bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
7343fe5e51b7Smrg
7344acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7345acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7346acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
73470bb88ba4Smrg		if eval \${$cacheid+:} false; then :
73480bb88ba4Smrg  $as_echo_n "(cached) " >&6
73490bb88ba4Smrgelse
73500bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73510bb88ba4Smrg/* end confdefs.h.  */
73520bb88ba4Smrgint i;
73530bb88ba4Smrgint
73540bb88ba4Smrgmain ()
73550bb88ba4Smrg{
73560bb88ba4Smrg
73570bb88ba4Smrg  ;
73580bb88ba4Smrg  return 0;
73590bb88ba4Smrg}
7360fe5e51b7Smrg_ACEOF
73610bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
73620bb88ba4Smrg  eval $cacheid=yes
73630bb88ba4Smrgelse
73640bb88ba4Smrg  eval $cacheid=no
73650bb88ba4Smrgfi
73660bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
73670bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
7368fe5e51b7Smrgfi
7369fe5e51b7Smrg
7370fe5e51b7Smrg
73710bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7372fe5e51b7Smrg
73730bb88ba4Smrg		eval supported=\$$cacheid
73740bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
73750bb88ba4Smrg$as_echo "$supported" >&6; }
73760bb88ba4Smrg		if test "$supported" = "yes" ; then
73770bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
73780bb88ba4Smrg			found="yes"
73790bb88ba4Smrg		fi
73800bb88ba4Smrg	fi
7381fe5e51b7Smrg
7382fe5e51b7Smrg
7383fe5e51b7Smrg
7384fe5e51b7Smrg
7385fe5e51b7Smrg
7386fe5e51b7Smrg
7387fe5e51b7Smrg
7388fe5e51b7Smrg
7389fe5e51b7Smrg
7390fe5e51b7Smrg
7391fe5e51b7Smrg
7392fe5e51b7Smrg
7393fe5e51b7Smrg
7394fe5e51b7Smrg
7395fe5e51b7Smrg
73960bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7397fe5e51b7Smrg
73980bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
73990bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74000bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
74010bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
74020bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
74030bb88ba4Smrg  $as_echo_n "(cached) " >&6
74040bb88ba4Smrgelse
74050bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74060bb88ba4Smrg/* end confdefs.h.  */
74070bb88ba4Smrgint i;
7408fe5e51b7Smrg_ACEOF
74090bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
74100bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
74110bb88ba4Smrgelse
74120bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
74130bb88ba4Smrgfi
74140bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74150bb88ba4Smrgfi
74160bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
74170bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
74180bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
74190bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
74200bb88ba4Smrgfi
7421fe5e51b7Smrg
74220bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
74230bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74240bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74250bb88ba4Smrg	fi
74260bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74270bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
74280bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
74290bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
74300bb88ba4Smrg  $as_echo_n "(cached) " >&6
74310bb88ba4Smrgelse
74320bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74330bb88ba4Smrg/* end confdefs.h.  */
74340bb88ba4Smrgint i;
74350bb88ba4Smrg_ACEOF
74360bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
74370bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
74380bb88ba4Smrgelse
74390bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
74400bb88ba4Smrgfi
74410bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74420bb88ba4Smrgfi
74430bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
74440bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
74450bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
74460bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
74470bb88ba4Smrgfi
7448fe5e51b7Smrg
74490bb88ba4Smrgfound="no"
7450fe5e51b7Smrg
74510bb88ba4Smrg	if test $found = "no" ; then
74520bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
74530bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74540bb88ba4Smrg		fi
7455fe5e51b7Smrg
74560bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
74570bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74580bb88ba4Smrg		fi
7459fe5e51b7Smrg
74600bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
7461fe5e51b7Smrg
7462acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7463acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7464acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
74650bb88ba4Smrg		if eval \${$cacheid+:} false; then :
74660bb88ba4Smrg  $as_echo_n "(cached) " >&6
74670bb88ba4Smrgelse
74680bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74690bb88ba4Smrg/* end confdefs.h.  */
74700bb88ba4Smrgint i;
74710bb88ba4Smrgint
74720bb88ba4Smrgmain ()
74730bb88ba4Smrg{
7474fe5e51b7Smrg
74750bb88ba4Smrg  ;
74760bb88ba4Smrg  return 0;
74770bb88ba4Smrg}
74780bb88ba4Smrg_ACEOF
74790bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
74800bb88ba4Smrg  eval $cacheid=yes
74810bb88ba4Smrgelse
74820bb88ba4Smrg  eval $cacheid=no
74830bb88ba4Smrgfi
74840bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
74850bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
74860bb88ba4Smrgfi
7487fe5e51b7Smrg
7488fe5e51b7Smrg
74890bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7490fe5e51b7Smrg
74910bb88ba4Smrg		eval supported=\$$cacheid
74920bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
74930bb88ba4Smrg$as_echo "$supported" >&6; }
74940bb88ba4Smrg		if test "$supported" = "yes" ; then
74950bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
74960bb88ba4Smrg			found="yes"
74970bb88ba4Smrg		fi
74980bb88ba4Smrg	fi
7499fe5e51b7Smrg
7500fe5e51b7Smrg
7501fe5e51b7Smrg
7502fe5e51b7Smrg
7503fe5e51b7Smrg
7504fe5e51b7Smrg
7505fe5e51b7Smrg
7506fe5e51b7Smrg
7507fe5e51b7Smrg
7508fe5e51b7Smrg
7509fe5e51b7Smrg
7510fe5e51b7Smrg
7511fe5e51b7Smrg
7512fe5e51b7Smrg
7513fe5e51b7Smrg
75140bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7515fe5e51b7Smrg
75160bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
75170bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75180bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
75190bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
75200bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
75210bb88ba4Smrg  $as_echo_n "(cached) " >&6
75220bb88ba4Smrgelse
75230bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75240bb88ba4Smrg/* end confdefs.h.  */
75250bb88ba4Smrgint i;
75260bb88ba4Smrg_ACEOF
75270bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
75280bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
75290bb88ba4Smrgelse
75300bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
75310bb88ba4Smrgfi
75320bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75330bb88ba4Smrgfi
75340bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
75350bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
75360bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
75370bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
75380bb88ba4Smrgfi
7539fe5e51b7Smrg
75400bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
75410bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75420bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75430bb88ba4Smrg	fi
75440bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75450bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
75460bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
75470bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
75480bb88ba4Smrg  $as_echo_n "(cached) " >&6
75490bb88ba4Smrgelse
75500bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75510bb88ba4Smrg/* end confdefs.h.  */
75520bb88ba4Smrgint i;
75530bb88ba4Smrg_ACEOF
75540bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
75550bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
75560bb88ba4Smrgelse
75570bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
75580bb88ba4Smrgfi
75590bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75600bb88ba4Smrgfi
75610bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
75620bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
75630bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
75640bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
75650bb88ba4Smrgfi
7566fe5e51b7Smrg
75670bb88ba4Smrgfound="no"
7568fe5e51b7Smrg
75690bb88ba4Smrg	if test $found = "no" ; then
75700bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
75710bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75720bb88ba4Smrg		fi
7573fe5e51b7Smrg
75740bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
75750bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75760bb88ba4Smrg		fi
7577fe5e51b7Smrg
75780bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=address"
7579fe5e51b7Smrg
7580acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7581acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7582acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_address
75830bb88ba4Smrg		if eval \${$cacheid+:} false; then :
75840bb88ba4Smrg  $as_echo_n "(cached) " >&6
75850bb88ba4Smrgelse
75860bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75870bb88ba4Smrg/* end confdefs.h.  */
75880bb88ba4Smrgint i;
75890bb88ba4Smrgint
75900bb88ba4Smrgmain ()
75910bb88ba4Smrg{
7592fe5e51b7Smrg
75930bb88ba4Smrg  ;
75940bb88ba4Smrg  return 0;
75950bb88ba4Smrg}
75960bb88ba4Smrg_ACEOF
75970bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
75980bb88ba4Smrg  eval $cacheid=yes
75990bb88ba4Smrgelse
76000bb88ba4Smrg  eval $cacheid=no
76010bb88ba4Smrgfi
76020bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
76030bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
76040bb88ba4Smrgfi
7605fe5e51b7Smrg
7606fe5e51b7Smrg
76070bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7608fe5e51b7Smrg
76090bb88ba4Smrg		eval supported=\$$cacheid
76100bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
76110bb88ba4Smrg$as_echo "$supported" >&6; }
76120bb88ba4Smrg		if test "$supported" = "yes" ; then
76130bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
76140bb88ba4Smrg			found="yes"
76150bb88ba4Smrg		fi
76160bb88ba4Smrg	fi
7617fe5e51b7Smrg
7618fe5e51b7Smrg
7619fe5e51b7Smrg
7620fe5e51b7Smrg
7621fe5e51b7Smrg
7622fe5e51b7Smrg
7623fe5e51b7Smrg
7624fe5e51b7Smrg
7625fe5e51b7Smrg
7626fe5e51b7Smrg
7627fe5e51b7Smrg
7628fe5e51b7Smrg
7629fe5e51b7Smrg
7630fe5e51b7Smrg
7631fe5e51b7Smrg
76320bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7633fe5e51b7Smrg
76340bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
76350bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76360bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
76370bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
76380bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
76390bb88ba4Smrg  $as_echo_n "(cached) " >&6
76400bb88ba4Smrgelse
76410bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76420bb88ba4Smrg/* end confdefs.h.  */
76430bb88ba4Smrgint i;
76440bb88ba4Smrg_ACEOF
76450bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
76460bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
76470bb88ba4Smrgelse
76480bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
76490bb88ba4Smrgfi
76500bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76510bb88ba4Smrgfi
76520bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
76530bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
76540bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
76550bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
76560bb88ba4Smrgfi
7657d7be9c72Smrg
76580bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
76590bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76600bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76610bb88ba4Smrg	fi
76620bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76630bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
76640bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
76650bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
76660bb88ba4Smrg  $as_echo_n "(cached) " >&6
76670bb88ba4Smrgelse
76680bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76690bb88ba4Smrg/* end confdefs.h.  */
76700bb88ba4Smrgint i;
76710bb88ba4Smrg_ACEOF
76720bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
76730bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
76740bb88ba4Smrgelse
76750bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
76760bb88ba4Smrgfi
76770bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76780bb88ba4Smrgfi
76790bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
76800bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
76810bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
76820bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
76830bb88ba4Smrgfi
7684d7be9c72Smrg
76850bb88ba4Smrgfound="no"
7686d7be9c72Smrg
76870bb88ba4Smrg	if test $found = "no" ; then
76880bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
76890bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76900bb88ba4Smrg		fi
7691d7be9c72Smrg
76920bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
76930bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76940bb88ba4Smrg		fi
7695d7be9c72Smrg
76960bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7697fe5e51b7Smrg
7698acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
7699acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
7700acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
77010bb88ba4Smrg		if eval \${$cacheid+:} false; then :
77020bb88ba4Smrg  $as_echo_n "(cached) " >&6
77030bb88ba4Smrgelse
77040bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77050bb88ba4Smrg/* end confdefs.h.  */
77060bb88ba4Smrgint i;
77070bb88ba4Smrgint
77080bb88ba4Smrgmain ()
77090bb88ba4Smrg{
7710643b027fSmrg
77110bb88ba4Smrg  ;
77120bb88ba4Smrg  return 0;
77130bb88ba4Smrg}
77140bb88ba4Smrg_ACEOF
77150bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
77160bb88ba4Smrg  eval $cacheid=yes
77170bb88ba4Smrgelse
77180bb88ba4Smrg  eval $cacheid=no
77190bb88ba4Smrgfi
77200bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
77210bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
77220bb88ba4Smrgfi
7723643b027fSmrg
7724643b027fSmrg
77250bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7726643b027fSmrg
77270bb88ba4Smrg		eval supported=\$$cacheid
77280bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
77290bb88ba4Smrg$as_echo "$supported" >&6; }
77300bb88ba4Smrg		if test "$supported" = "yes" ; then
77310bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
77320bb88ba4Smrg			found="yes"
77330bb88ba4Smrg		fi
77340bb88ba4Smrg	fi
7735643b027fSmrg
77360bb88ba4Smrg	if test $found = "no" ; then
77370bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
77380bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77390bb88ba4Smrg		fi
7740d7be9c72Smrg
77410bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
77420bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
77430bb88ba4Smrg		fi
7744d7be9c72Smrg
77450bb88ba4Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7746d7be9c72Smrg
7747acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7748acd6767fSmrg$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7749acd6767fSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
77500bb88ba4Smrg		if eval \${$cacheid+:} false; then :
7751d7be9c72Smrg  $as_echo_n "(cached) " >&6
7752d7be9c72Smrgelse
77530bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77540bb88ba4Smrg/* end confdefs.h.  */
77550bb88ba4Smrgint i;
77560bb88ba4Smrgint
77570bb88ba4Smrgmain ()
77580bb88ba4Smrg{
77590bb88ba4Smrg
77600bb88ba4Smrg  ;
77610bb88ba4Smrg  return 0;
77620bb88ba4Smrg}
77630bb88ba4Smrg_ACEOF
77640bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
77650bb88ba4Smrg  eval $cacheid=yes
77660bb88ba4Smrgelse
77670bb88ba4Smrg  eval $cacheid=no
77680bb88ba4Smrgfi
77690bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
77700bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
77710bb88ba4Smrgfi
77720bb88ba4Smrg
77730bb88ba4Smrg
77740bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
77750bb88ba4Smrg
77760bb88ba4Smrg		eval supported=\$$cacheid
77770bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
77780bb88ba4Smrg$as_echo "$supported" >&6; }
77790bb88ba4Smrg		if test "$supported" = "yes" ; then
77800bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
77810bb88ba4Smrg			found="yes"
77820bb88ba4Smrg		fi
7783d7be9c72Smrg	fi
7784d7be9c72Smrg
7785d7be9c72Smrg
7786fe5e51b7Smrg
7787fe5e51b7Smrg
7788fe5e51b7Smrg
7789fe5e51b7Smrg
7790fe5e51b7Smrg
77910bb88ba4Smrg
77920bb88ba4Smrg
77930bb88ba4Smrg
77940bb88ba4Smrg
77950bb88ba4Smrg
77960bb88ba4Smrg
77970bb88ba4Smrg
77980bb88ba4Smrg
77990bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
78000bb88ba4Smrg
78010bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
78020bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78030bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
78040bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
78050bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7806eda3803bSmrg  $as_echo_n "(cached) " >&6
7807fe5e51b7Smrgelse
78080bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78090bb88ba4Smrg/* end confdefs.h.  */
78100bb88ba4Smrgint i;
78110bb88ba4Smrg_ACEOF
78120bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
78130bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7814a31a186aSmrgelse
78150bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7816fe5e51b7Smrgfi
78170bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818fe5e51b7Smrgfi
78190bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
78200bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
78210bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
78220bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7823fe5e51b7Smrgfi
7824fe5e51b7Smrg
78250bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
78260bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78270bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78280bb88ba4Smrg	fi
78290bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78300bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
78310bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
78320bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7833643b027fSmrg  $as_echo_n "(cached) " >&6
7834643b027fSmrgelse
78350bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78360bb88ba4Smrg/* end confdefs.h.  */
78370bb88ba4Smrgint i;
78380bb88ba4Smrg_ACEOF
78390bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
78400bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7841643b027fSmrgelse
78420bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7843643b027fSmrgfi
78440bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845643b027fSmrgfi
78460bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
78470bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
78480bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
78490bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7850643b027fSmrgfi
7851643b027fSmrg
78520bb88ba4Smrgfound="no"
7853a31a186aSmrg
78540bb88ba4Smrg	if test $found = "no" ; then
78550bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
78560bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78570bb88ba4Smrg		fi
78580bb88ba4Smrg
78590bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
78600bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78610bb88ba4Smrg		fi
78620bb88ba4Smrg
78630bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
78640bb88ba4Smrg
7865acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
7866acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
7867acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
78680bb88ba4Smrg		if eval \${$cacheid+:} false; then :
7869643b027fSmrg  $as_echo_n "(cached) " >&6
7870643b027fSmrgelse
78710bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78720bb88ba4Smrg/* end confdefs.h.  */
78730bb88ba4Smrgint i;
78740bb88ba4Smrgint
78750bb88ba4Smrgmain ()
78760bb88ba4Smrg{
7877643b027fSmrg
78780bb88ba4Smrg  ;
78790bb88ba4Smrg  return 0;
78800bb88ba4Smrg}
78810bb88ba4Smrg_ACEOF
78820bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
78830bb88ba4Smrg  eval $cacheid=yes
78840bb88ba4Smrgelse
78850bb88ba4Smrg  eval $cacheid=no
7886643b027fSmrgfi
78870bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
78880bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
7889643b027fSmrgfi
78900bb88ba4Smrg
78910bb88ba4Smrg
78920bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
78930bb88ba4Smrg
78940bb88ba4Smrg		eval supported=\$$cacheid
78950bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
78960bb88ba4Smrg$as_echo "$supported" >&6; }
78970bb88ba4Smrg		if test "$supported" = "yes" ; then
78980bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
78990bb88ba4Smrg			found="yes"
79000bb88ba4Smrg		fi
79010bb88ba4Smrg	fi
79020bb88ba4Smrg
79030bb88ba4Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7904643b027fSmrgelse
79050bb88ba4Smrg{ $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
79060bb88ba4Smrg$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;}
7907643b027fSmrg
7908643b027fSmrg
79090bb88ba4Smrg
79100bb88ba4Smrg
79110bb88ba4Smrg
79120bb88ba4Smrg
79130bb88ba4Smrg
79140bb88ba4Smrg
79150bb88ba4Smrg
79160bb88ba4Smrg
79170bb88ba4Smrg
79180bb88ba4Smrg
79190bb88ba4Smrg
79200bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
79210bb88ba4Smrg
79220bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
79230bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79240bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
79250bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
79260bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7927eda3803bSmrg  $as_echo_n "(cached) " >&6
7928fe5e51b7Smrgelse
79290bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79300bb88ba4Smrg/* end confdefs.h.  */
79310bb88ba4Smrgint i;
79320bb88ba4Smrg_ACEOF
79330bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
79340bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7935a31a186aSmrgelse
79360bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
79370bb88ba4Smrgfi
79380bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79390bb88ba4Smrgfi
79400bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
79410bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
79420bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
79430bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
79440bb88ba4Smrgfi
7945fe5e51b7Smrg
79460bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
79470bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79480bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79490bb88ba4Smrg	fi
79500bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79510bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
79520bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
79530bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
79540bb88ba4Smrg  $as_echo_n "(cached) " >&6
79550bb88ba4Smrgelse
79560bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79570bb88ba4Smrg/* end confdefs.h.  */
79580bb88ba4Smrgint i;
79590bb88ba4Smrg_ACEOF
79600bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
79610bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
79620bb88ba4Smrgelse
79630bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7964fe5e51b7Smrgfi
79650bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966a31a186aSmrgfi
79670bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
79680bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
79690bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
79700bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7971a31a186aSmrgfi
79720bb88ba4Smrg
79730bb88ba4Smrgfound="no"
79740bb88ba4Smrg
79750bb88ba4Smrg	if test $found = "no" ; then
79760bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
79770bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79780bb88ba4Smrg		fi
79790bb88ba4Smrg
79800bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
79810bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79820bb88ba4Smrg		fi
79830bb88ba4Smrg
79840bb88ba4Smrg		CFLAGS="$CFLAGS -Wimplicit"
79850bb88ba4Smrg
7986acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
7987acd6767fSmrg$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
79880bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
79890bb88ba4Smrg		if eval \${$cacheid+:} false; then :
79900bb88ba4Smrg  $as_echo_n "(cached) " >&6
7991a31a186aSmrgelse
79920bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79930bb88ba4Smrg/* end confdefs.h.  */
79940bb88ba4Smrgint i;
79950bb88ba4Smrgint
79960bb88ba4Smrgmain ()
79970bb88ba4Smrg{
79980bb88ba4Smrg
79990bb88ba4Smrg  ;
80000bb88ba4Smrg  return 0;
80010bb88ba4Smrg}
80020bb88ba4Smrg_ACEOF
80030bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
80040bb88ba4Smrg  eval $cacheid=yes
80050bb88ba4Smrgelse
80060bb88ba4Smrg  eval $cacheid=no
8007a31a186aSmrgfi
80080bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
80090bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
80100bb88ba4Smrgfi
80110bb88ba4Smrg
80120bb88ba4Smrg
80130bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
80140bb88ba4Smrg
80150bb88ba4Smrg		eval supported=\$$cacheid
80160bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
80170bb88ba4Smrg$as_echo "$supported" >&6; }
80180bb88ba4Smrg		if test "$supported" = "yes" ; then
80190bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
80200bb88ba4Smrg			found="yes"
80210bb88ba4Smrg		fi
80220bb88ba4Smrg	fi
80230bb88ba4Smrg
80240bb88ba4Smrg
80250bb88ba4Smrg
80260bb88ba4Smrg
80270bb88ba4Smrg
80280bb88ba4Smrg
80290bb88ba4Smrg
80300bb88ba4Smrg
80310bb88ba4Smrg
80320bb88ba4Smrg
80330bb88ba4Smrg
8034fe5e51b7Smrg
8035fe5e51b7Smrg
80360bb88ba4Smrg
80370bb88ba4Smrg
80380bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
80390bb88ba4Smrg
80400bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
80410bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80420bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
80430bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
80440bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8045eda3803bSmrg  $as_echo_n "(cached) " >&6
8046fe5e51b7Smrgelse
80470bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80480bb88ba4Smrg/* end confdefs.h.  */
80490bb88ba4Smrgint i;
80500bb88ba4Smrg_ACEOF
80510bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
80520bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8053fe5e51b7Smrgelse
80540bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8055fe5e51b7Smrgfi
80560bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057fe5e51b7Smrgfi
80580bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
80590bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
80600bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
80610bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8062fe5e51b7Smrgfi
8063fe5e51b7Smrg
80640bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
80650bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80660bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80670bb88ba4Smrg	fi
80680bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80690bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
80700bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
80710bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8072eda3803bSmrg  $as_echo_n "(cached) " >&6
8073fe5e51b7Smrgelse
80740bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80750bb88ba4Smrg/* end confdefs.h.  */
80760bb88ba4Smrgint i;
80770bb88ba4Smrg_ACEOF
80780bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
80790bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8080a31a186aSmrgelse
80810bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8082a31a186aSmrgfi
80830bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084fe5e51b7Smrgfi
80850bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
80860bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
80870bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
80880bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8089fe5e51b7Smrgfi
8090fe5e51b7Smrg
80910bb88ba4Smrgfound="no"
8092a31a186aSmrg
80930bb88ba4Smrg	if test $found = "no" ; then
80940bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
80950bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80960bb88ba4Smrg		fi
8097fe5e51b7Smrg
80980bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
80990bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81000bb88ba4Smrg		fi
8101fe5e51b7Smrg
81020bb88ba4Smrg		CFLAGS="$CFLAGS -Wnonnull"
8103fe5e51b7Smrg
8104acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8105acd6767fSmrg$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
81060bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
81070bb88ba4Smrg		if eval \${$cacheid+:} false; then :
81080bb88ba4Smrg  $as_echo_n "(cached) " >&6
81090bb88ba4Smrgelse
81100bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111a31a186aSmrg/* end confdefs.h.  */
81120bb88ba4Smrgint i;
8113a31a186aSmrgint
8114a31a186aSmrgmain ()
8115a31a186aSmrg{
8116fe5e51b7Smrg
8117a31a186aSmrg  ;
8118a31a186aSmrg  return 0;
8119a31a186aSmrg}
8120fe5e51b7Smrg_ACEOF
81210bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
81220bb88ba4Smrg  eval $cacheid=yes
81230bb88ba4Smrgelse
81240bb88ba4Smrg  eval $cacheid=no
81250bb88ba4Smrgfi
81260bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
81270bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
81280bb88ba4Smrgfi
8129fe5e51b7Smrg
8130fe5e51b7Smrg
81310bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8132fe5e51b7Smrg
81330bb88ba4Smrg		eval supported=\$$cacheid
81340bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
81350bb88ba4Smrg$as_echo "$supported" >&6; }
81360bb88ba4Smrg		if test "$supported" = "yes" ; then
81370bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
81380bb88ba4Smrg			found="yes"
81390bb88ba4Smrg		fi
8140a31a186aSmrg	fi
8141fe5e51b7Smrg
8142fe5e51b7Smrg
8143fe5e51b7Smrg
8144fe5e51b7Smrg
8145643b027fSmrg
8146643b027fSmrg
8147643b027fSmrg
81480bb88ba4Smrg
81490bb88ba4Smrg
81500bb88ba4Smrg
81510bb88ba4Smrg
81520bb88ba4Smrg
81530bb88ba4Smrg
81540bb88ba4Smrg
81550bb88ba4Smrg
81560bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
81570bb88ba4Smrg
81580bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
81590bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81600bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
81610bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
81620bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
81630bb88ba4Smrg  $as_echo_n "(cached) " >&6
8164a31a186aSmrgelse
81650bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81660bb88ba4Smrg/* end confdefs.h.  */
81670bb88ba4Smrgint i;
81680bb88ba4Smrg_ACEOF
81690bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
81700bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
81710bb88ba4Smrgelse
81720bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
81730bb88ba4Smrgfi
81740bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81750bb88ba4Smrgfi
81760bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
81770bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
81780bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
81790bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8180a31a186aSmrgfi
8181643b027fSmrg
81820bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
81830bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81840bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81850bb88ba4Smrg	fi
81860bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81870bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
81880bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
81890bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
81900bb88ba4Smrg  $as_echo_n "(cached) " >&6
81910bb88ba4Smrgelse
81920bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81930bb88ba4Smrg/* end confdefs.h.  */
81940bb88ba4Smrgint i;
81950bb88ba4Smrg_ACEOF
81960bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
81970bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
81980bb88ba4Smrgelse
81990bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
82000bb88ba4Smrgfi
82010bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82020bb88ba4Smrgfi
82030bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
82040bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
82050bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
82060bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
82070bb88ba4Smrgfi
8208643b027fSmrg
82090bb88ba4Smrgfound="no"
82100bb88ba4Smrg
82110bb88ba4Smrg	if test $found = "no" ; then
82120bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
82130bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82140bb88ba4Smrg		fi
82150bb88ba4Smrg
82160bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
82170bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82180bb88ba4Smrg		fi
82190bb88ba4Smrg
82200bb88ba4Smrg		CFLAGS="$CFLAGS -Winit-self"
82210bb88ba4Smrg
8222acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8223acd6767fSmrg$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
82240bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Winit_self
82250bb88ba4Smrg		if eval \${$cacheid+:} false; then :
8226a31a186aSmrg  $as_echo_n "(cached) " >&6
8227a31a186aSmrgelse
82280bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229a31a186aSmrg/* end confdefs.h.  */
82300bb88ba4Smrgint i;
8231a31a186aSmrgint
8232a31a186aSmrgmain ()
8233a31a186aSmrg{
8234643b027fSmrg
8235a31a186aSmrg  ;
8236a31a186aSmrg  return 0;
8237a31a186aSmrg}
8238a31a186aSmrg_ACEOF
82390bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
82400bb88ba4Smrg  eval $cacheid=yes
8241643b027fSmrgelse
82420bb88ba4Smrg  eval $cacheid=no
8243fe5e51b7Smrgfi
82440bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
82450bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
8246fe5e51b7Smrgfi
82470bb88ba4Smrg
82480bb88ba4Smrg
82490bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
82500bb88ba4Smrg
82510bb88ba4Smrg		eval supported=\$$cacheid
82520bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
82530bb88ba4Smrg$as_echo "$supported" >&6; }
82540bb88ba4Smrg		if test "$supported" = "yes" ; then
82550bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
82560bb88ba4Smrg			found="yes"
82570bb88ba4Smrg		fi
82580bb88ba4Smrg	fi
82590bb88ba4Smrg
82600bb88ba4Smrg
82610bb88ba4Smrg
82620bb88ba4Smrg
82630bb88ba4Smrg
82640bb88ba4Smrg
82650bb88ba4Smrg
82660bb88ba4Smrg
82670bb88ba4Smrg
82680bb88ba4Smrg
82690bb88ba4Smrg
82700bb88ba4Smrg
82710bb88ba4Smrg
82720bb88ba4Smrg
82730bb88ba4Smrg
82740bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
82750bb88ba4Smrg
82760bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
82770bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82780bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
82790bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
82800bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8281a31a186aSmrg  $as_echo_n "(cached) " >&6
8282a31a186aSmrgelse
82830bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284a31a186aSmrg/* end confdefs.h.  */
82850bb88ba4Smrgint i;
8286a31a186aSmrg_ACEOF
82870bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
82880bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8289fe5e51b7Smrgelse
82900bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8291a31a186aSmrgfi
8292a31a186aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293a31a186aSmrgfi
82940bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
82950bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
82960bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
82970bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8298643b027fSmrgfi
82990bb88ba4Smrg
83000bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
83010bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83020bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83030bb88ba4Smrg	fi
83040bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83050bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
83060bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
83070bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8308a31a186aSmrg  $as_echo_n "(cached) " >&6
8309a31a186aSmrgelse
83100bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311a31a186aSmrg/* end confdefs.h.  */
83120bb88ba4Smrgint i;
83130bb88ba4Smrg_ACEOF
83140bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
83150bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
83160bb88ba4Smrgelse
83170bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
83180bb88ba4Smrgfi
83190bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83200bb88ba4Smrgfi
83210bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
83220bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
83230bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
83240bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
83250bb88ba4Smrgfi
8326fe5e51b7Smrg
83270bb88ba4Smrgfound="no"
83280bb88ba4Smrg
83290bb88ba4Smrg	if test $found = "no" ; then
83300bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
83310bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83320bb88ba4Smrg		fi
83330bb88ba4Smrg
83340bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
83350bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83360bb88ba4Smrg		fi
83370bb88ba4Smrg
83380bb88ba4Smrg		CFLAGS="$CFLAGS -Wmain"
83390bb88ba4Smrg
8340acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8341acd6767fSmrg$as_echo_n "checking if $CC supports-Wmain... " >&6; }
83420bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wmain
83430bb88ba4Smrg		if eval \${$cacheid+:} false; then :
83440bb88ba4Smrg  $as_echo_n "(cached) " >&6
83450bb88ba4Smrgelse
83460bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83470bb88ba4Smrg/* end confdefs.h.  */
83480bb88ba4Smrgint i;
8349a31a186aSmrgint
8350a31a186aSmrgmain ()
8351a31a186aSmrg{
8352fe5e51b7Smrg
8353a31a186aSmrg  ;
8354a31a186aSmrg  return 0;
8355a31a186aSmrg}
8356a31a186aSmrg_ACEOF
83570bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
83580bb88ba4Smrg  eval $cacheid=yes
8359643b027fSmrgelse
83600bb88ba4Smrg  eval $cacheid=no
83610bb88ba4Smrgfi
83620bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
83630bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
83640bb88ba4Smrgfi
8365fe5e51b7Smrg
8366fe5e51b7Smrg
83670bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8368fe5e51b7Smrg
83690bb88ba4Smrg		eval supported=\$$cacheid
83700bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
83710bb88ba4Smrg$as_echo "$supported" >&6; }
83720bb88ba4Smrg		if test "$supported" = "yes" ; then
83730bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
83740bb88ba4Smrg			found="yes"
83750bb88ba4Smrg		fi
83760bb88ba4Smrg	fi
83770bb88ba4Smrg
83780bb88ba4Smrg
83790bb88ba4Smrg
83800bb88ba4Smrg
83810bb88ba4Smrg
83820bb88ba4Smrg
83830bb88ba4Smrg
83840bb88ba4Smrg
83850bb88ba4Smrg
83860bb88ba4Smrg
83870bb88ba4Smrg
83880bb88ba4Smrg
83890bb88ba4Smrg
83900bb88ba4Smrg
83910bb88ba4Smrg
83920bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
83930bb88ba4Smrg
83940bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
83950bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83960bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
83970bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
83980bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
83990bb88ba4Smrg  $as_echo_n "(cached) " >&6
84000bb88ba4Smrgelse
84010bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84020bb88ba4Smrg/* end confdefs.h.  */
84030bb88ba4Smrgint i;
8404a31a186aSmrg_ACEOF
84050bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
84060bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8407fe5e51b7Smrgelse
84080bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
84090bb88ba4Smrgfi
84100bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84110bb88ba4Smrgfi
84120bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
84130bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
84140bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
84150bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
84160bb88ba4Smrgfi
8417fe5e51b7Smrg
84180bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
84190bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84200bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84210bb88ba4Smrg	fi
84220bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84230bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
84240bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
84250bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
84260bb88ba4Smrg  $as_echo_n "(cached) " >&6
84270bb88ba4Smrgelse
84280bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429a31a186aSmrg/* end confdefs.h.  */
84300bb88ba4Smrgint i;
84310bb88ba4Smrg_ACEOF
84320bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
84330bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
84340bb88ba4Smrgelse
84350bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
84360bb88ba4Smrgfi
84370bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84380bb88ba4Smrgfi
84390bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
84400bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
84410bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
84420bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
84430bb88ba4Smrgfi
84440bb88ba4Smrg
84450bb88ba4Smrgfound="no"
84460bb88ba4Smrg
84470bb88ba4Smrg	if test $found = "no" ; then
84480bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
84490bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84500bb88ba4Smrg		fi
8451a31a186aSmrg
84520bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
84530bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84540bb88ba4Smrg		fi
84550bb88ba4Smrg
84560bb88ba4Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
84570bb88ba4Smrg
8458acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8459acd6767fSmrg$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
84600bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
84610bb88ba4Smrg		if eval \${$cacheid+:} false; then :
84620bb88ba4Smrg  $as_echo_n "(cached) " >&6
84630bb88ba4Smrgelse
84640bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84650bb88ba4Smrg/* end confdefs.h.  */
84660bb88ba4Smrgint i;
8467a31a186aSmrgint
8468a31a186aSmrgmain ()
8469a31a186aSmrg{
8470a31a186aSmrg
8471a31a186aSmrg  ;
8472a31a186aSmrg  return 0;
8473a31a186aSmrg}
8474a31a186aSmrg_ACEOF
84750bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
84760bb88ba4Smrg  eval $cacheid=yes
8477a31a186aSmrgelse
84780bb88ba4Smrg  eval $cacheid=no
84790bb88ba4Smrgfi
84800bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
84810bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
84820bb88ba4Smrgfi
8483fe5e51b7Smrg
8484fe5e51b7Smrg
84850bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8486fe5e51b7Smrg
84870bb88ba4Smrg		eval supported=\$$cacheid
84880bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
84890bb88ba4Smrg$as_echo "$supported" >&6; }
84900bb88ba4Smrg		if test "$supported" = "yes" ; then
84910bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
84920bb88ba4Smrg			found="yes"
84930bb88ba4Smrg		fi
84940bb88ba4Smrg	fi
8495fe5e51b7Smrg
8496fe5e51b7Smrg
84970bb88ba4Smrg
84980bb88ba4Smrg
84990bb88ba4Smrg
85000bb88ba4Smrg
85010bb88ba4Smrg
85020bb88ba4Smrg
85030bb88ba4Smrg
85040bb88ba4Smrg
85050bb88ba4Smrg
85060bb88ba4Smrg
85070bb88ba4Smrg
85080bb88ba4Smrg
85090bb88ba4Smrg
85100bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
85110bb88ba4Smrg
85120bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
85130bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85140bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
85150bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
85160bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8517a31a186aSmrg  $as_echo_n "(cached) " >&6
8518a31a186aSmrgelse
85190bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85200bb88ba4Smrg/* end confdefs.h.  */
85210bb88ba4Smrgint i;
85220bb88ba4Smrg_ACEOF
85230bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
85240bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
85250bb88ba4Smrgelse
85260bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
85270bb88ba4Smrgfi
85280bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85290bb88ba4Smrgfi
85300bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
85310bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
85320bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
85330bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
85340bb88ba4Smrgfi
8535fe5e51b7Smrg
85360bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
85370bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85380bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85390bb88ba4Smrg	fi
85400bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85410bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
85420bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
85430bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
85440bb88ba4Smrg  $as_echo_n "(cached) " >&6
85450bb88ba4Smrgelse
85460bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85470bb88ba4Smrg/* end confdefs.h.  */
85480bb88ba4Smrgint i;
85490bb88ba4Smrg_ACEOF
85500bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
85510bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
85520bb88ba4Smrgelse
85530bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
85540bb88ba4Smrgfi
85550bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85560bb88ba4Smrgfi
85570bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
85580bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
85590bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
85600bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
85610bb88ba4Smrgfi
8562fe5e51b7Smrg
85630bb88ba4Smrgfound="no"
8564fe5e51b7Smrg
85650bb88ba4Smrg	if test $found = "no" ; then
85660bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
85670bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85680bb88ba4Smrg		fi
85690bb88ba4Smrg
85700bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
85710bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85720bb88ba4Smrg		fi
85730bb88ba4Smrg
85740bb88ba4Smrg		CFLAGS="$CFLAGS -Wsequence-point"
85750bb88ba4Smrg
8576acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8577acd6767fSmrg$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
85780bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
85790bb88ba4Smrg		if eval \${$cacheid+:} false; then :
85800bb88ba4Smrg  $as_echo_n "(cached) " >&6
85810bb88ba4Smrgelse
85820bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85830bb88ba4Smrg/* end confdefs.h.  */
85840bb88ba4Smrgint i;
8585a31a186aSmrgint
8586a31a186aSmrgmain ()
8587a31a186aSmrg{
85880bb88ba4Smrg
8589a31a186aSmrg  ;
8590a31a186aSmrg  return 0;
8591a31a186aSmrg}
8592a31a186aSmrg_ACEOF
85930bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
85940bb88ba4Smrg  eval $cacheid=yes
8595a31a186aSmrgelse
85960bb88ba4Smrg  eval $cacheid=no
85970bb88ba4Smrgfi
85980bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
85990bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
86000bb88ba4Smrgfi
8601fe5e51b7Smrg
8602fe5e51b7Smrg
86030bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8604fe5e51b7Smrg
86050bb88ba4Smrg		eval supported=\$$cacheid
86060bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
86070bb88ba4Smrg$as_echo "$supported" >&6; }
86080bb88ba4Smrg		if test "$supported" = "yes" ; then
86090bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
86100bb88ba4Smrg			found="yes"
86110bb88ba4Smrg		fi
86120bb88ba4Smrg	fi
8613a31a186aSmrg
8614fe5e51b7Smrg
8615fe5e51b7Smrg
8616fe5e51b7Smrg
8617d7be9c72Smrg
8618d7be9c72Smrg
8619a31a186aSmrg
8620fe5e51b7Smrg
8621fe5e51b7Smrg
8622d7be9c72Smrg
8623d7be9c72Smrg
8624d7be9c72Smrg
8625d7be9c72Smrg
8626d7be9c72Smrg
8627d7be9c72Smrg
86280bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8629d7be9c72Smrg
86300bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
86310bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86320bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
86330bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
86340bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
86350bb88ba4Smrg  $as_echo_n "(cached) " >&6
86360bb88ba4Smrgelse
86370bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86380bb88ba4Smrg/* end confdefs.h.  */
86390bb88ba4Smrgint i;
86400bb88ba4Smrg_ACEOF
86410bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
86420bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
86430bb88ba4Smrgelse
86440bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
86450bb88ba4Smrgfi
86460bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86470bb88ba4Smrgfi
86480bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
86490bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
86500bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
86510bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
86520bb88ba4Smrgfi
8653d7be9c72Smrg
86540bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
86550bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86560bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86570bb88ba4Smrg	fi
86580bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86590bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
86600bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
86610bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
86620bb88ba4Smrg  $as_echo_n "(cached) " >&6
86630bb88ba4Smrgelse
86640bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86650bb88ba4Smrg/* end confdefs.h.  */
86660bb88ba4Smrgint i;
86670bb88ba4Smrg_ACEOF
86680bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
86690bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
86700bb88ba4Smrgelse
86710bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
86720bb88ba4Smrgfi
86730bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86740bb88ba4Smrgfi
86750bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
86760bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
86770bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
86780bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
86790bb88ba4Smrgfi
8680d7be9c72Smrg
86810bb88ba4Smrgfound="no"
8682d7be9c72Smrg
86830bb88ba4Smrg	if test $found = "no" ; then
86840bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
86850bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86860bb88ba4Smrg		fi
8687d7be9c72Smrg
86880bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
86890bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86900bb88ba4Smrg		fi
8691d7be9c72Smrg
86920bb88ba4Smrg		CFLAGS="$CFLAGS -Wreturn-type"
8693d7be9c72Smrg
8694acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
8695acd6767fSmrg$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
86960bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
86970bb88ba4Smrg		if eval \${$cacheid+:} false; then :
86980bb88ba4Smrg  $as_echo_n "(cached) " >&6
86990bb88ba4Smrgelse
87000bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87010bb88ba4Smrg/* end confdefs.h.  */
87020bb88ba4Smrgint i;
87030bb88ba4Smrgint
87040bb88ba4Smrgmain ()
87050bb88ba4Smrg{
8706d7be9c72Smrg
8707d7be9c72Smrg  ;
8708d7be9c72Smrg  return 0;
8709d7be9c72Smrg}
8710d7be9c72Smrg_ACEOF
87110bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
87120bb88ba4Smrg  eval $cacheid=yes
8713d7be9c72Smrgelse
87140bb88ba4Smrg  eval $cacheid=no
87150bb88ba4Smrgfi
87160bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
87170bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
87180bb88ba4Smrgfi
87190bb88ba4Smrg
87200bb88ba4Smrg
87210bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
87220bb88ba4Smrg
87230bb88ba4Smrg		eval supported=\$$cacheid
87240bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
87250bb88ba4Smrg$as_echo "$supported" >&6; }
87260bb88ba4Smrg		if test "$supported" = "yes" ; then
87270bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
87280bb88ba4Smrg			found="yes"
87290bb88ba4Smrg		fi
87300bb88ba4Smrg	fi
87310bb88ba4Smrg
87320bb88ba4Smrg
87330bb88ba4Smrg
87340bb88ba4Smrg
87350bb88ba4Smrg
8736d7be9c72Smrg
8737d7be9c72Smrg
8738d7be9c72Smrg
8739d7be9c72Smrg
8740d7be9c72Smrg
8741d7be9c72Smrg
8742d7be9c72Smrg
8743d7be9c72Smrg
87440bb88ba4Smrg
87450bb88ba4Smrg
87460bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
87470bb88ba4Smrg
87480bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
87490bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87500bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
87510bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
87520bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8753d7be9c72Smrg  $as_echo_n "(cached) " >&6
8754d7be9c72Smrgelse
87550bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756d7be9c72Smrg/* end confdefs.h.  */
87570bb88ba4Smrgint i;
8758d7be9c72Smrg_ACEOF
87590bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
87600bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8761d7be9c72Smrgelse
87620bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
87630bb88ba4Smrgfi
87640bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
87650bb88ba4Smrgfi
87660bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
87670bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
87680bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
87690bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8770d7be9c72Smrgfi
8771d7be9c72Smrg
87720bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
87730bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87740bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87750bb88ba4Smrg	fi
87760bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87770bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
87780bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
87790bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
87800bb88ba4Smrg  $as_echo_n "(cached) " >&6
87810bb88ba4Smrgelse
87820bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783d7be9c72Smrg/* end confdefs.h.  */
87840bb88ba4Smrgint i;
8785a31a186aSmrg_ACEOF
87860bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
87870bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8788fe5e51b7Smrgelse
87890bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
87900bb88ba4Smrgfi
87910bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
87920bb88ba4Smrgfi
87930bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
87940bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
87950bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
87960bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8797fe5e51b7Smrgfi
8798fe5e51b7Smrg
87990bb88ba4Smrgfound="no"
8800fe5e51b7Smrg
88010bb88ba4Smrg	if test $found = "no" ; then
88020bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
88030bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88040bb88ba4Smrg		fi
8805fe5e51b7Smrg
88060bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
88070bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88080bb88ba4Smrg		fi
8809fe5e51b7Smrg
88100bb88ba4Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
88110bb88ba4Smrg
8812acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
8813acd6767fSmrg$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
88140bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
88150bb88ba4Smrg		if eval \${$cacheid+:} false; then :
88160bb88ba4Smrg  $as_echo_n "(cached) " >&6
8817fe5e51b7Smrgelse
88180bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819a31a186aSmrg/* end confdefs.h.  */
88200bb88ba4Smrgint i;
88210bb88ba4Smrgint
88220bb88ba4Smrgmain ()
88230bb88ba4Smrg{
88240bb88ba4Smrg
88250bb88ba4Smrg  ;
88260bb88ba4Smrg  return 0;
88270bb88ba4Smrg}
8828a31a186aSmrg_ACEOF
88290bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
88300bb88ba4Smrg  eval $cacheid=yes
8831a31a186aSmrgelse
88320bb88ba4Smrg  eval $cacheid=no
88330bb88ba4Smrgfi
88340bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
88350bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
8836a31a186aSmrgfi
8837a31a186aSmrg
8838a31a186aSmrg
88390bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
88400bb88ba4Smrg
88410bb88ba4Smrg		eval supported=\$$cacheid
88420bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
88430bb88ba4Smrg$as_echo "$supported" >&6; }
88440bb88ba4Smrg		if test "$supported" = "yes" ; then
88450bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
88460bb88ba4Smrg			found="yes"
88470bb88ba4Smrg		fi
88480bb88ba4Smrg	fi
88490bb88ba4Smrg
88500bb88ba4Smrg
88510bb88ba4Smrg
88520bb88ba4Smrg
88530bb88ba4Smrg
88540bb88ba4Smrg
88550bb88ba4Smrg
88560bb88ba4Smrg
88570bb88ba4Smrg
88580bb88ba4Smrg
88590bb88ba4Smrg
88600bb88ba4Smrg
88610bb88ba4Smrg
88620bb88ba4Smrg
88630bb88ba4Smrg
88640bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
88650bb88ba4Smrg
88660bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
88670bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88680bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
88690bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
88700bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
88710bb88ba4Smrg  $as_echo_n "(cached) " >&6
88720bb88ba4Smrgelse
88730bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874fe5e51b7Smrg/* end confdefs.h.  */
88750bb88ba4Smrgint i;
8876fe5e51b7Smrg_ACEOF
88770bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
88780bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8879fe5e51b7Smrgelse
88800bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
88810bb88ba4Smrgfi
88820bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88830bb88ba4Smrgfi
88840bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
88850bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
88860bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
88870bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8888fe5e51b7Smrgfi
8889fe5e51b7Smrg
88900bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
88910bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88920bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88930bb88ba4Smrg	fi
88940bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88950bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
88960bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
88970bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
88980bb88ba4Smrg  $as_echo_n "(cached) " >&6
8899a31a186aSmrgelse
89000bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89010bb88ba4Smrg/* end confdefs.h.  */
89020bb88ba4Smrgint i;
89030bb88ba4Smrg_ACEOF
89040bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
89050bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
89060bb88ba4Smrgelse
89070bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
89080bb88ba4Smrgfi
89090bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89100bb88ba4Smrgfi
89110bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
89120bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
89130bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
89140bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8915a31a186aSmrgfi
8916a31a186aSmrg
89170bb88ba4Smrgfound="no"
8918a31a186aSmrg
89190bb88ba4Smrg	if test $found = "no" ; then
89200bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
89210bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89220bb88ba4Smrg		fi
8923a31a186aSmrg
89240bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
89250bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89260bb88ba4Smrg		fi
89270bb88ba4Smrg
89280bb88ba4Smrg		CFLAGS="$CFLAGS -Warray-bounds"
89290bb88ba4Smrg
8930acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
8931acd6767fSmrg$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
89320bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
89330bb88ba4Smrg		if eval \${$cacheid+:} false; then :
8934a31a186aSmrg  $as_echo_n "(cached) " >&6
8935a31a186aSmrgelse
89360bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89370bb88ba4Smrg/* end confdefs.h.  */
89380bb88ba4Smrgint i;
89390bb88ba4Smrgint
89400bb88ba4Smrgmain ()
89410bb88ba4Smrg{
89420bb88ba4Smrg
89430bb88ba4Smrg  ;
89440bb88ba4Smrg  return 0;
89450bb88ba4Smrg}
89460bb88ba4Smrg_ACEOF
89470bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
89480bb88ba4Smrg  eval $cacheid=yes
8949a31a186aSmrgelse
89500bb88ba4Smrg  eval $cacheid=no
8951fe5e51b7Smrgfi
89520bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
89530bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
8954a31a186aSmrgfi
8955fe5e51b7Smrg
8956a31a186aSmrg
89570bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
89580bb88ba4Smrg
89590bb88ba4Smrg		eval supported=\$$cacheid
89600bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
89610bb88ba4Smrg$as_echo "$supported" >&6; }
89620bb88ba4Smrg		if test "$supported" = "yes" ; then
89630bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
89640bb88ba4Smrg			found="yes"
89650bb88ba4Smrg		fi
89660bb88ba4Smrg	fi
89670bb88ba4Smrg
89680bb88ba4Smrg
89690bb88ba4Smrg
89700bb88ba4Smrg
89710bb88ba4Smrg
89720bb88ba4Smrg
89730bb88ba4Smrg
89740bb88ba4Smrg
89750bb88ba4Smrg
89760bb88ba4Smrg
89770bb88ba4Smrg
89780bb88ba4Smrg
89790bb88ba4Smrg
89800bb88ba4Smrg
89810bb88ba4Smrg
89820bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
89830bb88ba4Smrg
89840bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
89850bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89860bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
89870bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
89880bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8989a31a186aSmrg  $as_echo_n "(cached) " >&6
8990a31a186aSmrgelse
89910bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89920bb88ba4Smrg/* end confdefs.h.  */
89930bb88ba4Smrgint i;
89940bb88ba4Smrg_ACEOF
89950bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
89960bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8997fe5e51b7Smrgelse
89980bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
89990bb88ba4Smrgfi
90000bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90010bb88ba4Smrgfi
90020bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
90030bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
90040bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
90050bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9006fe5e51b7Smrgfi
9007fe5e51b7Smrg
90080bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
90090bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90100bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90110bb88ba4Smrg	fi
90120bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90130bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
90140bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
90150bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
90160bb88ba4Smrg  $as_echo_n "(cached) " >&6
90170bb88ba4Smrgelse
90180bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90190bb88ba4Smrg/* end confdefs.h.  */
90200bb88ba4Smrgint i;
90210bb88ba4Smrg_ACEOF
90220bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
90230bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
90240bb88ba4Smrgelse
90250bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
90260bb88ba4Smrgfi
90270bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90280bb88ba4Smrgfi
90290bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
90300bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
90310bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
90320bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9033a31a186aSmrgfi
9034fe5e51b7Smrg
90350bb88ba4Smrgfound="no"
9036a31a186aSmrg
90370bb88ba4Smrg	if test $found = "no" ; then
90380bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
90390bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90400bb88ba4Smrg		fi
90410bb88ba4Smrg
90420bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
90430bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90440bb88ba4Smrg		fi
90450bb88ba4Smrg
90460bb88ba4Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
90470bb88ba4Smrg
9048acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9049acd6767fSmrg$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
90500bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
90510bb88ba4Smrg		if eval \${$cacheid+:} false; then :
9052eda3803bSmrg  $as_echo_n "(cached) " >&6
9053fe5e51b7Smrgelse
90540bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055fe5e51b7Smrg/* end confdefs.h.  */
90560bb88ba4Smrgint i;
9057fe5e51b7Smrgint
9058fe5e51b7Smrgmain ()
9059fe5e51b7Smrg{
9060fe5e51b7Smrg
9061fe5e51b7Smrg  ;
9062fe5e51b7Smrg  return 0;
9063fe5e51b7Smrg}
9064fe5e51b7Smrg_ACEOF
90650bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
90660bb88ba4Smrg  eval $cacheid=yes
9067fe5e51b7Smrgelse
90680bb88ba4Smrg  eval $cacheid=no
90690bb88ba4Smrgfi
90700bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
90710bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
9072fe5e51b7Smrgfi
9073fe5e51b7Smrg
9074a31a186aSmrg
90750bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
90760bb88ba4Smrg
90770bb88ba4Smrg		eval supported=\$$cacheid
90780bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
90790bb88ba4Smrg$as_echo "$supported" >&6; }
90800bb88ba4Smrg		if test "$supported" = "yes" ; then
90810bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
90820bb88ba4Smrg			found="yes"
90830bb88ba4Smrg		fi
90840bb88ba4Smrg	fi
90850bb88ba4Smrg
9086a31a186aSmrg
90870bb88ba4Smrg
90880bb88ba4Smrg
90890bb88ba4Smrg
90900bb88ba4Smrg
90910bb88ba4Smrg
90920bb88ba4Smrg
90930bb88ba4Smrg
90940bb88ba4Smrg
90950bb88ba4Smrg
90960bb88ba4Smrg
90970bb88ba4Smrg
90980bb88ba4Smrg
90990bb88ba4Smrg
91000bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
91010bb88ba4Smrg
91020bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
91030bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91040bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
91050bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
91060bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
91070bb88ba4Smrg  $as_echo_n "(cached) " >&6
91080bb88ba4Smrgelse
91090bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91100bb88ba4Smrg/* end confdefs.h.  */
91110bb88ba4Smrgint i;
9112a31a186aSmrg_ACEOF
91130bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
91140bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9115a31a186aSmrgelse
91160bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9117fe5e51b7Smrgfi
91180bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91190bb88ba4Smrgfi
91200bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
91210bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
91220bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
91230bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9124a31a186aSmrgfi
9125a31a186aSmrg
91260bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
91270bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91280bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91290bb88ba4Smrg	fi
91300bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91310bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
91320bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
91330bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
91340bb88ba4Smrg  $as_echo_n "(cached) " >&6
91350bb88ba4Smrgelse
91360bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137a31a186aSmrg/* end confdefs.h.  */
91380bb88ba4Smrgint i;
9139a31a186aSmrg_ACEOF
91400bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
91410bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9142a31a186aSmrgelse
91430bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9144a31a186aSmrgfi
91450bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91460bb88ba4Smrgfi
91470bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
91480bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
91490bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
91500bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9151a31a186aSmrgfi
9152a31a186aSmrg
91530bb88ba4Smrgfound="no"
91540bb88ba4Smrg
91550bb88ba4Smrg	if test $found = "no" ; then
91560bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
91570bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91580bb88ba4Smrg		fi
91590bb88ba4Smrg
91600bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
91610bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91620bb88ba4Smrg		fi
91630bb88ba4Smrg
91640bb88ba4Smrg		CFLAGS="$CFLAGS -Waddress"
91650bb88ba4Smrg
9166acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9167acd6767fSmrg$as_echo_n "checking if $CC supports-Waddress... " >&6; }
91680bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Waddress
91690bb88ba4Smrg		if eval \${$cacheid+:} false; then :
91700bb88ba4Smrg  $as_echo_n "(cached) " >&6
9171fe5e51b7Smrgelse
91720bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173fe5e51b7Smrg/* end confdefs.h.  */
91740bb88ba4Smrgint i;
9175fe5e51b7Smrgint
9176fe5e51b7Smrgmain ()
9177fe5e51b7Smrg{
91780bb88ba4Smrg
91790bb88ba4Smrg  ;
9180fe5e51b7Smrg  return 0;
9181fe5e51b7Smrg}
9182fe5e51b7Smrg_ACEOF
91830bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
91840bb88ba4Smrg  eval $cacheid=yes
91850bb88ba4Smrgelse
91860bb88ba4Smrg  eval $cacheid=no
91870bb88ba4Smrgfi
91880bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
91890bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
91900bb88ba4Smrgfi
91910bb88ba4Smrg
91920bb88ba4Smrg
91930bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
91940bb88ba4Smrg
91950bb88ba4Smrg		eval supported=\$$cacheid
91960bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
91970bb88ba4Smrg$as_echo "$supported" >&6; }
91980bb88ba4Smrg		if test "$supported" = "yes" ; then
91990bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
92000bb88ba4Smrg			found="yes"
92010bb88ba4Smrg		fi
92020bb88ba4Smrg	fi
92030bb88ba4Smrg
92040bb88ba4Smrg
92050bb88ba4Smrg
92060bb88ba4Smrg
92070bb88ba4Smrg
92080bb88ba4Smrg
92090bb88ba4Smrg
92100bb88ba4Smrg
92110bb88ba4Smrg
92120bb88ba4Smrg
92130bb88ba4Smrg
92140bb88ba4Smrg
92150bb88ba4Smrg
92160bb88ba4Smrg
92170bb88ba4Smrg
92180bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
92190bb88ba4Smrg
92200bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
92210bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92220bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
92230bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
92240bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
92250bb88ba4Smrg  $as_echo_n "(cached) " >&6
92260bb88ba4Smrgelse
92270bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92280bb88ba4Smrg/* end confdefs.h.  */
92290bb88ba4Smrgint i;
92300bb88ba4Smrg_ACEOF
92310bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
92320bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
92330bb88ba4Smrgelse
92340bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
92350bb88ba4Smrgfi
92360bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
92370bb88ba4Smrgfi
92380bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
92390bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
92400bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
92410bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
92420bb88ba4Smrgfi
92430bb88ba4Smrg
92440bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
92450bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92460bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92470bb88ba4Smrg	fi
92480bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92490bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
92500bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
92510bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
92520bb88ba4Smrg  $as_echo_n "(cached) " >&6
92530bb88ba4Smrgelse
92540bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92550bb88ba4Smrg/* end confdefs.h.  */
92560bb88ba4Smrgint i;
92570bb88ba4Smrg_ACEOF
92580bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
92590bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
92600bb88ba4Smrgelse
92610bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
92620bb88ba4Smrgfi
92630bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
92640bb88ba4Smrgfi
92650bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
92660bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
92670bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
92680bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
92690bb88ba4Smrgfi
92700bb88ba4Smrg
92710bb88ba4Smrgfound="no"
92720bb88ba4Smrg
92730bb88ba4Smrg	if test $found = "no" ; then
92740bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
92750bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92760bb88ba4Smrg		fi
92770bb88ba4Smrg
92780bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
92790bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92800bb88ba4Smrg		fi
92810bb88ba4Smrg
92820bb88ba4Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
92830bb88ba4Smrg
9284acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9285acd6767fSmrg$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
92860bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
92870bb88ba4Smrg		if eval \${$cacheid+:} false; then :
92880bb88ba4Smrg  $as_echo_n "(cached) " >&6
9289fe5e51b7Smrgelse
92900bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92910bb88ba4Smrg/* end confdefs.h.  */
92920bb88ba4Smrgint i;
92930bb88ba4Smrgint
92940bb88ba4Smrgmain ()
92950bb88ba4Smrg{
9296fe5e51b7Smrg
92970bb88ba4Smrg  ;
92980bb88ba4Smrg  return 0;
92990bb88ba4Smrg}
93000bb88ba4Smrg_ACEOF
93010bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
93020bb88ba4Smrg  eval $cacheid=yes
93030bb88ba4Smrgelse
93040bb88ba4Smrg  eval $cacheid=no
9305a31a186aSmrgfi
93060bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
93070bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
9308fe5e51b7Smrgfi
9309fe5e51b7Smrg
9310fe5e51b7Smrg
93110bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9312a31a186aSmrg
93130bb88ba4Smrg		eval supported=\$$cacheid
93140bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
93150bb88ba4Smrg$as_echo "$supported" >&6; }
93160bb88ba4Smrg		if test "$supported" = "yes" ; then
93170bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
93180bb88ba4Smrg			found="yes"
93190bb88ba4Smrg		fi
93200bb88ba4Smrg	fi
9321a31a186aSmrg
9322a31a186aSmrg
9323a31a186aSmrg
9324a31a186aSmrg
9325a31a186aSmrg
9326a31a186aSmrg
9327a31a186aSmrg
9328a31a186aSmrg
9329a31a186aSmrg
9330a31a186aSmrg
9331a31a186aSmrg
93320bb88ba4Smrg
93330bb88ba4Smrg
93340bb88ba4Smrg
93350bb88ba4Smrg
93360bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
93370bb88ba4Smrg
93380bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
93390bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93400bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
93410bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
93420bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9343eda3803bSmrg  $as_echo_n "(cached) " >&6
9344fe5e51b7Smrgelse
93450bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346fe5e51b7Smrg/* end confdefs.h.  */
93470bb88ba4Smrgint i;
9348fe5e51b7Smrg_ACEOF
93490bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
93500bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9351fe5e51b7Smrgelse
93520bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9353a31a186aSmrgfi
9354a31a186aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355a31a186aSmrgfi
93560bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
93570bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
93580bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
93590bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
93600bb88ba4Smrgfi
9361a31a186aSmrg
93620bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
93630bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93640bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93650bb88ba4Smrg	fi
93660bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93670bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
93680bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
93690bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
93700bb88ba4Smrg  $as_echo_n "(cached) " >&6
93710bb88ba4Smrgelse
93720bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93730bb88ba4Smrg/* end confdefs.h.  */
93740bb88ba4Smrgint i;
93750bb88ba4Smrg_ACEOF
93760bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
93770bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
93780bb88ba4Smrgelse
93790bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
93800bb88ba4Smrgfi
93810bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93820bb88ba4Smrgfi
93830bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
93840bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
93850bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
93860bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9387a31a186aSmrgfi
9388a31a186aSmrg
93890bb88ba4Smrgfound="no"
9390a31a186aSmrg
93910bb88ba4Smrg	if test $found = "no" ; then
93920bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
93930bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93940bb88ba4Smrg		fi
9395a31a186aSmrg
93960bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
93970bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93980bb88ba4Smrg		fi
9399fe5e51b7Smrg
94000bb88ba4Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9401a31a186aSmrg
9402acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9403acd6767fSmrg$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
94040bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
94050bb88ba4Smrg		if eval \${$cacheid+:} false; then :
9406eda3803bSmrg  $as_echo_n "(cached) " >&6
9407fe5e51b7Smrgelse
94080bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94090bb88ba4Smrg/* end confdefs.h.  */
94100bb88ba4Smrgint i;
94110bb88ba4Smrgint
94120bb88ba4Smrgmain ()
94130bb88ba4Smrg{
9414643b027fSmrg
94150bb88ba4Smrg  ;
94160bb88ba4Smrg  return 0;
94170bb88ba4Smrg}
94180bb88ba4Smrg_ACEOF
94190bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
94200bb88ba4Smrg  eval $cacheid=yes
9421a31a186aSmrgelse
94220bb88ba4Smrg  eval $cacheid=no
9423a31a186aSmrgfi
94240bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
94250bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
9426fe5e51b7Smrgfi
9427a31a186aSmrg
9428a31a186aSmrg
94290bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9430a31a186aSmrg
94310bb88ba4Smrg		eval supported=\$$cacheid
94320bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
94330bb88ba4Smrg$as_echo "$supported" >&6; }
94340bb88ba4Smrg		if test "$supported" = "yes" ; then
94350bb88ba4Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
94360bb88ba4Smrg			found="yes"
94370bb88ba4Smrg		fi
9438a31a186aSmrg	fi
9439a31a186aSmrg
94400bb88ba4Smrg
9441a31a186aSmrgfi
9442eda3803bSmrg
9443fe5e51b7Smrg
9444fe5e51b7Smrg
9445fe5e51b7Smrg
9446fe5e51b7Smrg
9447fe5e51b7Smrg
9448fe5e51b7Smrg
94490bb88ba4Smrg		CWARNFLAGS="$BASE_CFLAGS"
94500bb88ba4Smrg		if  test "x$GCC" = xyes ; then
94510bb88ba4Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
94520bb88ba4Smrg		fi
94530bb88ba4Smrg
94540bb88ba4Smrg
94550bb88ba4Smrg
94560bb88ba4Smrg
94570bb88ba4Smrg
9458d7be9c72Smrg
94590bb88ba4Smrg
94600bb88ba4Smrg
94610bb88ba4Smrg# Check whether --enable-strict-compilation was given.
94620bb88ba4Smrgif test "${enable_strict_compilation+set}" = set; then :
94630bb88ba4Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9464d7be9c72Smrgelse
94650bb88ba4Smrg  STRICT_COMPILE=no
9466d7be9c72Smrgfi
9467d7be9c72Smrg
9468d7be9c72Smrg
9469d7be9c72Smrg
9470d7be9c72Smrg
9471d7be9c72Smrg
9472d7be9c72Smrg
94730bb88ba4SmrgSTRICT_CFLAGS=""
94740bb88ba4Smrg
94750bb88ba4Smrg
94760bb88ba4Smrg
94770bb88ba4Smrg
94780bb88ba4Smrg
94790bb88ba4Smrg
94800bb88ba4Smrg
94810bb88ba4Smrg
94820bb88ba4Smrg
94830bb88ba4Smrg
94840bb88ba4Smrg
94850bb88ba4Smrg
94860bb88ba4Smrg
94870bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
94880bb88ba4Smrg
94890bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
94900bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94910bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
94920bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
94930bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
94940bb88ba4Smrg  $as_echo_n "(cached) " >&6
94950bb88ba4Smrgelse
94960bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94970bb88ba4Smrg/* end confdefs.h.  */
94980bb88ba4Smrgint i;
94990bb88ba4Smrg_ACEOF
95000bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
95010bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9502d7be9c72Smrgelse
95030bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
95040bb88ba4Smrgfi
95050bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95060bb88ba4Smrgfi
95070bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
95080bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
95090bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
95100bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
95110bb88ba4Smrgfi
95120bb88ba4Smrg
95130bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
95140bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95150bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95160bb88ba4Smrg	fi
95170bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95180bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
95190bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
95200bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9521d7be9c72Smrg  $as_echo_n "(cached) " >&6
9522d7be9c72Smrgelse
95230bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95240bb88ba4Smrg/* end confdefs.h.  */
95250bb88ba4Smrgint i;
9526d7be9c72Smrg_ACEOF
95270bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
95280bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
95290bb88ba4Smrgelse
95300bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
95310bb88ba4Smrgfi
95320bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95330bb88ba4Smrgfi
95340bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
95350bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
95360bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
95370bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
95380bb88ba4Smrgfi
95390bb88ba4Smrg
95400bb88ba4Smrgfound="no"
95410bb88ba4Smrg
95420bb88ba4Smrg	if test $found = "no" ; then
95430bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
95440bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95450bb88ba4Smrg		fi
95460bb88ba4Smrg
95470bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
95480bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95490bb88ba4Smrg		fi
95500bb88ba4Smrg
95510bb88ba4Smrg		CFLAGS="$CFLAGS -pedantic"
95520bb88ba4Smrg
9553acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9554acd6767fSmrg$as_echo_n "checking if $CC supports-pedantic... " >&6; }
95550bb88ba4Smrg		cacheid=xorg_cv_cc_flag__pedantic
95560bb88ba4Smrg		if eval \${$cacheid+:} false; then :
95570bb88ba4Smrg  $as_echo_n "(cached) " >&6
95580bb88ba4Smrgelse
95590bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560d7be9c72Smrg/* end confdefs.h.  */
95610bb88ba4Smrgint i;
9562d7be9c72Smrgint
9563d7be9c72Smrgmain ()
9564d7be9c72Smrg{
9565d7be9c72Smrg
9566d7be9c72Smrg  ;
9567d7be9c72Smrg  return 0;
9568d7be9c72Smrg}
9569d7be9c72Smrg_ACEOF
95700bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
95710bb88ba4Smrg  eval $cacheid=yes
9572d7be9c72Smrgelse
95730bb88ba4Smrg  eval $cacheid=no
9574fe5e51b7Smrgfi
95750bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
95760bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
95770bb88ba4Smrgfi
95780bb88ba4Smrg
95790bb88ba4Smrg
95800bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
95810bb88ba4Smrg
95820bb88ba4Smrg		eval supported=\$$cacheid
95830bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
95840bb88ba4Smrg$as_echo "$supported" >&6; }
95850bb88ba4Smrg		if test "$supported" = "yes" ; then
95860bb88ba4Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
95870bb88ba4Smrg			found="yes"
95880bb88ba4Smrg		fi
95890bb88ba4Smrg	fi
95900bb88ba4Smrg
95910bb88ba4Smrg
95920bb88ba4Smrg
95930bb88ba4Smrg
95940bb88ba4Smrg
95950bb88ba4Smrg
95960bb88ba4Smrg
9597fe5e51b7Smrg
95980bb88ba4Smrg
95990bb88ba4Smrg
96000bb88ba4Smrg
96010bb88ba4Smrg
96020bb88ba4Smrg
96030bb88ba4Smrg
96040bb88ba4Smrg
96050bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
96060bb88ba4Smrg
96070bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
96080bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96090bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
96100bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
96110bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
96120bb88ba4Smrg  $as_echo_n "(cached) " >&6
96130bb88ba4Smrgelse
96140bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96150bb88ba4Smrg/* end confdefs.h.  */
96160bb88ba4Smrgint i;
96170bb88ba4Smrg_ACEOF
96180bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
96190bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
96200bb88ba4Smrgelse
96210bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
96220bb88ba4Smrgfi
9623a31a186aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624fe5e51b7Smrgfi
96250bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
96260bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
96270bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
96280bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9629fe5e51b7Smrgfi
9630fe5e51b7Smrg
96310bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
96320bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96330bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96340bb88ba4Smrg	fi
96350bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96360bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
96370bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
96380bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
96390bb88ba4Smrg  $as_echo_n "(cached) " >&6
96400bb88ba4Smrgelse
96410bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96420bb88ba4Smrg/* end confdefs.h.  */
96430bb88ba4Smrgint i;
96440bb88ba4Smrg_ACEOF
96450bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
96460bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
96470bb88ba4Smrgelse
96480bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
96490bb88ba4Smrgfi
96500bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
96510bb88ba4Smrgfi
96520bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
96530bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
96540bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
96550bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9656a31a186aSmrgfi
9657fe5e51b7Smrg
96580bb88ba4Smrgfound="no"
9659a31a186aSmrg
96600bb88ba4Smrg	if test $found = "no" ; then
96610bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
96620bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96630bb88ba4Smrg		fi
9664a31a186aSmrg
96650bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
96660bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96670bb88ba4Smrg		fi
9668a31a186aSmrg
96690bb88ba4Smrg		CFLAGS="$CFLAGS -Werror"
9670a31a186aSmrg
9671acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
9672acd6767fSmrg$as_echo_n "checking if $CC supports-Werror... " >&6; }
96730bb88ba4Smrg		cacheid=xorg_cv_cc_flag__Werror
96740bb88ba4Smrg		if eval \${$cacheid+:} false; then :
96750bb88ba4Smrg  $as_echo_n "(cached) " >&6
96760bb88ba4Smrgelse
96770bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96780bb88ba4Smrg/* end confdefs.h.  */
96790bb88ba4Smrgint i;
96800bb88ba4Smrgint
96810bb88ba4Smrgmain ()
96820bb88ba4Smrg{
9683a31a186aSmrg
96840bb88ba4Smrg  ;
96850bb88ba4Smrg  return 0;
96860bb88ba4Smrg}
96870bb88ba4Smrg_ACEOF
96880bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
96890bb88ba4Smrg  eval $cacheid=yes
9690fe5e51b7Smrgelse
96910bb88ba4Smrg  eval $cacheid=no
96920bb88ba4Smrgfi
96930bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
96940bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
9695a31a186aSmrgfi
9696a31a186aSmrg
96970bb88ba4Smrg
96980bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
96990bb88ba4Smrg
97000bb88ba4Smrg		eval supported=\$$cacheid
97010bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
97020bb88ba4Smrg$as_echo "$supported" >&6; }
97030bb88ba4Smrg		if test "$supported" = "yes" ; then
97040bb88ba4Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
97050bb88ba4Smrg			found="yes"
97060bb88ba4Smrg		fi
97070bb88ba4Smrg	fi
97080bb88ba4Smrg
97090bb88ba4Smrg	if test $found = "no" ; then
97100bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
97110bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97120bb88ba4Smrg		fi
97130bb88ba4Smrg
97140bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
97150bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97160bb88ba4Smrg		fi
97170bb88ba4Smrg
97180bb88ba4Smrg		CFLAGS="$CFLAGS -errwarn"
97190bb88ba4Smrg
9720acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
9721acd6767fSmrg$as_echo_n "checking if $CC supports-errwarn... " >&6; }
97220bb88ba4Smrg		cacheid=xorg_cv_cc_flag__errwarn
97230bb88ba4Smrg		if eval \${$cacheid+:} false; then :
9724a31a186aSmrg  $as_echo_n "(cached) " >&6
9725fe5e51b7Smrgelse
97260bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727a31a186aSmrg/* end confdefs.h.  */
97280bb88ba4Smrgint i;
9729a31a186aSmrgint
9730a31a186aSmrgmain ()
9731a31a186aSmrg{
9732a31a186aSmrg
9733a31a186aSmrg  ;
9734a31a186aSmrg  return 0;
9735a31a186aSmrg}
9736a31a186aSmrg_ACEOF
97370bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
97380bb88ba4Smrg  eval $cacheid=yes
9739a31a186aSmrgelse
97400bb88ba4Smrg  eval $cacheid=no
9741fe5e51b7Smrgfi
97420bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
97430bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
97440bb88ba4Smrgfi
97450bb88ba4Smrg
97460bb88ba4Smrg
97470bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
97480bb88ba4Smrg
97490bb88ba4Smrg		eval supported=\$$cacheid
97500bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
97510bb88ba4Smrg$as_echo "$supported" >&6; }
97520bb88ba4Smrg		if test "$supported" = "yes" ; then
97530bb88ba4Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
97540bb88ba4Smrg			found="yes"
97550bb88ba4Smrg		fi
97560bb88ba4Smrg	fi
97570bb88ba4Smrg
97580bb88ba4Smrg
97590bb88ba4Smrg
97600bb88ba4Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
97610bb88ba4Smrg# activate it with -Werror, so we add it here explicitly.
97620bb88ba4Smrg
97630bb88ba4Smrg
97640bb88ba4Smrg
97650bb88ba4Smrg
97660bb88ba4Smrg
97670bb88ba4Smrg
97680bb88ba4Smrg
97690bb88ba4Smrg
97700bb88ba4Smrg
97710bb88ba4Smrg
9772fe5e51b7Smrg
97730bb88ba4Smrg
97740bb88ba4Smrg
97750bb88ba4Smrgxorg_testset_save_CFLAGS="$CFLAGS"
97760bb88ba4Smrg
97770bb88ba4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
97780bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97790bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
97800bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
97810bb88ba4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
97820bb88ba4Smrg  $as_echo_n "(cached) " >&6
97830bb88ba4Smrgelse
97840bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97850bb88ba4Smrg/* end confdefs.h.  */
97860bb88ba4Smrgint i;
97870bb88ba4Smrg_ACEOF
97880bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
97890bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
97900bb88ba4Smrgelse
97910bb88ba4Smrg  xorg_cv_cc_flag_unknown_warning_option=no
97920bb88ba4Smrgfi
9793a31a186aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794a31a186aSmrgfi
97950bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
97960bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
97970bb88ba4Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
97980bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9799fe5e51b7Smrgfi
9800fe5e51b7Smrg
98010bb88ba4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
98020bb88ba4Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98030bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98040bb88ba4Smrg	fi
98050bb88ba4Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
98060bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
98070bb88ba4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
98080bb88ba4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9809eda3803bSmrg  $as_echo_n "(cached) " >&6
9810eda3803bSmrgelse
98110bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98120bb88ba4Smrg/* end confdefs.h.  */
98130bb88ba4Smrgint i;
9814a31a186aSmrg_ACEOF
98150bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
98160bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
98170bb88ba4Smrgelse
98180bb88ba4Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
98190bb88ba4Smrgfi
98200bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
98210bb88ba4Smrgfi
98220bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
98230bb88ba4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
98240bb88ba4Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
98250bb88ba4Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
98260bb88ba4Smrgfi
98270bb88ba4Smrg
98280bb88ba4Smrgfound="no"
98290bb88ba4Smrg
98300bb88ba4Smrg	if test $found = "no" ; then
98310bb88ba4Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
98320bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98330bb88ba4Smrg		fi
98340bb88ba4Smrg
98350bb88ba4Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
98360bb88ba4Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
98370bb88ba4Smrg		fi
98380bb88ba4Smrg
98390bb88ba4Smrg		CFLAGS="$CFLAGS -Werror=attributes"
98400bb88ba4Smrg
9841acd6767fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
9842acd6767fSmrg$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
9843acd6767fSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
98440bb88ba4Smrg		if eval \${$cacheid+:} false; then :
98450bb88ba4Smrg  $as_echo_n "(cached) " >&6
98460bb88ba4Smrgelse
98470bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848a31a186aSmrg/* end confdefs.h.  */
98490bb88ba4Smrgint i;
9850a31a186aSmrgint
9851a31a186aSmrgmain ()
9852a31a186aSmrg{
9853fe5e51b7Smrg
9854a31a186aSmrg  ;
9855a31a186aSmrg  return 0;
9856a31a186aSmrg}
9857a31a186aSmrg_ACEOF
98580bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
98590bb88ba4Smrg  eval $cacheid=yes
9860a31a186aSmrgelse
98610bb88ba4Smrg  eval $cacheid=no
9862a31a186aSmrgfi
98630bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
98640bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
9865a31a186aSmrgfi
9866fe5e51b7Smrg
98670bb88ba4Smrg
98680bb88ba4Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
98690bb88ba4Smrg
98700bb88ba4Smrg		eval supported=\$$cacheid
98710bb88ba4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
98720bb88ba4Smrg$as_echo "$supported" >&6; }
98730bb88ba4Smrg		if test "$supported" = "yes" ; then
98740bb88ba4Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
98750bb88ba4Smrg			found="yes"
98760bb88ba4Smrg		fi
9877a31a186aSmrg	fi
98780bb88ba4Smrg
98790bb88ba4Smrg
98800bb88ba4Smrg
98810bb88ba4Smrgif test "x$STRICT_COMPILE" = "xyes"; then
98820bb88ba4Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
98830bb88ba4Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9884a31a186aSmrgfi
98850bb88ba4Smrg
98860bb88ba4Smrg
9887fe5e51b7Smrg
9888fe5e51b7Smrg
9889fe5e51b7Smrg
9890fe5e51b7Smrg
9891a31a186aSmrgcat >>confdefs.h <<_ACEOF
9892a31a186aSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9893a31a186aSmrg_ACEOF
9894fe5e51b7Smrg
9895a31a186aSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9896a31a186aSmrg	if test "x$PVM" = "x"; then
9897a31a186aSmrg		PVM="0"
9898a31a186aSmrg	fi
9899fe5e51b7Smrg
9900a31a186aSmrgcat >>confdefs.h <<_ACEOF
9901a31a186aSmrg#define PACKAGE_VERSION_MINOR $PVM
9902a31a186aSmrg_ACEOF
9903fe5e51b7Smrg
9904a31a186aSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9905a31a186aSmrg	if test "x$PVP" = "x"; then
9906a31a186aSmrg		PVP="0"
9907a31a186aSmrg	fi
9908fe5e51b7Smrg
9909a31a186aSmrgcat >>confdefs.h <<_ACEOF
9910a31a186aSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
9911a31a186aSmrg_ACEOF
9912fe5e51b7Smrg
9913eda3803bSmrg
9914fe5e51b7Smrg
9915a31a186aSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9916a31a186aSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9917a31a186aSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9918a31a186aSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
9919fe5e51b7Smrg
9920fe5e51b7Smrg
9921fe5e51b7Smrg
9922fe5e51b7Smrg
9923d7be9c72Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9924d7be9c72SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9925a31a186aSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9926a31a186aSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9927d7be9c72Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9928d7be9c72Smrg
9929fe5e51b7Smrg
9930fe5e51b7Smrg
9931eda3803bSmrg
9932eda3803bSmrg
9933eda3803bSmrg
9934a31a186aSmrgif test x$APP_MAN_SUFFIX = x    ; then
9935a31a186aSmrg    APP_MAN_SUFFIX=1
9936a31a186aSmrgfi
9937a31a186aSmrgif test x$APP_MAN_DIR = x    ; then
9938a31a186aSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9939fe5e51b7Smrgfi
9940fe5e51b7Smrg
9941a31a186aSmrgif test x$LIB_MAN_SUFFIX = x    ; then
9942a31a186aSmrg    LIB_MAN_SUFFIX=3
9943a31a186aSmrgfi
9944a31a186aSmrgif test x$LIB_MAN_DIR = x    ; then
9945a31a186aSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9946a31a186aSmrgfi
9947fe5e51b7Smrg
9948a31a186aSmrgif test x$FILE_MAN_SUFFIX = x    ; then
9949a31a186aSmrg    case $host_os in
9950a31a186aSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
9951a31a186aSmrg	*)		FILE_MAN_SUFFIX=5  ;;
9952643b027fSmrg    esac
9953a31a186aSmrgfi
9954a31a186aSmrgif test x$FILE_MAN_DIR = x    ; then
9955a31a186aSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9956a31a186aSmrgfi
9957a31a186aSmrg
9958a31a186aSmrgif test x$MISC_MAN_SUFFIX = x    ; then
9959a31a186aSmrg    case $host_os in
9960a31a186aSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
9961a31a186aSmrg	*)		MISC_MAN_SUFFIX=7  ;;
9962643b027fSmrg    esac
9963a31a186aSmrgfi
9964a31a186aSmrgif test x$MISC_MAN_DIR = x    ; then
9965a31a186aSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9966a31a186aSmrgfi
9967a31a186aSmrg
9968a31a186aSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
9969a31a186aSmrg    case $host_os in
9970a31a186aSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
9971a31a186aSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
9972643b027fSmrg    esac
9973a31a186aSmrgfi
9974a31a186aSmrgif test x$DRIVER_MAN_DIR = x    ; then
9975a31a186aSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9976a31a186aSmrgfi
9977fe5e51b7Smrg
9978a31a186aSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
9979a31a186aSmrg    case $host_os in
9980a31a186aSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
9981a31a186aSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
9982643b027fSmrg    esac
9983a31a186aSmrgfi
9984a31a186aSmrgif test x$ADMIN_MAN_DIR = x    ; then
9985a31a186aSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9986a31a186aSmrgfi
9987fe5e51b7Smrg
9988fe5e51b7Smrg
9989fe5e51b7Smrg
9990fe5e51b7Smrg
9991fe5e51b7Smrg
9992fe5e51b7Smrg
9993fe5e51b7Smrg
9994fe5e51b7Smrg
9995eda3803bSmrg
9996fe5e51b7Smrg
9997fe5e51b7Smrg
9998fe5e51b7Smrg
9999fe5e51b7Smrg
10000fe5e51b7Smrg
10001fe5e51b7Smrg
10002d7be9c72SmrgXORG_MAN_PAGE="X Version 11"
10003d7be9c72Smrg
10004d7be9c72SmrgMAN_SUBSTS="\
10005d7be9c72Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10006d7be9c72Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10007d7be9c72Smrg	-e 's|__xservername__|Xorg|g' \
10008d7be9c72Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
10009d7be9c72Smrg	-e 's|__projectroot__|\$(prefix)|g' \
100100bb88ba4Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10011d7be9c72Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10012d7be9c72Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10013d7be9c72Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10014d7be9c72Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10015d7be9c72Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10016d7be9c72Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10017d7be9c72Smrg
10018d7be9c72Smrg
10019d7be9c72Smrg
10020d7be9c72Smrg# Check whether --enable-silent-rules was given.
100210bb88ba4Smrgif test "${enable_silent_rules+set}" = set; then :
10022d7be9c72Smrg  enableval=$enable_silent_rules;
10023d7be9c72Smrgfi
10024d7be9c72Smrg
10025acd6767fSmrgcase $enable_silent_rules in # (((
10026acd6767fSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
10027acd6767fSmrg   no) AM_DEFAULT_VERBOSITY=1;;
10028acd6767fSmrg    *) AM_DEFAULT_VERBOSITY=0;;
10029d7be9c72Smrgesac
100300bb88ba4Smrgam_make=${MAKE-make}
100310bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
100320bb88ba4Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
100330bb88ba4Smrgif ${am_cv_make_support_nested_variables+:} false; then :
100340bb88ba4Smrg  $as_echo_n "(cached) " >&6
100350bb88ba4Smrgelse
100360bb88ba4Smrg  if $as_echo 'TRUE=$(BAR$(V))
100370bb88ba4SmrgBAR0=false
100380bb88ba4SmrgBAR1=true
100390bb88ba4SmrgV=1
100400bb88ba4Smrgam__doit:
100410bb88ba4Smrg	@$(TRUE)
100420bb88ba4Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
100430bb88ba4Smrg  am_cv_make_support_nested_variables=yes
100440bb88ba4Smrgelse
100450bb88ba4Smrg  am_cv_make_support_nested_variables=no
100460bb88ba4Smrgfi
100470bb88ba4Smrgfi
100480bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
100490bb88ba4Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
100500bb88ba4Smrgif test $am_cv_make_support_nested_variables = yes; then
100510bb88ba4Smrg    AM_V='$(V)'
100520bb88ba4Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
100530bb88ba4Smrgelse
100540bb88ba4Smrg  AM_V=$AM_DEFAULT_VERBOSITY
100550bb88ba4Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
100560bb88ba4Smrgfi
10057d7be9c72SmrgAM_BACKSLASH='\'
10058d7be9c72Smrg
10059fe5e51b7Smrg
10060fe5e51b7Smrg
10061a31a186aSmrgac_aux_dir=
10062a31a186aSmrgfor ac_dir in . "$srcdir"/.; do
10063a31a186aSmrg  if test -f "$ac_dir/install-sh"; then
10064a31a186aSmrg    ac_aux_dir=$ac_dir
10065a31a186aSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
10066a31a186aSmrg    break
10067a31a186aSmrg  elif test -f "$ac_dir/install.sh"; then
10068a31a186aSmrg    ac_aux_dir=$ac_dir
10069a31a186aSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
10070a31a186aSmrg    break
10071a31a186aSmrg  elif test -f "$ac_dir/shtool"; then
10072a31a186aSmrg    ac_aux_dir=$ac_dir
10073a31a186aSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
10074a31a186aSmrg    break
10075a31a186aSmrg  fi
10076643b027fSmrgdone
10077a31a186aSmrgif test -z "$ac_aux_dir"; then
100780bb88ba4Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
10079643b027fSmrgfi
10080fe5e51b7Smrg
10081a31a186aSmrg# These three variables are undocumented and unsupported,
10082a31a186aSmrg# and are intended to be withdrawn in a future Autoconf release.
10083a31a186aSmrg# They can cause serious problems if a builder's source tree is in a directory
10084a31a186aSmrg# whose full name contains unusual characters.
10085a31a186aSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
10086a31a186aSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
10087a31a186aSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
10088fe5e51b7Smrg
10089fe5e51b7Smrg
10090fe5e51b7Smrg
10091d7be9c72Smrg# Initialize Automake
10092acd6767fSmrgam__api_version='1.12'
10093fe5e51b7Smrg
100940bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10095a31a186aSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
10096a31a186aSmrg# Reject unsafe characters in $srcdir or the absolute working directory
10097a31a186aSmrg# name.  Accept space and tab only in the latter.
10098a31a186aSmrgam_lf='
10099a31a186aSmrg'
10100a31a186aSmrgcase `pwd` in
10101a31a186aSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
101020bb88ba4Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10103a31a186aSmrgesac
10104a31a186aSmrgcase $srcdir in
10105a31a186aSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
10106acd6767fSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
10107643b027fSmrgesac
10108fe5e51b7Smrg
10109acd6767fSmrg# Do 'set' in a subshell so we don't clobber the current shell's
10110a31a186aSmrg# arguments.  Must try -L first in case configure is actually a
10111a31a186aSmrg# symlink; some systems play weird games with the mod time of symlinks
10112a31a186aSmrg# (eg FreeBSD returns the mod time of the symlink's containing
10113a31a186aSmrg# directory).
10114a31a186aSmrgif (
10115acd6767fSmrg   am_has_slept=no
10116acd6767fSmrg   for am_try in 1 2; do
10117acd6767fSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
10118acd6767fSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10119acd6767fSmrg     if test "$*" = "X"; then
10120acd6767fSmrg	# -L didn't work.
10121acd6767fSmrg	set X `ls -t "$srcdir/configure" conftest.file`
10122acd6767fSmrg     fi
10123acd6767fSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
10124acd6767fSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
10125acd6767fSmrg
10126acd6767fSmrg	# If neither matched, then we have a broken ls.  This can happen
10127acd6767fSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
10128acd6767fSmrg	# broken ls alias from the environment.  This has actually
10129acd6767fSmrg	# happened.  Such a system could not be considered "sane".
10130acd6767fSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
10131acd6767fSmrg  alias in your environment" "$LINENO" 5
10132acd6767fSmrg     fi
10133acd6767fSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
10134acd6767fSmrg       break
10135acd6767fSmrg     fi
10136acd6767fSmrg     # Just in case.
10137acd6767fSmrg     sleep 1
10138acd6767fSmrg     am_has_slept=yes
10139acd6767fSmrg   done
10140a31a186aSmrg   test "$2" = conftest.file
10141a31a186aSmrg   )
10142a31a186aSmrgthen
10143a31a186aSmrg   # Ok.
10144a31a186aSmrg   :
10145643b027fSmrgelse
101460bb88ba4Smrg   as_fn_error $? "newly created file is older than distributed files!
101470bb88ba4SmrgCheck your system clock" "$LINENO" 5
10148643b027fSmrgfi
101490bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10150a31a186aSmrg$as_echo "yes" >&6; }
10151acd6767fSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
10152acd6767fSmrg# generated files are strictly newer.
10153acd6767fSmrgam_sleep_pid=
10154acd6767fSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
10155acd6767fSmrg  ( sleep 1 ) &
10156acd6767fSmrg  am_sleep_pid=$!
10157acd6767fSmrgfi
10158acd6767fSmrg
10159acd6767fSmrgrm -f conftest.file
10160acd6767fSmrg
10161a31a186aSmrgtest "$program_prefix" != NONE &&
10162a31a186aSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10163a31a186aSmrg# Use a double $ so make ignores it.
10164a31a186aSmrgtest "$program_suffix" != NONE &&
10165a31a186aSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10166a31a186aSmrg# Double any \ or $.
10167a31a186aSmrg# By default was `s,x,x', remove it if useless.
10168a31a186aSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10169a31a186aSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10170fe5e51b7Smrg
10171a31a186aSmrg# expand $ac_aux_dir to an absolute path
10172a31a186aSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
10173fe5e51b7Smrg
10174a31a186aSmrgif test x"${MISSING+set}" != xset; then
10175a31a186aSmrg  case $am_aux_dir in
10176a31a186aSmrg  *\ * | *\	*)
10177a31a186aSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10178a31a186aSmrg  *)
10179a31a186aSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10180a31a186aSmrg  esac
10181a31a186aSmrgfi
10182a31a186aSmrg# Use eval to expand $SHELL
10183a31a186aSmrgif eval "$MISSING --run true"; then
10184a31a186aSmrg  am_missing_run="$MISSING --run "
10185643b027fSmrgelse
10186a31a186aSmrg  am_missing_run=
10187acd6767fSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
10188acd6767fSmrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
10189643b027fSmrgfi
10190fe5e51b7Smrg
10191a31a186aSmrgif test x"${install_sh}" != xset; then
10192a31a186aSmrg  case $am_aux_dir in
10193a31a186aSmrg  *\ * | *\	*)
10194a31a186aSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10195a31a186aSmrg  *)
10196a31a186aSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
10197a31a186aSmrg  esac
10198643b027fSmrgfi
10199fe5e51b7Smrg
10200acd6767fSmrg# Installed binaries are usually stripped using 'strip' when the user
10201acd6767fSmrg# run "make install-strip".  However 'strip' might not be the right
10202a31a186aSmrg# tool to use in cross-compilation environments, therefore Automake
10203acd6767fSmrg# will honor the 'STRIP' environment variable to overrule this program.
10204a31a186aSmrgif test "$cross_compiling" != no; then
10205a31a186aSmrg  if test -n "$ac_tool_prefix"; then
10206a31a186aSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10207a31a186aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
102080bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
102100bb88ba4Smrgif ${ac_cv_prog_STRIP+:} false; then :
10211a31a186aSmrg  $as_echo_n "(cached) " >&6
10212643b027fSmrgelse
10213a31a186aSmrg  if test -n "$STRIP"; then
10214a31a186aSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10215643b027fSmrgelse
10216a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217a31a186aSmrgfor as_dir in $PATH
10218a31a186aSmrgdo
10219a31a186aSmrg  IFS=$as_save_IFS
10220a31a186aSmrg  test -z "$as_dir" && as_dir=.
102210bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
10222acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10223a31a186aSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
102240bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10225a31a186aSmrg    break 2
10226a31a186aSmrg  fi
10227a31a186aSmrgdone
102280bb88ba4Smrg  done
10229a31a186aSmrgIFS=$as_save_IFS
10230fe5e51b7Smrg
10231fe5e51b7Smrgfi
10232643b027fSmrgfi
10233a31a186aSmrgSTRIP=$ac_cv_prog_STRIP
10234a31a186aSmrgif test -n "$STRIP"; then
102350bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10236a31a186aSmrg$as_echo "$STRIP" >&6; }
10237a31a186aSmrgelse
102380bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239a31a186aSmrg$as_echo "no" >&6; }
10240643b027fSmrgfi
10241fe5e51b7Smrg
10242fe5e51b7Smrg
10243643b027fSmrgfi
10244a31a186aSmrgif test -z "$ac_cv_prog_STRIP"; then
10245a31a186aSmrg  ac_ct_STRIP=$STRIP
10246a31a186aSmrg  # Extract the first word of "strip", so it can be a program name with args.
10247a31a186aSmrgset dummy strip; ac_word=$2
102480bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10249a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
102500bb88ba4Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10251eda3803bSmrg  $as_echo_n "(cached) " >&6
10252fe5e51b7Smrgelse
10253a31a186aSmrg  if test -n "$ac_ct_STRIP"; then
10254a31a186aSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10255fe5e51b7Smrgelse
10256a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257a31a186aSmrgfor as_dir in $PATH
10258a31a186aSmrgdo
10259a31a186aSmrg  IFS=$as_save_IFS
10260a31a186aSmrg  test -z "$as_dir" && as_dir=.
102610bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
10262acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10263a31a186aSmrg    ac_cv_prog_ac_ct_STRIP="strip"
102640bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265a31a186aSmrg    break 2
10266a31a186aSmrg  fi
10267a31a186aSmrgdone
102680bb88ba4Smrg  done
10269a31a186aSmrgIFS=$as_save_IFS
10270fe5e51b7Smrg
10271a31a186aSmrgfi
10272a31a186aSmrgfi
10273a31a186aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10274a31a186aSmrgif test -n "$ac_ct_STRIP"; then
102750bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10276a31a186aSmrg$as_echo "$ac_ct_STRIP" >&6; }
10277a31a186aSmrgelse
102780bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279a31a186aSmrg$as_echo "no" >&6; }
10280fe5e51b7Smrgfi
10281643b027fSmrg
10282a31a186aSmrg  if test "x$ac_ct_STRIP" = x; then
10283a31a186aSmrg    STRIP=":"
10284a31a186aSmrg  else
10285a31a186aSmrg    case $cross_compiling:$ac_tool_warned in
10286a31a186aSmrgyes:)
102870bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10288a31a186aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10289a31a186aSmrgac_tool_warned=yes ;;
10290a31a186aSmrgesac
10291a31a186aSmrg    STRIP=$ac_ct_STRIP
10292a31a186aSmrg  fi
10293a31a186aSmrgelse
10294a31a186aSmrg  STRIP="$ac_cv_prog_STRIP"
10295fe5e51b7Smrgfi
10296643b027fSmrg
10297fe5e51b7Smrgfi
10298a31a186aSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10299fe5e51b7Smrg
103000bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10301a31a186aSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10302a31a186aSmrgif test -z "$MKDIR_P"; then
103030bb88ba4Smrg  if ${ac_cv_path_mkdir+:} false; then :
10304a31a186aSmrg  $as_echo_n "(cached) " >&6
10305a31a186aSmrgelse
10306a31a186aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307a31a186aSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10308a31a186aSmrgdo
10309a31a186aSmrg  IFS=$as_save_IFS
10310a31a186aSmrg  test -z "$as_dir" && as_dir=.
103110bb88ba4Smrg    for ac_prog in mkdir gmkdir; do
10312a31a186aSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
10313acd6767fSmrg	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
10314a31a186aSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10315a31a186aSmrg	     'mkdir (GNU coreutils) '* | \
10316a31a186aSmrg	     'mkdir (coreutils) '* | \
10317a31a186aSmrg	     'mkdir (fileutils) '4.1*)
10318a31a186aSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10319a31a186aSmrg	       break 3;;
10320a31a186aSmrg	   esac
10321a31a186aSmrg	 done
10322a31a186aSmrg       done
103230bb88ba4Smrg  done
10324a31a186aSmrgIFS=$as_save_IFS
10325643b027fSmrg
10326a31a186aSmrgfi
10327fe5e51b7Smrg
103280bb88ba4Smrg  test -d ./--version && rmdir ./--version
10329a31a186aSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
10330a31a186aSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
10331a31a186aSmrg  else
10332a31a186aSmrg    # As a last resort, use the slow shell script.  Don't cache a
10333a31a186aSmrg    # value for MKDIR_P within a source directory, because that will
10334a31a186aSmrg    # break other packages using the cache if that directory is
10335a31a186aSmrg    # removed, or if the value is a relative name.
10336a31a186aSmrg    MKDIR_P="$ac_install_sh -d"
10337a31a186aSmrg  fi
10338a31a186aSmrgfi
103390bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10340a31a186aSmrg$as_echo "$MKDIR_P" >&6; }
10341643b027fSmrg
10342a31a186aSmrgfor ac_prog in gawk mawk nawk awk
10343a31a186aSmrgdo
10344a31a186aSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
10345a31a186aSmrgset dummy $ac_prog; ac_word=$2
103460bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347eda3803bSmrg$as_echo_n "checking for $ac_word... " >&6; }
103480bb88ba4Smrgif ${ac_cv_prog_AWK+:} false; then :
10349eda3803bSmrg  $as_echo_n "(cached) " >&6
10350eda3803bSmrgelse
10351a31a186aSmrg  if test -n "$AWK"; then
10352a31a186aSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10353eda3803bSmrgelse
10354eda3803bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355eda3803bSmrgfor as_dir in $PATH
10356eda3803bSmrgdo
10357eda3803bSmrg  IFS=$as_save_IFS
10358eda3803bSmrg  test -z "$as_dir" && as_dir=.
103590bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
10360acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361a31a186aSmrg    ac_cv_prog_AWK="$ac_prog"
103620bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10363eda3803bSmrg    break 2
10364eda3803bSmrg  fi
10365eda3803bSmrgdone
103660bb88ba4Smrg  done
10367eda3803bSmrgIFS=$as_save_IFS
10368fe5e51b7Smrg
10369eda3803bSmrgfi
10370eda3803bSmrgfi
10371a31a186aSmrgAWK=$ac_cv_prog_AWK
10372a31a186aSmrgif test -n "$AWK"; then
103730bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10374a31a186aSmrg$as_echo "$AWK" >&6; }
10375fe5e51b7Smrgelse
103760bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377eda3803bSmrg$as_echo "no" >&6; }
10378eda3803bSmrgfi
10379fe5e51b7Smrg
10380fe5e51b7Smrg
10381a31a186aSmrg  test -n "$AWK" && break
10382eda3803bSmrgdone
10383fe5e51b7Smrg
103840bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10385a31a186aSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10386a31a186aSmrgset x ${MAKE-make}
10387a31a186aSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
103880bb88ba4Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10389a31a186aSmrg  $as_echo_n "(cached) " >&6
10390a31a186aSmrgelse
10391a31a186aSmrg  cat >conftest.make <<\_ACEOF
10392a31a186aSmrgSHELL = /bin/sh
10393a31a186aSmrgall:
10394a31a186aSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
10395a31a186aSmrg_ACEOF
103960bb88ba4Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10397a31a186aSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
10398a31a186aSmrg  *@@@%%%=?*=@@@%%%*)
10399a31a186aSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
10400a31a186aSmrg  *)
10401a31a186aSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
10402a31a186aSmrgesac
10403a31a186aSmrgrm -f conftest.make
10404fe5e51b7Smrgfi
10405a31a186aSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
104060bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10407a31a186aSmrg$as_echo "yes" >&6; }
10408a31a186aSmrg  SET_MAKE=
10409eda3803bSmrgelse
104100bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411eda3803bSmrg$as_echo "no" >&6; }
10412a31a186aSmrg  SET_MAKE="MAKE=${MAKE-make}"
10413fe5e51b7Smrgfi
10414fe5e51b7Smrg
10415a31a186aSmrgrm -rf .tst 2>/dev/null
10416a31a186aSmrgmkdir .tst 2>/dev/null
10417a31a186aSmrgif test -d .tst; then
10418a31a186aSmrg  am__leading_dot=.
10419a31a186aSmrgelse
10420a31a186aSmrg  am__leading_dot=_
10421a31a186aSmrgfi
10422a31a186aSmrgrmdir .tst 2>/dev/null
10423643b027fSmrg
10424a31a186aSmrgDEPDIR="${am__leading_dot}deps"
10425643b027fSmrg
10426a31a186aSmrgac_config_commands="$ac_config_commands depfiles"
10427a31a186aSmrg
10428a31a186aSmrg
10429a31a186aSmrgam_make=${MAKE-make}
10430a31a186aSmrgcat > confinc << 'END'
10431a31a186aSmrgam__doit:
10432a31a186aSmrg	@echo this is the am__doit target
10433a31a186aSmrg.PHONY: am__doit
10434a31a186aSmrgEND
10435a31a186aSmrg# If we don't find an include directive, just comment out the code.
104360bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10437a31a186aSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
10438a31a186aSmrgam__include="#"
10439a31a186aSmrgam__quote=
10440a31a186aSmrg_am_result=none
10441a31a186aSmrg# First try GNU make style include.
10442a31a186aSmrgecho "include confinc" > confmf
10443acd6767fSmrg# Ignore all kinds of additional output from 'make'.
10444a31a186aSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
10445a31a186aSmrg*the\ am__doit\ target*)
10446a31a186aSmrg  am__include=include
10447a31a186aSmrg  am__quote=
10448a31a186aSmrg  _am_result=GNU
10449a31a186aSmrg  ;;
10450eda3803bSmrgesac
10451a31a186aSmrg# Now try BSD make style include.
10452a31a186aSmrgif test "$am__include" = "#"; then
10453a31a186aSmrg   echo '.include "confinc"' > confmf
10454a31a186aSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
10455a31a186aSmrg   *the\ am__doit\ target*)
10456a31a186aSmrg     am__include=.include
10457a31a186aSmrg     am__quote="\""
10458a31a186aSmrg     _am_result=BSD
10459a31a186aSmrg     ;;
10460a31a186aSmrg   esac
10461fe5e51b7Smrgfi
10462fe5e51b7Smrg
10463a31a186aSmrg
104640bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10465a31a186aSmrg$as_echo "$_am_result" >&6; }
10466a31a186aSmrgrm -f confinc confmf
10467a31a186aSmrg
10468a31a186aSmrg# Check whether --enable-dependency-tracking was given.
104690bb88ba4Smrgif test "${enable_dependency_tracking+set}" = set; then :
10470a31a186aSmrg  enableval=$enable_dependency_tracking;
10471643b027fSmrgfi
10472fe5e51b7Smrg
10473a31a186aSmrgif test "x$enable_dependency_tracking" != xno; then
10474a31a186aSmrg  am_depcomp="$ac_aux_dir/depcomp"
10475a31a186aSmrg  AMDEPBACKSLASH='\'
104760bb88ba4Smrg  am__nodep='_no'
10477a31a186aSmrgfi
10478a31a186aSmrg if test "x$enable_dependency_tracking" != xno; then
10479a31a186aSmrg  AMDEP_TRUE=
10480a31a186aSmrg  AMDEP_FALSE='#'
10481fe5e51b7Smrgelse
10482a31a186aSmrg  AMDEP_TRUE='#'
10483a31a186aSmrg  AMDEP_FALSE=
10484a31a186aSmrgfi
10485fe5e51b7Smrg
10486643b027fSmrg
10487a31a186aSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
10488a31a186aSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10489a31a186aSmrg  # is not polluted with repeated "-I."
10490a31a186aSmrg  am__isrc=' -I$(srcdir)'
10491a31a186aSmrg  # test to see if srcdir already configured
10492a31a186aSmrg  if test -f $srcdir/config.status; then
104930bb88ba4Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10494a31a186aSmrg  fi
10495a31a186aSmrgfi
10496643b027fSmrg
10497a31a186aSmrg# test whether we have cygpath
10498a31a186aSmrgif test -z "$CYGPATH_W"; then
10499a31a186aSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
10500a31a186aSmrg    CYGPATH_W='cygpath -w'
10501a31a186aSmrg  else
10502a31a186aSmrg    CYGPATH_W=echo
10503a31a186aSmrg  fi
10504fe5e51b7Smrgfi
10505fe5e51b7Smrg
10506fe5e51b7Smrg
10507a31a186aSmrg# Define the identity of the package.
10508a31a186aSmrg PACKAGE='xf86-video-mga'
10509acd6767fSmrg VERSION='1.6.3'
10510fe5e51b7Smrg
10511643b027fSmrg
10512a31a186aSmrgcat >>confdefs.h <<_ACEOF
10513a31a186aSmrg#define PACKAGE "$PACKAGE"
10514643b027fSmrg_ACEOF
10515fe5e51b7Smrg
10516a31a186aSmrg
10517a31a186aSmrgcat >>confdefs.h <<_ACEOF
10518a31a186aSmrg#define VERSION "$VERSION"
10519643b027fSmrg_ACEOF
10520fe5e51b7Smrg
10521a31a186aSmrg# Some tools Automake needs.
10522fe5e51b7Smrg
10523a31a186aSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10524fe5e51b7Smrg
10525fe5e51b7Smrg
10526a31a186aSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10527fe5e51b7Smrg
10528fe5e51b7Smrg
10529a31a186aSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10530eda3803bSmrg
10531fe5e51b7Smrg
10532a31a186aSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10533fe5e51b7Smrg
10534fe5e51b7Smrg
10535a31a186aSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10536a31a186aSmrg
10537acd6767fSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
10538acd6767fSmrg# dies out for good.  For more background, see:
10539acd6767fSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10540acd6767fSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10541acd6767fSmrgmkdir_p='$(MKDIR_P)'
10542acd6767fSmrg
10543a31a186aSmrg# We need awk for the "check" target.  The system "awk" is bad on
10544a31a186aSmrg# some platforms.
105450bb88ba4Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
105460bb88ba4Smrg# in the wild :-(  We should find a proper way to deprecate it ...
105470bb88ba4SmrgAMTAR='$${TAR-tar}'
10548a31a186aSmrg
105490bb88ba4Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
10550a31a186aSmrg
10551fe5e51b7Smrg
10552a31a186aSmrg
10553a31a186aSmrg
10554a31a186aSmrgdepcc="$CC"   am_compiler_list=
10555fe5e51b7Smrg
105560bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10557643b027fSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
105580bb88ba4Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
10559643b027fSmrg  $as_echo_n "(cached) " >&6
10560643b027fSmrgelse
10561643b027fSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10562643b027fSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
10563643b027fSmrg  # making bogus files that we don't know about and never remove.  For
10564643b027fSmrg  # instance it was reported that on HP-UX the gcc test will end up
10565acd6767fSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
10566acd6767fSmrg  # in D".
105670bb88ba4Smrg  rm -rf conftest.dir
10568643b027fSmrg  mkdir conftest.dir
10569643b027fSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
10570643b027fSmrg  # using a relative directory.
10571643b027fSmrg  cp "$am_depcomp" conftest.dir
10572643b027fSmrg  cd conftest.dir
10573643b027fSmrg  # We will build objects and dependencies in a subdirectory because
10574643b027fSmrg  # it helps to detect inapplicable dependency modes.  For instance
10575643b027fSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
10576643b027fSmrg  # side effect of compilation, but ICC will put the dependencies in
10577643b027fSmrg  # the current directory while Tru64 will put them in the object
10578643b027fSmrg  # directory.
10579643b027fSmrg  mkdir sub
10580fe5e51b7Smrg
10581a31a186aSmrg  am_cv_CC_dependencies_compiler_type=none
10582643b027fSmrg  if test "$am_compiler_list" = ""; then
10583643b027fSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10584643b027fSmrg  fi
10585643b027fSmrg  am__universal=false
10586643b027fSmrg  case " $depcc " in #(
10587643b027fSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10588643b027fSmrg     esac
10589fe5e51b7Smrg
10590643b027fSmrg  for depmode in $am_compiler_list; do
10591643b027fSmrg    # Setup a source with many dependencies, because some compilers
10592643b027fSmrg    # like to wrap large dependency lists on column 80 (with \), and
10593643b027fSmrg    # we should not choose a depcomp mode which is confused by this.
10594643b027fSmrg    #
10595643b027fSmrg    # We need to recreate these files for each test, as the compiler may
10596643b027fSmrg    # overwrite some of them when testing with obscure command lines.
10597643b027fSmrg    # This happens at least with the AIX C compiler.
10598643b027fSmrg    : > sub/conftest.c
10599643b027fSmrg    for i in 1 2 3 4 5 6; do
10600643b027fSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10601acd6767fSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
10602acd6767fSmrg      # Solaris 10 /bin/sh.
10603acd6767fSmrg      echo '/* dummy */' > sub/conftst$i.h
10604643b027fSmrg    done
10605643b027fSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10606fe5e51b7Smrg
10607acd6767fSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
10608643b027fSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
10609acd6767fSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
10610acd6767fSmrg    # versions had trouble with output in subdirs.
10611643b027fSmrg    am__obj=sub/conftest.${OBJEXT-o}
10612643b027fSmrg    am__minus_obj="-o $am__obj"
10613643b027fSmrg    case $depmode in
10614643b027fSmrg    gcc)
10615643b027fSmrg      # This depmode causes a compiler race in universal mode.
10616643b027fSmrg      test "$am__universal" = false || continue
10617643b027fSmrg      ;;
10618643b027fSmrg    nosideeffect)
10619acd6767fSmrg      # After this tag, mechanisms are not by side-effect, so they'll
10620acd6767fSmrg      # only be used when explicitly requested.
10621643b027fSmrg      if test "x$enable_dependency_tracking" = xyes; then
10622643b027fSmrg	continue
10623643b027fSmrg      else
10624643b027fSmrg	break
10625643b027fSmrg      fi
10626643b027fSmrg      ;;
106270bb88ba4Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10628acd6767fSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
10629643b027fSmrg      # not run yet.  These depmodes are late enough in the game, and
10630643b027fSmrg      # so weak that their functioning should not be impacted.
10631643b027fSmrg      am__obj=conftest.${OBJEXT-o}
10632643b027fSmrg      am__minus_obj=
10633643b027fSmrg      ;;
10634643b027fSmrg    none) break ;;
10635643b027fSmrg    esac
10636643b027fSmrg    if depmode=$depmode \
10637643b027fSmrg       source=sub/conftest.c object=$am__obj \
10638643b027fSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10639643b027fSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10640643b027fSmrg         >/dev/null 2>conftest.err &&
10641643b027fSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10642643b027fSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10643643b027fSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10644643b027fSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10645643b027fSmrg      # icc doesn't choke on unknown options, it will just issue warnings
10646643b027fSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
10647643b027fSmrg      # that says an option was ignored or not supported.
10648643b027fSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
10649643b027fSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
10650643b027fSmrg      # The diagnosis changed in icc 8.0:
10651643b027fSmrg      #   icc: Command line remark: option '-MP' not supported
10652643b027fSmrg      if (grep 'ignoring option' conftest.err ||
10653643b027fSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10654a31a186aSmrg        am_cv_CC_dependencies_compiler_type=$depmode
10655643b027fSmrg        break
10656643b027fSmrg      fi
10657643b027fSmrg    fi
10658643b027fSmrg  done
10659fe5e51b7Smrg
10660643b027fSmrg  cd ..
10661643b027fSmrg  rm -rf conftest.dir
10662643b027fSmrgelse
10663a31a186aSmrg  am_cv_CC_dependencies_compiler_type=none
10664643b027fSmrgfi
10665fe5e51b7Smrg
10666643b027fSmrgfi
106670bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10668a31a186aSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10669a31a186aSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10670fe5e51b7Smrg
10671643b027fSmrg if
10672643b027fSmrg  test "x$enable_dependency_tracking" != xno \
10673a31a186aSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10674a31a186aSmrg  am__fastdepCC_TRUE=
10675a31a186aSmrg  am__fastdepCC_FALSE='#'
10676643b027fSmrgelse
10677a31a186aSmrg  am__fastdepCC_TRUE='#'
10678a31a186aSmrg  am__fastdepCC_FALSE=
10679643b027fSmrgfi
10680fe5e51b7Smrg
10681fe5e51b7Smrg
10682fe5e51b7Smrg
10683fe5e51b7Smrg
106840bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10685a31a186aSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10686a31a186aSmrg    # Check whether --enable-maintainer-mode was given.
106870bb88ba4Smrgif test "${enable_maintainer_mode+set}" = set; then :
10688a31a186aSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10689a31a186aSmrgelse
10690a31a186aSmrg  USE_MAINTAINER_MODE=no
10691643b027fSmrgfi
10692fe5e51b7Smrg
106930bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10694a31a186aSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
10695a31a186aSmrg   if test $USE_MAINTAINER_MODE = yes; then
10696a31a186aSmrg  MAINTAINER_MODE_TRUE=
10697a31a186aSmrg  MAINTAINER_MODE_FALSE='#'
10698643b027fSmrgelse
10699a31a186aSmrg  MAINTAINER_MODE_TRUE='#'
10700a31a186aSmrg  MAINTAINER_MODE_FALSE=
10701643b027fSmrgfi
10702fe5e51b7Smrg
10703a31a186aSmrg  MAINT=$MAINTAINER_MODE_TRUE
10704fe5e51b7Smrg
10705eda3803bSmrg
10706eda3803bSmrg
10707d7be9c72Smrg# Initialize libtool
10708a31a186aSmrg# Check whether --enable-static was given.
107090bb88ba4Smrgif test "${enable_static+set}" = set; then :
10710a31a186aSmrg  enableval=$enable_static; p=${PACKAGE-default}
10711a31a186aSmrg    case $enableval in
10712a31a186aSmrg    yes) enable_static=yes ;;
10713a31a186aSmrg    no) enable_static=no ;;
10714a31a186aSmrg    *)
10715a31a186aSmrg     enable_static=no
10716a31a186aSmrg      # Look at the argument we got.  We use all the common list separators.
10717a31a186aSmrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10718a31a186aSmrg      for pkg in $enableval; do
10719a31a186aSmrg	IFS="$lt_save_ifs"
10720a31a186aSmrg	if test "X$pkg" = "X$p"; then
10721a31a186aSmrg	  enable_static=yes
10722a31a186aSmrg	fi
10723a31a186aSmrg      done
10724a31a186aSmrg      IFS="$lt_save_ifs"
10725a31a186aSmrg      ;;
10726a31a186aSmrg    esac
10727643b027fSmrgelse
10728a31a186aSmrg  enable_static=no
10729643b027fSmrgfi
10730eda3803bSmrg
10731eda3803bSmrg
10732eda3803bSmrg
10733a31a186aSmrg
10734a31a186aSmrg
10735a31a186aSmrg
10736a31a186aSmrg
10737a31a186aSmrg
10738a31a186aSmrg
107390bb88ba4Smrgcase `pwd` in
107400bb88ba4Smrg  *\ * | *\	*)
107410bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
107420bb88ba4Smrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
107430bb88ba4Smrgesac
107440bb88ba4Smrg
107450bb88ba4Smrg
107460bb88ba4Smrg
107470bb88ba4Smrgmacro_version='2.4.2'
107480bb88ba4Smrgmacro_revision='1.3337'
107490bb88ba4Smrg
107500bb88ba4Smrg
107510bb88ba4Smrg
107520bb88ba4Smrg
107530bb88ba4Smrg
107540bb88ba4Smrg
107550bb88ba4Smrg
107560bb88ba4Smrg
107570bb88ba4Smrg
107580bb88ba4Smrg
107590bb88ba4Smrg
107600bb88ba4Smrg
107610bb88ba4Smrg
107620bb88ba4Smrgltmain="$ac_aux_dir/ltmain.sh"
107630bb88ba4Smrg
107640bb88ba4Smrg# Backslashify metacharacters that are still active within
107650bb88ba4Smrg# double-quoted strings.
107660bb88ba4Smrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
107670bb88ba4Smrg
107680bb88ba4Smrg# Same as above, but do not quote variable references.
107690bb88ba4Smrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
107700bb88ba4Smrg
107710bb88ba4Smrg# Sed substitution to delay expansion of an escaped shell variable in a
107720bb88ba4Smrg# double_quote_subst'ed string.
107730bb88ba4Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
107740bb88ba4Smrg
107750bb88ba4Smrg# Sed substitution to delay expansion of an escaped single quote.
107760bb88ba4Smrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10777eda3803bSmrg
107780bb88ba4Smrg# Sed substitution to avoid accidental globbing in evaled expressions
107790bb88ba4Smrgno_glob_subst='s/\*/\\\*/g'
107800bb88ba4Smrg
107810bb88ba4SmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
107820bb88ba4SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
107830bb88ba4SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
107840bb88ba4Smrg
107850bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
107860bb88ba4Smrg$as_echo_n "checking how to print strings... " >&6; }
107870bb88ba4Smrg# Test print first, because it will be a builtin if present.
107880bb88ba4Smrgif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
107890bb88ba4Smrg   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
107900bb88ba4Smrg  ECHO='print -r --'
107910bb88ba4Smrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
107920bb88ba4Smrg  ECHO='printf %s\n'
107930bb88ba4Smrgelse
107940bb88ba4Smrg  # Use this function as a fallback that always works.
107950bb88ba4Smrg  func_fallback_echo ()
107960bb88ba4Smrg  {
107970bb88ba4Smrg    eval 'cat <<_LTECHO_EOF
107980bb88ba4Smrg$1
107990bb88ba4Smrg_LTECHO_EOF'
108000bb88ba4Smrg  }
108010bb88ba4Smrg  ECHO='func_fallback_echo'
108020bb88ba4Smrgfi
10803eda3803bSmrg
108040bb88ba4Smrg# func_echo_all arg...
108050bb88ba4Smrg# Invoke $ECHO with all args, space-separated.
108060bb88ba4Smrgfunc_echo_all ()
108070bb88ba4Smrg{
108080bb88ba4Smrg    $ECHO ""
108090bb88ba4Smrg}
10810eda3803bSmrg
108110bb88ba4Smrgcase "$ECHO" in
108120bb88ba4Smrg  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
108130bb88ba4Smrg$as_echo "printf" >&6; } ;;
108140bb88ba4Smrg  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
108150bb88ba4Smrg$as_echo "print -r" >&6; } ;;
108160bb88ba4Smrg  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
108170bb88ba4Smrg$as_echo "cat" >&6; } ;;
108180bb88ba4Smrgesac
10819eda3803bSmrg
10820eda3803bSmrg
10821eda3803bSmrg
10822643b027fSmrg
10823a31a186aSmrg
10824a31a186aSmrg
10825a31a186aSmrg
10826a31a186aSmrg
10827a31a186aSmrg
10828a31a186aSmrg
10829a31a186aSmrg
10830a31a186aSmrg
10831a31a186aSmrg
10832a31a186aSmrg
108330bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10834a31a186aSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
108350bb88ba4Smrgif ${ac_cv_path_SED+:} false; then :
10836eda3803bSmrg  $as_echo_n "(cached) " >&6
10837fe5e51b7Smrgelse
10838a31a186aSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10839a31a186aSmrg     for ac_i in 1 2 3 4 5 6 7; do
10840a31a186aSmrg       ac_script="$ac_script$as_nl$ac_script"
10841a31a186aSmrg     done
10842a31a186aSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
108430bb88ba4Smrg     { ac_script=; unset ac_script;}
10844a31a186aSmrg     if test -z "$SED"; then
10845a31a186aSmrg  ac_path_SED_found=false
10846a31a186aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
10847a31a186aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848643b027fSmrgfor as_dir in $PATH
10849643b027fSmrgdo
10850643b027fSmrg  IFS=$as_save_IFS
10851643b027fSmrg  test -z "$as_dir" && as_dir=.
108520bb88ba4Smrg    for ac_prog in sed gsed; do
10853a31a186aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
10854a31a186aSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10855acd6767fSmrg      as_fn_executable_p "$ac_path_SED" || continue
10856a31a186aSmrg# Check for GNU ac_path_SED and select it if it is found.
10857a31a186aSmrg  # Check for GNU $ac_path_SED
10858a31a186aSmrgcase `"$ac_path_SED" --version 2>&1` in
10859a31a186aSmrg*GNU*)
10860a31a186aSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10861a31a186aSmrg*)
10862a31a186aSmrg  ac_count=0
10863a31a186aSmrg  $as_echo_n 0123456789 >"conftest.in"
10864a31a186aSmrg  while :
10865a31a186aSmrg  do
10866a31a186aSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
10867a31a186aSmrg    mv "conftest.tmp" "conftest.in"
10868a31a186aSmrg    cp "conftest.in" "conftest.nl"
10869a31a186aSmrg    $as_echo '' >> "conftest.nl"
10870a31a186aSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10871a31a186aSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
108720bb88ba4Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
10873a31a186aSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
10874a31a186aSmrg      # Best one so far, save it but keep looking for a better one
10875a31a186aSmrg      ac_cv_path_SED="$ac_path_SED"
10876a31a186aSmrg      ac_path_SED_max=$ac_count
10877a31a186aSmrg    fi
10878a31a186aSmrg    # 10*(2^10) chars as input seems more than enough
10879a31a186aSmrg    test $ac_count -gt 10 && break
10880a31a186aSmrg  done
10881a31a186aSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10882a31a186aSmrgesac
10883a31a186aSmrg
10884a31a186aSmrg      $ac_path_SED_found && break 3
10885a31a186aSmrg    done
10886a31a186aSmrg  done
108870bb88ba4Smrg  done
10888643b027fSmrgIFS=$as_save_IFS
10889a31a186aSmrg  if test -z "$ac_cv_path_SED"; then
108900bb88ba4Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10891a31a186aSmrg  fi
10892643b027fSmrgelse
10893a31a186aSmrg  ac_cv_path_SED=$SED
10894643b027fSmrgfi
10895eda3803bSmrg
10896643b027fSmrgfi
108970bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10898a31a186aSmrg$as_echo "$ac_cv_path_SED" >&6; }
10899a31a186aSmrg SED="$ac_cv_path_SED"
10900a31a186aSmrg  rm -f conftest.sed
10901a31a186aSmrg
10902a31a186aSmrgtest -z "$SED" && SED=sed
10903a31a186aSmrgXsed="$SED -e 1s/^X//"
10904a31a186aSmrg
10905a31a186aSmrg
10906a31a186aSmrg
10907a31a186aSmrg
10908a31a186aSmrg
10909a31a186aSmrg
10910a31a186aSmrg
10911a31a186aSmrg
10912a31a186aSmrg
10913a31a186aSmrg
10914a31a186aSmrg
109150bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10916a31a186aSmrg$as_echo_n "checking for fgrep... " >&6; }
109170bb88ba4Smrgif ${ac_cv_path_FGREP+:} false; then :
10918643b027fSmrg  $as_echo_n "(cached) " >&6
10919643b027fSmrgelse
10920a31a186aSmrg  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10921a31a186aSmrg   then ac_cv_path_FGREP="$GREP -F"
10922a31a186aSmrg   else
10923a31a186aSmrg     if test -z "$FGREP"; then
10924a31a186aSmrg  ac_path_FGREP_found=false
10925a31a186aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
10926a31a186aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927a31a186aSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10928643b027fSmrgdo
10929643b027fSmrg  IFS=$as_save_IFS
10930643b027fSmrg  test -z "$as_dir" && as_dir=.
109310bb88ba4Smrg    for ac_prog in fgrep; do
10932a31a186aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
10933a31a186aSmrg      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10934acd6767fSmrg      as_fn_executable_p "$ac_path_FGREP" || continue
10935a31a186aSmrg# Check for GNU ac_path_FGREP and select it if it is found.
10936a31a186aSmrg  # Check for GNU $ac_path_FGREP
10937a31a186aSmrgcase `"$ac_path_FGREP" --version 2>&1` in
10938a31a186aSmrg*GNU*)
10939a31a186aSmrg  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10940a31a186aSmrg*)
10941a31a186aSmrg  ac_count=0
10942a31a186aSmrg  $as_echo_n 0123456789 >"conftest.in"
10943a31a186aSmrg  while :
10944a31a186aSmrg  do
10945a31a186aSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
10946a31a186aSmrg    mv "conftest.tmp" "conftest.in"
10947a31a186aSmrg    cp "conftest.in" "conftest.nl"
10948a31a186aSmrg    $as_echo 'FGREP' >> "conftest.nl"
10949a31a186aSmrg    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10950a31a186aSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
109510bb88ba4Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
10952a31a186aSmrg    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10953a31a186aSmrg      # Best one so far, save it but keep looking for a better one
10954a31a186aSmrg      ac_cv_path_FGREP="$ac_path_FGREP"
10955a31a186aSmrg      ac_path_FGREP_max=$ac_count
10956a31a186aSmrg    fi
10957a31a186aSmrg    # 10*(2^10) chars as input seems more than enough
10958a31a186aSmrg    test $ac_count -gt 10 && break
10959a31a186aSmrg  done
10960a31a186aSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10961a31a186aSmrgesac
10962a31a186aSmrg
10963a31a186aSmrg      $ac_path_FGREP_found && break 3
10964a31a186aSmrg    done
10965a31a186aSmrg  done
109660bb88ba4Smrg  done
10967643b027fSmrgIFS=$as_save_IFS
10968a31a186aSmrg  if test -z "$ac_cv_path_FGREP"; then
109690bb88ba4Smrg    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10970a31a186aSmrg  fi
10971643b027fSmrgelse
10972a31a186aSmrg  ac_cv_path_FGREP=$FGREP
10973643b027fSmrgfi
10974fe5e51b7Smrg
10975a31a186aSmrg   fi
10976a31a186aSmrgfi
109770bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10978a31a186aSmrg$as_echo "$ac_cv_path_FGREP" >&6; }
10979a31a186aSmrg FGREP="$ac_cv_path_FGREP"
10980fe5e51b7Smrg
10981fe5e51b7Smrg
10982a31a186aSmrgtest -z "$GREP" && GREP=grep
10983fe5e51b7Smrg
10984fe5e51b7Smrg
10985fe5e51b7Smrg
10986fe5e51b7Smrg
10987fe5e51b7Smrg
10988eda3803bSmrg
10989643b027fSmrg
10990643b027fSmrg
10991643b027fSmrg
10992fe5e51b7Smrg
10993643b027fSmrg
10994643b027fSmrg
10995643b027fSmrg
10996643b027fSmrg
10997643b027fSmrg
10998643b027fSmrg
10999fe5e51b7Smrg
11000fe5e51b7Smrg
11001fe5e51b7Smrg
11002a31a186aSmrg# Check whether --with-gnu-ld was given.
110030bb88ba4Smrgif test "${with_gnu_ld+set}" = set; then :
11004a31a186aSmrg  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11005a31a186aSmrgelse
11006a31a186aSmrg  with_gnu_ld=no
11007a31a186aSmrgfi
11008fe5e51b7Smrg
11009a31a186aSmrgac_prog=ld
11010a31a186aSmrgif test "$GCC" = yes; then
11011a31a186aSmrg  # Check if gcc -print-prog-name=ld gives a path.
110120bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11013a31a186aSmrg$as_echo_n "checking for ld used by $CC... " >&6; }
11014a31a186aSmrg  case $host in
11015a31a186aSmrg  *-*-mingw*)
11016a31a186aSmrg    # gcc leaves a trailing carriage return which upsets mingw
11017a31a186aSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11018643b027fSmrg  *)
11019a31a186aSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11020a31a186aSmrg  esac
11021a31a186aSmrg  case $ac_prog in
11022a31a186aSmrg    # Accept absolute paths.
11023a31a186aSmrg    [\\/]* | ?:[\\/]*)
11024a31a186aSmrg      re_direlt='/[^/][^/]*/\.\./'
11025a31a186aSmrg      # Canonicalize the pathname of ld
11026a31a186aSmrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11027a31a186aSmrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11028a31a186aSmrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11029643b027fSmrg      done
11030a31a186aSmrg      test -z "$LD" && LD="$ac_prog"
11031a31a186aSmrg      ;;
11032a31a186aSmrg  "")
11033a31a186aSmrg    # If it fails, then pretend we aren't using GCC.
11034a31a186aSmrg    ac_prog=ld
11035a31a186aSmrg    ;;
11036a31a186aSmrg  *)
11037a31a186aSmrg    # If it is relative, then search for the first ld in PATH.
11038a31a186aSmrg    with_gnu_ld=unknown
11039643b027fSmrg    ;;
11040643b027fSmrg  esac
11041a31a186aSmrgelif test "$with_gnu_ld" = yes; then
110420bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11043a31a186aSmrg$as_echo_n "checking for GNU ld... " >&6; }
11044a31a186aSmrgelse
110450bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11046a31a186aSmrg$as_echo_n "checking for non-GNU ld... " >&6; }
11047643b027fSmrgfi
110480bb88ba4Smrgif ${lt_cv_path_LD+:} false; then :
11049a31a186aSmrg  $as_echo_n "(cached) " >&6
11050643b027fSmrgelse
11051a31a186aSmrg  if test -z "$LD"; then
11052a31a186aSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11053a31a186aSmrg  for ac_dir in $PATH; do
11054a31a186aSmrg    IFS="$lt_save_ifs"
11055a31a186aSmrg    test -z "$ac_dir" && ac_dir=.
11056a31a186aSmrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11057a31a186aSmrg      lt_cv_path_LD="$ac_dir/$ac_prog"
11058a31a186aSmrg      # Check to see if the program is GNU ld.  I'd rather use --version,
11059a31a186aSmrg      # but apparently some variants of GNU ld only accept -v.
11060a31a186aSmrg      # Break only if it was the GNU/non-GNU ld that we prefer.
11061a31a186aSmrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11062a31a186aSmrg      *GNU* | *'with BFD'*)
11063a31a186aSmrg	test "$with_gnu_ld" != no && break
11064a31a186aSmrg	;;
11065a31a186aSmrg      *)
11066a31a186aSmrg	test "$with_gnu_ld" != yes && break
11067a31a186aSmrg	;;
11068a31a186aSmrg      esac
11069a31a186aSmrg    fi
11070a31a186aSmrg  done
11071a31a186aSmrg  IFS="$lt_save_ifs"
11072a31a186aSmrgelse
11073a31a186aSmrg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11074a31a186aSmrgfi
11075643b027fSmrgfi
11076eda3803bSmrg
11077a31a186aSmrgLD="$lt_cv_path_LD"
11078a31a186aSmrgif test -n "$LD"; then
110790bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11080a31a186aSmrg$as_echo "$LD" >&6; }
11081a31a186aSmrgelse
110820bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083a31a186aSmrg$as_echo "no" >&6; }
11084a31a186aSmrgfi
110850bb88ba4Smrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
110860bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11087a31a186aSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
110880bb88ba4Smrgif ${lt_cv_prog_gnu_ld+:} false; then :
11089643b027fSmrg  $as_echo_n "(cached) " >&6
11090643b027fSmrgelse
11091a31a186aSmrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11092a31a186aSmrgcase `$LD -v 2>&1 </dev/null` in
11093a31a186aSmrg*GNU* | *'with BFD'*)
11094a31a186aSmrg  lt_cv_prog_gnu_ld=yes
11095643b027fSmrg  ;;
11096a31a186aSmrg*)
11097a31a186aSmrg  lt_cv_prog_gnu_ld=no
11098643b027fSmrg  ;;
11099643b027fSmrgesac
11100a31a186aSmrgfi
111010bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11102a31a186aSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11103a31a186aSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld
11104eda3803bSmrg
11105eda3803bSmrg
11106eda3803bSmrg
11107eda3803bSmrg
11108fe5e51b7Smrg
11109fe5e51b7Smrg
11110fe5e51b7Smrg
11111fe5e51b7Smrg
11112fe5e51b7Smrg
111130bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11114a31a186aSmrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
111150bb88ba4Smrgif ${lt_cv_path_NM+:} false; then :
11116eda3803bSmrg  $as_echo_n "(cached) " >&6
11117fe5e51b7Smrgelse
11118a31a186aSmrg  if test -n "$NM"; then
11119a31a186aSmrg  # Let the user override the test.
11120a31a186aSmrg  lt_cv_path_NM="$NM"
11121fe5e51b7Smrgelse
11122a31a186aSmrg  lt_nm_to_check="${ac_tool_prefix}nm"
11123a31a186aSmrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11124a31a186aSmrg    lt_nm_to_check="$lt_nm_to_check nm"
11125a31a186aSmrg  fi
11126a31a186aSmrg  for lt_tmp_nm in $lt_nm_to_check; do
11127a31a186aSmrg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11128a31a186aSmrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11129a31a186aSmrg      IFS="$lt_save_ifs"
11130a31a186aSmrg      test -z "$ac_dir" && ac_dir=.
11131a31a186aSmrg      tmp_nm="$ac_dir/$lt_tmp_nm"
11132a31a186aSmrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11133a31a186aSmrg	# Check to see if the nm accepts a BSD-compat flag.
11134a31a186aSmrg	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11135a31a186aSmrg	#   nm: unknown option "B" ignored
11136a31a186aSmrg	# Tru64's nm complains that /dev/null is an invalid object file
11137a31a186aSmrg	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11138a31a186aSmrg	*/dev/null* | *'Invalid file or object type'*)
11139a31a186aSmrg	  lt_cv_path_NM="$tmp_nm -B"
11140a31a186aSmrg	  break
11141a31a186aSmrg	  ;;
11142a31a186aSmrg	*)
11143a31a186aSmrg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11144a31a186aSmrg	  */dev/null*)
11145a31a186aSmrg	    lt_cv_path_NM="$tmp_nm -p"
11146a31a186aSmrg	    break
11147a31a186aSmrg	    ;;
11148a31a186aSmrg	  *)
11149a31a186aSmrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11150a31a186aSmrg	    continue # so that we can try to find one that supports BSD flags
11151a31a186aSmrg	    ;;
11152a31a186aSmrg	  esac
11153a31a186aSmrg	  ;;
11154a31a186aSmrg	esac
11155a31a186aSmrg      fi
11156a31a186aSmrg    done
11157a31a186aSmrg    IFS="$lt_save_ifs"
11158a31a186aSmrg  done
11159a31a186aSmrg  : ${lt_cv_path_NM=no}
11160fe5e51b7Smrgfi
11161fe5e51b7Smrgfi
111620bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11163a31a186aSmrg$as_echo "$lt_cv_path_NM" >&6; }
11164a31a186aSmrgif test "$lt_cv_path_NM" != "no"; then
11165a31a186aSmrg  NM="$lt_cv_path_NM"
11166a31a186aSmrgelse
11167a31a186aSmrg  # Didn't find any BSD compatible name lister, look for dumpbin.
111680bb88ba4Smrg  if test -n "$DUMPBIN"; then :
111690bb88ba4Smrg    # Let the user override the test.
111700bb88ba4Smrg  else
111710bb88ba4Smrg    if test -n "$ac_tool_prefix"; then
111720bb88ba4Smrg  for ac_prog in dumpbin "link -dump"
11173a31a186aSmrg  do
11174a31a186aSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11175a31a186aSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
111760bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177eda3803bSmrg$as_echo_n "checking for $ac_word... " >&6; }
111780bb88ba4Smrgif ${ac_cv_prog_DUMPBIN+:} false; then :
11179eda3803bSmrg  $as_echo_n "(cached) " >&6
11180fe5e51b7Smrgelse
11181a31a186aSmrg  if test -n "$DUMPBIN"; then
11182a31a186aSmrg  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11183fe5e51b7Smrgelse
11184fe5e51b7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185fe5e51b7Smrgfor as_dir in $PATH
11186fe5e51b7Smrgdo
11187fe5e51b7Smrg  IFS=$as_save_IFS
11188fe5e51b7Smrg  test -z "$as_dir" && as_dir=.
111890bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
11190acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11191a31a186aSmrg    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
111920bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193fe5e51b7Smrg    break 2
11194fe5e51b7Smrg  fi
11195fe5e51b7Smrgdone
111960bb88ba4Smrg  done
11197fe5e51b7SmrgIFS=$as_save_IFS
11198fe5e51b7Smrg
11199fe5e51b7Smrgfi
11200fe5e51b7Smrgfi
11201a31a186aSmrgDUMPBIN=$ac_cv_prog_DUMPBIN
11202a31a186aSmrgif test -n "$DUMPBIN"; then
112030bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11204a31a186aSmrg$as_echo "$DUMPBIN" >&6; }
11205fe5e51b7Smrgelse
112060bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207eda3803bSmrg$as_echo "no" >&6; }
11208fe5e51b7Smrgfi
11209fe5e51b7Smrg
11210fe5e51b7Smrg
11211a31a186aSmrg    test -n "$DUMPBIN" && break
11212a31a186aSmrg  done
11213fe5e51b7Smrgfi
11214a31a186aSmrgif test -z "$DUMPBIN"; then
11215a31a186aSmrg  ac_ct_DUMPBIN=$DUMPBIN
112160bb88ba4Smrg  for ac_prog in dumpbin "link -dump"
11217a31a186aSmrgdo
11218a31a186aSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
11219a31a186aSmrgset dummy $ac_prog; ac_word=$2
112200bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221eda3803bSmrg$as_echo_n "checking for $ac_word... " >&6; }
112220bb88ba4Smrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11223eda3803bSmrg  $as_echo_n "(cached) " >&6
11224fe5e51b7Smrgelse
11225a31a186aSmrg  if test -n "$ac_ct_DUMPBIN"; then
11226a31a186aSmrg  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11227fe5e51b7Smrgelse
11228fe5e51b7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229fe5e51b7Smrgfor as_dir in $PATH
11230fe5e51b7Smrgdo
11231fe5e51b7Smrg  IFS=$as_save_IFS
11232fe5e51b7Smrg  test -z "$as_dir" && as_dir=.
112330bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
11234acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11235a31a186aSmrg    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
112360bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237fe5e51b7Smrg    break 2
11238fe5e51b7Smrg  fi
11239fe5e51b7Smrgdone
112400bb88ba4Smrg  done
11241fe5e51b7SmrgIFS=$as_save_IFS
11242fe5e51b7Smrg
11243fe5e51b7Smrgfi
11244fe5e51b7Smrgfi
11245a31a186aSmrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11246a31a186aSmrgif test -n "$ac_ct_DUMPBIN"; then
112470bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11248a31a186aSmrg$as_echo "$ac_ct_DUMPBIN" >&6; }
11249fe5e51b7Smrgelse
112500bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251eda3803bSmrg$as_echo "no" >&6; }
11252fe5e51b7Smrgfi
11253fe5e51b7Smrg
11254a31a186aSmrg
11255a31a186aSmrg  test -n "$ac_ct_DUMPBIN" && break
11256a31a186aSmrgdone
11257a31a186aSmrg
11258a31a186aSmrg  if test "x$ac_ct_DUMPBIN" = x; then
11259a31a186aSmrg    DUMPBIN=":"
11260fe5e51b7Smrg  else
11261fe5e51b7Smrg    case $cross_compiling:$ac_tool_warned in
11262fe5e51b7Smrgyes:)
112630bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11264eda3803bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11265fe5e51b7Smrgac_tool_warned=yes ;;
11266fe5e51b7Smrgesac
11267a31a186aSmrg    DUMPBIN=$ac_ct_DUMPBIN
11268fe5e51b7Smrg  fi
11269fe5e51b7Smrgfi
11270fe5e51b7Smrg
112710bb88ba4Smrg    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
112720bb88ba4Smrg    *COFF*)
112730bb88ba4Smrg      DUMPBIN="$DUMPBIN -symbols"
112740bb88ba4Smrg      ;;
112750bb88ba4Smrg    *)
112760bb88ba4Smrg      DUMPBIN=:
112770bb88ba4Smrg      ;;
112780bb88ba4Smrg    esac
112790bb88ba4Smrg  fi
11280a31a186aSmrg
11281a31a186aSmrg  if test "$DUMPBIN" != ":"; then
11282a31a186aSmrg    NM="$DUMPBIN"
11283a31a186aSmrg  fi
11284a31a186aSmrgfi
11285a31a186aSmrgtest -z "$NM" && NM=nm
11286a31a186aSmrg
11287a31a186aSmrg
11288a31a186aSmrg
11289a31a186aSmrg
11290a31a186aSmrg
11291a31a186aSmrg
112920bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11293a31a186aSmrg$as_echo_n "checking the name lister ($NM) interface... " >&6; }
112940bb88ba4Smrgif ${lt_cv_nm_interface+:} false; then :
11295eda3803bSmrg  $as_echo_n "(cached) " >&6
11296eda3803bSmrgelse
11297a31a186aSmrg  lt_cv_nm_interface="BSD nm"
11298a31a186aSmrg  echo "int some_variable = 0;" > conftest.$ac_ext
112990bb88ba4Smrg  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11300a31a186aSmrg  (eval "$ac_compile" 2>conftest.err)
11301a31a186aSmrg  cat conftest.err >&5
113020bb88ba4Smrg  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11303a31a186aSmrg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11304a31a186aSmrg  cat conftest.err >&5
113050bb88ba4Smrg  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11306a31a186aSmrg  cat conftest.out >&5
11307a31a186aSmrg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11308a31a186aSmrg    lt_cv_nm_interface="MS dumpbin"
11309eda3803bSmrg  fi
11310a31a186aSmrg  rm -f conftest*
11311eda3803bSmrgfi
113120bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11313a31a186aSmrg$as_echo "$lt_cv_nm_interface" >&6; }
11314a31a186aSmrg
113150bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11316a31a186aSmrg$as_echo_n "checking whether ln -s works... " >&6; }
11317a31a186aSmrgLN_S=$as_ln_s
11318a31a186aSmrgif test "$LN_S" = "ln -s"; then
113190bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11320a31a186aSmrg$as_echo "yes" >&6; }
11321eda3803bSmrgelse
113220bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11323a31a186aSmrg$as_echo "no, using $LN_S" >&6; }
11324eda3803bSmrgfi
11325fe5e51b7Smrg
11326a31a186aSmrg# find the maximum length of command line arguments
113270bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11328a31a186aSmrg$as_echo_n "checking the maximum length of command line arguments... " >&6; }
113290bb88ba4Smrgif ${lt_cv_sys_max_cmd_len+:} false; then :
11330eda3803bSmrg  $as_echo_n "(cached) " >&6
11331eda3803bSmrgelse
11332a31a186aSmrg    i=0
11333a31a186aSmrg  teststring="ABCD"
11334a31a186aSmrg
11335a31a186aSmrg  case $build_os in
11336a31a186aSmrg  msdosdjgpp*)
11337a31a186aSmrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
11338a31a186aSmrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
11339a31a186aSmrg    # during glob expansion).  Even if it were fixed, the result of this
11340a31a186aSmrg    # check would be larger than it should be.
11341a31a186aSmrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11342a31a186aSmrg    ;;
11343a31a186aSmrg
11344a31a186aSmrg  gnu*)
11345a31a186aSmrg    # Under GNU Hurd, this test is not required because there is
11346a31a186aSmrg    # no limit to the length of command line arguments.
11347a31a186aSmrg    # Libtool will interpret -1 as no limit whatsoever
11348a31a186aSmrg    lt_cv_sys_max_cmd_len=-1;
11349a31a186aSmrg    ;;
11350a31a186aSmrg
11351a31a186aSmrg  cygwin* | mingw* | cegcc*)
11352a31a186aSmrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
11353a31a186aSmrg    # about 5 minutes as the teststring grows exponentially.
11354a31a186aSmrg    # Worse, since 9x/ME are not pre-emptively multitasking,
11355a31a186aSmrg    # you end up with a "frozen" computer, even though with patience
11356a31a186aSmrg    # the test eventually succeeds (with a max line length of 256k).
11357a31a186aSmrg    # Instead, let's just punt: use the minimum linelength reported by
11358a31a186aSmrg    # all of the supported platforms: 8192 (on NT/2K/XP).
11359a31a186aSmrg    lt_cv_sys_max_cmd_len=8192;
11360a31a186aSmrg    ;;
11361a31a186aSmrg
113620bb88ba4Smrg  mint*)
113630bb88ba4Smrg    # On MiNT this can take a long time and run out of memory.
113640bb88ba4Smrg    lt_cv_sys_max_cmd_len=8192;
113650bb88ba4Smrg    ;;
113660bb88ba4Smrg
11367a31a186aSmrg  amigaos*)
11368a31a186aSmrg    # On AmigaOS with pdksh, this test takes hours, literally.
11369a31a186aSmrg    # So we just punt and use a minimum line length of 8192.
11370a31a186aSmrg    lt_cv_sys_max_cmd_len=8192;
11371a31a186aSmrg    ;;
11372a31a186aSmrg
11373a31a186aSmrg  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11374a31a186aSmrg    # This has been around since 386BSD, at least.  Likely further.
11375a31a186aSmrg    if test -x /sbin/sysctl; then
11376a31a186aSmrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11377a31a186aSmrg    elif test -x /usr/sbin/sysctl; then
11378a31a186aSmrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11379a31a186aSmrg    else
11380a31a186aSmrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11381a31a186aSmrg    fi
11382a31a186aSmrg    # And add a safety zone
11383a31a186aSmrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11384a31a186aSmrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11385a31a186aSmrg    ;;
11386a31a186aSmrg
11387a31a186aSmrg  interix*)
11388a31a186aSmrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11389a31a186aSmrg    lt_cv_sys_max_cmd_len=196608
11390a31a186aSmrg    ;;
11391a31a186aSmrg
113920bb88ba4Smrg  os2*)
113930bb88ba4Smrg    # The test takes a long time on OS/2.
113940bb88ba4Smrg    lt_cv_sys_max_cmd_len=8192
113950bb88ba4Smrg    ;;
113960bb88ba4Smrg
11397a31a186aSmrg  osf*)
11398a31a186aSmrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11399a31a186aSmrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11400a31a186aSmrg    # nice to cause kernel panics so lets avoid the loop below.
11401a31a186aSmrg    # First set a reasonable default.
11402a31a186aSmrg    lt_cv_sys_max_cmd_len=16384
11403a31a186aSmrg    #
11404a31a186aSmrg    if test -x /sbin/sysconfig; then
11405a31a186aSmrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11406a31a186aSmrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11407a31a186aSmrg      esac
11408a31a186aSmrg    fi
11409a31a186aSmrg    ;;
11410a31a186aSmrg  sco3.2v5*)
11411a31a186aSmrg    lt_cv_sys_max_cmd_len=102400
11412a31a186aSmrg    ;;
11413a31a186aSmrg  sysv5* | sco5v6* | sysv4.2uw2*)
11414a31a186aSmrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11415a31a186aSmrg    if test -n "$kargmax"; then
11416a31a186aSmrg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11417a31a186aSmrg    else
11418a31a186aSmrg      lt_cv_sys_max_cmd_len=32768
11419a31a186aSmrg    fi
11420a31a186aSmrg    ;;
11421a31a186aSmrg  *)
11422a31a186aSmrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11423a31a186aSmrg    if test -n "$lt_cv_sys_max_cmd_len"; then
11424a31a186aSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11425a31a186aSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11426a31a186aSmrg    else
11427a31a186aSmrg      # Make teststring a little bigger before we do anything with it.
11428a31a186aSmrg      # a 1K string should be a reasonable start.
11429a31a186aSmrg      for i in 1 2 3 4 5 6 7 8 ; do
11430a31a186aSmrg        teststring=$teststring$teststring
11431a31a186aSmrg      done
11432a31a186aSmrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11433a31a186aSmrg      # If test is not a shell built-in, we'll probably end up computing a
11434a31a186aSmrg      # maximum length that is only half of the actual maximum length, but
11435a31a186aSmrg      # we can't tell.
114360bb88ba4Smrg      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
114370bb88ba4Smrg	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11438a31a186aSmrg	      test $i != 17 # 1/2 MB should be enough
11439a31a186aSmrg      do
11440a31a186aSmrg        i=`expr $i + 1`
11441a31a186aSmrg        teststring=$teststring$teststring
11442a31a186aSmrg      done
11443a31a186aSmrg      # Only check the string length outside the loop.
11444a31a186aSmrg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11445a31a186aSmrg      teststring=
11446a31a186aSmrg      # Add a significant safety factor because C++ compilers can tack on
11447a31a186aSmrg      # massive amounts of additional arguments before passing them to the
11448a31a186aSmrg      # linker.  It appears as though 1/2 is a usable value.
11449a31a186aSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11450a31a186aSmrg    fi
11451a31a186aSmrg    ;;
11452a31a186aSmrg  esac
11453fe5e51b7Smrg
11454eda3803bSmrgfi
11455a31a186aSmrg
11456a31a186aSmrgif test -n $lt_cv_sys_max_cmd_len ; then
114570bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11458a31a186aSmrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11459a31a186aSmrgelse
114600bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11461a31a186aSmrg$as_echo "none" >&6; }
11462eda3803bSmrgfi
11463a31a186aSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len
11464a31a186aSmrg
11465a31a186aSmrg
11466a31a186aSmrg
11467a31a186aSmrg
11468a31a186aSmrg
11469a31a186aSmrg
11470a31a186aSmrg: ${CP="cp -f"}
11471a31a186aSmrg: ${MV="mv -f"}
11472a31a186aSmrg: ${RM="rm -f"}
11473a31a186aSmrg
114740bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11475a31a186aSmrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11476a31a186aSmrg# Try some XSI features
11477a31a186aSmrgxsi_shell=no
11478a31a186aSmrg( _lt_dummy="a/b/c"
114790bb88ba4Smrg  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
114800bb88ba4Smrg      = c,a/b,b/c, \
11481a31a186aSmrg    && eval 'test $(( 1 + 1 )) -eq 2 \
11482a31a186aSmrg    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11483a31a186aSmrg  && xsi_shell=yes
114840bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11485a31a186aSmrg$as_echo "$xsi_shell" >&6; }
11486a31a186aSmrg
11487a31a186aSmrg
114880bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11489a31a186aSmrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11490a31a186aSmrglt_shell_append=no
11491a31a186aSmrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11492a31a186aSmrg    >/dev/null 2>&1 \
11493a31a186aSmrg  && lt_shell_append=yes
114940bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11495a31a186aSmrg$as_echo "$lt_shell_append" >&6; }
11496a31a186aSmrg
11497a31a186aSmrg
11498a31a186aSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11499a31a186aSmrg  lt_unset=unset
11500fe5e51b7Smrgelse
11501a31a186aSmrg  lt_unset=false
11502eda3803bSmrgfi
11503fe5e51b7Smrg
11504a31a186aSmrg
11505a31a186aSmrg
11506a31a186aSmrg
11507a31a186aSmrg
11508a31a186aSmrg# test EBCDIC or ASCII
11509a31a186aSmrgcase `echo X|tr X '\101'` in
11510a31a186aSmrg A) # ASCII based system
11511a31a186aSmrg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11512a31a186aSmrg  lt_SP2NL='tr \040 \012'
11513a31a186aSmrg  lt_NL2SP='tr \015\012 \040\040'
11514a31a186aSmrg  ;;
11515a31a186aSmrg *) # EBCDIC based system
11516a31a186aSmrg  lt_SP2NL='tr \100 \n'
11517a31a186aSmrg  lt_NL2SP='tr \r\n \100\100'
11518a31a186aSmrg  ;;
11519fe5e51b7Smrgesac
11520a31a186aSmrg
11521a31a186aSmrg
11522a31a186aSmrg
11523a31a186aSmrg
11524a31a186aSmrg
11525a31a186aSmrg
11526a31a186aSmrg
11527a31a186aSmrg
11528a31a186aSmrg
115290bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
115300bb88ba4Smrg$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
115310bb88ba4Smrgif ${lt_cv_to_host_file_cmd+:} false; then :
115320bb88ba4Smrg  $as_echo_n "(cached) " >&6
115330bb88ba4Smrgelse
115340bb88ba4Smrg  case $host in
115350bb88ba4Smrg  *-*-mingw* )
115360bb88ba4Smrg    case $build in
115370bb88ba4Smrg      *-*-mingw* ) # actually msys
115380bb88ba4Smrg        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
115390bb88ba4Smrg        ;;
115400bb88ba4Smrg      *-*-cygwin* )
115410bb88ba4Smrg        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
115420bb88ba4Smrg        ;;
115430bb88ba4Smrg      * ) # otherwise, assume *nix
115440bb88ba4Smrg        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
115450bb88ba4Smrg        ;;
115460bb88ba4Smrg    esac
115470bb88ba4Smrg    ;;
115480bb88ba4Smrg  *-*-cygwin* )
115490bb88ba4Smrg    case $build in
115500bb88ba4Smrg      *-*-mingw* ) # actually msys
115510bb88ba4Smrg        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
115520bb88ba4Smrg        ;;
115530bb88ba4Smrg      *-*-cygwin* )
115540bb88ba4Smrg        lt_cv_to_host_file_cmd=func_convert_file_noop
115550bb88ba4Smrg        ;;
115560bb88ba4Smrg      * ) # otherwise, assume *nix
115570bb88ba4Smrg        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
115580bb88ba4Smrg        ;;
115590bb88ba4Smrg    esac
115600bb88ba4Smrg    ;;
115610bb88ba4Smrg  * ) # unhandled hosts (and "normal" native builds)
115620bb88ba4Smrg    lt_cv_to_host_file_cmd=func_convert_file_noop
115630bb88ba4Smrg    ;;
115640bb88ba4Smrgesac
115650bb88ba4Smrg
115660bb88ba4Smrgfi
115670bb88ba4Smrg
115680bb88ba4Smrgto_host_file_cmd=$lt_cv_to_host_file_cmd
115690bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
115700bb88ba4Smrg$as_echo "$lt_cv_to_host_file_cmd" >&6; }
115710bb88ba4Smrg
115720bb88ba4Smrg
115730bb88ba4Smrg
115740bb88ba4Smrg
115750bb88ba4Smrg
115760bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
115770bb88ba4Smrg$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
115780bb88ba4Smrgif ${lt_cv_to_tool_file_cmd+:} false; then :
115790bb88ba4Smrg  $as_echo_n "(cached) " >&6
115800bb88ba4Smrgelse
115810bb88ba4Smrg  #assume ordinary cross tools, or native build.
115820bb88ba4Smrglt_cv_to_tool_file_cmd=func_convert_file_noop
115830bb88ba4Smrgcase $host in
115840bb88ba4Smrg  *-*-mingw* )
115850bb88ba4Smrg    case $build in
115860bb88ba4Smrg      *-*-mingw* ) # actually msys
115870bb88ba4Smrg        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
115880bb88ba4Smrg        ;;
115890bb88ba4Smrg    esac
115900bb88ba4Smrg    ;;
115910bb88ba4Smrgesac
115920bb88ba4Smrg
115930bb88ba4Smrgfi
115940bb88ba4Smrg
115950bb88ba4Smrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd
115960bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
115970bb88ba4Smrg$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
115980bb88ba4Smrg
115990bb88ba4Smrg
116000bb88ba4Smrg
116010bb88ba4Smrg
116020bb88ba4Smrg
116030bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11604a31a186aSmrg$as_echo_n "checking for $LD option to reload object files... " >&6; }
116050bb88ba4Smrgif ${lt_cv_ld_reload_flag+:} false; then :
11606a31a186aSmrg  $as_echo_n "(cached) " >&6
11607eda3803bSmrgelse
11608a31a186aSmrg  lt_cv_ld_reload_flag='-r'
11609fe5e51b7Smrgfi
116100bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11611a31a186aSmrg$as_echo "$lt_cv_ld_reload_flag" >&6; }
11612a31a186aSmrgreload_flag=$lt_cv_ld_reload_flag
11613a31a186aSmrgcase $reload_flag in
11614a31a186aSmrg"" | " "*) ;;
11615a31a186aSmrg*) reload_flag=" $reload_flag" ;;
11616a31a186aSmrgesac
11617a31a186aSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
11618a31a186aSmrgcase $host_os in
116190bb88ba4Smrg  cygwin* | mingw* | pw32* | cegcc*)
116200bb88ba4Smrg    if test "$GCC" != yes; then
116210bb88ba4Smrg      reload_cmds=false
116220bb88ba4Smrg    fi
116230bb88ba4Smrg    ;;
11624a31a186aSmrg  darwin*)
11625a31a186aSmrg    if test "$GCC" = yes; then
11626a31a186aSmrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11627a31a186aSmrg    else
11628a31a186aSmrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11629a31a186aSmrg    fi
11630a31a186aSmrg    ;;
11631a31a186aSmrgesac
11632a31a186aSmrg
11633a31a186aSmrg
11634a31a186aSmrg
11635a31a186aSmrg
11636a31a186aSmrg
11637a31a186aSmrg
11638a31a186aSmrg
11639a31a186aSmrg
11640fe5e51b7Smrg
11641643b027fSmrgif test -n "$ac_tool_prefix"; then
11642a31a186aSmrg  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11643a31a186aSmrgset dummy ${ac_tool_prefix}objdump; ac_word=$2
116440bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645eda3803bSmrg$as_echo_n "checking for $ac_word... " >&6; }
116460bb88ba4Smrgif ${ac_cv_prog_OBJDUMP+:} false; then :
11647eda3803bSmrg  $as_echo_n "(cached) " >&6
11648fe5e51b7Smrgelse
11649a31a186aSmrg  if test -n "$OBJDUMP"; then
11650a31a186aSmrg  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11651eda3803bSmrgelse
11652eda3803bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653eda3803bSmrgfor as_dir in $PATH
11654eda3803bSmrgdo
11655eda3803bSmrg  IFS=$as_save_IFS
11656eda3803bSmrg  test -z "$as_dir" && as_dir=.
116570bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
11658acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11659a31a186aSmrg    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
116600bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661eda3803bSmrg    break 2
11662eda3803bSmrg  fi
11663eda3803bSmrgdone
116640bb88ba4Smrg  done
11665eda3803bSmrgIFS=$as_save_IFS
11666fe5e51b7Smrg
11667eda3803bSmrgfi
11668eda3803bSmrgfi
11669a31a186aSmrgOBJDUMP=$ac_cv_prog_OBJDUMP
11670a31a186aSmrgif test -n "$OBJDUMP"; then
116710bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11672a31a186aSmrg$as_echo "$OBJDUMP" >&6; }
11673fe5e51b7Smrgelse
116740bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675eda3803bSmrg$as_echo "no" >&6; }
11676eda3803bSmrgfi
11677fe5e51b7Smrg
11678fe5e51b7Smrg
11679fe5e51b7Smrgfi
11680a31a186aSmrgif test -z "$ac_cv_prog_OBJDUMP"; then
11681a31a186aSmrg  ac_ct_OBJDUMP=$OBJDUMP
11682a31a186aSmrg  # Extract the first word of "objdump", so it can be a program name with args.
11683a31a186aSmrgset dummy objdump; ac_word=$2
116840bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685eda3803bSmrg$as_echo_n "checking for $ac_word... " >&6; }
116860bb88ba4Smrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11687eda3803bSmrg  $as_echo_n "(cached) " >&6
11688eda3803bSmrgelse
11689a31a186aSmrg  if test -n "$ac_ct_OBJDUMP"; then
11690a31a186aSmrg  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11691eda3803bSmrgelse
11692eda3803bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693eda3803bSmrgfor as_dir in $PATH
11694eda3803bSmrgdo
11695eda3803bSmrg  IFS=$as_save_IFS
11696eda3803bSmrg  test -z "$as_dir" && as_dir=.
116970bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
11698acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11699a31a186aSmrg    ac_cv_prog_ac_ct_OBJDUMP="objdump"
117000bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701eda3803bSmrg    break 2
11702eda3803bSmrg  fi
11703eda3803bSmrgdone
117040bb88ba4Smrg  done
11705eda3803bSmrgIFS=$as_save_IFS
11706fe5e51b7Smrg
11707eda3803bSmrgfi
11708eda3803bSmrgfi
11709a31a186aSmrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11710a31a186aSmrgif test -n "$ac_ct_OBJDUMP"; then
117110bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11712a31a186aSmrg$as_echo "$ac_ct_OBJDUMP" >&6; }
11713fe5e51b7Smrgelse
117140bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715eda3803bSmrg$as_echo "no" >&6; }
11716fe5e51b7Smrgfi
11717fe5e51b7Smrg
11718a31a186aSmrg  if test "x$ac_ct_OBJDUMP" = x; then
11719a31a186aSmrg    OBJDUMP="false"
11720fe5e51b7Smrg  else
11721eda3803bSmrg    case $cross_compiling:$ac_tool_warned in
11722eda3803bSmrgyes:)
117230bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11724eda3803bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11725eda3803bSmrgac_tool_warned=yes ;;
11726eda3803bSmrgesac
11727a31a186aSmrg    OBJDUMP=$ac_ct_OBJDUMP
11728fe5e51b7Smrg  fi
11729eda3803bSmrgelse
11730a31a186aSmrg  OBJDUMP="$ac_cv_prog_OBJDUMP"
11731fe5e51b7Smrgfi
11732fe5e51b7Smrg
11733a31a186aSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump
11734fe5e51b7Smrg
11735fe5e51b7Smrg
11736fe5e51b7Smrg
11737fe5e51b7Smrg
11738fe5e51b7Smrg
11739fe5e51b7Smrg
11740fe5e51b7Smrg
11741a31a186aSmrg
11742a31a186aSmrg
117430bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11744a31a186aSmrg$as_echo_n "checking how to recognize dependent libraries... " >&6; }
117450bb88ba4Smrgif ${lt_cv_deplibs_check_method+:} false; then :
11746643b027fSmrg  $as_echo_n "(cached) " >&6
11747643b027fSmrgelse
11748a31a186aSmrg  lt_cv_file_magic_cmd='$MAGIC_CMD'
11749a31a186aSmrglt_cv_file_magic_test_file=
11750a31a186aSmrglt_cv_deplibs_check_method='unknown'
11751a31a186aSmrg# Need to set the preceding variable on all platforms that support
11752a31a186aSmrg# interlibrary dependencies.
11753a31a186aSmrg# 'none' -- dependencies not supported.
11754a31a186aSmrg# `unknown' -- same as none, but documents that we really don't know.
11755a31a186aSmrg# 'pass_all' -- all dependencies passed with no checks.
11756a31a186aSmrg# 'test_compile' -- check by making test program.
11757a31a186aSmrg# 'file_magic [[regex]]' -- check by looking for files in library path
11758a31a186aSmrg# which responds to the $file_magic_cmd with a given extended regex.
11759a31a186aSmrg# If you have `file' or equivalent on your system and you're not sure
11760a31a186aSmrg# whether `pass_all' will *always* work, you probably want this one.
11761fe5e51b7Smrg
11762a31a186aSmrgcase $host_os in
11763a31a186aSmrgaix[4-9]*)
11764a31a186aSmrg  lt_cv_deplibs_check_method=pass_all
11765a31a186aSmrg  ;;
11766fe5e51b7Smrg
11767a31a186aSmrgbeos*)
11768a31a186aSmrg  lt_cv_deplibs_check_method=pass_all
11769643b027fSmrg  ;;
11770fe5e51b7Smrg
11771a31a186aSmrgbsdi[45]*)
11772a31a186aSmrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11773a31a186aSmrg  lt_cv_file_magic_cmd='/usr/bin/file -L'
11774a31a186aSmrg  lt_cv_file_magic_test_file=/shlib/libc.so
11775a31a186aSmrg  ;;
11776fe5e51b7Smrg
11777a31a186aSmrgcygwin*)
11778a31a186aSmrg  # func_win32_libid is a shell function defined in ltmain.sh
11779a31a186aSmrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11780a31a186aSmrg  lt_cv_file_magic_cmd='func_win32_libid'
11781643b027fSmrg  ;;
11782fe5e51b7Smrg
11783a31a186aSmrgmingw* | pw32*)
11784a31a186aSmrg  # Base MSYS/MinGW do not provide the 'file' command needed by
11785a31a186aSmrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11786a31a186aSmrg  # unless we find 'file', for example because we are cross-compiling.
117870bb88ba4Smrg  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
117880bb88ba4Smrg  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11789a31a186aSmrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11790a31a186aSmrg    lt_cv_file_magic_cmd='func_win32_libid'
11791a31a186aSmrg  else
117920bb88ba4Smrg    # Keep this pattern in sync with the one in func_win32_libid.
117930bb88ba4Smrg    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11794a31a186aSmrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
11795a31a186aSmrg  fi
11796a31a186aSmrg  ;;
11797fe5e51b7Smrg
117980bb88ba4Smrgcegcc*)
11799a31a186aSmrg  # use the weaker test based on 'objdump'. See mingw*.
11800a31a186aSmrg  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11801a31a186aSmrg  lt_cv_file_magic_cmd='$OBJDUMP -f'
11802643b027fSmrg  ;;
11803fe5e51b7Smrg
11804a31a186aSmrgdarwin* | rhapsody*)
11805a31a186aSmrg  lt_cv_deplibs_check_method=pass_all
11806a31a186aSmrg  ;;
11807fe5e51b7Smrg
11808a31a186aSmrgfreebsd* | dragonfly*)
11809a31a186aSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11810a31a186aSmrg    case $host_cpu in
11811a31a186aSmrg    i*86 )
11812a31a186aSmrg      # Not sure whether the presence of OpenBSD here was a mistake.
11813a31a186aSmrg      # Let's accept both of them until this is cleared up.
11814a31a186aSmrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11815a31a186aSmrg      lt_cv_file_magic_cmd=/usr/bin/file
11816a31a186aSmrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11817a31a186aSmrg      ;;
11818a31a186aSmrg    esac
11819643b027fSmrg  else
11820a31a186aSmrg    lt_cv_deplibs_check_method=pass_all
11821643b027fSmrg  fi
11822a31a186aSmrg  ;;
11823fe5e51b7Smrg
11824a31a186aSmrggnu*)
11825a31a186aSmrg  lt_cv_deplibs_check_method=pass_all
11826643b027fSmrg  ;;
11827fe5e51b7Smrg
118280bb88ba4Smrghaiku*)
118290bb88ba4Smrg  lt_cv_deplibs_check_method=pass_all
118300bb88ba4Smrg  ;;
118310bb88ba4Smrg
11832a31a186aSmrghpux10.20* | hpux11*)
11833a31a186aSmrg  lt_cv_file_magic_cmd=/usr/bin/file
11834a31a186aSmrg  case $host_cpu in
11835a31a186aSmrg  ia64*)
11836a31a186aSmrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11837a31a186aSmrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11838a31a186aSmrg    ;;
11839a31a186aSmrg  hppa*64*)
118400bb88ba4Smrg    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]'
11841a31a186aSmrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11842a31a186aSmrg    ;;
11843a31a186aSmrg  *)
118440bb88ba4Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11845a31a186aSmrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11846a31a186aSmrg    ;;
11847a31a186aSmrg  esac
11848a31a186aSmrg  ;;
11849fe5e51b7Smrg
11850a31a186aSmrginterix[3-9]*)
11851a31a186aSmrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11852a31a186aSmrg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11853a31a186aSmrg  ;;
11854fe5e51b7Smrg
11855a31a186aSmrgirix5* | irix6* | nonstopux*)
11856a31a186aSmrg  case $LD in
11857a31a186aSmrg  *-32|*"-32 ") libmagic=32-bit;;
11858a31a186aSmrg  *-n32|*"-n32 ") libmagic=N32;;
11859a31a186aSmrg  *-64|*"-64 ") libmagic=64-bit;;
11860a31a186aSmrg  *) libmagic=never-match;;
11861a31a186aSmrg  esac
11862a31a186aSmrg  lt_cv_deplibs_check_method=pass_all
11863a31a186aSmrg  ;;
11864fe5e51b7Smrg
118650bb88ba4Smrg# This must be glibc/ELF.
118660bb88ba4Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
11867a31a186aSmrg  lt_cv_deplibs_check_method=pass_all
11868a31a186aSmrg  ;;
11869fe5e51b7Smrg
11870a31a186aSmrgnetbsd*)
11871a31a186aSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11872a31a186aSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11873a31a186aSmrg  else
11874a31a186aSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11875a31a186aSmrg  fi
11876a31a186aSmrg  ;;
11877a31a186aSmrg
11878a31a186aSmrgnewos6*)
11879a31a186aSmrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11880a31a186aSmrg  lt_cv_file_magic_cmd=/usr/bin/file
11881a31a186aSmrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11882a31a186aSmrg  ;;
11883a31a186aSmrg
11884a31a186aSmrg*nto* | *qnx*)
11885a31a186aSmrg  lt_cv_deplibs_check_method=pass_all
11886a31a186aSmrg  ;;
11887a31a186aSmrg
118880bb88ba4Smrgopenbsd*)
118890bb88ba4Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
118900bb88ba4Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
118910bb88ba4Smrg  else
118920bb88ba4Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
118930bb88ba4Smrg  fi
118940bb88ba4Smrg  ;;
118950bb88ba4Smrg
118960bb88ba4Smrgosf3* | osf4* | osf5*)
118970bb88ba4Smrg  lt_cv_deplibs_check_method=pass_all
118980bb88ba4Smrg  ;;
118990bb88ba4Smrg
119000bb88ba4Smrgrdos*)
119010bb88ba4Smrg  lt_cv_deplibs_check_method=pass_all
119020bb88ba4Smrg  ;;
119030bb88ba4Smrg
119040bb88ba4Smrgsolaris*)
119050bb88ba4Smrg  lt_cv_deplibs_check_method=pass_all
119060bb88ba4Smrg  ;;
119070bb88ba4Smrg
119080bb88ba4Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
119090bb88ba4Smrg  lt_cv_deplibs_check_method=pass_all
119100bb88ba4Smrg  ;;
119110bb88ba4Smrg
119120bb88ba4Smrgsysv4 | sysv4.3*)
119130bb88ba4Smrg  case $host_vendor in
119140bb88ba4Smrg  motorola)
119150bb88ba4Smrg    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]'
119160bb88ba4Smrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
119170bb88ba4Smrg    ;;
119180bb88ba4Smrg  ncr)
119190bb88ba4Smrg    lt_cv_deplibs_check_method=pass_all
119200bb88ba4Smrg    ;;
119210bb88ba4Smrg  sequent)
119220bb88ba4Smrg    lt_cv_file_magic_cmd='/bin/file'
119230bb88ba4Smrg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
119240bb88ba4Smrg    ;;
119250bb88ba4Smrg  sni)
119260bb88ba4Smrg    lt_cv_file_magic_cmd='/bin/file'
119270bb88ba4Smrg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
119280bb88ba4Smrg    lt_cv_file_magic_test_file=/lib/libc.so
119290bb88ba4Smrg    ;;
119300bb88ba4Smrg  siemens)
119310bb88ba4Smrg    lt_cv_deplibs_check_method=pass_all
119320bb88ba4Smrg    ;;
119330bb88ba4Smrg  pc)
119340bb88ba4Smrg    lt_cv_deplibs_check_method=pass_all
119350bb88ba4Smrg    ;;
119360bb88ba4Smrg  esac
119370bb88ba4Smrg  ;;
119380bb88ba4Smrg
119390bb88ba4Smrgtpf*)
119400bb88ba4Smrg  lt_cv_deplibs_check_method=pass_all
119410bb88ba4Smrg  ;;
119420bb88ba4Smrgesac
119430bb88ba4Smrg
119440bb88ba4Smrgfi
119450bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
119460bb88ba4Smrg$as_echo "$lt_cv_deplibs_check_method" >&6; }
119470bb88ba4Smrg
119480bb88ba4Smrgfile_magic_glob=
119490bb88ba4Smrgwant_nocaseglob=no
119500bb88ba4Smrgif test "$build" = "$host"; then
119510bb88ba4Smrg  case $host_os in
119520bb88ba4Smrg  mingw* | pw32*)
119530bb88ba4Smrg    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
119540bb88ba4Smrg      want_nocaseglob=yes
119550bb88ba4Smrg    else
119560bb88ba4Smrg      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
119570bb88ba4Smrg    fi
119580bb88ba4Smrg    ;;
119590bb88ba4Smrg  esac
119600bb88ba4Smrgfi
119610bb88ba4Smrg
119620bb88ba4Smrgfile_magic_cmd=$lt_cv_file_magic_cmd
119630bb88ba4Smrgdeplibs_check_method=$lt_cv_deplibs_check_method
119640bb88ba4Smrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
119650bb88ba4Smrg
119660bb88ba4Smrg
119670bb88ba4Smrg
119680bb88ba4Smrg
119690bb88ba4Smrg
119700bb88ba4Smrg
119710bb88ba4Smrg
119720bb88ba4Smrg
119730bb88ba4Smrg
119740bb88ba4Smrg
119750bb88ba4Smrg
119760bb88ba4Smrg
119770bb88ba4Smrg
119780bb88ba4Smrg
119790bb88ba4Smrg
119800bb88ba4Smrg
119810bb88ba4Smrg
119820bb88ba4Smrg
119830bb88ba4Smrg
119840bb88ba4Smrg
119850bb88ba4Smrg
119860bb88ba4Smrg
119870bb88ba4Smrgif test -n "$ac_tool_prefix"; then
119880bb88ba4Smrg  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
119890bb88ba4Smrgset dummy ${ac_tool_prefix}dlltool; ac_word=$2
119900bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
119910bb88ba4Smrg$as_echo_n "checking for $ac_word... " >&6; }
119920bb88ba4Smrgif ${ac_cv_prog_DLLTOOL+:} false; then :
119930bb88ba4Smrg  $as_echo_n "(cached) " >&6
119940bb88ba4Smrgelse
119950bb88ba4Smrg  if test -n "$DLLTOOL"; then
119960bb88ba4Smrg  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
119970bb88ba4Smrgelse
119980bb88ba4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119990bb88ba4Smrgfor as_dir in $PATH
120000bb88ba4Smrgdo
120010bb88ba4Smrg  IFS=$as_save_IFS
120020bb88ba4Smrg  test -z "$as_dir" && as_dir=.
120030bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12004acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
120050bb88ba4Smrg    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
120060bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
120070bb88ba4Smrg    break 2
120080bb88ba4Smrg  fi
120090bb88ba4Smrgdone
120100bb88ba4Smrg  done
120110bb88ba4SmrgIFS=$as_save_IFS
120120bb88ba4Smrg
120130bb88ba4Smrgfi
120140bb88ba4Smrgfi
120150bb88ba4SmrgDLLTOOL=$ac_cv_prog_DLLTOOL
120160bb88ba4Smrgif test -n "$DLLTOOL"; then
120170bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
120180bb88ba4Smrg$as_echo "$DLLTOOL" >&6; }
120190bb88ba4Smrgelse
120200bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
120210bb88ba4Smrg$as_echo "no" >&6; }
120220bb88ba4Smrgfi
120230bb88ba4Smrg
120240bb88ba4Smrg
120250bb88ba4Smrgfi
120260bb88ba4Smrgif test -z "$ac_cv_prog_DLLTOOL"; then
120270bb88ba4Smrg  ac_ct_DLLTOOL=$DLLTOOL
120280bb88ba4Smrg  # Extract the first word of "dlltool", so it can be a program name with args.
120290bb88ba4Smrgset dummy dlltool; ac_word=$2
120300bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
120310bb88ba4Smrg$as_echo_n "checking for $ac_word... " >&6; }
120320bb88ba4Smrgif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
120330bb88ba4Smrg  $as_echo_n "(cached) " >&6
120340bb88ba4Smrgelse
120350bb88ba4Smrg  if test -n "$ac_ct_DLLTOOL"; then
120360bb88ba4Smrg  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
120370bb88ba4Smrgelse
120380bb88ba4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
120390bb88ba4Smrgfor as_dir in $PATH
120400bb88ba4Smrgdo
120410bb88ba4Smrg  IFS=$as_save_IFS
120420bb88ba4Smrg  test -z "$as_dir" && as_dir=.
120430bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12044acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
120450bb88ba4Smrg    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
120460bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
120470bb88ba4Smrg    break 2
120480bb88ba4Smrg  fi
120490bb88ba4Smrgdone
120500bb88ba4Smrg  done
120510bb88ba4SmrgIFS=$as_save_IFS
120520bb88ba4Smrg
120530bb88ba4Smrgfi
120540bb88ba4Smrgfi
120550bb88ba4Smrgac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
120560bb88ba4Smrgif test -n "$ac_ct_DLLTOOL"; then
120570bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
120580bb88ba4Smrg$as_echo "$ac_ct_DLLTOOL" >&6; }
120590bb88ba4Smrgelse
120600bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
120610bb88ba4Smrg$as_echo "no" >&6; }
120620bb88ba4Smrgfi
120630bb88ba4Smrg
120640bb88ba4Smrg  if test "x$ac_ct_DLLTOOL" = x; then
120650bb88ba4Smrg    DLLTOOL="false"
120660bb88ba4Smrg  else
120670bb88ba4Smrg    case $cross_compiling:$ac_tool_warned in
120680bb88ba4Smrgyes:)
120690bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
120700bb88ba4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
120710bb88ba4Smrgac_tool_warned=yes ;;
120720bb88ba4Smrgesac
120730bb88ba4Smrg    DLLTOOL=$ac_ct_DLLTOOL
120740bb88ba4Smrg  fi
120750bb88ba4Smrgelse
120760bb88ba4Smrg  DLLTOOL="$ac_cv_prog_DLLTOOL"
120770bb88ba4Smrgfi
120780bb88ba4Smrg
120790bb88ba4Smrgtest -z "$DLLTOOL" && DLLTOOL=dlltool
120800bb88ba4Smrg
120810bb88ba4Smrg
120820bb88ba4Smrg
120830bb88ba4Smrg
120840bb88ba4Smrg
120850bb88ba4Smrg
12086a31a186aSmrg
12087a31a186aSmrg
12088a31a186aSmrg
12089a31a186aSmrg
120900bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
120910bb88ba4Smrg$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
120920bb88ba4Smrgif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
120930bb88ba4Smrg  $as_echo_n "(cached) " >&6
120940bb88ba4Smrgelse
120950bb88ba4Smrg  lt_cv_sharedlib_from_linklib_cmd='unknown'
12096a31a186aSmrg
120970bb88ba4Smrgcase $host_os in
120980bb88ba4Smrgcygwin* | mingw* | pw32* | cegcc*)
120990bb88ba4Smrg  # two different shell functions defined in ltmain.sh
121000bb88ba4Smrg  # decide which to use based on capabilities of $DLLTOOL
121010bb88ba4Smrg  case `$DLLTOOL --help 2>&1` in
121020bb88ba4Smrg  *--identify-strict*)
121030bb88ba4Smrg    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12104a31a186aSmrg    ;;
121050bb88ba4Smrg  *)
121060bb88ba4Smrg    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12107a31a186aSmrg    ;;
12108a31a186aSmrg  esac
12109a31a186aSmrg  ;;
121100bb88ba4Smrg*)
121110bb88ba4Smrg  # fallback: assume linklib IS sharedlib
121120bb88ba4Smrg  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12113a31a186aSmrg  ;;
12114a31a186aSmrgesac
12115a31a186aSmrg
12116a31a186aSmrgfi
121170bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
121180bb88ba4Smrg$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
121190bb88ba4Smrgsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
121200bb88ba4Smrgtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12121a31a186aSmrg
12122a31a186aSmrg
12123a31a186aSmrg
12124a31a186aSmrg
12125a31a186aSmrg
12126a31a186aSmrg
12127a31a186aSmrg
12128a31a186aSmrgif test -n "$ac_tool_prefix"; then
121290bb88ba4Smrg  for ac_prog in ar
121300bb88ba4Smrg  do
121310bb88ba4Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
121320bb88ba4Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
121330bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
121350bb88ba4Smrgif ${ac_cv_prog_AR+:} false; then :
12136643b027fSmrg  $as_echo_n "(cached) " >&6
12137643b027fSmrgelse
12138a31a186aSmrg  if test -n "$AR"; then
12139a31a186aSmrg  ac_cv_prog_AR="$AR" # Let the user override the test.
12140643b027fSmrgelse
12141643b027fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142643b027fSmrgfor as_dir in $PATH
12143643b027fSmrgdo
12144643b027fSmrg  IFS=$as_save_IFS
12145643b027fSmrg  test -z "$as_dir" && as_dir=.
121460bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12147acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
121480bb88ba4Smrg    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
121490bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150643b027fSmrg    break 2
12151643b027fSmrg  fi
12152643b027fSmrgdone
121530bb88ba4Smrg  done
12154643b027fSmrgIFS=$as_save_IFS
12155fe5e51b7Smrg
12156eda3803bSmrgfi
12157643b027fSmrgfi
12158a31a186aSmrgAR=$ac_cv_prog_AR
12159a31a186aSmrgif test -n "$AR"; then
121600bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12161a31a186aSmrg$as_echo "$AR" >&6; }
12162643b027fSmrgelse
121630bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164643b027fSmrg$as_echo "no" >&6; }
12165643b027fSmrgfi
12166643b027fSmrg
12167a31a186aSmrg
121680bb88ba4Smrg    test -n "$AR" && break
121690bb88ba4Smrg  done
12170a31a186aSmrgfi
121710bb88ba4Smrgif test -z "$AR"; then
12172a31a186aSmrg  ac_ct_AR=$AR
121730bb88ba4Smrg  for ac_prog in ar
121740bb88ba4Smrgdo
121750bb88ba4Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
121760bb88ba4Smrgset dummy $ac_prog; ac_word=$2
121770bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
121790bb88ba4Smrgif ${ac_cv_prog_ac_ct_AR+:} false; then :
12180a31a186aSmrg  $as_echo_n "(cached) " >&6
12181a31a186aSmrgelse
12182a31a186aSmrg  if test -n "$ac_ct_AR"; then
12183a31a186aSmrg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12184a31a186aSmrgelse
12185a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186a31a186aSmrgfor as_dir in $PATH
12187a31a186aSmrgdo
12188a31a186aSmrg  IFS=$as_save_IFS
12189a31a186aSmrg  test -z "$as_dir" && as_dir=.
121900bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12191acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
121920bb88ba4Smrg    ac_cv_prog_ac_ct_AR="$ac_prog"
121930bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12194a31a186aSmrg    break 2
12195a31a186aSmrg  fi
12196a31a186aSmrgdone
121970bb88ba4Smrg  done
12198a31a186aSmrgIFS=$as_save_IFS
12199a31a186aSmrg
12200a31a186aSmrgfi
12201a31a186aSmrgfi
12202a31a186aSmrgac_ct_AR=$ac_cv_prog_ac_ct_AR
12203a31a186aSmrgif test -n "$ac_ct_AR"; then
122040bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12205a31a186aSmrg$as_echo "$ac_ct_AR" >&6; }
12206a31a186aSmrgelse
122070bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208a31a186aSmrg$as_echo "no" >&6; }
12209a31a186aSmrgfi
12210a31a186aSmrg
122110bb88ba4Smrg
122120bb88ba4Smrg  test -n "$ac_ct_AR" && break
122130bb88ba4Smrgdone
122140bb88ba4Smrg
12215a31a186aSmrg  if test "x$ac_ct_AR" = x; then
12216a31a186aSmrg    AR="false"
12217643b027fSmrg  else
12218643b027fSmrg    case $cross_compiling:$ac_tool_warned in
12219643b027fSmrgyes:)
122200bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12221643b027fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12222643b027fSmrgac_tool_warned=yes ;;
12223643b027fSmrgesac
12224a31a186aSmrg    AR=$ac_ct_AR
12225643b027fSmrg  fi
12226643b027fSmrgfi
12227643b027fSmrg
122280bb88ba4Smrg: ${AR=ar}
122290bb88ba4Smrg: ${AR_FLAGS=cru}
122300bb88ba4Smrg
122310bb88ba4Smrg
122320bb88ba4Smrg
122330bb88ba4Smrg
12234a31a186aSmrg
12235a31a186aSmrg
12236a31a186aSmrg
12237a31a186aSmrg
12238a31a186aSmrg
12239a31a186aSmrg
12240a31a186aSmrg
122410bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
122420bb88ba4Smrg$as_echo_n "checking for archiver @FILE support... " >&6; }
122430bb88ba4Smrgif ${lt_cv_ar_at_file+:} false; then :
122440bb88ba4Smrg  $as_echo_n "(cached) " >&6
122450bb88ba4Smrgelse
122460bb88ba4Smrg  lt_cv_ar_at_file=no
122470bb88ba4Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
122480bb88ba4Smrg/* end confdefs.h.  */
122490bb88ba4Smrg
122500bb88ba4Smrgint
122510bb88ba4Smrgmain ()
122520bb88ba4Smrg{
122530bb88ba4Smrg
122540bb88ba4Smrg  ;
122550bb88ba4Smrg  return 0;
122560bb88ba4Smrg}
122570bb88ba4Smrg_ACEOF
122580bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
122590bb88ba4Smrg  echo conftest.$ac_objext > conftest.lst
122600bb88ba4Smrg      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
122610bb88ba4Smrg      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
122620bb88ba4Smrg  (eval $lt_ar_try) 2>&5
122630bb88ba4Smrg  ac_status=$?
122640bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
122650bb88ba4Smrg  test $ac_status = 0; }
122660bb88ba4Smrg      if test "$ac_status" -eq 0; then
122670bb88ba4Smrg	# Ensure the archiver fails upon bogus file names.
122680bb88ba4Smrg	rm -f conftest.$ac_objext libconftest.a
122690bb88ba4Smrg	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
122700bb88ba4Smrg  (eval $lt_ar_try) 2>&5
122710bb88ba4Smrg  ac_status=$?
122720bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
122730bb88ba4Smrg  test $ac_status = 0; }
122740bb88ba4Smrg	if test "$ac_status" -ne 0; then
122750bb88ba4Smrg          lt_cv_ar_at_file=@
122760bb88ba4Smrg        fi
122770bb88ba4Smrg      fi
122780bb88ba4Smrg      rm -f conftest.* libconftest.a
122790bb88ba4Smrg
122800bb88ba4Smrgfi
122810bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
122820bb88ba4Smrg
122830bb88ba4Smrgfi
122840bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
122850bb88ba4Smrg$as_echo "$lt_cv_ar_at_file" >&6; }
122860bb88ba4Smrg
122870bb88ba4Smrgif test "x$lt_cv_ar_at_file" = xno; then
122880bb88ba4Smrg  archiver_list_spec=
122890bb88ba4Smrgelse
122900bb88ba4Smrg  archiver_list_spec=$lt_cv_ar_at_file
122910bb88ba4Smrgfi
122920bb88ba4Smrg
122930bb88ba4Smrg
122940bb88ba4Smrg
12295a31a186aSmrg
12296a31a186aSmrg
12297a31a186aSmrg
12298a31a186aSmrg
12299a31a186aSmrgif test -n "$ac_tool_prefix"; then
12300a31a186aSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12301a31a186aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
123020bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303643b027fSmrg$as_echo_n "checking for $ac_word... " >&6; }
123040bb88ba4Smrgif ${ac_cv_prog_STRIP+:} false; then :
12305eda3803bSmrg  $as_echo_n "(cached) " >&6
12306eda3803bSmrgelse
12307a31a186aSmrg  if test -n "$STRIP"; then
12308a31a186aSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12309643b027fSmrgelse
12310643b027fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311643b027fSmrgfor as_dir in $PATH
12312eda3803bSmrgdo
12313643b027fSmrg  IFS=$as_save_IFS
12314643b027fSmrg  test -z "$as_dir" && as_dir=.
123150bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12316acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12317a31a186aSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
123180bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12319643b027fSmrg    break 2
12320643b027fSmrg  fi
12321643b027fSmrgdone
123220bb88ba4Smrg  done
12323643b027fSmrgIFS=$as_save_IFS
12324643b027fSmrg
12325643b027fSmrgfi
12326643b027fSmrgfi
12327a31a186aSmrgSTRIP=$ac_cv_prog_STRIP
12328a31a186aSmrgif test -n "$STRIP"; then
123290bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12330a31a186aSmrg$as_echo "$STRIP" >&6; }
12331eda3803bSmrgelse
123320bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333643b027fSmrg$as_echo "no" >&6; }
12334643b027fSmrgfi
12335643b027fSmrg
12336fe5e51b7Smrg
12337eda3803bSmrgfi
12338a31a186aSmrgif test -z "$ac_cv_prog_STRIP"; then
12339a31a186aSmrg  ac_ct_STRIP=$STRIP
12340a31a186aSmrg  # Extract the first word of "strip", so it can be a program name with args.
12341a31a186aSmrgset dummy strip; ac_word=$2
123420bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343643b027fSmrg$as_echo_n "checking for $ac_word... " >&6; }
123440bb88ba4Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12345643b027fSmrg  $as_echo_n "(cached) " >&6
12346643b027fSmrgelse
12347a31a186aSmrg  if test -n "$ac_ct_STRIP"; then
12348a31a186aSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12349643b027fSmrgelse
12350643b027fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351643b027fSmrgfor as_dir in $PATH
12352643b027fSmrgdo
12353643b027fSmrg  IFS=$as_save_IFS
12354643b027fSmrg  test -z "$as_dir" && as_dir=.
123550bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12356acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12357a31a186aSmrg    ac_cv_prog_ac_ct_STRIP="strip"
123580bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359643b027fSmrg    break 2
12360643b027fSmrg  fi
12361643b027fSmrgdone
123620bb88ba4Smrg  done
12363643b027fSmrgIFS=$as_save_IFS
12364fe5e51b7Smrg
12365643b027fSmrgfi
12366643b027fSmrgfi
12367a31a186aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12368a31a186aSmrgif test -n "$ac_ct_STRIP"; then
123690bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12370a31a186aSmrg$as_echo "$ac_ct_STRIP" >&6; }
12371643b027fSmrgelse
123720bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373643b027fSmrg$as_echo "no" >&6; }
12374643b027fSmrgfi
12375fe5e51b7Smrg
12376a31a186aSmrg  if test "x$ac_ct_STRIP" = x; then
12377a31a186aSmrg    STRIP=":"
12378643b027fSmrg  else
12379643b027fSmrg    case $cross_compiling:$ac_tool_warned in
12380643b027fSmrgyes:)
123810bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12382643b027fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12383643b027fSmrgac_tool_warned=yes ;;
12384643b027fSmrgesac
12385a31a186aSmrg    STRIP=$ac_ct_STRIP
12386643b027fSmrg  fi
12387643b027fSmrgelse
12388a31a186aSmrg  STRIP="$ac_cv_prog_STRIP"
12389643b027fSmrgfi
12390643b027fSmrg
12391a31a186aSmrgtest -z "$STRIP" && STRIP=:
12392a31a186aSmrg
12393643b027fSmrg
12394a31a186aSmrg
12395a31a186aSmrg
12396a31a186aSmrg
12397a31a186aSmrg
12398a31a186aSmrgif test -n "$ac_tool_prefix"; then
12399a31a186aSmrg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12400a31a186aSmrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
124010bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
124030bb88ba4Smrgif ${ac_cv_prog_RANLIB+:} false; then :
12404643b027fSmrg  $as_echo_n "(cached) " >&6
12405643b027fSmrgelse
12406a31a186aSmrg  if test -n "$RANLIB"; then
12407a31a186aSmrg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12408643b027fSmrgelse
12409a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410a31a186aSmrgfor as_dir in $PATH
12411a31a186aSmrgdo
12412a31a186aSmrg  IFS=$as_save_IFS
12413a31a186aSmrg  test -z "$as_dir" && as_dir=.
124140bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12415acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12416a31a186aSmrg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
124170bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418a31a186aSmrg    break 2
12419a31a186aSmrg  fi
12420a31a186aSmrgdone
124210bb88ba4Smrg  done
12422a31a186aSmrgIFS=$as_save_IFS
12423643b027fSmrg
12424a31a186aSmrgfi
12425a31a186aSmrgfi
12426a31a186aSmrgRANLIB=$ac_cv_prog_RANLIB
12427a31a186aSmrgif test -n "$RANLIB"; then
124280bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12429a31a186aSmrg$as_echo "$RANLIB" >&6; }
12430eda3803bSmrgelse
124310bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432a31a186aSmrg$as_echo "no" >&6; }
12433a31a186aSmrgfi
12434a31a186aSmrg
12435fe5e51b7Smrg
12436eda3803bSmrgfi
12437a31a186aSmrgif test -z "$ac_cv_prog_RANLIB"; then
12438a31a186aSmrg  ac_ct_RANLIB=$RANLIB
12439a31a186aSmrg  # Extract the first word of "ranlib", so it can be a program name with args.
12440a31a186aSmrgset dummy ranlib; ac_word=$2
124410bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
124430bb88ba4Smrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12444a31a186aSmrg  $as_echo_n "(cached) " >&6
12445a31a186aSmrgelse
12446a31a186aSmrg  if test -n "$ac_ct_RANLIB"; then
12447a31a186aSmrg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12448a31a186aSmrgelse
12449a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450a31a186aSmrgfor as_dir in $PATH
12451a31a186aSmrgdo
12452a31a186aSmrg  IFS=$as_save_IFS
12453a31a186aSmrg  test -z "$as_dir" && as_dir=.
124540bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12455acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12456a31a186aSmrg    ac_cv_prog_ac_ct_RANLIB="ranlib"
124570bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458a31a186aSmrg    break 2
12459a31a186aSmrg  fi
12460a31a186aSmrgdone
124610bb88ba4Smrg  done
12462a31a186aSmrgIFS=$as_save_IFS
12463fe5e51b7Smrg
12464a31a186aSmrgfi
12465a31a186aSmrgfi
12466a31a186aSmrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12467a31a186aSmrgif test -n "$ac_ct_RANLIB"; then
124680bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12469a31a186aSmrg$as_echo "$ac_ct_RANLIB" >&6; }
12470a31a186aSmrgelse
124710bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472a31a186aSmrg$as_echo "no" >&6; }
12473a31a186aSmrgfi
12474fe5e51b7Smrg
12475a31a186aSmrg  if test "x$ac_ct_RANLIB" = x; then
12476a31a186aSmrg    RANLIB=":"
12477a31a186aSmrg  else
12478a31a186aSmrg    case $cross_compiling:$ac_tool_warned in
12479a31a186aSmrgyes:)
124800bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12481a31a186aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12482a31a186aSmrgac_tool_warned=yes ;;
12483a31a186aSmrgesac
12484a31a186aSmrg    RANLIB=$ac_ct_RANLIB
12485a31a186aSmrg  fi
12486a31a186aSmrgelse
12487a31a186aSmrg  RANLIB="$ac_cv_prog_RANLIB"
12488eda3803bSmrgfi
12489a31a186aSmrg
12490a31a186aSmrgtest -z "$RANLIB" && RANLIB=:
12491a31a186aSmrg
12492a31a186aSmrg
12493a31a186aSmrg
12494a31a186aSmrg
12495a31a186aSmrg
12496a31a186aSmrg
12497a31a186aSmrg# Determine commands to create old-style static archives.
12498a31a186aSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12499a31a186aSmrgold_postinstall_cmds='chmod 644 $oldlib'
12500a31a186aSmrgold_postuninstall_cmds=
12501a31a186aSmrg
12502a31a186aSmrgif test -n "$RANLIB"; then
12503a31a186aSmrg  case $host_os in
12504a31a186aSmrg  openbsd*)
125050bb88ba4Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12506643b027fSmrg    ;;
12507a31a186aSmrg  *)
125080bb88ba4Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12509643b027fSmrg    ;;
12510643b027fSmrg  esac
125110bb88ba4Smrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12512a31a186aSmrgfi
12513fe5e51b7Smrg
125140bb88ba4Smrgcase $host_os in
125150bb88ba4Smrg  darwin*)
125160bb88ba4Smrg    lock_old_archive_extraction=yes ;;
125170bb88ba4Smrg  *)
125180bb88ba4Smrg    lock_old_archive_extraction=no ;;
125190bb88ba4Smrgesac
125200bb88ba4Smrg
125210bb88ba4Smrg
125220bb88ba4Smrg
125230bb88ba4Smrg
125240bb88ba4Smrg
125250bb88ba4Smrg
12526fe5e51b7Smrg
12527fe5e51b7Smrg
12528fe5e51b7Smrg
12529fe5e51b7Smrg
12530fe5e51b7Smrg
12531fe5e51b7Smrg
12532643b027fSmrg
12533fe5e51b7Smrg
12534fe5e51b7Smrg
12535fe5e51b7Smrg
12536fe5e51b7Smrg
12537fe5e51b7Smrg
12538fe5e51b7Smrg
12539fe5e51b7Smrg
12540fe5e51b7Smrg
12541fe5e51b7Smrg
12542fe5e51b7Smrg
12543fe5e51b7Smrg
12544fe5e51b7Smrg
12545fe5e51b7Smrg
12546fe5e51b7Smrg
12547fe5e51b7Smrg
12548fe5e51b7Smrg
12549fe5e51b7Smrg
12550fe5e51b7Smrg
12551fe5e51b7Smrg
12552fe5e51b7Smrg
12553fe5e51b7Smrg
12554fe5e51b7Smrg
12555fe5e51b7Smrg
12556fe5e51b7Smrg
12557fe5e51b7Smrg
12558fe5e51b7Smrg
12559a31a186aSmrg# If no C compiler was specified, use CC.
12560a31a186aSmrgLTCC=${LTCC-"$CC"}
12561fe5e51b7Smrg
12562a31a186aSmrg# If no C compiler flags were specified, use CFLAGS.
12563a31a186aSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12564fe5e51b7Smrg
12565a31a186aSmrg# Allow CC to be a program name with arguments.
12566a31a186aSmrgcompiler=$CC
12567fe5e51b7Smrg
12568fe5e51b7Smrg
12569a31a186aSmrg# Check for command to grab the raw symbol name followed by C symbol from nm.
125700bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12571a31a186aSmrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
125720bb88ba4Smrgif ${lt_cv_sys_global_symbol_pipe+:} false; then :
12573a31a186aSmrg  $as_echo_n "(cached) " >&6
12574a31a186aSmrgelse
12575fe5e51b7Smrg
12576a31a186aSmrg# These are sane defaults that work on at least a few old systems.
12577a31a186aSmrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12578fe5e51b7Smrg
12579a31a186aSmrg# Character class describing NM global symbol codes.
12580a31a186aSmrgsymcode='[BCDEGRST]'
12581fe5e51b7Smrg
12582a31a186aSmrg# Regexp to match symbols that can be accessed directly from C.
12583a31a186aSmrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12584fe5e51b7Smrg
12585a31a186aSmrg# Define system-specific variables.
12586a31a186aSmrgcase $host_os in
12587a31a186aSmrgaix*)
12588a31a186aSmrg  symcode='[BCDT]'
12589a31a186aSmrg  ;;
12590a31a186aSmrgcygwin* | mingw* | pw32* | cegcc*)
12591a31a186aSmrg  symcode='[ABCDGISTW]'
12592a31a186aSmrg  ;;
12593a31a186aSmrghpux*)
12594a31a186aSmrg  if test "$host_cpu" = ia64; then
12595a31a186aSmrg    symcode='[ABCDEGRST]'
12596a31a186aSmrg  fi
12597a31a186aSmrg  ;;
12598a31a186aSmrgirix* | nonstopux*)
12599a31a186aSmrg  symcode='[BCDEGRST]'
12600a31a186aSmrg  ;;
12601a31a186aSmrgosf*)
12602a31a186aSmrg  symcode='[BCDEGQRST]'
12603a31a186aSmrg  ;;
12604a31a186aSmrgsolaris*)
12605a31a186aSmrg  symcode='[BDRT]'
12606a31a186aSmrg  ;;
12607a31a186aSmrgsco3.2v5*)
12608a31a186aSmrg  symcode='[DT]'
12609a31a186aSmrg  ;;
12610a31a186aSmrgsysv4.2uw2*)
12611a31a186aSmrg  symcode='[DT]'
12612a31a186aSmrg  ;;
12613a31a186aSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
12614a31a186aSmrg  symcode='[ABDT]'
12615a31a186aSmrg  ;;
12616a31a186aSmrgsysv4)
12617a31a186aSmrg  symcode='[DFNSTU]'
12618a31a186aSmrg  ;;
12619a31a186aSmrgesac
12620fe5e51b7Smrg
12621a31a186aSmrg# If we're using GNU nm, then use its standard symbol codes.
12622a31a186aSmrgcase `$NM -V 2>&1` in
12623a31a186aSmrg*GNU* | *'with BFD'*)
12624a31a186aSmrg  symcode='[ABCDGIRSTW]' ;;
12625a31a186aSmrgesac
12626fe5e51b7Smrg
12627a31a186aSmrg# Transform an extracted symbol line into a proper C declaration.
12628a31a186aSmrg# Some systems (esp. on ia64) link data and code symbols differently,
12629a31a186aSmrg# so use this general approach.
12630a31a186aSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12631fe5e51b7Smrg
12632a31a186aSmrg# Transform an extracted symbol line into symbol name and symbol address
126330bb88ba4Smrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
126340bb88ba4Smrglt_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'"
12635fe5e51b7Smrg
12636a31a186aSmrg# Handle CRLF in mingw tool chain
12637a31a186aSmrgopt_cr=
12638a31a186aSmrgcase $build_os in
12639a31a186aSmrgmingw*)
12640a31a186aSmrg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12641a31a186aSmrg  ;;
12642a31a186aSmrgesac
12643fe5e51b7Smrg
12644a31a186aSmrg# Try without a prefix underscore, then with it.
12645a31a186aSmrgfor ac_symprfx in "" "_"; do
12646fe5e51b7Smrg
12647a31a186aSmrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12648a31a186aSmrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
12649fe5e51b7Smrg
12650a31a186aSmrg  # Write the raw and C identifiers.
12651a31a186aSmrg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12652a31a186aSmrg    # Fake it for dumpbin and say T for any non-static function
12653a31a186aSmrg    # and D for any global variable.
12654a31a186aSmrg    # Also find C++ and __fastcall symbols from MSVC++,
12655a31a186aSmrg    # which start with @ or ?.
12656a31a186aSmrg    lt_cv_sys_global_symbol_pipe="$AWK '"\
12657a31a186aSmrg"     {last_section=section; section=\$ 3};"\
126580bb88ba4Smrg"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12659a31a186aSmrg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12660a31a186aSmrg"     \$ 0!~/External *\|/{next};"\
12661a31a186aSmrg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12662a31a186aSmrg"     {if(hide[section]) next};"\
12663a31a186aSmrg"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12664a31a186aSmrg"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12665a31a186aSmrg"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12666a31a186aSmrg"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12667a31a186aSmrg"     ' prfx=^$ac_symprfx"
12668a31a186aSmrg  else
12669a31a186aSmrg    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12670a31a186aSmrg  fi
126710bb88ba4Smrg  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12672fe5e51b7Smrg
12673a31a186aSmrg  # Check to see that the pipe works correctly.
12674a31a186aSmrg  pipe_works=no
12675fe5e51b7Smrg
12676a31a186aSmrg  rm -f conftest*
12677a31a186aSmrg  cat > conftest.$ac_ext <<_LT_EOF
12678a31a186aSmrg#ifdef __cplusplus
12679a31a186aSmrgextern "C" {
12680a31a186aSmrg#endif
12681a31a186aSmrgchar nm_test_var;
12682a31a186aSmrgvoid nm_test_func(void);
12683a31a186aSmrgvoid nm_test_func(void){}
12684a31a186aSmrg#ifdef __cplusplus
12685a31a186aSmrg}
12686a31a186aSmrg#endif
12687a31a186aSmrgint main(){nm_test_var='a';nm_test_func();return(0);}
12688a31a186aSmrg_LT_EOF
12689fe5e51b7Smrg
126900bb88ba4Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12691a31a186aSmrg  (eval $ac_compile) 2>&5
12692a31a186aSmrg  ac_status=$?
126930bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
126940bb88ba4Smrg  test $ac_status = 0; }; then
12695a31a186aSmrg    # Now try to grab the symbols.
12696a31a186aSmrg    nlist=conftest.nm
126970bb88ba4Smrg    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
126980bb88ba4Smrg  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12699a31a186aSmrg  ac_status=$?
127000bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
127010bb88ba4Smrg  test $ac_status = 0; } && test -s "$nlist"; then
12702a31a186aSmrg      # Try sorting and uniquifying the output.
12703a31a186aSmrg      if sort "$nlist" | uniq > "$nlist"T; then
12704a31a186aSmrg	mv -f "$nlist"T "$nlist"
12705a31a186aSmrg      else
12706a31a186aSmrg	rm -f "$nlist"T
12707643b027fSmrg      fi
12708fe5e51b7Smrg
12709a31a186aSmrg      # Make sure that we snagged all the symbols we need.
12710a31a186aSmrg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12711a31a186aSmrg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12712a31a186aSmrg	  cat <<_LT_EOF > conftest.$ac_ext
127130bb88ba4Smrg/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
127140bb88ba4Smrg#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
127150bb88ba4Smrg/* DATA imports from DLLs on WIN32 con't be const, because runtime
127160bb88ba4Smrg   relocations are performed -- see ld's documentation on pseudo-relocs.  */
127170bb88ba4Smrg# define LT_DLSYM_CONST
127180bb88ba4Smrg#elif defined(__osf__)
127190bb88ba4Smrg/* This system does not cope well with relocations in const data.  */
127200bb88ba4Smrg# define LT_DLSYM_CONST
127210bb88ba4Smrg#else
127220bb88ba4Smrg# define LT_DLSYM_CONST const
127230bb88ba4Smrg#endif
127240bb88ba4Smrg
12725a31a186aSmrg#ifdef __cplusplus
12726a31a186aSmrgextern "C" {
12727a31a186aSmrg#endif
12728fe5e51b7Smrg
12729a31a186aSmrg_LT_EOF
12730a31a186aSmrg	  # Now generate the symbol file.
12731a31a186aSmrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12732fe5e51b7Smrg
12733a31a186aSmrg	  cat <<_LT_EOF >> conftest.$ac_ext
12734fe5e51b7Smrg
12735a31a186aSmrg/* The mapping between symbol names and symbols.  */
127360bb88ba4SmrgLT_DLSYM_CONST struct {
12737a31a186aSmrg  const char *name;
12738a31a186aSmrg  void       *address;
12739a31a186aSmrg}
12740a31a186aSmrglt__PROGRAM__LTX_preloaded_symbols[] =
12741a31a186aSmrg{
12742a31a186aSmrg  { "@PROGRAM@", (void *) 0 },
12743a31a186aSmrg_LT_EOF
12744a31a186aSmrg	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12745a31a186aSmrg	  cat <<\_LT_EOF >> conftest.$ac_ext
12746a31a186aSmrg  {0, (void *) 0}
12747a31a186aSmrg};
12748eda3803bSmrg
12749a31a186aSmrg/* This works around a problem in FreeBSD linker */
12750a31a186aSmrg#ifdef FREEBSD_WORKAROUND
12751a31a186aSmrgstatic const void *lt_preloaded_setup() {
12752a31a186aSmrg  return lt__PROGRAM__LTX_preloaded_symbols;
12753a31a186aSmrg}
12754a31a186aSmrg#endif
12755eda3803bSmrg
12756a31a186aSmrg#ifdef __cplusplus
12757a31a186aSmrg}
12758a31a186aSmrg#endif
12759a31a186aSmrg_LT_EOF
12760a31a186aSmrg	  # Now try linking the two files.
12761a31a186aSmrg	  mv conftest.$ac_objext conftstm.$ac_objext
127620bb88ba4Smrg	  lt_globsym_save_LIBS=$LIBS
127630bb88ba4Smrg	  lt_globsym_save_CFLAGS=$CFLAGS
12764a31a186aSmrg	  LIBS="conftstm.$ac_objext"
12765a31a186aSmrg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
127660bb88ba4Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12767a31a186aSmrg  (eval $ac_link) 2>&5
12768a31a186aSmrg  ac_status=$?
127690bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
127700bb88ba4Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12771a31a186aSmrg	    pipe_works=yes
12772a31a186aSmrg	  fi
127730bb88ba4Smrg	  LIBS=$lt_globsym_save_LIBS
127740bb88ba4Smrg	  CFLAGS=$lt_globsym_save_CFLAGS
12775a31a186aSmrg	else
12776a31a186aSmrg	  echo "cannot find nm_test_func in $nlist" >&5
12777a31a186aSmrg	fi
12778a31a186aSmrg      else
12779a31a186aSmrg	echo "cannot find nm_test_var in $nlist" >&5
12780a31a186aSmrg      fi
12781a31a186aSmrg    else
12782a31a186aSmrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12783a31a186aSmrg    fi
12784a31a186aSmrg  else
12785a31a186aSmrg    echo "$progname: failed program was:" >&5
12786a31a186aSmrg    cat conftest.$ac_ext >&5
12787a31a186aSmrg  fi
12788a31a186aSmrg  rm -rf conftest* conftst*
12789eda3803bSmrg
12790a31a186aSmrg  # Do not use the global_symbol_pipe unless it works.
12791a31a186aSmrg  if test "$pipe_works" = yes; then
12792a31a186aSmrg    break
12793a31a186aSmrg  else
12794a31a186aSmrg    lt_cv_sys_global_symbol_pipe=
12795a31a186aSmrg  fi
12796a31a186aSmrgdone
12797eda3803bSmrg
12798643b027fSmrgfi
12799eda3803bSmrg
12800a31a186aSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
12801a31a186aSmrg  lt_cv_sys_global_symbol_to_cdecl=
12802a31a186aSmrgfi
12803a31a186aSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
128040bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12805a31a186aSmrg$as_echo "failed" >&6; }
12806fe5e51b7Smrgelse
128070bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12808a31a186aSmrg$as_echo "ok" >&6; }
12809fe5e51b7Smrgfi
12810fe5e51b7Smrg
128110bb88ba4Smrg# Response file support.
128120bb88ba4Smrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then
128130bb88ba4Smrg  nm_file_list_spec='@'
128140bb88ba4Smrgelif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
128150bb88ba4Smrg  nm_file_list_spec='@'
128160bb88ba4Smrgfi
128170bb88ba4Smrg
128180bb88ba4Smrg
128190bb88ba4Smrg
128200bb88ba4Smrg
128210bb88ba4Smrg
128220bb88ba4Smrg
128230bb88ba4Smrg
128240bb88ba4Smrg
128250bb88ba4Smrg
128260bb88ba4Smrg
128270bb88ba4Smrg
12828eda3803bSmrg
12829fe5e51b7Smrg
12830fe5e51b7Smrg
12831fe5e51b7Smrg
12832fe5e51b7Smrg
12833fe5e51b7Smrg
12834fe5e51b7Smrg
12835fe5e51b7Smrg
12836fe5e51b7Smrg
12837a31a186aSmrg
12838a31a186aSmrg
12839a31a186aSmrg
12840a31a186aSmrg
12841a31a186aSmrg
12842a31a186aSmrg
12843a31a186aSmrg
128440bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
128450bb88ba4Smrg$as_echo_n "checking for sysroot... " >&6; }
128460bb88ba4Smrg
128470bb88ba4Smrg# Check whether --with-sysroot was given.
128480bb88ba4Smrgif test "${with_sysroot+set}" = set; then :
128490bb88ba4Smrg  withval=$with_sysroot;
128500bb88ba4Smrgelse
128510bb88ba4Smrg  with_sysroot=no
128520bb88ba4Smrgfi
128530bb88ba4Smrg
128540bb88ba4Smrg
128550bb88ba4Smrglt_sysroot=
128560bb88ba4Smrgcase ${with_sysroot} in #(
128570bb88ba4Smrg yes)
128580bb88ba4Smrg   if test "$GCC" = yes; then
128590bb88ba4Smrg     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
128600bb88ba4Smrg   fi
128610bb88ba4Smrg   ;; #(
128620bb88ba4Smrg /*)
128630bb88ba4Smrg   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
128640bb88ba4Smrg   ;; #(
128650bb88ba4Smrg no|'')
128660bb88ba4Smrg   ;; #(
128670bb88ba4Smrg *)
128680bb88ba4Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
128690bb88ba4Smrg$as_echo "${with_sysroot}" >&6; }
128700bb88ba4Smrg   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
128710bb88ba4Smrg   ;;
128720bb88ba4Smrgesac
128730bb88ba4Smrg
128740bb88ba4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
128750bb88ba4Smrg$as_echo "${lt_sysroot:-no}" >&6; }
12876a31a186aSmrg
12877a31a186aSmrg
12878a31a186aSmrg
12879a31a186aSmrg
12880a31a186aSmrg
12881a31a186aSmrg# Check whether --enable-libtool-lock was given.
128820bb88ba4Smrgif test "${enable_libtool_lock+set}" = set; then :
12883a31a186aSmrg  enableval=$enable_libtool_lock;
12884643b027fSmrgfi
12885fe5e51b7Smrg
12886a31a186aSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12887fe5e51b7Smrg
12888a31a186aSmrg# Some flags need to be propagated to the compiler or linker for good
12889a31a186aSmrg# libtool support.
12890a31a186aSmrgcase $host in
12891a31a186aSmrgia64-*-hpux*)
12892a31a186aSmrg  # Find out which ABI we are using.
12893a31a186aSmrg  echo 'int i;' > conftest.$ac_ext
128940bb88ba4Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12895a31a186aSmrg  (eval $ac_compile) 2>&5
12896a31a186aSmrg  ac_status=$?
128970bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
128980bb88ba4Smrg  test $ac_status = 0; }; then
12899a31a186aSmrg    case `/usr/bin/file conftest.$ac_objext` in
12900a31a186aSmrg      *ELF-32*)
12901a31a186aSmrg	HPUX_IA64_MODE="32"
12902a31a186aSmrg	;;
12903a31a186aSmrg      *ELF-64*)
12904a31a186aSmrg	HPUX_IA64_MODE="64"
12905a31a186aSmrg	;;
12906a31a186aSmrg    esac
12907a31a186aSmrg  fi
12908a31a186aSmrg  rm -rf conftest*
12909a31a186aSmrg  ;;
12910a31a186aSmrg*-*-irix6*)
12911a31a186aSmrg  # Find out which ABI we are using.
129120bb88ba4Smrg  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
129130bb88ba4Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12914a31a186aSmrg  (eval $ac_compile) 2>&5
12915a31a186aSmrg  ac_status=$?
129160bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
129170bb88ba4Smrg  test $ac_status = 0; }; then
12918a31a186aSmrg    if test "$lt_cv_prog_gnu_ld" = yes; then
12919a31a186aSmrg      case `/usr/bin/file conftest.$ac_objext` in
12920a31a186aSmrg	*32-bit*)
12921a31a186aSmrg	  LD="${LD-ld} -melf32bsmip"
12922a31a186aSmrg	  ;;
12923a31a186aSmrg	*N32*)
12924a31a186aSmrg	  LD="${LD-ld} -melf32bmipn32"
12925a31a186aSmrg	  ;;
12926a31a186aSmrg	*64-bit*)
12927a31a186aSmrg	  LD="${LD-ld} -melf64bmip"
12928a31a186aSmrg	;;
12929a31a186aSmrg      esac
12930a31a186aSmrg    else
12931a31a186aSmrg      case `/usr/bin/file conftest.$ac_objext` in
12932a31a186aSmrg	*32-bit*)
12933a31a186aSmrg	  LD="${LD-ld} -32"
12934a31a186aSmrg	  ;;
12935a31a186aSmrg	*N32*)
12936a31a186aSmrg	  LD="${LD-ld} -n32"
12937a31a186aSmrg	  ;;
12938a31a186aSmrg	*64-bit*)
12939a31a186aSmrg	  LD="${LD-ld} -64"
12940a31a186aSmrg	  ;;
12941a31a186aSmrg      esac
12942643b027fSmrg    fi
12943a31a186aSmrg  fi
12944a31a186aSmrg  rm -rf conftest*
12945a31a186aSmrg  ;;
12946fe5e51b7Smrg
12947a31a186aSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12948a31a186aSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12949a31a186aSmrg  # Find out which ABI we are using.
12950a31a186aSmrg  echo 'int i;' > conftest.$ac_ext
129510bb88ba4Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12952a31a186aSmrg  (eval $ac_compile) 2>&5
12953a31a186aSmrg  ac_status=$?
129540bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
129550bb88ba4Smrg  test $ac_status = 0; }; then
12956a31a186aSmrg    case `/usr/bin/file conftest.o` in
12957a31a186aSmrg      *32-bit*)
12958a31a186aSmrg	case $host in
12959a31a186aSmrg	  x86_64-*kfreebsd*-gnu)
12960a31a186aSmrg	    LD="${LD-ld} -m elf_i386_fbsd"
12961a31a186aSmrg	    ;;
12962a31a186aSmrg	  x86_64-*linux*)
12963a31a186aSmrg	    LD="${LD-ld} -m elf_i386"
12964a31a186aSmrg	    ;;
12965a31a186aSmrg	  ppc64-*linux*|powerpc64-*linux*)
12966a31a186aSmrg	    LD="${LD-ld} -m elf32ppclinux"
12967a31a186aSmrg	    ;;
12968a31a186aSmrg	  s390x-*linux*)
12969a31a186aSmrg	    LD="${LD-ld} -m elf_s390"
12970a31a186aSmrg	    ;;
12971a31a186aSmrg	  sparc64-*linux*)
12972a31a186aSmrg	    LD="${LD-ld} -m elf32_sparc"
12973a31a186aSmrg	    ;;
12974a31a186aSmrg	esac
12975a31a186aSmrg	;;
12976a31a186aSmrg      *64-bit*)
12977a31a186aSmrg	case $host in
12978a31a186aSmrg	  x86_64-*kfreebsd*-gnu)
12979a31a186aSmrg	    LD="${LD-ld} -m elf_x86_64_fbsd"
12980a31a186aSmrg	    ;;
12981a31a186aSmrg	  x86_64-*linux*)
12982a31a186aSmrg	    LD="${LD-ld} -m elf_x86_64"
12983a31a186aSmrg	    ;;
12984a31a186aSmrg	  ppc*-*linux*|powerpc*-*linux*)
12985a31a186aSmrg	    LD="${LD-ld} -m elf64ppc"
12986a31a186aSmrg	    ;;
12987a31a186aSmrg	  s390*-*linux*|s390*-*tpf*)
12988a31a186aSmrg	    LD="${LD-ld} -m elf64_s390"
12989a31a186aSmrg	    ;;
12990a31a186aSmrg	  sparc*-*linux*)
12991a31a186aSmrg	    LD="${LD-ld} -m elf64_sparc"
12992a31a186aSmrg	    ;;
12993a31a186aSmrg	esac
12994a31a186aSmrg	;;
12995643b027fSmrg    esac
12996a31a186aSmrg  fi
12997a31a186aSmrg  rm -rf conftest*
12998a31a186aSmrg  ;;
12999fe5e51b7Smrg
13000a31a186aSmrg*-*-sco3.2v5*)
13001a31a186aSmrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13002a31a186aSmrg  SAVE_CFLAGS="$CFLAGS"
13003a31a186aSmrg  CFLAGS="$CFLAGS -belf"
130040bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13005a31a186aSmrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
130060bb88ba4Smrgif ${lt_cv_cc_needs_belf+:} false; then :
13007a31a186aSmrg  $as_echo_n "(cached) " >&6
13008a31a186aSmrgelse
13009a31a186aSmrg  ac_ext=c
13010a31a186aSmrgac_cpp='$CPP $CPPFLAGS'
13011a31a186aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13012a31a186aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13013a31a186aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
13014fe5e51b7Smrg
130150bb88ba4Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016a31a186aSmrg/* end confdefs.h.  */
13017fe5e51b7Smrg
13018a31a186aSmrgint
13019a31a186aSmrgmain ()
13020a31a186aSmrg{
13021fe5e51b7Smrg
13022a31a186aSmrg  ;
13023a31a186aSmrg  return 0;
13024a31a186aSmrg}
13025a31a186aSmrg_ACEOF
130260bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
13027a31a186aSmrg  lt_cv_cc_needs_belf=yes
13028a31a186aSmrgelse
130290bb88ba4Smrg  lt_cv_cc_needs_belf=no
13030a31a186aSmrgfi
130310bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
130320bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
13033a31a186aSmrg     ac_ext=c
13034a31a186aSmrgac_cpp='$CPP $CPPFLAGS'
13035a31a186aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13036a31a186aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13037a31a186aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
13038a31a186aSmrg
13039a31a186aSmrgfi
130400bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13041a31a186aSmrg$as_echo "$lt_cv_cc_needs_belf" >&6; }
13042a31a186aSmrg  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13043a31a186aSmrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13044a31a186aSmrg    CFLAGS="$SAVE_CFLAGS"
13045a31a186aSmrg  fi
13046a31a186aSmrg  ;;
130470bb88ba4Smrg*-*solaris*)
13048a31a186aSmrg  # Find out which ABI we are using.
13049a31a186aSmrg  echo 'int i;' > conftest.$ac_ext
130500bb88ba4Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13051a31a186aSmrg  (eval $ac_compile) 2>&5
13052a31a186aSmrg  ac_status=$?
130530bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
130540bb88ba4Smrg  test $ac_status = 0; }; then
13055a31a186aSmrg    case `/usr/bin/file conftest.o` in
13056a31a186aSmrg    *64-bit*)
13057a31a186aSmrg      case $lt_cv_prog_gnu_ld in
130580bb88ba4Smrg      yes*)
130590bb88ba4Smrg        case $host in
130600bb88ba4Smrg        i?86-*-solaris*)
130610bb88ba4Smrg          LD="${LD-ld} -m elf_x86_64"
130620bb88ba4Smrg          ;;
130630bb88ba4Smrg        sparc*-*-solaris*)
130640bb88ba4Smrg          LD="${LD-ld} -m elf64_sparc"
130650bb88ba4Smrg          ;;
130660bb88ba4Smrg        esac
130670bb88ba4Smrg        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
130680bb88ba4Smrg        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
130690bb88ba4Smrg          LD="${LD-ld}_sol2"
130700bb88ba4Smrg        fi
130710bb88ba4Smrg        ;;
13072a31a186aSmrg      *)
13073a31a186aSmrg	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13074a31a186aSmrg	  LD="${LD-ld} -64"
13075a31a186aSmrg	fi
13076a31a186aSmrg	;;
13077a31a186aSmrg      esac
13078643b027fSmrg      ;;
13079a31a186aSmrg    esac
13080a31a186aSmrg  fi
13081a31a186aSmrg  rm -rf conftest*
13082a31a186aSmrg  ;;
13083a31a186aSmrgesac
13084fe5e51b7Smrg
13085a31a186aSmrgneed_locks="$enable_libtool_lock"
13086fe5e51b7Smrg
130870bb88ba4Smrgif test -n "$ac_tool_prefix"; then
130880bb88ba4Smrg  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
130890bb88ba4Smrgset dummy ${ac_tool_prefix}mt; ac_word=$2
130900bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
130910bb88ba4Smrg$as_echo_n "checking for $ac_word... " >&6; }
130920bb88ba4Smrgif ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
130930bb88ba4Smrg  $as_echo_n "(cached) " >&6
130940bb88ba4Smrgelse
130950bb88ba4Smrg  if test -n "$MANIFEST_TOOL"; then
130960bb88ba4Smrg  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
130970bb88ba4Smrgelse
130980bb88ba4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130990bb88ba4Smrgfor as_dir in $PATH
131000bb88ba4Smrgdo
131010bb88ba4Smrg  IFS=$as_save_IFS
131020bb88ba4Smrg  test -z "$as_dir" && as_dir=.
131030bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13104acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
131050bb88ba4Smrg    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
131060bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
131070bb88ba4Smrg    break 2
131080bb88ba4Smrg  fi
131090bb88ba4Smrgdone
131100bb88ba4Smrg  done
131110bb88ba4SmrgIFS=$as_save_IFS
131120bb88ba4Smrg
131130bb88ba4Smrgfi
131140bb88ba4Smrgfi
131150bb88ba4SmrgMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
131160bb88ba4Smrgif test -n "$MANIFEST_TOOL"; then
131170bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
131180bb88ba4Smrg$as_echo "$MANIFEST_TOOL" >&6; }
131190bb88ba4Smrgelse
131200bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
131210bb88ba4Smrg$as_echo "no" >&6; }
131220bb88ba4Smrgfi
131230bb88ba4Smrg
131240bb88ba4Smrg
131250bb88ba4Smrgfi
131260bb88ba4Smrgif test -z "$ac_cv_prog_MANIFEST_TOOL"; then
131270bb88ba4Smrg  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
131280bb88ba4Smrg  # Extract the first word of "mt", so it can be a program name with args.
131290bb88ba4Smrgset dummy mt; ac_word=$2
131300bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
131310bb88ba4Smrg$as_echo_n "checking for $ac_word... " >&6; }
131320bb88ba4Smrgif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
131330bb88ba4Smrg  $as_echo_n "(cached) " >&6
131340bb88ba4Smrgelse
131350bb88ba4Smrg  if test -n "$ac_ct_MANIFEST_TOOL"; then
131360bb88ba4Smrg  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
131370bb88ba4Smrgelse
131380bb88ba4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131390bb88ba4Smrgfor as_dir in $PATH
131400bb88ba4Smrgdo
131410bb88ba4Smrg  IFS=$as_save_IFS
131420bb88ba4Smrg  test -z "$as_dir" && as_dir=.
131430bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13144acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
131450bb88ba4Smrg    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
131460bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
131470bb88ba4Smrg    break 2
131480bb88ba4Smrg  fi
131490bb88ba4Smrgdone
131500bb88ba4Smrg  done
131510bb88ba4SmrgIFS=$as_save_IFS
131520bb88ba4Smrg
131530bb88ba4Smrgfi
131540bb88ba4Smrgfi
131550bb88ba4Smrgac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
131560bb88ba4Smrgif test -n "$ac_ct_MANIFEST_TOOL"; then
131570bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
131580bb88ba4Smrg$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
131590bb88ba4Smrgelse
131600bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
131610bb88ba4Smrg$as_echo "no" >&6; }
131620bb88ba4Smrgfi
131630bb88ba4Smrg
131640bb88ba4Smrg  if test "x$ac_ct_MANIFEST_TOOL" = x; then
131650bb88ba4Smrg    MANIFEST_TOOL=":"
131660bb88ba4Smrg  else
131670bb88ba4Smrg    case $cross_compiling:$ac_tool_warned in
131680bb88ba4Smrgyes:)
131690bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
131700bb88ba4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
131710bb88ba4Smrgac_tool_warned=yes ;;
131720bb88ba4Smrgesac
131730bb88ba4Smrg    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
131740bb88ba4Smrg  fi
131750bb88ba4Smrgelse
131760bb88ba4Smrg  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
131770bb88ba4Smrgfi
131780bb88ba4Smrg
131790bb88ba4Smrgtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
131800bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
131810bb88ba4Smrg$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
131820bb88ba4Smrgif ${lt_cv_path_mainfest_tool+:} false; then :
131830bb88ba4Smrg  $as_echo_n "(cached) " >&6
131840bb88ba4Smrgelse
131850bb88ba4Smrg  lt_cv_path_mainfest_tool=no
131860bb88ba4Smrg  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
131870bb88ba4Smrg  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
131880bb88ba4Smrg  cat conftest.err >&5
131890bb88ba4Smrg  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
131900bb88ba4Smrg    lt_cv_path_mainfest_tool=yes
131910bb88ba4Smrg  fi
131920bb88ba4Smrg  rm -f conftest*
131930bb88ba4Smrgfi
131940bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
131950bb88ba4Smrg$as_echo "$lt_cv_path_mainfest_tool" >&6; }
131960bb88ba4Smrgif test "x$lt_cv_path_mainfest_tool" != xyes; then
131970bb88ba4Smrg  MANIFEST_TOOL=:
131980bb88ba4Smrgfi
131990bb88ba4Smrg
132000bb88ba4Smrg
132010bb88ba4Smrg
132020bb88ba4Smrg
132030bb88ba4Smrg
13204fe5e51b7Smrg
13205a31a186aSmrg  case $host_os in
13206a31a186aSmrg    rhapsody* | darwin*)
13207a31a186aSmrg    if test -n "$ac_tool_prefix"; then
13208a31a186aSmrg  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13209a31a186aSmrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
132100bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
132120bb88ba4Smrgif ${ac_cv_prog_DSYMUTIL+:} false; then :
13213a31a186aSmrg  $as_echo_n "(cached) " >&6
13214a31a186aSmrgelse
13215a31a186aSmrg  if test -n "$DSYMUTIL"; then
13216a31a186aSmrg  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13217a31a186aSmrgelse
13218a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219a31a186aSmrgfor as_dir in $PATH
13220a31a186aSmrgdo
13221a31a186aSmrg  IFS=$as_save_IFS
13222a31a186aSmrg  test -z "$as_dir" && as_dir=.
132230bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13224acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13225a31a186aSmrg    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
132260bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13227a31a186aSmrg    break 2
13228a31a186aSmrg  fi
13229a31a186aSmrgdone
132300bb88ba4Smrg  done
13231a31a186aSmrgIFS=$as_save_IFS
13232fe5e51b7Smrg
13233a31a186aSmrgfi
13234a31a186aSmrgfi
13235a31a186aSmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL
13236a31a186aSmrgif test -n "$DSYMUTIL"; then
132370bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13238a31a186aSmrg$as_echo "$DSYMUTIL" >&6; }
13239a31a186aSmrgelse
132400bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241a31a186aSmrg$as_echo "no" >&6; }
13242a31a186aSmrgfi
13243fe5e51b7Smrg
13244fe5e51b7Smrg
13245a31a186aSmrgfi
13246a31a186aSmrgif test -z "$ac_cv_prog_DSYMUTIL"; then
13247a31a186aSmrg  ac_ct_DSYMUTIL=$DSYMUTIL
13248a31a186aSmrg  # Extract the first word of "dsymutil", so it can be a program name with args.
13249a31a186aSmrgset dummy dsymutil; ac_word=$2
132500bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13251a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
132520bb88ba4Smrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13253a31a186aSmrg  $as_echo_n "(cached) " >&6
13254a31a186aSmrgelse
13255a31a186aSmrg  if test -n "$ac_ct_DSYMUTIL"; then
13256a31a186aSmrg  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13257a31a186aSmrgelse
13258a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259a31a186aSmrgfor as_dir in $PATH
13260a31a186aSmrgdo
13261a31a186aSmrg  IFS=$as_save_IFS
13262a31a186aSmrg  test -z "$as_dir" && as_dir=.
132630bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13264acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13265a31a186aSmrg    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
132660bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13267a31a186aSmrg    break 2
13268a31a186aSmrg  fi
13269a31a186aSmrgdone
132700bb88ba4Smrg  done
13271a31a186aSmrgIFS=$as_save_IFS
13272fe5e51b7Smrg
13273a31a186aSmrgfi
13274a31a186aSmrgfi
13275a31a186aSmrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13276a31a186aSmrgif test -n "$ac_ct_DSYMUTIL"; then
132770bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13278a31a186aSmrg$as_echo "$ac_ct_DSYMUTIL" >&6; }
13279a31a186aSmrgelse
132800bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281a31a186aSmrg$as_echo "no" >&6; }
13282a31a186aSmrgfi
13283fe5e51b7Smrg
13284a31a186aSmrg  if test "x$ac_ct_DSYMUTIL" = x; then
13285a31a186aSmrg    DSYMUTIL=":"
13286a31a186aSmrg  else
13287a31a186aSmrg    case $cross_compiling:$ac_tool_warned in
13288a31a186aSmrgyes:)
132890bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13290a31a186aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13291a31a186aSmrgac_tool_warned=yes ;;
13292a31a186aSmrgesac
13293a31a186aSmrg    DSYMUTIL=$ac_ct_DSYMUTIL
13294a31a186aSmrg  fi
13295a31a186aSmrgelse
13296a31a186aSmrg  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13297a31a186aSmrgfi
13298fe5e51b7Smrg
13299a31a186aSmrg    if test -n "$ac_tool_prefix"; then
13300a31a186aSmrg  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13301a31a186aSmrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2
133020bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
133040bb88ba4Smrgif ${ac_cv_prog_NMEDIT+:} false; then :
13305a31a186aSmrg  $as_echo_n "(cached) " >&6
13306a31a186aSmrgelse
13307a31a186aSmrg  if test -n "$NMEDIT"; then
13308a31a186aSmrg  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13309a31a186aSmrgelse
13310a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311a31a186aSmrgfor as_dir in $PATH
13312a31a186aSmrgdo
13313a31a186aSmrg  IFS=$as_save_IFS
13314a31a186aSmrg  test -z "$as_dir" && as_dir=.
133150bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13316acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13317a31a186aSmrg    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
133180bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13319a31a186aSmrg    break 2
13320a31a186aSmrg  fi
13321a31a186aSmrgdone
133220bb88ba4Smrg  done
13323a31a186aSmrgIFS=$as_save_IFS
13324fe5e51b7Smrg
13325a31a186aSmrgfi
13326a31a186aSmrgfi
13327a31a186aSmrgNMEDIT=$ac_cv_prog_NMEDIT
13328a31a186aSmrgif test -n "$NMEDIT"; then
133290bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13330a31a186aSmrg$as_echo "$NMEDIT" >&6; }
13331a31a186aSmrgelse
133320bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333a31a186aSmrg$as_echo "no" >&6; }
13334a31a186aSmrgfi
13335fe5e51b7Smrg
13336fe5e51b7Smrg
13337a31a186aSmrgfi
13338a31a186aSmrgif test -z "$ac_cv_prog_NMEDIT"; then
13339a31a186aSmrg  ac_ct_NMEDIT=$NMEDIT
13340a31a186aSmrg  # Extract the first word of "nmedit", so it can be a program name with args.
13341a31a186aSmrgset dummy nmedit; ac_word=$2
133420bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
133440bb88ba4Smrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13345a31a186aSmrg  $as_echo_n "(cached) " >&6
13346a31a186aSmrgelse
13347a31a186aSmrg  if test -n "$ac_ct_NMEDIT"; then
13348a31a186aSmrg  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13349a31a186aSmrgelse
13350a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351a31a186aSmrgfor as_dir in $PATH
13352a31a186aSmrgdo
13353a31a186aSmrg  IFS=$as_save_IFS
13354a31a186aSmrg  test -z "$as_dir" && as_dir=.
133550bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13356acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13357a31a186aSmrg    ac_cv_prog_ac_ct_NMEDIT="nmedit"
133580bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13359a31a186aSmrg    break 2
13360a31a186aSmrg  fi
13361a31a186aSmrgdone
133620bb88ba4Smrg  done
13363a31a186aSmrgIFS=$as_save_IFS
13364fe5e51b7Smrg
13365a31a186aSmrgfi
13366a31a186aSmrgfi
13367a31a186aSmrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13368a31a186aSmrgif test -n "$ac_ct_NMEDIT"; then
133690bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13370a31a186aSmrg$as_echo "$ac_ct_NMEDIT" >&6; }
13371a31a186aSmrgelse
133720bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373a31a186aSmrg$as_echo "no" >&6; }
13374a31a186aSmrgfi
13375fe5e51b7Smrg
13376a31a186aSmrg  if test "x$ac_ct_NMEDIT" = x; then
13377a31a186aSmrg    NMEDIT=":"
13378643b027fSmrg  else
13379a31a186aSmrg    case $cross_compiling:$ac_tool_warned in
13380a31a186aSmrgyes:)
133810bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13382a31a186aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13383a31a186aSmrgac_tool_warned=yes ;;
13384a31a186aSmrgesac
13385a31a186aSmrg    NMEDIT=$ac_ct_NMEDIT
13386a31a186aSmrg  fi
13387a31a186aSmrgelse
13388a31a186aSmrg  NMEDIT="$ac_cv_prog_NMEDIT"
13389a31a186aSmrgfi
13390fe5e51b7Smrg
13391a31a186aSmrg    if test -n "$ac_tool_prefix"; then
13392a31a186aSmrg  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13393a31a186aSmrgset dummy ${ac_tool_prefix}lipo; ac_word=$2
133940bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13395a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
133960bb88ba4Smrgif ${ac_cv_prog_LIPO+:} false; then :
13397a31a186aSmrg  $as_echo_n "(cached) " >&6
13398a31a186aSmrgelse
13399a31a186aSmrg  if test -n "$LIPO"; then
13400a31a186aSmrg  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13401a31a186aSmrgelse
13402a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403a31a186aSmrgfor as_dir in $PATH
13404a31a186aSmrgdo
13405a31a186aSmrg  IFS=$as_save_IFS
13406a31a186aSmrg  test -z "$as_dir" && as_dir=.
134070bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13408acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13409a31a186aSmrg    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
134100bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13411a31a186aSmrg    break 2
13412a31a186aSmrg  fi
13413a31a186aSmrgdone
134140bb88ba4Smrg  done
13415a31a186aSmrgIFS=$as_save_IFS
13416fe5e51b7Smrg
13417a31a186aSmrgfi
13418a31a186aSmrgfi
13419a31a186aSmrgLIPO=$ac_cv_prog_LIPO
13420a31a186aSmrgif test -n "$LIPO"; then
134210bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13422a31a186aSmrg$as_echo "$LIPO" >&6; }
13423a31a186aSmrgelse
134240bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425a31a186aSmrg$as_echo "no" >&6; }
13426a31a186aSmrgfi
13427fe5e51b7Smrg
13428fe5e51b7Smrg
13429a31a186aSmrgfi
13430a31a186aSmrgif test -z "$ac_cv_prog_LIPO"; then
13431a31a186aSmrg  ac_ct_LIPO=$LIPO
13432a31a186aSmrg  # Extract the first word of "lipo", so it can be a program name with args.
13433a31a186aSmrgset dummy lipo; ac_word=$2
134340bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13435a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
134360bb88ba4Smrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13437a31a186aSmrg  $as_echo_n "(cached) " >&6
13438a31a186aSmrgelse
13439a31a186aSmrg  if test -n "$ac_ct_LIPO"; then
13440a31a186aSmrg  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13441a31a186aSmrgelse
13442a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443a31a186aSmrgfor as_dir in $PATH
13444a31a186aSmrgdo
13445a31a186aSmrg  IFS=$as_save_IFS
13446a31a186aSmrg  test -z "$as_dir" && as_dir=.
134470bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13448acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13449a31a186aSmrg    ac_cv_prog_ac_ct_LIPO="lipo"
134500bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13451a31a186aSmrg    break 2
13452a31a186aSmrg  fi
13453a31a186aSmrgdone
134540bb88ba4Smrg  done
13455a31a186aSmrgIFS=$as_save_IFS
13456fe5e51b7Smrg
13457a31a186aSmrgfi
13458a31a186aSmrgfi
13459a31a186aSmrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13460a31a186aSmrgif test -n "$ac_ct_LIPO"; then
134610bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13462a31a186aSmrg$as_echo "$ac_ct_LIPO" >&6; }
13463a31a186aSmrgelse
134640bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465a31a186aSmrg$as_echo "no" >&6; }
13466a31a186aSmrgfi
13467fe5e51b7Smrg
13468a31a186aSmrg  if test "x$ac_ct_LIPO" = x; then
13469a31a186aSmrg    LIPO=":"
13470a31a186aSmrg  else
13471a31a186aSmrg    case $cross_compiling:$ac_tool_warned in
13472a31a186aSmrgyes:)
134730bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13474a31a186aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13475a31a186aSmrgac_tool_warned=yes ;;
13476643b027fSmrgesac
13477a31a186aSmrg    LIPO=$ac_ct_LIPO
13478a31a186aSmrg  fi
13479eda3803bSmrgelse
13480a31a186aSmrg  LIPO="$ac_cv_prog_LIPO"
13481a31a186aSmrgfi
13482fe5e51b7Smrg
13483a31a186aSmrg    if test -n "$ac_tool_prefix"; then
13484a31a186aSmrg  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13485a31a186aSmrgset dummy ${ac_tool_prefix}otool; ac_word=$2
134860bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13487a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
134880bb88ba4Smrgif ${ac_cv_prog_OTOOL+:} false; then :
13489a31a186aSmrg  $as_echo_n "(cached) " >&6
13490a31a186aSmrgelse
13491a31a186aSmrg  if test -n "$OTOOL"; then
13492a31a186aSmrg  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13493a31a186aSmrgelse
13494a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495a31a186aSmrgfor as_dir in $PATH
13496a31a186aSmrgdo
13497a31a186aSmrg  IFS=$as_save_IFS
13498a31a186aSmrg  test -z "$as_dir" && as_dir=.
134990bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13500acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13501a31a186aSmrg    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
135020bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13503a31a186aSmrg    break 2
13504a31a186aSmrg  fi
13505a31a186aSmrgdone
135060bb88ba4Smrg  done
13507a31a186aSmrgIFS=$as_save_IFS
13508fe5e51b7Smrg
13509643b027fSmrgfi
13510a31a186aSmrgfi
13511a31a186aSmrgOTOOL=$ac_cv_prog_OTOOL
13512a31a186aSmrgif test -n "$OTOOL"; then
135130bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13514a31a186aSmrg$as_echo "$OTOOL" >&6; }
13515a31a186aSmrgelse
135160bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517a31a186aSmrg$as_echo "no" >&6; }
13518a31a186aSmrgfi
13519fe5e51b7Smrg
13520a31a186aSmrg
13521a31a186aSmrgfi
13522a31a186aSmrgif test -z "$ac_cv_prog_OTOOL"; then
13523a31a186aSmrg  ac_ct_OTOOL=$OTOOL
13524a31a186aSmrg  # Extract the first word of "otool", so it can be a program name with args.
13525a31a186aSmrgset dummy otool; ac_word=$2
135260bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
135280bb88ba4Smrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13529a31a186aSmrg  $as_echo_n "(cached) " >&6
13530a31a186aSmrgelse
13531a31a186aSmrg  if test -n "$ac_ct_OTOOL"; then
13532a31a186aSmrg  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13533a31a186aSmrgelse
13534a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535a31a186aSmrgfor as_dir in $PATH
13536a31a186aSmrgdo
13537a31a186aSmrg  IFS=$as_save_IFS
13538a31a186aSmrg  test -z "$as_dir" && as_dir=.
135390bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13540acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13541a31a186aSmrg    ac_cv_prog_ac_ct_OTOOL="otool"
135420bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543a31a186aSmrg    break 2
13544a31a186aSmrg  fi
13545a31a186aSmrgdone
135460bb88ba4Smrg  done
13547a31a186aSmrgIFS=$as_save_IFS
13548a31a186aSmrg
13549a31a186aSmrgfi
13550a31a186aSmrgfi
13551a31a186aSmrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13552a31a186aSmrgif test -n "$ac_ct_OTOOL"; then
135530bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13554a31a186aSmrg$as_echo "$ac_ct_OTOOL" >&6; }
13555a31a186aSmrgelse
135560bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557a31a186aSmrg$as_echo "no" >&6; }
13558a31a186aSmrgfi
13559a31a186aSmrg
13560a31a186aSmrg  if test "x$ac_ct_OTOOL" = x; then
13561a31a186aSmrg    OTOOL=":"
13562a31a186aSmrg  else
13563a31a186aSmrg    case $cross_compiling:$ac_tool_warned in
13564a31a186aSmrgyes:)
135650bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13566a31a186aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13567a31a186aSmrgac_tool_warned=yes ;;
13568a31a186aSmrgesac
13569a31a186aSmrg    OTOOL=$ac_ct_OTOOL
13570a31a186aSmrg  fi
13571a31a186aSmrgelse
13572a31a186aSmrg  OTOOL="$ac_cv_prog_OTOOL"
13573a31a186aSmrgfi
13574a31a186aSmrg
13575a31a186aSmrg    if test -n "$ac_tool_prefix"; then
13576a31a186aSmrg  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13577a31a186aSmrgset dummy ${ac_tool_prefix}otool64; ac_word=$2
135780bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
135800bb88ba4Smrgif ${ac_cv_prog_OTOOL64+:} false; then :
13581a31a186aSmrg  $as_echo_n "(cached) " >&6
13582a31a186aSmrgelse
13583a31a186aSmrg  if test -n "$OTOOL64"; then
13584a31a186aSmrg  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13585a31a186aSmrgelse
13586a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13587a31a186aSmrgfor as_dir in $PATH
13588a31a186aSmrgdo
13589a31a186aSmrg  IFS=$as_save_IFS
13590a31a186aSmrg  test -z "$as_dir" && as_dir=.
135910bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13592acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13593a31a186aSmrg    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
135940bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13595a31a186aSmrg    break 2
13596a31a186aSmrg  fi
13597a31a186aSmrgdone
135980bb88ba4Smrg  done
13599a31a186aSmrgIFS=$as_save_IFS
13600a31a186aSmrg
13601a31a186aSmrgfi
13602a31a186aSmrgfi
13603a31a186aSmrgOTOOL64=$ac_cv_prog_OTOOL64
13604a31a186aSmrgif test -n "$OTOOL64"; then
136050bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13606a31a186aSmrg$as_echo "$OTOOL64" >&6; }
13607a31a186aSmrgelse
136080bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609a31a186aSmrg$as_echo "no" >&6; }
13610a31a186aSmrgfi
13611a31a186aSmrg
13612a31a186aSmrg
13613a31a186aSmrgfi
13614a31a186aSmrgif test -z "$ac_cv_prog_OTOOL64"; then
13615a31a186aSmrg  ac_ct_OTOOL64=$OTOOL64
13616a31a186aSmrg  # Extract the first word of "otool64", so it can be a program name with args.
13617a31a186aSmrgset dummy otool64; ac_word=$2
136180bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619a31a186aSmrg$as_echo_n "checking for $ac_word... " >&6; }
136200bb88ba4Smrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13621a31a186aSmrg  $as_echo_n "(cached) " >&6
13622a31a186aSmrgelse
13623a31a186aSmrg  if test -n "$ac_ct_OTOOL64"; then
13624a31a186aSmrg  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13625a31a186aSmrgelse
13626a31a186aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627a31a186aSmrgfor as_dir in $PATH
13628a31a186aSmrgdo
13629a31a186aSmrg  IFS=$as_save_IFS
13630a31a186aSmrg  test -z "$as_dir" && as_dir=.
136310bb88ba4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13632acd6767fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13633a31a186aSmrg    ac_cv_prog_ac_ct_OTOOL64="otool64"
136340bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13635a31a186aSmrg    break 2
13636a31a186aSmrg  fi
13637a31a186aSmrgdone
136380bb88ba4Smrg  done
13639a31a186aSmrgIFS=$as_save_IFS
13640a31a186aSmrg
13641a31a186aSmrgfi
13642a31a186aSmrgfi
13643a31a186aSmrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13644a31a186aSmrgif test -n "$ac_ct_OTOOL64"; then
136450bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13646a31a186aSmrg$as_echo "$ac_ct_OTOOL64" >&6; }
13647a31a186aSmrgelse
136480bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649a31a186aSmrg$as_echo "no" >&6; }
13650a31a186aSmrgfi
13651a31a186aSmrg
13652a31a186aSmrg  if test "x$ac_ct_OTOOL64" = x; then
13653a31a186aSmrg    OTOOL64=":"
13654a31a186aSmrg  else
13655a31a186aSmrg    case $cross_compiling:$ac_tool_warned in
13656a31a186aSmrgyes:)
136570bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13658a31a186aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13659a31a186aSmrgac_tool_warned=yes ;;
13660a31a186aSmrgesac
13661a31a186aSmrg    OTOOL64=$ac_ct_OTOOL64
13662a31a186aSmrg  fi
13663a31a186aSmrgelse
13664a31a186aSmrg  OTOOL64="$ac_cv_prog_OTOOL64"
13665a31a186aSmrgfi
13666a31a186aSmrg
13667a31a186aSmrg
13668a31a186aSmrg
13669a31a186aSmrg
13670a31a186aSmrg
13671a31a186aSmrg
13672a31a186aSmrg
13673a31a186aSmrg
13674a31a186aSmrg
13675a31a186aSmrg
13676a31a186aSmrg
13677a31a186aSmrg
13678a31a186aSmrg
13679a31a186aSmrg
13680a31a186aSmrg
13681a31a186aSmrg
13682a31a186aSmrg
13683a31a186aSmrg
13684a31a186aSmrg
13685a31a186aSmrg
13686a31a186aSmrg
13687a31a186aSmrg
13688a31a186aSmrg
13689a31a186aSmrg
13690a31a186aSmrg
13691a31a186aSmrg
13692a31a186aSmrg
136930bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13694a31a186aSmrg$as_echo_n "checking for -single_module linker flag... " >&6; }
136950bb88ba4Smrgif ${lt_cv_apple_cc_single_mod+:} false; then :
13696a31a186aSmrg  $as_echo_n "(cached) " >&6
13697a31a186aSmrgelse
13698a31a186aSmrg  lt_cv_apple_cc_single_mod=no
13699a31a186aSmrg      if test -z "${LT_MULTI_MODULE}"; then
13700a31a186aSmrg	# By default we will add the -single_module flag. You can override
13701a31a186aSmrg	# by either setting the environment variable LT_MULTI_MODULE
13702a31a186aSmrg	# non-empty at configure time, or by adding -multi_module to the
13703a31a186aSmrg	# link flags.
13704a31a186aSmrg	rm -rf libconftest.dylib*
13705a31a186aSmrg	echo "int foo(void){return 1;}" > conftest.c
13706a31a186aSmrg	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13707a31a186aSmrg-dynamiclib -Wl,-single_module conftest.c" >&5
13708a31a186aSmrg	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13709a31a186aSmrg	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13710a31a186aSmrg        _lt_result=$?
137110bb88ba4Smrg	# If there is a non-empty error log, and "single_module"
137120bb88ba4Smrg	# appears in it, assume the flag caused a linker warning
137130bb88ba4Smrg        if test -s conftest.err && $GREP single_module conftest.err; then
137140bb88ba4Smrg	  cat conftest.err >&5
137150bb88ba4Smrg	# Otherwise, if the output was created with a 0 exit code from
137160bb88ba4Smrg	# the compiler, it worked.
137170bb88ba4Smrg	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13718a31a186aSmrg	  lt_cv_apple_cc_single_mod=yes
13719a31a186aSmrg	else
13720a31a186aSmrg	  cat conftest.err >&5
13721a31a186aSmrg	fi
13722a31a186aSmrg	rm -rf libconftest.dylib*
13723a31a186aSmrg	rm -f conftest.*
13724a31a186aSmrg      fi
13725a31a186aSmrgfi
137260bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13727a31a186aSmrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
137280bb88ba4Smrg
137290bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13730a31a186aSmrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
137310bb88ba4Smrgif ${lt_cv_ld_exported_symbols_list+:} false; then :
13732a31a186aSmrg  $as_echo_n "(cached) " >&6
13733a31a186aSmrgelse
13734a31a186aSmrg  lt_cv_ld_exported_symbols_list=no
13735a31a186aSmrg      save_LDFLAGS=$LDFLAGS
13736a31a186aSmrg      echo "_main" > conftest.sym
13737a31a186aSmrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
137380bb88ba4Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739a31a186aSmrg/* end confdefs.h.  */
13740fe5e51b7Smrg
13741643b027fSmrgint
13742643b027fSmrgmain ()
13743643b027fSmrg{
13744fe5e51b7Smrg
13745643b027fSmrg  ;
13746643b027fSmrg  return 0;
13747643b027fSmrg}
13748643b027fSmrg_ACEOF
137490bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
13750a31a186aSmrg  lt_cv_ld_exported_symbols_list=yes
13751643b027fSmrgelse
137520bb88ba4Smrg  lt_cv_ld_exported_symbols_list=no
13753643b027fSmrgfi
137540bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
137550bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
13756a31a186aSmrg	LDFLAGS="$save_LDFLAGS"
13757fe5e51b7Smrg
13758a31a186aSmrgfi
137590bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13760a31a186aSmrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
137610bb88ba4Smrg
137620bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
137630bb88ba4Smrg$as_echo_n "checking for -force_load linker flag... " >&6; }
137640bb88ba4Smrgif ${lt_cv_ld_force_load+:} false; then :
137650bb88ba4Smrg  $as_echo_n "(cached) " >&6
137660bb88ba4Smrgelse
137670bb88ba4Smrg  lt_cv_ld_force_load=no
137680bb88ba4Smrg      cat > conftest.c << _LT_EOF
137690bb88ba4Smrgint forced_loaded() { return 2;}
137700bb88ba4Smrg_LT_EOF
137710bb88ba4Smrg      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
137720bb88ba4Smrg      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
137730bb88ba4Smrg      echo "$AR cru libconftest.a conftest.o" >&5
137740bb88ba4Smrg      $AR cru libconftest.a conftest.o 2>&5
137750bb88ba4Smrg      echo "$RANLIB libconftest.a" >&5
137760bb88ba4Smrg      $RANLIB libconftest.a 2>&5
137770bb88ba4Smrg      cat > conftest.c << _LT_EOF
137780bb88ba4Smrgint main() { return 0;}
137790bb88ba4Smrg_LT_EOF
137800bb88ba4Smrg      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
137810bb88ba4Smrg      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
137820bb88ba4Smrg      _lt_result=$?
137830bb88ba4Smrg      if test -s conftest.err && $GREP force_load conftest.err; then
137840bb88ba4Smrg	cat conftest.err >&5
137850bb88ba4Smrg      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
137860bb88ba4Smrg	lt_cv_ld_force_load=yes
137870bb88ba4Smrg      else
137880bb88ba4Smrg	cat conftest.err >&5
137890bb88ba4Smrg      fi
137900bb88ba4Smrg        rm -f conftest.err libconftest.a conftest conftest.c
137910bb88ba4Smrg        rm -rf conftest.dSYM
137920bb88ba4Smrg
137930bb88ba4Smrgfi
137940bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
137950bb88ba4Smrg$as_echo "$lt_cv_ld_force_load" >&6; }
13796a31a186aSmrg    case $host_os in
13797a31a186aSmrg    rhapsody* | darwin1.[012])
13798a31a186aSmrg      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13799a31a186aSmrg    darwin1.*)
13800a31a186aSmrg      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13801a31a186aSmrg    darwin*) # darwin 5.x on
13802a31a186aSmrg      # if running on 10.5 or later, the deployment target defaults
13803a31a186aSmrg      # to the OS version, if on x86, and 10.4, the deployment
13804a31a186aSmrg      # target defaults to 10.4. Don't you love it?
13805a31a186aSmrg      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13806a31a186aSmrg	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13807a31a186aSmrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13808a31a186aSmrg	10.[012]*)
13809a31a186aSmrg	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13810a31a186aSmrg	10.*)
13811a31a186aSmrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13812643b027fSmrg      esac
13813a31a186aSmrg    ;;
13814a31a186aSmrg  esac
13815a31a186aSmrg    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13816a31a186aSmrg      _lt_dar_single_mod='$single_module'
13817a31a186aSmrg    fi
13818a31a186aSmrg    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13819a31a186aSmrg      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13820643b027fSmrg    else
13821a31a186aSmrg      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13822643b027fSmrg    fi
138230bb88ba4Smrg    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13824a31a186aSmrg      _lt_dsymutil='~$DSYMUTIL $lib || :'
13825a31a186aSmrg    else
13826a31a186aSmrg      _lt_dsymutil=
13827a31a186aSmrg    fi
13828a31a186aSmrg    ;;
13829a31a186aSmrg  esac
13830fe5e51b7Smrg
13831a31a186aSmrgfor ac_header in dlfcn.h
138320bb88ba4Smrgdo :
138330bb88ba4Smrg  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
138340bb88ba4Smrg"
138350bb88ba4Smrgif test "x$ac_cv_header_dlfcn_h" = xyes; then :
13836a31a186aSmrg  cat >>confdefs.h <<_ACEOF
138370bb88ba4Smrg#define HAVE_DLFCN_H 1
13838a31a186aSmrg_ACEOF
13839fe5e51b7Smrg
13840a31a186aSmrgfi
13841fe5e51b7Smrg
13842a31a186aSmrgdone
13843fe5e51b7Smrg
13844fe5e51b7Smrg
13845fe5e51b7Smrg
138460bb88ba4Smrg
138470bb88ba4Smrg
13848a31a186aSmrg# Set options
13849fe5e51b7Smrg
13850fe5e51b7Smrg
13851fe5e51b7Smrg
13852a31a186aSmrg        enable_dlopen=no
13853fe5e51b7Smrg
13854fe5e51b7Smrg
13855a31a186aSmrg  enable_win32_dll=no
13856fe5e51b7Smrg
13857fe5e51b7Smrg
13858a31a186aSmrg            # Check whether --enable-shared was given.
138590bb88ba4Smrgif test "${enable_shared+set}" = set; then :
13860a31a186aSmrg  enableval=$enable_shared; p=${PACKAGE-default}
13861a31a186aSmrg    case $enableval in
13862a31a186aSmrg    yes) enable_shared=yes ;;
13863a31a186aSmrg    no) enable_shared=no ;;
13864a31a186aSmrg    *)
13865a31a186aSmrg      enable_shared=no
13866a31a186aSmrg      # Look at the argument we got.  We use all the common list separators.
13867a31a186aSmrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13868a31a186aSmrg      for pkg in $enableval; do
13869a31a186aSmrg	IFS="$lt_save_ifs"
13870a31a186aSmrg	if test "X$pkg" = "X$p"; then
13871a31a186aSmrg	  enable_shared=yes
13872a31a186aSmrg	fi
13873a31a186aSmrg      done
13874a31a186aSmrg      IFS="$lt_save_ifs"
13875643b027fSmrg      ;;
13876a31a186aSmrg    esac
13877a31a186aSmrgelse
13878a31a186aSmrg  enable_shared=yes
13879a31a186aSmrgfi
13880fe5e51b7Smrg
13881fe5e51b7Smrg
13882fe5e51b7Smrg
13883fe5e51b7Smrg
13884fe5e51b7Smrg
13885fe5e51b7Smrg
13886fe5e51b7Smrg
13887fe5e51b7Smrg
13888eda3803bSmrg
13889fe5e51b7Smrg
13890fe5e51b7Smrg
13891a31a186aSmrg# Check whether --with-pic was given.
138920bb88ba4Smrgif test "${with_pic+set}" = set; then :
138930bb88ba4Smrg  withval=$with_pic; lt_p=${PACKAGE-default}
138940bb88ba4Smrg    case $withval in
138950bb88ba4Smrg    yes|no) pic_mode=$withval ;;
138960bb88ba4Smrg    *)
138970bb88ba4Smrg      pic_mode=default
138980bb88ba4Smrg      # Look at the argument we got.  We use all the common list separators.
138990bb88ba4Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
139000bb88ba4Smrg      for lt_pkg in $withval; do
139010bb88ba4Smrg	IFS="$lt_save_ifs"
139020bb88ba4Smrg	if test "X$lt_pkg" = "X$lt_p"; then
139030bb88ba4Smrg	  pic_mode=yes
139040bb88ba4Smrg	fi
139050bb88ba4Smrg      done
139060bb88ba4Smrg      IFS="$lt_save_ifs"
139070bb88ba4Smrg      ;;
139080bb88ba4Smrg    esac
13909a31a186aSmrgelse
13910a31a186aSmrg  pic_mode=default
13911a31a186aSmrgfi
13912fe5e51b7Smrg
13913fe5e51b7Smrg
13914a31a186aSmrgtest -z "$pic_mode" && pic_mode=default
13915fe5e51b7Smrg
13916eda3803bSmrg
13917fe5e51b7Smrg
13918fe5e51b7Smrg
13919fe5e51b7Smrg
13920eda3803bSmrg
13921a31a186aSmrg
13922a31a186aSmrg  # Check whether --enable-fast-install was given.
139230bb88ba4Smrgif test "${enable_fast_install+set}" = set; then :
13924a31a186aSmrg  enableval=$enable_fast_install; p=${PACKAGE-default}
13925a31a186aSmrg    case $enableval in
13926a31a186aSmrg    yes) enable_fast_install=yes ;;
13927a31a186aSmrg    no) enable_fast_install=no ;;
13928a31a186aSmrg    *)
13929a31a186aSmrg      enable_fast_install=no
13930a31a186aSmrg      # Look at the argument we got.  We use all the common list separators.
13931a31a186aSmrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13932a31a186aSmrg      for pkg in $enableval; do
13933a31a186aSmrg	IFS="$lt_save_ifs"
13934a31a186aSmrg	if test "X$pkg" = "X$p"; then
13935a31a186aSmrg	  enable_fast_install=yes
13936a31a186aSmrg	fi
13937a31a186aSmrg      done
13938a31a186aSmrg      IFS="$lt_save_ifs"
13939fe5e51b7Smrg      ;;
13940fe5e51b7Smrg    esac
13941643b027fSmrgelse
13942a31a186aSmrg  enable_fast_install=yes
13943643b027fSmrgfi
13944fe5e51b7Smrg
13945fe5e51b7Smrg
13946fe5e51b7Smrg
13947eda3803bSmrg
13948eda3803bSmrg
13949fe5e51b7Smrg
13950fe5e51b7Smrg
13951fe5e51b7Smrg
13952fe5e51b7Smrg
13953fe5e51b7Smrg
13954643b027fSmrg
13955a31a186aSmrg# This can be used to rebuild libtool when needed
13956a31a186aSmrgLIBTOOL_DEPS="$ltmain"
13957eda3803bSmrg
13958a31a186aSmrg# Always use our own libtool.
13959a31a186aSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
13960eda3803bSmrg
13961eda3803bSmrg
13962eda3803bSmrg
13963eda3803bSmrg
13964fe5e51b7Smrg
13965fe5e51b7Smrg
13966fe5e51b7Smrg
13967fe5e51b7Smrg
13968eda3803bSmrg
13969eda3803bSmrg
13970eda3803bSmrg
13971eda3803bSmrg
13972eda3803bSmrg
13973fe5e51b7Smrg
13974eda3803bSmrg
13975eda3803bSmrg
13976643b027fSmrg
13977643b027fSmrg
13978643b027fSmrg
139790bb88ba4Smrg
139800bb88ba4Smrg
139810bb88ba4Smrg
139820bb88ba4Smrg
139830bb88ba4Smrg
13984eda3803bSmrg
13985643b027fSmrg
13986eda3803bSmrg
13987eda3803bSmrg
13988eda3803bSmrg
13989eda3803bSmrg
13990a31a186aSmrgtest -z "$LN_S" && LN_S="ln -s"
13991eda3803bSmrg
13992eda3803bSmrg
13993a31a186aSmrg
13994a31a186aSmrg
13995a31a186aSmrg
13996a31a186aSmrg
13997a31a186aSmrg
13998a31a186aSmrg
13999a31a186aSmrg
14000a31a186aSmrg
14001a31a186aSmrg
14002a31a186aSmrg
14003a31a186aSmrg
14004a31a186aSmrg
14005a31a186aSmrgif test -n "${ZSH_VERSION+set}" ; then
14006a31a186aSmrg   setopt NO_GLOB_SUBST
14007643b027fSmrgfi
14008eda3803bSmrg
140090bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14010a31a186aSmrg$as_echo_n "checking for objdir... " >&6; }
140110bb88ba4Smrgif ${lt_cv_objdir+:} false; then :
14012643b027fSmrg  $as_echo_n "(cached) " >&6
14013643b027fSmrgelse
14014a31a186aSmrg  rm -f .libs 2>/dev/null
14015a31a186aSmrgmkdir .libs 2>/dev/null
14016a31a186aSmrgif test -d .libs; then
14017a31a186aSmrg  lt_cv_objdir=.libs
14018a31a186aSmrgelse
14019a31a186aSmrg  # MS-DOS does not allow filenames that begin with a dot.
14020a31a186aSmrg  lt_cv_objdir=_libs
14021643b027fSmrgfi
14022a31a186aSmrgrmdir .libs 2>/dev/null
14023a31a186aSmrgfi
140240bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14025a31a186aSmrg$as_echo "$lt_cv_objdir" >&6; }
14026a31a186aSmrgobjdir=$lt_cv_objdir
14027643b027fSmrg
14028fe5e51b7Smrg
14029643b027fSmrg
14030643b027fSmrg
14031eda3803bSmrg
14032a31a186aSmrgcat >>confdefs.h <<_ACEOF
14033a31a186aSmrg#define LT_OBJDIR "$lt_cv_objdir/"
14034a31a186aSmrg_ACEOF
14035fe5e51b7Smrg
14036fe5e51b7Smrg
14037fe5e51b7Smrg
14038eda3803bSmrg
14039a31a186aSmrgcase $host_os in
14040a31a186aSmrgaix3*)
14041a31a186aSmrg  # AIX sometimes has problems with the GCC collect2 program.  For some
14042a31a186aSmrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
14043a31a186aSmrg  # vanish in a puff of smoke.
14044a31a186aSmrg  if test "X${COLLECT_NAMES+set}" != Xset; then
14045a31a186aSmrg    COLLECT_NAMES=
14046a31a186aSmrg    export COLLECT_NAMES
14047a31a186aSmrg  fi
14048a31a186aSmrg  ;;
14049643b027fSmrgesac
14050fe5e51b7Smrg
14051a31a186aSmrg# Global variables:
14052a31a186aSmrgofile=libtool
14053a31a186aSmrgcan_build_shared=yes
14054fe5e51b7Smrg
14055a31a186aSmrg# All known linkers require a `.a' archive for static linking (except MSVC,
14056a31a186aSmrg# which needs '.lib').
14057a31a186aSmrglibext=a
14058fe5e51b7Smrg
14059a31a186aSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld"
14060fe5e51b7Smrg
14061a31a186aSmrgold_CC="$CC"
14062a31a186aSmrgold_CFLAGS="$CFLAGS"
14063fe5e51b7Smrg
14064a31a186aSmrg# Set sane defaults for various variables
14065a31a186aSmrgtest -z "$CC" && CC=cc
14066a31a186aSmrgtest -z "$LTCC" && LTCC=$CC
14067a31a186aSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14068a31a186aSmrgtest -z "$LD" && LD=ld
14069a31a186aSmrgtest -z "$ac_objext" && ac_objext=o
14070fe5e51b7Smrg
14071a31a186aSmrgfor cc_temp in $compiler""; do
14072a31a186aSmrg  case $cc_temp in
14073a31a186aSmrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14074a31a186aSmrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14075a31a186aSmrg    \-*) ;;
14076a31a186aSmrg    *) break;;
14077a31a186aSmrg  esac
14078a31a186aSmrgdone
140790bb88ba4Smrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14080fe5e51b7Smrg
14081a31a186aSmrg
14082a31a186aSmrg# Only perform the check for file, if the check method requires it
14083a31a186aSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
14084a31a186aSmrgcase $deplibs_check_method in
14085a31a186aSmrgfile_magic*)
14086a31a186aSmrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
140870bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14088a31a186aSmrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
140890bb88ba4Smrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
14090643b027fSmrg  $as_echo_n "(cached) " >&6
14091643b027fSmrgelse
14092a31a186aSmrg  case $MAGIC_CMD in
14093a31a186aSmrg[\\/*] |  ?:[\\/]*)
14094a31a186aSmrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14095a31a186aSmrg  ;;
14096a31a186aSmrg*)
14097a31a186aSmrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
14098a31a186aSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14099a31a186aSmrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14100a31a186aSmrg  for ac_dir in $ac_dummy; do
14101a31a186aSmrg    IFS="$lt_save_ifs"
14102a31a186aSmrg    test -z "$ac_dir" && ac_dir=.
14103a31a186aSmrg    if test -f $ac_dir/${ac_tool_prefix}file; then
14104a31a186aSmrg      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14105a31a186aSmrg      if test -n "$file_magic_test_file"; then
14106a31a186aSmrg	case $deplibs_check_method in
14107a31a186aSmrg	"file_magic "*)
14108a31a186aSmrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14109a31a186aSmrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14110a31a186aSmrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14111a31a186aSmrg	    $EGREP "$file_magic_regex" > /dev/null; then
14112a31a186aSmrg	    :
14113a31a186aSmrg	  else
14114a31a186aSmrg	    cat <<_LT_EOF 1>&2
14115fe5e51b7Smrg
14116a31a186aSmrg*** Warning: the command libtool uses to detect shared libraries,
14117a31a186aSmrg*** $file_magic_cmd, produces output that libtool cannot recognize.
14118a31a186aSmrg*** The result is that libtool may fail to recognize shared libraries
14119a31a186aSmrg*** as such.  This will affect the creation of libtool libraries that
14120a31a186aSmrg*** depend on shared libraries, but programs linked with such libtool
14121a31a186aSmrg*** libraries will work regardless of this problem.  Nevertheless, you
14122a31a186aSmrg*** may want to report the problem to your system manager and/or to
14123a31a186aSmrg*** bug-libtool@gnu.org
14124fe5e51b7Smrg
14125a31a186aSmrg_LT_EOF
14126a31a186aSmrg	  fi ;;
14127a31a186aSmrg	esac
14128a31a186aSmrg      fi
14129a31a186aSmrg      break
14130a31a186aSmrg    fi
14131a31a186aSmrg  done
14132a31a186aSmrg  IFS="$lt_save_ifs"
14133a31a186aSmrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
14134a31a186aSmrg  ;;
14135a31a186aSmrgesac
14136fe5e51b7Smrgfi
14137fe5e51b7Smrg
14138a31a186aSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14139a31a186aSmrgif test -n "$MAGIC_CMD"; then
141400bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14141a31a186aSmrg$as_echo "$MAGIC_CMD" >&6; }
14142643b027fSmrgelse
141430bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14144a31a186aSmrg$as_echo "no" >&6; }
14145a31a186aSmrgfi
14146fe5e51b7Smrg
14147eda3803bSmrg
14148eda3803bSmrg
14149a31a186aSmrg
14150a31a186aSmrg
14151a31a186aSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then
14152a31a186aSmrg  if test -n "$ac_tool_prefix"; then
141530bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14154a31a186aSmrg$as_echo_n "checking for file... " >&6; }
141550bb88ba4Smrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
14156643b027fSmrg  $as_echo_n "(cached) " >&6
14157643b027fSmrgelse
14158a31a186aSmrg  case $MAGIC_CMD in
14159a31a186aSmrg[\\/*] |  ?:[\\/]*)
14160a31a186aSmrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14161a31a186aSmrg  ;;
14162a31a186aSmrg*)
14163a31a186aSmrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
14164a31a186aSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14165a31a186aSmrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14166a31a186aSmrg  for ac_dir in $ac_dummy; do
14167a31a186aSmrg    IFS="$lt_save_ifs"
14168a31a186aSmrg    test -z "$ac_dir" && ac_dir=.
14169a31a186aSmrg    if test -f $ac_dir/file; then
14170a31a186aSmrg      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14171a31a186aSmrg      if test -n "$file_magic_test_file"; then
14172a31a186aSmrg	case $deplibs_check_method in
14173a31a186aSmrg	"file_magic "*)
14174a31a186aSmrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14175a31a186aSmrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14176a31a186aSmrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14177a31a186aSmrg	    $EGREP "$file_magic_regex" > /dev/null; then
14178a31a186aSmrg	    :
14179a31a186aSmrg	  else
14180a31a186aSmrg	    cat <<_LT_EOF 1>&2
14181fe5e51b7Smrg
14182a31a186aSmrg*** Warning: the command libtool uses to detect shared libraries,
14183a31a186aSmrg*** $file_magic_cmd, produces output that libtool cannot recognize.
14184a31a186aSmrg*** The result is that libtool may fail to recognize shared libraries
14185a31a186aSmrg*** as such.  This will affect the creation of libtool libraries that
14186a31a186aSmrg*** depend on shared libraries, but programs linked with such libtool
14187a31a186aSmrg*** libraries will work regardless of this problem.  Nevertheless, you
14188a31a186aSmrg*** may want to report the problem to your system manager and/or to
14189a31a186aSmrg*** bug-libtool@gnu.org
14190eda3803bSmrg
14191a31a186aSmrg_LT_EOF
14192a31a186aSmrg	  fi ;;
14193a31a186aSmrg	esac
14194a31a186aSmrg      fi
14195a31a186aSmrg      break
14196a31a186aSmrg    fi
14197a31a186aSmrg  done
14198a31a186aSmrg  IFS="$lt_save_ifs"
14199a31a186aSmrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
14200a31a186aSmrg  ;;
14201a31a186aSmrgesac
14202643b027fSmrgfi
14203fe5e51b7Smrg
14204a31a186aSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14205a31a186aSmrgif test -n "$MAGIC_CMD"; then
142060bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14207a31a186aSmrg$as_echo "$MAGIC_CMD" >&6; }
14208a31a186aSmrgelse
142090bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210a31a186aSmrg$as_echo "no" >&6; }
14211643b027fSmrgfi
14212fe5e51b7Smrg
14213fe5e51b7Smrg
14214a31a186aSmrg  else
14215a31a186aSmrg    MAGIC_CMD=:
14216a31a186aSmrg  fi
14217643b027fSmrgfi
14218fe5e51b7Smrg
14219a31a186aSmrg  fi
14220a31a186aSmrg  ;;
14221a31a186aSmrgesac
14222fe5e51b7Smrg
14223a31a186aSmrg# Use C for the default configuration in the libtool script
14224fe5e51b7Smrg
14225a31a186aSmrglt_save_CC="$CC"
14226a31a186aSmrgac_ext=c
14227a31a186aSmrgac_cpp='$CPP $CPPFLAGS'
14228a31a186aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229a31a186aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230a31a186aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
14231fe5e51b7Smrg
14232fe5e51b7Smrg
14233a31a186aSmrg# Source file extension for C test sources.
14234a31a186aSmrgac_ext=c
14235fe5e51b7Smrg
14236a31a186aSmrg# Object file extension for compiled C test sources.
14237a31a186aSmrgobjext=o
14238a31a186aSmrgobjext=$objext
14239fe5e51b7Smrg
14240a31a186aSmrg# Code to be used in simple compile tests
14241a31a186aSmrglt_simple_compile_test_code="int some_variable = 0;"
14242fe5e51b7Smrg
14243a31a186aSmrg# Code to be used in simple link tests
14244a31a186aSmrglt_simple_link_test_code='int main(){return(0);}'
14245fe5e51b7Smrg
14246fe5e51b7Smrg
14247fe5e51b7Smrg
14248fe5e51b7Smrg
14249fe5e51b7Smrg
14250eda3803bSmrg
14251fe5e51b7Smrg
14252a31a186aSmrg# If no C compiler was specified, use CC.
14253a31a186aSmrgLTCC=${LTCC-"$CC"}
14254eda3803bSmrg
14255a31a186aSmrg# If no C compiler flags were specified, use CFLAGS.
14256a31a186aSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14257eda3803bSmrg
14258a31a186aSmrg# Allow CC to be a program name with arguments.
14259a31a186aSmrgcompiler=$CC
14260eda3803bSmrg
14261a31a186aSmrg# Save the default compiler, since it gets overwritten when the other
14262a31a186aSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14263a31a186aSmrgcompiler_DEFAULT=$CC
14264eda3803bSmrg
14265a31a186aSmrg# save warnings/boilerplate of simple test code
14266a31a186aSmrgac_outfile=conftest.$ac_objext
14267a31a186aSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
14268a31a186aSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14269a31a186aSmrg_lt_compiler_boilerplate=`cat conftest.err`
14270a31a186aSmrg$RM conftest*
14271eda3803bSmrg
14272a31a186aSmrgac_outfile=conftest.$ac_objext
14273a31a186aSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
14274a31a186aSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14275a31a186aSmrg_lt_linker_boilerplate=`cat conftest.err`
14276a31a186aSmrg$RM -r conftest*
14277eda3803bSmrg
14278eda3803bSmrg
14279a31a186aSmrgif test -n "$compiler"; then
14280eda3803bSmrg
14281a31a186aSmrglt_prog_compiler_no_builtin_flag=
14282eda3803bSmrg
14283a31a186aSmrgif test "$GCC" = yes; then
142840bb88ba4Smrg  case $cc_basename in
142850bb88ba4Smrg  nvcc*)
142860bb88ba4Smrg    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
142870bb88ba4Smrg  *)
142880bb88ba4Smrg    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
142890bb88ba4Smrg  esac
14290eda3803bSmrg
142910bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14292a31a186aSmrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
142930bb88ba4Smrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14294643b027fSmrg  $as_echo_n "(cached) " >&6
14295643b027fSmrgelse
14296a31a186aSmrg  lt_cv_prog_compiler_rtti_exceptions=no
14297a31a186aSmrg   ac_outfile=conftest.$ac_objext
14298a31a186aSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14299a31a186aSmrg   lt_compiler_flag="-fno-rtti -fno-exceptions"
14300a31a186aSmrg   # Insert the option either (1) after the last *FLAGS variable, or
14301a31a186aSmrg   # (2) before a word containing "conftest.", or (3) at the end.
14302a31a186aSmrg   # Note that $ac_compile itself does not contain backslashes and begins
14303a31a186aSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
14304a31a186aSmrg   # The option is referenced via a variable to avoid confusing sed.
14305a31a186aSmrg   lt_compile=`echo "$ac_compile" | $SED \
14306a31a186aSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14307a31a186aSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14308a31a186aSmrg   -e 's:$: $lt_compiler_flag:'`
143090bb88ba4Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14310a31a186aSmrg   (eval "$lt_compile" 2>conftest.err)
14311a31a186aSmrg   ac_status=$?
14312a31a186aSmrg   cat conftest.err >&5
143130bb88ba4Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314a31a186aSmrg   if (exit $ac_status) && test -s "$ac_outfile"; then
14315a31a186aSmrg     # The compiler can only warn and ignore the option if not recognized
14316a31a186aSmrg     # So say no if there are warnings other than the usual output.
143170bb88ba4Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14318a31a186aSmrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14319a31a186aSmrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14320a31a186aSmrg       lt_cv_prog_compiler_rtti_exceptions=yes
14321a31a186aSmrg     fi
14322a31a186aSmrg   fi
14323a31a186aSmrg   $RM conftest*
14324fe5e51b7Smrg
14325643b027fSmrgfi
143260bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14327a31a186aSmrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14328eda3803bSmrg
14329a31a186aSmrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14330a31a186aSmrg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14331a31a186aSmrgelse
14332a31a186aSmrg    :
14333643b027fSmrgfi
14334eda3803bSmrg
14335a31a186aSmrgfi
14336eda3803bSmrg
14337eda3803bSmrg
14338eda3803bSmrg
14339eda3803bSmrg
14340eda3803bSmrg
14341eda3803bSmrg
14342a31a186aSmrg  lt_prog_compiler_wl=
14343a31a186aSmrglt_prog_compiler_pic=
14344a31a186aSmrglt_prog_compiler_static=
14345eda3803bSmrg
14346eda3803bSmrg
14347a31a186aSmrg  if test "$GCC" = yes; then
14348a31a186aSmrg    lt_prog_compiler_wl='-Wl,'
14349a31a186aSmrg    lt_prog_compiler_static='-static'
14350eda3803bSmrg
14351a31a186aSmrg    case $host_os in
14352a31a186aSmrg      aix*)
14353a31a186aSmrg      # All AIX code is PIC.
14354a31a186aSmrg      if test "$host_cpu" = ia64; then
14355a31a186aSmrg	# AIX 5 now supports IA64 processor
14356a31a186aSmrg	lt_prog_compiler_static='-Bstatic'
14357a31a186aSmrg      fi
14358643b027fSmrg      ;;
14359a31a186aSmrg
14360a31a186aSmrg    amigaos*)
14361a31a186aSmrg      case $host_cpu in
14362a31a186aSmrg      powerpc)
14363a31a186aSmrg            # see comment about AmigaOS4 .so support
14364a31a186aSmrg            lt_prog_compiler_pic='-fPIC'
14365a31a186aSmrg        ;;
14366a31a186aSmrg      m68k)
14367a31a186aSmrg            # FIXME: we need at least 68020 code to build shared libraries, but
14368a31a186aSmrg            # adding the `-m68020' flag to GCC prevents building anything better,
14369a31a186aSmrg            # like `-m68040'.
14370a31a186aSmrg            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14371a31a186aSmrg        ;;
14372a31a186aSmrg      esac
14373643b027fSmrg      ;;
14374eda3803bSmrg
14375a31a186aSmrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14376a31a186aSmrg      # PIC is the default for these OSes.
14377a31a186aSmrg      ;;
14378eda3803bSmrg
14379a31a186aSmrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
14380a31a186aSmrg      # This hack is so that the source file can tell whether it is being
14381a31a186aSmrg      # built for inclusion in a dll (and should export symbols for example).
14382a31a186aSmrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14383a31a186aSmrg      # (--disable-auto-import) libraries
14384a31a186aSmrg      lt_prog_compiler_pic='-DDLL_EXPORT'
14385a31a186aSmrg      ;;
14386eda3803bSmrg
14387a31a186aSmrg    darwin* | rhapsody*)
14388a31a186aSmrg      # PIC is the default on this platform
14389a31a186aSmrg      # Common symbols not allowed in MH_DYLIB files
14390a31a186aSmrg      lt_prog_compiler_pic='-fno-common'
14391a31a186aSmrg      ;;
14392eda3803bSmrg
143930bb88ba4Smrg    haiku*)
143940bb88ba4Smrg      # PIC is the default for Haiku.
143950bb88ba4Smrg      # The "-static" flag exists, but is broken.
143960bb88ba4Smrg      lt_prog_compiler_static=
143970bb88ba4Smrg      ;;
143980bb88ba4Smrg
14399a31a186aSmrg    hpux*)
14400a31a186aSmrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14401a31a186aSmrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14402a31a186aSmrg      # sets the default TLS model and affects inlining.
14403a31a186aSmrg      case $host_cpu in
14404a31a186aSmrg      hppa*64*)
14405a31a186aSmrg	# +Z the default
14406a31a186aSmrg	;;
14407a31a186aSmrg      *)
14408a31a186aSmrg	lt_prog_compiler_pic='-fPIC'
14409a31a186aSmrg	;;
14410a31a186aSmrg      esac
14411a31a186aSmrg      ;;
14412eda3803bSmrg
14413a31a186aSmrg    interix[3-9]*)
14414a31a186aSmrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14415a31a186aSmrg      # Instead, we relocate shared libraries at runtime.
14416a31a186aSmrg      ;;
14417eda3803bSmrg
14418a31a186aSmrg    msdosdjgpp*)
14419a31a186aSmrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
14420a31a186aSmrg      # on systems that don't support them.
14421a31a186aSmrg      lt_prog_compiler_can_build_shared=no
14422a31a186aSmrg      enable_shared=no
14423a31a186aSmrg      ;;
14424eda3803bSmrg
14425a31a186aSmrg    *nto* | *qnx*)
14426a31a186aSmrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
14427a31a186aSmrg      # it will coredump.
14428a31a186aSmrg      lt_prog_compiler_pic='-fPIC -shared'
14429a31a186aSmrg      ;;
14430eda3803bSmrg
14431a31a186aSmrg    sysv4*MP*)
14432a31a186aSmrg      if test -d /usr/nec; then
14433a31a186aSmrg	lt_prog_compiler_pic=-Kconform_pic
14434a31a186aSmrg      fi
14435a31a186aSmrg      ;;
14436eda3803bSmrg
14437a31a186aSmrg    *)
14438a31a186aSmrg      lt_prog_compiler_pic='-fPIC'
14439a31a186aSmrg      ;;
14440a31a186aSmrg    esac
144410bb88ba4Smrg
144420bb88ba4Smrg    case $cc_basename in
144430bb88ba4Smrg    nvcc*) # Cuda Compiler Driver 2.2
144440bb88ba4Smrg      lt_prog_compiler_wl='-Xlinker '
144450bb88ba4Smrg      if test -n "$lt_prog_compiler_pic"; then
144460bb88ba4Smrg        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
144470bb88ba4Smrg      fi
144480bb88ba4Smrg      ;;
144490bb88ba4Smrg    esac
14450a31a186aSmrg  else
14451a31a186aSmrg    # PORTME Check for flag to pass linker flags through the system compiler.
14452a31a186aSmrg    case $host_os in
14453a31a186aSmrg    aix*)
14454a31a186aSmrg      lt_prog_compiler_wl='-Wl,'
14455a31a186aSmrg      if test "$host_cpu" = ia64; then
14456a31a186aSmrg	# AIX 5 now supports IA64 processor
14457a31a186aSmrg	lt_prog_compiler_static='-Bstatic'
14458a31a186aSmrg      else
14459a31a186aSmrg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14460a31a186aSmrg      fi
14461a31a186aSmrg      ;;
14462eda3803bSmrg
14463a31a186aSmrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
14464a31a186aSmrg      # This hack is so that the source file can tell whether it is being
14465a31a186aSmrg      # built for inclusion in a dll (and should export symbols for example).
14466a31a186aSmrg      lt_prog_compiler_pic='-DDLL_EXPORT'
14467a31a186aSmrg      ;;
14468eda3803bSmrg
14469a31a186aSmrg    hpux9* | hpux10* | hpux11*)
14470a31a186aSmrg      lt_prog_compiler_wl='-Wl,'
14471a31a186aSmrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14472a31a186aSmrg      # not for PA HP-UX.
14473a31a186aSmrg      case $host_cpu in
14474a31a186aSmrg      hppa*64*|ia64*)
14475a31a186aSmrg	# +Z the default
14476a31a186aSmrg	;;
14477a31a186aSmrg      *)
14478a31a186aSmrg	lt_prog_compiler_pic='+Z'
14479a31a186aSmrg	;;
14480a31a186aSmrg      esac
14481a31a186aSmrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14482a31a186aSmrg      lt_prog_compiler_static='${wl}-a ${wl}archive'
14483a31a186aSmrg      ;;
14484eda3803bSmrg
14485a31a186aSmrg    irix5* | irix6* | nonstopux*)
14486a31a186aSmrg      lt_prog_compiler_wl='-Wl,'
14487a31a186aSmrg      # PIC (with -KPIC) is the default.
14488a31a186aSmrg      lt_prog_compiler_static='-non_shared'
14489a31a186aSmrg      ;;
14490eda3803bSmrg
144910bb88ba4Smrg    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14492a31a186aSmrg      case $cc_basename in
14493a31a186aSmrg      # old Intel for x86_64 which still supported -KPIC.
14494a31a186aSmrg      ecc*)
14495a31a186aSmrg	lt_prog_compiler_wl='-Wl,'
14496a31a186aSmrg	lt_prog_compiler_pic='-KPIC'
14497a31a186aSmrg	lt_prog_compiler_static='-static'
14498a31a186aSmrg        ;;
14499a31a186aSmrg      # icc used to be incompatible with GCC.
14500a31a186aSmrg      # ICC 10 doesn't accept -KPIC any more.
14501a31a186aSmrg      icc* | ifort*)
14502a31a186aSmrg	lt_prog_compiler_wl='-Wl,'
14503a31a186aSmrg	lt_prog_compiler_pic='-fPIC'
14504a31a186aSmrg	lt_prog_compiler_static='-static'
14505a31a186aSmrg        ;;
14506a31a186aSmrg      # Lahey Fortran 8.1.
14507a31a186aSmrg      lf95*)
14508a31a186aSmrg	lt_prog_compiler_wl='-Wl,'
14509a31a186aSmrg	lt_prog_compiler_pic='--shared'
14510a31a186aSmrg	lt_prog_compiler_static='--static'
14511a31a186aSmrg	;;
145120bb88ba4Smrg      nagfor*)
145130bb88ba4Smrg	# NAG Fortran compiler
145140bb88ba4Smrg	lt_prog_compiler_wl='-Wl,-Wl,,'
145150bb88ba4Smrg	lt_prog_compiler_pic='-PIC'
145160bb88ba4Smrg	lt_prog_compiler_static='-Bstatic'
145170bb88ba4Smrg	;;
145180bb88ba4Smrg      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14519a31a186aSmrg        # Portland Group compilers (*not* the Pentium gcc compiler,
14520a31a186aSmrg	# which looks to be a dead project)
14521a31a186aSmrg	lt_prog_compiler_wl='-Wl,'
14522a31a186aSmrg	lt_prog_compiler_pic='-fpic'
14523a31a186aSmrg	lt_prog_compiler_static='-Bstatic'
14524a31a186aSmrg        ;;
14525a31a186aSmrg      ccc*)
14526a31a186aSmrg        lt_prog_compiler_wl='-Wl,'
14527a31a186aSmrg        # All Alpha code is PIC.
14528a31a186aSmrg        lt_prog_compiler_static='-non_shared'
14529a31a186aSmrg        ;;
145300bb88ba4Smrg      xl* | bgxl* | bgf* | mpixl*)
145310bb88ba4Smrg	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14532a31a186aSmrg	lt_prog_compiler_wl='-Wl,'
14533a31a186aSmrg	lt_prog_compiler_pic='-qpic'
14534a31a186aSmrg	lt_prog_compiler_static='-qstaticlink'
14535a31a186aSmrg	;;
14536a31a186aSmrg      *)
14537a31a186aSmrg	case `$CC -V 2>&1 | sed 5q` in
145380bb88ba4Smrg	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
145390bb88ba4Smrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
145400bb88ba4Smrg	  lt_prog_compiler_pic='-KPIC'
145410bb88ba4Smrg	  lt_prog_compiler_static='-Bstatic'
145420bb88ba4Smrg	  lt_prog_compiler_wl=''
145430bb88ba4Smrg	  ;;
145440bb88ba4Smrg	*Sun\ F* | *Sun*Fortran*)
145450bb88ba4Smrg	  lt_prog_compiler_pic='-KPIC'
145460bb88ba4Smrg	  lt_prog_compiler_static='-Bstatic'
145470bb88ba4Smrg	  lt_prog_compiler_wl='-Qoption ld '
145480bb88ba4Smrg	  ;;
14549a31a186aSmrg	*Sun\ C*)
14550a31a186aSmrg	  # Sun C 5.9
14551a31a186aSmrg	  lt_prog_compiler_pic='-KPIC'
14552a31a186aSmrg	  lt_prog_compiler_static='-Bstatic'
14553a31a186aSmrg	  lt_prog_compiler_wl='-Wl,'
14554a31a186aSmrg	  ;;
145550bb88ba4Smrg        *Intel*\ [CF]*Compiler*)
145560bb88ba4Smrg	  lt_prog_compiler_wl='-Wl,'
145570bb88ba4Smrg	  lt_prog_compiler_pic='-fPIC'
145580bb88ba4Smrg	  lt_prog_compiler_static='-static'
145590bb88ba4Smrg	  ;;
145600bb88ba4Smrg	*Portland\ Group*)
145610bb88ba4Smrg	  lt_prog_compiler_wl='-Wl,'
145620bb88ba4Smrg	  lt_prog_compiler_pic='-fpic'
14563a31a186aSmrg	  lt_prog_compiler_static='-Bstatic'
14564a31a186aSmrg	  ;;
14565a31a186aSmrg	esac
14566a31a186aSmrg	;;
14567a31a186aSmrg      esac
14568a31a186aSmrg      ;;
14569eda3803bSmrg
14570a31a186aSmrg    newsos6)
14571a31a186aSmrg      lt_prog_compiler_pic='-KPIC'
14572a31a186aSmrg      lt_prog_compiler_static='-Bstatic'
14573a31a186aSmrg      ;;
14574eda3803bSmrg
14575a31a186aSmrg    *nto* | *qnx*)
14576a31a186aSmrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
14577a31a186aSmrg      # it will coredump.
14578a31a186aSmrg      lt_prog_compiler_pic='-fPIC -shared'
14579a31a186aSmrg      ;;
14580eda3803bSmrg
14581a31a186aSmrg    osf3* | osf4* | osf5*)
14582a31a186aSmrg      lt_prog_compiler_wl='-Wl,'
14583a31a186aSmrg      # All OSF/1 code is PIC.
14584a31a186aSmrg      lt_prog_compiler_static='-non_shared'
14585a31a186aSmrg      ;;
14586eda3803bSmrg
14587a31a186aSmrg    rdos*)
14588a31a186aSmrg      lt_prog_compiler_static='-non_shared'
14589a31a186aSmrg      ;;
14590eda3803bSmrg
14591a31a186aSmrg    solaris*)
14592a31a186aSmrg      lt_prog_compiler_pic='-KPIC'
14593a31a186aSmrg      lt_prog_compiler_static='-Bstatic'
14594a31a186aSmrg      case $cc_basename in
145950bb88ba4Smrg      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14596a31a186aSmrg	lt_prog_compiler_wl='-Qoption ld ';;
14597a31a186aSmrg      *)
14598a31a186aSmrg	lt_prog_compiler_wl='-Wl,';;
14599a31a186aSmrg      esac
14600a31a186aSmrg      ;;
14601eda3803bSmrg
14602a31a186aSmrg    sunos4*)
14603a31a186aSmrg      lt_prog_compiler_wl='-Qoption ld '
14604a31a186aSmrg      lt_prog_compiler_pic='-PIC'
14605a31a186aSmrg      lt_prog_compiler_static='-Bstatic'
14606a31a186aSmrg      ;;
14607eda3803bSmrg
14608a31a186aSmrg    sysv4 | sysv4.2uw2* | sysv4.3*)
14609a31a186aSmrg      lt_prog_compiler_wl='-Wl,'
14610a31a186aSmrg      lt_prog_compiler_pic='-KPIC'
14611a31a186aSmrg      lt_prog_compiler_static='-Bstatic'
14612a31a186aSmrg      ;;
14613eda3803bSmrg
14614a31a186aSmrg    sysv4*MP*)
14615a31a186aSmrg      if test -d /usr/nec ;then
14616a31a186aSmrg	lt_prog_compiler_pic='-Kconform_pic'
14617a31a186aSmrg	lt_prog_compiler_static='-Bstatic'
14618a31a186aSmrg      fi
14619a31a186aSmrg      ;;
14620eda3803bSmrg
14621a31a186aSmrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14622a31a186aSmrg      lt_prog_compiler_wl='-Wl,'
14623a31a186aSmrg      lt_prog_compiler_pic='-KPIC'
14624a31a186aSmrg      lt_prog_compiler_static='-Bstatic'
14625a31a186aSmrg      ;;
14626eda3803bSmrg
14627a31a186aSmrg    unicos*)
14628a31a186aSmrg      lt_prog_compiler_wl='-Wl,'
14629a31a186aSmrg      lt_prog_compiler_can_build_shared=no
14630a31a186aSmrg      ;;
14631eda3803bSmrg
14632a31a186aSmrg    uts4*)
14633a31a186aSmrg      lt_prog_compiler_pic='-pic'
14634a31a186aSmrg      lt_prog_compiler_static='-Bstatic'
14635a31a186aSmrg      ;;
14636eda3803bSmrg
14637a31a186aSmrg    *)
14638a31a186aSmrg      lt_prog_compiler_can_build_shared=no
14639a31a186aSmrg      ;;
14640a31a186aSmrg    esac
14641a31a186aSmrg  fi
14642eda3803bSmrg
14643a31a186aSmrgcase $host_os in
14644a31a186aSmrg  # For platforms which do not support PIC, -DPIC is meaningless:
14645a31a186aSmrg  *djgpp*)
14646a31a186aSmrg    lt_prog_compiler_pic=
14647a31a186aSmrg    ;;
14648a31a186aSmrg  *)
14649a31a186aSmrg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14650a31a186aSmrg    ;;
14651a31a186aSmrgesac
14652eda3803bSmrg
146530bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
146540bb88ba4Smrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
146550bb88ba4Smrgif ${lt_cv_prog_compiler_pic+:} false; then :
146560bb88ba4Smrg  $as_echo_n "(cached) " >&6
146570bb88ba4Smrgelse
146580bb88ba4Smrg  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
146590bb88ba4Smrgfi
146600bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
146610bb88ba4Smrg$as_echo "$lt_cv_prog_compiler_pic" >&6; }
146620bb88ba4Smrglt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14663eda3803bSmrg
14664a31a186aSmrg#
14665a31a186aSmrg# Check to make sure the PIC flag actually works.
14666a31a186aSmrg#
14667a31a186aSmrgif test -n "$lt_prog_compiler_pic"; then
146680bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14669a31a186aSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
146700bb88ba4Smrgif ${lt_cv_prog_compiler_pic_works+:} false; then :
14671a31a186aSmrg  $as_echo_n "(cached) " >&6
14672a31a186aSmrgelse
14673a31a186aSmrg  lt_cv_prog_compiler_pic_works=no
14674a31a186aSmrg   ac_outfile=conftest.$ac_objext
14675a31a186aSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14676a31a186aSmrg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14677a31a186aSmrg   # Insert the option either (1) after the last *FLAGS variable, or
14678a31a186aSmrg   # (2) before a word containing "conftest.", or (3) at the end.
14679a31a186aSmrg   # Note that $ac_compile itself does not contain backslashes and begins
14680a31a186aSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
14681a31a186aSmrg   # The option is referenced via a variable to avoid confusing sed.
14682a31a186aSmrg   lt_compile=`echo "$ac_compile" | $SED \
14683a31a186aSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14684a31a186aSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14685a31a186aSmrg   -e 's:$: $lt_compiler_flag:'`
146860bb88ba4Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14687a31a186aSmrg   (eval "$lt_compile" 2>conftest.err)
14688a31a186aSmrg   ac_status=$?
14689a31a186aSmrg   cat conftest.err >&5
146900bb88ba4Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691a31a186aSmrg   if (exit $ac_status) && test -s "$ac_outfile"; then
14692a31a186aSmrg     # The compiler can only warn and ignore the option if not recognized
14693a31a186aSmrg     # So say no if there are warnings other than the usual output.
146940bb88ba4Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14695a31a186aSmrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14696a31a186aSmrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14697a31a186aSmrg       lt_cv_prog_compiler_pic_works=yes
14698a31a186aSmrg     fi
14699a31a186aSmrg   fi
14700a31a186aSmrg   $RM conftest*
14701eda3803bSmrg
14702a31a186aSmrgfi
147030bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14704a31a186aSmrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14705eda3803bSmrg
14706a31a186aSmrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14707a31a186aSmrg    case $lt_prog_compiler_pic in
14708a31a186aSmrg     "" | " "*) ;;
14709a31a186aSmrg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14710a31a186aSmrg     esac
14711a31a186aSmrgelse
14712a31a186aSmrg    lt_prog_compiler_pic=
14713a31a186aSmrg     lt_prog_compiler_can_build_shared=no
14714a31a186aSmrgfi
14715eda3803bSmrg
14716a31a186aSmrgfi
14717eda3803bSmrg
14718eda3803bSmrg
14719eda3803bSmrg
14720eda3803bSmrg
14721eda3803bSmrg
14722eda3803bSmrg
147230bb88ba4Smrg
147240bb88ba4Smrg
147250bb88ba4Smrg
147260bb88ba4Smrg
147270bb88ba4Smrg
14728a31a186aSmrg#
14729a31a186aSmrg# Check to make sure the static flag actually works.
14730a31a186aSmrg#
14731a31a186aSmrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
147320bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14733a31a186aSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
147340bb88ba4Smrgif ${lt_cv_prog_compiler_static_works+:} false; then :
14735a31a186aSmrg  $as_echo_n "(cached) " >&6
14736a31a186aSmrgelse
14737a31a186aSmrg  lt_cv_prog_compiler_static_works=no
14738a31a186aSmrg   save_LDFLAGS="$LDFLAGS"
14739a31a186aSmrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14740a31a186aSmrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14741a31a186aSmrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14742a31a186aSmrg     # The linker can only warn and ignore the option if not recognized
14743a31a186aSmrg     # So say no if there are warnings
14744a31a186aSmrg     if test -s conftest.err; then
14745a31a186aSmrg       # Append any errors to the config.log.
14746a31a186aSmrg       cat conftest.err 1>&5
147470bb88ba4Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14748a31a186aSmrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14749a31a186aSmrg       if diff conftest.exp conftest.er2 >/dev/null; then
14750a31a186aSmrg         lt_cv_prog_compiler_static_works=yes
14751a31a186aSmrg       fi
14752a31a186aSmrg     else
14753a31a186aSmrg       lt_cv_prog_compiler_static_works=yes
14754a31a186aSmrg     fi
14755a31a186aSmrg   fi
14756a31a186aSmrg   $RM -r conftest*
14757a31a186aSmrg   LDFLAGS="$save_LDFLAGS"
14758eda3803bSmrg
14759a31a186aSmrgfi
147600bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14761a31a186aSmrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14762eda3803bSmrg
14763a31a186aSmrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then
14764a31a186aSmrg    :
14765a31a186aSmrgelse
14766a31a186aSmrg    lt_prog_compiler_static=
14767a31a186aSmrgfi
14768eda3803bSmrg
14769eda3803bSmrg
14770eda3803bSmrg
14771eda3803bSmrg
14772eda3803bSmrg
14773eda3803bSmrg
14774eda3803bSmrg
147750bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14776a31a186aSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
147770bb88ba4Smrgif ${lt_cv_prog_compiler_c_o+:} false; then :
14778a31a186aSmrg  $as_echo_n "(cached) " >&6
14779a31a186aSmrgelse
14780a31a186aSmrg  lt_cv_prog_compiler_c_o=no
14781a31a186aSmrg   $RM -r conftest 2>/dev/null
14782a31a186aSmrg   mkdir conftest
14783a31a186aSmrg   cd conftest
14784a31a186aSmrg   mkdir out
14785a31a186aSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14786eda3803bSmrg
14787a31a186aSmrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
14788a31a186aSmrg   # Insert the option either (1) after the last *FLAGS variable, or
14789a31a186aSmrg   # (2) before a word containing "conftest.", or (3) at the end.
14790a31a186aSmrg   # Note that $ac_compile itself does not contain backslashes and begins
14791a31a186aSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
14792a31a186aSmrg   lt_compile=`echo "$ac_compile" | $SED \
14793a31a186aSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14794a31a186aSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14795a31a186aSmrg   -e 's:$: $lt_compiler_flag:'`
147960bb88ba4Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14797a31a186aSmrg   (eval "$lt_compile" 2>out/conftest.err)
14798a31a186aSmrg   ac_status=$?
14799a31a186aSmrg   cat out/conftest.err >&5
148000bb88ba4Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801a31a186aSmrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14802a31a186aSmrg   then
14803a31a186aSmrg     # The compiler can only warn and ignore the option if not recognized
14804a31a186aSmrg     # So say no if there are warnings
148050bb88ba4Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14806a31a186aSmrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14807a31a186aSmrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14808a31a186aSmrg       lt_cv_prog_compiler_c_o=yes
14809a31a186aSmrg     fi
14810a31a186aSmrg   fi
14811a31a186aSmrg   chmod u+w . 2>&5
14812a31a186aSmrg   $RM conftest*
14813a31a186aSmrg   # SGI C++ compiler will create directory out/ii_files/ for
14814a31a186aSmrg   # template instantiation
14815a31a186aSmrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14816a31a186aSmrg   $RM out/* && rmdir out
14817a31a186aSmrg   cd ..
14818a31a186aSmrg   $RM -r conftest
14819a31a186aSmrg   $RM conftest*
14820eda3803bSmrg
14821a31a186aSmrgfi
148220bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14823a31a186aSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14824eda3803bSmrg
14825eda3803bSmrg
14826eda3803bSmrg
14827eda3803bSmrg
14828eda3803bSmrg
14829eda3803bSmrg
148300bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14831a31a186aSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
148320bb88ba4Smrgif ${lt_cv_prog_compiler_c_o+:} false; then :
14833a31a186aSmrg  $as_echo_n "(cached) " >&6
14834a31a186aSmrgelse
14835a31a186aSmrg  lt_cv_prog_compiler_c_o=no
14836a31a186aSmrg   $RM -r conftest 2>/dev/null
14837a31a186aSmrg   mkdir conftest
14838a31a186aSmrg   cd conftest
14839a31a186aSmrg   mkdir out
14840a31a186aSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14841eda3803bSmrg
14842a31a186aSmrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
14843a31a186aSmrg   # Insert the option either (1) after the last *FLAGS variable, or
14844a31a186aSmrg   # (2) before a word containing "conftest.", or (3) at the end.
14845a31a186aSmrg   # Note that $ac_compile itself does not contain backslashes and begins
14846a31a186aSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
14847a31a186aSmrg   lt_compile=`echo "$ac_compile" | $SED \
14848a31a186aSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14849a31a186aSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14850a31a186aSmrg   -e 's:$: $lt_compiler_flag:'`
148510bb88ba4Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14852a31a186aSmrg   (eval "$lt_compile" 2>out/conftest.err)
14853a31a186aSmrg   ac_status=$?
14854a31a186aSmrg   cat out/conftest.err >&5
148550bb88ba4Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856a31a186aSmrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14857a31a186aSmrg   then
14858a31a186aSmrg     # The compiler can only warn and ignore the option if not recognized
14859a31a186aSmrg     # So say no if there are warnings
148600bb88ba4Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14861a31a186aSmrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14862a31a186aSmrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14863a31a186aSmrg       lt_cv_prog_compiler_c_o=yes
14864a31a186aSmrg     fi
14865a31a186aSmrg   fi
14866a31a186aSmrg   chmod u+w . 2>&5
14867a31a186aSmrg   $RM conftest*
14868a31a186aSmrg   # SGI C++ compiler will create directory out/ii_files/ for
14869a31a186aSmrg   # template instantiation
14870a31a186aSmrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14871a31a186aSmrg   $RM out/* && rmdir out
14872a31a186aSmrg   cd ..
14873a31a186aSmrg   $RM -r conftest
14874a31a186aSmrg   $RM conftest*
14875eda3803bSmrg
14876a31a186aSmrgfi
148770bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14878a31a186aSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14879eda3803bSmrg
14880eda3803bSmrg
14881eda3803bSmrg
14882eda3803bSmrg
14883a31a186aSmrghard_links="nottested"
14884a31a186aSmrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14885a31a186aSmrg  # do not overwrite the value of need_locks provided by the user
148860bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14887a31a186aSmrg$as_echo_n "checking if we can lock with hard links... " >&6; }
14888a31a186aSmrg  hard_links=yes
14889a31a186aSmrg  $RM conftest*
14890a31a186aSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14891a31a186aSmrg  touch conftest.a
14892a31a186aSmrg  ln conftest.a conftest.b 2>&5 || hard_links=no
14893a31a186aSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
148940bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14895a31a186aSmrg$as_echo "$hard_links" >&6; }
14896a31a186aSmrg  if test "$hard_links" = no; then
148970bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14898a31a186aSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14899a31a186aSmrg    need_locks=warn
14900a31a186aSmrg  fi
14901a31a186aSmrgelse
14902a31a186aSmrg  need_locks=no
14903a31a186aSmrgfi
14904eda3803bSmrg
14905eda3803bSmrg
14906eda3803bSmrg
14907eda3803bSmrg
14908eda3803bSmrg
14909eda3803bSmrg
149100bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14911a31a186aSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14912eda3803bSmrg
14913a31a186aSmrg  runpath_var=
14914a31a186aSmrg  allow_undefined_flag=
14915a31a186aSmrg  always_export_symbols=no
14916a31a186aSmrg  archive_cmds=
14917a31a186aSmrg  archive_expsym_cmds=
14918a31a186aSmrg  compiler_needs_object=no
14919a31a186aSmrg  enable_shared_with_static_runtimes=no
14920a31a186aSmrg  export_dynamic_flag_spec=
14921a31a186aSmrg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14922a31a186aSmrg  hardcode_automatic=no
14923a31a186aSmrg  hardcode_direct=no
14924a31a186aSmrg  hardcode_direct_absolute=no
14925a31a186aSmrg  hardcode_libdir_flag_spec=
14926a31a186aSmrg  hardcode_libdir_separator=
14927a31a186aSmrg  hardcode_minus_L=no
14928a31a186aSmrg  hardcode_shlibpath_var=unsupported
14929a31a186aSmrg  inherit_rpath=no
14930a31a186aSmrg  link_all_deplibs=unknown
14931a31a186aSmrg  module_cmds=
14932a31a186aSmrg  module_expsym_cmds=
14933a31a186aSmrg  old_archive_from_new_cmds=
14934a31a186aSmrg  old_archive_from_expsyms_cmds=
14935a31a186aSmrg  thread_safe_flag_spec=
14936a31a186aSmrg  whole_archive_flag_spec=
14937a31a186aSmrg  # include_expsyms should be a list of space-separated symbols to be *always*
14938a31a186aSmrg  # included in the symbol list
14939a31a186aSmrg  include_expsyms=
14940a31a186aSmrg  # exclude_expsyms can be an extended regexp of symbols to exclude
14941a31a186aSmrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14942a31a186aSmrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14943a31a186aSmrg  # as well as any symbol that contains `d'.
14944a31a186aSmrg  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14945a31a186aSmrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14946a31a186aSmrg  # platforms (ab)use it in PIC code, but their linkers get confused if
14947a31a186aSmrg  # the symbol is explicitly referenced.  Since portable code cannot
14948a31a186aSmrg  # rely on this symbol name, it's probably fine to never include it in
14949a31a186aSmrg  # preloaded symbol tables.
14950a31a186aSmrg  # Exclude shared library initialization/finalization symbols.
14951a31a186aSmrg  extract_expsyms_cmds=
14952eda3803bSmrg
14953a31a186aSmrg  case $host_os in
14954a31a186aSmrg  cygwin* | mingw* | pw32* | cegcc*)
14955a31a186aSmrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14956a31a186aSmrg    # When not using gcc, we currently assume that we are using
14957a31a186aSmrg    # Microsoft Visual C++.
14958a31a186aSmrg    if test "$GCC" != yes; then
14959a31a186aSmrg      with_gnu_ld=no
14960a31a186aSmrg    fi
14961a31a186aSmrg    ;;
14962a31a186aSmrg  interix*)
14963a31a186aSmrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
14964a31a186aSmrg    with_gnu_ld=yes
14965a31a186aSmrg    ;;
14966a31a186aSmrg  openbsd*)
14967a31a186aSmrg    with_gnu_ld=no
14968a31a186aSmrg    ;;
14969a31a186aSmrg  esac
14970eda3803bSmrg
14971a31a186aSmrg  ld_shlibs=yes
149720bb88ba4Smrg
149730bb88ba4Smrg  # On some targets, GNU ld is compatible enough with the native linker
149740bb88ba4Smrg  # that we're better off using the native interface for both.
149750bb88ba4Smrg  lt_use_gnu_ld_interface=no
14976a31a186aSmrg  if test "$with_gnu_ld" = yes; then
149770bb88ba4Smrg    case $host_os in
149780bb88ba4Smrg      aix*)
149790bb88ba4Smrg	# The AIX port of GNU ld has always aspired to compatibility
149800bb88ba4Smrg	# with the native linker.  However, as the warning in the GNU ld
149810bb88ba4Smrg	# block says, versions before 2.19.5* couldn't really create working
149820bb88ba4Smrg	# shared libraries, regardless of the interface used.
149830bb88ba4Smrg	case `$LD -v 2>&1` in
149840bb88ba4Smrg	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
149850bb88ba4Smrg	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
149860bb88ba4Smrg	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
149870bb88ba4Smrg	  *)
149880bb88ba4Smrg	    lt_use_gnu_ld_interface=yes
149890bb88ba4Smrg	    ;;
149900bb88ba4Smrg	esac
149910bb88ba4Smrg	;;
149920bb88ba4Smrg      *)
149930bb88ba4Smrg	lt_use_gnu_ld_interface=yes
149940bb88ba4Smrg	;;
149950bb88ba4Smrg    esac
149960bb88ba4Smrg  fi
149970bb88ba4Smrg
149980bb88ba4Smrg  if test "$lt_use_gnu_ld_interface" = yes; then
14999a31a186aSmrg    # If archive_cmds runs LD, not CC, wlarc should be empty
15000a31a186aSmrg    wlarc='${wl}'
15001eda3803bSmrg
15002a31a186aSmrg    # Set some defaults for GNU ld with shared library support. These
15003a31a186aSmrg    # are reset later if shared libraries are not supported. Putting them
15004a31a186aSmrg    # here allows them to be overridden if necessary.
15005a31a186aSmrg    runpath_var=LD_RUN_PATH
15006a31a186aSmrg    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15007a31a186aSmrg    export_dynamic_flag_spec='${wl}--export-dynamic'
15008a31a186aSmrg    # ancient GNU ld didn't support --whole-archive et. al.
15009a31a186aSmrg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15010a31a186aSmrg      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15011a31a186aSmrg    else
15012a31a186aSmrg      whole_archive_flag_spec=
15013a31a186aSmrg    fi
15014a31a186aSmrg    supports_anon_versioning=no
15015a31a186aSmrg    case `$LD -v 2>&1` in
150160bb88ba4Smrg      *GNU\ gold*) supports_anon_versioning=yes ;;
15017a31a186aSmrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15018a31a186aSmrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15019a31a186aSmrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15020a31a186aSmrg      *\ 2.11.*) ;; # other 2.11 versions
15021a31a186aSmrg      *) supports_anon_versioning=yes ;;
15022a31a186aSmrg    esac
15023eda3803bSmrg
15024a31a186aSmrg    # See if GNU ld supports shared libraries.
15025a31a186aSmrg    case $host_os in
15026a31a186aSmrg    aix[3-9]*)
15027a31a186aSmrg      # On AIX/PPC, the GNU linker is very broken
15028a31a186aSmrg      if test "$host_cpu" != ia64; then
15029a31a186aSmrg	ld_shlibs=no
15030a31a186aSmrg	cat <<_LT_EOF 1>&2
15031eda3803bSmrg
150320bb88ba4Smrg*** Warning: the GNU linker, at least up to release 2.19, is reported
15033a31a186aSmrg*** to be unable to reliably create shared libraries on AIX.
15034a31a186aSmrg*** Therefore, libtool is disabling shared libraries support.  If you
150350bb88ba4Smrg*** really care for shared libraries, you may want to install binutils
150360bb88ba4Smrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
150370bb88ba4Smrg*** You will then need to restart the configuration process.
15038eda3803bSmrg
15039a31a186aSmrg_LT_EOF
15040a31a186aSmrg      fi
15041a31a186aSmrg      ;;
15042eda3803bSmrg
15043a31a186aSmrg    amigaos*)
15044a31a186aSmrg      case $host_cpu in
15045a31a186aSmrg      powerpc)
15046a31a186aSmrg            # see comment about AmigaOS4 .so support
15047a31a186aSmrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15048a31a186aSmrg            archive_expsym_cmds=''
15049a31a186aSmrg        ;;
15050a31a186aSmrg      m68k)
15051a31a186aSmrg            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)'
15052a31a186aSmrg            hardcode_libdir_flag_spec='-L$libdir'
15053a31a186aSmrg            hardcode_minus_L=yes
15054a31a186aSmrg        ;;
15055a31a186aSmrg      esac
15056a31a186aSmrg      ;;
15057eda3803bSmrg
15058a31a186aSmrg    beos*)
15059a31a186aSmrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15060a31a186aSmrg	allow_undefined_flag=unsupported
15061a31a186aSmrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15062a31a186aSmrg	# support --undefined.  This deserves some investigation.  FIXME
15063a31a186aSmrg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15064a31a186aSmrg      else
15065a31a186aSmrg	ld_shlibs=no
15066a31a186aSmrg      fi
15067a31a186aSmrg      ;;
15068eda3803bSmrg
15069a31a186aSmrg    cygwin* | mingw* | pw32* | cegcc*)
15070a31a186aSmrg      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15071a31a186aSmrg      # as there is no search path for DLLs.
15072a31a186aSmrg      hardcode_libdir_flag_spec='-L$libdir'
150730bb88ba4Smrg      export_dynamic_flag_spec='${wl}--export-all-symbols'
15074a31a186aSmrg      allow_undefined_flag=unsupported
15075a31a186aSmrg      always_export_symbols=no
15076a31a186aSmrg      enable_shared_with_static_runtimes=yes
150770bb88ba4Smrg      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'
150780bb88ba4Smrg      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15079eda3803bSmrg
15080a31a186aSmrg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15081a31a186aSmrg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15082a31a186aSmrg	# If the export-symbols file already is a .def file (1st line
15083a31a186aSmrg	# is EXPORTS), use it as is; otherwise, prepend...
15084a31a186aSmrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15085a31a186aSmrg	  cp $export_symbols $output_objdir/$soname.def;
15086a31a186aSmrg	else
15087a31a186aSmrg	  echo EXPORTS > $output_objdir/$soname.def;
15088a31a186aSmrg	  cat $export_symbols >> $output_objdir/$soname.def;
15089a31a186aSmrg	fi~
15090a31a186aSmrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15091a31a186aSmrg      else
15092a31a186aSmrg	ld_shlibs=no
15093a31a186aSmrg      fi
15094a31a186aSmrg      ;;
15095eda3803bSmrg
150960bb88ba4Smrg    haiku*)
150970bb88ba4Smrg      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
150980bb88ba4Smrg      link_all_deplibs=yes
150990bb88ba4Smrg      ;;
151000bb88ba4Smrg
15101a31a186aSmrg    interix[3-9]*)
15102a31a186aSmrg      hardcode_direct=no
15103a31a186aSmrg      hardcode_shlibpath_var=no
15104a31a186aSmrg      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15105a31a186aSmrg      export_dynamic_flag_spec='${wl}-E'
15106a31a186aSmrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15107a31a186aSmrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
15108a31a186aSmrg      # default) and relocated if they conflict, which is a slow very memory
15109a31a186aSmrg      # consuming and fragmenting process.  To avoid this, we pick a random,
15110a31a186aSmrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15111a31a186aSmrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15112a31a186aSmrg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15113a31a186aSmrg      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'
15114a31a186aSmrg      ;;
15115eda3803bSmrg
151160bb88ba4Smrg    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15117a31a186aSmrg      tmp_diet=no
15118a31a186aSmrg      if test "$host_os" = linux-dietlibc; then
15119a31a186aSmrg	case $cc_basename in
15120a31a186aSmrg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15121a31a186aSmrg	esac
15122a31a186aSmrg      fi
15123a31a186aSmrg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15124a31a186aSmrg	 && test "$tmp_diet" = no
15125a31a186aSmrg      then
151260bb88ba4Smrg	tmp_addflag=' $pic_flag'
15127a31a186aSmrg	tmp_sharedflag='-shared'
15128a31a186aSmrg	case $cc_basename,$host_cpu in
15129a31a186aSmrg        pgcc*)				# Portland Group C compiler
151300bb88ba4Smrg	  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'
15131a31a186aSmrg	  tmp_addflag=' $pic_flag'
15132a31a186aSmrg	  ;;
151330bb88ba4Smrg	pgf77* | pgf90* | pgf95* | pgfortran*)
151340bb88ba4Smrg					# Portland Group f77 and f90 compilers
151350bb88ba4Smrg	  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'
15136a31a186aSmrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
15137a31a186aSmrg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15138a31a186aSmrg	  tmp_addflag=' -i_dynamic' ;;
15139a31a186aSmrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15140a31a186aSmrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15141a31a186aSmrg	ifc* | ifort*)			# Intel Fortran compiler
15142a31a186aSmrg	  tmp_addflag=' -nofor_main' ;;
15143a31a186aSmrg	lf95*)				# Lahey Fortran 8.1
15144a31a186aSmrg	  whole_archive_flag_spec=
15145a31a186aSmrg	  tmp_sharedflag='--shared' ;;
151460bb88ba4Smrg	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15147a31a186aSmrg	  tmp_sharedflag='-qmkshrobj'
15148a31a186aSmrg	  tmp_addflag= ;;
151490bb88ba4Smrg	nvcc*)	# Cuda Compiler Driver 2.2
151500bb88ba4Smrg	  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'
151510bb88ba4Smrg	  compiler_needs_object=yes
151520bb88ba4Smrg	  ;;
15153a31a186aSmrg	esac
15154a31a186aSmrg	case `$CC -V 2>&1 | sed 5q` in
15155a31a186aSmrg	*Sun\ C*)			# Sun C 5.9
151560bb88ba4Smrg	  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'
15157a31a186aSmrg	  compiler_needs_object=yes
15158a31a186aSmrg	  tmp_sharedflag='-G' ;;
15159a31a186aSmrg	*Sun\ F*)			# Sun Fortran 8.3
15160a31a186aSmrg	  tmp_sharedflag='-G' ;;
15161a31a186aSmrg	esac
15162a31a186aSmrg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15163eda3803bSmrg
15164a31a186aSmrg        if test "x$supports_anon_versioning" = xyes; then
15165a31a186aSmrg          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15166a31a186aSmrg	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15167a31a186aSmrg	    echo "local: *; };" >> $output_objdir/$libname.ver~
15168a31a186aSmrg	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15169a31a186aSmrg        fi
15170eda3803bSmrg
15171a31a186aSmrg	case $cc_basename in
151720bb88ba4Smrg	xlf* | bgf* | bgxlf* | mpixlf*)
15173a31a186aSmrg	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15174a31a186aSmrg	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
151750bb88ba4Smrg	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
151760bb88ba4Smrg	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15177a31a186aSmrg	  if test "x$supports_anon_versioning" = xyes; then
15178a31a186aSmrg	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15179a31a186aSmrg	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15180a31a186aSmrg	      echo "local: *; };" >> $output_objdir/$libname.ver~
151810bb88ba4Smrg	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15182a31a186aSmrg	  fi
15183a31a186aSmrg	  ;;
15184a31a186aSmrg	esac
15185a31a186aSmrg      else
15186a31a186aSmrg        ld_shlibs=no
15187a31a186aSmrg      fi
15188a31a186aSmrg      ;;
15189eda3803bSmrg
15190a31a186aSmrg    netbsd*)
15191a31a186aSmrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15192a31a186aSmrg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15193a31a186aSmrg	wlarc=
15194a31a186aSmrg      else
151950bb88ba4Smrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
151960bb88ba4Smrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15197a31a186aSmrg      fi
15198a31a186aSmrg      ;;
15199eda3803bSmrg
15200a31a186aSmrg    solaris*)
15201a31a186aSmrg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15202a31a186aSmrg	ld_shlibs=no
15203a31a186aSmrg	cat <<_LT_EOF 1>&2
15204eda3803bSmrg
15205a31a186aSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15206a31a186aSmrg*** create shared libraries on Solaris systems.  Therefore, libtool
15207a31a186aSmrg*** is disabling shared libraries support.  We urge you to upgrade GNU
15208a31a186aSmrg*** binutils to release 2.9.1 or newer.  Another option is to modify
15209a31a186aSmrg*** your PATH or compiler configuration so that the native linker is
15210a31a186aSmrg*** used, and then restart.
15211eda3803bSmrg
15212a31a186aSmrg_LT_EOF
15213a31a186aSmrg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
152140bb88ba4Smrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
152150bb88ba4Smrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15216a31a186aSmrg      else
15217a31a186aSmrg	ld_shlibs=no
15218a31a186aSmrg      fi
15219a31a186aSmrg      ;;
15220eda3803bSmrg
15221a31a186aSmrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15222a31a186aSmrg      case `$LD -v 2>&1` in
15223a31a186aSmrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15224a31a186aSmrg	ld_shlibs=no
15225a31a186aSmrg	cat <<_LT_EOF 1>&2
15226eda3803bSmrg
15227a31a186aSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15228a31a186aSmrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
15229a31a186aSmrg*** is disabling shared libraries support.  We urge you to upgrade GNU
15230a31a186aSmrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15231a31a186aSmrg*** your PATH or compiler configuration so that the native linker is
15232a31a186aSmrg*** used, and then restart.
15233eda3803bSmrg
15234a31a186aSmrg_LT_EOF
15235a31a186aSmrg	;;
15236a31a186aSmrg	*)
15237a31a186aSmrg	  # For security reasons, it is highly recommended that you always
15238a31a186aSmrg	  # use absolute paths for naming shared libraries, and exclude the
15239a31a186aSmrg	  # DT_RUNPATH tag from executables and libraries.  But doing so
15240a31a186aSmrg	  # requires that you compile everything twice, which is a pain.
15241a31a186aSmrg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15242a31a186aSmrg	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15243a31a186aSmrg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15244a31a186aSmrg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15245a31a186aSmrg	  else
15246a31a186aSmrg	    ld_shlibs=no
15247a31a186aSmrg	  fi
15248a31a186aSmrg	;;
15249a31a186aSmrg      esac
15250a31a186aSmrg      ;;
15251eda3803bSmrg
15252a31a186aSmrg    sunos4*)
15253a31a186aSmrg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15254a31a186aSmrg      wlarc=
15255a31a186aSmrg      hardcode_direct=yes
15256a31a186aSmrg      hardcode_shlibpath_var=no
15257a31a186aSmrg      ;;
15258eda3803bSmrg
15259a31a186aSmrg    *)
15260a31a186aSmrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
152610bb88ba4Smrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
152620bb88ba4Smrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15263a31a186aSmrg      else
15264a31a186aSmrg	ld_shlibs=no
15265a31a186aSmrg      fi
15266a31a186aSmrg      ;;
15267a31a186aSmrg    esac
15268eda3803bSmrg
15269a31a186aSmrg    if test "$ld_shlibs" = no; then
15270a31a186aSmrg      runpath_var=
15271a31a186aSmrg      hardcode_libdir_flag_spec=
15272a31a186aSmrg      export_dynamic_flag_spec=
15273a31a186aSmrg      whole_archive_flag_spec=
15274a31a186aSmrg    fi
15275a31a186aSmrg  else
15276a31a186aSmrg    # PORTME fill in a description of your system's linker (not GNU ld)
15277a31a186aSmrg    case $host_os in
15278a31a186aSmrg    aix3*)
15279a31a186aSmrg      allow_undefined_flag=unsupported
15280a31a186aSmrg      always_export_symbols=yes
15281a31a186aSmrg      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'
15282a31a186aSmrg      # Note: this linker hardcodes the directories in LIBPATH if there
15283a31a186aSmrg      # are no directories specified by -L.
15284a31a186aSmrg      hardcode_minus_L=yes
15285a31a186aSmrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15286a31a186aSmrg	# Neither direct hardcoding nor static linking is supported with a
15287a31a186aSmrg	# broken collect2.
15288a31a186aSmrg	hardcode_direct=unsupported
15289a31a186aSmrg      fi
15290a31a186aSmrg      ;;
15291eda3803bSmrg
15292a31a186aSmrg    aix[4-9]*)
15293a31a186aSmrg      if test "$host_cpu" = ia64; then
15294a31a186aSmrg	# On IA64, the linker does run time linking by default, so we don't
15295a31a186aSmrg	# have to do anything special.
15296a31a186aSmrg	aix_use_runtimelinking=no
15297a31a186aSmrg	exp_sym_flag='-Bexport'
15298a31a186aSmrg	no_entry_flag=""
15299a31a186aSmrg      else
15300a31a186aSmrg	# If we're using GNU nm, then we don't want the "-C" option.
15301a31a186aSmrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
153020bb88ba4Smrg	# Also, AIX nm treats weak defined symbols like other global
153030bb88ba4Smrg	# defined symbols, whereas GNU nm marks them as "W".
15304a31a186aSmrg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
153050bb88ba4Smrg	  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'
15306a31a186aSmrg	else
15307a31a186aSmrg	  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'
15308a31a186aSmrg	fi
15309a31a186aSmrg	aix_use_runtimelinking=no
15310eda3803bSmrg
15311a31a186aSmrg	# Test if we are trying to use run time linking or normal
15312a31a186aSmrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15313a31a186aSmrg	# need to do runtime linking.
15314a31a186aSmrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15315a31a186aSmrg	  for ld_flag in $LDFLAGS; do
15316a31a186aSmrg	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15317a31a186aSmrg	    aix_use_runtimelinking=yes
15318a31a186aSmrg	    break
15319a31a186aSmrg	  fi
15320a31a186aSmrg	  done
15321a31a186aSmrg	  ;;
15322a31a186aSmrg	esac
15323eda3803bSmrg
15324a31a186aSmrg	exp_sym_flag='-bexport'
15325a31a186aSmrg	no_entry_flag='-bnoentry'
15326a31a186aSmrg      fi
15327eda3803bSmrg
15328a31a186aSmrg      # When large executables or shared objects are built, AIX ld can
15329a31a186aSmrg      # have problems creating the table of contents.  If linking a library
15330a31a186aSmrg      # or program results in "error TOC overflow" add -mminimal-toc to
15331a31a186aSmrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15332a31a186aSmrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15333eda3803bSmrg
15334a31a186aSmrg      archive_cmds=''
15335a31a186aSmrg      hardcode_direct=yes
15336a31a186aSmrg      hardcode_direct_absolute=yes
15337a31a186aSmrg      hardcode_libdir_separator=':'
15338a31a186aSmrg      link_all_deplibs=yes
15339a31a186aSmrg      file_list_spec='${wl}-f,'
15340eda3803bSmrg
15341a31a186aSmrg      if test "$GCC" = yes; then
15342a31a186aSmrg	case $host_os in aix4.[012]|aix4.[012].*)
15343a31a186aSmrg	# We only want to do this on AIX 4.2 and lower, the check
15344a31a186aSmrg	# below for broken collect2 doesn't work under 4.3+
15345a31a186aSmrg	  collect2name=`${CC} -print-prog-name=collect2`
15346a31a186aSmrg	  if test -f "$collect2name" &&
15347a31a186aSmrg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15348a31a186aSmrg	  then
15349a31a186aSmrg	  # We have reworked collect2
15350a31a186aSmrg	  :
15351a31a186aSmrg	  else
15352a31a186aSmrg	  # We have old collect2
15353a31a186aSmrg	  hardcode_direct=unsupported
15354a31a186aSmrg	  # It fails to find uninstalled libraries when the uninstalled
15355a31a186aSmrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
15356a31a186aSmrg	  # to unsupported forces relinking
15357a31a186aSmrg	  hardcode_minus_L=yes
15358a31a186aSmrg	  hardcode_libdir_flag_spec='-L$libdir'
15359a31a186aSmrg	  hardcode_libdir_separator=
15360a31a186aSmrg	  fi
15361a31a186aSmrg	  ;;
15362a31a186aSmrg	esac
15363a31a186aSmrg	shared_flag='-shared'
15364a31a186aSmrg	if test "$aix_use_runtimelinking" = yes; then
15365a31a186aSmrg	  shared_flag="$shared_flag "'${wl}-G'
15366a31a186aSmrg	fi
15367a31a186aSmrg      else
15368a31a186aSmrg	# not using gcc
15369a31a186aSmrg	if test "$host_cpu" = ia64; then
15370a31a186aSmrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15371a31a186aSmrg	# chokes on -Wl,-G. The following line is correct:
15372a31a186aSmrg	  shared_flag='-G'
15373a31a186aSmrg	else
15374a31a186aSmrg	  if test "$aix_use_runtimelinking" = yes; then
15375a31a186aSmrg	    shared_flag='${wl}-G'
15376a31a186aSmrg	  else
15377a31a186aSmrg	    shared_flag='${wl}-bM:SRE'
15378a31a186aSmrg	  fi
15379a31a186aSmrg	fi
15380a31a186aSmrg      fi
15381eda3803bSmrg
15382a31a186aSmrg      export_dynamic_flag_spec='${wl}-bexpall'
15383a31a186aSmrg      # It seems that -bexpall does not export symbols beginning with
15384a31a186aSmrg      # underscore (_), so it is better to generate a list of symbols to export.
15385a31a186aSmrg      always_export_symbols=yes
15386a31a186aSmrg      if test "$aix_use_runtimelinking" = yes; then
15387a31a186aSmrg	# Warning - without using the other runtime loading flags (-brtl),
15388a31a186aSmrg	# -berok will link without error, but may produce a broken library.
15389a31a186aSmrg	allow_undefined_flag='-berok'
15390a31a186aSmrg        # Determine the default libpath from the value encoded in an
15391a31a186aSmrg        # empty executable.
153920bb88ba4Smrg        if test "${lt_cv_aix_libpath+set}" = set; then
153930bb88ba4Smrg  aix_libpath=$lt_cv_aix_libpath
153940bb88ba4Smrgelse
153950bb88ba4Smrg  if ${lt_cv_aix_libpath_+:} false; then :
153960bb88ba4Smrg  $as_echo_n "(cached) " >&6
153970bb88ba4Smrgelse
153980bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399a31a186aSmrg/* end confdefs.h.  */
15400eda3803bSmrg
15401a31a186aSmrgint
15402a31a186aSmrgmain ()
15403a31a186aSmrg{
15404eda3803bSmrg
15405a31a186aSmrg  ;
15406a31a186aSmrg  return 0;
15407a31a186aSmrg}
15408a31a186aSmrg_ACEOF
154090bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
15410eda3803bSmrg
154110bb88ba4Smrg  lt_aix_libpath_sed='
154120bb88ba4Smrg      /Import File Strings/,/^$/ {
154130bb88ba4Smrg	  /^0/ {
154140bb88ba4Smrg	      s/^0  *\([^ ]*\) *$/\1/
154150bb88ba4Smrg	      p
154160bb88ba4Smrg	  }
154170bb88ba4Smrg      }'
154180bb88ba4Smrg  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
154190bb88ba4Smrg  # Check for a 64-bit object if we didn't find anything.
154200bb88ba4Smrg  if test -z "$lt_cv_aix_libpath_"; then
154210bb88ba4Smrg    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
154220bb88ba4Smrg  fi
15423a31a186aSmrgfi
154240bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
154250bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
154260bb88ba4Smrg  if test -z "$lt_cv_aix_libpath_"; then
154270bb88ba4Smrg    lt_cv_aix_libpath_="/usr/lib:/lib"
154280bb88ba4Smrg  fi
15429eda3803bSmrg
15430a31a186aSmrgfi
15431eda3803bSmrg
154320bb88ba4Smrg  aix_libpath=$lt_cv_aix_libpath_
154330bb88ba4Smrgfi
15434eda3803bSmrg
15435a31a186aSmrg        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
154360bb88ba4Smrg        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"
15437a31a186aSmrg      else
15438a31a186aSmrg	if test "$host_cpu" = ia64; then
15439a31a186aSmrg	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15440a31a186aSmrg	  allow_undefined_flag="-z nodefs"
15441a31a186aSmrg	  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"
15442a31a186aSmrg	else
15443a31a186aSmrg	 # Determine the default libpath from the value encoded in an
15444a31a186aSmrg	 # empty executable.
154450bb88ba4Smrg	 if test "${lt_cv_aix_libpath+set}" = set; then
154460bb88ba4Smrg  aix_libpath=$lt_cv_aix_libpath
154470bb88ba4Smrgelse
154480bb88ba4Smrg  if ${lt_cv_aix_libpath_+:} false; then :
154490bb88ba4Smrg  $as_echo_n "(cached) " >&6
154500bb88ba4Smrgelse
154510bb88ba4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452a31a186aSmrg/* end confdefs.h.  */
15453eda3803bSmrg
15454a31a186aSmrgint
15455a31a186aSmrgmain ()
15456a31a186aSmrg{
15457eda3803bSmrg
15458a31a186aSmrg  ;
15459a31a186aSmrg  return 0;
15460a31a186aSmrg}
15461a31a186aSmrg_ACEOF
154620bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
15463eda3803bSmrg
154640bb88ba4Smrg  lt_aix_libpath_sed='
154650bb88ba4Smrg      /Import File Strings/,/^$/ {
154660bb88ba4Smrg	  /^0/ {
154670bb88ba4Smrg	      s/^0  *\([^ ]*\) *$/\1/
154680bb88ba4Smrg	      p
154690bb88ba4Smrg	  }
154700bb88ba4Smrg      }'
154710bb88ba4Smrg  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
154720bb88ba4Smrg  # Check for a 64-bit object if we didn't find anything.
154730bb88ba4Smrg  if test -z "$lt_cv_aix_libpath_"; then
154740bb88ba4Smrg    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
154750bb88ba4Smrg  fi
15476a31a186aSmrgfi
154770bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
154780bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
154790bb88ba4Smrg  if test -z "$lt_cv_aix_libpath_"; then
154800bb88ba4Smrg    lt_cv_aix_libpath_="/usr/lib:/lib"
154810bb88ba4Smrg  fi
15482eda3803bSmrg
15483a31a186aSmrgfi
15484eda3803bSmrg
154850bb88ba4Smrg  aix_libpath=$lt_cv_aix_libpath_
154860bb88ba4Smrgfi
15487eda3803bSmrg
15488a31a186aSmrg	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15489a31a186aSmrg	  # Warning - without using the other run time loading flags,
15490a31a186aSmrg	  # -berok will link without error, but may produce a broken library.
15491a31a186aSmrg	  no_undefined_flag=' ${wl}-bernotok'
15492a31a186aSmrg	  allow_undefined_flag=' ${wl}-berok'
154930bb88ba4Smrg	  if test "$with_gnu_ld" = yes; then
154940bb88ba4Smrg	    # We only use this code for GNU lds that support --whole-archive.
154950bb88ba4Smrg	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
154960bb88ba4Smrg	  else
154970bb88ba4Smrg	    # Exported symbols can be pulled into shared objects from archives
154980bb88ba4Smrg	    whole_archive_flag_spec='$convenience'
154990bb88ba4Smrg	  fi
15500a31a186aSmrg	  archive_cmds_need_lc=yes
15501a31a186aSmrg	  # This is similar to how AIX traditionally builds its shared libraries.
15502a31a186aSmrg	  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'
15503a31a186aSmrg	fi
15504a31a186aSmrg      fi
15505a31a186aSmrg      ;;
15506eda3803bSmrg
15507a31a186aSmrg    amigaos*)
15508a31a186aSmrg      case $host_cpu in
15509a31a186aSmrg      powerpc)
15510a31a186aSmrg            # see comment about AmigaOS4 .so support
15511a31a186aSmrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15512a31a186aSmrg            archive_expsym_cmds=''
15513a31a186aSmrg        ;;
15514a31a186aSmrg      m68k)
15515a31a186aSmrg            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)'
15516a31a186aSmrg            hardcode_libdir_flag_spec='-L$libdir'
15517a31a186aSmrg            hardcode_minus_L=yes
15518a31a186aSmrg        ;;
15519a31a186aSmrg      esac
15520a31a186aSmrg      ;;
15521eda3803bSmrg
15522a31a186aSmrg    bsdi[45]*)
15523a31a186aSmrg      export_dynamic_flag_spec=-rdynamic
15524a31a186aSmrg      ;;
15525eda3803bSmrg
15526a31a186aSmrg    cygwin* | mingw* | pw32* | cegcc*)
15527a31a186aSmrg      # When not using gcc, we currently assume that we are using
15528a31a186aSmrg      # Microsoft Visual C++.
15529a31a186aSmrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
15530a31a186aSmrg      # no search path for DLLs.
155310bb88ba4Smrg      case $cc_basename in
155320bb88ba4Smrg      cl*)
155330bb88ba4Smrg	# Native MSVC
155340bb88ba4Smrg	hardcode_libdir_flag_spec=' '
155350bb88ba4Smrg	allow_undefined_flag=unsupported
155360bb88ba4Smrg	always_export_symbols=yes
155370bb88ba4Smrg	file_list_spec='@'
155380bb88ba4Smrg	# Tell ltmain to make .lib files, not .a files.
155390bb88ba4Smrg	libext=lib
155400bb88ba4Smrg	# Tell ltmain to make .dll files, not .so files.
155410bb88ba4Smrg	shrext_cmds=".dll"
155420bb88ba4Smrg	# FIXME: Setting linknames here is a bad hack.
155430bb88ba4Smrg	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
155440bb88ba4Smrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
155450bb88ba4Smrg	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
155460bb88ba4Smrg	  else
155470bb88ba4Smrg	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
155480bb88ba4Smrg	  fi~
155490bb88ba4Smrg	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
155500bb88ba4Smrg	  linknames='
155510bb88ba4Smrg	# The linker will not automatically build a static lib if we build a DLL.
155520bb88ba4Smrg	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
155530bb88ba4Smrg	enable_shared_with_static_runtimes=yes
155540bb88ba4Smrg	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
155550bb88ba4Smrg	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
155560bb88ba4Smrg	# Don't use ranlib
155570bb88ba4Smrg	old_postinstall_cmds='chmod 644 $oldlib'
155580bb88ba4Smrg	postlink_cmds='lt_outputfile="@OUTPUT@"~
155590bb88ba4Smrg	  lt_tool_outputfile="@TOOL_OUTPUT@"~
155600bb88ba4Smrg	  case $lt_outputfile in
155610bb88ba4Smrg	    *.exe|*.EXE) ;;
155620bb88ba4Smrg	    *)
155630bb88ba4Smrg	      lt_outputfile="$lt_outputfile.exe"
155640bb88ba4Smrg	      lt_tool_outputfile="$lt_tool_outputfile.exe"
155650bb88ba4Smrg	      ;;
155660bb88ba4Smrg	  esac~
155670bb88ba4Smrg	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
155680bb88ba4Smrg	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
155690bb88ba4Smrg	    $RM "$lt_outputfile.manifest";
155700bb88ba4Smrg	  fi'
155710bb88ba4Smrg	;;
155720bb88ba4Smrg      *)
155730bb88ba4Smrg	# Assume MSVC wrapper
155740bb88ba4Smrg	hardcode_libdir_flag_spec=' '
155750bb88ba4Smrg	allow_undefined_flag=unsupported
155760bb88ba4Smrg	# Tell ltmain to make .lib files, not .a files.
155770bb88ba4Smrg	libext=lib
155780bb88ba4Smrg	# Tell ltmain to make .dll files, not .so files.
155790bb88ba4Smrg	shrext_cmds=".dll"
155800bb88ba4Smrg	# FIXME: Setting linknames here is a bad hack.
155810bb88ba4Smrg	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
155820bb88ba4Smrg	# The linker will automatically build a .lib file if we build a DLL.
155830bb88ba4Smrg	old_archive_from_new_cmds='true'
155840bb88ba4Smrg	# FIXME: Should let the user specify the lib program.
155850bb88ba4Smrg	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
155860bb88ba4Smrg	enable_shared_with_static_runtimes=yes
155870bb88ba4Smrg	;;
155880bb88ba4Smrg      esac
15589a31a186aSmrg      ;;
15590eda3803bSmrg
15591a31a186aSmrg    darwin* | rhapsody*)
15592eda3803bSmrg
15593eda3803bSmrg
15594a31a186aSmrg  archive_cmds_need_lc=no
15595a31a186aSmrg  hardcode_direct=no
15596a31a186aSmrg  hardcode_automatic=yes
15597a31a186aSmrg  hardcode_shlibpath_var=unsupported
155980bb88ba4Smrg  if test "$lt_cv_ld_force_load" = "yes"; then
155990bb88ba4Smrg    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\"`'
156000bb88ba4Smrg
156010bb88ba4Smrg  else
156020bb88ba4Smrg    whole_archive_flag_spec=''
156030bb88ba4Smrg  fi
15604a31a186aSmrg  link_all_deplibs=yes
15605a31a186aSmrg  allow_undefined_flag="$_lt_dar_allow_undefined"
15606a31a186aSmrg  case $cc_basename in
15607a31a186aSmrg     ifort*) _lt_dar_can_shared=yes ;;
15608a31a186aSmrg     *) _lt_dar_can_shared=$GCC ;;
15609643b027fSmrg  esac
15610a31a186aSmrg  if test "$_lt_dar_can_shared" = "yes"; then
156110bb88ba4Smrg    output_verbose_link_cmd=func_echo_all
15612a31a186aSmrg    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15613a31a186aSmrg    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15614a31a186aSmrg    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}"
15615a31a186aSmrg    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}"
15616eda3803bSmrg
15617a31a186aSmrg  else
15618a31a186aSmrg  ld_shlibs=no
15619a31a186aSmrg  fi
15620eda3803bSmrg
15621a31a186aSmrg      ;;
15622eda3803bSmrg
15623a31a186aSmrg    dgux*)
15624a31a186aSmrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15625a31a186aSmrg      hardcode_libdir_flag_spec='-L$libdir'
15626a31a186aSmrg      hardcode_shlibpath_var=no
15627643b027fSmrg      ;;
15628fe5e51b7Smrg
15629a31a186aSmrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15630a31a186aSmrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
15631a31a186aSmrg    # does not break anything, and helps significantly (at the cost of a little
15632a31a186aSmrg    # extra space).
15633a31a186aSmrg    freebsd2.2*)
15634a31a186aSmrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15635a31a186aSmrg      hardcode_libdir_flag_spec='-R$libdir'
15636a31a186aSmrg      hardcode_direct=yes
15637a31a186aSmrg      hardcode_shlibpath_var=no
15638a31a186aSmrg      ;;
15639fe5e51b7Smrg
15640a31a186aSmrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
156410bb88ba4Smrg    freebsd2.*)
15642a31a186aSmrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15643a31a186aSmrg      hardcode_direct=yes
15644a31a186aSmrg      hardcode_minus_L=yes
15645a31a186aSmrg      hardcode_shlibpath_var=no
15646a31a186aSmrg      ;;
15647fe5e51b7Smrg
15648a31a186aSmrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15649a31a186aSmrg    freebsd* | dragonfly*)
156500bb88ba4Smrg      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15651a31a186aSmrg      hardcode_libdir_flag_spec='-R$libdir'
15652a31a186aSmrg      hardcode_direct=yes
15653a31a186aSmrg      hardcode_shlibpath_var=no
15654a31a186aSmrg      ;;
15655643b027fSmrg
15656a31a186aSmrg    hpux9*)
15657a31a186aSmrg      if test "$GCC" = yes; then
156580bb88ba4Smrg	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'
15659a31a186aSmrg      else
15660a31a186aSmrg	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'
15661a31a186aSmrg      fi
15662a31a186aSmrg      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15663a31a186aSmrg      hardcode_libdir_separator=:
15664a31a186aSmrg      hardcode_direct=yes
15665643b027fSmrg
15666a31a186aSmrg      # hardcode_minus_L: Not really in the search PATH,
15667a31a186aSmrg      # but as the default location of the library.
15668a31a186aSmrg      hardcode_minus_L=yes
15669a31a186aSmrg      export_dynamic_flag_spec='${wl}-E'
15670a31a186aSmrg      ;;
15671643b027fSmrg
15672a31a186aSmrg    hpux10*)
156730bb88ba4Smrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
156740bb88ba4Smrg	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15675a31a186aSmrg      else
15676a31a186aSmrg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15677a31a186aSmrg      fi
15678a31a186aSmrg      if test "$with_gnu_ld" = no; then
15679a31a186aSmrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15680a31a186aSmrg	hardcode_libdir_separator=:
15681a31a186aSmrg	hardcode_direct=yes
15682a31a186aSmrg	hardcode_direct_absolute=yes
15683a31a186aSmrg	export_dynamic_flag_spec='${wl}-E'
15684a31a186aSmrg	# hardcode_minus_L: Not really in the search PATH,
15685a31a186aSmrg	# but as the default location of the library.
15686a31a186aSmrg	hardcode_minus_L=yes
15687a31a186aSmrg      fi
15688a31a186aSmrg      ;;
15689fe5e51b7Smrg
15690a31a186aSmrg    hpux11*)
156910bb88ba4Smrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15692a31a186aSmrg	case $host_cpu in
15693a31a186aSmrg	hppa*64*)
15694a31a186aSmrg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15695a31a186aSmrg	  ;;
15696a31a186aSmrg	ia64*)
156970bb88ba4Smrg	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15698a31a186aSmrg	  ;;
15699a31a186aSmrg	*)
157000bb88ba4Smrg	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15701a31a186aSmrg	  ;;
15702a31a186aSmrg	esac
15703a31a186aSmrg      else
15704a31a186aSmrg	case $host_cpu in
15705a31a186aSmrg	hppa*64*)
15706a31a186aSmrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15707a31a186aSmrg	  ;;
15708a31a186aSmrg	ia64*)
15709a31a186aSmrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15710a31a186aSmrg	  ;;
15711a31a186aSmrg	*)
157120bb88ba4Smrg
157130bb88ba4Smrg	  # Older versions of the 11.00 compiler do not understand -b yet
157140bb88ba4Smrg	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
157150bb88ba4Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
157160bb88ba4Smrg$as_echo_n "checking if $CC understands -b... " >&6; }
157170bb88ba4Smrgif ${lt_cv_prog_compiler__b+:} false; then :
157180bb88ba4Smrg  $as_echo_n "(cached) " >&6
157190bb88ba4Smrgelse
157200bb88ba4Smrg  lt_cv_prog_compiler__b=no
157210bb88ba4Smrg   save_LDFLAGS="$LDFLAGS"
157220bb88ba4Smrg   LDFLAGS="$LDFLAGS -b"
157230bb88ba4Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
157240bb88ba4Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
157250bb88ba4Smrg     # The linker can only warn and ignore the option if not recognized
157260bb88ba4Smrg     # So say no if there are warnings
157270bb88ba4Smrg     if test -s conftest.err; then
157280bb88ba4Smrg       # Append any errors to the config.log.
157290bb88ba4Smrg       cat conftest.err 1>&5
157300bb88ba4Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
157310bb88ba4Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
157320bb88ba4Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
157330bb88ba4Smrg         lt_cv_prog_compiler__b=yes
157340bb88ba4Smrg       fi
157350bb88ba4Smrg     else
157360bb88ba4Smrg       lt_cv_prog_compiler__b=yes
157370bb88ba4Smrg     fi
157380bb88ba4Smrg   fi
157390bb88ba4Smrg   $RM -r conftest*
157400bb88ba4Smrg   LDFLAGS="$save_LDFLAGS"
157410bb88ba4Smrg
157420bb88ba4Smrgfi
157430bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
157440bb88ba4Smrg$as_echo "$lt_cv_prog_compiler__b" >&6; }
157450bb88ba4Smrg
157460bb88ba4Smrgif test x"$lt_cv_prog_compiler__b" = xyes; then
157470bb88ba4Smrg    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
157480bb88ba4Smrgelse
157490bb88ba4Smrg    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
157500bb88ba4Smrgfi
157510bb88ba4Smrg
15752a31a186aSmrg	  ;;
15753a31a186aSmrg	esac
15754a31a186aSmrg      fi
15755a31a186aSmrg      if test "$with_gnu_ld" = no; then
15756a31a186aSmrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15757a31a186aSmrg	hardcode_libdir_separator=:
15758643b027fSmrg
15759a31a186aSmrg	case $host_cpu in
15760a31a186aSmrg	hppa*64*|ia64*)
15761a31a186aSmrg	  hardcode_direct=no
15762a31a186aSmrg	  hardcode_shlibpath_var=no
15763a31a186aSmrg	  ;;
15764a31a186aSmrg	*)
15765a31a186aSmrg	  hardcode_direct=yes
15766a31a186aSmrg	  hardcode_direct_absolute=yes
15767a31a186aSmrg	  export_dynamic_flag_spec='${wl}-E'
15768643b027fSmrg
15769a31a186aSmrg	  # hardcode_minus_L: Not really in the search PATH,
15770a31a186aSmrg	  # but as the default location of the library.
15771a31a186aSmrg	  hardcode_minus_L=yes
15772a31a186aSmrg	  ;;
15773a31a186aSmrg	esac
15774643b027fSmrg      fi
15775a31a186aSmrg      ;;
15776fe5e51b7Smrg
15777a31a186aSmrg    irix5* | irix6* | nonstopux*)
15778a31a186aSmrg      if test "$GCC" = yes; then
157790bb88ba4Smrg	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'
15780a31a186aSmrg	# Try to use the -exported_symbol ld option, if it does not
15781a31a186aSmrg	# work, assume that -exports_file does not work either and
15782a31a186aSmrg	# implicitly export all symbols.
157830bb88ba4Smrg	# This should be the same for all languages, so no per-tag cache variable.
157840bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
157850bb88ba4Smrg$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
157860bb88ba4Smrgif ${lt_cv_irix_exported_symbol+:} false; then :
157870bb88ba4Smrg  $as_echo_n "(cached) " >&6
157880bb88ba4Smrgelse
157890bb88ba4Smrg  save_LDFLAGS="$LDFLAGS"
157900bb88ba4Smrg	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
157910bb88ba4Smrg	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
157920bb88ba4Smrg/* end confdefs.h.  */
157930bb88ba4Smrgint foo (void) { return 0; }
15794643b027fSmrg_ACEOF
157950bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
157960bb88ba4Smrg  lt_cv_irix_exported_symbol=yes
15797643b027fSmrgelse
157980bb88ba4Smrg  lt_cv_irix_exported_symbol=no
15799643b027fSmrgfi
158000bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
158010bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
158020bb88ba4Smrg           LDFLAGS="$save_LDFLAGS"
158030bb88ba4Smrgfi
158040bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
158050bb88ba4Smrg$as_echo "$lt_cv_irix_exported_symbol" >&6; }
158060bb88ba4Smrg	if test "$lt_cv_irix_exported_symbol" = yes; then
158070bb88ba4Smrg          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'
158080bb88ba4Smrg	fi
15809fe5e51b7Smrg      else
158100bb88ba4Smrg	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'
158110bb88ba4Smrg	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'
15812a31a186aSmrg      fi
15813a31a186aSmrg      archive_cmds_need_lc='no'
15814a31a186aSmrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15815a31a186aSmrg      hardcode_libdir_separator=:
15816a31a186aSmrg      inherit_rpath=yes
15817a31a186aSmrg      link_all_deplibs=yes
15818a31a186aSmrg      ;;
15819643b027fSmrg
15820a31a186aSmrg    netbsd*)
15821a31a186aSmrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15822a31a186aSmrg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15823a31a186aSmrg      else
15824a31a186aSmrg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15825fe5e51b7Smrg      fi
15826a31a186aSmrg      hardcode_libdir_flag_spec='-R$libdir'
15827a31a186aSmrg      hardcode_direct=yes
15828a31a186aSmrg      hardcode_shlibpath_var=no
15829a31a186aSmrg      ;;
15830fe5e51b7Smrg
15831a31a186aSmrg    newsos6)
15832a31a186aSmrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15833a31a186aSmrg      hardcode_direct=yes
15834a31a186aSmrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15835a31a186aSmrg      hardcode_libdir_separator=:
15836a31a186aSmrg      hardcode_shlibpath_var=no
15837a31a186aSmrg      ;;
15838fe5e51b7Smrg
15839a31a186aSmrg    *nto* | *qnx*)
15840a31a186aSmrg      ;;
15841fe5e51b7Smrg
15842a31a186aSmrg    openbsd*)
15843a31a186aSmrg      if test -f /usr/libexec/ld.so; then
15844a31a186aSmrg	hardcode_direct=yes
15845a31a186aSmrg	hardcode_shlibpath_var=no
15846a31a186aSmrg	hardcode_direct_absolute=yes
15847a31a186aSmrg	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15848a31a186aSmrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15849a31a186aSmrg	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15850a31a186aSmrg	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15851a31a186aSmrg	  export_dynamic_flag_spec='${wl}-E'
15852a31a186aSmrg	else
15853a31a186aSmrg	  case $host_os in
15854a31a186aSmrg	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15855a31a186aSmrg	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15856a31a186aSmrg	     hardcode_libdir_flag_spec='-R$libdir'
15857a31a186aSmrg	     ;;
15858a31a186aSmrg	   *)
15859a31a186aSmrg	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15860a31a186aSmrg	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15861a31a186aSmrg	     ;;
15862a31a186aSmrg	  esac
15863a31a186aSmrg	fi
15864643b027fSmrg      else
15865a31a186aSmrg	ld_shlibs=no
15866643b027fSmrg      fi
15867fe5e51b7Smrg      ;;
15868a31a186aSmrg
15869a31a186aSmrg    os2*)
15870a31a186aSmrg      hardcode_libdir_flag_spec='-L$libdir'
15871a31a186aSmrg      hardcode_minus_L=yes
15872a31a186aSmrg      allow_undefined_flag=unsupported
158730bb88ba4Smrg      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'
15874a31a186aSmrg      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15875fe5e51b7Smrg      ;;
15876a31a186aSmrg
15877a31a186aSmrg    osf3*)
15878a31a186aSmrg      if test "$GCC" = yes; then
15879a31a186aSmrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
158800bb88ba4Smrg	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'
15881643b027fSmrg      else
15882a31a186aSmrg	allow_undefined_flag=' -expect_unresolved \*'
158830bb88ba4Smrg	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'
15884643b027fSmrg      fi
15885a31a186aSmrg      archive_cmds_need_lc='no'
15886a31a186aSmrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15887a31a186aSmrg      hardcode_libdir_separator=:
15888643b027fSmrg      ;;
15889643b027fSmrg
15890a31a186aSmrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15891a31a186aSmrg      if test "$GCC" = yes; then
15892a31a186aSmrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
158930bb88ba4Smrg	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'
15894a31a186aSmrg	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15895a31a186aSmrg      else
15896a31a186aSmrg	allow_undefined_flag=' -expect_unresolved \*'
158970bb88ba4Smrg	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'
15898a31a186aSmrg	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~
158990bb88ba4Smrg	$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'
15900a31a186aSmrg
15901a31a186aSmrg	# Both c and cxx compiler support -rpath directly
15902a31a186aSmrg	hardcode_libdir_flag_spec='-rpath $libdir'
15903a31a186aSmrg      fi
15904a31a186aSmrg      archive_cmds_need_lc='no'
15905a31a186aSmrg      hardcode_libdir_separator=:
15906643b027fSmrg      ;;
15907643b027fSmrg
15908a31a186aSmrg    solaris*)
15909a31a186aSmrg      no_undefined_flag=' -z defs'
15910a31a186aSmrg      if test "$GCC" = yes; then
15911a31a186aSmrg	wlarc='${wl}'
159120bb88ba4Smrg	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15913a31a186aSmrg	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
159140bb88ba4Smrg	  $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'
15915a31a186aSmrg      else
15916a31a186aSmrg	case `$CC -V 2>&1` in
15917a31a186aSmrg	*"Compilers 5.0"*)
15918a31a186aSmrg	  wlarc=''
15919a31a186aSmrg	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15920a31a186aSmrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15921a31a186aSmrg	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15922643b027fSmrg	  ;;
15923643b027fSmrg	*)
15924a31a186aSmrg	  wlarc='${wl}'
15925a31a186aSmrg	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15926a31a186aSmrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15927a31a186aSmrg	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15928643b027fSmrg	  ;;
15929643b027fSmrg	esac
15930a31a186aSmrg      fi
15931a31a186aSmrg      hardcode_libdir_flag_spec='-R$libdir'
15932a31a186aSmrg      hardcode_shlibpath_var=no
15933a31a186aSmrg      case $host_os in
15934a31a186aSmrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
15935643b027fSmrg      *)
15936a31a186aSmrg	# The compiler driver will combine and reorder linker options,
15937a31a186aSmrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15938a31a186aSmrg	# but is careful enough not to reorder.
15939a31a186aSmrg	# Supported since Solaris 2.6 (maybe 2.5.1?)
15940a31a186aSmrg	if test "$GCC" = yes; then
15941a31a186aSmrg	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15942643b027fSmrg	else
15943a31a186aSmrg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15944643b027fSmrg	fi
15945643b027fSmrg	;;
15946a31a186aSmrg      esac
15947a31a186aSmrg      link_all_deplibs=yes
15948a31a186aSmrg      ;;
15949fe5e51b7Smrg
15950a31a186aSmrg    sunos4*)
15951a31a186aSmrg      if test "x$host_vendor" = xsequent; then
15952a31a186aSmrg	# Use $CC to link under sequent, because it throws in some extra .o
15953a31a186aSmrg	# files that make .init and .fini sections work.
15954a31a186aSmrg	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15955a31a186aSmrg      else
15956a31a186aSmrg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15957643b027fSmrg      fi
15958a31a186aSmrg      hardcode_libdir_flag_spec='-L$libdir'
15959a31a186aSmrg      hardcode_direct=yes
15960a31a186aSmrg      hardcode_minus_L=yes
15961a31a186aSmrg      hardcode_shlibpath_var=no
15962a31a186aSmrg      ;;
15963643b027fSmrg
15964a31a186aSmrg    sysv4)
15965a31a186aSmrg      case $host_vendor in
15966a31a186aSmrg	sni)
15967a31a186aSmrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15968a31a186aSmrg	  hardcode_direct=yes # is this really true???
15969643b027fSmrg	;;
15970a31a186aSmrg	siemens)
15971a31a186aSmrg	  ## LD is ld it makes a PLAMLIB
15972a31a186aSmrg	  ## CC just makes a GrossModule.
15973a31a186aSmrg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15974a31a186aSmrg	  reload_cmds='$CC -r -o $output$reload_objs'
15975a31a186aSmrg	  hardcode_direct=no
15976a31a186aSmrg        ;;
15977a31a186aSmrg	motorola)
15978a31a186aSmrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15979a31a186aSmrg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15980643b027fSmrg	;;
15981a31a186aSmrg      esac
15982a31a186aSmrg      runpath_var='LD_RUN_PATH'
15983a31a186aSmrg      hardcode_shlibpath_var=no
15984a31a186aSmrg      ;;
15985fe5e51b7Smrg
15986a31a186aSmrg    sysv4.3*)
15987a31a186aSmrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15988a31a186aSmrg      hardcode_shlibpath_var=no
15989a31a186aSmrg      export_dynamic_flag_spec='-Bexport'
15990a31a186aSmrg      ;;
15991643b027fSmrg
15992a31a186aSmrg    sysv4*MP*)
15993a31a186aSmrg      if test -d /usr/nec; then
15994a31a186aSmrg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15995a31a186aSmrg	hardcode_shlibpath_var=no
15996a31a186aSmrg	runpath_var=LD_RUN_PATH
15997a31a186aSmrg	hardcode_runpath_var=yes
15998a31a186aSmrg	ld_shlibs=yes
15999a31a186aSmrg      fi
16000a31a186aSmrg      ;;
16001643b027fSmrg
16002a31a186aSmrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16003a31a186aSmrg      no_undefined_flag='${wl}-z,text'
16004a31a186aSmrg      archive_cmds_need_lc=no
16005a31a186aSmrg      hardcode_shlibpath_var=no
16006a31a186aSmrg      runpath_var='LD_RUN_PATH'
16007643b027fSmrg
16008a31a186aSmrg      if test "$GCC" = yes; then
16009a31a186aSmrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16010a31a186aSmrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16011a31a186aSmrg      else
16012a31a186aSmrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16013a31a186aSmrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16014a31a186aSmrg      fi
16015a31a186aSmrg      ;;
16016fe5e51b7Smrg
16017a31a186aSmrg    sysv5* | sco3.2v5* | sco5v6*)
16018a31a186aSmrg      # Note: We can NOT use -z defs as we might desire, because we do not
16019a31a186aSmrg      # link with -lc, and that would cause any symbols used from libc to
16020a31a186aSmrg      # always be unresolved, which means just about no library would
16021a31a186aSmrg      # ever link correctly.  If we're not using GNU ld we use -z text
16022a31a186aSmrg      # though, which does catch some bad symbols but isn't as heavy-handed
16023a31a186aSmrg      # as -z defs.
16024a31a186aSmrg      no_undefined_flag='${wl}-z,text'
16025a31a186aSmrg      allow_undefined_flag='${wl}-z,nodefs'
16026a31a186aSmrg      archive_cmds_need_lc=no
16027a31a186aSmrg      hardcode_shlibpath_var=no
16028a31a186aSmrg      hardcode_libdir_flag_spec='${wl}-R,$libdir'
16029a31a186aSmrg      hardcode_libdir_separator=':'
16030a31a186aSmrg      link_all_deplibs=yes
16031a31a186aSmrg      export_dynamic_flag_spec='${wl}-Bexport'
16032a31a186aSmrg      runpath_var='LD_RUN_PATH'
16033fe5e51b7Smrg
16034a31a186aSmrg      if test "$GCC" = yes; then
16035a31a186aSmrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16036a31a186aSmrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16037a31a186aSmrg      else
16038a31a186aSmrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16039a31a186aSmrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16040a31a186aSmrg      fi
16041a31a186aSmrg      ;;
16042eda3803bSmrg
16043a31a186aSmrg    uts4*)
16044a31a186aSmrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16045a31a186aSmrg      hardcode_libdir_flag_spec='-L$libdir'
16046a31a186aSmrg      hardcode_shlibpath_var=no
16047a31a186aSmrg      ;;
16048eda3803bSmrg
16049a31a186aSmrg    *)
16050a31a186aSmrg      ld_shlibs=no
16051a31a186aSmrg      ;;
16052643b027fSmrg    esac
16053eda3803bSmrg
16054a31a186aSmrg    if test x$host_vendor = xsni; then
16055a31a186aSmrg      case $host in
16056a31a186aSmrg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16057a31a186aSmrg	export_dynamic_flag_spec='${wl}-Blargedynsym'
16058a31a186aSmrg	;;
16059a31a186aSmrg      esac
16060a31a186aSmrg    fi
16061a31a186aSmrg  fi
16062eda3803bSmrg
160630bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16064a31a186aSmrg$as_echo "$ld_shlibs" >&6; }
16065a31a186aSmrgtest "$ld_shlibs" = no && can_build_shared=no
16066eda3803bSmrg
16067a31a186aSmrgwith_gnu_ld=$with_gnu_ld
16068eda3803bSmrg
16069eda3803bSmrg
16070fe5e51b7Smrg
16071eda3803bSmrg
16072fe5e51b7Smrg
16073fe5e51b7Smrg
16074fe5e51b7Smrg
16075fe5e51b7Smrg
16076fe5e51b7Smrg
16077fe5e51b7Smrg
16078fe5e51b7Smrg
16079fe5e51b7Smrg
16080fe5e51b7Smrg
16081fe5e51b7Smrg
16082fe5e51b7Smrg
16083a31a186aSmrg#
16084a31a186aSmrg# Do we need to explicitly link libc?
16085a31a186aSmrg#
16086a31a186aSmrgcase "x$archive_cmds_need_lc" in
16087a31a186aSmrgx|xyes)
16088a31a186aSmrg  # Assume -lc should be added
16089a31a186aSmrg  archive_cmds_need_lc=yes
16090643b027fSmrg
16091a31a186aSmrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
16092a31a186aSmrg    case $archive_cmds in
16093a31a186aSmrg    *'~'*)
16094a31a186aSmrg      # FIXME: we may have to deal with multi-command sequences.
16095643b027fSmrg      ;;
16096a31a186aSmrg    '$CC '*)
16097a31a186aSmrg      # Test whether the compiler implicitly links with -lc since on some
16098a31a186aSmrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16099a31a186aSmrg      # to ld, don't add -lc before -lgcc.
161000bb88ba4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16101a31a186aSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
161020bb88ba4Smrgif ${lt_cv_archive_cmds_need_lc+:} false; then :
161030bb88ba4Smrg  $as_echo_n "(cached) " >&6
161040bb88ba4Smrgelse
161050bb88ba4Smrg  $RM conftest*
161060bb88ba4Smrg	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16107a31a186aSmrg
161080bb88ba4Smrg	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16109a31a186aSmrg  (eval $ac_compile) 2>&5
16110a31a186aSmrg  ac_status=$?
161110bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
161120bb88ba4Smrg  test $ac_status = 0; } 2>conftest.err; then
161130bb88ba4Smrg	  soname=conftest
161140bb88ba4Smrg	  lib=conftest
161150bb88ba4Smrg	  libobjs=conftest.$ac_objext
161160bb88ba4Smrg	  deplibs=
161170bb88ba4Smrg	  wl=$lt_prog_compiler_wl
161180bb88ba4Smrg	  pic_flag=$lt_prog_compiler_pic
161190bb88ba4Smrg	  compiler_flags=-v
161200bb88ba4Smrg	  linker_flags=-v
161210bb88ba4Smrg	  verstring=
161220bb88ba4Smrg	  output_objdir=.
161230bb88ba4Smrg	  libname=conftest
161240bb88ba4Smrg	  lt_save_allow_undefined_flag=$allow_undefined_flag
161250bb88ba4Smrg	  allow_undefined_flag=
161260bb88ba4Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16127a31a186aSmrg  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16128a31a186aSmrg  ac_status=$?
161290bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
161300bb88ba4Smrg  test $ac_status = 0; }
161310bb88ba4Smrg	  then
161320bb88ba4Smrg	    lt_cv_archive_cmds_need_lc=no
161330bb88ba4Smrg	  else
161340bb88ba4Smrg	    lt_cv_archive_cmds_need_lc=yes
161350bb88ba4Smrg	  fi
161360bb88ba4Smrg	  allow_undefined_flag=$lt_save_allow_undefined_flag
161370bb88ba4Smrg	else
161380bb88ba4Smrg	  cat conftest.err 1>&5
161390bb88ba4Smrg	fi
161400bb88ba4Smrg	$RM conftest*
161410bb88ba4Smrg
161420bb88ba4Smrgfi
161430bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
161440bb88ba4Smrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
161450bb88ba4Smrg      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16146643b027fSmrg      ;;
16147643b027fSmrg    esac
16148643b027fSmrg  fi
16149a31a186aSmrg  ;;
16150a31a186aSmrgesac
16151eda3803bSmrg
16152eda3803bSmrg
16153eda3803bSmrg
16154eda3803bSmrg
16155eda3803bSmrg
16156eda3803bSmrg
16157eda3803bSmrg
16158eda3803bSmrg
16159eda3803bSmrg
16160eda3803bSmrg
16161eda3803bSmrg
16162eda3803bSmrg
16163eda3803bSmrg
16164eda3803bSmrg
16165eda3803bSmrg
16166eda3803bSmrg
16167eda3803bSmrg
16168eda3803bSmrg
16169eda3803bSmrg
16170eda3803bSmrg
16171eda3803bSmrg
16172eda3803bSmrg
16173eda3803bSmrg
16174eda3803bSmrg
16175eda3803bSmrg
16176eda3803bSmrg
16177eda3803bSmrg
16178eda3803bSmrg
16179eda3803bSmrg
16180eda3803bSmrg
16181eda3803bSmrg
16182eda3803bSmrg
16183eda3803bSmrg
16184eda3803bSmrg
16185eda3803bSmrg
16186eda3803bSmrg
16187eda3803bSmrg
16188eda3803bSmrg
16189eda3803bSmrg
16190eda3803bSmrg
16191eda3803bSmrg
16192eda3803bSmrg
16193eda3803bSmrg
16194eda3803bSmrg
16195eda3803bSmrg
16196eda3803bSmrg
16197eda3803bSmrg
16198eda3803bSmrg
16199eda3803bSmrg
16200eda3803bSmrg
16201eda3803bSmrg
16202eda3803bSmrg
16203eda3803bSmrg
16204eda3803bSmrg
16205eda3803bSmrg
16206eda3803bSmrg
16207fe5e51b7Smrg
16208fe5e51b7Smrg
16209fe5e51b7Smrg
16210fe5e51b7Smrg
16211fe5e51b7Smrg
16212fe5e51b7Smrg
16213fe5e51b7Smrg
16214fe5e51b7Smrg
16215fe5e51b7Smrg
16216fe5e51b7Smrg
16217fe5e51b7Smrg
16218fe5e51b7Smrg
16219fe5e51b7Smrg
16220fe5e51b7Smrg
16221fe5e51b7Smrg
16222fe5e51b7Smrg
16223fe5e51b7Smrg
16224fe5e51b7Smrg
16225fe5e51b7Smrg
16226fe5e51b7Smrg
16227fe5e51b7Smrg
16228fe5e51b7Smrg
16229fe5e51b7Smrg
16230fe5e51b7Smrg
16231fe5e51b7Smrg
16232fe5e51b7Smrg
16233fe5e51b7Smrg
16234fe5e51b7Smrg
16235fe5e51b7Smrg
16236fe5e51b7Smrg
16237fe5e51b7Smrg
16238fe5e51b7Smrg
16239fe5e51b7Smrg
16240fe5e51b7Smrg
16241fe5e51b7Smrg
16242fe5e51b7Smrg
16243fe5e51b7Smrg
16244fe5e51b7Smrg
16245fe5e51b7Smrg
16246643b027fSmrg
16247643b027fSmrg
16248643b027fSmrg
16249643b027fSmrg
16250643b027fSmrg
16251643b027fSmrg
16252643b027fSmrg
16253643b027fSmrg
16254643b027fSmrg
16255643b027fSmrg
16256643b027fSmrg
16257643b027fSmrg
16258643b027fSmrg
16259643b027fSmrg
16260643b027fSmrg
16261643b027fSmrg
16262643b027fSmrg
16263643b027fSmrg
16264643b027fSmrg
16265643b027fSmrg
16266643b027fSmrg
16267643b027fSmrg
16268643b027fSmrg
16269643b027fSmrg
16270643b027fSmrg
16271643b027fSmrg
16272643b027fSmrg
16273643b027fSmrg
16274643b027fSmrg
16275643b027fSmrg
16276643b027fSmrg
16277643b027fSmrg
16278643b027fSmrg
16279643b027fSmrg
16280643b027fSmrg
16281643b027fSmrg
16282643b027fSmrg
16283643b027fSmrg
16284643b027fSmrg
16285643b027fSmrg
16286643b027fSmrg
16287643b027fSmrg
16288643b027fSmrg
16289643b027fSmrg
16290643b027fSmrg
16291643b027fSmrg
16292643b027fSmrg
16293643b027fSmrg
16294643b027fSmrg
16295643b027fSmrg
16296643b027fSmrg
16297643b027fSmrg
16298643b027fSmrg
16299643b027fSmrg
16300643b027fSmrg
16301643b027fSmrg
16302643b027fSmrg
163030bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16304a31a186aSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
16305fe5e51b7Smrg
16306a31a186aSmrgif test "$GCC" = yes; then
16307a31a186aSmrg  case $host_os in
16308a31a186aSmrg    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16309a31a186aSmrg    *) lt_awk_arg="/^libraries:/" ;;
16310a31a186aSmrg  esac
163110bb88ba4Smrg  case $host_os in
163120bb88ba4Smrg    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
163130bb88ba4Smrg    *) lt_sed_strip_eq="s,=/,/,g" ;;
163140bb88ba4Smrg  esac
163150bb88ba4Smrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
163160bb88ba4Smrg  case $lt_search_path_spec in
163170bb88ba4Smrg  *\;*)
16318a31a186aSmrg    # if the path contains ";" then we assume it to be the separator
16319a31a186aSmrg    # otherwise default to the standard path separator (i.e. ":") - it is
16320a31a186aSmrg    # assumed that no part of a normal pathname contains ";" but that should
16321a31a186aSmrg    # okay in the real world where ";" in dirpaths is itself problematic.
163220bb88ba4Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
163230bb88ba4Smrg    ;;
163240bb88ba4Smrg  *)
163250bb88ba4Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
163260bb88ba4Smrg    ;;
163270bb88ba4Smrg  esac
16328a31a186aSmrg  # Ok, now we have the path, separated by spaces, we can step through it
16329a31a186aSmrg  # and add multilib dir if necessary.
16330a31a186aSmrg  lt_tmp_lt_search_path_spec=
16331a31a186aSmrg  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16332a31a186aSmrg  for lt_sys_path in $lt_search_path_spec; do
16333a31a186aSmrg    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16334a31a186aSmrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16335a31a186aSmrg    else
16336a31a186aSmrg      test -d "$lt_sys_path" && \
16337a31a186aSmrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16338a31a186aSmrg    fi
16339a31a186aSmrg  done
163400bb88ba4Smrg  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16341a31a186aSmrgBEGIN {RS=" "; FS="/|\n";} {
16342a31a186aSmrg  lt_foo="";
16343a31a186aSmrg  lt_count=0;
16344a31a186aSmrg  for (lt_i = NF; lt_i > 0; lt_i--) {
16345a31a186aSmrg    if ($lt_i != "" && $lt_i != ".") {
16346a31a186aSmrg      if ($lt_i == "..") {
16347a31a186aSmrg        lt_count++;
16348a31a186aSmrg      } else {
16349a31a186aSmrg        if (lt_count == 0) {
16350a31a186aSmrg          lt_foo="/" $lt_i lt_foo;
16351a31a186aSmrg        } else {
16352a31a186aSmrg          lt_count--;
16353a31a186aSmrg        }
16354a31a186aSmrg      }
16355a31a186aSmrg    }
16356a31a186aSmrg  }
16357a31a186aSmrg  if (lt_foo != "") { lt_freq[lt_foo]++; }
16358a31a186aSmrg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16359a31a186aSmrg}'`
163600bb88ba4Smrg  # AWK program above erroneously prepends '/' to C:/dos/paths
163610bb88ba4Smrg  # for these hosts.
163620bb88ba4Smrg  case $host_os in
163630bb88ba4Smrg    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
163640bb88ba4Smrg      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
163650bb88ba4Smrg  esac
163660bb88ba4Smrg  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16367a31a186aSmrgelse
16368a31a186aSmrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16369a31a186aSmrgfi
16370a31a186aSmrglibrary_names_spec=
16371a31a186aSmrglibname_spec='lib$name'
16372a31a186aSmrgsoname_spec=
16373a31a186aSmrgshrext_cmds=".so"
16374a31a186aSmrgpostinstall_cmds=
16375a31a186aSmrgpostuninstall_cmds=
16376a31a186aSmrgfinish_cmds=
16377a31a186aSmrgfinish_eval=
16378a31a186aSmrgshlibpath_var=
16379a31a186aSmrgshlibpath_overrides_runpath=unknown
16380a31a186aSmrgversion_type=none
16381a31a186aSmrgdynamic_linker="$host_os ld.so"
16382a31a186aSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
16383a31a186aSmrgneed_lib_prefix=unknown
16384a31a186aSmrghardcode_into_libs=no
16385643b027fSmrg
16386a31a186aSmrg# when you set need_version to no, make sure it does not cause -set_version
16387a31a186aSmrg# flags to be left without arguments
16388a31a186aSmrgneed_version=unknown
16389643b027fSmrg
16390643b027fSmrgcase $host_os in
16391643b027fSmrgaix3*)
163920bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
16393a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16394a31a186aSmrg  shlibpath_var=LIBPATH
16395a31a186aSmrg
16396a31a186aSmrg  # AIX 3 has no versioning support, so we append a major version to the name.
16397a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
16398643b027fSmrg  ;;
16399a31a186aSmrg
16400643b027fSmrgaix[4-9]*)
164010bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
16402a31a186aSmrg  need_lib_prefix=no
16403a31a186aSmrg  need_version=no
16404a31a186aSmrg  hardcode_into_libs=yes
16405a31a186aSmrg  if test "$host_cpu" = ia64; then
16406a31a186aSmrg    # AIX 5 supports IA64
16407a31a186aSmrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16408a31a186aSmrg    shlibpath_var=LD_LIBRARY_PATH
16409a31a186aSmrg  else
16410a31a186aSmrg    # With GCC up to 2.95.x, collect2 would create an import file
16411a31a186aSmrg    # for dependence libraries.  The import file would start with
16412a31a186aSmrg    # the line `#! .'.  This would cause the generated library to
16413a31a186aSmrg    # depend on `.', always an invalid library.  This was fixed in
16414a31a186aSmrg    # development snapshots of GCC prior to 3.0.
16415a31a186aSmrg    case $host_os in
16416a31a186aSmrg      aix4 | aix4.[01] | aix4.[01].*)
16417a31a186aSmrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16418a31a186aSmrg	   echo ' yes '
16419a31a186aSmrg	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16420a31a186aSmrg	:
16421a31a186aSmrg      else
16422a31a186aSmrg	can_build_shared=no
16423a31a186aSmrg      fi
16424a31a186aSmrg      ;;
16425a31a186aSmrg    esac
16426a31a186aSmrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16427a31a186aSmrg    # soname into executable. Probably we can add versioning support to
16428a31a186aSmrg    # collect2, so additional links can be useful in future.
16429a31a186aSmrg    if test "$aix_use_runtimelinking" = yes; then
16430a31a186aSmrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16431a31a186aSmrg      # instead of lib<name>.a to let people know that these are not
16432a31a186aSmrg      # typical AIX shared libraries.
16433a31a186aSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434a31a186aSmrg    else
16435a31a186aSmrg      # We preserve .a as extension for shared libraries through AIX4.2
16436a31a186aSmrg      # and later when we are not doing run time linking.
16437a31a186aSmrg      library_names_spec='${libname}${release}.a $libname.a'
16438a31a186aSmrg      soname_spec='${libname}${release}${shared_ext}$major'
16439a31a186aSmrg    fi
16440a31a186aSmrg    shlibpath_var=LIBPATH
16441643b027fSmrg  fi
16442643b027fSmrg  ;;
16443643b027fSmrg
16444a31a186aSmrgamigaos*)
16445a31a186aSmrg  case $host_cpu in
16446a31a186aSmrg  powerpc)
16447a31a186aSmrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
16448a31a186aSmrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16449a31a186aSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16450a31a186aSmrg    ;;
16451a31a186aSmrg  m68k)
16452a31a186aSmrg    library_names_spec='$libname.ixlibrary $libname.a'
16453a31a186aSmrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
164540bb88ba4Smrg    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'
16455a31a186aSmrg    ;;
16456a31a186aSmrg  esac
16457a31a186aSmrg  ;;
16458643b027fSmrg
16459a31a186aSmrgbeos*)
16460a31a186aSmrg  library_names_spec='${libname}${shared_ext}'
16461a31a186aSmrg  dynamic_linker="$host_os ld.so"
16462a31a186aSmrg  shlibpath_var=LIBRARY_PATH
16463a31a186aSmrg  ;;
16464643b027fSmrg
16465a31a186aSmrgbsdi[45]*)
164660bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
16467a31a186aSmrg  need_version=no
16468a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
16470a31a186aSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16471a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16472a31a186aSmrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16473a31a186aSmrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16474a31a186aSmrg  # the default ld.so.conf also contains /usr/contrib/lib and
16475a31a186aSmrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16476a31a186aSmrg  # libtool to hard-code these into programs
16477a31a186aSmrg  ;;
16478643b027fSmrg
16479a31a186aSmrgcygwin* | mingw* | pw32* | cegcc*)
16480a31a186aSmrg  version_type=windows
16481a31a186aSmrg  shrext_cmds=".dll"
16482a31a186aSmrg  need_version=no
16483a31a186aSmrg  need_lib_prefix=no
16484643b027fSmrg
164850bb88ba4Smrg  case $GCC,$cc_basename in
164860bb88ba4Smrg  yes,*)
164870bb88ba4Smrg    # gcc
16488a31a186aSmrg    library_names_spec='$libname.dll.a'
16489a31a186aSmrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16490a31a186aSmrg    postinstall_cmds='base_file=`basename \${file}`~
16491a31a186aSmrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16492a31a186aSmrg      dldir=$destdir/`dirname \$dlpath`~
16493a31a186aSmrg      test -d \$dldir || mkdir -p \$dldir~
16494a31a186aSmrg      $install_prog $dir/$dlname \$dldir/$dlname~
16495a31a186aSmrg      chmod a+x \$dldir/$dlname~
16496a31a186aSmrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16497a31a186aSmrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16498a31a186aSmrg      fi'
16499a31a186aSmrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16500a31a186aSmrg      dlpath=$dir/\$dldll~
16501a31a186aSmrg       $RM \$dlpath'
16502a31a186aSmrg    shlibpath_overrides_runpath=yes
16503643b027fSmrg
16504643b027fSmrg    case $host_os in
16505a31a186aSmrg    cygwin*)
16506a31a186aSmrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16507a31a186aSmrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
165080bb88ba4Smrg
165090bb88ba4Smrg      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16510643b027fSmrg      ;;
16511a31a186aSmrg    mingw* | cegcc*)
16512a31a186aSmrg      # MinGW DLLs use traditional 'lib' prefix
16513a31a186aSmrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16514643b027fSmrg      ;;
16515a31a186aSmrg    pw32*)
16516a31a186aSmrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
16517a31a186aSmrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16518643b027fSmrg      ;;
16519a31a186aSmrg    esac
165200bb88ba4Smrg    dynamic_linker='Win32 ld.exe'
165210bb88ba4Smrg    ;;
165220bb88ba4Smrg
165230bb88ba4Smrg  *,cl*)
165240bb88ba4Smrg    # Native MSVC
165250bb88ba4Smrg    libname_spec='$name'
165260bb88ba4Smrg    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
165270bb88ba4Smrg    library_names_spec='${libname}.dll.lib'
165280bb88ba4Smrg
165290bb88ba4Smrg    case $build_os in
165300bb88ba4Smrg    mingw*)
165310bb88ba4Smrg      sys_lib_search_path_spec=
165320bb88ba4Smrg      lt_save_ifs=$IFS
165330bb88ba4Smrg      IFS=';'
165340bb88ba4Smrg      for lt_path in $LIB
165350bb88ba4Smrg      do
165360bb88ba4Smrg        IFS=$lt_save_ifs
165370bb88ba4Smrg        # Let DOS variable expansion print the short 8.3 style file name.
165380bb88ba4Smrg        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
165390bb88ba4Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
165400bb88ba4Smrg      done
165410bb88ba4Smrg      IFS=$lt_save_ifs
165420bb88ba4Smrg      # Convert to MSYS style.
165430bb88ba4Smrg      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
165440bb88ba4Smrg      ;;
165450bb88ba4Smrg    cygwin*)
165460bb88ba4Smrg      # Convert to unix form, then to dos form, then back to unix form
165470bb88ba4Smrg      # but this time dos style (no spaces!) so that the unix form looks
165480bb88ba4Smrg      # like /cygdrive/c/PROGRA~1:/cygdr...
165490bb88ba4Smrg      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
165500bb88ba4Smrg      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
165510bb88ba4Smrg      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
165520bb88ba4Smrg      ;;
165530bb88ba4Smrg    *)
165540bb88ba4Smrg      sys_lib_search_path_spec="$LIB"
165550bb88ba4Smrg      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
165560bb88ba4Smrg        # It is most probably a Windows format PATH.
165570bb88ba4Smrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
165580bb88ba4Smrg      else
165590bb88ba4Smrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
165600bb88ba4Smrg      fi
165610bb88ba4Smrg      # FIXME: find the short name or the path components, as spaces are
165620bb88ba4Smrg      # common. (e.g. "Program Files" -> "PROGRA~1")
165630bb88ba4Smrg      ;;
165640bb88ba4Smrg    esac
165650bb88ba4Smrg
165660bb88ba4Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
165670bb88ba4Smrg    postinstall_cmds='base_file=`basename \${file}`~
165680bb88ba4Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
165690bb88ba4Smrg      dldir=$destdir/`dirname \$dlpath`~
165700bb88ba4Smrg      test -d \$dldir || mkdir -p \$dldir~
165710bb88ba4Smrg      $install_prog $dir/$dlname \$dldir/$dlname'
165720bb88ba4Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
165730bb88ba4Smrg      dlpath=$dir/\$dldll~
165740bb88ba4Smrg       $RM \$dlpath'
165750bb88ba4Smrg    shlibpath_overrides_runpath=yes
165760bb88ba4Smrg    dynamic_linker='Win32 link.exe'
16577a31a186aSmrg    ;;
16578643b027fSmrg
16579a31a186aSmrg  *)
165800bb88ba4Smrg    # Assume MSVC wrapper
16581a31a186aSmrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
165820bb88ba4Smrg    dynamic_linker='Win32 ld.exe'
16583a31a186aSmrg    ;;
16584a31a186aSmrg  esac
16585a31a186aSmrg  # FIXME: first we should search . and the directory the executable is in
16586a31a186aSmrg  shlibpath_var=PATH
16587a31a186aSmrg  ;;
16588643b027fSmrg
16589a31a186aSmrgdarwin* | rhapsody*)
16590a31a186aSmrg  dynamic_linker="$host_os dyld"
16591a31a186aSmrg  version_type=darwin
16592a31a186aSmrg  need_lib_prefix=no
16593a31a186aSmrg  need_version=no
16594a31a186aSmrg  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16595a31a186aSmrg  soname_spec='${libname}${release}${major}$shared_ext'
16596a31a186aSmrg  shlibpath_overrides_runpath=yes
16597a31a186aSmrg  shlibpath_var=DYLD_LIBRARY_PATH
16598a31a186aSmrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16599643b027fSmrg
16600a31a186aSmrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16601a31a186aSmrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16602a31a186aSmrg  ;;
16603643b027fSmrg
16604a31a186aSmrgdgux*)
166050bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
16606a31a186aSmrg  need_lib_prefix=no
16607a31a186aSmrg  need_version=no
16608a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16609a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
16610a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16611a31a186aSmrg  ;;
16612643b027fSmrg
16613a31a186aSmrgfreebsd* | dragonfly*)
16614a31a186aSmrg  # DragonFly does not have aout.  When/if they implement a new
16615a31a186aSmrg  # versioning mechanism, adjust this.
16616a31a186aSmrg  if test -x /usr/bin/objformat; then
16617a31a186aSmrg    objformat=`/usr/bin/objformat`
16618643b027fSmrg  else
16619643b027fSmrg    case $host_os in
166200bb88ba4Smrg    freebsd[23].*) objformat=aout ;;
16621a31a186aSmrg    *) objformat=elf ;;
16622a31a186aSmrg    esac
16623a31a186aSmrg  fi
16624a31a186aSmrg  version_type=freebsd-$objformat
16625a31a186aSmrg  case $version_type in
16626a31a186aSmrg    freebsd-elf*)
16627a31a186aSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16628a31a186aSmrg      need_version=no
16629a31a186aSmrg      need_lib_prefix=no
16630643b027fSmrg      ;;
16631a31a186aSmrg    freebsd-*)
16632a31a186aSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16633a31a186aSmrg      need_version=yes
16634643b027fSmrg      ;;
16635a31a186aSmrg  esac
16636a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16637a31a186aSmrg  case $host_os in
166380bb88ba4Smrg  freebsd2.*)
16639a31a186aSmrg    shlibpath_overrides_runpath=yes
16640a31a186aSmrg    ;;
16641a31a186aSmrg  freebsd3.[01]* | freebsdelf3.[01]*)
16642a31a186aSmrg    shlibpath_overrides_runpath=yes
16643a31a186aSmrg    hardcode_into_libs=yes
16644a31a186aSmrg    ;;
16645a31a186aSmrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16646a31a186aSmrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16647a31a186aSmrg    shlibpath_overrides_runpath=no
16648a31a186aSmrg    hardcode_into_libs=yes
16649a31a186aSmrg    ;;
16650a31a186aSmrg  *) # from 4.6 on, and DragonFly
16651a31a186aSmrg    shlibpath_overrides_runpath=yes
16652a31a186aSmrg    hardcode_into_libs=yes
16653a31a186aSmrg    ;;
16654a31a186aSmrg  esac
16655a31a186aSmrg  ;;
16656643b027fSmrg
16657a31a186aSmrggnu*)
166580bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
16659a31a186aSmrg  need_lib_prefix=no
16660a31a186aSmrg  need_version=no
16661a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16662a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
16663a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
166640bb88ba4Smrg  shlibpath_overrides_runpath=no
166650bb88ba4Smrg  hardcode_into_libs=yes
166660bb88ba4Smrg  ;;
166670bb88ba4Smrg
166680bb88ba4Smrghaiku*)
166690bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
166700bb88ba4Smrg  need_lib_prefix=no
166710bb88ba4Smrg  need_version=no
166720bb88ba4Smrg  dynamic_linker="$host_os runtime_loader"
166730bb88ba4Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
166740bb88ba4Smrg  soname_spec='${libname}${release}${shared_ext}$major'
166750bb88ba4Smrg  shlibpath_var=LIBRARY_PATH
166760bb88ba4Smrg  shlibpath_overrides_runpath=yes
166770bb88ba4Smrg  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16678a31a186aSmrg  hardcode_into_libs=yes
16679a31a186aSmrg  ;;
16680643b027fSmrg
16681a31a186aSmrghpux9* | hpux10* | hpux11*)
16682a31a186aSmrg  # Give a soname corresponding to the major version so that dld.sl refuses to
16683a31a186aSmrg  # link against other versions.
16684a31a186aSmrg  version_type=sunos
16685a31a186aSmrg  need_lib_prefix=no
16686a31a186aSmrg  need_version=no
16687a31a186aSmrg  case $host_cpu in
16688a31a186aSmrg  ia64*)
16689a31a186aSmrg    shrext_cmds='.so'
16690a31a186aSmrg    hardcode_into_libs=yes
16691a31a186aSmrg    dynamic_linker="$host_os dld.so"
16692a31a186aSmrg    shlibpath_var=LD_LIBRARY_PATH
16693a31a186aSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16694a31a186aSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695a31a186aSmrg    soname_spec='${libname}${release}${shared_ext}$major'
16696a31a186aSmrg    if test "X$HPUX_IA64_MODE" = X32; then
16697a31a186aSmrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16698a31a186aSmrg    else
16699a31a186aSmrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16700a31a186aSmrg    fi
16701a31a186aSmrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16702a31a186aSmrg    ;;
16703a31a186aSmrg  hppa*64*)
16704a31a186aSmrg    shrext_cmds='.sl'
16705a31a186aSmrg    hardcode_into_libs=yes
16706a31a186aSmrg    dynamic_linker="$host_os dld.sl"
16707a31a186aSmrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16708a31a186aSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16709a31a186aSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16710a31a186aSmrg    soname_spec='${libname}${release}${shared_ext}$major'
16711a31a186aSmrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16712a31a186aSmrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16713a31a186aSmrg    ;;
16714a31a186aSmrg  *)
16715a31a186aSmrg    shrext_cmds='.sl'
16716a31a186aSmrg    dynamic_linker="$host_os dld.sl"
16717a31a186aSmrg    shlibpath_var=SHLIB_PATH
16718a31a186aSmrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16719a31a186aSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16720a31a186aSmrg    soname_spec='${libname}${release}${shared_ext}$major'
16721a31a186aSmrg    ;;
16722a31a186aSmrg  esac
167230bb88ba4Smrg  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16724a31a186aSmrg  postinstall_cmds='chmod 555 $lib'
167250bb88ba4Smrg  # or fails outright, so override atomically:
167260bb88ba4Smrg  install_override_mode=555
16727a31a186aSmrg  ;;
16728643b027fSmrg
16729a31a186aSmrginterix[3-9]*)
167300bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
16731a31a186aSmrg  need_lib_prefix=no
16732a31a186aSmrg  need_version=no
16733a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16734a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
16735a31a186aSmrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16736a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16737a31a186aSmrg  shlibpath_overrides_runpath=no
16738a31a186aSmrg  hardcode_into_libs=yes
16739a31a186aSmrg  ;;
16740643b027fSmrg
16741a31a186aSmrgirix5* | irix6* | nonstopux*)
16742a31a186aSmrg  case $host_os in
16743a31a186aSmrg    nonstopux*) version_type=nonstopux ;;
16744643b027fSmrg    *)
16745a31a186aSmrg	if test "$lt_cv_prog_gnu_ld" = yes; then
167460bb88ba4Smrg		version_type=linux # correct to gnu/linux during the next big refactor
16747a31a186aSmrg	else
16748a31a186aSmrg		version_type=irix
16749a31a186aSmrg	fi ;;
16750a31a186aSmrg  esac
16751a31a186aSmrg  need_lib_prefix=no
16752a31a186aSmrg  need_version=no
16753a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
16754a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16755a31a186aSmrg  case $host_os in
16756a31a186aSmrg  irix5* | nonstopux*)
16757a31a186aSmrg    libsuff= shlibsuff=
16758a31a186aSmrg    ;;
16759a31a186aSmrg  *)
16760a31a186aSmrg    case $LD in # libtool.m4 will add one of these switches to LD
16761a31a186aSmrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16762a31a186aSmrg      libsuff= shlibsuff= libmagic=32-bit;;
16763a31a186aSmrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16764a31a186aSmrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
16765a31a186aSmrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16766a31a186aSmrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16767a31a186aSmrg    *) libsuff= shlibsuff= libmagic=never-match;;
16768643b027fSmrg    esac
16769a31a186aSmrg    ;;
16770a31a186aSmrg  esac
16771a31a186aSmrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16772a31a186aSmrg  shlibpath_overrides_runpath=no
16773a31a186aSmrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16774a31a186aSmrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16775a31a186aSmrg  hardcode_into_libs=yes
16776a31a186aSmrg  ;;
16777643b027fSmrg
16778a31a186aSmrg# No shared lib support for Linux oldld, aout, or coff.
16779a31a186aSmrglinux*oldld* | linux*aout* | linux*coff*)
16780a31a186aSmrg  dynamic_linker=no
16781a31a186aSmrg  ;;
16782643b027fSmrg
167830bb88ba4Smrg# This must be glibc/ELF.
167840bb88ba4Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
167850bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
16786a31a186aSmrg  need_lib_prefix=no
16787a31a186aSmrg  need_version=no
16788a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16789a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
16790a31a186aSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16791a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16792a31a186aSmrg  shlibpath_overrides_runpath=no
167930bb88ba4Smrg
16794a31a186aSmrg  # Some binutils ld are patched to set DT_RUNPATH
167950bb88ba4Smrg  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
167960bb88ba4Smrg  $as_echo_n "(cached) " >&6
167970bb88ba4Smrgelse
167980bb88ba4Smrg  lt_cv_shlibpath_overrides_runpath=no
167990bb88ba4Smrg    save_LDFLAGS=$LDFLAGS
168000bb88ba4Smrg    save_libdir=$libdir
168010bb88ba4Smrg    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
168020bb88ba4Smrg	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
168030bb88ba4Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804a31a186aSmrg/* end confdefs.h.  */
16805643b027fSmrg
16806a31a186aSmrgint
16807a31a186aSmrgmain ()
16808a31a186aSmrg{
16809643b027fSmrg
16810a31a186aSmrg  ;
16811a31a186aSmrg  return 0;
16812a31a186aSmrg}
16813a31a186aSmrg_ACEOF
168140bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
168150bb88ba4Smrg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
168160bb88ba4Smrg  lt_cv_shlibpath_overrides_runpath=yes
16817a31a186aSmrgfi
168180bb88ba4Smrgfi
168190bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
168200bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
168210bb88ba4Smrg    LDFLAGS=$save_LDFLAGS
168220bb88ba4Smrg    libdir=$save_libdir
16823643b027fSmrg
16824643b027fSmrgfi
16825643b027fSmrg
168260bb88ba4Smrg  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16827643b027fSmrg
16828a31a186aSmrg  # This implies no fast_install, which is unacceptable.
16829a31a186aSmrg  # Some rework will be needed to allow for fast_install
16830a31a186aSmrg  # before this can be enabled.
16831a31a186aSmrg  hardcode_into_libs=yes
16832643b027fSmrg
16833a31a186aSmrg  # Add ABI-specific directories to the system library path.
16834a31a186aSmrg  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16835643b027fSmrg
16836a31a186aSmrg  # Append ld.so.conf contents to the search path
16837a31a186aSmrg  if test -f /etc/ld.so.conf; then
168380bb88ba4Smrg    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' ' '`
16839a31a186aSmrg    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
168400bb88ba4Smrg
16841a31a186aSmrg  fi
16842643b027fSmrg
16843a31a186aSmrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
16844a31a186aSmrg  # powerpc, because MkLinux only supported shared libraries with the
16845a31a186aSmrg  # GNU dynamic linker.  Since this was broken with cross compilers,
16846a31a186aSmrg  # most powerpc-linux boxes support dynamic linking these days and
16847a31a186aSmrg  # people can always --disable-shared, the test was removed, and we
16848a31a186aSmrg  # assume the GNU/Linux dynamic linker is in use.
16849a31a186aSmrg  dynamic_linker='GNU/Linux ld.so'
16850a31a186aSmrg  ;;
16851643b027fSmrg
16852a31a186aSmrgnetbsd*)
16853a31a186aSmrg  version_type=sunos
16854a31a186aSmrg  need_lib_prefix=no
16855a31a186aSmrg  need_version=no
16856a31a186aSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16857a31a186aSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16858a31a186aSmrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16859a31a186aSmrg    dynamic_linker='NetBSD (a.out) ld.so'
16860a31a186aSmrg  else
16861a31a186aSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16862a31a186aSmrg    soname_spec='${libname}${release}${shared_ext}$major'
16863a31a186aSmrg    dynamic_linker='NetBSD ld.elf_so'
16864643b027fSmrg  fi
16865a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16866a31a186aSmrg  shlibpath_overrides_runpath=yes
16867a31a186aSmrg  hardcode_into_libs=yes
16868a31a186aSmrg  ;;
16869643b027fSmrg
16870a31a186aSmrgnewsos6)
168710bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
16872a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16873a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16874a31a186aSmrg  shlibpath_overrides_runpath=yes
16875a31a186aSmrg  ;;
16876643b027fSmrg
16877a31a186aSmrg*nto* | *qnx*)
16878a31a186aSmrg  version_type=qnx
16879a31a186aSmrg  need_lib_prefix=no
16880a31a186aSmrg  need_version=no
16881a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
16883a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16884a31a186aSmrg  shlibpath_overrides_runpath=no
16885a31a186aSmrg  hardcode_into_libs=yes
16886a31a186aSmrg  dynamic_linker='ldqnx.so'
16887a31a186aSmrg  ;;
16888643b027fSmrg
16889a31a186aSmrgopenbsd*)
16890a31a186aSmrg  version_type=sunos
16891a31a186aSmrg  sys_lib_dlsearch_path_spec="/usr/lib"
16892a31a186aSmrg  need_lib_prefix=no
16893a31a186aSmrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16894643b027fSmrg  case $host_os in
16895a31a186aSmrg    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16896a31a186aSmrg    *)				need_version=no  ;;
16897643b027fSmrg  esac
16898a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16899a31a186aSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16900a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16901a31a186aSmrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16902643b027fSmrg    case $host_os in
16903a31a186aSmrg      openbsd2.[89] | openbsd2.[89].*)
16904a31a186aSmrg	shlibpath_overrides_runpath=no
16905a31a186aSmrg	;;
16906a31a186aSmrg      *)
16907a31a186aSmrg	shlibpath_overrides_runpath=yes
16908a31a186aSmrg	;;
16909a31a186aSmrg      esac
16910a31a186aSmrg  else
16911a31a186aSmrg    shlibpath_overrides_runpath=yes
16912a31a186aSmrg  fi
16913a31a186aSmrg  ;;
16914643b027fSmrg
16915a31a186aSmrgos2*)
16916a31a186aSmrg  libname_spec='$name'
16917a31a186aSmrg  shrext_cmds=".dll"
16918a31a186aSmrg  need_lib_prefix=no
16919a31a186aSmrg  library_names_spec='$libname${shared_ext} $libname.a'
16920a31a186aSmrg  dynamic_linker='OS/2 ld.exe'
16921a31a186aSmrg  shlibpath_var=LIBPATH
16922a31a186aSmrg  ;;
16923643b027fSmrg
16924a31a186aSmrgosf3* | osf4* | osf5*)
16925a31a186aSmrg  version_type=osf
16926a31a186aSmrg  need_lib_prefix=no
16927a31a186aSmrg  need_version=no
16928a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
16929a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16931a31a186aSmrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16932a31a186aSmrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16933a31a186aSmrg  ;;
16934643b027fSmrg
16935a31a186aSmrgrdos*)
16936a31a186aSmrg  dynamic_linker=no
16937a31a186aSmrg  ;;
16938643b027fSmrg
16939a31a186aSmrgsolaris*)
169400bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
16941a31a186aSmrg  need_lib_prefix=no
16942a31a186aSmrg  need_version=no
16943a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
16945a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16946a31a186aSmrg  shlibpath_overrides_runpath=yes
16947a31a186aSmrg  hardcode_into_libs=yes
16948a31a186aSmrg  # ldd complains unless libraries are executable
16949a31a186aSmrg  postinstall_cmds='chmod +x $lib'
16950a31a186aSmrg  ;;
16951643b027fSmrg
16952a31a186aSmrgsunos4*)
16953a31a186aSmrg  version_type=sunos
16954a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16955a31a186aSmrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16956a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16957a31a186aSmrg  shlibpath_overrides_runpath=yes
16958a31a186aSmrg  if test "$with_gnu_ld" = yes; then
16959a31a186aSmrg    need_lib_prefix=no
16960a31a186aSmrg  fi
16961a31a186aSmrg  need_version=yes
16962a31a186aSmrg  ;;
16963643b027fSmrg
16964a31a186aSmrgsysv4 | sysv4.3*)
169650bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
16966a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
16968a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
16969a31a186aSmrg  case $host_vendor in
16970a31a186aSmrg    sni)
16971a31a186aSmrg      shlibpath_overrides_runpath=no
16972a31a186aSmrg      need_lib_prefix=no
16973a31a186aSmrg      runpath_var=LD_RUN_PATH
16974a31a186aSmrg      ;;
16975a31a186aSmrg    siemens)
16976a31a186aSmrg      need_lib_prefix=no
16977a31a186aSmrg      ;;
16978a31a186aSmrg    motorola)
16979a31a186aSmrg      need_lib_prefix=no
16980a31a186aSmrg      need_version=no
16981a31a186aSmrg      shlibpath_overrides_runpath=no
16982a31a186aSmrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16983643b027fSmrg      ;;
16984a31a186aSmrg  esac
16985a31a186aSmrg  ;;
16986643b027fSmrg
16987a31a186aSmrgsysv4*MP*)
16988a31a186aSmrg  if test -d /usr/nec ;then
169890bb88ba4Smrg    version_type=linux # correct to gnu/linux during the next big refactor
16990a31a186aSmrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16991a31a186aSmrg    soname_spec='$libname${shared_ext}.$major'
16992a31a186aSmrg    shlibpath_var=LD_LIBRARY_PATH
16993a31a186aSmrg  fi
16994a31a186aSmrg  ;;
16995643b027fSmrg
16996a31a186aSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16997a31a186aSmrg  version_type=freebsd-elf
16998a31a186aSmrg  need_lib_prefix=no
16999a31a186aSmrg  need_version=no
17000a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17001a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
17002a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
17003a31a186aSmrg  shlibpath_overrides_runpath=yes
17004a31a186aSmrg  hardcode_into_libs=yes
17005a31a186aSmrg  if test "$with_gnu_ld" = yes; then
17006a31a186aSmrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17007a31a186aSmrg  else
17008a31a186aSmrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17009a31a186aSmrg    case $host_os in
17010a31a186aSmrg      sco3.2v5*)
17011a31a186aSmrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17012a31a186aSmrg	;;
17013a31a186aSmrg    esac
17014a31a186aSmrg  fi
17015a31a186aSmrg  sys_lib_dlsearch_path_spec='/usr/lib'
17016a31a186aSmrg  ;;
17017643b027fSmrg
17018a31a186aSmrgtpf*)
17019a31a186aSmrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
170200bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
17021a31a186aSmrg  need_lib_prefix=no
17022a31a186aSmrg  need_version=no
17023a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17024a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
17025a31a186aSmrg  shlibpath_overrides_runpath=no
17026a31a186aSmrg  hardcode_into_libs=yes
17027a31a186aSmrg  ;;
17028643b027fSmrg
17029a31a186aSmrguts4*)
170300bb88ba4Smrg  version_type=linux # correct to gnu/linux during the next big refactor
17031a31a186aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17032a31a186aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
17033a31a186aSmrg  shlibpath_var=LD_LIBRARY_PATH
17034a31a186aSmrg  ;;
17035643b027fSmrg
17036a31a186aSmrg*)
17037a31a186aSmrg  dynamic_linker=no
17038a31a186aSmrg  ;;
17039a31a186aSmrgesac
170400bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17041a31a186aSmrg$as_echo "$dynamic_linker" >&6; }
17042a31a186aSmrgtest "$dynamic_linker" = no && can_build_shared=no
17043643b027fSmrg
17044a31a186aSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17045a31a186aSmrgif test "$GCC" = yes; then
17046a31a186aSmrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17047a31a186aSmrgfi
17048643b027fSmrg
17049a31a186aSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17050a31a186aSmrg  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17051a31a186aSmrgfi
17052a31a186aSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17053a31a186aSmrg  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17054a31a186aSmrgfi
17055643b027fSmrg
17056643b027fSmrg
17057643b027fSmrg
17058643b027fSmrg
17059643b027fSmrg
17060643b027fSmrg
17061643b027fSmrg
17062643b027fSmrg
17063643b027fSmrg
17064643b027fSmrg
17065643b027fSmrg
17066643b027fSmrg
17067643b027fSmrg
17068643b027fSmrg
17069643b027fSmrg
17070643b027fSmrg
17071643b027fSmrg
17072643b027fSmrg
17073643b027fSmrg
17074643b027fSmrg
17075643b027fSmrg
17076643b027fSmrg
17077643b027fSmrg
17078643b027fSmrg
17079643b027fSmrg
17080643b027fSmrg
17081643b027fSmrg
17082643b027fSmrg
17083643b027fSmrg
17084643b027fSmrg
17085643b027fSmrg
17086643b027fSmrg
17087643b027fSmrg
17088643b027fSmrg
17089643b027fSmrg
17090643b027fSmrg
17091643b027fSmrg
17092643b027fSmrg
17093643b027fSmrg
17094643b027fSmrg
17095643b027fSmrg
17096643b027fSmrg
17097643b027fSmrg
17098643b027fSmrg
17099643b027fSmrg
17100643b027fSmrg
17101643b027fSmrg
17102643b027fSmrg
17103643b027fSmrg
17104643b027fSmrg
17105643b027fSmrg
17106643b027fSmrg
17107643b027fSmrg
17108643b027fSmrg
17109643b027fSmrg
17110643b027fSmrg
17111643b027fSmrg
17112643b027fSmrg
17113643b027fSmrg
17114643b027fSmrg
17115643b027fSmrg
17116643b027fSmrg
17117643b027fSmrg
17118643b027fSmrg
17119643b027fSmrg
17120643b027fSmrg
17121643b027fSmrg
17122643b027fSmrg
17123643b027fSmrg
17124643b027fSmrg
17125643b027fSmrg
17126643b027fSmrg
17127643b027fSmrg
17128643b027fSmrg
17129643b027fSmrg
17130643b027fSmrg
17131643b027fSmrg
17132643b027fSmrg
17133643b027fSmrg
17134643b027fSmrg
17135643b027fSmrg
17136643b027fSmrg
17137a31a186aSmrg
17138a31a186aSmrg
17139a31a186aSmrg
17140a31a186aSmrg
17141a31a186aSmrg
171420bb88ba4Smrg
171430bb88ba4Smrg
171440bb88ba4Smrg
171450bb88ba4Smrg
171460bb88ba4Smrg
171470bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17148a31a186aSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17149a31a186aSmrghardcode_action=
17150a31a186aSmrgif test -n "$hardcode_libdir_flag_spec" ||
17151a31a186aSmrg   test -n "$runpath_var" ||
17152a31a186aSmrg   test "X$hardcode_automatic" = "Xyes" ; then
17153a31a186aSmrg
17154a31a186aSmrg  # We can hardcode non-existent directories.
17155a31a186aSmrg  if test "$hardcode_direct" != no &&
17156a31a186aSmrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17157a31a186aSmrg     # have to relink, otherwise we might link with an installed library
17158a31a186aSmrg     # when we should be linking with a yet-to-be-installed one
17159a31a186aSmrg     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17160a31a186aSmrg     test "$hardcode_minus_L" != no; then
17161a31a186aSmrg    # Linking always hardcodes the temporary library directory.
17162a31a186aSmrg    hardcode_action=relink
17163643b027fSmrg  else
17164a31a186aSmrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17165a31a186aSmrg    hardcode_action=immediate
17166643b027fSmrg  fi
17167a31a186aSmrgelse
17168a31a186aSmrg  # We cannot hardcode anything, or else we can only hardcode existing
17169a31a186aSmrg  # directories.
17170a31a186aSmrg  hardcode_action=unsupported
17171a31a186aSmrgfi
171720bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17173a31a186aSmrg$as_echo "$hardcode_action" >&6; }
17174643b027fSmrg
17175a31a186aSmrgif test "$hardcode_action" = relink ||
17176a31a186aSmrg   test "$inherit_rpath" = yes; then
17177a31a186aSmrg  # Fast installation is not supported
17178a31a186aSmrg  enable_fast_install=no
17179a31a186aSmrgelif test "$shlibpath_overrides_runpath" = yes ||
17180a31a186aSmrg     test "$enable_shared" = no; then
17181a31a186aSmrg  # Fast installation is not necessary
17182a31a186aSmrg  enable_fast_install=needless
17183a31a186aSmrgfi
17184643b027fSmrg
17185643b027fSmrg
17186643b027fSmrg
17187643b027fSmrg
17188643b027fSmrg
17189643b027fSmrg
17190a31a186aSmrg  if test "x$enable_dlopen" != xyes; then
17191a31a186aSmrg  enable_dlopen=unknown
17192a31a186aSmrg  enable_dlopen_self=unknown
17193a31a186aSmrg  enable_dlopen_self_static=unknown
17194a31a186aSmrgelse
17195a31a186aSmrg  lt_cv_dlopen=no
17196a31a186aSmrg  lt_cv_dlopen_libs=
17197643b027fSmrg
17198a31a186aSmrg  case $host_os in
17199a31a186aSmrg  beos*)
17200a31a186aSmrg    lt_cv_dlopen="load_add_on"
17201a31a186aSmrg    lt_cv_dlopen_libs=
17202a31a186aSmrg    lt_cv_dlopen_self=yes
17203a31a186aSmrg    ;;
17204643b027fSmrg
17205a31a186aSmrg  mingw* | pw32* | cegcc*)
17206a31a186aSmrg    lt_cv_dlopen="LoadLibrary"
17207a31a186aSmrg    lt_cv_dlopen_libs=
17208a31a186aSmrg    ;;
17209643b027fSmrg
17210a31a186aSmrg  cygwin*)
17211a31a186aSmrg    lt_cv_dlopen="dlopen"
17212a31a186aSmrg    lt_cv_dlopen_libs=
17213a31a186aSmrg    ;;
17214643b027fSmrg
17215a31a186aSmrg  darwin*)
17216a31a186aSmrg  # if libdl is installed we need to link against it
172170bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17218a31a186aSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
172190bb88ba4Smrgif ${ac_cv_lib_dl_dlopen+:} false; then :
17220a31a186aSmrg  $as_echo_n "(cached) " >&6
17221a31a186aSmrgelse
17222a31a186aSmrg  ac_check_lib_save_LIBS=$LIBS
17223a31a186aSmrgLIBS="-ldl  $LIBS"
172240bb88ba4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225a31a186aSmrg/* end confdefs.h.  */
17226643b027fSmrg
17227a31a186aSmrg/* Override any GCC internal prototype to avoid an error.
17228a31a186aSmrg   Use char because int might match the return type of a GCC
17229a31a186aSmrg   builtin and then its argument prototype would still apply.  */
17230a31a186aSmrg#ifdef __cplusplus
17231a31a186aSmrgextern "C"
17232a31a186aSmrg#endif
17233a31a186aSmrgchar dlopen ();
17234a31a186aSmrgint
17235a31a186aSmrgmain ()
17236a31a186aSmrg{
17237a31a186aSmrgreturn dlopen ();
17238a31a186aSmrg  ;
17239a31a186aSmrg  return 0;
17240a31a186aSmrg}
172410bb88ba4Smrg_ACEOF
172420bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
172430bb88ba4Smrg  ac_cv_lib_dl_dlopen=yes
17244a31a186aSmrgelse
172450bb88ba4Smrg  ac_cv_lib_dl_dlopen=no
17246a31a186aSmrgfi
172470bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
172480bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
17249a31a186aSmrgLIBS=$ac_check_lib_save_LIBS
17250a31a186aSmrgfi
172510bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
172520bb88ba4Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
172530bb88ba4Smrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
172540bb88ba4Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17255a31a186aSmrgelse
17256643b027fSmrg
172570bb88ba4Smrg    lt_cv_dlopen="dyld"
172580bb88ba4Smrg    lt_cv_dlopen_libs=
172590bb88ba4Smrg    lt_cv_dlopen_self=yes
17260643b027fSmrg
172610bb88ba4Smrgfi
172620bb88ba4Smrg
172630bb88ba4Smrg    ;;
17264643b027fSmrg
172650bb88ba4Smrg  *)
172660bb88ba4Smrg    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
172670bb88ba4Smrgif test "x$ac_cv_func_shl_load" = xyes; then :
172680bb88ba4Smrg  lt_cv_dlopen="shl_load"
172690bb88ba4Smrgelse
172700bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
172710bb88ba4Smrg$as_echo_n "checking for shl_load in -ldld... " >&6; }
172720bb88ba4Smrgif ${ac_cv_lib_dld_shl_load+:} false; then :
172730bb88ba4Smrg  $as_echo_n "(cached) " >&6
172740bb88ba4Smrgelse
172750bb88ba4Smrg  ac_check_lib_save_LIBS=$LIBS
172760bb88ba4SmrgLIBS="-ldld  $LIBS"
172770bb88ba4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
172780bb88ba4Smrg/* end confdefs.h.  */
17279643b027fSmrg
17280a31a186aSmrg/* Override any GCC internal prototype to avoid an error.
17281a31a186aSmrg   Use char because int might match the return type of a GCC
17282a31a186aSmrg   builtin and then its argument prototype would still apply.  */
17283a31a186aSmrg#ifdef __cplusplus
17284a31a186aSmrgextern "C"
17285a31a186aSmrg#endif
172860bb88ba4Smrgchar shl_load ();
17287a31a186aSmrgint
17288a31a186aSmrgmain ()
17289a31a186aSmrg{
172900bb88ba4Smrgreturn shl_load ();
17291a31a186aSmrg  ;
17292a31a186aSmrg  return 0;
17293a31a186aSmrg}
17294a31a186aSmrg_ACEOF
172950bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
172960bb88ba4Smrg  ac_cv_lib_dld_shl_load=yes
17297a31a186aSmrgelse
172980bb88ba4Smrg  ac_cv_lib_dld_shl_load=no
17299a31a186aSmrgfi
173000bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
173010bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
173020bb88ba4SmrgLIBS=$ac_check_lib_save_LIBS
17303a31a186aSmrgfi
173040bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
173050bb88ba4Smrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
173060bb88ba4Smrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then :
173070bb88ba4Smrg  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
173080bb88ba4Smrgelse
173090bb88ba4Smrg  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
173100bb88ba4Smrgif test "x$ac_cv_func_dlopen" = xyes; then :
17311a31a186aSmrg  lt_cv_dlopen="dlopen"
17312a31a186aSmrgelse
173130bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17314a31a186aSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
173150bb88ba4Smrgif ${ac_cv_lib_dl_dlopen+:} false; then :
17316a31a186aSmrg  $as_echo_n "(cached) " >&6
17317a31a186aSmrgelse
17318a31a186aSmrg  ac_check_lib_save_LIBS=$LIBS
17319a31a186aSmrgLIBS="-ldl  $LIBS"
173200bb88ba4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
17321a31a186aSmrg/* end confdefs.h.  */
17322643b027fSmrg
17323a31a186aSmrg/* Override any GCC internal prototype to avoid an error.
17324a31a186aSmrg   Use char because int might match the return type of a GCC
17325a31a186aSmrg   builtin and then its argument prototype would still apply.  */
17326a31a186aSmrg#ifdef __cplusplus
17327a31a186aSmrgextern "C"
17328a31a186aSmrg#endif
17329a31a186aSmrgchar dlopen ();
17330a31a186aSmrgint
17331a31a186aSmrgmain ()
17332a31a186aSmrg{
17333a31a186aSmrgreturn dlopen ();
17334a31a186aSmrg  ;
17335a31a186aSmrg  return 0;
17336a31a186aSmrg}
17337a31a186aSmrg_ACEOF
173380bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
17339a31a186aSmrg  ac_cv_lib_dl_dlopen=yes
17340a31a186aSmrgelse
173410bb88ba4Smrg  ac_cv_lib_dl_dlopen=no
17342a31a186aSmrgfi
173430bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
173440bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
17345a31a186aSmrgLIBS=$ac_check_lib_save_LIBS
17346a31a186aSmrgfi
173470bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17348a31a186aSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
173490bb88ba4Smrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17350a31a186aSmrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17351a31a186aSmrgelse
173520bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17353a31a186aSmrg$as_echo_n "checking for dlopen in -lsvld... " >&6; }
173540bb88ba4Smrgif ${ac_cv_lib_svld_dlopen+:} false; then :
17355a31a186aSmrg  $as_echo_n "(cached) " >&6
17356a31a186aSmrgelse
17357a31a186aSmrg  ac_check_lib_save_LIBS=$LIBS
17358a31a186aSmrgLIBS="-lsvld  $LIBS"
173590bb88ba4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360a31a186aSmrg/* end confdefs.h.  */
17361643b027fSmrg
17362a31a186aSmrg/* Override any GCC internal prototype to avoid an error.
17363a31a186aSmrg   Use char because int might match the return type of a GCC
17364a31a186aSmrg   builtin and then its argument prototype would still apply.  */
17365a31a186aSmrg#ifdef __cplusplus
17366a31a186aSmrgextern "C"
17367a31a186aSmrg#endif
17368a31a186aSmrgchar dlopen ();
17369a31a186aSmrgint
17370a31a186aSmrgmain ()
17371a31a186aSmrg{
17372a31a186aSmrgreturn dlopen ();
17373a31a186aSmrg  ;
17374a31a186aSmrg  return 0;
17375a31a186aSmrg}
17376a31a186aSmrg_ACEOF
173770bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
17378a31a186aSmrg  ac_cv_lib_svld_dlopen=yes
17379a31a186aSmrgelse
173800bb88ba4Smrg  ac_cv_lib_svld_dlopen=no
17381a31a186aSmrgfi
173820bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
173830bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
17384a31a186aSmrgLIBS=$ac_check_lib_save_LIBS
17385a31a186aSmrgfi
173860bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17387a31a186aSmrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
173880bb88ba4Smrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17389a31a186aSmrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17390a31a186aSmrgelse
173910bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17392a31a186aSmrg$as_echo_n "checking for dld_link in -ldld... " >&6; }
173930bb88ba4Smrgif ${ac_cv_lib_dld_dld_link+:} false; then :
17394a31a186aSmrg  $as_echo_n "(cached) " >&6
17395a31a186aSmrgelse
17396a31a186aSmrg  ac_check_lib_save_LIBS=$LIBS
17397a31a186aSmrgLIBS="-ldld  $LIBS"
173980bb88ba4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
17399a31a186aSmrg/* end confdefs.h.  */
17400643b027fSmrg
17401a31a186aSmrg/* Override any GCC internal prototype to avoid an error.
17402a31a186aSmrg   Use char because int might match the return type of a GCC
17403a31a186aSmrg   builtin and then its argument prototype would still apply.  */
17404a31a186aSmrg#ifdef __cplusplus
17405a31a186aSmrgextern "C"
17406a31a186aSmrg#endif
17407a31a186aSmrgchar dld_link ();
17408a31a186aSmrgint
17409a31a186aSmrgmain ()
17410a31a186aSmrg{
17411a31a186aSmrgreturn dld_link ();
17412a31a186aSmrg  ;
17413a31a186aSmrg  return 0;
17414a31a186aSmrg}
17415a31a186aSmrg_ACEOF
174160bb88ba4Smrgif ac_fn_c_try_link "$LINENO"; then :
17417a31a186aSmrg  ac_cv_lib_dld_dld_link=yes
17418a31a186aSmrgelse
174190bb88ba4Smrg  ac_cv_lib_dld_dld_link=no
17420a31a186aSmrgfi
174210bb88ba4Smrgrm -f core conftest.err conftest.$ac_objext \
174220bb88ba4Smrg    conftest$ac_exeext conftest.$ac_ext
17423a31a186aSmrgLIBS=$ac_check_lib_save_LIBS
17424a31a186aSmrgfi
174250bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17426a31a186aSmrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
174270bb88ba4Smrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17428a31a186aSmrg  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17429a31a186aSmrgfi
17430643b027fSmrg
17431643b027fSmrg
17432a31a186aSmrgfi
17433643b027fSmrg
17434643b027fSmrg
17435a31a186aSmrgfi
17436643b027fSmrg
17437643b027fSmrg
17438a31a186aSmrgfi
17439643b027fSmrg
17440643b027fSmrg
17441a31a186aSmrgfi
17442643b027fSmrg
17443643b027fSmrg
17444a31a186aSmrgfi
17445643b027fSmrg
17446a31a186aSmrg    ;;
17447a31a186aSmrg  esac
17448643b027fSmrg
17449a31a186aSmrg  if test "x$lt_cv_dlopen" != xno; then
17450a31a186aSmrg    enable_dlopen=yes
17451a31a186aSmrg  else
17452a31a186aSmrg    enable_dlopen=no
17453a31a186aSmrg  fi
17454643b027fSmrg
17455a31a186aSmrg  case $lt_cv_dlopen in
17456a31a186aSmrg  dlopen)
17457a31a186aSmrg    save_CPPFLAGS="$CPPFLAGS"
17458a31a186aSmrg    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17459643b027fSmrg
17460a31a186aSmrg    save_LDFLAGS="$LDFLAGS"
17461a31a186aSmrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17462643b027fSmrg
17463a31a186aSmrg    save_LIBS="$LIBS"
17464a31a186aSmrg    LIBS="$lt_cv_dlopen_libs $LIBS"
17465643b027fSmrg
174660bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17467a31a186aSmrg$as_echo_n "checking whether a program can dlopen itself... " >&6; }
174680bb88ba4Smrgif ${lt_cv_dlopen_self+:} false; then :
17469a31a186aSmrg  $as_echo_n "(cached) " >&6
17470a31a186aSmrgelse
17471a31a186aSmrg  	  if test "$cross_compiling" = yes; then :
17472a31a186aSmrg  lt_cv_dlopen_self=cross
17473a31a186aSmrgelse
17474a31a186aSmrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17475a31a186aSmrg  lt_status=$lt_dlunknown
17476a31a186aSmrg  cat > conftest.$ac_ext <<_LT_EOF
174770bb88ba4Smrg#line $LINENO "configure"
17478a31a186aSmrg#include "confdefs.h"
17479643b027fSmrg
17480a31a186aSmrg#if HAVE_DLFCN_H
17481a31a186aSmrg#include <dlfcn.h>
17482a31a186aSmrg#endif
17483643b027fSmrg
17484a31a186aSmrg#include <stdio.h>
17485643b027fSmrg
17486a31a186aSmrg#ifdef RTLD_GLOBAL
17487a31a186aSmrg#  define LT_DLGLOBAL		RTLD_GLOBAL
17488a31a186aSmrg#else
17489a31a186aSmrg#  ifdef DL_GLOBAL
17490a31a186aSmrg#    define LT_DLGLOBAL		DL_GLOBAL
17491a31a186aSmrg#  else
17492a31a186aSmrg#    define LT_DLGLOBAL		0
17493a31a186aSmrg#  endif
17494a31a186aSmrg#endif
17495643b027fSmrg
17496a31a186aSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17497a31a186aSmrg   find out it does not work in some platform. */
17498a31a186aSmrg#ifndef LT_DLLAZY_OR_NOW
17499a31a186aSmrg#  ifdef RTLD_LAZY
17500a31a186aSmrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17501a31a186aSmrg#  else
17502a31a186aSmrg#    ifdef DL_LAZY
17503a31a186aSmrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
17504a31a186aSmrg#    else
17505a31a186aSmrg#      ifdef RTLD_NOW
17506a31a186aSmrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17507a31a186aSmrg#      else
17508a31a186aSmrg#        ifdef DL_NOW
17509a31a186aSmrg#          define LT_DLLAZY_OR_NOW	DL_NOW
17510a31a186aSmrg#        else
17511a31a186aSmrg#          define LT_DLLAZY_OR_NOW	0
17512a31a186aSmrg#        endif
17513a31a186aSmrg#      endif
17514a31a186aSmrg#    endif
17515a31a186aSmrg#  endif
17516a31a186aSmrg#endif
17517643b027fSmrg
175180bb88ba4Smrg/* When -fvisbility=hidden is used, assume the code has been annotated
175190bb88ba4Smrg   correspondingly for the symbols needed.  */
175200bb88ba4Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
175210bb88ba4Smrgint fnord () __attribute__((visibility("default")));
175220bb88ba4Smrg#endif
175230bb88ba4Smrg
175240bb88ba4Smrgint fnord () { return 42; }
17525a31a186aSmrgint main ()
17526a31a186aSmrg{
17527a31a186aSmrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17528a31a186aSmrg  int status = $lt_dlunknown;
17529643b027fSmrg
17530a31a186aSmrg  if (self)
17531a31a186aSmrg    {
17532a31a186aSmrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
175330bb88ba4Smrg      else
175340bb88ba4Smrg        {
175350bb88ba4Smrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
175360bb88ba4Smrg          else puts (dlerror ());
175370bb88ba4Smrg	}
17538a31a186aSmrg      /* dlclose (self); */
17539a31a186aSmrg    }
17540a31a186aSmrg  else
17541a31a186aSmrg    puts (dlerror ());
17542643b027fSmrg
17543a31a186aSmrg  return status;
17544a31a186aSmrg}
17545a31a186aSmrg_LT_EOF
175460bb88ba4Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17547a31a186aSmrg  (eval $ac_link) 2>&5
17548a31a186aSmrg  ac_status=$?
175490bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
175500bb88ba4Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17551a31a186aSmrg    (./conftest; exit; ) >&5 2>/dev/null
17552a31a186aSmrg    lt_status=$?
17553a31a186aSmrg    case x$lt_status in
17554a31a186aSmrg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17555a31a186aSmrg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17556a31a186aSmrg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17557a31a186aSmrg    esac
17558a31a186aSmrg  else :
17559a31a186aSmrg    # compilation failed
17560a31a186aSmrg    lt_cv_dlopen_self=no
17561a31a186aSmrg  fi
17562a31a186aSmrgfi
17563a31a186aSmrgrm -fr conftest*
17564643b027fSmrg
17565643b027fSmrg
17566a31a186aSmrgfi
175670bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17568a31a186aSmrg$as_echo "$lt_cv_dlopen_self" >&6; }
17569643b027fSmrg
17570a31a186aSmrg    if test "x$lt_cv_dlopen_self" = xyes; then
17571a31a186aSmrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
175720bb88ba4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17573a31a186aSmrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
175740bb88ba4Smrgif ${lt_cv_dlopen_self_static+:} false; then :
17575a31a186aSmrg  $as_echo_n "(cached) " >&6
17576a31a186aSmrgelse
17577a31a186aSmrg  	  if test "$cross_compiling" = yes; then :
17578a31a186aSmrg  lt_cv_dlopen_self_static=cross
17579a31a186aSmrgelse
17580a31a186aSmrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17581a31a186aSmrg  lt_status=$lt_dlunknown
17582a31a186aSmrg  cat > conftest.$ac_ext <<_LT_EOF
175830bb88ba4Smrg#line $LINENO "configure"
17584a31a186aSmrg#include "confdefs.h"
17585643b027fSmrg
17586a31a186aSmrg#if HAVE_DLFCN_H
17587a31a186aSmrg#include <dlfcn.h>
17588a31a186aSmrg#endif
17589643b027fSmrg
17590a31a186aSmrg#include <stdio.h>
17591643b027fSmrg
17592a31a186aSmrg#ifdef RTLD_GLOBAL
17593a31a186aSmrg#  define LT_DLGLOBAL		RTLD_GLOBAL
17594a31a186aSmrg#else
17595a31a186aSmrg#  ifdef DL_GLOBAL
17596a31a186aSmrg#    define LT_DLGLOBAL		DL_GLOBAL
17597a31a186aSmrg#  else
17598a31a186aSmrg#    define LT_DLGLOBAL		0
17599a31a186aSmrg#  endif
17600a31a186aSmrg#endif
17601643b027fSmrg
17602a31a186aSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17603a31a186aSmrg   find out it does not work in some platform. */
17604a31a186aSmrg#ifndef LT_DLLAZY_OR_NOW
17605a31a186aSmrg#  ifdef RTLD_LAZY
17606a31a186aSmrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17607a31a186aSmrg#  else
17608a31a186aSmrg#    ifdef DL_LAZY
17609a31a186aSmrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
17610a31a186aSmrg#    else
17611a31a186aSmrg#      ifdef RTLD_NOW
17612a31a186aSmrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17613a31a186aSmrg#      else
17614a31a186aSmrg#        ifdef DL_NOW
17615a31a186aSmrg#          define LT_DLLAZY_OR_NOW	DL_NOW
17616a31a186aSmrg#        else
17617a31a186aSmrg#          define LT_DLLAZY_OR_NOW	0
17618a31a186aSmrg#        endif
17619a31a186aSmrg#      endif
17620a31a186aSmrg#    endif
17621a31a186aSmrg#  endif
17622a31a186aSmrg#endif
17623643b027fSmrg
176240bb88ba4Smrg/* When -fvisbility=hidden is used, assume the code has been annotated
176250bb88ba4Smrg   correspondingly for the symbols needed.  */
176260bb88ba4Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
176270bb88ba4Smrgint fnord () __attribute__((visibility("default")));
176280bb88ba4Smrg#endif
176290bb88ba4Smrg
176300bb88ba4Smrgint fnord () { return 42; }
17631a31a186aSmrgint main ()
17632a31a186aSmrg{
17633a31a186aSmrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17634a31a186aSmrg  int status = $lt_dlunknown;
17635643b027fSmrg
17636a31a186aSmrg  if (self)
17637a31a186aSmrg    {
17638a31a186aSmrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
176390bb88ba4Smrg      else
176400bb88ba4Smrg        {
176410bb88ba4Smrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
176420bb88ba4Smrg          else puts (dlerror ());
176430bb88ba4Smrg	}
17644a31a186aSmrg      /* dlclose (self); */
17645a31a186aSmrg    }
17646a31a186aSmrg  else
17647a31a186aSmrg    puts (dlerror ());
17648643b027fSmrg
17649a31a186aSmrg  return status;
17650a31a186aSmrg}
17651a31a186aSmrg_LT_EOF
176520bb88ba4Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17653a31a186aSmrg  (eval $ac_link) 2>&5
17654a31a186aSmrg  ac_status=$?
176550bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
176560bb88ba4Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17657a31a186aSmrg    (./conftest; exit; ) >&5 2>/dev/null
17658a31a186aSmrg    lt_status=$?
17659a31a186aSmrg    case x$lt_status in
17660a31a186aSmrg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17661a31a186aSmrg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17662a31a186aSmrg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17663a31a186aSmrg    esac
17664a31a186aSmrg  else :
17665a31a186aSmrg    # compilation failed
17666a31a186aSmrg    lt_cv_dlopen_self_static=no
17667a31a186aSmrg  fi
17668a31a186aSmrgfi
17669a31a186aSmrgrm -fr conftest*
17670643b027fSmrg
17671643b027fSmrg
17672a31a186aSmrgfi
176730bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17674a31a186aSmrg$as_echo "$lt_cv_dlopen_self_static" >&6; }
17675a31a186aSmrg    fi
17676643b027fSmrg
17677a31a186aSmrg    CPPFLAGS="$save_CPPFLAGS"
17678a31a186aSmrg    LDFLAGS="$save_LDFLAGS"
17679a31a186aSmrg    LIBS="$save_LIBS"
17680a31a186aSmrg    ;;
17681a31a186aSmrg  esac
17682643b027fSmrg
17683a31a186aSmrg  case $lt_cv_dlopen_self in
17684a31a186aSmrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17685a31a186aSmrg  *) enable_dlopen_self=unknown ;;
17686a31a186aSmrg  esac
17687643b027fSmrg
17688a31a186aSmrg  case $lt_cv_dlopen_self_static in
17689a31a186aSmrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17690a31a186aSmrg  *) enable_dlopen_self_static=unknown ;;
17691a31a186aSmrg  esac
17692a31a186aSmrgfi
17693643b027fSmrg
17694643b027fSmrg
17695643b027fSmrg
17696643b027fSmrg
17697643b027fSmrg
17698643b027fSmrg
17699643b027fSmrg
17700643b027fSmrg
17701643b027fSmrg
17702643b027fSmrg
17703643b027fSmrg
17704643b027fSmrg
17705643b027fSmrg
17706643b027fSmrg
17707643b027fSmrg
17708643b027fSmrg
17709643b027fSmrg
17710a31a186aSmrgstriplib=
17711a31a186aSmrgold_striplib=
177120bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17713a31a186aSmrg$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17714a31a186aSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17715a31a186aSmrg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17716a31a186aSmrg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
177170bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17718a31a186aSmrg$as_echo "yes" >&6; }
17719a31a186aSmrgelse
17720a31a186aSmrg# FIXME - insert some real tests, host_os isn't really good enough
17721a31a186aSmrg  case $host_os in
17722a31a186aSmrg  darwin*)
17723a31a186aSmrg    if test -n "$STRIP" ; then
17724a31a186aSmrg      striplib="$STRIP -x"
17725a31a186aSmrg      old_striplib="$STRIP -S"
177260bb88ba4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17727a31a186aSmrg$as_echo "yes" >&6; }
17728a31a186aSmrg    else
177290bb88ba4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17730a31a186aSmrg$as_echo "no" >&6; }
17731a31a186aSmrg    fi
17732a31a186aSmrg    ;;
17733a31a186aSmrg  *)
177340bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17735a31a186aSmrg$as_echo "no" >&6; }
17736a31a186aSmrg    ;;
17737a31a186aSmrg  esac
17738a31a186aSmrgfi
17739643b027fSmrg
17740643b027fSmrg
17741643b027fSmrg
17742643b027fSmrg
17743643b027fSmrg
17744643b027fSmrg
17745643b027fSmrg
17746643b027fSmrg
17747643b027fSmrg
17748643b027fSmrg
17749643b027fSmrg
17750643b027fSmrg
17751a31a186aSmrg  # Report which library types will actually be built
177520bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17753a31a186aSmrg$as_echo_n "checking if libtool supports shared libraries... " >&6; }
177540bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17755a31a186aSmrg$as_echo "$can_build_shared" >&6; }
17756643b027fSmrg
177570bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17758d7be9c72Smrg$as_echo_n "checking whether to build shared libraries... " >&6; }
17759d7be9c72Smrg  test "$can_build_shared" = "no" && enable_shared=no
17760643b027fSmrg
17761d7be9c72Smrg  # On AIX, shared libraries and static libraries use the same namespace, and
17762d7be9c72Smrg  # are all built from PIC.
17763d7be9c72Smrg  case $host_os in
17764d7be9c72Smrg  aix3*)
17765d7be9c72Smrg    test "$enable_shared" = yes && enable_static=no
17766d7be9c72Smrg    if test -n "$RANLIB"; then
17767d7be9c72Smrg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17768d7be9c72Smrg      postinstall_cmds='$RANLIB $lib'
17769d7be9c72Smrg    fi
17770d7be9c72Smrg    ;;
17771643b027fSmrg
17772d7be9c72Smrg  aix[4-9]*)
17773d7be9c72Smrg    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17774d7be9c72Smrg      test "$enable_shared" = yes && enable_static=no
17775d7be9c72Smrg    fi
17776d7be9c72Smrg    ;;
17777d7be9c72Smrg  esac
177780bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17779d7be9c72Smrg$as_echo "$enable_shared" >&6; }
17780d7be9c72Smrg
177810bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17782d7be9c72Smrg$as_echo_n "checking whether to build static libraries... " >&6; }
17783d7be9c72Smrg  # Make sure either enable_shared or enable_static is yes.
17784d7be9c72Smrg  test "$enable_shared" = yes || enable_static=yes
177850bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17786d7be9c72Smrg$as_echo "$enable_static" >&6; }
17787643b027fSmrg
17788643b027fSmrg
17789643b027fSmrg
17790643b027fSmrg
17791d7be9c72Smrgfi
17792a31a186aSmrgac_ext=c
17793a31a186aSmrgac_cpp='$CPP $CPPFLAGS'
17794a31a186aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17795a31a186aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17796a31a186aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
17797643b027fSmrg
17798d7be9c72SmrgCC="$lt_save_CC"
17799d7be9c72Smrg
17800d7be9c72Smrg
17801d7be9c72Smrg
17802d7be9c72Smrg
17803d7be9c72Smrg
17804d7be9c72Smrg
17805d7be9c72Smrg
17806d7be9c72Smrg
17807d7be9c72Smrg
17808d7be9c72Smrg
17809d7be9c72Smrg
17810d7be9c72Smrg
17811d7be9c72Smrg
178120bb88ba4Smrg
178130bb88ba4Smrg
17814d7be9c72Smrg        ac_config_commands="$ac_config_commands libtool"
17815d7be9c72Smrg
17816d7be9c72Smrg
17817d7be9c72Smrg
17818d7be9c72Smrg
17819d7be9c72Smrg# Only expand once:
17820d7be9c72Smrg
17821643b027fSmrg
17822643b027fSmrg
17823643b027fSmrg
17824643b027fSmrg
17825d7be9c72Smrg# Define a configure option for an alternate module directory
17826d7be9c72Smrg
17827a31a186aSmrg# Check whether --with-xorg-module-dir was given.
178280bb88ba4Smrgif test "${with_xorg_module_dir+set}" = set; then :
17829a31a186aSmrg  withval=$with_xorg_module_dir; moduledir="$withval"
17830a31a186aSmrgelse
17831a31a186aSmrg  moduledir="$libdir/xorg/modules"
17832a31a186aSmrgfi
17833643b027fSmrg
17834643b027fSmrg
17835a31a186aSmrg# Check whether --enable-dri was given.
178360bb88ba4Smrgif test "${enable_dri+set}" = set; then :
17837a31a186aSmrg  enableval=$enable_dri; DRI="$enableval"
17838a31a186aSmrgelse
17839a31a186aSmrg  DRI=auto
17840a31a186aSmrgfi
17841643b027fSmrg
17842a31a186aSmrg# Check whether --enable-exa was given.
178430bb88ba4Smrgif test "${enable_exa+set}" = set; then :
17844a31a186aSmrg  enableval=$enable_exa; EXA="$enableval"
17845a31a186aSmrgelse
17846a31a186aSmrg  EXA=yes
17847a31a186aSmrgfi
17848643b027fSmrg
17849643b027fSmrg
17850d7be9c72Smrg# Store the list of server defined optional extensions in REQUIRED_MODULES
17851d7be9c72Smrg
17852643b027fSmrg
17853a31a186aSmrg	SAVE_CFLAGS="$CFLAGS"
17854d7be9c72Smrg	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
178550bb88ba4Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17856643b027fSmrg/* end confdefs.h.  */
17857643b027fSmrg
17858a31a186aSmrg#include "xorg-server.h"
17859a31a186aSmrg#if !defined RANDR
17860a31a186aSmrg#error RANDR not defined
17861a31a186aSmrg#endif
17862a31a186aSmrg
17863643b027fSmrgint
17864643b027fSmrgmain ()
17865643b027fSmrg{
17866643b027fSmrg
17867643b027fSmrg  ;
17868643b027fSmrg  return 0;
17869643b027fSmrg}
17870643b027fSmrg_ACEOF
178710bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
17872a31a186aSmrg  _EXT_CHECK=yes
17873643b027fSmrgelse
178740bb88ba4Smrg  _EXT_CHECK=no
17875643b027fSmrgfi
17876a31a186aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17877a31a186aSmrg	CFLAGS="$SAVE_CFLAGS"
178780bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17879a31a186aSmrg$as_echo_n "checking if RANDR is defined... " >&6; }
178800bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17881a31a186aSmrg$as_echo "$_EXT_CHECK" >&6; }
17882a31a186aSmrg	if test "$_EXT_CHECK" != no; then
17883a31a186aSmrg		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17884a31a186aSmrg	fi
17885643b027fSmrg
17886a31a186aSmrg
17887d7be9c72Smrg
17888a31a186aSmrg	SAVE_CFLAGS="$CFLAGS"
17889d7be9c72Smrg	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
178900bb88ba4Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891643b027fSmrg/* end confdefs.h.  */
17892643b027fSmrg
17893a31a186aSmrg#include "xorg-server.h"
17894a31a186aSmrg#if !defined RENDER
17895a31a186aSmrg#error RENDER not defined
17896a31a186aSmrg#endif
17897a31a186aSmrg
17898643b027fSmrgint
17899643b027fSmrgmain ()
17900643b027fSmrg{
17901643b027fSmrg
17902643b027fSmrg  ;
17903643b027fSmrg  return 0;
17904643b027fSmrg}
17905643b027fSmrg_ACEOF
179060bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
17907a31a186aSmrg  _EXT_CHECK=yes
17908643b027fSmrgelse
179090bb88ba4Smrg  _EXT_CHECK=no
17910643b027fSmrgfi
17911a31a186aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17912a31a186aSmrg	CFLAGS="$SAVE_CFLAGS"
179130bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17914a31a186aSmrg$as_echo_n "checking if RENDER is defined... " >&6; }
179150bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17916a31a186aSmrg$as_echo "$_EXT_CHECK" >&6; }
17917a31a186aSmrg	if test "$_EXT_CHECK" != no; then
17918a31a186aSmrg		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17919643b027fSmrg	fi
17920643b027fSmrg
17921643b027fSmrg
17922d7be9c72Smrg
17923a31a186aSmrg	SAVE_CFLAGS="$CFLAGS"
17924d7be9c72Smrg	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
179250bb88ba4Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926a31a186aSmrg/* end confdefs.h.  */
17927643b027fSmrg
17928a31a186aSmrg#include "xorg-server.h"
17929a31a186aSmrg#if !defined XV
17930a31a186aSmrg#error XV not defined
17931a31a186aSmrg#endif
17932643b027fSmrg
17933a31a186aSmrgint
17934a31a186aSmrgmain ()
17935a31a186aSmrg{
17936643b027fSmrg
17937a31a186aSmrg  ;
17938a31a186aSmrg  return 0;
17939a31a186aSmrg}
17940a31a186aSmrg_ACEOF
179410bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
17942a31a186aSmrg  _EXT_CHECK=yes
17943a31a186aSmrgelse
179440bb88ba4Smrg  _EXT_CHECK=no
17945a31a186aSmrgfi
17946a31a186aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17947a31a186aSmrg	CFLAGS="$SAVE_CFLAGS"
179480bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17949a31a186aSmrg$as_echo_n "checking if XV is defined... " >&6; }
179500bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17951a31a186aSmrg$as_echo "$_EXT_CHECK" >&6; }
17952a31a186aSmrg	if test "$_EXT_CHECK" != no; then
17953a31a186aSmrg		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17954a31a186aSmrg	fi
17955643b027fSmrg
17956643b027fSmrg
17957d7be9c72Smrg
17958a31a186aSmrg	SAVE_CFLAGS="$CFLAGS"
17959d7be9c72Smrg	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
179600bb88ba4Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961a31a186aSmrg/* end confdefs.h.  */
17962643b027fSmrg
17963a31a186aSmrg#include "xorg-server.h"
17964a31a186aSmrg#if !defined DPMSExtension
17965a31a186aSmrg#error DPMSExtension not defined
17966a31a186aSmrg#endif
17967643b027fSmrg
17968a31a186aSmrgint
17969a31a186aSmrgmain ()
17970a31a186aSmrg{
17971643b027fSmrg
17972a31a186aSmrg  ;
17973a31a186aSmrg  return 0;
17974a31a186aSmrg}
17975a31a186aSmrg_ACEOF
179760bb88ba4Smrgif ac_fn_c_try_compile "$LINENO"; then :
17977a31a186aSmrg  _EXT_CHECK=yes
17978a31a186aSmrgelse
179790bb88ba4Smrg  _EXT_CHECK=no
17980a31a186aSmrgfi
17981a31a186aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17982a31a186aSmrg	CFLAGS="$SAVE_CFLAGS"
179830bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17984a31a186aSmrg$as_echo_n "checking if DPMSExtension is defined... " >&6; }
179850bb88ba4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17986a31a186aSmrg$as_echo "$_EXT_CHECK" >&6; }
17987a31a186aSmrg	if test "$_EXT_CHECK" != no; then
17988a31a186aSmrg		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17989a31a186aSmrg	fi
17990643b027fSmrg
17991643b027fSmrg
17992d7be9c72Smrg# Obtain compiler/linker options for the driver dependencies
17993643b027fSmrg
17994a31a186aSmrgpkg_failed=no
179950bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17996a31a186aSmrg$as_echo_n "checking for XORG... " >&6; }
17997643b027fSmrg
17998a31a186aSmrgif test -n "$XORG_CFLAGS"; then
17999a31a186aSmrg    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18000a31a186aSmrg elif test -n "$PKG_CONFIG"; then
18001a31a186aSmrg    if test -n "$PKG_CONFIG" && \
180020bb88ba4Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18003a31a186aSmrg  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
18004a31a186aSmrg  ac_status=$?
180050bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
180060bb88ba4Smrg  test $ac_status = 0; }; then
18007a31a186aSmrg  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18008acd6767fSmrg		      test "x$?" != "x0" && pkg_failed=yes
18009a31a186aSmrgelse
18010a31a186aSmrg  pkg_failed=yes
18011a31a186aSmrgfi
18012a31a186aSmrg else
18013a31a186aSmrg    pkg_failed=untried
18014a31a186aSmrgfi
18015a31a186aSmrgif test -n "$XORG_LIBS"; then
18016a31a186aSmrg    pkg_cv_XORG_LIBS="$XORG_LIBS"
18017a31a186aSmrg elif test -n "$PKG_CONFIG"; then
18018a31a186aSmrg    if test -n "$PKG_CONFIG" && \
180190bb88ba4Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18020a31a186aSmrg  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
18021a31a186aSmrg  ac_status=$?
180220bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
180230bb88ba4Smrg  test $ac_status = 0; }; then
18024a31a186aSmrg  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18025acd6767fSmrg		      test "x$?" != "x0" && pkg_failed=yes
18026a31a186aSmrgelse
18027a31a186aSmrg  pkg_failed=yes
18028a31a186aSmrgfi
18029a31a186aSmrg else
18030a31a186aSmrg    pkg_failed=untried
18031a31a186aSmrgfi
18032643b027fSmrg
18033643b027fSmrg
18034643b027fSmrg
18035a31a186aSmrgif test $pkg_failed = yes; then
180360bb88ba4Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
180370bb88ba4Smrg$as_echo "no" >&6; }
18038643b027fSmrg
18039a31a186aSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18040a31a186aSmrg        _pkg_short_errors_supported=yes
18041a31a186aSmrgelse
18042a31a186aSmrg        _pkg_short_errors_supported=no
18043a31a186aSmrgfi
18044a31a186aSmrg        if test $_pkg_short_errors_supported = yes; then
18045acd6767fSmrg	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18046a31a186aSmrg        else
18047acd6767fSmrg	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18048a31a186aSmrg        fi
18049a31a186aSmrg	# Put the nasty error message in config.log where it belongs
18050a31a186aSmrg	echo "$XORG_PKG_ERRORS" >&5
18051643b027fSmrg
180520bb88ba4Smrg	as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
18053643b027fSmrg
18054a31a186aSmrg$XORG_PKG_ERRORS
18055643b027fSmrg
18056a31a186aSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
18057a31a186aSmrginstalled software in a non-standard prefix.
18058643b027fSmrg
18059a31a186aSmrgAlternatively, you may set the environment variables XORG_CFLAGS
18060a31a186aSmrgand XORG_LIBS to avoid the need to call pkg-config.
180610bb88ba4SmrgSee the pkg-config man page for more details." "$LINENO" 5
18062a31a186aSmrgelif test $pkg_failed = untried; then
180630bb88ba4Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
180640bb88ba4Smrg$as_echo "no" >&6; }
180650bb88ba4Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18066a31a186aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
180670bb88ba4Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18068a31a186aSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
18069a31a186aSmrgpath to pkg-config.
18070643b027fSmrg
18071a31a186aSmrgAlternatively, you may set the environment variables XORG_CFLAGS
18072a31a186aSmrgand XORG_LIBS to avoid the need to call pkg-config.
18073a31a186aSmrgSee the pkg-config man page for more details.
18074643b027fSmrg
18075a31a186aSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
180760bb88ba4SmrgSee \`config.log' for more details" "$LINENO" 5; }
18077a31a186aSmrgelse
18078a31a186aSmrg	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18079a31a186aSmrg	XORG_LIBS=$pkg_cv_XORG_LIBS
180800bb88ba4Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18081a31a186aSmrg$as_echo "yes" >&6; }
180820bb88ba4Smrg
18083a31a186aSmrgfi
18084a31a186aSmrgsdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18085643b027fSmrg
18086a31a186aSmrg# Checks for libraries.
18087643b027fSmrg
18088a31a186aSmrgif test "x$DRI" != xno; then
18089a31a186aSmrg        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
180900bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18091a31a186aSmrg$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
180920bb88ba4Smrgif eval \${$as_ac_File+:} false; then :
18093a31a186aSmrg  $as_echo_n "(cached) " >&6
18094a31a186aSmrgelse
18095a31a186aSmrg  test "$cross_compiling" = yes &&
180960bb88ba4Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18097a31a186aSmrgif test -r "${sdkdir}/dri.h"; then
18098a31a186aSmrg  eval "$as_ac_File=yes"
18099a31a186aSmrgelse
18100a31a186aSmrg  eval "$as_ac_File=no"
18101a31a186aSmrgfi
18102a31a186aSmrgfi
181030bb88ba4Smrgeval ac_res=\$$as_ac_File
181040bb88ba4Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18105a31a186aSmrg$as_echo "$ac_res" >&6; }
181060bb88ba4Smrgif eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18107a31a186aSmrg  have_dri_h="yes"
18108a31a186aSmrgelse
18109a31a186aSmrg  have_dri_h="no"
18110a31a186aSmrgfi
18111643b027fSmrg
18112a31a186aSmrg        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
181130bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18114a31a186aSmrg$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
181150bb88ba4Smrgif eval \${$as_ac_File+:} false; then :
18116a31a186aSmrg  $as_echo_n "(cached) " >&6
18117a31a186aSmrgelse
18118a31a186aSmrg  test "$cross_compiling" = yes &&
181190bb88ba4Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18120a31a186aSmrgif test -r "${sdkdir}/sarea.h"; then
18121a31a186aSmrg  eval "$as_ac_File=yes"
18122a31a186aSmrgelse
18123a31a186aSmrg  eval "$as_ac_File=no"
18124a31a186aSmrgfi
18125a31a186aSmrgfi
181260bb88ba4Smrgeval ac_res=\$$as_ac_File
181270bb88ba4Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18128a31a186aSmrg$as_echo "$ac_res" >&6; }
181290bb88ba4Smrgif eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18130a31a186aSmrg  have_sarea_h="yes"
18131a31a186aSmrgelse
18132a31a186aSmrg  have_sarea_h="no"
18133a31a186aSmrgfi
18134643b027fSmrg
18135a31a186aSmrg        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
181360bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18137a31a186aSmrg$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
181380bb88ba4Smrgif eval \${$as_ac_File+:} false; then :
18139a31a186aSmrg  $as_echo_n "(cached) " >&6
18140a31a186aSmrgelse
18141a31a186aSmrg  test "$cross_compiling" = yes &&
181420bb88ba4Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18143a31a186aSmrgif test -r "${sdkdir}/dristruct.h"; then
18144a31a186aSmrg  eval "$as_ac_File=yes"
18145a31a186aSmrgelse
18146a31a186aSmrg  eval "$as_ac_File=no"
18147a31a186aSmrgfi
18148a31a186aSmrgfi
181490bb88ba4Smrgeval ac_res=\$$as_ac_File
181500bb88ba4Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18151a31a186aSmrg$as_echo "$ac_res" >&6; }
181520bb88ba4Smrgif eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18153a31a186aSmrg  have_dristruct_h="yes"
18154a31a186aSmrgelse
18155a31a186aSmrg  have_dristruct_h="no"
18156a31a186aSmrgfi
18157643b027fSmrg
18158a31a186aSmrgfi
18159643b027fSmrg
181600bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18161a31a186aSmrg$as_echo_n "checking whether to include DRI support... " >&6; }
18162a31a186aSmrgif test "x$DRI" = xauto; then
18163a31a186aSmrg        if test "x$have_dri_h" = xyes && \
18164a31a186aSmrg           test "x$have_sarea_h" = xyes && \
18165a31a186aSmrg           test "x$have_dristruct_h" = xyes; then
18166a31a186aSmrg                DRI="yes"
18167a31a186aSmrg        else
18168a31a186aSmrg                DRI="no"
18169a31a186aSmrg        fi
18170a31a186aSmrgfi
181710bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18172a31a186aSmrg$as_echo "$DRI" >&6; }
18173643b027fSmrg
18174a31a186aSmrg if test "x$DRI" = xyes; then
18175a31a186aSmrg  DRI_TRUE=
18176a31a186aSmrg  DRI_FALSE='#'
18177a31a186aSmrgelse
18178a31a186aSmrg  DRI_TRUE='#'
18179a31a186aSmrg  DRI_FALSE=
18180a31a186aSmrgfi
18181643b027fSmrg
18182a31a186aSmrgif test "x$DRI" = xyes; then
18183643b027fSmrg
18184a31a186aSmrgpkg_failed=no
181850bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18186a31a186aSmrg$as_echo_n "checking for DRI... " >&6; }
18187643b027fSmrg
18188a31a186aSmrgif test -n "$DRI_CFLAGS"; then
18189a31a186aSmrg    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18190a31a186aSmrg elif test -n "$PKG_CONFIG"; then
18191a31a186aSmrg    if test -n "$PKG_CONFIG" && \
181920bb88ba4Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18193a31a186aSmrg  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18194a31a186aSmrg  ac_status=$?
181950bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
181960bb88ba4Smrg  test $ac_status = 0; }; then
18197a31a186aSmrg  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18198acd6767fSmrg		      test "x$?" != "x0" && pkg_failed=yes
18199a31a186aSmrgelse
18200a31a186aSmrg  pkg_failed=yes
18201a31a186aSmrgfi
18202a31a186aSmrg else
18203a31a186aSmrg    pkg_failed=untried
18204a31a186aSmrgfi
18205a31a186aSmrgif test -n "$DRI_LIBS"; then
18206a31a186aSmrg    pkg_cv_DRI_LIBS="$DRI_LIBS"
18207a31a186aSmrg elif test -n "$PKG_CONFIG"; then
18208a31a186aSmrg    if test -n "$PKG_CONFIG" && \
182090bb88ba4Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18210a31a186aSmrg  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18211a31a186aSmrg  ac_status=$?
182120bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
182130bb88ba4Smrg  test $ac_status = 0; }; then
18214a31a186aSmrg  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18215acd6767fSmrg		      test "x$?" != "x0" && pkg_failed=yes
18216a31a186aSmrgelse
18217a31a186aSmrg  pkg_failed=yes
18218a31a186aSmrgfi
18219a31a186aSmrg else
18220a31a186aSmrg    pkg_failed=untried
18221a31a186aSmrgfi
18222643b027fSmrg
18223643b027fSmrg
18224643b027fSmrg
18225a31a186aSmrgif test $pkg_failed = yes; then
182260bb88ba4Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
182270bb88ba4Smrg$as_echo "no" >&6; }
18228643b027fSmrg
18229a31a186aSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18230a31a186aSmrg        _pkg_short_errors_supported=yes
18231a31a186aSmrgelse
18232a31a186aSmrg        _pkg_short_errors_supported=no
18233a31a186aSmrgfi
18234a31a186aSmrg        if test $_pkg_short_errors_supported = yes; then
18235acd6767fSmrg	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18236a31a186aSmrg        else
18237acd6767fSmrg	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18238a31a186aSmrg        fi
18239a31a186aSmrg	# Put the nasty error message in config.log where it belongs
18240a31a186aSmrg	echo "$DRI_PKG_ERRORS" >&5
18241643b027fSmrg
182420bb88ba4Smrg	as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
18243643b027fSmrg
18244a31a186aSmrg$DRI_PKG_ERRORS
18245643b027fSmrg
18246a31a186aSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
18247a31a186aSmrginstalled software in a non-standard prefix.
18248643b027fSmrg
18249a31a186aSmrgAlternatively, you may set the environment variables DRI_CFLAGS
18250a31a186aSmrgand DRI_LIBS to avoid the need to call pkg-config.
182510bb88ba4SmrgSee the pkg-config man page for more details." "$LINENO" 5
18252a31a186aSmrgelif test $pkg_failed = untried; then
182530bb88ba4Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
182540bb88ba4Smrg$as_echo "no" >&6; }
182550bb88ba4Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18256a31a186aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
182570bb88ba4Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18258a31a186aSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
18259a31a186aSmrgpath to pkg-config.
18260fe5e51b7Smrg
18261a31a186aSmrgAlternatively, you may set the environment variables DRI_CFLAGS
18262a31a186aSmrgand DRI_LIBS to avoid the need to call pkg-config.
18263a31a186aSmrgSee the pkg-config man page for more details.
18264fe5e51b7Smrg
18265a31a186aSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
182660bb88ba4SmrgSee \`config.log' for more details" "$LINENO" 5; }
18267a31a186aSmrgelse
182680bb88ba4Smrg	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
182690bb88ba4Smrg	DRI_LIBS=$pkg_cv_DRI_LIBS
182700bb88ba4Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
182710bb88ba4Smrg$as_echo "yes" >&6; }
18272fe5e51b7Smrg
18273a31a186aSmrgfi
18274fe5e51b7Smrg
182750bb88ba4Smrg$as_echo "#define MGADRI 1" >>confdefs.h
182760bb88ba4Smrg
182770bb88ba4Smrg
182780bb88ba4Smrg$as_echo "#define MGADRI_DEVEL 1" >>confdefs.h
182790bb88ba4Smrg
18280a31a186aSmrgfi
182810bb88ba4Smrg
182820bb88ba4Smrgsave_CFLAGS="$CFLAGS"
182830bb88ba4SmrgCFLAGS="$XORG_CFLAGS"
182840bb88ba4Smrgac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
182850bb88ba4Smrg"
182860bb88ba4Smrgif test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18287a31a186aSmrg  XSERVER_LIBPCIACCESS=yes
18288a31a186aSmrgelse
18289a31a186aSmrg  XSERVER_LIBPCIACCESS=no
18290a31a186aSmrgfi
18291fe5e51b7Smrg
18292a31a186aSmrgCFLAGS="$save_CFLAGS"
18293fe5e51b7Smrg
18294a31a186aSmrgsave_CFLAGS="$CFLAGS"
18295a31a186aSmrgCFLAGS="$XORG_CFLAGS"
182960bb88ba4Smrgac_fn_c_check_decl "$LINENO" "xf86ModeBandwidth" "ac_cv_have_decl_xf86ModeBandwidth" "#include <X11/extensions/randr.h>
182970bb88ba4Smrg	       #include \"xorg-server.h\"
182980bb88ba4Smrg	       #include \"xf86Modes.h\"
182990bb88ba4Smrg"
183000bb88ba4Smrgif test "x$ac_cv_have_decl_xf86ModeBandwidth" = xyes; then :
18301fe5e51b7Smrg
183020bb88ba4Smrg$as_echo "#define HAVE_XF86MODEBANDWIDTH 1" >>confdefs.h
18303fe5e51b7Smrg
18304a31a186aSmrgfi
18305fe5e51b7Smrg
18306a31a186aSmrgCFLAGS="$save_CFLAGS"
18307fe5e51b7Smrg
18308a31a186aSmrgif test "x$XSERVER_LIBPCIACCESS" = xyes; then
18309fe5e51b7Smrg
18310a31a186aSmrgpkg_failed=no
183110bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18312a31a186aSmrg$as_echo_n "checking for PCIACCESS... " >&6; }
18313fe5e51b7Smrg
18314a31a186aSmrgif test -n "$PCIACCESS_CFLAGS"; then
18315a31a186aSmrg    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18316a31a186aSmrg elif test -n "$PKG_CONFIG"; then
18317a31a186aSmrg    if test -n "$PKG_CONFIG" && \
183180bb88ba4Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18319a31a186aSmrg  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18320a31a186aSmrg  ac_status=$?
183210bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
183220bb88ba4Smrg  test $ac_status = 0; }; then
18323a31a186aSmrg  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18324acd6767fSmrg		      test "x$?" != "x0" && pkg_failed=yes
18325a31a186aSmrgelse
18326a31a186aSmrg  pkg_failed=yes
18327a31a186aSmrgfi
18328a31a186aSmrg else
18329a31a186aSmrg    pkg_failed=untried
18330a31a186aSmrgfi
18331a31a186aSmrgif test -n "$PCIACCESS_LIBS"; then
18332a31a186aSmrg    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18333a31a186aSmrg elif test -n "$PKG_CONFIG"; then
18334a31a186aSmrg    if test -n "$PKG_CONFIG" && \
183350bb88ba4Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18336a31a186aSmrg  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18337a31a186aSmrg  ac_status=$?
183380bb88ba4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
183390bb88ba4Smrg  test $ac_status = 0; }; then
18340a31a186aSmrg  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18341acd6767fSmrg		      test "x$?" != "x0" && pkg_failed=yes
18342a31a186aSmrgelse
18343a31a186aSmrg  pkg_failed=yes
18344a31a186aSmrgfi
18345a31a186aSmrg else
18346a31a186aSmrg    pkg_failed=untried
18347a31a186aSmrgfi
18348fe5e51b7Smrg
18349fe5e51b7Smrg
18350fe5e51b7Smrg
18351a31a186aSmrgif test $pkg_failed = yes; then
183520bb88ba4Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
183530bb88ba4Smrg$as_echo "no" >&6; }
18354fe5e51b7Smrg
18355a31a186aSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18356a31a186aSmrg        _pkg_short_errors_supported=yes
18357a31a186aSmrgelse
18358a31a186aSmrg        _pkg_short_errors_supported=no
18359a31a186aSmrgfi
18360a31a186aSmrg        if test $_pkg_short_errors_supported = yes; then
18361acd6767fSmrg	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18362a31a186aSmrg        else
18363acd6767fSmrg	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18364a31a186aSmrg        fi
18365a31a186aSmrg	# Put the nasty error message in config.log where it belongs
18366a31a186aSmrg	echo "$PCIACCESS_PKG_ERRORS" >&5
18367fe5e51b7Smrg
183680bb88ba4Smrg	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18369fe5e51b7Smrg
18370a31a186aSmrg$PCIACCESS_PKG_ERRORS
18371fe5e51b7Smrg
18372a31a186aSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
18373a31a186aSmrginstalled software in a non-standard prefix.
18374fe5e51b7Smrg
18375a31a186aSmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS
18376a31a186aSmrgand PCIACCESS_LIBS to avoid the need to call pkg-config.
183770bb88ba4SmrgSee the pkg-config man page for more details." "$LINENO" 5
18378a31a186aSmrgelif test $pkg_failed = untried; then
183790bb88ba4Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
183800bb88ba4Smrg$as_echo "no" >&6; }
183810bb88ba4Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18382a31a186aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
183830bb88ba4Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18384a31a186aSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
18385a31a186aSmrgpath to pkg-config.
18386fe5e51b7Smrg
18387a31a186aSmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS
18388a31a186aSmrgand PCIACCESS_LIBS to avoid the need to call pkg-config.
18389a31a186aSmrgSee the pkg-config man page for more details.
18390fe5e51b7Smrg
18391a31a186aSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
183920bb88ba4SmrgSee \`config.log' for more details" "$LINENO" 5; }
18393a31a186aSmrgelse
18394a31a186aSmrg	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18395a31a186aSmrg	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
183960bb88ba4Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18397a31a186aSmrg$as_echo "yes" >&6; }
183980bb88ba4Smrg
18399a31a186aSmrgfi
18400a31a186aSmrgfi
18401a31a186aSmrg if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18402a31a186aSmrg  XSERVER_LIBPCIACCESS_TRUE=
18403a31a186aSmrg  XSERVER_LIBPCIACCESS_FALSE='#'
18404a31a186aSmrgelse
18405a31a186aSmrg  XSERVER_LIBPCIACCESS_TRUE='#'
18406a31a186aSmrg  XSERVER_LIBPCIACCESS_FALSE=
18407a31a186aSmrgfi
18408fe5e51b7Smrg
18409fe5e51b7Smrg
184100bb88ba4Smrg
184110bb88ba4Smrg# Check whether --enable-xaa was given.
184120bb88ba4Smrgif test "${enable_xaa+set}" = set; then :
184130bb88ba4Smrg  enableval=$enable_xaa; XAA="$enableval"
18414a31a186aSmrgelse
184150bb88ba4Smrg  XAA=auto
18416a31a186aSmrgfi
18417fe5e51b7Smrg
184180bb88ba4Smrgif test "x$XAA" != xno; then
184190bb88ba4Smrg        save_CFLAGS=$CFLAGS
184200bb88ba4Smrg        save_CPPFLAGS=$CPPFLAGS
184210bb88ba4Smrg        CFLAGS=$XORG_CFLAGS
184220bb88ba4Smrg        CPPFLAGS="$XORG_CFLAGS"
184230bb88ba4Smrg        for ac_header in xaa.h
184240bb88ba4Smrgdo :
184250bb88ba4Smrg  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
184260bb88ba4Smrgif test "x$ac_cv_header_xaa_h" = xyes; then :
184270bb88ba4Smrg  cat >>confdefs.h <<_ACEOF
184280bb88ba4Smrg#define HAVE_XAA_H 1
18429a31a186aSmrg_ACEOF
184300bb88ba4Smrg XAA=yes
18431a31a186aSmrgelse
184320bb88ba4Smrg  XAA=no
18433a31a186aSmrgfi
18434fe5e51b7Smrg
184350bb88ba4Smrgdone
18436fe5e51b7Smrg
184370bb88ba4Smrg        CFLAGS=$save_CFLAGS
184380bb88ba4Smrg        CPPFLAGS=$save_CPPFLAGS
184390bb88ba4Smrgfi
184400bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
184410bb88ba4Smrg$as_echo_n "checking whether to include XAA support... " >&6; }
184420bb88ba4Smrg if test "x$XAA" = xyes; then
184430bb88ba4Smrg  XAA_TRUE=
184440bb88ba4Smrg  XAA_FALSE='#'
18445a31a186aSmrgelse
184460bb88ba4Smrg  XAA_TRUE='#'
184470bb88ba4Smrg  XAA_FALSE=
18448a31a186aSmrgfi
18449fe5e51b7Smrg
184500bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
184510bb88ba4Smrg$as_echo "$XAA" >&6; }
18452acd6767fSmrgif test "x$XAA" = xyes; then
18453acd6767fSmrg
18454acd6767fSmrg$as_echo "#define USE_XAA 1" >>confdefs.h
18455acd6767fSmrg
18456acd6767fSmrgfi
18457fe5e51b7Smrg
184580bb88ba4Smrg# Properly handle EXA.
184590bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
184600bb88ba4Smrg$as_echo_n "checking whether to enable EXA support... " >&6; }
184610bb88ba4Smrgif test "x$EXA" = xyes; then
184620bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
184630bb88ba4Smrg$as_echo "yes" >&6; }
18464fe5e51b7Smrg
184650bb88ba4Smrg    SAVE_CPPFLAGS="$CPPFLAGS"
184660bb88ba4Smrg    CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
184670bb88ba4Smrg    ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
184680bb88ba4Smrgif test "x$ac_cv_header_exa_h" = xyes; then :
18469a31a186aSmrg  have_exa_h="yes"
18470a31a186aSmrgelse
18471a31a186aSmrg  have_exa_h="no"
18472a31a186aSmrgfi
18473fe5e51b7Smrg
18474fe5e51b7Smrg
18475a31a186aSmrg    CPPFLAGS="$SAVE_CPPFLAGS"
18476a31a186aSmrgelse
184770bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18478a31a186aSmrg$as_echo "no" >&6; }
18479a31a186aSmrgfi
18480fe5e51b7Smrg
18481a31a186aSmrgSAVE_CPPFLAGS="$CPPFLAGS"
18482a31a186aSmrgCPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18483a31a186aSmrgif test "x$have_exa_h" = xyes; then
184840bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
18485a31a186aSmrg$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
184860bb88ba4Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487a31a186aSmrg/* end confdefs.h.  */
18488fe5e51b7Smrg
18489a31a186aSmrg#include "exa.h"
18490a31a186aSmrg#if EXA_VERSION_MAJOR < 2
18491a31a186aSmrg#error OLD EXA!
18492a31a186aSmrg#endif
18493fe5e51b7Smrg
18494a31a186aSmrgint
18495a31a186aSmrgmain ()
18496a31a186aSmrg{
18497fe5e51b7Smrg
18498a31a186aSmrg  ;
18499a31a186aSmrg  return 0;
18500a31a186aSmrg}
18501a31a186aSmrg_ACEOF
185020bb88ba4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
18503a31a186aSmrg  USE_EXA=yes
18504a31a186aSmrgelse
18505a31a186aSmrg  USE_EXA=no
18506a31a186aSmrgfi
185070bb88ba4Smrgrm -f conftest.err conftest.i conftest.$ac_ext
185080bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
18509a31a186aSmrg$as_echo "$USE_EXA" >&6; }
18510fe5e51b7Smrg
18511a31a186aSmrg    if test "x$USE_EXA" = xyes; then
18512fe5e51b7Smrg
185130bb88ba4Smrg$as_echo "#define USE_EXA 1" >>confdefs.h
18514fe5e51b7Smrg
18515a31a186aSmrg    fi
18516a31a186aSmrgfi
18517a31a186aSmrgCPPFLAGS="$SAVE_CPPFLAGS"
18518fe5e51b7Smrg
18519a31a186aSmrg if test "x$USE_EXA" = xyes; then
18520a31a186aSmrg  USE_EXA_TRUE=
18521a31a186aSmrg  USE_EXA_FALSE='#'
18522a31a186aSmrgelse
18523a31a186aSmrg  USE_EXA_TRUE='#'
18524a31a186aSmrg  USE_EXA_FALSE=
18525a31a186aSmrgfi
18526fe5e51b7Smrg
18527fe5e51b7Smrg
18528fe5e51b7Smrg
18529fe5e51b7Smrg
18530a31a186aSmrgDRIVER_NAME=mga
18531fe5e51b7Smrg
18532fe5e51b7Smrg
18533a31a186aSmrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
18534643b027fSmrg
18535a31a186aSmrgcat >confcache <<\_ACEOF
18536a31a186aSmrg# This file is a shell script that caches the results of configure
18537a31a186aSmrg# tests run on this system so they can be shared between configure
18538a31a186aSmrg# scripts and configure runs, see configure's option --config-cache.
18539a31a186aSmrg# It is not useful on other systems.  If it contains results you don't
18540a31a186aSmrg# want to keep, you may remove or edit it.
18541a31a186aSmrg#
18542a31a186aSmrg# config.status only pays attention to the cache file if you give it
18543a31a186aSmrg# the --recheck option to rerun configure.
18544a31a186aSmrg#
18545a31a186aSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
18546a31a186aSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
18547a31a186aSmrg# following values.
18548643b027fSmrg
18549a31a186aSmrg_ACEOF
18550643b027fSmrg
18551a31a186aSmrg# The following way of writing the cache mishandles newlines in values,
18552a31a186aSmrg# but we know of no workaround that is simple, portable, and efficient.
18553a31a186aSmrg# So, we kill variables containing newlines.
18554a31a186aSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
18555a31a186aSmrg# and sets the high bit in the cache file unless we assign to the vars.
18556a31a186aSmrg(
18557a31a186aSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18558a31a186aSmrg    eval ac_val=\$$ac_var
18559a31a186aSmrg    case $ac_val in #(
18560a31a186aSmrg    *${as_nl}*)
18561a31a186aSmrg      case $ac_var in #(
185620bb88ba4Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18563a31a186aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18564a31a186aSmrg      esac
18565a31a186aSmrg      case $ac_var in #(
18566a31a186aSmrg      _ | IFS | as_nl) ;; #(
18567a31a186aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
185680bb88ba4Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
18569a31a186aSmrg      esac ;;
18570a31a186aSmrg    esac
18571a31a186aSmrg  done
18572643b027fSmrg
18573a31a186aSmrg  (set) 2>&1 |
18574a31a186aSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18575a31a186aSmrg    *${as_nl}ac_space=\ *)
185760bb88ba4Smrg      # `set' does not quote correctly, so add quotes: double-quote
185770bb88ba4Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
18578a31a186aSmrg      sed -n \
18579a31a186aSmrg	"s/'/'\\\\''/g;
18580a31a186aSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18581a31a186aSmrg      ;; #(
18582a31a186aSmrg    *)
18583a31a186aSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
18584a31a186aSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18585a31a186aSmrg      ;;
18586a31a186aSmrg    esac |
18587a31a186aSmrg    sort
18588a31a186aSmrg) |
18589a31a186aSmrg  sed '
18590a31a186aSmrg     /^ac_cv_env_/b end
18591a31a186aSmrg     t clear
18592a31a186aSmrg     :clear
18593a31a186aSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18594a31a186aSmrg     t end
18595a31a186aSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18596a31a186aSmrg     :end' >>confcache
18597a31a186aSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18598a31a186aSmrg  if test -w "$cache_file"; then
185990bb88ba4Smrg    if test "x$cache_file" != "x/dev/null"; then
186000bb88ba4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18601a31a186aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
186020bb88ba4Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
186030bb88ba4Smrg	cat confcache >"$cache_file"
186040bb88ba4Smrg      else
186050bb88ba4Smrg        case $cache_file in #(
186060bb88ba4Smrg        */* | ?:*)
186070bb88ba4Smrg	  mv -f confcache "$cache_file"$$ &&
186080bb88ba4Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
186090bb88ba4Smrg        *)
186100bb88ba4Smrg	  mv -f confcache "$cache_file" ;;
186110bb88ba4Smrg	esac
186120bb88ba4Smrg      fi
186130bb88ba4Smrg    fi
18614a31a186aSmrg  else
186150bb88ba4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18616a31a186aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18617a31a186aSmrg  fi
18618a31a186aSmrgfi
18619a31a186aSmrgrm -f confcache
18620fe5e51b7Smrg
18621a31a186aSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
18622a31a186aSmrg# Let make expand exec_prefix.
18623a31a186aSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18624fe5e51b7Smrg
18625a31a186aSmrgDEFS=-DHAVE_CONFIG_H
18626fe5e51b7Smrg
18627a31a186aSmrgac_libobjs=
18628a31a186aSmrgac_ltlibobjs=
186290bb88ba4SmrgU=
18630a31a186aSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18631a31a186aSmrg  # 1. Remove the extension, and $U if already installed.
18632a31a186aSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18633a31a186aSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18634a31a186aSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18635a31a186aSmrg  #    will be set to the directory where LIBOBJS objects are built.
186360bb88ba4Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
186370bb88ba4Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18638a31a186aSmrgdone
18639a31a186aSmrgLIBOBJS=$ac_libobjs
18640643b027fSmrg
18641a31a186aSmrgLTLIBOBJS=$ac_ltlibobjs
18642fe5e51b7Smrg
18643fe5e51b7Smrg
18644acd6767fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18645acd6767fSmrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
18646acd6767fSmrg   if test -n "$am_sleep_pid"; then
18647acd6767fSmrg     # Hide warnings about reused PIDs.
18648acd6767fSmrg     wait $am_sleep_pid 2>/dev/null
18649acd6767fSmrg   fi
18650acd6767fSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18651acd6767fSmrg$as_echo "done" >&6; }
18652a31a186aSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
186530bb88ba4Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
186540bb88ba4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18655a31a186aSmrgfi
18656a31a186aSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
186570bb88ba4Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
186580bb88ba4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18659a31a186aSmrgfi
18660a31a186aSmrg if test -n "$EXEEXT"; then
18661a31a186aSmrg  am__EXEEXT_TRUE=
18662a31a186aSmrg  am__EXEEXT_FALSE='#'
18663eda3803bSmrgelse
18664a31a186aSmrg  am__EXEEXT_TRUE='#'
18665a31a186aSmrg  am__EXEEXT_FALSE=
18666eda3803bSmrgfi
18667fe5e51b7Smrg
18668a31a186aSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
186690bb88ba4Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
186700bb88ba4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18671a31a186aSmrgfi
18672a31a186aSmrgif test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
186730bb88ba4Smrg  as_fn_error $? "conditional \"DRI\" was never defined.
186740bb88ba4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18675a31a186aSmrgfi
18676a31a186aSmrgif test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
186770bb88ba4Smrg  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
186780bb88ba4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
186790bb88ba4Smrgfi
186800bb88ba4Smrgif test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
186810bb88ba4Smrg  as_fn_error $? "conditional \"XAA\" was never defined.
186820bb88ba4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18683a31a186aSmrgfi
18684a31a186aSmrgif test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
186850bb88ba4Smrg  as_fn_error $? "conditional \"USE_EXA\" was never defined.
186860bb88ba4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18687a31a186aSmrgfi
18688fe5e51b7Smrg
186890bb88ba4Smrg: "${CONFIG_STATUS=./config.status}"
18690a31a186aSmrgac_write_fail=0
18691a31a186aSmrgac_clean_files_save=$ac_clean_files
18692a31a186aSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
186930bb88ba4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18694a31a186aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
186950bb88ba4Smrgas_write_fail=0
186960bb88ba4Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18697a31a186aSmrg#! $SHELL
18698a31a186aSmrg# Generated by $as_me.
18699a31a186aSmrg# Run this file to recreate the current configuration.
18700a31a186aSmrg# Compiler output produced by configure, useful for debugging
18701a31a186aSmrg# configure, is in config.log if it exists.
18702fe5e51b7Smrg
18703a31a186aSmrgdebug=false
18704a31a186aSmrgac_cs_recheck=false
18705a31a186aSmrgac_cs_silent=false
18706fe5e51b7Smrg
187070bb88ba4SmrgSHELL=\${CONFIG_SHELL-$SHELL}
187080bb88ba4Smrgexport SHELL
187090bb88ba4Smrg_ASEOF
187100bb88ba4Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
187110bb88ba4Smrg## -------------------- ##
187120bb88ba4Smrg## M4sh Initialization. ##
187130bb88ba4Smrg## -------------------- ##
18714643b027fSmrg
18715a31a186aSmrg# Be more Bourne compatible
18716a31a186aSmrgDUALCASE=1; export DUALCASE # for MKS sh
187170bb88ba4Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18718a31a186aSmrg  emulate sh
18719a31a186aSmrg  NULLCMD=:
18720a31a186aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18721a31a186aSmrg  # is contrary to our usage.  Disable this feature.
18722a31a186aSmrg  alias -g '${1+"$@"}'='"$@"'
18723a31a186aSmrg  setopt NO_GLOB_SUBST
18724a31a186aSmrgelse
187250bb88ba4Smrg  case `(set -o) 2>/dev/null` in #(
187260bb88ba4Smrg  *posix*) :
187270bb88ba4Smrg    set -o posix ;; #(
187280bb88ba4Smrg  *) :
187290bb88ba4Smrg     ;;
18730a31a186aSmrgesac
18731a31a186aSmrgfi
18732643b027fSmrg
18733643b027fSmrg
18734a31a186aSmrgas_nl='
18735a31a186aSmrg'
18736a31a186aSmrgexport as_nl
18737a31a186aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
18738a31a186aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18739a31a186aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18740a31a186aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
187410bb88ba4Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
187420bb88ba4Smrg# but without wasting forks for bash or zsh.
187430bb88ba4Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
187440bb88ba4Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
187450bb88ba4Smrg  as_echo='print -r --'
187460bb88ba4Smrg  as_echo_n='print -rn --'
187470bb88ba4Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18748a31a186aSmrg  as_echo='printf %s\n'
18749a31a186aSmrg  as_echo_n='printf %s'
18750a31a186aSmrgelse
18751a31a186aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18752a31a186aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18753a31a186aSmrg    as_echo_n='/usr/ucb/echo -n'
18754a31a186aSmrg  else
18755a31a186aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18756a31a186aSmrg    as_echo_n_body='eval
18757a31a186aSmrg      arg=$1;
187580bb88ba4Smrg      case $arg in #(
18759a31a186aSmrg      *"$as_nl"*)
18760a31a186aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
18761a31a186aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18762a31a186aSmrg      esac;
18763a31a186aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18764a31a186aSmrg    '
18765a31a186aSmrg    export as_echo_n_body
18766a31a186aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
18767a31a186aSmrg  fi
18768a31a186aSmrg  export as_echo_body
18769a31a186aSmrg  as_echo='sh -c $as_echo_body as_echo'
18770a31a186aSmrgfi
18771643b027fSmrg
18772a31a186aSmrg# The user is always right.
18773a31a186aSmrgif test "${PATH_SEPARATOR+set}" != set; then
18774a31a186aSmrg  PATH_SEPARATOR=:
18775a31a186aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18776a31a186aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18777a31a186aSmrg      PATH_SEPARATOR=';'
18778a31a186aSmrg  }
18779a31a186aSmrgfi
18780643b027fSmrg
18781643b027fSmrg
18782a31a186aSmrg# IFS
18783a31a186aSmrg# We need space, tab and new line, in precisely that order.  Quoting is
18784a31a186aSmrg# there to prevent editors from complaining about space-tab.
18785a31a186aSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18786a31a186aSmrg# splitting by setting IFS to empty value.)
18787a31a186aSmrgIFS=" ""	$as_nl"
18788643b027fSmrg
18789a31a186aSmrg# Find who we are.  Look in the path if we contain no directory separator.
187900bb88ba4Smrgas_myself=
187910bb88ba4Smrgcase $0 in #((
18792a31a186aSmrg  *[\\/]* ) as_myself=$0 ;;
18793a31a186aSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18794a31a186aSmrgfor as_dir in $PATH
18795a31a186aSmrgdo
18796a31a186aSmrg  IFS=$as_save_IFS
18797a31a186aSmrg  test -z "$as_dir" && as_dir=.
187980bb88ba4Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
187990bb88ba4Smrg  done
18800a31a186aSmrgIFS=$as_save_IFS
18801643b027fSmrg
18802a31a186aSmrg     ;;
18803a31a186aSmrgesac
18804a31a186aSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
18805a31a186aSmrg# in which case we are not to be found in the path.
18806a31a186aSmrgif test "x$as_myself" = x; then
18807a31a186aSmrg  as_myself=$0
18808a31a186aSmrgfi
18809a31a186aSmrgif test ! -f "$as_myself"; then
18810a31a186aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
188110bb88ba4Smrg  exit 1
18812a31a186aSmrgfi
18813643b027fSmrg
188140bb88ba4Smrg# Unset variables that we do not need and which cause bugs (e.g. in
188150bb88ba4Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
188160bb88ba4Smrg# suppresses any "Segmentation fault" message there.  '((' could
188170bb88ba4Smrg# trigger a bug in pdksh 5.2.14.
188180bb88ba4Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
188190bb88ba4Smrgdo eval test x\${$as_var+set} = xset \
188200bb88ba4Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18821a31a186aSmrgdone
18822a31a186aSmrgPS1='$ '
18823a31a186aSmrgPS2='> '
18824a31a186aSmrgPS4='+ '
18825643b027fSmrg
18826a31a186aSmrg# NLS nuisances.
18827a31a186aSmrgLC_ALL=C
18828a31a186aSmrgexport LC_ALL
18829a31a186aSmrgLANGUAGE=C
18830a31a186aSmrgexport LANGUAGE
18831643b027fSmrg
188320bb88ba4Smrg# CDPATH.
188330bb88ba4Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
188340bb88ba4Smrg
188350bb88ba4Smrg
188360bb88ba4Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
188370bb88ba4Smrg# ----------------------------------------
188380bb88ba4Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
188390bb88ba4Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
188400bb88ba4Smrg# script with STATUS, using 1 if that was 0.
188410bb88ba4Smrgas_fn_error ()
188420bb88ba4Smrg{
188430bb88ba4Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
188440bb88ba4Smrg  if test "$4"; then
188450bb88ba4Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
188460bb88ba4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
188470bb88ba4Smrg  fi
188480bb88ba4Smrg  $as_echo "$as_me: error: $2" >&2
188490bb88ba4Smrg  as_fn_exit $as_status
188500bb88ba4Smrg} # as_fn_error
188510bb88ba4Smrg
188520bb88ba4Smrg
188530bb88ba4Smrg# as_fn_set_status STATUS
188540bb88ba4Smrg# -----------------------
188550bb88ba4Smrg# Set $? to STATUS, without forking.
188560bb88ba4Smrgas_fn_set_status ()
188570bb88ba4Smrg{
188580bb88ba4Smrg  return $1
188590bb88ba4Smrg} # as_fn_set_status
188600bb88ba4Smrg
188610bb88ba4Smrg# as_fn_exit STATUS
188620bb88ba4Smrg# -----------------
188630bb88ba4Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
188640bb88ba4Smrgas_fn_exit ()
188650bb88ba4Smrg{
188660bb88ba4Smrg  set +e
188670bb88ba4Smrg  as_fn_set_status $1
188680bb88ba4Smrg  exit $1
188690bb88ba4Smrg} # as_fn_exit
188700bb88ba4Smrg
188710bb88ba4Smrg# as_fn_unset VAR
188720bb88ba4Smrg# ---------------
188730bb88ba4Smrg# Portably unset VAR.
188740bb88ba4Smrgas_fn_unset ()
188750bb88ba4Smrg{
188760bb88ba4Smrg  { eval $1=; unset $1;}
188770bb88ba4Smrg}
188780bb88ba4Smrgas_unset=as_fn_unset
188790bb88ba4Smrg# as_fn_append VAR VALUE
188800bb88ba4Smrg# ----------------------
188810bb88ba4Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
188820bb88ba4Smrg# advantage of any shell optimizations that allow amortized linear growth over
188830bb88ba4Smrg# repeated appends, instead of the typical quadratic growth present in naive
188840bb88ba4Smrg# implementations.
188850bb88ba4Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
188860bb88ba4Smrg  eval 'as_fn_append ()
188870bb88ba4Smrg  {
188880bb88ba4Smrg    eval $1+=\$2
188890bb88ba4Smrg  }'
188900bb88ba4Smrgelse
188910bb88ba4Smrg  as_fn_append ()
188920bb88ba4Smrg  {
188930bb88ba4Smrg    eval $1=\$$1\$2
188940bb88ba4Smrg  }
188950bb88ba4Smrgfi # as_fn_append
188960bb88ba4Smrg
188970bb88ba4Smrg# as_fn_arith ARG...
188980bb88ba4Smrg# ------------------
188990bb88ba4Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
189000bb88ba4Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
189010bb88ba4Smrg# must be portable across $(()) and expr.
189020bb88ba4Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
189030bb88ba4Smrg  eval 'as_fn_arith ()
189040bb88ba4Smrg  {
189050bb88ba4Smrg    as_val=$(( $* ))
189060bb88ba4Smrg  }'
189070bb88ba4Smrgelse
189080bb88ba4Smrg  as_fn_arith ()
189090bb88ba4Smrg  {
189100bb88ba4Smrg    as_val=`expr "$@" || test $? -eq 1`
189110bb88ba4Smrg  }
189120bb88ba4Smrgfi # as_fn_arith
189130bb88ba4Smrg
189140bb88ba4Smrg
18915a31a186aSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
18916a31a186aSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18917a31a186aSmrg  as_expr=expr
18918a31a186aSmrgelse
18919a31a186aSmrg  as_expr=false
18920a31a186aSmrgfi
18921643b027fSmrg
18922a31a186aSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18923a31a186aSmrg  as_basename=basename
18924a31a186aSmrgelse
18925a31a186aSmrg  as_basename=false
18926a31a186aSmrgfi
18927643b027fSmrg
189280bb88ba4Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
189290bb88ba4Smrg  as_dirname=dirname
189300bb88ba4Smrgelse
189310bb88ba4Smrg  as_dirname=false
189320bb88ba4Smrgfi
18933fe5e51b7Smrg
18934a31a186aSmrgas_me=`$as_basename -- "$0" ||
18935a31a186aSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18936a31a186aSmrg	 X"$0" : 'X\(//\)$' \| \
18937a31a186aSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18938a31a186aSmrg$as_echo X/"$0" |
18939a31a186aSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
18940a31a186aSmrg	    s//\1/
18941a31a186aSmrg	    q
18942a31a186aSmrg	  }
18943a31a186aSmrg	  /^X\/\(\/\/\)$/{
18944a31a186aSmrg	    s//\1/
18945a31a186aSmrg	    q
18946a31a186aSmrg	  }
18947a31a186aSmrg	  /^X\/\(\/\).*/{
18948a31a186aSmrg	    s//\1/
18949a31a186aSmrg	    q
18950a31a186aSmrg	  }
18951a31a186aSmrg	  s/.*/./; q'`
18952fe5e51b7Smrg
189530bb88ba4Smrg# Avoid depending upon Character Ranges.
189540bb88ba4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
189550bb88ba4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
189560bb88ba4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
189570bb88ba4Smrgas_cr_digits='0123456789'
189580bb88ba4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
18959fe5e51b7Smrg
18960a31a186aSmrgECHO_C= ECHO_N= ECHO_T=
189610bb88ba4Smrgcase `echo -n x` in #(((((
18962a31a186aSmrg-n*)
189630bb88ba4Smrg  case `echo 'xy\c'` in
18964a31a186aSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
189650bb88ba4Smrg  xy)  ECHO_C='\c';;
189660bb88ba4Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
189670bb88ba4Smrg       ECHO_T='	';;
18968a31a186aSmrg  esac;;
18969a31a186aSmrg*)
18970a31a186aSmrg  ECHO_N='-n';;
18971a31a186aSmrgesac
18972fe5e51b7Smrg
18973a31a186aSmrgrm -f conf$$ conf$$.exe conf$$.file
18974a31a186aSmrgif test -d conf$$.dir; then
18975a31a186aSmrg  rm -f conf$$.dir/conf$$.file
18976a31a186aSmrgelse
18977a31a186aSmrg  rm -f conf$$.dir
18978a31a186aSmrg  mkdir conf$$.dir 2>/dev/null
18979a31a186aSmrgfi
18980a31a186aSmrgif (echo >conf$$.file) 2>/dev/null; then
18981a31a186aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
18982a31a186aSmrg    as_ln_s='ln -s'
18983a31a186aSmrg    # ... but there are two gotchas:
18984a31a186aSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18985a31a186aSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18986acd6767fSmrg    # In both cases, we have to default to `cp -pR'.
18987a31a186aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18988acd6767fSmrg      as_ln_s='cp -pR'
18989a31a186aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
18990a31a186aSmrg    as_ln_s=ln
18991a31a186aSmrg  else
18992acd6767fSmrg    as_ln_s='cp -pR'
18993a31a186aSmrg  fi
18994a31a186aSmrgelse
18995acd6767fSmrg  as_ln_s='cp -pR'
18996a31a186aSmrgfi
18997a31a186aSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18998a31a186aSmrgrmdir conf$$.dir 2>/dev/null
18999fe5e51b7Smrg
190000bb88ba4Smrg
190010bb88ba4Smrg# as_fn_mkdir_p
190020bb88ba4Smrg# -------------
190030bb88ba4Smrg# Create "$as_dir" as a directory, including parents if necessary.
190040bb88ba4Smrgas_fn_mkdir_p ()
190050bb88ba4Smrg{
190060bb88ba4Smrg
190070bb88ba4Smrg  case $as_dir in #(
190080bb88ba4Smrg  -*) as_dir=./$as_dir;;
190090bb88ba4Smrg  esac
190100bb88ba4Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
190110bb88ba4Smrg    as_dirs=
190120bb88ba4Smrg    while :; do
190130bb88ba4Smrg      case $as_dir in #(
190140bb88ba4Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
190150bb88ba4Smrg      *) as_qdir=$as_dir;;
190160bb88ba4Smrg      esac
190170bb88ba4Smrg      as_dirs="'$as_qdir' $as_dirs"
190180bb88ba4Smrg      as_dir=`$as_dirname -- "$as_dir" ||
190190bb88ba4Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
190200bb88ba4Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
190210bb88ba4Smrg	 X"$as_dir" : 'X\(//\)$' \| \
190220bb88ba4Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
190230bb88ba4Smrg$as_echo X"$as_dir" |
190240bb88ba4Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
190250bb88ba4Smrg	    s//\1/
190260bb88ba4Smrg	    q
190270bb88ba4Smrg	  }
190280bb88ba4Smrg	  /^X\(\/\/\)[^/].*/{
190290bb88ba4Smrg	    s//\1/
190300bb88ba4Smrg	    q
190310bb88ba4Smrg	  }
190320bb88ba4Smrg	  /^X\(\/\/\)$/{
190330bb88ba4Smrg	    s//\1/
190340bb88ba4Smrg	    q
190350bb88ba4Smrg	  }
190360bb88ba4Smrg	  /^X\(\/\).*/{
190370bb88ba4Smrg	    s//\1/
190380bb88ba4Smrg	    q
190390bb88ba4Smrg	  }
190400bb88ba4Smrg	  s/.*/./; q'`
190410bb88ba4Smrg      test -d "$as_dir" && break
190420bb88ba4Smrg    done
190430bb88ba4Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
190440bb88ba4Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
190450bb88ba4Smrg
190460bb88ba4Smrg
190470bb88ba4Smrg} # as_fn_mkdir_p
19048a31a186aSmrgif mkdir -p . 2>/dev/null; then
190490bb88ba4Smrg  as_mkdir_p='mkdir -p "$as_dir"'
19050a31a186aSmrgelse
19051a31a186aSmrg  test -d ./-p && rmdir ./-p
19052a31a186aSmrg  as_mkdir_p=false
19053a31a186aSmrgfi
19054fe5e51b7Smrg
19055acd6767fSmrg
19056acd6767fSmrg# as_fn_executable_p FILE
19057acd6767fSmrg# -----------------------
19058acd6767fSmrg# Test if FILE is an executable regular file.
19059acd6767fSmrgas_fn_executable_p ()
19060acd6767fSmrg{
19061acd6767fSmrg  test -f "$1" && test -x "$1"
19062acd6767fSmrg} # as_fn_executable_p
19063acd6767fSmrgas_test_x='test -x'
19064acd6767fSmrgas_executable_p=as_fn_executable_p
19065643b027fSmrg
19066a31a186aSmrg# Sed expression to map a string onto a valid CPP name.
19067a31a186aSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19068643b027fSmrg
19069a31a186aSmrg# Sed expression to map a string onto a valid variable name.
19070a31a186aSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19071643b027fSmrg
19072fe5e51b7Smrg
19073a31a186aSmrgexec 6>&1
190740bb88ba4Smrg## ----------------------------------- ##
190750bb88ba4Smrg## Main body of $CONFIG_STATUS script. ##
190760bb88ba4Smrg## ----------------------------------- ##
190770bb88ba4Smrg_ASEOF
190780bb88ba4Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19079fe5e51b7Smrg
190800bb88ba4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
190810bb88ba4Smrg# Save the log message, to keep $0 and so on meaningful, and to
19082a31a186aSmrg# report actual input values of CONFIG_FILES etc. instead of their
19083a31a186aSmrg# values after options handling.
19084a31a186aSmrgac_log="
19085acd6767fSmrgThis file was extended by xf86-video-mga $as_me 1.6.3, which was
19086acd6767fSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
19087fe5e51b7Smrg
19088a31a186aSmrg  CONFIG_FILES    = $CONFIG_FILES
19089a31a186aSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
19090a31a186aSmrg  CONFIG_LINKS    = $CONFIG_LINKS
19091a31a186aSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
19092a31a186aSmrg  $ $0 $@
19093fe5e51b7Smrg
19094a31a186aSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
19095a31a186aSmrg"
19096fe5e51b7Smrg
19097a31a186aSmrg_ACEOF
19098fe5e51b7Smrg
19099a31a186aSmrgcase $ac_config_files in *"
19100a31a186aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
19101a31a186aSmrgesac
19102fe5e51b7Smrg
19103a31a186aSmrgcase $ac_config_headers in *"
19104a31a186aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19105a31a186aSmrgesac
19106fe5e51b7Smrg
19107eda3803bSmrg
19108a31a186aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19109a31a186aSmrg# Files that config.status was made for.
19110a31a186aSmrgconfig_files="$ac_config_files"
19111a31a186aSmrgconfig_headers="$ac_config_headers"
19112a31a186aSmrgconfig_commands="$ac_config_commands"
19113fe5e51b7Smrg
19114a31a186aSmrg_ACEOF
19115fe5e51b7Smrg
19116a31a186aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19117a31a186aSmrgac_cs_usage="\
191180bb88ba4Smrg\`$as_me' instantiates files and other configuration actions
191190bb88ba4Smrgfrom templates according to the current configuration.  Unless the files
191200bb88ba4Smrgand actions are specified as TAGs, all are instantiated by default.
19121fe5e51b7Smrg
191220bb88ba4SmrgUsage: $0 [OPTION]... [TAG]...
19123fe5e51b7Smrg
19124a31a186aSmrg  -h, --help       print this help, then exit
19125a31a186aSmrg  -V, --version    print version number and configuration settings, then exit
191260bb88ba4Smrg      --config     print configuration, then exit
19127a31a186aSmrg  -q, --quiet, --silent
19128a31a186aSmrg                   do not print progress messages
19129a31a186aSmrg  -d, --debug      don't remove temporary files
19130a31a186aSmrg      --recheck    update $as_me by reconfiguring in the same conditions
19131a31a186aSmrg      --file=FILE[:TEMPLATE]
19132a31a186aSmrg                   instantiate the configuration file FILE
19133a31a186aSmrg      --header=FILE[:TEMPLATE]
19134a31a186aSmrg                   instantiate the configuration header FILE
19135fe5e51b7Smrg
19136a31a186aSmrgConfiguration files:
19137a31a186aSmrg$config_files
19138fe5e51b7Smrg
19139a31a186aSmrgConfiguration headers:
19140a31a186aSmrg$config_headers
19141fe5e51b7Smrg
19142a31a186aSmrgConfiguration commands:
19143a31a186aSmrg$config_commands
19144fe5e51b7Smrg
191450bb88ba4SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19146fe5e51b7Smrg
19147a31a186aSmrg_ACEOF
19148a31a186aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
191490bb88ba4Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19150a31a186aSmrgac_cs_version="\\
19151acd6767fSmrgxf86-video-mga config.status 1.6.3
19152acd6767fSmrgconfigured by $0, generated by GNU Autoconf 2.69,
191530bb88ba4Smrg  with options \\"\$ac_cs_config\\"
19154fe5e51b7Smrg
19155acd6767fSmrgCopyright (C) 2012 Free Software Foundation, Inc.
19156a31a186aSmrgThis config.status script is free software; the Free Software Foundation
19157a31a186aSmrggives unlimited permission to copy, distribute and modify it."
19158fe5e51b7Smrg
19159a31a186aSmrgac_pwd='$ac_pwd'
19160a31a186aSmrgsrcdir='$srcdir'
19161a31a186aSmrgINSTALL='$INSTALL'
19162a31a186aSmrgMKDIR_P='$MKDIR_P'
19163a31a186aSmrgAWK='$AWK'
19164a31a186aSmrgtest -n "\$AWK" || AWK=awk
19165a31a186aSmrg_ACEOF
19166fe5e51b7Smrg
19167a31a186aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19168a31a186aSmrg# The default lists apply if the user does not specify any file.
19169a31a186aSmrgac_need_defaults=:
19170a31a186aSmrgwhile test $# != 0
19171a31a186aSmrgdo
19172a31a186aSmrg  case $1 in
191730bb88ba4Smrg  --*=?*)
19174a31a186aSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19175a31a186aSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19176a31a186aSmrg    ac_shift=:
19177a31a186aSmrg    ;;
191780bb88ba4Smrg  --*=)
191790bb88ba4Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
191800bb88ba4Smrg    ac_optarg=
191810bb88ba4Smrg    ac_shift=:
191820bb88ba4Smrg    ;;
19183a31a186aSmrg  *)
19184a31a186aSmrg    ac_option=$1
19185a31a186aSmrg    ac_optarg=$2
19186a31a186aSmrg    ac_shift=shift
19187a31a186aSmrg    ;;
19188a31a186aSmrg  esac
19189fe5e51b7Smrg
19190a31a186aSmrg  case $ac_option in
19191a31a186aSmrg  # Handling of the options.
19192a31a186aSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19193a31a186aSmrg    ac_cs_recheck=: ;;
19194a31a186aSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19195a31a186aSmrg    $as_echo "$ac_cs_version"; exit ;;
191960bb88ba4Smrg  --config | --confi | --conf | --con | --co | --c )
191970bb88ba4Smrg    $as_echo "$ac_cs_config"; exit ;;
19198a31a186aSmrg  --debug | --debu | --deb | --de | --d | -d )
19199a31a186aSmrg    debug=: ;;
19200a31a186aSmrg  --file | --fil | --fi | --f )
19201a31a186aSmrg    $ac_shift
19202a31a186aSmrg    case $ac_optarg in
19203a31a186aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
192040bb88ba4Smrg    '') as_fn_error $? "missing file argument" ;;
19205a31a186aSmrg    esac
192060bb88ba4Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
19207a31a186aSmrg    ac_need_defaults=false;;
19208a31a186aSmrg  --header | --heade | --head | --hea )
19209a31a186aSmrg    $ac_shift
19210a31a186aSmrg    case $ac_optarg in
19211a31a186aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19212a31a186aSmrg    esac
192130bb88ba4Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19214a31a186aSmrg    ac_need_defaults=false;;
19215a31a186aSmrg  --he | --h)
19216a31a186aSmrg    # Conflict between --help and --header
192170bb88ba4Smrg    as_fn_error $? "ambiguous option: \`$1'
192180bb88ba4SmrgTry \`$0 --help' for more information.";;
19219a31a186aSmrg  --help | --hel | -h )
19220a31a186aSmrg    $as_echo "$ac_cs_usage"; exit ;;
19221a31a186aSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19222a31a186aSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19223a31a186aSmrg    ac_cs_silent=: ;;
19224fe5e51b7Smrg
19225a31a186aSmrg  # This is an error.
192260bb88ba4Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
192270bb88ba4SmrgTry \`$0 --help' for more information." ;;
19228fe5e51b7Smrg
192290bb88ba4Smrg  *) as_fn_append ac_config_targets " $1"
19230a31a186aSmrg     ac_need_defaults=false ;;
19231fe5e51b7Smrg
19232a31a186aSmrg  esac
19233a31a186aSmrg  shift
19234a31a186aSmrgdone
19235eda3803bSmrg
19236a31a186aSmrgac_configure_extra_args=
19237fe5e51b7Smrg
19238a31a186aSmrgif $ac_cs_silent; then
19239a31a186aSmrg  exec 6>/dev/null
19240a31a186aSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
19241a31a186aSmrgfi
19242fe5e51b7Smrg
19243a31a186aSmrg_ACEOF
19244a31a186aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19245a31a186aSmrgif \$ac_cs_recheck; then
19246acd6767fSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19247a31a186aSmrg  shift
19248a31a186aSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19249a31a186aSmrg  CONFIG_SHELL='$SHELL'
19250a31a186aSmrg  export CONFIG_SHELL
19251a31a186aSmrg  exec "\$@"
19252a31a186aSmrgfi
19253fe5e51b7Smrg
19254a31a186aSmrg_ACEOF
19255a31a186aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19256a31a186aSmrgexec 5>>config.log
19257a31a186aSmrg{
19258a31a186aSmrg  echo
19259a31a186aSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19260a31a186aSmrg## Running $as_me. ##
19261a31a186aSmrg_ASBOX
19262a31a186aSmrg  $as_echo "$ac_log"
19263a31a186aSmrg} >&5
19264fe5e51b7Smrg
19265a31a186aSmrg_ACEOF
19266a31a186aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19267a31a186aSmrg#
19268a31a186aSmrg# INIT-COMMANDS
19269a31a186aSmrg#
19270a31a186aSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19271fe5e51b7Smrg
19272fe5e51b7Smrg
19273a31a186aSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout
19274a31a186aSmrg# if CDPATH is set.
19275a31a186aSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19276fe5e51b7Smrg
19277a31a186aSmrgsed_quote_subst='$sed_quote_subst'
19278a31a186aSmrgdouble_quote_subst='$double_quote_subst'
19279a31a186aSmrgdelay_variable_subst='$delay_variable_subst'
192800bb88ba4Smrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
192810bb88ba4Smrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
192820bb88ba4Smrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
192830bb88ba4Smrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
192840bb88ba4Smrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
192850bb88ba4Smrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
192860bb88ba4SmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
192870bb88ba4SmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
192880bb88ba4SmrgPATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
192890bb88ba4Smrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
192900bb88ba4Smrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
192910bb88ba4Smrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
192920bb88ba4Smrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
192930bb88ba4Smrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
192940bb88ba4Smrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
192950bb88ba4SmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
192960bb88ba4SmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
192970bb88ba4SmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
192980bb88ba4SmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
192990bb88ba4SmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
193000bb88ba4SmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
193010bb88ba4SmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
193020bb88ba4SmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
193030bb88ba4Smrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
193040bb88ba4Smrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
193050bb88ba4Smrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
193060bb88ba4Smrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
193070bb88ba4Smrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
193080bb88ba4Smrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
193090bb88ba4Smrglt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
193100bb88ba4Smrglt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
193110bb88ba4Smrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
193120bb88ba4Smrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
193130bb88ba4SmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
193140bb88ba4Smrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
193150bb88ba4Smrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
193160bb88ba4Smrgfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
193170bb88ba4Smrgwant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
193180bb88ba4SmrgDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
193190bb88ba4Smrgsharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
193200bb88ba4SmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
193210bb88ba4SmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
193220bb88ba4Smrgarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
193230bb88ba4SmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
193240bb88ba4SmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
193250bb88ba4Smrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
193260bb88ba4Smrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
193270bb88ba4Smrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
193280bb88ba4Smrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
193290bb88ba4SmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
193300bb88ba4SmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
193310bb88ba4Smrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
193320bb88ba4SmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
193330bb88ba4Smrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
193340bb88ba4Smrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
193350bb88ba4Smrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
193360bb88ba4Smrglt_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"`'
193370bb88ba4Smrgnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
193380bb88ba4Smrglt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
193390bb88ba4Smrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
193400bb88ba4SmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
193410bb88ba4Smrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
193420bb88ba4Smrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
193430bb88ba4Smrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
193440bb88ba4Smrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
193450bb88ba4Smrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
193460bb88ba4Smrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
193470bb88ba4SmrgMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
193480bb88ba4SmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
193490bb88ba4SmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
193500bb88ba4SmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
193510bb88ba4SmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
193520bb88ba4SmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
193530bb88ba4Smrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
193540bb88ba4Smrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
193550bb88ba4Smrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
193560bb88ba4Smrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
193570bb88ba4Smrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
193580bb88ba4Smrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
193590bb88ba4Smrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
193600bb88ba4Smrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
193610bb88ba4Smrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
193620bb88ba4Smrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
193630bb88ba4Smrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
193640bb88ba4Smrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
193650bb88ba4Smrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
193660bb88ba4Smrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
193670bb88ba4Smrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
193680bb88ba4Smrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
193690bb88ba4Smrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
193700bb88ba4Smrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
193710bb88ba4Smrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
193720bb88ba4Smrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
193730bb88ba4Smrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
193740bb88ba4Smrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
193750bb88ba4Smrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
193760bb88ba4Smrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
193770bb88ba4Smrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
193780bb88ba4Smrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
193790bb88ba4Smrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
193800bb88ba4Smrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
193810bb88ba4Smrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
193820bb88ba4Smrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
193830bb88ba4Smrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
193840bb88ba4Smrgpostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
193850bb88ba4Smrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
193860bb88ba4Smrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
193870bb88ba4Smrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
193880bb88ba4Smrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
193890bb88ba4Smrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
193900bb88ba4Smrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
193910bb88ba4Smrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
193920bb88ba4Smrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
193930bb88ba4Smrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
193940bb88ba4Smrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
193950bb88ba4Smrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
193960bb88ba4Smrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
193970bb88ba4Smrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
193980bb88ba4Smrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
193990bb88ba4Smrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
194000bb88ba4Smrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
194010bb88ba4Smrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
194020bb88ba4Smrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
194030bb88ba4Smrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
194040bb88ba4Smrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
194050bb88ba4Smrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
194060bb88ba4Smrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
194070bb88ba4Smrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
194080bb88ba4Smrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
194090bb88ba4Smrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19410a31a186aSmrg
19411a31a186aSmrgLTCC='$LTCC'
19412a31a186aSmrgLTCFLAGS='$LTCFLAGS'
19413a31a186aSmrgcompiler='$compiler_DEFAULT'
19414a31a186aSmrg
194150bb88ba4Smrg# A function that is used when there is no print builtin or printf.
194160bb88ba4Smrgfunc_fallback_echo ()
194170bb88ba4Smrg{
194180bb88ba4Smrg  eval 'cat <<_LTECHO_EOF
194190bb88ba4Smrg\$1
194200bb88ba4Smrg_LTECHO_EOF'
194210bb88ba4Smrg}
194220bb88ba4Smrg
19423a31a186aSmrg# Quote evaled strings.
194240bb88ba4Smrgfor var in SHELL \
194250bb88ba4SmrgECHO \
194260bb88ba4SmrgPATH_SEPARATOR \
194270bb88ba4SmrgSED \
19428a31a186aSmrgGREP \
19429a31a186aSmrgEGREP \
19430a31a186aSmrgFGREP \
19431a31a186aSmrgLD \
19432a31a186aSmrgNM \
19433a31a186aSmrgLN_S \
19434a31a186aSmrglt_SP2NL \
19435a31a186aSmrglt_NL2SP \
19436a31a186aSmrgreload_flag \
19437a31a186aSmrgOBJDUMP \
19438a31a186aSmrgdeplibs_check_method \
19439a31a186aSmrgfile_magic_cmd \
194400bb88ba4Smrgfile_magic_glob \
194410bb88ba4Smrgwant_nocaseglob \
194420bb88ba4SmrgDLLTOOL \
194430bb88ba4Smrgsharedlib_from_linklib_cmd \
19444a31a186aSmrgAR \
19445a31a186aSmrgAR_FLAGS \
194460bb88ba4Smrgarchiver_list_spec \
19447a31a186aSmrgSTRIP \
19448a31a186aSmrgRANLIB \
19449a31a186aSmrgCC \
19450a31a186aSmrgCFLAGS \
19451a31a186aSmrgcompiler \
19452a31a186aSmrglt_cv_sys_global_symbol_pipe \
19453a31a186aSmrglt_cv_sys_global_symbol_to_cdecl \
19454a31a186aSmrglt_cv_sys_global_symbol_to_c_name_address \
19455a31a186aSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
194560bb88ba4Smrgnm_file_list_spec \
19457a31a186aSmrglt_prog_compiler_no_builtin_flag \
19458a31a186aSmrglt_prog_compiler_pic \
194590bb88ba4Smrglt_prog_compiler_wl \
19460a31a186aSmrglt_prog_compiler_static \
19461a31a186aSmrglt_cv_prog_compiler_c_o \
19462a31a186aSmrgneed_locks \
194630bb88ba4SmrgMANIFEST_TOOL \
19464a31a186aSmrgDSYMUTIL \
19465a31a186aSmrgNMEDIT \
19466a31a186aSmrgLIPO \
19467a31a186aSmrgOTOOL \
19468a31a186aSmrgOTOOL64 \
19469a31a186aSmrgshrext_cmds \
19470a31a186aSmrgexport_dynamic_flag_spec \
19471a31a186aSmrgwhole_archive_flag_spec \
19472a31a186aSmrgcompiler_needs_object \
19473a31a186aSmrgwith_gnu_ld \
19474a31a186aSmrgallow_undefined_flag \
19475a31a186aSmrgno_undefined_flag \
19476a31a186aSmrghardcode_libdir_flag_spec \
19477a31a186aSmrghardcode_libdir_separator \
19478a31a186aSmrgexclude_expsyms \
19479a31a186aSmrginclude_expsyms \
19480a31a186aSmrgfile_list_spec \
19481a31a186aSmrgvariables_saved_for_relink \
19482a31a186aSmrglibname_spec \
19483a31a186aSmrglibrary_names_spec \
19484a31a186aSmrgsoname_spec \
194850bb88ba4Smrginstall_override_mode \
19486a31a186aSmrgfinish_eval \
19487a31a186aSmrgold_striplib \
19488a31a186aSmrgstriplib; do
194890bb88ba4Smrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19490a31a186aSmrg    *[\\\\\\\`\\"\\\$]*)
194910bb88ba4Smrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19492a31a186aSmrg      ;;
19493a31a186aSmrg    *)
19494a31a186aSmrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19495a31a186aSmrg      ;;
19496a31a186aSmrg    esac
19497a31a186aSmrgdone
19498fe5e51b7Smrg
19499a31a186aSmrg# Double-quote double-evaled strings.
19500a31a186aSmrgfor var in reload_cmds \
19501a31a186aSmrgold_postinstall_cmds \
19502a31a186aSmrgold_postuninstall_cmds \
19503a31a186aSmrgold_archive_cmds \
19504a31a186aSmrgextract_expsyms_cmds \
19505a31a186aSmrgold_archive_from_new_cmds \
19506a31a186aSmrgold_archive_from_expsyms_cmds \
19507a31a186aSmrgarchive_cmds \
19508a31a186aSmrgarchive_expsym_cmds \
19509a31a186aSmrgmodule_cmds \
19510a31a186aSmrgmodule_expsym_cmds \
19511a31a186aSmrgexport_symbols_cmds \
19512a31a186aSmrgprelink_cmds \
195130bb88ba4Smrgpostlink_cmds \
19514a31a186aSmrgpostinstall_cmds \
19515a31a186aSmrgpostuninstall_cmds \
19516a31a186aSmrgfinish_cmds \
19517a31a186aSmrgsys_lib_search_path_spec \
19518a31a186aSmrgsys_lib_dlsearch_path_spec; do
195190bb88ba4Smrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19520a31a186aSmrg    *[\\\\\\\`\\"\\\$]*)
195210bb88ba4Smrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19522a31a186aSmrg      ;;
19523a31a186aSmrg    *)
19524a31a186aSmrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19525a31a186aSmrg      ;;
19526a31a186aSmrg    esac
19527a31a186aSmrgdone
19528fe5e51b7Smrg
19529a31a186aSmrgac_aux_dir='$ac_aux_dir'
19530a31a186aSmrgxsi_shell='$xsi_shell'
19531a31a186aSmrglt_shell_append='$lt_shell_append'
19532fe5e51b7Smrg
19533a31a186aSmrg# See if we are running on zsh, and set the options which allow our
19534a31a186aSmrg# commands through without removal of \ escapes INIT.
19535a31a186aSmrgif test -n "\${ZSH_VERSION+set}" ; then
19536a31a186aSmrg   setopt NO_GLOB_SUBST
19537a31a186aSmrgfi
19538fe5e51b7Smrg
19539fe5e51b7Smrg
19540a31a186aSmrg    PACKAGE='$PACKAGE'
19541a31a186aSmrg    VERSION='$VERSION'
19542a31a186aSmrg    TIMESTAMP='$TIMESTAMP'
19543a31a186aSmrg    RM='$RM'
19544a31a186aSmrg    ofile='$ofile'
19545fe5e51b7Smrg
19546fe5e51b7Smrg
19547643b027fSmrg
19548643b027fSmrg
19549a31a186aSmrg_ACEOF
19550fe5e51b7Smrg
19551a31a186aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19552fe5e51b7Smrg
19553a31a186aSmrg# Handling of arguments.
19554a31a186aSmrgfor ac_config_target in $ac_config_targets
19555a31a186aSmrgdo
19556a31a186aSmrg  case $ac_config_target in
19557a31a186aSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19558a31a186aSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19559a31a186aSmrg    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19560a31a186aSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19561a31a186aSmrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19562a31a186aSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19563a31a186aSmrg    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
19564fe5e51b7Smrg
195650bb88ba4Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19566a31a186aSmrg  esac
19567a31a186aSmrgdone
19568fe5e51b7Smrg
19569fe5e51b7Smrg
19570a31a186aSmrg# If the user did not use the arguments to specify the items to instantiate,
19571a31a186aSmrg# then the envvar interface is used.  Set only those that are not.
19572a31a186aSmrg# We use the long form for the default assignment because of an extremely
19573a31a186aSmrg# bizarre bug on SunOS 4.1.3.
19574a31a186aSmrgif $ac_need_defaults; then
19575a31a186aSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19576a31a186aSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19577a31a186aSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19578a31a186aSmrgfi
19579fe5e51b7Smrg
19580a31a186aSmrg# Have a temporary directory for convenience.  Make it in the build tree
19581a31a186aSmrg# simply because there is no reason against having it here, and in addition,
19582a31a186aSmrg# creating and moving files from /tmp can sometimes cause problems.
19583a31a186aSmrg# Hook for its removal unless debugging.
19584a31a186aSmrg# Note that there is a small window in which the directory will not be cleaned:
19585a31a186aSmrg# after its creation but before its name has been assigned to `$tmp'.
19586a31a186aSmrg$debug ||
19587a31a186aSmrg{
195880bb88ba4Smrg  tmp= ac_tmp=
19589a31a186aSmrg  trap 'exit_status=$?
195900bb88ba4Smrg  : "${ac_tmp:=$tmp}"
195910bb88ba4Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19592a31a186aSmrg' 0
195930bb88ba4Smrg  trap 'as_fn_exit 1' 1 2 13 15
19594a31a186aSmrg}
19595a31a186aSmrg# Create a (secure) tmp directory for tmp files.
19596fe5e51b7Smrg
19597a31a186aSmrg{
19598a31a186aSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
195990bb88ba4Smrg  test -d "$tmp"
19600a31a186aSmrg}  ||
19601a31a186aSmrg{
19602a31a186aSmrg  tmp=./conf$$-$RANDOM
19603a31a186aSmrg  (umask 077 && mkdir "$tmp")
196040bb88ba4Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
196050bb88ba4Smrgac_tmp=$tmp
19606fe5e51b7Smrg
19607a31a186aSmrg# Set up the scripts for CONFIG_FILES section.
19608a31a186aSmrg# No need to generate them if there are no CONFIG_FILES.
19609a31a186aSmrg# This happens for instance with `./config.status config.h'.
19610a31a186aSmrgif test -n "$CONFIG_FILES"; then
19611fe5e51b7Smrg
19612fe5e51b7Smrg
196130bb88ba4Smrgac_cr=`echo X | tr X '\015'`
196140bb88ba4Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
196150bb88ba4Smrg# But we know of no other shell where ac_cr would be empty at this
196160bb88ba4Smrg# point, so we can use a bashism as a fallback.
196170bb88ba4Smrgif test "x$ac_cr" = x; then
196180bb88ba4Smrg  eval ac_cr=\$\'\\r\'
196190bb88ba4Smrgfi
19620a31a186aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19621a31a186aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19622a31a186aSmrg  ac_cs_awk_cr='\\r'
19623fe5e51b7Smrgelse
19624a31a186aSmrg  ac_cs_awk_cr=$ac_cr
19625fe5e51b7Smrgfi
19626fe5e51b7Smrg
196270bb88ba4Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19628a31a186aSmrg_ACEOF
19629fe5e51b7Smrg
19630fe5e51b7Smrg
19631a31a186aSmrg{
19632a31a186aSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
19633a31a186aSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19634a31a186aSmrg  echo "_ACEOF"
19635a31a186aSmrg} >conf$$subs.sh ||
196360bb88ba4Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
196370bb88ba4Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19638a31a186aSmrgac_delim='%!_!# '
19639a31a186aSmrgfor ac_last_try in false false false false false :; do
19640a31a186aSmrg  . ./conf$$subs.sh ||
196410bb88ba4Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19642eda3803bSmrg
19643a31a186aSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19644a31a186aSmrg  if test $ac_delim_n = $ac_delim_num; then
19645a31a186aSmrg    break
19646a31a186aSmrg  elif $ac_last_try; then
196470bb88ba4Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19648a31a186aSmrg  else
19649a31a186aSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19650643b027fSmrg  fi
19651a31a186aSmrgdone
19652a31a186aSmrgrm -f conf$$subs.sh
19653fe5e51b7Smrg
19654a31a186aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
196550bb88ba4Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19656a31a186aSmrg_ACEOF
19657a31a186aSmrgsed -n '
19658a31a186aSmrgh
19659a31a186aSmrgs/^/S["/; s/!.*/"]=/
19660a31a186aSmrgp
19661a31a186aSmrgg
19662a31a186aSmrgs/^[^!]*!//
19663a31a186aSmrg:repl
19664a31a186aSmrgt repl
19665a31a186aSmrgs/'"$ac_delim"'$//
19666a31a186aSmrgt delim
19667a31a186aSmrg:nl
19668a31a186aSmrgh
196690bb88ba4Smrgs/\(.\{148\}\)..*/\1/
19670a31a186aSmrgt more1
19671a31a186aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19672a31a186aSmrgp
19673a31a186aSmrgn
19674a31a186aSmrgb repl
19675a31a186aSmrg:more1
19676a31a186aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
19677a31a186aSmrgp
19678a31a186aSmrgg
19679a31a186aSmrgs/.\{148\}//
19680a31a186aSmrgt nl
19681a31a186aSmrg:delim
19682a31a186aSmrgh
196830bb88ba4Smrgs/\(.\{148\}\)..*/\1/
19684a31a186aSmrgt more2
19685a31a186aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
19686a31a186aSmrgp
19687a31a186aSmrgb
19688a31a186aSmrg:more2
19689a31a186aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
19690a31a186aSmrgp
19691a31a186aSmrgg
19692a31a186aSmrgs/.\{148\}//
19693a31a186aSmrgt delim
19694a31a186aSmrg' <conf$$subs.awk | sed '
19695a31a186aSmrg/^[^""]/{
19696a31a186aSmrg  N
19697a31a186aSmrg  s/\n//
19698a31a186aSmrg}
19699a31a186aSmrg' >>$CONFIG_STATUS || ac_write_fail=1
19700a31a186aSmrgrm -f conf$$subs.awk
19701a31a186aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19702a31a186aSmrg_ACAWK
197030bb88ba4Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19704a31a186aSmrg  for (key in S) S_is_set[key] = 1
19705a31a186aSmrg  FS = ""
19706eda3803bSmrg
19707a31a186aSmrg}
19708a31a186aSmrg{
19709a31a186aSmrg  line = $ 0
19710a31a186aSmrg  nfields = split(line, field, "@")
19711a31a186aSmrg  substed = 0
19712a31a186aSmrg  len = length(field[1])
19713a31a186aSmrg  for (i = 2; i < nfields; i++) {
19714a31a186aSmrg    key = field[i]
19715a31a186aSmrg    keylen = length(key)
19716a31a186aSmrg    if (S_is_set[key]) {
19717a31a186aSmrg      value = S[key]
19718a31a186aSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19719a31a186aSmrg      len += length(value) + length(field[++i])
19720a31a186aSmrg      substed = 1
19721a31a186aSmrg    } else
19722a31a186aSmrg      len += 1 + keylen
19723a31a186aSmrg  }
19724eda3803bSmrg
19725a31a186aSmrg  print line
19726a31a186aSmrg}
19727fe5e51b7Smrg
19728a31a186aSmrg_ACAWK
19729a31a186aSmrg_ACEOF
19730a31a186aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19731a31a186aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19732a31a186aSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19733a31a186aSmrgelse
19734a31a186aSmrg  cat
197350bb88ba4Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
197360bb88ba4Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19737a31a186aSmrg_ACEOF
19738fe5e51b7Smrg
197390bb88ba4Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
197400bb88ba4Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19741a31a186aSmrg# trailing colons and then remove the whole line if VPATH becomes empty
19742a31a186aSmrg# (actually we leave an empty line to preserve line numbers).
19743a31a186aSmrgif test "x$srcdir" = x.; then
197440bb88ba4Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
197450bb88ba4Smrgh
197460bb88ba4Smrgs///
197470bb88ba4Smrgs/^/:/
197480bb88ba4Smrgs/[	 ]*$/:/
197490bb88ba4Smrgs/:\$(srcdir):/:/g
197500bb88ba4Smrgs/:\${srcdir}:/:/g
197510bb88ba4Smrgs/:@srcdir@:/:/g
197520bb88ba4Smrgs/^:*//
19753a31a186aSmrgs/:*$//
197540bb88ba4Smrgx
197550bb88ba4Smrgs/\(=[	 ]*\).*/\1/
197560bb88ba4SmrgG
197570bb88ba4Smrgs/\n//
19758a31a186aSmrgs/^[^=]*=[	 ]*$//
19759a31a186aSmrg}'
19760a31a186aSmrgfi
19761fe5e51b7Smrg
19762a31a186aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19763a31a186aSmrgfi # test -n "$CONFIG_FILES"
19764fe5e51b7Smrg
19765a31a186aSmrg# Set up the scripts for CONFIG_HEADERS section.
19766a31a186aSmrg# No need to generate them if there are no CONFIG_HEADERS.
19767a31a186aSmrg# This happens for instance with `./config.status Makefile'.
19768a31a186aSmrgif test -n "$CONFIG_HEADERS"; then
197690bb88ba4Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19770a31a186aSmrgBEGIN {
19771a31a186aSmrg_ACEOF
19772fe5e51b7Smrg
19773a31a186aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
19774a31a186aSmrg# here-document in config.status, that substitutes the proper values into
19775a31a186aSmrg# config.h.in to produce config.h.
19776fe5e51b7Smrg
19777a31a186aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
19778a31a186aSmrg# handling of long lines.
19779a31a186aSmrgac_delim='%!_!# '
19780a31a186aSmrgfor ac_last_try in false false :; do
197810bb88ba4Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
197820bb88ba4Smrg  if test -z "$ac_tt"; then
19783a31a186aSmrg    break
19784a31a186aSmrg  elif $ac_last_try; then
197850bb88ba4Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19786a31a186aSmrg  else
19787a31a186aSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19788a31a186aSmrg  fi
19789a31a186aSmrgdone
19790fe5e51b7Smrg
19791a31a186aSmrg# For the awk script, D is an array of macro values keyed by name,
19792a31a186aSmrg# likewise P contains macro parameters if any.  Preserve backslash
19793a31a186aSmrg# newline sequences.
19794fe5e51b7Smrg
19795a31a186aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19796a31a186aSmrgsed -n '
19797a31a186aSmrgs/.\{148\}/&'"$ac_delim"'/g
19798a31a186aSmrgt rset
19799a31a186aSmrg:rset
19800a31a186aSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19801a31a186aSmrgt def
19802a31a186aSmrgd
19803a31a186aSmrg:def
19804a31a186aSmrgs/\\$//
19805a31a186aSmrgt bsnl
19806a31a186aSmrgs/["\\]/\\&/g
19807a31a186aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19808a31a186aSmrgD["\1"]=" \3"/p
19809a31a186aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19810a31a186aSmrgd
19811a31a186aSmrg:bsnl
19812a31a186aSmrgs/["\\]/\\&/g
19813a31a186aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19814a31a186aSmrgD["\1"]=" \3\\\\\\n"\\/p
19815a31a186aSmrgt cont
19816a31a186aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19817a31a186aSmrgt cont
19818a31a186aSmrgd
19819a31a186aSmrg:cont
19820a31a186aSmrgn
19821a31a186aSmrgs/.\{148\}/&'"$ac_delim"'/g
19822a31a186aSmrgt clear
19823a31a186aSmrg:clear
19824a31a186aSmrgs/\\$//
19825a31a186aSmrgt bsnlc
19826a31a186aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
19827a31a186aSmrgd
19828a31a186aSmrg:bsnlc
19829a31a186aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19830a31a186aSmrgb cont
19831a31a186aSmrg' <confdefs.h | sed '
19832a31a186aSmrgs/'"$ac_delim"'/"\\\
19833a31a186aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
19834fe5e51b7Smrg
19835a31a186aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19836a31a186aSmrg  for (key in D) D_is_set[key] = 1
19837a31a186aSmrg  FS = ""
19838a31a186aSmrg}
19839a31a186aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19840a31a186aSmrg  line = \$ 0
19841a31a186aSmrg  split(line, arg, " ")
19842a31a186aSmrg  if (arg[1] == "#") {
19843a31a186aSmrg    defundef = arg[2]
19844a31a186aSmrg    mac1 = arg[3]
19845a31a186aSmrg  } else {
19846a31a186aSmrg    defundef = substr(arg[1], 2)
19847a31a186aSmrg    mac1 = arg[2]
19848a31a186aSmrg  }
19849a31a186aSmrg  split(mac1, mac2, "(") #)
19850a31a186aSmrg  macro = mac2[1]
19851a31a186aSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
19852a31a186aSmrg  if (D_is_set[macro]) {
19853a31a186aSmrg    # Preserve the white space surrounding the "#".
19854a31a186aSmrg    print prefix "define", macro P[macro] D[macro]
19855a31a186aSmrg    next
19856a31a186aSmrg  } else {
19857a31a186aSmrg    # Replace #undef with comments.  This is necessary, for example,
19858a31a186aSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
19859a31a186aSmrg    # on some systems where configure will not decide to define it.
19860a31a186aSmrg    if (defundef == "undef") {
19861a31a186aSmrg      print "/*", prefix defundef, macro, "*/"
19862a31a186aSmrg      next
19863a31a186aSmrg    }
19864a31a186aSmrg  }
19865a31a186aSmrg}
19866a31a186aSmrg{ print }
19867a31a186aSmrg_ACAWK
19868a31a186aSmrg_ACEOF
19869a31a186aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
198700bb88ba4Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19871a31a186aSmrgfi # test -n "$CONFIG_HEADERS"
19872eda3803bSmrg
19873fe5e51b7Smrg
19874a31a186aSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19875a31a186aSmrgshift
19876a31a186aSmrgfor ac_tag
19877a31a186aSmrgdo
19878a31a186aSmrg  case $ac_tag in
19879a31a186aSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
19880a31a186aSmrg  esac
19881a31a186aSmrg  case $ac_mode$ac_tag in
19882a31a186aSmrg  :[FHL]*:*);;
198830bb88ba4Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19884a31a186aSmrg  :[FH]-) ac_tag=-:-;;
19885a31a186aSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19886a31a186aSmrg  esac
19887a31a186aSmrg  ac_save_IFS=$IFS
19888a31a186aSmrg  IFS=:
19889a31a186aSmrg  set x $ac_tag
19890a31a186aSmrg  IFS=$ac_save_IFS
19891a31a186aSmrg  shift
19892a31a186aSmrg  ac_file=$1
19893a31a186aSmrg  shift
19894643b027fSmrg
19895a31a186aSmrg  case $ac_mode in
19896a31a186aSmrg  :L) ac_source=$1;;
19897a31a186aSmrg  :[FH])
19898a31a186aSmrg    ac_file_inputs=
19899a31a186aSmrg    for ac_f
19900a31a186aSmrg    do
19901a31a186aSmrg      case $ac_f in
199020bb88ba4Smrg      -) ac_f="$ac_tmp/stdin";;
19903a31a186aSmrg      *) # Look for the file first in the build tree, then in the source tree
19904a31a186aSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19905a31a186aSmrg	 # because $ac_f cannot contain `:'.
19906a31a186aSmrg	 test -f "$ac_f" ||
19907a31a186aSmrg	   case $ac_f in
19908a31a186aSmrg	   [\\/$]*) false;;
19909a31a186aSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19910a31a186aSmrg	   esac ||
199110bb88ba4Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19912a31a186aSmrg      esac
19913a31a186aSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
199140bb88ba4Smrg      as_fn_append ac_file_inputs " '$ac_f'"
19915a31a186aSmrg    done
19916643b027fSmrg
19917a31a186aSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
19918a31a186aSmrg    # use $as_me), people would be surprised to read:
19919a31a186aSmrg    #    /* config.h.  Generated by config.status.  */
19920a31a186aSmrg    configure_input='Generated from '`
19921a31a186aSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19922a31a186aSmrg	`' by configure.'
19923a31a186aSmrg    if test x"$ac_file" != x-; then
19924a31a186aSmrg      configure_input="$ac_file.  $configure_input"
199250bb88ba4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19926a31a186aSmrg$as_echo "$as_me: creating $ac_file" >&6;}
19927a31a186aSmrg    fi
19928a31a186aSmrg    # Neutralize special characters interpreted by sed in replacement strings.
19929a31a186aSmrg    case $configure_input in #(
19930a31a186aSmrg    *\&* | *\|* | *\\* )
19931a31a186aSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
19932a31a186aSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19933a31a186aSmrg    *) ac_sed_conf_input=$configure_input;;
19934643b027fSmrg    esac
19935fe5e51b7Smrg
19936a31a186aSmrg    case $ac_tag in
199370bb88ba4Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
199380bb88ba4Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19939a31a186aSmrg    esac
19940a31a186aSmrg    ;;
19941a31a186aSmrg  esac
19942fe5e51b7Smrg
19943a31a186aSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
19944a31a186aSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19945a31a186aSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
19946a31a186aSmrg	 X"$ac_file" : 'X\(//\)$' \| \
19947a31a186aSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19948a31a186aSmrg$as_echo X"$ac_file" |
19949a31a186aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19950a31a186aSmrg	    s//\1/
19951a31a186aSmrg	    q
19952a31a186aSmrg	  }
19953a31a186aSmrg	  /^X\(\/\/\)[^/].*/{
19954a31a186aSmrg	    s//\1/
19955a31a186aSmrg	    q
19956a31a186aSmrg	  }
19957a31a186aSmrg	  /^X\(\/\/\)$/{
19958a31a186aSmrg	    s//\1/
19959a31a186aSmrg	    q
19960a31a186aSmrg	  }
19961a31a186aSmrg	  /^X\(\/\).*/{
19962a31a186aSmrg	    s//\1/
19963a31a186aSmrg	    q
19964a31a186aSmrg	  }
19965a31a186aSmrg	  s/.*/./; q'`
199660bb88ba4Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
19967a31a186aSmrg  ac_builddir=.
19968fe5e51b7Smrg
19969a31a186aSmrgcase "$ac_dir" in
19970a31a186aSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19971a31a186aSmrg*)
19972a31a186aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19973a31a186aSmrg  # A ".." for each directory in $ac_dir_suffix.
19974a31a186aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19975a31a186aSmrg  case $ac_top_builddir_sub in
19976a31a186aSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19977a31a186aSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19978a31a186aSmrg  esac ;;
19979643b027fSmrgesac
19980a31a186aSmrgac_abs_top_builddir=$ac_pwd
19981a31a186aSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
19982a31a186aSmrg# for backward compatibility:
19983a31a186aSmrgac_top_builddir=$ac_top_build_prefix
19984fe5e51b7Smrg
19985a31a186aSmrgcase $srcdir in
19986a31a186aSmrg  .)  # We are building in place.
19987a31a186aSmrg    ac_srcdir=.
19988a31a186aSmrg    ac_top_srcdir=$ac_top_builddir_sub
19989a31a186aSmrg    ac_abs_top_srcdir=$ac_pwd ;;
19990a31a186aSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
19991a31a186aSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
19992a31a186aSmrg    ac_top_srcdir=$srcdir
19993a31a186aSmrg    ac_abs_top_srcdir=$srcdir ;;
19994a31a186aSmrg  *) # Relative name.
19995a31a186aSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19996a31a186aSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
19997a31a186aSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19998a31a186aSmrgesac
19999a31a186aSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20000fe5e51b7Smrg
20001fe5e51b7Smrg
20002a31a186aSmrg  case $ac_mode in
20003a31a186aSmrg  :F)
20004a31a186aSmrg  #
20005a31a186aSmrg  # CONFIG_FILE
20006a31a186aSmrg  #
20007fe5e51b7Smrg
20008a31a186aSmrg  case $INSTALL in
20009a31a186aSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20010a31a186aSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20011a31a186aSmrg  esac
20012a31a186aSmrg  ac_MKDIR_P=$MKDIR_P
20013a31a186aSmrg  case $MKDIR_P in
20014a31a186aSmrg  [\\/$]* | ?:[\\/]* ) ;;
20015a31a186aSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20016a31a186aSmrg  esac
20017a31a186aSmrg_ACEOF
20018fe5e51b7Smrg
20019a31a186aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20020a31a186aSmrg# If the template does not know about datarootdir, expand it.
20021a31a186aSmrg# FIXME: This hack should be removed a few years after 2.60.
20022a31a186aSmrgac_datarootdir_hack=; ac_datarootdir_seen=
20023a31a186aSmrgac_sed_dataroot='
20024a31a186aSmrg/datarootdir/ {
20025a31a186aSmrg  p
20026a31a186aSmrg  q
20027a31a186aSmrg}
20028a31a186aSmrg/@datadir@/p
20029a31a186aSmrg/@docdir@/p
20030a31a186aSmrg/@infodir@/p
20031a31a186aSmrg/@localedir@/p
200320bb88ba4Smrg/@mandir@/p'
20033a31a186aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20034a31a186aSmrg*datarootdir*) ac_datarootdir_seen=yes;;
20035a31a186aSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
200360bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20037a31a186aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20038a31a186aSmrg_ACEOF
20039a31a186aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20040a31a186aSmrg  ac_datarootdir_hack='
20041a31a186aSmrg  s&@datadir@&$datadir&g
20042a31a186aSmrg  s&@docdir@&$docdir&g
20043a31a186aSmrg  s&@infodir@&$infodir&g
20044a31a186aSmrg  s&@localedir@&$localedir&g
20045a31a186aSmrg  s&@mandir@&$mandir&g
200460bb88ba4Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
20047643b027fSmrgesac
20048a31a186aSmrg_ACEOF
20049fe5e51b7Smrg
20050a31a186aSmrg# Neutralize VPATH when `$srcdir' = `.'.
20051a31a186aSmrg# Shell code in configure.ac might set extrasub.
20052a31a186aSmrg# FIXME: do we really want to maintain this feature?
20053a31a186aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20054a31a186aSmrgac_sed_extra="$ac_vpsub
20055a31a186aSmrg$extrasub
20056a31a186aSmrg_ACEOF
20057a31a186aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20058a31a186aSmrg:t
20059a31a186aSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20060a31a186aSmrgs|@configure_input@|$ac_sed_conf_input|;t t
20061a31a186aSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
20062a31a186aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
20063a31a186aSmrgs&@srcdir@&$ac_srcdir&;t t
20064a31a186aSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
20065a31a186aSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
20066a31a186aSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20067a31a186aSmrgs&@builddir@&$ac_builddir&;t t
20068a31a186aSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
20069a31a186aSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20070a31a186aSmrgs&@INSTALL@&$ac_INSTALL&;t t
20071a31a186aSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
20072a31a186aSmrg$ac_datarootdir_hack
20073a31a186aSmrg"
200740bb88ba4Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
200750bb88ba4Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20076fe5e51b7Smrg
20077a31a186aSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
200780bb88ba4Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
200790bb88ba4Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
200800bb88ba4Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
200810bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
200820bb88ba4Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
20083a31a186aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
200840bb88ba4Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
20085fe5e51b7Smrg
200860bb88ba4Smrg  rm -f "$ac_tmp/stdin"
20087a31a186aSmrg  case $ac_file in
200880bb88ba4Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
200890bb88ba4Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20090a31a186aSmrg  esac \
200910bb88ba4Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20092a31a186aSmrg ;;
20093a31a186aSmrg  :H)
20094a31a186aSmrg  #
20095a31a186aSmrg  # CONFIG_HEADER
20096a31a186aSmrg  #
20097a31a186aSmrg  if test x"$ac_file" != x-; then
20098a31a186aSmrg    {
20099a31a186aSmrg      $as_echo "/* $configure_input  */" \
201000bb88ba4Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
201010bb88ba4Smrg    } >"$ac_tmp/config.h" \
201020bb88ba4Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
201030bb88ba4Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
201040bb88ba4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20105a31a186aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
20106a31a186aSmrg    else
20107a31a186aSmrg      rm -f "$ac_file"
201080bb88ba4Smrg      mv "$ac_tmp/config.h" "$ac_file" \
201090bb88ba4Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20110a31a186aSmrg    fi
20111a31a186aSmrg  else
20112a31a186aSmrg    $as_echo "/* $configure_input  */" \
201130bb88ba4Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
201140bb88ba4Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
20115a31a186aSmrg  fi
20116a31a186aSmrg# Compute "$ac_file"'s index in $config_headers.
20117a31a186aSmrg_am_arg="$ac_file"
20118a31a186aSmrg_am_stamp_count=1
20119a31a186aSmrgfor _am_header in $config_headers :; do
20120a31a186aSmrg  case $_am_header in
20121a31a186aSmrg    $_am_arg | $_am_arg:* )
20122a31a186aSmrg      break ;;
20123a31a186aSmrg    * )
20124a31a186aSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20125a31a186aSmrg  esac
20126a31a186aSmrgdone
20127a31a186aSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20128a31a186aSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20129a31a186aSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20130a31a186aSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
20131a31a186aSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20132a31a186aSmrg$as_echo X"$_am_arg" |
20133a31a186aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20134a31a186aSmrg	    s//\1/
20135a31a186aSmrg	    q
20136a31a186aSmrg	  }
20137a31a186aSmrg	  /^X\(\/\/\)[^/].*/{
20138a31a186aSmrg	    s//\1/
20139a31a186aSmrg	    q
20140a31a186aSmrg	  }
20141a31a186aSmrg	  /^X\(\/\/\)$/{
20142a31a186aSmrg	    s//\1/
20143a31a186aSmrg	    q
20144a31a186aSmrg	  }
20145a31a186aSmrg	  /^X\(\/\).*/{
20146a31a186aSmrg	    s//\1/
20147a31a186aSmrg	    q
20148a31a186aSmrg	  }
20149a31a186aSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
20150a31a186aSmrg ;;
20151fe5e51b7Smrg
201520bb88ba4Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20153a31a186aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
20154a31a186aSmrg ;;
20155a31a186aSmrg  esac
20156fe5e51b7Smrg
20157fe5e51b7Smrg
20158a31a186aSmrg  case $ac_file$ac_mode in
20159a31a186aSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20160a31a186aSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20161a31a186aSmrg  # are listed without --file.  Let's play safe and only enable the eval
20162a31a186aSmrg  # if we detect the quoting.
20163a31a186aSmrg  case $CONFIG_FILES in
20164a31a186aSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
20165a31a186aSmrg  *)   set x $CONFIG_FILES ;;
20166a31a186aSmrg  esac
20167a31a186aSmrg  shift
20168a31a186aSmrg  for mf
20169a31a186aSmrg  do
20170a31a186aSmrg    # Strip MF so we end up with the name of the file.
20171a31a186aSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
20172a31a186aSmrg    # Check whether this is an Automake generated Makefile or not.
20173acd6767fSmrg    # We used to match only the files named 'Makefile.in', but
20174a31a186aSmrg    # some people rename them; so instead we look at the file content.
20175a31a186aSmrg    # Grep'ing the first line is not enough: some people post-process
20176a31a186aSmrg    # each Makefile.in and add a new line on top of each file to say so.
20177a31a186aSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
20178a31a186aSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
20179a31a186aSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20180a31a186aSmrg      dirpart=`$as_dirname -- "$mf" ||
20181a31a186aSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20182a31a186aSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
20183a31a186aSmrg	 X"$mf" : 'X\(//\)$' \| \
20184a31a186aSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20185a31a186aSmrg$as_echo X"$mf" |
20186a31a186aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20187643b027fSmrg	    s//\1/
20188643b027fSmrg	    q
20189643b027fSmrg	  }
20190a31a186aSmrg	  /^X\(\/\/\)[^/].*/{
20191643b027fSmrg	    s//\1/
20192643b027fSmrg	    q
20193643b027fSmrg	  }
20194a31a186aSmrg	  /^X\(\/\/\)$/{
20195a31a186aSmrg	    s//\1/
20196a31a186aSmrg	    q
20197a31a186aSmrg	  }
20198a31a186aSmrg	  /^X\(\/\).*/{
20199a31a186aSmrg	    s//\1/
20200a31a186aSmrg	    q
20201a31a186aSmrg	  }
20202a31a186aSmrg	  s/.*/./; q'`
20203a31a186aSmrg    else
20204a31a186aSmrg      continue
20205a31a186aSmrg    fi
20206a31a186aSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
20207acd6767fSmrg    # from the Makefile without running 'make'.
20208a31a186aSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20209a31a186aSmrg    test -z "$DEPDIR" && continue
20210a31a186aSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20211a31a186aSmrg    test -z "am__include" && continue
20212a31a186aSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20213a31a186aSmrg    # Find all dependency output files, they are included files with
20214a31a186aSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20215a31a186aSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
20216a31a186aSmrg    # expansion.
20217a31a186aSmrg    for file in `sed -n "
20218a31a186aSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20219acd6767fSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20220a31a186aSmrg      # Make sure the directory exists.
20221a31a186aSmrg      test -f "$dirpart/$file" && continue
20222a31a186aSmrg      fdir=`$as_dirname -- "$file" ||
20223a31a186aSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20224a31a186aSmrg	 X"$file" : 'X\(//\)[^/]' \| \
20225a31a186aSmrg	 X"$file" : 'X\(//\)$' \| \
20226a31a186aSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20227a31a186aSmrg$as_echo X"$file" |
20228a31a186aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20229a31a186aSmrg	    s//\1/
20230a31a186aSmrg	    q
20231a31a186aSmrg	  }
20232a31a186aSmrg	  /^X\(\/\/\)[^/].*/{
20233a31a186aSmrg	    s//\1/
20234a31a186aSmrg	    q
20235a31a186aSmrg	  }
20236a31a186aSmrg	  /^X\(\/\/\)$/{
20237a31a186aSmrg	    s//\1/
20238a31a186aSmrg	    q
20239a31a186aSmrg	  }
20240a31a186aSmrg	  /^X\(\/\).*/{
20241a31a186aSmrg	    s//\1/
20242a31a186aSmrg	    q
20243a31a186aSmrg	  }
20244a31a186aSmrg	  s/.*/./; q'`
202450bb88ba4Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20246a31a186aSmrg      # echo "creating $dirpart/$file"
20247a31a186aSmrg      echo '# dummy' > "$dirpart/$file"
20248a31a186aSmrg    done
20249a31a186aSmrg  done
20250a31a186aSmrg}
20251a31a186aSmrg ;;
20252a31a186aSmrg    "libtool":C)
20253a31a186aSmrg
20254a31a186aSmrg    # See if we are running on zsh, and set the options which allow our
20255a31a186aSmrg    # commands through without removal of \ escapes.
20256a31a186aSmrg    if test -n "${ZSH_VERSION+set}" ; then
20257a31a186aSmrg      setopt NO_GLOB_SUBST
20258a31a186aSmrg    fi
20259a31a186aSmrg
20260a31a186aSmrg    cfgfile="${ofile}T"
20261a31a186aSmrg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20262a31a186aSmrg    $RM "$cfgfile"
20263a31a186aSmrg
20264a31a186aSmrg    cat <<_LT_EOF >> "$cfgfile"
20265a31a186aSmrg#! $SHELL
20266a31a186aSmrg
20267a31a186aSmrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20268a31a186aSmrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20269a31a186aSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20270a31a186aSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20271a31a186aSmrg#
20272a31a186aSmrg#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
202730bb88ba4Smrg#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
202740bb88ba4Smrg#                 Foundation, Inc.
20275a31a186aSmrg#   Written by Gordon Matzigkeit, 1996
20276a31a186aSmrg#
20277a31a186aSmrg#   This file is part of GNU Libtool.
20278a31a186aSmrg#
20279a31a186aSmrg# GNU Libtool is free software; you can redistribute it and/or
20280a31a186aSmrg# modify it under the terms of the GNU General Public License as
20281a31a186aSmrg# published by the Free Software Foundation; either version 2 of
20282a31a186aSmrg# the License, or (at your option) any later version.
20283a31a186aSmrg#
20284a31a186aSmrg# As a special exception to the GNU General Public License,
20285a31a186aSmrg# if you distribute this file as part of a program or library that
20286a31a186aSmrg# is built using GNU Libtool, you may include this file under the
20287a31a186aSmrg# same distribution terms that you use for the rest of that program.
20288a31a186aSmrg#
20289a31a186aSmrg# GNU Libtool is distributed in the hope that it will be useful,
20290a31a186aSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
20291a31a186aSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20292a31a186aSmrg# GNU General Public License for more details.
20293a31a186aSmrg#
20294a31a186aSmrg# You should have received a copy of the GNU General Public License
20295a31a186aSmrg# along with GNU Libtool; see the file COPYING.  If not, a copy
20296a31a186aSmrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20297a31a186aSmrg# obtained by writing to the Free Software Foundation, Inc.,
20298a31a186aSmrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20299a31a186aSmrg
20300a31a186aSmrg
20301a31a186aSmrg# The names of the tagged configurations supported by this script.
20302a31a186aSmrgavailable_tags=""
20303a31a186aSmrg
20304a31a186aSmrg# ### BEGIN LIBTOOL CONFIG
20305a31a186aSmrg
20306a31a186aSmrg# Whether or not to build static libraries.
20307a31a186aSmrgbuild_old_libs=$enable_static
20308a31a186aSmrg
20309a31a186aSmrg# Which release of libtool.m4 was used?
20310a31a186aSmrgmacro_version=$macro_version
20311a31a186aSmrgmacro_revision=$macro_revision
20312a31a186aSmrg
20313a31a186aSmrg# Whether or not to build shared libraries.
20314a31a186aSmrgbuild_libtool_libs=$enable_shared
20315a31a186aSmrg
20316a31a186aSmrg# What type of objects to build.
20317a31a186aSmrgpic_mode=$pic_mode
20318a31a186aSmrg
20319a31a186aSmrg# Whether or not to optimize for fast installation.
20320a31a186aSmrgfast_install=$enable_fast_install
20321fe5e51b7Smrg
203220bb88ba4Smrg# Shell to use when invoking shell scripts.
203230bb88ba4SmrgSHELL=$lt_SHELL
203240bb88ba4Smrg
203250bb88ba4Smrg# An echo program that protects backslashes.
203260bb88ba4SmrgECHO=$lt_ECHO
203270bb88ba4Smrg
203280bb88ba4Smrg# The PATH separator for the build system.
203290bb88ba4SmrgPATH_SEPARATOR=$lt_PATH_SEPARATOR
203300bb88ba4Smrg
20331a31a186aSmrg# The host system.
20332a31a186aSmrghost_alias=$host_alias
20333a31a186aSmrghost=$host
20334a31a186aSmrghost_os=$host_os
20335fe5e51b7Smrg
20336a31a186aSmrg# The build system.
20337a31a186aSmrgbuild_alias=$build_alias
20338a31a186aSmrgbuild=$build
20339a31a186aSmrgbuild_os=$build_os
20340fe5e51b7Smrg
20341a31a186aSmrg# A sed program that does not truncate output.
20342a31a186aSmrgSED=$lt_SED
20343fe5e51b7Smrg
20344a31a186aSmrg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20345a31a186aSmrgXsed="\$SED -e 1s/^X//"
20346fe5e51b7Smrg
20347a31a186aSmrg# A grep program that handles long lines.
20348a31a186aSmrgGREP=$lt_GREP
20349eda3803bSmrg
20350a31a186aSmrg# An ERE matcher.
20351a31a186aSmrgEGREP=$lt_EGREP
20352fe5e51b7Smrg
20353a31a186aSmrg# A literal string matcher.
20354a31a186aSmrgFGREP=$lt_FGREP
20355fe5e51b7Smrg
20356a31a186aSmrg# A BSD- or MS-compatible name lister.
20357a31a186aSmrgNM=$lt_NM
20358fe5e51b7Smrg
20359a31a186aSmrg# Whether we need soft or hard links.
20360a31a186aSmrgLN_S=$lt_LN_S
20361fe5e51b7Smrg
20362a31a186aSmrg# What is the maximum length of a command?
20363a31a186aSmrgmax_cmd_len=$max_cmd_len
20364fe5e51b7Smrg
20365a31a186aSmrg# Object file suffix (normally "o").
20366a31a186aSmrgobjext=$ac_objext
20367fe5e51b7Smrg
20368a31a186aSmrg# Executable file suffix (normally "").
20369a31a186aSmrgexeext=$exeext
20370fe5e51b7Smrg
20371a31a186aSmrg# whether the shell understands "unset".
20372a31a186aSmrglt_unset=$lt_unset
20373fe5e51b7Smrg
20374a31a186aSmrg# turn spaces into newlines.
20375a31a186aSmrgSP2NL=$lt_lt_SP2NL
20376fe5e51b7Smrg
20377a31a186aSmrg# turn newlines into spaces.
20378a31a186aSmrgNL2SP=$lt_lt_NL2SP
20379fe5e51b7Smrg
203800bb88ba4Smrg# convert \$build file names to \$host format.
203810bb88ba4Smrgto_host_file_cmd=$lt_cv_to_host_file_cmd
203820bb88ba4Smrg
203830bb88ba4Smrg# convert \$build files to toolchain format.
203840bb88ba4Smrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd
20385fe5e51b7Smrg
20386a31a186aSmrg# An object symbol dumper.
20387a31a186aSmrgOBJDUMP=$lt_OBJDUMP
20388fe5e51b7Smrg
20389a31a186aSmrg# Method to check whether dependent libraries are shared objects.
20390a31a186aSmrgdeplibs_check_method=$lt_deplibs_check_method
20391fe5e51b7Smrg
203920bb88ba4Smrg# Command to use when deplibs_check_method = "file_magic".
20393a31a186aSmrgfile_magic_cmd=$lt_file_magic_cmd
20394fe5e51b7Smrg
203950bb88ba4Smrg# How to find potential files when deplibs_check_method = "file_magic".
203960bb88ba4Smrgfile_magic_glob=$lt_file_magic_glob
203970bb88ba4Smrg
203980bb88ba4Smrg# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
203990bb88ba4Smrgwant_nocaseglob=$lt_want_nocaseglob
204000bb88ba4Smrg
204010bb88ba4Smrg# DLL creation program.
204020bb88ba4SmrgDLLTOOL=$lt_DLLTOOL
204030bb88ba4Smrg
204040bb88ba4Smrg# Command to associate shared and link libraries.
204050bb88ba4Smrgsharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
204060bb88ba4Smrg
20407a31a186aSmrg# The archiver.
20408a31a186aSmrgAR=$lt_AR
204090bb88ba4Smrg
204100bb88ba4Smrg# Flags to create an archive.
20411a31a186aSmrgAR_FLAGS=$lt_AR_FLAGS
20412fe5e51b7Smrg
204130bb88ba4Smrg# How to feed a file listing to the archiver.
204140bb88ba4Smrgarchiver_list_spec=$lt_archiver_list_spec
204150bb88ba4Smrg
20416a31a186aSmrg# A symbol stripping program.
20417a31a186aSmrgSTRIP=$lt_STRIP
20418fe5e51b7Smrg
20419a31a186aSmrg# Commands used to install an old-style archive.
20420a31a186aSmrgRANLIB=$lt_RANLIB
20421a31a186aSmrgold_postinstall_cmds=$lt_old_postinstall_cmds
20422a31a186aSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
20423fe5e51b7Smrg
204240bb88ba4Smrg# Whether to use a lock for old archive extraction.
204250bb88ba4Smrglock_old_archive_extraction=$lock_old_archive_extraction
204260bb88ba4Smrg
20427a31a186aSmrg# A C compiler.
20428a31a186aSmrgLTCC=$lt_CC
20429fe5e51b7Smrg
20430a31a186aSmrg# LTCC compiler flags.
20431a31a186aSmrgLTCFLAGS=$lt_CFLAGS
20432fe5e51b7Smrg
20433a31a186aSmrg# Take the output of nm and produce a listing of raw symbols and C names.
20434a31a186aSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20435fe5e51b7Smrg
20436a31a186aSmrg# Transform the output of nm in a proper C declaration.
20437a31a186aSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20438fe5e51b7Smrg
20439a31a186aSmrg# Transform the output of nm in a C name address pair.
20440a31a186aSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20441fe5e51b7Smrg
20442a31a186aSmrg# Transform the output of nm in a C name address pair when lib prefix is needed.
20443a31a186aSmrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20444fe5e51b7Smrg
204450bb88ba4Smrg# Specify filename containing input files for \$NM.
204460bb88ba4Smrgnm_file_list_spec=$lt_nm_file_list_spec
20447fe5e51b7Smrg
204480bb88ba4Smrg# The root where to search for dependent libraries,and in which our libraries should be installed.
204490bb88ba4Smrglt_sysroot=$lt_sysroot
20450fe5e51b7Smrg
204510bb88ba4Smrg# The name of the directory that contains temporary libtool files.
204520bb88ba4Smrgobjdir=$objdir
20453fe5e51b7Smrg
20454a31a186aSmrg# Used to examine libraries when file_magic_cmd begins with "file".
20455a31a186aSmrgMAGIC_CMD=$MAGIC_CMD
20456fe5e51b7Smrg
20457a31a186aSmrg# Must we lock files when doing compilation?
20458a31a186aSmrgneed_locks=$lt_need_locks
20459fe5e51b7Smrg
204600bb88ba4Smrg# Manifest tool.
204610bb88ba4SmrgMANIFEST_TOOL=$lt_MANIFEST_TOOL
204620bb88ba4Smrg
20463a31a186aSmrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20464a31a186aSmrgDSYMUTIL=$lt_DSYMUTIL
20465fe5e51b7Smrg
20466a31a186aSmrg# Tool to change global to local symbols on Mac OS X.
20467a31a186aSmrgNMEDIT=$lt_NMEDIT
20468fe5e51b7Smrg
20469a31a186aSmrg# Tool to manipulate fat objects and archives on Mac OS X.
20470a31a186aSmrgLIPO=$lt_LIPO
20471a31a186aSmrg
20472a31a186aSmrg# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20473a31a186aSmrgOTOOL=$lt_OTOOL
20474a31a186aSmrg
20475a31a186aSmrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20476a31a186aSmrgOTOOL64=$lt_OTOOL64
20477a31a186aSmrg
20478a31a186aSmrg# Old archive suffix (normally "a").
20479a31a186aSmrglibext=$libext
20480a31a186aSmrg
20481a31a186aSmrg# Shared library suffix (normally ".so").
20482a31a186aSmrgshrext_cmds=$lt_shrext_cmds
20483a31a186aSmrg
20484a31a186aSmrg# The commands to extract the exported symbol list from a shared archive.
20485a31a186aSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
20486a31a186aSmrg
20487a31a186aSmrg# Variables whose values should be saved in libtool wrapper scripts and
20488a31a186aSmrg# restored at link time.
20489a31a186aSmrgvariables_saved_for_relink=$lt_variables_saved_for_relink
20490fe5e51b7Smrg
20491a31a186aSmrg# Do we need the "lib" prefix for modules?
20492a31a186aSmrgneed_lib_prefix=$need_lib_prefix
20493fe5e51b7Smrg
20494a31a186aSmrg# Do we need a version for libraries?
20495a31a186aSmrgneed_version=$need_version
20496fe5e51b7Smrg
20497a31a186aSmrg# Library versioning type.
20498a31a186aSmrgversion_type=$version_type
20499fe5e51b7Smrg
20500a31a186aSmrg# Shared library runtime path variable.
20501a31a186aSmrgrunpath_var=$runpath_var
20502fe5e51b7Smrg
20503a31a186aSmrg# Shared library path variable.
20504a31a186aSmrgshlibpath_var=$shlibpath_var
20505fe5e51b7Smrg
20506a31a186aSmrg# Is shlibpath searched before the hard-coded library search path?
20507a31a186aSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
20508fe5e51b7Smrg
20509a31a186aSmrg# Format of library name prefix.
20510a31a186aSmrglibname_spec=$lt_libname_spec
20511fe5e51b7Smrg
20512a31a186aSmrg# List of archive names.  First name is the real one, the rest are links.
20513a31a186aSmrg# The last name is the one that the linker finds with -lNAME
20514a31a186aSmrglibrary_names_spec=$lt_library_names_spec
20515fe5e51b7Smrg
20516a31a186aSmrg# The coded name of the library, if different from the real name.
20517a31a186aSmrgsoname_spec=$lt_soname_spec
20518fe5e51b7Smrg
205190bb88ba4Smrg# Permission mode override for installation of shared libraries.
205200bb88ba4Smrginstall_override_mode=$lt_install_override_mode
205210bb88ba4Smrg
20522a31a186aSmrg# Command to use after installation of a shared archive.
20523a31a186aSmrgpostinstall_cmds=$lt_postinstall_cmds
20524fe5e51b7Smrg
20525a31a186aSmrg# Command to use after uninstallation of a shared archive.
20526a31a186aSmrgpostuninstall_cmds=$lt_postuninstall_cmds
20527fe5e51b7Smrg
20528a31a186aSmrg# Commands used to finish a libtool library installation in a directory.
20529a31a186aSmrgfinish_cmds=$lt_finish_cmds
20530fe5e51b7Smrg
20531a31a186aSmrg# As "finish_cmds", except a single script fragment to be evaled but
20532a31a186aSmrg# not shown.
20533a31a186aSmrgfinish_eval=$lt_finish_eval
20534fe5e51b7Smrg
20535a31a186aSmrg# Whether we should hardcode library paths into libraries.
20536a31a186aSmrghardcode_into_libs=$hardcode_into_libs
20537fe5e51b7Smrg
20538a31a186aSmrg# Compile-time system search path for libraries.
20539a31a186aSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20540fe5e51b7Smrg
20541a31a186aSmrg# Run-time system search path for libraries.
20542a31a186aSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20543fe5e51b7Smrg
20544a31a186aSmrg# Whether dlopen is supported.
20545a31a186aSmrgdlopen_support=$enable_dlopen
20546fe5e51b7Smrg
20547a31a186aSmrg# Whether dlopen of programs is supported.
20548a31a186aSmrgdlopen_self=$enable_dlopen_self
20549fe5e51b7Smrg
20550a31a186aSmrg# Whether dlopen of statically linked programs is supported.
20551a31a186aSmrgdlopen_self_static=$enable_dlopen_self_static
20552fe5e51b7Smrg
20553a31a186aSmrg# Commands to strip libraries.
20554a31a186aSmrgold_striplib=$lt_old_striplib
20555a31a186aSmrgstriplib=$lt_striplib
20556fe5e51b7Smrg
20557fe5e51b7Smrg
20558a31a186aSmrg# The linker used to build libraries.
20559a31a186aSmrgLD=$lt_LD
20560fe5e51b7Smrg
205610bb88ba4Smrg# How to create reloadable object files.
205620bb88ba4Smrgreload_flag=$lt_reload_flag
205630bb88ba4Smrgreload_cmds=$lt_reload_cmds
205640bb88ba4Smrg
20565a31a186aSmrg# Commands used to build an old-style archive.
20566a31a186aSmrgold_archive_cmds=$lt_old_archive_cmds
20567fe5e51b7Smrg
20568a31a186aSmrg# A language specific compiler.
20569a31a186aSmrgCC=$lt_compiler
20570fe5e51b7Smrg
20571a31a186aSmrg# Is the compiler the GNU compiler?
20572a31a186aSmrgwith_gcc=$GCC
20573fe5e51b7Smrg
20574a31a186aSmrg# Compiler flag to turn off builtin functions.
20575a31a186aSmrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20576fe5e51b7Smrg
20577a31a186aSmrg# Additional compiler flags for building library objects.
20578a31a186aSmrgpic_flag=$lt_lt_prog_compiler_pic
20579eda3803bSmrg
205800bb88ba4Smrg# How to pass a linker flag through the compiler.
205810bb88ba4Smrgwl=$lt_lt_prog_compiler_wl
205820bb88ba4Smrg
20583a31a186aSmrg# Compiler flag to prevent dynamic linking.
20584a31a186aSmrglink_static_flag=$lt_lt_prog_compiler_static
20585fe5e51b7Smrg
20586a31a186aSmrg# Does compiler simultaneously support -c and -o options?
20587a31a186aSmrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
20588fe5e51b7Smrg
20589a31a186aSmrg# Whether or not to add -lc for building shared libraries.
20590a31a186aSmrgbuild_libtool_need_lc=$archive_cmds_need_lc
20591eda3803bSmrg
20592a31a186aSmrg# Whether or not to disallow shared libs when runtime libs are static.
20593a31a186aSmrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20594eda3803bSmrg
20595a31a186aSmrg# Compiler flag to allow reflexive dlopens.
20596a31a186aSmrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20597eda3803bSmrg
20598a31a186aSmrg# Compiler flag to generate shared objects directly from archives.
20599a31a186aSmrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
20600eda3803bSmrg
20601a31a186aSmrg# Whether the compiler copes with passing no objects directly.
20602a31a186aSmrgcompiler_needs_object=$lt_compiler_needs_object
20603eda3803bSmrg
20604a31a186aSmrg# Create an old-style archive from a shared archive.
20605a31a186aSmrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20606fe5e51b7Smrg
20607a31a186aSmrg# Create a temporary old-style archive to link instead of a shared archive.
20608a31a186aSmrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20609fe5e51b7Smrg
20610a31a186aSmrg# Commands used to build a shared archive.
20611a31a186aSmrgarchive_cmds=$lt_archive_cmds
20612a31a186aSmrgarchive_expsym_cmds=$lt_archive_expsym_cmds
20613fe5e51b7Smrg
20614a31a186aSmrg# Commands used to build a loadable module if different from building
20615a31a186aSmrg# a shared archive.
20616a31a186aSmrgmodule_cmds=$lt_module_cmds
20617a31a186aSmrgmodule_expsym_cmds=$lt_module_expsym_cmds
20618fe5e51b7Smrg
20619a31a186aSmrg# Whether we are building with GNU ld or not.
20620a31a186aSmrgwith_gnu_ld=$lt_with_gnu_ld
20621a31a186aSmrg
20622a31a186aSmrg# Flag that allows shared libraries with undefined symbols to be built.
20623a31a186aSmrgallow_undefined_flag=$lt_allow_undefined_flag
20624a31a186aSmrg
20625a31a186aSmrg# Flag that enforces no undefined symbols.
20626a31a186aSmrgno_undefined_flag=$lt_no_undefined_flag
20627a31a186aSmrg
20628a31a186aSmrg# Flag to hardcode \$libdir into a binary during linking.
20629a31a186aSmrg# This must work even if \$libdir does not exist
20630a31a186aSmrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20631a31a186aSmrg
20632a31a186aSmrg# Whether we need a single "-rpath" flag with a separated argument.
20633a31a186aSmrghardcode_libdir_separator=$lt_hardcode_libdir_separator
20634a31a186aSmrg
20635a31a186aSmrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20636a31a186aSmrg# DIR into the resulting binary.
20637a31a186aSmrghardcode_direct=$hardcode_direct
20638a31a186aSmrg
20639a31a186aSmrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20640a31a186aSmrg# DIR into the resulting binary and the resulting library dependency is
20641a31a186aSmrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20642a31a186aSmrg# library is relocated.
20643a31a186aSmrghardcode_direct_absolute=$hardcode_direct_absolute
20644eda3803bSmrg
20645a31a186aSmrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20646a31a186aSmrg# into the resulting binary.
20647a31a186aSmrghardcode_minus_L=$hardcode_minus_L
20648fe5e51b7Smrg
20649a31a186aSmrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20650a31a186aSmrg# into the resulting binary.
20651a31a186aSmrghardcode_shlibpath_var=$hardcode_shlibpath_var
20652fe5e51b7Smrg
20653a31a186aSmrg# Set to "yes" if building a shared library automatically hardcodes DIR
20654a31a186aSmrg# into the library and all subsequent libraries and executables linked
20655a31a186aSmrg# against it.
20656a31a186aSmrghardcode_automatic=$hardcode_automatic
20657fe5e51b7Smrg
20658a31a186aSmrg# Set to yes if linker adds runtime paths of dependent libraries
20659a31a186aSmrg# to runtime path list.
20660a31a186aSmrginherit_rpath=$inherit_rpath
20661fe5e51b7Smrg
20662a31a186aSmrg# Whether libtool must link a program against all its dependency libraries.
20663a31a186aSmrglink_all_deplibs=$link_all_deplibs
20664fe5e51b7Smrg
20665a31a186aSmrg# Set to "yes" if exported symbols are required.
20666a31a186aSmrgalways_export_symbols=$always_export_symbols
20667fe5e51b7Smrg
20668a31a186aSmrg# The commands to list exported symbols.
20669a31a186aSmrgexport_symbols_cmds=$lt_export_symbols_cmds
20670fe5e51b7Smrg
20671a31a186aSmrg# Symbols that should not be listed in the preloaded symbols.
20672a31a186aSmrgexclude_expsyms=$lt_exclude_expsyms
20673fe5e51b7Smrg
20674a31a186aSmrg# Symbols that must always be exported.
20675a31a186aSmrginclude_expsyms=$lt_include_expsyms
20676fe5e51b7Smrg
20677a31a186aSmrg# Commands necessary for linking programs (against libraries) with templates.
20678a31a186aSmrgprelink_cmds=$lt_prelink_cmds
20679eda3803bSmrg
206800bb88ba4Smrg# Commands necessary for finishing linking programs.
206810bb88ba4Smrgpostlink_cmds=$lt_postlink_cmds
206820bb88ba4Smrg
20683a31a186aSmrg# Specify filename containing input files.
20684a31a186aSmrgfile_list_spec=$lt_file_list_spec
20685a31a186aSmrg
20686a31a186aSmrg# How to hardcode a shared library path into an executable.
20687a31a186aSmrghardcode_action=$hardcode_action
20688a31a186aSmrg
20689a31a186aSmrg# ### END LIBTOOL CONFIG
20690a31a186aSmrg
20691a31a186aSmrg_LT_EOF
20692a31a186aSmrg
20693a31a186aSmrg  case $host_os in
20694a31a186aSmrg  aix3*)
20695a31a186aSmrg    cat <<\_LT_EOF >> "$cfgfile"
20696a31a186aSmrg# AIX sometimes has problems with the GCC collect2 program.  For some
20697a31a186aSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems
20698a31a186aSmrg# vanish in a puff of smoke.
20699a31a186aSmrgif test "X${COLLECT_NAMES+set}" != Xset; then
20700a31a186aSmrg  COLLECT_NAMES=
20701a31a186aSmrg  export COLLECT_NAMES
20702a31a186aSmrgfi
20703a31a186aSmrg_LT_EOF
20704a31a186aSmrg    ;;
20705fe5e51b7Smrg  esac
20706eda3803bSmrg
20707a31a186aSmrg
20708a31a186aSmrgltmain="$ac_aux_dir/ltmain.sh"
20709a31a186aSmrg
20710a31a186aSmrg
20711a31a186aSmrg  # We use sed instead of cat because bash on DJGPP gets confused if
20712a31a186aSmrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20713a31a186aSmrg  # text mode, it properly converts lines to CR/LF.  This bash problem
20714a31a186aSmrg  # is reportedly fixed, but why not run on old versions too?
207150bb88ba4Smrg  sed '$q' "$ltmain" >> "$cfgfile" \
207160bb88ba4Smrg     || (rm -f "$cfgfile"; exit 1)
207170bb88ba4Smrg
207180bb88ba4Smrg  if test x"$xsi_shell" = xyes; then
207190bb88ba4Smrg  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
207200bb88ba4Smrgfunc_dirname ()\
207210bb88ba4Smrg{\
207220bb88ba4Smrg\    case ${1} in\
207230bb88ba4Smrg\      */*) func_dirname_result="${1%/*}${2}" ;;\
207240bb88ba4Smrg\      *  ) func_dirname_result="${3}" ;;\
207250bb88ba4Smrg\    esac\
207260bb88ba4Smrg} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
207270bb88ba4Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
207280bb88ba4Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
207290bb88ba4Smrgtest 0 -eq $? || _lt_function_replace_fail=:
207300bb88ba4Smrg
207310bb88ba4Smrg
207320bb88ba4Smrg  sed -e '/^func_basename ()$/,/^} # func_basename /c\
207330bb88ba4Smrgfunc_basename ()\
207340bb88ba4Smrg{\
207350bb88ba4Smrg\    func_basename_result="${1##*/}"\
207360bb88ba4Smrg} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
207370bb88ba4Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
207380bb88ba4Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
207390bb88ba4Smrgtest 0 -eq $? || _lt_function_replace_fail=:
207400bb88ba4Smrg
207410bb88ba4Smrg
207420bb88ba4Smrg  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
207430bb88ba4Smrgfunc_dirname_and_basename ()\
207440bb88ba4Smrg{\
207450bb88ba4Smrg\    case ${1} in\
207460bb88ba4Smrg\      */*) func_dirname_result="${1%/*}${2}" ;;\
207470bb88ba4Smrg\      *  ) func_dirname_result="${3}" ;;\
207480bb88ba4Smrg\    esac\
207490bb88ba4Smrg\    func_basename_result="${1##*/}"\
207500bb88ba4Smrg} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
207510bb88ba4Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
207520bb88ba4Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
207530bb88ba4Smrgtest 0 -eq $? || _lt_function_replace_fail=:
207540bb88ba4Smrg
207550bb88ba4Smrg
207560bb88ba4Smrg  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
207570bb88ba4Smrgfunc_stripname ()\
207580bb88ba4Smrg{\
207590bb88ba4Smrg\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
207600bb88ba4Smrg\    # positional parameters, so assign one to ordinary parameter first.\
207610bb88ba4Smrg\    func_stripname_result=${3}\
207620bb88ba4Smrg\    func_stripname_result=${func_stripname_result#"${1}"}\
207630bb88ba4Smrg\    func_stripname_result=${func_stripname_result%"${2}"}\
207640bb88ba4Smrg} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
207650bb88ba4Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
207660bb88ba4Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
207670bb88ba4Smrgtest 0 -eq $? || _lt_function_replace_fail=:
207680bb88ba4Smrg
207690bb88ba4Smrg
207700bb88ba4Smrg  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
207710bb88ba4Smrgfunc_split_long_opt ()\
207720bb88ba4Smrg{\
207730bb88ba4Smrg\    func_split_long_opt_name=${1%%=*}\
207740bb88ba4Smrg\    func_split_long_opt_arg=${1#*=}\
207750bb88ba4Smrg} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
207760bb88ba4Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
207770bb88ba4Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
207780bb88ba4Smrgtest 0 -eq $? || _lt_function_replace_fail=:
207790bb88ba4Smrg
207800bb88ba4Smrg
207810bb88ba4Smrg  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
207820bb88ba4Smrgfunc_split_short_opt ()\
207830bb88ba4Smrg{\
207840bb88ba4Smrg\    func_split_short_opt_arg=${1#??}\
207850bb88ba4Smrg\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
207860bb88ba4Smrg} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
207870bb88ba4Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
207880bb88ba4Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
207890bb88ba4Smrgtest 0 -eq $? || _lt_function_replace_fail=:
207900bb88ba4Smrg
207910bb88ba4Smrg
207920bb88ba4Smrg  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
207930bb88ba4Smrgfunc_lo2o ()\
207940bb88ba4Smrg{\
207950bb88ba4Smrg\    case ${1} in\
207960bb88ba4Smrg\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
207970bb88ba4Smrg\      *)    func_lo2o_result=${1} ;;\
207980bb88ba4Smrg\    esac\
207990bb88ba4Smrg} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
208000bb88ba4Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
208010bb88ba4Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
208020bb88ba4Smrgtest 0 -eq $? || _lt_function_replace_fail=:
208030bb88ba4Smrg
208040bb88ba4Smrg
208050bb88ba4Smrg  sed -e '/^func_xform ()$/,/^} # func_xform /c\
208060bb88ba4Smrgfunc_xform ()\
208070bb88ba4Smrg{\
208080bb88ba4Smrg    func_xform_result=${1%.*}.lo\
208090bb88ba4Smrg} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
208100bb88ba4Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
208110bb88ba4Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
208120bb88ba4Smrgtest 0 -eq $? || _lt_function_replace_fail=:
208130bb88ba4Smrg
208140bb88ba4Smrg
208150bb88ba4Smrg  sed -e '/^func_arith ()$/,/^} # func_arith /c\
208160bb88ba4Smrgfunc_arith ()\
208170bb88ba4Smrg{\
208180bb88ba4Smrg    func_arith_result=$(( $* ))\
208190bb88ba4Smrg} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
208200bb88ba4Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
208210bb88ba4Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
208220bb88ba4Smrgtest 0 -eq $? || _lt_function_replace_fail=:
208230bb88ba4Smrg
208240bb88ba4Smrg
208250bb88ba4Smrg  sed -e '/^func_len ()$/,/^} # func_len /c\
208260bb88ba4Smrgfunc_len ()\
208270bb88ba4Smrg{\
208280bb88ba4Smrg    func_len_result=${#1}\
208290bb88ba4Smrg} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
208300bb88ba4Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
208310bb88ba4Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
208320bb88ba4Smrgtest 0 -eq $? || _lt_function_replace_fail=:
208330bb88ba4Smrg
208340bb88ba4Smrgfi
208350bb88ba4Smrg
208360bb88ba4Smrgif test x"$lt_shell_append" = xyes; then
208370bb88ba4Smrg  sed -e '/^func_append ()$/,/^} # func_append /c\
208380bb88ba4Smrgfunc_append ()\
208390bb88ba4Smrg{\
208400bb88ba4Smrg    eval "${1}+=\\${2}"\
208410bb88ba4Smrg} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
208420bb88ba4Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
208430bb88ba4Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
208440bb88ba4Smrgtest 0 -eq $? || _lt_function_replace_fail=:
208450bb88ba4Smrg
208460bb88ba4Smrg
208470bb88ba4Smrg  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
208480bb88ba4Smrgfunc_append_quoted ()\
208490bb88ba4Smrg{\
208500bb88ba4Smrg\    func_quote_for_eval "${2}"\
208510bb88ba4Smrg\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
208520bb88ba4Smrg} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
208530bb88ba4Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
208540bb88ba4Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
208550bb88ba4Smrgtest 0 -eq $? || _lt_function_replace_fail=:
208560bb88ba4Smrg
208570bb88ba4Smrg
208580bb88ba4Smrg  # Save a `func_append' function call where possible by direct use of '+='
208590bb88ba4Smrg  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
208600bb88ba4Smrg    && mv -f "$cfgfile.tmp" "$cfgfile" \
208610bb88ba4Smrg      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
208620bb88ba4Smrg  test 0 -eq $? || _lt_function_replace_fail=:
208630bb88ba4Smrgelse
208640bb88ba4Smrg  # Save a `func_append' function call even when '+=' is not available
208650bb88ba4Smrg  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
208660bb88ba4Smrg    && mv -f "$cfgfile.tmp" "$cfgfile" \
208670bb88ba4Smrg      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
208680bb88ba4Smrg  test 0 -eq $? || _lt_function_replace_fail=:
208690bb88ba4Smrgfi
208700bb88ba4Smrg
208710bb88ba4Smrgif test x"$_lt_function_replace_fail" = x":"; then
208720bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
208730bb88ba4Smrg$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
208740bb88ba4Smrgfi
208750bb88ba4Smrg
208760bb88ba4Smrg
208770bb88ba4Smrg   mv -f "$cfgfile" "$ofile" ||
20878a31a186aSmrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20879a31a186aSmrg  chmod +x "$ofile"
20880a31a186aSmrg
20881fe5e51b7Smrg ;;
20882fe5e51b7Smrg
20883fe5e51b7Smrg  esac
20884fe5e51b7Smrgdone # for ac_tag
20885fe5e51b7Smrg
20886fe5e51b7Smrg
208870bb88ba4Smrgas_fn_exit 0
20888fe5e51b7Smrg_ACEOF
20889fe5e51b7Smrgac_clean_files=$ac_clean_files_save
20890fe5e51b7Smrg
20891eda3803bSmrgtest $ac_write_fail = 0 ||
208920bb88ba4Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20893eda3803bSmrg
20894fe5e51b7Smrg
20895fe5e51b7Smrg# configure is writing to config.log, and then calls config.status.
20896fe5e51b7Smrg# config.status does its own redirection, appending to config.log.
20897fe5e51b7Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
20898fe5e51b7Smrg# by configure, so config.status won't be able to write to it; its
20899fe5e51b7Smrg# output is simply discarded.  So we exec the FD to /dev/null,
20900fe5e51b7Smrg# effectively closing config.log, so it can be properly (re)opened and
20901fe5e51b7Smrg# appended to by config.status.  When coming back to configure, we
20902fe5e51b7Smrg# need to make the FD available again.
20903fe5e51b7Smrgif test "$no_create" != yes; then
20904fe5e51b7Smrg  ac_cs_success=:
20905fe5e51b7Smrg  ac_config_status_args=
20906fe5e51b7Smrg  test "$silent" = yes &&
20907fe5e51b7Smrg    ac_config_status_args="$ac_config_status_args --quiet"
20908fe5e51b7Smrg  exec 5>/dev/null
20909fe5e51b7Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20910fe5e51b7Smrg  exec 5>>config.log
20911fe5e51b7Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20912fe5e51b7Smrg  # would make configure fail if this is the last instruction.
209130bb88ba4Smrg  $ac_cs_success || as_fn_exit 1
20914fe5e51b7Smrgfi
20915eda3803bSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
209160bb88ba4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20917eda3803bSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20918eda3803bSmrgfi
20919fe5e51b7Smrg
20920